configure 472 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for opus 1.1.2.
  4. #
  5. # Report bugs to <opus@xiph.org>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and opus@xiph.org
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='opus'
  542. PACKAGE_TARNAME='opus'
  543. PACKAGE_VERSION='1.1.2'
  544. PACKAGE_STRING='opus 1.1.2'
  545. PACKAGE_BUGREPORT='opus@xiph.org'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/opus_encoder.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. PC_BUILD
  588. EXTRA_PROGRAMS_FALSE
  589. EXTRA_PROGRAMS_TRUE
  590. HAVE_DOXYGEN_FALSE
  591. HAVE_DOXYGEN_TRUE
  592. HAVE_DOXYGEN
  593. OPUS_HAVE_RTCD
  594. HAVE_ARM_NE10_FALSE
  595. HAVE_ARM_NE10_TRUE
  596. OPUS_ARM_NEON_INTR_FALSE
  597. OPUS_ARM_NEON_INTR_TRUE
  598. CPU_ARM_FALSE
  599. CPU_ARM_TRUE
  600. OPUS_X86_AVX_CFLAGS
  601. OPUS_X86_SSE4_1_CFLAGS
  602. OPUS_X86_SSE2_CFLAGS
  603. OPUS_X86_SSE_CFLAGS
  604. NE10_LIBS
  605. NE10_CFLAGS
  606. HAVE_ARM_NE10
  607. OPUS_ARM_NEON_INTR_CFLAGS
  608. ARM_NEON_INTR_CFLAGS
  609. X86_AVX_CFLAGS
  610. X86_SSE4_1_CFLAGS
  611. X86_SSE2_CFLAGS
  612. X86_SSE_CFLAGS
  613. HAVE_AVX_FALSE
  614. HAVE_AVX_TRUE
  615. HAVE_SSE4_1_FALSE
  616. HAVE_SSE4_1_TRUE
  617. HAVE_SSE2_FALSE
  618. HAVE_SSE2_TRUE
  619. HAVE_SSE_FALSE
  620. HAVE_SSE_TRUE
  621. ARM2GNU_PARAMS
  622. OPUS_ARM_MAY_HAVE_NEON
  623. OPUS_ARM_MAY_HAVE_MEDIA
  624. OPUS_ARM_MAY_HAVE_EDSP
  625. OPUS_ARM_EXTERNAL_ASM_FALSE
  626. OPUS_ARM_EXTERNAL_ASM_TRUE
  627. HAVE_PERL
  628. OPUS_ARM_INLINE_ASM_FALSE
  629. OPUS_ARM_INLINE_ASM_TRUE
  630. CUSTOM_MODES_FALSE
  631. CUSTOM_MODES_TRUE
  632. DISABLE_FLOAT_API_FALSE
  633. DISABLE_FLOAT_API_TRUE
  634. FIXED_POINT_FALSE
  635. FIXED_POINT_TRUE
  636. LIBM
  637. am__fastdepCCAS_FALSE
  638. am__fastdepCCAS_TRUE
  639. CCASDEPMODE
  640. CCASFLAGS
  641. CCAS
  642. CPP
  643. OTOOL64
  644. OTOOL
  645. LIPO
  646. NMEDIT
  647. DSYMUTIL
  648. MANIFEST_TOOL
  649. RANLIB
  650. ac_ct_AR
  651. AR
  652. DLLTOOL
  653. OBJDUMP
  654. LN_S
  655. NM
  656. ac_ct_DUMPBIN
  657. DUMPBIN
  658. LD
  659. FGREP
  660. EGREP
  661. GREP
  662. SED
  663. am__fastdepCC_FALSE
  664. am__fastdepCC_TRUE
  665. CCDEPMODE
  666. am__nodep
  667. AMDEPBACKSLASH
  668. AMDEP_FALSE
  669. AMDEP_TRUE
  670. am__quote
  671. am__include
  672. DEPDIR
  673. OBJEXT
  674. EXEEXT
  675. ac_ct_CC
  676. CPPFLAGS
  677. LDFLAGS
  678. CFLAGS
  679. CC
  680. LIBTOOL
  681. host_os
  682. host_vendor
  683. host_cpu
  684. host
  685. build_os
  686. build_vendor
  687. build_cpu
  688. build
  689. MAINT
  690. MAINTAINER_MODE_FALSE
  691. MAINTAINER_MODE_TRUE
  692. am__untar
  693. am__tar
  694. AMTAR
  695. am__leading_dot
  696. SET_MAKE
  697. AWK
  698. mkdir_p
  699. MKDIR_P
  700. INSTALL_STRIP_PROGRAM
  701. STRIP
  702. install_sh
  703. MAKEINFO
  704. AUTOHEADER
  705. AUTOMAKE
  706. AUTOCONF
  707. ACLOCAL
  708. VERSION
  709. PACKAGE
  710. CYGPATH_W
  711. am__isrc
  712. INSTALL_DATA
  713. INSTALL_SCRIPT
  714. INSTALL_PROGRAM
  715. OPUS_LT_AGE
  716. OPUS_LT_REVISION
  717. OPUS_LT_CURRENT
  718. AM_BACKSLASH
  719. AM_DEFAULT_VERBOSITY
  720. AM_DEFAULT_V
  721. AM_V
  722. target_alias
  723. host_alias
  724. build_alias
  725. LIBS
  726. ECHO_T
  727. ECHO_N
  728. ECHO_C
  729. DEFS
  730. mandir
  731. localedir
  732. libdir
  733. psdir
  734. pdfdir
  735. dvidir
  736. htmldir
  737. infodir
  738. docdir
  739. oldincludedir
  740. includedir
  741. localstatedir
  742. sharedstatedir
  743. sysconfdir
  744. datadir
  745. datarootdir
  746. libexecdir
  747. sbindir
  748. bindir
  749. program_transform_name
  750. prefix
  751. exec_prefix
  752. PACKAGE_URL
  753. PACKAGE_BUGREPORT
  754. PACKAGE_STRING
  755. PACKAGE_VERSION
  756. PACKAGE_TARNAME
  757. PACKAGE_NAME
  758. PATH_SEPARATOR
  759. SHELL'
  760. ac_subst_files=''
  761. ac_user_opts='
  762. enable_option_checking
  763. enable_silent_rules
  764. enable_maintainer_mode
  765. enable_shared
  766. enable_static
  767. with_pic
  768. enable_fast_install
  769. enable_dependency_tracking
  770. with_gnu_ld
  771. with_sysroot
  772. enable_libtool_lock
  773. enable_fixed_point
  774. enable_fixed_point_debug
  775. enable_float_api
  776. enable_custom_modes
  777. enable_float_approx
  778. enable_asm
  779. enable_rtcd
  780. enable_intrinsics
  781. with_NE10
  782. with_NE10_libraries
  783. with_NE10_includes
  784. enable_assertions
  785. enable_fuzzing
  786. enable_doc
  787. enable_extra_programs
  788. '
  789. ac_precious_vars='build_alias
  790. host_alias
  791. target_alias
  792. CC
  793. CFLAGS
  794. LDFLAGS
  795. LIBS
  796. CPPFLAGS
  797. CPP
  798. CCAS
  799. CCASFLAGS
  800. X86_SSE_CFLAGS
  801. X86_SSE2_CFLAGS
  802. X86_SSE4_1_CFLAGS
  803. X86_AVX_CFLAGS
  804. ARM_NEON_INTR_CFLAGS'
  805. # Initialize some variables set by options.
  806. ac_init_help=
  807. ac_init_version=false
  808. ac_unrecognized_opts=
  809. ac_unrecognized_sep=
  810. # The variables have the same names as the options, with
  811. # dashes changed to underlines.
  812. cache_file=/dev/null
  813. exec_prefix=NONE
  814. no_create=
  815. no_recursion=
  816. prefix=NONE
  817. program_prefix=NONE
  818. program_suffix=NONE
  819. program_transform_name=s,x,x,
  820. silent=
  821. site=
  822. srcdir=
  823. verbose=
  824. x_includes=NONE
  825. x_libraries=NONE
  826. # Installation directory options.
  827. # These are left unexpanded so users can "make install exec_prefix=/foo"
  828. # and all the variables that are supposed to be based on exec_prefix
  829. # by default will actually change.
  830. # Use braces instead of parens because sh, perl, etc. also accept them.
  831. # (The list follows the same order as the GNU Coding Standards.)
  832. bindir='${exec_prefix}/bin'
  833. sbindir='${exec_prefix}/sbin'
  834. libexecdir='${exec_prefix}/libexec'
  835. datarootdir='${prefix}/share'
  836. datadir='${datarootdir}'
  837. sysconfdir='${prefix}/etc'
  838. sharedstatedir='${prefix}/com'
  839. localstatedir='${prefix}/var'
  840. includedir='${prefix}/include'
  841. oldincludedir='/usr/include'
  842. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  843. infodir='${datarootdir}/info'
  844. htmldir='${docdir}'
  845. dvidir='${docdir}'
  846. pdfdir='${docdir}'
  847. psdir='${docdir}'
  848. libdir='${exec_prefix}/lib'
  849. localedir='${datarootdir}/locale'
  850. mandir='${datarootdir}/man'
  851. ac_prev=
  852. ac_dashdash=
  853. for ac_option
  854. do
  855. # If the previous option needs an argument, assign it.
  856. if test -n "$ac_prev"; then
  857. eval $ac_prev=\$ac_option
  858. ac_prev=
  859. continue
  860. fi
  861. case $ac_option in
  862. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  863. *=) ac_optarg= ;;
  864. *) ac_optarg=yes ;;
  865. esac
  866. # Accept the important Cygnus configure options, so we can diagnose typos.
  867. case $ac_dashdash$ac_option in
  868. --)
  869. ac_dashdash=yes ;;
  870. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  871. ac_prev=bindir ;;
  872. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  873. bindir=$ac_optarg ;;
  874. -build | --build | --buil | --bui | --bu)
  875. ac_prev=build_alias ;;
  876. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  877. build_alias=$ac_optarg ;;
  878. -cache-file | --cache-file | --cache-fil | --cache-fi \
  879. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  880. ac_prev=cache_file ;;
  881. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  882. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  883. cache_file=$ac_optarg ;;
  884. --config-cache | -C)
  885. cache_file=config.cache ;;
  886. -datadir | --datadir | --datadi | --datad)
  887. ac_prev=datadir ;;
  888. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  889. datadir=$ac_optarg ;;
  890. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  891. | --dataroo | --dataro | --datar)
  892. ac_prev=datarootdir ;;
  893. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  894. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  895. datarootdir=$ac_optarg ;;
  896. -disable-* | --disable-*)
  897. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  898. # Reject names that are not valid shell variable names.
  899. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  900. as_fn_error $? "invalid feature name: $ac_useropt"
  901. ac_useropt_orig=$ac_useropt
  902. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  903. case $ac_user_opts in
  904. *"
  905. "enable_$ac_useropt"
  906. "*) ;;
  907. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  908. ac_unrecognized_sep=', ';;
  909. esac
  910. eval enable_$ac_useropt=no ;;
  911. -docdir | --docdir | --docdi | --doc | --do)
  912. ac_prev=docdir ;;
  913. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  914. docdir=$ac_optarg ;;
  915. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  916. ac_prev=dvidir ;;
  917. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  918. dvidir=$ac_optarg ;;
  919. -enable-* | --enable-*)
  920. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  921. # Reject names that are not valid shell variable names.
  922. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  923. as_fn_error $? "invalid feature name: $ac_useropt"
  924. ac_useropt_orig=$ac_useropt
  925. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  926. case $ac_user_opts in
  927. *"
  928. "enable_$ac_useropt"
  929. "*) ;;
  930. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  931. ac_unrecognized_sep=', ';;
  932. esac
  933. eval enable_$ac_useropt=\$ac_optarg ;;
  934. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  935. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  936. | --exec | --exe | --ex)
  937. ac_prev=exec_prefix ;;
  938. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  939. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  940. | --exec=* | --exe=* | --ex=*)
  941. exec_prefix=$ac_optarg ;;
  942. -gas | --gas | --ga | --g)
  943. # Obsolete; use --with-gas.
  944. with_gas=yes ;;
  945. -help | --help | --hel | --he | -h)
  946. ac_init_help=long ;;
  947. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  948. ac_init_help=recursive ;;
  949. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  950. ac_init_help=short ;;
  951. -host | --host | --hos | --ho)
  952. ac_prev=host_alias ;;
  953. -host=* | --host=* | --hos=* | --ho=*)
  954. host_alias=$ac_optarg ;;
  955. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  956. ac_prev=htmldir ;;
  957. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  958. | --ht=*)
  959. htmldir=$ac_optarg ;;
  960. -includedir | --includedir | --includedi | --included | --include \
  961. | --includ | --inclu | --incl | --inc)
  962. ac_prev=includedir ;;
  963. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  964. | --includ=* | --inclu=* | --incl=* | --inc=*)
  965. includedir=$ac_optarg ;;
  966. -infodir | --infodir | --infodi | --infod | --info | --inf)
  967. ac_prev=infodir ;;
  968. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  969. infodir=$ac_optarg ;;
  970. -libdir | --libdir | --libdi | --libd)
  971. ac_prev=libdir ;;
  972. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  973. libdir=$ac_optarg ;;
  974. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  975. | --libexe | --libex | --libe)
  976. ac_prev=libexecdir ;;
  977. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  978. | --libexe=* | --libex=* | --libe=*)
  979. libexecdir=$ac_optarg ;;
  980. -localedir | --localedir | --localedi | --localed | --locale)
  981. ac_prev=localedir ;;
  982. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  983. localedir=$ac_optarg ;;
  984. -localstatedir | --localstatedir | --localstatedi | --localstated \
  985. | --localstate | --localstat | --localsta | --localst | --locals)
  986. ac_prev=localstatedir ;;
  987. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  988. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  989. localstatedir=$ac_optarg ;;
  990. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  991. ac_prev=mandir ;;
  992. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  993. mandir=$ac_optarg ;;
  994. -nfp | --nfp | --nf)
  995. # Obsolete; use --without-fp.
  996. with_fp=no ;;
  997. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  998. | --no-cr | --no-c | -n)
  999. no_create=yes ;;
  1000. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1001. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1002. no_recursion=yes ;;
  1003. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1004. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1005. | --oldin | --oldi | --old | --ol | --o)
  1006. ac_prev=oldincludedir ;;
  1007. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1008. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1009. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1010. oldincludedir=$ac_optarg ;;
  1011. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1012. ac_prev=prefix ;;
  1013. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1014. prefix=$ac_optarg ;;
  1015. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1016. | --program-pre | --program-pr | --program-p)
  1017. ac_prev=program_prefix ;;
  1018. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1019. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1020. program_prefix=$ac_optarg ;;
  1021. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1022. | --program-suf | --program-su | --program-s)
  1023. ac_prev=program_suffix ;;
  1024. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1025. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1026. program_suffix=$ac_optarg ;;
  1027. -program-transform-name | --program-transform-name \
  1028. | --program-transform-nam | --program-transform-na \
  1029. | --program-transform-n | --program-transform- \
  1030. | --program-transform | --program-transfor \
  1031. | --program-transfo | --program-transf \
  1032. | --program-trans | --program-tran \
  1033. | --progr-tra | --program-tr | --program-t)
  1034. ac_prev=program_transform_name ;;
  1035. -program-transform-name=* | --program-transform-name=* \
  1036. | --program-transform-nam=* | --program-transform-na=* \
  1037. | --program-transform-n=* | --program-transform-=* \
  1038. | --program-transform=* | --program-transfor=* \
  1039. | --program-transfo=* | --program-transf=* \
  1040. | --program-trans=* | --program-tran=* \
  1041. | --progr-tra=* | --program-tr=* | --program-t=*)
  1042. program_transform_name=$ac_optarg ;;
  1043. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1044. ac_prev=pdfdir ;;
  1045. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1046. pdfdir=$ac_optarg ;;
  1047. -psdir | --psdir | --psdi | --psd | --ps)
  1048. ac_prev=psdir ;;
  1049. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1050. psdir=$ac_optarg ;;
  1051. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1052. | -silent | --silent | --silen | --sile | --sil)
  1053. silent=yes ;;
  1054. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1055. ac_prev=sbindir ;;
  1056. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1057. | --sbi=* | --sb=*)
  1058. sbindir=$ac_optarg ;;
  1059. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1060. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1061. | --sharedst | --shareds | --shared | --share | --shar \
  1062. | --sha | --sh)
  1063. ac_prev=sharedstatedir ;;
  1064. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1065. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1066. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1067. | --sha=* | --sh=*)
  1068. sharedstatedir=$ac_optarg ;;
  1069. -site | --site | --sit)
  1070. ac_prev=site ;;
  1071. -site=* | --site=* | --sit=*)
  1072. site=$ac_optarg ;;
  1073. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1074. ac_prev=srcdir ;;
  1075. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1076. srcdir=$ac_optarg ;;
  1077. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1078. | --syscon | --sysco | --sysc | --sys | --sy)
  1079. ac_prev=sysconfdir ;;
  1080. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1081. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1082. sysconfdir=$ac_optarg ;;
  1083. -target | --target | --targe | --targ | --tar | --ta | --t)
  1084. ac_prev=target_alias ;;
  1085. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1086. target_alias=$ac_optarg ;;
  1087. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1088. verbose=yes ;;
  1089. -version | --version | --versio | --versi | --vers | -V)
  1090. ac_init_version=: ;;
  1091. -with-* | --with-*)
  1092. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1093. # Reject names that are not valid shell variable names.
  1094. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1095. as_fn_error $? "invalid package name: $ac_useropt"
  1096. ac_useropt_orig=$ac_useropt
  1097. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1098. case $ac_user_opts in
  1099. *"
  1100. "with_$ac_useropt"
  1101. "*) ;;
  1102. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1103. ac_unrecognized_sep=', ';;
  1104. esac
  1105. eval with_$ac_useropt=\$ac_optarg ;;
  1106. -without-* | --without-*)
  1107. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1110. as_fn_error $? "invalid package name: $ac_useropt"
  1111. ac_useropt_orig=$ac_useropt
  1112. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1113. case $ac_user_opts in
  1114. *"
  1115. "with_$ac_useropt"
  1116. "*) ;;
  1117. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1118. ac_unrecognized_sep=', ';;
  1119. esac
  1120. eval with_$ac_useropt=no ;;
  1121. --x)
  1122. # Obsolete; use --with-x.
  1123. with_x=yes ;;
  1124. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1125. | --x-incl | --x-inc | --x-in | --x-i)
  1126. ac_prev=x_includes ;;
  1127. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1128. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1129. x_includes=$ac_optarg ;;
  1130. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1131. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1132. ac_prev=x_libraries ;;
  1133. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1134. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1135. x_libraries=$ac_optarg ;;
  1136. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1137. Try \`$0 --help' for more information"
  1138. ;;
  1139. *=*)
  1140. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1141. # Reject names that are not valid shell variable names.
  1142. case $ac_envvar in #(
  1143. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1144. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1145. esac
  1146. eval $ac_envvar=\$ac_optarg
  1147. export $ac_envvar ;;
  1148. *)
  1149. # FIXME: should be removed in autoconf 3.0.
  1150. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1151. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1152. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1153. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1154. ;;
  1155. esac
  1156. done
  1157. if test -n "$ac_prev"; then
  1158. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1159. as_fn_error $? "missing argument to $ac_option"
  1160. fi
  1161. if test -n "$ac_unrecognized_opts"; then
  1162. case $enable_option_checking in
  1163. no) ;;
  1164. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1165. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1166. esac
  1167. fi
  1168. # Check all directory arguments for consistency.
  1169. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1170. datadir sysconfdir sharedstatedir localstatedir includedir \
  1171. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1172. libdir localedir mandir
  1173. do
  1174. eval ac_val=\$$ac_var
  1175. # Remove trailing slashes.
  1176. case $ac_val in
  1177. */ )
  1178. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1179. eval $ac_var=\$ac_val;;
  1180. esac
  1181. # Be sure to have absolute directory names.
  1182. case $ac_val in
  1183. [\\/$]* | ?:[\\/]* ) continue;;
  1184. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1185. esac
  1186. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1187. done
  1188. # There might be people who depend on the old broken behavior: `$host'
  1189. # used to hold the argument of --host etc.
  1190. # FIXME: To remove some day.
  1191. build=$build_alias
  1192. host=$host_alias
  1193. target=$target_alias
  1194. # FIXME: To remove some day.
  1195. if test "x$host_alias" != x; then
  1196. if test "x$build_alias" = x; then
  1197. cross_compiling=maybe
  1198. elif test "x$build_alias" != "x$host_alias"; then
  1199. cross_compiling=yes
  1200. fi
  1201. fi
  1202. ac_tool_prefix=
  1203. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1204. test "$silent" = yes && exec 6>/dev/null
  1205. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1206. ac_ls_di=`ls -di .` &&
  1207. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1208. as_fn_error $? "working directory cannot be determined"
  1209. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1210. as_fn_error $? "pwd does not report name of working directory"
  1211. # Find the source files, if location was not specified.
  1212. if test -z "$srcdir"; then
  1213. ac_srcdir_defaulted=yes
  1214. # Try the directory containing this script, then the parent directory.
  1215. ac_confdir=`$as_dirname -- "$as_myself" ||
  1216. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1217. X"$as_myself" : 'X\(//\)[^/]' \| \
  1218. X"$as_myself" : 'X\(//\)$' \| \
  1219. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1220. $as_echo X"$as_myself" |
  1221. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1222. s//\1/
  1223. q
  1224. }
  1225. /^X\(\/\/\)[^/].*/{
  1226. s//\1/
  1227. q
  1228. }
  1229. /^X\(\/\/\)$/{
  1230. s//\1/
  1231. q
  1232. }
  1233. /^X\(\/\).*/{
  1234. s//\1/
  1235. q
  1236. }
  1237. s/.*/./; q'`
  1238. srcdir=$ac_confdir
  1239. if test ! -r "$srcdir/$ac_unique_file"; then
  1240. srcdir=..
  1241. fi
  1242. else
  1243. ac_srcdir_defaulted=no
  1244. fi
  1245. if test ! -r "$srcdir/$ac_unique_file"; then
  1246. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1247. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1248. fi
  1249. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1250. ac_abs_confdir=`(
  1251. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1252. pwd)`
  1253. # When building in place, set srcdir=.
  1254. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1255. srcdir=.
  1256. fi
  1257. # Remove unnecessary trailing slashes from srcdir.
  1258. # Double slashes in file names in object file debugging info
  1259. # mess up M-x gdb in Emacs.
  1260. case $srcdir in
  1261. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1262. esac
  1263. for ac_var in $ac_precious_vars; do
  1264. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1265. eval ac_env_${ac_var}_value=\$${ac_var}
  1266. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1267. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1268. done
  1269. #
  1270. # Report the --help message.
  1271. #
  1272. if test "$ac_init_help" = "long"; then
  1273. # Omit some internal or obsolete options to make the list less imposing.
  1274. # This message is too long to be a string in the A/UX 3.1 sh.
  1275. cat <<_ACEOF
  1276. \`configure' configures opus 1.1.2 to adapt to many kinds of systems.
  1277. Usage: $0 [OPTION]... [VAR=VALUE]...
  1278. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1279. VAR=VALUE. See below for descriptions of some of the useful variables.
  1280. Defaults for the options are specified in brackets.
  1281. Configuration:
  1282. -h, --help display this help and exit
  1283. --help=short display options specific to this package
  1284. --help=recursive display the short help of all the included packages
  1285. -V, --version display version information and exit
  1286. -q, --quiet, --silent do not print \`checking ...' messages
  1287. --cache-file=FILE cache test results in FILE [disabled]
  1288. -C, --config-cache alias for \`--cache-file=config.cache'
  1289. -n, --no-create do not create output files
  1290. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1291. Installation directories:
  1292. --prefix=PREFIX install architecture-independent files in PREFIX
  1293. [$ac_default_prefix]
  1294. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1295. [PREFIX]
  1296. By default, \`make install' will install all the files in
  1297. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1298. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1299. for instance \`--prefix=\$HOME'.
  1300. For better control, use the options below.
  1301. Fine tuning of the installation directories:
  1302. --bindir=DIR user executables [EPREFIX/bin]
  1303. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1304. --libexecdir=DIR program executables [EPREFIX/libexec]
  1305. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1306. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1307. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1308. --libdir=DIR object code libraries [EPREFIX/lib]
  1309. --includedir=DIR C header files [PREFIX/include]
  1310. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1311. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1312. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1313. --infodir=DIR info documentation [DATAROOTDIR/info]
  1314. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1315. --mandir=DIR man documentation [DATAROOTDIR/man]
  1316. --docdir=DIR documentation root [DATAROOTDIR/doc/opus]
  1317. --htmldir=DIR html documentation [DOCDIR]
  1318. --dvidir=DIR dvi documentation [DOCDIR]
  1319. --pdfdir=DIR pdf documentation [DOCDIR]
  1320. --psdir=DIR ps documentation [DOCDIR]
  1321. _ACEOF
  1322. cat <<\_ACEOF
  1323. Program names:
  1324. --program-prefix=PREFIX prepend PREFIX to installed program names
  1325. --program-suffix=SUFFIX append SUFFIX to installed program names
  1326. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1327. System types:
  1328. --build=BUILD configure for building on BUILD [guessed]
  1329. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1330. _ACEOF
  1331. fi
  1332. if test -n "$ac_init_help"; then
  1333. case $ac_init_help in
  1334. short | recursive ) echo "Configuration of opus 1.1.2:";;
  1335. esac
  1336. cat <<\_ACEOF
  1337. Optional Features:
  1338. --disable-option-checking ignore unrecognized --enable/--with options
  1339. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1340. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1341. --enable-silent-rules less verbose build output (undo: "make V=1")
  1342. --disable-silent-rules verbose build output (undo: "make V=0")
  1343. --disable-maintainer-mode
  1344. disable make rules and dependencies not useful (and
  1345. sometimes confusing) to the casual installer
  1346. --enable-shared[=PKGS] build shared libraries [default=yes]
  1347. --enable-static[=PKGS] build static libraries [default=yes]
  1348. --enable-fast-install[=PKGS]
  1349. optimize for fast installation [default=yes]
  1350. --enable-dependency-tracking
  1351. do not reject slow dependency extractors
  1352. --disable-dependency-tracking
  1353. speeds up one-time build
  1354. --disable-libtool-lock avoid locking (might break parallel builds)
  1355. --enable-fixed-point compile without floating point (for machines without
  1356. a fast enough FPU)
  1357. --enable-fixed-point-debug
  1358. debug fixed-point implementation
  1359. --disable-float-api compile without the floating point API (for machines
  1360. with no float library)
  1361. --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
  1362. --enable-float-approx enable fast approximations for floating point
  1363. --disable-asm Disable assembly optimizations
  1364. --disable-rtcd Disable run-time CPU capabilities detection
  1365. --enable-intrinsics Enable intrinsics optimizations for ARM(float)
  1366. X86(fixed)
  1367. --enable-assertions enable additional software error checking
  1368. --enable-fuzzing causes the encoder to make random decisions
  1369. --disable-doc Do not build API documentation
  1370. --disable-extra-programs
  1371. Do not build extra programs (demo and tests)
  1372. Optional Packages:
  1373. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1374. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1375. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1376. both]
  1377. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1378. --with-sysroot=DIR Search for dependent libraries within DIR
  1379. (or the compiler's sysroot if not specified).
  1380. --with-NE10=PFX Prefix where libNE10 is installed (optional)
  1381. --with-NE10-libraries=DIR
  1382. Directory where libNE10 library is installed
  1383. (optional)
  1384. --with-NE10-includes=DIR
  1385. Directory where libNE10 header files are installed
  1386. (optional)
  1387. Some influential environment variables:
  1388. CC C compiler command
  1389. CFLAGS C compiler flags
  1390. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1391. nonstandard directory <lib dir>
  1392. LIBS libraries to pass to the linker, e.g. -l<library>
  1393. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1394. you have headers in a nonstandard directory <include dir>
  1395. CPP C preprocessor
  1396. CCAS assembler compiler command (defaults to CC)
  1397. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1398. X86_SSE_CFLAGS
  1399. C compiler flags to compile SSE intrinsics [default=-msse]
  1400. X86_SSE2_CFLAGS
  1401. C compiler flags to compile SSE2 intrinsics [default=-msse2]
  1402. X86_SSE4_1_CFLAGS
  1403. C compiler flags to compile SSE4.1 intrinsics [default=-msse4.1]
  1404. X86_AVX_CFLAGS
  1405. C compiler flags to compile AVX intrinsics [default=-mavx]
  1406. ARM_NEON_INTR_CFLAGS
  1407. C compiler flags to compile ARM NEON intrinsics
  1408. [default=-mfpu=neon / -mfpu=neon -mfloat-abi=softfp]
  1409. Use these variables to override the choices made by `configure' or to help
  1410. it to find libraries and programs with nonstandard names/locations.
  1411. Report bugs to <opus@xiph.org>.
  1412. _ACEOF
  1413. ac_status=$?
  1414. fi
  1415. if test "$ac_init_help" = "recursive"; then
  1416. # If there are subdirs, report their specific --help.
  1417. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1418. test -d "$ac_dir" ||
  1419. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1420. continue
  1421. ac_builddir=.
  1422. case "$ac_dir" in
  1423. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1424. *)
  1425. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1426. # A ".." for each directory in $ac_dir_suffix.
  1427. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1428. case $ac_top_builddir_sub in
  1429. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1430. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1431. esac ;;
  1432. esac
  1433. ac_abs_top_builddir=$ac_pwd
  1434. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1435. # for backward compatibility:
  1436. ac_top_builddir=$ac_top_build_prefix
  1437. case $srcdir in
  1438. .) # We are building in place.
  1439. ac_srcdir=.
  1440. ac_top_srcdir=$ac_top_builddir_sub
  1441. ac_abs_top_srcdir=$ac_pwd ;;
  1442. [\\/]* | ?:[\\/]* ) # Absolute name.
  1443. ac_srcdir=$srcdir$ac_dir_suffix;
  1444. ac_top_srcdir=$srcdir
  1445. ac_abs_top_srcdir=$srcdir ;;
  1446. *) # Relative name.
  1447. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1448. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1449. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1450. esac
  1451. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1452. cd "$ac_dir" || { ac_status=$?; continue; }
  1453. # Check for guested configure.
  1454. if test -f "$ac_srcdir/configure.gnu"; then
  1455. echo &&
  1456. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1457. elif test -f "$ac_srcdir/configure"; then
  1458. echo &&
  1459. $SHELL "$ac_srcdir/configure" --help=recursive
  1460. else
  1461. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1462. fi || ac_status=$?
  1463. cd "$ac_pwd" || { ac_status=$?; break; }
  1464. done
  1465. fi
  1466. test -n "$ac_init_help" && exit $ac_status
  1467. if $ac_init_version; then
  1468. cat <<\_ACEOF
  1469. opus configure 1.1.2
  1470. generated by GNU Autoconf 2.69
  1471. Copyright (C) 2012 Free Software Foundation, Inc.
  1472. This configure script is free software; the Free Software Foundation
  1473. gives unlimited permission to copy, distribute and modify it.
  1474. _ACEOF
  1475. exit
  1476. fi
  1477. ## ------------------------ ##
  1478. ## Autoconf initialization. ##
  1479. ## ------------------------ ##
  1480. # ac_fn_c_try_compile LINENO
  1481. # --------------------------
  1482. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1483. ac_fn_c_try_compile ()
  1484. {
  1485. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1486. rm -f conftest.$ac_objext
  1487. if { { ac_try="$ac_compile"
  1488. case "(($ac_try" in
  1489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1490. *) ac_try_echo=$ac_try;;
  1491. esac
  1492. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1493. $as_echo "$ac_try_echo"; } >&5
  1494. (eval "$ac_compile") 2>conftest.err
  1495. ac_status=$?
  1496. if test -s conftest.err; then
  1497. grep -v '^ *+' conftest.err >conftest.er1
  1498. cat conftest.er1 >&5
  1499. mv -f conftest.er1 conftest.err
  1500. fi
  1501. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1502. test $ac_status = 0; } && {
  1503. test -z "$ac_c_werror_flag" ||
  1504. test ! -s conftest.err
  1505. } && test -s conftest.$ac_objext; then :
  1506. ac_retval=0
  1507. else
  1508. $as_echo "$as_me: failed program was:" >&5
  1509. sed 's/^/| /' conftest.$ac_ext >&5
  1510. ac_retval=1
  1511. fi
  1512. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1513. as_fn_set_status $ac_retval
  1514. } # ac_fn_c_try_compile
  1515. # ac_fn_c_try_link LINENO
  1516. # -----------------------
  1517. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1518. ac_fn_c_try_link ()
  1519. {
  1520. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1521. rm -f conftest.$ac_objext conftest$ac_exeext
  1522. if { { ac_try="$ac_link"
  1523. case "(($ac_try" in
  1524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1525. *) ac_try_echo=$ac_try;;
  1526. esac
  1527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1528. $as_echo "$ac_try_echo"; } >&5
  1529. (eval "$ac_link") 2>conftest.err
  1530. ac_status=$?
  1531. if test -s conftest.err; then
  1532. grep -v '^ *+' conftest.err >conftest.er1
  1533. cat conftest.er1 >&5
  1534. mv -f conftest.er1 conftest.err
  1535. fi
  1536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1537. test $ac_status = 0; } && {
  1538. test -z "$ac_c_werror_flag" ||
  1539. test ! -s conftest.err
  1540. } && test -s conftest$ac_exeext && {
  1541. test "$cross_compiling" = yes ||
  1542. test -x conftest$ac_exeext
  1543. }; then :
  1544. ac_retval=0
  1545. else
  1546. $as_echo "$as_me: failed program was:" >&5
  1547. sed 's/^/| /' conftest.$ac_ext >&5
  1548. ac_retval=1
  1549. fi
  1550. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1551. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1552. # interfere with the next link command; also delete a directory that is
  1553. # left behind by Apple's compiler. We do this before executing the actions.
  1554. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1555. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1556. as_fn_set_status $ac_retval
  1557. } # ac_fn_c_try_link
  1558. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1559. # -------------------------------------------------------
  1560. # Tests whether HEADER exists and can be compiled using the include files in
  1561. # INCLUDES, setting the cache variable VAR accordingly.
  1562. ac_fn_c_check_header_compile ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1566. $as_echo_n "checking for $2... " >&6; }
  1567. if eval \${$3+:} false; then :
  1568. $as_echo_n "(cached) " >&6
  1569. else
  1570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1571. /* end confdefs.h. */
  1572. $4
  1573. #include <$2>
  1574. _ACEOF
  1575. if ac_fn_c_try_compile "$LINENO"; then :
  1576. eval "$3=yes"
  1577. else
  1578. eval "$3=no"
  1579. fi
  1580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1581. fi
  1582. eval ac_res=\$$3
  1583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1584. $as_echo "$ac_res" >&6; }
  1585. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1586. } # ac_fn_c_check_header_compile
  1587. # ac_fn_c_try_cpp LINENO
  1588. # ----------------------
  1589. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1590. ac_fn_c_try_cpp ()
  1591. {
  1592. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1593. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1594. case "(($ac_try" in
  1595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1596. *) ac_try_echo=$ac_try;;
  1597. esac
  1598. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1599. $as_echo "$ac_try_echo"; } >&5
  1600. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1601. ac_status=$?
  1602. if test -s conftest.err; then
  1603. grep -v '^ *+' conftest.err >conftest.er1
  1604. cat conftest.er1 >&5
  1605. mv -f conftest.er1 conftest.err
  1606. fi
  1607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1608. test $ac_status = 0; } > conftest.i && {
  1609. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1610. test ! -s conftest.err
  1611. }; then :
  1612. ac_retval=0
  1613. else
  1614. $as_echo "$as_me: failed program was:" >&5
  1615. sed 's/^/| /' conftest.$ac_ext >&5
  1616. ac_retval=1
  1617. fi
  1618. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1619. as_fn_set_status $ac_retval
  1620. } # ac_fn_c_try_cpp
  1621. # ac_fn_c_try_run LINENO
  1622. # ----------------------
  1623. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1624. # that executables *can* be run.
  1625. ac_fn_c_try_run ()
  1626. {
  1627. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1628. if { { ac_try="$ac_link"
  1629. case "(($ac_try" in
  1630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1631. *) ac_try_echo=$ac_try;;
  1632. esac
  1633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1634. $as_echo "$ac_try_echo"; } >&5
  1635. (eval "$ac_link") 2>&5
  1636. ac_status=$?
  1637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1638. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1639. { { case "(($ac_try" in
  1640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1641. *) ac_try_echo=$ac_try;;
  1642. esac
  1643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1644. $as_echo "$ac_try_echo"; } >&5
  1645. (eval "$ac_try") 2>&5
  1646. ac_status=$?
  1647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1648. test $ac_status = 0; }; }; then :
  1649. ac_retval=0
  1650. else
  1651. $as_echo "$as_me: program exited with status $ac_status" >&5
  1652. $as_echo "$as_me: failed program was:" >&5
  1653. sed 's/^/| /' conftest.$ac_ext >&5
  1654. ac_retval=$ac_status
  1655. fi
  1656. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1657. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1658. as_fn_set_status $ac_retval
  1659. } # ac_fn_c_try_run
  1660. # ac_fn_c_check_func LINENO FUNC VAR
  1661. # ----------------------------------
  1662. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1663. ac_fn_c_check_func ()
  1664. {
  1665. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1667. $as_echo_n "checking for $2... " >&6; }
  1668. if eval \${$3+:} false; then :
  1669. $as_echo_n "(cached) " >&6
  1670. else
  1671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1672. /* end confdefs.h. */
  1673. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1674. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1675. #define $2 innocuous_$2
  1676. /* System header to define __stub macros and hopefully few prototypes,
  1677. which can conflict with char $2 (); below.
  1678. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1679. <limits.h> exists even on freestanding compilers. */
  1680. #ifdef __STDC__
  1681. # include <limits.h>
  1682. #else
  1683. # include <assert.h>
  1684. #endif
  1685. #undef $2
  1686. /* Override any GCC internal prototype to avoid an error.
  1687. Use char because int might match the return type of a GCC
  1688. builtin and then its argument prototype would still apply. */
  1689. #ifdef __cplusplus
  1690. extern "C"
  1691. #endif
  1692. char $2 ();
  1693. /* The GNU C library defines this for functions which it implements
  1694. to always fail with ENOSYS. Some functions are actually named
  1695. something starting with __ and the normal name is an alias. */
  1696. #if defined __stub_$2 || defined __stub___$2
  1697. choke me
  1698. #endif
  1699. int
  1700. main ()
  1701. {
  1702. return $2 ();
  1703. ;
  1704. return 0;
  1705. }
  1706. _ACEOF
  1707. if ac_fn_c_try_link "$LINENO"; then :
  1708. eval "$3=yes"
  1709. else
  1710. eval "$3=no"
  1711. fi
  1712. rm -f core conftest.err conftest.$ac_objext \
  1713. conftest$ac_exeext conftest.$ac_ext
  1714. fi
  1715. eval ac_res=\$$3
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1717. $as_echo "$ac_res" >&6; }
  1718. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1719. } # ac_fn_c_check_func
  1720. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1721. # -------------------------------------------------------
  1722. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1723. # the include files in INCLUDES and setting the cache variable VAR
  1724. # accordingly.
  1725. ac_fn_c_check_header_mongrel ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. if eval \${$3+:} false; then :
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1730. $as_echo_n "checking for $2... " >&6; }
  1731. if eval \${$3+:} false; then :
  1732. $as_echo_n "(cached) " >&6
  1733. fi
  1734. eval ac_res=\$$3
  1735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1736. $as_echo "$ac_res" >&6; }
  1737. else
  1738. # Is the header compilable?
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1740. $as_echo_n "checking $2 usability... " >&6; }
  1741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1742. /* end confdefs.h. */
  1743. $4
  1744. #include <$2>
  1745. _ACEOF
  1746. if ac_fn_c_try_compile "$LINENO"; then :
  1747. ac_header_compiler=yes
  1748. else
  1749. ac_header_compiler=no
  1750. fi
  1751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1753. $as_echo "$ac_header_compiler" >&6; }
  1754. # Is the header present?
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1756. $as_echo_n "checking $2 presence... " >&6; }
  1757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1758. /* end confdefs.h. */
  1759. #include <$2>
  1760. _ACEOF
  1761. if ac_fn_c_try_cpp "$LINENO"; then :
  1762. ac_header_preproc=yes
  1763. else
  1764. ac_header_preproc=no
  1765. fi
  1766. rm -f conftest.err conftest.i conftest.$ac_ext
  1767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1768. $as_echo "$ac_header_preproc" >&6; }
  1769. # So? What about this header?
  1770. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1771. yes:no: )
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1773. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1775. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1776. ;;
  1777. no:yes:* )
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1779. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1781. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1783. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1785. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1787. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1788. ( $as_echo "## ---------------------------- ##
  1789. ## Report this to opus@xiph.org ##
  1790. ## ---------------------------- ##"
  1791. ) | sed "s/^/$as_me: WARNING: /" >&2
  1792. ;;
  1793. esac
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1795. $as_echo_n "checking for $2... " >&6; }
  1796. if eval \${$3+:} false; then :
  1797. $as_echo_n "(cached) " >&6
  1798. else
  1799. eval "$3=\$ac_header_compiler"
  1800. fi
  1801. eval ac_res=\$$3
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1803. $as_echo "$ac_res" >&6; }
  1804. fi
  1805. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1806. } # ac_fn_c_check_header_mongrel
  1807. cat >config.log <<_ACEOF
  1808. This file contains any messages produced by compilers while
  1809. running configure, to aid debugging if configure makes a mistake.
  1810. It was created by opus $as_me 1.1.2, which was
  1811. generated by GNU Autoconf 2.69. Invocation command line was
  1812. $ $0 $@
  1813. _ACEOF
  1814. exec 5>>config.log
  1815. {
  1816. cat <<_ASUNAME
  1817. ## --------- ##
  1818. ## Platform. ##
  1819. ## --------- ##
  1820. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1821. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1822. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1823. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1824. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1825. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1826. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1827. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1828. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1829. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1830. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1831. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1832. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1833. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1834. _ASUNAME
  1835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1836. for as_dir in $PATH
  1837. do
  1838. IFS=$as_save_IFS
  1839. test -z "$as_dir" && as_dir=.
  1840. $as_echo "PATH: $as_dir"
  1841. done
  1842. IFS=$as_save_IFS
  1843. } >&5
  1844. cat >&5 <<_ACEOF
  1845. ## ----------- ##
  1846. ## Core tests. ##
  1847. ## ----------- ##
  1848. _ACEOF
  1849. # Keep a trace of the command line.
  1850. # Strip out --no-create and --no-recursion so they do not pile up.
  1851. # Strip out --silent because we don't want to record it for future runs.
  1852. # Also quote any args containing shell meta-characters.
  1853. # Make two passes to allow for proper duplicate-argument suppression.
  1854. ac_configure_args=
  1855. ac_configure_args0=
  1856. ac_configure_args1=
  1857. ac_must_keep_next=false
  1858. for ac_pass in 1 2
  1859. do
  1860. for ac_arg
  1861. do
  1862. case $ac_arg in
  1863. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1864. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1865. | -silent | --silent | --silen | --sile | --sil)
  1866. continue ;;
  1867. *\'*)
  1868. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1869. esac
  1870. case $ac_pass in
  1871. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1872. 2)
  1873. as_fn_append ac_configure_args1 " '$ac_arg'"
  1874. if test $ac_must_keep_next = true; then
  1875. ac_must_keep_next=false # Got value, back to normal.
  1876. else
  1877. case $ac_arg in
  1878. *=* | --config-cache | -C | -disable-* | --disable-* \
  1879. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1880. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1881. | -with-* | --with-* | -without-* | --without-* | --x)
  1882. case "$ac_configure_args0 " in
  1883. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1884. esac
  1885. ;;
  1886. -* ) ac_must_keep_next=true ;;
  1887. esac
  1888. fi
  1889. as_fn_append ac_configure_args " '$ac_arg'"
  1890. ;;
  1891. esac
  1892. done
  1893. done
  1894. { ac_configure_args0=; unset ac_configure_args0;}
  1895. { ac_configure_args1=; unset ac_configure_args1;}
  1896. # When interrupted or exit'd, cleanup temporary files, and complete
  1897. # config.log. We remove comments because anyway the quotes in there
  1898. # would cause problems or look ugly.
  1899. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1900. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1901. trap 'exit_status=$?
  1902. # Save into config.log some information that might help in debugging.
  1903. {
  1904. echo
  1905. $as_echo "## ---------------- ##
  1906. ## Cache variables. ##
  1907. ## ---------------- ##"
  1908. echo
  1909. # The following way of writing the cache mishandles newlines in values,
  1910. (
  1911. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1912. eval ac_val=\$$ac_var
  1913. case $ac_val in #(
  1914. *${as_nl}*)
  1915. case $ac_var in #(
  1916. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1917. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1918. esac
  1919. case $ac_var in #(
  1920. _ | IFS | as_nl) ;; #(
  1921. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1922. *) { eval $ac_var=; unset $ac_var;} ;;
  1923. esac ;;
  1924. esac
  1925. done
  1926. (set) 2>&1 |
  1927. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1928. *${as_nl}ac_space=\ *)
  1929. sed -n \
  1930. "s/'\''/'\''\\\\'\'''\''/g;
  1931. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1932. ;; #(
  1933. *)
  1934. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1935. ;;
  1936. esac |
  1937. sort
  1938. )
  1939. echo
  1940. $as_echo "## ----------------- ##
  1941. ## Output variables. ##
  1942. ## ----------------- ##"
  1943. echo
  1944. for ac_var in $ac_subst_vars
  1945. do
  1946. eval ac_val=\$$ac_var
  1947. case $ac_val in
  1948. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1949. esac
  1950. $as_echo "$ac_var='\''$ac_val'\''"
  1951. done | sort
  1952. echo
  1953. if test -n "$ac_subst_files"; then
  1954. $as_echo "## ------------------- ##
  1955. ## File substitutions. ##
  1956. ## ------------------- ##"
  1957. echo
  1958. for ac_var in $ac_subst_files
  1959. do
  1960. eval ac_val=\$$ac_var
  1961. case $ac_val in
  1962. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1963. esac
  1964. $as_echo "$ac_var='\''$ac_val'\''"
  1965. done | sort
  1966. echo
  1967. fi
  1968. if test -s confdefs.h; then
  1969. $as_echo "## ----------- ##
  1970. ## confdefs.h. ##
  1971. ## ----------- ##"
  1972. echo
  1973. cat confdefs.h
  1974. echo
  1975. fi
  1976. test "$ac_signal" != 0 &&
  1977. $as_echo "$as_me: caught signal $ac_signal"
  1978. $as_echo "$as_me: exit $exit_status"
  1979. } >&5
  1980. rm -f core *.core core.conftest.* &&
  1981. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1982. exit $exit_status
  1983. ' 0
  1984. for ac_signal in 1 2 13 15; do
  1985. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1986. done
  1987. ac_signal=0
  1988. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1989. rm -f -r conftest* confdefs.h
  1990. $as_echo "/* confdefs.h */" > confdefs.h
  1991. # Predefined preprocessor variables.
  1992. cat >>confdefs.h <<_ACEOF
  1993. #define PACKAGE_NAME "$PACKAGE_NAME"
  1994. _ACEOF
  1995. cat >>confdefs.h <<_ACEOF
  1996. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1997. _ACEOF
  1998. cat >>confdefs.h <<_ACEOF
  1999. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2000. _ACEOF
  2001. cat >>confdefs.h <<_ACEOF
  2002. #define PACKAGE_STRING "$PACKAGE_STRING"
  2003. _ACEOF
  2004. cat >>confdefs.h <<_ACEOF
  2005. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2006. _ACEOF
  2007. cat >>confdefs.h <<_ACEOF
  2008. #define PACKAGE_URL "$PACKAGE_URL"
  2009. _ACEOF
  2010. # Let the site file select an alternate cache file if it wants to.
  2011. # Prefer an explicitly selected file to automatically selected ones.
  2012. ac_site_file1=NONE
  2013. ac_site_file2=NONE
  2014. if test -n "$CONFIG_SITE"; then
  2015. # We do not want a PATH search for config.site.
  2016. case $CONFIG_SITE in #((
  2017. -*) ac_site_file1=./$CONFIG_SITE;;
  2018. */*) ac_site_file1=$CONFIG_SITE;;
  2019. *) ac_site_file1=./$CONFIG_SITE;;
  2020. esac
  2021. elif test "x$prefix" != xNONE; then
  2022. ac_site_file1=$prefix/share/config.site
  2023. ac_site_file2=$prefix/etc/config.site
  2024. else
  2025. ac_site_file1=$ac_default_prefix/share/config.site
  2026. ac_site_file2=$ac_default_prefix/etc/config.site
  2027. fi
  2028. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2029. do
  2030. test "x$ac_site_file" = xNONE && continue
  2031. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2033. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2034. sed 's/^/| /' "$ac_site_file" >&5
  2035. . "$ac_site_file" \
  2036. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2038. as_fn_error $? "failed to load site script $ac_site_file
  2039. See \`config.log' for more details" "$LINENO" 5; }
  2040. fi
  2041. done
  2042. if test -r "$cache_file"; then
  2043. # Some versions of bash will fail to source /dev/null (special files
  2044. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2045. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2046. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2047. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2048. case $cache_file in
  2049. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2050. *) . "./$cache_file";;
  2051. esac
  2052. fi
  2053. else
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2055. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2056. >$cache_file
  2057. fi
  2058. # Check that the precious variables saved in the cache have kept the same
  2059. # value.
  2060. ac_cache_corrupted=false
  2061. for ac_var in $ac_precious_vars; do
  2062. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2063. eval ac_new_set=\$ac_env_${ac_var}_set
  2064. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2065. eval ac_new_val=\$ac_env_${ac_var}_value
  2066. case $ac_old_set,$ac_new_set in
  2067. set,)
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2069. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2070. ac_cache_corrupted=: ;;
  2071. ,set)
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2073. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2074. ac_cache_corrupted=: ;;
  2075. ,);;
  2076. *)
  2077. if test "x$ac_old_val" != "x$ac_new_val"; then
  2078. # differences in whitespace do not lead to failure.
  2079. ac_old_val_w=`echo x $ac_old_val`
  2080. ac_new_val_w=`echo x $ac_new_val`
  2081. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2083. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2084. ac_cache_corrupted=:
  2085. else
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2087. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2088. eval $ac_var=\$ac_old_val
  2089. fi
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2091. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2093. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2094. fi;;
  2095. esac
  2096. # Pass precious variables to config.status.
  2097. if test "$ac_new_set" = set; then
  2098. case $ac_new_val in
  2099. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2100. *) ac_arg=$ac_var=$ac_new_val ;;
  2101. esac
  2102. case " $ac_configure_args " in
  2103. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2104. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2105. esac
  2106. fi
  2107. done
  2108. if $ac_cache_corrupted; then
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2110. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2112. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2113. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2114. fi
  2115. ## -------------------- ##
  2116. ## Main body of script. ##
  2117. ## -------------------- ##
  2118. ac_ext=c
  2119. ac_cpp='$CPP $CPPFLAGS'
  2120. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2121. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2122. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2123. # Check whether --enable-silent-rules was given.
  2124. if test "${enable_silent_rules+set}" = set; then :
  2125. enableval=$enable_silent_rules;
  2126. fi
  2127. case $enable_silent_rules in # (((
  2128. yes) AM_DEFAULT_VERBOSITY=0;;
  2129. no) AM_DEFAULT_VERBOSITY=1;;
  2130. *) AM_DEFAULT_VERBOSITY=0;;
  2131. esac
  2132. am_make=${MAKE-make}
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2134. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2135. if ${am_cv_make_support_nested_variables+:} false; then :
  2136. $as_echo_n "(cached) " >&6
  2137. else
  2138. if $as_echo 'TRUE=$(BAR$(V))
  2139. BAR0=false
  2140. BAR1=true
  2141. V=1
  2142. am__doit:
  2143. @$(TRUE)
  2144. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2145. am_cv_make_support_nested_variables=yes
  2146. else
  2147. am_cv_make_support_nested_variables=no
  2148. fi
  2149. fi
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2151. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2152. if test $am_cv_make_support_nested_variables = yes; then
  2153. AM_V='$(V)'
  2154. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2155. else
  2156. AM_V=$AM_DEFAULT_VERBOSITY
  2157. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2158. fi
  2159. AM_BACKSLASH='\'
  2160. # For libtool.
  2161. OPUS_LT_CURRENT=5
  2162. OPUS_LT_REVISION=2
  2163. OPUS_LT_AGE=5
  2164. am__api_version='1.15'
  2165. ac_aux_dir=
  2166. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2167. if test -f "$ac_dir/install-sh"; then
  2168. ac_aux_dir=$ac_dir
  2169. ac_install_sh="$ac_aux_dir/install-sh -c"
  2170. break
  2171. elif test -f "$ac_dir/install.sh"; then
  2172. ac_aux_dir=$ac_dir
  2173. ac_install_sh="$ac_aux_dir/install.sh -c"
  2174. break
  2175. elif test -f "$ac_dir/shtool"; then
  2176. ac_aux_dir=$ac_dir
  2177. ac_install_sh="$ac_aux_dir/shtool install -c"
  2178. break
  2179. fi
  2180. done
  2181. if test -z "$ac_aux_dir"; then
  2182. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2183. fi
  2184. # These three variables are undocumented and unsupported,
  2185. # and are intended to be withdrawn in a future Autoconf release.
  2186. # They can cause serious problems if a builder's source tree is in a directory
  2187. # whose full name contains unusual characters.
  2188. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2189. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2190. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2191. # Find a good install program. We prefer a C program (faster),
  2192. # so one script is as good as another. But avoid the broken or
  2193. # incompatible versions:
  2194. # SysV /etc/install, /usr/sbin/install
  2195. # SunOS /usr/etc/install
  2196. # IRIX /sbin/install
  2197. # AIX /bin/install
  2198. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2199. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2200. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2201. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2202. # OS/2's system install, which has a completely different semantic
  2203. # ./install, which can be erroneously created by make from ./install.sh.
  2204. # Reject install programs that cannot install multiple files.
  2205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2206. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2207. if test -z "$INSTALL"; then
  2208. if ${ac_cv_path_install+:} false; then :
  2209. $as_echo_n "(cached) " >&6
  2210. else
  2211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2212. for as_dir in $PATH
  2213. do
  2214. IFS=$as_save_IFS
  2215. test -z "$as_dir" && as_dir=.
  2216. # Account for people who put trailing slashes in PATH elements.
  2217. case $as_dir/ in #((
  2218. ./ | .// | /[cC]/* | \
  2219. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2220. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2221. /usr/ucb/* ) ;;
  2222. *)
  2223. # OSF1 and SCO ODT 3.0 have their own names for install.
  2224. # Don't use installbsd from OSF since it installs stuff as root
  2225. # by default.
  2226. for ac_prog in ginstall scoinst install; do
  2227. for ac_exec_ext in '' $ac_executable_extensions; do
  2228. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2229. if test $ac_prog = install &&
  2230. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2231. # AIX install. It has an incompatible calling convention.
  2232. :
  2233. elif test $ac_prog = install &&
  2234. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2235. # program-specific install script used by HP pwplus--don't use.
  2236. :
  2237. else
  2238. rm -rf conftest.one conftest.two conftest.dir
  2239. echo one > conftest.one
  2240. echo two > conftest.two
  2241. mkdir conftest.dir
  2242. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2243. test -s conftest.one && test -s conftest.two &&
  2244. test -s conftest.dir/conftest.one &&
  2245. test -s conftest.dir/conftest.two
  2246. then
  2247. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2248. break 3
  2249. fi
  2250. fi
  2251. fi
  2252. done
  2253. done
  2254. ;;
  2255. esac
  2256. done
  2257. IFS=$as_save_IFS
  2258. rm -rf conftest.one conftest.two conftest.dir
  2259. fi
  2260. if test "${ac_cv_path_install+set}" = set; then
  2261. INSTALL=$ac_cv_path_install
  2262. else
  2263. # As a last resort, use the slow shell script. Don't cache a
  2264. # value for INSTALL within a source directory, because that will
  2265. # break other packages using the cache if that directory is
  2266. # removed, or if the value is a relative name.
  2267. INSTALL=$ac_install_sh
  2268. fi
  2269. fi
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2271. $as_echo "$INSTALL" >&6; }
  2272. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2273. # It thinks the first close brace ends the variable substitution.
  2274. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2275. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2276. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2278. $as_echo_n "checking whether build environment is sane... " >&6; }
  2279. # Reject unsafe characters in $srcdir or the absolute working directory
  2280. # name. Accept space and tab only in the latter.
  2281. am_lf='
  2282. '
  2283. case `pwd` in
  2284. *[\\\"\#\$\&\'\`$am_lf]*)
  2285. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2286. esac
  2287. case $srcdir in
  2288. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2289. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2290. esac
  2291. # Do 'set' in a subshell so we don't clobber the current shell's
  2292. # arguments. Must try -L first in case configure is actually a
  2293. # symlink; some systems play weird games with the mod time of symlinks
  2294. # (eg FreeBSD returns the mod time of the symlink's containing
  2295. # directory).
  2296. if (
  2297. am_has_slept=no
  2298. for am_try in 1 2; do
  2299. echo "timestamp, slept: $am_has_slept" > conftest.file
  2300. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2301. if test "$*" = "X"; then
  2302. # -L didn't work.
  2303. set X `ls -t "$srcdir/configure" conftest.file`
  2304. fi
  2305. if test "$*" != "X $srcdir/configure conftest.file" \
  2306. && test "$*" != "X conftest.file $srcdir/configure"; then
  2307. # If neither matched, then we have a broken ls. This can happen
  2308. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2309. # broken ls alias from the environment. This has actually
  2310. # happened. Such a system could not be considered "sane".
  2311. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2312. alias in your environment" "$LINENO" 5
  2313. fi
  2314. if test "$2" = conftest.file || test $am_try -eq 2; then
  2315. break
  2316. fi
  2317. # Just in case.
  2318. sleep 1
  2319. am_has_slept=yes
  2320. done
  2321. test "$2" = conftest.file
  2322. )
  2323. then
  2324. # Ok.
  2325. :
  2326. else
  2327. as_fn_error $? "newly created file is older than distributed files!
  2328. Check your system clock" "$LINENO" 5
  2329. fi
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2331. $as_echo "yes" >&6; }
  2332. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2333. # generated files are strictly newer.
  2334. am_sleep_pid=
  2335. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2336. ( sleep 1 ) &
  2337. am_sleep_pid=$!
  2338. fi
  2339. rm -f conftest.file
  2340. test "$program_prefix" != NONE &&
  2341. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2342. # Use a double $ so make ignores it.
  2343. test "$program_suffix" != NONE &&
  2344. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2345. # Double any \ or $.
  2346. # By default was `s,x,x', remove it if useless.
  2347. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2348. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2349. # Expand $ac_aux_dir to an absolute path.
  2350. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2351. if test x"${MISSING+set}" != xset; then
  2352. case $am_aux_dir in
  2353. *\ * | *\ *)
  2354. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2355. *)
  2356. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2357. esac
  2358. fi
  2359. # Use eval to expand $SHELL
  2360. if eval "$MISSING --is-lightweight"; then
  2361. am_missing_run="$MISSING "
  2362. else
  2363. am_missing_run=
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2365. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2366. fi
  2367. if test x"${install_sh+set}" != xset; then
  2368. case $am_aux_dir in
  2369. *\ * | *\ *)
  2370. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2371. *)
  2372. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2373. esac
  2374. fi
  2375. # Installed binaries are usually stripped using 'strip' when the user
  2376. # run "make install-strip". However 'strip' might not be the right
  2377. # tool to use in cross-compilation environments, therefore Automake
  2378. # will honor the 'STRIP' environment variable to overrule this program.
  2379. if test "$cross_compiling" != no; then
  2380. if test -n "$ac_tool_prefix"; then
  2381. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2382. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2384. $as_echo_n "checking for $ac_word... " >&6; }
  2385. if ${ac_cv_prog_STRIP+:} false; then :
  2386. $as_echo_n "(cached) " >&6
  2387. else
  2388. if test -n "$STRIP"; then
  2389. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2390. else
  2391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2392. for as_dir in $PATH
  2393. do
  2394. IFS=$as_save_IFS
  2395. test -z "$as_dir" && as_dir=.
  2396. for ac_exec_ext in '' $ac_executable_extensions; do
  2397. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2398. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2400. break 2
  2401. fi
  2402. done
  2403. done
  2404. IFS=$as_save_IFS
  2405. fi
  2406. fi
  2407. STRIP=$ac_cv_prog_STRIP
  2408. if test -n "$STRIP"; then
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2410. $as_echo "$STRIP" >&6; }
  2411. else
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2413. $as_echo "no" >&6; }
  2414. fi
  2415. fi
  2416. if test -z "$ac_cv_prog_STRIP"; then
  2417. ac_ct_STRIP=$STRIP
  2418. # Extract the first word of "strip", so it can be a program name with args.
  2419. set dummy strip; ac_word=$2
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2421. $as_echo_n "checking for $ac_word... " >&6; }
  2422. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2423. $as_echo_n "(cached) " >&6
  2424. else
  2425. if test -n "$ac_ct_STRIP"; then
  2426. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2427. else
  2428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2429. for as_dir in $PATH
  2430. do
  2431. IFS=$as_save_IFS
  2432. test -z "$as_dir" && as_dir=.
  2433. for ac_exec_ext in '' $ac_executable_extensions; do
  2434. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2435. ac_cv_prog_ac_ct_STRIP="strip"
  2436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2437. break 2
  2438. fi
  2439. done
  2440. done
  2441. IFS=$as_save_IFS
  2442. fi
  2443. fi
  2444. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2445. if test -n "$ac_ct_STRIP"; then
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2447. $as_echo "$ac_ct_STRIP" >&6; }
  2448. else
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2450. $as_echo "no" >&6; }
  2451. fi
  2452. if test "x$ac_ct_STRIP" = x; then
  2453. STRIP=":"
  2454. else
  2455. case $cross_compiling:$ac_tool_warned in
  2456. yes:)
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2459. ac_tool_warned=yes ;;
  2460. esac
  2461. STRIP=$ac_ct_STRIP
  2462. fi
  2463. else
  2464. STRIP="$ac_cv_prog_STRIP"
  2465. fi
  2466. fi
  2467. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2469. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2470. if test -z "$MKDIR_P"; then
  2471. if ${ac_cv_path_mkdir+:} false; then :
  2472. $as_echo_n "(cached) " >&6
  2473. else
  2474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2475. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2476. do
  2477. IFS=$as_save_IFS
  2478. test -z "$as_dir" && as_dir=.
  2479. for ac_prog in mkdir gmkdir; do
  2480. for ac_exec_ext in '' $ac_executable_extensions; do
  2481. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2482. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2483. 'mkdir (GNU coreutils) '* | \
  2484. 'mkdir (coreutils) '* | \
  2485. 'mkdir (fileutils) '4.1*)
  2486. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2487. break 3;;
  2488. esac
  2489. done
  2490. done
  2491. done
  2492. IFS=$as_save_IFS
  2493. fi
  2494. test -d ./--version && rmdir ./--version
  2495. if test "${ac_cv_path_mkdir+set}" = set; then
  2496. MKDIR_P="$ac_cv_path_mkdir -p"
  2497. else
  2498. # As a last resort, use the slow shell script. Don't cache a
  2499. # value for MKDIR_P within a source directory, because that will
  2500. # break other packages using the cache if that directory is
  2501. # removed, or if the value is a relative name.
  2502. MKDIR_P="$ac_install_sh -d"
  2503. fi
  2504. fi
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2506. $as_echo "$MKDIR_P" >&6; }
  2507. for ac_prog in gawk mawk nawk awk
  2508. do
  2509. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2510. set dummy $ac_prog; ac_word=$2
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2512. $as_echo_n "checking for $ac_word... " >&6; }
  2513. if ${ac_cv_prog_AWK+:} false; then :
  2514. $as_echo_n "(cached) " >&6
  2515. else
  2516. if test -n "$AWK"; then
  2517. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2518. else
  2519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2520. for as_dir in $PATH
  2521. do
  2522. IFS=$as_save_IFS
  2523. test -z "$as_dir" && as_dir=.
  2524. for ac_exec_ext in '' $ac_executable_extensions; do
  2525. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2526. ac_cv_prog_AWK="$ac_prog"
  2527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2528. break 2
  2529. fi
  2530. done
  2531. done
  2532. IFS=$as_save_IFS
  2533. fi
  2534. fi
  2535. AWK=$ac_cv_prog_AWK
  2536. if test -n "$AWK"; then
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2538. $as_echo "$AWK" >&6; }
  2539. else
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2541. $as_echo "no" >&6; }
  2542. fi
  2543. test -n "$AWK" && break
  2544. done
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2546. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2547. set x ${MAKE-make}
  2548. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2549. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2550. $as_echo_n "(cached) " >&6
  2551. else
  2552. cat >conftest.make <<\_ACEOF
  2553. SHELL = /bin/sh
  2554. all:
  2555. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2556. _ACEOF
  2557. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2558. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2559. *@@@%%%=?*=@@@%%%*)
  2560. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2561. *)
  2562. eval ac_cv_prog_make_${ac_make}_set=no;;
  2563. esac
  2564. rm -f conftest.make
  2565. fi
  2566. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2568. $as_echo "yes" >&6; }
  2569. SET_MAKE=
  2570. else
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2572. $as_echo "no" >&6; }
  2573. SET_MAKE="MAKE=${MAKE-make}"
  2574. fi
  2575. rm -rf .tst 2>/dev/null
  2576. mkdir .tst 2>/dev/null
  2577. if test -d .tst; then
  2578. am__leading_dot=.
  2579. else
  2580. am__leading_dot=_
  2581. fi
  2582. rmdir .tst 2>/dev/null
  2583. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2584. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2585. # is not polluted with repeated "-I."
  2586. am__isrc=' -I$(srcdir)'
  2587. # test to see if srcdir already configured
  2588. if test -f $srcdir/config.status; then
  2589. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2590. fi
  2591. fi
  2592. # test whether we have cygpath
  2593. if test -z "$CYGPATH_W"; then
  2594. if (cygpath --version) >/dev/null 2>/dev/null; then
  2595. CYGPATH_W='cygpath -w'
  2596. else
  2597. CYGPATH_W=echo
  2598. fi
  2599. fi
  2600. # Define the identity of the package.
  2601. PACKAGE='opus'
  2602. VERSION='1.1.2'
  2603. # Some tools Automake needs.
  2604. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2605. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2606. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2607. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2608. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2609. # For better backward compatibility. To be removed once Automake 1.9.x
  2610. # dies out for good. For more background, see:
  2611. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2612. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2613. mkdir_p='$(MKDIR_P)'
  2614. # We need awk for the "check" target (and possibly the TAP driver). The
  2615. # system "awk" is bad on some platforms.
  2616. # Always define AMTAR for backward compatibility. Yes, it's still used
  2617. # in the wild :-( We should find a proper way to deprecate it ...
  2618. AMTAR='$${TAR-tar}'
  2619. # We'll loop over all known methods to create a tar archive until one works.
  2620. _am_tools='gnutar pax cpio none'
  2621. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2622. # POSIX will say in a future version that running "rm -f" with no argument
  2623. # is OK; and we want to be able to make that assumption in our Makefile
  2624. # recipes. So use an aggressive probe to check that the usage we want is
  2625. # actually supported "in the wild" to an acceptable degree.
  2626. # See automake bug#10828.
  2627. # To make any issue more visible, cause the running configure to be aborted
  2628. # by default if the 'rm' program in use doesn't match our expectations; the
  2629. # user can still override this though.
  2630. if rm -f && rm -fr && rm -rf; then : OK; else
  2631. cat >&2 <<'END'
  2632. Oops!
  2633. Your 'rm' program seems unable to run without file operands specified
  2634. on the command line, even when the '-f' option is present. This is contrary
  2635. to the behaviour of most rm programs out there, and not conforming with
  2636. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2637. Please tell bug-automake@gnu.org about your system, including the value
  2638. of your $PATH and any error possibly output before this message. This
  2639. can help us improve future automake versions.
  2640. END
  2641. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2642. echo 'Configuration will proceed anyway, since you have set the' >&2
  2643. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2644. echo >&2
  2645. else
  2646. cat >&2 <<'END'
  2647. Aborting the configuration process, to ensure you take notice of the issue.
  2648. You can download and install GNU coreutils to get an 'rm' implementation
  2649. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2650. If you want to complete the configuration process using your problematic
  2651. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2652. to "yes", and re-run configure.
  2653. END
  2654. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2655. fi
  2656. fi
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2658. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2659. # Check whether --enable-maintainer-mode was given.
  2660. if test "${enable_maintainer_mode+set}" = set; then :
  2661. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2662. else
  2663. USE_MAINTAINER_MODE=yes
  2664. fi
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2666. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2667. if test $USE_MAINTAINER_MODE = yes; then
  2668. MAINTAINER_MODE_TRUE=
  2669. MAINTAINER_MODE_FALSE='#'
  2670. else
  2671. MAINTAINER_MODE_TRUE='#'
  2672. MAINTAINER_MODE_FALSE=
  2673. fi
  2674. MAINT=$MAINTAINER_MODE_TRUE
  2675. # Make sure we can run config.sub.
  2676. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2677. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2679. $as_echo_n "checking build system type... " >&6; }
  2680. if ${ac_cv_build+:} false; then :
  2681. $as_echo_n "(cached) " >&6
  2682. else
  2683. ac_build_alias=$build_alias
  2684. test "x$ac_build_alias" = x &&
  2685. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2686. test "x$ac_build_alias" = x &&
  2687. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2688. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2689. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2690. fi
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2692. $as_echo "$ac_cv_build" >&6; }
  2693. case $ac_cv_build in
  2694. *-*-*) ;;
  2695. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2696. esac
  2697. build=$ac_cv_build
  2698. ac_save_IFS=$IFS; IFS='-'
  2699. set x $ac_cv_build
  2700. shift
  2701. build_cpu=$1
  2702. build_vendor=$2
  2703. shift; shift
  2704. # Remember, the first character of IFS is used to create $*,
  2705. # except with old shells:
  2706. build_os=$*
  2707. IFS=$ac_save_IFS
  2708. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2710. $as_echo_n "checking host system type... " >&6; }
  2711. if ${ac_cv_host+:} false; then :
  2712. $as_echo_n "(cached) " >&6
  2713. else
  2714. if test "x$host_alias" = x; then
  2715. ac_cv_host=$ac_cv_build
  2716. else
  2717. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2718. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2719. fi
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2722. $as_echo "$ac_cv_host" >&6; }
  2723. case $ac_cv_host in
  2724. *-*-*) ;;
  2725. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2726. esac
  2727. host=$ac_cv_host
  2728. ac_save_IFS=$IFS; IFS='-'
  2729. set x $ac_cv_host
  2730. shift
  2731. host_cpu=$1
  2732. host_vendor=$2
  2733. shift; shift
  2734. # Remember, the first character of IFS is used to create $*,
  2735. # except with old shells:
  2736. host_os=$*
  2737. IFS=$ac_save_IFS
  2738. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2739. case $host_os in
  2740. *mingw32* ) MINGW32=yes;;
  2741. * ) MINGW32=no;;
  2742. esac
  2743. case `pwd` in
  2744. *\ * | *\ *)
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2746. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2747. esac
  2748. macro_version='2.4.2'
  2749. macro_revision='1.3337'
  2750. ltmain="$ac_aux_dir/ltmain.sh"
  2751. # Backslashify metacharacters that are still active within
  2752. # double-quoted strings.
  2753. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2754. # Same as above, but do not quote variable references.
  2755. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2756. # Sed substitution to delay expansion of an escaped shell variable in a
  2757. # double_quote_subst'ed string.
  2758. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2759. # Sed substitution to delay expansion of an escaped single quote.
  2760. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2761. # Sed substitution to avoid accidental globbing in evaled expressions
  2762. no_glob_subst='s/\*/\\\*/g'
  2763. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2764. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2765. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2767. $as_echo_n "checking how to print strings... " >&6; }
  2768. # Test print first, because it will be a builtin if present.
  2769. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2770. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2771. ECHO='print -r --'
  2772. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2773. ECHO='printf %s\n'
  2774. else
  2775. # Use this function as a fallback that always works.
  2776. func_fallback_echo ()
  2777. {
  2778. eval 'cat <<_LTECHO_EOF
  2779. $1
  2780. _LTECHO_EOF'
  2781. }
  2782. ECHO='func_fallback_echo'
  2783. fi
  2784. # func_echo_all arg...
  2785. # Invoke $ECHO with all args, space-separated.
  2786. func_echo_all ()
  2787. {
  2788. $ECHO ""
  2789. }
  2790. case "$ECHO" in
  2791. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2792. $as_echo "printf" >&6; } ;;
  2793. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2794. $as_echo "print -r" >&6; } ;;
  2795. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2796. $as_echo "cat" >&6; } ;;
  2797. esac
  2798. DEPDIR="${am__leading_dot}deps"
  2799. ac_config_commands="$ac_config_commands depfiles"
  2800. am_make=${MAKE-make}
  2801. cat > confinc << 'END'
  2802. am__doit:
  2803. @echo this is the am__doit target
  2804. .PHONY: am__doit
  2805. END
  2806. # If we don't find an include directive, just comment out the code.
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2808. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2809. am__include="#"
  2810. am__quote=
  2811. _am_result=none
  2812. # First try GNU make style include.
  2813. echo "include confinc" > confmf
  2814. # Ignore all kinds of additional output from 'make'.
  2815. case `$am_make -s -f confmf 2> /dev/null` in #(
  2816. *the\ am__doit\ target*)
  2817. am__include=include
  2818. am__quote=
  2819. _am_result=GNU
  2820. ;;
  2821. esac
  2822. # Now try BSD make style include.
  2823. if test "$am__include" = "#"; then
  2824. echo '.include "confinc"' > confmf
  2825. case `$am_make -s -f confmf 2> /dev/null` in #(
  2826. *the\ am__doit\ target*)
  2827. am__include=.include
  2828. am__quote="\""
  2829. _am_result=BSD
  2830. ;;
  2831. esac
  2832. fi
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2834. $as_echo "$_am_result" >&6; }
  2835. rm -f confinc confmf
  2836. # Check whether --enable-dependency-tracking was given.
  2837. if test "${enable_dependency_tracking+set}" = set; then :
  2838. enableval=$enable_dependency_tracking;
  2839. fi
  2840. if test "x$enable_dependency_tracking" != xno; then
  2841. am_depcomp="$ac_aux_dir/depcomp"
  2842. AMDEPBACKSLASH='\'
  2843. am__nodep='_no'
  2844. fi
  2845. if test "x$enable_dependency_tracking" != xno; then
  2846. AMDEP_TRUE=
  2847. AMDEP_FALSE='#'
  2848. else
  2849. AMDEP_TRUE='#'
  2850. AMDEP_FALSE=
  2851. fi
  2852. ac_ext=c
  2853. ac_cpp='$CPP $CPPFLAGS'
  2854. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2855. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2856. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2857. if test -n "$ac_tool_prefix"; then
  2858. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2859. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2861. $as_echo_n "checking for $ac_word... " >&6; }
  2862. if ${ac_cv_prog_CC+:} false; then :
  2863. $as_echo_n "(cached) " >&6
  2864. else
  2865. if test -n "$CC"; then
  2866. ac_cv_prog_CC="$CC" # Let the user override the test.
  2867. else
  2868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2869. for as_dir in $PATH
  2870. do
  2871. IFS=$as_save_IFS
  2872. test -z "$as_dir" && as_dir=.
  2873. for ac_exec_ext in '' $ac_executable_extensions; do
  2874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2875. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2877. break 2
  2878. fi
  2879. done
  2880. done
  2881. IFS=$as_save_IFS
  2882. fi
  2883. fi
  2884. CC=$ac_cv_prog_CC
  2885. if test -n "$CC"; then
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2887. $as_echo "$CC" >&6; }
  2888. else
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2890. $as_echo "no" >&6; }
  2891. fi
  2892. fi
  2893. if test -z "$ac_cv_prog_CC"; then
  2894. ac_ct_CC=$CC
  2895. # Extract the first word of "gcc", so it can be a program name with args.
  2896. set dummy gcc; ac_word=$2
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2898. $as_echo_n "checking for $ac_word... " >&6; }
  2899. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2900. $as_echo_n "(cached) " >&6
  2901. else
  2902. if test -n "$ac_ct_CC"; then
  2903. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2904. else
  2905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2906. for as_dir in $PATH
  2907. do
  2908. IFS=$as_save_IFS
  2909. test -z "$as_dir" && as_dir=.
  2910. for ac_exec_ext in '' $ac_executable_extensions; do
  2911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2912. ac_cv_prog_ac_ct_CC="gcc"
  2913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2914. break 2
  2915. fi
  2916. done
  2917. done
  2918. IFS=$as_save_IFS
  2919. fi
  2920. fi
  2921. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2922. if test -n "$ac_ct_CC"; then
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2924. $as_echo "$ac_ct_CC" >&6; }
  2925. else
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2927. $as_echo "no" >&6; }
  2928. fi
  2929. if test "x$ac_ct_CC" = x; then
  2930. CC=""
  2931. else
  2932. case $cross_compiling:$ac_tool_warned in
  2933. yes:)
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2935. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2936. ac_tool_warned=yes ;;
  2937. esac
  2938. CC=$ac_ct_CC
  2939. fi
  2940. else
  2941. CC="$ac_cv_prog_CC"
  2942. fi
  2943. if test -z "$CC"; then
  2944. if test -n "$ac_tool_prefix"; then
  2945. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2946. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. $as_echo_n "checking for $ac_word... " >&6; }
  2949. if ${ac_cv_prog_CC+:} false; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. if test -n "$CC"; then
  2953. ac_cv_prog_CC="$CC" # Let the user override the test.
  2954. else
  2955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2956. for as_dir in $PATH
  2957. do
  2958. IFS=$as_save_IFS
  2959. test -z "$as_dir" && as_dir=.
  2960. for ac_exec_ext in '' $ac_executable_extensions; do
  2961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2962. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2964. break 2
  2965. fi
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. fi
  2970. fi
  2971. CC=$ac_cv_prog_CC
  2972. if test -n "$CC"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2974. $as_echo "$CC" >&6; }
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2977. $as_echo "no" >&6; }
  2978. fi
  2979. fi
  2980. fi
  2981. if test -z "$CC"; then
  2982. # Extract the first word of "cc", so it can be a program name with args.
  2983. set dummy cc; ac_word=$2
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2985. $as_echo_n "checking for $ac_word... " >&6; }
  2986. if ${ac_cv_prog_CC+:} false; then :
  2987. $as_echo_n "(cached) " >&6
  2988. else
  2989. if test -n "$CC"; then
  2990. ac_cv_prog_CC="$CC" # Let the user override the test.
  2991. else
  2992. ac_prog_rejected=no
  2993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2994. for as_dir in $PATH
  2995. do
  2996. IFS=$as_save_IFS
  2997. test -z "$as_dir" && as_dir=.
  2998. for ac_exec_ext in '' $ac_executable_extensions; do
  2999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3000. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3001. ac_prog_rejected=yes
  3002. continue
  3003. fi
  3004. ac_cv_prog_CC="cc"
  3005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3006. break 2
  3007. fi
  3008. done
  3009. done
  3010. IFS=$as_save_IFS
  3011. if test $ac_prog_rejected = yes; then
  3012. # We found a bogon in the path, so make sure we never use it.
  3013. set dummy $ac_cv_prog_CC
  3014. shift
  3015. if test $# != 0; then
  3016. # We chose a different compiler from the bogus one.
  3017. # However, it has the same basename, so the bogon will be chosen
  3018. # first if we set CC to just the basename; use the full file name.
  3019. shift
  3020. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3021. fi
  3022. fi
  3023. fi
  3024. fi
  3025. CC=$ac_cv_prog_CC
  3026. if test -n "$CC"; then
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3028. $as_echo "$CC" >&6; }
  3029. else
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3031. $as_echo "no" >&6; }
  3032. fi
  3033. fi
  3034. if test -z "$CC"; then
  3035. if test -n "$ac_tool_prefix"; then
  3036. for ac_prog in cl.exe
  3037. do
  3038. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3039. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3041. $as_echo_n "checking for $ac_word... " >&6; }
  3042. if ${ac_cv_prog_CC+:} false; then :
  3043. $as_echo_n "(cached) " >&6
  3044. else
  3045. if test -n "$CC"; then
  3046. ac_cv_prog_CC="$CC" # Let the user override the test.
  3047. else
  3048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3049. for as_dir in $PATH
  3050. do
  3051. IFS=$as_save_IFS
  3052. test -z "$as_dir" && as_dir=.
  3053. for ac_exec_ext in '' $ac_executable_extensions; do
  3054. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3055. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3057. break 2
  3058. fi
  3059. done
  3060. done
  3061. IFS=$as_save_IFS
  3062. fi
  3063. fi
  3064. CC=$ac_cv_prog_CC
  3065. if test -n "$CC"; then
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3067. $as_echo "$CC" >&6; }
  3068. else
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3070. $as_echo "no" >&6; }
  3071. fi
  3072. test -n "$CC" && break
  3073. done
  3074. fi
  3075. if test -z "$CC"; then
  3076. ac_ct_CC=$CC
  3077. for ac_prog in cl.exe
  3078. do
  3079. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3080. set dummy $ac_prog; ac_word=$2
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3082. $as_echo_n "checking for $ac_word... " >&6; }
  3083. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. if test -n "$ac_ct_CC"; then
  3087. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3088. else
  3089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3090. for as_dir in $PATH
  3091. do
  3092. IFS=$as_save_IFS
  3093. test -z "$as_dir" && as_dir=.
  3094. for ac_exec_ext in '' $ac_executable_extensions; do
  3095. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3096. ac_cv_prog_ac_ct_CC="$ac_prog"
  3097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3098. break 2
  3099. fi
  3100. done
  3101. done
  3102. IFS=$as_save_IFS
  3103. fi
  3104. fi
  3105. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3106. if test -n "$ac_ct_CC"; then
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3108. $as_echo "$ac_ct_CC" >&6; }
  3109. else
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3111. $as_echo "no" >&6; }
  3112. fi
  3113. test -n "$ac_ct_CC" && break
  3114. done
  3115. if test "x$ac_ct_CC" = x; then
  3116. CC=""
  3117. else
  3118. case $cross_compiling:$ac_tool_warned in
  3119. yes:)
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3121. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3122. ac_tool_warned=yes ;;
  3123. esac
  3124. CC=$ac_ct_CC
  3125. fi
  3126. fi
  3127. fi
  3128. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3129. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3130. as_fn_error $? "no acceptable C compiler found in \$PATH
  3131. See \`config.log' for more details" "$LINENO" 5; }
  3132. # Provide some information about the compiler.
  3133. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3134. set X $ac_compile
  3135. ac_compiler=$2
  3136. for ac_option in --version -v -V -qversion; do
  3137. { { ac_try="$ac_compiler $ac_option >&5"
  3138. case "(($ac_try" in
  3139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3140. *) ac_try_echo=$ac_try;;
  3141. esac
  3142. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3143. $as_echo "$ac_try_echo"; } >&5
  3144. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3145. ac_status=$?
  3146. if test -s conftest.err; then
  3147. sed '10a\
  3148. ... rest of stderr output deleted ...
  3149. 10q' conftest.err >conftest.er1
  3150. cat conftest.er1 >&5
  3151. fi
  3152. rm -f conftest.er1 conftest.err
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3154. test $ac_status = 0; }
  3155. done
  3156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3157. /* end confdefs.h. */
  3158. int
  3159. main ()
  3160. {
  3161. ;
  3162. return 0;
  3163. }
  3164. _ACEOF
  3165. ac_clean_files_save=$ac_clean_files
  3166. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3167. # Try to create an executable without -o first, disregard a.out.
  3168. # It will help us diagnose broken compilers, and finding out an intuition
  3169. # of exeext.
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3171. $as_echo_n "checking whether the C compiler works... " >&6; }
  3172. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3173. # The possible output files:
  3174. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3175. ac_rmfiles=
  3176. for ac_file in $ac_files
  3177. do
  3178. case $ac_file in
  3179. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3180. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3181. esac
  3182. done
  3183. rm -f $ac_rmfiles
  3184. if { { ac_try="$ac_link_default"
  3185. case "(($ac_try" in
  3186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3187. *) ac_try_echo=$ac_try;;
  3188. esac
  3189. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3190. $as_echo "$ac_try_echo"; } >&5
  3191. (eval "$ac_link_default") 2>&5
  3192. ac_status=$?
  3193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3194. test $ac_status = 0; }; then :
  3195. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3196. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3197. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3198. # so that the user can short-circuit this test for compilers unknown to
  3199. # Autoconf.
  3200. for ac_file in $ac_files ''
  3201. do
  3202. test -f "$ac_file" || continue
  3203. case $ac_file in
  3204. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3205. ;;
  3206. [ab].out )
  3207. # We found the default executable, but exeext='' is most
  3208. # certainly right.
  3209. break;;
  3210. *.* )
  3211. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3212. then :; else
  3213. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3214. fi
  3215. # We set ac_cv_exeext here because the later test for it is not
  3216. # safe: cross compilers may not add the suffix if given an `-o'
  3217. # argument, so we may need to know it at that point already.
  3218. # Even if this section looks crufty: it has the advantage of
  3219. # actually working.
  3220. break;;
  3221. * )
  3222. break;;
  3223. esac
  3224. done
  3225. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3226. else
  3227. ac_file=''
  3228. fi
  3229. if test -z "$ac_file"; then :
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3231. $as_echo "no" >&6; }
  3232. $as_echo "$as_me: failed program was:" >&5
  3233. sed 's/^/| /' conftest.$ac_ext >&5
  3234. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3235. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3236. as_fn_error 77 "C compiler cannot create executables
  3237. See \`config.log' for more details" "$LINENO" 5; }
  3238. else
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3240. $as_echo "yes" >&6; }
  3241. fi
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3243. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3245. $as_echo "$ac_file" >&6; }
  3246. ac_exeext=$ac_cv_exeext
  3247. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3248. ac_clean_files=$ac_clean_files_save
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3250. $as_echo_n "checking for suffix of executables... " >&6; }
  3251. if { { ac_try="$ac_link"
  3252. case "(($ac_try" in
  3253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3254. *) ac_try_echo=$ac_try;;
  3255. esac
  3256. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3257. $as_echo "$ac_try_echo"; } >&5
  3258. (eval "$ac_link") 2>&5
  3259. ac_status=$?
  3260. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3261. test $ac_status = 0; }; then :
  3262. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3263. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3264. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3265. # `rm'.
  3266. for ac_file in conftest.exe conftest conftest.*; do
  3267. test -f "$ac_file" || continue
  3268. case $ac_file in
  3269. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3270. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3271. break;;
  3272. * ) break;;
  3273. esac
  3274. done
  3275. else
  3276. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3277. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3278. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3279. See \`config.log' for more details" "$LINENO" 5; }
  3280. fi
  3281. rm -f conftest conftest$ac_cv_exeext
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3283. $as_echo "$ac_cv_exeext" >&6; }
  3284. rm -f conftest.$ac_ext
  3285. EXEEXT=$ac_cv_exeext
  3286. ac_exeext=$EXEEXT
  3287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3288. /* end confdefs.h. */
  3289. #include <stdio.h>
  3290. int
  3291. main ()
  3292. {
  3293. FILE *f = fopen ("conftest.out", "w");
  3294. return ferror (f) || fclose (f) != 0;
  3295. ;
  3296. return 0;
  3297. }
  3298. _ACEOF
  3299. ac_clean_files="$ac_clean_files conftest.out"
  3300. # Check that the compiler produces executables we can run. If not, either
  3301. # the compiler is broken, or we cross compile.
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3303. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3304. if test "$cross_compiling" != yes; then
  3305. { { ac_try="$ac_link"
  3306. case "(($ac_try" in
  3307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3308. *) ac_try_echo=$ac_try;;
  3309. esac
  3310. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3311. $as_echo "$ac_try_echo"; } >&5
  3312. (eval "$ac_link") 2>&5
  3313. ac_status=$?
  3314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3315. test $ac_status = 0; }
  3316. if { ac_try='./conftest$ac_cv_exeext'
  3317. { { case "(($ac_try" in
  3318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3319. *) ac_try_echo=$ac_try;;
  3320. esac
  3321. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3322. $as_echo "$ac_try_echo"; } >&5
  3323. (eval "$ac_try") 2>&5
  3324. ac_status=$?
  3325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3326. test $ac_status = 0; }; }; then
  3327. cross_compiling=no
  3328. else
  3329. if test "$cross_compiling" = maybe; then
  3330. cross_compiling=yes
  3331. else
  3332. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3333. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3334. as_fn_error $? "cannot run C compiled programs.
  3335. If you meant to cross compile, use \`--host'.
  3336. See \`config.log' for more details" "$LINENO" 5; }
  3337. fi
  3338. fi
  3339. fi
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3341. $as_echo "$cross_compiling" >&6; }
  3342. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3343. ac_clean_files=$ac_clean_files_save
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3345. $as_echo_n "checking for suffix of object files... " >&6; }
  3346. if ${ac_cv_objext+:} false; then :
  3347. $as_echo_n "(cached) " >&6
  3348. else
  3349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3350. /* end confdefs.h. */
  3351. int
  3352. main ()
  3353. {
  3354. ;
  3355. return 0;
  3356. }
  3357. _ACEOF
  3358. rm -f conftest.o conftest.obj
  3359. if { { ac_try="$ac_compile"
  3360. case "(($ac_try" in
  3361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3362. *) ac_try_echo=$ac_try;;
  3363. esac
  3364. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3365. $as_echo "$ac_try_echo"; } >&5
  3366. (eval "$ac_compile") 2>&5
  3367. ac_status=$?
  3368. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3369. test $ac_status = 0; }; then :
  3370. for ac_file in conftest.o conftest.obj conftest.*; do
  3371. test -f "$ac_file" || continue;
  3372. case $ac_file in
  3373. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3374. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3375. break;;
  3376. esac
  3377. done
  3378. else
  3379. $as_echo "$as_me: failed program was:" >&5
  3380. sed 's/^/| /' conftest.$ac_ext >&5
  3381. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3382. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3383. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3384. See \`config.log' for more details" "$LINENO" 5; }
  3385. fi
  3386. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3387. fi
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3389. $as_echo "$ac_cv_objext" >&6; }
  3390. OBJEXT=$ac_cv_objext
  3391. ac_objext=$OBJEXT
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3393. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3394. if ${ac_cv_c_compiler_gnu+:} false; then :
  3395. $as_echo_n "(cached) " >&6
  3396. else
  3397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3398. /* end confdefs.h. */
  3399. int
  3400. main ()
  3401. {
  3402. #ifndef __GNUC__
  3403. choke me
  3404. #endif
  3405. ;
  3406. return 0;
  3407. }
  3408. _ACEOF
  3409. if ac_fn_c_try_compile "$LINENO"; then :
  3410. ac_compiler_gnu=yes
  3411. else
  3412. ac_compiler_gnu=no
  3413. fi
  3414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3415. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3416. fi
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3418. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3419. if test $ac_compiler_gnu = yes; then
  3420. GCC=yes
  3421. else
  3422. GCC=
  3423. fi
  3424. ac_test_CFLAGS=${CFLAGS+set}
  3425. ac_save_CFLAGS=$CFLAGS
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3427. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3428. if ${ac_cv_prog_cc_g+:} false; then :
  3429. $as_echo_n "(cached) " >&6
  3430. else
  3431. ac_save_c_werror_flag=$ac_c_werror_flag
  3432. ac_c_werror_flag=yes
  3433. ac_cv_prog_cc_g=no
  3434. CFLAGS="-g"
  3435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3436. /* end confdefs.h. */
  3437. int
  3438. main ()
  3439. {
  3440. ;
  3441. return 0;
  3442. }
  3443. _ACEOF
  3444. if ac_fn_c_try_compile "$LINENO"; then :
  3445. ac_cv_prog_cc_g=yes
  3446. else
  3447. CFLAGS=""
  3448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3449. /* end confdefs.h. */
  3450. int
  3451. main ()
  3452. {
  3453. ;
  3454. return 0;
  3455. }
  3456. _ACEOF
  3457. if ac_fn_c_try_compile "$LINENO"; then :
  3458. else
  3459. ac_c_werror_flag=$ac_save_c_werror_flag
  3460. CFLAGS="-g"
  3461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3462. /* end confdefs.h. */
  3463. int
  3464. main ()
  3465. {
  3466. ;
  3467. return 0;
  3468. }
  3469. _ACEOF
  3470. if ac_fn_c_try_compile "$LINENO"; then :
  3471. ac_cv_prog_cc_g=yes
  3472. fi
  3473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3474. fi
  3475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3476. fi
  3477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3478. ac_c_werror_flag=$ac_save_c_werror_flag
  3479. fi
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3481. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3482. if test "$ac_test_CFLAGS" = set; then
  3483. CFLAGS=$ac_save_CFLAGS
  3484. elif test $ac_cv_prog_cc_g = yes; then
  3485. if test "$GCC" = yes; then
  3486. CFLAGS="-g -O2"
  3487. else
  3488. CFLAGS="-g"
  3489. fi
  3490. else
  3491. if test "$GCC" = yes; then
  3492. CFLAGS="-O2"
  3493. else
  3494. CFLAGS=
  3495. fi
  3496. fi
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3498. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3499. if ${ac_cv_prog_cc_c89+:} false; then :
  3500. $as_echo_n "(cached) " >&6
  3501. else
  3502. ac_cv_prog_cc_c89=no
  3503. ac_save_CC=$CC
  3504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3505. /* end confdefs.h. */
  3506. #include <stdarg.h>
  3507. #include <stdio.h>
  3508. struct stat;
  3509. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3510. struct buf { int x; };
  3511. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3512. static char *e (p, i)
  3513. char **p;
  3514. int i;
  3515. {
  3516. return p[i];
  3517. }
  3518. static char *f (char * (*g) (char **, int), char **p, ...)
  3519. {
  3520. char *s;
  3521. va_list v;
  3522. va_start (v,p);
  3523. s = g (p, va_arg (v,int));
  3524. va_end (v);
  3525. return s;
  3526. }
  3527. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3528. function prototypes and stuff, but not '\xHH' hex character constants.
  3529. These don't provoke an error unfortunately, instead are silently treated
  3530. as 'x'. The following induces an error, until -std is added to get
  3531. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3532. array size at least. It's necessary to write '\x00'==0 to get something
  3533. that's true only with -std. */
  3534. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3535. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3536. inside strings and character constants. */
  3537. #define FOO(x) 'x'
  3538. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3539. int test (int i, double x);
  3540. struct s1 {int (*f) (int a);};
  3541. struct s2 {int (*f) (double a);};
  3542. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3543. int argc;
  3544. char **argv;
  3545. int
  3546. main ()
  3547. {
  3548. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3549. ;
  3550. return 0;
  3551. }
  3552. _ACEOF
  3553. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3554. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3555. do
  3556. CC="$ac_save_CC $ac_arg"
  3557. if ac_fn_c_try_compile "$LINENO"; then :
  3558. ac_cv_prog_cc_c89=$ac_arg
  3559. fi
  3560. rm -f core conftest.err conftest.$ac_objext
  3561. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3562. done
  3563. rm -f conftest.$ac_ext
  3564. CC=$ac_save_CC
  3565. fi
  3566. # AC_CACHE_VAL
  3567. case "x$ac_cv_prog_cc_c89" in
  3568. x)
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3570. $as_echo "none needed" >&6; } ;;
  3571. xno)
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3573. $as_echo "unsupported" >&6; } ;;
  3574. *)
  3575. CC="$CC $ac_cv_prog_cc_c89"
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3577. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3578. esac
  3579. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3580. fi
  3581. ac_ext=c
  3582. ac_cpp='$CPP $CPPFLAGS'
  3583. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3584. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3585. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3586. ac_ext=c
  3587. ac_cpp='$CPP $CPPFLAGS'
  3588. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3589. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3590. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3592. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3593. if ${am_cv_prog_cc_c_o+:} false; then :
  3594. $as_echo_n "(cached) " >&6
  3595. else
  3596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3597. /* end confdefs.h. */
  3598. int
  3599. main ()
  3600. {
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. # Make sure it works both with $CC and with simple cc.
  3606. # Following AC_PROG_CC_C_O, we do the test twice because some
  3607. # compilers refuse to overwrite an existing .o file with -o,
  3608. # though they will create one.
  3609. am_cv_prog_cc_c_o=yes
  3610. for am_i in 1 2; do
  3611. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3612. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3613. ac_status=$?
  3614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3615. (exit $ac_status); } \
  3616. && test -f conftest2.$ac_objext; then
  3617. : OK
  3618. else
  3619. am_cv_prog_cc_c_o=no
  3620. break
  3621. fi
  3622. done
  3623. rm -f core conftest*
  3624. unset am_i
  3625. fi
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3627. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3628. if test "$am_cv_prog_cc_c_o" != yes; then
  3629. # Losing compiler, so override with the script.
  3630. # FIXME: It is wrong to rewrite CC.
  3631. # But if we don't then we get into trouble of one sort or another.
  3632. # A longer-term fix would be to have automake use am__CC in this case,
  3633. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3634. CC="$am_aux_dir/compile $CC"
  3635. fi
  3636. ac_ext=c
  3637. ac_cpp='$CPP $CPPFLAGS'
  3638. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3639. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3640. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3641. depcc="$CC" am_compiler_list=
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3643. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3644. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3645. $as_echo_n "(cached) " >&6
  3646. else
  3647. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3648. # We make a subdir and do the tests there. Otherwise we can end up
  3649. # making bogus files that we don't know about and never remove. For
  3650. # instance it was reported that on HP-UX the gcc test will end up
  3651. # making a dummy file named 'D' -- because '-MD' means "put the output
  3652. # in D".
  3653. rm -rf conftest.dir
  3654. mkdir conftest.dir
  3655. # Copy depcomp to subdir because otherwise we won't find it if we're
  3656. # using a relative directory.
  3657. cp "$am_depcomp" conftest.dir
  3658. cd conftest.dir
  3659. # We will build objects and dependencies in a subdirectory because
  3660. # it helps to detect inapplicable dependency modes. For instance
  3661. # both Tru64's cc and ICC support -MD to output dependencies as a
  3662. # side effect of compilation, but ICC will put the dependencies in
  3663. # the current directory while Tru64 will put them in the object
  3664. # directory.
  3665. mkdir sub
  3666. am_cv_CC_dependencies_compiler_type=none
  3667. if test "$am_compiler_list" = ""; then
  3668. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3669. fi
  3670. am__universal=false
  3671. case " $depcc " in #(
  3672. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3673. esac
  3674. for depmode in $am_compiler_list; do
  3675. # Setup a source with many dependencies, because some compilers
  3676. # like to wrap large dependency lists on column 80 (with \), and
  3677. # we should not choose a depcomp mode which is confused by this.
  3678. #
  3679. # We need to recreate these files for each test, as the compiler may
  3680. # overwrite some of them when testing with obscure command lines.
  3681. # This happens at least with the AIX C compiler.
  3682. : > sub/conftest.c
  3683. for i in 1 2 3 4 5 6; do
  3684. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3685. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3686. # Solaris 10 /bin/sh.
  3687. echo '/* dummy */' > sub/conftst$i.h
  3688. done
  3689. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3690. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3691. # mode. It turns out that the SunPro C++ compiler does not properly
  3692. # handle '-M -o', and we need to detect this. Also, some Intel
  3693. # versions had trouble with output in subdirs.
  3694. am__obj=sub/conftest.${OBJEXT-o}
  3695. am__minus_obj="-o $am__obj"
  3696. case $depmode in
  3697. gcc)
  3698. # This depmode causes a compiler race in universal mode.
  3699. test "$am__universal" = false || continue
  3700. ;;
  3701. nosideeffect)
  3702. # After this tag, mechanisms are not by side-effect, so they'll
  3703. # only be used when explicitly requested.
  3704. if test "x$enable_dependency_tracking" = xyes; then
  3705. continue
  3706. else
  3707. break
  3708. fi
  3709. ;;
  3710. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3711. # This compiler won't grok '-c -o', but also, the minuso test has
  3712. # not run yet. These depmodes are late enough in the game, and
  3713. # so weak that their functioning should not be impacted.
  3714. am__obj=conftest.${OBJEXT-o}
  3715. am__minus_obj=
  3716. ;;
  3717. none) break ;;
  3718. esac
  3719. if depmode=$depmode \
  3720. source=sub/conftest.c object=$am__obj \
  3721. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3722. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3723. >/dev/null 2>conftest.err &&
  3724. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3725. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3726. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3727. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3728. # icc doesn't choke on unknown options, it will just issue warnings
  3729. # or remarks (even with -Werror). So we grep stderr for any message
  3730. # that says an option was ignored or not supported.
  3731. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3732. # icc: Command line warning: ignoring option '-M'; no argument required
  3733. # The diagnosis changed in icc 8.0:
  3734. # icc: Command line remark: option '-MP' not supported
  3735. if (grep 'ignoring option' conftest.err ||
  3736. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3737. am_cv_CC_dependencies_compiler_type=$depmode
  3738. break
  3739. fi
  3740. fi
  3741. done
  3742. cd ..
  3743. rm -rf conftest.dir
  3744. else
  3745. am_cv_CC_dependencies_compiler_type=none
  3746. fi
  3747. fi
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3749. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3750. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3751. if
  3752. test "x$enable_dependency_tracking" != xno \
  3753. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3754. am__fastdepCC_TRUE=
  3755. am__fastdepCC_FALSE='#'
  3756. else
  3757. am__fastdepCC_TRUE='#'
  3758. am__fastdepCC_FALSE=
  3759. fi
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3761. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3762. if ${ac_cv_path_SED+:} false; then :
  3763. $as_echo_n "(cached) " >&6
  3764. else
  3765. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3766. for ac_i in 1 2 3 4 5 6 7; do
  3767. ac_script="$ac_script$as_nl$ac_script"
  3768. done
  3769. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3770. { ac_script=; unset ac_script;}
  3771. if test -z "$SED"; then
  3772. ac_path_SED_found=false
  3773. # Loop through the user's path and test for each of PROGNAME-LIST
  3774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3775. for as_dir in $PATH
  3776. do
  3777. IFS=$as_save_IFS
  3778. test -z "$as_dir" && as_dir=.
  3779. for ac_prog in sed gsed; do
  3780. for ac_exec_ext in '' $ac_executable_extensions; do
  3781. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3782. as_fn_executable_p "$ac_path_SED" || continue
  3783. # Check for GNU ac_path_SED and select it if it is found.
  3784. # Check for GNU $ac_path_SED
  3785. case `"$ac_path_SED" --version 2>&1` in
  3786. *GNU*)
  3787. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3788. *)
  3789. ac_count=0
  3790. $as_echo_n 0123456789 >"conftest.in"
  3791. while :
  3792. do
  3793. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3794. mv "conftest.tmp" "conftest.in"
  3795. cp "conftest.in" "conftest.nl"
  3796. $as_echo '' >> "conftest.nl"
  3797. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3798. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3799. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3800. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3801. # Best one so far, save it but keep looking for a better one
  3802. ac_cv_path_SED="$ac_path_SED"
  3803. ac_path_SED_max=$ac_count
  3804. fi
  3805. # 10*(2^10) chars as input seems more than enough
  3806. test $ac_count -gt 10 && break
  3807. done
  3808. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3809. esac
  3810. $ac_path_SED_found && break 3
  3811. done
  3812. done
  3813. done
  3814. IFS=$as_save_IFS
  3815. if test -z "$ac_cv_path_SED"; then
  3816. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3817. fi
  3818. else
  3819. ac_cv_path_SED=$SED
  3820. fi
  3821. fi
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3823. $as_echo "$ac_cv_path_SED" >&6; }
  3824. SED="$ac_cv_path_SED"
  3825. rm -f conftest.sed
  3826. test -z "$SED" && SED=sed
  3827. Xsed="$SED -e 1s/^X//"
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3829. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3830. if ${ac_cv_path_GREP+:} false; then :
  3831. $as_echo_n "(cached) " >&6
  3832. else
  3833. if test -z "$GREP"; then
  3834. ac_path_GREP_found=false
  3835. # Loop through the user's path and test for each of PROGNAME-LIST
  3836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3837. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3838. do
  3839. IFS=$as_save_IFS
  3840. test -z "$as_dir" && as_dir=.
  3841. for ac_prog in grep ggrep; do
  3842. for ac_exec_ext in '' $ac_executable_extensions; do
  3843. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3844. as_fn_executable_p "$ac_path_GREP" || continue
  3845. # Check for GNU ac_path_GREP and select it if it is found.
  3846. # Check for GNU $ac_path_GREP
  3847. case `"$ac_path_GREP" --version 2>&1` in
  3848. *GNU*)
  3849. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3850. *)
  3851. ac_count=0
  3852. $as_echo_n 0123456789 >"conftest.in"
  3853. while :
  3854. do
  3855. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3856. mv "conftest.tmp" "conftest.in"
  3857. cp "conftest.in" "conftest.nl"
  3858. $as_echo 'GREP' >> "conftest.nl"
  3859. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3860. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3861. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3862. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3863. # Best one so far, save it but keep looking for a better one
  3864. ac_cv_path_GREP="$ac_path_GREP"
  3865. ac_path_GREP_max=$ac_count
  3866. fi
  3867. # 10*(2^10) chars as input seems more than enough
  3868. test $ac_count -gt 10 && break
  3869. done
  3870. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3871. esac
  3872. $ac_path_GREP_found && break 3
  3873. done
  3874. done
  3875. done
  3876. IFS=$as_save_IFS
  3877. if test -z "$ac_cv_path_GREP"; then
  3878. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3879. fi
  3880. else
  3881. ac_cv_path_GREP=$GREP
  3882. fi
  3883. fi
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3885. $as_echo "$ac_cv_path_GREP" >&6; }
  3886. GREP="$ac_cv_path_GREP"
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3888. $as_echo_n "checking for egrep... " >&6; }
  3889. if ${ac_cv_path_EGREP+:} false; then :
  3890. $as_echo_n "(cached) " >&6
  3891. else
  3892. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3893. then ac_cv_path_EGREP="$GREP -E"
  3894. else
  3895. if test -z "$EGREP"; then
  3896. ac_path_EGREP_found=false
  3897. # Loop through the user's path and test for each of PROGNAME-LIST
  3898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3899. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3900. do
  3901. IFS=$as_save_IFS
  3902. test -z "$as_dir" && as_dir=.
  3903. for ac_prog in egrep; do
  3904. for ac_exec_ext in '' $ac_executable_extensions; do
  3905. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3906. as_fn_executable_p "$ac_path_EGREP" || continue
  3907. # Check for GNU ac_path_EGREP and select it if it is found.
  3908. # Check for GNU $ac_path_EGREP
  3909. case `"$ac_path_EGREP" --version 2>&1` in
  3910. *GNU*)
  3911. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3912. *)
  3913. ac_count=0
  3914. $as_echo_n 0123456789 >"conftest.in"
  3915. while :
  3916. do
  3917. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3918. mv "conftest.tmp" "conftest.in"
  3919. cp "conftest.in" "conftest.nl"
  3920. $as_echo 'EGREP' >> "conftest.nl"
  3921. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3922. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3923. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3924. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3925. # Best one so far, save it but keep looking for a better one
  3926. ac_cv_path_EGREP="$ac_path_EGREP"
  3927. ac_path_EGREP_max=$ac_count
  3928. fi
  3929. # 10*(2^10) chars as input seems more than enough
  3930. test $ac_count -gt 10 && break
  3931. done
  3932. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3933. esac
  3934. $ac_path_EGREP_found && break 3
  3935. done
  3936. done
  3937. done
  3938. IFS=$as_save_IFS
  3939. if test -z "$ac_cv_path_EGREP"; then
  3940. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3941. fi
  3942. else
  3943. ac_cv_path_EGREP=$EGREP
  3944. fi
  3945. fi
  3946. fi
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3948. $as_echo "$ac_cv_path_EGREP" >&6; }
  3949. EGREP="$ac_cv_path_EGREP"
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3951. $as_echo_n "checking for fgrep... " >&6; }
  3952. if ${ac_cv_path_FGREP+:} false; then :
  3953. $as_echo_n "(cached) " >&6
  3954. else
  3955. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3956. then ac_cv_path_FGREP="$GREP -F"
  3957. else
  3958. if test -z "$FGREP"; then
  3959. ac_path_FGREP_found=false
  3960. # Loop through the user's path and test for each of PROGNAME-LIST
  3961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3962. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3963. do
  3964. IFS=$as_save_IFS
  3965. test -z "$as_dir" && as_dir=.
  3966. for ac_prog in fgrep; do
  3967. for ac_exec_ext in '' $ac_executable_extensions; do
  3968. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3969. as_fn_executable_p "$ac_path_FGREP" || continue
  3970. # Check for GNU ac_path_FGREP and select it if it is found.
  3971. # Check for GNU $ac_path_FGREP
  3972. case `"$ac_path_FGREP" --version 2>&1` in
  3973. *GNU*)
  3974. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3975. *)
  3976. ac_count=0
  3977. $as_echo_n 0123456789 >"conftest.in"
  3978. while :
  3979. do
  3980. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3981. mv "conftest.tmp" "conftest.in"
  3982. cp "conftest.in" "conftest.nl"
  3983. $as_echo 'FGREP' >> "conftest.nl"
  3984. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3985. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3986. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3987. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3988. # Best one so far, save it but keep looking for a better one
  3989. ac_cv_path_FGREP="$ac_path_FGREP"
  3990. ac_path_FGREP_max=$ac_count
  3991. fi
  3992. # 10*(2^10) chars as input seems more than enough
  3993. test $ac_count -gt 10 && break
  3994. done
  3995. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3996. esac
  3997. $ac_path_FGREP_found && break 3
  3998. done
  3999. done
  4000. done
  4001. IFS=$as_save_IFS
  4002. if test -z "$ac_cv_path_FGREP"; then
  4003. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4004. fi
  4005. else
  4006. ac_cv_path_FGREP=$FGREP
  4007. fi
  4008. fi
  4009. fi
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4011. $as_echo "$ac_cv_path_FGREP" >&6; }
  4012. FGREP="$ac_cv_path_FGREP"
  4013. test -z "$GREP" && GREP=grep
  4014. # Check whether --with-gnu-ld was given.
  4015. if test "${with_gnu_ld+set}" = set; then :
  4016. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4017. else
  4018. with_gnu_ld=no
  4019. fi
  4020. ac_prog=ld
  4021. if test "$GCC" = yes; then
  4022. # Check if gcc -print-prog-name=ld gives a path.
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4024. $as_echo_n "checking for ld used by $CC... " >&6; }
  4025. case $host in
  4026. *-*-mingw*)
  4027. # gcc leaves a trailing carriage return which upsets mingw
  4028. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4029. *)
  4030. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4031. esac
  4032. case $ac_prog in
  4033. # Accept absolute paths.
  4034. [\\/]* | ?:[\\/]*)
  4035. re_direlt='/[^/][^/]*/\.\./'
  4036. # Canonicalize the pathname of ld
  4037. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4038. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4039. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4040. done
  4041. test -z "$LD" && LD="$ac_prog"
  4042. ;;
  4043. "")
  4044. # If it fails, then pretend we aren't using GCC.
  4045. ac_prog=ld
  4046. ;;
  4047. *)
  4048. # If it is relative, then search for the first ld in PATH.
  4049. with_gnu_ld=unknown
  4050. ;;
  4051. esac
  4052. elif test "$with_gnu_ld" = yes; then
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4054. $as_echo_n "checking for GNU ld... " >&6; }
  4055. else
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4057. $as_echo_n "checking for non-GNU ld... " >&6; }
  4058. fi
  4059. if ${lt_cv_path_LD+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. if test -z "$LD"; then
  4063. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4064. for ac_dir in $PATH; do
  4065. IFS="$lt_save_ifs"
  4066. test -z "$ac_dir" && ac_dir=.
  4067. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4068. lt_cv_path_LD="$ac_dir/$ac_prog"
  4069. # Check to see if the program is GNU ld. I'd rather use --version,
  4070. # but apparently some variants of GNU ld only accept -v.
  4071. # Break only if it was the GNU/non-GNU ld that we prefer.
  4072. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4073. *GNU* | *'with BFD'*)
  4074. test "$with_gnu_ld" != no && break
  4075. ;;
  4076. *)
  4077. test "$with_gnu_ld" != yes && break
  4078. ;;
  4079. esac
  4080. fi
  4081. done
  4082. IFS="$lt_save_ifs"
  4083. else
  4084. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4085. fi
  4086. fi
  4087. LD="$lt_cv_path_LD"
  4088. if test -n "$LD"; then
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4090. $as_echo "$LD" >&6; }
  4091. else
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4093. $as_echo "no" >&6; }
  4094. fi
  4095. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4097. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4098. if ${lt_cv_prog_gnu_ld+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4102. case `$LD -v 2>&1 </dev/null` in
  4103. *GNU* | *'with BFD'*)
  4104. lt_cv_prog_gnu_ld=yes
  4105. ;;
  4106. *)
  4107. lt_cv_prog_gnu_ld=no
  4108. ;;
  4109. esac
  4110. fi
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4112. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4113. with_gnu_ld=$lt_cv_prog_gnu_ld
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4115. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4116. if ${lt_cv_path_NM+:} false; then :
  4117. $as_echo_n "(cached) " >&6
  4118. else
  4119. if test -n "$NM"; then
  4120. # Let the user override the test.
  4121. lt_cv_path_NM="$NM"
  4122. else
  4123. lt_nm_to_check="${ac_tool_prefix}nm"
  4124. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4125. lt_nm_to_check="$lt_nm_to_check nm"
  4126. fi
  4127. for lt_tmp_nm in $lt_nm_to_check; do
  4128. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4129. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4130. IFS="$lt_save_ifs"
  4131. test -z "$ac_dir" && ac_dir=.
  4132. tmp_nm="$ac_dir/$lt_tmp_nm"
  4133. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4134. # Check to see if the nm accepts a BSD-compat flag.
  4135. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4136. # nm: unknown option "B" ignored
  4137. # Tru64's nm complains that /dev/null is an invalid object file
  4138. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4139. */dev/null* | *'Invalid file or object type'*)
  4140. lt_cv_path_NM="$tmp_nm -B"
  4141. break
  4142. ;;
  4143. *)
  4144. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4145. */dev/null*)
  4146. lt_cv_path_NM="$tmp_nm -p"
  4147. break
  4148. ;;
  4149. *)
  4150. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4151. continue # so that we can try to find one that supports BSD flags
  4152. ;;
  4153. esac
  4154. ;;
  4155. esac
  4156. fi
  4157. done
  4158. IFS="$lt_save_ifs"
  4159. done
  4160. : ${lt_cv_path_NM=no}
  4161. fi
  4162. fi
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4164. $as_echo "$lt_cv_path_NM" >&6; }
  4165. if test "$lt_cv_path_NM" != "no"; then
  4166. NM="$lt_cv_path_NM"
  4167. else
  4168. # Didn't find any BSD compatible name lister, look for dumpbin.
  4169. if test -n "$DUMPBIN"; then :
  4170. # Let the user override the test.
  4171. else
  4172. if test -n "$ac_tool_prefix"; then
  4173. for ac_prog in dumpbin "link -dump"
  4174. do
  4175. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4176. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4178. $as_echo_n "checking for $ac_word... " >&6; }
  4179. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4180. $as_echo_n "(cached) " >&6
  4181. else
  4182. if test -n "$DUMPBIN"; then
  4183. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4184. else
  4185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4186. for as_dir in $PATH
  4187. do
  4188. IFS=$as_save_IFS
  4189. test -z "$as_dir" && as_dir=.
  4190. for ac_exec_ext in '' $ac_executable_extensions; do
  4191. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4192. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4194. break 2
  4195. fi
  4196. done
  4197. done
  4198. IFS=$as_save_IFS
  4199. fi
  4200. fi
  4201. DUMPBIN=$ac_cv_prog_DUMPBIN
  4202. if test -n "$DUMPBIN"; then
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4204. $as_echo "$DUMPBIN" >&6; }
  4205. else
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4207. $as_echo "no" >&6; }
  4208. fi
  4209. test -n "$DUMPBIN" && break
  4210. done
  4211. fi
  4212. if test -z "$DUMPBIN"; then
  4213. ac_ct_DUMPBIN=$DUMPBIN
  4214. for ac_prog in dumpbin "link -dump"
  4215. do
  4216. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4217. set dummy $ac_prog; ac_word=$2
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4219. $as_echo_n "checking for $ac_word... " >&6; }
  4220. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4221. $as_echo_n "(cached) " >&6
  4222. else
  4223. if test -n "$ac_ct_DUMPBIN"; then
  4224. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4225. else
  4226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4227. for as_dir in $PATH
  4228. do
  4229. IFS=$as_save_IFS
  4230. test -z "$as_dir" && as_dir=.
  4231. for ac_exec_ext in '' $ac_executable_extensions; do
  4232. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4233. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4235. break 2
  4236. fi
  4237. done
  4238. done
  4239. IFS=$as_save_IFS
  4240. fi
  4241. fi
  4242. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4243. if test -n "$ac_ct_DUMPBIN"; then
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4245. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4246. else
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4248. $as_echo "no" >&6; }
  4249. fi
  4250. test -n "$ac_ct_DUMPBIN" && break
  4251. done
  4252. if test "x$ac_ct_DUMPBIN" = x; then
  4253. DUMPBIN=":"
  4254. else
  4255. case $cross_compiling:$ac_tool_warned in
  4256. yes:)
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4258. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4259. ac_tool_warned=yes ;;
  4260. esac
  4261. DUMPBIN=$ac_ct_DUMPBIN
  4262. fi
  4263. fi
  4264. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4265. *COFF*)
  4266. DUMPBIN="$DUMPBIN -symbols"
  4267. ;;
  4268. *)
  4269. DUMPBIN=:
  4270. ;;
  4271. esac
  4272. fi
  4273. if test "$DUMPBIN" != ":"; then
  4274. NM="$DUMPBIN"
  4275. fi
  4276. fi
  4277. test -z "$NM" && NM=nm
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4279. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4280. if ${lt_cv_nm_interface+:} false; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. lt_cv_nm_interface="BSD nm"
  4284. echo "int some_variable = 0;" > conftest.$ac_ext
  4285. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4286. (eval "$ac_compile" 2>conftest.err)
  4287. cat conftest.err >&5
  4288. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4289. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4290. cat conftest.err >&5
  4291. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4292. cat conftest.out >&5
  4293. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4294. lt_cv_nm_interface="MS dumpbin"
  4295. fi
  4296. rm -f conftest*
  4297. fi
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4299. $as_echo "$lt_cv_nm_interface" >&6; }
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4301. $as_echo_n "checking whether ln -s works... " >&6; }
  4302. LN_S=$as_ln_s
  4303. if test "$LN_S" = "ln -s"; then
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4305. $as_echo "yes" >&6; }
  4306. else
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4308. $as_echo "no, using $LN_S" >&6; }
  4309. fi
  4310. # find the maximum length of command line arguments
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4312. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4313. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4314. $as_echo_n "(cached) " >&6
  4315. else
  4316. i=0
  4317. teststring="ABCD"
  4318. case $build_os in
  4319. msdosdjgpp*)
  4320. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4321. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4322. # during glob expansion). Even if it were fixed, the result of this
  4323. # check would be larger than it should be.
  4324. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4325. ;;
  4326. gnu*)
  4327. # Under GNU Hurd, this test is not required because there is
  4328. # no limit to the length of command line arguments.
  4329. # Libtool will interpret -1 as no limit whatsoever
  4330. lt_cv_sys_max_cmd_len=-1;
  4331. ;;
  4332. cygwin* | mingw* | cegcc*)
  4333. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4334. # about 5 minutes as the teststring grows exponentially.
  4335. # Worse, since 9x/ME are not pre-emptively multitasking,
  4336. # you end up with a "frozen" computer, even though with patience
  4337. # the test eventually succeeds (with a max line length of 256k).
  4338. # Instead, let's just punt: use the minimum linelength reported by
  4339. # all of the supported platforms: 8192 (on NT/2K/XP).
  4340. lt_cv_sys_max_cmd_len=8192;
  4341. ;;
  4342. mint*)
  4343. # On MiNT this can take a long time and run out of memory.
  4344. lt_cv_sys_max_cmd_len=8192;
  4345. ;;
  4346. amigaos*)
  4347. # On AmigaOS with pdksh, this test takes hours, literally.
  4348. # So we just punt and use a minimum line length of 8192.
  4349. lt_cv_sys_max_cmd_len=8192;
  4350. ;;
  4351. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4352. # This has been around since 386BSD, at least. Likely further.
  4353. if test -x /sbin/sysctl; then
  4354. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4355. elif test -x /usr/sbin/sysctl; then
  4356. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4357. else
  4358. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4359. fi
  4360. # And add a safety zone
  4361. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4362. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4363. ;;
  4364. interix*)
  4365. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4366. lt_cv_sys_max_cmd_len=196608
  4367. ;;
  4368. os2*)
  4369. # The test takes a long time on OS/2.
  4370. lt_cv_sys_max_cmd_len=8192
  4371. ;;
  4372. osf*)
  4373. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4374. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4375. # nice to cause kernel panics so lets avoid the loop below.
  4376. # First set a reasonable default.
  4377. lt_cv_sys_max_cmd_len=16384
  4378. #
  4379. if test -x /sbin/sysconfig; then
  4380. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4381. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4382. esac
  4383. fi
  4384. ;;
  4385. sco3.2v5*)
  4386. lt_cv_sys_max_cmd_len=102400
  4387. ;;
  4388. sysv5* | sco5v6* | sysv4.2uw2*)
  4389. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4390. if test -n "$kargmax"; then
  4391. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4392. else
  4393. lt_cv_sys_max_cmd_len=32768
  4394. fi
  4395. ;;
  4396. *)
  4397. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4398. if test -n "$lt_cv_sys_max_cmd_len"; then
  4399. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4400. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4401. else
  4402. # Make teststring a little bigger before we do anything with it.
  4403. # a 1K string should be a reasonable start.
  4404. for i in 1 2 3 4 5 6 7 8 ; do
  4405. teststring=$teststring$teststring
  4406. done
  4407. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4408. # If test is not a shell built-in, we'll probably end up computing a
  4409. # maximum length that is only half of the actual maximum length, but
  4410. # we can't tell.
  4411. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4412. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4413. test $i != 17 # 1/2 MB should be enough
  4414. do
  4415. i=`expr $i + 1`
  4416. teststring=$teststring$teststring
  4417. done
  4418. # Only check the string length outside the loop.
  4419. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4420. teststring=
  4421. # Add a significant safety factor because C++ compilers can tack on
  4422. # massive amounts of additional arguments before passing them to the
  4423. # linker. It appears as though 1/2 is a usable value.
  4424. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4425. fi
  4426. ;;
  4427. esac
  4428. fi
  4429. if test -n $lt_cv_sys_max_cmd_len ; then
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4431. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4432. else
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4434. $as_echo "none" >&6; }
  4435. fi
  4436. max_cmd_len=$lt_cv_sys_max_cmd_len
  4437. : ${CP="cp -f"}
  4438. : ${MV="mv -f"}
  4439. : ${RM="rm -f"}
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4441. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4442. # Try some XSI features
  4443. xsi_shell=no
  4444. ( _lt_dummy="a/b/c"
  4445. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4446. = c,a/b,b/c, \
  4447. && eval 'test $(( 1 + 1 )) -eq 2 \
  4448. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4449. && xsi_shell=yes
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4451. $as_echo "$xsi_shell" >&6; }
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4453. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4454. lt_shell_append=no
  4455. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4456. >/dev/null 2>&1 \
  4457. && lt_shell_append=yes
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4459. $as_echo "$lt_shell_append" >&6; }
  4460. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4461. lt_unset=unset
  4462. else
  4463. lt_unset=false
  4464. fi
  4465. # test EBCDIC or ASCII
  4466. case `echo X|tr X '\101'` in
  4467. A) # ASCII based system
  4468. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4469. lt_SP2NL='tr \040 \012'
  4470. lt_NL2SP='tr \015\012 \040\040'
  4471. ;;
  4472. *) # EBCDIC based system
  4473. lt_SP2NL='tr \100 \n'
  4474. lt_NL2SP='tr \r\n \100\100'
  4475. ;;
  4476. esac
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4478. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4479. if ${lt_cv_to_host_file_cmd+:} false; then :
  4480. $as_echo_n "(cached) " >&6
  4481. else
  4482. case $host in
  4483. *-*-mingw* )
  4484. case $build in
  4485. *-*-mingw* ) # actually msys
  4486. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4487. ;;
  4488. *-*-cygwin* )
  4489. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4490. ;;
  4491. * ) # otherwise, assume *nix
  4492. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4493. ;;
  4494. esac
  4495. ;;
  4496. *-*-cygwin* )
  4497. case $build in
  4498. *-*-mingw* ) # actually msys
  4499. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4500. ;;
  4501. *-*-cygwin* )
  4502. lt_cv_to_host_file_cmd=func_convert_file_noop
  4503. ;;
  4504. * ) # otherwise, assume *nix
  4505. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4506. ;;
  4507. esac
  4508. ;;
  4509. * ) # unhandled hosts (and "normal" native builds)
  4510. lt_cv_to_host_file_cmd=func_convert_file_noop
  4511. ;;
  4512. esac
  4513. fi
  4514. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4516. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4518. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4519. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4520. $as_echo_n "(cached) " >&6
  4521. else
  4522. #assume ordinary cross tools, or native build.
  4523. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4524. case $host in
  4525. *-*-mingw* )
  4526. case $build in
  4527. *-*-mingw* ) # actually msys
  4528. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4529. ;;
  4530. esac
  4531. ;;
  4532. esac
  4533. fi
  4534. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4536. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4538. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4539. if ${lt_cv_ld_reload_flag+:} false; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. lt_cv_ld_reload_flag='-r'
  4543. fi
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4545. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4546. reload_flag=$lt_cv_ld_reload_flag
  4547. case $reload_flag in
  4548. "" | " "*) ;;
  4549. *) reload_flag=" $reload_flag" ;;
  4550. esac
  4551. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4552. case $host_os in
  4553. cygwin* | mingw* | pw32* | cegcc*)
  4554. if test "$GCC" != yes; then
  4555. reload_cmds=false
  4556. fi
  4557. ;;
  4558. darwin*)
  4559. if test "$GCC" = yes; then
  4560. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4561. else
  4562. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4563. fi
  4564. ;;
  4565. esac
  4566. if test -n "$ac_tool_prefix"; then
  4567. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4568. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4570. $as_echo_n "checking for $ac_word... " >&6; }
  4571. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4572. $as_echo_n "(cached) " >&6
  4573. else
  4574. if test -n "$OBJDUMP"; then
  4575. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4576. else
  4577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4578. for as_dir in $PATH
  4579. do
  4580. IFS=$as_save_IFS
  4581. test -z "$as_dir" && as_dir=.
  4582. for ac_exec_ext in '' $ac_executable_extensions; do
  4583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4584. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4586. break 2
  4587. fi
  4588. done
  4589. done
  4590. IFS=$as_save_IFS
  4591. fi
  4592. fi
  4593. OBJDUMP=$ac_cv_prog_OBJDUMP
  4594. if test -n "$OBJDUMP"; then
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4596. $as_echo "$OBJDUMP" >&6; }
  4597. else
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4599. $as_echo "no" >&6; }
  4600. fi
  4601. fi
  4602. if test -z "$ac_cv_prog_OBJDUMP"; then
  4603. ac_ct_OBJDUMP=$OBJDUMP
  4604. # Extract the first word of "objdump", so it can be a program name with args.
  4605. set dummy objdump; ac_word=$2
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4607. $as_echo_n "checking for $ac_word... " >&6; }
  4608. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. if test -n "$ac_ct_OBJDUMP"; then
  4612. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4613. else
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH
  4616. do
  4617. IFS=$as_save_IFS
  4618. test -z "$as_dir" && as_dir=.
  4619. for ac_exec_ext in '' $ac_executable_extensions; do
  4620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4621. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4623. break 2
  4624. fi
  4625. done
  4626. done
  4627. IFS=$as_save_IFS
  4628. fi
  4629. fi
  4630. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4631. if test -n "$ac_ct_OBJDUMP"; then
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4633. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4634. else
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4636. $as_echo "no" >&6; }
  4637. fi
  4638. if test "x$ac_ct_OBJDUMP" = x; then
  4639. OBJDUMP="false"
  4640. else
  4641. case $cross_compiling:$ac_tool_warned in
  4642. yes:)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4645. ac_tool_warned=yes ;;
  4646. esac
  4647. OBJDUMP=$ac_ct_OBJDUMP
  4648. fi
  4649. else
  4650. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4651. fi
  4652. test -z "$OBJDUMP" && OBJDUMP=objdump
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4654. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4655. if ${lt_cv_deplibs_check_method+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4659. lt_cv_file_magic_test_file=
  4660. lt_cv_deplibs_check_method='unknown'
  4661. # Need to set the preceding variable on all platforms that support
  4662. # interlibrary dependencies.
  4663. # 'none' -- dependencies not supported.
  4664. # `unknown' -- same as none, but documents that we really don't know.
  4665. # 'pass_all' -- all dependencies passed with no checks.
  4666. # 'test_compile' -- check by making test program.
  4667. # 'file_magic [[regex]]' -- check by looking for files in library path
  4668. # which responds to the $file_magic_cmd with a given extended regex.
  4669. # If you have `file' or equivalent on your system and you're not sure
  4670. # whether `pass_all' will *always* work, you probably want this one.
  4671. case $host_os in
  4672. aix[4-9]*)
  4673. lt_cv_deplibs_check_method=pass_all
  4674. ;;
  4675. beos*)
  4676. lt_cv_deplibs_check_method=pass_all
  4677. ;;
  4678. bsdi[45]*)
  4679. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4680. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4681. lt_cv_file_magic_test_file=/shlib/libc.so
  4682. ;;
  4683. cygwin*)
  4684. # func_win32_libid is a shell function defined in ltmain.sh
  4685. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4686. lt_cv_file_magic_cmd='func_win32_libid'
  4687. ;;
  4688. mingw* | pw32*)
  4689. # Base MSYS/MinGW do not provide the 'file' command needed by
  4690. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4691. # unless we find 'file', for example because we are cross-compiling.
  4692. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4693. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4694. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4695. lt_cv_file_magic_cmd='func_win32_libid'
  4696. else
  4697. # Keep this pattern in sync with the one in func_win32_libid.
  4698. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4699. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4700. fi
  4701. ;;
  4702. cegcc*)
  4703. # use the weaker test based on 'objdump'. See mingw*.
  4704. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4705. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4706. ;;
  4707. darwin* | rhapsody*)
  4708. lt_cv_deplibs_check_method=pass_all
  4709. ;;
  4710. freebsd* | dragonfly*)
  4711. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4712. case $host_cpu in
  4713. i*86 )
  4714. # Not sure whether the presence of OpenBSD here was a mistake.
  4715. # Let's accept both of them until this is cleared up.
  4716. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4717. lt_cv_file_magic_cmd=/usr/bin/file
  4718. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4719. ;;
  4720. esac
  4721. else
  4722. lt_cv_deplibs_check_method=pass_all
  4723. fi
  4724. ;;
  4725. gnu*)
  4726. lt_cv_deplibs_check_method=pass_all
  4727. ;;
  4728. haiku*)
  4729. lt_cv_deplibs_check_method=pass_all
  4730. ;;
  4731. hpux10.20* | hpux11*)
  4732. lt_cv_file_magic_cmd=/usr/bin/file
  4733. case $host_cpu in
  4734. ia64*)
  4735. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4736. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4737. ;;
  4738. hppa*64*)
  4739. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4740. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4741. ;;
  4742. *)
  4743. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4744. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4745. ;;
  4746. esac
  4747. ;;
  4748. interix[3-9]*)
  4749. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4750. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4751. ;;
  4752. irix5* | irix6* | nonstopux*)
  4753. case $LD in
  4754. *-32|*"-32 ") libmagic=32-bit;;
  4755. *-n32|*"-n32 ") libmagic=N32;;
  4756. *-64|*"-64 ") libmagic=64-bit;;
  4757. *) libmagic=never-match;;
  4758. esac
  4759. lt_cv_deplibs_check_method=pass_all
  4760. ;;
  4761. # This must be glibc/ELF.
  4762. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4763. lt_cv_deplibs_check_method=pass_all
  4764. ;;
  4765. netbsd*)
  4766. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4767. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4768. else
  4769. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4770. fi
  4771. ;;
  4772. newos6*)
  4773. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4774. lt_cv_file_magic_cmd=/usr/bin/file
  4775. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4776. ;;
  4777. *nto* | *qnx*)
  4778. lt_cv_deplibs_check_method=pass_all
  4779. ;;
  4780. openbsd*)
  4781. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4782. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4783. else
  4784. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4785. fi
  4786. ;;
  4787. osf3* | osf4* | osf5*)
  4788. lt_cv_deplibs_check_method=pass_all
  4789. ;;
  4790. rdos*)
  4791. lt_cv_deplibs_check_method=pass_all
  4792. ;;
  4793. solaris*)
  4794. lt_cv_deplibs_check_method=pass_all
  4795. ;;
  4796. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4797. lt_cv_deplibs_check_method=pass_all
  4798. ;;
  4799. sysv4 | sysv4.3*)
  4800. case $host_vendor in
  4801. motorola)
  4802. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4803. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4804. ;;
  4805. ncr)
  4806. lt_cv_deplibs_check_method=pass_all
  4807. ;;
  4808. sequent)
  4809. lt_cv_file_magic_cmd='/bin/file'
  4810. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4811. ;;
  4812. sni)
  4813. lt_cv_file_magic_cmd='/bin/file'
  4814. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4815. lt_cv_file_magic_test_file=/lib/libc.so
  4816. ;;
  4817. siemens)
  4818. lt_cv_deplibs_check_method=pass_all
  4819. ;;
  4820. pc)
  4821. lt_cv_deplibs_check_method=pass_all
  4822. ;;
  4823. esac
  4824. ;;
  4825. tpf*)
  4826. lt_cv_deplibs_check_method=pass_all
  4827. ;;
  4828. esac
  4829. fi
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4831. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4832. file_magic_glob=
  4833. want_nocaseglob=no
  4834. if test "$build" = "$host"; then
  4835. case $host_os in
  4836. mingw* | pw32*)
  4837. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4838. want_nocaseglob=yes
  4839. else
  4840. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4841. fi
  4842. ;;
  4843. esac
  4844. fi
  4845. file_magic_cmd=$lt_cv_file_magic_cmd
  4846. deplibs_check_method=$lt_cv_deplibs_check_method
  4847. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4848. if test -n "$ac_tool_prefix"; then
  4849. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4850. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4852. $as_echo_n "checking for $ac_word... " >&6; }
  4853. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. if test -n "$DLLTOOL"; then
  4857. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4858. else
  4859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4860. for as_dir in $PATH
  4861. do
  4862. IFS=$as_save_IFS
  4863. test -z "$as_dir" && as_dir=.
  4864. for ac_exec_ext in '' $ac_executable_extensions; do
  4865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4866. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4868. break 2
  4869. fi
  4870. done
  4871. done
  4872. IFS=$as_save_IFS
  4873. fi
  4874. fi
  4875. DLLTOOL=$ac_cv_prog_DLLTOOL
  4876. if test -n "$DLLTOOL"; then
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4878. $as_echo "$DLLTOOL" >&6; }
  4879. else
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4881. $as_echo "no" >&6; }
  4882. fi
  4883. fi
  4884. if test -z "$ac_cv_prog_DLLTOOL"; then
  4885. ac_ct_DLLTOOL=$DLLTOOL
  4886. # Extract the first word of "dlltool", so it can be a program name with args.
  4887. set dummy dlltool; ac_word=$2
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4889. $as_echo_n "checking for $ac_word... " >&6; }
  4890. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. if test -n "$ac_ct_DLLTOOL"; then
  4894. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4895. else
  4896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4897. for as_dir in $PATH
  4898. do
  4899. IFS=$as_save_IFS
  4900. test -z "$as_dir" && as_dir=.
  4901. for ac_exec_ext in '' $ac_executable_extensions; do
  4902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4903. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4905. break 2
  4906. fi
  4907. done
  4908. done
  4909. IFS=$as_save_IFS
  4910. fi
  4911. fi
  4912. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4913. if test -n "$ac_ct_DLLTOOL"; then
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4915. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4916. else
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4918. $as_echo "no" >&6; }
  4919. fi
  4920. if test "x$ac_ct_DLLTOOL" = x; then
  4921. DLLTOOL="false"
  4922. else
  4923. case $cross_compiling:$ac_tool_warned in
  4924. yes:)
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4926. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4927. ac_tool_warned=yes ;;
  4928. esac
  4929. DLLTOOL=$ac_ct_DLLTOOL
  4930. fi
  4931. else
  4932. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4933. fi
  4934. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4936. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4937. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4938. $as_echo_n "(cached) " >&6
  4939. else
  4940. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4941. case $host_os in
  4942. cygwin* | mingw* | pw32* | cegcc*)
  4943. # two different shell functions defined in ltmain.sh
  4944. # decide which to use based on capabilities of $DLLTOOL
  4945. case `$DLLTOOL --help 2>&1` in
  4946. *--identify-strict*)
  4947. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4948. ;;
  4949. *)
  4950. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4951. ;;
  4952. esac
  4953. ;;
  4954. *)
  4955. # fallback: assume linklib IS sharedlib
  4956. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4957. ;;
  4958. esac
  4959. fi
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4961. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4962. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4963. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4964. if test -n "$ac_tool_prefix"; then
  4965. for ac_prog in ar
  4966. do
  4967. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4968. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4970. $as_echo_n "checking for $ac_word... " >&6; }
  4971. if ${ac_cv_prog_AR+:} false; then :
  4972. $as_echo_n "(cached) " >&6
  4973. else
  4974. if test -n "$AR"; then
  4975. ac_cv_prog_AR="$AR" # Let the user override the test.
  4976. else
  4977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4978. for as_dir in $PATH
  4979. do
  4980. IFS=$as_save_IFS
  4981. test -z "$as_dir" && as_dir=.
  4982. for ac_exec_ext in '' $ac_executable_extensions; do
  4983. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4984. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4986. break 2
  4987. fi
  4988. done
  4989. done
  4990. IFS=$as_save_IFS
  4991. fi
  4992. fi
  4993. AR=$ac_cv_prog_AR
  4994. if test -n "$AR"; then
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4996. $as_echo "$AR" >&6; }
  4997. else
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4999. $as_echo "no" >&6; }
  5000. fi
  5001. test -n "$AR" && break
  5002. done
  5003. fi
  5004. if test -z "$AR"; then
  5005. ac_ct_AR=$AR
  5006. for ac_prog in ar
  5007. do
  5008. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5009. set dummy $ac_prog; ac_word=$2
  5010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5011. $as_echo_n "checking for $ac_word... " >&6; }
  5012. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5013. $as_echo_n "(cached) " >&6
  5014. else
  5015. if test -n "$ac_ct_AR"; then
  5016. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5017. else
  5018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5019. for as_dir in $PATH
  5020. do
  5021. IFS=$as_save_IFS
  5022. test -z "$as_dir" && as_dir=.
  5023. for ac_exec_ext in '' $ac_executable_extensions; do
  5024. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5025. ac_cv_prog_ac_ct_AR="$ac_prog"
  5026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5027. break 2
  5028. fi
  5029. done
  5030. done
  5031. IFS=$as_save_IFS
  5032. fi
  5033. fi
  5034. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5035. if test -n "$ac_ct_AR"; then
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5037. $as_echo "$ac_ct_AR" >&6; }
  5038. else
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5040. $as_echo "no" >&6; }
  5041. fi
  5042. test -n "$ac_ct_AR" && break
  5043. done
  5044. if test "x$ac_ct_AR" = x; then
  5045. AR="false"
  5046. else
  5047. case $cross_compiling:$ac_tool_warned in
  5048. yes:)
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5050. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5051. ac_tool_warned=yes ;;
  5052. esac
  5053. AR=$ac_ct_AR
  5054. fi
  5055. fi
  5056. : ${AR=ar}
  5057. : ${AR_FLAGS=cru}
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5059. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5060. if ${lt_cv_ar_at_file+:} false; then :
  5061. $as_echo_n "(cached) " >&6
  5062. else
  5063. lt_cv_ar_at_file=no
  5064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5065. /* end confdefs.h. */
  5066. int
  5067. main ()
  5068. {
  5069. ;
  5070. return 0;
  5071. }
  5072. _ACEOF
  5073. if ac_fn_c_try_compile "$LINENO"; then :
  5074. echo conftest.$ac_objext > conftest.lst
  5075. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5076. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5077. (eval $lt_ar_try) 2>&5
  5078. ac_status=$?
  5079. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5080. test $ac_status = 0; }
  5081. if test "$ac_status" -eq 0; then
  5082. # Ensure the archiver fails upon bogus file names.
  5083. rm -f conftest.$ac_objext libconftest.a
  5084. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5085. (eval $lt_ar_try) 2>&5
  5086. ac_status=$?
  5087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5088. test $ac_status = 0; }
  5089. if test "$ac_status" -ne 0; then
  5090. lt_cv_ar_at_file=@
  5091. fi
  5092. fi
  5093. rm -f conftest.* libconftest.a
  5094. fi
  5095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5096. fi
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5098. $as_echo "$lt_cv_ar_at_file" >&6; }
  5099. if test "x$lt_cv_ar_at_file" = xno; then
  5100. archiver_list_spec=
  5101. else
  5102. archiver_list_spec=$lt_cv_ar_at_file
  5103. fi
  5104. if test -n "$ac_tool_prefix"; then
  5105. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5106. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5108. $as_echo_n "checking for $ac_word... " >&6; }
  5109. if ${ac_cv_prog_STRIP+:} false; then :
  5110. $as_echo_n "(cached) " >&6
  5111. else
  5112. if test -n "$STRIP"; then
  5113. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5114. else
  5115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5116. for as_dir in $PATH
  5117. do
  5118. IFS=$as_save_IFS
  5119. test -z "$as_dir" && as_dir=.
  5120. for ac_exec_ext in '' $ac_executable_extensions; do
  5121. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5122. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5124. break 2
  5125. fi
  5126. done
  5127. done
  5128. IFS=$as_save_IFS
  5129. fi
  5130. fi
  5131. STRIP=$ac_cv_prog_STRIP
  5132. if test -n "$STRIP"; then
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5134. $as_echo "$STRIP" >&6; }
  5135. else
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5137. $as_echo "no" >&6; }
  5138. fi
  5139. fi
  5140. if test -z "$ac_cv_prog_STRIP"; then
  5141. ac_ct_STRIP=$STRIP
  5142. # Extract the first word of "strip", so it can be a program name with args.
  5143. set dummy strip; ac_word=$2
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5145. $as_echo_n "checking for $ac_word... " >&6; }
  5146. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5147. $as_echo_n "(cached) " >&6
  5148. else
  5149. if test -n "$ac_ct_STRIP"; then
  5150. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5151. else
  5152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5153. for as_dir in $PATH
  5154. do
  5155. IFS=$as_save_IFS
  5156. test -z "$as_dir" && as_dir=.
  5157. for ac_exec_ext in '' $ac_executable_extensions; do
  5158. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5159. ac_cv_prog_ac_ct_STRIP="strip"
  5160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5161. break 2
  5162. fi
  5163. done
  5164. done
  5165. IFS=$as_save_IFS
  5166. fi
  5167. fi
  5168. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5169. if test -n "$ac_ct_STRIP"; then
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5171. $as_echo "$ac_ct_STRIP" >&6; }
  5172. else
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5174. $as_echo "no" >&6; }
  5175. fi
  5176. if test "x$ac_ct_STRIP" = x; then
  5177. STRIP=":"
  5178. else
  5179. case $cross_compiling:$ac_tool_warned in
  5180. yes:)
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5182. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5183. ac_tool_warned=yes ;;
  5184. esac
  5185. STRIP=$ac_ct_STRIP
  5186. fi
  5187. else
  5188. STRIP="$ac_cv_prog_STRIP"
  5189. fi
  5190. test -z "$STRIP" && STRIP=:
  5191. if test -n "$ac_tool_prefix"; then
  5192. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5193. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5195. $as_echo_n "checking for $ac_word... " >&6; }
  5196. if ${ac_cv_prog_RANLIB+:} false; then :
  5197. $as_echo_n "(cached) " >&6
  5198. else
  5199. if test -n "$RANLIB"; then
  5200. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5201. else
  5202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5203. for as_dir in $PATH
  5204. do
  5205. IFS=$as_save_IFS
  5206. test -z "$as_dir" && as_dir=.
  5207. for ac_exec_ext in '' $ac_executable_extensions; do
  5208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5209. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5211. break 2
  5212. fi
  5213. done
  5214. done
  5215. IFS=$as_save_IFS
  5216. fi
  5217. fi
  5218. RANLIB=$ac_cv_prog_RANLIB
  5219. if test -n "$RANLIB"; then
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5221. $as_echo "$RANLIB" >&6; }
  5222. else
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5224. $as_echo "no" >&6; }
  5225. fi
  5226. fi
  5227. if test -z "$ac_cv_prog_RANLIB"; then
  5228. ac_ct_RANLIB=$RANLIB
  5229. # Extract the first word of "ranlib", so it can be a program name with args.
  5230. set dummy ranlib; ac_word=$2
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5232. $as_echo_n "checking for $ac_word... " >&6; }
  5233. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5234. $as_echo_n "(cached) " >&6
  5235. else
  5236. if test -n "$ac_ct_RANLIB"; then
  5237. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5238. else
  5239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5240. for as_dir in $PATH
  5241. do
  5242. IFS=$as_save_IFS
  5243. test -z "$as_dir" && as_dir=.
  5244. for ac_exec_ext in '' $ac_executable_extensions; do
  5245. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5246. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5248. break 2
  5249. fi
  5250. done
  5251. done
  5252. IFS=$as_save_IFS
  5253. fi
  5254. fi
  5255. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5256. if test -n "$ac_ct_RANLIB"; then
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5258. $as_echo "$ac_ct_RANLIB" >&6; }
  5259. else
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5261. $as_echo "no" >&6; }
  5262. fi
  5263. if test "x$ac_ct_RANLIB" = x; then
  5264. RANLIB=":"
  5265. else
  5266. case $cross_compiling:$ac_tool_warned in
  5267. yes:)
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5269. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5270. ac_tool_warned=yes ;;
  5271. esac
  5272. RANLIB=$ac_ct_RANLIB
  5273. fi
  5274. else
  5275. RANLIB="$ac_cv_prog_RANLIB"
  5276. fi
  5277. test -z "$RANLIB" && RANLIB=:
  5278. # Determine commands to create old-style static archives.
  5279. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5280. old_postinstall_cmds='chmod 644 $oldlib'
  5281. old_postuninstall_cmds=
  5282. if test -n "$RANLIB"; then
  5283. case $host_os in
  5284. openbsd*)
  5285. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5286. ;;
  5287. *)
  5288. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5289. ;;
  5290. esac
  5291. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5292. fi
  5293. case $host_os in
  5294. darwin*)
  5295. lock_old_archive_extraction=yes ;;
  5296. *)
  5297. lock_old_archive_extraction=no ;;
  5298. esac
  5299. # If no C compiler was specified, use CC.
  5300. LTCC=${LTCC-"$CC"}
  5301. # If no C compiler flags were specified, use CFLAGS.
  5302. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5303. # Allow CC to be a program name with arguments.
  5304. compiler=$CC
  5305. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5307. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5308. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5309. $as_echo_n "(cached) " >&6
  5310. else
  5311. # These are sane defaults that work on at least a few old systems.
  5312. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5313. # Character class describing NM global symbol codes.
  5314. symcode='[BCDEGRST]'
  5315. # Regexp to match symbols that can be accessed directly from C.
  5316. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5317. # Define system-specific variables.
  5318. case $host_os in
  5319. aix*)
  5320. symcode='[BCDT]'
  5321. ;;
  5322. cygwin* | mingw* | pw32* | cegcc*)
  5323. symcode='[ABCDGISTW]'
  5324. ;;
  5325. hpux*)
  5326. if test "$host_cpu" = ia64; then
  5327. symcode='[ABCDEGRST]'
  5328. fi
  5329. ;;
  5330. irix* | nonstopux*)
  5331. symcode='[BCDEGRST]'
  5332. ;;
  5333. osf*)
  5334. symcode='[BCDEGQRST]'
  5335. ;;
  5336. solaris*)
  5337. symcode='[BDRT]'
  5338. ;;
  5339. sco3.2v5*)
  5340. symcode='[DT]'
  5341. ;;
  5342. sysv4.2uw2*)
  5343. symcode='[DT]'
  5344. ;;
  5345. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5346. symcode='[ABDT]'
  5347. ;;
  5348. sysv4)
  5349. symcode='[DFNSTU]'
  5350. ;;
  5351. esac
  5352. # If we're using GNU nm, then use its standard symbol codes.
  5353. case `$NM -V 2>&1` in
  5354. *GNU* | *'with BFD'*)
  5355. symcode='[ABCDGIRSTW]' ;;
  5356. esac
  5357. # Transform an extracted symbol line into a proper C declaration.
  5358. # Some systems (esp. on ia64) link data and code symbols differently,
  5359. # so use this general approach.
  5360. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5361. # Transform an extracted symbol line into symbol name and symbol address
  5362. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5363. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5364. # Handle CRLF in mingw tool chain
  5365. opt_cr=
  5366. case $build_os in
  5367. mingw*)
  5368. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5369. ;;
  5370. esac
  5371. # Try without a prefix underscore, then with it.
  5372. for ac_symprfx in "" "_"; do
  5373. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5374. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5375. # Write the raw and C identifiers.
  5376. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5377. # Fake it for dumpbin and say T for any non-static function
  5378. # and D for any global variable.
  5379. # Also find C++ and __fastcall symbols from MSVC++,
  5380. # which start with @ or ?.
  5381. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5382. " {last_section=section; section=\$ 3};"\
  5383. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5384. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5385. " \$ 0!~/External *\|/{next};"\
  5386. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5387. " {if(hide[section]) next};"\
  5388. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5389. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5390. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5391. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5392. " ' prfx=^$ac_symprfx"
  5393. else
  5394. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5395. fi
  5396. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5397. # Check to see that the pipe works correctly.
  5398. pipe_works=no
  5399. rm -f conftest*
  5400. cat > conftest.$ac_ext <<_LT_EOF
  5401. #ifdef __cplusplus
  5402. extern "C" {
  5403. #endif
  5404. char nm_test_var;
  5405. void nm_test_func(void);
  5406. void nm_test_func(void){}
  5407. #ifdef __cplusplus
  5408. }
  5409. #endif
  5410. int main(){nm_test_var='a';nm_test_func();return(0);}
  5411. _LT_EOF
  5412. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5413. (eval $ac_compile) 2>&5
  5414. ac_status=$?
  5415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5416. test $ac_status = 0; }; then
  5417. # Now try to grab the symbols.
  5418. nlist=conftest.nm
  5419. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5420. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5421. ac_status=$?
  5422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5423. test $ac_status = 0; } && test -s "$nlist"; then
  5424. # Try sorting and uniquifying the output.
  5425. if sort "$nlist" | uniq > "$nlist"T; then
  5426. mv -f "$nlist"T "$nlist"
  5427. else
  5428. rm -f "$nlist"T
  5429. fi
  5430. # Make sure that we snagged all the symbols we need.
  5431. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5432. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5433. cat <<_LT_EOF > conftest.$ac_ext
  5434. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5435. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5436. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5437. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5438. # define LT_DLSYM_CONST
  5439. #elif defined(__osf__)
  5440. /* This system does not cope well with relocations in const data. */
  5441. # define LT_DLSYM_CONST
  5442. #else
  5443. # define LT_DLSYM_CONST const
  5444. #endif
  5445. #ifdef __cplusplus
  5446. extern "C" {
  5447. #endif
  5448. _LT_EOF
  5449. # Now generate the symbol file.
  5450. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5451. cat <<_LT_EOF >> conftest.$ac_ext
  5452. /* The mapping between symbol names and symbols. */
  5453. LT_DLSYM_CONST struct {
  5454. const char *name;
  5455. void *address;
  5456. }
  5457. lt__PROGRAM__LTX_preloaded_symbols[] =
  5458. {
  5459. { "@PROGRAM@", (void *) 0 },
  5460. _LT_EOF
  5461. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5462. cat <<\_LT_EOF >> conftest.$ac_ext
  5463. {0, (void *) 0}
  5464. };
  5465. /* This works around a problem in FreeBSD linker */
  5466. #ifdef FREEBSD_WORKAROUND
  5467. static const void *lt_preloaded_setup() {
  5468. return lt__PROGRAM__LTX_preloaded_symbols;
  5469. }
  5470. #endif
  5471. #ifdef __cplusplus
  5472. }
  5473. #endif
  5474. _LT_EOF
  5475. # Now try linking the two files.
  5476. mv conftest.$ac_objext conftstm.$ac_objext
  5477. lt_globsym_save_LIBS=$LIBS
  5478. lt_globsym_save_CFLAGS=$CFLAGS
  5479. LIBS="conftstm.$ac_objext"
  5480. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5481. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5482. (eval $ac_link) 2>&5
  5483. ac_status=$?
  5484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5485. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5486. pipe_works=yes
  5487. fi
  5488. LIBS=$lt_globsym_save_LIBS
  5489. CFLAGS=$lt_globsym_save_CFLAGS
  5490. else
  5491. echo "cannot find nm_test_func in $nlist" >&5
  5492. fi
  5493. else
  5494. echo "cannot find nm_test_var in $nlist" >&5
  5495. fi
  5496. else
  5497. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5498. fi
  5499. else
  5500. echo "$progname: failed program was:" >&5
  5501. cat conftest.$ac_ext >&5
  5502. fi
  5503. rm -rf conftest* conftst*
  5504. # Do not use the global_symbol_pipe unless it works.
  5505. if test "$pipe_works" = yes; then
  5506. break
  5507. else
  5508. lt_cv_sys_global_symbol_pipe=
  5509. fi
  5510. done
  5511. fi
  5512. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5513. lt_cv_sys_global_symbol_to_cdecl=
  5514. fi
  5515. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5517. $as_echo "failed" >&6; }
  5518. else
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5520. $as_echo "ok" >&6; }
  5521. fi
  5522. # Response file support.
  5523. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5524. nm_file_list_spec='@'
  5525. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5526. nm_file_list_spec='@'
  5527. fi
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5529. $as_echo_n "checking for sysroot... " >&6; }
  5530. # Check whether --with-sysroot was given.
  5531. if test "${with_sysroot+set}" = set; then :
  5532. withval=$with_sysroot;
  5533. else
  5534. with_sysroot=no
  5535. fi
  5536. lt_sysroot=
  5537. case ${with_sysroot} in #(
  5538. yes)
  5539. if test "$GCC" = yes; then
  5540. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5541. fi
  5542. ;; #(
  5543. /*)
  5544. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5545. ;; #(
  5546. no|'')
  5547. ;; #(
  5548. *)
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5550. $as_echo "${with_sysroot}" >&6; }
  5551. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5552. ;;
  5553. esac
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5555. $as_echo "${lt_sysroot:-no}" >&6; }
  5556. # Check whether --enable-libtool-lock was given.
  5557. if test "${enable_libtool_lock+set}" = set; then :
  5558. enableval=$enable_libtool_lock;
  5559. fi
  5560. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5561. # Some flags need to be propagated to the compiler or linker for good
  5562. # libtool support.
  5563. case $host in
  5564. ia64-*-hpux*)
  5565. # Find out which ABI we are using.
  5566. echo 'int i;' > conftest.$ac_ext
  5567. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5568. (eval $ac_compile) 2>&5
  5569. ac_status=$?
  5570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5571. test $ac_status = 0; }; then
  5572. case `/usr/bin/file conftest.$ac_objext` in
  5573. *ELF-32*)
  5574. HPUX_IA64_MODE="32"
  5575. ;;
  5576. *ELF-64*)
  5577. HPUX_IA64_MODE="64"
  5578. ;;
  5579. esac
  5580. fi
  5581. rm -rf conftest*
  5582. ;;
  5583. *-*-irix6*)
  5584. # Find out which ABI we are using.
  5585. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5586. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5587. (eval $ac_compile) 2>&5
  5588. ac_status=$?
  5589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5590. test $ac_status = 0; }; then
  5591. if test "$lt_cv_prog_gnu_ld" = yes; then
  5592. case `/usr/bin/file conftest.$ac_objext` in
  5593. *32-bit*)
  5594. LD="${LD-ld} -melf32bsmip"
  5595. ;;
  5596. *N32*)
  5597. LD="${LD-ld} -melf32bmipn32"
  5598. ;;
  5599. *64-bit*)
  5600. LD="${LD-ld} -melf64bmip"
  5601. ;;
  5602. esac
  5603. else
  5604. case `/usr/bin/file conftest.$ac_objext` in
  5605. *32-bit*)
  5606. LD="${LD-ld} -32"
  5607. ;;
  5608. *N32*)
  5609. LD="${LD-ld} -n32"
  5610. ;;
  5611. *64-bit*)
  5612. LD="${LD-ld} -64"
  5613. ;;
  5614. esac
  5615. fi
  5616. fi
  5617. rm -rf conftest*
  5618. ;;
  5619. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5620. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5621. # Find out which ABI we are using.
  5622. echo 'int i;' > conftest.$ac_ext
  5623. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5624. (eval $ac_compile) 2>&5
  5625. ac_status=$?
  5626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5627. test $ac_status = 0; }; then
  5628. case `/usr/bin/file conftest.o` in
  5629. *32-bit*)
  5630. case $host in
  5631. x86_64-*kfreebsd*-gnu)
  5632. LD="${LD-ld} -m elf_i386_fbsd"
  5633. ;;
  5634. x86_64-*linux*)
  5635. LD="${LD-ld} -m elf_i386"
  5636. ;;
  5637. powerpc64le-*linux*)
  5638. LD="${LD-ld} -m elf32lppclinux"
  5639. ;;
  5640. powerpc64-*linux*)
  5641. LD="${LD-ld} -m elf32ppclinux"
  5642. ;;
  5643. s390x-*linux*)
  5644. LD="${LD-ld} -m elf_s390"
  5645. ;;
  5646. sparc64-*linux*)
  5647. LD="${LD-ld} -m elf32_sparc"
  5648. ;;
  5649. esac
  5650. ;;
  5651. *64-bit*)
  5652. case $host in
  5653. x86_64-*kfreebsd*-gnu)
  5654. LD="${LD-ld} -m elf_x86_64_fbsd"
  5655. ;;
  5656. x86_64-*linux*)
  5657. LD="${LD-ld} -m elf_x86_64"
  5658. ;;
  5659. powerpcle-*linux*)
  5660. LD="${LD-ld} -m elf64lppc"
  5661. ;;
  5662. powerpc-*linux*)
  5663. LD="${LD-ld} -m elf64ppc"
  5664. ;;
  5665. s390*-*linux*|s390*-*tpf*)
  5666. LD="${LD-ld} -m elf64_s390"
  5667. ;;
  5668. sparc*-*linux*)
  5669. LD="${LD-ld} -m elf64_sparc"
  5670. ;;
  5671. esac
  5672. ;;
  5673. esac
  5674. fi
  5675. rm -rf conftest*
  5676. ;;
  5677. *-*-sco3.2v5*)
  5678. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5679. SAVE_CFLAGS="$CFLAGS"
  5680. CFLAGS="$CFLAGS -belf"
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5682. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5683. if ${lt_cv_cc_needs_belf+:} false; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. ac_ext=c
  5687. ac_cpp='$CPP $CPPFLAGS'
  5688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5692. /* end confdefs.h. */
  5693. int
  5694. main ()
  5695. {
  5696. ;
  5697. return 0;
  5698. }
  5699. _ACEOF
  5700. if ac_fn_c_try_link "$LINENO"; then :
  5701. lt_cv_cc_needs_belf=yes
  5702. else
  5703. lt_cv_cc_needs_belf=no
  5704. fi
  5705. rm -f core conftest.err conftest.$ac_objext \
  5706. conftest$ac_exeext conftest.$ac_ext
  5707. ac_ext=c
  5708. ac_cpp='$CPP $CPPFLAGS'
  5709. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5710. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5711. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5712. fi
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5714. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5715. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5716. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5717. CFLAGS="$SAVE_CFLAGS"
  5718. fi
  5719. ;;
  5720. *-*solaris*)
  5721. # Find out which ABI we are using.
  5722. echo 'int i;' > conftest.$ac_ext
  5723. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5724. (eval $ac_compile) 2>&5
  5725. ac_status=$?
  5726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5727. test $ac_status = 0; }; then
  5728. case `/usr/bin/file conftest.o` in
  5729. *64-bit*)
  5730. case $lt_cv_prog_gnu_ld in
  5731. yes*)
  5732. case $host in
  5733. i?86-*-solaris*)
  5734. LD="${LD-ld} -m elf_x86_64"
  5735. ;;
  5736. sparc*-*-solaris*)
  5737. LD="${LD-ld} -m elf64_sparc"
  5738. ;;
  5739. esac
  5740. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5741. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5742. LD="${LD-ld}_sol2"
  5743. fi
  5744. ;;
  5745. *)
  5746. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5747. LD="${LD-ld} -64"
  5748. fi
  5749. ;;
  5750. esac
  5751. ;;
  5752. esac
  5753. fi
  5754. rm -rf conftest*
  5755. ;;
  5756. esac
  5757. need_locks="$enable_libtool_lock"
  5758. if test -n "$ac_tool_prefix"; then
  5759. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5760. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5762. $as_echo_n "checking for $ac_word... " >&6; }
  5763. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5764. $as_echo_n "(cached) " >&6
  5765. else
  5766. if test -n "$MANIFEST_TOOL"; then
  5767. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5768. else
  5769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5770. for as_dir in $PATH
  5771. do
  5772. IFS=$as_save_IFS
  5773. test -z "$as_dir" && as_dir=.
  5774. for ac_exec_ext in '' $ac_executable_extensions; do
  5775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5776. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5778. break 2
  5779. fi
  5780. done
  5781. done
  5782. IFS=$as_save_IFS
  5783. fi
  5784. fi
  5785. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5786. if test -n "$MANIFEST_TOOL"; then
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5788. $as_echo "$MANIFEST_TOOL" >&6; }
  5789. else
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5791. $as_echo "no" >&6; }
  5792. fi
  5793. fi
  5794. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5795. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5796. # Extract the first word of "mt", so it can be a program name with args.
  5797. set dummy mt; ac_word=$2
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5799. $as_echo_n "checking for $ac_word... " >&6; }
  5800. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5801. $as_echo_n "(cached) " >&6
  5802. else
  5803. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5804. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5805. else
  5806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5807. for as_dir in $PATH
  5808. do
  5809. IFS=$as_save_IFS
  5810. test -z "$as_dir" && as_dir=.
  5811. for ac_exec_ext in '' $ac_executable_extensions; do
  5812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5813. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5815. break 2
  5816. fi
  5817. done
  5818. done
  5819. IFS=$as_save_IFS
  5820. fi
  5821. fi
  5822. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5823. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5825. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5826. else
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5828. $as_echo "no" >&6; }
  5829. fi
  5830. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5831. MANIFEST_TOOL=":"
  5832. else
  5833. case $cross_compiling:$ac_tool_warned in
  5834. yes:)
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5836. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5837. ac_tool_warned=yes ;;
  5838. esac
  5839. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5840. fi
  5841. else
  5842. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5843. fi
  5844. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5846. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5847. if ${lt_cv_path_mainfest_tool+:} false; then :
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. lt_cv_path_mainfest_tool=no
  5851. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5852. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5853. cat conftest.err >&5
  5854. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5855. lt_cv_path_mainfest_tool=yes
  5856. fi
  5857. rm -f conftest*
  5858. fi
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5860. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5861. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5862. MANIFEST_TOOL=:
  5863. fi
  5864. case $host_os in
  5865. rhapsody* | darwin*)
  5866. if test -n "$ac_tool_prefix"; then
  5867. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5868. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5870. $as_echo_n "checking for $ac_word... " >&6; }
  5871. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5872. $as_echo_n "(cached) " >&6
  5873. else
  5874. if test -n "$DSYMUTIL"; then
  5875. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5876. else
  5877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5878. for as_dir in $PATH
  5879. do
  5880. IFS=$as_save_IFS
  5881. test -z "$as_dir" && as_dir=.
  5882. for ac_exec_ext in '' $ac_executable_extensions; do
  5883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5884. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5886. break 2
  5887. fi
  5888. done
  5889. done
  5890. IFS=$as_save_IFS
  5891. fi
  5892. fi
  5893. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5894. if test -n "$DSYMUTIL"; then
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5896. $as_echo "$DSYMUTIL" >&6; }
  5897. else
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5899. $as_echo "no" >&6; }
  5900. fi
  5901. fi
  5902. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5903. ac_ct_DSYMUTIL=$DSYMUTIL
  5904. # Extract the first word of "dsymutil", so it can be a program name with args.
  5905. set dummy dsymutil; ac_word=$2
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5907. $as_echo_n "checking for $ac_word... " >&6; }
  5908. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5909. $as_echo_n "(cached) " >&6
  5910. else
  5911. if test -n "$ac_ct_DSYMUTIL"; then
  5912. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5913. else
  5914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5915. for as_dir in $PATH
  5916. do
  5917. IFS=$as_save_IFS
  5918. test -z "$as_dir" && as_dir=.
  5919. for ac_exec_ext in '' $ac_executable_extensions; do
  5920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5921. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5923. break 2
  5924. fi
  5925. done
  5926. done
  5927. IFS=$as_save_IFS
  5928. fi
  5929. fi
  5930. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5931. if test -n "$ac_ct_DSYMUTIL"; then
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5933. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5934. else
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5936. $as_echo "no" >&6; }
  5937. fi
  5938. if test "x$ac_ct_DSYMUTIL" = x; then
  5939. DSYMUTIL=":"
  5940. else
  5941. case $cross_compiling:$ac_tool_warned in
  5942. yes:)
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5944. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5945. ac_tool_warned=yes ;;
  5946. esac
  5947. DSYMUTIL=$ac_ct_DSYMUTIL
  5948. fi
  5949. else
  5950. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5951. fi
  5952. if test -n "$ac_tool_prefix"; then
  5953. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5954. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5956. $as_echo_n "checking for $ac_word... " >&6; }
  5957. if ${ac_cv_prog_NMEDIT+:} false; then :
  5958. $as_echo_n "(cached) " >&6
  5959. else
  5960. if test -n "$NMEDIT"; then
  5961. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5962. else
  5963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5964. for as_dir in $PATH
  5965. do
  5966. IFS=$as_save_IFS
  5967. test -z "$as_dir" && as_dir=.
  5968. for ac_exec_ext in '' $ac_executable_extensions; do
  5969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5970. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5972. break 2
  5973. fi
  5974. done
  5975. done
  5976. IFS=$as_save_IFS
  5977. fi
  5978. fi
  5979. NMEDIT=$ac_cv_prog_NMEDIT
  5980. if test -n "$NMEDIT"; then
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5982. $as_echo "$NMEDIT" >&6; }
  5983. else
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5985. $as_echo "no" >&6; }
  5986. fi
  5987. fi
  5988. if test -z "$ac_cv_prog_NMEDIT"; then
  5989. ac_ct_NMEDIT=$NMEDIT
  5990. # Extract the first word of "nmedit", so it can be a program name with args.
  5991. set dummy nmedit; ac_word=$2
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5993. $as_echo_n "checking for $ac_word... " >&6; }
  5994. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5995. $as_echo_n "(cached) " >&6
  5996. else
  5997. if test -n "$ac_ct_NMEDIT"; then
  5998. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5999. else
  6000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6001. for as_dir in $PATH
  6002. do
  6003. IFS=$as_save_IFS
  6004. test -z "$as_dir" && as_dir=.
  6005. for ac_exec_ext in '' $ac_executable_extensions; do
  6006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6007. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6009. break 2
  6010. fi
  6011. done
  6012. done
  6013. IFS=$as_save_IFS
  6014. fi
  6015. fi
  6016. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6017. if test -n "$ac_ct_NMEDIT"; then
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6019. $as_echo "$ac_ct_NMEDIT" >&6; }
  6020. else
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6022. $as_echo "no" >&6; }
  6023. fi
  6024. if test "x$ac_ct_NMEDIT" = x; then
  6025. NMEDIT=":"
  6026. else
  6027. case $cross_compiling:$ac_tool_warned in
  6028. yes:)
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6030. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6031. ac_tool_warned=yes ;;
  6032. esac
  6033. NMEDIT=$ac_ct_NMEDIT
  6034. fi
  6035. else
  6036. NMEDIT="$ac_cv_prog_NMEDIT"
  6037. fi
  6038. if test -n "$ac_tool_prefix"; then
  6039. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6040. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6042. $as_echo_n "checking for $ac_word... " >&6; }
  6043. if ${ac_cv_prog_LIPO+:} false; then :
  6044. $as_echo_n "(cached) " >&6
  6045. else
  6046. if test -n "$LIPO"; then
  6047. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6048. else
  6049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6050. for as_dir in $PATH
  6051. do
  6052. IFS=$as_save_IFS
  6053. test -z "$as_dir" && as_dir=.
  6054. for ac_exec_ext in '' $ac_executable_extensions; do
  6055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6056. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6058. break 2
  6059. fi
  6060. done
  6061. done
  6062. IFS=$as_save_IFS
  6063. fi
  6064. fi
  6065. LIPO=$ac_cv_prog_LIPO
  6066. if test -n "$LIPO"; then
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6068. $as_echo "$LIPO" >&6; }
  6069. else
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6071. $as_echo "no" >&6; }
  6072. fi
  6073. fi
  6074. if test -z "$ac_cv_prog_LIPO"; then
  6075. ac_ct_LIPO=$LIPO
  6076. # Extract the first word of "lipo", so it can be a program name with args.
  6077. set dummy lipo; ac_word=$2
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6079. $as_echo_n "checking for $ac_word... " >&6; }
  6080. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. if test -n "$ac_ct_LIPO"; then
  6084. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6085. else
  6086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6087. for as_dir in $PATH
  6088. do
  6089. IFS=$as_save_IFS
  6090. test -z "$as_dir" && as_dir=.
  6091. for ac_exec_ext in '' $ac_executable_extensions; do
  6092. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6093. ac_cv_prog_ac_ct_LIPO="lipo"
  6094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6095. break 2
  6096. fi
  6097. done
  6098. done
  6099. IFS=$as_save_IFS
  6100. fi
  6101. fi
  6102. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6103. if test -n "$ac_ct_LIPO"; then
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6105. $as_echo "$ac_ct_LIPO" >&6; }
  6106. else
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6108. $as_echo "no" >&6; }
  6109. fi
  6110. if test "x$ac_ct_LIPO" = x; then
  6111. LIPO=":"
  6112. else
  6113. case $cross_compiling:$ac_tool_warned in
  6114. yes:)
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6116. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6117. ac_tool_warned=yes ;;
  6118. esac
  6119. LIPO=$ac_ct_LIPO
  6120. fi
  6121. else
  6122. LIPO="$ac_cv_prog_LIPO"
  6123. fi
  6124. if test -n "$ac_tool_prefix"; then
  6125. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6126. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6128. $as_echo_n "checking for $ac_word... " >&6; }
  6129. if ${ac_cv_prog_OTOOL+:} false; then :
  6130. $as_echo_n "(cached) " >&6
  6131. else
  6132. if test -n "$OTOOL"; then
  6133. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6134. else
  6135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6136. for as_dir in $PATH
  6137. do
  6138. IFS=$as_save_IFS
  6139. test -z "$as_dir" && as_dir=.
  6140. for ac_exec_ext in '' $ac_executable_extensions; do
  6141. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6142. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6144. break 2
  6145. fi
  6146. done
  6147. done
  6148. IFS=$as_save_IFS
  6149. fi
  6150. fi
  6151. OTOOL=$ac_cv_prog_OTOOL
  6152. if test -n "$OTOOL"; then
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6154. $as_echo "$OTOOL" >&6; }
  6155. else
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6157. $as_echo "no" >&6; }
  6158. fi
  6159. fi
  6160. if test -z "$ac_cv_prog_OTOOL"; then
  6161. ac_ct_OTOOL=$OTOOL
  6162. # Extract the first word of "otool", so it can be a program name with args.
  6163. set dummy otool; ac_word=$2
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6165. $as_echo_n "checking for $ac_word... " >&6; }
  6166. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6167. $as_echo_n "(cached) " >&6
  6168. else
  6169. if test -n "$ac_ct_OTOOL"; then
  6170. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6171. else
  6172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6173. for as_dir in $PATH
  6174. do
  6175. IFS=$as_save_IFS
  6176. test -z "$as_dir" && as_dir=.
  6177. for ac_exec_ext in '' $ac_executable_extensions; do
  6178. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6179. ac_cv_prog_ac_ct_OTOOL="otool"
  6180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6181. break 2
  6182. fi
  6183. done
  6184. done
  6185. IFS=$as_save_IFS
  6186. fi
  6187. fi
  6188. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6189. if test -n "$ac_ct_OTOOL"; then
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6191. $as_echo "$ac_ct_OTOOL" >&6; }
  6192. else
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6194. $as_echo "no" >&6; }
  6195. fi
  6196. if test "x$ac_ct_OTOOL" = x; then
  6197. OTOOL=":"
  6198. else
  6199. case $cross_compiling:$ac_tool_warned in
  6200. yes:)
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6202. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6203. ac_tool_warned=yes ;;
  6204. esac
  6205. OTOOL=$ac_ct_OTOOL
  6206. fi
  6207. else
  6208. OTOOL="$ac_cv_prog_OTOOL"
  6209. fi
  6210. if test -n "$ac_tool_prefix"; then
  6211. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6212. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6214. $as_echo_n "checking for $ac_word... " >&6; }
  6215. if ${ac_cv_prog_OTOOL64+:} false; then :
  6216. $as_echo_n "(cached) " >&6
  6217. else
  6218. if test -n "$OTOOL64"; then
  6219. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6220. else
  6221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6222. for as_dir in $PATH
  6223. do
  6224. IFS=$as_save_IFS
  6225. test -z "$as_dir" && as_dir=.
  6226. for ac_exec_ext in '' $ac_executable_extensions; do
  6227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6228. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6230. break 2
  6231. fi
  6232. done
  6233. done
  6234. IFS=$as_save_IFS
  6235. fi
  6236. fi
  6237. OTOOL64=$ac_cv_prog_OTOOL64
  6238. if test -n "$OTOOL64"; then
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6240. $as_echo "$OTOOL64" >&6; }
  6241. else
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6243. $as_echo "no" >&6; }
  6244. fi
  6245. fi
  6246. if test -z "$ac_cv_prog_OTOOL64"; then
  6247. ac_ct_OTOOL64=$OTOOL64
  6248. # Extract the first word of "otool64", so it can be a program name with args.
  6249. set dummy otool64; ac_word=$2
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6251. $as_echo_n "checking for $ac_word... " >&6; }
  6252. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6253. $as_echo_n "(cached) " >&6
  6254. else
  6255. if test -n "$ac_ct_OTOOL64"; then
  6256. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6257. else
  6258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6259. for as_dir in $PATH
  6260. do
  6261. IFS=$as_save_IFS
  6262. test -z "$as_dir" && as_dir=.
  6263. for ac_exec_ext in '' $ac_executable_extensions; do
  6264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6265. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6267. break 2
  6268. fi
  6269. done
  6270. done
  6271. IFS=$as_save_IFS
  6272. fi
  6273. fi
  6274. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6275. if test -n "$ac_ct_OTOOL64"; then
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6277. $as_echo "$ac_ct_OTOOL64" >&6; }
  6278. else
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6280. $as_echo "no" >&6; }
  6281. fi
  6282. if test "x$ac_ct_OTOOL64" = x; then
  6283. OTOOL64=":"
  6284. else
  6285. case $cross_compiling:$ac_tool_warned in
  6286. yes:)
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6289. ac_tool_warned=yes ;;
  6290. esac
  6291. OTOOL64=$ac_ct_OTOOL64
  6292. fi
  6293. else
  6294. OTOOL64="$ac_cv_prog_OTOOL64"
  6295. fi
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6297. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6298. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6299. $as_echo_n "(cached) " >&6
  6300. else
  6301. lt_cv_apple_cc_single_mod=no
  6302. if test -z "${LT_MULTI_MODULE}"; then
  6303. # By default we will add the -single_module flag. You can override
  6304. # by either setting the environment variable LT_MULTI_MODULE
  6305. # non-empty at configure time, or by adding -multi_module to the
  6306. # link flags.
  6307. rm -rf libconftest.dylib*
  6308. echo "int foo(void){return 1;}" > conftest.c
  6309. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6310. -dynamiclib -Wl,-single_module conftest.c" >&5
  6311. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6312. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6313. _lt_result=$?
  6314. # If there is a non-empty error log, and "single_module"
  6315. # appears in it, assume the flag caused a linker warning
  6316. if test -s conftest.err && $GREP single_module conftest.err; then
  6317. cat conftest.err >&5
  6318. # Otherwise, if the output was created with a 0 exit code from
  6319. # the compiler, it worked.
  6320. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6321. lt_cv_apple_cc_single_mod=yes
  6322. else
  6323. cat conftest.err >&5
  6324. fi
  6325. rm -rf libconftest.dylib*
  6326. rm -f conftest.*
  6327. fi
  6328. fi
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6330. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6332. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6333. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6334. $as_echo_n "(cached) " >&6
  6335. else
  6336. lt_cv_ld_exported_symbols_list=no
  6337. save_LDFLAGS=$LDFLAGS
  6338. echo "_main" > conftest.sym
  6339. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6341. /* end confdefs.h. */
  6342. int
  6343. main ()
  6344. {
  6345. ;
  6346. return 0;
  6347. }
  6348. _ACEOF
  6349. if ac_fn_c_try_link "$LINENO"; then :
  6350. lt_cv_ld_exported_symbols_list=yes
  6351. else
  6352. lt_cv_ld_exported_symbols_list=no
  6353. fi
  6354. rm -f core conftest.err conftest.$ac_objext \
  6355. conftest$ac_exeext conftest.$ac_ext
  6356. LDFLAGS="$save_LDFLAGS"
  6357. fi
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6359. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6361. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6362. if ${lt_cv_ld_force_load+:} false; then :
  6363. $as_echo_n "(cached) " >&6
  6364. else
  6365. lt_cv_ld_force_load=no
  6366. cat > conftest.c << _LT_EOF
  6367. int forced_loaded() { return 2;}
  6368. _LT_EOF
  6369. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6370. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6371. echo "$AR cru libconftest.a conftest.o" >&5
  6372. $AR cru libconftest.a conftest.o 2>&5
  6373. echo "$RANLIB libconftest.a" >&5
  6374. $RANLIB libconftest.a 2>&5
  6375. cat > conftest.c << _LT_EOF
  6376. int main() { return 0;}
  6377. _LT_EOF
  6378. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6379. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6380. _lt_result=$?
  6381. if test -s conftest.err && $GREP force_load conftest.err; then
  6382. cat conftest.err >&5
  6383. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6384. lt_cv_ld_force_load=yes
  6385. else
  6386. cat conftest.err >&5
  6387. fi
  6388. rm -f conftest.err libconftest.a conftest conftest.c
  6389. rm -rf conftest.dSYM
  6390. fi
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6392. $as_echo "$lt_cv_ld_force_load" >&6; }
  6393. case $host_os in
  6394. rhapsody* | darwin1.[012])
  6395. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6396. darwin1.*)
  6397. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6398. darwin*) # darwin 5.x on
  6399. # if running on 10.5 or later, the deployment target defaults
  6400. # to the OS version, if on x86, and 10.4, the deployment
  6401. # target defaults to 10.4. Don't you love it?
  6402. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6403. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6404. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6405. 10.[012]*)
  6406. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6407. 10.*)
  6408. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6409. esac
  6410. ;;
  6411. esac
  6412. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6413. _lt_dar_single_mod='$single_module'
  6414. fi
  6415. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6416. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6417. else
  6418. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6419. fi
  6420. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6421. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6422. else
  6423. _lt_dsymutil=
  6424. fi
  6425. ;;
  6426. esac
  6427. ac_ext=c
  6428. ac_cpp='$CPP $CPPFLAGS'
  6429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6433. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6434. # On Suns, sometimes $CPP names a directory.
  6435. if test -n "$CPP" && test -d "$CPP"; then
  6436. CPP=
  6437. fi
  6438. if test -z "$CPP"; then
  6439. if ${ac_cv_prog_CPP+:} false; then :
  6440. $as_echo_n "(cached) " >&6
  6441. else
  6442. # Double quotes because CPP needs to be expanded
  6443. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6444. do
  6445. ac_preproc_ok=false
  6446. for ac_c_preproc_warn_flag in '' yes
  6447. do
  6448. # Use a header file that comes with gcc, so configuring glibc
  6449. # with a fresh cross-compiler works.
  6450. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6451. # <limits.h> exists even on freestanding compilers.
  6452. # On the NeXT, cc -E runs the code through the compiler's parser,
  6453. # not just through cpp. "Syntax error" is here to catch this case.
  6454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6455. /* end confdefs.h. */
  6456. #ifdef __STDC__
  6457. # include <limits.h>
  6458. #else
  6459. # include <assert.h>
  6460. #endif
  6461. Syntax error
  6462. _ACEOF
  6463. if ac_fn_c_try_cpp "$LINENO"; then :
  6464. else
  6465. # Broken: fails on valid input.
  6466. continue
  6467. fi
  6468. rm -f conftest.err conftest.i conftest.$ac_ext
  6469. # OK, works on sane cases. Now check whether nonexistent headers
  6470. # can be detected and how.
  6471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6472. /* end confdefs.h. */
  6473. #include <ac_nonexistent.h>
  6474. _ACEOF
  6475. if ac_fn_c_try_cpp "$LINENO"; then :
  6476. # Broken: success on invalid input.
  6477. continue
  6478. else
  6479. # Passes both tests.
  6480. ac_preproc_ok=:
  6481. break
  6482. fi
  6483. rm -f conftest.err conftest.i conftest.$ac_ext
  6484. done
  6485. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6486. rm -f conftest.i conftest.err conftest.$ac_ext
  6487. if $ac_preproc_ok; then :
  6488. break
  6489. fi
  6490. done
  6491. ac_cv_prog_CPP=$CPP
  6492. fi
  6493. CPP=$ac_cv_prog_CPP
  6494. else
  6495. ac_cv_prog_CPP=$CPP
  6496. fi
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6498. $as_echo "$CPP" >&6; }
  6499. ac_preproc_ok=false
  6500. for ac_c_preproc_warn_flag in '' yes
  6501. do
  6502. # Use a header file that comes with gcc, so configuring glibc
  6503. # with a fresh cross-compiler works.
  6504. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6505. # <limits.h> exists even on freestanding compilers.
  6506. # On the NeXT, cc -E runs the code through the compiler's parser,
  6507. # not just through cpp. "Syntax error" is here to catch this case.
  6508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6509. /* end confdefs.h. */
  6510. #ifdef __STDC__
  6511. # include <limits.h>
  6512. #else
  6513. # include <assert.h>
  6514. #endif
  6515. Syntax error
  6516. _ACEOF
  6517. if ac_fn_c_try_cpp "$LINENO"; then :
  6518. else
  6519. # Broken: fails on valid input.
  6520. continue
  6521. fi
  6522. rm -f conftest.err conftest.i conftest.$ac_ext
  6523. # OK, works on sane cases. Now check whether nonexistent headers
  6524. # can be detected and how.
  6525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6526. /* end confdefs.h. */
  6527. #include <ac_nonexistent.h>
  6528. _ACEOF
  6529. if ac_fn_c_try_cpp "$LINENO"; then :
  6530. # Broken: success on invalid input.
  6531. continue
  6532. else
  6533. # Passes both tests.
  6534. ac_preproc_ok=:
  6535. break
  6536. fi
  6537. rm -f conftest.err conftest.i conftest.$ac_ext
  6538. done
  6539. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6540. rm -f conftest.i conftest.err conftest.$ac_ext
  6541. if $ac_preproc_ok; then :
  6542. else
  6543. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6544. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6545. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6546. See \`config.log' for more details" "$LINENO" 5; }
  6547. fi
  6548. ac_ext=c
  6549. ac_cpp='$CPP $CPPFLAGS'
  6550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6554. $as_echo_n "checking for ANSI C header files... " >&6; }
  6555. if ${ac_cv_header_stdc+:} false; then :
  6556. $as_echo_n "(cached) " >&6
  6557. else
  6558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6559. /* end confdefs.h. */
  6560. #include <stdlib.h>
  6561. #include <stdarg.h>
  6562. #include <string.h>
  6563. #include <float.h>
  6564. int
  6565. main ()
  6566. {
  6567. ;
  6568. return 0;
  6569. }
  6570. _ACEOF
  6571. if ac_fn_c_try_compile "$LINENO"; then :
  6572. ac_cv_header_stdc=yes
  6573. else
  6574. ac_cv_header_stdc=no
  6575. fi
  6576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6577. if test $ac_cv_header_stdc = yes; then
  6578. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6580. /* end confdefs.h. */
  6581. #include <string.h>
  6582. _ACEOF
  6583. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6584. $EGREP "memchr" >/dev/null 2>&1; then :
  6585. else
  6586. ac_cv_header_stdc=no
  6587. fi
  6588. rm -f conftest*
  6589. fi
  6590. if test $ac_cv_header_stdc = yes; then
  6591. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6593. /* end confdefs.h. */
  6594. #include <stdlib.h>
  6595. _ACEOF
  6596. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6597. $EGREP "free" >/dev/null 2>&1; then :
  6598. else
  6599. ac_cv_header_stdc=no
  6600. fi
  6601. rm -f conftest*
  6602. fi
  6603. if test $ac_cv_header_stdc = yes; then
  6604. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6605. if test "$cross_compiling" = yes; then :
  6606. :
  6607. else
  6608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6609. /* end confdefs.h. */
  6610. #include <ctype.h>
  6611. #include <stdlib.h>
  6612. #if ((' ' & 0x0FF) == 0x020)
  6613. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6614. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6615. #else
  6616. # define ISLOWER(c) \
  6617. (('a' <= (c) && (c) <= 'i') \
  6618. || ('j' <= (c) && (c) <= 'r') \
  6619. || ('s' <= (c) && (c) <= 'z'))
  6620. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6621. #endif
  6622. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6623. int
  6624. main ()
  6625. {
  6626. int i;
  6627. for (i = 0; i < 256; i++)
  6628. if (XOR (islower (i), ISLOWER (i))
  6629. || toupper (i) != TOUPPER (i))
  6630. return 2;
  6631. return 0;
  6632. }
  6633. _ACEOF
  6634. if ac_fn_c_try_run "$LINENO"; then :
  6635. else
  6636. ac_cv_header_stdc=no
  6637. fi
  6638. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6639. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6640. fi
  6641. fi
  6642. fi
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6644. $as_echo "$ac_cv_header_stdc" >&6; }
  6645. if test $ac_cv_header_stdc = yes; then
  6646. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6647. fi
  6648. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6649. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6650. inttypes.h stdint.h unistd.h
  6651. do :
  6652. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6653. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6654. "
  6655. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6656. cat >>confdefs.h <<_ACEOF
  6657. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6658. _ACEOF
  6659. fi
  6660. done
  6661. for ac_header in dlfcn.h
  6662. do :
  6663. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6664. "
  6665. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6666. cat >>confdefs.h <<_ACEOF
  6667. #define HAVE_DLFCN_H 1
  6668. _ACEOF
  6669. fi
  6670. done
  6671. # Set options
  6672. enable_dlopen=no
  6673. enable_win32_dll=no
  6674. # Check whether --enable-shared was given.
  6675. if test "${enable_shared+set}" = set; then :
  6676. enableval=$enable_shared; p=${PACKAGE-default}
  6677. case $enableval in
  6678. yes) enable_shared=yes ;;
  6679. no) enable_shared=no ;;
  6680. *)
  6681. enable_shared=no
  6682. # Look at the argument we got. We use all the common list separators.
  6683. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6684. for pkg in $enableval; do
  6685. IFS="$lt_save_ifs"
  6686. if test "X$pkg" = "X$p"; then
  6687. enable_shared=yes
  6688. fi
  6689. done
  6690. IFS="$lt_save_ifs"
  6691. ;;
  6692. esac
  6693. else
  6694. enable_shared=yes
  6695. fi
  6696. # Check whether --enable-static was given.
  6697. if test "${enable_static+set}" = set; then :
  6698. enableval=$enable_static; p=${PACKAGE-default}
  6699. case $enableval in
  6700. yes) enable_static=yes ;;
  6701. no) enable_static=no ;;
  6702. *)
  6703. enable_static=no
  6704. # Look at the argument we got. We use all the common list separators.
  6705. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6706. for pkg in $enableval; do
  6707. IFS="$lt_save_ifs"
  6708. if test "X$pkg" = "X$p"; then
  6709. enable_static=yes
  6710. fi
  6711. done
  6712. IFS="$lt_save_ifs"
  6713. ;;
  6714. esac
  6715. else
  6716. enable_static=yes
  6717. fi
  6718. # Check whether --with-pic was given.
  6719. if test "${with_pic+set}" = set; then :
  6720. withval=$with_pic; lt_p=${PACKAGE-default}
  6721. case $withval in
  6722. yes|no) pic_mode=$withval ;;
  6723. *)
  6724. pic_mode=default
  6725. # Look at the argument we got. We use all the common list separators.
  6726. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6727. for lt_pkg in $withval; do
  6728. IFS="$lt_save_ifs"
  6729. if test "X$lt_pkg" = "X$lt_p"; then
  6730. pic_mode=yes
  6731. fi
  6732. done
  6733. IFS="$lt_save_ifs"
  6734. ;;
  6735. esac
  6736. else
  6737. pic_mode=default
  6738. fi
  6739. test -z "$pic_mode" && pic_mode=default
  6740. # Check whether --enable-fast-install was given.
  6741. if test "${enable_fast_install+set}" = set; then :
  6742. enableval=$enable_fast_install; p=${PACKAGE-default}
  6743. case $enableval in
  6744. yes) enable_fast_install=yes ;;
  6745. no) enable_fast_install=no ;;
  6746. *)
  6747. enable_fast_install=no
  6748. # Look at the argument we got. We use all the common list separators.
  6749. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6750. for pkg in $enableval; do
  6751. IFS="$lt_save_ifs"
  6752. if test "X$pkg" = "X$p"; then
  6753. enable_fast_install=yes
  6754. fi
  6755. done
  6756. IFS="$lt_save_ifs"
  6757. ;;
  6758. esac
  6759. else
  6760. enable_fast_install=yes
  6761. fi
  6762. # This can be used to rebuild libtool when needed
  6763. LIBTOOL_DEPS="$ltmain"
  6764. # Always use our own libtool.
  6765. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6766. test -z "$LN_S" && LN_S="ln -s"
  6767. if test -n "${ZSH_VERSION+set}" ; then
  6768. setopt NO_GLOB_SUBST
  6769. fi
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6771. $as_echo_n "checking for objdir... " >&6; }
  6772. if ${lt_cv_objdir+:} false; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. rm -f .libs 2>/dev/null
  6776. mkdir .libs 2>/dev/null
  6777. if test -d .libs; then
  6778. lt_cv_objdir=.libs
  6779. else
  6780. # MS-DOS does not allow filenames that begin with a dot.
  6781. lt_cv_objdir=_libs
  6782. fi
  6783. rmdir .libs 2>/dev/null
  6784. fi
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6786. $as_echo "$lt_cv_objdir" >&6; }
  6787. objdir=$lt_cv_objdir
  6788. cat >>confdefs.h <<_ACEOF
  6789. #define LT_OBJDIR "$lt_cv_objdir/"
  6790. _ACEOF
  6791. case $host_os in
  6792. aix3*)
  6793. # AIX sometimes has problems with the GCC collect2 program. For some
  6794. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6795. # vanish in a puff of smoke.
  6796. if test "X${COLLECT_NAMES+set}" != Xset; then
  6797. COLLECT_NAMES=
  6798. export COLLECT_NAMES
  6799. fi
  6800. ;;
  6801. esac
  6802. # Global variables:
  6803. ofile=libtool
  6804. can_build_shared=yes
  6805. # All known linkers require a `.a' archive for static linking (except MSVC,
  6806. # which needs '.lib').
  6807. libext=a
  6808. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6809. old_CC="$CC"
  6810. old_CFLAGS="$CFLAGS"
  6811. # Set sane defaults for various variables
  6812. test -z "$CC" && CC=cc
  6813. test -z "$LTCC" && LTCC=$CC
  6814. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6815. test -z "$LD" && LD=ld
  6816. test -z "$ac_objext" && ac_objext=o
  6817. for cc_temp in $compiler""; do
  6818. case $cc_temp in
  6819. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6820. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6821. \-*) ;;
  6822. *) break;;
  6823. esac
  6824. done
  6825. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6826. # Only perform the check for file, if the check method requires it
  6827. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6828. case $deplibs_check_method in
  6829. file_magic*)
  6830. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6832. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6833. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6834. $as_echo_n "(cached) " >&6
  6835. else
  6836. case $MAGIC_CMD in
  6837. [\\/*] | ?:[\\/]*)
  6838. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6839. ;;
  6840. *)
  6841. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6842. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6843. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6844. for ac_dir in $ac_dummy; do
  6845. IFS="$lt_save_ifs"
  6846. test -z "$ac_dir" && ac_dir=.
  6847. if test -f $ac_dir/${ac_tool_prefix}file; then
  6848. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6849. if test -n "$file_magic_test_file"; then
  6850. case $deplibs_check_method in
  6851. "file_magic "*)
  6852. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6853. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6854. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6855. $EGREP "$file_magic_regex" > /dev/null; then
  6856. :
  6857. else
  6858. cat <<_LT_EOF 1>&2
  6859. *** Warning: the command libtool uses to detect shared libraries,
  6860. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6861. *** The result is that libtool may fail to recognize shared libraries
  6862. *** as such. This will affect the creation of libtool libraries that
  6863. *** depend on shared libraries, but programs linked with such libtool
  6864. *** libraries will work regardless of this problem. Nevertheless, you
  6865. *** may want to report the problem to your system manager and/or to
  6866. *** bug-libtool@gnu.org
  6867. _LT_EOF
  6868. fi ;;
  6869. esac
  6870. fi
  6871. break
  6872. fi
  6873. done
  6874. IFS="$lt_save_ifs"
  6875. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6876. ;;
  6877. esac
  6878. fi
  6879. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6880. if test -n "$MAGIC_CMD"; then
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6882. $as_echo "$MAGIC_CMD" >&6; }
  6883. else
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6885. $as_echo "no" >&6; }
  6886. fi
  6887. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6888. if test -n "$ac_tool_prefix"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6890. $as_echo_n "checking for file... " >&6; }
  6891. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6892. $as_echo_n "(cached) " >&6
  6893. else
  6894. case $MAGIC_CMD in
  6895. [\\/*] | ?:[\\/]*)
  6896. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6897. ;;
  6898. *)
  6899. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6900. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6901. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6902. for ac_dir in $ac_dummy; do
  6903. IFS="$lt_save_ifs"
  6904. test -z "$ac_dir" && ac_dir=.
  6905. if test -f $ac_dir/file; then
  6906. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6907. if test -n "$file_magic_test_file"; then
  6908. case $deplibs_check_method in
  6909. "file_magic "*)
  6910. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6911. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6912. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6913. $EGREP "$file_magic_regex" > /dev/null; then
  6914. :
  6915. else
  6916. cat <<_LT_EOF 1>&2
  6917. *** Warning: the command libtool uses to detect shared libraries,
  6918. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6919. *** The result is that libtool may fail to recognize shared libraries
  6920. *** as such. This will affect the creation of libtool libraries that
  6921. *** depend on shared libraries, but programs linked with such libtool
  6922. *** libraries will work regardless of this problem. Nevertheless, you
  6923. *** may want to report the problem to your system manager and/or to
  6924. *** bug-libtool@gnu.org
  6925. _LT_EOF
  6926. fi ;;
  6927. esac
  6928. fi
  6929. break
  6930. fi
  6931. done
  6932. IFS="$lt_save_ifs"
  6933. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6934. ;;
  6935. esac
  6936. fi
  6937. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6938. if test -n "$MAGIC_CMD"; then
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6940. $as_echo "$MAGIC_CMD" >&6; }
  6941. else
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6943. $as_echo "no" >&6; }
  6944. fi
  6945. else
  6946. MAGIC_CMD=:
  6947. fi
  6948. fi
  6949. fi
  6950. ;;
  6951. esac
  6952. # Use C for the default configuration in the libtool script
  6953. lt_save_CC="$CC"
  6954. ac_ext=c
  6955. ac_cpp='$CPP $CPPFLAGS'
  6956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6959. # Source file extension for C test sources.
  6960. ac_ext=c
  6961. # Object file extension for compiled C test sources.
  6962. objext=o
  6963. objext=$objext
  6964. # Code to be used in simple compile tests
  6965. lt_simple_compile_test_code="int some_variable = 0;"
  6966. # Code to be used in simple link tests
  6967. lt_simple_link_test_code='int main(){return(0);}'
  6968. # If no C compiler was specified, use CC.
  6969. LTCC=${LTCC-"$CC"}
  6970. # If no C compiler flags were specified, use CFLAGS.
  6971. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6972. # Allow CC to be a program name with arguments.
  6973. compiler=$CC
  6974. # Save the default compiler, since it gets overwritten when the other
  6975. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6976. compiler_DEFAULT=$CC
  6977. # save warnings/boilerplate of simple test code
  6978. ac_outfile=conftest.$ac_objext
  6979. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6980. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6981. _lt_compiler_boilerplate=`cat conftest.err`
  6982. $RM conftest*
  6983. ac_outfile=conftest.$ac_objext
  6984. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6985. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6986. _lt_linker_boilerplate=`cat conftest.err`
  6987. $RM -r conftest*
  6988. ## CAVEAT EMPTOR:
  6989. ## There is no encapsulation within the following macros, do not change
  6990. ## the running order or otherwise move them around unless you know exactly
  6991. ## what you are doing...
  6992. if test -n "$compiler"; then
  6993. lt_prog_compiler_no_builtin_flag=
  6994. if test "$GCC" = yes; then
  6995. case $cc_basename in
  6996. nvcc*)
  6997. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6998. *)
  6999. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7000. esac
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7002. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7003. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7004. $as_echo_n "(cached) " >&6
  7005. else
  7006. lt_cv_prog_compiler_rtti_exceptions=no
  7007. ac_outfile=conftest.$ac_objext
  7008. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7009. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7010. # Insert the option either (1) after the last *FLAGS variable, or
  7011. # (2) before a word containing "conftest.", or (3) at the end.
  7012. # Note that $ac_compile itself does not contain backslashes and begins
  7013. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7014. # The option is referenced via a variable to avoid confusing sed.
  7015. lt_compile=`echo "$ac_compile" | $SED \
  7016. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7017. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7018. -e 's:$: $lt_compiler_flag:'`
  7019. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7020. (eval "$lt_compile" 2>conftest.err)
  7021. ac_status=$?
  7022. cat conftest.err >&5
  7023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7024. if (exit $ac_status) && test -s "$ac_outfile"; then
  7025. # The compiler can only warn and ignore the option if not recognized
  7026. # So say no if there are warnings other than the usual output.
  7027. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7028. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7029. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7030. lt_cv_prog_compiler_rtti_exceptions=yes
  7031. fi
  7032. fi
  7033. $RM conftest*
  7034. fi
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7036. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7037. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7038. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7039. else
  7040. :
  7041. fi
  7042. fi
  7043. lt_prog_compiler_wl=
  7044. lt_prog_compiler_pic=
  7045. lt_prog_compiler_static=
  7046. if test "$GCC" = yes; then
  7047. lt_prog_compiler_wl='-Wl,'
  7048. lt_prog_compiler_static='-static'
  7049. case $host_os in
  7050. aix*)
  7051. # All AIX code is PIC.
  7052. if test "$host_cpu" = ia64; then
  7053. # AIX 5 now supports IA64 processor
  7054. lt_prog_compiler_static='-Bstatic'
  7055. fi
  7056. ;;
  7057. amigaos*)
  7058. case $host_cpu in
  7059. powerpc)
  7060. # see comment about AmigaOS4 .so support
  7061. lt_prog_compiler_pic='-fPIC'
  7062. ;;
  7063. m68k)
  7064. # FIXME: we need at least 68020 code to build shared libraries, but
  7065. # adding the `-m68020' flag to GCC prevents building anything better,
  7066. # like `-m68040'.
  7067. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7068. ;;
  7069. esac
  7070. ;;
  7071. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7072. # PIC is the default for these OSes.
  7073. ;;
  7074. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7075. # This hack is so that the source file can tell whether it is being
  7076. # built for inclusion in a dll (and should export symbols for example).
  7077. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7078. # (--disable-auto-import) libraries
  7079. lt_prog_compiler_pic='-DDLL_EXPORT'
  7080. ;;
  7081. darwin* | rhapsody*)
  7082. # PIC is the default on this platform
  7083. # Common symbols not allowed in MH_DYLIB files
  7084. lt_prog_compiler_pic='-fno-common'
  7085. ;;
  7086. haiku*)
  7087. # PIC is the default for Haiku.
  7088. # The "-static" flag exists, but is broken.
  7089. lt_prog_compiler_static=
  7090. ;;
  7091. hpux*)
  7092. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7093. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7094. # sets the default TLS model and affects inlining.
  7095. case $host_cpu in
  7096. hppa*64*)
  7097. # +Z the default
  7098. ;;
  7099. *)
  7100. lt_prog_compiler_pic='-fPIC'
  7101. ;;
  7102. esac
  7103. ;;
  7104. interix[3-9]*)
  7105. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7106. # Instead, we relocate shared libraries at runtime.
  7107. ;;
  7108. msdosdjgpp*)
  7109. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7110. # on systems that don't support them.
  7111. lt_prog_compiler_can_build_shared=no
  7112. enable_shared=no
  7113. ;;
  7114. *nto* | *qnx*)
  7115. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7116. # it will coredump.
  7117. lt_prog_compiler_pic='-fPIC -shared'
  7118. ;;
  7119. sysv4*MP*)
  7120. if test -d /usr/nec; then
  7121. lt_prog_compiler_pic=-Kconform_pic
  7122. fi
  7123. ;;
  7124. *)
  7125. lt_prog_compiler_pic='-fPIC'
  7126. ;;
  7127. esac
  7128. case $cc_basename in
  7129. nvcc*) # Cuda Compiler Driver 2.2
  7130. lt_prog_compiler_wl='-Xlinker '
  7131. if test -n "$lt_prog_compiler_pic"; then
  7132. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7133. fi
  7134. ;;
  7135. esac
  7136. else
  7137. # PORTME Check for flag to pass linker flags through the system compiler.
  7138. case $host_os in
  7139. aix*)
  7140. lt_prog_compiler_wl='-Wl,'
  7141. if test "$host_cpu" = ia64; then
  7142. # AIX 5 now supports IA64 processor
  7143. lt_prog_compiler_static='-Bstatic'
  7144. else
  7145. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7146. fi
  7147. ;;
  7148. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7149. # This hack is so that the source file can tell whether it is being
  7150. # built for inclusion in a dll (and should export symbols for example).
  7151. lt_prog_compiler_pic='-DDLL_EXPORT'
  7152. ;;
  7153. hpux9* | hpux10* | hpux11*)
  7154. lt_prog_compiler_wl='-Wl,'
  7155. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7156. # not for PA HP-UX.
  7157. case $host_cpu in
  7158. hppa*64*|ia64*)
  7159. # +Z the default
  7160. ;;
  7161. *)
  7162. lt_prog_compiler_pic='+Z'
  7163. ;;
  7164. esac
  7165. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7166. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7167. ;;
  7168. irix5* | irix6* | nonstopux*)
  7169. lt_prog_compiler_wl='-Wl,'
  7170. # PIC (with -KPIC) is the default.
  7171. lt_prog_compiler_static='-non_shared'
  7172. ;;
  7173. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7174. case $cc_basename in
  7175. # old Intel for x86_64 which still supported -KPIC.
  7176. ecc*)
  7177. lt_prog_compiler_wl='-Wl,'
  7178. lt_prog_compiler_pic='-KPIC'
  7179. lt_prog_compiler_static='-static'
  7180. ;;
  7181. # icc used to be incompatible with GCC.
  7182. # ICC 10 doesn't accept -KPIC any more.
  7183. icc* | ifort*)
  7184. lt_prog_compiler_wl='-Wl,'
  7185. lt_prog_compiler_pic='-fPIC'
  7186. lt_prog_compiler_static='-static'
  7187. ;;
  7188. # Lahey Fortran 8.1.
  7189. lf95*)
  7190. lt_prog_compiler_wl='-Wl,'
  7191. lt_prog_compiler_pic='--shared'
  7192. lt_prog_compiler_static='--static'
  7193. ;;
  7194. nagfor*)
  7195. # NAG Fortran compiler
  7196. lt_prog_compiler_wl='-Wl,-Wl,,'
  7197. lt_prog_compiler_pic='-PIC'
  7198. lt_prog_compiler_static='-Bstatic'
  7199. ;;
  7200. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7201. # Portland Group compilers (*not* the Pentium gcc compiler,
  7202. # which looks to be a dead project)
  7203. lt_prog_compiler_wl='-Wl,'
  7204. lt_prog_compiler_pic='-fpic'
  7205. lt_prog_compiler_static='-Bstatic'
  7206. ;;
  7207. ccc*)
  7208. lt_prog_compiler_wl='-Wl,'
  7209. # All Alpha code is PIC.
  7210. lt_prog_compiler_static='-non_shared'
  7211. ;;
  7212. xl* | bgxl* | bgf* | mpixl*)
  7213. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7214. lt_prog_compiler_wl='-Wl,'
  7215. lt_prog_compiler_pic='-qpic'
  7216. lt_prog_compiler_static='-qstaticlink'
  7217. ;;
  7218. *)
  7219. case `$CC -V 2>&1 | sed 5q` in
  7220. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7221. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7222. lt_prog_compiler_pic='-KPIC'
  7223. lt_prog_compiler_static='-Bstatic'
  7224. lt_prog_compiler_wl=''
  7225. ;;
  7226. *Sun\ F* | *Sun*Fortran*)
  7227. lt_prog_compiler_pic='-KPIC'
  7228. lt_prog_compiler_static='-Bstatic'
  7229. lt_prog_compiler_wl='-Qoption ld '
  7230. ;;
  7231. *Sun\ C*)
  7232. # Sun C 5.9
  7233. lt_prog_compiler_pic='-KPIC'
  7234. lt_prog_compiler_static='-Bstatic'
  7235. lt_prog_compiler_wl='-Wl,'
  7236. ;;
  7237. *Intel*\ [CF]*Compiler*)
  7238. lt_prog_compiler_wl='-Wl,'
  7239. lt_prog_compiler_pic='-fPIC'
  7240. lt_prog_compiler_static='-static'
  7241. ;;
  7242. *Portland\ Group*)
  7243. lt_prog_compiler_wl='-Wl,'
  7244. lt_prog_compiler_pic='-fpic'
  7245. lt_prog_compiler_static='-Bstatic'
  7246. ;;
  7247. esac
  7248. ;;
  7249. esac
  7250. ;;
  7251. newsos6)
  7252. lt_prog_compiler_pic='-KPIC'
  7253. lt_prog_compiler_static='-Bstatic'
  7254. ;;
  7255. *nto* | *qnx*)
  7256. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7257. # it will coredump.
  7258. lt_prog_compiler_pic='-fPIC -shared'
  7259. ;;
  7260. osf3* | osf4* | osf5*)
  7261. lt_prog_compiler_wl='-Wl,'
  7262. # All OSF/1 code is PIC.
  7263. lt_prog_compiler_static='-non_shared'
  7264. ;;
  7265. rdos*)
  7266. lt_prog_compiler_static='-non_shared'
  7267. ;;
  7268. solaris*)
  7269. lt_prog_compiler_pic='-KPIC'
  7270. lt_prog_compiler_static='-Bstatic'
  7271. case $cc_basename in
  7272. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7273. lt_prog_compiler_wl='-Qoption ld ';;
  7274. *)
  7275. lt_prog_compiler_wl='-Wl,';;
  7276. esac
  7277. ;;
  7278. sunos4*)
  7279. lt_prog_compiler_wl='-Qoption ld '
  7280. lt_prog_compiler_pic='-PIC'
  7281. lt_prog_compiler_static='-Bstatic'
  7282. ;;
  7283. sysv4 | sysv4.2uw2* | sysv4.3*)
  7284. lt_prog_compiler_wl='-Wl,'
  7285. lt_prog_compiler_pic='-KPIC'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. ;;
  7288. sysv4*MP*)
  7289. if test -d /usr/nec ;then
  7290. lt_prog_compiler_pic='-Kconform_pic'
  7291. lt_prog_compiler_static='-Bstatic'
  7292. fi
  7293. ;;
  7294. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7295. lt_prog_compiler_wl='-Wl,'
  7296. lt_prog_compiler_pic='-KPIC'
  7297. lt_prog_compiler_static='-Bstatic'
  7298. ;;
  7299. unicos*)
  7300. lt_prog_compiler_wl='-Wl,'
  7301. lt_prog_compiler_can_build_shared=no
  7302. ;;
  7303. uts4*)
  7304. lt_prog_compiler_pic='-pic'
  7305. lt_prog_compiler_static='-Bstatic'
  7306. ;;
  7307. *)
  7308. lt_prog_compiler_can_build_shared=no
  7309. ;;
  7310. esac
  7311. fi
  7312. case $host_os in
  7313. # For platforms which do not support PIC, -DPIC is meaningless:
  7314. *djgpp*)
  7315. lt_prog_compiler_pic=
  7316. ;;
  7317. *)
  7318. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7319. ;;
  7320. esac
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7322. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7323. if ${lt_cv_prog_compiler_pic+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7327. fi
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7329. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7330. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7331. #
  7332. # Check to make sure the PIC flag actually works.
  7333. #
  7334. if test -n "$lt_prog_compiler_pic"; then
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7336. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7337. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7338. $as_echo_n "(cached) " >&6
  7339. else
  7340. lt_cv_prog_compiler_pic_works=no
  7341. ac_outfile=conftest.$ac_objext
  7342. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7343. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7344. # Insert the option either (1) after the last *FLAGS variable, or
  7345. # (2) before a word containing "conftest.", or (3) at the end.
  7346. # Note that $ac_compile itself does not contain backslashes and begins
  7347. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7348. # The option is referenced via a variable to avoid confusing sed.
  7349. lt_compile=`echo "$ac_compile" | $SED \
  7350. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7351. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7352. -e 's:$: $lt_compiler_flag:'`
  7353. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7354. (eval "$lt_compile" 2>conftest.err)
  7355. ac_status=$?
  7356. cat conftest.err >&5
  7357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7358. if (exit $ac_status) && test -s "$ac_outfile"; then
  7359. # The compiler can only warn and ignore the option if not recognized
  7360. # So say no if there are warnings other than the usual output.
  7361. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7362. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7363. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7364. lt_cv_prog_compiler_pic_works=yes
  7365. fi
  7366. fi
  7367. $RM conftest*
  7368. fi
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7370. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7371. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7372. case $lt_prog_compiler_pic in
  7373. "" | " "*) ;;
  7374. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7375. esac
  7376. else
  7377. lt_prog_compiler_pic=
  7378. lt_prog_compiler_can_build_shared=no
  7379. fi
  7380. fi
  7381. #
  7382. # Check to make sure the static flag actually works.
  7383. #
  7384. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7386. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7387. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7388. $as_echo_n "(cached) " >&6
  7389. else
  7390. lt_cv_prog_compiler_static_works=no
  7391. save_LDFLAGS="$LDFLAGS"
  7392. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7393. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7394. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7395. # The linker can only warn and ignore the option if not recognized
  7396. # So say no if there are warnings
  7397. if test -s conftest.err; then
  7398. # Append any errors to the config.log.
  7399. cat conftest.err 1>&5
  7400. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7401. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7402. if diff conftest.exp conftest.er2 >/dev/null; then
  7403. lt_cv_prog_compiler_static_works=yes
  7404. fi
  7405. else
  7406. lt_cv_prog_compiler_static_works=yes
  7407. fi
  7408. fi
  7409. $RM -r conftest*
  7410. LDFLAGS="$save_LDFLAGS"
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7413. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7414. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7415. :
  7416. else
  7417. lt_prog_compiler_static=
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7420. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7421. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7422. $as_echo_n "(cached) " >&6
  7423. else
  7424. lt_cv_prog_compiler_c_o=no
  7425. $RM -r conftest 2>/dev/null
  7426. mkdir conftest
  7427. cd conftest
  7428. mkdir out
  7429. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7430. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7431. # Insert the option either (1) after the last *FLAGS variable, or
  7432. # (2) before a word containing "conftest.", or (3) at the end.
  7433. # Note that $ac_compile itself does not contain backslashes and begins
  7434. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7435. lt_compile=`echo "$ac_compile" | $SED \
  7436. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7437. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7438. -e 's:$: $lt_compiler_flag:'`
  7439. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7440. (eval "$lt_compile" 2>out/conftest.err)
  7441. ac_status=$?
  7442. cat out/conftest.err >&5
  7443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7444. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7445. then
  7446. # The compiler can only warn and ignore the option if not recognized
  7447. # So say no if there are warnings
  7448. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7449. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7450. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7451. lt_cv_prog_compiler_c_o=yes
  7452. fi
  7453. fi
  7454. chmod u+w . 2>&5
  7455. $RM conftest*
  7456. # SGI C++ compiler will create directory out/ii_files/ for
  7457. # template instantiation
  7458. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7459. $RM out/* && rmdir out
  7460. cd ..
  7461. $RM -r conftest
  7462. $RM conftest*
  7463. fi
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7465. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7467. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7468. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7469. $as_echo_n "(cached) " >&6
  7470. else
  7471. lt_cv_prog_compiler_c_o=no
  7472. $RM -r conftest 2>/dev/null
  7473. mkdir conftest
  7474. cd conftest
  7475. mkdir out
  7476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7477. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7478. # Insert the option either (1) after the last *FLAGS variable, or
  7479. # (2) before a word containing "conftest.", or (3) at the end.
  7480. # Note that $ac_compile itself does not contain backslashes and begins
  7481. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7482. lt_compile=`echo "$ac_compile" | $SED \
  7483. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7484. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7485. -e 's:$: $lt_compiler_flag:'`
  7486. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7487. (eval "$lt_compile" 2>out/conftest.err)
  7488. ac_status=$?
  7489. cat out/conftest.err >&5
  7490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7491. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7492. then
  7493. # The compiler can only warn and ignore the option if not recognized
  7494. # So say no if there are warnings
  7495. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7496. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7497. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7498. lt_cv_prog_compiler_c_o=yes
  7499. fi
  7500. fi
  7501. chmod u+w . 2>&5
  7502. $RM conftest*
  7503. # SGI C++ compiler will create directory out/ii_files/ for
  7504. # template instantiation
  7505. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7506. $RM out/* && rmdir out
  7507. cd ..
  7508. $RM -r conftest
  7509. $RM conftest*
  7510. fi
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7512. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7513. hard_links="nottested"
  7514. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7515. # do not overwrite the value of need_locks provided by the user
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7517. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7518. hard_links=yes
  7519. $RM conftest*
  7520. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7521. touch conftest.a
  7522. ln conftest.a conftest.b 2>&5 || hard_links=no
  7523. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7525. $as_echo "$hard_links" >&6; }
  7526. if test "$hard_links" = no; then
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7528. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7529. need_locks=warn
  7530. fi
  7531. else
  7532. need_locks=no
  7533. fi
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7535. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7536. runpath_var=
  7537. allow_undefined_flag=
  7538. always_export_symbols=no
  7539. archive_cmds=
  7540. archive_expsym_cmds=
  7541. compiler_needs_object=no
  7542. enable_shared_with_static_runtimes=no
  7543. export_dynamic_flag_spec=
  7544. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7545. hardcode_automatic=no
  7546. hardcode_direct=no
  7547. hardcode_direct_absolute=no
  7548. hardcode_libdir_flag_spec=
  7549. hardcode_libdir_separator=
  7550. hardcode_minus_L=no
  7551. hardcode_shlibpath_var=unsupported
  7552. inherit_rpath=no
  7553. link_all_deplibs=unknown
  7554. module_cmds=
  7555. module_expsym_cmds=
  7556. old_archive_from_new_cmds=
  7557. old_archive_from_expsyms_cmds=
  7558. thread_safe_flag_spec=
  7559. whole_archive_flag_spec=
  7560. # include_expsyms should be a list of space-separated symbols to be *always*
  7561. # included in the symbol list
  7562. include_expsyms=
  7563. # exclude_expsyms can be an extended regexp of symbols to exclude
  7564. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7565. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7566. # as well as any symbol that contains `d'.
  7567. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7568. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7569. # platforms (ab)use it in PIC code, but their linkers get confused if
  7570. # the symbol is explicitly referenced. Since portable code cannot
  7571. # rely on this symbol name, it's probably fine to never include it in
  7572. # preloaded symbol tables.
  7573. # Exclude shared library initialization/finalization symbols.
  7574. extract_expsyms_cmds=
  7575. case $host_os in
  7576. cygwin* | mingw* | pw32* | cegcc*)
  7577. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7578. # When not using gcc, we currently assume that we are using
  7579. # Microsoft Visual C++.
  7580. if test "$GCC" != yes; then
  7581. with_gnu_ld=no
  7582. fi
  7583. ;;
  7584. interix*)
  7585. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7586. with_gnu_ld=yes
  7587. ;;
  7588. openbsd*)
  7589. with_gnu_ld=no
  7590. ;;
  7591. esac
  7592. ld_shlibs=yes
  7593. # On some targets, GNU ld is compatible enough with the native linker
  7594. # that we're better off using the native interface for both.
  7595. lt_use_gnu_ld_interface=no
  7596. if test "$with_gnu_ld" = yes; then
  7597. case $host_os in
  7598. aix*)
  7599. # The AIX port of GNU ld has always aspired to compatibility
  7600. # with the native linker. However, as the warning in the GNU ld
  7601. # block says, versions before 2.19.5* couldn't really create working
  7602. # shared libraries, regardless of the interface used.
  7603. case `$LD -v 2>&1` in
  7604. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7605. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7606. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7607. *)
  7608. lt_use_gnu_ld_interface=yes
  7609. ;;
  7610. esac
  7611. ;;
  7612. *)
  7613. lt_use_gnu_ld_interface=yes
  7614. ;;
  7615. esac
  7616. fi
  7617. if test "$lt_use_gnu_ld_interface" = yes; then
  7618. # If archive_cmds runs LD, not CC, wlarc should be empty
  7619. wlarc='${wl}'
  7620. # Set some defaults for GNU ld with shared library support. These
  7621. # are reset later if shared libraries are not supported. Putting them
  7622. # here allows them to be overridden if necessary.
  7623. runpath_var=LD_RUN_PATH
  7624. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7625. export_dynamic_flag_spec='${wl}--export-dynamic'
  7626. # ancient GNU ld didn't support --whole-archive et. al.
  7627. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7628. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7629. else
  7630. whole_archive_flag_spec=
  7631. fi
  7632. supports_anon_versioning=no
  7633. case `$LD -v 2>&1` in
  7634. *GNU\ gold*) supports_anon_versioning=yes ;;
  7635. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7636. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7637. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7638. *\ 2.11.*) ;; # other 2.11 versions
  7639. *) supports_anon_versioning=yes ;;
  7640. esac
  7641. # See if GNU ld supports shared libraries.
  7642. case $host_os in
  7643. aix[3-9]*)
  7644. # On AIX/PPC, the GNU linker is very broken
  7645. if test "$host_cpu" != ia64; then
  7646. ld_shlibs=no
  7647. cat <<_LT_EOF 1>&2
  7648. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7649. *** to be unable to reliably create shared libraries on AIX.
  7650. *** Therefore, libtool is disabling shared libraries support. If you
  7651. *** really care for shared libraries, you may want to install binutils
  7652. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7653. *** You will then need to restart the configuration process.
  7654. _LT_EOF
  7655. fi
  7656. ;;
  7657. amigaos*)
  7658. case $host_cpu in
  7659. powerpc)
  7660. # see comment about AmigaOS4 .so support
  7661. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7662. archive_expsym_cmds=''
  7663. ;;
  7664. m68k)
  7665. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7666. hardcode_libdir_flag_spec='-L$libdir'
  7667. hardcode_minus_L=yes
  7668. ;;
  7669. esac
  7670. ;;
  7671. beos*)
  7672. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7673. allow_undefined_flag=unsupported
  7674. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7675. # support --undefined. This deserves some investigation. FIXME
  7676. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7677. else
  7678. ld_shlibs=no
  7679. fi
  7680. ;;
  7681. cygwin* | mingw* | pw32* | cegcc*)
  7682. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7683. # as there is no search path for DLLs.
  7684. hardcode_libdir_flag_spec='-L$libdir'
  7685. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7686. allow_undefined_flag=unsupported
  7687. always_export_symbols=no
  7688. enable_shared_with_static_runtimes=yes
  7689. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7690. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7691. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7692. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7693. # If the export-symbols file already is a .def file (1st line
  7694. # is EXPORTS), use it as is; otherwise, prepend...
  7695. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7696. cp $export_symbols $output_objdir/$soname.def;
  7697. else
  7698. echo EXPORTS > $output_objdir/$soname.def;
  7699. cat $export_symbols >> $output_objdir/$soname.def;
  7700. fi~
  7701. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7702. else
  7703. ld_shlibs=no
  7704. fi
  7705. ;;
  7706. haiku*)
  7707. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7708. link_all_deplibs=yes
  7709. ;;
  7710. interix[3-9]*)
  7711. hardcode_direct=no
  7712. hardcode_shlibpath_var=no
  7713. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7714. export_dynamic_flag_spec='${wl}-E'
  7715. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7716. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7717. # default) and relocated if they conflict, which is a slow very memory
  7718. # consuming and fragmenting process. To avoid this, we pick a random,
  7719. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7720. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7721. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7722. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7723. ;;
  7724. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7725. tmp_diet=no
  7726. if test "$host_os" = linux-dietlibc; then
  7727. case $cc_basename in
  7728. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7729. esac
  7730. fi
  7731. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7732. && test "$tmp_diet" = no
  7733. then
  7734. tmp_addflag=' $pic_flag'
  7735. tmp_sharedflag='-shared'
  7736. case $cc_basename,$host_cpu in
  7737. pgcc*) # Portland Group C compiler
  7738. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7739. tmp_addflag=' $pic_flag'
  7740. ;;
  7741. pgf77* | pgf90* | pgf95* | pgfortran*)
  7742. # Portland Group f77 and f90 compilers
  7743. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7744. tmp_addflag=' $pic_flag -Mnomain' ;;
  7745. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7746. tmp_addflag=' -i_dynamic' ;;
  7747. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7748. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7749. ifc* | ifort*) # Intel Fortran compiler
  7750. tmp_addflag=' -nofor_main' ;;
  7751. lf95*) # Lahey Fortran 8.1
  7752. whole_archive_flag_spec=
  7753. tmp_sharedflag='--shared' ;;
  7754. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7755. tmp_sharedflag='-qmkshrobj'
  7756. tmp_addflag= ;;
  7757. nvcc*) # Cuda Compiler Driver 2.2
  7758. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7759. compiler_needs_object=yes
  7760. ;;
  7761. esac
  7762. case `$CC -V 2>&1 | sed 5q` in
  7763. *Sun\ C*) # Sun C 5.9
  7764. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7765. compiler_needs_object=yes
  7766. tmp_sharedflag='-G' ;;
  7767. *Sun\ F*) # Sun Fortran 8.3
  7768. tmp_sharedflag='-G' ;;
  7769. esac
  7770. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7771. if test "x$supports_anon_versioning" = xyes; then
  7772. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7773. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7774. echo "local: *; };" >> $output_objdir/$libname.ver~
  7775. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7776. fi
  7777. case $cc_basename in
  7778. xlf* | bgf* | bgxlf* | mpixlf*)
  7779. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7780. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7781. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7782. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7783. if test "x$supports_anon_versioning" = xyes; then
  7784. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7785. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7786. echo "local: *; };" >> $output_objdir/$libname.ver~
  7787. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7788. fi
  7789. ;;
  7790. esac
  7791. else
  7792. ld_shlibs=no
  7793. fi
  7794. ;;
  7795. netbsd*)
  7796. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7797. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7798. wlarc=
  7799. else
  7800. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7801. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7802. fi
  7803. ;;
  7804. solaris*)
  7805. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7806. ld_shlibs=no
  7807. cat <<_LT_EOF 1>&2
  7808. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7809. *** create shared libraries on Solaris systems. Therefore, libtool
  7810. *** is disabling shared libraries support. We urge you to upgrade GNU
  7811. *** binutils to release 2.9.1 or newer. Another option is to modify
  7812. *** your PATH or compiler configuration so that the native linker is
  7813. *** used, and then restart.
  7814. _LT_EOF
  7815. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7816. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7817. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7818. else
  7819. ld_shlibs=no
  7820. fi
  7821. ;;
  7822. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7823. case `$LD -v 2>&1` in
  7824. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7825. ld_shlibs=no
  7826. cat <<_LT_EOF 1>&2
  7827. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7828. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7829. *** is disabling shared libraries support. We urge you to upgrade GNU
  7830. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7831. *** your PATH or compiler configuration so that the native linker is
  7832. *** used, and then restart.
  7833. _LT_EOF
  7834. ;;
  7835. *)
  7836. # For security reasons, it is highly recommended that you always
  7837. # use absolute paths for naming shared libraries, and exclude the
  7838. # DT_RUNPATH tag from executables and libraries. But doing so
  7839. # requires that you compile everything twice, which is a pain.
  7840. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7841. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7842. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7843. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7844. else
  7845. ld_shlibs=no
  7846. fi
  7847. ;;
  7848. esac
  7849. ;;
  7850. sunos4*)
  7851. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7852. wlarc=
  7853. hardcode_direct=yes
  7854. hardcode_shlibpath_var=no
  7855. ;;
  7856. *)
  7857. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7858. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7859. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7860. else
  7861. ld_shlibs=no
  7862. fi
  7863. ;;
  7864. esac
  7865. if test "$ld_shlibs" = no; then
  7866. runpath_var=
  7867. hardcode_libdir_flag_spec=
  7868. export_dynamic_flag_spec=
  7869. whole_archive_flag_spec=
  7870. fi
  7871. else
  7872. # PORTME fill in a description of your system's linker (not GNU ld)
  7873. case $host_os in
  7874. aix3*)
  7875. allow_undefined_flag=unsupported
  7876. always_export_symbols=yes
  7877. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7878. # Note: this linker hardcodes the directories in LIBPATH if there
  7879. # are no directories specified by -L.
  7880. hardcode_minus_L=yes
  7881. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7882. # Neither direct hardcoding nor static linking is supported with a
  7883. # broken collect2.
  7884. hardcode_direct=unsupported
  7885. fi
  7886. ;;
  7887. aix[4-9]*)
  7888. if test "$host_cpu" = ia64; then
  7889. # On IA64, the linker does run time linking by default, so we don't
  7890. # have to do anything special.
  7891. aix_use_runtimelinking=no
  7892. exp_sym_flag='-Bexport'
  7893. no_entry_flag=""
  7894. else
  7895. # If we're using GNU nm, then we don't want the "-C" option.
  7896. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7897. # Also, AIX nm treats weak defined symbols like other global
  7898. # defined symbols, whereas GNU nm marks them as "W".
  7899. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7900. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7901. else
  7902. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7903. fi
  7904. aix_use_runtimelinking=no
  7905. # Test if we are trying to use run time linking or normal
  7906. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7907. # need to do runtime linking.
  7908. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7909. for ld_flag in $LDFLAGS; do
  7910. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7911. aix_use_runtimelinking=yes
  7912. break
  7913. fi
  7914. done
  7915. ;;
  7916. esac
  7917. exp_sym_flag='-bexport'
  7918. no_entry_flag='-bnoentry'
  7919. fi
  7920. # When large executables or shared objects are built, AIX ld can
  7921. # have problems creating the table of contents. If linking a library
  7922. # or program results in "error TOC overflow" add -mminimal-toc to
  7923. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7924. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7925. archive_cmds=''
  7926. hardcode_direct=yes
  7927. hardcode_direct_absolute=yes
  7928. hardcode_libdir_separator=':'
  7929. link_all_deplibs=yes
  7930. file_list_spec='${wl}-f,'
  7931. if test "$GCC" = yes; then
  7932. case $host_os in aix4.[012]|aix4.[012].*)
  7933. # We only want to do this on AIX 4.2 and lower, the check
  7934. # below for broken collect2 doesn't work under 4.3+
  7935. collect2name=`${CC} -print-prog-name=collect2`
  7936. if test -f "$collect2name" &&
  7937. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7938. then
  7939. # We have reworked collect2
  7940. :
  7941. else
  7942. # We have old collect2
  7943. hardcode_direct=unsupported
  7944. # It fails to find uninstalled libraries when the uninstalled
  7945. # path is not listed in the libpath. Setting hardcode_minus_L
  7946. # to unsupported forces relinking
  7947. hardcode_minus_L=yes
  7948. hardcode_libdir_flag_spec='-L$libdir'
  7949. hardcode_libdir_separator=
  7950. fi
  7951. ;;
  7952. esac
  7953. shared_flag='-shared'
  7954. if test "$aix_use_runtimelinking" = yes; then
  7955. shared_flag="$shared_flag "'${wl}-G'
  7956. fi
  7957. else
  7958. # not using gcc
  7959. if test "$host_cpu" = ia64; then
  7960. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7961. # chokes on -Wl,-G. The following line is correct:
  7962. shared_flag='-G'
  7963. else
  7964. if test "$aix_use_runtimelinking" = yes; then
  7965. shared_flag='${wl}-G'
  7966. else
  7967. shared_flag='${wl}-bM:SRE'
  7968. fi
  7969. fi
  7970. fi
  7971. export_dynamic_flag_spec='${wl}-bexpall'
  7972. # It seems that -bexpall does not export symbols beginning with
  7973. # underscore (_), so it is better to generate a list of symbols to export.
  7974. always_export_symbols=yes
  7975. if test "$aix_use_runtimelinking" = yes; then
  7976. # Warning - without using the other runtime loading flags (-brtl),
  7977. # -berok will link without error, but may produce a broken library.
  7978. allow_undefined_flag='-berok'
  7979. # Determine the default libpath from the value encoded in an
  7980. # empty executable.
  7981. if test "${lt_cv_aix_libpath+set}" = set; then
  7982. aix_libpath=$lt_cv_aix_libpath
  7983. else
  7984. if ${lt_cv_aix_libpath_+:} false; then :
  7985. $as_echo_n "(cached) " >&6
  7986. else
  7987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7988. /* end confdefs.h. */
  7989. int
  7990. main ()
  7991. {
  7992. ;
  7993. return 0;
  7994. }
  7995. _ACEOF
  7996. if ac_fn_c_try_link "$LINENO"; then :
  7997. lt_aix_libpath_sed='
  7998. /Import File Strings/,/^$/ {
  7999. /^0/ {
  8000. s/^0 *\([^ ]*\) *$/\1/
  8001. p
  8002. }
  8003. }'
  8004. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8005. # Check for a 64-bit object if we didn't find anything.
  8006. if test -z "$lt_cv_aix_libpath_"; then
  8007. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8008. fi
  8009. fi
  8010. rm -f core conftest.err conftest.$ac_objext \
  8011. conftest$ac_exeext conftest.$ac_ext
  8012. if test -z "$lt_cv_aix_libpath_"; then
  8013. lt_cv_aix_libpath_="/usr/lib:/lib"
  8014. fi
  8015. fi
  8016. aix_libpath=$lt_cv_aix_libpath_
  8017. fi
  8018. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8019. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8020. else
  8021. if test "$host_cpu" = ia64; then
  8022. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8023. allow_undefined_flag="-z nodefs"
  8024. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8025. else
  8026. # Determine the default libpath from the value encoded in an
  8027. # empty executable.
  8028. if test "${lt_cv_aix_libpath+set}" = set; then
  8029. aix_libpath=$lt_cv_aix_libpath
  8030. else
  8031. if ${lt_cv_aix_libpath_+:} false; then :
  8032. $as_echo_n "(cached) " >&6
  8033. else
  8034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8035. /* end confdefs.h. */
  8036. int
  8037. main ()
  8038. {
  8039. ;
  8040. return 0;
  8041. }
  8042. _ACEOF
  8043. if ac_fn_c_try_link "$LINENO"; then :
  8044. lt_aix_libpath_sed='
  8045. /Import File Strings/,/^$/ {
  8046. /^0/ {
  8047. s/^0 *\([^ ]*\) *$/\1/
  8048. p
  8049. }
  8050. }'
  8051. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8052. # Check for a 64-bit object if we didn't find anything.
  8053. if test -z "$lt_cv_aix_libpath_"; then
  8054. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8055. fi
  8056. fi
  8057. rm -f core conftest.err conftest.$ac_objext \
  8058. conftest$ac_exeext conftest.$ac_ext
  8059. if test -z "$lt_cv_aix_libpath_"; then
  8060. lt_cv_aix_libpath_="/usr/lib:/lib"
  8061. fi
  8062. fi
  8063. aix_libpath=$lt_cv_aix_libpath_
  8064. fi
  8065. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8066. # Warning - without using the other run time loading flags,
  8067. # -berok will link without error, but may produce a broken library.
  8068. no_undefined_flag=' ${wl}-bernotok'
  8069. allow_undefined_flag=' ${wl}-berok'
  8070. if test "$with_gnu_ld" = yes; then
  8071. # We only use this code for GNU lds that support --whole-archive.
  8072. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8073. else
  8074. # Exported symbols can be pulled into shared objects from archives
  8075. whole_archive_flag_spec='$convenience'
  8076. fi
  8077. archive_cmds_need_lc=yes
  8078. # This is similar to how AIX traditionally builds its shared libraries.
  8079. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8080. fi
  8081. fi
  8082. ;;
  8083. amigaos*)
  8084. case $host_cpu in
  8085. powerpc)
  8086. # see comment about AmigaOS4 .so support
  8087. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8088. archive_expsym_cmds=''
  8089. ;;
  8090. m68k)
  8091. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8092. hardcode_libdir_flag_spec='-L$libdir'
  8093. hardcode_minus_L=yes
  8094. ;;
  8095. esac
  8096. ;;
  8097. bsdi[45]*)
  8098. export_dynamic_flag_spec=-rdynamic
  8099. ;;
  8100. cygwin* | mingw* | pw32* | cegcc*)
  8101. # When not using gcc, we currently assume that we are using
  8102. # Microsoft Visual C++.
  8103. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8104. # no search path for DLLs.
  8105. case $cc_basename in
  8106. cl*)
  8107. # Native MSVC
  8108. hardcode_libdir_flag_spec=' '
  8109. allow_undefined_flag=unsupported
  8110. always_export_symbols=yes
  8111. file_list_spec='@'
  8112. # Tell ltmain to make .lib files, not .a files.
  8113. libext=lib
  8114. # Tell ltmain to make .dll files, not .so files.
  8115. shrext_cmds=".dll"
  8116. # FIXME: Setting linknames here is a bad hack.
  8117. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8118. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8119. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8120. else
  8121. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8122. fi~
  8123. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8124. linknames='
  8125. # The linker will not automatically build a static lib if we build a DLL.
  8126. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8127. enable_shared_with_static_runtimes=yes
  8128. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8129. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8130. # Don't use ranlib
  8131. old_postinstall_cmds='chmod 644 $oldlib'
  8132. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8133. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8134. case $lt_outputfile in
  8135. *.exe|*.EXE) ;;
  8136. *)
  8137. lt_outputfile="$lt_outputfile.exe"
  8138. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8139. ;;
  8140. esac~
  8141. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8142. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8143. $RM "$lt_outputfile.manifest";
  8144. fi'
  8145. ;;
  8146. *)
  8147. # Assume MSVC wrapper
  8148. hardcode_libdir_flag_spec=' '
  8149. allow_undefined_flag=unsupported
  8150. # Tell ltmain to make .lib files, not .a files.
  8151. libext=lib
  8152. # Tell ltmain to make .dll files, not .so files.
  8153. shrext_cmds=".dll"
  8154. # FIXME: Setting linknames here is a bad hack.
  8155. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8156. # The linker will automatically build a .lib file if we build a DLL.
  8157. old_archive_from_new_cmds='true'
  8158. # FIXME: Should let the user specify the lib program.
  8159. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8160. enable_shared_with_static_runtimes=yes
  8161. ;;
  8162. esac
  8163. ;;
  8164. darwin* | rhapsody*)
  8165. archive_cmds_need_lc=no
  8166. hardcode_direct=no
  8167. hardcode_automatic=yes
  8168. hardcode_shlibpath_var=unsupported
  8169. if test "$lt_cv_ld_force_load" = "yes"; then
  8170. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8171. else
  8172. whole_archive_flag_spec=''
  8173. fi
  8174. link_all_deplibs=yes
  8175. allow_undefined_flag="$_lt_dar_allow_undefined"
  8176. case $cc_basename in
  8177. ifort*) _lt_dar_can_shared=yes ;;
  8178. *) _lt_dar_can_shared=$GCC ;;
  8179. esac
  8180. if test "$_lt_dar_can_shared" = "yes"; then
  8181. output_verbose_link_cmd=func_echo_all
  8182. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8183. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8184. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8185. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8186. else
  8187. ld_shlibs=no
  8188. fi
  8189. ;;
  8190. dgux*)
  8191. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8192. hardcode_libdir_flag_spec='-L$libdir'
  8193. hardcode_shlibpath_var=no
  8194. ;;
  8195. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8196. # support. Future versions do this automatically, but an explicit c++rt0.o
  8197. # does not break anything, and helps significantly (at the cost of a little
  8198. # extra space).
  8199. freebsd2.2*)
  8200. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8201. hardcode_libdir_flag_spec='-R$libdir'
  8202. hardcode_direct=yes
  8203. hardcode_shlibpath_var=no
  8204. ;;
  8205. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8206. freebsd2.*)
  8207. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8208. hardcode_direct=yes
  8209. hardcode_minus_L=yes
  8210. hardcode_shlibpath_var=no
  8211. ;;
  8212. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8213. freebsd* | dragonfly*)
  8214. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8215. hardcode_libdir_flag_spec='-R$libdir'
  8216. hardcode_direct=yes
  8217. hardcode_shlibpath_var=no
  8218. ;;
  8219. hpux9*)
  8220. if test "$GCC" = yes; then
  8221. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8222. else
  8223. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8224. fi
  8225. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8226. hardcode_libdir_separator=:
  8227. hardcode_direct=yes
  8228. # hardcode_minus_L: Not really in the search PATH,
  8229. # but as the default location of the library.
  8230. hardcode_minus_L=yes
  8231. export_dynamic_flag_spec='${wl}-E'
  8232. ;;
  8233. hpux10*)
  8234. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8235. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8236. else
  8237. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8238. fi
  8239. if test "$with_gnu_ld" = no; then
  8240. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8241. hardcode_libdir_separator=:
  8242. hardcode_direct=yes
  8243. hardcode_direct_absolute=yes
  8244. export_dynamic_flag_spec='${wl}-E'
  8245. # hardcode_minus_L: Not really in the search PATH,
  8246. # but as the default location of the library.
  8247. hardcode_minus_L=yes
  8248. fi
  8249. ;;
  8250. hpux11*)
  8251. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8252. case $host_cpu in
  8253. hppa*64*)
  8254. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8255. ;;
  8256. ia64*)
  8257. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8258. ;;
  8259. *)
  8260. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8261. ;;
  8262. esac
  8263. else
  8264. case $host_cpu in
  8265. hppa*64*)
  8266. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8267. ;;
  8268. ia64*)
  8269. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8270. ;;
  8271. *)
  8272. # Older versions of the 11.00 compiler do not understand -b yet
  8273. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8275. $as_echo_n "checking if $CC understands -b... " >&6; }
  8276. if ${lt_cv_prog_compiler__b+:} false; then :
  8277. $as_echo_n "(cached) " >&6
  8278. else
  8279. lt_cv_prog_compiler__b=no
  8280. save_LDFLAGS="$LDFLAGS"
  8281. LDFLAGS="$LDFLAGS -b"
  8282. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8283. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8284. # The linker can only warn and ignore the option if not recognized
  8285. # So say no if there are warnings
  8286. if test -s conftest.err; then
  8287. # Append any errors to the config.log.
  8288. cat conftest.err 1>&5
  8289. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8290. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8291. if diff conftest.exp conftest.er2 >/dev/null; then
  8292. lt_cv_prog_compiler__b=yes
  8293. fi
  8294. else
  8295. lt_cv_prog_compiler__b=yes
  8296. fi
  8297. fi
  8298. $RM -r conftest*
  8299. LDFLAGS="$save_LDFLAGS"
  8300. fi
  8301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8302. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8303. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8304. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8305. else
  8306. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8307. fi
  8308. ;;
  8309. esac
  8310. fi
  8311. if test "$with_gnu_ld" = no; then
  8312. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8313. hardcode_libdir_separator=:
  8314. case $host_cpu in
  8315. hppa*64*|ia64*)
  8316. hardcode_direct=no
  8317. hardcode_shlibpath_var=no
  8318. ;;
  8319. *)
  8320. hardcode_direct=yes
  8321. hardcode_direct_absolute=yes
  8322. export_dynamic_flag_spec='${wl}-E'
  8323. # hardcode_minus_L: Not really in the search PATH,
  8324. # but as the default location of the library.
  8325. hardcode_minus_L=yes
  8326. ;;
  8327. esac
  8328. fi
  8329. ;;
  8330. irix5* | irix6* | nonstopux*)
  8331. if test "$GCC" = yes; then
  8332. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8333. # Try to use the -exported_symbol ld option, if it does not
  8334. # work, assume that -exports_file does not work either and
  8335. # implicitly export all symbols.
  8336. # This should be the same for all languages, so no per-tag cache variable.
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8338. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8339. if ${lt_cv_irix_exported_symbol+:} false; then :
  8340. $as_echo_n "(cached) " >&6
  8341. else
  8342. save_LDFLAGS="$LDFLAGS"
  8343. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8345. /* end confdefs.h. */
  8346. int foo (void) { return 0; }
  8347. _ACEOF
  8348. if ac_fn_c_try_link "$LINENO"; then :
  8349. lt_cv_irix_exported_symbol=yes
  8350. else
  8351. lt_cv_irix_exported_symbol=no
  8352. fi
  8353. rm -f core conftest.err conftest.$ac_objext \
  8354. conftest$ac_exeext conftest.$ac_ext
  8355. LDFLAGS="$save_LDFLAGS"
  8356. fi
  8357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8358. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8359. if test "$lt_cv_irix_exported_symbol" = yes; then
  8360. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8361. fi
  8362. else
  8363. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8364. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8365. fi
  8366. archive_cmds_need_lc='no'
  8367. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8368. hardcode_libdir_separator=:
  8369. inherit_rpath=yes
  8370. link_all_deplibs=yes
  8371. ;;
  8372. netbsd*)
  8373. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8374. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8375. else
  8376. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8377. fi
  8378. hardcode_libdir_flag_spec='-R$libdir'
  8379. hardcode_direct=yes
  8380. hardcode_shlibpath_var=no
  8381. ;;
  8382. newsos6)
  8383. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8384. hardcode_direct=yes
  8385. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8386. hardcode_libdir_separator=:
  8387. hardcode_shlibpath_var=no
  8388. ;;
  8389. *nto* | *qnx*)
  8390. ;;
  8391. openbsd*)
  8392. if test -f /usr/libexec/ld.so; then
  8393. hardcode_direct=yes
  8394. hardcode_shlibpath_var=no
  8395. hardcode_direct_absolute=yes
  8396. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8397. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8398. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8399. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8400. export_dynamic_flag_spec='${wl}-E'
  8401. else
  8402. case $host_os in
  8403. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8404. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8405. hardcode_libdir_flag_spec='-R$libdir'
  8406. ;;
  8407. *)
  8408. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8409. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8410. ;;
  8411. esac
  8412. fi
  8413. else
  8414. ld_shlibs=no
  8415. fi
  8416. ;;
  8417. os2*)
  8418. hardcode_libdir_flag_spec='-L$libdir'
  8419. hardcode_minus_L=yes
  8420. allow_undefined_flag=unsupported
  8421. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8422. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8423. ;;
  8424. osf3*)
  8425. if test "$GCC" = yes; then
  8426. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8427. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8428. else
  8429. allow_undefined_flag=' -expect_unresolved \*'
  8430. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8431. fi
  8432. archive_cmds_need_lc='no'
  8433. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8434. hardcode_libdir_separator=:
  8435. ;;
  8436. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8437. if test "$GCC" = yes; then
  8438. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8439. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8440. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8441. else
  8442. allow_undefined_flag=' -expect_unresolved \*'
  8443. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8444. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8445. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8446. # Both c and cxx compiler support -rpath directly
  8447. hardcode_libdir_flag_spec='-rpath $libdir'
  8448. fi
  8449. archive_cmds_need_lc='no'
  8450. hardcode_libdir_separator=:
  8451. ;;
  8452. solaris*)
  8453. no_undefined_flag=' -z defs'
  8454. if test "$GCC" = yes; then
  8455. wlarc='${wl}'
  8456. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8457. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8458. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8459. else
  8460. case `$CC -V 2>&1` in
  8461. *"Compilers 5.0"*)
  8462. wlarc=''
  8463. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8464. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8465. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8466. ;;
  8467. *)
  8468. wlarc='${wl}'
  8469. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8471. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8472. ;;
  8473. esac
  8474. fi
  8475. hardcode_libdir_flag_spec='-R$libdir'
  8476. hardcode_shlibpath_var=no
  8477. case $host_os in
  8478. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8479. *)
  8480. # The compiler driver will combine and reorder linker options,
  8481. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8482. # but is careful enough not to reorder.
  8483. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8484. if test "$GCC" = yes; then
  8485. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8486. else
  8487. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8488. fi
  8489. ;;
  8490. esac
  8491. link_all_deplibs=yes
  8492. ;;
  8493. sunos4*)
  8494. if test "x$host_vendor" = xsequent; then
  8495. # Use $CC to link under sequent, because it throws in some extra .o
  8496. # files that make .init and .fini sections work.
  8497. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8498. else
  8499. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8500. fi
  8501. hardcode_libdir_flag_spec='-L$libdir'
  8502. hardcode_direct=yes
  8503. hardcode_minus_L=yes
  8504. hardcode_shlibpath_var=no
  8505. ;;
  8506. sysv4)
  8507. case $host_vendor in
  8508. sni)
  8509. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8510. hardcode_direct=yes # is this really true???
  8511. ;;
  8512. siemens)
  8513. ## LD is ld it makes a PLAMLIB
  8514. ## CC just makes a GrossModule.
  8515. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8516. reload_cmds='$CC -r -o $output$reload_objs'
  8517. hardcode_direct=no
  8518. ;;
  8519. motorola)
  8520. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8521. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8522. ;;
  8523. esac
  8524. runpath_var='LD_RUN_PATH'
  8525. hardcode_shlibpath_var=no
  8526. ;;
  8527. sysv4.3*)
  8528. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8529. hardcode_shlibpath_var=no
  8530. export_dynamic_flag_spec='-Bexport'
  8531. ;;
  8532. sysv4*MP*)
  8533. if test -d /usr/nec; then
  8534. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8535. hardcode_shlibpath_var=no
  8536. runpath_var=LD_RUN_PATH
  8537. hardcode_runpath_var=yes
  8538. ld_shlibs=yes
  8539. fi
  8540. ;;
  8541. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8542. no_undefined_flag='${wl}-z,text'
  8543. archive_cmds_need_lc=no
  8544. hardcode_shlibpath_var=no
  8545. runpath_var='LD_RUN_PATH'
  8546. if test "$GCC" = yes; then
  8547. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8548. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8549. else
  8550. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8551. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8552. fi
  8553. ;;
  8554. sysv5* | sco3.2v5* | sco5v6*)
  8555. # Note: We can NOT use -z defs as we might desire, because we do not
  8556. # link with -lc, and that would cause any symbols used from libc to
  8557. # always be unresolved, which means just about no library would
  8558. # ever link correctly. If we're not using GNU ld we use -z text
  8559. # though, which does catch some bad symbols but isn't as heavy-handed
  8560. # as -z defs.
  8561. no_undefined_flag='${wl}-z,text'
  8562. allow_undefined_flag='${wl}-z,nodefs'
  8563. archive_cmds_need_lc=no
  8564. hardcode_shlibpath_var=no
  8565. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8566. hardcode_libdir_separator=':'
  8567. link_all_deplibs=yes
  8568. export_dynamic_flag_spec='${wl}-Bexport'
  8569. runpath_var='LD_RUN_PATH'
  8570. if test "$GCC" = yes; then
  8571. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8572. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8573. else
  8574. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8575. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8576. fi
  8577. ;;
  8578. uts4*)
  8579. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8580. hardcode_libdir_flag_spec='-L$libdir'
  8581. hardcode_shlibpath_var=no
  8582. ;;
  8583. *)
  8584. ld_shlibs=no
  8585. ;;
  8586. esac
  8587. if test x$host_vendor = xsni; then
  8588. case $host in
  8589. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8590. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8591. ;;
  8592. esac
  8593. fi
  8594. fi
  8595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8596. $as_echo "$ld_shlibs" >&6; }
  8597. test "$ld_shlibs" = no && can_build_shared=no
  8598. with_gnu_ld=$with_gnu_ld
  8599. #
  8600. # Do we need to explicitly link libc?
  8601. #
  8602. case "x$archive_cmds_need_lc" in
  8603. x|xyes)
  8604. # Assume -lc should be added
  8605. archive_cmds_need_lc=yes
  8606. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8607. case $archive_cmds in
  8608. *'~'*)
  8609. # FIXME: we may have to deal with multi-command sequences.
  8610. ;;
  8611. '$CC '*)
  8612. # Test whether the compiler implicitly links with -lc since on some
  8613. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8614. # to ld, don't add -lc before -lgcc.
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8616. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8617. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8618. $as_echo_n "(cached) " >&6
  8619. else
  8620. $RM conftest*
  8621. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8622. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8623. (eval $ac_compile) 2>&5
  8624. ac_status=$?
  8625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8626. test $ac_status = 0; } 2>conftest.err; then
  8627. soname=conftest
  8628. lib=conftest
  8629. libobjs=conftest.$ac_objext
  8630. deplibs=
  8631. wl=$lt_prog_compiler_wl
  8632. pic_flag=$lt_prog_compiler_pic
  8633. compiler_flags=-v
  8634. linker_flags=-v
  8635. verstring=
  8636. output_objdir=.
  8637. libname=conftest
  8638. lt_save_allow_undefined_flag=$allow_undefined_flag
  8639. allow_undefined_flag=
  8640. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8641. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8642. ac_status=$?
  8643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8644. test $ac_status = 0; }
  8645. then
  8646. lt_cv_archive_cmds_need_lc=no
  8647. else
  8648. lt_cv_archive_cmds_need_lc=yes
  8649. fi
  8650. allow_undefined_flag=$lt_save_allow_undefined_flag
  8651. else
  8652. cat conftest.err 1>&5
  8653. fi
  8654. $RM conftest*
  8655. fi
  8656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8657. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8658. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8659. ;;
  8660. esac
  8661. fi
  8662. ;;
  8663. esac
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8665. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8666. if test "$GCC" = yes; then
  8667. case $host_os in
  8668. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8669. *) lt_awk_arg="/^libraries:/" ;;
  8670. esac
  8671. case $host_os in
  8672. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8673. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8674. esac
  8675. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8676. case $lt_search_path_spec in
  8677. *\;*)
  8678. # if the path contains ";" then we assume it to be the separator
  8679. # otherwise default to the standard path separator (i.e. ":") - it is
  8680. # assumed that no part of a normal pathname contains ";" but that should
  8681. # okay in the real world where ";" in dirpaths is itself problematic.
  8682. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8683. ;;
  8684. *)
  8685. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8686. ;;
  8687. esac
  8688. # Ok, now we have the path, separated by spaces, we can step through it
  8689. # and add multilib dir if necessary.
  8690. lt_tmp_lt_search_path_spec=
  8691. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8692. for lt_sys_path in $lt_search_path_spec; do
  8693. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8694. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8695. else
  8696. test -d "$lt_sys_path" && \
  8697. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8698. fi
  8699. done
  8700. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8701. BEGIN {RS=" "; FS="/|\n";} {
  8702. lt_foo="";
  8703. lt_count=0;
  8704. for (lt_i = NF; lt_i > 0; lt_i--) {
  8705. if ($lt_i != "" && $lt_i != ".") {
  8706. if ($lt_i == "..") {
  8707. lt_count++;
  8708. } else {
  8709. if (lt_count == 0) {
  8710. lt_foo="/" $lt_i lt_foo;
  8711. } else {
  8712. lt_count--;
  8713. }
  8714. }
  8715. }
  8716. }
  8717. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8718. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8719. }'`
  8720. # AWK program above erroneously prepends '/' to C:/dos/paths
  8721. # for these hosts.
  8722. case $host_os in
  8723. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8724. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8725. esac
  8726. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8727. else
  8728. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8729. fi
  8730. library_names_spec=
  8731. libname_spec='lib$name'
  8732. soname_spec=
  8733. shrext_cmds=".so"
  8734. postinstall_cmds=
  8735. postuninstall_cmds=
  8736. finish_cmds=
  8737. finish_eval=
  8738. shlibpath_var=
  8739. shlibpath_overrides_runpath=unknown
  8740. version_type=none
  8741. dynamic_linker="$host_os ld.so"
  8742. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8743. need_lib_prefix=unknown
  8744. hardcode_into_libs=no
  8745. # when you set need_version to no, make sure it does not cause -set_version
  8746. # flags to be left without arguments
  8747. need_version=unknown
  8748. case $host_os in
  8749. aix3*)
  8750. version_type=linux # correct to gnu/linux during the next big refactor
  8751. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8752. shlibpath_var=LIBPATH
  8753. # AIX 3 has no versioning support, so we append a major version to the name.
  8754. soname_spec='${libname}${release}${shared_ext}$major'
  8755. ;;
  8756. aix[4-9]*)
  8757. version_type=linux # correct to gnu/linux during the next big refactor
  8758. need_lib_prefix=no
  8759. need_version=no
  8760. hardcode_into_libs=yes
  8761. if test "$host_cpu" = ia64; then
  8762. # AIX 5 supports IA64
  8763. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8764. shlibpath_var=LD_LIBRARY_PATH
  8765. else
  8766. # With GCC up to 2.95.x, collect2 would create an import file
  8767. # for dependence libraries. The import file would start with
  8768. # the line `#! .'. This would cause the generated library to
  8769. # depend on `.', always an invalid library. This was fixed in
  8770. # development snapshots of GCC prior to 3.0.
  8771. case $host_os in
  8772. aix4 | aix4.[01] | aix4.[01].*)
  8773. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8774. echo ' yes '
  8775. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8776. :
  8777. else
  8778. can_build_shared=no
  8779. fi
  8780. ;;
  8781. esac
  8782. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8783. # soname into executable. Probably we can add versioning support to
  8784. # collect2, so additional links can be useful in future.
  8785. if test "$aix_use_runtimelinking" = yes; then
  8786. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8787. # instead of lib<name>.a to let people know that these are not
  8788. # typical AIX shared libraries.
  8789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8790. else
  8791. # We preserve .a as extension for shared libraries through AIX4.2
  8792. # and later when we are not doing run time linking.
  8793. library_names_spec='${libname}${release}.a $libname.a'
  8794. soname_spec='${libname}${release}${shared_ext}$major'
  8795. fi
  8796. shlibpath_var=LIBPATH
  8797. fi
  8798. ;;
  8799. amigaos*)
  8800. case $host_cpu in
  8801. powerpc)
  8802. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8803. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8805. ;;
  8806. m68k)
  8807. library_names_spec='$libname.ixlibrary $libname.a'
  8808. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8809. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8810. ;;
  8811. esac
  8812. ;;
  8813. beos*)
  8814. library_names_spec='${libname}${shared_ext}'
  8815. dynamic_linker="$host_os ld.so"
  8816. shlibpath_var=LIBRARY_PATH
  8817. ;;
  8818. bsdi[45]*)
  8819. version_type=linux # correct to gnu/linux during the next big refactor
  8820. need_version=no
  8821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8822. soname_spec='${libname}${release}${shared_ext}$major'
  8823. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8824. shlibpath_var=LD_LIBRARY_PATH
  8825. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8826. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8827. # the default ld.so.conf also contains /usr/contrib/lib and
  8828. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8829. # libtool to hard-code these into programs
  8830. ;;
  8831. cygwin* | mingw* | pw32* | cegcc*)
  8832. version_type=windows
  8833. shrext_cmds=".dll"
  8834. need_version=no
  8835. need_lib_prefix=no
  8836. case $GCC,$cc_basename in
  8837. yes,*)
  8838. # gcc
  8839. library_names_spec='$libname.dll.a'
  8840. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8841. postinstall_cmds='base_file=`basename \${file}`~
  8842. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8843. dldir=$destdir/`dirname \$dlpath`~
  8844. test -d \$dldir || mkdir -p \$dldir~
  8845. $install_prog $dir/$dlname \$dldir/$dlname~
  8846. chmod a+x \$dldir/$dlname~
  8847. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8848. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8849. fi'
  8850. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8851. dlpath=$dir/\$dldll~
  8852. $RM \$dlpath'
  8853. shlibpath_overrides_runpath=yes
  8854. case $host_os in
  8855. cygwin*)
  8856. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8857. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8858. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8859. ;;
  8860. mingw* | cegcc*)
  8861. # MinGW DLLs use traditional 'lib' prefix
  8862. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8863. ;;
  8864. pw32*)
  8865. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8866. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8867. ;;
  8868. esac
  8869. dynamic_linker='Win32 ld.exe'
  8870. ;;
  8871. *,cl*)
  8872. # Native MSVC
  8873. libname_spec='$name'
  8874. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8875. library_names_spec='${libname}.dll.lib'
  8876. case $build_os in
  8877. mingw*)
  8878. sys_lib_search_path_spec=
  8879. lt_save_ifs=$IFS
  8880. IFS=';'
  8881. for lt_path in $LIB
  8882. do
  8883. IFS=$lt_save_ifs
  8884. # Let DOS variable expansion print the short 8.3 style file name.
  8885. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8886. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8887. done
  8888. IFS=$lt_save_ifs
  8889. # Convert to MSYS style.
  8890. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8891. ;;
  8892. cygwin*)
  8893. # Convert to unix form, then to dos form, then back to unix form
  8894. # but this time dos style (no spaces!) so that the unix form looks
  8895. # like /cygdrive/c/PROGRA~1:/cygdr...
  8896. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8897. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8898. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8899. ;;
  8900. *)
  8901. sys_lib_search_path_spec="$LIB"
  8902. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8903. # It is most probably a Windows format PATH.
  8904. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8905. else
  8906. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8907. fi
  8908. # FIXME: find the short name or the path components, as spaces are
  8909. # common. (e.g. "Program Files" -> "PROGRA~1")
  8910. ;;
  8911. esac
  8912. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8913. postinstall_cmds='base_file=`basename \${file}`~
  8914. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8915. dldir=$destdir/`dirname \$dlpath`~
  8916. test -d \$dldir || mkdir -p \$dldir~
  8917. $install_prog $dir/$dlname \$dldir/$dlname'
  8918. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8919. dlpath=$dir/\$dldll~
  8920. $RM \$dlpath'
  8921. shlibpath_overrides_runpath=yes
  8922. dynamic_linker='Win32 link.exe'
  8923. ;;
  8924. *)
  8925. # Assume MSVC wrapper
  8926. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8927. dynamic_linker='Win32 ld.exe'
  8928. ;;
  8929. esac
  8930. # FIXME: first we should search . and the directory the executable is in
  8931. shlibpath_var=PATH
  8932. ;;
  8933. darwin* | rhapsody*)
  8934. dynamic_linker="$host_os dyld"
  8935. version_type=darwin
  8936. need_lib_prefix=no
  8937. need_version=no
  8938. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8939. soname_spec='${libname}${release}${major}$shared_ext'
  8940. shlibpath_overrides_runpath=yes
  8941. shlibpath_var=DYLD_LIBRARY_PATH
  8942. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8943. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8944. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8945. ;;
  8946. dgux*)
  8947. version_type=linux # correct to gnu/linux during the next big refactor
  8948. need_lib_prefix=no
  8949. need_version=no
  8950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. shlibpath_var=LD_LIBRARY_PATH
  8953. ;;
  8954. freebsd* | dragonfly*)
  8955. # DragonFly does not have aout. When/if they implement a new
  8956. # versioning mechanism, adjust this.
  8957. if test -x /usr/bin/objformat; then
  8958. objformat=`/usr/bin/objformat`
  8959. else
  8960. case $host_os in
  8961. freebsd[23].*) objformat=aout ;;
  8962. *) objformat=elf ;;
  8963. esac
  8964. fi
  8965. version_type=freebsd-$objformat
  8966. case $version_type in
  8967. freebsd-elf*)
  8968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8969. need_version=no
  8970. need_lib_prefix=no
  8971. ;;
  8972. freebsd-*)
  8973. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8974. need_version=yes
  8975. ;;
  8976. esac
  8977. shlibpath_var=LD_LIBRARY_PATH
  8978. case $host_os in
  8979. freebsd2.*)
  8980. shlibpath_overrides_runpath=yes
  8981. ;;
  8982. freebsd3.[01]* | freebsdelf3.[01]*)
  8983. shlibpath_overrides_runpath=yes
  8984. hardcode_into_libs=yes
  8985. ;;
  8986. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8987. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8988. shlibpath_overrides_runpath=no
  8989. hardcode_into_libs=yes
  8990. ;;
  8991. *) # from 4.6 on, and DragonFly
  8992. shlibpath_overrides_runpath=yes
  8993. hardcode_into_libs=yes
  8994. ;;
  8995. esac
  8996. ;;
  8997. gnu*)
  8998. version_type=linux # correct to gnu/linux during the next big refactor
  8999. need_lib_prefix=no
  9000. need_version=no
  9001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9002. soname_spec='${libname}${release}${shared_ext}$major'
  9003. shlibpath_var=LD_LIBRARY_PATH
  9004. shlibpath_overrides_runpath=no
  9005. hardcode_into_libs=yes
  9006. ;;
  9007. haiku*)
  9008. version_type=linux # correct to gnu/linux during the next big refactor
  9009. need_lib_prefix=no
  9010. need_version=no
  9011. dynamic_linker="$host_os runtime_loader"
  9012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9013. soname_spec='${libname}${release}${shared_ext}$major'
  9014. shlibpath_var=LIBRARY_PATH
  9015. shlibpath_overrides_runpath=yes
  9016. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9017. hardcode_into_libs=yes
  9018. ;;
  9019. hpux9* | hpux10* | hpux11*)
  9020. # Give a soname corresponding to the major version so that dld.sl refuses to
  9021. # link against other versions.
  9022. version_type=sunos
  9023. need_lib_prefix=no
  9024. need_version=no
  9025. case $host_cpu in
  9026. ia64*)
  9027. shrext_cmds='.so'
  9028. hardcode_into_libs=yes
  9029. dynamic_linker="$host_os dld.so"
  9030. shlibpath_var=LD_LIBRARY_PATH
  9031. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9033. soname_spec='${libname}${release}${shared_ext}$major'
  9034. if test "X$HPUX_IA64_MODE" = X32; then
  9035. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9036. else
  9037. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9038. fi
  9039. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9040. ;;
  9041. hppa*64*)
  9042. shrext_cmds='.sl'
  9043. hardcode_into_libs=yes
  9044. dynamic_linker="$host_os dld.sl"
  9045. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9046. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9048. soname_spec='${libname}${release}${shared_ext}$major'
  9049. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9050. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9051. ;;
  9052. *)
  9053. shrext_cmds='.sl'
  9054. dynamic_linker="$host_os dld.sl"
  9055. shlibpath_var=SHLIB_PATH
  9056. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9058. soname_spec='${libname}${release}${shared_ext}$major'
  9059. ;;
  9060. esac
  9061. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9062. postinstall_cmds='chmod 555 $lib'
  9063. # or fails outright, so override atomically:
  9064. install_override_mode=555
  9065. ;;
  9066. interix[3-9]*)
  9067. version_type=linux # correct to gnu/linux during the next big refactor
  9068. need_lib_prefix=no
  9069. need_version=no
  9070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9071. soname_spec='${libname}${release}${shared_ext}$major'
  9072. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. shlibpath_overrides_runpath=no
  9075. hardcode_into_libs=yes
  9076. ;;
  9077. irix5* | irix6* | nonstopux*)
  9078. case $host_os in
  9079. nonstopux*) version_type=nonstopux ;;
  9080. *)
  9081. if test "$lt_cv_prog_gnu_ld" = yes; then
  9082. version_type=linux # correct to gnu/linux during the next big refactor
  9083. else
  9084. version_type=irix
  9085. fi ;;
  9086. esac
  9087. need_lib_prefix=no
  9088. need_version=no
  9089. soname_spec='${libname}${release}${shared_ext}$major'
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9091. case $host_os in
  9092. irix5* | nonstopux*)
  9093. libsuff= shlibsuff=
  9094. ;;
  9095. *)
  9096. case $LD in # libtool.m4 will add one of these switches to LD
  9097. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9098. libsuff= shlibsuff= libmagic=32-bit;;
  9099. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9100. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9101. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9102. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9103. *) libsuff= shlibsuff= libmagic=never-match;;
  9104. esac
  9105. ;;
  9106. esac
  9107. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9108. shlibpath_overrides_runpath=no
  9109. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9110. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9111. hardcode_into_libs=yes
  9112. ;;
  9113. # No shared lib support for Linux oldld, aout, or coff.
  9114. linux*oldld* | linux*aout* | linux*coff*)
  9115. dynamic_linker=no
  9116. ;;
  9117. # This must be glibc/ELF.
  9118. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9119. version_type=linux # correct to gnu/linux during the next big refactor
  9120. need_lib_prefix=no
  9121. need_version=no
  9122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9123. soname_spec='${libname}${release}${shared_ext}$major'
  9124. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9125. shlibpath_var=LD_LIBRARY_PATH
  9126. shlibpath_overrides_runpath=no
  9127. # Some binutils ld are patched to set DT_RUNPATH
  9128. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9129. $as_echo_n "(cached) " >&6
  9130. else
  9131. lt_cv_shlibpath_overrides_runpath=no
  9132. save_LDFLAGS=$LDFLAGS
  9133. save_libdir=$libdir
  9134. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9135. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9137. /* end confdefs.h. */
  9138. int
  9139. main ()
  9140. {
  9141. ;
  9142. return 0;
  9143. }
  9144. _ACEOF
  9145. if ac_fn_c_try_link "$LINENO"; then :
  9146. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9147. lt_cv_shlibpath_overrides_runpath=yes
  9148. fi
  9149. fi
  9150. rm -f core conftest.err conftest.$ac_objext \
  9151. conftest$ac_exeext conftest.$ac_ext
  9152. LDFLAGS=$save_LDFLAGS
  9153. libdir=$save_libdir
  9154. fi
  9155. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9156. # This implies no fast_install, which is unacceptable.
  9157. # Some rework will be needed to allow for fast_install
  9158. # before this can be enabled.
  9159. hardcode_into_libs=yes
  9160. # Add ABI-specific directories to the system library path.
  9161. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9162. # Append ld.so.conf contents to the search path
  9163. if test -f /etc/ld.so.conf; then
  9164. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9165. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9166. fi
  9167. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9168. # powerpc, because MkLinux only supported shared libraries with the
  9169. # GNU dynamic linker. Since this was broken with cross compilers,
  9170. # most powerpc-linux boxes support dynamic linking these days and
  9171. # people can always --disable-shared, the test was removed, and we
  9172. # assume the GNU/Linux dynamic linker is in use.
  9173. dynamic_linker='GNU/Linux ld.so'
  9174. ;;
  9175. netbsd*)
  9176. version_type=sunos
  9177. need_lib_prefix=no
  9178. need_version=no
  9179. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9181. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9182. dynamic_linker='NetBSD (a.out) ld.so'
  9183. else
  9184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9185. soname_spec='${libname}${release}${shared_ext}$major'
  9186. dynamic_linker='NetBSD ld.elf_so'
  9187. fi
  9188. shlibpath_var=LD_LIBRARY_PATH
  9189. shlibpath_overrides_runpath=yes
  9190. hardcode_into_libs=yes
  9191. ;;
  9192. newsos6)
  9193. version_type=linux # correct to gnu/linux during the next big refactor
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9195. shlibpath_var=LD_LIBRARY_PATH
  9196. shlibpath_overrides_runpath=yes
  9197. ;;
  9198. *nto* | *qnx*)
  9199. version_type=qnx
  9200. need_lib_prefix=no
  9201. need_version=no
  9202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9203. soname_spec='${libname}${release}${shared_ext}$major'
  9204. shlibpath_var=LD_LIBRARY_PATH
  9205. shlibpath_overrides_runpath=no
  9206. hardcode_into_libs=yes
  9207. dynamic_linker='ldqnx.so'
  9208. ;;
  9209. openbsd*)
  9210. version_type=sunos
  9211. sys_lib_dlsearch_path_spec="/usr/lib"
  9212. need_lib_prefix=no
  9213. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9214. case $host_os in
  9215. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9216. *) need_version=no ;;
  9217. esac
  9218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9219. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9220. shlibpath_var=LD_LIBRARY_PATH
  9221. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9222. case $host_os in
  9223. openbsd2.[89] | openbsd2.[89].*)
  9224. shlibpath_overrides_runpath=no
  9225. ;;
  9226. *)
  9227. shlibpath_overrides_runpath=yes
  9228. ;;
  9229. esac
  9230. else
  9231. shlibpath_overrides_runpath=yes
  9232. fi
  9233. ;;
  9234. os2*)
  9235. libname_spec='$name'
  9236. shrext_cmds=".dll"
  9237. need_lib_prefix=no
  9238. library_names_spec='$libname${shared_ext} $libname.a'
  9239. dynamic_linker='OS/2 ld.exe'
  9240. shlibpath_var=LIBPATH
  9241. ;;
  9242. osf3* | osf4* | osf5*)
  9243. version_type=osf
  9244. need_lib_prefix=no
  9245. need_version=no
  9246. soname_spec='${libname}${release}${shared_ext}$major'
  9247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9248. shlibpath_var=LD_LIBRARY_PATH
  9249. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9250. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9251. ;;
  9252. rdos*)
  9253. dynamic_linker=no
  9254. ;;
  9255. solaris*)
  9256. version_type=linux # correct to gnu/linux during the next big refactor
  9257. need_lib_prefix=no
  9258. need_version=no
  9259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9260. soname_spec='${libname}${release}${shared_ext}$major'
  9261. shlibpath_var=LD_LIBRARY_PATH
  9262. shlibpath_overrides_runpath=yes
  9263. hardcode_into_libs=yes
  9264. # ldd complains unless libraries are executable
  9265. postinstall_cmds='chmod +x $lib'
  9266. ;;
  9267. sunos4*)
  9268. version_type=sunos
  9269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9270. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9271. shlibpath_var=LD_LIBRARY_PATH
  9272. shlibpath_overrides_runpath=yes
  9273. if test "$with_gnu_ld" = yes; then
  9274. need_lib_prefix=no
  9275. fi
  9276. need_version=yes
  9277. ;;
  9278. sysv4 | sysv4.3*)
  9279. version_type=linux # correct to gnu/linux during the next big refactor
  9280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9281. soname_spec='${libname}${release}${shared_ext}$major'
  9282. shlibpath_var=LD_LIBRARY_PATH
  9283. case $host_vendor in
  9284. sni)
  9285. shlibpath_overrides_runpath=no
  9286. need_lib_prefix=no
  9287. runpath_var=LD_RUN_PATH
  9288. ;;
  9289. siemens)
  9290. need_lib_prefix=no
  9291. ;;
  9292. motorola)
  9293. need_lib_prefix=no
  9294. need_version=no
  9295. shlibpath_overrides_runpath=no
  9296. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9297. ;;
  9298. esac
  9299. ;;
  9300. sysv4*MP*)
  9301. if test -d /usr/nec ;then
  9302. version_type=linux # correct to gnu/linux during the next big refactor
  9303. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9304. soname_spec='$libname${shared_ext}.$major'
  9305. shlibpath_var=LD_LIBRARY_PATH
  9306. fi
  9307. ;;
  9308. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9309. version_type=freebsd-elf
  9310. need_lib_prefix=no
  9311. need_version=no
  9312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9313. soname_spec='${libname}${release}${shared_ext}$major'
  9314. shlibpath_var=LD_LIBRARY_PATH
  9315. shlibpath_overrides_runpath=yes
  9316. hardcode_into_libs=yes
  9317. if test "$with_gnu_ld" = yes; then
  9318. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9319. else
  9320. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9321. case $host_os in
  9322. sco3.2v5*)
  9323. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9324. ;;
  9325. esac
  9326. fi
  9327. sys_lib_dlsearch_path_spec='/usr/lib'
  9328. ;;
  9329. tpf*)
  9330. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9331. version_type=linux # correct to gnu/linux during the next big refactor
  9332. need_lib_prefix=no
  9333. need_version=no
  9334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9335. shlibpath_var=LD_LIBRARY_PATH
  9336. shlibpath_overrides_runpath=no
  9337. hardcode_into_libs=yes
  9338. ;;
  9339. uts4*)
  9340. version_type=linux # correct to gnu/linux during the next big refactor
  9341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9342. soname_spec='${libname}${release}${shared_ext}$major'
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. ;;
  9345. *)
  9346. dynamic_linker=no
  9347. ;;
  9348. esac
  9349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9350. $as_echo "$dynamic_linker" >&6; }
  9351. test "$dynamic_linker" = no && can_build_shared=no
  9352. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9353. if test "$GCC" = yes; then
  9354. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9355. fi
  9356. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9357. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9358. fi
  9359. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9360. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9361. fi
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9363. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9364. hardcode_action=
  9365. if test -n "$hardcode_libdir_flag_spec" ||
  9366. test -n "$runpath_var" ||
  9367. test "X$hardcode_automatic" = "Xyes" ; then
  9368. # We can hardcode non-existent directories.
  9369. if test "$hardcode_direct" != no &&
  9370. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9371. # have to relink, otherwise we might link with an installed library
  9372. # when we should be linking with a yet-to-be-installed one
  9373. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9374. test "$hardcode_minus_L" != no; then
  9375. # Linking always hardcodes the temporary library directory.
  9376. hardcode_action=relink
  9377. else
  9378. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9379. hardcode_action=immediate
  9380. fi
  9381. else
  9382. # We cannot hardcode anything, or else we can only hardcode existing
  9383. # directories.
  9384. hardcode_action=unsupported
  9385. fi
  9386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9387. $as_echo "$hardcode_action" >&6; }
  9388. if test "$hardcode_action" = relink ||
  9389. test "$inherit_rpath" = yes; then
  9390. # Fast installation is not supported
  9391. enable_fast_install=no
  9392. elif test "$shlibpath_overrides_runpath" = yes ||
  9393. test "$enable_shared" = no; then
  9394. # Fast installation is not necessary
  9395. enable_fast_install=needless
  9396. fi
  9397. if test "x$enable_dlopen" != xyes; then
  9398. enable_dlopen=unknown
  9399. enable_dlopen_self=unknown
  9400. enable_dlopen_self_static=unknown
  9401. else
  9402. lt_cv_dlopen=no
  9403. lt_cv_dlopen_libs=
  9404. case $host_os in
  9405. beos*)
  9406. lt_cv_dlopen="load_add_on"
  9407. lt_cv_dlopen_libs=
  9408. lt_cv_dlopen_self=yes
  9409. ;;
  9410. mingw* | pw32* | cegcc*)
  9411. lt_cv_dlopen="LoadLibrary"
  9412. lt_cv_dlopen_libs=
  9413. ;;
  9414. cygwin*)
  9415. lt_cv_dlopen="dlopen"
  9416. lt_cv_dlopen_libs=
  9417. ;;
  9418. darwin*)
  9419. # if libdl is installed we need to link against it
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9421. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9422. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9423. $as_echo_n "(cached) " >&6
  9424. else
  9425. ac_check_lib_save_LIBS=$LIBS
  9426. LIBS="-ldl $LIBS"
  9427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9428. /* end confdefs.h. */
  9429. /* Override any GCC internal prototype to avoid an error.
  9430. Use char because int might match the return type of a GCC
  9431. builtin and then its argument prototype would still apply. */
  9432. #ifdef __cplusplus
  9433. extern "C"
  9434. #endif
  9435. char dlopen ();
  9436. int
  9437. main ()
  9438. {
  9439. return dlopen ();
  9440. ;
  9441. return 0;
  9442. }
  9443. _ACEOF
  9444. if ac_fn_c_try_link "$LINENO"; then :
  9445. ac_cv_lib_dl_dlopen=yes
  9446. else
  9447. ac_cv_lib_dl_dlopen=no
  9448. fi
  9449. rm -f core conftest.err conftest.$ac_objext \
  9450. conftest$ac_exeext conftest.$ac_ext
  9451. LIBS=$ac_check_lib_save_LIBS
  9452. fi
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9454. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9455. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9456. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9457. else
  9458. lt_cv_dlopen="dyld"
  9459. lt_cv_dlopen_libs=
  9460. lt_cv_dlopen_self=yes
  9461. fi
  9462. ;;
  9463. *)
  9464. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9465. if test "x$ac_cv_func_shl_load" = xyes; then :
  9466. lt_cv_dlopen="shl_load"
  9467. else
  9468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9469. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9470. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9471. $as_echo_n "(cached) " >&6
  9472. else
  9473. ac_check_lib_save_LIBS=$LIBS
  9474. LIBS="-ldld $LIBS"
  9475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9476. /* end confdefs.h. */
  9477. /* Override any GCC internal prototype to avoid an error.
  9478. Use char because int might match the return type of a GCC
  9479. builtin and then its argument prototype would still apply. */
  9480. #ifdef __cplusplus
  9481. extern "C"
  9482. #endif
  9483. char shl_load ();
  9484. int
  9485. main ()
  9486. {
  9487. return shl_load ();
  9488. ;
  9489. return 0;
  9490. }
  9491. _ACEOF
  9492. if ac_fn_c_try_link "$LINENO"; then :
  9493. ac_cv_lib_dld_shl_load=yes
  9494. else
  9495. ac_cv_lib_dld_shl_load=no
  9496. fi
  9497. rm -f core conftest.err conftest.$ac_objext \
  9498. conftest$ac_exeext conftest.$ac_ext
  9499. LIBS=$ac_check_lib_save_LIBS
  9500. fi
  9501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9502. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9503. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9504. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9505. else
  9506. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9507. if test "x$ac_cv_func_dlopen" = xyes; then :
  9508. lt_cv_dlopen="dlopen"
  9509. else
  9510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9511. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9512. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9513. $as_echo_n "(cached) " >&6
  9514. else
  9515. ac_check_lib_save_LIBS=$LIBS
  9516. LIBS="-ldl $LIBS"
  9517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9518. /* end confdefs.h. */
  9519. /* Override any GCC internal prototype to avoid an error.
  9520. Use char because int might match the return type of a GCC
  9521. builtin and then its argument prototype would still apply. */
  9522. #ifdef __cplusplus
  9523. extern "C"
  9524. #endif
  9525. char dlopen ();
  9526. int
  9527. main ()
  9528. {
  9529. return dlopen ();
  9530. ;
  9531. return 0;
  9532. }
  9533. _ACEOF
  9534. if ac_fn_c_try_link "$LINENO"; then :
  9535. ac_cv_lib_dl_dlopen=yes
  9536. else
  9537. ac_cv_lib_dl_dlopen=no
  9538. fi
  9539. rm -f core conftest.err conftest.$ac_objext \
  9540. conftest$ac_exeext conftest.$ac_ext
  9541. LIBS=$ac_check_lib_save_LIBS
  9542. fi
  9543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9544. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9545. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9546. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9547. else
  9548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9549. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9550. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9551. $as_echo_n "(cached) " >&6
  9552. else
  9553. ac_check_lib_save_LIBS=$LIBS
  9554. LIBS="-lsvld $LIBS"
  9555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9556. /* end confdefs.h. */
  9557. /* Override any GCC internal prototype to avoid an error.
  9558. Use char because int might match the return type of a GCC
  9559. builtin and then its argument prototype would still apply. */
  9560. #ifdef __cplusplus
  9561. extern "C"
  9562. #endif
  9563. char dlopen ();
  9564. int
  9565. main ()
  9566. {
  9567. return dlopen ();
  9568. ;
  9569. return 0;
  9570. }
  9571. _ACEOF
  9572. if ac_fn_c_try_link "$LINENO"; then :
  9573. ac_cv_lib_svld_dlopen=yes
  9574. else
  9575. ac_cv_lib_svld_dlopen=no
  9576. fi
  9577. rm -f core conftest.err conftest.$ac_objext \
  9578. conftest$ac_exeext conftest.$ac_ext
  9579. LIBS=$ac_check_lib_save_LIBS
  9580. fi
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9582. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9583. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9584. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9585. else
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9587. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9588. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9589. $as_echo_n "(cached) " >&6
  9590. else
  9591. ac_check_lib_save_LIBS=$LIBS
  9592. LIBS="-ldld $LIBS"
  9593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9594. /* end confdefs.h. */
  9595. /* Override any GCC internal prototype to avoid an error.
  9596. Use char because int might match the return type of a GCC
  9597. builtin and then its argument prototype would still apply. */
  9598. #ifdef __cplusplus
  9599. extern "C"
  9600. #endif
  9601. char dld_link ();
  9602. int
  9603. main ()
  9604. {
  9605. return dld_link ();
  9606. ;
  9607. return 0;
  9608. }
  9609. _ACEOF
  9610. if ac_fn_c_try_link "$LINENO"; then :
  9611. ac_cv_lib_dld_dld_link=yes
  9612. else
  9613. ac_cv_lib_dld_dld_link=no
  9614. fi
  9615. rm -f core conftest.err conftest.$ac_objext \
  9616. conftest$ac_exeext conftest.$ac_ext
  9617. LIBS=$ac_check_lib_save_LIBS
  9618. fi
  9619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9620. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9621. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9622. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9623. fi
  9624. fi
  9625. fi
  9626. fi
  9627. fi
  9628. fi
  9629. ;;
  9630. esac
  9631. if test "x$lt_cv_dlopen" != xno; then
  9632. enable_dlopen=yes
  9633. else
  9634. enable_dlopen=no
  9635. fi
  9636. case $lt_cv_dlopen in
  9637. dlopen)
  9638. save_CPPFLAGS="$CPPFLAGS"
  9639. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9640. save_LDFLAGS="$LDFLAGS"
  9641. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9642. save_LIBS="$LIBS"
  9643. LIBS="$lt_cv_dlopen_libs $LIBS"
  9644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9645. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9646. if ${lt_cv_dlopen_self+:} false; then :
  9647. $as_echo_n "(cached) " >&6
  9648. else
  9649. if test "$cross_compiling" = yes; then :
  9650. lt_cv_dlopen_self=cross
  9651. else
  9652. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9653. lt_status=$lt_dlunknown
  9654. cat > conftest.$ac_ext <<_LT_EOF
  9655. #line $LINENO "configure"
  9656. #include "confdefs.h"
  9657. #if HAVE_DLFCN_H
  9658. #include <dlfcn.h>
  9659. #endif
  9660. #include <stdio.h>
  9661. #ifdef RTLD_GLOBAL
  9662. # define LT_DLGLOBAL RTLD_GLOBAL
  9663. #else
  9664. # ifdef DL_GLOBAL
  9665. # define LT_DLGLOBAL DL_GLOBAL
  9666. # else
  9667. # define LT_DLGLOBAL 0
  9668. # endif
  9669. #endif
  9670. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9671. find out it does not work in some platform. */
  9672. #ifndef LT_DLLAZY_OR_NOW
  9673. # ifdef RTLD_LAZY
  9674. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9675. # else
  9676. # ifdef DL_LAZY
  9677. # define LT_DLLAZY_OR_NOW DL_LAZY
  9678. # else
  9679. # ifdef RTLD_NOW
  9680. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9681. # else
  9682. # ifdef DL_NOW
  9683. # define LT_DLLAZY_OR_NOW DL_NOW
  9684. # else
  9685. # define LT_DLLAZY_OR_NOW 0
  9686. # endif
  9687. # endif
  9688. # endif
  9689. # endif
  9690. #endif
  9691. /* When -fvisbility=hidden is used, assume the code has been annotated
  9692. correspondingly for the symbols needed. */
  9693. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9694. int fnord () __attribute__((visibility("default")));
  9695. #endif
  9696. int fnord () { return 42; }
  9697. int main ()
  9698. {
  9699. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9700. int status = $lt_dlunknown;
  9701. if (self)
  9702. {
  9703. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9704. else
  9705. {
  9706. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9707. else puts (dlerror ());
  9708. }
  9709. /* dlclose (self); */
  9710. }
  9711. else
  9712. puts (dlerror ());
  9713. return status;
  9714. }
  9715. _LT_EOF
  9716. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9717. (eval $ac_link) 2>&5
  9718. ac_status=$?
  9719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9720. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9721. (./conftest; exit; ) >&5 2>/dev/null
  9722. lt_status=$?
  9723. case x$lt_status in
  9724. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9725. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9726. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9727. esac
  9728. else :
  9729. # compilation failed
  9730. lt_cv_dlopen_self=no
  9731. fi
  9732. fi
  9733. rm -fr conftest*
  9734. fi
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9736. $as_echo "$lt_cv_dlopen_self" >&6; }
  9737. if test "x$lt_cv_dlopen_self" = xyes; then
  9738. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9740. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9741. if ${lt_cv_dlopen_self_static+:} false; then :
  9742. $as_echo_n "(cached) " >&6
  9743. else
  9744. if test "$cross_compiling" = yes; then :
  9745. lt_cv_dlopen_self_static=cross
  9746. else
  9747. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9748. lt_status=$lt_dlunknown
  9749. cat > conftest.$ac_ext <<_LT_EOF
  9750. #line $LINENO "configure"
  9751. #include "confdefs.h"
  9752. #if HAVE_DLFCN_H
  9753. #include <dlfcn.h>
  9754. #endif
  9755. #include <stdio.h>
  9756. #ifdef RTLD_GLOBAL
  9757. # define LT_DLGLOBAL RTLD_GLOBAL
  9758. #else
  9759. # ifdef DL_GLOBAL
  9760. # define LT_DLGLOBAL DL_GLOBAL
  9761. # else
  9762. # define LT_DLGLOBAL 0
  9763. # endif
  9764. #endif
  9765. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9766. find out it does not work in some platform. */
  9767. #ifndef LT_DLLAZY_OR_NOW
  9768. # ifdef RTLD_LAZY
  9769. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9770. # else
  9771. # ifdef DL_LAZY
  9772. # define LT_DLLAZY_OR_NOW DL_LAZY
  9773. # else
  9774. # ifdef RTLD_NOW
  9775. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9776. # else
  9777. # ifdef DL_NOW
  9778. # define LT_DLLAZY_OR_NOW DL_NOW
  9779. # else
  9780. # define LT_DLLAZY_OR_NOW 0
  9781. # endif
  9782. # endif
  9783. # endif
  9784. # endif
  9785. #endif
  9786. /* When -fvisbility=hidden is used, assume the code has been annotated
  9787. correspondingly for the symbols needed. */
  9788. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9789. int fnord () __attribute__((visibility("default")));
  9790. #endif
  9791. int fnord () { return 42; }
  9792. int main ()
  9793. {
  9794. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9795. int status = $lt_dlunknown;
  9796. if (self)
  9797. {
  9798. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9799. else
  9800. {
  9801. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9802. else puts (dlerror ());
  9803. }
  9804. /* dlclose (self); */
  9805. }
  9806. else
  9807. puts (dlerror ());
  9808. return status;
  9809. }
  9810. _LT_EOF
  9811. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9812. (eval $ac_link) 2>&5
  9813. ac_status=$?
  9814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9815. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9816. (./conftest; exit; ) >&5 2>/dev/null
  9817. lt_status=$?
  9818. case x$lt_status in
  9819. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9820. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9821. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9822. esac
  9823. else :
  9824. # compilation failed
  9825. lt_cv_dlopen_self_static=no
  9826. fi
  9827. fi
  9828. rm -fr conftest*
  9829. fi
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9831. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9832. fi
  9833. CPPFLAGS="$save_CPPFLAGS"
  9834. LDFLAGS="$save_LDFLAGS"
  9835. LIBS="$save_LIBS"
  9836. ;;
  9837. esac
  9838. case $lt_cv_dlopen_self in
  9839. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9840. *) enable_dlopen_self=unknown ;;
  9841. esac
  9842. case $lt_cv_dlopen_self_static in
  9843. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9844. *) enable_dlopen_self_static=unknown ;;
  9845. esac
  9846. fi
  9847. striplib=
  9848. old_striplib=
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9850. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9851. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9852. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9853. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9855. $as_echo "yes" >&6; }
  9856. else
  9857. # FIXME - insert some real tests, host_os isn't really good enough
  9858. case $host_os in
  9859. darwin*)
  9860. if test -n "$STRIP" ; then
  9861. striplib="$STRIP -x"
  9862. old_striplib="$STRIP -S"
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9864. $as_echo "yes" >&6; }
  9865. else
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9867. $as_echo "no" >&6; }
  9868. fi
  9869. ;;
  9870. *)
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9872. $as_echo "no" >&6; }
  9873. ;;
  9874. esac
  9875. fi
  9876. # Report which library types will actually be built
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9878. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9880. $as_echo "$can_build_shared" >&6; }
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9882. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9883. test "$can_build_shared" = "no" && enable_shared=no
  9884. # On AIX, shared libraries and static libraries use the same namespace, and
  9885. # are all built from PIC.
  9886. case $host_os in
  9887. aix3*)
  9888. test "$enable_shared" = yes && enable_static=no
  9889. if test -n "$RANLIB"; then
  9890. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9891. postinstall_cmds='$RANLIB $lib'
  9892. fi
  9893. ;;
  9894. aix[4-9]*)
  9895. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9896. test "$enable_shared" = yes && enable_static=no
  9897. fi
  9898. ;;
  9899. esac
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9901. $as_echo "$enable_shared" >&6; }
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9903. $as_echo_n "checking whether to build static libraries... " >&6; }
  9904. # Make sure either enable_shared or enable_static is yes.
  9905. test "$enable_shared" = yes || enable_static=yes
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9907. $as_echo "$enable_static" >&6; }
  9908. fi
  9909. ac_ext=c
  9910. ac_cpp='$CPP $CPPFLAGS'
  9911. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9912. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9913. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9914. CC="$lt_save_CC"
  9915. ac_config_commands="$ac_config_commands libtool"
  9916. # Only expand once:
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  9918. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  9919. if ${ac_cv_prog_cc_c99+:} false; then :
  9920. $as_echo_n "(cached) " >&6
  9921. else
  9922. ac_cv_prog_cc_c99=no
  9923. ac_save_CC=$CC
  9924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9925. /* end confdefs.h. */
  9926. #include <stdarg.h>
  9927. #include <stdbool.h>
  9928. #include <stdlib.h>
  9929. #include <wchar.h>
  9930. #include <stdio.h>
  9931. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  9932. #define debug(...) fprintf (stderr, __VA_ARGS__)
  9933. #define showlist(...) puts (#__VA_ARGS__)
  9934. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  9935. static void
  9936. test_varargs_macros (void)
  9937. {
  9938. int x = 1234;
  9939. int y = 5678;
  9940. debug ("Flag");
  9941. debug ("X = %d\n", x);
  9942. showlist (The first, second, and third items.);
  9943. report (x>y, "x is %d but y is %d", x, y);
  9944. }
  9945. // Check long long types.
  9946. #define BIG64 18446744073709551615ull
  9947. #define BIG32 4294967295ul
  9948. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  9949. #if !BIG_OK
  9950. your preprocessor is broken;
  9951. #endif
  9952. #if BIG_OK
  9953. #else
  9954. your preprocessor is broken;
  9955. #endif
  9956. static long long int bignum = -9223372036854775807LL;
  9957. static unsigned long long int ubignum = BIG64;
  9958. struct incomplete_array
  9959. {
  9960. int datasize;
  9961. double data[];
  9962. };
  9963. struct named_init {
  9964. int number;
  9965. const wchar_t *name;
  9966. double average;
  9967. };
  9968. typedef const char *ccp;
  9969. static inline int
  9970. test_restrict (ccp restrict text)
  9971. {
  9972. // See if C++-style comments work.
  9973. // Iterate through items via the restricted pointer.
  9974. // Also check for declarations in for loops.
  9975. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  9976. continue;
  9977. return 0;
  9978. }
  9979. // Check varargs and va_copy.
  9980. static void
  9981. test_varargs (const char *format, ...)
  9982. {
  9983. va_list args;
  9984. va_start (args, format);
  9985. va_list args_copy;
  9986. va_copy (args_copy, args);
  9987. const char *str;
  9988. int number;
  9989. float fnumber;
  9990. while (*format)
  9991. {
  9992. switch (*format++)
  9993. {
  9994. case 's': // string
  9995. str = va_arg (args_copy, const char *);
  9996. break;
  9997. case 'd': // int
  9998. number = va_arg (args_copy, int);
  9999. break;
  10000. case 'f': // float
  10001. fnumber = va_arg (args_copy, double);
  10002. break;
  10003. default:
  10004. break;
  10005. }
  10006. }
  10007. va_end (args_copy);
  10008. va_end (args);
  10009. }
  10010. int
  10011. main ()
  10012. {
  10013. // Check bool.
  10014. _Bool success = false;
  10015. // Check restrict.
  10016. if (test_restrict ("String literal") == 0)
  10017. success = true;
  10018. char *restrict newvar = "Another string";
  10019. // Check varargs.
  10020. test_varargs ("s, d' f .", "string", 65, 34.234);
  10021. test_varargs_macros ();
  10022. // Check flexible array members.
  10023. struct incomplete_array *ia =
  10024. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  10025. ia->datasize = 10;
  10026. for (int i = 0; i < ia->datasize; ++i)
  10027. ia->data[i] = i * 1.234;
  10028. // Check named initializers.
  10029. struct named_init ni = {
  10030. .number = 34,
  10031. .name = L"Test wide string",
  10032. .average = 543.34343,
  10033. };
  10034. ni.number = 58;
  10035. int dynamic_array[ni.number];
  10036. dynamic_array[ni.number - 1] = 543;
  10037. // work around unused variable warnings
  10038. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  10039. || dynamic_array[ni.number - 1] != 543);
  10040. ;
  10041. return 0;
  10042. }
  10043. _ACEOF
  10044. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  10045. do
  10046. CC="$ac_save_CC $ac_arg"
  10047. if ac_fn_c_try_compile "$LINENO"; then :
  10048. ac_cv_prog_cc_c99=$ac_arg
  10049. fi
  10050. rm -f core conftest.err conftest.$ac_objext
  10051. test "x$ac_cv_prog_cc_c99" != "xno" && break
  10052. done
  10053. rm -f conftest.$ac_ext
  10054. CC=$ac_save_CC
  10055. fi
  10056. # AC_CACHE_VAL
  10057. case "x$ac_cv_prog_cc_c99" in
  10058. x)
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10060. $as_echo "none needed" >&6; } ;;
  10061. xno)
  10062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10063. $as_echo "unsupported" >&6; } ;;
  10064. *)
  10065. CC="$CC $ac_cv_prog_cc_c99"
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  10067. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  10068. esac
  10069. if test "x$ac_cv_prog_cc_c99" != xno; then :
  10070. fi
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10072. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10073. if ${ac_cv_c_const+:} false; then :
  10074. $as_echo_n "(cached) " >&6
  10075. else
  10076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10077. /* end confdefs.h. */
  10078. int
  10079. main ()
  10080. {
  10081. #ifndef __cplusplus
  10082. /* Ultrix mips cc rejects this sort of thing. */
  10083. typedef int charset[2];
  10084. const charset cs = { 0, 0 };
  10085. /* SunOS 4.1.1 cc rejects this. */
  10086. char const *const *pcpcc;
  10087. char **ppc;
  10088. /* NEC SVR4.0.2 mips cc rejects this. */
  10089. struct point {int x, y;};
  10090. static struct point const zero = {0,0};
  10091. /* AIX XL C 1.02.0.0 rejects this.
  10092. It does not let you subtract one const X* pointer from another in
  10093. an arm of an if-expression whose if-part is not a constant
  10094. expression */
  10095. const char *g = "string";
  10096. pcpcc = &g + (g ? g-g : 0);
  10097. /* HPUX 7.0 cc rejects these. */
  10098. ++pcpcc;
  10099. ppc = (char**) pcpcc;
  10100. pcpcc = (char const *const *) ppc;
  10101. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10102. char tx;
  10103. char *t = &tx;
  10104. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10105. *t++ = 0;
  10106. if (s) return 0;
  10107. }
  10108. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10109. int x[] = {25, 17};
  10110. const int *foo = &x[0];
  10111. ++foo;
  10112. }
  10113. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10114. typedef const int *iptr;
  10115. iptr p = 0;
  10116. ++p;
  10117. }
  10118. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10119. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10120. struct s { int j; const int *ap[3]; } bx;
  10121. struct s *b = &bx; b->j = 5;
  10122. }
  10123. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10124. const int foo = 10;
  10125. if (!foo) return 0;
  10126. }
  10127. return !cs[0] && !zero.x;
  10128. #endif
  10129. ;
  10130. return 0;
  10131. }
  10132. _ACEOF
  10133. if ac_fn_c_try_compile "$LINENO"; then :
  10134. ac_cv_c_const=yes
  10135. else
  10136. ac_cv_c_const=no
  10137. fi
  10138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10139. fi
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10141. $as_echo "$ac_cv_c_const" >&6; }
  10142. if test $ac_cv_c_const = no; then
  10143. $as_echo "#define const /**/" >>confdefs.h
  10144. fi
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10146. $as_echo_n "checking for inline... " >&6; }
  10147. if ${ac_cv_c_inline+:} false; then :
  10148. $as_echo_n "(cached) " >&6
  10149. else
  10150. ac_cv_c_inline=no
  10151. for ac_kw in inline __inline__ __inline; do
  10152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10153. /* end confdefs.h. */
  10154. #ifndef __cplusplus
  10155. typedef int foo_t;
  10156. static $ac_kw foo_t static_foo () {return 0; }
  10157. $ac_kw foo_t foo () {return 0; }
  10158. #endif
  10159. _ACEOF
  10160. if ac_fn_c_try_compile "$LINENO"; then :
  10161. ac_cv_c_inline=$ac_kw
  10162. fi
  10163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10164. test "$ac_cv_c_inline" != no && break
  10165. done
  10166. fi
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10168. $as_echo "$ac_cv_c_inline" >&6; }
  10169. case $ac_cv_c_inline in
  10170. inline | yes) ;;
  10171. *)
  10172. case $ac_cv_c_inline in
  10173. no) ac_val=;;
  10174. *) ac_val=$ac_cv_c_inline;;
  10175. esac
  10176. cat >>confdefs.h <<_ACEOF
  10177. #ifndef __cplusplus
  10178. #define inline $ac_val
  10179. #endif
  10180. _ACEOF
  10181. ;;
  10182. esac
  10183. # By default we simply use the C compiler to build assembly code.
  10184. test "${CCAS+set}" = set || CCAS=$CC
  10185. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  10186. depcc="$CCAS" am_compiler_list=
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10188. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10189. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  10190. $as_echo_n "(cached) " >&6
  10191. else
  10192. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10193. # We make a subdir and do the tests there. Otherwise we can end up
  10194. # making bogus files that we don't know about and never remove. For
  10195. # instance it was reported that on HP-UX the gcc test will end up
  10196. # making a dummy file named 'D' -- because '-MD' means "put the output
  10197. # in D".
  10198. rm -rf conftest.dir
  10199. mkdir conftest.dir
  10200. # Copy depcomp to subdir because otherwise we won't find it if we're
  10201. # using a relative directory.
  10202. cp "$am_depcomp" conftest.dir
  10203. cd conftest.dir
  10204. # We will build objects and dependencies in a subdirectory because
  10205. # it helps to detect inapplicable dependency modes. For instance
  10206. # both Tru64's cc and ICC support -MD to output dependencies as a
  10207. # side effect of compilation, but ICC will put the dependencies in
  10208. # the current directory while Tru64 will put them in the object
  10209. # directory.
  10210. mkdir sub
  10211. am_cv_CCAS_dependencies_compiler_type=none
  10212. if test "$am_compiler_list" = ""; then
  10213. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10214. fi
  10215. am__universal=false
  10216. for depmode in $am_compiler_list; do
  10217. # Setup a source with many dependencies, because some compilers
  10218. # like to wrap large dependency lists on column 80 (with \), and
  10219. # we should not choose a depcomp mode which is confused by this.
  10220. #
  10221. # We need to recreate these files for each test, as the compiler may
  10222. # overwrite some of them when testing with obscure command lines.
  10223. # This happens at least with the AIX C compiler.
  10224. : > sub/conftest.c
  10225. for i in 1 2 3 4 5 6; do
  10226. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10227. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  10228. # Solaris 10 /bin/sh.
  10229. echo '/* dummy */' > sub/conftst$i.h
  10230. done
  10231. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10232. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  10233. # mode. It turns out that the SunPro C++ compiler does not properly
  10234. # handle '-M -o', and we need to detect this. Also, some Intel
  10235. # versions had trouble with output in subdirs.
  10236. am__obj=sub/conftest.${OBJEXT-o}
  10237. am__minus_obj="-o $am__obj"
  10238. case $depmode in
  10239. gcc)
  10240. # This depmode causes a compiler race in universal mode.
  10241. test "$am__universal" = false || continue
  10242. ;;
  10243. nosideeffect)
  10244. # After this tag, mechanisms are not by side-effect, so they'll
  10245. # only be used when explicitly requested.
  10246. if test "x$enable_dependency_tracking" = xyes; then
  10247. continue
  10248. else
  10249. break
  10250. fi
  10251. ;;
  10252. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  10253. # This compiler won't grok '-c -o', but also, the minuso test has
  10254. # not run yet. These depmodes are late enough in the game, and
  10255. # so weak that their functioning should not be impacted.
  10256. am__obj=conftest.${OBJEXT-o}
  10257. am__minus_obj=
  10258. ;;
  10259. none) break ;;
  10260. esac
  10261. if depmode=$depmode \
  10262. source=sub/conftest.c object=$am__obj \
  10263. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10264. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10265. >/dev/null 2>conftest.err &&
  10266. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10267. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10268. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10269. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10270. # icc doesn't choke on unknown options, it will just issue warnings
  10271. # or remarks (even with -Werror). So we grep stderr for any message
  10272. # that says an option was ignored or not supported.
  10273. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10274. # icc: Command line warning: ignoring option '-M'; no argument required
  10275. # The diagnosis changed in icc 8.0:
  10276. # icc: Command line remark: option '-MP' not supported
  10277. if (grep 'ignoring option' conftest.err ||
  10278. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10279. am_cv_CCAS_dependencies_compiler_type=$depmode
  10280. break
  10281. fi
  10282. fi
  10283. done
  10284. cd ..
  10285. rm -rf conftest.dir
  10286. else
  10287. am_cv_CCAS_dependencies_compiler_type=none
  10288. fi
  10289. fi
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  10291. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  10292. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  10293. if
  10294. test "x$enable_dependency_tracking" != xno \
  10295. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  10296. am__fastdepCCAS_TRUE=
  10297. am__fastdepCCAS_FALSE='#'
  10298. else
  10299. am__fastdepCCAS_TRUE='#'
  10300. am__fastdepCCAS_FALSE=
  10301. fi
  10302. $as_echo "#define OPUS_BUILD /**/" >>confdefs.h
  10303. #Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
  10304. #strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
  10305. #Note: Both this and the test for variable-size arrays below are also
  10306. # done by AC_PROG_CC_C99, but not thoroughly enough apparently.
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  10308. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  10309. if ${ac_cv_c_restrict+:} false; then :
  10310. $as_echo_n "(cached) " >&6
  10311. else
  10312. ac_cv_c_restrict=no
  10313. # The order here caters to the fact that C++ does not require restrict.
  10314. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  10315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10316. /* end confdefs.h. */
  10317. typedef int * int_ptr;
  10318. int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
  10319. return ip[0];
  10320. }
  10321. int
  10322. main ()
  10323. {
  10324. int s[1];
  10325. int * $ac_kw t = s;
  10326. t[0] = 0;
  10327. return foo(t, (void *)0)
  10328. ;
  10329. return 0;
  10330. }
  10331. _ACEOF
  10332. if ac_fn_c_try_compile "$LINENO"; then :
  10333. ac_cv_c_restrict=$ac_kw
  10334. fi
  10335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10336. test "$ac_cv_c_restrict" != no && break
  10337. done
  10338. fi
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  10340. $as_echo "$ac_cv_c_restrict" >&6; }
  10341. case $ac_cv_c_restrict in
  10342. restrict) ;;
  10343. no) $as_echo "#define restrict /**/" >>confdefs.h
  10344. ;;
  10345. *) cat >>confdefs.h <<_ACEOF
  10346. #define restrict $ac_cv_c_restrict
  10347. _ACEOF
  10348. ;;
  10349. esac
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
  10351. $as_echo_n "checking for C99 variable-size arrays... " >&6; }
  10352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10353. /* end confdefs.h. */
  10354. int
  10355. main ()
  10356. {
  10357. static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
  10358. ;
  10359. return 0;
  10360. }
  10361. _ACEOF
  10362. if ac_fn_c_try_compile "$LINENO"; then :
  10363. has_var_arrays=yes
  10364. use_alloca="no (using var arrays)"
  10365. $as_echo "#define VAR_ARRAYS 1" >>confdefs.h
  10366. else
  10367. has_var_arrays=no
  10368. fi
  10369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
  10371. $as_echo "$has_var_arrays" >&6; }
  10372. if test "$has_var_arrays" = "no"; then :
  10373. for ac_header in alloca.h
  10374. do :
  10375. ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
  10376. if test "x$ac_cv_header_alloca_h" = xyes; then :
  10377. cat >>confdefs.h <<_ACEOF
  10378. #define HAVE_ALLOCA_H 1
  10379. _ACEOF
  10380. fi
  10381. done
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  10383. $as_echo_n "checking for alloca... " >&6; }
  10384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10385. /* end confdefs.h. */
  10386. #include <alloca.h>
  10387. int
  10388. main ()
  10389. {
  10390. int foo=10; int *array = alloca(foo);
  10391. ;
  10392. return 0;
  10393. }
  10394. _ACEOF
  10395. if ac_fn_c_try_compile "$LINENO"; then :
  10396. use_alloca=yes;
  10397. $as_echo "#define USE_ALLOCA /**/" >>confdefs.h
  10398. else
  10399. use_alloca=no
  10400. fi
  10401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_alloca" >&5
  10403. $as_echo "$use_alloca" >&6; }
  10404. fi
  10405. LIBM=
  10406. case $host in
  10407. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  10408. # These system don't have libm, or don't need it
  10409. ;;
  10410. *-ncr-sysv4.3*)
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  10412. $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
  10413. if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
  10414. $as_echo_n "(cached) " >&6
  10415. else
  10416. ac_check_lib_save_LIBS=$LIBS
  10417. LIBS="-lmw $LIBS"
  10418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10419. /* end confdefs.h. */
  10420. /* Override any GCC internal prototype to avoid an error.
  10421. Use char because int might match the return type of a GCC
  10422. builtin and then its argument prototype would still apply. */
  10423. #ifdef __cplusplus
  10424. extern "C"
  10425. #endif
  10426. char _mwvalidcheckl ();
  10427. int
  10428. main ()
  10429. {
  10430. return _mwvalidcheckl ();
  10431. ;
  10432. return 0;
  10433. }
  10434. _ACEOF
  10435. if ac_fn_c_try_link "$LINENO"; then :
  10436. ac_cv_lib_mw__mwvalidcheckl=yes
  10437. else
  10438. ac_cv_lib_mw__mwvalidcheckl=no
  10439. fi
  10440. rm -f core conftest.err conftest.$ac_objext \
  10441. conftest$ac_exeext conftest.$ac_ext
  10442. LIBS=$ac_check_lib_save_LIBS
  10443. fi
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  10445. $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  10446. if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
  10447. LIBM="-lmw"
  10448. fi
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  10450. $as_echo_n "checking for cos in -lm... " >&6; }
  10451. if ${ac_cv_lib_m_cos+:} false; then :
  10452. $as_echo_n "(cached) " >&6
  10453. else
  10454. ac_check_lib_save_LIBS=$LIBS
  10455. LIBS="-lm $LIBS"
  10456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10457. /* end confdefs.h. */
  10458. /* Override any GCC internal prototype to avoid an error.
  10459. Use char because int might match the return type of a GCC
  10460. builtin and then its argument prototype would still apply. */
  10461. #ifdef __cplusplus
  10462. extern "C"
  10463. #endif
  10464. char cos ();
  10465. int
  10466. main ()
  10467. {
  10468. return cos ();
  10469. ;
  10470. return 0;
  10471. }
  10472. _ACEOF
  10473. if ac_fn_c_try_link "$LINENO"; then :
  10474. ac_cv_lib_m_cos=yes
  10475. else
  10476. ac_cv_lib_m_cos=no
  10477. fi
  10478. rm -f core conftest.err conftest.$ac_objext \
  10479. conftest$ac_exeext conftest.$ac_ext
  10480. LIBS=$ac_check_lib_save_LIBS
  10481. fi
  10482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  10483. $as_echo "$ac_cv_lib_m_cos" >&6; }
  10484. if test "x$ac_cv_lib_m_cos" = xyes; then :
  10485. LIBM="$LIBM -lm"
  10486. fi
  10487. ;;
  10488. *)
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  10490. $as_echo_n "checking for cos in -lm... " >&6; }
  10491. if ${ac_cv_lib_m_cos+:} false; then :
  10492. $as_echo_n "(cached) " >&6
  10493. else
  10494. ac_check_lib_save_LIBS=$LIBS
  10495. LIBS="-lm $LIBS"
  10496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10497. /* end confdefs.h. */
  10498. /* Override any GCC internal prototype to avoid an error.
  10499. Use char because int might match the return type of a GCC
  10500. builtin and then its argument prototype would still apply. */
  10501. #ifdef __cplusplus
  10502. extern "C"
  10503. #endif
  10504. char cos ();
  10505. int
  10506. main ()
  10507. {
  10508. return cos ();
  10509. ;
  10510. return 0;
  10511. }
  10512. _ACEOF
  10513. if ac_fn_c_try_link "$LINENO"; then :
  10514. ac_cv_lib_m_cos=yes
  10515. else
  10516. ac_cv_lib_m_cos=no
  10517. fi
  10518. rm -f core conftest.err conftest.$ac_objext \
  10519. conftest$ac_exeext conftest.$ac_ext
  10520. LIBS=$ac_check_lib_save_LIBS
  10521. fi
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  10523. $as_echo "$ac_cv_lib_m_cos" >&6; }
  10524. if test "x$ac_cv_lib_m_cos" = xyes; then :
  10525. LIBM="-lm"
  10526. fi
  10527. ;;
  10528. esac
  10529. # Check whether --enable-fixed-point was given.
  10530. if test "${enable_fixed_point+set}" = set; then :
  10531. enableval=$enable_fixed_point;
  10532. else
  10533. enable_fixed_point=no
  10534. fi
  10535. if test "$enable_fixed_point" = "yes"; then :
  10536. enable_float="no"
  10537. $as_echo "#define FIXED_POINT 1" >>confdefs.h
  10538. PC_BUILD="fixed-point"
  10539. else
  10540. enable_float="yes";
  10541. PC_BUILD="floating-point"
  10542. fi
  10543. if test "$enable_fixed_point" = "yes"; then
  10544. FIXED_POINT_TRUE=
  10545. FIXED_POINT_FALSE='#'
  10546. else
  10547. FIXED_POINT_TRUE='#'
  10548. FIXED_POINT_FALSE=
  10549. fi
  10550. # Check whether --enable-fixed-point-debug was given.
  10551. if test "${enable_fixed_point_debug+set}" = set; then :
  10552. enableval=$enable_fixed_point_debug;
  10553. else
  10554. enable_fixed_point_debug=no
  10555. fi
  10556. if test "$enable_fixed_point_debug" = "yes"; then :
  10557. $as_echo "#define FIXED_DEBUG 1" >>confdefs.h
  10558. fi
  10559. # Check whether --enable-float_api was given.
  10560. if test "${enable_float_api+set}" = set; then :
  10561. enableval=$enable_float_api;
  10562. else
  10563. enable_float_api=yes
  10564. fi
  10565. if test "$enable_float_api" = "no"; then
  10566. DISABLE_FLOAT_API_TRUE=
  10567. DISABLE_FLOAT_API_FALSE='#'
  10568. else
  10569. DISABLE_FLOAT_API_TRUE='#'
  10570. DISABLE_FLOAT_API_FALSE=
  10571. fi
  10572. if test "$enable_float_api" = "no"; then :
  10573. $as_echo "#define DISABLE_FLOAT_API 1" >>confdefs.h
  10574. fi
  10575. # Check whether --enable-custom-modes was given.
  10576. if test "${enable_custom_modes+set}" = set; then :
  10577. enableval=$enable_custom_modes;
  10578. else
  10579. enable_custom_modes=no
  10580. fi
  10581. if test "$enable_custom_modes" = "yes"; then :
  10582. $as_echo "#define CUSTOM_MODES 1" >>confdefs.h
  10583. PC_BUILD="$PC_BUILD, custom modes"
  10584. fi
  10585. if test "$enable_custom_modes" = "yes"; then
  10586. CUSTOM_MODES_TRUE=
  10587. CUSTOM_MODES_FALSE='#'
  10588. else
  10589. CUSTOM_MODES_TRUE='#'
  10590. CUSTOM_MODES_FALSE=
  10591. fi
  10592. has_float_approx=no
  10593. #case "$host_cpu" in
  10594. #i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
  10595. # has_float_approx=yes
  10596. # ;;
  10597. #esac
  10598. # Check whether --enable-float-approx was given.
  10599. if test "${enable_float_approx+set}" = set; then :
  10600. enableval=$enable_float_approx; if test "$enable_float_approx" = "yes"; then
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5
  10602. $as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;}
  10603. fi
  10604. else
  10605. enable_float_approx=$has_float_approx
  10606. fi
  10607. if test "$enable_float_approx" = "yes"; then :
  10608. $as_echo "#define FLOAT_APPROX 1" >>confdefs.h
  10609. fi
  10610. # Check whether --enable-asm was given.
  10611. if test "${enable_asm+set}" = set; then :
  10612. enableval=$enable_asm;
  10613. else
  10614. enable_asm=yes
  10615. fi
  10616. # Check whether --enable-rtcd was given.
  10617. if test "${enable_rtcd+set}" = set; then :
  10618. enableval=$enable_rtcd;
  10619. else
  10620. enable_rtcd=yes
  10621. fi
  10622. # Check whether --enable-intrinsics was given.
  10623. if test "${enable_intrinsics+set}" = set; then :
  10624. enableval=$enable_intrinsics;
  10625. else
  10626. enable_intrinsics=no
  10627. fi
  10628. rtcd_support=no
  10629. cpu_arm=no
  10630. if test x"${enable_asm}" = x"yes"; then :
  10631. inline_optimization="No inline ASM for your platform, please send patches"
  10632. case $host_cpu in
  10633. arm*)
  10634. if test "$enable_float" != "yes"; then :
  10635. cpu_arm=yes
  10636. $as_echo "#define OPUS_ARM_ASM /**/" >>confdefs.h
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports gcc-style inline assembly" >&5
  10638. $as_echo_n "checking if compiler supports gcc-style inline assembly... " >&6; }
  10639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10640. /* end confdefs.h. */
  10641. int
  10642. main ()
  10643. {
  10644. #ifdef __GNUC_MINOR__
  10645. #if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
  10646. #error GCC before 3.4 has critical bugs compiling inline assembly
  10647. #endif
  10648. #endif
  10649. __asm__ (""::)
  10650. ;
  10651. return 0;
  10652. }
  10653. _ACEOF
  10654. if ac_fn_c_try_compile "$LINENO"; then :
  10655. flag_ok=yes
  10656. else
  10657. flag_ok=no
  10658. fi
  10659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10660. if test "X$flag_ok" = Xyes ; then
  10661. inline_optimization="ARM"
  10662. true
  10663. else
  10664. inline_optimization="disabled"
  10665. true
  10666. fi
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
  10668. $as_echo "$flag_ok" >&6; }
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
  10670. $as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
  10671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10672. /* end confdefs.h. */
  10673. int
  10674. main ()
  10675. {
  10676. __asm__("qadd r3,r3,r3")
  10677. ;
  10678. return 0;
  10679. }
  10680. _ACEOF
  10681. if ac_fn_c_try_compile "$LINENO"; then :
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10683. $as_echo "yes" >&6; }
  10684. OPUS_ARM_INLINE_EDSP=1
  10685. else
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10687. $as_echo "no" >&6; }
  10688. OPUS_ARM_INLINE_EDSP=0
  10689. fi
  10690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
  10692. $as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
  10693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10694. /* end confdefs.h. */
  10695. int
  10696. main ()
  10697. {
  10698. __asm__("shadd8 r3,r3,r3")
  10699. ;
  10700. return 0;
  10701. }
  10702. _ACEOF
  10703. if ac_fn_c_try_compile "$LINENO"; then :
  10704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10705. $as_echo "yes" >&6; }
  10706. OPUS_ARM_INLINE_MEDIA=1
  10707. else
  10708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10709. $as_echo "no" >&6; }
  10710. OPUS_ARM_INLINE_MEDIA=0
  10711. fi
  10712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
  10714. $as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
  10715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10716. /* end confdefs.h. */
  10717. int
  10718. main ()
  10719. {
  10720. __asm__("vorr d0,d0,d0")
  10721. ;
  10722. return 0;
  10723. }
  10724. _ACEOF
  10725. if ac_fn_c_try_compile "$LINENO"; then :
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10727. $as_echo "yes" >&6; }
  10728. OPUS_ARM_INLINE_NEON=1
  10729. else
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10731. $as_echo "no" >&6; }
  10732. OPUS_ARM_INLINE_NEON=0
  10733. fi
  10734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10735. if test x"$inline_optimization" = x"ARM"; then :
  10736. if true; then
  10737. OPUS_ARM_INLINE_ASM_TRUE=
  10738. OPUS_ARM_INLINE_ASM_FALSE='#'
  10739. else
  10740. OPUS_ARM_INLINE_ASM_TRUE='#'
  10741. OPUS_ARM_INLINE_ASM_FALSE=
  10742. fi
  10743. $as_echo "#define OPUS_ARM_INLINE_ASM 1" >>confdefs.h
  10744. if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
  10745. $as_echo "#define OPUS_ARM_INLINE_EDSP 1" >>confdefs.h
  10746. inline_optimization="$inline_optimization (EDSP)"
  10747. fi
  10748. if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
  10749. $as_echo "#define OPUS_ARM_INLINE_MEDIA 1" >>confdefs.h
  10750. inline_optimization="$inline_optimization (Media)"
  10751. fi
  10752. if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
  10753. $as_echo "#define OPUS_ARM_INLINE_NEON 1" >>confdefs.h
  10754. inline_optimization="$inline_optimization (NEON)"
  10755. fi
  10756. fi
  10757. # Extract the first word of "perl", so it can be a program name with args.
  10758. set dummy perl; ac_word=$2
  10759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10760. $as_echo_n "checking for $ac_word... " >&6; }
  10761. if ${ac_cv_prog_HAVE_PERL+:} false; then :
  10762. $as_echo_n "(cached) " >&6
  10763. else
  10764. if test -n "$HAVE_PERL"; then
  10765. ac_cv_prog_HAVE_PERL="$HAVE_PERL" # Let the user override the test.
  10766. else
  10767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10768. for as_dir in $PATH
  10769. do
  10770. IFS=$as_save_IFS
  10771. test -z "$as_dir" && as_dir=.
  10772. for ac_exec_ext in '' $ac_executable_extensions; do
  10773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10774. ac_cv_prog_HAVE_PERL="yes"
  10775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10776. break 2
  10777. fi
  10778. done
  10779. done
  10780. IFS=$as_save_IFS
  10781. test -z "$ac_cv_prog_HAVE_PERL" && ac_cv_prog_HAVE_PERL="no"
  10782. fi
  10783. fi
  10784. HAVE_PERL=$ac_cv_prog_HAVE_PERL
  10785. if test -n "$HAVE_PERL"; then
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PERL" >&5
  10787. $as_echo "$HAVE_PERL" >&6; }
  10788. else
  10789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10790. $as_echo "no" >&6; }
  10791. fi
  10792. if test x"$HAVE_PERL" = x"yes"; then :
  10793. if true; then
  10794. OPUS_ARM_EXTERNAL_ASM_TRUE=
  10795. OPUS_ARM_EXTERNAL_ASM_FALSE='#'
  10796. else
  10797. OPUS_ARM_EXTERNAL_ASM_TRUE='#'
  10798. OPUS_ARM_EXTERNAL_ASM_FALSE=
  10799. fi
  10800. asm_optimization="ARM"
  10801. if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
  10802. OPUS_ARM_PRESUME_EDSP=1
  10803. OPUS_ARM_MAY_HAVE_EDSP=1
  10804. else
  10805. OPUS_ARM_PRESUME_EDSP=0
  10806. OPUS_ARM_MAY_HAVE_EDSP=0
  10807. fi
  10808. if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
  10809. OPUS_ARM_PRESUME_MEDIA=1
  10810. OPUS_ARM_MAY_HAVE_MEDIA=1
  10811. else
  10812. OPUS_ARM_PRESUME_MEDIA=0
  10813. OPUS_ARM_MAY_HAVE_MEDIA=0
  10814. fi
  10815. if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
  10816. OPUS_ARM_PRESUME_NEON=1
  10817. OPUS_ARM_MAY_HAVE_NEON=1
  10818. else
  10819. OPUS_ARM_PRESUME_NEON=0
  10820. OPUS_ARM_MAY_HAVE_NEON=0
  10821. fi
  10822. if test x"$enable_rtcd" = x"yes"; then :
  10823. if test x"$OPUS_ARM_MAY_HAVE_EDSP" != x"1"; then :
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable armv5e EDSP instructions..." >&5
  10825. $as_echo "$as_me: Trying to force-enable armv5e EDSP instructions..." >&6;}
  10826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
  10827. $as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
  10828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10829. /* end confdefs.h. */
  10830. int
  10831. main ()
  10832. {
  10833. __asm__(".arch armv5te\n.object_arch armv4t\nqadd r3,r3,r3")
  10834. ;
  10835. return 0;
  10836. }
  10837. _ACEOF
  10838. if ac_fn_c_try_compile "$LINENO"; then :
  10839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10840. $as_echo "yes" >&6; }
  10841. OPUS_ARM_MAY_HAVE_EDSP=1
  10842. else
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10844. $as_echo "no" >&6; }
  10845. fi
  10846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10847. fi
  10848. if test x"$OPUS_ARM_MAY_HAVE_MEDIA" != x"1"; then :
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable ARMv6 media instructions..." >&5
  10850. $as_echo "$as_me: Trying to force-enable ARMv6 media instructions..." >&6;}
  10851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
  10852. $as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
  10853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10854. /* end confdefs.h. */
  10855. int
  10856. main ()
  10857. {
  10858. __asm__(".arch armv6\n.object_arch armv4t\nshadd8 r3,r3,r3")
  10859. ;
  10860. return 0;
  10861. }
  10862. _ACEOF
  10863. if ac_fn_c_try_compile "$LINENO"; then :
  10864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10865. $as_echo "yes" >&6; }
  10866. OPUS_ARM_MAY_HAVE_MEDIA=1
  10867. else
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10869. $as_echo "no" >&6; }
  10870. fi
  10871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10872. fi
  10873. if test x"$OPUS_ARM_MAY_HAVE_NEON" != x"1"; then :
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable NEON instructions..." >&5
  10875. $as_echo "$as_me: Trying to force-enable NEON instructions..." >&6;}
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
  10877. $as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
  10878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10879. /* end confdefs.h. */
  10880. int
  10881. main ()
  10882. {
  10883. __asm__(".arch armv7-a\n.fpu neon\n.object_arch armv4t\nvorr d0,d0,d0")
  10884. ;
  10885. return 0;
  10886. }
  10887. _ACEOF
  10888. if ac_fn_c_try_compile "$LINENO"; then :
  10889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10890. $as_echo "yes" >&6; }
  10891. OPUS_ARM_MAY_HAVE_NEON=1
  10892. else
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10894. $as_echo "no" >&6; }
  10895. fi
  10896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10897. fi
  10898. fi
  10899. rtcd_support=
  10900. if test x"$OPUS_ARM_MAY_HAVE_EDSP" = x"1"; then :
  10901. $as_echo "#define OPUS_ARM_MAY_HAVE_EDSP 1" >>confdefs.h
  10902. if test x"$OPUS_ARM_PRESUME_EDSP" = x"1"; then :
  10903. $as_echo "#define OPUS_ARM_PRESUME_EDSP 1" >>confdefs.h
  10904. asm_optimization="$asm_optimization (EDSP)"
  10905. else
  10906. rtcd_support="$rtcd_support (EDSP)"
  10907. fi
  10908. fi
  10909. if test x"$OPUS_ARM_MAY_HAVE_MEDIA" = x"1"; then :
  10910. $as_echo "#define OPUS_ARM_MAY_HAVE_MEDIA 1" >>confdefs.h
  10911. if test x"$OPUS_ARM_PRESUME_MEDIA" = x"1"; then :
  10912. $as_echo "#define OPUS_ARM_PRESUME_MEDIA 1" >>confdefs.h
  10913. asm_optimization="$asm_optimization (Media)"
  10914. else
  10915. rtcd_support="$rtcd_support (Media)"
  10916. fi
  10917. fi
  10918. if test x"$OPUS_ARM_MAY_HAVE_NEON" = x"1"; then :
  10919. $as_echo "#define OPUS_ARM_MAY_HAVE_NEON 1" >>confdefs.h
  10920. if test x"$OPUS_ARM_PRESUME_NEON" = x"1"; then :
  10921. $as_echo "#define OPUS_ARM_PRESUME_NEON 1" >>confdefs.h
  10922. asm_optimization="$asm_optimization (NEON)"
  10923. else
  10924. rtcd_support="$rtcd_support (NEON)"
  10925. fi
  10926. fi
  10927. if test x"$rtcd_support" != x""; then :
  10928. rtcd_support=ARM"$rtcd_support"
  10929. else
  10930. rtcd_support="no"
  10931. fi
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apple style tools" >&5
  10933. $as_echo_n "checking for apple style tools... " >&6; }
  10934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10935. /* end confdefs.h. */
  10936. #ifndef __APPLE__
  10937. #error 1
  10938. #endif
  10939. int
  10940. main ()
  10941. {
  10942. ;
  10943. return 0;
  10944. }
  10945. _ACEOF
  10946. if ac_fn_c_try_cpp "$LINENO"; then :
  10947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10948. $as_echo "yes" >&6; }; ARM2GNU_PARAMS="--apple"
  10949. else
  10950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10951. $as_echo "no" >&6; }; ARM2GNU_PARAMS=""
  10952. fi
  10953. rm -f conftest.err conftest.i conftest.$ac_ext
  10954. else
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&5
  10956. $as_echo "$as_me: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&2;}
  10957. asm_optimization="(missing perl dependency for ARM)"
  10958. fi
  10959. fi
  10960. ;;
  10961. esac
  10962. else
  10963. inline_optimization="disabled"
  10964. asm_optimization="disabled"
  10965. fi
  10966. if test x"${inline_optimization%% *}" = x"ARM"; then
  10967. OPUS_ARM_INLINE_ASM_TRUE=
  10968. OPUS_ARM_INLINE_ASM_FALSE='#'
  10969. else
  10970. OPUS_ARM_INLINE_ASM_TRUE='#'
  10971. OPUS_ARM_INLINE_ASM_FALSE=
  10972. fi
  10973. if test x"${asm_optimization%% *}" = x"ARM"; then
  10974. OPUS_ARM_EXTERNAL_ASM_TRUE=
  10975. OPUS_ARM_EXTERNAL_ASM_FALSE='#'
  10976. else
  10977. OPUS_ARM_EXTERNAL_ASM_TRUE='#'
  10978. OPUS_ARM_EXTERNAL_ASM_FALSE=
  10979. fi
  10980. if false; then
  10981. HAVE_SSE_TRUE=
  10982. HAVE_SSE_FALSE='#'
  10983. else
  10984. HAVE_SSE_TRUE='#'
  10985. HAVE_SSE_FALSE=
  10986. fi
  10987. if false; then
  10988. HAVE_SSE2_TRUE=
  10989. HAVE_SSE2_FALSE='#'
  10990. else
  10991. HAVE_SSE2_TRUE='#'
  10992. HAVE_SSE2_FALSE=
  10993. fi
  10994. if false; then
  10995. HAVE_SSE4_1_TRUE=
  10996. HAVE_SSE4_1_FALSE='#'
  10997. else
  10998. HAVE_SSE4_1_TRUE='#'
  10999. HAVE_SSE4_1_FALSE=
  11000. fi
  11001. if false; then
  11002. HAVE_AVX_TRUE=
  11003. HAVE_AVX_FALSE='#'
  11004. else
  11005. HAVE_AVX_TRUE='#'
  11006. HAVE_AVX_FALSE=
  11007. fi
  11008. # With GCC on ARM32 softfp architectures (e.g. Android, or older Ubuntu) you need to specify
  11009. # -mfloat-abi=softfp for -mfpu=neon to work. However, on ARM32 hardfp architectures (e.g. newer Ubuntu),
  11010. # this option will break things.
  11011. # As a heuristic, if host matches arm*eabi* but not arm*hf*, it's probably soft-float.
  11012. case $host in #(
  11013. arm*hf*) :
  11014. RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;; #(
  11015. arm*eabi*) :
  11016. RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon -mfloat-abi=softfp" ;; #(
  11017. *) :
  11018. RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;;
  11019. esac
  11020. if ${X86_SSE_CFLAGS+:} false; then :
  11021. else
  11022. X86_SSE_CFLAGS="-msse"
  11023. fi
  11024. if ${X86_SSE2_CFLAGS+:} false; then :
  11025. else
  11026. X86_SSE2_CFLAGS="-msse2"
  11027. fi
  11028. if ${X86_SSE4_1_CFLAGS+:} false; then :
  11029. else
  11030. X86_SSE4_1_CFLAGS="-msse4.1"
  11031. fi
  11032. if ${X86_AVX_CFLAGS+:} false; then :
  11033. else
  11034. X86_AVX_CFLAGS="-mavx"
  11035. fi
  11036. if ${ARM_NEON_INTR_CFLAGS+:} false; then :
  11037. else
  11038. ARM_NEON_INTR_CFLAGS="$RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS"
  11039. fi
  11040. if test x"$enable_intrinsics" = x"yes"; then :
  11041. intrinsics_support=""
  11042. case $host_cpu in #(
  11043. arm*) :
  11044. cpu_arm=yes
  11045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics" >&5
  11046. $as_echo_n "checking if compiler supports ARM Neon intrinsics... " >&6; }
  11047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11048. /* end confdefs.h. */
  11049. #include <arm_neon.h>
  11050. int
  11051. main ()
  11052. {
  11053. static float32x4_t A0, A1, SUMM;
  11054. SUMM = vmlaq_f32(SUMM, A0, A1);
  11055. ;
  11056. return 0;
  11057. }
  11058. _ACEOF
  11059. if ac_fn_c_try_link "$LINENO"; then :
  11060. OPUS_ARM_MAY_HAVE_NEON_INTR=1
  11061. OPUS_ARM_PRESUME_NEON_INTR=1
  11062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11063. $as_echo "yes" >&6; }
  11064. else
  11065. OPUS_ARM_PRESUME_NEON_INTR=0
  11066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11067. $as_echo "no" >&6; }
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5
  11069. $as_echo_n "checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; }
  11070. save_CFLAGS="$CFLAGS"; CFLAGS="$ARM_NEON_INTR_CFLAGS $CFLAGS"
  11071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11072. /* end confdefs.h. */
  11073. #include <arm_neon.h>
  11074. int
  11075. main ()
  11076. {
  11077. static float32x4_t A0, A1, SUMM;
  11078. SUMM = vmlaq_f32(SUMM, A0, A1);
  11079. ;
  11080. return 0;
  11081. }
  11082. _ACEOF
  11083. if ac_fn_c_try_link "$LINENO"; then :
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11085. $as_echo "yes" >&6; }
  11086. OPUS_ARM_MAY_HAVE_NEON_INTR=1
  11087. else
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11089. $as_echo "no" >&6; }
  11090. OPUS_ARM_MAY_HAVE_NEON_INTR=0
  11091. fi
  11092. rm -f core conftest.err conftest.$ac_objext \
  11093. conftest$ac_exeext conftest.$ac_ext
  11094. CFLAGS="$save_CFLAGS"
  11095. fi
  11096. rm -f core conftest.err conftest.$ac_objext \
  11097. conftest$ac_exeext conftest.$ac_ext
  11098. if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
  11099. OPUS_ARM_NEON_INTR_CFLAGS="$ARM_NEON_INTR_CFLAGS"
  11100. fi
  11101. if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then :
  11102. $as_echo "#define OPUS_ARM_MAY_HAVE_NEON_INTR 1" >>confdefs.h
  11103. intrinsics_support="$intrinsics_support (Neon_Intrinsics)"
  11104. if test x"enable_rtcd" != x"" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
  11105. rtcd_support="$rtcd_support (ARMv7_Neon_Intrinsics)"
  11106. fi
  11107. if test x"$OPUS_ARM_PRESUME_NEON_INTR" = x"1"; then :
  11108. $as_echo "#define OPUS_ARM_PRESUME_NEON_INTR 1" >>confdefs.h
  11109. fi
  11110. # Check whether --with-NE10 was given.
  11111. if test "${with_NE10+set}" = set; then :
  11112. withval=$with_NE10; NE10_prefix="$withval"
  11113. else
  11114. NE10_prefix=""
  11115. fi
  11116. # Check whether --with-NE10-libraries was given.
  11117. if test "${with_NE10_libraries+set}" = set; then :
  11118. withval=$with_NE10_libraries; NE10_libraries="$withval"
  11119. else
  11120. NE10_libraries=""
  11121. fi
  11122. # Check whether --with-NE10-includes was given.
  11123. if test "${with_NE10_includes+set}" = set; then :
  11124. withval=$with_NE10_includes; NE10_includes="$withval"
  11125. else
  11126. NE10_includes=""
  11127. fi
  11128. if test "x$NE10_libraries" != "x" ; then
  11129. NE10_LIBS="-L$NE10_libraries"
  11130. elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
  11131. NE10_LIBS=""
  11132. elif test "x$NE10_prefix" != "x" ; then
  11133. NE10_LIBS="-L$NE10_prefix/lib"
  11134. elif test "x$prefix" != "xNONE" ; then
  11135. NE10_LIBS="-L$prefix/lib"
  11136. fi
  11137. if test "x$NE10_prefix" != "xno" ; then
  11138. NE10_LIBS="$NE10_LIBS -lNE10"
  11139. fi
  11140. if test "x$NE10_includes" != "x" ; then
  11141. NE10_CFLAGS="-I$NE10_includes"
  11142. elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
  11143. NE10_CFLAGS=""
  11144. elif test "x$ogg_prefix" != "x" ; then
  11145. NE10_CFLAGS="-I$NE10_prefix/include"
  11146. elif test "x$prefix" != "xNONE"; then
  11147. NE10_CFLAGS="-I$prefix/include"
  11148. fi
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NE10" >&5
  11150. $as_echo_n "checking for NE10... " >&6; }
  11151. save_CFLAGS="$CFLAGS"; CFLAGS="$NE10_CFLAGS"
  11152. save_LIBS="$LIBS"; LIBS="$NE10_LIBS $LIBM"
  11153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11154. /* end confdefs.h. */
  11155. #include <NE10_init.h>
  11156. int
  11157. main ()
  11158. {
  11159. ne10_fft_cfg_float32_t cfg;
  11160. cfg = ne10_fft_alloc_c2c_float32_neon(480);
  11161. ;
  11162. return 0;
  11163. }
  11164. _ACEOF
  11165. if ac_fn_c_try_link "$LINENO"; then :
  11166. HAVE_ARM_NE10=1
  11167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11168. $as_echo "yes" >&6; }
  11169. else
  11170. HAVE_ARM_NE10=0
  11171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11172. $as_echo "no" >&6; }
  11173. NE10_CFLAGS=""
  11174. NE10_LIBS=""
  11175. fi
  11176. rm -f core conftest.err conftest.$ac_objext \
  11177. conftest$ac_exeext conftest.$ac_ext
  11178. CFLAGS="$save_CFLAGS"; LIBS="$save_LIBS"
  11179. #Now we know if libNE10 is installed or not
  11180. if test x"$HAVE_ARM_NE10" = x"1"; then :
  11181. $as_echo "#define HAVE_ARM_NE10 1" >>confdefs.h
  11182. fi
  11183. if test x"$NE10_LIBS" != x""; then :
  11184. intrinsics_support="$intrinsics_support (NE10)"
  11185. if test x"enable_rtcd" != x"" \
  11186. && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
  11187. rtcd_support="$rtcd_support (NE10)"
  11188. fi
  11189. fi
  11190. if test x"$rtcd_support" = x""; then :
  11191. rtcd_support=no
  11192. fi
  11193. if test x"$intrinsics_support" = x""; then :
  11194. intrinsics_support=no
  11195. else
  11196. intrinsics_support="arm$intrinsics_support"
  11197. fi
  11198. else
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support ARM intrinsics" >&5
  11200. $as_echo "$as_me: WARNING: Compiler does not support ARM intrinsics" >&2;}
  11201. intrinsics_support=no
  11202. fi
  11203. ;; #(
  11204. i?86|x86_64) :
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics" >&5
  11206. $as_echo_n "checking if compiler supports SSE intrinsics... " >&6; }
  11207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11208. /* end confdefs.h. */
  11209. #include <xmmintrin.h>
  11210. int
  11211. main ()
  11212. {
  11213. static __m128 mtest;
  11214. mtest = _mm_setzero_ps();
  11215. ;
  11216. return 0;
  11217. }
  11218. _ACEOF
  11219. if ac_fn_c_try_link "$LINENO"; then :
  11220. OPUS_X86_MAY_HAVE_SSE=1
  11221. OPUS_X86_PRESUME_SSE=1
  11222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11223. $as_echo "yes" >&6; }
  11224. else
  11225. OPUS_X86_PRESUME_SSE=0
  11226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11227. $as_echo "no" >&6; }
  11228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS" >&5
  11229. $as_echo_n "checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS... " >&6; }
  11230. save_CFLAGS="$CFLAGS"; CFLAGS="$X86_SSE_CFLAGS $CFLAGS"
  11231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11232. /* end confdefs.h. */
  11233. #include <xmmintrin.h>
  11234. int
  11235. main ()
  11236. {
  11237. static __m128 mtest;
  11238. mtest = _mm_setzero_ps();
  11239. ;
  11240. return 0;
  11241. }
  11242. _ACEOF
  11243. if ac_fn_c_try_link "$LINENO"; then :
  11244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11245. $as_echo "yes" >&6; }
  11246. OPUS_X86_MAY_HAVE_SSE=1
  11247. else
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11249. $as_echo "no" >&6; }
  11250. OPUS_X86_MAY_HAVE_SSE=0
  11251. fi
  11252. rm -f core conftest.err conftest.$ac_objext \
  11253. conftest$ac_exeext conftest.$ac_ext
  11254. CFLAGS="$save_CFLAGS"
  11255. fi
  11256. rm -f core conftest.err conftest.$ac_objext \
  11257. conftest$ac_exeext conftest.$ac_ext
  11258. if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1" && test x"$OPUS_X86_PRESUME_SSE" != x"1"; then :
  11259. OPUS_X86_SSE_CFLAGS="$X86_SSE_CFLAGS"
  11260. fi
  11261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics" >&5
  11262. $as_echo_n "checking if compiler supports SSE2 intrinsics... " >&6; }
  11263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11264. /* end confdefs.h. */
  11265. #include <emmintrin.h>
  11266. int
  11267. main ()
  11268. {
  11269. static __m128i mtest;
  11270. mtest = _mm_setzero_si128();
  11271. ;
  11272. return 0;
  11273. }
  11274. _ACEOF
  11275. if ac_fn_c_try_link "$LINENO"; then :
  11276. OPUS_X86_MAY_HAVE_SSE2=1
  11277. OPUS_X86_PRESUME_SSE2=1
  11278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11279. $as_echo "yes" >&6; }
  11280. else
  11281. OPUS_X86_PRESUME_SSE2=0
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11283. $as_echo "no" >&6; }
  11284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS" >&5
  11285. $as_echo_n "checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS... " >&6; }
  11286. save_CFLAGS="$CFLAGS"; CFLAGS="$X86_SSE2_CFLAGS $CFLAGS"
  11287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11288. /* end confdefs.h. */
  11289. #include <emmintrin.h>
  11290. int
  11291. main ()
  11292. {
  11293. static __m128i mtest;
  11294. mtest = _mm_setzero_si128();
  11295. ;
  11296. return 0;
  11297. }
  11298. _ACEOF
  11299. if ac_fn_c_try_link "$LINENO"; then :
  11300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11301. $as_echo "yes" >&6; }
  11302. OPUS_X86_MAY_HAVE_SSE2=1
  11303. else
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11305. $as_echo "no" >&6; }
  11306. OPUS_X86_MAY_HAVE_SSE2=0
  11307. fi
  11308. rm -f core conftest.err conftest.$ac_objext \
  11309. conftest$ac_exeext conftest.$ac_ext
  11310. CFLAGS="$save_CFLAGS"
  11311. fi
  11312. rm -f core conftest.err conftest.$ac_objext \
  11313. conftest$ac_exeext conftest.$ac_ext
  11314. if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1" && test x"$OPUS_X86_PRESUME_SSE2" != x"1"; then :
  11315. OPUS_X86_SSE2_CFLAGS="$X86_SSE2_CFLAGS"
  11316. fi
  11317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics" >&5
  11318. $as_echo_n "checking if compiler supports SSE4.1 intrinsics... " >&6; }
  11319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11320. /* end confdefs.h. */
  11321. #include <smmintrin.h>
  11322. int
  11323. main ()
  11324. {
  11325. static __m128i mtest;
  11326. mtest = _mm_setzero_si128();
  11327. mtest = _mm_cmpeq_epi64(mtest, mtest);
  11328. ;
  11329. return 0;
  11330. }
  11331. _ACEOF
  11332. if ac_fn_c_try_link "$LINENO"; then :
  11333. OPUS_X86_MAY_HAVE_SSE4_1=1
  11334. OPUS_X86_PRESUME_SSE4_1=1
  11335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11336. $as_echo "yes" >&6; }
  11337. else
  11338. OPUS_X86_PRESUME_SSE4_1=0
  11339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11340. $as_echo "no" >&6; }
  11341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS" >&5
  11342. $as_echo_n "checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS... " >&6; }
  11343. save_CFLAGS="$CFLAGS"; CFLAGS="$X86_SSE4_1_CFLAGS $CFLAGS"
  11344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11345. /* end confdefs.h. */
  11346. #include <smmintrin.h>
  11347. int
  11348. main ()
  11349. {
  11350. static __m128i mtest;
  11351. mtest = _mm_setzero_si128();
  11352. mtest = _mm_cmpeq_epi64(mtest, mtest);
  11353. ;
  11354. return 0;
  11355. }
  11356. _ACEOF
  11357. if ac_fn_c_try_link "$LINENO"; then :
  11358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11359. $as_echo "yes" >&6; }
  11360. OPUS_X86_MAY_HAVE_SSE4_1=1
  11361. else
  11362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11363. $as_echo "no" >&6; }
  11364. OPUS_X86_MAY_HAVE_SSE4_1=0
  11365. fi
  11366. rm -f core conftest.err conftest.$ac_objext \
  11367. conftest$ac_exeext conftest.$ac_ext
  11368. CFLAGS="$save_CFLAGS"
  11369. fi
  11370. rm -f core conftest.err conftest.$ac_objext \
  11371. conftest$ac_exeext conftest.$ac_ext
  11372. if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1" && test x"$OPUS_X86_PRESUME_SSE4_1" != x"1"; then :
  11373. OPUS_X86_SSE4_1_CFLAGS="$X86_SSE4_1_CFLAGS"
  11374. fi
  11375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics" >&5
  11376. $as_echo_n "checking if compiler supports AVX intrinsics... " >&6; }
  11377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11378. /* end confdefs.h. */
  11379. #include <immintrin.h>
  11380. int
  11381. main ()
  11382. {
  11383. static __m256 mtest;
  11384. mtest = _mm256_setzero_ps();
  11385. ;
  11386. return 0;
  11387. }
  11388. _ACEOF
  11389. if ac_fn_c_try_link "$LINENO"; then :
  11390. OPUS_X86_MAY_HAVE_AVX=1
  11391. OPUS_X86_PRESUME_AVX=1
  11392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11393. $as_echo "yes" >&6; }
  11394. else
  11395. OPUS_X86_PRESUME_AVX=0
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11397. $as_echo "no" >&6; }
  11398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS" >&5
  11399. $as_echo_n "checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS... " >&6; }
  11400. save_CFLAGS="$CFLAGS"; CFLAGS="$X86_AVX_CFLAGS $CFLAGS"
  11401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11402. /* end confdefs.h. */
  11403. #include <immintrin.h>
  11404. int
  11405. main ()
  11406. {
  11407. static __m256 mtest;
  11408. mtest = _mm256_setzero_ps();
  11409. ;
  11410. return 0;
  11411. }
  11412. _ACEOF
  11413. if ac_fn_c_try_link "$LINENO"; then :
  11414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11415. $as_echo "yes" >&6; }
  11416. OPUS_X86_MAY_HAVE_AVX=1
  11417. else
  11418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11419. $as_echo "no" >&6; }
  11420. OPUS_X86_MAY_HAVE_AVX=0
  11421. fi
  11422. rm -f core conftest.err conftest.$ac_objext \
  11423. conftest$ac_exeext conftest.$ac_ext
  11424. CFLAGS="$save_CFLAGS"
  11425. fi
  11426. rm -f core conftest.err conftest.$ac_objext \
  11427. conftest$ac_exeext conftest.$ac_ext
  11428. if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1" && test x"$OPUS_X86_PRESUME_AVX" != x"1"; then :
  11429. OPUS_X86_AVX_CFLAGS="$X86_AVX_CFLAGS"
  11430. fi
  11431. if test x"$rtcd_support" = x"no"; then :
  11432. rtcd_support=""
  11433. fi
  11434. if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then :
  11435. $as_echo "#define OPUS_X86_MAY_HAVE_SSE 1" >>confdefs.h
  11436. intrinsics_support="$intrinsics_support SSE"
  11437. if test x"$OPUS_X86_PRESUME_SSE" = x"1"; then :
  11438. $as_echo "#define OPUS_X86_PRESUME_SSE 1" >>confdefs.h
  11439. else
  11440. rtcd_support="$rtcd_support SSE"
  11441. fi
  11442. else
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE intrinsics" >&5
  11444. $as_echo "$as_me: WARNING: Compiler does not support SSE intrinsics" >&2;}
  11445. fi
  11446. if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then :
  11447. $as_echo "#define OPUS_X86_MAY_HAVE_SSE2 1" >>confdefs.h
  11448. intrinsics_support="$intrinsics_support SSE2"
  11449. if test x"$OPUS_X86_PRESUME_SSE2" = x"1"; then :
  11450. $as_echo "#define OPUS_X86_PRESUME_SSE2 1" >>confdefs.h
  11451. else
  11452. rtcd_support="$rtcd_support SSE2"
  11453. fi
  11454. else
  11455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE2 intrinsics" >&5
  11456. $as_echo "$as_me: WARNING: Compiler does not support SSE2 intrinsics" >&2;}
  11457. fi
  11458. if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then :
  11459. $as_echo "#define OPUS_X86_MAY_HAVE_SSE4_1 1" >>confdefs.h
  11460. intrinsics_support="$intrinsics_support SSE4.1"
  11461. if test x"$OPUS_X86_PRESUME_SSE4_1" = x"1"; then :
  11462. $as_echo "#define OPUS_X86_PRESUME_SSE4_1 1" >>confdefs.h
  11463. else
  11464. rtcd_support="$rtcd_support SSE4.1"
  11465. fi
  11466. else
  11467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE4.1 intrinsics" >&5
  11468. $as_echo "$as_me: WARNING: Compiler does not support SSE4.1 intrinsics" >&2;}
  11469. fi
  11470. if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then :
  11471. $as_echo "#define OPUS_X86_MAY_HAVE_AVX 1" >>confdefs.h
  11472. intrinsics_support="$intrinsics_support AVX"
  11473. if test x"$OPUS_X86_PRESUME_AVX" = x"1"; then :
  11474. $as_echo "#define OPUS_X86_PRESUME_AVX 1" >>confdefs.h
  11475. else
  11476. rtcd_support="$rtcd_support AVX"
  11477. fi
  11478. else
  11479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support AVX intrinsics" >&5
  11480. $as_echo "$as_me: WARNING: Compiler does not support AVX intrinsics" >&2;}
  11481. fi
  11482. if test x"$intrinsics_support" = x""; then :
  11483. intrinsics_support=no
  11484. else
  11485. intrinsics_support="x86$intrinsics_support"
  11486. fi
  11487. if test x"$rtcd_support" = x""; then :
  11488. rtcd_support=no
  11489. elif rtcd_support="x86$rtcd_support"; then :
  11490. fi
  11491. if test x"$enable_rtcd" = x"yes" && test x"$rtcd_support" != x""; then :
  11492. get_cpuid_by_asm="no"
  11493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking How to get X86 CPU Info" >&5
  11494. $as_echo_n "checking How to get X86 CPU Info... " >&6; }
  11495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11496. /* end confdefs.h. */
  11497. #include <stdio.h>
  11498. int
  11499. main ()
  11500. {
  11501. unsigned int CPUInfo0;
  11502. unsigned int CPUInfo1;
  11503. unsigned int CPUInfo2;
  11504. unsigned int CPUInfo3;
  11505. unsigned int InfoType;
  11506. __asm__ __volatile__ (
  11507. "cpuid":
  11508. "=a" (CPUInfo0),
  11509. "=b" (CPUInfo1),
  11510. "=c" (CPUInfo2),
  11511. "=d" (CPUInfo3) :
  11512. "a" (InfoType), "c" (0)
  11513. );
  11514. ;
  11515. return 0;
  11516. }
  11517. _ACEOF
  11518. if ac_fn_c_try_link "$LINENO"; then :
  11519. get_cpuid_by_asm="yes"
  11520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Inline Assembly" >&5
  11521. $as_echo "Inline Assembly" >&6; }
  11522. $as_echo "#define CPU_INFO_BY_ASM 1" >>confdefs.h
  11523. else
  11524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11525. /* end confdefs.h. */
  11526. #include <cpuid.h>
  11527. int
  11528. main ()
  11529. {
  11530. unsigned int CPUInfo0;
  11531. unsigned int CPUInfo1;
  11532. unsigned int CPUInfo2;
  11533. unsigned int CPUInfo3;
  11534. unsigned int InfoType;
  11535. __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3);
  11536. ;
  11537. return 0;
  11538. }
  11539. _ACEOF
  11540. if ac_fn_c_try_link "$LINENO"; then :
  11541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: C method" >&5
  11542. $as_echo "C method" >&6; }
  11543. $as_echo "#define CPU_INFO_BY_C 1" >>confdefs.h
  11544. else
  11545. as_fn_error $? "no supported Get CPU Info method, please disable intrinsics" "$LINENO" 5
  11546. fi
  11547. rm -f core conftest.err conftest.$ac_objext \
  11548. conftest$ac_exeext conftest.$ac_ext
  11549. fi
  11550. rm -f core conftest.err conftest.$ac_objext \
  11551. conftest$ac_exeext conftest.$ac_ext
  11552. fi
  11553. ;; #(
  11554. *) :
  11555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No intrinsics support for your architecture" >&5
  11556. $as_echo "$as_me: WARNING: No intrinsics support for your architecture" >&2;}
  11557. intrinsics_support="no"
  11558. ;;
  11559. esac
  11560. else
  11561. intrinsics_support="no"
  11562. fi
  11563. if test "$cpu_arm" = "yes"; then
  11564. CPU_ARM_TRUE=
  11565. CPU_ARM_FALSE='#'
  11566. else
  11567. CPU_ARM_TRUE='#'
  11568. CPU_ARM_FALSE=
  11569. fi
  11570. if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then
  11571. OPUS_ARM_NEON_INTR_TRUE=
  11572. OPUS_ARM_NEON_INTR_FALSE='#'
  11573. else
  11574. OPUS_ARM_NEON_INTR_TRUE='#'
  11575. OPUS_ARM_NEON_INTR_FALSE=
  11576. fi
  11577. if test x"$HAVE_ARM_NE10" = x"1"; then
  11578. HAVE_ARM_NE10_TRUE=
  11579. HAVE_ARM_NE10_FALSE='#'
  11580. else
  11581. HAVE_ARM_NE10_TRUE='#'
  11582. HAVE_ARM_NE10_FALSE=
  11583. fi
  11584. if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then
  11585. HAVE_SSE_TRUE=
  11586. HAVE_SSE_FALSE='#'
  11587. else
  11588. HAVE_SSE_TRUE='#'
  11589. HAVE_SSE_FALSE=
  11590. fi
  11591. if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then
  11592. HAVE_SSE2_TRUE=
  11593. HAVE_SSE2_FALSE='#'
  11594. else
  11595. HAVE_SSE2_TRUE='#'
  11596. HAVE_SSE2_FALSE=
  11597. fi
  11598. if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then
  11599. HAVE_SSE4_1_TRUE=
  11600. HAVE_SSE4_1_FALSE='#'
  11601. else
  11602. HAVE_SSE4_1_TRUE='#'
  11603. HAVE_SSE4_1_FALSE=
  11604. fi
  11605. if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then
  11606. HAVE_AVX_TRUE=
  11607. HAVE_AVX_FALSE='#'
  11608. else
  11609. HAVE_AVX_TRUE='#'
  11610. HAVE_AVX_FALSE=
  11611. fi
  11612. if test x"$enable_rtcd" = x"yes"; then :
  11613. if test x"$rtcd_support" != x"no"; then :
  11614. $as_echo "#define OPUS_HAVE_RTCD 1" >>confdefs.h
  11615. OPUS_HAVE_RTCD=1
  11616. fi
  11617. else
  11618. rtcd_support="disabled"
  11619. fi
  11620. # Check whether --enable-assertions was given.
  11621. if test "${enable_assertions+set}" = set; then :
  11622. enableval=$enable_assertions;
  11623. else
  11624. enable_assertions=no
  11625. fi
  11626. if test "$enable_assertions" = "yes"; then :
  11627. $as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
  11628. fi
  11629. # Check whether --enable-fuzzing was given.
  11630. if test "${enable_fuzzing+set}" = set; then :
  11631. enableval=$enable_fuzzing;
  11632. else
  11633. enable_fuzzing=no
  11634. fi
  11635. if test "$enable_fuzzing" = "yes"; then :
  11636. $as_echo "#define FUZZING 1" >>confdefs.h
  11637. fi
  11638. # Check whether --enable-doc was given.
  11639. if test "${enable_doc+set}" = set; then :
  11640. enableval=$enable_doc;
  11641. else
  11642. enable_doc=yes
  11643. fi
  11644. if test "$enable_doc" = "yes"; then :
  11645. # Extract the first word of "doxygen", so it can be a program name with args.
  11646. set dummy doxygen; ac_word=$2
  11647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11648. $as_echo_n "checking for $ac_word... " >&6; }
  11649. if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
  11650. $as_echo_n "(cached) " >&6
  11651. else
  11652. if test -n "$HAVE_DOXYGEN"; then
  11653. ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
  11654. else
  11655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11656. for as_dir in $PATH
  11657. do
  11658. IFS=$as_save_IFS
  11659. test -z "$as_dir" && as_dir=.
  11660. for ac_exec_ext in '' $ac_executable_extensions; do
  11661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11662. ac_cv_prog_HAVE_DOXYGEN="yes"
  11663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11664. break 2
  11665. fi
  11666. done
  11667. done
  11668. IFS=$as_save_IFS
  11669. test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
  11670. fi
  11671. fi
  11672. HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
  11673. if test -n "$HAVE_DOXYGEN"; then
  11674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
  11675. $as_echo "$HAVE_DOXYGEN" >&6; }
  11676. else
  11677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11678. $as_echo "no" >&6; }
  11679. fi
  11680. else
  11681. HAVE_DOXYGEN=no
  11682. fi
  11683. if test "$HAVE_DOXYGEN" = "yes"; then
  11684. HAVE_DOXYGEN_TRUE=
  11685. HAVE_DOXYGEN_FALSE='#'
  11686. else
  11687. HAVE_DOXYGEN_TRUE='#'
  11688. HAVE_DOXYGEN_FALSE=
  11689. fi
  11690. # Check whether --enable-extra-programs was given.
  11691. if test "${enable_extra_programs+set}" = set; then :
  11692. enableval=$enable_extra_programs;
  11693. else
  11694. enable_extra_programs=yes
  11695. fi
  11696. if test "$enable_extra_programs" = "yes"; then
  11697. EXTRA_PROGRAMS_TRUE=
  11698. EXTRA_PROGRAMS_FALSE='#'
  11699. else
  11700. EXTRA_PROGRAMS_TRUE='#'
  11701. EXTRA_PROGRAMS_FALSE=
  11702. fi
  11703. saved_CFLAGS="$CFLAGS"
  11704. CFLAGS="$CFLAGS -fvisibility=hidden"
  11705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
  11706. $as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
  11707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11708. /* end confdefs.h. */
  11709. char foo;
  11710. _ACEOF
  11711. if ac_fn_c_try_compile "$LINENO"; then :
  11712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11713. $as_echo "yes" >&6; }
  11714. else
  11715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11716. $as_echo "no" >&6; }
  11717. CFLAGS="$saved_CFLAGS"
  11718. fi
  11719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11720. CFLAGS="$CFLAGS -W"
  11721. warn_CFLAGS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
  11722. saved_CFLAGS="$CFLAGS"
  11723. CFLAGS="$CFLAGS $warn_CFLAGS"
  11724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${warn_CFLAGS}" >&5
  11725. $as_echo_n "checking if ${CC} supports ${warn_CFLAGS}... " >&6; }
  11726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11727. /* end confdefs.h. */
  11728. char foo;
  11729. _ACEOF
  11730. if ac_fn_c_try_compile "$LINENO"; then :
  11731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11732. $as_echo "yes" >&6; }
  11733. else
  11734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11735. $as_echo "no" >&6; }
  11736. CFLAGS="$saved_CFLAGS"
  11737. fi
  11738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11739. saved_LIBS="$LIBS"
  11740. LIBS="$LIBS $LIBM"
  11741. for ac_func in lrintf
  11742. do :
  11743. ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
  11744. if test "x$ac_cv_func_lrintf" = xyes; then :
  11745. cat >>confdefs.h <<_ACEOF
  11746. #define HAVE_LRINTF 1
  11747. _ACEOF
  11748. fi
  11749. done
  11750. for ac_func in lrint
  11751. do :
  11752. ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
  11753. if test "x$ac_cv_func_lrint" = xyes; then :
  11754. cat >>confdefs.h <<_ACEOF
  11755. #define HAVE_LRINT 1
  11756. _ACEOF
  11757. fi
  11758. done
  11759. LIBS="$saved_LIBS"
  11760. for ac_func in __malloc_hook
  11761. do :
  11762. ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
  11763. if test "x$ac_cv_func___malloc_hook" = xyes; then :
  11764. cat >>confdefs.h <<_ACEOF
  11765. #define HAVE___MALLOC_HOOK 1
  11766. _ACEOF
  11767. fi
  11768. done
  11769. ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc celt/arm/armopts.s doc/Makefile doc/Doxyfile"
  11770. ac_config_headers="$ac_config_headers config.h"
  11771. cat >confcache <<\_ACEOF
  11772. # This file is a shell script that caches the results of configure
  11773. # tests run on this system so they can be shared between configure
  11774. # scripts and configure runs, see configure's option --config-cache.
  11775. # It is not useful on other systems. If it contains results you don't
  11776. # want to keep, you may remove or edit it.
  11777. #
  11778. # config.status only pays attention to the cache file if you give it
  11779. # the --recheck option to rerun configure.
  11780. #
  11781. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11782. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11783. # following values.
  11784. _ACEOF
  11785. # The following way of writing the cache mishandles newlines in values,
  11786. # but we know of no workaround that is simple, portable, and efficient.
  11787. # So, we kill variables containing newlines.
  11788. # Ultrix sh set writes to stderr and can't be redirected directly,
  11789. # and sets the high bit in the cache file unless we assign to the vars.
  11790. (
  11791. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11792. eval ac_val=\$$ac_var
  11793. case $ac_val in #(
  11794. *${as_nl}*)
  11795. case $ac_var in #(
  11796. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11797. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11798. esac
  11799. case $ac_var in #(
  11800. _ | IFS | as_nl) ;; #(
  11801. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11802. *) { eval $ac_var=; unset $ac_var;} ;;
  11803. esac ;;
  11804. esac
  11805. done
  11806. (set) 2>&1 |
  11807. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11808. *${as_nl}ac_space=\ *)
  11809. # `set' does not quote correctly, so add quotes: double-quote
  11810. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11811. sed -n \
  11812. "s/'/'\\\\''/g;
  11813. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11814. ;; #(
  11815. *)
  11816. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11817. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11818. ;;
  11819. esac |
  11820. sort
  11821. ) |
  11822. sed '
  11823. /^ac_cv_env_/b end
  11824. t clear
  11825. :clear
  11826. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11827. t end
  11828. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11829. :end' >>confcache
  11830. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11831. if test -w "$cache_file"; then
  11832. if test "x$cache_file" != "x/dev/null"; then
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11834. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11835. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11836. cat confcache >"$cache_file"
  11837. else
  11838. case $cache_file in #(
  11839. */* | ?:*)
  11840. mv -f confcache "$cache_file"$$ &&
  11841. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11842. *)
  11843. mv -f confcache "$cache_file" ;;
  11844. esac
  11845. fi
  11846. fi
  11847. else
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11849. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11850. fi
  11851. fi
  11852. rm -f confcache
  11853. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11854. # Let make expand exec_prefix.
  11855. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11856. DEFS=-DHAVE_CONFIG_H
  11857. ac_libobjs=
  11858. ac_ltlibobjs=
  11859. U=
  11860. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11861. # 1. Remove the extension, and $U if already installed.
  11862. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11863. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11864. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11865. # will be set to the directory where LIBOBJS objects are built.
  11866. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11867. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11868. done
  11869. LIBOBJS=$ac_libobjs
  11870. LTLIBOBJS=$ac_ltlibobjs
  11871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11872. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11873. if test -n "$am_sleep_pid"; then
  11874. # Hide warnings about reused PIDs.
  11875. wait $am_sleep_pid 2>/dev/null
  11876. fi
  11877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11878. $as_echo "done" >&6; }
  11879. if test -n "$EXEEXT"; then
  11880. am__EXEEXT_TRUE=
  11881. am__EXEEXT_FALSE='#'
  11882. else
  11883. am__EXEEXT_TRUE='#'
  11884. am__EXEEXT_FALSE=
  11885. fi
  11886. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11887. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  11888. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11889. fi
  11890. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11891. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11892. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11893. fi
  11894. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11895. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11896. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11897. fi
  11898. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  11899. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  11900. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11901. fi
  11902. if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
  11903. as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
  11904. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11905. fi
  11906. if test -z "${DISABLE_FLOAT_API_TRUE}" && test -z "${DISABLE_FLOAT_API_FALSE}"; then
  11907. as_fn_error $? "conditional \"DISABLE_FLOAT_API\" was never defined.
  11908. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11909. fi
  11910. if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
  11911. as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
  11912. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11913. fi
  11914. if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
  11915. as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
  11916. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11917. fi
  11918. if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
  11919. as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
  11920. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11921. fi
  11922. if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
  11923. as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
  11924. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11925. fi
  11926. if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
  11927. as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
  11928. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11929. fi
  11930. if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
  11931. as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
  11932. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11933. fi
  11934. if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
  11935. as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
  11936. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11937. fi
  11938. if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
  11939. as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
  11940. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11941. fi
  11942. if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
  11943. as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
  11944. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11945. fi
  11946. if test -z "${CPU_ARM_TRUE}" && test -z "${CPU_ARM_FALSE}"; then
  11947. as_fn_error $? "conditional \"CPU_ARM\" was never defined.
  11948. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11949. fi
  11950. if test -z "${OPUS_ARM_NEON_INTR_TRUE}" && test -z "${OPUS_ARM_NEON_INTR_FALSE}"; then
  11951. as_fn_error $? "conditional \"OPUS_ARM_NEON_INTR\" was never defined.
  11952. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11953. fi
  11954. if test -z "${HAVE_ARM_NE10_TRUE}" && test -z "${HAVE_ARM_NE10_FALSE}"; then
  11955. as_fn_error $? "conditional \"HAVE_ARM_NE10\" was never defined.
  11956. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11957. fi
  11958. if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
  11959. as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
  11960. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11961. fi
  11962. if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
  11963. as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
  11964. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11965. fi
  11966. if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
  11967. as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
  11968. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11969. fi
  11970. if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
  11971. as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
  11972. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11973. fi
  11974. if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
  11975. as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
  11976. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11977. fi
  11978. if test -z "${EXTRA_PROGRAMS_TRUE}" && test -z "${EXTRA_PROGRAMS_FALSE}"; then
  11979. as_fn_error $? "conditional \"EXTRA_PROGRAMS\" was never defined.
  11980. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11981. fi
  11982. : "${CONFIG_STATUS=./config.status}"
  11983. ac_write_fail=0
  11984. ac_clean_files_save=$ac_clean_files
  11985. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11986. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11987. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11988. as_write_fail=0
  11989. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11990. #! $SHELL
  11991. # Generated by $as_me.
  11992. # Run this file to recreate the current configuration.
  11993. # Compiler output produced by configure, useful for debugging
  11994. # configure, is in config.log if it exists.
  11995. debug=false
  11996. ac_cs_recheck=false
  11997. ac_cs_silent=false
  11998. SHELL=\${CONFIG_SHELL-$SHELL}
  11999. export SHELL
  12000. _ASEOF
  12001. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12002. ## -------------------- ##
  12003. ## M4sh Initialization. ##
  12004. ## -------------------- ##
  12005. # Be more Bourne compatible
  12006. DUALCASE=1; export DUALCASE # for MKS sh
  12007. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12008. emulate sh
  12009. NULLCMD=:
  12010. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12011. # is contrary to our usage. Disable this feature.
  12012. alias -g '${1+"$@"}'='"$@"'
  12013. setopt NO_GLOB_SUBST
  12014. else
  12015. case `(set -o) 2>/dev/null` in #(
  12016. *posix*) :
  12017. set -o posix ;; #(
  12018. *) :
  12019. ;;
  12020. esac
  12021. fi
  12022. as_nl='
  12023. '
  12024. export as_nl
  12025. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12026. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12027. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12028. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12029. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12030. # but without wasting forks for bash or zsh.
  12031. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12032. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12033. as_echo='print -r --'
  12034. as_echo_n='print -rn --'
  12035. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12036. as_echo='printf %s\n'
  12037. as_echo_n='printf %s'
  12038. else
  12039. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12040. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12041. as_echo_n='/usr/ucb/echo -n'
  12042. else
  12043. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12044. as_echo_n_body='eval
  12045. arg=$1;
  12046. case $arg in #(
  12047. *"$as_nl"*)
  12048. expr "X$arg" : "X\\(.*\\)$as_nl";
  12049. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12050. esac;
  12051. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12052. '
  12053. export as_echo_n_body
  12054. as_echo_n='sh -c $as_echo_n_body as_echo'
  12055. fi
  12056. export as_echo_body
  12057. as_echo='sh -c $as_echo_body as_echo'
  12058. fi
  12059. # The user is always right.
  12060. if test "${PATH_SEPARATOR+set}" != set; then
  12061. PATH_SEPARATOR=:
  12062. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12063. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12064. PATH_SEPARATOR=';'
  12065. }
  12066. fi
  12067. # IFS
  12068. # We need space, tab and new line, in precisely that order. Quoting is
  12069. # there to prevent editors from complaining about space-tab.
  12070. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12071. # splitting by setting IFS to empty value.)
  12072. IFS=" "" $as_nl"
  12073. # Find who we are. Look in the path if we contain no directory separator.
  12074. as_myself=
  12075. case $0 in #((
  12076. *[\\/]* ) as_myself=$0 ;;
  12077. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12078. for as_dir in $PATH
  12079. do
  12080. IFS=$as_save_IFS
  12081. test -z "$as_dir" && as_dir=.
  12082. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12083. done
  12084. IFS=$as_save_IFS
  12085. ;;
  12086. esac
  12087. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12088. # in which case we are not to be found in the path.
  12089. if test "x$as_myself" = x; then
  12090. as_myself=$0
  12091. fi
  12092. if test ! -f "$as_myself"; then
  12093. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12094. exit 1
  12095. fi
  12096. # Unset variables that we do not need and which cause bugs (e.g. in
  12097. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12098. # suppresses any "Segmentation fault" message there. '((' could
  12099. # trigger a bug in pdksh 5.2.14.
  12100. for as_var in BASH_ENV ENV MAIL MAILPATH
  12101. do eval test x\${$as_var+set} = xset \
  12102. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12103. done
  12104. PS1='$ '
  12105. PS2='> '
  12106. PS4='+ '
  12107. # NLS nuisances.
  12108. LC_ALL=C
  12109. export LC_ALL
  12110. LANGUAGE=C
  12111. export LANGUAGE
  12112. # CDPATH.
  12113. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12114. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12115. # ----------------------------------------
  12116. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12117. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12118. # script with STATUS, using 1 if that was 0.
  12119. as_fn_error ()
  12120. {
  12121. as_status=$1; test $as_status -eq 0 && as_status=1
  12122. if test "$4"; then
  12123. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12124. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12125. fi
  12126. $as_echo "$as_me: error: $2" >&2
  12127. as_fn_exit $as_status
  12128. } # as_fn_error
  12129. # as_fn_set_status STATUS
  12130. # -----------------------
  12131. # Set $? to STATUS, without forking.
  12132. as_fn_set_status ()
  12133. {
  12134. return $1
  12135. } # as_fn_set_status
  12136. # as_fn_exit STATUS
  12137. # -----------------
  12138. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12139. as_fn_exit ()
  12140. {
  12141. set +e
  12142. as_fn_set_status $1
  12143. exit $1
  12144. } # as_fn_exit
  12145. # as_fn_unset VAR
  12146. # ---------------
  12147. # Portably unset VAR.
  12148. as_fn_unset ()
  12149. {
  12150. { eval $1=; unset $1;}
  12151. }
  12152. as_unset=as_fn_unset
  12153. # as_fn_append VAR VALUE
  12154. # ----------------------
  12155. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12156. # advantage of any shell optimizations that allow amortized linear growth over
  12157. # repeated appends, instead of the typical quadratic growth present in naive
  12158. # implementations.
  12159. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12160. eval 'as_fn_append ()
  12161. {
  12162. eval $1+=\$2
  12163. }'
  12164. else
  12165. as_fn_append ()
  12166. {
  12167. eval $1=\$$1\$2
  12168. }
  12169. fi # as_fn_append
  12170. # as_fn_arith ARG...
  12171. # ------------------
  12172. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12173. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12174. # must be portable across $(()) and expr.
  12175. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12176. eval 'as_fn_arith ()
  12177. {
  12178. as_val=$(( $* ))
  12179. }'
  12180. else
  12181. as_fn_arith ()
  12182. {
  12183. as_val=`expr "$@" || test $? -eq 1`
  12184. }
  12185. fi # as_fn_arith
  12186. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12187. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12188. as_expr=expr
  12189. else
  12190. as_expr=false
  12191. fi
  12192. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12193. as_basename=basename
  12194. else
  12195. as_basename=false
  12196. fi
  12197. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12198. as_dirname=dirname
  12199. else
  12200. as_dirname=false
  12201. fi
  12202. as_me=`$as_basename -- "$0" ||
  12203. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12204. X"$0" : 'X\(//\)$' \| \
  12205. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12206. $as_echo X/"$0" |
  12207. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12208. s//\1/
  12209. q
  12210. }
  12211. /^X\/\(\/\/\)$/{
  12212. s//\1/
  12213. q
  12214. }
  12215. /^X\/\(\/\).*/{
  12216. s//\1/
  12217. q
  12218. }
  12219. s/.*/./; q'`
  12220. # Avoid depending upon Character Ranges.
  12221. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12222. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12223. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12224. as_cr_digits='0123456789'
  12225. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12226. ECHO_C= ECHO_N= ECHO_T=
  12227. case `echo -n x` in #(((((
  12228. -n*)
  12229. case `echo 'xy\c'` in
  12230. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12231. xy) ECHO_C='\c';;
  12232. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12233. ECHO_T=' ';;
  12234. esac;;
  12235. *)
  12236. ECHO_N='-n';;
  12237. esac
  12238. rm -f conf$$ conf$$.exe conf$$.file
  12239. if test -d conf$$.dir; then
  12240. rm -f conf$$.dir/conf$$.file
  12241. else
  12242. rm -f conf$$.dir
  12243. mkdir conf$$.dir 2>/dev/null
  12244. fi
  12245. if (echo >conf$$.file) 2>/dev/null; then
  12246. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12247. as_ln_s='ln -s'
  12248. # ... but there are two gotchas:
  12249. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12250. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12251. # In both cases, we have to default to `cp -pR'.
  12252. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12253. as_ln_s='cp -pR'
  12254. elif ln conf$$.file conf$$ 2>/dev/null; then
  12255. as_ln_s=ln
  12256. else
  12257. as_ln_s='cp -pR'
  12258. fi
  12259. else
  12260. as_ln_s='cp -pR'
  12261. fi
  12262. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12263. rmdir conf$$.dir 2>/dev/null
  12264. # as_fn_mkdir_p
  12265. # -------------
  12266. # Create "$as_dir" as a directory, including parents if necessary.
  12267. as_fn_mkdir_p ()
  12268. {
  12269. case $as_dir in #(
  12270. -*) as_dir=./$as_dir;;
  12271. esac
  12272. test -d "$as_dir" || eval $as_mkdir_p || {
  12273. as_dirs=
  12274. while :; do
  12275. case $as_dir in #(
  12276. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12277. *) as_qdir=$as_dir;;
  12278. esac
  12279. as_dirs="'$as_qdir' $as_dirs"
  12280. as_dir=`$as_dirname -- "$as_dir" ||
  12281. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12282. X"$as_dir" : 'X\(//\)[^/]' \| \
  12283. X"$as_dir" : 'X\(//\)$' \| \
  12284. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12285. $as_echo X"$as_dir" |
  12286. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12287. s//\1/
  12288. q
  12289. }
  12290. /^X\(\/\/\)[^/].*/{
  12291. s//\1/
  12292. q
  12293. }
  12294. /^X\(\/\/\)$/{
  12295. s//\1/
  12296. q
  12297. }
  12298. /^X\(\/\).*/{
  12299. s//\1/
  12300. q
  12301. }
  12302. s/.*/./; q'`
  12303. test -d "$as_dir" && break
  12304. done
  12305. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12306. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12307. } # as_fn_mkdir_p
  12308. if mkdir -p . 2>/dev/null; then
  12309. as_mkdir_p='mkdir -p "$as_dir"'
  12310. else
  12311. test -d ./-p && rmdir ./-p
  12312. as_mkdir_p=false
  12313. fi
  12314. # as_fn_executable_p FILE
  12315. # -----------------------
  12316. # Test if FILE is an executable regular file.
  12317. as_fn_executable_p ()
  12318. {
  12319. test -f "$1" && test -x "$1"
  12320. } # as_fn_executable_p
  12321. as_test_x='test -x'
  12322. as_executable_p=as_fn_executable_p
  12323. # Sed expression to map a string onto a valid CPP name.
  12324. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12325. # Sed expression to map a string onto a valid variable name.
  12326. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12327. exec 6>&1
  12328. ## ----------------------------------- ##
  12329. ## Main body of $CONFIG_STATUS script. ##
  12330. ## ----------------------------------- ##
  12331. _ASEOF
  12332. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12333. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12334. # Save the log message, to keep $0 and so on meaningful, and to
  12335. # report actual input values of CONFIG_FILES etc. instead of their
  12336. # values after options handling.
  12337. ac_log="
  12338. This file was extended by opus $as_me 1.1.2, which was
  12339. generated by GNU Autoconf 2.69. Invocation command line was
  12340. CONFIG_FILES = $CONFIG_FILES
  12341. CONFIG_HEADERS = $CONFIG_HEADERS
  12342. CONFIG_LINKS = $CONFIG_LINKS
  12343. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12344. $ $0 $@
  12345. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12346. "
  12347. _ACEOF
  12348. case $ac_config_files in *"
  12349. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12350. esac
  12351. case $ac_config_headers in *"
  12352. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12353. esac
  12354. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12355. # Files that config.status was made for.
  12356. config_files="$ac_config_files"
  12357. config_headers="$ac_config_headers"
  12358. config_commands="$ac_config_commands"
  12359. _ACEOF
  12360. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12361. ac_cs_usage="\
  12362. \`$as_me' instantiates files and other configuration actions
  12363. from templates according to the current configuration. Unless the files
  12364. and actions are specified as TAGs, all are instantiated by default.
  12365. Usage: $0 [OPTION]... [TAG]...
  12366. -h, --help print this help, then exit
  12367. -V, --version print version number and configuration settings, then exit
  12368. --config print configuration, then exit
  12369. -q, --quiet, --silent
  12370. do not print progress messages
  12371. -d, --debug don't remove temporary files
  12372. --recheck update $as_me by reconfiguring in the same conditions
  12373. --file=FILE[:TEMPLATE]
  12374. instantiate the configuration file FILE
  12375. --header=FILE[:TEMPLATE]
  12376. instantiate the configuration header FILE
  12377. Configuration files:
  12378. $config_files
  12379. Configuration headers:
  12380. $config_headers
  12381. Configuration commands:
  12382. $config_commands
  12383. Report bugs to <opus@xiph.org>."
  12384. _ACEOF
  12385. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12386. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12387. ac_cs_version="\\
  12388. opus config.status 1.1.2
  12389. configured by $0, generated by GNU Autoconf 2.69,
  12390. with options \\"\$ac_cs_config\\"
  12391. Copyright (C) 2012 Free Software Foundation, Inc.
  12392. This config.status script is free software; the Free Software Foundation
  12393. gives unlimited permission to copy, distribute and modify it."
  12394. ac_pwd='$ac_pwd'
  12395. srcdir='$srcdir'
  12396. INSTALL='$INSTALL'
  12397. MKDIR_P='$MKDIR_P'
  12398. AWK='$AWK'
  12399. test -n "\$AWK" || AWK=awk
  12400. _ACEOF
  12401. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12402. # The default lists apply if the user does not specify any file.
  12403. ac_need_defaults=:
  12404. while test $# != 0
  12405. do
  12406. case $1 in
  12407. --*=?*)
  12408. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12409. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12410. ac_shift=:
  12411. ;;
  12412. --*=)
  12413. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12414. ac_optarg=
  12415. ac_shift=:
  12416. ;;
  12417. *)
  12418. ac_option=$1
  12419. ac_optarg=$2
  12420. ac_shift=shift
  12421. ;;
  12422. esac
  12423. case $ac_option in
  12424. # Handling of the options.
  12425. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12426. ac_cs_recheck=: ;;
  12427. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12428. $as_echo "$ac_cs_version"; exit ;;
  12429. --config | --confi | --conf | --con | --co | --c )
  12430. $as_echo "$ac_cs_config"; exit ;;
  12431. --debug | --debu | --deb | --de | --d | -d )
  12432. debug=: ;;
  12433. --file | --fil | --fi | --f )
  12434. $ac_shift
  12435. case $ac_optarg in
  12436. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12437. '') as_fn_error $? "missing file argument" ;;
  12438. esac
  12439. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12440. ac_need_defaults=false;;
  12441. --header | --heade | --head | --hea )
  12442. $ac_shift
  12443. case $ac_optarg in
  12444. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12445. esac
  12446. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12447. ac_need_defaults=false;;
  12448. --he | --h)
  12449. # Conflict between --help and --header
  12450. as_fn_error $? "ambiguous option: \`$1'
  12451. Try \`$0 --help' for more information.";;
  12452. --help | --hel | -h )
  12453. $as_echo "$ac_cs_usage"; exit ;;
  12454. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12455. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12456. ac_cs_silent=: ;;
  12457. # This is an error.
  12458. -*) as_fn_error $? "unrecognized option: \`$1'
  12459. Try \`$0 --help' for more information." ;;
  12460. *) as_fn_append ac_config_targets " $1"
  12461. ac_need_defaults=false ;;
  12462. esac
  12463. shift
  12464. done
  12465. ac_configure_extra_args=
  12466. if $ac_cs_silent; then
  12467. exec 6>/dev/null
  12468. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12469. fi
  12470. _ACEOF
  12471. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12472. if \$ac_cs_recheck; then
  12473. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12474. shift
  12475. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12476. CONFIG_SHELL='$SHELL'
  12477. export CONFIG_SHELL
  12478. exec "\$@"
  12479. fi
  12480. _ACEOF
  12481. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12482. exec 5>>config.log
  12483. {
  12484. echo
  12485. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12486. ## Running $as_me. ##
  12487. _ASBOX
  12488. $as_echo "$ac_log"
  12489. } >&5
  12490. _ACEOF
  12491. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12492. #
  12493. # INIT-COMMANDS
  12494. #
  12495. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12496. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12497. # if CDPATH is set.
  12498. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12499. sed_quote_subst='$sed_quote_subst'
  12500. double_quote_subst='$double_quote_subst'
  12501. delay_variable_subst='$delay_variable_subst'
  12502. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12503. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12504. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12505. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12506. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12507. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12508. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12509. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12510. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  12511. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12512. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12513. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12514. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12515. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12516. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12517. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12518. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12519. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12520. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12521. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12522. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12523. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12524. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12525. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12526. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12527. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12528. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12529. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12530. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12531. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  12532. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  12533. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12534. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12535. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12536. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12537. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12538. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  12539. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  12540. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  12541. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  12542. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12543. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12544. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  12545. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12546. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12547. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12548. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12549. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12550. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12551. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12552. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12553. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12554. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12555. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12556. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12557. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12558. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12559. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12560. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12561. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12562. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12563. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12564. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12565. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12566. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12567. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12568. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12569. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12570. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12571. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12572. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12573. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12574. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12575. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12576. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12577. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12578. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12579. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12580. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12581. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12582. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12583. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12584. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12585. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12586. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12587. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12588. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12589. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12590. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12591. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12592. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12593. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12594. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12595. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12596. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12597. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12598. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12599. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12600. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12601. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12602. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12603. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12604. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12605. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12606. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  12607. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12608. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12609. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12610. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12611. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12612. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12613. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12614. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12615. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12616. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12617. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12618. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12619. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12620. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12621. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12622. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12623. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12624. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12625. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  12626. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12627. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12628. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12629. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12630. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12631. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12632. LTCC='$LTCC'
  12633. LTCFLAGS='$LTCFLAGS'
  12634. compiler='$compiler_DEFAULT'
  12635. # A function that is used when there is no print builtin or printf.
  12636. func_fallback_echo ()
  12637. {
  12638. eval 'cat <<_LTECHO_EOF
  12639. \$1
  12640. _LTECHO_EOF'
  12641. }
  12642. # Quote evaled strings.
  12643. for var in SHELL \
  12644. ECHO \
  12645. PATH_SEPARATOR \
  12646. SED \
  12647. GREP \
  12648. EGREP \
  12649. FGREP \
  12650. LD \
  12651. NM \
  12652. LN_S \
  12653. lt_SP2NL \
  12654. lt_NL2SP \
  12655. reload_flag \
  12656. OBJDUMP \
  12657. deplibs_check_method \
  12658. file_magic_cmd \
  12659. file_magic_glob \
  12660. want_nocaseglob \
  12661. DLLTOOL \
  12662. sharedlib_from_linklib_cmd \
  12663. AR \
  12664. AR_FLAGS \
  12665. archiver_list_spec \
  12666. STRIP \
  12667. RANLIB \
  12668. CC \
  12669. CFLAGS \
  12670. compiler \
  12671. lt_cv_sys_global_symbol_pipe \
  12672. lt_cv_sys_global_symbol_to_cdecl \
  12673. lt_cv_sys_global_symbol_to_c_name_address \
  12674. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12675. nm_file_list_spec \
  12676. lt_prog_compiler_no_builtin_flag \
  12677. lt_prog_compiler_pic \
  12678. lt_prog_compiler_wl \
  12679. lt_prog_compiler_static \
  12680. lt_cv_prog_compiler_c_o \
  12681. need_locks \
  12682. MANIFEST_TOOL \
  12683. DSYMUTIL \
  12684. NMEDIT \
  12685. LIPO \
  12686. OTOOL \
  12687. OTOOL64 \
  12688. shrext_cmds \
  12689. export_dynamic_flag_spec \
  12690. whole_archive_flag_spec \
  12691. compiler_needs_object \
  12692. with_gnu_ld \
  12693. allow_undefined_flag \
  12694. no_undefined_flag \
  12695. hardcode_libdir_flag_spec \
  12696. hardcode_libdir_separator \
  12697. exclude_expsyms \
  12698. include_expsyms \
  12699. file_list_spec \
  12700. variables_saved_for_relink \
  12701. libname_spec \
  12702. library_names_spec \
  12703. soname_spec \
  12704. install_override_mode \
  12705. finish_eval \
  12706. old_striplib \
  12707. striplib; do
  12708. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12709. *[\\\\\\\`\\"\\\$]*)
  12710. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12711. ;;
  12712. *)
  12713. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12714. ;;
  12715. esac
  12716. done
  12717. # Double-quote double-evaled strings.
  12718. for var in reload_cmds \
  12719. old_postinstall_cmds \
  12720. old_postuninstall_cmds \
  12721. old_archive_cmds \
  12722. extract_expsyms_cmds \
  12723. old_archive_from_new_cmds \
  12724. old_archive_from_expsyms_cmds \
  12725. archive_cmds \
  12726. archive_expsym_cmds \
  12727. module_cmds \
  12728. module_expsym_cmds \
  12729. export_symbols_cmds \
  12730. prelink_cmds \
  12731. postlink_cmds \
  12732. postinstall_cmds \
  12733. postuninstall_cmds \
  12734. finish_cmds \
  12735. sys_lib_search_path_spec \
  12736. sys_lib_dlsearch_path_spec; do
  12737. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12738. *[\\\\\\\`\\"\\\$]*)
  12739. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12740. ;;
  12741. *)
  12742. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12743. ;;
  12744. esac
  12745. done
  12746. ac_aux_dir='$ac_aux_dir'
  12747. xsi_shell='$xsi_shell'
  12748. lt_shell_append='$lt_shell_append'
  12749. # See if we are running on zsh, and set the options which allow our
  12750. # commands through without removal of \ escapes INIT.
  12751. if test -n "\${ZSH_VERSION+set}" ; then
  12752. setopt NO_GLOB_SUBST
  12753. fi
  12754. PACKAGE='$PACKAGE'
  12755. VERSION='$VERSION'
  12756. TIMESTAMP='$TIMESTAMP'
  12757. RM='$RM'
  12758. ofile='$ofile'
  12759. _ACEOF
  12760. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12761. # Handling of arguments.
  12762. for ac_config_target in $ac_config_targets
  12763. do
  12764. case $ac_config_target in
  12765. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12766. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12767. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12768. "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
  12769. "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
  12770. "celt/arm/armopts.s") CONFIG_FILES="$CONFIG_FILES celt/arm/armopts.s" ;;
  12771. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12772. "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
  12773. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12774. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12775. esac
  12776. done
  12777. # If the user did not use the arguments to specify the items to instantiate,
  12778. # then the envvar interface is used. Set only those that are not.
  12779. # We use the long form for the default assignment because of an extremely
  12780. # bizarre bug on SunOS 4.1.3.
  12781. if $ac_need_defaults; then
  12782. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12783. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12784. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12785. fi
  12786. # Have a temporary directory for convenience. Make it in the build tree
  12787. # simply because there is no reason against having it here, and in addition,
  12788. # creating and moving files from /tmp can sometimes cause problems.
  12789. # Hook for its removal unless debugging.
  12790. # Note that there is a small window in which the directory will not be cleaned:
  12791. # after its creation but before its name has been assigned to `$tmp'.
  12792. $debug ||
  12793. {
  12794. tmp= ac_tmp=
  12795. trap 'exit_status=$?
  12796. : "${ac_tmp:=$tmp}"
  12797. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12798. ' 0
  12799. trap 'as_fn_exit 1' 1 2 13 15
  12800. }
  12801. # Create a (secure) tmp directory for tmp files.
  12802. {
  12803. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12804. test -d "$tmp"
  12805. } ||
  12806. {
  12807. tmp=./conf$$-$RANDOM
  12808. (umask 077 && mkdir "$tmp")
  12809. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12810. ac_tmp=$tmp
  12811. # Set up the scripts for CONFIG_FILES section.
  12812. # No need to generate them if there are no CONFIG_FILES.
  12813. # This happens for instance with `./config.status config.h'.
  12814. if test -n "$CONFIG_FILES"; then
  12815. ac_cr=`echo X | tr X '\015'`
  12816. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12817. # But we know of no other shell where ac_cr would be empty at this
  12818. # point, so we can use a bashism as a fallback.
  12819. if test "x$ac_cr" = x; then
  12820. eval ac_cr=\$\'\\r\'
  12821. fi
  12822. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12823. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12824. ac_cs_awk_cr='\\r'
  12825. else
  12826. ac_cs_awk_cr=$ac_cr
  12827. fi
  12828. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12829. _ACEOF
  12830. {
  12831. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12832. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12833. echo "_ACEOF"
  12834. } >conf$$subs.sh ||
  12835. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12836. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12837. ac_delim='%!_!# '
  12838. for ac_last_try in false false false false false :; do
  12839. . ./conf$$subs.sh ||
  12840. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12841. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12842. if test $ac_delim_n = $ac_delim_num; then
  12843. break
  12844. elif $ac_last_try; then
  12845. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12846. else
  12847. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12848. fi
  12849. done
  12850. rm -f conf$$subs.sh
  12851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12852. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12853. _ACEOF
  12854. sed -n '
  12855. h
  12856. s/^/S["/; s/!.*/"]=/
  12857. p
  12858. g
  12859. s/^[^!]*!//
  12860. :repl
  12861. t repl
  12862. s/'"$ac_delim"'$//
  12863. t delim
  12864. :nl
  12865. h
  12866. s/\(.\{148\}\)..*/\1/
  12867. t more1
  12868. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12869. p
  12870. n
  12871. b repl
  12872. :more1
  12873. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12874. p
  12875. g
  12876. s/.\{148\}//
  12877. t nl
  12878. :delim
  12879. h
  12880. s/\(.\{148\}\)..*/\1/
  12881. t more2
  12882. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12883. p
  12884. b
  12885. :more2
  12886. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12887. p
  12888. g
  12889. s/.\{148\}//
  12890. t delim
  12891. ' <conf$$subs.awk | sed '
  12892. /^[^""]/{
  12893. N
  12894. s/\n//
  12895. }
  12896. ' >>$CONFIG_STATUS || ac_write_fail=1
  12897. rm -f conf$$subs.awk
  12898. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12899. _ACAWK
  12900. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12901. for (key in S) S_is_set[key] = 1
  12902. FS = ""
  12903. }
  12904. {
  12905. line = $ 0
  12906. nfields = split(line, field, "@")
  12907. substed = 0
  12908. len = length(field[1])
  12909. for (i = 2; i < nfields; i++) {
  12910. key = field[i]
  12911. keylen = length(key)
  12912. if (S_is_set[key]) {
  12913. value = S[key]
  12914. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12915. len += length(value) + length(field[++i])
  12916. substed = 1
  12917. } else
  12918. len += 1 + keylen
  12919. }
  12920. print line
  12921. }
  12922. _ACAWK
  12923. _ACEOF
  12924. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12925. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12926. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12927. else
  12928. cat
  12929. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12930. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12931. _ACEOF
  12932. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12933. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12934. # trailing colons and then remove the whole line if VPATH becomes empty
  12935. # (actually we leave an empty line to preserve line numbers).
  12936. if test "x$srcdir" = x.; then
  12937. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12938. h
  12939. s///
  12940. s/^/:/
  12941. s/[ ]*$/:/
  12942. s/:\$(srcdir):/:/g
  12943. s/:\${srcdir}:/:/g
  12944. s/:@srcdir@:/:/g
  12945. s/^:*//
  12946. s/:*$//
  12947. x
  12948. s/\(=[ ]*\).*/\1/
  12949. G
  12950. s/\n//
  12951. s/^[^=]*=[ ]*$//
  12952. }'
  12953. fi
  12954. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12955. fi # test -n "$CONFIG_FILES"
  12956. # Set up the scripts for CONFIG_HEADERS section.
  12957. # No need to generate them if there are no CONFIG_HEADERS.
  12958. # This happens for instance with `./config.status Makefile'.
  12959. if test -n "$CONFIG_HEADERS"; then
  12960. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12961. BEGIN {
  12962. _ACEOF
  12963. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12964. # here-document in config.status, that substitutes the proper values into
  12965. # config.h.in to produce config.h.
  12966. # Create a delimiter string that does not exist in confdefs.h, to ease
  12967. # handling of long lines.
  12968. ac_delim='%!_!# '
  12969. for ac_last_try in false false :; do
  12970. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12971. if test -z "$ac_tt"; then
  12972. break
  12973. elif $ac_last_try; then
  12974. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12975. else
  12976. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12977. fi
  12978. done
  12979. # For the awk script, D is an array of macro values keyed by name,
  12980. # likewise P contains macro parameters if any. Preserve backslash
  12981. # newline sequences.
  12982. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12983. sed -n '
  12984. s/.\{148\}/&'"$ac_delim"'/g
  12985. t rset
  12986. :rset
  12987. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12988. t def
  12989. d
  12990. :def
  12991. s/\\$//
  12992. t bsnl
  12993. s/["\\]/\\&/g
  12994. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12995. D["\1"]=" \3"/p
  12996. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12997. d
  12998. :bsnl
  12999. s/["\\]/\\&/g
  13000. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13001. D["\1"]=" \3\\\\\\n"\\/p
  13002. t cont
  13003. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13004. t cont
  13005. d
  13006. :cont
  13007. n
  13008. s/.\{148\}/&'"$ac_delim"'/g
  13009. t clear
  13010. :clear
  13011. s/\\$//
  13012. t bsnlc
  13013. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13014. d
  13015. :bsnlc
  13016. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13017. b cont
  13018. ' <confdefs.h | sed '
  13019. s/'"$ac_delim"'/"\\\
  13020. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13021. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13022. for (key in D) D_is_set[key] = 1
  13023. FS = ""
  13024. }
  13025. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13026. line = \$ 0
  13027. split(line, arg, " ")
  13028. if (arg[1] == "#") {
  13029. defundef = arg[2]
  13030. mac1 = arg[3]
  13031. } else {
  13032. defundef = substr(arg[1], 2)
  13033. mac1 = arg[2]
  13034. }
  13035. split(mac1, mac2, "(") #)
  13036. macro = mac2[1]
  13037. prefix = substr(line, 1, index(line, defundef) - 1)
  13038. if (D_is_set[macro]) {
  13039. # Preserve the white space surrounding the "#".
  13040. print prefix "define", macro P[macro] D[macro]
  13041. next
  13042. } else {
  13043. # Replace #undef with comments. This is necessary, for example,
  13044. # in the case of _POSIX_SOURCE, which is predefined and required
  13045. # on some systems where configure will not decide to define it.
  13046. if (defundef == "undef") {
  13047. print "/*", prefix defundef, macro, "*/"
  13048. next
  13049. }
  13050. }
  13051. }
  13052. { print }
  13053. _ACAWK
  13054. _ACEOF
  13055. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13056. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13057. fi # test -n "$CONFIG_HEADERS"
  13058. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13059. shift
  13060. for ac_tag
  13061. do
  13062. case $ac_tag in
  13063. :[FHLC]) ac_mode=$ac_tag; continue;;
  13064. esac
  13065. case $ac_mode$ac_tag in
  13066. :[FHL]*:*);;
  13067. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13068. :[FH]-) ac_tag=-:-;;
  13069. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13070. esac
  13071. ac_save_IFS=$IFS
  13072. IFS=:
  13073. set x $ac_tag
  13074. IFS=$ac_save_IFS
  13075. shift
  13076. ac_file=$1
  13077. shift
  13078. case $ac_mode in
  13079. :L) ac_source=$1;;
  13080. :[FH])
  13081. ac_file_inputs=
  13082. for ac_f
  13083. do
  13084. case $ac_f in
  13085. -) ac_f="$ac_tmp/stdin";;
  13086. *) # Look for the file first in the build tree, then in the source tree
  13087. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13088. # because $ac_f cannot contain `:'.
  13089. test -f "$ac_f" ||
  13090. case $ac_f in
  13091. [\\/$]*) false;;
  13092. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13093. esac ||
  13094. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13095. esac
  13096. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13097. as_fn_append ac_file_inputs " '$ac_f'"
  13098. done
  13099. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13100. # use $as_me), people would be surprised to read:
  13101. # /* config.h. Generated by config.status. */
  13102. configure_input='Generated from '`
  13103. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13104. `' by configure.'
  13105. if test x"$ac_file" != x-; then
  13106. configure_input="$ac_file. $configure_input"
  13107. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13108. $as_echo "$as_me: creating $ac_file" >&6;}
  13109. fi
  13110. # Neutralize special characters interpreted by sed in replacement strings.
  13111. case $configure_input in #(
  13112. *\&* | *\|* | *\\* )
  13113. ac_sed_conf_input=`$as_echo "$configure_input" |
  13114. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13115. *) ac_sed_conf_input=$configure_input;;
  13116. esac
  13117. case $ac_tag in
  13118. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13119. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13120. esac
  13121. ;;
  13122. esac
  13123. ac_dir=`$as_dirname -- "$ac_file" ||
  13124. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13125. X"$ac_file" : 'X\(//\)[^/]' \| \
  13126. X"$ac_file" : 'X\(//\)$' \| \
  13127. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13128. $as_echo X"$ac_file" |
  13129. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13130. s//\1/
  13131. q
  13132. }
  13133. /^X\(\/\/\)[^/].*/{
  13134. s//\1/
  13135. q
  13136. }
  13137. /^X\(\/\/\)$/{
  13138. s//\1/
  13139. q
  13140. }
  13141. /^X\(\/\).*/{
  13142. s//\1/
  13143. q
  13144. }
  13145. s/.*/./; q'`
  13146. as_dir="$ac_dir"; as_fn_mkdir_p
  13147. ac_builddir=.
  13148. case "$ac_dir" in
  13149. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13150. *)
  13151. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13152. # A ".." for each directory in $ac_dir_suffix.
  13153. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13154. case $ac_top_builddir_sub in
  13155. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13156. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13157. esac ;;
  13158. esac
  13159. ac_abs_top_builddir=$ac_pwd
  13160. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13161. # for backward compatibility:
  13162. ac_top_builddir=$ac_top_build_prefix
  13163. case $srcdir in
  13164. .) # We are building in place.
  13165. ac_srcdir=.
  13166. ac_top_srcdir=$ac_top_builddir_sub
  13167. ac_abs_top_srcdir=$ac_pwd ;;
  13168. [\\/]* | ?:[\\/]* ) # Absolute name.
  13169. ac_srcdir=$srcdir$ac_dir_suffix;
  13170. ac_top_srcdir=$srcdir
  13171. ac_abs_top_srcdir=$srcdir ;;
  13172. *) # Relative name.
  13173. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13174. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13175. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13176. esac
  13177. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13178. case $ac_mode in
  13179. :F)
  13180. #
  13181. # CONFIG_FILE
  13182. #
  13183. case $INSTALL in
  13184. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13185. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13186. esac
  13187. ac_MKDIR_P=$MKDIR_P
  13188. case $MKDIR_P in
  13189. [\\/$]* | ?:[\\/]* ) ;;
  13190. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13191. esac
  13192. _ACEOF
  13193. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13194. # If the template does not know about datarootdir, expand it.
  13195. # FIXME: This hack should be removed a few years after 2.60.
  13196. ac_datarootdir_hack=; ac_datarootdir_seen=
  13197. ac_sed_dataroot='
  13198. /datarootdir/ {
  13199. p
  13200. q
  13201. }
  13202. /@datadir@/p
  13203. /@docdir@/p
  13204. /@infodir@/p
  13205. /@localedir@/p
  13206. /@mandir@/p'
  13207. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13208. *datarootdir*) ac_datarootdir_seen=yes;;
  13209. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13211. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13212. _ACEOF
  13213. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13214. ac_datarootdir_hack='
  13215. s&@datadir@&$datadir&g
  13216. s&@docdir@&$docdir&g
  13217. s&@infodir@&$infodir&g
  13218. s&@localedir@&$localedir&g
  13219. s&@mandir@&$mandir&g
  13220. s&\\\${datarootdir}&$datarootdir&g' ;;
  13221. esac
  13222. _ACEOF
  13223. # Neutralize VPATH when `$srcdir' = `.'.
  13224. # Shell code in configure.ac might set extrasub.
  13225. # FIXME: do we really want to maintain this feature?
  13226. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13227. ac_sed_extra="$ac_vpsub
  13228. $extrasub
  13229. _ACEOF
  13230. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13231. :t
  13232. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13233. s|@configure_input@|$ac_sed_conf_input|;t t
  13234. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13235. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13236. s&@srcdir@&$ac_srcdir&;t t
  13237. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13238. s&@top_srcdir@&$ac_top_srcdir&;t t
  13239. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13240. s&@builddir@&$ac_builddir&;t t
  13241. s&@abs_builddir@&$ac_abs_builddir&;t t
  13242. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13243. s&@INSTALL@&$ac_INSTALL&;t t
  13244. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13245. $ac_datarootdir_hack
  13246. "
  13247. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13248. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13249. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13250. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13251. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13252. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13254. which seems to be undefined. Please make sure it is defined" >&5
  13255. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13256. which seems to be undefined. Please make sure it is defined" >&2;}
  13257. rm -f "$ac_tmp/stdin"
  13258. case $ac_file in
  13259. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13260. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13261. esac \
  13262. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13263. ;;
  13264. :H)
  13265. #
  13266. # CONFIG_HEADER
  13267. #
  13268. if test x"$ac_file" != x-; then
  13269. {
  13270. $as_echo "/* $configure_input */" \
  13271. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13272. } >"$ac_tmp/config.h" \
  13273. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13274. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13275. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13276. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13277. else
  13278. rm -f "$ac_file"
  13279. mv "$ac_tmp/config.h" "$ac_file" \
  13280. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13281. fi
  13282. else
  13283. $as_echo "/* $configure_input */" \
  13284. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13285. || as_fn_error $? "could not create -" "$LINENO" 5
  13286. fi
  13287. # Compute "$ac_file"'s index in $config_headers.
  13288. _am_arg="$ac_file"
  13289. _am_stamp_count=1
  13290. for _am_header in $config_headers :; do
  13291. case $_am_header in
  13292. $_am_arg | $_am_arg:* )
  13293. break ;;
  13294. * )
  13295. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13296. esac
  13297. done
  13298. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13299. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13300. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13301. X"$_am_arg" : 'X\(//\)$' \| \
  13302. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13303. $as_echo X"$_am_arg" |
  13304. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13305. s//\1/
  13306. q
  13307. }
  13308. /^X\(\/\/\)[^/].*/{
  13309. s//\1/
  13310. q
  13311. }
  13312. /^X\(\/\/\)$/{
  13313. s//\1/
  13314. q
  13315. }
  13316. /^X\(\/\).*/{
  13317. s//\1/
  13318. q
  13319. }
  13320. s/.*/./; q'`/stamp-h$_am_stamp_count
  13321. ;;
  13322. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13323. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13324. ;;
  13325. esac
  13326. case $ac_file$ac_mode in
  13327. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13328. # Older Autoconf quotes --file arguments for eval, but not when files
  13329. # are listed without --file. Let's play safe and only enable the eval
  13330. # if we detect the quoting.
  13331. case $CONFIG_FILES in
  13332. *\'*) eval set x "$CONFIG_FILES" ;;
  13333. *) set x $CONFIG_FILES ;;
  13334. esac
  13335. shift
  13336. for mf
  13337. do
  13338. # Strip MF so we end up with the name of the file.
  13339. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13340. # Check whether this is an Automake generated Makefile or not.
  13341. # We used to match only the files named 'Makefile.in', but
  13342. # some people rename them; so instead we look at the file content.
  13343. # Grep'ing the first line is not enough: some people post-process
  13344. # each Makefile.in and add a new line on top of each file to say so.
  13345. # Grep'ing the whole file is not good either: AIX grep has a line
  13346. # limit of 2048, but all sed's we know have understand at least 4000.
  13347. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13348. dirpart=`$as_dirname -- "$mf" ||
  13349. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13350. X"$mf" : 'X\(//\)[^/]' \| \
  13351. X"$mf" : 'X\(//\)$' \| \
  13352. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13353. $as_echo X"$mf" |
  13354. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13355. s//\1/
  13356. q
  13357. }
  13358. /^X\(\/\/\)[^/].*/{
  13359. s//\1/
  13360. q
  13361. }
  13362. /^X\(\/\/\)$/{
  13363. s//\1/
  13364. q
  13365. }
  13366. /^X\(\/\).*/{
  13367. s//\1/
  13368. q
  13369. }
  13370. s/.*/./; q'`
  13371. else
  13372. continue
  13373. fi
  13374. # Extract the definition of DEPDIR, am__include, and am__quote
  13375. # from the Makefile without running 'make'.
  13376. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13377. test -z "$DEPDIR" && continue
  13378. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13379. test -z "$am__include" && continue
  13380. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13381. # Find all dependency output files, they are included files with
  13382. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13383. # simplest approach to changing $(DEPDIR) to its actual value in the
  13384. # expansion.
  13385. for file in `sed -n "
  13386. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13387. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13388. # Make sure the directory exists.
  13389. test -f "$dirpart/$file" && continue
  13390. fdir=`$as_dirname -- "$file" ||
  13391. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13392. X"$file" : 'X\(//\)[^/]' \| \
  13393. X"$file" : 'X\(//\)$' \| \
  13394. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13395. $as_echo X"$file" |
  13396. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13397. s//\1/
  13398. q
  13399. }
  13400. /^X\(\/\/\)[^/].*/{
  13401. s//\1/
  13402. q
  13403. }
  13404. /^X\(\/\/\)$/{
  13405. s//\1/
  13406. q
  13407. }
  13408. /^X\(\/\).*/{
  13409. s//\1/
  13410. q
  13411. }
  13412. s/.*/./; q'`
  13413. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13414. # echo "creating $dirpart/$file"
  13415. echo '# dummy' > "$dirpart/$file"
  13416. done
  13417. done
  13418. }
  13419. ;;
  13420. "libtool":C)
  13421. # See if we are running on zsh, and set the options which allow our
  13422. # commands through without removal of \ escapes.
  13423. if test -n "${ZSH_VERSION+set}" ; then
  13424. setopt NO_GLOB_SUBST
  13425. fi
  13426. cfgfile="${ofile}T"
  13427. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13428. $RM "$cfgfile"
  13429. cat <<_LT_EOF >> "$cfgfile"
  13430. #! $SHELL
  13431. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13432. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13433. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13434. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13435. #
  13436. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13437. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  13438. # Foundation, Inc.
  13439. # Written by Gordon Matzigkeit, 1996
  13440. #
  13441. # This file is part of GNU Libtool.
  13442. #
  13443. # GNU Libtool is free software; you can redistribute it and/or
  13444. # modify it under the terms of the GNU General Public License as
  13445. # published by the Free Software Foundation; either version 2 of
  13446. # the License, or (at your option) any later version.
  13447. #
  13448. # As a special exception to the GNU General Public License,
  13449. # if you distribute this file as part of a program or library that
  13450. # is built using GNU Libtool, you may include this file under the
  13451. # same distribution terms that you use for the rest of that program.
  13452. #
  13453. # GNU Libtool is distributed in the hope that it will be useful,
  13454. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13455. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13456. # GNU General Public License for more details.
  13457. #
  13458. # You should have received a copy of the GNU General Public License
  13459. # along with GNU Libtool; see the file COPYING. If not, a copy
  13460. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13461. # obtained by writing to the Free Software Foundation, Inc.,
  13462. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13463. # The names of the tagged configurations supported by this script.
  13464. available_tags=""
  13465. # ### BEGIN LIBTOOL CONFIG
  13466. # Which release of libtool.m4 was used?
  13467. macro_version=$macro_version
  13468. macro_revision=$macro_revision
  13469. # Whether or not to build shared libraries.
  13470. build_libtool_libs=$enable_shared
  13471. # Whether or not to build static libraries.
  13472. build_old_libs=$enable_static
  13473. # What type of objects to build.
  13474. pic_mode=$pic_mode
  13475. # Whether or not to optimize for fast installation.
  13476. fast_install=$enable_fast_install
  13477. # Shell to use when invoking shell scripts.
  13478. SHELL=$lt_SHELL
  13479. # An echo program that protects backslashes.
  13480. ECHO=$lt_ECHO
  13481. # The PATH separator for the build system.
  13482. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  13483. # The host system.
  13484. host_alias=$host_alias
  13485. host=$host
  13486. host_os=$host_os
  13487. # The build system.
  13488. build_alias=$build_alias
  13489. build=$build
  13490. build_os=$build_os
  13491. # A sed program that does not truncate output.
  13492. SED=$lt_SED
  13493. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13494. Xsed="\$SED -e 1s/^X//"
  13495. # A grep program that handles long lines.
  13496. GREP=$lt_GREP
  13497. # An ERE matcher.
  13498. EGREP=$lt_EGREP
  13499. # A literal string matcher.
  13500. FGREP=$lt_FGREP
  13501. # A BSD- or MS-compatible name lister.
  13502. NM=$lt_NM
  13503. # Whether we need soft or hard links.
  13504. LN_S=$lt_LN_S
  13505. # What is the maximum length of a command?
  13506. max_cmd_len=$max_cmd_len
  13507. # Object file suffix (normally "o").
  13508. objext=$ac_objext
  13509. # Executable file suffix (normally "").
  13510. exeext=$exeext
  13511. # whether the shell understands "unset".
  13512. lt_unset=$lt_unset
  13513. # turn spaces into newlines.
  13514. SP2NL=$lt_lt_SP2NL
  13515. # turn newlines into spaces.
  13516. NL2SP=$lt_lt_NL2SP
  13517. # convert \$build file names to \$host format.
  13518. to_host_file_cmd=$lt_cv_to_host_file_cmd
  13519. # convert \$build files to toolchain format.
  13520. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  13521. # An object symbol dumper.
  13522. OBJDUMP=$lt_OBJDUMP
  13523. # Method to check whether dependent libraries are shared objects.
  13524. deplibs_check_method=$lt_deplibs_check_method
  13525. # Command to use when deplibs_check_method = "file_magic".
  13526. file_magic_cmd=$lt_file_magic_cmd
  13527. # How to find potential files when deplibs_check_method = "file_magic".
  13528. file_magic_glob=$lt_file_magic_glob
  13529. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  13530. want_nocaseglob=$lt_want_nocaseglob
  13531. # DLL creation program.
  13532. DLLTOOL=$lt_DLLTOOL
  13533. # Command to associate shared and link libraries.
  13534. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  13535. # The archiver.
  13536. AR=$lt_AR
  13537. # Flags to create an archive.
  13538. AR_FLAGS=$lt_AR_FLAGS
  13539. # How to feed a file listing to the archiver.
  13540. archiver_list_spec=$lt_archiver_list_spec
  13541. # A symbol stripping program.
  13542. STRIP=$lt_STRIP
  13543. # Commands used to install an old-style archive.
  13544. RANLIB=$lt_RANLIB
  13545. old_postinstall_cmds=$lt_old_postinstall_cmds
  13546. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13547. # Whether to use a lock for old archive extraction.
  13548. lock_old_archive_extraction=$lock_old_archive_extraction
  13549. # A C compiler.
  13550. LTCC=$lt_CC
  13551. # LTCC compiler flags.
  13552. LTCFLAGS=$lt_CFLAGS
  13553. # Take the output of nm and produce a listing of raw symbols and C names.
  13554. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13555. # Transform the output of nm in a proper C declaration.
  13556. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13557. # Transform the output of nm in a C name address pair.
  13558. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13559. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13560. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13561. # Specify filename containing input files for \$NM.
  13562. nm_file_list_spec=$lt_nm_file_list_spec
  13563. # The root where to search for dependent libraries,and in which our libraries should be installed.
  13564. lt_sysroot=$lt_sysroot
  13565. # The name of the directory that contains temporary libtool files.
  13566. objdir=$objdir
  13567. # Used to examine libraries when file_magic_cmd begins with "file".
  13568. MAGIC_CMD=$MAGIC_CMD
  13569. # Must we lock files when doing compilation?
  13570. need_locks=$lt_need_locks
  13571. # Manifest tool.
  13572. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13573. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13574. DSYMUTIL=$lt_DSYMUTIL
  13575. # Tool to change global to local symbols on Mac OS X.
  13576. NMEDIT=$lt_NMEDIT
  13577. # Tool to manipulate fat objects and archives on Mac OS X.
  13578. LIPO=$lt_LIPO
  13579. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13580. OTOOL=$lt_OTOOL
  13581. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13582. OTOOL64=$lt_OTOOL64
  13583. # Old archive suffix (normally "a").
  13584. libext=$libext
  13585. # Shared library suffix (normally ".so").
  13586. shrext_cmds=$lt_shrext_cmds
  13587. # The commands to extract the exported symbol list from a shared archive.
  13588. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13589. # Variables whose values should be saved in libtool wrapper scripts and
  13590. # restored at link time.
  13591. variables_saved_for_relink=$lt_variables_saved_for_relink
  13592. # Do we need the "lib" prefix for modules?
  13593. need_lib_prefix=$need_lib_prefix
  13594. # Do we need a version for libraries?
  13595. need_version=$need_version
  13596. # Library versioning type.
  13597. version_type=$version_type
  13598. # Shared library runtime path variable.
  13599. runpath_var=$runpath_var
  13600. # Shared library path variable.
  13601. shlibpath_var=$shlibpath_var
  13602. # Is shlibpath searched before the hard-coded library search path?
  13603. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13604. # Format of library name prefix.
  13605. libname_spec=$lt_libname_spec
  13606. # List of archive names. First name is the real one, the rest are links.
  13607. # The last name is the one that the linker finds with -lNAME
  13608. library_names_spec=$lt_library_names_spec
  13609. # The coded name of the library, if different from the real name.
  13610. soname_spec=$lt_soname_spec
  13611. # Permission mode override for installation of shared libraries.
  13612. install_override_mode=$lt_install_override_mode
  13613. # Command to use after installation of a shared archive.
  13614. postinstall_cmds=$lt_postinstall_cmds
  13615. # Command to use after uninstallation of a shared archive.
  13616. postuninstall_cmds=$lt_postuninstall_cmds
  13617. # Commands used to finish a libtool library installation in a directory.
  13618. finish_cmds=$lt_finish_cmds
  13619. # As "finish_cmds", except a single script fragment to be evaled but
  13620. # not shown.
  13621. finish_eval=$lt_finish_eval
  13622. # Whether we should hardcode library paths into libraries.
  13623. hardcode_into_libs=$hardcode_into_libs
  13624. # Compile-time system search path for libraries.
  13625. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13626. # Run-time system search path for libraries.
  13627. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13628. # Whether dlopen is supported.
  13629. dlopen_support=$enable_dlopen
  13630. # Whether dlopen of programs is supported.
  13631. dlopen_self=$enable_dlopen_self
  13632. # Whether dlopen of statically linked programs is supported.
  13633. dlopen_self_static=$enable_dlopen_self_static
  13634. # Commands to strip libraries.
  13635. old_striplib=$lt_old_striplib
  13636. striplib=$lt_striplib
  13637. # The linker used to build libraries.
  13638. LD=$lt_LD
  13639. # How to create reloadable object files.
  13640. reload_flag=$lt_reload_flag
  13641. reload_cmds=$lt_reload_cmds
  13642. # Commands used to build an old-style archive.
  13643. old_archive_cmds=$lt_old_archive_cmds
  13644. # A language specific compiler.
  13645. CC=$lt_compiler
  13646. # Is the compiler the GNU compiler?
  13647. with_gcc=$GCC
  13648. # Compiler flag to turn off builtin functions.
  13649. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13650. # Additional compiler flags for building library objects.
  13651. pic_flag=$lt_lt_prog_compiler_pic
  13652. # How to pass a linker flag through the compiler.
  13653. wl=$lt_lt_prog_compiler_wl
  13654. # Compiler flag to prevent dynamic linking.
  13655. link_static_flag=$lt_lt_prog_compiler_static
  13656. # Does compiler simultaneously support -c and -o options?
  13657. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13658. # Whether or not to add -lc for building shared libraries.
  13659. build_libtool_need_lc=$archive_cmds_need_lc
  13660. # Whether or not to disallow shared libs when runtime libs are static.
  13661. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13662. # Compiler flag to allow reflexive dlopens.
  13663. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13664. # Compiler flag to generate shared objects directly from archives.
  13665. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13666. # Whether the compiler copes with passing no objects directly.
  13667. compiler_needs_object=$lt_compiler_needs_object
  13668. # Create an old-style archive from a shared archive.
  13669. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13670. # Create a temporary old-style archive to link instead of a shared archive.
  13671. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13672. # Commands used to build a shared archive.
  13673. archive_cmds=$lt_archive_cmds
  13674. archive_expsym_cmds=$lt_archive_expsym_cmds
  13675. # Commands used to build a loadable module if different from building
  13676. # a shared archive.
  13677. module_cmds=$lt_module_cmds
  13678. module_expsym_cmds=$lt_module_expsym_cmds
  13679. # Whether we are building with GNU ld or not.
  13680. with_gnu_ld=$lt_with_gnu_ld
  13681. # Flag that allows shared libraries with undefined symbols to be built.
  13682. allow_undefined_flag=$lt_allow_undefined_flag
  13683. # Flag that enforces no undefined symbols.
  13684. no_undefined_flag=$lt_no_undefined_flag
  13685. # Flag to hardcode \$libdir into a binary during linking.
  13686. # This must work even if \$libdir does not exist
  13687. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13688. # Whether we need a single "-rpath" flag with a separated argument.
  13689. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13690. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13691. # DIR into the resulting binary.
  13692. hardcode_direct=$hardcode_direct
  13693. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13694. # DIR into the resulting binary and the resulting library dependency is
  13695. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13696. # library is relocated.
  13697. hardcode_direct_absolute=$hardcode_direct_absolute
  13698. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13699. # into the resulting binary.
  13700. hardcode_minus_L=$hardcode_minus_L
  13701. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13702. # into the resulting binary.
  13703. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13704. # Set to "yes" if building a shared library automatically hardcodes DIR
  13705. # into the library and all subsequent libraries and executables linked
  13706. # against it.
  13707. hardcode_automatic=$hardcode_automatic
  13708. # Set to yes if linker adds runtime paths of dependent libraries
  13709. # to runtime path list.
  13710. inherit_rpath=$inherit_rpath
  13711. # Whether libtool must link a program against all its dependency libraries.
  13712. link_all_deplibs=$link_all_deplibs
  13713. # Set to "yes" if exported symbols are required.
  13714. always_export_symbols=$always_export_symbols
  13715. # The commands to list exported symbols.
  13716. export_symbols_cmds=$lt_export_symbols_cmds
  13717. # Symbols that should not be listed in the preloaded symbols.
  13718. exclude_expsyms=$lt_exclude_expsyms
  13719. # Symbols that must always be exported.
  13720. include_expsyms=$lt_include_expsyms
  13721. # Commands necessary for linking programs (against libraries) with templates.
  13722. prelink_cmds=$lt_prelink_cmds
  13723. # Commands necessary for finishing linking programs.
  13724. postlink_cmds=$lt_postlink_cmds
  13725. # Specify filename containing input files.
  13726. file_list_spec=$lt_file_list_spec
  13727. # How to hardcode a shared library path into an executable.
  13728. hardcode_action=$hardcode_action
  13729. # ### END LIBTOOL CONFIG
  13730. _LT_EOF
  13731. case $host_os in
  13732. aix3*)
  13733. cat <<\_LT_EOF >> "$cfgfile"
  13734. # AIX sometimes has problems with the GCC collect2 program. For some
  13735. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13736. # vanish in a puff of smoke.
  13737. if test "X${COLLECT_NAMES+set}" != Xset; then
  13738. COLLECT_NAMES=
  13739. export COLLECT_NAMES
  13740. fi
  13741. _LT_EOF
  13742. ;;
  13743. esac
  13744. ltmain="$ac_aux_dir/ltmain.sh"
  13745. # We use sed instead of cat because bash on DJGPP gets confused if
  13746. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13747. # text mode, it properly converts lines to CR/LF. This bash problem
  13748. # is reportedly fixed, but why not run on old versions too?
  13749. sed '$q' "$ltmain" >> "$cfgfile" \
  13750. || (rm -f "$cfgfile"; exit 1)
  13751. if test x"$xsi_shell" = xyes; then
  13752. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  13753. func_dirname ()\
  13754. {\
  13755. \ case ${1} in\
  13756. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13757. \ * ) func_dirname_result="${3}" ;;\
  13758. \ esac\
  13759. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  13760. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13761. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13762. test 0 -eq $? || _lt_function_replace_fail=:
  13763. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  13764. func_basename ()\
  13765. {\
  13766. \ func_basename_result="${1##*/}"\
  13767. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13768. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13769. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13770. test 0 -eq $? || _lt_function_replace_fail=:
  13771. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  13772. func_dirname_and_basename ()\
  13773. {\
  13774. \ case ${1} in\
  13775. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13776. \ * ) func_dirname_result="${3}" ;;\
  13777. \ esac\
  13778. \ func_basename_result="${1##*/}"\
  13779. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13780. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13781. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13782. test 0 -eq $? || _lt_function_replace_fail=:
  13783. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  13784. func_stripname ()\
  13785. {\
  13786. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  13787. \ # positional parameters, so assign one to ordinary parameter first.\
  13788. \ func_stripname_result=${3}\
  13789. \ func_stripname_result=${func_stripname_result#"${1}"}\
  13790. \ func_stripname_result=${func_stripname_result%"${2}"}\
  13791. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  13792. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13793. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13794. test 0 -eq $? || _lt_function_replace_fail=:
  13795. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  13796. func_split_long_opt ()\
  13797. {\
  13798. \ func_split_long_opt_name=${1%%=*}\
  13799. \ func_split_long_opt_arg=${1#*=}\
  13800. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13801. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13802. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13803. test 0 -eq $? || _lt_function_replace_fail=:
  13804. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  13805. func_split_short_opt ()\
  13806. {\
  13807. \ func_split_short_opt_arg=${1#??}\
  13808. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  13809. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13810. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13811. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13812. test 0 -eq $? || _lt_function_replace_fail=:
  13813. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  13814. func_lo2o ()\
  13815. {\
  13816. \ case ${1} in\
  13817. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  13818. \ *) func_lo2o_result=${1} ;;\
  13819. \ esac\
  13820. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  13821. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13822. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13823. test 0 -eq $? || _lt_function_replace_fail=:
  13824. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  13825. func_xform ()\
  13826. {\
  13827. func_xform_result=${1%.*}.lo\
  13828. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  13829. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13830. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13831. test 0 -eq $? || _lt_function_replace_fail=:
  13832. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  13833. func_arith ()\
  13834. {\
  13835. func_arith_result=$(( $* ))\
  13836. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  13837. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13838. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13839. test 0 -eq $? || _lt_function_replace_fail=:
  13840. sed -e '/^func_len ()$/,/^} # func_len /c\
  13841. func_len ()\
  13842. {\
  13843. func_len_result=${#1}\
  13844. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  13845. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13846. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13847. test 0 -eq $? || _lt_function_replace_fail=:
  13848. fi
  13849. if test x"$lt_shell_append" = xyes; then
  13850. sed -e '/^func_append ()$/,/^} # func_append /c\
  13851. func_append ()\
  13852. {\
  13853. eval "${1}+=\\${2}"\
  13854. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  13855. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13856. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13857. test 0 -eq $? || _lt_function_replace_fail=:
  13858. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  13859. func_append_quoted ()\
  13860. {\
  13861. \ func_quote_for_eval "${2}"\
  13862. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  13863. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  13864. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13865. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13866. test 0 -eq $? || _lt_function_replace_fail=:
  13867. # Save a `func_append' function call where possible by direct use of '+='
  13868. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  13869. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13870. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13871. test 0 -eq $? || _lt_function_replace_fail=:
  13872. else
  13873. # Save a `func_append' function call even when '+=' is not available
  13874. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  13875. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13876. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13877. test 0 -eq $? || _lt_function_replace_fail=:
  13878. fi
  13879. if test x"$_lt_function_replace_fail" = x":"; then
  13880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  13881. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  13882. fi
  13883. mv -f "$cfgfile" "$ofile" ||
  13884. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13885. chmod +x "$ofile"
  13886. ;;
  13887. esac
  13888. done # for ac_tag
  13889. as_fn_exit 0
  13890. _ACEOF
  13891. ac_clean_files=$ac_clean_files_save
  13892. test $ac_write_fail = 0 ||
  13893. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13894. # configure is writing to config.log, and then calls config.status.
  13895. # config.status does its own redirection, appending to config.log.
  13896. # Unfortunately, on DOS this fails, as config.log is still kept open
  13897. # by configure, so config.status won't be able to write to it; its
  13898. # output is simply discarded. So we exec the FD to /dev/null,
  13899. # effectively closing config.log, so it can be properly (re)opened and
  13900. # appended to by config.status. When coming back to configure, we
  13901. # need to make the FD available again.
  13902. if test "$no_create" != yes; then
  13903. ac_cs_success=:
  13904. ac_config_status_args=
  13905. test "$silent" = yes &&
  13906. ac_config_status_args="$ac_config_status_args --quiet"
  13907. exec 5>/dev/null
  13908. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13909. exec 5>>config.log
  13910. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13911. # would make configure fail if this is the last instruction.
  13912. $ac_cs_success || as_fn_exit 1
  13913. fi
  13914. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13916. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13917. fi
  13918. { $as_echo "$as_me:${as_lineno-$LINENO}:
  13919. ------------------------------------------------------------------------
  13920. $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
  13921. Compiler support:
  13922. C99 var arrays: ................ ${has_var_arrays}
  13923. C99 lrintf: .................... ${ac_cv_func_lrintf}
  13924. Use alloca: .................... ${use_alloca}
  13925. General configuration:
  13926. Floating point support: ........ ${enable_float}
  13927. Fast float approximations: ..... ${enable_float_approx}
  13928. Fixed point debugging: ......... ${enable_fixed_point_debug}
  13929. Inline Assembly Optimizations: . ${inline_optimization}
  13930. External Assembly Optimizations: ${asm_optimization}
  13931. Intrinsics Optimizations.......: ${intrinsics_support}
  13932. Run-time CPU detection: ........ ${rtcd_support}
  13933. Custom modes: .................. ${enable_custom_modes}
  13934. Assertion checking: ............ ${enable_assertions}
  13935. Fuzzing: ....................... ${enable_fuzzing}
  13936. API documentation: ............. ${enable_doc}
  13937. Extra programs: ................ ${enable_extra_programs}
  13938. ------------------------------------------------------------------------
  13939. Type \"make; make install\" to compile and install
  13940. Type \"make check\" to run the test suite
  13941. " >&5
  13942. $as_echo "$as_me:
  13943. ------------------------------------------------------------------------
  13944. $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
  13945. Compiler support:
  13946. C99 var arrays: ................ ${has_var_arrays}
  13947. C99 lrintf: .................... ${ac_cv_func_lrintf}
  13948. Use alloca: .................... ${use_alloca}
  13949. General configuration:
  13950. Floating point support: ........ ${enable_float}
  13951. Fast float approximations: ..... ${enable_float_approx}
  13952. Fixed point debugging: ......... ${enable_fixed_point_debug}
  13953. Inline Assembly Optimizations: . ${inline_optimization}
  13954. External Assembly Optimizations: ${asm_optimization}
  13955. Intrinsics Optimizations.......: ${intrinsics_support}
  13956. Run-time CPU detection: ........ ${rtcd_support}
  13957. Custom modes: .................. ${enable_custom_modes}
  13958. Assertion checking: ............ ${enable_assertions}
  13959. Fuzzing: ....................... ${enable_fuzzing}
  13960. API documentation: ............. ${enable_doc}
  13961. Extra programs: ................ ${enable_extra_programs}
  13962. ------------------------------------------------------------------------
  13963. Type \"make; make install\" to compile and install
  13964. Type \"make check\" to run the test suite
  13965. " >&6;}