configure 494 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for opus 1.3.
  4. #
  5. # Report bugs to <[email protected]>.
  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 [email protected] and [email protected]
  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.3'
  544. PACKAGE_STRING='opus 1.3'
  545. PACKAGE_BUGREPORT='[email protected]'
  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_DOT
  593. HAVE_DOXYGEN
  594. OPUS_HAVE_RTCD
  595. HAVE_ARM_NE10_FALSE
  596. HAVE_ARM_NE10_TRUE
  597. HAVE_ARM_NEON_INTR_FALSE
  598. HAVE_ARM_NEON_INTR_TRUE
  599. CPU_ARM_FALSE
  600. CPU_ARM_TRUE
  601. OPUS_X86_AVX_CFLAGS
  602. OPUS_X86_SSE4_1_CFLAGS
  603. OPUS_X86_SSE2_CFLAGS
  604. OPUS_X86_SSE_CFLAGS
  605. NE10_LIBS
  606. NE10_CFLAGS
  607. HAVE_ARM_NE10
  608. OPUS_ARM_NEON_INTR_CFLAGS
  609. ARM_NEON_INTR_CFLAGS
  610. X86_AVX_CFLAGS
  611. X86_SSE4_1_CFLAGS
  612. X86_SSE2_CFLAGS
  613. X86_SSE_CFLAGS
  614. HAVE_AVX_FALSE
  615. HAVE_AVX_TRUE
  616. HAVE_SSE4_1_FALSE
  617. HAVE_SSE4_1_TRUE
  618. HAVE_SSE2_FALSE
  619. HAVE_SSE2_TRUE
  620. HAVE_SSE_FALSE
  621. HAVE_SSE_TRUE
  622. ARM2GNU_PARAMS
  623. OPUS_ARM_MAY_HAVE_NEON
  624. OPUS_ARM_MAY_HAVE_MEDIA
  625. OPUS_ARM_MAY_HAVE_EDSP
  626. OPUS_ARM_EXTERNAL_ASM_FALSE
  627. OPUS_ARM_EXTERNAL_ASM_TRUE
  628. HAVE_PERL
  629. OPUS_ARM_INLINE_ASM_FALSE
  630. OPUS_ARM_INLINE_ASM_TRUE
  631. CUSTOM_MODES_FALSE
  632. CUSTOM_MODES_TRUE
  633. DISABLE_FLOAT_API_FALSE
  634. DISABLE_FLOAT_API_TRUE
  635. FIXED_POINT_FALSE
  636. FIXED_POINT_TRUE
  637. LIBM
  638. am__fastdepCCAS_FALSE
  639. am__fastdepCCAS_TRUE
  640. CCASDEPMODE
  641. CCASFLAGS
  642. CCAS
  643. CPP
  644. LT_SYS_LIBRARY_PATH
  645. OTOOL64
  646. OTOOL
  647. LIPO
  648. NMEDIT
  649. DSYMUTIL
  650. MANIFEST_TOOL
  651. RANLIB
  652. ac_ct_AR
  653. AR
  654. DLLTOOL
  655. OBJDUMP
  656. LN_S
  657. NM
  658. ac_ct_DUMPBIN
  659. DUMPBIN
  660. LD
  661. FGREP
  662. EGREP
  663. GREP
  664. SED
  665. am__fastdepCC_FALSE
  666. am__fastdepCC_TRUE
  667. CCDEPMODE
  668. am__nodep
  669. AMDEPBACKSLASH
  670. AMDEP_FALSE
  671. AMDEP_TRUE
  672. am__quote
  673. am__include
  674. DEPDIR
  675. OBJEXT
  676. EXEEXT
  677. ac_ct_CC
  678. CPPFLAGS
  679. LDFLAGS
  680. CFLAGS
  681. CC
  682. LIBTOOL
  683. host_os
  684. host_vendor
  685. host_cpu
  686. host
  687. build_os
  688. build_vendor
  689. build_cpu
  690. build
  691. MAINT
  692. MAINTAINER_MODE_FALSE
  693. MAINTAINER_MODE_TRUE
  694. am__untar
  695. am__tar
  696. AMTAR
  697. am__leading_dot
  698. SET_MAKE
  699. AWK
  700. mkdir_p
  701. MKDIR_P
  702. INSTALL_STRIP_PROGRAM
  703. STRIP
  704. install_sh
  705. MAKEINFO
  706. AUTOHEADER
  707. AUTOMAKE
  708. AUTOCONF
  709. ACLOCAL
  710. VERSION
  711. PACKAGE
  712. CYGPATH_W
  713. am__isrc
  714. INSTALL_DATA
  715. INSTALL_SCRIPT
  716. INSTALL_PROGRAM
  717. OPUS_LT_AGE
  718. OPUS_LT_REVISION
  719. OPUS_LT_CURRENT
  720. AM_BACKSLASH
  721. AM_DEFAULT_VERBOSITY
  722. AM_DEFAULT_V
  723. AM_V
  724. target_alias
  725. host_alias
  726. build_alias
  727. LIBS
  728. ECHO_T
  729. ECHO_N
  730. ECHO_C
  731. DEFS
  732. mandir
  733. localedir
  734. libdir
  735. psdir
  736. pdfdir
  737. dvidir
  738. htmldir
  739. infodir
  740. docdir
  741. oldincludedir
  742. includedir
  743. localstatedir
  744. sharedstatedir
  745. sysconfdir
  746. datadir
  747. datarootdir
  748. libexecdir
  749. sbindir
  750. bindir
  751. program_transform_name
  752. prefix
  753. exec_prefix
  754. PACKAGE_URL
  755. PACKAGE_BUGREPORT
  756. PACKAGE_STRING
  757. PACKAGE_VERSION
  758. PACKAGE_TARNAME
  759. PACKAGE_NAME
  760. PATH_SEPARATOR
  761. SHELL'
  762. ac_subst_files=''
  763. ac_user_opts='
  764. enable_option_checking
  765. enable_silent_rules
  766. enable_maintainer_mode
  767. enable_shared
  768. enable_static
  769. with_pic
  770. enable_fast_install
  771. with_aix_soname
  772. enable_dependency_tracking
  773. with_gnu_ld
  774. with_sysroot
  775. enable_libtool_lock
  776. enable_fixed_point
  777. enable_fixed_point_debug
  778. enable_float_api
  779. enable_custom_modes
  780. enable_float_approx
  781. enable_asm
  782. enable_rtcd
  783. enable_intrinsics
  784. with_NE10
  785. with_NE10_libraries
  786. with_NE10_includes
  787. enable_assertions
  788. enable_hardening
  789. enable_fuzzing
  790. enable_check_asm
  791. enable_doc
  792. enable_extra_programs
  793. enable_rfc8251
  794. enable_stack_protector
  795. '
  796. ac_precious_vars='build_alias
  797. host_alias
  798. target_alias
  799. CC
  800. CFLAGS
  801. LDFLAGS
  802. LIBS
  803. CPPFLAGS
  804. LT_SYS_LIBRARY_PATH
  805. CPP
  806. CCAS
  807. CCASFLAGS
  808. X86_SSE_CFLAGS
  809. X86_SSE2_CFLAGS
  810. X86_SSE4_1_CFLAGS
  811. X86_AVX_CFLAGS
  812. ARM_NEON_INTR_CFLAGS'
  813. # Initialize some variables set by options.
  814. ac_init_help=
  815. ac_init_version=false
  816. ac_unrecognized_opts=
  817. ac_unrecognized_sep=
  818. # The variables have the same names as the options, with
  819. # dashes changed to underlines.
  820. cache_file=/dev/null
  821. exec_prefix=NONE
  822. no_create=
  823. no_recursion=
  824. prefix=NONE
  825. program_prefix=NONE
  826. program_suffix=NONE
  827. program_transform_name=s,x,x,
  828. silent=
  829. site=
  830. srcdir=
  831. verbose=
  832. x_includes=NONE
  833. x_libraries=NONE
  834. # Installation directory options.
  835. # These are left unexpanded so users can "make install exec_prefix=/foo"
  836. # and all the variables that are supposed to be based on exec_prefix
  837. # by default will actually change.
  838. # Use braces instead of parens because sh, perl, etc. also accept them.
  839. # (The list follows the same order as the GNU Coding Standards.)
  840. bindir='${exec_prefix}/bin'
  841. sbindir='${exec_prefix}/sbin'
  842. libexecdir='${exec_prefix}/libexec'
  843. datarootdir='${prefix}/share'
  844. datadir='${datarootdir}'
  845. sysconfdir='${prefix}/etc'
  846. sharedstatedir='${prefix}/com'
  847. localstatedir='${prefix}/var'
  848. includedir='${prefix}/include'
  849. oldincludedir='/usr/include'
  850. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  851. infodir='${datarootdir}/info'
  852. htmldir='${docdir}'
  853. dvidir='${docdir}'
  854. pdfdir='${docdir}'
  855. psdir='${docdir}'
  856. libdir='${exec_prefix}/lib'
  857. localedir='${datarootdir}/locale'
  858. mandir='${datarootdir}/man'
  859. ac_prev=
  860. ac_dashdash=
  861. for ac_option
  862. do
  863. # If the previous option needs an argument, assign it.
  864. if test -n "$ac_prev"; then
  865. eval $ac_prev=\$ac_option
  866. ac_prev=
  867. continue
  868. fi
  869. case $ac_option in
  870. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  871. *=) ac_optarg= ;;
  872. *) ac_optarg=yes ;;
  873. esac
  874. # Accept the important Cygnus configure options, so we can diagnose typos.
  875. case $ac_dashdash$ac_option in
  876. --)
  877. ac_dashdash=yes ;;
  878. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  879. ac_prev=bindir ;;
  880. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  881. bindir=$ac_optarg ;;
  882. -build | --build | --buil | --bui | --bu)
  883. ac_prev=build_alias ;;
  884. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  885. build_alias=$ac_optarg ;;
  886. -cache-file | --cache-file | --cache-fil | --cache-fi \
  887. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  888. ac_prev=cache_file ;;
  889. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  890. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  891. cache_file=$ac_optarg ;;
  892. --config-cache | -C)
  893. cache_file=config.cache ;;
  894. -datadir | --datadir | --datadi | --datad)
  895. ac_prev=datadir ;;
  896. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  897. datadir=$ac_optarg ;;
  898. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  899. | --dataroo | --dataro | --datar)
  900. ac_prev=datarootdir ;;
  901. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  902. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  903. datarootdir=$ac_optarg ;;
  904. -disable-* | --disable-*)
  905. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  906. # Reject names that are not valid shell variable names.
  907. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  908. as_fn_error $? "invalid feature name: $ac_useropt"
  909. ac_useropt_orig=$ac_useropt
  910. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  911. case $ac_user_opts in
  912. *"
  913. "enable_$ac_useropt"
  914. "*) ;;
  915. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  916. ac_unrecognized_sep=', ';;
  917. esac
  918. eval enable_$ac_useropt=no ;;
  919. -docdir | --docdir | --docdi | --doc | --do)
  920. ac_prev=docdir ;;
  921. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  922. docdir=$ac_optarg ;;
  923. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  924. ac_prev=dvidir ;;
  925. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  926. dvidir=$ac_optarg ;;
  927. -enable-* | --enable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error $? "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=\$ac_optarg ;;
  942. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  943. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  944. | --exec | --exe | --ex)
  945. ac_prev=exec_prefix ;;
  946. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  947. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  948. | --exec=* | --exe=* | --ex=*)
  949. exec_prefix=$ac_optarg ;;
  950. -gas | --gas | --ga | --g)
  951. # Obsolete; use --with-gas.
  952. with_gas=yes ;;
  953. -help | --help | --hel | --he | -h)
  954. ac_init_help=long ;;
  955. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  956. ac_init_help=recursive ;;
  957. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  958. ac_init_help=short ;;
  959. -host | --host | --hos | --ho)
  960. ac_prev=host_alias ;;
  961. -host=* | --host=* | --hos=* | --ho=*)
  962. host_alias=$ac_optarg ;;
  963. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  964. ac_prev=htmldir ;;
  965. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  966. | --ht=*)
  967. htmldir=$ac_optarg ;;
  968. -includedir | --includedir | --includedi | --included | --include \
  969. | --includ | --inclu | --incl | --inc)
  970. ac_prev=includedir ;;
  971. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  972. | --includ=* | --inclu=* | --incl=* | --inc=*)
  973. includedir=$ac_optarg ;;
  974. -infodir | --infodir | --infodi | --infod | --info | --inf)
  975. ac_prev=infodir ;;
  976. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  977. infodir=$ac_optarg ;;
  978. -libdir | --libdir | --libdi | --libd)
  979. ac_prev=libdir ;;
  980. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  981. libdir=$ac_optarg ;;
  982. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  983. | --libexe | --libex | --libe)
  984. ac_prev=libexecdir ;;
  985. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  986. | --libexe=* | --libex=* | --libe=*)
  987. libexecdir=$ac_optarg ;;
  988. -localedir | --localedir | --localedi | --localed | --locale)
  989. ac_prev=localedir ;;
  990. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  991. localedir=$ac_optarg ;;
  992. -localstatedir | --localstatedir | --localstatedi | --localstated \
  993. | --localstate | --localstat | --localsta | --localst | --locals)
  994. ac_prev=localstatedir ;;
  995. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  996. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  997. localstatedir=$ac_optarg ;;
  998. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  999. ac_prev=mandir ;;
  1000. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1001. mandir=$ac_optarg ;;
  1002. -nfp | --nfp | --nf)
  1003. # Obsolete; use --without-fp.
  1004. with_fp=no ;;
  1005. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1006. | --no-cr | --no-c | -n)
  1007. no_create=yes ;;
  1008. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1009. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1010. no_recursion=yes ;;
  1011. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1012. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1013. | --oldin | --oldi | --old | --ol | --o)
  1014. ac_prev=oldincludedir ;;
  1015. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1016. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1017. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1018. oldincludedir=$ac_optarg ;;
  1019. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1020. ac_prev=prefix ;;
  1021. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1022. prefix=$ac_optarg ;;
  1023. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1024. | --program-pre | --program-pr | --program-p)
  1025. ac_prev=program_prefix ;;
  1026. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1027. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1028. program_prefix=$ac_optarg ;;
  1029. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1030. | --program-suf | --program-su | --program-s)
  1031. ac_prev=program_suffix ;;
  1032. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1033. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1034. program_suffix=$ac_optarg ;;
  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. ac_prev=program_transform_name ;;
  1043. -program-transform-name=* | --program-transform-name=* \
  1044. | --program-transform-nam=* | --program-transform-na=* \
  1045. | --program-transform-n=* | --program-transform-=* \
  1046. | --program-transform=* | --program-transfor=* \
  1047. | --program-transfo=* | --program-transf=* \
  1048. | --program-trans=* | --program-tran=* \
  1049. | --progr-tra=* | --program-tr=* | --program-t=*)
  1050. program_transform_name=$ac_optarg ;;
  1051. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1052. ac_prev=pdfdir ;;
  1053. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1054. pdfdir=$ac_optarg ;;
  1055. -psdir | --psdir | --psdi | --psd | --ps)
  1056. ac_prev=psdir ;;
  1057. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1058. psdir=$ac_optarg ;;
  1059. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1060. | -silent | --silent | --silen | --sile | --sil)
  1061. silent=yes ;;
  1062. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1063. ac_prev=sbindir ;;
  1064. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1065. | --sbi=* | --sb=*)
  1066. sbindir=$ac_optarg ;;
  1067. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1068. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1069. | --sharedst | --shareds | --shared | --share | --shar \
  1070. | --sha | --sh)
  1071. ac_prev=sharedstatedir ;;
  1072. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1073. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1074. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1075. | --sha=* | --sh=*)
  1076. sharedstatedir=$ac_optarg ;;
  1077. -site | --site | --sit)
  1078. ac_prev=site ;;
  1079. -site=* | --site=* | --sit=*)
  1080. site=$ac_optarg ;;
  1081. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1082. ac_prev=srcdir ;;
  1083. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1084. srcdir=$ac_optarg ;;
  1085. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1086. | --syscon | --sysco | --sysc | --sys | --sy)
  1087. ac_prev=sysconfdir ;;
  1088. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1089. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1090. sysconfdir=$ac_optarg ;;
  1091. -target | --target | --targe | --targ | --tar | --ta | --t)
  1092. ac_prev=target_alias ;;
  1093. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1094. target_alias=$ac_optarg ;;
  1095. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1096. verbose=yes ;;
  1097. -version | --version | --versio | --versi | --vers | -V)
  1098. ac_init_version=: ;;
  1099. -with-* | --with-*)
  1100. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1101. # Reject names that are not valid shell variable names.
  1102. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1103. as_fn_error $? "invalid package name: $ac_useropt"
  1104. ac_useropt_orig=$ac_useropt
  1105. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1106. case $ac_user_opts in
  1107. *"
  1108. "with_$ac_useropt"
  1109. "*) ;;
  1110. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1111. ac_unrecognized_sep=', ';;
  1112. esac
  1113. eval with_$ac_useropt=\$ac_optarg ;;
  1114. -without-* | --without-*)
  1115. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1116. # Reject names that are not valid shell variable names.
  1117. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1118. as_fn_error $? "invalid package name: $ac_useropt"
  1119. ac_useropt_orig=$ac_useropt
  1120. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1121. case $ac_user_opts in
  1122. *"
  1123. "with_$ac_useropt"
  1124. "*) ;;
  1125. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1126. ac_unrecognized_sep=', ';;
  1127. esac
  1128. eval with_$ac_useropt=no ;;
  1129. --x)
  1130. # Obsolete; use --with-x.
  1131. with_x=yes ;;
  1132. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1133. | --x-incl | --x-inc | --x-in | --x-i)
  1134. ac_prev=x_includes ;;
  1135. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1136. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1137. x_includes=$ac_optarg ;;
  1138. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1139. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1140. ac_prev=x_libraries ;;
  1141. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1142. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1143. x_libraries=$ac_optarg ;;
  1144. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1145. Try \`$0 --help' for more information"
  1146. ;;
  1147. *=*)
  1148. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1149. # Reject names that are not valid shell variable names.
  1150. case $ac_envvar in #(
  1151. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1152. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1153. esac
  1154. eval $ac_envvar=\$ac_optarg
  1155. export $ac_envvar ;;
  1156. *)
  1157. # FIXME: should be removed in autoconf 3.0.
  1158. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1159. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1160. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1161. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1162. ;;
  1163. esac
  1164. done
  1165. if test -n "$ac_prev"; then
  1166. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1167. as_fn_error $? "missing argument to $ac_option"
  1168. fi
  1169. if test -n "$ac_unrecognized_opts"; then
  1170. case $enable_option_checking in
  1171. no) ;;
  1172. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1173. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1174. esac
  1175. fi
  1176. # Check all directory arguments for consistency.
  1177. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1178. datadir sysconfdir sharedstatedir localstatedir includedir \
  1179. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1180. libdir localedir mandir
  1181. do
  1182. eval ac_val=\$$ac_var
  1183. # Remove trailing slashes.
  1184. case $ac_val in
  1185. */ )
  1186. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1187. eval $ac_var=\$ac_val;;
  1188. esac
  1189. # Be sure to have absolute directory names.
  1190. case $ac_val in
  1191. [\\/$]* | ?:[\\/]* ) continue;;
  1192. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1193. esac
  1194. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1195. done
  1196. # There might be people who depend on the old broken behavior: `$host'
  1197. # used to hold the argument of --host etc.
  1198. # FIXME: To remove some day.
  1199. build=$build_alias
  1200. host=$host_alias
  1201. target=$target_alias
  1202. # FIXME: To remove some day.
  1203. if test "x$host_alias" != x; then
  1204. if test "x$build_alias" = x; then
  1205. cross_compiling=maybe
  1206. elif test "x$build_alias" != "x$host_alias"; then
  1207. cross_compiling=yes
  1208. fi
  1209. fi
  1210. ac_tool_prefix=
  1211. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1212. test "$silent" = yes && exec 6>/dev/null
  1213. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1214. ac_ls_di=`ls -di .` &&
  1215. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1216. as_fn_error $? "working directory cannot be determined"
  1217. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1218. as_fn_error $? "pwd does not report name of working directory"
  1219. # Find the source files, if location was not specified.
  1220. if test -z "$srcdir"; then
  1221. ac_srcdir_defaulted=yes
  1222. # Try the directory containing this script, then the parent directory.
  1223. ac_confdir=`$as_dirname -- "$as_myself" ||
  1224. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1225. X"$as_myself" : 'X\(//\)[^/]' \| \
  1226. X"$as_myself" : 'X\(//\)$' \| \
  1227. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1228. $as_echo X"$as_myself" |
  1229. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1230. s//\1/
  1231. q
  1232. }
  1233. /^X\(\/\/\)[^/].*/{
  1234. s//\1/
  1235. q
  1236. }
  1237. /^X\(\/\/\)$/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\).*/{
  1242. s//\1/
  1243. q
  1244. }
  1245. s/.*/./; q'`
  1246. srcdir=$ac_confdir
  1247. if test ! -r "$srcdir/$ac_unique_file"; then
  1248. srcdir=..
  1249. fi
  1250. else
  1251. ac_srcdir_defaulted=no
  1252. fi
  1253. if test ! -r "$srcdir/$ac_unique_file"; then
  1254. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1255. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1256. fi
  1257. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1258. ac_abs_confdir=`(
  1259. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1260. pwd)`
  1261. # When building in place, set srcdir=.
  1262. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1263. srcdir=.
  1264. fi
  1265. # Remove unnecessary trailing slashes from srcdir.
  1266. # Double slashes in file names in object file debugging info
  1267. # mess up M-x gdb in Emacs.
  1268. case $srcdir in
  1269. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1270. esac
  1271. for ac_var in $ac_precious_vars; do
  1272. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1273. eval ac_env_${ac_var}_value=\$${ac_var}
  1274. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1275. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1276. done
  1277. #
  1278. # Report the --help message.
  1279. #
  1280. if test "$ac_init_help" = "long"; then
  1281. # Omit some internal or obsolete options to make the list less imposing.
  1282. # This message is too long to be a string in the A/UX 3.1 sh.
  1283. cat <<_ACEOF
  1284. \`configure' configures opus 1.3 to adapt to many kinds of systems.
  1285. Usage: $0 [OPTION]... [VAR=VALUE]...
  1286. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1287. VAR=VALUE. See below for descriptions of some of the useful variables.
  1288. Defaults for the options are specified in brackets.
  1289. Configuration:
  1290. -h, --help display this help and exit
  1291. --help=short display options specific to this package
  1292. --help=recursive display the short help of all the included packages
  1293. -V, --version display version information and exit
  1294. -q, --quiet, --silent do not print \`checking ...' messages
  1295. --cache-file=FILE cache test results in FILE [disabled]
  1296. -C, --config-cache alias for \`--cache-file=config.cache'
  1297. -n, --no-create do not create output files
  1298. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1299. Installation directories:
  1300. --prefix=PREFIX install architecture-independent files in PREFIX
  1301. [$ac_default_prefix]
  1302. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1303. [PREFIX]
  1304. By default, \`make install' will install all the files in
  1305. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1306. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1307. for instance \`--prefix=\$HOME'.
  1308. For better control, use the options below.
  1309. Fine tuning of the installation directories:
  1310. --bindir=DIR user executables [EPREFIX/bin]
  1311. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1312. --libexecdir=DIR program executables [EPREFIX/libexec]
  1313. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1314. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1315. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1316. --libdir=DIR object code libraries [EPREFIX/lib]
  1317. --includedir=DIR C header files [PREFIX/include]
  1318. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1319. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1320. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1321. --infodir=DIR info documentation [DATAROOTDIR/info]
  1322. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1323. --mandir=DIR man documentation [DATAROOTDIR/man]
  1324. --docdir=DIR documentation root [DATAROOTDIR/doc/opus]
  1325. --htmldir=DIR html documentation [DOCDIR]
  1326. --dvidir=DIR dvi documentation [DOCDIR]
  1327. --pdfdir=DIR pdf documentation [DOCDIR]
  1328. --psdir=DIR ps documentation [DOCDIR]
  1329. _ACEOF
  1330. cat <<\_ACEOF
  1331. Program names:
  1332. --program-prefix=PREFIX prepend PREFIX to installed program names
  1333. --program-suffix=SUFFIX append SUFFIX to installed program names
  1334. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1335. System types:
  1336. --build=BUILD configure for building on BUILD [guessed]
  1337. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1338. _ACEOF
  1339. fi
  1340. if test -n "$ac_init_help"; then
  1341. case $ac_init_help in
  1342. short | recursive ) echo "Configuration of opus 1.3:";;
  1343. esac
  1344. cat <<\_ACEOF
  1345. Optional Features:
  1346. --disable-option-checking ignore unrecognized --enable/--with options
  1347. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1348. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1349. --enable-silent-rules less verbose build output (undo: "make V=1")
  1350. --disable-silent-rules verbose build output (undo: "make V=0")
  1351. --disable-maintainer-mode
  1352. disable make rules and dependencies not useful (and
  1353. sometimes confusing) to the casual installer
  1354. --enable-shared[=PKGS] build shared libraries [default=yes]
  1355. --enable-static[=PKGS] build static libraries [default=yes]
  1356. --enable-fast-install[=PKGS]
  1357. optimize for fast installation [default=yes]
  1358. --enable-dependency-tracking
  1359. do not reject slow dependency extractors
  1360. --disable-dependency-tracking
  1361. speeds up one-time build
  1362. --disable-libtool-lock avoid locking (might break parallel builds)
  1363. --enable-fixed-point compile without floating point (for machines without
  1364. a fast enough FPU)
  1365. --enable-fixed-point-debug
  1366. debug fixed-point implementation
  1367. --disable-float-api compile without the floating point API (for machines
  1368. with no float library)
  1369. --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
  1370. --enable-float-approx enable fast approximations for floating point
  1371. --disable-asm Disable assembly optimizations
  1372. --disable-rtcd Disable run-time CPU capabilities detection
  1373. --disable-intrinsics Disable intrinsics optimizations
  1374. --enable-assertions enable additional software error checking
  1375. --disable-hardening disable run-time checks that are cheap and safe for
  1376. use in production
  1377. --enable-fuzzing causes the encoder to make random decisions (do not
  1378. use in production)
  1379. --enable-check-asm enable bit-exactness checks between optimized and c
  1380. implementations
  1381. --disable-doc Do not build API documentation
  1382. --disable-extra-programs
  1383. Do not build extra programs (demo and tests)
  1384. --disable-rfc8251 Disable bitstream fixes from RFC 8251
  1385. --disable-stack-protector
  1386. Disable compiler stack hardening
  1387. Optional Packages:
  1388. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1389. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1390. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1391. both]
  1392. --with-aix-soname=aix|svr4|both
  1393. shared library versioning (aka "SONAME") variant to
  1394. provide on AIX, [default=aix].
  1395. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1396. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1397. compiler's sysroot if not specified).
  1398. --with-NE10=PFX Prefix where libNE10 is installed (optional)
  1399. --with-NE10-libraries=DIR
  1400. Directory where libNE10 library is installed
  1401. (optional)
  1402. --with-NE10-includes=DIR
  1403. Directory where libNE10 header files are installed
  1404. (optional)
  1405. Some influential environment variables:
  1406. CC C compiler command
  1407. CFLAGS C compiler flags
  1408. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1409. nonstandard directory <lib dir>
  1410. LIBS libraries to pass to the linker, e.g. -l<library>
  1411. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1412. you have headers in a nonstandard directory <include dir>
  1413. LT_SYS_LIBRARY_PATH
  1414. User-defined run-time library search path.
  1415. CPP C preprocessor
  1416. CCAS assembler compiler command (defaults to CC)
  1417. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1418. X86_SSE_CFLAGS
  1419. C compiler flags to compile SSE intrinsics [default=-msse]
  1420. X86_SSE2_CFLAGS
  1421. C compiler flags to compile SSE2 intrinsics [default=-msse2]
  1422. X86_SSE4_1_CFLAGS
  1423. C compiler flags to compile SSE4.1 intrinsics [default=-msse4.1]
  1424. X86_AVX_CFLAGS
  1425. C compiler flags to compile AVX intrinsics [default=-mavx]
  1426. ARM_NEON_INTR_CFLAGS
  1427. C compiler flags to compile ARM NEON intrinsics
  1428. [default=-mfpu=neon / -mfpu=neon -mfloat-abi=softfp]
  1429. Use these variables to override the choices made by `configure' or to help
  1430. it to find libraries and programs with nonstandard names/locations.
  1431. Report bugs to <[email protected]>.
  1432. _ACEOF
  1433. ac_status=$?
  1434. fi
  1435. if test "$ac_init_help" = "recursive"; then
  1436. # If there are subdirs, report their specific --help.
  1437. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1438. test -d "$ac_dir" ||
  1439. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1440. continue
  1441. ac_builddir=.
  1442. case "$ac_dir" in
  1443. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1444. *)
  1445. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1446. # A ".." for each directory in $ac_dir_suffix.
  1447. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1448. case $ac_top_builddir_sub in
  1449. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1450. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1451. esac ;;
  1452. esac
  1453. ac_abs_top_builddir=$ac_pwd
  1454. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1455. # for backward compatibility:
  1456. ac_top_builddir=$ac_top_build_prefix
  1457. case $srcdir in
  1458. .) # We are building in place.
  1459. ac_srcdir=.
  1460. ac_top_srcdir=$ac_top_builddir_sub
  1461. ac_abs_top_srcdir=$ac_pwd ;;
  1462. [\\/]* | ?:[\\/]* ) # Absolute name.
  1463. ac_srcdir=$srcdir$ac_dir_suffix;
  1464. ac_top_srcdir=$srcdir
  1465. ac_abs_top_srcdir=$srcdir ;;
  1466. *) # Relative name.
  1467. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1468. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1469. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1470. esac
  1471. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1472. cd "$ac_dir" || { ac_status=$?; continue; }
  1473. # Check for guested configure.
  1474. if test -f "$ac_srcdir/configure.gnu"; then
  1475. echo &&
  1476. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1477. elif test -f "$ac_srcdir/configure"; then
  1478. echo &&
  1479. $SHELL "$ac_srcdir/configure" --help=recursive
  1480. else
  1481. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1482. fi || ac_status=$?
  1483. cd "$ac_pwd" || { ac_status=$?; break; }
  1484. done
  1485. fi
  1486. test -n "$ac_init_help" && exit $ac_status
  1487. if $ac_init_version; then
  1488. cat <<\_ACEOF
  1489. opus configure 1.3
  1490. generated by GNU Autoconf 2.69
  1491. Copyright (C) 2012 Free Software Foundation, Inc.
  1492. This configure script is free software; the Free Software Foundation
  1493. gives unlimited permission to copy, distribute and modify it.
  1494. _ACEOF
  1495. exit
  1496. fi
  1497. ## ------------------------ ##
  1498. ## Autoconf initialization. ##
  1499. ## ------------------------ ##
  1500. # ac_fn_c_try_compile LINENO
  1501. # --------------------------
  1502. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1503. ac_fn_c_try_compile ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. rm -f conftest.$ac_objext
  1507. if { { ac_try="$ac_compile"
  1508. case "(($ac_try" in
  1509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1510. *) ac_try_echo=$ac_try;;
  1511. esac
  1512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1513. $as_echo "$ac_try_echo"; } >&5
  1514. (eval "$ac_compile") 2>conftest.err
  1515. ac_status=$?
  1516. if test -s conftest.err; then
  1517. grep -v '^ *+' conftest.err >conftest.er1
  1518. cat conftest.er1 >&5
  1519. mv -f conftest.er1 conftest.err
  1520. fi
  1521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1522. test $ac_status = 0; } && {
  1523. test -z "$ac_c_werror_flag" ||
  1524. test ! -s conftest.err
  1525. } && test -s conftest.$ac_objext; then :
  1526. ac_retval=0
  1527. else
  1528. $as_echo "$as_me: failed program was:" >&5
  1529. sed 's/^/| /' conftest.$ac_ext >&5
  1530. ac_retval=1
  1531. fi
  1532. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1533. as_fn_set_status $ac_retval
  1534. } # ac_fn_c_try_compile
  1535. # ac_fn_c_try_link LINENO
  1536. # -----------------------
  1537. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1538. ac_fn_c_try_link ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. rm -f conftest.$ac_objext conftest$ac_exeext
  1542. if { { ac_try="$ac_link"
  1543. case "(($ac_try" in
  1544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1545. *) ac_try_echo=$ac_try;;
  1546. esac
  1547. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1548. $as_echo "$ac_try_echo"; } >&5
  1549. (eval "$ac_link") 2>conftest.err
  1550. ac_status=$?
  1551. if test -s conftest.err; then
  1552. grep -v '^ *+' conftest.err >conftest.er1
  1553. cat conftest.er1 >&5
  1554. mv -f conftest.er1 conftest.err
  1555. fi
  1556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1557. test $ac_status = 0; } && {
  1558. test -z "$ac_c_werror_flag" ||
  1559. test ! -s conftest.err
  1560. } && test -s conftest$ac_exeext && {
  1561. test "$cross_compiling" = yes ||
  1562. test -x conftest$ac_exeext
  1563. }; then :
  1564. ac_retval=0
  1565. else
  1566. $as_echo "$as_me: failed program was:" >&5
  1567. sed 's/^/| /' conftest.$ac_ext >&5
  1568. ac_retval=1
  1569. fi
  1570. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1571. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1572. # interfere with the next link command; also delete a directory that is
  1573. # left behind by Apple's compiler. We do this before executing the actions.
  1574. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1575. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1576. as_fn_set_status $ac_retval
  1577. } # ac_fn_c_try_link
  1578. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1579. # -------------------------------------------------------
  1580. # Tests whether HEADER exists and can be compiled using the include files in
  1581. # INCLUDES, setting the cache variable VAR accordingly.
  1582. ac_fn_c_check_header_compile ()
  1583. {
  1584. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1586. $as_echo_n "checking for $2... " >&6; }
  1587. if eval \${$3+:} false; then :
  1588. $as_echo_n "(cached) " >&6
  1589. else
  1590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1591. /* end confdefs.h. */
  1592. $4
  1593. #include <$2>
  1594. _ACEOF
  1595. if ac_fn_c_try_compile "$LINENO"; then :
  1596. eval "$3=yes"
  1597. else
  1598. eval "$3=no"
  1599. fi
  1600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1601. fi
  1602. eval ac_res=\$$3
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1604. $as_echo "$ac_res" >&6; }
  1605. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1606. } # ac_fn_c_check_header_compile
  1607. # ac_fn_c_try_cpp LINENO
  1608. # ----------------------
  1609. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1610. ac_fn_c_try_cpp ()
  1611. {
  1612. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1613. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1614. case "(($ac_try" in
  1615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1616. *) ac_try_echo=$ac_try;;
  1617. esac
  1618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1619. $as_echo "$ac_try_echo"; } >&5
  1620. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1621. ac_status=$?
  1622. if test -s conftest.err; then
  1623. grep -v '^ *+' conftest.err >conftest.er1
  1624. cat conftest.er1 >&5
  1625. mv -f conftest.er1 conftest.err
  1626. fi
  1627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1628. test $ac_status = 0; } > conftest.i && {
  1629. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1630. test ! -s conftest.err
  1631. }; then :
  1632. ac_retval=0
  1633. else
  1634. $as_echo "$as_me: failed program was:" >&5
  1635. sed 's/^/| /' conftest.$ac_ext >&5
  1636. ac_retval=1
  1637. fi
  1638. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1639. as_fn_set_status $ac_retval
  1640. } # ac_fn_c_try_cpp
  1641. # ac_fn_c_try_run LINENO
  1642. # ----------------------
  1643. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1644. # that executables *can* be run.
  1645. ac_fn_c_try_run ()
  1646. {
  1647. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648. if { { ac_try="$ac_link"
  1649. case "(($ac_try" in
  1650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1651. *) ac_try_echo=$ac_try;;
  1652. esac
  1653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1654. $as_echo "$ac_try_echo"; } >&5
  1655. (eval "$ac_link") 2>&5
  1656. ac_status=$?
  1657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1658. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1659. { { case "(($ac_try" in
  1660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1661. *) ac_try_echo=$ac_try;;
  1662. esac
  1663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1664. $as_echo "$ac_try_echo"; } >&5
  1665. (eval "$ac_try") 2>&5
  1666. ac_status=$?
  1667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1668. test $ac_status = 0; }; }; then :
  1669. ac_retval=0
  1670. else
  1671. $as_echo "$as_me: program exited with status $ac_status" >&5
  1672. $as_echo "$as_me: failed program was:" >&5
  1673. sed 's/^/| /' conftest.$ac_ext >&5
  1674. ac_retval=$ac_status
  1675. fi
  1676. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1677. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1678. as_fn_set_status $ac_retval
  1679. } # ac_fn_c_try_run
  1680. # ac_fn_c_check_func LINENO FUNC VAR
  1681. # ----------------------------------
  1682. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1683. ac_fn_c_check_func ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1687. $as_echo_n "checking for $2... " >&6; }
  1688. if eval \${$3+:} false; then :
  1689. $as_echo_n "(cached) " >&6
  1690. else
  1691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1692. /* end confdefs.h. */
  1693. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1694. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1695. #define $2 innocuous_$2
  1696. /* System header to define __stub macros and hopefully few prototypes,
  1697. which can conflict with char $2 (); below.
  1698. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1699. <limits.h> exists even on freestanding compilers. */
  1700. #ifdef __STDC__
  1701. # include <limits.h>
  1702. #else
  1703. # include <assert.h>
  1704. #endif
  1705. #undef $2
  1706. /* Override any GCC internal prototype to avoid an error.
  1707. Use char because int might match the return type of a GCC
  1708. builtin and then its argument prototype would still apply. */
  1709. #ifdef __cplusplus
  1710. extern "C"
  1711. #endif
  1712. char $2 ();
  1713. /* The GNU C library defines this for functions which it implements
  1714. to always fail with ENOSYS. Some functions are actually named
  1715. something starting with __ and the normal name is an alias. */
  1716. #if defined __stub_$2 || defined __stub___$2
  1717. choke me
  1718. #endif
  1719. int
  1720. main ()
  1721. {
  1722. return $2 ();
  1723. ;
  1724. return 0;
  1725. }
  1726. _ACEOF
  1727. if ac_fn_c_try_link "$LINENO"; then :
  1728. eval "$3=yes"
  1729. else
  1730. eval "$3=no"
  1731. fi
  1732. rm -f core conftest.err conftest.$ac_objext \
  1733. conftest$ac_exeext conftest.$ac_ext
  1734. fi
  1735. eval ac_res=\$$3
  1736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1737. $as_echo "$ac_res" >&6; }
  1738. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1739. } # ac_fn_c_check_func
  1740. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1741. # -------------------------------------------------------
  1742. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1743. # the include files in INCLUDES and setting the cache variable VAR
  1744. # accordingly.
  1745. ac_fn_c_check_header_mongrel ()
  1746. {
  1747. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1748. if eval \${$3+:} false; then :
  1749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1750. $as_echo_n "checking for $2... " >&6; }
  1751. if eval \${$3+:} false; then :
  1752. $as_echo_n "(cached) " >&6
  1753. fi
  1754. eval ac_res=\$$3
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1756. $as_echo "$ac_res" >&6; }
  1757. else
  1758. # Is the header compilable?
  1759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1760. $as_echo_n "checking $2 usability... " >&6; }
  1761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end confdefs.h. */
  1763. $4
  1764. #include <$2>
  1765. _ACEOF
  1766. if ac_fn_c_try_compile "$LINENO"; then :
  1767. ac_header_compiler=yes
  1768. else
  1769. ac_header_compiler=no
  1770. fi
  1771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1773. $as_echo "$ac_header_compiler" >&6; }
  1774. # Is the header present?
  1775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1776. $as_echo_n "checking $2 presence... " >&6; }
  1777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1778. /* end confdefs.h. */
  1779. #include <$2>
  1780. _ACEOF
  1781. if ac_fn_c_try_cpp "$LINENO"; then :
  1782. ac_header_preproc=yes
  1783. else
  1784. ac_header_preproc=no
  1785. fi
  1786. rm -f conftest.err conftest.i conftest.$ac_ext
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1788. $as_echo "$ac_header_preproc" >&6; }
  1789. # So? What about this header?
  1790. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1791. yes:no: )
  1792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1793. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1795. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1796. ;;
  1797. no:yes:* )
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1799. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1801. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1803. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1805. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1807. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1808. ( $as_echo "## ---------------------------- ##
  1809. ## Report this to [email protected] ##
  1810. ## ---------------------------- ##"
  1811. ) | sed "s/^/$as_me: WARNING: /" >&2
  1812. ;;
  1813. esac
  1814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1815. $as_echo_n "checking for $2... " >&6; }
  1816. if eval \${$3+:} false; then :
  1817. $as_echo_n "(cached) " >&6
  1818. else
  1819. eval "$3=\$ac_header_compiler"
  1820. fi
  1821. eval ac_res=\$$3
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1823. $as_echo "$ac_res" >&6; }
  1824. fi
  1825. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1826. } # ac_fn_c_check_header_mongrel
  1827. cat >config.log <<_ACEOF
  1828. This file contains any messages produced by compilers while
  1829. running configure, to aid debugging if configure makes a mistake.
  1830. It was created by opus $as_me 1.3, which was
  1831. generated by GNU Autoconf 2.69. Invocation command line was
  1832. $ $0 $@
  1833. _ACEOF
  1834. exec 5>>config.log
  1835. {
  1836. cat <<_ASUNAME
  1837. ## --------- ##
  1838. ## Platform. ##
  1839. ## --------- ##
  1840. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1841. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1842. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1843. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1844. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1845. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1846. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1847. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1848. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1849. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1850. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1851. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1852. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1853. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1854. _ASUNAME
  1855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1856. for as_dir in $PATH
  1857. do
  1858. IFS=$as_save_IFS
  1859. test -z "$as_dir" && as_dir=.
  1860. $as_echo "PATH: $as_dir"
  1861. done
  1862. IFS=$as_save_IFS
  1863. } >&5
  1864. cat >&5 <<_ACEOF
  1865. ## ----------- ##
  1866. ## Core tests. ##
  1867. ## ----------- ##
  1868. _ACEOF
  1869. # Keep a trace of the command line.
  1870. # Strip out --no-create and --no-recursion so they do not pile up.
  1871. # Strip out --silent because we don't want to record it for future runs.
  1872. # Also quote any args containing shell meta-characters.
  1873. # Make two passes to allow for proper duplicate-argument suppression.
  1874. ac_configure_args=
  1875. ac_configure_args0=
  1876. ac_configure_args1=
  1877. ac_must_keep_next=false
  1878. for ac_pass in 1 2
  1879. do
  1880. for ac_arg
  1881. do
  1882. case $ac_arg in
  1883. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1884. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1885. | -silent | --silent | --silen | --sile | --sil)
  1886. continue ;;
  1887. *\'*)
  1888. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1889. esac
  1890. case $ac_pass in
  1891. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1892. 2)
  1893. as_fn_append ac_configure_args1 " '$ac_arg'"
  1894. if test $ac_must_keep_next = true; then
  1895. ac_must_keep_next=false # Got value, back to normal.
  1896. else
  1897. case $ac_arg in
  1898. *=* | --config-cache | -C | -disable-* | --disable-* \
  1899. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1900. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1901. | -with-* | --with-* | -without-* | --without-* | --x)
  1902. case "$ac_configure_args0 " in
  1903. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1904. esac
  1905. ;;
  1906. -* ) ac_must_keep_next=true ;;
  1907. esac
  1908. fi
  1909. as_fn_append ac_configure_args " '$ac_arg'"
  1910. ;;
  1911. esac
  1912. done
  1913. done
  1914. { ac_configure_args0=; unset ac_configure_args0;}
  1915. { ac_configure_args1=; unset ac_configure_args1;}
  1916. # When interrupted or exit'd, cleanup temporary files, and complete
  1917. # config.log. We remove comments because anyway the quotes in there
  1918. # would cause problems or look ugly.
  1919. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1920. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1921. trap 'exit_status=$?
  1922. # Save into config.log some information that might help in debugging.
  1923. {
  1924. echo
  1925. $as_echo "## ---------------- ##
  1926. ## Cache variables. ##
  1927. ## ---------------- ##"
  1928. echo
  1929. # The following way of writing the cache mishandles newlines in values,
  1930. (
  1931. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1932. eval ac_val=\$$ac_var
  1933. case $ac_val in #(
  1934. *${as_nl}*)
  1935. case $ac_var in #(
  1936. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1937. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1938. esac
  1939. case $ac_var in #(
  1940. _ | IFS | as_nl) ;; #(
  1941. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1942. *) { eval $ac_var=; unset $ac_var;} ;;
  1943. esac ;;
  1944. esac
  1945. done
  1946. (set) 2>&1 |
  1947. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1948. *${as_nl}ac_space=\ *)
  1949. sed -n \
  1950. "s/'\''/'\''\\\\'\'''\''/g;
  1951. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1952. ;; #(
  1953. *)
  1954. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1955. ;;
  1956. esac |
  1957. sort
  1958. )
  1959. echo
  1960. $as_echo "## ----------------- ##
  1961. ## Output variables. ##
  1962. ## ----------------- ##"
  1963. echo
  1964. for ac_var in $ac_subst_vars
  1965. do
  1966. eval ac_val=\$$ac_var
  1967. case $ac_val in
  1968. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1969. esac
  1970. $as_echo "$ac_var='\''$ac_val'\''"
  1971. done | sort
  1972. echo
  1973. if test -n "$ac_subst_files"; then
  1974. $as_echo "## ------------------- ##
  1975. ## File substitutions. ##
  1976. ## ------------------- ##"
  1977. echo
  1978. for ac_var in $ac_subst_files
  1979. do
  1980. eval ac_val=\$$ac_var
  1981. case $ac_val in
  1982. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1983. esac
  1984. $as_echo "$ac_var='\''$ac_val'\''"
  1985. done | sort
  1986. echo
  1987. fi
  1988. if test -s confdefs.h; then
  1989. $as_echo "## ----------- ##
  1990. ## confdefs.h. ##
  1991. ## ----------- ##"
  1992. echo
  1993. cat confdefs.h
  1994. echo
  1995. fi
  1996. test "$ac_signal" != 0 &&
  1997. $as_echo "$as_me: caught signal $ac_signal"
  1998. $as_echo "$as_me: exit $exit_status"
  1999. } >&5
  2000. rm -f core *.core core.conftest.* &&
  2001. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2002. exit $exit_status
  2003. ' 0
  2004. for ac_signal in 1 2 13 15; do
  2005. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2006. done
  2007. ac_signal=0
  2008. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2009. rm -f -r conftest* confdefs.h
  2010. $as_echo "/* confdefs.h */" > confdefs.h
  2011. # Predefined preprocessor variables.
  2012. cat >>confdefs.h <<_ACEOF
  2013. #define PACKAGE_NAME "$PACKAGE_NAME"
  2014. _ACEOF
  2015. cat >>confdefs.h <<_ACEOF
  2016. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2017. _ACEOF
  2018. cat >>confdefs.h <<_ACEOF
  2019. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2020. _ACEOF
  2021. cat >>confdefs.h <<_ACEOF
  2022. #define PACKAGE_STRING "$PACKAGE_STRING"
  2023. _ACEOF
  2024. cat >>confdefs.h <<_ACEOF
  2025. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2026. _ACEOF
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE_URL "$PACKAGE_URL"
  2029. _ACEOF
  2030. # Let the site file select an alternate cache file if it wants to.
  2031. # Prefer an explicitly selected file to automatically selected ones.
  2032. ac_site_file1=NONE
  2033. ac_site_file2=NONE
  2034. if test -n "$CONFIG_SITE"; then
  2035. # We do not want a PATH search for config.site.
  2036. case $CONFIG_SITE in #((
  2037. -*) ac_site_file1=./$CONFIG_SITE;;
  2038. */*) ac_site_file1=$CONFIG_SITE;;
  2039. *) ac_site_file1=./$CONFIG_SITE;;
  2040. esac
  2041. elif test "x$prefix" != xNONE; then
  2042. ac_site_file1=$prefix/share/config.site
  2043. ac_site_file2=$prefix/etc/config.site
  2044. else
  2045. ac_site_file1=$ac_default_prefix/share/config.site
  2046. ac_site_file2=$ac_default_prefix/etc/config.site
  2047. fi
  2048. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2049. do
  2050. test "x$ac_site_file" = xNONE && continue
  2051. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2053. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2054. sed 's/^/| /' "$ac_site_file" >&5
  2055. . "$ac_site_file" \
  2056. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2057. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2058. as_fn_error $? "failed to load site script $ac_site_file
  2059. See \`config.log' for more details" "$LINENO" 5; }
  2060. fi
  2061. done
  2062. if test -r "$cache_file"; then
  2063. # Some versions of bash will fail to source /dev/null (special files
  2064. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2065. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2067. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2068. case $cache_file in
  2069. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2070. *) . "./$cache_file";;
  2071. esac
  2072. fi
  2073. else
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2075. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2076. >$cache_file
  2077. fi
  2078. # Check that the precious variables saved in the cache have kept the same
  2079. # value.
  2080. ac_cache_corrupted=false
  2081. for ac_var in $ac_precious_vars; do
  2082. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2083. eval ac_new_set=\$ac_env_${ac_var}_set
  2084. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2085. eval ac_new_val=\$ac_env_${ac_var}_value
  2086. case $ac_old_set,$ac_new_set in
  2087. set,)
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2089. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2090. ac_cache_corrupted=: ;;
  2091. ,set)
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2093. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2094. ac_cache_corrupted=: ;;
  2095. ,);;
  2096. *)
  2097. if test "x$ac_old_val" != "x$ac_new_val"; then
  2098. # differences in whitespace do not lead to failure.
  2099. ac_old_val_w=`echo x $ac_old_val`
  2100. ac_new_val_w=`echo x $ac_new_val`
  2101. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2103. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2104. ac_cache_corrupted=:
  2105. else
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2107. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2108. eval $ac_var=\$ac_old_val
  2109. fi
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2111. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2113. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2114. fi;;
  2115. esac
  2116. # Pass precious variables to config.status.
  2117. if test "$ac_new_set" = set; then
  2118. case $ac_new_val in
  2119. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2120. *) ac_arg=$ac_var=$ac_new_val ;;
  2121. esac
  2122. case " $ac_configure_args " in
  2123. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2124. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2125. esac
  2126. fi
  2127. done
  2128. if $ac_cache_corrupted; then
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2130. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2132. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2133. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2134. fi
  2135. ## -------------------- ##
  2136. ## Main body of script. ##
  2137. ## -------------------- ##
  2138. ac_ext=c
  2139. ac_cpp='$CPP $CPPFLAGS'
  2140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2143. # Check whether --enable-silent-rules was given.
  2144. if test "${enable_silent_rules+set}" = set; then :
  2145. enableval=$enable_silent_rules;
  2146. fi
  2147. case $enable_silent_rules in # (((
  2148. yes) AM_DEFAULT_VERBOSITY=0;;
  2149. no) AM_DEFAULT_VERBOSITY=1;;
  2150. *) AM_DEFAULT_VERBOSITY=0;;
  2151. esac
  2152. am_make=${MAKE-make}
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2154. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2155. if ${am_cv_make_support_nested_variables+:} false; then :
  2156. $as_echo_n "(cached) " >&6
  2157. else
  2158. if $as_echo 'TRUE=$(BAR$(V))
  2159. BAR0=false
  2160. BAR1=true
  2161. V=1
  2162. am__doit:
  2163. @$(TRUE)
  2164. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2165. am_cv_make_support_nested_variables=yes
  2166. else
  2167. am_cv_make_support_nested_variables=no
  2168. fi
  2169. fi
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2171. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2172. if test $am_cv_make_support_nested_variables = yes; then
  2173. AM_V='$(V)'
  2174. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2175. else
  2176. AM_V=$AM_DEFAULT_VERBOSITY
  2177. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2178. fi
  2179. AM_BACKSLASH='\'
  2180. # For libtool.
  2181. OPUS_LT_CURRENT=7
  2182. OPUS_LT_REVISION=0
  2183. OPUS_LT_AGE=7
  2184. am__api_version='1.15'
  2185. ac_aux_dir=
  2186. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2187. if test -f "$ac_dir/install-sh"; then
  2188. ac_aux_dir=$ac_dir
  2189. ac_install_sh="$ac_aux_dir/install-sh -c"
  2190. break
  2191. elif test -f "$ac_dir/install.sh"; then
  2192. ac_aux_dir=$ac_dir
  2193. ac_install_sh="$ac_aux_dir/install.sh -c"
  2194. break
  2195. elif test -f "$ac_dir/shtool"; then
  2196. ac_aux_dir=$ac_dir
  2197. ac_install_sh="$ac_aux_dir/shtool install -c"
  2198. break
  2199. fi
  2200. done
  2201. if test -z "$ac_aux_dir"; then
  2202. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2203. fi
  2204. # These three variables are undocumented and unsupported,
  2205. # and are intended to be withdrawn in a future Autoconf release.
  2206. # They can cause serious problems if a builder's source tree is in a directory
  2207. # whose full name contains unusual characters.
  2208. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2209. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2210. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2211. # Find a good install program. We prefer a C program (faster),
  2212. # so one script is as good as another. But avoid the broken or
  2213. # incompatible versions:
  2214. # SysV /etc/install, /usr/sbin/install
  2215. # SunOS /usr/etc/install
  2216. # IRIX /sbin/install
  2217. # AIX /bin/install
  2218. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2219. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2220. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2221. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2222. # OS/2's system install, which has a completely different semantic
  2223. # ./install, which can be erroneously created by make from ./install.sh.
  2224. # Reject install programs that cannot install multiple files.
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2226. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2227. if test -z "$INSTALL"; then
  2228. if ${ac_cv_path_install+:} false; then :
  2229. $as_echo_n "(cached) " >&6
  2230. else
  2231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2232. for as_dir in $PATH
  2233. do
  2234. IFS=$as_save_IFS
  2235. test -z "$as_dir" && as_dir=.
  2236. # Account for people who put trailing slashes in PATH elements.
  2237. case $as_dir/ in #((
  2238. ./ | .// | /[cC]/* | \
  2239. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2240. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2241. /usr/ucb/* ) ;;
  2242. *)
  2243. # OSF1 and SCO ODT 3.0 have their own names for install.
  2244. # Don't use installbsd from OSF since it installs stuff as root
  2245. # by default.
  2246. for ac_prog in ginstall scoinst install; do
  2247. for ac_exec_ext in '' $ac_executable_extensions; do
  2248. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2249. if test $ac_prog = install &&
  2250. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2251. # AIX install. It has an incompatible calling convention.
  2252. :
  2253. elif test $ac_prog = install &&
  2254. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2255. # program-specific install script used by HP pwplus--don't use.
  2256. :
  2257. else
  2258. rm -rf conftest.one conftest.two conftest.dir
  2259. echo one > conftest.one
  2260. echo two > conftest.two
  2261. mkdir conftest.dir
  2262. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2263. test -s conftest.one && test -s conftest.two &&
  2264. test -s conftest.dir/conftest.one &&
  2265. test -s conftest.dir/conftest.two
  2266. then
  2267. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2268. break 3
  2269. fi
  2270. fi
  2271. fi
  2272. done
  2273. done
  2274. ;;
  2275. esac
  2276. done
  2277. IFS=$as_save_IFS
  2278. rm -rf conftest.one conftest.two conftest.dir
  2279. fi
  2280. if test "${ac_cv_path_install+set}" = set; then
  2281. INSTALL=$ac_cv_path_install
  2282. else
  2283. # As a last resort, use the slow shell script. Don't cache a
  2284. # value for INSTALL within a source directory, because that will
  2285. # break other packages using the cache if that directory is
  2286. # removed, or if the value is a relative name.
  2287. INSTALL=$ac_install_sh
  2288. fi
  2289. fi
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2291. $as_echo "$INSTALL" >&6; }
  2292. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2293. # It thinks the first close brace ends the variable substitution.
  2294. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2295. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2296. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2298. $as_echo_n "checking whether build environment is sane... " >&6; }
  2299. # Reject unsafe characters in $srcdir or the absolute working directory
  2300. # name. Accept space and tab only in the latter.
  2301. am_lf='
  2302. '
  2303. case `pwd` in
  2304. *[\\\"\#\$\&\'\`$am_lf]*)
  2305. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2306. esac
  2307. case $srcdir in
  2308. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2309. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2310. esac
  2311. # Do 'set' in a subshell so we don't clobber the current shell's
  2312. # arguments. Must try -L first in case configure is actually a
  2313. # symlink; some systems play weird games with the mod time of symlinks
  2314. # (eg FreeBSD returns the mod time of the symlink's containing
  2315. # directory).
  2316. if (
  2317. am_has_slept=no
  2318. for am_try in 1 2; do
  2319. echo "timestamp, slept: $am_has_slept" > conftest.file
  2320. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2321. if test "$*" = "X"; then
  2322. # -L didn't work.
  2323. set X `ls -t "$srcdir/configure" conftest.file`
  2324. fi
  2325. if test "$*" != "X $srcdir/configure conftest.file" \
  2326. && test "$*" != "X conftest.file $srcdir/configure"; then
  2327. # If neither matched, then we have a broken ls. This can happen
  2328. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2329. # broken ls alias from the environment. This has actually
  2330. # happened. Such a system could not be considered "sane".
  2331. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2332. alias in your environment" "$LINENO" 5
  2333. fi
  2334. if test "$2" = conftest.file || test $am_try -eq 2; then
  2335. break
  2336. fi
  2337. # Just in case.
  2338. sleep 1
  2339. am_has_slept=yes
  2340. done
  2341. test "$2" = conftest.file
  2342. )
  2343. then
  2344. # Ok.
  2345. :
  2346. else
  2347. as_fn_error $? "newly created file is older than distributed files!
  2348. Check your system clock" "$LINENO" 5
  2349. fi
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2351. $as_echo "yes" >&6; }
  2352. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2353. # generated files are strictly newer.
  2354. am_sleep_pid=
  2355. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2356. ( sleep 1 ) &
  2357. am_sleep_pid=$!
  2358. fi
  2359. rm -f conftest.file
  2360. test "$program_prefix" != NONE &&
  2361. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2362. # Use a double $ so make ignores it.
  2363. test "$program_suffix" != NONE &&
  2364. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2365. # Double any \ or $.
  2366. # By default was `s,x,x', remove it if useless.
  2367. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2368. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2369. # Expand $ac_aux_dir to an absolute path.
  2370. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2371. if test x"${MISSING+set}" != xset; then
  2372. case $am_aux_dir in
  2373. *\ * | *\ *)
  2374. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2375. *)
  2376. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2377. esac
  2378. fi
  2379. # Use eval to expand $SHELL
  2380. if eval "$MISSING --is-lightweight"; then
  2381. am_missing_run="$MISSING "
  2382. else
  2383. am_missing_run=
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2385. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2386. fi
  2387. if test x"${install_sh+set}" != xset; then
  2388. case $am_aux_dir in
  2389. *\ * | *\ *)
  2390. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2391. *)
  2392. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2393. esac
  2394. fi
  2395. # Installed binaries are usually stripped using 'strip' when the user
  2396. # run "make install-strip". However 'strip' might not be the right
  2397. # tool to use in cross-compilation environments, therefore Automake
  2398. # will honor the 'STRIP' environment variable to overrule this program.
  2399. if test "$cross_compiling" != no; then
  2400. if test -n "$ac_tool_prefix"; then
  2401. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2402. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2404. $as_echo_n "checking for $ac_word... " >&6; }
  2405. if ${ac_cv_prog_STRIP+:} false; then :
  2406. $as_echo_n "(cached) " >&6
  2407. else
  2408. if test -n "$STRIP"; then
  2409. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2410. else
  2411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2412. for as_dir in $PATH
  2413. do
  2414. IFS=$as_save_IFS
  2415. test -z "$as_dir" && as_dir=.
  2416. for ac_exec_ext in '' $ac_executable_extensions; do
  2417. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2418. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2420. break 2
  2421. fi
  2422. done
  2423. done
  2424. IFS=$as_save_IFS
  2425. fi
  2426. fi
  2427. STRIP=$ac_cv_prog_STRIP
  2428. if test -n "$STRIP"; then
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2430. $as_echo "$STRIP" >&6; }
  2431. else
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2433. $as_echo "no" >&6; }
  2434. fi
  2435. fi
  2436. if test -z "$ac_cv_prog_STRIP"; then
  2437. ac_ct_STRIP=$STRIP
  2438. # Extract the first word of "strip", so it can be a program name with args.
  2439. set dummy strip; ac_word=$2
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2441. $as_echo_n "checking for $ac_word... " >&6; }
  2442. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2443. $as_echo_n "(cached) " >&6
  2444. else
  2445. if test -n "$ac_ct_STRIP"; then
  2446. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2447. else
  2448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2449. for as_dir in $PATH
  2450. do
  2451. IFS=$as_save_IFS
  2452. test -z "$as_dir" && as_dir=.
  2453. for ac_exec_ext in '' $ac_executable_extensions; do
  2454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2455. ac_cv_prog_ac_ct_STRIP="strip"
  2456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2457. break 2
  2458. fi
  2459. done
  2460. done
  2461. IFS=$as_save_IFS
  2462. fi
  2463. fi
  2464. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2465. if test -n "$ac_ct_STRIP"; then
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2467. $as_echo "$ac_ct_STRIP" >&6; }
  2468. else
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2470. $as_echo "no" >&6; }
  2471. fi
  2472. if test "x$ac_ct_STRIP" = x; then
  2473. STRIP=":"
  2474. else
  2475. case $cross_compiling:$ac_tool_warned in
  2476. yes:)
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2478. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2479. ac_tool_warned=yes ;;
  2480. esac
  2481. STRIP=$ac_ct_STRIP
  2482. fi
  2483. else
  2484. STRIP="$ac_cv_prog_STRIP"
  2485. fi
  2486. fi
  2487. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2489. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2490. if test -z "$MKDIR_P"; then
  2491. if ${ac_cv_path_mkdir+:} false; then :
  2492. $as_echo_n "(cached) " >&6
  2493. else
  2494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2495. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2496. do
  2497. IFS=$as_save_IFS
  2498. test -z "$as_dir" && as_dir=.
  2499. for ac_prog in mkdir gmkdir; do
  2500. for ac_exec_ext in '' $ac_executable_extensions; do
  2501. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2502. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2503. 'mkdir (GNU coreutils) '* | \
  2504. 'mkdir (coreutils) '* | \
  2505. 'mkdir (fileutils) '4.1*)
  2506. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2507. break 3;;
  2508. esac
  2509. done
  2510. done
  2511. done
  2512. IFS=$as_save_IFS
  2513. fi
  2514. test -d ./--version && rmdir ./--version
  2515. if test "${ac_cv_path_mkdir+set}" = set; then
  2516. MKDIR_P="$ac_cv_path_mkdir -p"
  2517. else
  2518. # As a last resort, use the slow shell script. Don't cache a
  2519. # value for MKDIR_P within a source directory, because that will
  2520. # break other packages using the cache if that directory is
  2521. # removed, or if the value is a relative name.
  2522. MKDIR_P="$ac_install_sh -d"
  2523. fi
  2524. fi
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2526. $as_echo "$MKDIR_P" >&6; }
  2527. for ac_prog in gawk mawk nawk awk
  2528. do
  2529. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2530. set dummy $ac_prog; ac_word=$2
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2532. $as_echo_n "checking for $ac_word... " >&6; }
  2533. if ${ac_cv_prog_AWK+:} false; then :
  2534. $as_echo_n "(cached) " >&6
  2535. else
  2536. if test -n "$AWK"; then
  2537. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2538. else
  2539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2540. for as_dir in $PATH
  2541. do
  2542. IFS=$as_save_IFS
  2543. test -z "$as_dir" && as_dir=.
  2544. for ac_exec_ext in '' $ac_executable_extensions; do
  2545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2546. ac_cv_prog_AWK="$ac_prog"
  2547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2548. break 2
  2549. fi
  2550. done
  2551. done
  2552. IFS=$as_save_IFS
  2553. fi
  2554. fi
  2555. AWK=$ac_cv_prog_AWK
  2556. if test -n "$AWK"; then
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2558. $as_echo "$AWK" >&6; }
  2559. else
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2561. $as_echo "no" >&6; }
  2562. fi
  2563. test -n "$AWK" && break
  2564. done
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2566. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2567. set x ${MAKE-make}
  2568. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2569. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2570. $as_echo_n "(cached) " >&6
  2571. else
  2572. cat >conftest.make <<\_ACEOF
  2573. SHELL = /bin/sh
  2574. all:
  2575. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2576. _ACEOF
  2577. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2578. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2579. *@@@%%%=?*=@@@%%%*)
  2580. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2581. *)
  2582. eval ac_cv_prog_make_${ac_make}_set=no;;
  2583. esac
  2584. rm -f conftest.make
  2585. fi
  2586. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2588. $as_echo "yes" >&6; }
  2589. SET_MAKE=
  2590. else
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2592. $as_echo "no" >&6; }
  2593. SET_MAKE="MAKE=${MAKE-make}"
  2594. fi
  2595. rm -rf .tst 2>/dev/null
  2596. mkdir .tst 2>/dev/null
  2597. if test -d .tst; then
  2598. am__leading_dot=.
  2599. else
  2600. am__leading_dot=_
  2601. fi
  2602. rmdir .tst 2>/dev/null
  2603. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2604. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2605. # is not polluted with repeated "-I."
  2606. am__isrc=' -I$(srcdir)'
  2607. # test to see if srcdir already configured
  2608. if test -f $srcdir/config.status; then
  2609. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2610. fi
  2611. fi
  2612. # test whether we have cygpath
  2613. if test -z "$CYGPATH_W"; then
  2614. if (cygpath --version) >/dev/null 2>/dev/null; then
  2615. CYGPATH_W='cygpath -w'
  2616. else
  2617. CYGPATH_W=echo
  2618. fi
  2619. fi
  2620. # Define the identity of the package.
  2621. PACKAGE='opus'
  2622. VERSION='1.3'
  2623. # Some tools Automake needs.
  2624. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2625. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2626. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2627. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2628. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2629. # For better backward compatibility. To be removed once Automake 1.9.x
  2630. # dies out for good. For more background, see:
  2631. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2632. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2633. mkdir_p='$(MKDIR_P)'
  2634. # We need awk for the "check" target (and possibly the TAP driver). The
  2635. # system "awk" is bad on some platforms.
  2636. # Always define AMTAR for backward compatibility. Yes, it's still used
  2637. # in the wild :-( We should find a proper way to deprecate it ...
  2638. AMTAR='$${TAR-tar}'
  2639. # We'll loop over all known methods to create a tar archive until one works.
  2640. _am_tools='gnutar pax cpio none'
  2641. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2642. # POSIX will say in a future version that running "rm -f" with no argument
  2643. # is OK; and we want to be able to make that assumption in our Makefile
  2644. # recipes. So use an aggressive probe to check that the usage we want is
  2645. # actually supported "in the wild" to an acceptable degree.
  2646. # See automake bug#10828.
  2647. # To make any issue more visible, cause the running configure to be aborted
  2648. # by default if the 'rm' program in use doesn't match our expectations; the
  2649. # user can still override this though.
  2650. if rm -f && rm -fr && rm -rf; then : OK; else
  2651. cat >&2 <<'END'
  2652. Oops!
  2653. Your 'rm' program seems unable to run without file operands specified
  2654. on the command line, even when the '-f' option is present. This is contrary
  2655. to the behaviour of most rm programs out there, and not conforming with
  2656. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2657. Please tell [email protected] about your system, including the value
  2658. of your $PATH and any error possibly output before this message. This
  2659. can help us improve future automake versions.
  2660. END
  2661. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2662. echo 'Configuration will proceed anyway, since you have set the' >&2
  2663. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2664. echo >&2
  2665. else
  2666. cat >&2 <<'END'
  2667. Aborting the configuration process, to ensure you take notice of the issue.
  2668. You can download and install GNU coreutils to get an 'rm' implementation
  2669. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2670. If you want to complete the configuration process using your problematic
  2671. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2672. to "yes", and re-run configure.
  2673. END
  2674. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2675. fi
  2676. fi
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2678. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2679. # Check whether --enable-maintainer-mode was given.
  2680. if test "${enable_maintainer_mode+set}" = set; then :
  2681. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2682. else
  2683. USE_MAINTAINER_MODE=yes
  2684. fi
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2686. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2687. if test $USE_MAINTAINER_MODE = yes; then
  2688. MAINTAINER_MODE_TRUE=
  2689. MAINTAINER_MODE_FALSE='#'
  2690. else
  2691. MAINTAINER_MODE_TRUE='#'
  2692. MAINTAINER_MODE_FALSE=
  2693. fi
  2694. MAINT=$MAINTAINER_MODE_TRUE
  2695. # Make sure we can run config.sub.
  2696. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2697. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2699. $as_echo_n "checking build system type... " >&6; }
  2700. if ${ac_cv_build+:} false; then :
  2701. $as_echo_n "(cached) " >&6
  2702. else
  2703. ac_build_alias=$build_alias
  2704. test "x$ac_build_alias" = x &&
  2705. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2706. test "x$ac_build_alias" = x &&
  2707. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2708. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2709. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2710. fi
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2712. $as_echo "$ac_cv_build" >&6; }
  2713. case $ac_cv_build in
  2714. *-*-*) ;;
  2715. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2716. esac
  2717. build=$ac_cv_build
  2718. ac_save_IFS=$IFS; IFS='-'
  2719. set x $ac_cv_build
  2720. shift
  2721. build_cpu=$1
  2722. build_vendor=$2
  2723. shift; shift
  2724. # Remember, the first character of IFS is used to create $*,
  2725. # except with old shells:
  2726. build_os=$*
  2727. IFS=$ac_save_IFS
  2728. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2730. $as_echo_n "checking host system type... " >&6; }
  2731. if ${ac_cv_host+:} false; then :
  2732. $as_echo_n "(cached) " >&6
  2733. else
  2734. if test "x$host_alias" = x; then
  2735. ac_cv_host=$ac_cv_build
  2736. else
  2737. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2738. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2739. fi
  2740. fi
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2742. $as_echo "$ac_cv_host" >&6; }
  2743. case $ac_cv_host in
  2744. *-*-*) ;;
  2745. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2746. esac
  2747. host=$ac_cv_host
  2748. ac_save_IFS=$IFS; IFS='-'
  2749. set x $ac_cv_host
  2750. shift
  2751. host_cpu=$1
  2752. host_vendor=$2
  2753. shift; shift
  2754. # Remember, the first character of IFS is used to create $*,
  2755. # except with old shells:
  2756. host_os=$*
  2757. IFS=$ac_save_IFS
  2758. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2759. case $host_os in
  2760. *mingw32* ) MINGW32=yes;;
  2761. * ) MINGW32=no;;
  2762. esac
  2763. case `pwd` in
  2764. *\ * | *\ *)
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2766. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2767. esac
  2768. macro_version='2.4.6'
  2769. macro_revision='2.4.6'
  2770. ltmain=$ac_aux_dir/ltmain.sh
  2771. # Backslashify metacharacters that are still active within
  2772. # double-quoted strings.
  2773. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2774. # Same as above, but do not quote variable references.
  2775. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2776. # Sed substitution to delay expansion of an escaped shell variable in a
  2777. # double_quote_subst'ed string.
  2778. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2779. # Sed substitution to delay expansion of an escaped single quote.
  2780. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2781. # Sed substitution to avoid accidental globbing in evaled expressions
  2782. no_glob_subst='s/\*/\\\*/g'
  2783. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2784. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2785. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2787. $as_echo_n "checking how to print strings... " >&6; }
  2788. # Test print first, because it will be a builtin if present.
  2789. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2790. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2791. ECHO='print -r --'
  2792. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2793. ECHO='printf %s\n'
  2794. else
  2795. # Use this function as a fallback that always works.
  2796. func_fallback_echo ()
  2797. {
  2798. eval 'cat <<_LTECHO_EOF
  2799. $1
  2800. _LTECHO_EOF'
  2801. }
  2802. ECHO='func_fallback_echo'
  2803. fi
  2804. # func_echo_all arg...
  2805. # Invoke $ECHO with all args, space-separated.
  2806. func_echo_all ()
  2807. {
  2808. $ECHO ""
  2809. }
  2810. case $ECHO in
  2811. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2812. $as_echo "printf" >&6; } ;;
  2813. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2814. $as_echo "print -r" >&6; } ;;
  2815. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2816. $as_echo "cat" >&6; } ;;
  2817. esac
  2818. DEPDIR="${am__leading_dot}deps"
  2819. ac_config_commands="$ac_config_commands depfiles"
  2820. am_make=${MAKE-make}
  2821. cat > confinc << 'END'
  2822. am__doit:
  2823. @echo this is the am__doit target
  2824. .PHONY: am__doit
  2825. END
  2826. # If we don't find an include directive, just comment out the code.
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2828. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2829. am__include="#"
  2830. am__quote=
  2831. _am_result=none
  2832. # First try GNU make style include.
  2833. echo "include confinc" > confmf
  2834. # Ignore all kinds of additional output from 'make'.
  2835. case `$am_make -s -f confmf 2> /dev/null` in #(
  2836. *the\ am__doit\ target*)
  2837. am__include=include
  2838. am__quote=
  2839. _am_result=GNU
  2840. ;;
  2841. esac
  2842. # Now try BSD make style include.
  2843. if test "$am__include" = "#"; then
  2844. echo '.include "confinc"' > confmf
  2845. case `$am_make -s -f confmf 2> /dev/null` in #(
  2846. *the\ am__doit\ target*)
  2847. am__include=.include
  2848. am__quote="\""
  2849. _am_result=BSD
  2850. ;;
  2851. esac
  2852. fi
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2854. $as_echo "$_am_result" >&6; }
  2855. rm -f confinc confmf
  2856. # Check whether --enable-dependency-tracking was given.
  2857. if test "${enable_dependency_tracking+set}" = set; then :
  2858. enableval=$enable_dependency_tracking;
  2859. fi
  2860. if test "x$enable_dependency_tracking" != xno; then
  2861. am_depcomp="$ac_aux_dir/depcomp"
  2862. AMDEPBACKSLASH='\'
  2863. am__nodep='_no'
  2864. fi
  2865. if test "x$enable_dependency_tracking" != xno; then
  2866. AMDEP_TRUE=
  2867. AMDEP_FALSE='#'
  2868. else
  2869. AMDEP_TRUE='#'
  2870. AMDEP_FALSE=
  2871. fi
  2872. ac_ext=c
  2873. ac_cpp='$CPP $CPPFLAGS'
  2874. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2875. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2876. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2877. if test -n "$ac_tool_prefix"; then
  2878. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2879. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2881. $as_echo_n "checking for $ac_word... " >&6; }
  2882. if ${ac_cv_prog_CC+:} false; then :
  2883. $as_echo_n "(cached) " >&6
  2884. else
  2885. if test -n "$CC"; then
  2886. ac_cv_prog_CC="$CC" # Let the user override the test.
  2887. else
  2888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2889. for as_dir in $PATH
  2890. do
  2891. IFS=$as_save_IFS
  2892. test -z "$as_dir" && as_dir=.
  2893. for ac_exec_ext in '' $ac_executable_extensions; do
  2894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2895. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2897. break 2
  2898. fi
  2899. done
  2900. done
  2901. IFS=$as_save_IFS
  2902. fi
  2903. fi
  2904. CC=$ac_cv_prog_CC
  2905. if test -n "$CC"; then
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2907. $as_echo "$CC" >&6; }
  2908. else
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2910. $as_echo "no" >&6; }
  2911. fi
  2912. fi
  2913. if test -z "$ac_cv_prog_CC"; then
  2914. ac_ct_CC=$CC
  2915. # Extract the first word of "gcc", so it can be a program name with args.
  2916. set dummy gcc; ac_word=$2
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2918. $as_echo_n "checking for $ac_word... " >&6; }
  2919. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2920. $as_echo_n "(cached) " >&6
  2921. else
  2922. if test -n "$ac_ct_CC"; then
  2923. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2924. else
  2925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2926. for as_dir in $PATH
  2927. do
  2928. IFS=$as_save_IFS
  2929. test -z "$as_dir" && as_dir=.
  2930. for ac_exec_ext in '' $ac_executable_extensions; do
  2931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2932. ac_cv_prog_ac_ct_CC="gcc"
  2933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2934. break 2
  2935. fi
  2936. done
  2937. done
  2938. IFS=$as_save_IFS
  2939. fi
  2940. fi
  2941. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2942. if test -n "$ac_ct_CC"; then
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2944. $as_echo "$ac_ct_CC" >&6; }
  2945. else
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2947. $as_echo "no" >&6; }
  2948. fi
  2949. if test "x$ac_ct_CC" = x; then
  2950. CC=""
  2951. else
  2952. case $cross_compiling:$ac_tool_warned in
  2953. yes:)
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2956. ac_tool_warned=yes ;;
  2957. esac
  2958. CC=$ac_ct_CC
  2959. fi
  2960. else
  2961. CC="$ac_cv_prog_CC"
  2962. fi
  2963. if test -z "$CC"; then
  2964. if test -n "$ac_tool_prefix"; then
  2965. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2966. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2968. $as_echo_n "checking for $ac_word... " >&6; }
  2969. if ${ac_cv_prog_CC+:} false; then :
  2970. $as_echo_n "(cached) " >&6
  2971. else
  2972. if test -n "$CC"; then
  2973. ac_cv_prog_CC="$CC" # Let the user override the test.
  2974. else
  2975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2976. for as_dir in $PATH
  2977. do
  2978. IFS=$as_save_IFS
  2979. test -z "$as_dir" && as_dir=.
  2980. for ac_exec_ext in '' $ac_executable_extensions; do
  2981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2982. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2984. break 2
  2985. fi
  2986. done
  2987. done
  2988. IFS=$as_save_IFS
  2989. fi
  2990. fi
  2991. CC=$ac_cv_prog_CC
  2992. if test -n "$CC"; then
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2994. $as_echo "$CC" >&6; }
  2995. else
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2997. $as_echo "no" >&6; }
  2998. fi
  2999. fi
  3000. fi
  3001. if test -z "$CC"; then
  3002. # Extract the first word of "cc", so it can be a program name with args.
  3003. set dummy cc; ac_word=$2
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3005. $as_echo_n "checking for $ac_word... " >&6; }
  3006. if ${ac_cv_prog_CC+:} false; then :
  3007. $as_echo_n "(cached) " >&6
  3008. else
  3009. if test -n "$CC"; then
  3010. ac_cv_prog_CC="$CC" # Let the user override the test.
  3011. else
  3012. ac_prog_rejected=no
  3013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3014. for as_dir in $PATH
  3015. do
  3016. IFS=$as_save_IFS
  3017. test -z "$as_dir" && as_dir=.
  3018. for ac_exec_ext in '' $ac_executable_extensions; do
  3019. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3020. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3021. ac_prog_rejected=yes
  3022. continue
  3023. fi
  3024. ac_cv_prog_CC="cc"
  3025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3026. break 2
  3027. fi
  3028. done
  3029. done
  3030. IFS=$as_save_IFS
  3031. if test $ac_prog_rejected = yes; then
  3032. # We found a bogon in the path, so make sure we never use it.
  3033. set dummy $ac_cv_prog_CC
  3034. shift
  3035. if test $# != 0; then
  3036. # We chose a different compiler from the bogus one.
  3037. # However, it has the same basename, so the bogon will be chosen
  3038. # first if we set CC to just the basename; use the full file name.
  3039. shift
  3040. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3041. fi
  3042. fi
  3043. fi
  3044. fi
  3045. CC=$ac_cv_prog_CC
  3046. if test -n "$CC"; then
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3048. $as_echo "$CC" >&6; }
  3049. else
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3051. $as_echo "no" >&6; }
  3052. fi
  3053. fi
  3054. if test -z "$CC"; then
  3055. if test -n "$ac_tool_prefix"; then
  3056. for ac_prog in cl.exe
  3057. do
  3058. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3059. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3061. $as_echo_n "checking for $ac_word... " >&6; }
  3062. if ${ac_cv_prog_CC+:} false; then :
  3063. $as_echo_n "(cached) " >&6
  3064. else
  3065. if test -n "$CC"; then
  3066. ac_cv_prog_CC="$CC" # Let the user override the test.
  3067. else
  3068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3069. for as_dir in $PATH
  3070. do
  3071. IFS=$as_save_IFS
  3072. test -z "$as_dir" && as_dir=.
  3073. for ac_exec_ext in '' $ac_executable_extensions; do
  3074. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3075. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3077. break 2
  3078. fi
  3079. done
  3080. done
  3081. IFS=$as_save_IFS
  3082. fi
  3083. fi
  3084. CC=$ac_cv_prog_CC
  3085. if test -n "$CC"; then
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3087. $as_echo "$CC" >&6; }
  3088. else
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3090. $as_echo "no" >&6; }
  3091. fi
  3092. test -n "$CC" && break
  3093. done
  3094. fi
  3095. if test -z "$CC"; then
  3096. ac_ct_CC=$CC
  3097. for ac_prog in cl.exe
  3098. do
  3099. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3100. set dummy $ac_prog; ac_word=$2
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3102. $as_echo_n "checking for $ac_word... " >&6; }
  3103. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3104. $as_echo_n "(cached) " >&6
  3105. else
  3106. if test -n "$ac_ct_CC"; then
  3107. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3108. else
  3109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3110. for as_dir in $PATH
  3111. do
  3112. IFS=$as_save_IFS
  3113. test -z "$as_dir" && as_dir=.
  3114. for ac_exec_ext in '' $ac_executable_extensions; do
  3115. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3116. ac_cv_prog_ac_ct_CC="$ac_prog"
  3117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3118. break 2
  3119. fi
  3120. done
  3121. done
  3122. IFS=$as_save_IFS
  3123. fi
  3124. fi
  3125. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3126. if test -n "$ac_ct_CC"; then
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3128. $as_echo "$ac_ct_CC" >&6; }
  3129. else
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3131. $as_echo "no" >&6; }
  3132. fi
  3133. test -n "$ac_ct_CC" && break
  3134. done
  3135. if test "x$ac_ct_CC" = x; then
  3136. CC=""
  3137. else
  3138. case $cross_compiling:$ac_tool_warned in
  3139. yes:)
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3141. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3142. ac_tool_warned=yes ;;
  3143. esac
  3144. CC=$ac_ct_CC
  3145. fi
  3146. fi
  3147. fi
  3148. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3149. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3150. as_fn_error $? "no acceptable C compiler found in \$PATH
  3151. See \`config.log' for more details" "$LINENO" 5; }
  3152. # Provide some information about the compiler.
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3154. set X $ac_compile
  3155. ac_compiler=$2
  3156. for ac_option in --version -v -V -qversion; do
  3157. { { ac_try="$ac_compiler $ac_option >&5"
  3158. case "(($ac_try" in
  3159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3160. *) ac_try_echo=$ac_try;;
  3161. esac
  3162. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3163. $as_echo "$ac_try_echo"; } >&5
  3164. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3165. ac_status=$?
  3166. if test -s conftest.err; then
  3167. sed '10a\
  3168. ... rest of stderr output deleted ...
  3169. 10q' conftest.err >conftest.er1
  3170. cat conftest.er1 >&5
  3171. fi
  3172. rm -f conftest.er1 conftest.err
  3173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3174. test $ac_status = 0; }
  3175. done
  3176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3177. /* end confdefs.h. */
  3178. int
  3179. main ()
  3180. {
  3181. ;
  3182. return 0;
  3183. }
  3184. _ACEOF
  3185. ac_clean_files_save=$ac_clean_files
  3186. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3187. # Try to create an executable without -o first, disregard a.out.
  3188. # It will help us diagnose broken compilers, and finding out an intuition
  3189. # of exeext.
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3191. $as_echo_n "checking whether the C compiler works... " >&6; }
  3192. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3193. # The possible output files:
  3194. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3195. ac_rmfiles=
  3196. for ac_file in $ac_files
  3197. do
  3198. case $ac_file in
  3199. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3200. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3201. esac
  3202. done
  3203. rm -f $ac_rmfiles
  3204. if { { ac_try="$ac_link_default"
  3205. case "(($ac_try" in
  3206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3207. *) ac_try_echo=$ac_try;;
  3208. esac
  3209. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3210. $as_echo "$ac_try_echo"; } >&5
  3211. (eval "$ac_link_default") 2>&5
  3212. ac_status=$?
  3213. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3214. test $ac_status = 0; }; then :
  3215. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3216. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3217. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3218. # so that the user can short-circuit this test for compilers unknown to
  3219. # Autoconf.
  3220. for ac_file in $ac_files ''
  3221. do
  3222. test -f "$ac_file" || continue
  3223. case $ac_file in
  3224. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3225. ;;
  3226. [ab].out )
  3227. # We found the default executable, but exeext='' is most
  3228. # certainly right.
  3229. break;;
  3230. *.* )
  3231. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3232. then :; else
  3233. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3234. fi
  3235. # We set ac_cv_exeext here because the later test for it is not
  3236. # safe: cross compilers may not add the suffix if given an `-o'
  3237. # argument, so we may need to know it at that point already.
  3238. # Even if this section looks crufty: it has the advantage of
  3239. # actually working.
  3240. break;;
  3241. * )
  3242. break;;
  3243. esac
  3244. done
  3245. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3246. else
  3247. ac_file=''
  3248. fi
  3249. if test -z "$ac_file"; then :
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3251. $as_echo "no" >&6; }
  3252. $as_echo "$as_me: failed program was:" >&5
  3253. sed 's/^/| /' conftest.$ac_ext >&5
  3254. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3255. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3256. as_fn_error 77 "C compiler cannot create executables
  3257. See \`config.log' for more details" "$LINENO" 5; }
  3258. else
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3260. $as_echo "yes" >&6; }
  3261. fi
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3263. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3265. $as_echo "$ac_file" >&6; }
  3266. ac_exeext=$ac_cv_exeext
  3267. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3268. ac_clean_files=$ac_clean_files_save
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3270. $as_echo_n "checking for suffix of executables... " >&6; }
  3271. if { { ac_try="$ac_link"
  3272. case "(($ac_try" in
  3273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3274. *) ac_try_echo=$ac_try;;
  3275. esac
  3276. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3277. $as_echo "$ac_try_echo"; } >&5
  3278. (eval "$ac_link") 2>&5
  3279. ac_status=$?
  3280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3281. test $ac_status = 0; }; then :
  3282. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3283. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3284. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3285. # `rm'.
  3286. for ac_file in conftest.exe conftest conftest.*; do
  3287. test -f "$ac_file" || continue
  3288. case $ac_file in
  3289. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3290. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3291. break;;
  3292. * ) break;;
  3293. esac
  3294. done
  3295. else
  3296. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3297. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3298. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3299. See \`config.log' for more details" "$LINENO" 5; }
  3300. fi
  3301. rm -f conftest conftest$ac_cv_exeext
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3303. $as_echo "$ac_cv_exeext" >&6; }
  3304. rm -f conftest.$ac_ext
  3305. EXEEXT=$ac_cv_exeext
  3306. ac_exeext=$EXEEXT
  3307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3308. /* end confdefs.h. */
  3309. #include <stdio.h>
  3310. int
  3311. main ()
  3312. {
  3313. FILE *f = fopen ("conftest.out", "w");
  3314. return ferror (f) || fclose (f) != 0;
  3315. ;
  3316. return 0;
  3317. }
  3318. _ACEOF
  3319. ac_clean_files="$ac_clean_files conftest.out"
  3320. # Check that the compiler produces executables we can run. If not, either
  3321. # the compiler is broken, or we cross compile.
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3323. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3324. if test "$cross_compiling" != yes; then
  3325. { { ac_try="$ac_link"
  3326. case "(($ac_try" in
  3327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3328. *) ac_try_echo=$ac_try;;
  3329. esac
  3330. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3331. $as_echo "$ac_try_echo"; } >&5
  3332. (eval "$ac_link") 2>&5
  3333. ac_status=$?
  3334. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3335. test $ac_status = 0; }
  3336. if { ac_try='./conftest$ac_cv_exeext'
  3337. { { case "(($ac_try" in
  3338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3339. *) ac_try_echo=$ac_try;;
  3340. esac
  3341. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3342. $as_echo "$ac_try_echo"; } >&5
  3343. (eval "$ac_try") 2>&5
  3344. ac_status=$?
  3345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3346. test $ac_status = 0; }; }; then
  3347. cross_compiling=no
  3348. else
  3349. if test "$cross_compiling" = maybe; then
  3350. cross_compiling=yes
  3351. else
  3352. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3353. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3354. as_fn_error $? "cannot run C compiled programs.
  3355. If you meant to cross compile, use \`--host'.
  3356. See \`config.log' for more details" "$LINENO" 5; }
  3357. fi
  3358. fi
  3359. fi
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3361. $as_echo "$cross_compiling" >&6; }
  3362. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3363. ac_clean_files=$ac_clean_files_save
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3365. $as_echo_n "checking for suffix of object files... " >&6; }
  3366. if ${ac_cv_objext+:} false; then :
  3367. $as_echo_n "(cached) " >&6
  3368. else
  3369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3370. /* end confdefs.h. */
  3371. int
  3372. main ()
  3373. {
  3374. ;
  3375. return 0;
  3376. }
  3377. _ACEOF
  3378. rm -f conftest.o conftest.obj
  3379. if { { ac_try="$ac_compile"
  3380. case "(($ac_try" in
  3381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3382. *) ac_try_echo=$ac_try;;
  3383. esac
  3384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3385. $as_echo "$ac_try_echo"; } >&5
  3386. (eval "$ac_compile") 2>&5
  3387. ac_status=$?
  3388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3389. test $ac_status = 0; }; then :
  3390. for ac_file in conftest.o conftest.obj conftest.*; do
  3391. test -f "$ac_file" || continue;
  3392. case $ac_file in
  3393. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3394. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3395. break;;
  3396. esac
  3397. done
  3398. else
  3399. $as_echo "$as_me: failed program was:" >&5
  3400. sed 's/^/| /' conftest.$ac_ext >&5
  3401. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3402. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3403. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3404. See \`config.log' for more details" "$LINENO" 5; }
  3405. fi
  3406. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3407. fi
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3409. $as_echo "$ac_cv_objext" >&6; }
  3410. OBJEXT=$ac_cv_objext
  3411. ac_objext=$OBJEXT
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3413. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3414. if ${ac_cv_c_compiler_gnu+:} false; then :
  3415. $as_echo_n "(cached) " >&6
  3416. else
  3417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3418. /* end confdefs.h. */
  3419. int
  3420. main ()
  3421. {
  3422. #ifndef __GNUC__
  3423. choke me
  3424. #endif
  3425. ;
  3426. return 0;
  3427. }
  3428. _ACEOF
  3429. if ac_fn_c_try_compile "$LINENO"; then :
  3430. ac_compiler_gnu=yes
  3431. else
  3432. ac_compiler_gnu=no
  3433. fi
  3434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3435. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3436. fi
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3438. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3439. if test $ac_compiler_gnu = yes; then
  3440. GCC=yes
  3441. else
  3442. GCC=
  3443. fi
  3444. ac_test_CFLAGS=${CFLAGS+set}
  3445. ac_save_CFLAGS=$CFLAGS
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3447. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3448. if ${ac_cv_prog_cc_g+:} false; then :
  3449. $as_echo_n "(cached) " >&6
  3450. else
  3451. ac_save_c_werror_flag=$ac_c_werror_flag
  3452. ac_c_werror_flag=yes
  3453. ac_cv_prog_cc_g=no
  3454. CFLAGS="-g"
  3455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3456. /* end confdefs.h. */
  3457. int
  3458. main ()
  3459. {
  3460. ;
  3461. return 0;
  3462. }
  3463. _ACEOF
  3464. if ac_fn_c_try_compile "$LINENO"; then :
  3465. ac_cv_prog_cc_g=yes
  3466. else
  3467. CFLAGS=""
  3468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3469. /* end confdefs.h. */
  3470. int
  3471. main ()
  3472. {
  3473. ;
  3474. return 0;
  3475. }
  3476. _ACEOF
  3477. if ac_fn_c_try_compile "$LINENO"; then :
  3478. else
  3479. ac_c_werror_flag=$ac_save_c_werror_flag
  3480. CFLAGS="-g"
  3481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3482. /* end confdefs.h. */
  3483. int
  3484. main ()
  3485. {
  3486. ;
  3487. return 0;
  3488. }
  3489. _ACEOF
  3490. if ac_fn_c_try_compile "$LINENO"; then :
  3491. ac_cv_prog_cc_g=yes
  3492. fi
  3493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3494. fi
  3495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3496. fi
  3497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3498. ac_c_werror_flag=$ac_save_c_werror_flag
  3499. fi
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3501. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3502. if test "$ac_test_CFLAGS" = set; then
  3503. CFLAGS=$ac_save_CFLAGS
  3504. elif test $ac_cv_prog_cc_g = yes; then
  3505. if test "$GCC" = yes; then
  3506. CFLAGS="-g -O2"
  3507. else
  3508. CFLAGS="-g"
  3509. fi
  3510. else
  3511. if test "$GCC" = yes; then
  3512. CFLAGS="-O2"
  3513. else
  3514. CFLAGS=
  3515. fi
  3516. fi
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3518. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3519. if ${ac_cv_prog_cc_c89+:} false; then :
  3520. $as_echo_n "(cached) " >&6
  3521. else
  3522. ac_cv_prog_cc_c89=no
  3523. ac_save_CC=$CC
  3524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3525. /* end confdefs.h. */
  3526. #include <stdarg.h>
  3527. #include <stdio.h>
  3528. struct stat;
  3529. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3530. struct buf { int x; };
  3531. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3532. static char *e (p, i)
  3533. char **p;
  3534. int i;
  3535. {
  3536. return p[i];
  3537. }
  3538. static char *f (char * (*g) (char **, int), char **p, ...)
  3539. {
  3540. char *s;
  3541. va_list v;
  3542. va_start (v,p);
  3543. s = g (p, va_arg (v,int));
  3544. va_end (v);
  3545. return s;
  3546. }
  3547. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3548. function prototypes and stuff, but not '\xHH' hex character constants.
  3549. These don't provoke an error unfortunately, instead are silently treated
  3550. as 'x'. The following induces an error, until -std is added to get
  3551. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3552. array size at least. It's necessary to write '\x00'==0 to get something
  3553. that's true only with -std. */
  3554. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3555. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3556. inside strings and character constants. */
  3557. #define FOO(x) 'x'
  3558. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3559. int test (int i, double x);
  3560. struct s1 {int (*f) (int a);};
  3561. struct s2 {int (*f) (double a);};
  3562. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3563. int argc;
  3564. char **argv;
  3565. int
  3566. main ()
  3567. {
  3568. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3569. ;
  3570. return 0;
  3571. }
  3572. _ACEOF
  3573. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3574. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3575. do
  3576. CC="$ac_save_CC $ac_arg"
  3577. if ac_fn_c_try_compile "$LINENO"; then :
  3578. ac_cv_prog_cc_c89=$ac_arg
  3579. fi
  3580. rm -f core conftest.err conftest.$ac_objext
  3581. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3582. done
  3583. rm -f conftest.$ac_ext
  3584. CC=$ac_save_CC
  3585. fi
  3586. # AC_CACHE_VAL
  3587. case "x$ac_cv_prog_cc_c89" in
  3588. x)
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3590. $as_echo "none needed" >&6; } ;;
  3591. xno)
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3593. $as_echo "unsupported" >&6; } ;;
  3594. *)
  3595. CC="$CC $ac_cv_prog_cc_c89"
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3597. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3598. esac
  3599. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3600. fi
  3601. ac_ext=c
  3602. ac_cpp='$CPP $CPPFLAGS'
  3603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3606. ac_ext=c
  3607. ac_cpp='$CPP $CPPFLAGS'
  3608. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3609. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3610. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3612. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3613. if ${am_cv_prog_cc_c_o+:} false; then :
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3617. /* end confdefs.h. */
  3618. int
  3619. main ()
  3620. {
  3621. ;
  3622. return 0;
  3623. }
  3624. _ACEOF
  3625. # Make sure it works both with $CC and with simple cc.
  3626. # Following AC_PROG_CC_C_O, we do the test twice because some
  3627. # compilers refuse to overwrite an existing .o file with -o,
  3628. # though they will create one.
  3629. am_cv_prog_cc_c_o=yes
  3630. for am_i in 1 2; do
  3631. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3632. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3633. ac_status=$?
  3634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3635. (exit $ac_status); } \
  3636. && test -f conftest2.$ac_objext; then
  3637. : OK
  3638. else
  3639. am_cv_prog_cc_c_o=no
  3640. break
  3641. fi
  3642. done
  3643. rm -f core conftest*
  3644. unset am_i
  3645. fi
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3647. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3648. if test "$am_cv_prog_cc_c_o" != yes; then
  3649. # Losing compiler, so override with the script.
  3650. # FIXME: It is wrong to rewrite CC.
  3651. # But if we don't then we get into trouble of one sort or another.
  3652. # A longer-term fix would be to have automake use am__CC in this case,
  3653. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3654. CC="$am_aux_dir/compile $CC"
  3655. fi
  3656. ac_ext=c
  3657. ac_cpp='$CPP $CPPFLAGS'
  3658. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3659. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3660. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3661. depcc="$CC" am_compiler_list=
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3663. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3664. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3665. $as_echo_n "(cached) " >&6
  3666. else
  3667. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3668. # We make a subdir and do the tests there. Otherwise we can end up
  3669. # making bogus files that we don't know about and never remove. For
  3670. # instance it was reported that on HP-UX the gcc test will end up
  3671. # making a dummy file named 'D' -- because '-MD' means "put the output
  3672. # in D".
  3673. rm -rf conftest.dir
  3674. mkdir conftest.dir
  3675. # Copy depcomp to subdir because otherwise we won't find it if we're
  3676. # using a relative directory.
  3677. cp "$am_depcomp" conftest.dir
  3678. cd conftest.dir
  3679. # We will build objects and dependencies in a subdirectory because
  3680. # it helps to detect inapplicable dependency modes. For instance
  3681. # both Tru64's cc and ICC support -MD to output dependencies as a
  3682. # side effect of compilation, but ICC will put the dependencies in
  3683. # the current directory while Tru64 will put them in the object
  3684. # directory.
  3685. mkdir sub
  3686. am_cv_CC_dependencies_compiler_type=none
  3687. if test "$am_compiler_list" = ""; then
  3688. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3689. fi
  3690. am__universal=false
  3691. case " $depcc " in #(
  3692. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3693. esac
  3694. for depmode in $am_compiler_list; do
  3695. # Setup a source with many dependencies, because some compilers
  3696. # like to wrap large dependency lists on column 80 (with \), and
  3697. # we should not choose a depcomp mode which is confused by this.
  3698. #
  3699. # We need to recreate these files for each test, as the compiler may
  3700. # overwrite some of them when testing with obscure command lines.
  3701. # This happens at least with the AIX C compiler.
  3702. : > sub/conftest.c
  3703. for i in 1 2 3 4 5 6; do
  3704. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3705. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3706. # Solaris 10 /bin/sh.
  3707. echo '/* dummy */' > sub/conftst$i.h
  3708. done
  3709. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3710. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3711. # mode. It turns out that the SunPro C++ compiler does not properly
  3712. # handle '-M -o', and we need to detect this. Also, some Intel
  3713. # versions had trouble with output in subdirs.
  3714. am__obj=sub/conftest.${OBJEXT-o}
  3715. am__minus_obj="-o $am__obj"
  3716. case $depmode in
  3717. gcc)
  3718. # This depmode causes a compiler race in universal mode.
  3719. test "$am__universal" = false || continue
  3720. ;;
  3721. nosideeffect)
  3722. # After this tag, mechanisms are not by side-effect, so they'll
  3723. # only be used when explicitly requested.
  3724. if test "x$enable_dependency_tracking" = xyes; then
  3725. continue
  3726. else
  3727. break
  3728. fi
  3729. ;;
  3730. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3731. # This compiler won't grok '-c -o', but also, the minuso test has
  3732. # not run yet. These depmodes are late enough in the game, and
  3733. # so weak that their functioning should not be impacted.
  3734. am__obj=conftest.${OBJEXT-o}
  3735. am__minus_obj=
  3736. ;;
  3737. none) break ;;
  3738. esac
  3739. if depmode=$depmode \
  3740. source=sub/conftest.c object=$am__obj \
  3741. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3742. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3743. >/dev/null 2>conftest.err &&
  3744. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3745. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3746. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3747. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3748. # icc doesn't choke on unknown options, it will just issue warnings
  3749. # or remarks (even with -Werror). So we grep stderr for any message
  3750. # that says an option was ignored or not supported.
  3751. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3752. # icc: Command line warning: ignoring option '-M'; no argument required
  3753. # The diagnosis changed in icc 8.0:
  3754. # icc: Command line remark: option '-MP' not supported
  3755. if (grep 'ignoring option' conftest.err ||
  3756. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3757. am_cv_CC_dependencies_compiler_type=$depmode
  3758. break
  3759. fi
  3760. fi
  3761. done
  3762. cd ..
  3763. rm -rf conftest.dir
  3764. else
  3765. am_cv_CC_dependencies_compiler_type=none
  3766. fi
  3767. fi
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3769. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3770. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3771. if
  3772. test "x$enable_dependency_tracking" != xno \
  3773. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3774. am__fastdepCC_TRUE=
  3775. am__fastdepCC_FALSE='#'
  3776. else
  3777. am__fastdepCC_TRUE='#'
  3778. am__fastdepCC_FALSE=
  3779. fi
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3781. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3782. if ${ac_cv_path_SED+:} false; then :
  3783. $as_echo_n "(cached) " >&6
  3784. else
  3785. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3786. for ac_i in 1 2 3 4 5 6 7; do
  3787. ac_script="$ac_script$as_nl$ac_script"
  3788. done
  3789. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3790. { ac_script=; unset ac_script;}
  3791. if test -z "$SED"; then
  3792. ac_path_SED_found=false
  3793. # Loop through the user's path and test for each of PROGNAME-LIST
  3794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3795. for as_dir in $PATH
  3796. do
  3797. IFS=$as_save_IFS
  3798. test -z "$as_dir" && as_dir=.
  3799. for ac_prog in sed gsed; do
  3800. for ac_exec_ext in '' $ac_executable_extensions; do
  3801. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3802. as_fn_executable_p "$ac_path_SED" || continue
  3803. # Check for GNU ac_path_SED and select it if it is found.
  3804. # Check for GNU $ac_path_SED
  3805. case `"$ac_path_SED" --version 2>&1` in
  3806. *GNU*)
  3807. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3808. *)
  3809. ac_count=0
  3810. $as_echo_n 0123456789 >"conftest.in"
  3811. while :
  3812. do
  3813. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3814. mv "conftest.tmp" "conftest.in"
  3815. cp "conftest.in" "conftest.nl"
  3816. $as_echo '' >> "conftest.nl"
  3817. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3818. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3819. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3820. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3821. # Best one so far, save it but keep looking for a better one
  3822. ac_cv_path_SED="$ac_path_SED"
  3823. ac_path_SED_max=$ac_count
  3824. fi
  3825. # 10*(2^10) chars as input seems more than enough
  3826. test $ac_count -gt 10 && break
  3827. done
  3828. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3829. esac
  3830. $ac_path_SED_found && break 3
  3831. done
  3832. done
  3833. done
  3834. IFS=$as_save_IFS
  3835. if test -z "$ac_cv_path_SED"; then
  3836. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3837. fi
  3838. else
  3839. ac_cv_path_SED=$SED
  3840. fi
  3841. fi
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3843. $as_echo "$ac_cv_path_SED" >&6; }
  3844. SED="$ac_cv_path_SED"
  3845. rm -f conftest.sed
  3846. test -z "$SED" && SED=sed
  3847. Xsed="$SED -e 1s/^X//"
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3849. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3850. if ${ac_cv_path_GREP+:} false; then :
  3851. $as_echo_n "(cached) " >&6
  3852. else
  3853. if test -z "$GREP"; then
  3854. ac_path_GREP_found=false
  3855. # Loop through the user's path and test for each of PROGNAME-LIST
  3856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3857. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3858. do
  3859. IFS=$as_save_IFS
  3860. test -z "$as_dir" && as_dir=.
  3861. for ac_prog in grep ggrep; do
  3862. for ac_exec_ext in '' $ac_executable_extensions; do
  3863. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3864. as_fn_executable_p "$ac_path_GREP" || continue
  3865. # Check for GNU ac_path_GREP and select it if it is found.
  3866. # Check for GNU $ac_path_GREP
  3867. case `"$ac_path_GREP" --version 2>&1` in
  3868. *GNU*)
  3869. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3870. *)
  3871. ac_count=0
  3872. $as_echo_n 0123456789 >"conftest.in"
  3873. while :
  3874. do
  3875. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3876. mv "conftest.tmp" "conftest.in"
  3877. cp "conftest.in" "conftest.nl"
  3878. $as_echo 'GREP' >> "conftest.nl"
  3879. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3880. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3881. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3882. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3883. # Best one so far, save it but keep looking for a better one
  3884. ac_cv_path_GREP="$ac_path_GREP"
  3885. ac_path_GREP_max=$ac_count
  3886. fi
  3887. # 10*(2^10) chars as input seems more than enough
  3888. test $ac_count -gt 10 && break
  3889. done
  3890. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3891. esac
  3892. $ac_path_GREP_found && break 3
  3893. done
  3894. done
  3895. done
  3896. IFS=$as_save_IFS
  3897. if test -z "$ac_cv_path_GREP"; then
  3898. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3899. fi
  3900. else
  3901. ac_cv_path_GREP=$GREP
  3902. fi
  3903. fi
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3905. $as_echo "$ac_cv_path_GREP" >&6; }
  3906. GREP="$ac_cv_path_GREP"
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3908. $as_echo_n "checking for egrep... " >&6; }
  3909. if ${ac_cv_path_EGREP+:} false; then :
  3910. $as_echo_n "(cached) " >&6
  3911. else
  3912. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3913. then ac_cv_path_EGREP="$GREP -E"
  3914. else
  3915. if test -z "$EGREP"; then
  3916. ac_path_EGREP_found=false
  3917. # Loop through the user's path and test for each of PROGNAME-LIST
  3918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3919. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3920. do
  3921. IFS=$as_save_IFS
  3922. test -z "$as_dir" && as_dir=.
  3923. for ac_prog in egrep; do
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3926. as_fn_executable_p "$ac_path_EGREP" || continue
  3927. # Check for GNU ac_path_EGREP and select it if it is found.
  3928. # Check for GNU $ac_path_EGREP
  3929. case `"$ac_path_EGREP" --version 2>&1` in
  3930. *GNU*)
  3931. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3932. *)
  3933. ac_count=0
  3934. $as_echo_n 0123456789 >"conftest.in"
  3935. while :
  3936. do
  3937. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3938. mv "conftest.tmp" "conftest.in"
  3939. cp "conftest.in" "conftest.nl"
  3940. $as_echo 'EGREP' >> "conftest.nl"
  3941. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3942. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3943. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3944. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3945. # Best one so far, save it but keep looking for a better one
  3946. ac_cv_path_EGREP="$ac_path_EGREP"
  3947. ac_path_EGREP_max=$ac_count
  3948. fi
  3949. # 10*(2^10) chars as input seems more than enough
  3950. test $ac_count -gt 10 && break
  3951. done
  3952. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3953. esac
  3954. $ac_path_EGREP_found && break 3
  3955. done
  3956. done
  3957. done
  3958. IFS=$as_save_IFS
  3959. if test -z "$ac_cv_path_EGREP"; then
  3960. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3961. fi
  3962. else
  3963. ac_cv_path_EGREP=$EGREP
  3964. fi
  3965. fi
  3966. fi
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3968. $as_echo "$ac_cv_path_EGREP" >&6; }
  3969. EGREP="$ac_cv_path_EGREP"
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3971. $as_echo_n "checking for fgrep... " >&6; }
  3972. if ${ac_cv_path_FGREP+:} false; then :
  3973. $as_echo_n "(cached) " >&6
  3974. else
  3975. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3976. then ac_cv_path_FGREP="$GREP -F"
  3977. else
  3978. if test -z "$FGREP"; then
  3979. ac_path_FGREP_found=false
  3980. # Loop through the user's path and test for each of PROGNAME-LIST
  3981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3982. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3983. do
  3984. IFS=$as_save_IFS
  3985. test -z "$as_dir" && as_dir=.
  3986. for ac_prog in fgrep; do
  3987. for ac_exec_ext in '' $ac_executable_extensions; do
  3988. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3989. as_fn_executable_p "$ac_path_FGREP" || continue
  3990. # Check for GNU ac_path_FGREP and select it if it is found.
  3991. # Check for GNU $ac_path_FGREP
  3992. case `"$ac_path_FGREP" --version 2>&1` in
  3993. *GNU*)
  3994. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3995. *)
  3996. ac_count=0
  3997. $as_echo_n 0123456789 >"conftest.in"
  3998. while :
  3999. do
  4000. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4001. mv "conftest.tmp" "conftest.in"
  4002. cp "conftest.in" "conftest.nl"
  4003. $as_echo 'FGREP' >> "conftest.nl"
  4004. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4005. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4006. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4007. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4008. # Best one so far, save it but keep looking for a better one
  4009. ac_cv_path_FGREP="$ac_path_FGREP"
  4010. ac_path_FGREP_max=$ac_count
  4011. fi
  4012. # 10*(2^10) chars as input seems more than enough
  4013. test $ac_count -gt 10 && break
  4014. done
  4015. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4016. esac
  4017. $ac_path_FGREP_found && break 3
  4018. done
  4019. done
  4020. done
  4021. IFS=$as_save_IFS
  4022. if test -z "$ac_cv_path_FGREP"; then
  4023. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4024. fi
  4025. else
  4026. ac_cv_path_FGREP=$FGREP
  4027. fi
  4028. fi
  4029. fi
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4031. $as_echo "$ac_cv_path_FGREP" >&6; }
  4032. FGREP="$ac_cv_path_FGREP"
  4033. test -z "$GREP" && GREP=grep
  4034. # Check whether --with-gnu-ld was given.
  4035. if test "${with_gnu_ld+set}" = set; then :
  4036. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4037. else
  4038. with_gnu_ld=no
  4039. fi
  4040. ac_prog=ld
  4041. if test yes = "$GCC"; then
  4042. # Check if gcc -print-prog-name=ld gives a path.
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4044. $as_echo_n "checking for ld used by $CC... " >&6; }
  4045. case $host in
  4046. *-*-mingw*)
  4047. # gcc leaves a trailing carriage return, which upsets mingw
  4048. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4049. *)
  4050. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4051. esac
  4052. case $ac_prog in
  4053. # Accept absolute paths.
  4054. [\\/]* | ?:[\\/]*)
  4055. re_direlt='/[^/][^/]*/\.\./'
  4056. # Canonicalize the pathname of ld
  4057. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4058. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4059. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4060. done
  4061. test -z "$LD" && LD=$ac_prog
  4062. ;;
  4063. "")
  4064. # If it fails, then pretend we aren't using GCC.
  4065. ac_prog=ld
  4066. ;;
  4067. *)
  4068. # If it is relative, then search for the first ld in PATH.
  4069. with_gnu_ld=unknown
  4070. ;;
  4071. esac
  4072. elif test yes = "$with_gnu_ld"; then
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4074. $as_echo_n "checking for GNU ld... " >&6; }
  4075. else
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4077. $as_echo_n "checking for non-GNU ld... " >&6; }
  4078. fi
  4079. if ${lt_cv_path_LD+:} false; then :
  4080. $as_echo_n "(cached) " >&6
  4081. else
  4082. if test -z "$LD"; then
  4083. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4084. for ac_dir in $PATH; do
  4085. IFS=$lt_save_ifs
  4086. test -z "$ac_dir" && ac_dir=.
  4087. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4088. lt_cv_path_LD=$ac_dir/$ac_prog
  4089. # Check to see if the program is GNU ld. I'd rather use --version,
  4090. # but apparently some variants of GNU ld only accept -v.
  4091. # Break only if it was the GNU/non-GNU ld that we prefer.
  4092. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4093. *GNU* | *'with BFD'*)
  4094. test no != "$with_gnu_ld" && break
  4095. ;;
  4096. *)
  4097. test yes != "$with_gnu_ld" && break
  4098. ;;
  4099. esac
  4100. fi
  4101. done
  4102. IFS=$lt_save_ifs
  4103. else
  4104. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4105. fi
  4106. fi
  4107. LD=$lt_cv_path_LD
  4108. if test -n "$LD"; then
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4110. $as_echo "$LD" >&6; }
  4111. else
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4113. $as_echo "no" >&6; }
  4114. fi
  4115. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4117. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4118. if ${lt_cv_prog_gnu_ld+:} false; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4122. case `$LD -v 2>&1 </dev/null` in
  4123. *GNU* | *'with BFD'*)
  4124. lt_cv_prog_gnu_ld=yes
  4125. ;;
  4126. *)
  4127. lt_cv_prog_gnu_ld=no
  4128. ;;
  4129. esac
  4130. fi
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4132. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4133. with_gnu_ld=$lt_cv_prog_gnu_ld
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4135. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4136. if ${lt_cv_path_NM+:} false; then :
  4137. $as_echo_n "(cached) " >&6
  4138. else
  4139. if test -n "$NM"; then
  4140. # Let the user override the test.
  4141. lt_cv_path_NM=$NM
  4142. else
  4143. lt_nm_to_check=${ac_tool_prefix}nm
  4144. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4145. lt_nm_to_check="$lt_nm_to_check nm"
  4146. fi
  4147. for lt_tmp_nm in $lt_nm_to_check; do
  4148. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4149. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4150. IFS=$lt_save_ifs
  4151. test -z "$ac_dir" && ac_dir=.
  4152. tmp_nm=$ac_dir/$lt_tmp_nm
  4153. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4154. # Check to see if the nm accepts a BSD-compat flag.
  4155. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4156. # nm: unknown option "B" ignored
  4157. # Tru64's nm complains that /dev/null is an invalid object file
  4158. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4159. case $build_os in
  4160. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4161. *) lt_bad_file=/dev/null ;;
  4162. esac
  4163. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4164. *$lt_bad_file* | *'Invalid file or object type'*)
  4165. lt_cv_path_NM="$tmp_nm -B"
  4166. break 2
  4167. ;;
  4168. *)
  4169. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4170. */dev/null*)
  4171. lt_cv_path_NM="$tmp_nm -p"
  4172. break 2
  4173. ;;
  4174. *)
  4175. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4176. continue # so that we can try to find one that supports BSD flags
  4177. ;;
  4178. esac
  4179. ;;
  4180. esac
  4181. fi
  4182. done
  4183. IFS=$lt_save_ifs
  4184. done
  4185. : ${lt_cv_path_NM=no}
  4186. fi
  4187. fi
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4189. $as_echo "$lt_cv_path_NM" >&6; }
  4190. if test no != "$lt_cv_path_NM"; then
  4191. NM=$lt_cv_path_NM
  4192. else
  4193. # Didn't find any BSD compatible name lister, look for dumpbin.
  4194. if test -n "$DUMPBIN"; then :
  4195. # Let the user override the test.
  4196. else
  4197. if test -n "$ac_tool_prefix"; then
  4198. for ac_prog in dumpbin "link -dump"
  4199. do
  4200. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4201. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4203. $as_echo_n "checking for $ac_word... " >&6; }
  4204. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. if test -n "$DUMPBIN"; then
  4208. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4209. else
  4210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4211. for as_dir in $PATH
  4212. do
  4213. IFS=$as_save_IFS
  4214. test -z "$as_dir" && as_dir=.
  4215. for ac_exec_ext in '' $ac_executable_extensions; do
  4216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4217. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4219. break 2
  4220. fi
  4221. done
  4222. done
  4223. IFS=$as_save_IFS
  4224. fi
  4225. fi
  4226. DUMPBIN=$ac_cv_prog_DUMPBIN
  4227. if test -n "$DUMPBIN"; then
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4229. $as_echo "$DUMPBIN" >&6; }
  4230. else
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4232. $as_echo "no" >&6; }
  4233. fi
  4234. test -n "$DUMPBIN" && break
  4235. done
  4236. fi
  4237. if test -z "$DUMPBIN"; then
  4238. ac_ct_DUMPBIN=$DUMPBIN
  4239. for ac_prog in dumpbin "link -dump"
  4240. do
  4241. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4242. set dummy $ac_prog; ac_word=$2
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4244. $as_echo_n "checking for $ac_word... " >&6; }
  4245. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4246. $as_echo_n "(cached) " >&6
  4247. else
  4248. if test -n "$ac_ct_DUMPBIN"; then
  4249. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4250. else
  4251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4252. for as_dir in $PATH
  4253. do
  4254. IFS=$as_save_IFS
  4255. test -z "$as_dir" && as_dir=.
  4256. for ac_exec_ext in '' $ac_executable_extensions; do
  4257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4258. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4260. break 2
  4261. fi
  4262. done
  4263. done
  4264. IFS=$as_save_IFS
  4265. fi
  4266. fi
  4267. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4268. if test -n "$ac_ct_DUMPBIN"; then
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4270. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4271. else
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4273. $as_echo "no" >&6; }
  4274. fi
  4275. test -n "$ac_ct_DUMPBIN" && break
  4276. done
  4277. if test "x$ac_ct_DUMPBIN" = x; then
  4278. DUMPBIN=":"
  4279. else
  4280. case $cross_compiling:$ac_tool_warned in
  4281. yes:)
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4283. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4284. ac_tool_warned=yes ;;
  4285. esac
  4286. DUMPBIN=$ac_ct_DUMPBIN
  4287. fi
  4288. fi
  4289. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4290. *COFF*)
  4291. DUMPBIN="$DUMPBIN -symbols -headers"
  4292. ;;
  4293. *)
  4294. DUMPBIN=:
  4295. ;;
  4296. esac
  4297. fi
  4298. if test : != "$DUMPBIN"; then
  4299. NM=$DUMPBIN
  4300. fi
  4301. fi
  4302. test -z "$NM" && NM=nm
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4304. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4305. if ${lt_cv_nm_interface+:} false; then :
  4306. $as_echo_n "(cached) " >&6
  4307. else
  4308. lt_cv_nm_interface="BSD nm"
  4309. echo "int some_variable = 0;" > conftest.$ac_ext
  4310. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4311. (eval "$ac_compile" 2>conftest.err)
  4312. cat conftest.err >&5
  4313. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4314. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4315. cat conftest.err >&5
  4316. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4317. cat conftest.out >&5
  4318. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4319. lt_cv_nm_interface="MS dumpbin"
  4320. fi
  4321. rm -f conftest*
  4322. fi
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4324. $as_echo "$lt_cv_nm_interface" >&6; }
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4326. $as_echo_n "checking whether ln -s works... " >&6; }
  4327. LN_S=$as_ln_s
  4328. if test "$LN_S" = "ln -s"; then
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4330. $as_echo "yes" >&6; }
  4331. else
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4333. $as_echo "no, using $LN_S" >&6; }
  4334. fi
  4335. # find the maximum length of command line arguments
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4337. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4338. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4339. $as_echo_n "(cached) " >&6
  4340. else
  4341. i=0
  4342. teststring=ABCD
  4343. case $build_os in
  4344. msdosdjgpp*)
  4345. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4346. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4347. # during glob expansion). Even if it were fixed, the result of this
  4348. # check would be larger than it should be.
  4349. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4350. ;;
  4351. gnu*)
  4352. # Under GNU Hurd, this test is not required because there is
  4353. # no limit to the length of command line arguments.
  4354. # Libtool will interpret -1 as no limit whatsoever
  4355. lt_cv_sys_max_cmd_len=-1;
  4356. ;;
  4357. cygwin* | mingw* | cegcc*)
  4358. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4359. # about 5 minutes as the teststring grows exponentially.
  4360. # Worse, since 9x/ME are not pre-emptively multitasking,
  4361. # you end up with a "frozen" computer, even though with patience
  4362. # the test eventually succeeds (with a max line length of 256k).
  4363. # Instead, let's just punt: use the minimum linelength reported by
  4364. # all of the supported platforms: 8192 (on NT/2K/XP).
  4365. lt_cv_sys_max_cmd_len=8192;
  4366. ;;
  4367. mint*)
  4368. # On MiNT this can take a long time and run out of memory.
  4369. lt_cv_sys_max_cmd_len=8192;
  4370. ;;
  4371. amigaos*)
  4372. # On AmigaOS with pdksh, this test takes hours, literally.
  4373. # So we just punt and use a minimum line length of 8192.
  4374. lt_cv_sys_max_cmd_len=8192;
  4375. ;;
  4376. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4377. # This has been around since 386BSD, at least. Likely further.
  4378. if test -x /sbin/sysctl; then
  4379. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4380. elif test -x /usr/sbin/sysctl; then
  4381. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4382. else
  4383. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4384. fi
  4385. # And add a safety zone
  4386. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4387. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4388. ;;
  4389. interix*)
  4390. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4391. lt_cv_sys_max_cmd_len=196608
  4392. ;;
  4393. os2*)
  4394. # The test takes a long time on OS/2.
  4395. lt_cv_sys_max_cmd_len=8192
  4396. ;;
  4397. osf*)
  4398. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4399. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4400. # nice to cause kernel panics so lets avoid the loop below.
  4401. # First set a reasonable default.
  4402. lt_cv_sys_max_cmd_len=16384
  4403. #
  4404. if test -x /sbin/sysconfig; then
  4405. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4406. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4407. esac
  4408. fi
  4409. ;;
  4410. sco3.2v5*)
  4411. lt_cv_sys_max_cmd_len=102400
  4412. ;;
  4413. sysv5* | sco5v6* | sysv4.2uw2*)
  4414. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4415. if test -n "$kargmax"; then
  4416. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4417. else
  4418. lt_cv_sys_max_cmd_len=32768
  4419. fi
  4420. ;;
  4421. *)
  4422. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4423. if test -n "$lt_cv_sys_max_cmd_len" && \
  4424. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4425. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4426. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4427. else
  4428. # Make teststring a little bigger before we do anything with it.
  4429. # a 1K string should be a reasonable start.
  4430. for i in 1 2 3 4 5 6 7 8; do
  4431. teststring=$teststring$teststring
  4432. done
  4433. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4434. # If test is not a shell built-in, we'll probably end up computing a
  4435. # maximum length that is only half of the actual maximum length, but
  4436. # we can't tell.
  4437. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4438. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4439. test 17 != "$i" # 1/2 MB should be enough
  4440. do
  4441. i=`expr $i + 1`
  4442. teststring=$teststring$teststring
  4443. done
  4444. # Only check the string length outside the loop.
  4445. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4446. teststring=
  4447. # Add a significant safety factor because C++ compilers can tack on
  4448. # massive amounts of additional arguments before passing them to the
  4449. # linker. It appears as though 1/2 is a usable value.
  4450. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4451. fi
  4452. ;;
  4453. esac
  4454. fi
  4455. if test -n "$lt_cv_sys_max_cmd_len"; then
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4457. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4458. else
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4460. $as_echo "none" >&6; }
  4461. fi
  4462. max_cmd_len=$lt_cv_sys_max_cmd_len
  4463. : ${CP="cp -f"}
  4464. : ${MV="mv -f"}
  4465. : ${RM="rm -f"}
  4466. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4467. lt_unset=unset
  4468. else
  4469. lt_unset=false
  4470. fi
  4471. # test EBCDIC or ASCII
  4472. case `echo X|tr X '\101'` in
  4473. A) # ASCII based system
  4474. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4475. lt_SP2NL='tr \040 \012'
  4476. lt_NL2SP='tr \015\012 \040\040'
  4477. ;;
  4478. *) # EBCDIC based system
  4479. lt_SP2NL='tr \100 \n'
  4480. lt_NL2SP='tr \r\n \100\100'
  4481. ;;
  4482. esac
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4484. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4485. if ${lt_cv_to_host_file_cmd+:} false; then :
  4486. $as_echo_n "(cached) " >&6
  4487. else
  4488. case $host in
  4489. *-*-mingw* )
  4490. case $build in
  4491. *-*-mingw* ) # actually msys
  4492. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4493. ;;
  4494. *-*-cygwin* )
  4495. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4496. ;;
  4497. * ) # otherwise, assume *nix
  4498. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4499. ;;
  4500. esac
  4501. ;;
  4502. *-*-cygwin* )
  4503. case $build in
  4504. *-*-mingw* ) # actually msys
  4505. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4506. ;;
  4507. *-*-cygwin* )
  4508. lt_cv_to_host_file_cmd=func_convert_file_noop
  4509. ;;
  4510. * ) # otherwise, assume *nix
  4511. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4512. ;;
  4513. esac
  4514. ;;
  4515. * ) # unhandled hosts (and "normal" native builds)
  4516. lt_cv_to_host_file_cmd=func_convert_file_noop
  4517. ;;
  4518. esac
  4519. fi
  4520. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4522. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4524. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4525. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4526. $as_echo_n "(cached) " >&6
  4527. else
  4528. #assume ordinary cross tools, or native build.
  4529. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4530. case $host in
  4531. *-*-mingw* )
  4532. case $build in
  4533. *-*-mingw* ) # actually msys
  4534. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4535. ;;
  4536. esac
  4537. ;;
  4538. esac
  4539. fi
  4540. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4542. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4544. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4545. if ${lt_cv_ld_reload_flag+:} false; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. lt_cv_ld_reload_flag='-r'
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4551. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4552. reload_flag=$lt_cv_ld_reload_flag
  4553. case $reload_flag in
  4554. "" | " "*) ;;
  4555. *) reload_flag=" $reload_flag" ;;
  4556. esac
  4557. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4558. case $host_os in
  4559. cygwin* | mingw* | pw32* | cegcc*)
  4560. if test yes != "$GCC"; then
  4561. reload_cmds=false
  4562. fi
  4563. ;;
  4564. darwin*)
  4565. if test yes = "$GCC"; then
  4566. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4567. else
  4568. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4569. fi
  4570. ;;
  4571. esac
  4572. if test -n "$ac_tool_prefix"; then
  4573. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4574. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4576. $as_echo_n "checking for $ac_word... " >&6; }
  4577. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4578. $as_echo_n "(cached) " >&6
  4579. else
  4580. if test -n "$OBJDUMP"; then
  4581. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4582. else
  4583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4584. for as_dir in $PATH
  4585. do
  4586. IFS=$as_save_IFS
  4587. test -z "$as_dir" && as_dir=.
  4588. for ac_exec_ext in '' $ac_executable_extensions; do
  4589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4590. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4592. break 2
  4593. fi
  4594. done
  4595. done
  4596. IFS=$as_save_IFS
  4597. fi
  4598. fi
  4599. OBJDUMP=$ac_cv_prog_OBJDUMP
  4600. if test -n "$OBJDUMP"; then
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4602. $as_echo "$OBJDUMP" >&6; }
  4603. else
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4605. $as_echo "no" >&6; }
  4606. fi
  4607. fi
  4608. if test -z "$ac_cv_prog_OBJDUMP"; then
  4609. ac_ct_OBJDUMP=$OBJDUMP
  4610. # Extract the first word of "objdump", so it can be a program name with args.
  4611. set dummy objdump; ac_word=$2
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4613. $as_echo_n "checking for $ac_word... " >&6; }
  4614. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4615. $as_echo_n "(cached) " >&6
  4616. else
  4617. if test -n "$ac_ct_OBJDUMP"; then
  4618. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4619. else
  4620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4621. for as_dir in $PATH
  4622. do
  4623. IFS=$as_save_IFS
  4624. test -z "$as_dir" && as_dir=.
  4625. for ac_exec_ext in '' $ac_executable_extensions; do
  4626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4627. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4629. break 2
  4630. fi
  4631. done
  4632. done
  4633. IFS=$as_save_IFS
  4634. fi
  4635. fi
  4636. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4637. if test -n "$ac_ct_OBJDUMP"; then
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4639. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4640. else
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4642. $as_echo "no" >&6; }
  4643. fi
  4644. if test "x$ac_ct_OBJDUMP" = x; then
  4645. OBJDUMP="false"
  4646. else
  4647. case $cross_compiling:$ac_tool_warned in
  4648. yes:)
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4650. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4651. ac_tool_warned=yes ;;
  4652. esac
  4653. OBJDUMP=$ac_ct_OBJDUMP
  4654. fi
  4655. else
  4656. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4657. fi
  4658. test -z "$OBJDUMP" && OBJDUMP=objdump
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4660. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4661. if ${lt_cv_deplibs_check_method+:} false; then :
  4662. $as_echo_n "(cached) " >&6
  4663. else
  4664. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4665. lt_cv_file_magic_test_file=
  4666. lt_cv_deplibs_check_method='unknown'
  4667. # Need to set the preceding variable on all platforms that support
  4668. # interlibrary dependencies.
  4669. # 'none' -- dependencies not supported.
  4670. # 'unknown' -- same as none, but documents that we really don't know.
  4671. # 'pass_all' -- all dependencies passed with no checks.
  4672. # 'test_compile' -- check by making test program.
  4673. # 'file_magic [[regex]]' -- check by looking for files in library path
  4674. # that responds to the $file_magic_cmd with a given extended regex.
  4675. # If you have 'file' or equivalent on your system and you're not sure
  4676. # whether 'pass_all' will *always* work, you probably want this one.
  4677. case $host_os in
  4678. aix[4-9]*)
  4679. lt_cv_deplibs_check_method=pass_all
  4680. ;;
  4681. beos*)
  4682. lt_cv_deplibs_check_method=pass_all
  4683. ;;
  4684. bsdi[45]*)
  4685. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4686. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4687. lt_cv_file_magic_test_file=/shlib/libc.so
  4688. ;;
  4689. cygwin*)
  4690. # func_win32_libid is a shell function defined in ltmain.sh
  4691. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4692. lt_cv_file_magic_cmd='func_win32_libid'
  4693. ;;
  4694. mingw* | pw32*)
  4695. # Base MSYS/MinGW do not provide the 'file' command needed by
  4696. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4697. # unless we find 'file', for example because we are cross-compiling.
  4698. if ( file / ) >/dev/null 2>&1; then
  4699. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4700. lt_cv_file_magic_cmd='func_win32_libid'
  4701. else
  4702. # Keep this pattern in sync with the one in func_win32_libid.
  4703. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4704. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4705. fi
  4706. ;;
  4707. cegcc*)
  4708. # use the weaker test based on 'objdump'. See mingw*.
  4709. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4710. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4711. ;;
  4712. darwin* | rhapsody*)
  4713. lt_cv_deplibs_check_method=pass_all
  4714. ;;
  4715. freebsd* | dragonfly*)
  4716. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4717. case $host_cpu in
  4718. i*86 )
  4719. # Not sure whether the presence of OpenBSD here was a mistake.
  4720. # Let's accept both of them until this is cleared up.
  4721. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4722. lt_cv_file_magic_cmd=/usr/bin/file
  4723. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4724. ;;
  4725. esac
  4726. else
  4727. lt_cv_deplibs_check_method=pass_all
  4728. fi
  4729. ;;
  4730. haiku*)
  4731. lt_cv_deplibs_check_method=pass_all
  4732. ;;
  4733. hpux10.20* | hpux11*)
  4734. lt_cv_file_magic_cmd=/usr/bin/file
  4735. case $host_cpu in
  4736. ia64*)
  4737. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4738. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4739. ;;
  4740. hppa*64*)
  4741. 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]'
  4742. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4743. ;;
  4744. *)
  4745. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4746. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4747. ;;
  4748. esac
  4749. ;;
  4750. interix[3-9]*)
  4751. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4752. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4753. ;;
  4754. irix5* | irix6* | nonstopux*)
  4755. case $LD in
  4756. *-32|*"-32 ") libmagic=32-bit;;
  4757. *-n32|*"-n32 ") libmagic=N32;;
  4758. *-64|*"-64 ") libmagic=64-bit;;
  4759. *) libmagic=never-match;;
  4760. esac
  4761. lt_cv_deplibs_check_method=pass_all
  4762. ;;
  4763. # This must be glibc/ELF.
  4764. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4765. lt_cv_deplibs_check_method=pass_all
  4766. ;;
  4767. netbsd*)
  4768. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4769. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4770. else
  4771. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4772. fi
  4773. ;;
  4774. newos6*)
  4775. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4776. lt_cv_file_magic_cmd=/usr/bin/file
  4777. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4778. ;;
  4779. *nto* | *qnx*)
  4780. lt_cv_deplibs_check_method=pass_all
  4781. ;;
  4782. openbsd* | bitrig*)
  4783. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4784. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4785. else
  4786. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4787. fi
  4788. ;;
  4789. osf3* | osf4* | osf5*)
  4790. lt_cv_deplibs_check_method=pass_all
  4791. ;;
  4792. rdos*)
  4793. lt_cv_deplibs_check_method=pass_all
  4794. ;;
  4795. solaris*)
  4796. lt_cv_deplibs_check_method=pass_all
  4797. ;;
  4798. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4799. lt_cv_deplibs_check_method=pass_all
  4800. ;;
  4801. sysv4 | sysv4.3*)
  4802. case $host_vendor in
  4803. motorola)
  4804. 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]'
  4805. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4806. ;;
  4807. ncr)
  4808. lt_cv_deplibs_check_method=pass_all
  4809. ;;
  4810. sequent)
  4811. lt_cv_file_magic_cmd='/bin/file'
  4812. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4813. ;;
  4814. sni)
  4815. lt_cv_file_magic_cmd='/bin/file'
  4816. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4817. lt_cv_file_magic_test_file=/lib/libc.so
  4818. ;;
  4819. siemens)
  4820. lt_cv_deplibs_check_method=pass_all
  4821. ;;
  4822. pc)
  4823. lt_cv_deplibs_check_method=pass_all
  4824. ;;
  4825. esac
  4826. ;;
  4827. tpf*)
  4828. lt_cv_deplibs_check_method=pass_all
  4829. ;;
  4830. os2*)
  4831. lt_cv_deplibs_check_method=pass_all
  4832. ;;
  4833. esac
  4834. fi
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4836. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4837. file_magic_glob=
  4838. want_nocaseglob=no
  4839. if test "$build" = "$host"; then
  4840. case $host_os in
  4841. mingw* | pw32*)
  4842. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4843. want_nocaseglob=yes
  4844. else
  4845. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4846. fi
  4847. ;;
  4848. esac
  4849. fi
  4850. file_magic_cmd=$lt_cv_file_magic_cmd
  4851. deplibs_check_method=$lt_cv_deplibs_check_method
  4852. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4853. if test -n "$ac_tool_prefix"; then
  4854. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4855. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4857. $as_echo_n "checking for $ac_word... " >&6; }
  4858. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. if test -n "$DLLTOOL"; then
  4862. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4863. else
  4864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4865. for as_dir in $PATH
  4866. do
  4867. IFS=$as_save_IFS
  4868. test -z "$as_dir" && as_dir=.
  4869. for ac_exec_ext in '' $ac_executable_extensions; do
  4870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4871. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4873. break 2
  4874. fi
  4875. done
  4876. done
  4877. IFS=$as_save_IFS
  4878. fi
  4879. fi
  4880. DLLTOOL=$ac_cv_prog_DLLTOOL
  4881. if test -n "$DLLTOOL"; then
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4883. $as_echo "$DLLTOOL" >&6; }
  4884. else
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4886. $as_echo "no" >&6; }
  4887. fi
  4888. fi
  4889. if test -z "$ac_cv_prog_DLLTOOL"; then
  4890. ac_ct_DLLTOOL=$DLLTOOL
  4891. # Extract the first word of "dlltool", so it can be a program name with args.
  4892. set dummy dlltool; ac_word=$2
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4894. $as_echo_n "checking for $ac_word... " >&6; }
  4895. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4896. $as_echo_n "(cached) " >&6
  4897. else
  4898. if test -n "$ac_ct_DLLTOOL"; then
  4899. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4900. else
  4901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4902. for as_dir in $PATH
  4903. do
  4904. IFS=$as_save_IFS
  4905. test -z "$as_dir" && as_dir=.
  4906. for ac_exec_ext in '' $ac_executable_extensions; do
  4907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4908. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4910. break 2
  4911. fi
  4912. done
  4913. done
  4914. IFS=$as_save_IFS
  4915. fi
  4916. fi
  4917. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4918. if test -n "$ac_ct_DLLTOOL"; then
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4920. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4921. else
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4923. $as_echo "no" >&6; }
  4924. fi
  4925. if test "x$ac_ct_DLLTOOL" = x; then
  4926. DLLTOOL="false"
  4927. else
  4928. case $cross_compiling:$ac_tool_warned in
  4929. yes:)
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4931. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4932. ac_tool_warned=yes ;;
  4933. esac
  4934. DLLTOOL=$ac_ct_DLLTOOL
  4935. fi
  4936. else
  4937. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4938. fi
  4939. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4941. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4942. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4943. $as_echo_n "(cached) " >&6
  4944. else
  4945. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4946. case $host_os in
  4947. cygwin* | mingw* | pw32* | cegcc*)
  4948. # two different shell functions defined in ltmain.sh;
  4949. # decide which one to use based on capabilities of $DLLTOOL
  4950. case `$DLLTOOL --help 2>&1` in
  4951. *--identify-strict*)
  4952. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4953. ;;
  4954. *)
  4955. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4956. ;;
  4957. esac
  4958. ;;
  4959. *)
  4960. # fallback: assume linklib IS sharedlib
  4961. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4962. ;;
  4963. esac
  4964. fi
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4966. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4967. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4968. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4969. if test -n "$ac_tool_prefix"; then
  4970. for ac_prog in ar
  4971. do
  4972. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4973. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4975. $as_echo_n "checking for $ac_word... " >&6; }
  4976. if ${ac_cv_prog_AR+:} false; then :
  4977. $as_echo_n "(cached) " >&6
  4978. else
  4979. if test -n "$AR"; then
  4980. ac_cv_prog_AR="$AR" # Let the user override the test.
  4981. else
  4982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4983. for as_dir in $PATH
  4984. do
  4985. IFS=$as_save_IFS
  4986. test -z "$as_dir" && as_dir=.
  4987. for ac_exec_ext in '' $ac_executable_extensions; do
  4988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4989. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4991. break 2
  4992. fi
  4993. done
  4994. done
  4995. IFS=$as_save_IFS
  4996. fi
  4997. fi
  4998. AR=$ac_cv_prog_AR
  4999. if test -n "$AR"; then
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5001. $as_echo "$AR" >&6; }
  5002. else
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5004. $as_echo "no" >&6; }
  5005. fi
  5006. test -n "$AR" && break
  5007. done
  5008. fi
  5009. if test -z "$AR"; then
  5010. ac_ct_AR=$AR
  5011. for ac_prog in ar
  5012. do
  5013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5014. set dummy $ac_prog; ac_word=$2
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5016. $as_echo_n "checking for $ac_word... " >&6; }
  5017. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5018. $as_echo_n "(cached) " >&6
  5019. else
  5020. if test -n "$ac_ct_AR"; then
  5021. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5022. else
  5023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5024. for as_dir in $PATH
  5025. do
  5026. IFS=$as_save_IFS
  5027. test -z "$as_dir" && as_dir=.
  5028. for ac_exec_ext in '' $ac_executable_extensions; do
  5029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5030. ac_cv_prog_ac_ct_AR="$ac_prog"
  5031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5032. break 2
  5033. fi
  5034. done
  5035. done
  5036. IFS=$as_save_IFS
  5037. fi
  5038. fi
  5039. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5040. if test -n "$ac_ct_AR"; then
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5042. $as_echo "$ac_ct_AR" >&6; }
  5043. else
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5045. $as_echo "no" >&6; }
  5046. fi
  5047. test -n "$ac_ct_AR" && break
  5048. done
  5049. if test "x$ac_ct_AR" = x; then
  5050. AR="false"
  5051. else
  5052. case $cross_compiling:$ac_tool_warned in
  5053. yes:)
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5055. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5056. ac_tool_warned=yes ;;
  5057. esac
  5058. AR=$ac_ct_AR
  5059. fi
  5060. fi
  5061. : ${AR=ar}
  5062. : ${AR_FLAGS=cru}
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5064. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5065. if ${lt_cv_ar_at_file+:} false; then :
  5066. $as_echo_n "(cached) " >&6
  5067. else
  5068. lt_cv_ar_at_file=no
  5069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5070. /* end confdefs.h. */
  5071. int
  5072. main ()
  5073. {
  5074. ;
  5075. return 0;
  5076. }
  5077. _ACEOF
  5078. if ac_fn_c_try_compile "$LINENO"; then :
  5079. echo conftest.$ac_objext > conftest.lst
  5080. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5081. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5082. (eval $lt_ar_try) 2>&5
  5083. ac_status=$?
  5084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5085. test $ac_status = 0; }
  5086. if test 0 -eq "$ac_status"; then
  5087. # Ensure the archiver fails upon bogus file names.
  5088. rm -f conftest.$ac_objext libconftest.a
  5089. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5090. (eval $lt_ar_try) 2>&5
  5091. ac_status=$?
  5092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5093. test $ac_status = 0; }
  5094. if test 0 -ne "$ac_status"; then
  5095. lt_cv_ar_at_file=@
  5096. fi
  5097. fi
  5098. rm -f conftest.* libconftest.a
  5099. fi
  5100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5101. fi
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5103. $as_echo "$lt_cv_ar_at_file" >&6; }
  5104. if test no = "$lt_cv_ar_at_file"; then
  5105. archiver_list_spec=
  5106. else
  5107. archiver_list_spec=$lt_cv_ar_at_file
  5108. fi
  5109. if test -n "$ac_tool_prefix"; then
  5110. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5111. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5113. $as_echo_n "checking for $ac_word... " >&6; }
  5114. if ${ac_cv_prog_STRIP+:} false; then :
  5115. $as_echo_n "(cached) " >&6
  5116. else
  5117. if test -n "$STRIP"; then
  5118. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5119. else
  5120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5121. for as_dir in $PATH
  5122. do
  5123. IFS=$as_save_IFS
  5124. test -z "$as_dir" && as_dir=.
  5125. for ac_exec_ext in '' $ac_executable_extensions; do
  5126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5127. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5129. break 2
  5130. fi
  5131. done
  5132. done
  5133. IFS=$as_save_IFS
  5134. fi
  5135. fi
  5136. STRIP=$ac_cv_prog_STRIP
  5137. if test -n "$STRIP"; then
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5139. $as_echo "$STRIP" >&6; }
  5140. else
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5142. $as_echo "no" >&6; }
  5143. fi
  5144. fi
  5145. if test -z "$ac_cv_prog_STRIP"; then
  5146. ac_ct_STRIP=$STRIP
  5147. # Extract the first word of "strip", so it can be a program name with args.
  5148. set dummy strip; ac_word=$2
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5150. $as_echo_n "checking for $ac_word... " >&6; }
  5151. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5152. $as_echo_n "(cached) " >&6
  5153. else
  5154. if test -n "$ac_ct_STRIP"; then
  5155. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5156. else
  5157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5158. for as_dir in $PATH
  5159. do
  5160. IFS=$as_save_IFS
  5161. test -z "$as_dir" && as_dir=.
  5162. for ac_exec_ext in '' $ac_executable_extensions; do
  5163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5164. ac_cv_prog_ac_ct_STRIP="strip"
  5165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5166. break 2
  5167. fi
  5168. done
  5169. done
  5170. IFS=$as_save_IFS
  5171. fi
  5172. fi
  5173. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5174. if test -n "$ac_ct_STRIP"; then
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5176. $as_echo "$ac_ct_STRIP" >&6; }
  5177. else
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5179. $as_echo "no" >&6; }
  5180. fi
  5181. if test "x$ac_ct_STRIP" = x; then
  5182. STRIP=":"
  5183. else
  5184. case $cross_compiling:$ac_tool_warned in
  5185. yes:)
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5187. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5188. ac_tool_warned=yes ;;
  5189. esac
  5190. STRIP=$ac_ct_STRIP
  5191. fi
  5192. else
  5193. STRIP="$ac_cv_prog_STRIP"
  5194. fi
  5195. test -z "$STRIP" && STRIP=:
  5196. if test -n "$ac_tool_prefix"; then
  5197. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5198. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5200. $as_echo_n "checking for $ac_word... " >&6; }
  5201. if ${ac_cv_prog_RANLIB+:} false; then :
  5202. $as_echo_n "(cached) " >&6
  5203. else
  5204. if test -n "$RANLIB"; then
  5205. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5206. else
  5207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5208. for as_dir in $PATH
  5209. do
  5210. IFS=$as_save_IFS
  5211. test -z "$as_dir" && as_dir=.
  5212. for ac_exec_ext in '' $ac_executable_extensions; do
  5213. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5214. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5216. break 2
  5217. fi
  5218. done
  5219. done
  5220. IFS=$as_save_IFS
  5221. fi
  5222. fi
  5223. RANLIB=$ac_cv_prog_RANLIB
  5224. if test -n "$RANLIB"; then
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5226. $as_echo "$RANLIB" >&6; }
  5227. else
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5229. $as_echo "no" >&6; }
  5230. fi
  5231. fi
  5232. if test -z "$ac_cv_prog_RANLIB"; then
  5233. ac_ct_RANLIB=$RANLIB
  5234. # Extract the first word of "ranlib", so it can be a program name with args.
  5235. set dummy ranlib; ac_word=$2
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5237. $as_echo_n "checking for $ac_word... " >&6; }
  5238. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5239. $as_echo_n "(cached) " >&6
  5240. else
  5241. if test -n "$ac_ct_RANLIB"; then
  5242. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5243. else
  5244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5245. for as_dir in $PATH
  5246. do
  5247. IFS=$as_save_IFS
  5248. test -z "$as_dir" && as_dir=.
  5249. for ac_exec_ext in '' $ac_executable_extensions; do
  5250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5251. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5253. break 2
  5254. fi
  5255. done
  5256. done
  5257. IFS=$as_save_IFS
  5258. fi
  5259. fi
  5260. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5261. if test -n "$ac_ct_RANLIB"; then
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5263. $as_echo "$ac_ct_RANLIB" >&6; }
  5264. else
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5266. $as_echo "no" >&6; }
  5267. fi
  5268. if test "x$ac_ct_RANLIB" = x; then
  5269. RANLIB=":"
  5270. else
  5271. case $cross_compiling:$ac_tool_warned in
  5272. yes:)
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5274. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5275. ac_tool_warned=yes ;;
  5276. esac
  5277. RANLIB=$ac_ct_RANLIB
  5278. fi
  5279. else
  5280. RANLIB="$ac_cv_prog_RANLIB"
  5281. fi
  5282. test -z "$RANLIB" && RANLIB=:
  5283. # Determine commands to create old-style static archives.
  5284. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5285. old_postinstall_cmds='chmod 644 $oldlib'
  5286. old_postuninstall_cmds=
  5287. if test -n "$RANLIB"; then
  5288. case $host_os in
  5289. bitrig* | openbsd*)
  5290. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5291. ;;
  5292. *)
  5293. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5294. ;;
  5295. esac
  5296. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5297. fi
  5298. case $host_os in
  5299. darwin*)
  5300. lock_old_archive_extraction=yes ;;
  5301. *)
  5302. lock_old_archive_extraction=no ;;
  5303. esac
  5304. # If no C compiler was specified, use CC.
  5305. LTCC=${LTCC-"$CC"}
  5306. # If no C compiler flags were specified, use CFLAGS.
  5307. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5308. # Allow CC to be a program name with arguments.
  5309. compiler=$CC
  5310. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5312. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5313. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5314. $as_echo_n "(cached) " >&6
  5315. else
  5316. # These are sane defaults that work on at least a few old systems.
  5317. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5318. # Character class describing NM global symbol codes.
  5319. symcode='[BCDEGRST]'
  5320. # Regexp to match symbols that can be accessed directly from C.
  5321. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5322. # Define system-specific variables.
  5323. case $host_os in
  5324. aix*)
  5325. symcode='[BCDT]'
  5326. ;;
  5327. cygwin* | mingw* | pw32* | cegcc*)
  5328. symcode='[ABCDGISTW]'
  5329. ;;
  5330. hpux*)
  5331. if test ia64 = "$host_cpu"; then
  5332. symcode='[ABCDEGRST]'
  5333. fi
  5334. ;;
  5335. irix* | nonstopux*)
  5336. symcode='[BCDEGRST]'
  5337. ;;
  5338. osf*)
  5339. symcode='[BCDEGQRST]'
  5340. ;;
  5341. solaris*)
  5342. symcode='[BDRT]'
  5343. ;;
  5344. sco3.2v5*)
  5345. symcode='[DT]'
  5346. ;;
  5347. sysv4.2uw2*)
  5348. symcode='[DT]'
  5349. ;;
  5350. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5351. symcode='[ABDT]'
  5352. ;;
  5353. sysv4)
  5354. symcode='[DFNSTU]'
  5355. ;;
  5356. esac
  5357. # If we're using GNU nm, then use its standard symbol codes.
  5358. case `$NM -V 2>&1` in
  5359. *GNU* | *'with BFD'*)
  5360. symcode='[ABCDGIRSTW]' ;;
  5361. esac
  5362. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5363. # Gets list of data symbols to import.
  5364. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5365. # Adjust the below global symbol transforms to fixup imported variables.
  5366. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5367. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5368. lt_c_name_lib_hook="\
  5369. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5370. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5371. else
  5372. # Disable hooks by default.
  5373. lt_cv_sys_global_symbol_to_import=
  5374. lt_cdecl_hook=
  5375. lt_c_name_hook=
  5376. lt_c_name_lib_hook=
  5377. fi
  5378. # Transform an extracted symbol line into a proper C declaration.
  5379. # Some systems (esp. on ia64) link data and code symbols differently,
  5380. # so use this general approach.
  5381. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5382. $lt_cdecl_hook\
  5383. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5384. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5385. # Transform an extracted symbol line into symbol name and symbol address
  5386. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5387. $lt_c_name_hook\
  5388. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5389. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5390. # Transform an extracted symbol line into symbol name with lib prefix and
  5391. # symbol address.
  5392. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5393. $lt_c_name_lib_hook\
  5394. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5395. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5396. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5397. # Handle CRLF in mingw tool chain
  5398. opt_cr=
  5399. case $build_os in
  5400. mingw*)
  5401. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5402. ;;
  5403. esac
  5404. # Try without a prefix underscore, then with it.
  5405. for ac_symprfx in "" "_"; do
  5406. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5407. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5408. # Write the raw and C identifiers.
  5409. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5410. # Fake it for dumpbin and say T for any non-static function,
  5411. # D for any global variable and I for any imported variable.
  5412. # Also find C++ and __fastcall symbols from MSVC++,
  5413. # which start with @ or ?.
  5414. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5415. " {last_section=section; section=\$ 3};"\
  5416. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5417. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5418. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5419. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5420. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5421. " \$ 0!~/External *\|/{next};"\
  5422. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5423. " {if(hide[section]) next};"\
  5424. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5425. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5426. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5427. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5428. " ' prfx=^$ac_symprfx"
  5429. else
  5430. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5431. fi
  5432. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5433. # Check to see that the pipe works correctly.
  5434. pipe_works=no
  5435. rm -f conftest*
  5436. cat > conftest.$ac_ext <<_LT_EOF
  5437. #ifdef __cplusplus
  5438. extern "C" {
  5439. #endif
  5440. char nm_test_var;
  5441. void nm_test_func(void);
  5442. void nm_test_func(void){}
  5443. #ifdef __cplusplus
  5444. }
  5445. #endif
  5446. int main(){nm_test_var='a';nm_test_func();return(0);}
  5447. _LT_EOF
  5448. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5449. (eval $ac_compile) 2>&5
  5450. ac_status=$?
  5451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5452. test $ac_status = 0; }; then
  5453. # Now try to grab the symbols.
  5454. nlist=conftest.nm
  5455. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5456. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5457. ac_status=$?
  5458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5459. test $ac_status = 0; } && test -s "$nlist"; then
  5460. # Try sorting and uniquifying the output.
  5461. if sort "$nlist" | uniq > "$nlist"T; then
  5462. mv -f "$nlist"T "$nlist"
  5463. else
  5464. rm -f "$nlist"T
  5465. fi
  5466. # Make sure that we snagged all the symbols we need.
  5467. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5468. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5469. cat <<_LT_EOF > conftest.$ac_ext
  5470. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5471. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5472. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5473. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5474. # define LT_DLSYM_CONST
  5475. #elif defined __osf__
  5476. /* This system does not cope well with relocations in const data. */
  5477. # define LT_DLSYM_CONST
  5478. #else
  5479. # define LT_DLSYM_CONST const
  5480. #endif
  5481. #ifdef __cplusplus
  5482. extern "C" {
  5483. #endif
  5484. _LT_EOF
  5485. # Now generate the symbol file.
  5486. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5487. cat <<_LT_EOF >> conftest.$ac_ext
  5488. /* The mapping between symbol names and symbols. */
  5489. LT_DLSYM_CONST struct {
  5490. const char *name;
  5491. void *address;
  5492. }
  5493. lt__PROGRAM__LTX_preloaded_symbols[] =
  5494. {
  5495. { "@PROGRAM@", (void *) 0 },
  5496. _LT_EOF
  5497. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5498. cat <<\_LT_EOF >> conftest.$ac_ext
  5499. {0, (void *) 0}
  5500. };
  5501. /* This works around a problem in FreeBSD linker */
  5502. #ifdef FREEBSD_WORKAROUND
  5503. static const void *lt_preloaded_setup() {
  5504. return lt__PROGRAM__LTX_preloaded_symbols;
  5505. }
  5506. #endif
  5507. #ifdef __cplusplus
  5508. }
  5509. #endif
  5510. _LT_EOF
  5511. # Now try linking the two files.
  5512. mv conftest.$ac_objext conftstm.$ac_objext
  5513. lt_globsym_save_LIBS=$LIBS
  5514. lt_globsym_save_CFLAGS=$CFLAGS
  5515. LIBS=conftstm.$ac_objext
  5516. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5517. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5518. (eval $ac_link) 2>&5
  5519. ac_status=$?
  5520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5521. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5522. pipe_works=yes
  5523. fi
  5524. LIBS=$lt_globsym_save_LIBS
  5525. CFLAGS=$lt_globsym_save_CFLAGS
  5526. else
  5527. echo "cannot find nm_test_func in $nlist" >&5
  5528. fi
  5529. else
  5530. echo "cannot find nm_test_var in $nlist" >&5
  5531. fi
  5532. else
  5533. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5534. fi
  5535. else
  5536. echo "$progname: failed program was:" >&5
  5537. cat conftest.$ac_ext >&5
  5538. fi
  5539. rm -rf conftest* conftst*
  5540. # Do not use the global_symbol_pipe unless it works.
  5541. if test yes = "$pipe_works"; then
  5542. break
  5543. else
  5544. lt_cv_sys_global_symbol_pipe=
  5545. fi
  5546. done
  5547. fi
  5548. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5549. lt_cv_sys_global_symbol_to_cdecl=
  5550. fi
  5551. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5553. $as_echo "failed" >&6; }
  5554. else
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5556. $as_echo "ok" >&6; }
  5557. fi
  5558. # Response file support.
  5559. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5560. nm_file_list_spec='@'
  5561. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5562. nm_file_list_spec='@'
  5563. fi
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5565. $as_echo_n "checking for sysroot... " >&6; }
  5566. # Check whether --with-sysroot was given.
  5567. if test "${with_sysroot+set}" = set; then :
  5568. withval=$with_sysroot;
  5569. else
  5570. with_sysroot=no
  5571. fi
  5572. lt_sysroot=
  5573. case $with_sysroot in #(
  5574. yes)
  5575. if test yes = "$GCC"; then
  5576. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5577. fi
  5578. ;; #(
  5579. /*)
  5580. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5581. ;; #(
  5582. no|'')
  5583. ;; #(
  5584. *)
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5586. $as_echo "$with_sysroot" >&6; }
  5587. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5588. ;;
  5589. esac
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5591. $as_echo "${lt_sysroot:-no}" >&6; }
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5593. $as_echo_n "checking for a working dd... " >&6; }
  5594. if ${ac_cv_path_lt_DD+:} false; then :
  5595. $as_echo_n "(cached) " >&6
  5596. else
  5597. printf 0123456789abcdef0123456789abcdef >conftest.i
  5598. cat conftest.i conftest.i >conftest2.i
  5599. : ${lt_DD:=$DD}
  5600. if test -z "$lt_DD"; then
  5601. ac_path_lt_DD_found=false
  5602. # Loop through the user's path and test for each of PROGNAME-LIST
  5603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5604. for as_dir in $PATH
  5605. do
  5606. IFS=$as_save_IFS
  5607. test -z "$as_dir" && as_dir=.
  5608. for ac_prog in dd; do
  5609. for ac_exec_ext in '' $ac_executable_extensions; do
  5610. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5611. as_fn_executable_p "$ac_path_lt_DD" || continue
  5612. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5613. cmp -s conftest.i conftest.out \
  5614. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5615. fi
  5616. $ac_path_lt_DD_found && break 3
  5617. done
  5618. done
  5619. done
  5620. IFS=$as_save_IFS
  5621. if test -z "$ac_cv_path_lt_DD"; then
  5622. :
  5623. fi
  5624. else
  5625. ac_cv_path_lt_DD=$lt_DD
  5626. fi
  5627. rm -f conftest.i conftest2.i conftest.out
  5628. fi
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5630. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5632. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5633. if ${lt_cv_truncate_bin+:} false; then :
  5634. $as_echo_n "(cached) " >&6
  5635. else
  5636. printf 0123456789abcdef0123456789abcdef >conftest.i
  5637. cat conftest.i conftest.i >conftest2.i
  5638. lt_cv_truncate_bin=
  5639. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5640. cmp -s conftest.i conftest.out \
  5641. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5642. fi
  5643. rm -f conftest.i conftest2.i conftest.out
  5644. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5645. fi
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5647. $as_echo "$lt_cv_truncate_bin" >&6; }
  5648. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5649. func_cc_basename ()
  5650. {
  5651. for cc_temp in $*""; do
  5652. case $cc_temp in
  5653. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5654. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5655. \-*) ;;
  5656. *) break;;
  5657. esac
  5658. done
  5659. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5660. }
  5661. # Check whether --enable-libtool-lock was given.
  5662. if test "${enable_libtool_lock+set}" = set; then :
  5663. enableval=$enable_libtool_lock;
  5664. fi
  5665. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5666. # Some flags need to be propagated to the compiler or linker for good
  5667. # libtool support.
  5668. case $host in
  5669. ia64-*-hpux*)
  5670. # Find out what ABI is being produced by ac_compile, and set mode
  5671. # options accordingly.
  5672. echo 'int i;' > conftest.$ac_ext
  5673. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5674. (eval $ac_compile) 2>&5
  5675. ac_status=$?
  5676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5677. test $ac_status = 0; }; then
  5678. case `/usr/bin/file conftest.$ac_objext` in
  5679. *ELF-32*)
  5680. HPUX_IA64_MODE=32
  5681. ;;
  5682. *ELF-64*)
  5683. HPUX_IA64_MODE=64
  5684. ;;
  5685. esac
  5686. fi
  5687. rm -rf conftest*
  5688. ;;
  5689. *-*-irix6*)
  5690. # Find out what ABI is being produced by ac_compile, and set linker
  5691. # options accordingly.
  5692. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5693. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5694. (eval $ac_compile) 2>&5
  5695. ac_status=$?
  5696. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5697. test $ac_status = 0; }; then
  5698. if test yes = "$lt_cv_prog_gnu_ld"; then
  5699. case `/usr/bin/file conftest.$ac_objext` in
  5700. *32-bit*)
  5701. LD="${LD-ld} -melf32bsmip"
  5702. ;;
  5703. *N32*)
  5704. LD="${LD-ld} -melf32bmipn32"
  5705. ;;
  5706. *64-bit*)
  5707. LD="${LD-ld} -melf64bmip"
  5708. ;;
  5709. esac
  5710. else
  5711. case `/usr/bin/file conftest.$ac_objext` in
  5712. *32-bit*)
  5713. LD="${LD-ld} -32"
  5714. ;;
  5715. *N32*)
  5716. LD="${LD-ld} -n32"
  5717. ;;
  5718. *64-bit*)
  5719. LD="${LD-ld} -64"
  5720. ;;
  5721. esac
  5722. fi
  5723. fi
  5724. rm -rf conftest*
  5725. ;;
  5726. mips64*-*linux*)
  5727. # Find out what ABI is being produced by ac_compile, and set linker
  5728. # options accordingly.
  5729. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5730. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5731. (eval $ac_compile) 2>&5
  5732. ac_status=$?
  5733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5734. test $ac_status = 0; }; then
  5735. emul=elf
  5736. case `/usr/bin/file conftest.$ac_objext` in
  5737. *32-bit*)
  5738. emul="${emul}32"
  5739. ;;
  5740. *64-bit*)
  5741. emul="${emul}64"
  5742. ;;
  5743. esac
  5744. case `/usr/bin/file conftest.$ac_objext` in
  5745. *MSB*)
  5746. emul="${emul}btsmip"
  5747. ;;
  5748. *LSB*)
  5749. emul="${emul}ltsmip"
  5750. ;;
  5751. esac
  5752. case `/usr/bin/file conftest.$ac_objext` in
  5753. *N32*)
  5754. emul="${emul}n32"
  5755. ;;
  5756. esac
  5757. LD="${LD-ld} -m $emul"
  5758. fi
  5759. rm -rf conftest*
  5760. ;;
  5761. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5762. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5763. # Find out what ABI is being produced by ac_compile, and set linker
  5764. # options accordingly. Note that the listed cases only cover the
  5765. # situations where additional linker options are needed (such as when
  5766. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5767. # vice versa); the common cases where no linker options are needed do
  5768. # not appear in the list.
  5769. echo 'int i;' > conftest.$ac_ext
  5770. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5771. (eval $ac_compile) 2>&5
  5772. ac_status=$?
  5773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5774. test $ac_status = 0; }; then
  5775. case `/usr/bin/file conftest.o` in
  5776. *32-bit*)
  5777. case $host in
  5778. x86_64-*kfreebsd*-gnu)
  5779. LD="${LD-ld} -m elf_i386_fbsd"
  5780. ;;
  5781. x86_64-*linux*)
  5782. case `/usr/bin/file conftest.o` in
  5783. *x86-64*)
  5784. LD="${LD-ld} -m elf32_x86_64"
  5785. ;;
  5786. *)
  5787. LD="${LD-ld} -m elf_i386"
  5788. ;;
  5789. esac
  5790. ;;
  5791. powerpc64le-*linux*)
  5792. LD="${LD-ld} -m elf32lppclinux"
  5793. ;;
  5794. powerpc64-*linux*)
  5795. LD="${LD-ld} -m elf32ppclinux"
  5796. ;;
  5797. s390x-*linux*)
  5798. LD="${LD-ld} -m elf_s390"
  5799. ;;
  5800. sparc64-*linux*)
  5801. LD="${LD-ld} -m elf32_sparc"
  5802. ;;
  5803. esac
  5804. ;;
  5805. *64-bit*)
  5806. case $host in
  5807. x86_64-*kfreebsd*-gnu)
  5808. LD="${LD-ld} -m elf_x86_64_fbsd"
  5809. ;;
  5810. x86_64-*linux*)
  5811. LD="${LD-ld} -m elf_x86_64"
  5812. ;;
  5813. powerpcle-*linux*)
  5814. LD="${LD-ld} -m elf64lppc"
  5815. ;;
  5816. powerpc-*linux*)
  5817. LD="${LD-ld} -m elf64ppc"
  5818. ;;
  5819. s390*-*linux*|s390*-*tpf*)
  5820. LD="${LD-ld} -m elf64_s390"
  5821. ;;
  5822. sparc*-*linux*)
  5823. LD="${LD-ld} -m elf64_sparc"
  5824. ;;
  5825. esac
  5826. ;;
  5827. esac
  5828. fi
  5829. rm -rf conftest*
  5830. ;;
  5831. *-*-sco3.2v5*)
  5832. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5833. SAVE_CFLAGS=$CFLAGS
  5834. CFLAGS="$CFLAGS -belf"
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5836. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5837. if ${lt_cv_cc_needs_belf+:} false; then :
  5838. $as_echo_n "(cached) " >&6
  5839. else
  5840. ac_ext=c
  5841. ac_cpp='$CPP $CPPFLAGS'
  5842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5846. /* end confdefs.h. */
  5847. int
  5848. main ()
  5849. {
  5850. ;
  5851. return 0;
  5852. }
  5853. _ACEOF
  5854. if ac_fn_c_try_link "$LINENO"; then :
  5855. lt_cv_cc_needs_belf=yes
  5856. else
  5857. lt_cv_cc_needs_belf=no
  5858. fi
  5859. rm -f core conftest.err conftest.$ac_objext \
  5860. conftest$ac_exeext conftest.$ac_ext
  5861. ac_ext=c
  5862. ac_cpp='$CPP $CPPFLAGS'
  5863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5866. fi
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5868. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5869. if test yes != "$lt_cv_cc_needs_belf"; then
  5870. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5871. CFLAGS=$SAVE_CFLAGS
  5872. fi
  5873. ;;
  5874. *-*solaris*)
  5875. # Find out what ABI is being produced by ac_compile, and set linker
  5876. # options accordingly.
  5877. echo 'int i;' > conftest.$ac_ext
  5878. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5879. (eval $ac_compile) 2>&5
  5880. ac_status=$?
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5882. test $ac_status = 0; }; then
  5883. case `/usr/bin/file conftest.o` in
  5884. *64-bit*)
  5885. case $lt_cv_prog_gnu_ld in
  5886. yes*)
  5887. case $host in
  5888. i?86-*-solaris*|x86_64-*-solaris*)
  5889. LD="${LD-ld} -m elf_x86_64"
  5890. ;;
  5891. sparc*-*-solaris*)
  5892. LD="${LD-ld} -m elf64_sparc"
  5893. ;;
  5894. esac
  5895. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5896. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5897. LD=${LD-ld}_sol2
  5898. fi
  5899. ;;
  5900. *)
  5901. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5902. LD="${LD-ld} -64"
  5903. fi
  5904. ;;
  5905. esac
  5906. ;;
  5907. esac
  5908. fi
  5909. rm -rf conftest*
  5910. ;;
  5911. esac
  5912. need_locks=$enable_libtool_lock
  5913. if test -n "$ac_tool_prefix"; then
  5914. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5915. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5917. $as_echo_n "checking for $ac_word... " >&6; }
  5918. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5919. $as_echo_n "(cached) " >&6
  5920. else
  5921. if test -n "$MANIFEST_TOOL"; then
  5922. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5923. else
  5924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5925. for as_dir in $PATH
  5926. do
  5927. IFS=$as_save_IFS
  5928. test -z "$as_dir" && as_dir=.
  5929. for ac_exec_ext in '' $ac_executable_extensions; do
  5930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5931. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5933. break 2
  5934. fi
  5935. done
  5936. done
  5937. IFS=$as_save_IFS
  5938. fi
  5939. fi
  5940. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5941. if test -n "$MANIFEST_TOOL"; then
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5943. $as_echo "$MANIFEST_TOOL" >&6; }
  5944. else
  5945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5946. $as_echo "no" >&6; }
  5947. fi
  5948. fi
  5949. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5950. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5951. # Extract the first word of "mt", so it can be a program name with args.
  5952. set dummy mt; ac_word=$2
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5954. $as_echo_n "checking for $ac_word... " >&6; }
  5955. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5956. $as_echo_n "(cached) " >&6
  5957. else
  5958. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5959. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5960. else
  5961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5962. for as_dir in $PATH
  5963. do
  5964. IFS=$as_save_IFS
  5965. test -z "$as_dir" && as_dir=.
  5966. for ac_exec_ext in '' $ac_executable_extensions; do
  5967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5968. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5970. break 2
  5971. fi
  5972. done
  5973. done
  5974. IFS=$as_save_IFS
  5975. fi
  5976. fi
  5977. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5978. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5980. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5981. else
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5983. $as_echo "no" >&6; }
  5984. fi
  5985. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5986. MANIFEST_TOOL=":"
  5987. else
  5988. case $cross_compiling:$ac_tool_warned in
  5989. yes:)
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5992. ac_tool_warned=yes ;;
  5993. esac
  5994. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5995. fi
  5996. else
  5997. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5998. fi
  5999. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6001. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6002. if ${lt_cv_path_mainfest_tool+:} false; then :
  6003. $as_echo_n "(cached) " >&6
  6004. else
  6005. lt_cv_path_mainfest_tool=no
  6006. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6007. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6008. cat conftest.err >&5
  6009. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6010. lt_cv_path_mainfest_tool=yes
  6011. fi
  6012. rm -f conftest*
  6013. fi
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6015. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6016. if test yes != "$lt_cv_path_mainfest_tool"; then
  6017. MANIFEST_TOOL=:
  6018. fi
  6019. case $host_os in
  6020. rhapsody* | darwin*)
  6021. if test -n "$ac_tool_prefix"; then
  6022. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6023. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6025. $as_echo_n "checking for $ac_word... " >&6; }
  6026. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6027. $as_echo_n "(cached) " >&6
  6028. else
  6029. if test -n "$DSYMUTIL"; then
  6030. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6031. else
  6032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6033. for as_dir in $PATH
  6034. do
  6035. IFS=$as_save_IFS
  6036. test -z "$as_dir" && as_dir=.
  6037. for ac_exec_ext in '' $ac_executable_extensions; do
  6038. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6039. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6041. break 2
  6042. fi
  6043. done
  6044. done
  6045. IFS=$as_save_IFS
  6046. fi
  6047. fi
  6048. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6049. if test -n "$DSYMUTIL"; then
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6051. $as_echo "$DSYMUTIL" >&6; }
  6052. else
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6054. $as_echo "no" >&6; }
  6055. fi
  6056. fi
  6057. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6058. ac_ct_DSYMUTIL=$DSYMUTIL
  6059. # Extract the first word of "dsymutil", so it can be a program name with args.
  6060. set dummy dsymutil; ac_word=$2
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6062. $as_echo_n "checking for $ac_word... " >&6; }
  6063. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6064. $as_echo_n "(cached) " >&6
  6065. else
  6066. if test -n "$ac_ct_DSYMUTIL"; then
  6067. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6068. else
  6069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6070. for as_dir in $PATH
  6071. do
  6072. IFS=$as_save_IFS
  6073. test -z "$as_dir" && as_dir=.
  6074. for ac_exec_ext in '' $ac_executable_extensions; do
  6075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6076. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6078. break 2
  6079. fi
  6080. done
  6081. done
  6082. IFS=$as_save_IFS
  6083. fi
  6084. fi
  6085. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6086. if test -n "$ac_ct_DSYMUTIL"; then
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6088. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6089. else
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6091. $as_echo "no" >&6; }
  6092. fi
  6093. if test "x$ac_ct_DSYMUTIL" = x; then
  6094. DSYMUTIL=":"
  6095. else
  6096. case $cross_compiling:$ac_tool_warned in
  6097. yes:)
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6099. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6100. ac_tool_warned=yes ;;
  6101. esac
  6102. DSYMUTIL=$ac_ct_DSYMUTIL
  6103. fi
  6104. else
  6105. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6106. fi
  6107. if test -n "$ac_tool_prefix"; then
  6108. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6109. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6111. $as_echo_n "checking for $ac_word... " >&6; }
  6112. if ${ac_cv_prog_NMEDIT+:} false; then :
  6113. $as_echo_n "(cached) " >&6
  6114. else
  6115. if test -n "$NMEDIT"; then
  6116. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6117. else
  6118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6119. for as_dir in $PATH
  6120. do
  6121. IFS=$as_save_IFS
  6122. test -z "$as_dir" && as_dir=.
  6123. for ac_exec_ext in '' $ac_executable_extensions; do
  6124. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6125. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6127. break 2
  6128. fi
  6129. done
  6130. done
  6131. IFS=$as_save_IFS
  6132. fi
  6133. fi
  6134. NMEDIT=$ac_cv_prog_NMEDIT
  6135. if test -n "$NMEDIT"; then
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6137. $as_echo "$NMEDIT" >&6; }
  6138. else
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6140. $as_echo "no" >&6; }
  6141. fi
  6142. fi
  6143. if test -z "$ac_cv_prog_NMEDIT"; then
  6144. ac_ct_NMEDIT=$NMEDIT
  6145. # Extract the first word of "nmedit", so it can be a program name with args.
  6146. set dummy nmedit; ac_word=$2
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6148. $as_echo_n "checking for $ac_word... " >&6; }
  6149. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6150. $as_echo_n "(cached) " >&6
  6151. else
  6152. if test -n "$ac_ct_NMEDIT"; then
  6153. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6154. else
  6155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6156. for as_dir in $PATH
  6157. do
  6158. IFS=$as_save_IFS
  6159. test -z "$as_dir" && as_dir=.
  6160. for ac_exec_ext in '' $ac_executable_extensions; do
  6161. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6162. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6164. break 2
  6165. fi
  6166. done
  6167. done
  6168. IFS=$as_save_IFS
  6169. fi
  6170. fi
  6171. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6172. if test -n "$ac_ct_NMEDIT"; then
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6174. $as_echo "$ac_ct_NMEDIT" >&6; }
  6175. else
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6177. $as_echo "no" >&6; }
  6178. fi
  6179. if test "x$ac_ct_NMEDIT" = x; then
  6180. NMEDIT=":"
  6181. else
  6182. case $cross_compiling:$ac_tool_warned in
  6183. yes:)
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6185. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6186. ac_tool_warned=yes ;;
  6187. esac
  6188. NMEDIT=$ac_ct_NMEDIT
  6189. fi
  6190. else
  6191. NMEDIT="$ac_cv_prog_NMEDIT"
  6192. fi
  6193. if test -n "$ac_tool_prefix"; then
  6194. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6195. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6197. $as_echo_n "checking for $ac_word... " >&6; }
  6198. if ${ac_cv_prog_LIPO+:} false; then :
  6199. $as_echo_n "(cached) " >&6
  6200. else
  6201. if test -n "$LIPO"; then
  6202. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6203. else
  6204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6205. for as_dir in $PATH
  6206. do
  6207. IFS=$as_save_IFS
  6208. test -z "$as_dir" && as_dir=.
  6209. for ac_exec_ext in '' $ac_executable_extensions; do
  6210. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6211. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6212. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6213. break 2
  6214. fi
  6215. done
  6216. done
  6217. IFS=$as_save_IFS
  6218. fi
  6219. fi
  6220. LIPO=$ac_cv_prog_LIPO
  6221. if test -n "$LIPO"; then
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6223. $as_echo "$LIPO" >&6; }
  6224. else
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6226. $as_echo "no" >&6; }
  6227. fi
  6228. fi
  6229. if test -z "$ac_cv_prog_LIPO"; then
  6230. ac_ct_LIPO=$LIPO
  6231. # Extract the first word of "lipo", so it can be a program name with args.
  6232. set dummy lipo; ac_word=$2
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6234. $as_echo_n "checking for $ac_word... " >&6; }
  6235. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. if test -n "$ac_ct_LIPO"; then
  6239. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6240. else
  6241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6242. for as_dir in $PATH
  6243. do
  6244. IFS=$as_save_IFS
  6245. test -z "$as_dir" && as_dir=.
  6246. for ac_exec_ext in '' $ac_executable_extensions; do
  6247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6248. ac_cv_prog_ac_ct_LIPO="lipo"
  6249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6250. break 2
  6251. fi
  6252. done
  6253. done
  6254. IFS=$as_save_IFS
  6255. fi
  6256. fi
  6257. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6258. if test -n "$ac_ct_LIPO"; then
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6260. $as_echo "$ac_ct_LIPO" >&6; }
  6261. else
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6263. $as_echo "no" >&6; }
  6264. fi
  6265. if test "x$ac_ct_LIPO" = x; then
  6266. LIPO=":"
  6267. else
  6268. case $cross_compiling:$ac_tool_warned in
  6269. yes:)
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6271. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6272. ac_tool_warned=yes ;;
  6273. esac
  6274. LIPO=$ac_ct_LIPO
  6275. fi
  6276. else
  6277. LIPO="$ac_cv_prog_LIPO"
  6278. fi
  6279. if test -n "$ac_tool_prefix"; then
  6280. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6281. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6283. $as_echo_n "checking for $ac_word... " >&6; }
  6284. if ${ac_cv_prog_OTOOL+:} false; then :
  6285. $as_echo_n "(cached) " >&6
  6286. else
  6287. if test -n "$OTOOL"; then
  6288. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6289. else
  6290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6291. for as_dir in $PATH
  6292. do
  6293. IFS=$as_save_IFS
  6294. test -z "$as_dir" && as_dir=.
  6295. for ac_exec_ext in '' $ac_executable_extensions; do
  6296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6297. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6299. break 2
  6300. fi
  6301. done
  6302. done
  6303. IFS=$as_save_IFS
  6304. fi
  6305. fi
  6306. OTOOL=$ac_cv_prog_OTOOL
  6307. if test -n "$OTOOL"; then
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6309. $as_echo "$OTOOL" >&6; }
  6310. else
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6312. $as_echo "no" >&6; }
  6313. fi
  6314. fi
  6315. if test -z "$ac_cv_prog_OTOOL"; then
  6316. ac_ct_OTOOL=$OTOOL
  6317. # Extract the first word of "otool", so it can be a program name with args.
  6318. set dummy otool; ac_word=$2
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6320. $as_echo_n "checking for $ac_word... " >&6; }
  6321. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6322. $as_echo_n "(cached) " >&6
  6323. else
  6324. if test -n "$ac_ct_OTOOL"; then
  6325. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6326. else
  6327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6328. for as_dir in $PATH
  6329. do
  6330. IFS=$as_save_IFS
  6331. test -z "$as_dir" && as_dir=.
  6332. for ac_exec_ext in '' $ac_executable_extensions; do
  6333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6334. ac_cv_prog_ac_ct_OTOOL="otool"
  6335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6336. break 2
  6337. fi
  6338. done
  6339. done
  6340. IFS=$as_save_IFS
  6341. fi
  6342. fi
  6343. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6344. if test -n "$ac_ct_OTOOL"; then
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6346. $as_echo "$ac_ct_OTOOL" >&6; }
  6347. else
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6349. $as_echo "no" >&6; }
  6350. fi
  6351. if test "x$ac_ct_OTOOL" = x; then
  6352. OTOOL=":"
  6353. else
  6354. case $cross_compiling:$ac_tool_warned in
  6355. yes:)
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6357. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6358. ac_tool_warned=yes ;;
  6359. esac
  6360. OTOOL=$ac_ct_OTOOL
  6361. fi
  6362. else
  6363. OTOOL="$ac_cv_prog_OTOOL"
  6364. fi
  6365. if test -n "$ac_tool_prefix"; then
  6366. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6367. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6369. $as_echo_n "checking for $ac_word... " >&6; }
  6370. if ${ac_cv_prog_OTOOL64+:} false; then :
  6371. $as_echo_n "(cached) " >&6
  6372. else
  6373. if test -n "$OTOOL64"; then
  6374. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6375. else
  6376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6377. for as_dir in $PATH
  6378. do
  6379. IFS=$as_save_IFS
  6380. test -z "$as_dir" && as_dir=.
  6381. for ac_exec_ext in '' $ac_executable_extensions; do
  6382. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6383. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6385. break 2
  6386. fi
  6387. done
  6388. done
  6389. IFS=$as_save_IFS
  6390. fi
  6391. fi
  6392. OTOOL64=$ac_cv_prog_OTOOL64
  6393. if test -n "$OTOOL64"; then
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6395. $as_echo "$OTOOL64" >&6; }
  6396. else
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6398. $as_echo "no" >&6; }
  6399. fi
  6400. fi
  6401. if test -z "$ac_cv_prog_OTOOL64"; then
  6402. ac_ct_OTOOL64=$OTOOL64
  6403. # Extract the first word of "otool64", so it can be a program name with args.
  6404. set dummy otool64; ac_word=$2
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6406. $as_echo_n "checking for $ac_word... " >&6; }
  6407. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6408. $as_echo_n "(cached) " >&6
  6409. else
  6410. if test -n "$ac_ct_OTOOL64"; then
  6411. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6412. else
  6413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6414. for as_dir in $PATH
  6415. do
  6416. IFS=$as_save_IFS
  6417. test -z "$as_dir" && as_dir=.
  6418. for ac_exec_ext in '' $ac_executable_extensions; do
  6419. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6420. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6422. break 2
  6423. fi
  6424. done
  6425. done
  6426. IFS=$as_save_IFS
  6427. fi
  6428. fi
  6429. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6430. if test -n "$ac_ct_OTOOL64"; then
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6432. $as_echo "$ac_ct_OTOOL64" >&6; }
  6433. else
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6435. $as_echo "no" >&6; }
  6436. fi
  6437. if test "x$ac_ct_OTOOL64" = x; then
  6438. OTOOL64=":"
  6439. else
  6440. case $cross_compiling:$ac_tool_warned in
  6441. yes:)
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6443. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6444. ac_tool_warned=yes ;;
  6445. esac
  6446. OTOOL64=$ac_ct_OTOOL64
  6447. fi
  6448. else
  6449. OTOOL64="$ac_cv_prog_OTOOL64"
  6450. fi
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6452. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6453. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6454. $as_echo_n "(cached) " >&6
  6455. else
  6456. lt_cv_apple_cc_single_mod=no
  6457. if test -z "$LT_MULTI_MODULE"; then
  6458. # By default we will add the -single_module flag. You can override
  6459. # by either setting the environment variable LT_MULTI_MODULE
  6460. # non-empty at configure time, or by adding -multi_module to the
  6461. # link flags.
  6462. rm -rf libconftest.dylib*
  6463. echo "int foo(void){return 1;}" > conftest.c
  6464. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6465. -dynamiclib -Wl,-single_module conftest.c" >&5
  6466. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6467. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6468. _lt_result=$?
  6469. # If there is a non-empty error log, and "single_module"
  6470. # appears in it, assume the flag caused a linker warning
  6471. if test -s conftest.err && $GREP single_module conftest.err; then
  6472. cat conftest.err >&5
  6473. # Otherwise, if the output was created with a 0 exit code from
  6474. # the compiler, it worked.
  6475. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6476. lt_cv_apple_cc_single_mod=yes
  6477. else
  6478. cat conftest.err >&5
  6479. fi
  6480. rm -rf libconftest.dylib*
  6481. rm -f conftest.*
  6482. fi
  6483. fi
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6485. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6487. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6488. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6489. $as_echo_n "(cached) " >&6
  6490. else
  6491. lt_cv_ld_exported_symbols_list=no
  6492. save_LDFLAGS=$LDFLAGS
  6493. echo "_main" > conftest.sym
  6494. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6496. /* end confdefs.h. */
  6497. int
  6498. main ()
  6499. {
  6500. ;
  6501. return 0;
  6502. }
  6503. _ACEOF
  6504. if ac_fn_c_try_link "$LINENO"; then :
  6505. lt_cv_ld_exported_symbols_list=yes
  6506. else
  6507. lt_cv_ld_exported_symbols_list=no
  6508. fi
  6509. rm -f core conftest.err conftest.$ac_objext \
  6510. conftest$ac_exeext conftest.$ac_ext
  6511. LDFLAGS=$save_LDFLAGS
  6512. fi
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6514. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6516. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6517. if ${lt_cv_ld_force_load+:} false; then :
  6518. $as_echo_n "(cached) " >&6
  6519. else
  6520. lt_cv_ld_force_load=no
  6521. cat > conftest.c << _LT_EOF
  6522. int forced_loaded() { return 2;}
  6523. _LT_EOF
  6524. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6525. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6526. echo "$AR cru libconftest.a conftest.o" >&5
  6527. $AR cru libconftest.a conftest.o 2>&5
  6528. echo "$RANLIB libconftest.a" >&5
  6529. $RANLIB libconftest.a 2>&5
  6530. cat > conftest.c << _LT_EOF
  6531. int main() { return 0;}
  6532. _LT_EOF
  6533. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6534. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6535. _lt_result=$?
  6536. if test -s conftest.err && $GREP force_load conftest.err; then
  6537. cat conftest.err >&5
  6538. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6539. lt_cv_ld_force_load=yes
  6540. else
  6541. cat conftest.err >&5
  6542. fi
  6543. rm -f conftest.err libconftest.a conftest conftest.c
  6544. rm -rf conftest.dSYM
  6545. fi
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6547. $as_echo "$lt_cv_ld_force_load" >&6; }
  6548. case $host_os in
  6549. rhapsody* | darwin1.[012])
  6550. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6551. darwin1.*)
  6552. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6553. darwin*) # darwin 5.x on
  6554. # if running on 10.5 or later, the deployment target defaults
  6555. # to the OS version, if on x86, and 10.4, the deployment
  6556. # target defaults to 10.4. Don't you love it?
  6557. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6558. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6559. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6560. 10.[012][,.]*)
  6561. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6562. 10.*)
  6563. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6564. esac
  6565. ;;
  6566. esac
  6567. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6568. _lt_dar_single_mod='$single_module'
  6569. fi
  6570. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6571. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6572. else
  6573. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6574. fi
  6575. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6576. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6577. else
  6578. _lt_dsymutil=
  6579. fi
  6580. ;;
  6581. esac
  6582. # func_munge_path_list VARIABLE PATH
  6583. # -----------------------------------
  6584. # VARIABLE is name of variable containing _space_ separated list of
  6585. # directories to be munged by the contents of PATH, which is string
  6586. # having a format:
  6587. # "DIR[:DIR]:"
  6588. # string "DIR[ DIR]" will be prepended to VARIABLE
  6589. # ":DIR[:DIR]"
  6590. # string "DIR[ DIR]" will be appended to VARIABLE
  6591. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6592. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6593. # "DIRA[ DIRA]" will be appended to VARIABLE
  6594. # "DIR[:DIR]"
  6595. # VARIABLE will be replaced by "DIR[ DIR]"
  6596. func_munge_path_list ()
  6597. {
  6598. case x$2 in
  6599. x)
  6600. ;;
  6601. *:)
  6602. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6603. ;;
  6604. x:*)
  6605. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6606. ;;
  6607. *::*)
  6608. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6609. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6610. ;;
  6611. *)
  6612. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6613. ;;
  6614. esac
  6615. }
  6616. ac_ext=c
  6617. ac_cpp='$CPP $CPPFLAGS'
  6618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6622. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6623. # On Suns, sometimes $CPP names a directory.
  6624. if test -n "$CPP" && test -d "$CPP"; then
  6625. CPP=
  6626. fi
  6627. if test -z "$CPP"; then
  6628. if ${ac_cv_prog_CPP+:} false; then :
  6629. $as_echo_n "(cached) " >&6
  6630. else
  6631. # Double quotes because CPP needs to be expanded
  6632. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6633. do
  6634. ac_preproc_ok=false
  6635. for ac_c_preproc_warn_flag in '' yes
  6636. do
  6637. # Use a header file that comes with gcc, so configuring glibc
  6638. # with a fresh cross-compiler works.
  6639. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6640. # <limits.h> exists even on freestanding compilers.
  6641. # On the NeXT, cc -E runs the code through the compiler's parser,
  6642. # not just through cpp. "Syntax error" is here to catch this case.
  6643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6644. /* end confdefs.h. */
  6645. #ifdef __STDC__
  6646. # include <limits.h>
  6647. #else
  6648. # include <assert.h>
  6649. #endif
  6650. Syntax error
  6651. _ACEOF
  6652. if ac_fn_c_try_cpp "$LINENO"; then :
  6653. else
  6654. # Broken: fails on valid input.
  6655. continue
  6656. fi
  6657. rm -f conftest.err conftest.i conftest.$ac_ext
  6658. # OK, works on sane cases. Now check whether nonexistent headers
  6659. # can be detected and how.
  6660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6661. /* end confdefs.h. */
  6662. #include <ac_nonexistent.h>
  6663. _ACEOF
  6664. if ac_fn_c_try_cpp "$LINENO"; then :
  6665. # Broken: success on invalid input.
  6666. continue
  6667. else
  6668. # Passes both tests.
  6669. ac_preproc_ok=:
  6670. break
  6671. fi
  6672. rm -f conftest.err conftest.i conftest.$ac_ext
  6673. done
  6674. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6675. rm -f conftest.i conftest.err conftest.$ac_ext
  6676. if $ac_preproc_ok; then :
  6677. break
  6678. fi
  6679. done
  6680. ac_cv_prog_CPP=$CPP
  6681. fi
  6682. CPP=$ac_cv_prog_CPP
  6683. else
  6684. ac_cv_prog_CPP=$CPP
  6685. fi
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6687. $as_echo "$CPP" >&6; }
  6688. ac_preproc_ok=false
  6689. for ac_c_preproc_warn_flag in '' yes
  6690. do
  6691. # Use a header file that comes with gcc, so configuring glibc
  6692. # with a fresh cross-compiler works.
  6693. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6694. # <limits.h> exists even on freestanding compilers.
  6695. # On the NeXT, cc -E runs the code through the compiler's parser,
  6696. # not just through cpp. "Syntax error" is here to catch this case.
  6697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6698. /* end confdefs.h. */
  6699. #ifdef __STDC__
  6700. # include <limits.h>
  6701. #else
  6702. # include <assert.h>
  6703. #endif
  6704. Syntax error
  6705. _ACEOF
  6706. if ac_fn_c_try_cpp "$LINENO"; then :
  6707. else
  6708. # Broken: fails on valid input.
  6709. continue
  6710. fi
  6711. rm -f conftest.err conftest.i conftest.$ac_ext
  6712. # OK, works on sane cases. Now check whether nonexistent headers
  6713. # can be detected and how.
  6714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6715. /* end confdefs.h. */
  6716. #include <ac_nonexistent.h>
  6717. _ACEOF
  6718. if ac_fn_c_try_cpp "$LINENO"; then :
  6719. # Broken: success on invalid input.
  6720. continue
  6721. else
  6722. # Passes both tests.
  6723. ac_preproc_ok=:
  6724. break
  6725. fi
  6726. rm -f conftest.err conftest.i conftest.$ac_ext
  6727. done
  6728. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6729. rm -f conftest.i conftest.err conftest.$ac_ext
  6730. if $ac_preproc_ok; then :
  6731. else
  6732. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6733. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6734. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6735. See \`config.log' for more details" "$LINENO" 5; }
  6736. fi
  6737. ac_ext=c
  6738. ac_cpp='$CPP $CPPFLAGS'
  6739. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6740. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6741. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6743. $as_echo_n "checking for ANSI C header files... " >&6; }
  6744. if ${ac_cv_header_stdc+:} false; then :
  6745. $as_echo_n "(cached) " >&6
  6746. else
  6747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6748. /* end confdefs.h. */
  6749. #include <stdlib.h>
  6750. #include <stdarg.h>
  6751. #include <string.h>
  6752. #include <float.h>
  6753. int
  6754. main ()
  6755. {
  6756. ;
  6757. return 0;
  6758. }
  6759. _ACEOF
  6760. if ac_fn_c_try_compile "$LINENO"; then :
  6761. ac_cv_header_stdc=yes
  6762. else
  6763. ac_cv_header_stdc=no
  6764. fi
  6765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6766. if test $ac_cv_header_stdc = yes; then
  6767. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6769. /* end confdefs.h. */
  6770. #include <string.h>
  6771. _ACEOF
  6772. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6773. $EGREP "memchr" >/dev/null 2>&1; then :
  6774. else
  6775. ac_cv_header_stdc=no
  6776. fi
  6777. rm -f conftest*
  6778. fi
  6779. if test $ac_cv_header_stdc = yes; then
  6780. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6782. /* end confdefs.h. */
  6783. #include <stdlib.h>
  6784. _ACEOF
  6785. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6786. $EGREP "free" >/dev/null 2>&1; then :
  6787. else
  6788. ac_cv_header_stdc=no
  6789. fi
  6790. rm -f conftest*
  6791. fi
  6792. if test $ac_cv_header_stdc = yes; then
  6793. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6794. if test "$cross_compiling" = yes; then :
  6795. :
  6796. else
  6797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6798. /* end confdefs.h. */
  6799. #include <ctype.h>
  6800. #include <stdlib.h>
  6801. #if ((' ' & 0x0FF) == 0x020)
  6802. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6803. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6804. #else
  6805. # define ISLOWER(c) \
  6806. (('a' <= (c) && (c) <= 'i') \
  6807. || ('j' <= (c) && (c) <= 'r') \
  6808. || ('s' <= (c) && (c) <= 'z'))
  6809. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6810. #endif
  6811. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6812. int
  6813. main ()
  6814. {
  6815. int i;
  6816. for (i = 0; i < 256; i++)
  6817. if (XOR (islower (i), ISLOWER (i))
  6818. || toupper (i) != TOUPPER (i))
  6819. return 2;
  6820. return 0;
  6821. }
  6822. _ACEOF
  6823. if ac_fn_c_try_run "$LINENO"; then :
  6824. else
  6825. ac_cv_header_stdc=no
  6826. fi
  6827. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6828. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6829. fi
  6830. fi
  6831. fi
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6833. $as_echo "$ac_cv_header_stdc" >&6; }
  6834. if test $ac_cv_header_stdc = yes; then
  6835. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6836. fi
  6837. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6838. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6839. inttypes.h stdint.h unistd.h
  6840. do :
  6841. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6842. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6843. "
  6844. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6845. cat >>confdefs.h <<_ACEOF
  6846. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6847. _ACEOF
  6848. fi
  6849. done
  6850. for ac_header in dlfcn.h
  6851. do :
  6852. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6853. "
  6854. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6855. cat >>confdefs.h <<_ACEOF
  6856. #define HAVE_DLFCN_H 1
  6857. _ACEOF
  6858. fi
  6859. done
  6860. # Set options
  6861. enable_dlopen=no
  6862. enable_win32_dll=no
  6863. # Check whether --enable-shared was given.
  6864. if test "${enable_shared+set}" = set; then :
  6865. enableval=$enable_shared; p=${PACKAGE-default}
  6866. case $enableval in
  6867. yes) enable_shared=yes ;;
  6868. no) enable_shared=no ;;
  6869. *)
  6870. enable_shared=no
  6871. # Look at the argument we got. We use all the common list separators.
  6872. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6873. for pkg in $enableval; do
  6874. IFS=$lt_save_ifs
  6875. if test "X$pkg" = "X$p"; then
  6876. enable_shared=yes
  6877. fi
  6878. done
  6879. IFS=$lt_save_ifs
  6880. ;;
  6881. esac
  6882. else
  6883. enable_shared=yes
  6884. fi
  6885. # Check whether --enable-static was given.
  6886. if test "${enable_static+set}" = set; then :
  6887. enableval=$enable_static; p=${PACKAGE-default}
  6888. case $enableval in
  6889. yes) enable_static=yes ;;
  6890. no) enable_static=no ;;
  6891. *)
  6892. enable_static=no
  6893. # Look at the argument we got. We use all the common list separators.
  6894. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6895. for pkg in $enableval; do
  6896. IFS=$lt_save_ifs
  6897. if test "X$pkg" = "X$p"; then
  6898. enable_static=yes
  6899. fi
  6900. done
  6901. IFS=$lt_save_ifs
  6902. ;;
  6903. esac
  6904. else
  6905. enable_static=yes
  6906. fi
  6907. # Check whether --with-pic was given.
  6908. if test "${with_pic+set}" = set; then :
  6909. withval=$with_pic; lt_p=${PACKAGE-default}
  6910. case $withval in
  6911. yes|no) pic_mode=$withval ;;
  6912. *)
  6913. pic_mode=default
  6914. # Look at the argument we got. We use all the common list separators.
  6915. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6916. for lt_pkg in $withval; do
  6917. IFS=$lt_save_ifs
  6918. if test "X$lt_pkg" = "X$lt_p"; then
  6919. pic_mode=yes
  6920. fi
  6921. done
  6922. IFS=$lt_save_ifs
  6923. ;;
  6924. esac
  6925. else
  6926. pic_mode=default
  6927. fi
  6928. # Check whether --enable-fast-install was given.
  6929. if test "${enable_fast_install+set}" = set; then :
  6930. enableval=$enable_fast_install; p=${PACKAGE-default}
  6931. case $enableval in
  6932. yes) enable_fast_install=yes ;;
  6933. no) enable_fast_install=no ;;
  6934. *)
  6935. enable_fast_install=no
  6936. # Look at the argument we got. We use all the common list separators.
  6937. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6938. for pkg in $enableval; do
  6939. IFS=$lt_save_ifs
  6940. if test "X$pkg" = "X$p"; then
  6941. enable_fast_install=yes
  6942. fi
  6943. done
  6944. IFS=$lt_save_ifs
  6945. ;;
  6946. esac
  6947. else
  6948. enable_fast_install=yes
  6949. fi
  6950. shared_archive_member_spec=
  6951. case $host,$enable_shared in
  6952. power*-*-aix[5-9]*,yes)
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6954. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6955. # Check whether --with-aix-soname was given.
  6956. if test "${with_aix_soname+set}" = set; then :
  6957. withval=$with_aix_soname; case $withval in
  6958. aix|svr4|both)
  6959. ;;
  6960. *)
  6961. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6962. ;;
  6963. esac
  6964. lt_cv_with_aix_soname=$with_aix_soname
  6965. else
  6966. if ${lt_cv_with_aix_soname+:} false; then :
  6967. $as_echo_n "(cached) " >&6
  6968. else
  6969. lt_cv_with_aix_soname=aix
  6970. fi
  6971. with_aix_soname=$lt_cv_with_aix_soname
  6972. fi
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6974. $as_echo "$with_aix_soname" >&6; }
  6975. if test aix != "$with_aix_soname"; then
  6976. # For the AIX way of multilib, we name the shared archive member
  6977. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6978. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6979. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6980. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6981. if test 64 = "${OBJECT_MODE-32}"; then
  6982. shared_archive_member_spec=shr_64
  6983. else
  6984. shared_archive_member_spec=shr
  6985. fi
  6986. fi
  6987. ;;
  6988. *)
  6989. with_aix_soname=aix
  6990. ;;
  6991. esac
  6992. # This can be used to rebuild libtool when needed
  6993. LIBTOOL_DEPS=$ltmain
  6994. # Always use our own libtool.
  6995. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6996. test -z "$LN_S" && LN_S="ln -s"
  6997. if test -n "${ZSH_VERSION+set}"; then
  6998. setopt NO_GLOB_SUBST
  6999. fi
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7001. $as_echo_n "checking for objdir... " >&6; }
  7002. if ${lt_cv_objdir+:} false; then :
  7003. $as_echo_n "(cached) " >&6
  7004. else
  7005. rm -f .libs 2>/dev/null
  7006. mkdir .libs 2>/dev/null
  7007. if test -d .libs; then
  7008. lt_cv_objdir=.libs
  7009. else
  7010. # MS-DOS does not allow filenames that begin with a dot.
  7011. lt_cv_objdir=_libs
  7012. fi
  7013. rmdir .libs 2>/dev/null
  7014. fi
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7016. $as_echo "$lt_cv_objdir" >&6; }
  7017. objdir=$lt_cv_objdir
  7018. cat >>confdefs.h <<_ACEOF
  7019. #define LT_OBJDIR "$lt_cv_objdir/"
  7020. _ACEOF
  7021. case $host_os in
  7022. aix3*)
  7023. # AIX sometimes has problems with the GCC collect2 program. For some
  7024. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7025. # vanish in a puff of smoke.
  7026. if test set != "${COLLECT_NAMES+set}"; then
  7027. COLLECT_NAMES=
  7028. export COLLECT_NAMES
  7029. fi
  7030. ;;
  7031. esac
  7032. # Global variables:
  7033. ofile=libtool
  7034. can_build_shared=yes
  7035. # All known linkers require a '.a' archive for static linking (except MSVC,
  7036. # which needs '.lib').
  7037. libext=a
  7038. with_gnu_ld=$lt_cv_prog_gnu_ld
  7039. old_CC=$CC
  7040. old_CFLAGS=$CFLAGS
  7041. # Set sane defaults for various variables
  7042. test -z "$CC" && CC=cc
  7043. test -z "$LTCC" && LTCC=$CC
  7044. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7045. test -z "$LD" && LD=ld
  7046. test -z "$ac_objext" && ac_objext=o
  7047. func_cc_basename $compiler
  7048. cc_basename=$func_cc_basename_result
  7049. # Only perform the check for file, if the check method requires it
  7050. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7051. case $deplibs_check_method in
  7052. file_magic*)
  7053. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7055. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7056. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7057. $as_echo_n "(cached) " >&6
  7058. else
  7059. case $MAGIC_CMD in
  7060. [\\/*] | ?:[\\/]*)
  7061. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7062. ;;
  7063. *)
  7064. lt_save_MAGIC_CMD=$MAGIC_CMD
  7065. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7066. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7067. for ac_dir in $ac_dummy; do
  7068. IFS=$lt_save_ifs
  7069. test -z "$ac_dir" && ac_dir=.
  7070. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7071. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7072. if test -n "$file_magic_test_file"; then
  7073. case $deplibs_check_method in
  7074. "file_magic "*)
  7075. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7076. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7077. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7078. $EGREP "$file_magic_regex" > /dev/null; then
  7079. :
  7080. else
  7081. cat <<_LT_EOF 1>&2
  7082. *** Warning: the command libtool uses to detect shared libraries,
  7083. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7084. *** The result is that libtool may fail to recognize shared libraries
  7085. *** as such. This will affect the creation of libtool libraries that
  7086. *** depend on shared libraries, but programs linked with such libtool
  7087. *** libraries will work regardless of this problem. Nevertheless, you
  7088. *** may want to report the problem to your system manager and/or to
  7089. *** [email protected]
  7090. _LT_EOF
  7091. fi ;;
  7092. esac
  7093. fi
  7094. break
  7095. fi
  7096. done
  7097. IFS=$lt_save_ifs
  7098. MAGIC_CMD=$lt_save_MAGIC_CMD
  7099. ;;
  7100. esac
  7101. fi
  7102. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7103. if test -n "$MAGIC_CMD"; then
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7105. $as_echo "$MAGIC_CMD" >&6; }
  7106. else
  7107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7108. $as_echo "no" >&6; }
  7109. fi
  7110. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7111. if test -n "$ac_tool_prefix"; then
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7113. $as_echo_n "checking for file... " >&6; }
  7114. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. case $MAGIC_CMD in
  7118. [\\/*] | ?:[\\/]*)
  7119. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7120. ;;
  7121. *)
  7122. lt_save_MAGIC_CMD=$MAGIC_CMD
  7123. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7124. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7125. for ac_dir in $ac_dummy; do
  7126. IFS=$lt_save_ifs
  7127. test -z "$ac_dir" && ac_dir=.
  7128. if test -f "$ac_dir/file"; then
  7129. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7130. if test -n "$file_magic_test_file"; then
  7131. case $deplibs_check_method in
  7132. "file_magic "*)
  7133. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7134. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7135. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7136. $EGREP "$file_magic_regex" > /dev/null; then
  7137. :
  7138. else
  7139. cat <<_LT_EOF 1>&2
  7140. *** Warning: the command libtool uses to detect shared libraries,
  7141. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7142. *** The result is that libtool may fail to recognize shared libraries
  7143. *** as such. This will affect the creation of libtool libraries that
  7144. *** depend on shared libraries, but programs linked with such libtool
  7145. *** libraries will work regardless of this problem. Nevertheless, you
  7146. *** may want to report the problem to your system manager and/or to
  7147. *** [email protected]
  7148. _LT_EOF
  7149. fi ;;
  7150. esac
  7151. fi
  7152. break
  7153. fi
  7154. done
  7155. IFS=$lt_save_ifs
  7156. MAGIC_CMD=$lt_save_MAGIC_CMD
  7157. ;;
  7158. esac
  7159. fi
  7160. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7161. if test -n "$MAGIC_CMD"; then
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7163. $as_echo "$MAGIC_CMD" >&6; }
  7164. else
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7166. $as_echo "no" >&6; }
  7167. fi
  7168. else
  7169. MAGIC_CMD=:
  7170. fi
  7171. fi
  7172. fi
  7173. ;;
  7174. esac
  7175. # Use C for the default configuration in the libtool script
  7176. lt_save_CC=$CC
  7177. ac_ext=c
  7178. ac_cpp='$CPP $CPPFLAGS'
  7179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7182. # Source file extension for C test sources.
  7183. ac_ext=c
  7184. # Object file extension for compiled C test sources.
  7185. objext=o
  7186. objext=$objext
  7187. # Code to be used in simple compile tests
  7188. lt_simple_compile_test_code="int some_variable = 0;"
  7189. # Code to be used in simple link tests
  7190. lt_simple_link_test_code='int main(){return(0);}'
  7191. # If no C compiler was specified, use CC.
  7192. LTCC=${LTCC-"$CC"}
  7193. # If no C compiler flags were specified, use CFLAGS.
  7194. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7195. # Allow CC to be a program name with arguments.
  7196. compiler=$CC
  7197. # Save the default compiler, since it gets overwritten when the other
  7198. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7199. compiler_DEFAULT=$CC
  7200. # save warnings/boilerplate of simple test code
  7201. ac_outfile=conftest.$ac_objext
  7202. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7203. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7204. _lt_compiler_boilerplate=`cat conftest.err`
  7205. $RM conftest*
  7206. ac_outfile=conftest.$ac_objext
  7207. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7208. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7209. _lt_linker_boilerplate=`cat conftest.err`
  7210. $RM -r conftest*
  7211. ## CAVEAT EMPTOR:
  7212. ## There is no encapsulation within the following macros, do not change
  7213. ## the running order or otherwise move them around unless you know exactly
  7214. ## what you are doing...
  7215. if test -n "$compiler"; then
  7216. lt_prog_compiler_no_builtin_flag=
  7217. if test yes = "$GCC"; then
  7218. case $cc_basename in
  7219. nvcc*)
  7220. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7221. *)
  7222. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7223. esac
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7225. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7226. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7227. $as_echo_n "(cached) " >&6
  7228. else
  7229. lt_cv_prog_compiler_rtti_exceptions=no
  7230. ac_outfile=conftest.$ac_objext
  7231. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7232. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7233. # Insert the option either (1) after the last *FLAGS variable, or
  7234. # (2) before a word containing "conftest.", or (3) at the end.
  7235. # Note that $ac_compile itself does not contain backslashes and begins
  7236. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7237. # The option is referenced via a variable to avoid confusing sed.
  7238. lt_compile=`echo "$ac_compile" | $SED \
  7239. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7240. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7241. -e 's:$: $lt_compiler_flag:'`
  7242. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7243. (eval "$lt_compile" 2>conftest.err)
  7244. ac_status=$?
  7245. cat conftest.err >&5
  7246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7247. if (exit $ac_status) && test -s "$ac_outfile"; then
  7248. # The compiler can only warn and ignore the option if not recognized
  7249. # So say no if there are warnings other than the usual output.
  7250. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7251. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7252. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7253. lt_cv_prog_compiler_rtti_exceptions=yes
  7254. fi
  7255. fi
  7256. $RM conftest*
  7257. fi
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7259. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7260. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7261. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7262. else
  7263. :
  7264. fi
  7265. fi
  7266. lt_prog_compiler_wl=
  7267. lt_prog_compiler_pic=
  7268. lt_prog_compiler_static=
  7269. if test yes = "$GCC"; then
  7270. lt_prog_compiler_wl='-Wl,'
  7271. lt_prog_compiler_static='-static'
  7272. case $host_os in
  7273. aix*)
  7274. # All AIX code is PIC.
  7275. if test ia64 = "$host_cpu"; then
  7276. # AIX 5 now supports IA64 processor
  7277. lt_prog_compiler_static='-Bstatic'
  7278. fi
  7279. lt_prog_compiler_pic='-fPIC'
  7280. ;;
  7281. amigaos*)
  7282. case $host_cpu in
  7283. powerpc)
  7284. # see comment about AmigaOS4 .so support
  7285. lt_prog_compiler_pic='-fPIC'
  7286. ;;
  7287. m68k)
  7288. # FIXME: we need at least 68020 code to build shared libraries, but
  7289. # adding the '-m68020' flag to GCC prevents building anything better,
  7290. # like '-m68040'.
  7291. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7292. ;;
  7293. esac
  7294. ;;
  7295. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7296. # PIC is the default for these OSes.
  7297. ;;
  7298. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7299. # This hack is so that the source file can tell whether it is being
  7300. # built for inclusion in a dll (and should export symbols for example).
  7301. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7302. # (--disable-auto-import) libraries
  7303. lt_prog_compiler_pic='-DDLL_EXPORT'
  7304. case $host_os in
  7305. os2*)
  7306. lt_prog_compiler_static='$wl-static'
  7307. ;;
  7308. esac
  7309. ;;
  7310. darwin* | rhapsody*)
  7311. # PIC is the default on this platform
  7312. # Common symbols not allowed in MH_DYLIB files
  7313. lt_prog_compiler_pic='-fno-common'
  7314. ;;
  7315. haiku*)
  7316. # PIC is the default for Haiku.
  7317. # The "-static" flag exists, but is broken.
  7318. lt_prog_compiler_static=
  7319. ;;
  7320. hpux*)
  7321. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7322. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7323. # sets the default TLS model and affects inlining.
  7324. case $host_cpu in
  7325. hppa*64*)
  7326. # +Z the default
  7327. ;;
  7328. *)
  7329. lt_prog_compiler_pic='-fPIC'
  7330. ;;
  7331. esac
  7332. ;;
  7333. interix[3-9]*)
  7334. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7335. # Instead, we relocate shared libraries at runtime.
  7336. ;;
  7337. msdosdjgpp*)
  7338. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7339. # on systems that don't support them.
  7340. lt_prog_compiler_can_build_shared=no
  7341. enable_shared=no
  7342. ;;
  7343. *nto* | *qnx*)
  7344. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7345. # it will coredump.
  7346. lt_prog_compiler_pic='-fPIC -shared'
  7347. ;;
  7348. sysv4*MP*)
  7349. if test -d /usr/nec; then
  7350. lt_prog_compiler_pic=-Kconform_pic
  7351. fi
  7352. ;;
  7353. *)
  7354. lt_prog_compiler_pic='-fPIC'
  7355. ;;
  7356. esac
  7357. case $cc_basename in
  7358. nvcc*) # Cuda Compiler Driver 2.2
  7359. lt_prog_compiler_wl='-Xlinker '
  7360. if test -n "$lt_prog_compiler_pic"; then
  7361. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7362. fi
  7363. ;;
  7364. esac
  7365. else
  7366. # PORTME Check for flag to pass linker flags through the system compiler.
  7367. case $host_os in
  7368. aix*)
  7369. lt_prog_compiler_wl='-Wl,'
  7370. if test ia64 = "$host_cpu"; then
  7371. # AIX 5 now supports IA64 processor
  7372. lt_prog_compiler_static='-Bstatic'
  7373. else
  7374. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7375. fi
  7376. ;;
  7377. darwin* | rhapsody*)
  7378. # PIC is the default on this platform
  7379. # Common symbols not allowed in MH_DYLIB files
  7380. lt_prog_compiler_pic='-fno-common'
  7381. case $cc_basename in
  7382. nagfor*)
  7383. # NAG Fortran compiler
  7384. lt_prog_compiler_wl='-Wl,-Wl,,'
  7385. lt_prog_compiler_pic='-PIC'
  7386. lt_prog_compiler_static='-Bstatic'
  7387. ;;
  7388. esac
  7389. ;;
  7390. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7391. # This hack is so that the source file can tell whether it is being
  7392. # built for inclusion in a dll (and should export symbols for example).
  7393. lt_prog_compiler_pic='-DDLL_EXPORT'
  7394. case $host_os in
  7395. os2*)
  7396. lt_prog_compiler_static='$wl-static'
  7397. ;;
  7398. esac
  7399. ;;
  7400. hpux9* | hpux10* | hpux11*)
  7401. lt_prog_compiler_wl='-Wl,'
  7402. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7403. # not for PA HP-UX.
  7404. case $host_cpu in
  7405. hppa*64*|ia64*)
  7406. # +Z the default
  7407. ;;
  7408. *)
  7409. lt_prog_compiler_pic='+Z'
  7410. ;;
  7411. esac
  7412. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7413. lt_prog_compiler_static='$wl-a ${wl}archive'
  7414. ;;
  7415. irix5* | irix6* | nonstopux*)
  7416. lt_prog_compiler_wl='-Wl,'
  7417. # PIC (with -KPIC) is the default.
  7418. lt_prog_compiler_static='-non_shared'
  7419. ;;
  7420. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7421. case $cc_basename in
  7422. # old Intel for x86_64, which still supported -KPIC.
  7423. ecc*)
  7424. lt_prog_compiler_wl='-Wl,'
  7425. lt_prog_compiler_pic='-KPIC'
  7426. lt_prog_compiler_static='-static'
  7427. ;;
  7428. # icc used to be incompatible with GCC.
  7429. # ICC 10 doesn't accept -KPIC any more.
  7430. icc* | ifort*)
  7431. lt_prog_compiler_wl='-Wl,'
  7432. lt_prog_compiler_pic='-fPIC'
  7433. lt_prog_compiler_static='-static'
  7434. ;;
  7435. # Lahey Fortran 8.1.
  7436. lf95*)
  7437. lt_prog_compiler_wl='-Wl,'
  7438. lt_prog_compiler_pic='--shared'
  7439. lt_prog_compiler_static='--static'
  7440. ;;
  7441. nagfor*)
  7442. # NAG Fortran compiler
  7443. lt_prog_compiler_wl='-Wl,-Wl,,'
  7444. lt_prog_compiler_pic='-PIC'
  7445. lt_prog_compiler_static='-Bstatic'
  7446. ;;
  7447. tcc*)
  7448. # Fabrice Bellard et al's Tiny C Compiler
  7449. lt_prog_compiler_wl='-Wl,'
  7450. lt_prog_compiler_pic='-fPIC'
  7451. lt_prog_compiler_static='-static'
  7452. ;;
  7453. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7454. # Portland Group compilers (*not* the Pentium gcc compiler,
  7455. # which looks to be a dead project)
  7456. lt_prog_compiler_wl='-Wl,'
  7457. lt_prog_compiler_pic='-fpic'
  7458. lt_prog_compiler_static='-Bstatic'
  7459. ;;
  7460. ccc*)
  7461. lt_prog_compiler_wl='-Wl,'
  7462. # All Alpha code is PIC.
  7463. lt_prog_compiler_static='-non_shared'
  7464. ;;
  7465. xl* | bgxl* | bgf* | mpixl*)
  7466. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7467. lt_prog_compiler_wl='-Wl,'
  7468. lt_prog_compiler_pic='-qpic'
  7469. lt_prog_compiler_static='-qstaticlink'
  7470. ;;
  7471. *)
  7472. case `$CC -V 2>&1 | sed 5q` in
  7473. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7474. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7475. lt_prog_compiler_pic='-KPIC'
  7476. lt_prog_compiler_static='-Bstatic'
  7477. lt_prog_compiler_wl=''
  7478. ;;
  7479. *Sun\ F* | *Sun*Fortran*)
  7480. lt_prog_compiler_pic='-KPIC'
  7481. lt_prog_compiler_static='-Bstatic'
  7482. lt_prog_compiler_wl='-Qoption ld '
  7483. ;;
  7484. *Sun\ C*)
  7485. # Sun C 5.9
  7486. lt_prog_compiler_pic='-KPIC'
  7487. lt_prog_compiler_static='-Bstatic'
  7488. lt_prog_compiler_wl='-Wl,'
  7489. ;;
  7490. *Intel*\ [CF]*Compiler*)
  7491. lt_prog_compiler_wl='-Wl,'
  7492. lt_prog_compiler_pic='-fPIC'
  7493. lt_prog_compiler_static='-static'
  7494. ;;
  7495. *Portland\ Group*)
  7496. lt_prog_compiler_wl='-Wl,'
  7497. lt_prog_compiler_pic='-fpic'
  7498. lt_prog_compiler_static='-Bstatic'
  7499. ;;
  7500. esac
  7501. ;;
  7502. esac
  7503. ;;
  7504. newsos6)
  7505. lt_prog_compiler_pic='-KPIC'
  7506. lt_prog_compiler_static='-Bstatic'
  7507. ;;
  7508. *nto* | *qnx*)
  7509. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7510. # it will coredump.
  7511. lt_prog_compiler_pic='-fPIC -shared'
  7512. ;;
  7513. osf3* | osf4* | osf5*)
  7514. lt_prog_compiler_wl='-Wl,'
  7515. # All OSF/1 code is PIC.
  7516. lt_prog_compiler_static='-non_shared'
  7517. ;;
  7518. rdos*)
  7519. lt_prog_compiler_static='-non_shared'
  7520. ;;
  7521. solaris*)
  7522. lt_prog_compiler_pic='-KPIC'
  7523. lt_prog_compiler_static='-Bstatic'
  7524. case $cc_basename in
  7525. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7526. lt_prog_compiler_wl='-Qoption ld ';;
  7527. *)
  7528. lt_prog_compiler_wl='-Wl,';;
  7529. esac
  7530. ;;
  7531. sunos4*)
  7532. lt_prog_compiler_wl='-Qoption ld '
  7533. lt_prog_compiler_pic='-PIC'
  7534. lt_prog_compiler_static='-Bstatic'
  7535. ;;
  7536. sysv4 | sysv4.2uw2* | sysv4.3*)
  7537. lt_prog_compiler_wl='-Wl,'
  7538. lt_prog_compiler_pic='-KPIC'
  7539. lt_prog_compiler_static='-Bstatic'
  7540. ;;
  7541. sysv4*MP*)
  7542. if test -d /usr/nec; then
  7543. lt_prog_compiler_pic='-Kconform_pic'
  7544. lt_prog_compiler_static='-Bstatic'
  7545. fi
  7546. ;;
  7547. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7548. lt_prog_compiler_wl='-Wl,'
  7549. lt_prog_compiler_pic='-KPIC'
  7550. lt_prog_compiler_static='-Bstatic'
  7551. ;;
  7552. unicos*)
  7553. lt_prog_compiler_wl='-Wl,'
  7554. lt_prog_compiler_can_build_shared=no
  7555. ;;
  7556. uts4*)
  7557. lt_prog_compiler_pic='-pic'
  7558. lt_prog_compiler_static='-Bstatic'
  7559. ;;
  7560. *)
  7561. lt_prog_compiler_can_build_shared=no
  7562. ;;
  7563. esac
  7564. fi
  7565. case $host_os in
  7566. # For platforms that do not support PIC, -DPIC is meaningless:
  7567. *djgpp*)
  7568. lt_prog_compiler_pic=
  7569. ;;
  7570. *)
  7571. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7572. ;;
  7573. esac
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7575. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7576. if ${lt_cv_prog_compiler_pic+:} false; then :
  7577. $as_echo_n "(cached) " >&6
  7578. else
  7579. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7580. fi
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7582. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7583. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7584. #
  7585. # Check to make sure the PIC flag actually works.
  7586. #
  7587. if test -n "$lt_prog_compiler_pic"; then
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7589. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7590. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7591. $as_echo_n "(cached) " >&6
  7592. else
  7593. lt_cv_prog_compiler_pic_works=no
  7594. ac_outfile=conftest.$ac_objext
  7595. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7596. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7597. # Insert the option either (1) after the last *FLAGS variable, or
  7598. # (2) before a word containing "conftest.", or (3) at the end.
  7599. # Note that $ac_compile itself does not contain backslashes and begins
  7600. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7601. # The option is referenced via a variable to avoid confusing sed.
  7602. lt_compile=`echo "$ac_compile" | $SED \
  7603. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7604. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7605. -e 's:$: $lt_compiler_flag:'`
  7606. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7607. (eval "$lt_compile" 2>conftest.err)
  7608. ac_status=$?
  7609. cat conftest.err >&5
  7610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7611. if (exit $ac_status) && test -s "$ac_outfile"; then
  7612. # The compiler can only warn and ignore the option if not recognized
  7613. # So say no if there are warnings other than the usual output.
  7614. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7615. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7616. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7617. lt_cv_prog_compiler_pic_works=yes
  7618. fi
  7619. fi
  7620. $RM conftest*
  7621. fi
  7622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7623. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7624. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7625. case $lt_prog_compiler_pic in
  7626. "" | " "*) ;;
  7627. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7628. esac
  7629. else
  7630. lt_prog_compiler_pic=
  7631. lt_prog_compiler_can_build_shared=no
  7632. fi
  7633. fi
  7634. #
  7635. # Check to make sure the static flag actually works.
  7636. #
  7637. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7639. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7640. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7641. $as_echo_n "(cached) " >&6
  7642. else
  7643. lt_cv_prog_compiler_static_works=no
  7644. save_LDFLAGS=$LDFLAGS
  7645. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7646. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7647. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7648. # The linker can only warn and ignore the option if not recognized
  7649. # So say no if there are warnings
  7650. if test -s conftest.err; then
  7651. # Append any errors to the config.log.
  7652. cat conftest.err 1>&5
  7653. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7654. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7655. if diff conftest.exp conftest.er2 >/dev/null; then
  7656. lt_cv_prog_compiler_static_works=yes
  7657. fi
  7658. else
  7659. lt_cv_prog_compiler_static_works=yes
  7660. fi
  7661. fi
  7662. $RM -r conftest*
  7663. LDFLAGS=$save_LDFLAGS
  7664. fi
  7665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7666. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7667. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7668. :
  7669. else
  7670. lt_prog_compiler_static=
  7671. fi
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7673. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7674. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7675. $as_echo_n "(cached) " >&6
  7676. else
  7677. lt_cv_prog_compiler_c_o=no
  7678. $RM -r conftest 2>/dev/null
  7679. mkdir conftest
  7680. cd conftest
  7681. mkdir out
  7682. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7683. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7684. # Insert the option either (1) after the last *FLAGS variable, or
  7685. # (2) before a word containing "conftest.", or (3) at the end.
  7686. # Note that $ac_compile itself does not contain backslashes and begins
  7687. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7688. lt_compile=`echo "$ac_compile" | $SED \
  7689. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7690. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7691. -e 's:$: $lt_compiler_flag:'`
  7692. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7693. (eval "$lt_compile" 2>out/conftest.err)
  7694. ac_status=$?
  7695. cat out/conftest.err >&5
  7696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7697. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7698. then
  7699. # The compiler can only warn and ignore the option if not recognized
  7700. # So say no if there are warnings
  7701. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7702. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7703. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7704. lt_cv_prog_compiler_c_o=yes
  7705. fi
  7706. fi
  7707. chmod u+w . 2>&5
  7708. $RM conftest*
  7709. # SGI C++ compiler will create directory out/ii_files/ for
  7710. # template instantiation
  7711. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7712. $RM out/* && rmdir out
  7713. cd ..
  7714. $RM -r conftest
  7715. $RM conftest*
  7716. fi
  7717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7718. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7720. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7721. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7722. $as_echo_n "(cached) " >&6
  7723. else
  7724. lt_cv_prog_compiler_c_o=no
  7725. $RM -r conftest 2>/dev/null
  7726. mkdir conftest
  7727. cd conftest
  7728. mkdir out
  7729. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7730. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7731. # Insert the option either (1) after the last *FLAGS variable, or
  7732. # (2) before a word containing "conftest.", or (3) at the end.
  7733. # Note that $ac_compile itself does not contain backslashes and begins
  7734. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7735. lt_compile=`echo "$ac_compile" | $SED \
  7736. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7737. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7738. -e 's:$: $lt_compiler_flag:'`
  7739. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7740. (eval "$lt_compile" 2>out/conftest.err)
  7741. ac_status=$?
  7742. cat out/conftest.err >&5
  7743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7744. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7745. then
  7746. # The compiler can only warn and ignore the option if not recognized
  7747. # So say no if there are warnings
  7748. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7749. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7750. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7751. lt_cv_prog_compiler_c_o=yes
  7752. fi
  7753. fi
  7754. chmod u+w . 2>&5
  7755. $RM conftest*
  7756. # SGI C++ compiler will create directory out/ii_files/ for
  7757. # template instantiation
  7758. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7759. $RM out/* && rmdir out
  7760. cd ..
  7761. $RM -r conftest
  7762. $RM conftest*
  7763. fi
  7764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7765. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7766. hard_links=nottested
  7767. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7768. # do not overwrite the value of need_locks provided by the user
  7769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7770. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7771. hard_links=yes
  7772. $RM conftest*
  7773. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7774. touch conftest.a
  7775. ln conftest.a conftest.b 2>&5 || hard_links=no
  7776. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7778. $as_echo "$hard_links" >&6; }
  7779. if test no = "$hard_links"; then
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7781. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7782. need_locks=warn
  7783. fi
  7784. else
  7785. need_locks=no
  7786. fi
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7788. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7789. runpath_var=
  7790. allow_undefined_flag=
  7791. always_export_symbols=no
  7792. archive_cmds=
  7793. archive_expsym_cmds=
  7794. compiler_needs_object=no
  7795. enable_shared_with_static_runtimes=no
  7796. export_dynamic_flag_spec=
  7797. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7798. hardcode_automatic=no
  7799. hardcode_direct=no
  7800. hardcode_direct_absolute=no
  7801. hardcode_libdir_flag_spec=
  7802. hardcode_libdir_separator=
  7803. hardcode_minus_L=no
  7804. hardcode_shlibpath_var=unsupported
  7805. inherit_rpath=no
  7806. link_all_deplibs=unknown
  7807. module_cmds=
  7808. module_expsym_cmds=
  7809. old_archive_from_new_cmds=
  7810. old_archive_from_expsyms_cmds=
  7811. thread_safe_flag_spec=
  7812. whole_archive_flag_spec=
  7813. # include_expsyms should be a list of space-separated symbols to be *always*
  7814. # included in the symbol list
  7815. include_expsyms=
  7816. # exclude_expsyms can be an extended regexp of symbols to exclude
  7817. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7818. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7819. # as well as any symbol that contains 'd'.
  7820. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7821. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7822. # platforms (ab)use it in PIC code, but their linkers get confused if
  7823. # the symbol is explicitly referenced. Since portable code cannot
  7824. # rely on this symbol name, it's probably fine to never include it in
  7825. # preloaded symbol tables.
  7826. # Exclude shared library initialization/finalization symbols.
  7827. extract_expsyms_cmds=
  7828. case $host_os in
  7829. cygwin* | mingw* | pw32* | cegcc*)
  7830. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7831. # When not using gcc, we currently assume that we are using
  7832. # Microsoft Visual C++.
  7833. if test yes != "$GCC"; then
  7834. with_gnu_ld=no
  7835. fi
  7836. ;;
  7837. interix*)
  7838. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7839. with_gnu_ld=yes
  7840. ;;
  7841. openbsd* | bitrig*)
  7842. with_gnu_ld=no
  7843. ;;
  7844. esac
  7845. ld_shlibs=yes
  7846. # On some targets, GNU ld is compatible enough with the native linker
  7847. # that we're better off using the native interface for both.
  7848. lt_use_gnu_ld_interface=no
  7849. if test yes = "$with_gnu_ld"; then
  7850. case $host_os in
  7851. aix*)
  7852. # The AIX port of GNU ld has always aspired to compatibility
  7853. # with the native linker. However, as the warning in the GNU ld
  7854. # block says, versions before 2.19.5* couldn't really create working
  7855. # shared libraries, regardless of the interface used.
  7856. case `$LD -v 2>&1` in
  7857. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7858. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7859. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7860. *)
  7861. lt_use_gnu_ld_interface=yes
  7862. ;;
  7863. esac
  7864. ;;
  7865. *)
  7866. lt_use_gnu_ld_interface=yes
  7867. ;;
  7868. esac
  7869. fi
  7870. if test yes = "$lt_use_gnu_ld_interface"; then
  7871. # If archive_cmds runs LD, not CC, wlarc should be empty
  7872. wlarc='$wl'
  7873. # Set some defaults for GNU ld with shared library support. These
  7874. # are reset later if shared libraries are not supported. Putting them
  7875. # here allows them to be overridden if necessary.
  7876. runpath_var=LD_RUN_PATH
  7877. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7878. export_dynamic_flag_spec='$wl--export-dynamic'
  7879. # ancient GNU ld didn't support --whole-archive et. al.
  7880. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7881. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7882. else
  7883. whole_archive_flag_spec=
  7884. fi
  7885. supports_anon_versioning=no
  7886. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7887. *GNU\ gold*) supports_anon_versioning=yes ;;
  7888. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7889. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7890. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7891. *\ 2.11.*) ;; # other 2.11 versions
  7892. *) supports_anon_versioning=yes ;;
  7893. esac
  7894. # See if GNU ld supports shared libraries.
  7895. case $host_os in
  7896. aix[3-9]*)
  7897. # On AIX/PPC, the GNU linker is very broken
  7898. if test ia64 != "$host_cpu"; then
  7899. ld_shlibs=no
  7900. cat <<_LT_EOF 1>&2
  7901. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7902. *** to be unable to reliably create shared libraries on AIX.
  7903. *** Therefore, libtool is disabling shared libraries support. If you
  7904. *** really care for shared libraries, you may want to install binutils
  7905. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7906. *** You will then need to restart the configuration process.
  7907. _LT_EOF
  7908. fi
  7909. ;;
  7910. amigaos*)
  7911. case $host_cpu in
  7912. powerpc)
  7913. # see comment about AmigaOS4 .so support
  7914. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7915. archive_expsym_cmds=''
  7916. ;;
  7917. m68k)
  7918. 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)'
  7919. hardcode_libdir_flag_spec='-L$libdir'
  7920. hardcode_minus_L=yes
  7921. ;;
  7922. esac
  7923. ;;
  7924. beos*)
  7925. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7926. allow_undefined_flag=unsupported
  7927. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7928. # support --undefined. This deserves some investigation. FIXME
  7929. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7930. else
  7931. ld_shlibs=no
  7932. fi
  7933. ;;
  7934. cygwin* | mingw* | pw32* | cegcc*)
  7935. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7936. # as there is no search path for DLLs.
  7937. hardcode_libdir_flag_spec='-L$libdir'
  7938. export_dynamic_flag_spec='$wl--export-all-symbols'
  7939. allow_undefined_flag=unsupported
  7940. always_export_symbols=no
  7941. enable_shared_with_static_runtimes=yes
  7942. 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'
  7943. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7944. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7945. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7946. # If the export-symbols file already is a .def file, use it as
  7947. # is; otherwise, prepend EXPORTS...
  7948. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7949. cp $export_symbols $output_objdir/$soname.def;
  7950. else
  7951. echo EXPORTS > $output_objdir/$soname.def;
  7952. cat $export_symbols >> $output_objdir/$soname.def;
  7953. fi~
  7954. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7955. else
  7956. ld_shlibs=no
  7957. fi
  7958. ;;
  7959. haiku*)
  7960. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7961. link_all_deplibs=yes
  7962. ;;
  7963. os2*)
  7964. hardcode_libdir_flag_spec='-L$libdir'
  7965. hardcode_minus_L=yes
  7966. allow_undefined_flag=unsupported
  7967. shrext_cmds=.dll
  7968. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7969. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7970. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7971. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7972. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7973. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7974. emximp -o $lib $output_objdir/$libname.def'
  7975. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7976. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7977. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7978. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7979. prefix_cmds="$SED"~
  7980. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7981. prefix_cmds="$prefix_cmds -e 1d";
  7982. fi~
  7983. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7984. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7985. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7986. emximp -o $lib $output_objdir/$libname.def'
  7987. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7988. enable_shared_with_static_runtimes=yes
  7989. ;;
  7990. interix[3-9]*)
  7991. hardcode_direct=no
  7992. hardcode_shlibpath_var=no
  7993. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  7994. export_dynamic_flag_spec='$wl-E'
  7995. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7996. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7997. # default) and relocated if they conflict, which is a slow very memory
  7998. # consuming and fragmenting process. To avoid this, we pick a random,
  7999. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8000. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8001. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8002. 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'
  8003. ;;
  8004. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8005. tmp_diet=no
  8006. if test linux-dietlibc = "$host_os"; then
  8007. case $cc_basename in
  8008. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8009. esac
  8010. fi
  8011. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8012. && test no = "$tmp_diet"
  8013. then
  8014. tmp_addflag=' $pic_flag'
  8015. tmp_sharedflag='-shared'
  8016. case $cc_basename,$host_cpu in
  8017. pgcc*) # Portland Group C compiler
  8018. 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'
  8019. tmp_addflag=' $pic_flag'
  8020. ;;
  8021. pgf77* | pgf90* | pgf95* | pgfortran*)
  8022. # Portland Group f77 and f90 compilers
  8023. 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'
  8024. tmp_addflag=' $pic_flag -Mnomain' ;;
  8025. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8026. tmp_addflag=' -i_dynamic' ;;
  8027. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8028. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8029. ifc* | ifort*) # Intel Fortran compiler
  8030. tmp_addflag=' -nofor_main' ;;
  8031. lf95*) # Lahey Fortran 8.1
  8032. whole_archive_flag_spec=
  8033. tmp_sharedflag='--shared' ;;
  8034. nagfor*) # NAGFOR 5.3
  8035. tmp_sharedflag='-Wl,-shared' ;;
  8036. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8037. tmp_sharedflag='-qmkshrobj'
  8038. tmp_addflag= ;;
  8039. nvcc*) # Cuda Compiler Driver 2.2
  8040. 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'
  8041. compiler_needs_object=yes
  8042. ;;
  8043. esac
  8044. case `$CC -V 2>&1 | sed 5q` in
  8045. *Sun\ C*) # Sun C 5.9
  8046. 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'
  8047. compiler_needs_object=yes
  8048. tmp_sharedflag='-G' ;;
  8049. *Sun\ F*) # Sun Fortran 8.3
  8050. tmp_sharedflag='-G' ;;
  8051. esac
  8052. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8053. if test yes = "$supports_anon_versioning"; then
  8054. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8055. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8056. echo "local: *; };" >> $output_objdir/$libname.ver~
  8057. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8058. fi
  8059. case $cc_basename in
  8060. tcc*)
  8061. export_dynamic_flag_spec='-rdynamic'
  8062. ;;
  8063. xlf* | bgf* | bgxlf* | mpixlf*)
  8064. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8065. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8066. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8067. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8068. if test yes = "$supports_anon_versioning"; then
  8069. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8070. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8071. echo "local: *; };" >> $output_objdir/$libname.ver~
  8072. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8073. fi
  8074. ;;
  8075. esac
  8076. else
  8077. ld_shlibs=no
  8078. fi
  8079. ;;
  8080. netbsd*)
  8081. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8082. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8083. wlarc=
  8084. else
  8085. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8086. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8087. fi
  8088. ;;
  8089. solaris*)
  8090. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8091. ld_shlibs=no
  8092. cat <<_LT_EOF 1>&2
  8093. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8094. *** create shared libraries on Solaris systems. Therefore, libtool
  8095. *** is disabling shared libraries support. We urge you to upgrade GNU
  8096. *** binutils to release 2.9.1 or newer. Another option is to modify
  8097. *** your PATH or compiler configuration so that the native linker is
  8098. *** used, and then restart.
  8099. _LT_EOF
  8100. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8101. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8102. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8103. else
  8104. ld_shlibs=no
  8105. fi
  8106. ;;
  8107. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8108. case `$LD -v 2>&1` in
  8109. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8110. ld_shlibs=no
  8111. cat <<_LT_EOF 1>&2
  8112. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8113. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8114. *** is disabling shared libraries support. We urge you to upgrade GNU
  8115. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8116. *** your PATH or compiler configuration so that the native linker is
  8117. *** used, and then restart.
  8118. _LT_EOF
  8119. ;;
  8120. *)
  8121. # For security reasons, it is highly recommended that you always
  8122. # use absolute paths for naming shared libraries, and exclude the
  8123. # DT_RUNPATH tag from executables and libraries. But doing so
  8124. # requires that you compile everything twice, which is a pain.
  8125. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8126. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8127. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8128. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8129. else
  8130. ld_shlibs=no
  8131. fi
  8132. ;;
  8133. esac
  8134. ;;
  8135. sunos4*)
  8136. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8137. wlarc=
  8138. hardcode_direct=yes
  8139. hardcode_shlibpath_var=no
  8140. ;;
  8141. *)
  8142. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8143. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8144. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8145. else
  8146. ld_shlibs=no
  8147. fi
  8148. ;;
  8149. esac
  8150. if test no = "$ld_shlibs"; then
  8151. runpath_var=
  8152. hardcode_libdir_flag_spec=
  8153. export_dynamic_flag_spec=
  8154. whole_archive_flag_spec=
  8155. fi
  8156. else
  8157. # PORTME fill in a description of your system's linker (not GNU ld)
  8158. case $host_os in
  8159. aix3*)
  8160. allow_undefined_flag=unsupported
  8161. always_export_symbols=yes
  8162. 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'
  8163. # Note: this linker hardcodes the directories in LIBPATH if there
  8164. # are no directories specified by -L.
  8165. hardcode_minus_L=yes
  8166. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8167. # Neither direct hardcoding nor static linking is supported with a
  8168. # broken collect2.
  8169. hardcode_direct=unsupported
  8170. fi
  8171. ;;
  8172. aix[4-9]*)
  8173. if test ia64 = "$host_cpu"; then
  8174. # On IA64, the linker does run time linking by default, so we don't
  8175. # have to do anything special.
  8176. aix_use_runtimelinking=no
  8177. exp_sym_flag='-Bexport'
  8178. no_entry_flag=
  8179. else
  8180. # If we're using GNU nm, then we don't want the "-C" option.
  8181. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8182. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8183. # weak defined symbols like other global defined symbols, whereas
  8184. # GNU nm marks them as "W".
  8185. # While the 'weak' keyword is ignored in the Export File, we need
  8186. # it in the Import File for the 'aix-soname' feature, so we have
  8187. # to replace the "-B" option with "-P" for AIX nm.
  8188. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8189. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8190. else
  8191. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8192. fi
  8193. aix_use_runtimelinking=no
  8194. # Test if we are trying to use run time linking or normal
  8195. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8196. # have runtime linking enabled, and use it for executables.
  8197. # For shared libraries, we enable/disable runtime linking
  8198. # depending on the kind of the shared library created -
  8199. # when "with_aix_soname,aix_use_runtimelinking" is:
  8200. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8201. # "aix,yes" lib.so shared, rtl:yes, for executables
  8202. # lib.a static archive
  8203. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8204. # lib.a(lib.so.V) shared, rtl:no, for executables
  8205. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8206. # lib.a(lib.so.V) shared, rtl:no
  8207. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8208. # lib.a static archive
  8209. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8210. for ld_flag in $LDFLAGS; do
  8211. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8212. aix_use_runtimelinking=yes
  8213. break
  8214. fi
  8215. done
  8216. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8217. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8218. # so we don't have lib.a shared libs to link our executables.
  8219. # We have to force runtime linking in this case.
  8220. aix_use_runtimelinking=yes
  8221. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8222. fi
  8223. ;;
  8224. esac
  8225. exp_sym_flag='-bexport'
  8226. no_entry_flag='-bnoentry'
  8227. fi
  8228. # When large executables or shared objects are built, AIX ld can
  8229. # have problems creating the table of contents. If linking a library
  8230. # or program results in "error TOC overflow" add -mminimal-toc to
  8231. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8232. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8233. archive_cmds=''
  8234. hardcode_direct=yes
  8235. hardcode_direct_absolute=yes
  8236. hardcode_libdir_separator=':'
  8237. link_all_deplibs=yes
  8238. file_list_spec='$wl-f,'
  8239. case $with_aix_soname,$aix_use_runtimelinking in
  8240. aix,*) ;; # traditional, no import file
  8241. svr4,* | *,yes) # use import file
  8242. # The Import File defines what to hardcode.
  8243. hardcode_direct=no
  8244. hardcode_direct_absolute=no
  8245. ;;
  8246. esac
  8247. if test yes = "$GCC"; then
  8248. case $host_os in aix4.[012]|aix4.[012].*)
  8249. # We only want to do this on AIX 4.2 and lower, the check
  8250. # below for broken collect2 doesn't work under 4.3+
  8251. collect2name=`$CC -print-prog-name=collect2`
  8252. if test -f "$collect2name" &&
  8253. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8254. then
  8255. # We have reworked collect2
  8256. :
  8257. else
  8258. # We have old collect2
  8259. hardcode_direct=unsupported
  8260. # It fails to find uninstalled libraries when the uninstalled
  8261. # path is not listed in the libpath. Setting hardcode_minus_L
  8262. # to unsupported forces relinking
  8263. hardcode_minus_L=yes
  8264. hardcode_libdir_flag_spec='-L$libdir'
  8265. hardcode_libdir_separator=
  8266. fi
  8267. ;;
  8268. esac
  8269. shared_flag='-shared'
  8270. if test yes = "$aix_use_runtimelinking"; then
  8271. shared_flag="$shared_flag "'$wl-G'
  8272. fi
  8273. # Need to ensure runtime linking is disabled for the traditional
  8274. # shared library, or the linker may eventually find shared libraries
  8275. # /with/ Import File - we do not want to mix them.
  8276. shared_flag_aix='-shared'
  8277. shared_flag_svr4='-shared $wl-G'
  8278. else
  8279. # not using gcc
  8280. if test ia64 = "$host_cpu"; then
  8281. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8282. # chokes on -Wl,-G. The following line is correct:
  8283. shared_flag='-G'
  8284. else
  8285. if test yes = "$aix_use_runtimelinking"; then
  8286. shared_flag='$wl-G'
  8287. else
  8288. shared_flag='$wl-bM:SRE'
  8289. fi
  8290. shared_flag_aix='$wl-bM:SRE'
  8291. shared_flag_svr4='$wl-G'
  8292. fi
  8293. fi
  8294. export_dynamic_flag_spec='$wl-bexpall'
  8295. # It seems that -bexpall does not export symbols beginning with
  8296. # underscore (_), so it is better to generate a list of symbols to export.
  8297. always_export_symbols=yes
  8298. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8299. # Warning - without using the other runtime loading flags (-brtl),
  8300. # -berok will link without error, but may produce a broken library.
  8301. allow_undefined_flag='-berok'
  8302. # Determine the default libpath from the value encoded in an
  8303. # empty executable.
  8304. if test set = "${lt_cv_aix_libpath+set}"; then
  8305. aix_libpath=$lt_cv_aix_libpath
  8306. else
  8307. if ${lt_cv_aix_libpath_+:} false; then :
  8308. $as_echo_n "(cached) " >&6
  8309. else
  8310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8311. /* end confdefs.h. */
  8312. int
  8313. main ()
  8314. {
  8315. ;
  8316. return 0;
  8317. }
  8318. _ACEOF
  8319. if ac_fn_c_try_link "$LINENO"; then :
  8320. lt_aix_libpath_sed='
  8321. /Import File Strings/,/^$/ {
  8322. /^0/ {
  8323. s/^0 *\([^ ]*\) *$/\1/
  8324. p
  8325. }
  8326. }'
  8327. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8328. # Check for a 64-bit object if we didn't find anything.
  8329. if test -z "$lt_cv_aix_libpath_"; then
  8330. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8331. fi
  8332. fi
  8333. rm -f core conftest.err conftest.$ac_objext \
  8334. conftest$ac_exeext conftest.$ac_ext
  8335. if test -z "$lt_cv_aix_libpath_"; then
  8336. lt_cv_aix_libpath_=/usr/lib:/lib
  8337. fi
  8338. fi
  8339. aix_libpath=$lt_cv_aix_libpath_
  8340. fi
  8341. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8342. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8343. else
  8344. if test ia64 = "$host_cpu"; then
  8345. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8346. allow_undefined_flag="-z nodefs"
  8347. 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"
  8348. else
  8349. # Determine the default libpath from the value encoded in an
  8350. # empty executable.
  8351. if test set = "${lt_cv_aix_libpath+set}"; then
  8352. aix_libpath=$lt_cv_aix_libpath
  8353. else
  8354. if ${lt_cv_aix_libpath_+:} false; then :
  8355. $as_echo_n "(cached) " >&6
  8356. else
  8357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8358. /* end confdefs.h. */
  8359. int
  8360. main ()
  8361. {
  8362. ;
  8363. return 0;
  8364. }
  8365. _ACEOF
  8366. if ac_fn_c_try_link "$LINENO"; then :
  8367. lt_aix_libpath_sed='
  8368. /Import File Strings/,/^$/ {
  8369. /^0/ {
  8370. s/^0 *\([^ ]*\) *$/\1/
  8371. p
  8372. }
  8373. }'
  8374. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8375. # Check for a 64-bit object if we didn't find anything.
  8376. if test -z "$lt_cv_aix_libpath_"; then
  8377. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8378. fi
  8379. fi
  8380. rm -f core conftest.err conftest.$ac_objext \
  8381. conftest$ac_exeext conftest.$ac_ext
  8382. if test -z "$lt_cv_aix_libpath_"; then
  8383. lt_cv_aix_libpath_=/usr/lib:/lib
  8384. fi
  8385. fi
  8386. aix_libpath=$lt_cv_aix_libpath_
  8387. fi
  8388. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8389. # Warning - without using the other run time loading flags,
  8390. # -berok will link without error, but may produce a broken library.
  8391. no_undefined_flag=' $wl-bernotok'
  8392. allow_undefined_flag=' $wl-berok'
  8393. if test yes = "$with_gnu_ld"; then
  8394. # We only use this code for GNU lds that support --whole-archive.
  8395. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8396. else
  8397. # Exported symbols can be pulled into shared objects from archives
  8398. whole_archive_flag_spec='$convenience'
  8399. fi
  8400. archive_cmds_need_lc=yes
  8401. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8402. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8403. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8404. if test svr4 != "$with_aix_soname"; then
  8405. # This is similar to how AIX traditionally builds its shared libraries.
  8406. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8407. fi
  8408. if test aix != "$with_aix_soname"; then
  8409. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8410. else
  8411. # used by -dlpreopen to get the symbols
  8412. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8413. fi
  8414. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8415. fi
  8416. fi
  8417. ;;
  8418. amigaos*)
  8419. case $host_cpu in
  8420. powerpc)
  8421. # see comment about AmigaOS4 .so support
  8422. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8423. archive_expsym_cmds=''
  8424. ;;
  8425. m68k)
  8426. 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)'
  8427. hardcode_libdir_flag_spec='-L$libdir'
  8428. hardcode_minus_L=yes
  8429. ;;
  8430. esac
  8431. ;;
  8432. bsdi[45]*)
  8433. export_dynamic_flag_spec=-rdynamic
  8434. ;;
  8435. cygwin* | mingw* | pw32* | cegcc*)
  8436. # When not using gcc, we currently assume that we are using
  8437. # Microsoft Visual C++.
  8438. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8439. # no search path for DLLs.
  8440. case $cc_basename in
  8441. cl*)
  8442. # Native MSVC
  8443. hardcode_libdir_flag_spec=' '
  8444. allow_undefined_flag=unsupported
  8445. always_export_symbols=yes
  8446. file_list_spec='@'
  8447. # Tell ltmain to make .lib files, not .a files.
  8448. libext=lib
  8449. # Tell ltmain to make .dll files, not .so files.
  8450. shrext_cmds=.dll
  8451. # FIXME: Setting linknames here is a bad hack.
  8452. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8453. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8454. cp "$export_symbols" "$output_objdir/$soname.def";
  8455. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8456. else
  8457. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8458. fi~
  8459. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8460. linknames='
  8461. # The linker will not automatically build a static lib if we build a DLL.
  8462. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8463. enable_shared_with_static_runtimes=yes
  8464. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8465. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8466. # Don't use ranlib
  8467. old_postinstall_cmds='chmod 644 $oldlib'
  8468. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8469. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8470. case $lt_outputfile in
  8471. *.exe|*.EXE) ;;
  8472. *)
  8473. lt_outputfile=$lt_outputfile.exe
  8474. lt_tool_outputfile=$lt_tool_outputfile.exe
  8475. ;;
  8476. esac~
  8477. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8478. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8479. $RM "$lt_outputfile.manifest";
  8480. fi'
  8481. ;;
  8482. *)
  8483. # Assume MSVC wrapper
  8484. hardcode_libdir_flag_spec=' '
  8485. allow_undefined_flag=unsupported
  8486. # Tell ltmain to make .lib files, not .a files.
  8487. libext=lib
  8488. # Tell ltmain to make .dll files, not .so files.
  8489. shrext_cmds=.dll
  8490. # FIXME: Setting linknames here is a bad hack.
  8491. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8492. # The linker will automatically build a .lib file if we build a DLL.
  8493. old_archive_from_new_cmds='true'
  8494. # FIXME: Should let the user specify the lib program.
  8495. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8496. enable_shared_with_static_runtimes=yes
  8497. ;;
  8498. esac
  8499. ;;
  8500. darwin* | rhapsody*)
  8501. archive_cmds_need_lc=no
  8502. hardcode_direct=no
  8503. hardcode_automatic=yes
  8504. hardcode_shlibpath_var=unsupported
  8505. if test yes = "$lt_cv_ld_force_load"; then
  8506. 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\"`'
  8507. else
  8508. whole_archive_flag_spec=''
  8509. fi
  8510. link_all_deplibs=yes
  8511. allow_undefined_flag=$_lt_dar_allow_undefined
  8512. case $cc_basename in
  8513. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8514. *) _lt_dar_can_shared=$GCC ;;
  8515. esac
  8516. if test yes = "$_lt_dar_can_shared"; then
  8517. output_verbose_link_cmd=func_echo_all
  8518. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8519. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8520. 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"
  8521. 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"
  8522. else
  8523. ld_shlibs=no
  8524. fi
  8525. ;;
  8526. dgux*)
  8527. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8528. hardcode_libdir_flag_spec='-L$libdir'
  8529. hardcode_shlibpath_var=no
  8530. ;;
  8531. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8532. # support. Future versions do this automatically, but an explicit c++rt0.o
  8533. # does not break anything, and helps significantly (at the cost of a little
  8534. # extra space).
  8535. freebsd2.2*)
  8536. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8537. hardcode_libdir_flag_spec='-R$libdir'
  8538. hardcode_direct=yes
  8539. hardcode_shlibpath_var=no
  8540. ;;
  8541. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8542. freebsd2.*)
  8543. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8544. hardcode_direct=yes
  8545. hardcode_minus_L=yes
  8546. hardcode_shlibpath_var=no
  8547. ;;
  8548. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8549. freebsd* | dragonfly*)
  8550. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8551. hardcode_libdir_flag_spec='-R$libdir'
  8552. hardcode_direct=yes
  8553. hardcode_shlibpath_var=no
  8554. ;;
  8555. hpux9*)
  8556. if test yes = "$GCC"; then
  8557. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8558. else
  8559. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8560. fi
  8561. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8562. hardcode_libdir_separator=:
  8563. hardcode_direct=yes
  8564. # hardcode_minus_L: Not really in the search PATH,
  8565. # but as the default location of the library.
  8566. hardcode_minus_L=yes
  8567. export_dynamic_flag_spec='$wl-E'
  8568. ;;
  8569. hpux10*)
  8570. if test yes,no = "$GCC,$with_gnu_ld"; then
  8571. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8572. else
  8573. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8574. fi
  8575. if test no = "$with_gnu_ld"; then
  8576. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8577. hardcode_libdir_separator=:
  8578. hardcode_direct=yes
  8579. hardcode_direct_absolute=yes
  8580. export_dynamic_flag_spec='$wl-E'
  8581. # hardcode_minus_L: Not really in the search PATH,
  8582. # but as the default location of the library.
  8583. hardcode_minus_L=yes
  8584. fi
  8585. ;;
  8586. hpux11*)
  8587. if test yes,no = "$GCC,$with_gnu_ld"; then
  8588. case $host_cpu in
  8589. hppa*64*)
  8590. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8591. ;;
  8592. ia64*)
  8593. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8594. ;;
  8595. *)
  8596. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8597. ;;
  8598. esac
  8599. else
  8600. case $host_cpu in
  8601. hppa*64*)
  8602. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8603. ;;
  8604. ia64*)
  8605. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8606. ;;
  8607. *)
  8608. # Older versions of the 11.00 compiler do not understand -b yet
  8609. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8611. $as_echo_n "checking if $CC understands -b... " >&6; }
  8612. if ${lt_cv_prog_compiler__b+:} false; then :
  8613. $as_echo_n "(cached) " >&6
  8614. else
  8615. lt_cv_prog_compiler__b=no
  8616. save_LDFLAGS=$LDFLAGS
  8617. LDFLAGS="$LDFLAGS -b"
  8618. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8619. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8620. # The linker can only warn and ignore the option if not recognized
  8621. # So say no if there are warnings
  8622. if test -s conftest.err; then
  8623. # Append any errors to the config.log.
  8624. cat conftest.err 1>&5
  8625. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8626. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8627. if diff conftest.exp conftest.er2 >/dev/null; then
  8628. lt_cv_prog_compiler__b=yes
  8629. fi
  8630. else
  8631. lt_cv_prog_compiler__b=yes
  8632. fi
  8633. fi
  8634. $RM -r conftest*
  8635. LDFLAGS=$save_LDFLAGS
  8636. fi
  8637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8638. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8639. if test yes = "$lt_cv_prog_compiler__b"; then
  8640. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8641. else
  8642. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8643. fi
  8644. ;;
  8645. esac
  8646. fi
  8647. if test no = "$with_gnu_ld"; then
  8648. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8649. hardcode_libdir_separator=:
  8650. case $host_cpu in
  8651. hppa*64*|ia64*)
  8652. hardcode_direct=no
  8653. hardcode_shlibpath_var=no
  8654. ;;
  8655. *)
  8656. hardcode_direct=yes
  8657. hardcode_direct_absolute=yes
  8658. export_dynamic_flag_spec='$wl-E'
  8659. # hardcode_minus_L: Not really in the search PATH,
  8660. # but as the default location of the library.
  8661. hardcode_minus_L=yes
  8662. ;;
  8663. esac
  8664. fi
  8665. ;;
  8666. irix5* | irix6* | nonstopux*)
  8667. if test yes = "$GCC"; then
  8668. 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'
  8669. # Try to use the -exported_symbol ld option, if it does not
  8670. # work, assume that -exports_file does not work either and
  8671. # implicitly export all symbols.
  8672. # This should be the same for all languages, so no per-tag cache variable.
  8673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8674. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8675. if ${lt_cv_irix_exported_symbol+:} false; then :
  8676. $as_echo_n "(cached) " >&6
  8677. else
  8678. save_LDFLAGS=$LDFLAGS
  8679. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8681. /* end confdefs.h. */
  8682. int foo (void) { return 0; }
  8683. _ACEOF
  8684. if ac_fn_c_try_link "$LINENO"; then :
  8685. lt_cv_irix_exported_symbol=yes
  8686. else
  8687. lt_cv_irix_exported_symbol=no
  8688. fi
  8689. rm -f core conftest.err conftest.$ac_objext \
  8690. conftest$ac_exeext conftest.$ac_ext
  8691. LDFLAGS=$save_LDFLAGS
  8692. fi
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8694. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8695. if test yes = "$lt_cv_irix_exported_symbol"; then
  8696. 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'
  8697. fi
  8698. else
  8699. 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'
  8700. 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'
  8701. fi
  8702. archive_cmds_need_lc='no'
  8703. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8704. hardcode_libdir_separator=:
  8705. inherit_rpath=yes
  8706. link_all_deplibs=yes
  8707. ;;
  8708. linux*)
  8709. case $cc_basename in
  8710. tcc*)
  8711. # Fabrice Bellard et al's Tiny C Compiler
  8712. ld_shlibs=yes
  8713. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8714. ;;
  8715. esac
  8716. ;;
  8717. netbsd*)
  8718. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8719. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8720. else
  8721. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8722. fi
  8723. hardcode_libdir_flag_spec='-R$libdir'
  8724. hardcode_direct=yes
  8725. hardcode_shlibpath_var=no
  8726. ;;
  8727. newsos6)
  8728. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8729. hardcode_direct=yes
  8730. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8731. hardcode_libdir_separator=:
  8732. hardcode_shlibpath_var=no
  8733. ;;
  8734. *nto* | *qnx*)
  8735. ;;
  8736. openbsd* | bitrig*)
  8737. if test -f /usr/libexec/ld.so; then
  8738. hardcode_direct=yes
  8739. hardcode_shlibpath_var=no
  8740. hardcode_direct_absolute=yes
  8741. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8742. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8743. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8744. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8745. export_dynamic_flag_spec='$wl-E'
  8746. else
  8747. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8748. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8749. fi
  8750. else
  8751. ld_shlibs=no
  8752. fi
  8753. ;;
  8754. os2*)
  8755. hardcode_libdir_flag_spec='-L$libdir'
  8756. hardcode_minus_L=yes
  8757. allow_undefined_flag=unsupported
  8758. shrext_cmds=.dll
  8759. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8760. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8761. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8762. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8763. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8764. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8765. emximp -o $lib $output_objdir/$libname.def'
  8766. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8767. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8768. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8769. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8770. prefix_cmds="$SED"~
  8771. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8772. prefix_cmds="$prefix_cmds -e 1d";
  8773. fi~
  8774. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8775. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8776. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8777. emximp -o $lib $output_objdir/$libname.def'
  8778. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8779. enable_shared_with_static_runtimes=yes
  8780. ;;
  8781. osf3*)
  8782. if test yes = "$GCC"; then
  8783. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8784. 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'
  8785. else
  8786. allow_undefined_flag=' -expect_unresolved \*'
  8787. 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'
  8788. fi
  8789. archive_cmds_need_lc='no'
  8790. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8791. hardcode_libdir_separator=:
  8792. ;;
  8793. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8794. if test yes = "$GCC"; then
  8795. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8796. 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'
  8797. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8798. else
  8799. allow_undefined_flag=' -expect_unresolved \*'
  8800. 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'
  8801. 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~
  8802. $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'
  8803. # Both c and cxx compiler support -rpath directly
  8804. hardcode_libdir_flag_spec='-rpath $libdir'
  8805. fi
  8806. archive_cmds_need_lc='no'
  8807. hardcode_libdir_separator=:
  8808. ;;
  8809. solaris*)
  8810. no_undefined_flag=' -z defs'
  8811. if test yes = "$GCC"; then
  8812. wlarc='$wl'
  8813. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8814. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8815. $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'
  8816. else
  8817. case `$CC -V 2>&1` in
  8818. *"Compilers 5.0"*)
  8819. wlarc=''
  8820. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8821. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8822. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8823. ;;
  8824. *)
  8825. wlarc='$wl'
  8826. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8827. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8828. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8829. ;;
  8830. esac
  8831. fi
  8832. hardcode_libdir_flag_spec='-R$libdir'
  8833. hardcode_shlibpath_var=no
  8834. case $host_os in
  8835. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8836. *)
  8837. # The compiler driver will combine and reorder linker options,
  8838. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8839. # but is careful enough not to reorder.
  8840. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8841. if test yes = "$GCC"; then
  8842. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8843. else
  8844. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8845. fi
  8846. ;;
  8847. esac
  8848. link_all_deplibs=yes
  8849. ;;
  8850. sunos4*)
  8851. if test sequent = "$host_vendor"; then
  8852. # Use $CC to link under sequent, because it throws in some extra .o
  8853. # files that make .init and .fini sections work.
  8854. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8855. else
  8856. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8857. fi
  8858. hardcode_libdir_flag_spec='-L$libdir'
  8859. hardcode_direct=yes
  8860. hardcode_minus_L=yes
  8861. hardcode_shlibpath_var=no
  8862. ;;
  8863. sysv4)
  8864. case $host_vendor in
  8865. sni)
  8866. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8867. hardcode_direct=yes # is this really true???
  8868. ;;
  8869. siemens)
  8870. ## LD is ld it makes a PLAMLIB
  8871. ## CC just makes a GrossModule.
  8872. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8873. reload_cmds='$CC -r -o $output$reload_objs'
  8874. hardcode_direct=no
  8875. ;;
  8876. motorola)
  8877. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8878. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8879. ;;
  8880. esac
  8881. runpath_var='LD_RUN_PATH'
  8882. hardcode_shlibpath_var=no
  8883. ;;
  8884. sysv4.3*)
  8885. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8886. hardcode_shlibpath_var=no
  8887. export_dynamic_flag_spec='-Bexport'
  8888. ;;
  8889. sysv4*MP*)
  8890. if test -d /usr/nec; then
  8891. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8892. hardcode_shlibpath_var=no
  8893. runpath_var=LD_RUN_PATH
  8894. hardcode_runpath_var=yes
  8895. ld_shlibs=yes
  8896. fi
  8897. ;;
  8898. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8899. no_undefined_flag='$wl-z,text'
  8900. archive_cmds_need_lc=no
  8901. hardcode_shlibpath_var=no
  8902. runpath_var='LD_RUN_PATH'
  8903. if test yes = "$GCC"; then
  8904. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8905. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8906. else
  8907. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8908. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8909. fi
  8910. ;;
  8911. sysv5* | sco3.2v5* | sco5v6*)
  8912. # Note: We CANNOT use -z defs as we might desire, because we do not
  8913. # link with -lc, and that would cause any symbols used from libc to
  8914. # always be unresolved, which means just about no library would
  8915. # ever link correctly. If we're not using GNU ld we use -z text
  8916. # though, which does catch some bad symbols but isn't as heavy-handed
  8917. # as -z defs.
  8918. no_undefined_flag='$wl-z,text'
  8919. allow_undefined_flag='$wl-z,nodefs'
  8920. archive_cmds_need_lc=no
  8921. hardcode_shlibpath_var=no
  8922. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8923. hardcode_libdir_separator=':'
  8924. link_all_deplibs=yes
  8925. export_dynamic_flag_spec='$wl-Bexport'
  8926. runpath_var='LD_RUN_PATH'
  8927. if test yes = "$GCC"; then
  8928. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8929. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8930. else
  8931. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8932. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8933. fi
  8934. ;;
  8935. uts4*)
  8936. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8937. hardcode_libdir_flag_spec='-L$libdir'
  8938. hardcode_shlibpath_var=no
  8939. ;;
  8940. *)
  8941. ld_shlibs=no
  8942. ;;
  8943. esac
  8944. if test sni = "$host_vendor"; then
  8945. case $host in
  8946. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8947. export_dynamic_flag_spec='$wl-Blargedynsym'
  8948. ;;
  8949. esac
  8950. fi
  8951. fi
  8952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8953. $as_echo "$ld_shlibs" >&6; }
  8954. test no = "$ld_shlibs" && can_build_shared=no
  8955. with_gnu_ld=$with_gnu_ld
  8956. #
  8957. # Do we need to explicitly link libc?
  8958. #
  8959. case "x$archive_cmds_need_lc" in
  8960. x|xyes)
  8961. # Assume -lc should be added
  8962. archive_cmds_need_lc=yes
  8963. if test yes,yes = "$GCC,$enable_shared"; then
  8964. case $archive_cmds in
  8965. *'~'*)
  8966. # FIXME: we may have to deal with multi-command sequences.
  8967. ;;
  8968. '$CC '*)
  8969. # Test whether the compiler implicitly links with -lc since on some
  8970. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8971. # to ld, don't add -lc before -lgcc.
  8972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8973. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8974. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8975. $as_echo_n "(cached) " >&6
  8976. else
  8977. $RM conftest*
  8978. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8979. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8980. (eval $ac_compile) 2>&5
  8981. ac_status=$?
  8982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8983. test $ac_status = 0; } 2>conftest.err; then
  8984. soname=conftest
  8985. lib=conftest
  8986. libobjs=conftest.$ac_objext
  8987. deplibs=
  8988. wl=$lt_prog_compiler_wl
  8989. pic_flag=$lt_prog_compiler_pic
  8990. compiler_flags=-v
  8991. linker_flags=-v
  8992. verstring=
  8993. output_objdir=.
  8994. libname=conftest
  8995. lt_save_allow_undefined_flag=$allow_undefined_flag
  8996. allow_undefined_flag=
  8997. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8998. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8999. ac_status=$?
  9000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9001. test $ac_status = 0; }
  9002. then
  9003. lt_cv_archive_cmds_need_lc=no
  9004. else
  9005. lt_cv_archive_cmds_need_lc=yes
  9006. fi
  9007. allow_undefined_flag=$lt_save_allow_undefined_flag
  9008. else
  9009. cat conftest.err 1>&5
  9010. fi
  9011. $RM conftest*
  9012. fi
  9013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9014. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9015. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9016. ;;
  9017. esac
  9018. fi
  9019. ;;
  9020. esac
  9021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9022. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9023. if test yes = "$GCC"; then
  9024. case $host_os in
  9025. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9026. *) lt_awk_arg='/^libraries:/' ;;
  9027. esac
  9028. case $host_os in
  9029. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9030. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9031. esac
  9032. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9033. case $lt_search_path_spec in
  9034. *\;*)
  9035. # if the path contains ";" then we assume it to be the separator
  9036. # otherwise default to the standard path separator (i.e. ":") - it is
  9037. # assumed that no part of a normal pathname contains ";" but that should
  9038. # okay in the real world where ";" in dirpaths is itself problematic.
  9039. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9040. ;;
  9041. *)
  9042. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9043. ;;
  9044. esac
  9045. # Ok, now we have the path, separated by spaces, we can step through it
  9046. # and add multilib dir if necessary...
  9047. lt_tmp_lt_search_path_spec=
  9048. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9049. # ...but if some path component already ends with the multilib dir we assume
  9050. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9051. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9052. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9053. lt_multi_os_dir=
  9054. ;;
  9055. esac
  9056. for lt_sys_path in $lt_search_path_spec; do
  9057. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9058. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9059. elif test -n "$lt_multi_os_dir"; then
  9060. test -d "$lt_sys_path" && \
  9061. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9062. fi
  9063. done
  9064. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9065. BEGIN {RS = " "; FS = "/|\n";} {
  9066. lt_foo = "";
  9067. lt_count = 0;
  9068. for (lt_i = NF; lt_i > 0; lt_i--) {
  9069. if ($lt_i != "" && $lt_i != ".") {
  9070. if ($lt_i == "..") {
  9071. lt_count++;
  9072. } else {
  9073. if (lt_count == 0) {
  9074. lt_foo = "/" $lt_i lt_foo;
  9075. } else {
  9076. lt_count--;
  9077. }
  9078. }
  9079. }
  9080. }
  9081. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9082. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9083. }'`
  9084. # AWK program above erroneously prepends '/' to C:/dos/paths
  9085. # for these hosts.
  9086. case $host_os in
  9087. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9088. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9089. esac
  9090. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9091. else
  9092. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9093. fi
  9094. library_names_spec=
  9095. libname_spec='lib$name'
  9096. soname_spec=
  9097. shrext_cmds=.so
  9098. postinstall_cmds=
  9099. postuninstall_cmds=
  9100. finish_cmds=
  9101. finish_eval=
  9102. shlibpath_var=
  9103. shlibpath_overrides_runpath=unknown
  9104. version_type=none
  9105. dynamic_linker="$host_os ld.so"
  9106. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9107. need_lib_prefix=unknown
  9108. hardcode_into_libs=no
  9109. # when you set need_version to no, make sure it does not cause -set_version
  9110. # flags to be left without arguments
  9111. need_version=unknown
  9112. case $host_os in
  9113. aix3*)
  9114. version_type=linux # correct to gnu/linux during the next big refactor
  9115. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9116. shlibpath_var=LIBPATH
  9117. # AIX 3 has no versioning support, so we append a major version to the name.
  9118. soname_spec='$libname$release$shared_ext$major'
  9119. ;;
  9120. aix[4-9]*)
  9121. version_type=linux # correct to gnu/linux during the next big refactor
  9122. need_lib_prefix=no
  9123. need_version=no
  9124. hardcode_into_libs=yes
  9125. if test ia64 = "$host_cpu"; then
  9126. # AIX 5 supports IA64
  9127. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9128. shlibpath_var=LD_LIBRARY_PATH
  9129. else
  9130. # With GCC up to 2.95.x, collect2 would create an import file
  9131. # for dependence libraries. The import file would start with
  9132. # the line '#! .'. This would cause the generated library to
  9133. # depend on '.', always an invalid library. This was fixed in
  9134. # development snapshots of GCC prior to 3.0.
  9135. case $host_os in
  9136. aix4 | aix4.[01] | aix4.[01].*)
  9137. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9138. echo ' yes '
  9139. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9140. :
  9141. else
  9142. can_build_shared=no
  9143. fi
  9144. ;;
  9145. esac
  9146. # Using Import Files as archive members, it is possible to support
  9147. # filename-based versioning of shared library archives on AIX. While
  9148. # this would work for both with and without runtime linking, it will
  9149. # prevent static linking of such archives. So we do filename-based
  9150. # shared library versioning with .so extension only, which is used
  9151. # when both runtime linking and shared linking is enabled.
  9152. # Unfortunately, runtime linking may impact performance, so we do
  9153. # not want this to be the default eventually. Also, we use the
  9154. # versioned .so libs for executables only if there is the -brtl
  9155. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9156. # To allow for filename-based versioning support, we need to create
  9157. # libNAME.so.V as an archive file, containing:
  9158. # *) an Import File, referring to the versioned filename of the
  9159. # archive as well as the shared archive member, telling the
  9160. # bitwidth (32 or 64) of that shared object, and providing the
  9161. # list of exported symbols of that shared object, eventually
  9162. # decorated with the 'weak' keyword
  9163. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9164. # it being seen by the linker.
  9165. # At run time we better use the real file rather than another symlink,
  9166. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9167. case $with_aix_soname,$aix_use_runtimelinking in
  9168. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9169. # soname into executable. Probably we can add versioning support to
  9170. # collect2, so additional links can be useful in future.
  9171. aix,yes) # traditional libtool
  9172. dynamic_linker='AIX unversionable lib.so'
  9173. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9174. # instead of lib<name>.a to let people know that these are not
  9175. # typical AIX shared libraries.
  9176. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9177. ;;
  9178. aix,no) # traditional AIX only
  9179. dynamic_linker='AIX lib.a(lib.so.V)'
  9180. # We preserve .a as extension for shared libraries through AIX4.2
  9181. # and later when we are not doing run time linking.
  9182. library_names_spec='$libname$release.a $libname.a'
  9183. soname_spec='$libname$release$shared_ext$major'
  9184. ;;
  9185. svr4,*) # full svr4 only
  9186. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9187. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9188. # We do not specify a path in Import Files, so LIBPATH fires.
  9189. shlibpath_overrides_runpath=yes
  9190. ;;
  9191. *,yes) # both, prefer svr4
  9192. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9193. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9194. # unpreferred sharedlib libNAME.a needs extra handling
  9195. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9196. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9197. # We do not specify a path in Import Files, so LIBPATH fires.
  9198. shlibpath_overrides_runpath=yes
  9199. ;;
  9200. *,no) # both, prefer aix
  9201. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9202. library_names_spec='$libname$release.a $libname.a'
  9203. soname_spec='$libname$release$shared_ext$major'
  9204. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9205. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9206. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9207. ;;
  9208. esac
  9209. shlibpath_var=LIBPATH
  9210. fi
  9211. ;;
  9212. amigaos*)
  9213. case $host_cpu in
  9214. powerpc)
  9215. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9216. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9217. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9218. ;;
  9219. m68k)
  9220. library_names_spec='$libname.ixlibrary $libname.a'
  9221. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9222. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9223. ;;
  9224. esac
  9225. ;;
  9226. beos*)
  9227. library_names_spec='$libname$shared_ext'
  9228. dynamic_linker="$host_os ld.so"
  9229. shlibpath_var=LIBRARY_PATH
  9230. ;;
  9231. bsdi[45]*)
  9232. version_type=linux # correct to gnu/linux during the next big refactor
  9233. need_version=no
  9234. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9235. soname_spec='$libname$release$shared_ext$major'
  9236. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9237. shlibpath_var=LD_LIBRARY_PATH
  9238. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9239. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9240. # the default ld.so.conf also contains /usr/contrib/lib and
  9241. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9242. # libtool to hard-code these into programs
  9243. ;;
  9244. cygwin* | mingw* | pw32* | cegcc*)
  9245. version_type=windows
  9246. shrext_cmds=.dll
  9247. need_version=no
  9248. need_lib_prefix=no
  9249. case $GCC,$cc_basename in
  9250. yes,*)
  9251. # gcc
  9252. library_names_spec='$libname.dll.a'
  9253. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9254. postinstall_cmds='base_file=`basename \$file`~
  9255. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9256. dldir=$destdir/`dirname \$dlpath`~
  9257. test -d \$dldir || mkdir -p \$dldir~
  9258. $install_prog $dir/$dlname \$dldir/$dlname~
  9259. chmod a+x \$dldir/$dlname~
  9260. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9261. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9262. fi'
  9263. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9264. dlpath=$dir/\$dldll~
  9265. $RM \$dlpath'
  9266. shlibpath_overrides_runpath=yes
  9267. case $host_os in
  9268. cygwin*)
  9269. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9270. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9271. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9272. ;;
  9273. mingw* | cegcc*)
  9274. # MinGW DLLs use traditional 'lib' prefix
  9275. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9276. ;;
  9277. pw32*)
  9278. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9279. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9280. ;;
  9281. esac
  9282. dynamic_linker='Win32 ld.exe'
  9283. ;;
  9284. *,cl*)
  9285. # Native MSVC
  9286. libname_spec='$name'
  9287. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9288. library_names_spec='$libname.dll.lib'
  9289. case $build_os in
  9290. mingw*)
  9291. sys_lib_search_path_spec=
  9292. lt_save_ifs=$IFS
  9293. IFS=';'
  9294. for lt_path in $LIB
  9295. do
  9296. IFS=$lt_save_ifs
  9297. # Let DOS variable expansion print the short 8.3 style file name.
  9298. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9299. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9300. done
  9301. IFS=$lt_save_ifs
  9302. # Convert to MSYS style.
  9303. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9304. ;;
  9305. cygwin*)
  9306. # Convert to unix form, then to dos form, then back to unix form
  9307. # but this time dos style (no spaces!) so that the unix form looks
  9308. # like /cygdrive/c/PROGRA~1:/cygdr...
  9309. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9310. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9311. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9312. ;;
  9313. *)
  9314. sys_lib_search_path_spec=$LIB
  9315. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9316. # It is most probably a Windows format PATH.
  9317. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9318. else
  9319. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9320. fi
  9321. # FIXME: find the short name or the path components, as spaces are
  9322. # common. (e.g. "Program Files" -> "PROGRA~1")
  9323. ;;
  9324. esac
  9325. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9326. postinstall_cmds='base_file=`basename \$file`~
  9327. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9328. dldir=$destdir/`dirname \$dlpath`~
  9329. test -d \$dldir || mkdir -p \$dldir~
  9330. $install_prog $dir/$dlname \$dldir/$dlname'
  9331. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9332. dlpath=$dir/\$dldll~
  9333. $RM \$dlpath'
  9334. shlibpath_overrides_runpath=yes
  9335. dynamic_linker='Win32 link.exe'
  9336. ;;
  9337. *)
  9338. # Assume MSVC wrapper
  9339. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9340. dynamic_linker='Win32 ld.exe'
  9341. ;;
  9342. esac
  9343. # FIXME: first we should search . and the directory the executable is in
  9344. shlibpath_var=PATH
  9345. ;;
  9346. darwin* | rhapsody*)
  9347. dynamic_linker="$host_os dyld"
  9348. version_type=darwin
  9349. need_lib_prefix=no
  9350. need_version=no
  9351. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9352. soname_spec='$libname$release$major$shared_ext'
  9353. shlibpath_overrides_runpath=yes
  9354. shlibpath_var=DYLD_LIBRARY_PATH
  9355. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9356. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9357. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9358. ;;
  9359. dgux*)
  9360. version_type=linux # correct to gnu/linux during the next big refactor
  9361. need_lib_prefix=no
  9362. need_version=no
  9363. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9364. soname_spec='$libname$release$shared_ext$major'
  9365. shlibpath_var=LD_LIBRARY_PATH
  9366. ;;
  9367. freebsd* | dragonfly*)
  9368. # DragonFly does not have aout. When/if they implement a new
  9369. # versioning mechanism, adjust this.
  9370. if test -x /usr/bin/objformat; then
  9371. objformat=`/usr/bin/objformat`
  9372. else
  9373. case $host_os in
  9374. freebsd[23].*) objformat=aout ;;
  9375. *) objformat=elf ;;
  9376. esac
  9377. fi
  9378. version_type=freebsd-$objformat
  9379. case $version_type in
  9380. freebsd-elf*)
  9381. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9382. soname_spec='$libname$release$shared_ext$major'
  9383. need_version=no
  9384. need_lib_prefix=no
  9385. ;;
  9386. freebsd-*)
  9387. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9388. need_version=yes
  9389. ;;
  9390. esac
  9391. shlibpath_var=LD_LIBRARY_PATH
  9392. case $host_os in
  9393. freebsd2.*)
  9394. shlibpath_overrides_runpath=yes
  9395. ;;
  9396. freebsd3.[01]* | freebsdelf3.[01]*)
  9397. shlibpath_overrides_runpath=yes
  9398. hardcode_into_libs=yes
  9399. ;;
  9400. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9401. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9402. shlibpath_overrides_runpath=no
  9403. hardcode_into_libs=yes
  9404. ;;
  9405. *) # from 4.6 on, and DragonFly
  9406. shlibpath_overrides_runpath=yes
  9407. hardcode_into_libs=yes
  9408. ;;
  9409. esac
  9410. ;;
  9411. haiku*)
  9412. version_type=linux # correct to gnu/linux during the next big refactor
  9413. need_lib_prefix=no
  9414. need_version=no
  9415. dynamic_linker="$host_os runtime_loader"
  9416. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9417. soname_spec='$libname$release$shared_ext$major'
  9418. shlibpath_var=LIBRARY_PATH
  9419. shlibpath_overrides_runpath=no
  9420. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9421. hardcode_into_libs=yes
  9422. ;;
  9423. hpux9* | hpux10* | hpux11*)
  9424. # Give a soname corresponding to the major version so that dld.sl refuses to
  9425. # link against other versions.
  9426. version_type=sunos
  9427. need_lib_prefix=no
  9428. need_version=no
  9429. case $host_cpu in
  9430. ia64*)
  9431. shrext_cmds='.so'
  9432. hardcode_into_libs=yes
  9433. dynamic_linker="$host_os dld.so"
  9434. shlibpath_var=LD_LIBRARY_PATH
  9435. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9436. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9437. soname_spec='$libname$release$shared_ext$major'
  9438. if test 32 = "$HPUX_IA64_MODE"; then
  9439. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9440. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9441. else
  9442. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9443. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9444. fi
  9445. ;;
  9446. hppa*64*)
  9447. shrext_cmds='.sl'
  9448. hardcode_into_libs=yes
  9449. dynamic_linker="$host_os dld.sl"
  9450. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9451. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9452. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9453. soname_spec='$libname$release$shared_ext$major'
  9454. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9455. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9456. ;;
  9457. *)
  9458. shrext_cmds='.sl'
  9459. dynamic_linker="$host_os dld.sl"
  9460. shlibpath_var=SHLIB_PATH
  9461. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9462. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9463. soname_spec='$libname$release$shared_ext$major'
  9464. ;;
  9465. esac
  9466. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9467. postinstall_cmds='chmod 555 $lib'
  9468. # or fails outright, so override atomically:
  9469. install_override_mode=555
  9470. ;;
  9471. interix[3-9]*)
  9472. version_type=linux # correct to gnu/linux during the next big refactor
  9473. need_lib_prefix=no
  9474. need_version=no
  9475. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9476. soname_spec='$libname$release$shared_ext$major'
  9477. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9478. shlibpath_var=LD_LIBRARY_PATH
  9479. shlibpath_overrides_runpath=no
  9480. hardcode_into_libs=yes
  9481. ;;
  9482. irix5* | irix6* | nonstopux*)
  9483. case $host_os in
  9484. nonstopux*) version_type=nonstopux ;;
  9485. *)
  9486. if test yes = "$lt_cv_prog_gnu_ld"; then
  9487. version_type=linux # correct to gnu/linux during the next big refactor
  9488. else
  9489. version_type=irix
  9490. fi ;;
  9491. esac
  9492. need_lib_prefix=no
  9493. need_version=no
  9494. soname_spec='$libname$release$shared_ext$major'
  9495. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9496. case $host_os in
  9497. irix5* | nonstopux*)
  9498. libsuff= shlibsuff=
  9499. ;;
  9500. *)
  9501. case $LD in # libtool.m4 will add one of these switches to LD
  9502. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9503. libsuff= shlibsuff= libmagic=32-bit;;
  9504. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9505. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9506. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9507. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9508. *) libsuff= shlibsuff= libmagic=never-match;;
  9509. esac
  9510. ;;
  9511. esac
  9512. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9513. shlibpath_overrides_runpath=no
  9514. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9515. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9516. hardcode_into_libs=yes
  9517. ;;
  9518. # No shared lib support for Linux oldld, aout, or coff.
  9519. linux*oldld* | linux*aout* | linux*coff*)
  9520. dynamic_linker=no
  9521. ;;
  9522. linux*android*)
  9523. version_type=none # Android doesn't support versioned libraries.
  9524. need_lib_prefix=no
  9525. need_version=no
  9526. library_names_spec='$libname$release$shared_ext'
  9527. soname_spec='$libname$release$shared_ext'
  9528. finish_cmds=
  9529. shlibpath_var=LD_LIBRARY_PATH
  9530. shlibpath_overrides_runpath=yes
  9531. # This implies no fast_install, which is unacceptable.
  9532. # Some rework will be needed to allow for fast_install
  9533. # before this can be enabled.
  9534. hardcode_into_libs=yes
  9535. dynamic_linker='Android linker'
  9536. # Don't embed -rpath directories since the linker doesn't support them.
  9537. hardcode_libdir_flag_spec='-L$libdir'
  9538. ;;
  9539. # This must be glibc/ELF.
  9540. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9541. version_type=linux # correct to gnu/linux during the next big refactor
  9542. need_lib_prefix=no
  9543. need_version=no
  9544. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9545. soname_spec='$libname$release$shared_ext$major'
  9546. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9547. shlibpath_var=LD_LIBRARY_PATH
  9548. shlibpath_overrides_runpath=no
  9549. # Some binutils ld are patched to set DT_RUNPATH
  9550. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9551. $as_echo_n "(cached) " >&6
  9552. else
  9553. lt_cv_shlibpath_overrides_runpath=no
  9554. save_LDFLAGS=$LDFLAGS
  9555. save_libdir=$libdir
  9556. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9557. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9559. /* end confdefs.h. */
  9560. int
  9561. main ()
  9562. {
  9563. ;
  9564. return 0;
  9565. }
  9566. _ACEOF
  9567. if ac_fn_c_try_link "$LINENO"; then :
  9568. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9569. lt_cv_shlibpath_overrides_runpath=yes
  9570. fi
  9571. fi
  9572. rm -f core conftest.err conftest.$ac_objext \
  9573. conftest$ac_exeext conftest.$ac_ext
  9574. LDFLAGS=$save_LDFLAGS
  9575. libdir=$save_libdir
  9576. fi
  9577. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9578. # This implies no fast_install, which is unacceptable.
  9579. # Some rework will be needed to allow for fast_install
  9580. # before this can be enabled.
  9581. hardcode_into_libs=yes
  9582. # Add ABI-specific directories to the system library path.
  9583. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9584. # Ideally, we could use ldconfig to report *all* directores which are
  9585. # searched for libraries, however this is still not possible. Aside from not
  9586. # being certain /sbin/ldconfig is available, command
  9587. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9588. # even though it is searched at run-time. Try to do the best guess by
  9589. # appending ld.so.conf contents (and includes) to the search path.
  9590. if test -f /etc/ld.so.conf; then
  9591. 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' ' '`
  9592. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9593. fi
  9594. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9595. # powerpc, because MkLinux only supported shared libraries with the
  9596. # GNU dynamic linker. Since this was broken with cross compilers,
  9597. # most powerpc-linux boxes support dynamic linking these days and
  9598. # people can always --disable-shared, the test was removed, and we
  9599. # assume the GNU/Linux dynamic linker is in use.
  9600. dynamic_linker='GNU/Linux ld.so'
  9601. ;;
  9602. netbsd*)
  9603. version_type=sunos
  9604. need_lib_prefix=no
  9605. need_version=no
  9606. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9607. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9608. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9609. dynamic_linker='NetBSD (a.out) ld.so'
  9610. else
  9611. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9612. soname_spec='$libname$release$shared_ext$major'
  9613. dynamic_linker='NetBSD ld.elf_so'
  9614. fi
  9615. shlibpath_var=LD_LIBRARY_PATH
  9616. shlibpath_overrides_runpath=yes
  9617. hardcode_into_libs=yes
  9618. ;;
  9619. newsos6)
  9620. version_type=linux # correct to gnu/linux during the next big refactor
  9621. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9622. shlibpath_var=LD_LIBRARY_PATH
  9623. shlibpath_overrides_runpath=yes
  9624. ;;
  9625. *nto* | *qnx*)
  9626. version_type=qnx
  9627. need_lib_prefix=no
  9628. need_version=no
  9629. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9630. soname_spec='$libname$release$shared_ext$major'
  9631. shlibpath_var=LD_LIBRARY_PATH
  9632. shlibpath_overrides_runpath=no
  9633. hardcode_into_libs=yes
  9634. dynamic_linker='ldqnx.so'
  9635. ;;
  9636. openbsd* | bitrig*)
  9637. version_type=sunos
  9638. sys_lib_dlsearch_path_spec=/usr/lib
  9639. need_lib_prefix=no
  9640. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9641. need_version=no
  9642. else
  9643. need_version=yes
  9644. fi
  9645. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9646. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9647. shlibpath_var=LD_LIBRARY_PATH
  9648. shlibpath_overrides_runpath=yes
  9649. ;;
  9650. os2*)
  9651. libname_spec='$name'
  9652. version_type=windows
  9653. shrext_cmds=.dll
  9654. need_version=no
  9655. need_lib_prefix=no
  9656. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9657. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9658. v=$($ECHO $release$versuffix | tr -d .-);
  9659. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9660. $ECHO $n$v`$shared_ext'
  9661. library_names_spec='${libname}_dll.$libext'
  9662. dynamic_linker='OS/2 ld.exe'
  9663. shlibpath_var=BEGINLIBPATH
  9664. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9665. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9666. postinstall_cmds='base_file=`basename \$file`~
  9667. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9668. dldir=$destdir/`dirname \$dlpath`~
  9669. test -d \$dldir || mkdir -p \$dldir~
  9670. $install_prog $dir/$dlname \$dldir/$dlname~
  9671. chmod a+x \$dldir/$dlname~
  9672. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9673. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9674. fi'
  9675. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9676. dlpath=$dir/\$dldll~
  9677. $RM \$dlpath'
  9678. ;;
  9679. osf3* | osf4* | osf5*)
  9680. version_type=osf
  9681. need_lib_prefix=no
  9682. need_version=no
  9683. soname_spec='$libname$release$shared_ext$major'
  9684. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9685. shlibpath_var=LD_LIBRARY_PATH
  9686. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9687. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9688. ;;
  9689. rdos*)
  9690. dynamic_linker=no
  9691. ;;
  9692. solaris*)
  9693. version_type=linux # correct to gnu/linux during the next big refactor
  9694. need_lib_prefix=no
  9695. need_version=no
  9696. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9697. soname_spec='$libname$release$shared_ext$major'
  9698. shlibpath_var=LD_LIBRARY_PATH
  9699. shlibpath_overrides_runpath=yes
  9700. hardcode_into_libs=yes
  9701. # ldd complains unless libraries are executable
  9702. postinstall_cmds='chmod +x $lib'
  9703. ;;
  9704. sunos4*)
  9705. version_type=sunos
  9706. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9707. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9708. shlibpath_var=LD_LIBRARY_PATH
  9709. shlibpath_overrides_runpath=yes
  9710. if test yes = "$with_gnu_ld"; then
  9711. need_lib_prefix=no
  9712. fi
  9713. need_version=yes
  9714. ;;
  9715. sysv4 | sysv4.3*)
  9716. version_type=linux # correct to gnu/linux during the next big refactor
  9717. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9718. soname_spec='$libname$release$shared_ext$major'
  9719. shlibpath_var=LD_LIBRARY_PATH
  9720. case $host_vendor in
  9721. sni)
  9722. shlibpath_overrides_runpath=no
  9723. need_lib_prefix=no
  9724. runpath_var=LD_RUN_PATH
  9725. ;;
  9726. siemens)
  9727. need_lib_prefix=no
  9728. ;;
  9729. motorola)
  9730. need_lib_prefix=no
  9731. need_version=no
  9732. shlibpath_overrides_runpath=no
  9733. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9734. ;;
  9735. esac
  9736. ;;
  9737. sysv4*MP*)
  9738. if test -d /usr/nec; then
  9739. version_type=linux # correct to gnu/linux during the next big refactor
  9740. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9741. soname_spec='$libname$shared_ext.$major'
  9742. shlibpath_var=LD_LIBRARY_PATH
  9743. fi
  9744. ;;
  9745. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9746. version_type=sco
  9747. need_lib_prefix=no
  9748. need_version=no
  9749. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9750. soname_spec='$libname$release$shared_ext$major'
  9751. shlibpath_var=LD_LIBRARY_PATH
  9752. shlibpath_overrides_runpath=yes
  9753. hardcode_into_libs=yes
  9754. if test yes = "$with_gnu_ld"; then
  9755. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9756. else
  9757. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9758. case $host_os in
  9759. sco3.2v5*)
  9760. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9761. ;;
  9762. esac
  9763. fi
  9764. sys_lib_dlsearch_path_spec='/usr/lib'
  9765. ;;
  9766. tpf*)
  9767. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9768. version_type=linux # correct to gnu/linux during the next big refactor
  9769. need_lib_prefix=no
  9770. need_version=no
  9771. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9772. shlibpath_var=LD_LIBRARY_PATH
  9773. shlibpath_overrides_runpath=no
  9774. hardcode_into_libs=yes
  9775. ;;
  9776. uts4*)
  9777. version_type=linux # correct to gnu/linux during the next big refactor
  9778. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9779. soname_spec='$libname$release$shared_ext$major'
  9780. shlibpath_var=LD_LIBRARY_PATH
  9781. ;;
  9782. *)
  9783. dynamic_linker=no
  9784. ;;
  9785. esac
  9786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9787. $as_echo "$dynamic_linker" >&6; }
  9788. test no = "$dynamic_linker" && can_build_shared=no
  9789. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9790. if test yes = "$GCC"; then
  9791. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9792. fi
  9793. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9794. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9795. fi
  9796. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9797. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9798. fi
  9799. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9800. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9801. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9802. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9803. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9804. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9806. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9807. hardcode_action=
  9808. if test -n "$hardcode_libdir_flag_spec" ||
  9809. test -n "$runpath_var" ||
  9810. test yes = "$hardcode_automatic"; then
  9811. # We can hardcode non-existent directories.
  9812. if test no != "$hardcode_direct" &&
  9813. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9814. # have to relink, otherwise we might link with an installed library
  9815. # when we should be linking with a yet-to-be-installed one
  9816. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9817. test no != "$hardcode_minus_L"; then
  9818. # Linking always hardcodes the temporary library directory.
  9819. hardcode_action=relink
  9820. else
  9821. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9822. hardcode_action=immediate
  9823. fi
  9824. else
  9825. # We cannot hardcode anything, or else we can only hardcode existing
  9826. # directories.
  9827. hardcode_action=unsupported
  9828. fi
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9830. $as_echo "$hardcode_action" >&6; }
  9831. if test relink = "$hardcode_action" ||
  9832. test yes = "$inherit_rpath"; then
  9833. # Fast installation is not supported
  9834. enable_fast_install=no
  9835. elif test yes = "$shlibpath_overrides_runpath" ||
  9836. test no = "$enable_shared"; then
  9837. # Fast installation is not necessary
  9838. enable_fast_install=needless
  9839. fi
  9840. if test yes != "$enable_dlopen"; then
  9841. enable_dlopen=unknown
  9842. enable_dlopen_self=unknown
  9843. enable_dlopen_self_static=unknown
  9844. else
  9845. lt_cv_dlopen=no
  9846. lt_cv_dlopen_libs=
  9847. case $host_os in
  9848. beos*)
  9849. lt_cv_dlopen=load_add_on
  9850. lt_cv_dlopen_libs=
  9851. lt_cv_dlopen_self=yes
  9852. ;;
  9853. mingw* | pw32* | cegcc*)
  9854. lt_cv_dlopen=LoadLibrary
  9855. lt_cv_dlopen_libs=
  9856. ;;
  9857. cygwin*)
  9858. lt_cv_dlopen=dlopen
  9859. lt_cv_dlopen_libs=
  9860. ;;
  9861. darwin*)
  9862. # if libdl is installed we need to link against it
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9864. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9865. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9866. $as_echo_n "(cached) " >&6
  9867. else
  9868. ac_check_lib_save_LIBS=$LIBS
  9869. LIBS="-ldl $LIBS"
  9870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9871. /* end confdefs.h. */
  9872. /* Override any GCC internal prototype to avoid an error.
  9873. Use char because int might match the return type of a GCC
  9874. builtin and then its argument prototype would still apply. */
  9875. #ifdef __cplusplus
  9876. extern "C"
  9877. #endif
  9878. char dlopen ();
  9879. int
  9880. main ()
  9881. {
  9882. return dlopen ();
  9883. ;
  9884. return 0;
  9885. }
  9886. _ACEOF
  9887. if ac_fn_c_try_link "$LINENO"; then :
  9888. ac_cv_lib_dl_dlopen=yes
  9889. else
  9890. ac_cv_lib_dl_dlopen=no
  9891. fi
  9892. rm -f core conftest.err conftest.$ac_objext \
  9893. conftest$ac_exeext conftest.$ac_ext
  9894. LIBS=$ac_check_lib_save_LIBS
  9895. fi
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9897. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9898. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9899. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9900. else
  9901. lt_cv_dlopen=dyld
  9902. lt_cv_dlopen_libs=
  9903. lt_cv_dlopen_self=yes
  9904. fi
  9905. ;;
  9906. tpf*)
  9907. # Don't try to run any link tests for TPF. We know it's impossible
  9908. # because TPF is a cross-compiler, and we know how we open DSOs.
  9909. lt_cv_dlopen=dlopen
  9910. lt_cv_dlopen_libs=
  9911. lt_cv_dlopen_self=no
  9912. ;;
  9913. *)
  9914. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9915. if test "x$ac_cv_func_shl_load" = xyes; then :
  9916. lt_cv_dlopen=shl_load
  9917. else
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9919. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9920. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9921. $as_echo_n "(cached) " >&6
  9922. else
  9923. ac_check_lib_save_LIBS=$LIBS
  9924. LIBS="-ldld $LIBS"
  9925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9926. /* end confdefs.h. */
  9927. /* Override any GCC internal prototype to avoid an error.
  9928. Use char because int might match the return type of a GCC
  9929. builtin and then its argument prototype would still apply. */
  9930. #ifdef __cplusplus
  9931. extern "C"
  9932. #endif
  9933. char shl_load ();
  9934. int
  9935. main ()
  9936. {
  9937. return shl_load ();
  9938. ;
  9939. return 0;
  9940. }
  9941. _ACEOF
  9942. if ac_fn_c_try_link "$LINENO"; then :
  9943. ac_cv_lib_dld_shl_load=yes
  9944. else
  9945. ac_cv_lib_dld_shl_load=no
  9946. fi
  9947. rm -f core conftest.err conftest.$ac_objext \
  9948. conftest$ac_exeext conftest.$ac_ext
  9949. LIBS=$ac_check_lib_save_LIBS
  9950. fi
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9952. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9953. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9954. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9955. else
  9956. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9957. if test "x$ac_cv_func_dlopen" = xyes; then :
  9958. lt_cv_dlopen=dlopen
  9959. else
  9960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9961. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9962. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9963. $as_echo_n "(cached) " >&6
  9964. else
  9965. ac_check_lib_save_LIBS=$LIBS
  9966. LIBS="-ldl $LIBS"
  9967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9968. /* end confdefs.h. */
  9969. /* Override any GCC internal prototype to avoid an error.
  9970. Use char because int might match the return type of a GCC
  9971. builtin and then its argument prototype would still apply. */
  9972. #ifdef __cplusplus
  9973. extern "C"
  9974. #endif
  9975. char dlopen ();
  9976. int
  9977. main ()
  9978. {
  9979. return dlopen ();
  9980. ;
  9981. return 0;
  9982. }
  9983. _ACEOF
  9984. if ac_fn_c_try_link "$LINENO"; then :
  9985. ac_cv_lib_dl_dlopen=yes
  9986. else
  9987. ac_cv_lib_dl_dlopen=no
  9988. fi
  9989. rm -f core conftest.err conftest.$ac_objext \
  9990. conftest$ac_exeext conftest.$ac_ext
  9991. LIBS=$ac_check_lib_save_LIBS
  9992. fi
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9994. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9995. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9996. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9997. else
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9999. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10000. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10001. $as_echo_n "(cached) " >&6
  10002. else
  10003. ac_check_lib_save_LIBS=$LIBS
  10004. LIBS="-lsvld $LIBS"
  10005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10006. /* end confdefs.h. */
  10007. /* Override any GCC internal prototype to avoid an error.
  10008. Use char because int might match the return type of a GCC
  10009. builtin and then its argument prototype would still apply. */
  10010. #ifdef __cplusplus
  10011. extern "C"
  10012. #endif
  10013. char dlopen ();
  10014. int
  10015. main ()
  10016. {
  10017. return dlopen ();
  10018. ;
  10019. return 0;
  10020. }
  10021. _ACEOF
  10022. if ac_fn_c_try_link "$LINENO"; then :
  10023. ac_cv_lib_svld_dlopen=yes
  10024. else
  10025. ac_cv_lib_svld_dlopen=no
  10026. fi
  10027. rm -f core conftest.err conftest.$ac_objext \
  10028. conftest$ac_exeext conftest.$ac_ext
  10029. LIBS=$ac_check_lib_save_LIBS
  10030. fi
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10032. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10033. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10034. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10035. else
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10037. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10038. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10039. $as_echo_n "(cached) " >&6
  10040. else
  10041. ac_check_lib_save_LIBS=$LIBS
  10042. LIBS="-ldld $LIBS"
  10043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10044. /* end confdefs.h. */
  10045. /* Override any GCC internal prototype to avoid an error.
  10046. Use char because int might match the return type of a GCC
  10047. builtin and then its argument prototype would still apply. */
  10048. #ifdef __cplusplus
  10049. extern "C"
  10050. #endif
  10051. char dld_link ();
  10052. int
  10053. main ()
  10054. {
  10055. return dld_link ();
  10056. ;
  10057. return 0;
  10058. }
  10059. _ACEOF
  10060. if ac_fn_c_try_link "$LINENO"; then :
  10061. ac_cv_lib_dld_dld_link=yes
  10062. else
  10063. ac_cv_lib_dld_dld_link=no
  10064. fi
  10065. rm -f core conftest.err conftest.$ac_objext \
  10066. conftest$ac_exeext conftest.$ac_ext
  10067. LIBS=$ac_check_lib_save_LIBS
  10068. fi
  10069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10070. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10071. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10072. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10073. fi
  10074. fi
  10075. fi
  10076. fi
  10077. fi
  10078. fi
  10079. ;;
  10080. esac
  10081. if test no = "$lt_cv_dlopen"; then
  10082. enable_dlopen=no
  10083. else
  10084. enable_dlopen=yes
  10085. fi
  10086. case $lt_cv_dlopen in
  10087. dlopen)
  10088. save_CPPFLAGS=$CPPFLAGS
  10089. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10090. save_LDFLAGS=$LDFLAGS
  10091. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10092. save_LIBS=$LIBS
  10093. LIBS="$lt_cv_dlopen_libs $LIBS"
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10095. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10096. if ${lt_cv_dlopen_self+:} false; then :
  10097. $as_echo_n "(cached) " >&6
  10098. else
  10099. if test yes = "$cross_compiling"; then :
  10100. lt_cv_dlopen_self=cross
  10101. else
  10102. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10103. lt_status=$lt_dlunknown
  10104. cat > conftest.$ac_ext <<_LT_EOF
  10105. #line $LINENO "configure"
  10106. #include "confdefs.h"
  10107. #if HAVE_DLFCN_H
  10108. #include <dlfcn.h>
  10109. #endif
  10110. #include <stdio.h>
  10111. #ifdef RTLD_GLOBAL
  10112. # define LT_DLGLOBAL RTLD_GLOBAL
  10113. #else
  10114. # ifdef DL_GLOBAL
  10115. # define LT_DLGLOBAL DL_GLOBAL
  10116. # else
  10117. # define LT_DLGLOBAL 0
  10118. # endif
  10119. #endif
  10120. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10121. find out it does not work in some platform. */
  10122. #ifndef LT_DLLAZY_OR_NOW
  10123. # ifdef RTLD_LAZY
  10124. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10125. # else
  10126. # ifdef DL_LAZY
  10127. # define LT_DLLAZY_OR_NOW DL_LAZY
  10128. # else
  10129. # ifdef RTLD_NOW
  10130. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10131. # else
  10132. # ifdef DL_NOW
  10133. # define LT_DLLAZY_OR_NOW DL_NOW
  10134. # else
  10135. # define LT_DLLAZY_OR_NOW 0
  10136. # endif
  10137. # endif
  10138. # endif
  10139. # endif
  10140. #endif
  10141. /* When -fvisibility=hidden is used, assume the code has been annotated
  10142. correspondingly for the symbols needed. */
  10143. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10144. int fnord () __attribute__((visibility("default")));
  10145. #endif
  10146. int fnord () { return 42; }
  10147. int main ()
  10148. {
  10149. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10150. int status = $lt_dlunknown;
  10151. if (self)
  10152. {
  10153. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10154. else
  10155. {
  10156. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10157. else puts (dlerror ());
  10158. }
  10159. /* dlclose (self); */
  10160. }
  10161. else
  10162. puts (dlerror ());
  10163. return status;
  10164. }
  10165. _LT_EOF
  10166. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10167. (eval $ac_link) 2>&5
  10168. ac_status=$?
  10169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10170. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10171. (./conftest; exit; ) >&5 2>/dev/null
  10172. lt_status=$?
  10173. case x$lt_status in
  10174. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10175. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10176. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10177. esac
  10178. else :
  10179. # compilation failed
  10180. lt_cv_dlopen_self=no
  10181. fi
  10182. fi
  10183. rm -fr conftest*
  10184. fi
  10185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10186. $as_echo "$lt_cv_dlopen_self" >&6; }
  10187. if test yes = "$lt_cv_dlopen_self"; then
  10188. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10190. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10191. if ${lt_cv_dlopen_self_static+:} false; then :
  10192. $as_echo_n "(cached) " >&6
  10193. else
  10194. if test yes = "$cross_compiling"; then :
  10195. lt_cv_dlopen_self_static=cross
  10196. else
  10197. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10198. lt_status=$lt_dlunknown
  10199. cat > conftest.$ac_ext <<_LT_EOF
  10200. #line $LINENO "configure"
  10201. #include "confdefs.h"
  10202. #if HAVE_DLFCN_H
  10203. #include <dlfcn.h>
  10204. #endif
  10205. #include <stdio.h>
  10206. #ifdef RTLD_GLOBAL
  10207. # define LT_DLGLOBAL RTLD_GLOBAL
  10208. #else
  10209. # ifdef DL_GLOBAL
  10210. # define LT_DLGLOBAL DL_GLOBAL
  10211. # else
  10212. # define LT_DLGLOBAL 0
  10213. # endif
  10214. #endif
  10215. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10216. find out it does not work in some platform. */
  10217. #ifndef LT_DLLAZY_OR_NOW
  10218. # ifdef RTLD_LAZY
  10219. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10220. # else
  10221. # ifdef DL_LAZY
  10222. # define LT_DLLAZY_OR_NOW DL_LAZY
  10223. # else
  10224. # ifdef RTLD_NOW
  10225. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10226. # else
  10227. # ifdef DL_NOW
  10228. # define LT_DLLAZY_OR_NOW DL_NOW
  10229. # else
  10230. # define LT_DLLAZY_OR_NOW 0
  10231. # endif
  10232. # endif
  10233. # endif
  10234. # endif
  10235. #endif
  10236. /* When -fvisibility=hidden is used, assume the code has been annotated
  10237. correspondingly for the symbols needed. */
  10238. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10239. int fnord () __attribute__((visibility("default")));
  10240. #endif
  10241. int fnord () { return 42; }
  10242. int main ()
  10243. {
  10244. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10245. int status = $lt_dlunknown;
  10246. if (self)
  10247. {
  10248. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10249. else
  10250. {
  10251. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10252. else puts (dlerror ());
  10253. }
  10254. /* dlclose (self); */
  10255. }
  10256. else
  10257. puts (dlerror ());
  10258. return status;
  10259. }
  10260. _LT_EOF
  10261. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10262. (eval $ac_link) 2>&5
  10263. ac_status=$?
  10264. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10265. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10266. (./conftest; exit; ) >&5 2>/dev/null
  10267. lt_status=$?
  10268. case x$lt_status in
  10269. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10270. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10271. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10272. esac
  10273. else :
  10274. # compilation failed
  10275. lt_cv_dlopen_self_static=no
  10276. fi
  10277. fi
  10278. rm -fr conftest*
  10279. fi
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10281. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10282. fi
  10283. CPPFLAGS=$save_CPPFLAGS
  10284. LDFLAGS=$save_LDFLAGS
  10285. LIBS=$save_LIBS
  10286. ;;
  10287. esac
  10288. case $lt_cv_dlopen_self in
  10289. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10290. *) enable_dlopen_self=unknown ;;
  10291. esac
  10292. case $lt_cv_dlopen_self_static in
  10293. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10294. *) enable_dlopen_self_static=unknown ;;
  10295. esac
  10296. fi
  10297. striplib=
  10298. old_striplib=
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10300. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10301. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10302. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10303. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10305. $as_echo "yes" >&6; }
  10306. else
  10307. # FIXME - insert some real tests, host_os isn't really good enough
  10308. case $host_os in
  10309. darwin*)
  10310. if test -n "$STRIP"; then
  10311. striplib="$STRIP -x"
  10312. old_striplib="$STRIP -S"
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10314. $as_echo "yes" >&6; }
  10315. else
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10317. $as_echo "no" >&6; }
  10318. fi
  10319. ;;
  10320. *)
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10322. $as_echo "no" >&6; }
  10323. ;;
  10324. esac
  10325. fi
  10326. # Report what library types will actually be built
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10328. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10330. $as_echo "$can_build_shared" >&6; }
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10332. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10333. test no = "$can_build_shared" && enable_shared=no
  10334. # On AIX, shared libraries and static libraries use the same namespace, and
  10335. # are all built from PIC.
  10336. case $host_os in
  10337. aix3*)
  10338. test yes = "$enable_shared" && enable_static=no
  10339. if test -n "$RANLIB"; then
  10340. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10341. postinstall_cmds='$RANLIB $lib'
  10342. fi
  10343. ;;
  10344. aix[4-9]*)
  10345. if test ia64 != "$host_cpu"; then
  10346. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10347. yes,aix,yes) ;; # shared object as lib.so file only
  10348. yes,svr4,*) ;; # shared object as lib.so archive member only
  10349. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10350. esac
  10351. fi
  10352. ;;
  10353. esac
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10355. $as_echo "$enable_shared" >&6; }
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10357. $as_echo_n "checking whether to build static libraries... " >&6; }
  10358. # Make sure either enable_shared or enable_static is yes.
  10359. test yes = "$enable_shared" || enable_static=yes
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10361. $as_echo "$enable_static" >&6; }
  10362. fi
  10363. ac_ext=c
  10364. ac_cpp='$CPP $CPPFLAGS'
  10365. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10366. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10367. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10368. CC=$lt_save_CC
  10369. ac_config_commands="$ac_config_commands libtool"
  10370. # Only expand once:
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  10372. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  10373. if ${ac_cv_prog_cc_c99+:} false; then :
  10374. $as_echo_n "(cached) " >&6
  10375. else
  10376. ac_cv_prog_cc_c99=no
  10377. ac_save_CC=$CC
  10378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10379. /* end confdefs.h. */
  10380. #include <stdarg.h>
  10381. #include <stdbool.h>
  10382. #include <stdlib.h>
  10383. #include <wchar.h>
  10384. #include <stdio.h>
  10385. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  10386. #define debug(...) fprintf (stderr, __VA_ARGS__)
  10387. #define showlist(...) puts (#__VA_ARGS__)
  10388. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  10389. static void
  10390. test_varargs_macros (void)
  10391. {
  10392. int x = 1234;
  10393. int y = 5678;
  10394. debug ("Flag");
  10395. debug ("X = %d\n", x);
  10396. showlist (The first, second, and third items.);
  10397. report (x>y, "x is %d but y is %d", x, y);
  10398. }
  10399. // Check long long types.
  10400. #define BIG64 18446744073709551615ull
  10401. #define BIG32 4294967295ul
  10402. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  10403. #if !BIG_OK
  10404. your preprocessor is broken;
  10405. #endif
  10406. #if BIG_OK
  10407. #else
  10408. your preprocessor is broken;
  10409. #endif
  10410. static long long int bignum = -9223372036854775807LL;
  10411. static unsigned long long int ubignum = BIG64;
  10412. struct incomplete_array
  10413. {
  10414. int datasize;
  10415. double data[];
  10416. };
  10417. struct named_init {
  10418. int number;
  10419. const wchar_t *name;
  10420. double average;
  10421. };
  10422. typedef const char *ccp;
  10423. static inline int
  10424. test_restrict (ccp restrict text)
  10425. {
  10426. // See if C++-style comments work.
  10427. // Iterate through items via the restricted pointer.
  10428. // Also check for declarations in for loops.
  10429. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  10430. continue;
  10431. return 0;
  10432. }
  10433. // Check varargs and va_copy.
  10434. static void
  10435. test_varargs (const char *format, ...)
  10436. {
  10437. va_list args;
  10438. va_start (args, format);
  10439. va_list args_copy;
  10440. va_copy (args_copy, args);
  10441. const char *str;
  10442. int number;
  10443. float fnumber;
  10444. while (*format)
  10445. {
  10446. switch (*format++)
  10447. {
  10448. case 's': // string
  10449. str = va_arg (args_copy, const char *);
  10450. break;
  10451. case 'd': // int
  10452. number = va_arg (args_copy, int);
  10453. break;
  10454. case 'f': // float
  10455. fnumber = va_arg (args_copy, double);
  10456. break;
  10457. default:
  10458. break;
  10459. }
  10460. }
  10461. va_end (args_copy);
  10462. va_end (args);
  10463. }
  10464. int
  10465. main ()
  10466. {
  10467. // Check bool.
  10468. _Bool success = false;
  10469. // Check restrict.
  10470. if (test_restrict ("String literal") == 0)
  10471. success = true;
  10472. char *restrict newvar = "Another string";
  10473. // Check varargs.
  10474. test_varargs ("s, d' f .", "string", 65, 34.234);
  10475. test_varargs_macros ();
  10476. // Check flexible array members.
  10477. struct incomplete_array *ia =
  10478. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  10479. ia->datasize = 10;
  10480. for (int i = 0; i < ia->datasize; ++i)
  10481. ia->data[i] = i * 1.234;
  10482. // Check named initializers.
  10483. struct named_init ni = {
  10484. .number = 34,
  10485. .name = L"Test wide string",
  10486. .average = 543.34343,
  10487. };
  10488. ni.number = 58;
  10489. int dynamic_array[ni.number];
  10490. dynamic_array[ni.number - 1] = 543;
  10491. // work around unused variable warnings
  10492. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  10493. || dynamic_array[ni.number - 1] != 543);
  10494. ;
  10495. return 0;
  10496. }
  10497. _ACEOF
  10498. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  10499. do
  10500. CC="$ac_save_CC $ac_arg"
  10501. if ac_fn_c_try_compile "$LINENO"; then :
  10502. ac_cv_prog_cc_c99=$ac_arg
  10503. fi
  10504. rm -f core conftest.err conftest.$ac_objext
  10505. test "x$ac_cv_prog_cc_c99" != "xno" && break
  10506. done
  10507. rm -f conftest.$ac_ext
  10508. CC=$ac_save_CC
  10509. fi
  10510. # AC_CACHE_VAL
  10511. case "x$ac_cv_prog_cc_c99" in
  10512. x)
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10514. $as_echo "none needed" >&6; } ;;
  10515. xno)
  10516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10517. $as_echo "unsupported" >&6; } ;;
  10518. *)
  10519. CC="$CC $ac_cv_prog_cc_c99"
  10520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  10521. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  10522. esac
  10523. if test "x$ac_cv_prog_cc_c99" != xno; then :
  10524. fi
  10525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10526. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10527. if ${ac_cv_c_const+:} false; then :
  10528. $as_echo_n "(cached) " >&6
  10529. else
  10530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10531. /* end confdefs.h. */
  10532. int
  10533. main ()
  10534. {
  10535. #ifndef __cplusplus
  10536. /* Ultrix mips cc rejects this sort of thing. */
  10537. typedef int charset[2];
  10538. const charset cs = { 0, 0 };
  10539. /* SunOS 4.1.1 cc rejects this. */
  10540. char const *const *pcpcc;
  10541. char **ppc;
  10542. /* NEC SVR4.0.2 mips cc rejects this. */
  10543. struct point {int x, y;};
  10544. static struct point const zero = {0,0};
  10545. /* AIX XL C 1.02.0.0 rejects this.
  10546. It does not let you subtract one const X* pointer from another in
  10547. an arm of an if-expression whose if-part is not a constant
  10548. expression */
  10549. const char *g = "string";
  10550. pcpcc = &g + (g ? g-g : 0);
  10551. /* HPUX 7.0 cc rejects these. */
  10552. ++pcpcc;
  10553. ppc = (char**) pcpcc;
  10554. pcpcc = (char const *const *) ppc;
  10555. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10556. char tx;
  10557. char *t = &tx;
  10558. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10559. *t++ = 0;
  10560. if (s) return 0;
  10561. }
  10562. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10563. int x[] = {25, 17};
  10564. const int *foo = &x[0];
  10565. ++foo;
  10566. }
  10567. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10568. typedef const int *iptr;
  10569. iptr p = 0;
  10570. ++p;
  10571. }
  10572. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10573. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10574. struct s { int j; const int *ap[3]; } bx;
  10575. struct s *b = &bx; b->j = 5;
  10576. }
  10577. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10578. const int foo = 10;
  10579. if (!foo) return 0;
  10580. }
  10581. return !cs[0] && !zero.x;
  10582. #endif
  10583. ;
  10584. return 0;
  10585. }
  10586. _ACEOF
  10587. if ac_fn_c_try_compile "$LINENO"; then :
  10588. ac_cv_c_const=yes
  10589. else
  10590. ac_cv_c_const=no
  10591. fi
  10592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10593. fi
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10595. $as_echo "$ac_cv_c_const" >&6; }
  10596. if test $ac_cv_c_const = no; then
  10597. $as_echo "#define const /**/" >>confdefs.h
  10598. fi
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10600. $as_echo_n "checking for inline... " >&6; }
  10601. if ${ac_cv_c_inline+:} false; then :
  10602. $as_echo_n "(cached) " >&6
  10603. else
  10604. ac_cv_c_inline=no
  10605. for ac_kw in inline __inline__ __inline; do
  10606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10607. /* end confdefs.h. */
  10608. #ifndef __cplusplus
  10609. typedef int foo_t;
  10610. static $ac_kw foo_t static_foo () {return 0; }
  10611. $ac_kw foo_t foo () {return 0; }
  10612. #endif
  10613. _ACEOF
  10614. if ac_fn_c_try_compile "$LINENO"; then :
  10615. ac_cv_c_inline=$ac_kw
  10616. fi
  10617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10618. test "$ac_cv_c_inline" != no && break
  10619. done
  10620. fi
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10622. $as_echo "$ac_cv_c_inline" >&6; }
  10623. case $ac_cv_c_inline in
  10624. inline | yes) ;;
  10625. *)
  10626. case $ac_cv_c_inline in
  10627. no) ac_val=;;
  10628. *) ac_val=$ac_cv_c_inline;;
  10629. esac
  10630. cat >>confdefs.h <<_ACEOF
  10631. #ifndef __cplusplus
  10632. #define inline $ac_val
  10633. #endif
  10634. _ACEOF
  10635. ;;
  10636. esac
  10637. # By default we simply use the C compiler to build assembly code.
  10638. test "${CCAS+set}" = set || CCAS=$CC
  10639. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  10640. depcc="$CCAS" am_compiler_list=
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10642. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10643. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  10644. $as_echo_n "(cached) " >&6
  10645. else
  10646. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10647. # We make a subdir and do the tests there. Otherwise we can end up
  10648. # making bogus files that we don't know about and never remove. For
  10649. # instance it was reported that on HP-UX the gcc test will end up
  10650. # making a dummy file named 'D' -- because '-MD' means "put the output
  10651. # in D".
  10652. rm -rf conftest.dir
  10653. mkdir conftest.dir
  10654. # Copy depcomp to subdir because otherwise we won't find it if we're
  10655. # using a relative directory.
  10656. cp "$am_depcomp" conftest.dir
  10657. cd conftest.dir
  10658. # We will build objects and dependencies in a subdirectory because
  10659. # it helps to detect inapplicable dependency modes. For instance
  10660. # both Tru64's cc and ICC support -MD to output dependencies as a
  10661. # side effect of compilation, but ICC will put the dependencies in
  10662. # the current directory while Tru64 will put them in the object
  10663. # directory.
  10664. mkdir sub
  10665. am_cv_CCAS_dependencies_compiler_type=none
  10666. if test "$am_compiler_list" = ""; then
  10667. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10668. fi
  10669. am__universal=false
  10670. for depmode in $am_compiler_list; do
  10671. # Setup a source with many dependencies, because some compilers
  10672. # like to wrap large dependency lists on column 80 (with \), and
  10673. # we should not choose a depcomp mode which is confused by this.
  10674. #
  10675. # We need to recreate these files for each test, as the compiler may
  10676. # overwrite some of them when testing with obscure command lines.
  10677. # This happens at least with the AIX C compiler.
  10678. : > sub/conftest.c
  10679. for i in 1 2 3 4 5 6; do
  10680. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10681. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  10682. # Solaris 10 /bin/sh.
  10683. echo '/* dummy */' > sub/conftst$i.h
  10684. done
  10685. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10686. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  10687. # mode. It turns out that the SunPro C++ compiler does not properly
  10688. # handle '-M -o', and we need to detect this. Also, some Intel
  10689. # versions had trouble with output in subdirs.
  10690. am__obj=sub/conftest.${OBJEXT-o}
  10691. am__minus_obj="-o $am__obj"
  10692. case $depmode in
  10693. gcc)
  10694. # This depmode causes a compiler race in universal mode.
  10695. test "$am__universal" = false || continue
  10696. ;;
  10697. nosideeffect)
  10698. # After this tag, mechanisms are not by side-effect, so they'll
  10699. # only be used when explicitly requested.
  10700. if test "x$enable_dependency_tracking" = xyes; then
  10701. continue
  10702. else
  10703. break
  10704. fi
  10705. ;;
  10706. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  10707. # This compiler won't grok '-c -o', but also, the minuso test has
  10708. # not run yet. These depmodes are late enough in the game, and
  10709. # so weak that their functioning should not be impacted.
  10710. am__obj=conftest.${OBJEXT-o}
  10711. am__minus_obj=
  10712. ;;
  10713. none) break ;;
  10714. esac
  10715. if depmode=$depmode \
  10716. source=sub/conftest.c object=$am__obj \
  10717. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10718. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10719. >/dev/null 2>conftest.err &&
  10720. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10721. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10722. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10723. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10724. # icc doesn't choke on unknown options, it will just issue warnings
  10725. # or remarks (even with -Werror). So we grep stderr for any message
  10726. # that says an option was ignored or not supported.
  10727. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10728. # icc: Command line warning: ignoring option '-M'; no argument required
  10729. # The diagnosis changed in icc 8.0:
  10730. # icc: Command line remark: option '-MP' not supported
  10731. if (grep 'ignoring option' conftest.err ||
  10732. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10733. am_cv_CCAS_dependencies_compiler_type=$depmode
  10734. break
  10735. fi
  10736. fi
  10737. done
  10738. cd ..
  10739. rm -rf conftest.dir
  10740. else
  10741. am_cv_CCAS_dependencies_compiler_type=none
  10742. fi
  10743. fi
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  10745. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  10746. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  10747. if
  10748. test "x$enable_dependency_tracking" != xno \
  10749. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  10750. am__fastdepCCAS_TRUE=
  10751. am__fastdepCCAS_FALSE='#'
  10752. else
  10753. am__fastdepCCAS_TRUE='#'
  10754. am__fastdepCCAS_FALSE=
  10755. fi
  10756. $as_echo "#define OPUS_BUILD /**/" >>confdefs.h
  10757. #Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
  10758. #strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
  10759. #Note: Both this and the test for variable-size arrays below are also
  10760. # done by AC_PROG_CC_C99, but not thoroughly enough apparently.
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  10762. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  10763. if ${ac_cv_c_restrict+:} false; then :
  10764. $as_echo_n "(cached) " >&6
  10765. else
  10766. ac_cv_c_restrict=no
  10767. # The order here caters to the fact that C++ does not require restrict.
  10768. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  10769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10770. /* end confdefs.h. */
  10771. typedef int * int_ptr;
  10772. int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
  10773. return ip[0];
  10774. }
  10775. int
  10776. main ()
  10777. {
  10778. int s[1];
  10779. int * $ac_kw t = s;
  10780. t[0] = 0;
  10781. return foo(t, (void *)0)
  10782. ;
  10783. return 0;
  10784. }
  10785. _ACEOF
  10786. if ac_fn_c_try_compile "$LINENO"; then :
  10787. ac_cv_c_restrict=$ac_kw
  10788. fi
  10789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10790. test "$ac_cv_c_restrict" != no && break
  10791. done
  10792. fi
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  10794. $as_echo "$ac_cv_c_restrict" >&6; }
  10795. case $ac_cv_c_restrict in
  10796. restrict) ;;
  10797. no) $as_echo "#define restrict /**/" >>confdefs.h
  10798. ;;
  10799. *) cat >>confdefs.h <<_ACEOF
  10800. #define restrict $ac_cv_c_restrict
  10801. _ACEOF
  10802. ;;
  10803. esac
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
  10805. $as_echo_n "checking for C99 variable-size arrays... " >&6; }
  10806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10807. /* end confdefs.h. */
  10808. int
  10809. main ()
  10810. {
  10811. static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
  10812. ;
  10813. return 0;
  10814. }
  10815. _ACEOF
  10816. if ac_fn_c_try_compile "$LINENO"; then :
  10817. has_var_arrays=yes
  10818. use_alloca="no (using var arrays)"
  10819. $as_echo "#define VAR_ARRAYS 1" >>confdefs.h
  10820. else
  10821. has_var_arrays=no
  10822. fi
  10823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
  10825. $as_echo "$has_var_arrays" >&6; }
  10826. if test "$has_var_arrays" = "no"; then :
  10827. for ac_header in alloca.h
  10828. do :
  10829. ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
  10830. if test "x$ac_cv_header_alloca_h" = xyes; then :
  10831. cat >>confdefs.h <<_ACEOF
  10832. #define HAVE_ALLOCA_H 1
  10833. _ACEOF
  10834. fi
  10835. done
  10836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  10837. $as_echo_n "checking for alloca... " >&6; }
  10838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10839. /* end confdefs.h. */
  10840. #include <alloca.h>
  10841. int
  10842. main ()
  10843. {
  10844. int foo=10; int *array = alloca(foo);
  10845. ;
  10846. return 0;
  10847. }
  10848. _ACEOF
  10849. if ac_fn_c_try_compile "$LINENO"; then :
  10850. use_alloca=yes;
  10851. $as_echo "#define USE_ALLOCA /**/" >>confdefs.h
  10852. else
  10853. use_alloca=no
  10854. fi
  10855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_alloca" >&5
  10857. $as_echo "$use_alloca" >&6; }
  10858. fi
  10859. LIBM=
  10860. case $host in
  10861. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  10862. # These system don't have libm, or don't need it
  10863. ;;
  10864. *-ncr-sysv4.3*)
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  10866. $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
  10867. if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
  10868. $as_echo_n "(cached) " >&6
  10869. else
  10870. ac_check_lib_save_LIBS=$LIBS
  10871. LIBS="-lmw $LIBS"
  10872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10873. /* end confdefs.h. */
  10874. /* Override any GCC internal prototype to avoid an error.
  10875. Use char because int might match the return type of a GCC
  10876. builtin and then its argument prototype would still apply. */
  10877. #ifdef __cplusplus
  10878. extern "C"
  10879. #endif
  10880. char _mwvalidcheckl ();
  10881. int
  10882. main ()
  10883. {
  10884. return _mwvalidcheckl ();
  10885. ;
  10886. return 0;
  10887. }
  10888. _ACEOF
  10889. if ac_fn_c_try_link "$LINENO"; then :
  10890. ac_cv_lib_mw__mwvalidcheckl=yes
  10891. else
  10892. ac_cv_lib_mw__mwvalidcheckl=no
  10893. fi
  10894. rm -f core conftest.err conftest.$ac_objext \
  10895. conftest$ac_exeext conftest.$ac_ext
  10896. LIBS=$ac_check_lib_save_LIBS
  10897. fi
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  10899. $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  10900. if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
  10901. LIBM=-lmw
  10902. fi
  10903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  10904. $as_echo_n "checking for cos in -lm... " >&6; }
  10905. if ${ac_cv_lib_m_cos+:} false; then :
  10906. $as_echo_n "(cached) " >&6
  10907. else
  10908. ac_check_lib_save_LIBS=$LIBS
  10909. LIBS="-lm $LIBS"
  10910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10911. /* end confdefs.h. */
  10912. /* Override any GCC internal prototype to avoid an error.
  10913. Use char because int might match the return type of a GCC
  10914. builtin and then its argument prototype would still apply. */
  10915. #ifdef __cplusplus
  10916. extern "C"
  10917. #endif
  10918. char cos ();
  10919. int
  10920. main ()
  10921. {
  10922. return cos ();
  10923. ;
  10924. return 0;
  10925. }
  10926. _ACEOF
  10927. if ac_fn_c_try_link "$LINENO"; then :
  10928. ac_cv_lib_m_cos=yes
  10929. else
  10930. ac_cv_lib_m_cos=no
  10931. fi
  10932. rm -f core conftest.err conftest.$ac_objext \
  10933. conftest$ac_exeext conftest.$ac_ext
  10934. LIBS=$ac_check_lib_save_LIBS
  10935. fi
  10936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  10937. $as_echo "$ac_cv_lib_m_cos" >&6; }
  10938. if test "x$ac_cv_lib_m_cos" = xyes; then :
  10939. LIBM="$LIBM -lm"
  10940. fi
  10941. ;;
  10942. *)
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  10944. $as_echo_n "checking for cos in -lm... " >&6; }
  10945. if ${ac_cv_lib_m_cos+:} false; then :
  10946. $as_echo_n "(cached) " >&6
  10947. else
  10948. ac_check_lib_save_LIBS=$LIBS
  10949. LIBS="-lm $LIBS"
  10950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10951. /* end confdefs.h. */
  10952. /* Override any GCC internal prototype to avoid an error.
  10953. Use char because int might match the return type of a GCC
  10954. builtin and then its argument prototype would still apply. */
  10955. #ifdef __cplusplus
  10956. extern "C"
  10957. #endif
  10958. char cos ();
  10959. int
  10960. main ()
  10961. {
  10962. return cos ();
  10963. ;
  10964. return 0;
  10965. }
  10966. _ACEOF
  10967. if ac_fn_c_try_link "$LINENO"; then :
  10968. ac_cv_lib_m_cos=yes
  10969. else
  10970. ac_cv_lib_m_cos=no
  10971. fi
  10972. rm -f core conftest.err conftest.$ac_objext \
  10973. conftest$ac_exeext conftest.$ac_ext
  10974. LIBS=$ac_check_lib_save_LIBS
  10975. fi
  10976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  10977. $as_echo "$ac_cv_lib_m_cos" >&6; }
  10978. if test "x$ac_cv_lib_m_cos" = xyes; then :
  10979. LIBM=-lm
  10980. fi
  10981. ;;
  10982. esac
  10983. # Check whether --enable-fixed-point was given.
  10984. if test "${enable_fixed_point+set}" = set; then :
  10985. enableval=$enable_fixed_point;
  10986. else
  10987. enable_fixed_point=no
  10988. fi
  10989. if test "$enable_fixed_point" = "yes"; then :
  10990. enable_float="no"
  10991. $as_echo "#define FIXED_POINT 1" >>confdefs.h
  10992. PC_BUILD="fixed-point"
  10993. else
  10994. enable_float="yes";
  10995. PC_BUILD="floating-point"
  10996. fi
  10997. if test "$enable_fixed_point" = "yes"; then
  10998. FIXED_POINT_TRUE=
  10999. FIXED_POINT_FALSE='#'
  11000. else
  11001. FIXED_POINT_TRUE='#'
  11002. FIXED_POINT_FALSE=
  11003. fi
  11004. # Check whether --enable-fixed-point-debug was given.
  11005. if test "${enable_fixed_point_debug+set}" = set; then :
  11006. enableval=$enable_fixed_point_debug;
  11007. else
  11008. enable_fixed_point_debug=no
  11009. fi
  11010. if test "$enable_fixed_point_debug" = "yes"; then :
  11011. $as_echo "#define FIXED_DEBUG 1" >>confdefs.h
  11012. fi
  11013. # Check whether --enable-float_api was given.
  11014. if test "${enable_float_api+set}" = set; then :
  11015. enableval=$enable_float_api;
  11016. else
  11017. enable_float_api=yes
  11018. fi
  11019. if test "$enable_float_api" = "no"; then
  11020. DISABLE_FLOAT_API_TRUE=
  11021. DISABLE_FLOAT_API_FALSE='#'
  11022. else
  11023. DISABLE_FLOAT_API_TRUE='#'
  11024. DISABLE_FLOAT_API_FALSE=
  11025. fi
  11026. if test "$enable_float_api" = "no"; then :
  11027. $as_echo "#define DISABLE_FLOAT_API 1" >>confdefs.h
  11028. fi
  11029. # Check whether --enable-custom-modes was given.
  11030. if test "${enable_custom_modes+set}" = set; then :
  11031. enableval=$enable_custom_modes;
  11032. else
  11033. enable_custom_modes=no
  11034. fi
  11035. if test "$enable_custom_modes" = "yes"; then :
  11036. $as_echo "#define CUSTOM_MODES 1" >>confdefs.h
  11037. PC_BUILD="$PC_BUILD, custom modes"
  11038. fi
  11039. if test "$enable_custom_modes" = "yes"; then
  11040. CUSTOM_MODES_TRUE=
  11041. CUSTOM_MODES_FALSE='#'
  11042. else
  11043. CUSTOM_MODES_TRUE='#'
  11044. CUSTOM_MODES_FALSE=
  11045. fi
  11046. has_float_approx=no
  11047. #case "$host_cpu" in
  11048. #i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
  11049. # has_float_approx=yes
  11050. # ;;
  11051. #esac
  11052. # Check whether --enable-float-approx was given.
  11053. if test "${enable_float_approx+set}" = set; then :
  11054. enableval=$enable_float_approx; if test "$enable_float_approx" = "yes"; then
  11055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5
  11056. $as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;}
  11057. fi
  11058. else
  11059. enable_float_approx=$has_float_approx
  11060. fi
  11061. if test "$enable_float_approx" = "yes"; then :
  11062. $as_echo "#define FLOAT_APPROX 1" >>confdefs.h
  11063. fi
  11064. # Check whether --enable-asm was given.
  11065. if test "${enable_asm+set}" = set; then :
  11066. enableval=$enable_asm;
  11067. else
  11068. enable_asm=yes
  11069. fi
  11070. # Check whether --enable-rtcd was given.
  11071. if test "${enable_rtcd+set}" = set; then :
  11072. enableval=$enable_rtcd;
  11073. else
  11074. enable_rtcd=yes
  11075. fi
  11076. # Check whether --enable-intrinsics was given.
  11077. if test "${enable_intrinsics+set}" = set; then :
  11078. enableval=$enable_intrinsics;
  11079. else
  11080. enable_intrinsics=yes
  11081. fi
  11082. rtcd_support=no
  11083. cpu_arm=no
  11084. if test x"${enable_asm}" = x"yes"; then :
  11085. inline_optimization="No inline ASM for your platform, please send patches"
  11086. case $host_cpu in
  11087. arm*)
  11088. if test "$enable_float" != "yes"; then :
  11089. cpu_arm=yes
  11090. $as_echo "#define OPUS_ARM_ASM /**/" >>confdefs.h
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports gcc-style inline assembly" >&5
  11092. $as_echo_n "checking if compiler supports gcc-style inline assembly... " >&6; }
  11093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11094. /* end confdefs.h. */
  11095. int
  11096. main ()
  11097. {
  11098. #ifdef __GNUC_MINOR__
  11099. #if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
  11100. #error GCC before 3.4 has critical bugs compiling inline assembly
  11101. #endif
  11102. #endif
  11103. __asm__ (""::)
  11104. ;
  11105. return 0;
  11106. }
  11107. _ACEOF
  11108. if ac_fn_c_try_compile "$LINENO"; then :
  11109. flag_ok=yes
  11110. else
  11111. flag_ok=no
  11112. fi
  11113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11114. if test "X$flag_ok" = Xyes ; then
  11115. inline_optimization="ARM"
  11116. true
  11117. else
  11118. inline_optimization="disabled"
  11119. true
  11120. fi
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
  11122. $as_echo "$flag_ok" >&6; }
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
  11124. $as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
  11125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11126. /* end confdefs.h. */
  11127. int
  11128. main ()
  11129. {
  11130. __asm__("qadd r3,r3,r3")
  11131. ;
  11132. return 0;
  11133. }
  11134. _ACEOF
  11135. if ac_fn_c_try_compile "$LINENO"; then :
  11136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11137. $as_echo "yes" >&6; }
  11138. OPUS_ARM_INLINE_EDSP=1
  11139. else
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11141. $as_echo "no" >&6; }
  11142. OPUS_ARM_INLINE_EDSP=0
  11143. fi
  11144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
  11146. $as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
  11147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11148. /* end confdefs.h. */
  11149. int
  11150. main ()
  11151. {
  11152. __asm__("shadd8 r3,r3,r3")
  11153. ;
  11154. return 0;
  11155. }
  11156. _ACEOF
  11157. if ac_fn_c_try_compile "$LINENO"; then :
  11158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11159. $as_echo "yes" >&6; }
  11160. OPUS_ARM_INLINE_MEDIA=1
  11161. else
  11162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11163. $as_echo "no" >&6; }
  11164. OPUS_ARM_INLINE_MEDIA=0
  11165. fi
  11166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
  11168. $as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
  11169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11170. /* end confdefs.h. */
  11171. int
  11172. main ()
  11173. {
  11174. __asm__("vorr d0,d0,d0")
  11175. ;
  11176. return 0;
  11177. }
  11178. _ACEOF
  11179. if ac_fn_c_try_compile "$LINENO"; then :
  11180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11181. $as_echo "yes" >&6; }
  11182. OPUS_ARM_INLINE_NEON=1
  11183. else
  11184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11185. $as_echo "no" >&6; }
  11186. OPUS_ARM_INLINE_NEON=0
  11187. fi
  11188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11189. if test x"$inline_optimization" = x"ARM"; then :
  11190. if true; then
  11191. OPUS_ARM_INLINE_ASM_TRUE=
  11192. OPUS_ARM_INLINE_ASM_FALSE='#'
  11193. else
  11194. OPUS_ARM_INLINE_ASM_TRUE='#'
  11195. OPUS_ARM_INLINE_ASM_FALSE=
  11196. fi
  11197. $as_echo "#define OPUS_ARM_INLINE_ASM 1" >>confdefs.h
  11198. if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
  11199. $as_echo "#define OPUS_ARM_INLINE_EDSP 1" >>confdefs.h
  11200. inline_optimization="$inline_optimization (EDSP)"
  11201. fi
  11202. if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
  11203. $as_echo "#define OPUS_ARM_INLINE_MEDIA 1" >>confdefs.h
  11204. inline_optimization="$inline_optimization (Media)"
  11205. fi
  11206. if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
  11207. $as_echo "#define OPUS_ARM_INLINE_NEON 1" >>confdefs.h
  11208. inline_optimization="$inline_optimization (NEON)"
  11209. fi
  11210. fi
  11211. # Extract the first word of "perl", so it can be a program name with args.
  11212. set dummy perl; ac_word=$2
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11214. $as_echo_n "checking for $ac_word... " >&6; }
  11215. if ${ac_cv_prog_HAVE_PERL+:} false; then :
  11216. $as_echo_n "(cached) " >&6
  11217. else
  11218. if test -n "$HAVE_PERL"; then
  11219. ac_cv_prog_HAVE_PERL="$HAVE_PERL" # Let the user override the test.
  11220. else
  11221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11222. for as_dir in $PATH
  11223. do
  11224. IFS=$as_save_IFS
  11225. test -z "$as_dir" && as_dir=.
  11226. for ac_exec_ext in '' $ac_executable_extensions; do
  11227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11228. ac_cv_prog_HAVE_PERL="yes"
  11229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11230. break 2
  11231. fi
  11232. done
  11233. done
  11234. IFS=$as_save_IFS
  11235. test -z "$ac_cv_prog_HAVE_PERL" && ac_cv_prog_HAVE_PERL="no"
  11236. fi
  11237. fi
  11238. HAVE_PERL=$ac_cv_prog_HAVE_PERL
  11239. if test -n "$HAVE_PERL"; then
  11240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PERL" >&5
  11241. $as_echo "$HAVE_PERL" >&6; }
  11242. else
  11243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11244. $as_echo "no" >&6; }
  11245. fi
  11246. if test x"$HAVE_PERL" = x"yes"; then :
  11247. if true; then
  11248. OPUS_ARM_EXTERNAL_ASM_TRUE=
  11249. OPUS_ARM_EXTERNAL_ASM_FALSE='#'
  11250. else
  11251. OPUS_ARM_EXTERNAL_ASM_TRUE='#'
  11252. OPUS_ARM_EXTERNAL_ASM_FALSE=
  11253. fi
  11254. asm_optimization="ARM"
  11255. if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
  11256. OPUS_ARM_PRESUME_EDSP=1
  11257. OPUS_ARM_MAY_HAVE_EDSP=1
  11258. else
  11259. OPUS_ARM_PRESUME_EDSP=0
  11260. OPUS_ARM_MAY_HAVE_EDSP=0
  11261. fi
  11262. if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
  11263. OPUS_ARM_PRESUME_MEDIA=1
  11264. OPUS_ARM_MAY_HAVE_MEDIA=1
  11265. else
  11266. OPUS_ARM_PRESUME_MEDIA=0
  11267. OPUS_ARM_MAY_HAVE_MEDIA=0
  11268. fi
  11269. if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
  11270. OPUS_ARM_PRESUME_NEON=1
  11271. OPUS_ARM_MAY_HAVE_NEON=1
  11272. else
  11273. OPUS_ARM_PRESUME_NEON=0
  11274. OPUS_ARM_MAY_HAVE_NEON=0
  11275. fi
  11276. if test x"$enable_rtcd" = x"yes"; then :
  11277. if test x"$OPUS_ARM_MAY_HAVE_EDSP" != x"1"; then :
  11278. { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable armv5e EDSP instructions..." >&5
  11279. $as_echo "$as_me: Trying to force-enable armv5e EDSP instructions..." >&6;}
  11280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
  11281. $as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
  11282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11283. /* end confdefs.h. */
  11284. int
  11285. main ()
  11286. {
  11287. __asm__(".arch armv5te\n.object_arch armv4t\nqadd r3,r3,r3")
  11288. ;
  11289. return 0;
  11290. }
  11291. _ACEOF
  11292. if ac_fn_c_try_compile "$LINENO"; then :
  11293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11294. $as_echo "yes" >&6; }
  11295. OPUS_ARM_MAY_HAVE_EDSP=1
  11296. else
  11297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11298. $as_echo "no" >&6; }
  11299. fi
  11300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11301. fi
  11302. if test x"$OPUS_ARM_MAY_HAVE_MEDIA" != x"1"; then :
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable ARMv6 media instructions..." >&5
  11304. $as_echo "$as_me: Trying to force-enable ARMv6 media instructions..." >&6;}
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
  11306. $as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
  11307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11308. /* end confdefs.h. */
  11309. int
  11310. main ()
  11311. {
  11312. __asm__(".arch armv6\n.object_arch armv4t\nshadd8 r3,r3,r3")
  11313. ;
  11314. return 0;
  11315. }
  11316. _ACEOF
  11317. if ac_fn_c_try_compile "$LINENO"; then :
  11318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11319. $as_echo "yes" >&6; }
  11320. OPUS_ARM_MAY_HAVE_MEDIA=1
  11321. else
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11323. $as_echo "no" >&6; }
  11324. fi
  11325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11326. fi
  11327. if test x"$OPUS_ARM_MAY_HAVE_NEON" != x"1"; then :
  11328. { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable NEON instructions..." >&5
  11329. $as_echo "$as_me: Trying to force-enable NEON instructions..." >&6;}
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
  11331. $as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
  11332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11333. /* end confdefs.h. */
  11334. int
  11335. main ()
  11336. {
  11337. __asm__(".arch armv7-a\n.fpu neon\n.object_arch armv4t\nvorr d0,d0,d0")
  11338. ;
  11339. return 0;
  11340. }
  11341. _ACEOF
  11342. if ac_fn_c_try_compile "$LINENO"; then :
  11343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11344. $as_echo "yes" >&6; }
  11345. OPUS_ARM_MAY_HAVE_NEON=1
  11346. else
  11347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11348. $as_echo "no" >&6; }
  11349. fi
  11350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11351. fi
  11352. fi
  11353. rtcd_support=
  11354. if test x"$OPUS_ARM_MAY_HAVE_EDSP" = x"1"; then :
  11355. $as_echo "#define OPUS_ARM_MAY_HAVE_EDSP 1" >>confdefs.h
  11356. if test x"$OPUS_ARM_PRESUME_EDSP" = x"1"; then :
  11357. $as_echo "#define OPUS_ARM_PRESUME_EDSP 1" >>confdefs.h
  11358. asm_optimization="$asm_optimization (EDSP)"
  11359. else
  11360. rtcd_support="$rtcd_support (EDSP)"
  11361. fi
  11362. fi
  11363. if test x"$OPUS_ARM_MAY_HAVE_MEDIA" = x"1"; then :
  11364. $as_echo "#define OPUS_ARM_MAY_HAVE_MEDIA 1" >>confdefs.h
  11365. if test x"$OPUS_ARM_PRESUME_MEDIA" = x"1"; then :
  11366. $as_echo "#define OPUS_ARM_PRESUME_MEDIA 1" >>confdefs.h
  11367. asm_optimization="$asm_optimization (Media)"
  11368. else
  11369. rtcd_support="$rtcd_support (Media)"
  11370. fi
  11371. fi
  11372. if test x"$OPUS_ARM_MAY_HAVE_NEON" = x"1"; then :
  11373. $as_echo "#define OPUS_ARM_MAY_HAVE_NEON 1" >>confdefs.h
  11374. if test x"$OPUS_ARM_PRESUME_NEON" = x"1"; then :
  11375. $as_echo "#define OPUS_ARM_PRESUME_NEON 1" >>confdefs.h
  11376. asm_optimization="$asm_optimization (NEON)"
  11377. else
  11378. rtcd_support="$rtcd_support (NEON)"
  11379. fi
  11380. fi
  11381. if test x"$rtcd_support" != x""; then :
  11382. rtcd_support=ARM"$rtcd_support"
  11383. else
  11384. rtcd_support="no"
  11385. fi
  11386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apple style tools" >&5
  11387. $as_echo_n "checking for apple style tools... " >&6; }
  11388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11389. /* end confdefs.h. */
  11390. #ifndef __APPLE__
  11391. #error 1
  11392. #endif
  11393. int
  11394. main ()
  11395. {
  11396. ;
  11397. return 0;
  11398. }
  11399. _ACEOF
  11400. if ac_fn_c_try_cpp "$LINENO"; then :
  11401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11402. $as_echo "yes" >&6; }; ARM2GNU_PARAMS="--apple"
  11403. else
  11404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11405. $as_echo "no" >&6; }; ARM2GNU_PARAMS=""
  11406. fi
  11407. rm -f conftest.err conftest.i conftest.$ac_ext
  11408. else
  11409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&5
  11410. $as_echo "$as_me: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&2;}
  11411. asm_optimization="(missing perl dependency for ARM)"
  11412. fi
  11413. fi
  11414. ;;
  11415. esac
  11416. else
  11417. inline_optimization="disabled"
  11418. asm_optimization="disabled"
  11419. fi
  11420. if test x"${inline_optimization%% *}" = x"ARM"; then
  11421. OPUS_ARM_INLINE_ASM_TRUE=
  11422. OPUS_ARM_INLINE_ASM_FALSE='#'
  11423. else
  11424. OPUS_ARM_INLINE_ASM_TRUE='#'
  11425. OPUS_ARM_INLINE_ASM_FALSE=
  11426. fi
  11427. if test x"${asm_optimization%% *}" = x"ARM"; then
  11428. OPUS_ARM_EXTERNAL_ASM_TRUE=
  11429. OPUS_ARM_EXTERNAL_ASM_FALSE='#'
  11430. else
  11431. OPUS_ARM_EXTERNAL_ASM_TRUE='#'
  11432. OPUS_ARM_EXTERNAL_ASM_FALSE=
  11433. fi
  11434. if false; then
  11435. HAVE_SSE_TRUE=
  11436. HAVE_SSE_FALSE='#'
  11437. else
  11438. HAVE_SSE_TRUE='#'
  11439. HAVE_SSE_FALSE=
  11440. fi
  11441. if false; then
  11442. HAVE_SSE2_TRUE=
  11443. HAVE_SSE2_FALSE='#'
  11444. else
  11445. HAVE_SSE2_TRUE='#'
  11446. HAVE_SSE2_FALSE=
  11447. fi
  11448. if false; then
  11449. HAVE_SSE4_1_TRUE=
  11450. HAVE_SSE4_1_FALSE='#'
  11451. else
  11452. HAVE_SSE4_1_TRUE='#'
  11453. HAVE_SSE4_1_FALSE=
  11454. fi
  11455. if false; then
  11456. HAVE_AVX_TRUE=
  11457. HAVE_AVX_FALSE='#'
  11458. else
  11459. HAVE_AVX_TRUE='#'
  11460. HAVE_AVX_FALSE=
  11461. fi
  11462. # With GCC on ARM32 softfp architectures (e.g. Android, or older Ubuntu) you need to specify
  11463. # -mfloat-abi=softfp for -mfpu=neon to work. However, on ARM32 hardfp architectures (e.g. newer Ubuntu),
  11464. # this option will break things.
  11465. # As a heuristic, if host matches arm*eabi* but not arm*hf*, it's probably soft-float.
  11466. case $host in #(
  11467. arm*hf*) :
  11468. RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;; #(
  11469. arm*eabi*) :
  11470. RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon -mfloat-abi=softfp" ;; #(
  11471. *) :
  11472. RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;;
  11473. esac
  11474. if ${X86_SSE_CFLAGS+:} false; then :
  11475. else
  11476. X86_SSE_CFLAGS="-msse"
  11477. fi
  11478. if ${X86_SSE2_CFLAGS+:} false; then :
  11479. else
  11480. X86_SSE2_CFLAGS="-msse2"
  11481. fi
  11482. if ${X86_SSE4_1_CFLAGS+:} false; then :
  11483. else
  11484. X86_SSE4_1_CFLAGS="-msse4.1"
  11485. fi
  11486. if ${X86_AVX_CFLAGS+:} false; then :
  11487. else
  11488. X86_AVX_CFLAGS="-mavx"
  11489. fi
  11490. if ${ARM_NEON_INTR_CFLAGS+:} false; then :
  11491. else
  11492. ARM_NEON_INTR_CFLAGS="$RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS"
  11493. fi
  11494. if test x"$enable_intrinsics" = x"yes"; then :
  11495. intrinsics_support=""
  11496. case $host_cpu in #(
  11497. arm*|aarch64*) :
  11498. cpu_arm=yes
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics" >&5
  11500. $as_echo_n "checking if compiler supports ARM Neon intrinsics... " >&6; }
  11501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11502. /* end confdefs.h. */
  11503. #include <arm_neon.h>
  11504. int
  11505. main ()
  11506. {
  11507. static float32x4_t A0, A1, SUMM;
  11508. SUMM = vmlaq_f32(SUMM, A0, A1);
  11509. return (int)vgetq_lane_f32(SUMM, 0);
  11510. ;
  11511. return 0;
  11512. }
  11513. _ACEOF
  11514. if ac_fn_c_try_link "$LINENO"; then :
  11515. OPUS_ARM_MAY_HAVE_NEON_INTR=1
  11516. OPUS_ARM_PRESUME_NEON_INTR=1
  11517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11518. $as_echo "yes" >&6; }
  11519. else
  11520. OPUS_ARM_PRESUME_NEON_INTR=0
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11522. $as_echo "no" >&6; }
  11523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5
  11524. $as_echo_n "checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; }
  11525. save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ARM_NEON_INTR_CFLAGS"
  11526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11527. /* end confdefs.h. */
  11528. #include <arm_neon.h>
  11529. int
  11530. main ()
  11531. {
  11532. static float32x4_t A0, A1, SUMM;
  11533. SUMM = vmlaq_f32(SUMM, A0, A1);
  11534. return (int)vgetq_lane_f32(SUMM, 0);
  11535. ;
  11536. return 0;
  11537. }
  11538. _ACEOF
  11539. if ac_fn_c_try_link "$LINENO"; then :
  11540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11541. $as_echo "yes" >&6; }
  11542. OPUS_ARM_MAY_HAVE_NEON_INTR=1
  11543. else
  11544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11545. $as_echo "no" >&6; }
  11546. OPUS_ARM_MAY_HAVE_NEON_INTR=0
  11547. fi
  11548. rm -f core conftest.err conftest.$ac_objext \
  11549. conftest$ac_exeext conftest.$ac_ext
  11550. CFLAGS="$save_CFLAGS"
  11551. fi
  11552. rm -f core conftest.err conftest.$ac_objext \
  11553. conftest$ac_exeext conftest.$ac_ext
  11554. if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
  11555. OPUS_ARM_NEON_INTR_CFLAGS="$ARM_NEON_INTR_CFLAGS"
  11556. fi
  11557. if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then :
  11558. $as_echo "#define OPUS_ARM_MAY_HAVE_NEON_INTR 1" >>confdefs.h
  11559. intrinsics_support="$intrinsics_support (NEON)"
  11560. if test x"$enable_rtcd" != x"no" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
  11561. if test x"$rtcd_support" = x"no"; then :
  11562. rtcd_support="ARM (NEON Intrinsics)"
  11563. else
  11564. rtcd_support="$rtcd_support (NEON Intrinsics)"
  11565. fi
  11566. fi
  11567. if test x"$OPUS_ARM_PRESUME_NEON_INTR" = x"1"; then :
  11568. $as_echo "#define OPUS_ARM_PRESUME_NEON_INTR 1" >>confdefs.h
  11569. fi
  11570. # Check whether --with-NE10 was given.
  11571. if test "${with_NE10+set}" = set; then :
  11572. withval=$with_NE10; NE10_prefix="$withval"
  11573. else
  11574. NE10_prefix=""
  11575. fi
  11576. # Check whether --with-NE10-libraries was given.
  11577. if test "${with_NE10_libraries+set}" = set; then :
  11578. withval=$with_NE10_libraries; NE10_libraries="$withval"
  11579. else
  11580. NE10_libraries=""
  11581. fi
  11582. # Check whether --with-NE10-includes was given.
  11583. if test "${with_NE10_includes+set}" = set; then :
  11584. withval=$with_NE10_includes; NE10_includes="$withval"
  11585. else
  11586. NE10_includes=""
  11587. fi
  11588. if test "x$NE10_libraries" != "x" ; then
  11589. NE10_LIBS="-L$NE10_libraries"
  11590. elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
  11591. NE10_LIBS=""
  11592. elif test "x$NE10_prefix" != "x" ; then
  11593. NE10_LIBS="-L$NE10_prefix/lib"
  11594. elif test "x$prefix" != "xNONE" ; then
  11595. NE10_LIBS="-L$prefix/lib"
  11596. fi
  11597. if test "x$NE10_prefix" != "xno" ; then
  11598. NE10_LIBS="$NE10_LIBS -lNE10"
  11599. fi
  11600. if test "x$NE10_includes" != "x" ; then
  11601. NE10_CFLAGS="-I$NE10_includes"
  11602. elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
  11603. NE10_CFLAGS=""
  11604. elif test "x$NE10_prefix" != "x" ; then
  11605. NE10_CFLAGS="-I$NE10_prefix/include"
  11606. elif test "x$prefix" != "xNONE"; then
  11607. NE10_CFLAGS="-I$prefix/include"
  11608. fi
  11609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NE10" >&5
  11610. $as_echo_n "checking for NE10... " >&6; }
  11611. save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $NE10_CFLAGS"
  11612. save_LIBS="$LIBS"; LIBS="$LIBS $NE10_LIBS $LIBM"
  11613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11614. /* end confdefs.h. */
  11615. #include <NE10_dsp.h>
  11616. int
  11617. main ()
  11618. {
  11619. ne10_fft_cfg_float32_t cfg;
  11620. cfg = ne10_fft_alloc_c2c_float32_neon(480);
  11621. ;
  11622. return 0;
  11623. }
  11624. _ACEOF
  11625. if ac_fn_c_try_link "$LINENO"; then :
  11626. HAVE_ARM_NE10=1
  11627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11628. $as_echo "yes" >&6; }
  11629. else
  11630. HAVE_ARM_NE10=0
  11631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11632. $as_echo "no" >&6; }
  11633. NE10_CFLAGS=""
  11634. NE10_LIBS=""
  11635. fi
  11636. rm -f core conftest.err conftest.$ac_objext \
  11637. conftest$ac_exeext conftest.$ac_ext
  11638. CFLAGS="$save_CFLAGS"; LIBS="$save_LIBS"
  11639. #Now we know if libNE10 is installed or not
  11640. if test x"$HAVE_ARM_NE10" = x"1"; then :
  11641. $as_echo "#define HAVE_ARM_NE10 1" >>confdefs.h
  11642. fi
  11643. if test x"$NE10_LIBS" != x""; then :
  11644. intrinsics_support="$intrinsics_support (NE10)"
  11645. if test x"enable_rtcd" != x"" \
  11646. && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
  11647. rtcd_support="$rtcd_support (NE10)"
  11648. fi
  11649. fi
  11650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports Aarch64 Neon intrinsics" >&5
  11651. $as_echo_n "checking if compiler supports Aarch64 Neon intrinsics... " >&6; }
  11652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11653. /* end confdefs.h. */
  11654. #include <arm_neon.h>
  11655. int
  11656. main ()
  11657. {
  11658. static int32_t IN;
  11659. static int16_t OUT;
  11660. OUT = vqmovns_s32(IN);
  11661. ;
  11662. return 0;
  11663. }
  11664. _ACEOF
  11665. if ac_fn_c_try_link "$LINENO"; then :
  11666. OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=1
  11667. OPUS_ARM_PRESUME_AARCH64_NEON_INTR=1
  11668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11669. $as_echo "yes" >&6; }
  11670. else
  11671. OPUS_ARM_PRESUME_AARCH64_NEON_INTR=0
  11672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11673. $as_echo "no" >&6; }
  11674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports Aarch64 Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5
  11675. $as_echo_n "checking if compiler supports Aarch64 Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; }
  11676. save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ARM_NEON_INTR_CFLAGS"
  11677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11678. /* end confdefs.h. */
  11679. #include <arm_neon.h>
  11680. int
  11681. main ()
  11682. {
  11683. static int32_t IN;
  11684. static int16_t OUT;
  11685. OUT = vqmovns_s32(IN);
  11686. ;
  11687. return 0;
  11688. }
  11689. _ACEOF
  11690. if ac_fn_c_try_link "$LINENO"; then :
  11691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11692. $as_echo "yes" >&6; }
  11693. OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=1
  11694. else
  11695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11696. $as_echo "no" >&6; }
  11697. OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=0
  11698. fi
  11699. rm -f core conftest.err conftest.$ac_objext \
  11700. conftest$ac_exeext conftest.$ac_ext
  11701. CFLAGS="$save_CFLAGS"
  11702. fi
  11703. rm -f core conftest.err conftest.$ac_objext \
  11704. conftest$ac_exeext conftest.$ac_ext
  11705. if test x"$OPUS_ARM_PRESUME_AARCH64_NEON_INTR" = x"1"; then :
  11706. $as_echo "#define OPUS_ARM_PRESUME_AARCH64_NEON_INTR 1" >>confdefs.h
  11707. intrinsics_support="$intrinsics_support (NEON Aarch64)"
  11708. fi
  11709. if test x"$intrinsics_support" = x""; then :
  11710. intrinsics_support=no
  11711. else
  11712. intrinsics_support="ARM$intrinsics_support"
  11713. fi
  11714. else
  11715. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support ARM intrinsics" >&5
  11716. $as_echo "$as_me: WARNING: Compiler does not support ARM intrinsics" >&2;}
  11717. intrinsics_support=no
  11718. fi
  11719. ;; #(
  11720. i?86|x86_64) :
  11721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics" >&5
  11722. $as_echo_n "checking if compiler supports SSE intrinsics... " >&6; }
  11723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11724. /* end confdefs.h. */
  11725. #include <xmmintrin.h>
  11726. #include <time.h>
  11727. int
  11728. main ()
  11729. {
  11730. __m128 mtest;
  11731. mtest = _mm_set1_ps((float)time(NULL));
  11732. mtest = _mm_mul_ps(mtest, mtest);
  11733. return _mm_cvtss_si32(mtest);
  11734. ;
  11735. return 0;
  11736. }
  11737. _ACEOF
  11738. if ac_fn_c_try_link "$LINENO"; then :
  11739. OPUS_X86_MAY_HAVE_SSE=1
  11740. OPUS_X86_PRESUME_SSE=1
  11741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11742. $as_echo "yes" >&6; }
  11743. else
  11744. OPUS_X86_PRESUME_SSE=0
  11745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11746. $as_echo "no" >&6; }
  11747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS" >&5
  11748. $as_echo_n "checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS... " >&6; }
  11749. save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE_CFLAGS"
  11750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11751. /* end confdefs.h. */
  11752. #include <xmmintrin.h>
  11753. #include <time.h>
  11754. int
  11755. main ()
  11756. {
  11757. __m128 mtest;
  11758. mtest = _mm_set1_ps((float)time(NULL));
  11759. mtest = _mm_mul_ps(mtest, mtest);
  11760. return _mm_cvtss_si32(mtest);
  11761. ;
  11762. return 0;
  11763. }
  11764. _ACEOF
  11765. if ac_fn_c_try_link "$LINENO"; then :
  11766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11767. $as_echo "yes" >&6; }
  11768. OPUS_X86_MAY_HAVE_SSE=1
  11769. else
  11770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11771. $as_echo "no" >&6; }
  11772. OPUS_X86_MAY_HAVE_SSE=0
  11773. fi
  11774. rm -f core conftest.err conftest.$ac_objext \
  11775. conftest$ac_exeext conftest.$ac_ext
  11776. CFLAGS="$save_CFLAGS"
  11777. fi
  11778. rm -f core conftest.err conftest.$ac_objext \
  11779. conftest$ac_exeext conftest.$ac_ext
  11780. if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1" && test x"$OPUS_X86_PRESUME_SSE" != x"1"; then :
  11781. OPUS_X86_SSE_CFLAGS="$X86_SSE_CFLAGS"
  11782. fi
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics" >&5
  11784. $as_echo_n "checking if compiler supports SSE2 intrinsics... " >&6; }
  11785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11786. /* end confdefs.h. */
  11787. #include <emmintrin.h>
  11788. #include <time.h>
  11789. int
  11790. main ()
  11791. {
  11792. __m128i mtest;
  11793. mtest = _mm_set1_epi32((int)time(NULL));
  11794. mtest = _mm_mul_epu32(mtest, mtest);
  11795. return _mm_cvtsi128_si32(mtest);
  11796. ;
  11797. return 0;
  11798. }
  11799. _ACEOF
  11800. if ac_fn_c_try_link "$LINENO"; then :
  11801. OPUS_X86_MAY_HAVE_SSE2=1
  11802. OPUS_X86_PRESUME_SSE2=1
  11803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11804. $as_echo "yes" >&6; }
  11805. else
  11806. OPUS_X86_PRESUME_SSE2=0
  11807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11808. $as_echo "no" >&6; }
  11809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS" >&5
  11810. $as_echo_n "checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS... " >&6; }
  11811. save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE2_CFLAGS"
  11812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11813. /* end confdefs.h. */
  11814. #include <emmintrin.h>
  11815. #include <time.h>
  11816. int
  11817. main ()
  11818. {
  11819. __m128i mtest;
  11820. mtest = _mm_set1_epi32((int)time(NULL));
  11821. mtest = _mm_mul_epu32(mtest, mtest);
  11822. return _mm_cvtsi128_si32(mtest);
  11823. ;
  11824. return 0;
  11825. }
  11826. _ACEOF
  11827. if ac_fn_c_try_link "$LINENO"; then :
  11828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11829. $as_echo "yes" >&6; }
  11830. OPUS_X86_MAY_HAVE_SSE2=1
  11831. else
  11832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11833. $as_echo "no" >&6; }
  11834. OPUS_X86_MAY_HAVE_SSE2=0
  11835. fi
  11836. rm -f core conftest.err conftest.$ac_objext \
  11837. conftest$ac_exeext conftest.$ac_ext
  11838. CFLAGS="$save_CFLAGS"
  11839. fi
  11840. rm -f core conftest.err conftest.$ac_objext \
  11841. conftest$ac_exeext conftest.$ac_ext
  11842. if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1" && test x"$OPUS_X86_PRESUME_SSE2" != x"1"; then :
  11843. OPUS_X86_SSE2_CFLAGS="$X86_SSE2_CFLAGS"
  11844. fi
  11845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics" >&5
  11846. $as_echo_n "checking if compiler supports SSE4.1 intrinsics... " >&6; }
  11847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11848. /* end confdefs.h. */
  11849. #include <smmintrin.h>
  11850. #include <time.h>
  11851. int
  11852. main ()
  11853. {
  11854. __m128i mtest;
  11855. mtest = _mm_set1_epi32((int)time(NULL));
  11856. mtest = _mm_mul_epi32(mtest, mtest);
  11857. return _mm_cvtsi128_si32(mtest);
  11858. ;
  11859. return 0;
  11860. }
  11861. _ACEOF
  11862. if ac_fn_c_try_link "$LINENO"; then :
  11863. OPUS_X86_MAY_HAVE_SSE4_1=1
  11864. OPUS_X86_PRESUME_SSE4_1=1
  11865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11866. $as_echo "yes" >&6; }
  11867. else
  11868. OPUS_X86_PRESUME_SSE4_1=0
  11869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11870. $as_echo "no" >&6; }
  11871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS" >&5
  11872. $as_echo_n "checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS... " >&6; }
  11873. save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE4_1_CFLAGS"
  11874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11875. /* end confdefs.h. */
  11876. #include <smmintrin.h>
  11877. #include <time.h>
  11878. int
  11879. main ()
  11880. {
  11881. __m128i mtest;
  11882. mtest = _mm_set1_epi32((int)time(NULL));
  11883. mtest = _mm_mul_epi32(mtest, mtest);
  11884. return _mm_cvtsi128_si32(mtest);
  11885. ;
  11886. return 0;
  11887. }
  11888. _ACEOF
  11889. if ac_fn_c_try_link "$LINENO"; then :
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11891. $as_echo "yes" >&6; }
  11892. OPUS_X86_MAY_HAVE_SSE4_1=1
  11893. else
  11894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11895. $as_echo "no" >&6; }
  11896. OPUS_X86_MAY_HAVE_SSE4_1=0
  11897. fi
  11898. rm -f core conftest.err conftest.$ac_objext \
  11899. conftest$ac_exeext conftest.$ac_ext
  11900. CFLAGS="$save_CFLAGS"
  11901. fi
  11902. rm -f core conftest.err conftest.$ac_objext \
  11903. conftest$ac_exeext conftest.$ac_ext
  11904. if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1" && test x"$OPUS_X86_PRESUME_SSE4_1" != x"1"; then :
  11905. OPUS_X86_SSE4_1_CFLAGS="$X86_SSE4_1_CFLAGS"
  11906. fi
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics" >&5
  11908. $as_echo_n "checking if compiler supports AVX intrinsics... " >&6; }
  11909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11910. /* end confdefs.h. */
  11911. #include <immintrin.h>
  11912. #include <time.h>
  11913. int
  11914. main ()
  11915. {
  11916. __m256 mtest;
  11917. mtest = _mm256_set1_ps((float)time(NULL));
  11918. mtest = _mm256_addsub_ps(mtest, mtest);
  11919. return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0));
  11920. ;
  11921. return 0;
  11922. }
  11923. _ACEOF
  11924. if ac_fn_c_try_link "$LINENO"; then :
  11925. OPUS_X86_MAY_HAVE_AVX=1
  11926. OPUS_X86_PRESUME_AVX=1
  11927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11928. $as_echo "yes" >&6; }
  11929. else
  11930. OPUS_X86_PRESUME_AVX=0
  11931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11932. $as_echo "no" >&6; }
  11933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS" >&5
  11934. $as_echo_n "checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS... " >&6; }
  11935. save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_AVX_CFLAGS"
  11936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11937. /* end confdefs.h. */
  11938. #include <immintrin.h>
  11939. #include <time.h>
  11940. int
  11941. main ()
  11942. {
  11943. __m256 mtest;
  11944. mtest = _mm256_set1_ps((float)time(NULL));
  11945. mtest = _mm256_addsub_ps(mtest, mtest);
  11946. return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0));
  11947. ;
  11948. return 0;
  11949. }
  11950. _ACEOF
  11951. if ac_fn_c_try_link "$LINENO"; then :
  11952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11953. $as_echo "yes" >&6; }
  11954. OPUS_X86_MAY_HAVE_AVX=1
  11955. else
  11956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11957. $as_echo "no" >&6; }
  11958. OPUS_X86_MAY_HAVE_AVX=0
  11959. fi
  11960. rm -f core conftest.err conftest.$ac_objext \
  11961. conftest$ac_exeext conftest.$ac_ext
  11962. CFLAGS="$save_CFLAGS"
  11963. fi
  11964. rm -f core conftest.err conftest.$ac_objext \
  11965. conftest$ac_exeext conftest.$ac_ext
  11966. if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1" && test x"$OPUS_X86_PRESUME_AVX" != x"1"; then :
  11967. OPUS_X86_AVX_CFLAGS="$X86_AVX_CFLAGS"
  11968. fi
  11969. if test x"$rtcd_support" = x"no"; then :
  11970. rtcd_support=""
  11971. fi
  11972. if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then :
  11973. $as_echo "#define OPUS_X86_MAY_HAVE_SSE 1" >>confdefs.h
  11974. intrinsics_support="$intrinsics_support SSE"
  11975. if test x"$OPUS_X86_PRESUME_SSE" = x"1"; then :
  11976. $as_echo "#define OPUS_X86_PRESUME_SSE 1" >>confdefs.h
  11977. else
  11978. rtcd_support="$rtcd_support SSE"
  11979. fi
  11980. else
  11981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE intrinsics" >&5
  11982. $as_echo "$as_me: WARNING: Compiler does not support SSE intrinsics" >&2;}
  11983. fi
  11984. if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then :
  11985. $as_echo "#define OPUS_X86_MAY_HAVE_SSE2 1" >>confdefs.h
  11986. intrinsics_support="$intrinsics_support SSE2"
  11987. if test x"$OPUS_X86_PRESUME_SSE2" = x"1"; then :
  11988. $as_echo "#define OPUS_X86_PRESUME_SSE2 1" >>confdefs.h
  11989. else
  11990. rtcd_support="$rtcd_support SSE2"
  11991. fi
  11992. else
  11993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE2 intrinsics" >&5
  11994. $as_echo "$as_me: WARNING: Compiler does not support SSE2 intrinsics" >&2;}
  11995. fi
  11996. if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then :
  11997. $as_echo "#define OPUS_X86_MAY_HAVE_SSE4_1 1" >>confdefs.h
  11998. intrinsics_support="$intrinsics_support SSE4.1"
  11999. if test x"$OPUS_X86_PRESUME_SSE4_1" = x"1"; then :
  12000. $as_echo "#define OPUS_X86_PRESUME_SSE4_1 1" >>confdefs.h
  12001. else
  12002. rtcd_support="$rtcd_support SSE4.1"
  12003. fi
  12004. else
  12005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE4.1 intrinsics" >&5
  12006. $as_echo "$as_me: WARNING: Compiler does not support SSE4.1 intrinsics" >&2;}
  12007. fi
  12008. if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then :
  12009. $as_echo "#define OPUS_X86_MAY_HAVE_AVX 1" >>confdefs.h
  12010. intrinsics_support="$intrinsics_support AVX"
  12011. if test x"$OPUS_X86_PRESUME_AVX" = x"1"; then :
  12012. $as_echo "#define OPUS_X86_PRESUME_AVX 1" >>confdefs.h
  12013. else
  12014. rtcd_support="$rtcd_support AVX"
  12015. fi
  12016. else
  12017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support AVX intrinsics" >&5
  12018. $as_echo "$as_me: WARNING: Compiler does not support AVX intrinsics" >&2;}
  12019. fi
  12020. if test x"$intrinsics_support" = x""; then :
  12021. intrinsics_support=no
  12022. else
  12023. intrinsics_support="x86$intrinsics_support"
  12024. fi
  12025. if test x"$rtcd_support" = x""; then :
  12026. rtcd_support=no
  12027. elif rtcd_support="x86$rtcd_support"; then :
  12028. fi
  12029. if test x"$enable_rtcd" = x"yes" && test x"$rtcd_support" != x""; then :
  12030. get_cpuid_by_asm="no"
  12031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking How to get X86 CPU Info" >&5
  12032. $as_echo_n "checking How to get X86 CPU Info... " >&6; }
  12033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12034. /* end confdefs.h. */
  12035. #include <stdio.h>
  12036. int
  12037. main ()
  12038. {
  12039. unsigned int CPUInfo0;
  12040. unsigned int CPUInfo1;
  12041. unsigned int CPUInfo2;
  12042. unsigned int CPUInfo3;
  12043. unsigned int InfoType;
  12044. __asm__ __volatile__ (
  12045. "cpuid":
  12046. "=a" (CPUInfo0),
  12047. "=b" (CPUInfo1),
  12048. "=c" (CPUInfo2),
  12049. "=d" (CPUInfo3) :
  12050. "a" (InfoType), "c" (0)
  12051. );
  12052. ;
  12053. return 0;
  12054. }
  12055. _ACEOF
  12056. if ac_fn_c_try_link "$LINENO"; then :
  12057. get_cpuid_by_asm="yes"
  12058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Inline Assembly" >&5
  12059. $as_echo "Inline Assembly" >&6; }
  12060. $as_echo "#define CPU_INFO_BY_ASM 1" >>confdefs.h
  12061. else
  12062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12063. /* end confdefs.h. */
  12064. #include <cpuid.h>
  12065. int
  12066. main ()
  12067. {
  12068. unsigned int CPUInfo0;
  12069. unsigned int CPUInfo1;
  12070. unsigned int CPUInfo2;
  12071. unsigned int CPUInfo3;
  12072. unsigned int InfoType;
  12073. __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3);
  12074. ;
  12075. return 0;
  12076. }
  12077. _ACEOF
  12078. if ac_fn_c_try_link "$LINENO"; then :
  12079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: C method" >&5
  12080. $as_echo "C method" >&6; }
  12081. $as_echo "#define CPU_INFO_BY_C 1" >>confdefs.h
  12082. else
  12083. as_fn_error $? "no supported Get CPU Info method, please disable run-time CPU capabilities detection or intrinsics" "$LINENO" 5
  12084. fi
  12085. rm -f core conftest.err conftest.$ac_objext \
  12086. conftest$ac_exeext conftest.$ac_ext
  12087. fi
  12088. rm -f core conftest.err conftest.$ac_objext \
  12089. conftest$ac_exeext conftest.$ac_ext
  12090. fi
  12091. ;; #(
  12092. *) :
  12093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No intrinsics support for your architecture" >&5
  12094. $as_echo "$as_me: WARNING: No intrinsics support for your architecture" >&2;}
  12095. intrinsics_support="no"
  12096. ;;
  12097. esac
  12098. else
  12099. intrinsics_support="no"
  12100. fi
  12101. if test "$cpu_arm" = "yes"; then
  12102. CPU_ARM_TRUE=
  12103. CPU_ARM_FALSE='#'
  12104. else
  12105. CPU_ARM_TRUE='#'
  12106. CPU_ARM_FALSE=
  12107. fi
  12108. if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then
  12109. HAVE_ARM_NEON_INTR_TRUE=
  12110. HAVE_ARM_NEON_INTR_FALSE='#'
  12111. else
  12112. HAVE_ARM_NEON_INTR_TRUE='#'
  12113. HAVE_ARM_NEON_INTR_FALSE=
  12114. fi
  12115. if test x"$HAVE_ARM_NE10" = x"1"; then
  12116. HAVE_ARM_NE10_TRUE=
  12117. HAVE_ARM_NE10_FALSE='#'
  12118. else
  12119. HAVE_ARM_NE10_TRUE='#'
  12120. HAVE_ARM_NE10_FALSE=
  12121. fi
  12122. if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then
  12123. HAVE_SSE_TRUE=
  12124. HAVE_SSE_FALSE='#'
  12125. else
  12126. HAVE_SSE_TRUE='#'
  12127. HAVE_SSE_FALSE=
  12128. fi
  12129. if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then
  12130. HAVE_SSE2_TRUE=
  12131. HAVE_SSE2_FALSE='#'
  12132. else
  12133. HAVE_SSE2_TRUE='#'
  12134. HAVE_SSE2_FALSE=
  12135. fi
  12136. if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then
  12137. HAVE_SSE4_1_TRUE=
  12138. HAVE_SSE4_1_FALSE='#'
  12139. else
  12140. HAVE_SSE4_1_TRUE='#'
  12141. HAVE_SSE4_1_FALSE=
  12142. fi
  12143. if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then
  12144. HAVE_AVX_TRUE=
  12145. HAVE_AVX_FALSE='#'
  12146. else
  12147. HAVE_AVX_TRUE='#'
  12148. HAVE_AVX_FALSE=
  12149. fi
  12150. if test x"$enable_rtcd" = x"yes"; then :
  12151. if test x"$rtcd_support" != x"no"; then :
  12152. $as_echo "#define OPUS_HAVE_RTCD 1" >>confdefs.h
  12153. OPUS_HAVE_RTCD=1
  12154. fi
  12155. else
  12156. rtcd_support="disabled"
  12157. fi
  12158. # Check whether --enable-assertions was given.
  12159. if test "${enable_assertions+set}" = set; then :
  12160. enableval=$enable_assertions;
  12161. else
  12162. enable_assertions=no
  12163. fi
  12164. if test "$enable_assertions" = "yes"; then :
  12165. $as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
  12166. fi
  12167. # Check whether --enable-hardening was given.
  12168. if test "${enable_hardening+set}" = set; then :
  12169. enableval=$enable_hardening;
  12170. else
  12171. enable_hardening=yes
  12172. fi
  12173. if test "$enable_hardening" = "yes"; then :
  12174. $as_echo "#define ENABLE_HARDENING 1" >>confdefs.h
  12175. fi
  12176. # Check whether --enable-fuzzing was given.
  12177. if test "${enable_fuzzing+set}" = set; then :
  12178. enableval=$enable_fuzzing;
  12179. else
  12180. enable_fuzzing=no
  12181. fi
  12182. if test "$enable_fuzzing" = "yes"; then :
  12183. $as_echo "#define FUZZING 1" >>confdefs.h
  12184. fi
  12185. # Check whether --enable-check-asm was given.
  12186. if test "${enable_check_asm+set}" = set; then :
  12187. enableval=$enable_check_asm;
  12188. else
  12189. enable_check_asm=no
  12190. fi
  12191. if test "$enable_check_asm" = "yes"; then :
  12192. $as_echo "#define OPUS_CHECK_ASM 1" >>confdefs.h
  12193. fi
  12194. # Check whether --enable-doc was given.
  12195. if test "${enable_doc+set}" = set; then :
  12196. enableval=$enable_doc;
  12197. else
  12198. enable_doc=yes
  12199. fi
  12200. if test "$enable_doc" = "yes"; then :
  12201. # Extract the first word of "doxygen", so it can be a program name with args.
  12202. set dummy doxygen; ac_word=$2
  12203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12204. $as_echo_n "checking for $ac_word... " >&6; }
  12205. if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
  12206. $as_echo_n "(cached) " >&6
  12207. else
  12208. if test -n "$HAVE_DOXYGEN"; then
  12209. ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
  12210. else
  12211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12212. for as_dir in $PATH
  12213. do
  12214. IFS=$as_save_IFS
  12215. test -z "$as_dir" && as_dir=.
  12216. for ac_exec_ext in '' $ac_executable_extensions; do
  12217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12218. ac_cv_prog_HAVE_DOXYGEN="yes"
  12219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12220. break 2
  12221. fi
  12222. done
  12223. done
  12224. IFS=$as_save_IFS
  12225. test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
  12226. fi
  12227. fi
  12228. HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
  12229. if test -n "$HAVE_DOXYGEN"; then
  12230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
  12231. $as_echo "$HAVE_DOXYGEN" >&6; }
  12232. else
  12233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12234. $as_echo "no" >&6; }
  12235. fi
  12236. # Extract the first word of "dot", so it can be a program name with args.
  12237. set dummy dot; ac_word=$2
  12238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12239. $as_echo_n "checking for $ac_word... " >&6; }
  12240. if ${ac_cv_prog_HAVE_DOT+:} false; then :
  12241. $as_echo_n "(cached) " >&6
  12242. else
  12243. if test -n "$HAVE_DOT"; then
  12244. ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
  12245. else
  12246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12247. for as_dir in $PATH
  12248. do
  12249. IFS=$as_save_IFS
  12250. test -z "$as_dir" && as_dir=.
  12251. for ac_exec_ext in '' $ac_executable_extensions; do
  12252. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12253. ac_cv_prog_HAVE_DOT="yes"
  12254. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12255. break 2
  12256. fi
  12257. done
  12258. done
  12259. IFS=$as_save_IFS
  12260. test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no"
  12261. fi
  12262. fi
  12263. HAVE_DOT=$ac_cv_prog_HAVE_DOT
  12264. if test -n "$HAVE_DOT"; then
  12265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
  12266. $as_echo "$HAVE_DOT" >&6; }
  12267. else
  12268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12269. $as_echo "no" >&6; }
  12270. fi
  12271. else
  12272. HAVE_DOXYGEN=no
  12273. fi
  12274. if test "$HAVE_DOXYGEN" = "yes"; then
  12275. HAVE_DOXYGEN_TRUE=
  12276. HAVE_DOXYGEN_FALSE='#'
  12277. else
  12278. HAVE_DOXYGEN_TRUE='#'
  12279. HAVE_DOXYGEN_FALSE=
  12280. fi
  12281. # Check whether --enable-extra-programs was given.
  12282. if test "${enable_extra_programs+set}" = set; then :
  12283. enableval=$enable_extra_programs;
  12284. else
  12285. enable_extra_programs=yes
  12286. fi
  12287. if test "$enable_extra_programs" = "yes"; then
  12288. EXTRA_PROGRAMS_TRUE=
  12289. EXTRA_PROGRAMS_FALSE='#'
  12290. else
  12291. EXTRA_PROGRAMS_TRUE='#'
  12292. EXTRA_PROGRAMS_FALSE=
  12293. fi
  12294. # Check whether --enable-rfc8251 was given.
  12295. if test "${enable_rfc8251+set}" = set; then :
  12296. enableval=$enable_rfc8251;
  12297. else
  12298. enable_rfc8251=yes
  12299. fi
  12300. if test "$enable_rfc8251" = "no"; then :
  12301. $as_echo "#define DISABLE_UPDATE_DRAFT 1" >>confdefs.h
  12302. fi
  12303. saved_CFLAGS="$CFLAGS"
  12304. CFLAGS="$CFLAGS -fvisibility=hidden"
  12305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
  12306. $as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
  12307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12308. /* end confdefs.h. */
  12309. char foo;
  12310. _ACEOF
  12311. if ac_fn_c_try_compile "$LINENO"; then :
  12312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12313. $as_echo "yes" >&6; }
  12314. else
  12315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12316. $as_echo "no" >&6; }
  12317. CFLAGS="$saved_CFLAGS"
  12318. fi
  12319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12320. on_x86=no
  12321. case "$host_cpu" in
  12322. i[3456]86 | x86_64)
  12323. on_x86=yes
  12324. ;;
  12325. esac
  12326. on_windows=no
  12327. case $host in
  12328. *cygwin*|*mingw*)
  12329. on_windows=yes
  12330. ;;
  12331. esac
  12332. # Check whether --enable-stack-protector was given.
  12333. if test "${enable_stack_protector+set}" = set; then :
  12334. enableval=$enable_stack_protector;
  12335. else
  12336. if test "$ac_cv_c_compiler_gnu" = "yes" && test "$on_x86" = "yes" && test "$on_windows" = "no"; then :
  12337. enable_stack_protector=yes
  12338. else
  12339. enable_stack_protector=no
  12340. fi
  12341. fi
  12342. if test "$enable_stack_protector" = "yes"; then :
  12343. saved_CFLAGS="$CFLAGS"
  12344. CFLAGS="$CFLAGS -fstack-protector-strong"
  12345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fstack-protector-strong" >&5
  12346. $as_echo_n "checking if ${CC} supports -fstack-protector-strong... " >&6; }
  12347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12348. /* end confdefs.h. */
  12349. int
  12350. main ()
  12351. {
  12352. char foo;
  12353. ;
  12354. return 0;
  12355. }
  12356. _ACEOF
  12357. if ac_fn_c_try_link "$LINENO"; then :
  12358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12359. $as_echo "yes" >&6; }
  12360. else
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12362. $as_echo "no" >&6; }
  12363. enable_stack_protector=no
  12364. CFLAGS="$saved_CFLAGS"
  12365. fi
  12366. rm -f core conftest.err conftest.$ac_objext \
  12367. conftest$ac_exeext conftest.$ac_ext
  12368. fi
  12369. if test x$ac_cv_c_compiler_gnu = xyes; then :
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS" >&5
  12371. $as_echo_n "checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS... " >&6; }
  12372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12373. /* end confdefs.h. */
  12374. int main() {
  12375. #ifndef _FORTIFY_SOURCE
  12376. return 0;
  12377. #else
  12378. this_is_an_error;
  12379. #endif
  12380. }
  12381. _ACEOF
  12382. if ac_fn_c_try_link "$LINENO"; then :
  12383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12384. $as_echo "yes" >&6; }
  12385. CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
  12386. else
  12387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12388. $as_echo "no" >&6; }
  12389. fi
  12390. rm -f core conftest.err conftest.$ac_objext \
  12391. conftest$ac_exeext conftest.$ac_ext
  12392. fi
  12393. CFLAGS="$CFLAGS -W"
  12394. warn_CFLAGS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
  12395. saved_CFLAGS="$CFLAGS"
  12396. CFLAGS="$CFLAGS $warn_CFLAGS"
  12397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${warn_CFLAGS}" >&5
  12398. $as_echo_n "checking if ${CC} supports ${warn_CFLAGS}... " >&6; }
  12399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12400. /* end confdefs.h. */
  12401. char foo;
  12402. _ACEOF
  12403. if ac_fn_c_try_compile "$LINENO"; then :
  12404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12405. $as_echo "yes" >&6; }
  12406. else
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12408. $as_echo "no" >&6; }
  12409. CFLAGS="$saved_CFLAGS"
  12410. fi
  12411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12412. saved_LIBS="$LIBS"
  12413. LIBS="$LIBS $LIBM"
  12414. for ac_func in lrintf
  12415. do :
  12416. ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
  12417. if test "x$ac_cv_func_lrintf" = xyes; then :
  12418. cat >>confdefs.h <<_ACEOF
  12419. #define HAVE_LRINTF 1
  12420. _ACEOF
  12421. fi
  12422. done
  12423. for ac_func in lrint
  12424. do :
  12425. ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
  12426. if test "x$ac_cv_func_lrint" = xyes; then :
  12427. cat >>confdefs.h <<_ACEOF
  12428. #define HAVE_LRINT 1
  12429. _ACEOF
  12430. fi
  12431. done
  12432. LIBS="$saved_LIBS"
  12433. for ac_func in __malloc_hook
  12434. do :
  12435. ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
  12436. if test "x$ac_cv_func___malloc_hook" = xyes; then :
  12437. cat >>confdefs.h <<_ACEOF
  12438. #define HAVE___MALLOC_HOOK 1
  12439. _ACEOF
  12440. fi
  12441. done
  12442. ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc celt/arm/armopts.s doc/Makefile doc/Doxyfile"
  12443. ac_config_headers="$ac_config_headers config.h"
  12444. cat >confcache <<\_ACEOF
  12445. # This file is a shell script that caches the results of configure
  12446. # tests run on this system so they can be shared between configure
  12447. # scripts and configure runs, see configure's option --config-cache.
  12448. # It is not useful on other systems. If it contains results you don't
  12449. # want to keep, you may remove or edit it.
  12450. #
  12451. # config.status only pays attention to the cache file if you give it
  12452. # the --recheck option to rerun configure.
  12453. #
  12454. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12455. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12456. # following values.
  12457. _ACEOF
  12458. # The following way of writing the cache mishandles newlines in values,
  12459. # but we know of no workaround that is simple, portable, and efficient.
  12460. # So, we kill variables containing newlines.
  12461. # Ultrix sh set writes to stderr and can't be redirected directly,
  12462. # and sets the high bit in the cache file unless we assign to the vars.
  12463. (
  12464. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12465. eval ac_val=\$$ac_var
  12466. case $ac_val in #(
  12467. *${as_nl}*)
  12468. case $ac_var in #(
  12469. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12470. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12471. esac
  12472. case $ac_var in #(
  12473. _ | IFS | as_nl) ;; #(
  12474. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12475. *) { eval $ac_var=; unset $ac_var;} ;;
  12476. esac ;;
  12477. esac
  12478. done
  12479. (set) 2>&1 |
  12480. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12481. *${as_nl}ac_space=\ *)
  12482. # `set' does not quote correctly, so add quotes: double-quote
  12483. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12484. sed -n \
  12485. "s/'/'\\\\''/g;
  12486. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12487. ;; #(
  12488. *)
  12489. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12490. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12491. ;;
  12492. esac |
  12493. sort
  12494. ) |
  12495. sed '
  12496. /^ac_cv_env_/b end
  12497. t clear
  12498. :clear
  12499. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12500. t end
  12501. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12502. :end' >>confcache
  12503. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12504. if test -w "$cache_file"; then
  12505. if test "x$cache_file" != "x/dev/null"; then
  12506. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12507. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12508. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12509. cat confcache >"$cache_file"
  12510. else
  12511. case $cache_file in #(
  12512. */* | ?:*)
  12513. mv -f confcache "$cache_file"$$ &&
  12514. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12515. *)
  12516. mv -f confcache "$cache_file" ;;
  12517. esac
  12518. fi
  12519. fi
  12520. else
  12521. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12522. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12523. fi
  12524. fi
  12525. rm -f confcache
  12526. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12527. # Let make expand exec_prefix.
  12528. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12529. DEFS=-DHAVE_CONFIG_H
  12530. ac_libobjs=
  12531. ac_ltlibobjs=
  12532. U=
  12533. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12534. # 1. Remove the extension, and $U if already installed.
  12535. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12536. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12537. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12538. # will be set to the directory where LIBOBJS objects are built.
  12539. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12540. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12541. done
  12542. LIBOBJS=$ac_libobjs
  12543. LTLIBOBJS=$ac_ltlibobjs
  12544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12545. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12546. if test -n "$am_sleep_pid"; then
  12547. # Hide warnings about reused PIDs.
  12548. wait $am_sleep_pid 2>/dev/null
  12549. fi
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12551. $as_echo "done" >&6; }
  12552. if test -n "$EXEEXT"; then
  12553. am__EXEEXT_TRUE=
  12554. am__EXEEXT_FALSE='#'
  12555. else
  12556. am__EXEEXT_TRUE='#'
  12557. am__EXEEXT_FALSE=
  12558. fi
  12559. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12560. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  12561. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12562. fi
  12563. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12564. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12565. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12566. fi
  12567. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12568. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12569. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12570. fi
  12571. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  12572. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  12573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12574. fi
  12575. if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
  12576. as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
  12577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12578. fi
  12579. if test -z "${DISABLE_FLOAT_API_TRUE}" && test -z "${DISABLE_FLOAT_API_FALSE}"; then
  12580. as_fn_error $? "conditional \"DISABLE_FLOAT_API\" was never defined.
  12581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12582. fi
  12583. if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
  12584. as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
  12585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12586. fi
  12587. if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
  12588. as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
  12589. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12590. fi
  12591. if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
  12592. as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
  12593. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12594. fi
  12595. if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
  12596. as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
  12597. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12598. fi
  12599. if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
  12600. as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
  12601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12602. fi
  12603. if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
  12604. as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
  12605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12606. fi
  12607. if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
  12608. as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
  12609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12610. fi
  12611. if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
  12612. as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
  12613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12614. fi
  12615. if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
  12616. as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
  12617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12618. fi
  12619. if test -z "${CPU_ARM_TRUE}" && test -z "${CPU_ARM_FALSE}"; then
  12620. as_fn_error $? "conditional \"CPU_ARM\" was never defined.
  12621. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12622. fi
  12623. if test -z "${HAVE_ARM_NEON_INTR_TRUE}" && test -z "${HAVE_ARM_NEON_INTR_FALSE}"; then
  12624. as_fn_error $? "conditional \"HAVE_ARM_NEON_INTR\" was never defined.
  12625. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12626. fi
  12627. if test -z "${HAVE_ARM_NE10_TRUE}" && test -z "${HAVE_ARM_NE10_FALSE}"; then
  12628. as_fn_error $? "conditional \"HAVE_ARM_NE10\" was never defined.
  12629. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12630. fi
  12631. if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
  12632. as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
  12633. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12634. fi
  12635. if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
  12636. as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
  12637. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12638. fi
  12639. if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
  12640. as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
  12641. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12642. fi
  12643. if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
  12644. as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
  12645. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12646. fi
  12647. if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
  12648. as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
  12649. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12650. fi
  12651. if test -z "${EXTRA_PROGRAMS_TRUE}" && test -z "${EXTRA_PROGRAMS_FALSE}"; then
  12652. as_fn_error $? "conditional \"EXTRA_PROGRAMS\" was never defined.
  12653. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12654. fi
  12655. : "${CONFIG_STATUS=./config.status}"
  12656. ac_write_fail=0
  12657. ac_clean_files_save=$ac_clean_files
  12658. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12660. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12661. as_write_fail=0
  12662. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12663. #! $SHELL
  12664. # Generated by $as_me.
  12665. # Run this file to recreate the current configuration.
  12666. # Compiler output produced by configure, useful for debugging
  12667. # configure, is in config.log if it exists.
  12668. debug=false
  12669. ac_cs_recheck=false
  12670. ac_cs_silent=false
  12671. SHELL=\${CONFIG_SHELL-$SHELL}
  12672. export SHELL
  12673. _ASEOF
  12674. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12675. ## -------------------- ##
  12676. ## M4sh Initialization. ##
  12677. ## -------------------- ##
  12678. # Be more Bourne compatible
  12679. DUALCASE=1; export DUALCASE # for MKS sh
  12680. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12681. emulate sh
  12682. NULLCMD=:
  12683. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12684. # is contrary to our usage. Disable this feature.
  12685. alias -g '${1+"$@"}'='"$@"'
  12686. setopt NO_GLOB_SUBST
  12687. else
  12688. case `(set -o) 2>/dev/null` in #(
  12689. *posix*) :
  12690. set -o posix ;; #(
  12691. *) :
  12692. ;;
  12693. esac
  12694. fi
  12695. as_nl='
  12696. '
  12697. export as_nl
  12698. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12699. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12700. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12701. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12702. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12703. # but without wasting forks for bash or zsh.
  12704. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12705. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12706. as_echo='print -r --'
  12707. as_echo_n='print -rn --'
  12708. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12709. as_echo='printf %s\n'
  12710. as_echo_n='printf %s'
  12711. else
  12712. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12713. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12714. as_echo_n='/usr/ucb/echo -n'
  12715. else
  12716. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12717. as_echo_n_body='eval
  12718. arg=$1;
  12719. case $arg in #(
  12720. *"$as_nl"*)
  12721. expr "X$arg" : "X\\(.*\\)$as_nl";
  12722. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12723. esac;
  12724. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12725. '
  12726. export as_echo_n_body
  12727. as_echo_n='sh -c $as_echo_n_body as_echo'
  12728. fi
  12729. export as_echo_body
  12730. as_echo='sh -c $as_echo_body as_echo'
  12731. fi
  12732. # The user is always right.
  12733. if test "${PATH_SEPARATOR+set}" != set; then
  12734. PATH_SEPARATOR=:
  12735. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12736. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12737. PATH_SEPARATOR=';'
  12738. }
  12739. fi
  12740. # IFS
  12741. # We need space, tab and new line, in precisely that order. Quoting is
  12742. # there to prevent editors from complaining about space-tab.
  12743. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12744. # splitting by setting IFS to empty value.)
  12745. IFS=" "" $as_nl"
  12746. # Find who we are. Look in the path if we contain no directory separator.
  12747. as_myself=
  12748. case $0 in #((
  12749. *[\\/]* ) as_myself=$0 ;;
  12750. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12751. for as_dir in $PATH
  12752. do
  12753. IFS=$as_save_IFS
  12754. test -z "$as_dir" && as_dir=.
  12755. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12756. done
  12757. IFS=$as_save_IFS
  12758. ;;
  12759. esac
  12760. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12761. # in which case we are not to be found in the path.
  12762. if test "x$as_myself" = x; then
  12763. as_myself=$0
  12764. fi
  12765. if test ! -f "$as_myself"; then
  12766. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12767. exit 1
  12768. fi
  12769. # Unset variables that we do not need and which cause bugs (e.g. in
  12770. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12771. # suppresses any "Segmentation fault" message there. '((' could
  12772. # trigger a bug in pdksh 5.2.14.
  12773. for as_var in BASH_ENV ENV MAIL MAILPATH
  12774. do eval test x\${$as_var+set} = xset \
  12775. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12776. done
  12777. PS1='$ '
  12778. PS2='> '
  12779. PS4='+ '
  12780. # NLS nuisances.
  12781. LC_ALL=C
  12782. export LC_ALL
  12783. LANGUAGE=C
  12784. export LANGUAGE
  12785. # CDPATH.
  12786. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12787. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12788. # ----------------------------------------
  12789. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12790. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12791. # script with STATUS, using 1 if that was 0.
  12792. as_fn_error ()
  12793. {
  12794. as_status=$1; test $as_status -eq 0 && as_status=1
  12795. if test "$4"; then
  12796. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12797. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12798. fi
  12799. $as_echo "$as_me: error: $2" >&2
  12800. as_fn_exit $as_status
  12801. } # as_fn_error
  12802. # as_fn_set_status STATUS
  12803. # -----------------------
  12804. # Set $? to STATUS, without forking.
  12805. as_fn_set_status ()
  12806. {
  12807. return $1
  12808. } # as_fn_set_status
  12809. # as_fn_exit STATUS
  12810. # -----------------
  12811. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12812. as_fn_exit ()
  12813. {
  12814. set +e
  12815. as_fn_set_status $1
  12816. exit $1
  12817. } # as_fn_exit
  12818. # as_fn_unset VAR
  12819. # ---------------
  12820. # Portably unset VAR.
  12821. as_fn_unset ()
  12822. {
  12823. { eval $1=; unset $1;}
  12824. }
  12825. as_unset=as_fn_unset
  12826. # as_fn_append VAR VALUE
  12827. # ----------------------
  12828. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12829. # advantage of any shell optimizations that allow amortized linear growth over
  12830. # repeated appends, instead of the typical quadratic growth present in naive
  12831. # implementations.
  12832. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12833. eval 'as_fn_append ()
  12834. {
  12835. eval $1+=\$2
  12836. }'
  12837. else
  12838. as_fn_append ()
  12839. {
  12840. eval $1=\$$1\$2
  12841. }
  12842. fi # as_fn_append
  12843. # as_fn_arith ARG...
  12844. # ------------------
  12845. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12846. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12847. # must be portable across $(()) and expr.
  12848. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12849. eval 'as_fn_arith ()
  12850. {
  12851. as_val=$(( $* ))
  12852. }'
  12853. else
  12854. as_fn_arith ()
  12855. {
  12856. as_val=`expr "$@" || test $? -eq 1`
  12857. }
  12858. fi # as_fn_arith
  12859. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12860. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12861. as_expr=expr
  12862. else
  12863. as_expr=false
  12864. fi
  12865. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12866. as_basename=basename
  12867. else
  12868. as_basename=false
  12869. fi
  12870. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12871. as_dirname=dirname
  12872. else
  12873. as_dirname=false
  12874. fi
  12875. as_me=`$as_basename -- "$0" ||
  12876. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12877. X"$0" : 'X\(//\)$' \| \
  12878. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12879. $as_echo X/"$0" |
  12880. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12881. s//\1/
  12882. q
  12883. }
  12884. /^X\/\(\/\/\)$/{
  12885. s//\1/
  12886. q
  12887. }
  12888. /^X\/\(\/\).*/{
  12889. s//\1/
  12890. q
  12891. }
  12892. s/.*/./; q'`
  12893. # Avoid depending upon Character Ranges.
  12894. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12895. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12896. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12897. as_cr_digits='0123456789'
  12898. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12899. ECHO_C= ECHO_N= ECHO_T=
  12900. case `echo -n x` in #(((((
  12901. -n*)
  12902. case `echo 'xy\c'` in
  12903. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12904. xy) ECHO_C='\c';;
  12905. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12906. ECHO_T=' ';;
  12907. esac;;
  12908. *)
  12909. ECHO_N='-n';;
  12910. esac
  12911. rm -f conf$$ conf$$.exe conf$$.file
  12912. if test -d conf$$.dir; then
  12913. rm -f conf$$.dir/conf$$.file
  12914. else
  12915. rm -f conf$$.dir
  12916. mkdir conf$$.dir 2>/dev/null
  12917. fi
  12918. if (echo >conf$$.file) 2>/dev/null; then
  12919. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12920. as_ln_s='ln -s'
  12921. # ... but there are two gotchas:
  12922. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12923. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12924. # In both cases, we have to default to `cp -pR'.
  12925. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12926. as_ln_s='cp -pR'
  12927. elif ln conf$$.file conf$$ 2>/dev/null; then
  12928. as_ln_s=ln
  12929. else
  12930. as_ln_s='cp -pR'
  12931. fi
  12932. else
  12933. as_ln_s='cp -pR'
  12934. fi
  12935. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12936. rmdir conf$$.dir 2>/dev/null
  12937. # as_fn_mkdir_p
  12938. # -------------
  12939. # Create "$as_dir" as a directory, including parents if necessary.
  12940. as_fn_mkdir_p ()
  12941. {
  12942. case $as_dir in #(
  12943. -*) as_dir=./$as_dir;;
  12944. esac
  12945. test -d "$as_dir" || eval $as_mkdir_p || {
  12946. as_dirs=
  12947. while :; do
  12948. case $as_dir in #(
  12949. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12950. *) as_qdir=$as_dir;;
  12951. esac
  12952. as_dirs="'$as_qdir' $as_dirs"
  12953. as_dir=`$as_dirname -- "$as_dir" ||
  12954. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12955. X"$as_dir" : 'X\(//\)[^/]' \| \
  12956. X"$as_dir" : 'X\(//\)$' \| \
  12957. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12958. $as_echo X"$as_dir" |
  12959. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12960. s//\1/
  12961. q
  12962. }
  12963. /^X\(\/\/\)[^/].*/{
  12964. s//\1/
  12965. q
  12966. }
  12967. /^X\(\/\/\)$/{
  12968. s//\1/
  12969. q
  12970. }
  12971. /^X\(\/\).*/{
  12972. s//\1/
  12973. q
  12974. }
  12975. s/.*/./; q'`
  12976. test -d "$as_dir" && break
  12977. done
  12978. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12979. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12980. } # as_fn_mkdir_p
  12981. if mkdir -p . 2>/dev/null; then
  12982. as_mkdir_p='mkdir -p "$as_dir"'
  12983. else
  12984. test -d ./-p && rmdir ./-p
  12985. as_mkdir_p=false
  12986. fi
  12987. # as_fn_executable_p FILE
  12988. # -----------------------
  12989. # Test if FILE is an executable regular file.
  12990. as_fn_executable_p ()
  12991. {
  12992. test -f "$1" && test -x "$1"
  12993. } # as_fn_executable_p
  12994. as_test_x='test -x'
  12995. as_executable_p=as_fn_executable_p
  12996. # Sed expression to map a string onto a valid CPP name.
  12997. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12998. # Sed expression to map a string onto a valid variable name.
  12999. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13000. exec 6>&1
  13001. ## ----------------------------------- ##
  13002. ## Main body of $CONFIG_STATUS script. ##
  13003. ## ----------------------------------- ##
  13004. _ASEOF
  13005. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13006. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13007. # Save the log message, to keep $0 and so on meaningful, and to
  13008. # report actual input values of CONFIG_FILES etc. instead of their
  13009. # values after options handling.
  13010. ac_log="
  13011. This file was extended by opus $as_me 1.3, which was
  13012. generated by GNU Autoconf 2.69. Invocation command line was
  13013. CONFIG_FILES = $CONFIG_FILES
  13014. CONFIG_HEADERS = $CONFIG_HEADERS
  13015. CONFIG_LINKS = $CONFIG_LINKS
  13016. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13017. $ $0 $@
  13018. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13019. "
  13020. _ACEOF
  13021. case $ac_config_files in *"
  13022. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13023. esac
  13024. case $ac_config_headers in *"
  13025. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13026. esac
  13027. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13028. # Files that config.status was made for.
  13029. config_files="$ac_config_files"
  13030. config_headers="$ac_config_headers"
  13031. config_commands="$ac_config_commands"
  13032. _ACEOF
  13033. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13034. ac_cs_usage="\
  13035. \`$as_me' instantiates files and other configuration actions
  13036. from templates according to the current configuration. Unless the files
  13037. and actions are specified as TAGs, all are instantiated by default.
  13038. Usage: $0 [OPTION]... [TAG]...
  13039. -h, --help print this help, then exit
  13040. -V, --version print version number and configuration settings, then exit
  13041. --config print configuration, then exit
  13042. -q, --quiet, --silent
  13043. do not print progress messages
  13044. -d, --debug don't remove temporary files
  13045. --recheck update $as_me by reconfiguring in the same conditions
  13046. --file=FILE[:TEMPLATE]
  13047. instantiate the configuration file FILE
  13048. --header=FILE[:TEMPLATE]
  13049. instantiate the configuration header FILE
  13050. Configuration files:
  13051. $config_files
  13052. Configuration headers:
  13053. $config_headers
  13054. Configuration commands:
  13055. $config_commands
  13056. Report bugs to <[email protected]>."
  13057. _ACEOF
  13058. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13059. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13060. ac_cs_version="\\
  13061. opus config.status 1.3
  13062. configured by $0, generated by GNU Autoconf 2.69,
  13063. with options \\"\$ac_cs_config\\"
  13064. Copyright (C) 2012 Free Software Foundation, Inc.
  13065. This config.status script is free software; the Free Software Foundation
  13066. gives unlimited permission to copy, distribute and modify it."
  13067. ac_pwd='$ac_pwd'
  13068. srcdir='$srcdir'
  13069. INSTALL='$INSTALL'
  13070. MKDIR_P='$MKDIR_P'
  13071. AWK='$AWK'
  13072. test -n "\$AWK" || AWK=awk
  13073. _ACEOF
  13074. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13075. # The default lists apply if the user does not specify any file.
  13076. ac_need_defaults=:
  13077. while test $# != 0
  13078. do
  13079. case $1 in
  13080. --*=?*)
  13081. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13082. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13083. ac_shift=:
  13084. ;;
  13085. --*=)
  13086. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13087. ac_optarg=
  13088. ac_shift=:
  13089. ;;
  13090. *)
  13091. ac_option=$1
  13092. ac_optarg=$2
  13093. ac_shift=shift
  13094. ;;
  13095. esac
  13096. case $ac_option in
  13097. # Handling of the options.
  13098. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13099. ac_cs_recheck=: ;;
  13100. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13101. $as_echo "$ac_cs_version"; exit ;;
  13102. --config | --confi | --conf | --con | --co | --c )
  13103. $as_echo "$ac_cs_config"; exit ;;
  13104. --debug | --debu | --deb | --de | --d | -d )
  13105. debug=: ;;
  13106. --file | --fil | --fi | --f )
  13107. $ac_shift
  13108. case $ac_optarg in
  13109. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13110. '') as_fn_error $? "missing file argument" ;;
  13111. esac
  13112. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13113. ac_need_defaults=false;;
  13114. --header | --heade | --head | --hea )
  13115. $ac_shift
  13116. case $ac_optarg in
  13117. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13118. esac
  13119. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13120. ac_need_defaults=false;;
  13121. --he | --h)
  13122. # Conflict between --help and --header
  13123. as_fn_error $? "ambiguous option: \`$1'
  13124. Try \`$0 --help' for more information.";;
  13125. --help | --hel | -h )
  13126. $as_echo "$ac_cs_usage"; exit ;;
  13127. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13128. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13129. ac_cs_silent=: ;;
  13130. # This is an error.
  13131. -*) as_fn_error $? "unrecognized option: \`$1'
  13132. Try \`$0 --help' for more information." ;;
  13133. *) as_fn_append ac_config_targets " $1"
  13134. ac_need_defaults=false ;;
  13135. esac
  13136. shift
  13137. done
  13138. ac_configure_extra_args=
  13139. if $ac_cs_silent; then
  13140. exec 6>/dev/null
  13141. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13142. fi
  13143. _ACEOF
  13144. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13145. if \$ac_cs_recheck; then
  13146. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13147. shift
  13148. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13149. CONFIG_SHELL='$SHELL'
  13150. export CONFIG_SHELL
  13151. exec "\$@"
  13152. fi
  13153. _ACEOF
  13154. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13155. exec 5>>config.log
  13156. {
  13157. echo
  13158. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13159. ## Running $as_me. ##
  13160. _ASBOX
  13161. $as_echo "$ac_log"
  13162. } >&5
  13163. _ACEOF
  13164. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13165. #
  13166. # INIT-COMMANDS
  13167. #
  13168. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13169. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13170. # if CDPATH is set.
  13171. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13172. sed_quote_subst='$sed_quote_subst'
  13173. double_quote_subst='$double_quote_subst'
  13174. delay_variable_subst='$delay_variable_subst'
  13175. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13176. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13177. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13178. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13179. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13180. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13181. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  13182. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13183. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13184. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13185. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13186. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13187. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13188. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13189. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13190. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13191. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13192. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13193. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13194. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13195. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13196. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13197. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13198. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13199. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13200. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13201. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13202. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13203. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13204. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13205. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13206. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13207. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13208. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13209. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13210. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13211. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13212. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13213. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13214. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13215. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13216. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13217. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13218. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13219. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13220. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13221. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13222. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13223. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13224. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13225. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13226. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13227. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13228. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13229. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13230. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13231. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  13232. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13233. 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"`'
  13234. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  13235. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13236. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13237. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  13238. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13239. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13240. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13241. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13242. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13243. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13244. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13245. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13246. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13247. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13248. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13249. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13250. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13251. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13252. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13253. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13254. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13255. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13256. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13257. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13258. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13259. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13260. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13261. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13262. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13263. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13264. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13265. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13266. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13267. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13268. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13269. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13270. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13271. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13272. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13273. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13274. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13275. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13276. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13277. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13278. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13279. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13280. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13281. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13282. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13283. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13284. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13285. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13286. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13287. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13288. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13289. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13290. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13291. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13292. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13293. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13294. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13295. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13296. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13297. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13298. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13299. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13300. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13301. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13302. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  13303. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  13304. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13305. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13306. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13307. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13308. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13309. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13310. LTCC='$LTCC'
  13311. LTCFLAGS='$LTCFLAGS'
  13312. compiler='$compiler_DEFAULT'
  13313. # A function that is used when there is no print builtin or printf.
  13314. func_fallback_echo ()
  13315. {
  13316. eval 'cat <<_LTECHO_EOF
  13317. \$1
  13318. _LTECHO_EOF'
  13319. }
  13320. # Quote evaled strings.
  13321. for var in SHELL \
  13322. ECHO \
  13323. PATH_SEPARATOR \
  13324. SED \
  13325. GREP \
  13326. EGREP \
  13327. FGREP \
  13328. LD \
  13329. NM \
  13330. LN_S \
  13331. lt_SP2NL \
  13332. lt_NL2SP \
  13333. reload_flag \
  13334. OBJDUMP \
  13335. deplibs_check_method \
  13336. file_magic_cmd \
  13337. file_magic_glob \
  13338. want_nocaseglob \
  13339. DLLTOOL \
  13340. sharedlib_from_linklib_cmd \
  13341. AR \
  13342. AR_FLAGS \
  13343. archiver_list_spec \
  13344. STRIP \
  13345. RANLIB \
  13346. CC \
  13347. CFLAGS \
  13348. compiler \
  13349. lt_cv_sys_global_symbol_pipe \
  13350. lt_cv_sys_global_symbol_to_cdecl \
  13351. lt_cv_sys_global_symbol_to_import \
  13352. lt_cv_sys_global_symbol_to_c_name_address \
  13353. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13354. lt_cv_nm_interface \
  13355. nm_file_list_spec \
  13356. lt_cv_truncate_bin \
  13357. lt_prog_compiler_no_builtin_flag \
  13358. lt_prog_compiler_pic \
  13359. lt_prog_compiler_wl \
  13360. lt_prog_compiler_static \
  13361. lt_cv_prog_compiler_c_o \
  13362. need_locks \
  13363. MANIFEST_TOOL \
  13364. DSYMUTIL \
  13365. NMEDIT \
  13366. LIPO \
  13367. OTOOL \
  13368. OTOOL64 \
  13369. shrext_cmds \
  13370. export_dynamic_flag_spec \
  13371. whole_archive_flag_spec \
  13372. compiler_needs_object \
  13373. with_gnu_ld \
  13374. allow_undefined_flag \
  13375. no_undefined_flag \
  13376. hardcode_libdir_flag_spec \
  13377. hardcode_libdir_separator \
  13378. exclude_expsyms \
  13379. include_expsyms \
  13380. file_list_spec \
  13381. variables_saved_for_relink \
  13382. libname_spec \
  13383. library_names_spec \
  13384. soname_spec \
  13385. install_override_mode \
  13386. finish_eval \
  13387. old_striplib \
  13388. striplib; do
  13389. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13390. *[\\\\\\\`\\"\\\$]*)
  13391. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13392. ;;
  13393. *)
  13394. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13395. ;;
  13396. esac
  13397. done
  13398. # Double-quote double-evaled strings.
  13399. for var in reload_cmds \
  13400. old_postinstall_cmds \
  13401. old_postuninstall_cmds \
  13402. old_archive_cmds \
  13403. extract_expsyms_cmds \
  13404. old_archive_from_new_cmds \
  13405. old_archive_from_expsyms_cmds \
  13406. archive_cmds \
  13407. archive_expsym_cmds \
  13408. module_cmds \
  13409. module_expsym_cmds \
  13410. export_symbols_cmds \
  13411. prelink_cmds \
  13412. postlink_cmds \
  13413. postinstall_cmds \
  13414. postuninstall_cmds \
  13415. finish_cmds \
  13416. sys_lib_search_path_spec \
  13417. configure_time_dlsearch_path \
  13418. configure_time_lt_sys_library_path; do
  13419. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13420. *[\\\\\\\`\\"\\\$]*)
  13421. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13422. ;;
  13423. *)
  13424. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13425. ;;
  13426. esac
  13427. done
  13428. ac_aux_dir='$ac_aux_dir'
  13429. # See if we are running on zsh, and set the options that allow our
  13430. # commands through without removal of \ escapes INIT.
  13431. if test -n "\${ZSH_VERSION+set}"; then
  13432. setopt NO_GLOB_SUBST
  13433. fi
  13434. PACKAGE='$PACKAGE'
  13435. VERSION='$VERSION'
  13436. RM='$RM'
  13437. ofile='$ofile'
  13438. _ACEOF
  13439. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13440. # Handling of arguments.
  13441. for ac_config_target in $ac_config_targets
  13442. do
  13443. case $ac_config_target in
  13444. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13445. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13446. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13447. "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
  13448. "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
  13449. "celt/arm/armopts.s") CONFIG_FILES="$CONFIG_FILES celt/arm/armopts.s" ;;
  13450. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13451. "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
  13452. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13453. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13454. esac
  13455. done
  13456. # If the user did not use the arguments to specify the items to instantiate,
  13457. # then the envvar interface is used. Set only those that are not.
  13458. # We use the long form for the default assignment because of an extremely
  13459. # bizarre bug on SunOS 4.1.3.
  13460. if $ac_need_defaults; then
  13461. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13462. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13463. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13464. fi
  13465. # Have a temporary directory for convenience. Make it in the build tree
  13466. # simply because there is no reason against having it here, and in addition,
  13467. # creating and moving files from /tmp can sometimes cause problems.
  13468. # Hook for its removal unless debugging.
  13469. # Note that there is a small window in which the directory will not be cleaned:
  13470. # after its creation but before its name has been assigned to `$tmp'.
  13471. $debug ||
  13472. {
  13473. tmp= ac_tmp=
  13474. trap 'exit_status=$?
  13475. : "${ac_tmp:=$tmp}"
  13476. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13477. ' 0
  13478. trap 'as_fn_exit 1' 1 2 13 15
  13479. }
  13480. # Create a (secure) tmp directory for tmp files.
  13481. {
  13482. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13483. test -d "$tmp"
  13484. } ||
  13485. {
  13486. tmp=./conf$$-$RANDOM
  13487. (umask 077 && mkdir "$tmp")
  13488. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13489. ac_tmp=$tmp
  13490. # Set up the scripts for CONFIG_FILES section.
  13491. # No need to generate them if there are no CONFIG_FILES.
  13492. # This happens for instance with `./config.status config.h'.
  13493. if test -n "$CONFIG_FILES"; then
  13494. ac_cr=`echo X | tr X '\015'`
  13495. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13496. # But we know of no other shell where ac_cr would be empty at this
  13497. # point, so we can use a bashism as a fallback.
  13498. if test "x$ac_cr" = x; then
  13499. eval ac_cr=\$\'\\r\'
  13500. fi
  13501. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13502. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13503. ac_cs_awk_cr='\\r'
  13504. else
  13505. ac_cs_awk_cr=$ac_cr
  13506. fi
  13507. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13508. _ACEOF
  13509. {
  13510. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13511. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13512. echo "_ACEOF"
  13513. } >conf$$subs.sh ||
  13514. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13515. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13516. ac_delim='%!_!# '
  13517. for ac_last_try in false false false false false :; do
  13518. . ./conf$$subs.sh ||
  13519. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13520. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13521. if test $ac_delim_n = $ac_delim_num; then
  13522. break
  13523. elif $ac_last_try; then
  13524. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13525. else
  13526. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13527. fi
  13528. done
  13529. rm -f conf$$subs.sh
  13530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13531. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13532. _ACEOF
  13533. sed -n '
  13534. h
  13535. s/^/S["/; s/!.*/"]=/
  13536. p
  13537. g
  13538. s/^[^!]*!//
  13539. :repl
  13540. t repl
  13541. s/'"$ac_delim"'$//
  13542. t delim
  13543. :nl
  13544. h
  13545. s/\(.\{148\}\)..*/\1/
  13546. t more1
  13547. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13548. p
  13549. n
  13550. b repl
  13551. :more1
  13552. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13553. p
  13554. g
  13555. s/.\{148\}//
  13556. t nl
  13557. :delim
  13558. h
  13559. s/\(.\{148\}\)..*/\1/
  13560. t more2
  13561. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13562. p
  13563. b
  13564. :more2
  13565. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13566. p
  13567. g
  13568. s/.\{148\}//
  13569. t delim
  13570. ' <conf$$subs.awk | sed '
  13571. /^[^""]/{
  13572. N
  13573. s/\n//
  13574. }
  13575. ' >>$CONFIG_STATUS || ac_write_fail=1
  13576. rm -f conf$$subs.awk
  13577. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13578. _ACAWK
  13579. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13580. for (key in S) S_is_set[key] = 1
  13581. FS = ""
  13582. }
  13583. {
  13584. line = $ 0
  13585. nfields = split(line, field, "@")
  13586. substed = 0
  13587. len = length(field[1])
  13588. for (i = 2; i < nfields; i++) {
  13589. key = field[i]
  13590. keylen = length(key)
  13591. if (S_is_set[key]) {
  13592. value = S[key]
  13593. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13594. len += length(value) + length(field[++i])
  13595. substed = 1
  13596. } else
  13597. len += 1 + keylen
  13598. }
  13599. print line
  13600. }
  13601. _ACAWK
  13602. _ACEOF
  13603. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13604. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13605. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13606. else
  13607. cat
  13608. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13609. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13610. _ACEOF
  13611. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13612. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13613. # trailing colons and then remove the whole line if VPATH becomes empty
  13614. # (actually we leave an empty line to preserve line numbers).
  13615. if test "x$srcdir" = x.; then
  13616. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13617. h
  13618. s///
  13619. s/^/:/
  13620. s/[ ]*$/:/
  13621. s/:\$(srcdir):/:/g
  13622. s/:\${srcdir}:/:/g
  13623. s/:@srcdir@:/:/g
  13624. s/^:*//
  13625. s/:*$//
  13626. x
  13627. s/\(=[ ]*\).*/\1/
  13628. G
  13629. s/\n//
  13630. s/^[^=]*=[ ]*$//
  13631. }'
  13632. fi
  13633. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13634. fi # test -n "$CONFIG_FILES"
  13635. # Set up the scripts for CONFIG_HEADERS section.
  13636. # No need to generate them if there are no CONFIG_HEADERS.
  13637. # This happens for instance with `./config.status Makefile'.
  13638. if test -n "$CONFIG_HEADERS"; then
  13639. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13640. BEGIN {
  13641. _ACEOF
  13642. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13643. # here-document in config.status, that substitutes the proper values into
  13644. # config.h.in to produce config.h.
  13645. # Create a delimiter string that does not exist in confdefs.h, to ease
  13646. # handling of long lines.
  13647. ac_delim='%!_!# '
  13648. for ac_last_try in false false :; do
  13649. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13650. if test -z "$ac_tt"; then
  13651. break
  13652. elif $ac_last_try; then
  13653. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13654. else
  13655. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13656. fi
  13657. done
  13658. # For the awk script, D is an array of macro values keyed by name,
  13659. # likewise P contains macro parameters if any. Preserve backslash
  13660. # newline sequences.
  13661. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13662. sed -n '
  13663. s/.\{148\}/&'"$ac_delim"'/g
  13664. t rset
  13665. :rset
  13666. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13667. t def
  13668. d
  13669. :def
  13670. s/\\$//
  13671. t bsnl
  13672. s/["\\]/\\&/g
  13673. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13674. D["\1"]=" \3"/p
  13675. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13676. d
  13677. :bsnl
  13678. s/["\\]/\\&/g
  13679. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13680. D["\1"]=" \3\\\\\\n"\\/p
  13681. t cont
  13682. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13683. t cont
  13684. d
  13685. :cont
  13686. n
  13687. s/.\{148\}/&'"$ac_delim"'/g
  13688. t clear
  13689. :clear
  13690. s/\\$//
  13691. t bsnlc
  13692. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13693. d
  13694. :bsnlc
  13695. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13696. b cont
  13697. ' <confdefs.h | sed '
  13698. s/'"$ac_delim"'/"\\\
  13699. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13700. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13701. for (key in D) D_is_set[key] = 1
  13702. FS = ""
  13703. }
  13704. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13705. line = \$ 0
  13706. split(line, arg, " ")
  13707. if (arg[1] == "#") {
  13708. defundef = arg[2]
  13709. mac1 = arg[3]
  13710. } else {
  13711. defundef = substr(arg[1], 2)
  13712. mac1 = arg[2]
  13713. }
  13714. split(mac1, mac2, "(") #)
  13715. macro = mac2[1]
  13716. prefix = substr(line, 1, index(line, defundef) - 1)
  13717. if (D_is_set[macro]) {
  13718. # Preserve the white space surrounding the "#".
  13719. print prefix "define", macro P[macro] D[macro]
  13720. next
  13721. } else {
  13722. # Replace #undef with comments. This is necessary, for example,
  13723. # in the case of _POSIX_SOURCE, which is predefined and required
  13724. # on some systems where configure will not decide to define it.
  13725. if (defundef == "undef") {
  13726. print "/*", prefix defundef, macro, "*/"
  13727. next
  13728. }
  13729. }
  13730. }
  13731. { print }
  13732. _ACAWK
  13733. _ACEOF
  13734. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13735. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13736. fi # test -n "$CONFIG_HEADERS"
  13737. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13738. shift
  13739. for ac_tag
  13740. do
  13741. case $ac_tag in
  13742. :[FHLC]) ac_mode=$ac_tag; continue;;
  13743. esac
  13744. case $ac_mode$ac_tag in
  13745. :[FHL]*:*);;
  13746. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13747. :[FH]-) ac_tag=-:-;;
  13748. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13749. esac
  13750. ac_save_IFS=$IFS
  13751. IFS=:
  13752. set x $ac_tag
  13753. IFS=$ac_save_IFS
  13754. shift
  13755. ac_file=$1
  13756. shift
  13757. case $ac_mode in
  13758. :L) ac_source=$1;;
  13759. :[FH])
  13760. ac_file_inputs=
  13761. for ac_f
  13762. do
  13763. case $ac_f in
  13764. -) ac_f="$ac_tmp/stdin";;
  13765. *) # Look for the file first in the build tree, then in the source tree
  13766. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13767. # because $ac_f cannot contain `:'.
  13768. test -f "$ac_f" ||
  13769. case $ac_f in
  13770. [\\/$]*) false;;
  13771. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13772. esac ||
  13773. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13774. esac
  13775. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13776. as_fn_append ac_file_inputs " '$ac_f'"
  13777. done
  13778. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13779. # use $as_me), people would be surprised to read:
  13780. # /* config.h. Generated by config.status. */
  13781. configure_input='Generated from '`
  13782. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13783. `' by configure.'
  13784. if test x"$ac_file" != x-; then
  13785. configure_input="$ac_file. $configure_input"
  13786. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13787. $as_echo "$as_me: creating $ac_file" >&6;}
  13788. fi
  13789. # Neutralize special characters interpreted by sed in replacement strings.
  13790. case $configure_input in #(
  13791. *\&* | *\|* | *\\* )
  13792. ac_sed_conf_input=`$as_echo "$configure_input" |
  13793. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13794. *) ac_sed_conf_input=$configure_input;;
  13795. esac
  13796. case $ac_tag in
  13797. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13798. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13799. esac
  13800. ;;
  13801. esac
  13802. ac_dir=`$as_dirname -- "$ac_file" ||
  13803. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13804. X"$ac_file" : 'X\(//\)[^/]' \| \
  13805. X"$ac_file" : 'X\(//\)$' \| \
  13806. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13807. $as_echo X"$ac_file" |
  13808. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13809. s//\1/
  13810. q
  13811. }
  13812. /^X\(\/\/\)[^/].*/{
  13813. s//\1/
  13814. q
  13815. }
  13816. /^X\(\/\/\)$/{
  13817. s//\1/
  13818. q
  13819. }
  13820. /^X\(\/\).*/{
  13821. s//\1/
  13822. q
  13823. }
  13824. s/.*/./; q'`
  13825. as_dir="$ac_dir"; as_fn_mkdir_p
  13826. ac_builddir=.
  13827. case "$ac_dir" in
  13828. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13829. *)
  13830. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13831. # A ".." for each directory in $ac_dir_suffix.
  13832. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13833. case $ac_top_builddir_sub in
  13834. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13835. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13836. esac ;;
  13837. esac
  13838. ac_abs_top_builddir=$ac_pwd
  13839. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13840. # for backward compatibility:
  13841. ac_top_builddir=$ac_top_build_prefix
  13842. case $srcdir in
  13843. .) # We are building in place.
  13844. ac_srcdir=.
  13845. ac_top_srcdir=$ac_top_builddir_sub
  13846. ac_abs_top_srcdir=$ac_pwd ;;
  13847. [\\/]* | ?:[\\/]* ) # Absolute name.
  13848. ac_srcdir=$srcdir$ac_dir_suffix;
  13849. ac_top_srcdir=$srcdir
  13850. ac_abs_top_srcdir=$srcdir ;;
  13851. *) # Relative name.
  13852. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13853. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13854. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13855. esac
  13856. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13857. case $ac_mode in
  13858. :F)
  13859. #
  13860. # CONFIG_FILE
  13861. #
  13862. case $INSTALL in
  13863. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13864. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13865. esac
  13866. ac_MKDIR_P=$MKDIR_P
  13867. case $MKDIR_P in
  13868. [\\/$]* | ?:[\\/]* ) ;;
  13869. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13870. esac
  13871. _ACEOF
  13872. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13873. # If the template does not know about datarootdir, expand it.
  13874. # FIXME: This hack should be removed a few years after 2.60.
  13875. ac_datarootdir_hack=; ac_datarootdir_seen=
  13876. ac_sed_dataroot='
  13877. /datarootdir/ {
  13878. p
  13879. q
  13880. }
  13881. /@datadir@/p
  13882. /@docdir@/p
  13883. /@infodir@/p
  13884. /@localedir@/p
  13885. /@mandir@/p'
  13886. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13887. *datarootdir*) ac_datarootdir_seen=yes;;
  13888. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13890. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13891. _ACEOF
  13892. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13893. ac_datarootdir_hack='
  13894. s&@datadir@&$datadir&g
  13895. s&@docdir@&$docdir&g
  13896. s&@infodir@&$infodir&g
  13897. s&@localedir@&$localedir&g
  13898. s&@mandir@&$mandir&g
  13899. s&\\\${datarootdir}&$datarootdir&g' ;;
  13900. esac
  13901. _ACEOF
  13902. # Neutralize VPATH when `$srcdir' = `.'.
  13903. # Shell code in configure.ac might set extrasub.
  13904. # FIXME: do we really want to maintain this feature?
  13905. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13906. ac_sed_extra="$ac_vpsub
  13907. $extrasub
  13908. _ACEOF
  13909. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13910. :t
  13911. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13912. s|@configure_input@|$ac_sed_conf_input|;t t
  13913. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13914. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13915. s&@srcdir@&$ac_srcdir&;t t
  13916. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13917. s&@top_srcdir@&$ac_top_srcdir&;t t
  13918. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13919. s&@builddir@&$ac_builddir&;t t
  13920. s&@abs_builddir@&$ac_abs_builddir&;t t
  13921. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13922. s&@INSTALL@&$ac_INSTALL&;t t
  13923. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13924. $ac_datarootdir_hack
  13925. "
  13926. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13927. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13928. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13929. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13930. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13931. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13933. which seems to be undefined. Please make sure it is defined" >&5
  13934. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13935. which seems to be undefined. Please make sure it is defined" >&2;}
  13936. rm -f "$ac_tmp/stdin"
  13937. case $ac_file in
  13938. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13939. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13940. esac \
  13941. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13942. ;;
  13943. :H)
  13944. #
  13945. # CONFIG_HEADER
  13946. #
  13947. if test x"$ac_file" != x-; then
  13948. {
  13949. $as_echo "/* $configure_input */" \
  13950. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13951. } >"$ac_tmp/config.h" \
  13952. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13953. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13954. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13955. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13956. else
  13957. rm -f "$ac_file"
  13958. mv "$ac_tmp/config.h" "$ac_file" \
  13959. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13960. fi
  13961. else
  13962. $as_echo "/* $configure_input */" \
  13963. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13964. || as_fn_error $? "could not create -" "$LINENO" 5
  13965. fi
  13966. # Compute "$ac_file"'s index in $config_headers.
  13967. _am_arg="$ac_file"
  13968. _am_stamp_count=1
  13969. for _am_header in $config_headers :; do
  13970. case $_am_header in
  13971. $_am_arg | $_am_arg:* )
  13972. break ;;
  13973. * )
  13974. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13975. esac
  13976. done
  13977. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13978. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13979. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13980. X"$_am_arg" : 'X\(//\)$' \| \
  13981. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13982. $as_echo X"$_am_arg" |
  13983. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13984. s//\1/
  13985. q
  13986. }
  13987. /^X\(\/\/\)[^/].*/{
  13988. s//\1/
  13989. q
  13990. }
  13991. /^X\(\/\/\)$/{
  13992. s//\1/
  13993. q
  13994. }
  13995. /^X\(\/\).*/{
  13996. s//\1/
  13997. q
  13998. }
  13999. s/.*/./; q'`/stamp-h$_am_stamp_count
  14000. ;;
  14001. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14002. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14003. ;;
  14004. esac
  14005. case $ac_file$ac_mode in
  14006. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14007. # Older Autoconf quotes --file arguments for eval, but not when files
  14008. # are listed without --file. Let's play safe and only enable the eval
  14009. # if we detect the quoting.
  14010. case $CONFIG_FILES in
  14011. *\'*) eval set x "$CONFIG_FILES" ;;
  14012. *) set x $CONFIG_FILES ;;
  14013. esac
  14014. shift
  14015. for mf
  14016. do
  14017. # Strip MF so we end up with the name of the file.
  14018. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14019. # Check whether this is an Automake generated Makefile or not.
  14020. # We used to match only the files named 'Makefile.in', but
  14021. # some people rename them; so instead we look at the file content.
  14022. # Grep'ing the first line is not enough: some people post-process
  14023. # each Makefile.in and add a new line on top of each file to say so.
  14024. # Grep'ing the whole file is not good either: AIX grep has a line
  14025. # limit of 2048, but all sed's we know have understand at least 4000.
  14026. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14027. dirpart=`$as_dirname -- "$mf" ||
  14028. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14029. X"$mf" : 'X\(//\)[^/]' \| \
  14030. X"$mf" : 'X\(//\)$' \| \
  14031. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14032. $as_echo X"$mf" |
  14033. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14034. s//\1/
  14035. q
  14036. }
  14037. /^X\(\/\/\)[^/].*/{
  14038. s//\1/
  14039. q
  14040. }
  14041. /^X\(\/\/\)$/{
  14042. s//\1/
  14043. q
  14044. }
  14045. /^X\(\/\).*/{
  14046. s//\1/
  14047. q
  14048. }
  14049. s/.*/./; q'`
  14050. else
  14051. continue
  14052. fi
  14053. # Extract the definition of DEPDIR, am__include, and am__quote
  14054. # from the Makefile without running 'make'.
  14055. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14056. test -z "$DEPDIR" && continue
  14057. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14058. test -z "$am__include" && continue
  14059. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14060. # Find all dependency output files, they are included files with
  14061. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14062. # simplest approach to changing $(DEPDIR) to its actual value in the
  14063. # expansion.
  14064. for file in `sed -n "
  14065. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14066. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  14067. # Make sure the directory exists.
  14068. test -f "$dirpart/$file" && continue
  14069. fdir=`$as_dirname -- "$file" ||
  14070. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14071. X"$file" : 'X\(//\)[^/]' \| \
  14072. X"$file" : 'X\(//\)$' \| \
  14073. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14074. $as_echo X"$file" |
  14075. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14076. s//\1/
  14077. q
  14078. }
  14079. /^X\(\/\/\)[^/].*/{
  14080. s//\1/
  14081. q
  14082. }
  14083. /^X\(\/\/\)$/{
  14084. s//\1/
  14085. q
  14086. }
  14087. /^X\(\/\).*/{
  14088. s//\1/
  14089. q
  14090. }
  14091. s/.*/./; q'`
  14092. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14093. # echo "creating $dirpart/$file"
  14094. echo '# dummy' > "$dirpart/$file"
  14095. done
  14096. done
  14097. }
  14098. ;;
  14099. "libtool":C)
  14100. # See if we are running on zsh, and set the options that allow our
  14101. # commands through without removal of \ escapes.
  14102. if test -n "${ZSH_VERSION+set}"; then
  14103. setopt NO_GLOB_SUBST
  14104. fi
  14105. cfgfile=${ofile}T
  14106. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14107. $RM "$cfgfile"
  14108. cat <<_LT_EOF >> "$cfgfile"
  14109. #! $SHELL
  14110. # Generated automatically by $as_me ($PACKAGE) $VERSION
  14111. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14112. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14113. # Provide generalized library-building support services.
  14114. # Written by Gordon Matzigkeit, 1996
  14115. # Copyright (C) 2014 Free Software Foundation, Inc.
  14116. # This is free software; see the source for copying conditions. There is NO
  14117. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14118. # GNU Libtool is free software; you can redistribute it and/or modify
  14119. # it under the terms of the GNU General Public License as published by
  14120. # the Free Software Foundation; either version 2 of of the License, or
  14121. # (at your option) any later version.
  14122. #
  14123. # As a special exception to the GNU General Public License, if you
  14124. # distribute this file as part of a program or library that is built
  14125. # using GNU Libtool, you may include this file under the same
  14126. # distribution terms that you use for the rest of that program.
  14127. #
  14128. # GNU Libtool is distributed in the hope that it will be useful, but
  14129. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14130. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14131. # GNU General Public License for more details.
  14132. #
  14133. # You should have received a copy of the GNU General Public License
  14134. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14135. # The names of the tagged configurations supported by this script.
  14136. available_tags=''
  14137. # Configured defaults for sys_lib_dlsearch_path munging.
  14138. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  14139. # ### BEGIN LIBTOOL CONFIG
  14140. # Which release of libtool.m4 was used?
  14141. macro_version=$macro_version
  14142. macro_revision=$macro_revision
  14143. # Whether or not to build shared libraries.
  14144. build_libtool_libs=$enable_shared
  14145. # Whether or not to build static libraries.
  14146. build_old_libs=$enable_static
  14147. # What type of objects to build.
  14148. pic_mode=$pic_mode
  14149. # Whether or not to optimize for fast installation.
  14150. fast_install=$enable_fast_install
  14151. # Shared archive member basename,for filename based shared library versioning on AIX.
  14152. shared_archive_member_spec=$shared_archive_member_spec
  14153. # Shell to use when invoking shell scripts.
  14154. SHELL=$lt_SHELL
  14155. # An echo program that protects backslashes.
  14156. ECHO=$lt_ECHO
  14157. # The PATH separator for the build system.
  14158. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14159. # The host system.
  14160. host_alias=$host_alias
  14161. host=$host
  14162. host_os=$host_os
  14163. # The build system.
  14164. build_alias=$build_alias
  14165. build=$build
  14166. build_os=$build_os
  14167. # A sed program that does not truncate output.
  14168. SED=$lt_SED
  14169. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14170. Xsed="\$SED -e 1s/^X//"
  14171. # A grep program that handles long lines.
  14172. GREP=$lt_GREP
  14173. # An ERE matcher.
  14174. EGREP=$lt_EGREP
  14175. # A literal string matcher.
  14176. FGREP=$lt_FGREP
  14177. # A BSD- or MS-compatible name lister.
  14178. NM=$lt_NM
  14179. # Whether we need soft or hard links.
  14180. LN_S=$lt_LN_S
  14181. # What is the maximum length of a command?
  14182. max_cmd_len=$max_cmd_len
  14183. # Object file suffix (normally "o").
  14184. objext=$ac_objext
  14185. # Executable file suffix (normally "").
  14186. exeext=$exeext
  14187. # whether the shell understands "unset".
  14188. lt_unset=$lt_unset
  14189. # turn spaces into newlines.
  14190. SP2NL=$lt_lt_SP2NL
  14191. # turn newlines into spaces.
  14192. NL2SP=$lt_lt_NL2SP
  14193. # convert \$build file names to \$host format.
  14194. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14195. # convert \$build files to toolchain format.
  14196. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14197. # An object symbol dumper.
  14198. OBJDUMP=$lt_OBJDUMP
  14199. # Method to check whether dependent libraries are shared objects.
  14200. deplibs_check_method=$lt_deplibs_check_method
  14201. # Command to use when deplibs_check_method = "file_magic".
  14202. file_magic_cmd=$lt_file_magic_cmd
  14203. # How to find potential files when deplibs_check_method = "file_magic".
  14204. file_magic_glob=$lt_file_magic_glob
  14205. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14206. want_nocaseglob=$lt_want_nocaseglob
  14207. # DLL creation program.
  14208. DLLTOOL=$lt_DLLTOOL
  14209. # Command to associate shared and link libraries.
  14210. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14211. # The archiver.
  14212. AR=$lt_AR
  14213. # Flags to create an archive.
  14214. AR_FLAGS=$lt_AR_FLAGS
  14215. # How to feed a file listing to the archiver.
  14216. archiver_list_spec=$lt_archiver_list_spec
  14217. # A symbol stripping program.
  14218. STRIP=$lt_STRIP
  14219. # Commands used to install an old-style archive.
  14220. RANLIB=$lt_RANLIB
  14221. old_postinstall_cmds=$lt_old_postinstall_cmds
  14222. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14223. # Whether to use a lock for old archive extraction.
  14224. lock_old_archive_extraction=$lock_old_archive_extraction
  14225. # A C compiler.
  14226. LTCC=$lt_CC
  14227. # LTCC compiler flags.
  14228. LTCFLAGS=$lt_CFLAGS
  14229. # Take the output of nm and produce a listing of raw symbols and C names.
  14230. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14231. # Transform the output of nm in a proper C declaration.
  14232. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14233. # Transform the output of nm into a list of symbols to manually relocate.
  14234. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  14235. # Transform the output of nm in a C name address pair.
  14236. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14237. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14238. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14239. # The name lister interface.
  14240. nm_interface=$lt_lt_cv_nm_interface
  14241. # Specify filename containing input files for \$NM.
  14242. nm_file_list_spec=$lt_nm_file_list_spec
  14243. # The root where to search for dependent libraries,and where our libraries should be installed.
  14244. lt_sysroot=$lt_sysroot
  14245. # Command to truncate a binary pipe.
  14246. lt_truncate_bin=$lt_lt_cv_truncate_bin
  14247. # The name of the directory that contains temporary libtool files.
  14248. objdir=$objdir
  14249. # Used to examine libraries when file_magic_cmd begins with "file".
  14250. MAGIC_CMD=$MAGIC_CMD
  14251. # Must we lock files when doing compilation?
  14252. need_locks=$lt_need_locks
  14253. # Manifest tool.
  14254. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14255. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14256. DSYMUTIL=$lt_DSYMUTIL
  14257. # Tool to change global to local symbols on Mac OS X.
  14258. NMEDIT=$lt_NMEDIT
  14259. # Tool to manipulate fat objects and archives on Mac OS X.
  14260. LIPO=$lt_LIPO
  14261. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14262. OTOOL=$lt_OTOOL
  14263. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14264. OTOOL64=$lt_OTOOL64
  14265. # Old archive suffix (normally "a").
  14266. libext=$libext
  14267. # Shared library suffix (normally ".so").
  14268. shrext_cmds=$lt_shrext_cmds
  14269. # The commands to extract the exported symbol list from a shared archive.
  14270. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14271. # Variables whose values should be saved in libtool wrapper scripts and
  14272. # restored at link time.
  14273. variables_saved_for_relink=$lt_variables_saved_for_relink
  14274. # Do we need the "lib" prefix for modules?
  14275. need_lib_prefix=$need_lib_prefix
  14276. # Do we need a version for libraries?
  14277. need_version=$need_version
  14278. # Library versioning type.
  14279. version_type=$version_type
  14280. # Shared library runtime path variable.
  14281. runpath_var=$runpath_var
  14282. # Shared library path variable.
  14283. shlibpath_var=$shlibpath_var
  14284. # Is shlibpath searched before the hard-coded library search path?
  14285. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14286. # Format of library name prefix.
  14287. libname_spec=$lt_libname_spec
  14288. # List of archive names. First name is the real one, the rest are links.
  14289. # The last name is the one that the linker finds with -lNAME
  14290. library_names_spec=$lt_library_names_spec
  14291. # The coded name of the library, if different from the real name.
  14292. soname_spec=$lt_soname_spec
  14293. # Permission mode override for installation of shared libraries.
  14294. install_override_mode=$lt_install_override_mode
  14295. # Command to use after installation of a shared archive.
  14296. postinstall_cmds=$lt_postinstall_cmds
  14297. # Command to use after uninstallation of a shared archive.
  14298. postuninstall_cmds=$lt_postuninstall_cmds
  14299. # Commands used to finish a libtool library installation in a directory.
  14300. finish_cmds=$lt_finish_cmds
  14301. # As "finish_cmds", except a single script fragment to be evaled but
  14302. # not shown.
  14303. finish_eval=$lt_finish_eval
  14304. # Whether we should hardcode library paths into libraries.
  14305. hardcode_into_libs=$hardcode_into_libs
  14306. # Compile-time system search path for libraries.
  14307. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14308. # Detected run-time system search path for libraries.
  14309. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  14310. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  14311. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  14312. # Whether dlopen is supported.
  14313. dlopen_support=$enable_dlopen
  14314. # Whether dlopen of programs is supported.
  14315. dlopen_self=$enable_dlopen_self
  14316. # Whether dlopen of statically linked programs is supported.
  14317. dlopen_self_static=$enable_dlopen_self_static
  14318. # Commands to strip libraries.
  14319. old_striplib=$lt_old_striplib
  14320. striplib=$lt_striplib
  14321. # The linker used to build libraries.
  14322. LD=$lt_LD
  14323. # How to create reloadable object files.
  14324. reload_flag=$lt_reload_flag
  14325. reload_cmds=$lt_reload_cmds
  14326. # Commands used to build an old-style archive.
  14327. old_archive_cmds=$lt_old_archive_cmds
  14328. # A language specific compiler.
  14329. CC=$lt_compiler
  14330. # Is the compiler the GNU compiler?
  14331. with_gcc=$GCC
  14332. # Compiler flag to turn off builtin functions.
  14333. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14334. # Additional compiler flags for building library objects.
  14335. pic_flag=$lt_lt_prog_compiler_pic
  14336. # How to pass a linker flag through the compiler.
  14337. wl=$lt_lt_prog_compiler_wl
  14338. # Compiler flag to prevent dynamic linking.
  14339. link_static_flag=$lt_lt_prog_compiler_static
  14340. # Does compiler simultaneously support -c and -o options?
  14341. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14342. # Whether or not to add -lc for building shared libraries.
  14343. build_libtool_need_lc=$archive_cmds_need_lc
  14344. # Whether or not to disallow shared libs when runtime libs are static.
  14345. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14346. # Compiler flag to allow reflexive dlopens.
  14347. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14348. # Compiler flag to generate shared objects directly from archives.
  14349. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14350. # Whether the compiler copes with passing no objects directly.
  14351. compiler_needs_object=$lt_compiler_needs_object
  14352. # Create an old-style archive from a shared archive.
  14353. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14354. # Create a temporary old-style archive to link instead of a shared archive.
  14355. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14356. # Commands used to build a shared archive.
  14357. archive_cmds=$lt_archive_cmds
  14358. archive_expsym_cmds=$lt_archive_expsym_cmds
  14359. # Commands used to build a loadable module if different from building
  14360. # a shared archive.
  14361. module_cmds=$lt_module_cmds
  14362. module_expsym_cmds=$lt_module_expsym_cmds
  14363. # Whether we are building with GNU ld or not.
  14364. with_gnu_ld=$lt_with_gnu_ld
  14365. # Flag that allows shared libraries with undefined symbols to be built.
  14366. allow_undefined_flag=$lt_allow_undefined_flag
  14367. # Flag that enforces no undefined symbols.
  14368. no_undefined_flag=$lt_no_undefined_flag
  14369. # Flag to hardcode \$libdir into a binary during linking.
  14370. # This must work even if \$libdir does not exist
  14371. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14372. # Whether we need a single "-rpath" flag with a separated argument.
  14373. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14374. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14375. # DIR into the resulting binary.
  14376. hardcode_direct=$hardcode_direct
  14377. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14378. # DIR into the resulting binary and the resulting library dependency is
  14379. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  14380. # library is relocated.
  14381. hardcode_direct_absolute=$hardcode_direct_absolute
  14382. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14383. # into the resulting binary.
  14384. hardcode_minus_L=$hardcode_minus_L
  14385. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14386. # into the resulting binary.
  14387. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14388. # Set to "yes" if building a shared library automatically hardcodes DIR
  14389. # into the library and all subsequent libraries and executables linked
  14390. # against it.
  14391. hardcode_automatic=$hardcode_automatic
  14392. # Set to yes if linker adds runtime paths of dependent libraries
  14393. # to runtime path list.
  14394. inherit_rpath=$inherit_rpath
  14395. # Whether libtool must link a program against all its dependency libraries.
  14396. link_all_deplibs=$link_all_deplibs
  14397. # Set to "yes" if exported symbols are required.
  14398. always_export_symbols=$always_export_symbols
  14399. # The commands to list exported symbols.
  14400. export_symbols_cmds=$lt_export_symbols_cmds
  14401. # Symbols that should not be listed in the preloaded symbols.
  14402. exclude_expsyms=$lt_exclude_expsyms
  14403. # Symbols that must always be exported.
  14404. include_expsyms=$lt_include_expsyms
  14405. # Commands necessary for linking programs (against libraries) with templates.
  14406. prelink_cmds=$lt_prelink_cmds
  14407. # Commands necessary for finishing linking programs.
  14408. postlink_cmds=$lt_postlink_cmds
  14409. # Specify filename containing input files.
  14410. file_list_spec=$lt_file_list_spec
  14411. # How to hardcode a shared library path into an executable.
  14412. hardcode_action=$hardcode_action
  14413. # ### END LIBTOOL CONFIG
  14414. _LT_EOF
  14415. cat <<'_LT_EOF' >> "$cfgfile"
  14416. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  14417. # func_munge_path_list VARIABLE PATH
  14418. # -----------------------------------
  14419. # VARIABLE is name of variable containing _space_ separated list of
  14420. # directories to be munged by the contents of PATH, which is string
  14421. # having a format:
  14422. # "DIR[:DIR]:"
  14423. # string "DIR[ DIR]" will be prepended to VARIABLE
  14424. # ":DIR[:DIR]"
  14425. # string "DIR[ DIR]" will be appended to VARIABLE
  14426. # "DIRP[:DIRP]::[DIRA:]DIRA"
  14427. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  14428. # "DIRA[ DIRA]" will be appended to VARIABLE
  14429. # "DIR[:DIR]"
  14430. # VARIABLE will be replaced by "DIR[ DIR]"
  14431. func_munge_path_list ()
  14432. {
  14433. case x$2 in
  14434. x)
  14435. ;;
  14436. *:)
  14437. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  14438. ;;
  14439. x:*)
  14440. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  14441. ;;
  14442. *::*)
  14443. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  14444. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  14445. ;;
  14446. *)
  14447. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  14448. ;;
  14449. esac
  14450. }
  14451. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  14452. func_cc_basename ()
  14453. {
  14454. for cc_temp in $*""; do
  14455. case $cc_temp in
  14456. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14457. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14458. \-*) ;;
  14459. *) break;;
  14460. esac
  14461. done
  14462. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14463. }
  14464. # ### END FUNCTIONS SHARED WITH CONFIGURE
  14465. _LT_EOF
  14466. case $host_os in
  14467. aix3*)
  14468. cat <<\_LT_EOF >> "$cfgfile"
  14469. # AIX sometimes has problems with the GCC collect2 program. For some
  14470. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14471. # vanish in a puff of smoke.
  14472. if test set != "${COLLECT_NAMES+set}"; then
  14473. COLLECT_NAMES=
  14474. export COLLECT_NAMES
  14475. fi
  14476. _LT_EOF
  14477. ;;
  14478. esac
  14479. ltmain=$ac_aux_dir/ltmain.sh
  14480. # We use sed instead of cat because bash on DJGPP gets confused if
  14481. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14482. # text mode, it properly converts lines to CR/LF. This bash problem
  14483. # is reportedly fixed, but why not run on old versions too?
  14484. sed '$q' "$ltmain" >> "$cfgfile" \
  14485. || (rm -f "$cfgfile"; exit 1)
  14486. mv -f "$cfgfile" "$ofile" ||
  14487. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14488. chmod +x "$ofile"
  14489. ;;
  14490. esac
  14491. done # for ac_tag
  14492. as_fn_exit 0
  14493. _ACEOF
  14494. ac_clean_files=$ac_clean_files_save
  14495. test $ac_write_fail = 0 ||
  14496. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14497. # configure is writing to config.log, and then calls config.status.
  14498. # config.status does its own redirection, appending to config.log.
  14499. # Unfortunately, on DOS this fails, as config.log is still kept open
  14500. # by configure, so config.status won't be able to write to it; its
  14501. # output is simply discarded. So we exec the FD to /dev/null,
  14502. # effectively closing config.log, so it can be properly (re)opened and
  14503. # appended to by config.status. When coming back to configure, we
  14504. # need to make the FD available again.
  14505. if test "$no_create" != yes; then
  14506. ac_cs_success=:
  14507. ac_config_status_args=
  14508. test "$silent" = yes &&
  14509. ac_config_status_args="$ac_config_status_args --quiet"
  14510. exec 5>/dev/null
  14511. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14512. exec 5>>config.log
  14513. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14514. # would make configure fail if this is the last instruction.
  14515. $ac_cs_success || as_fn_exit 1
  14516. fi
  14517. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14519. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14520. fi
  14521. { $as_echo "$as_me:${as_lineno-$LINENO}:
  14522. ------------------------------------------------------------------------
  14523. $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
  14524. Compiler support:
  14525. C99 var arrays: ................ ${has_var_arrays}
  14526. C99 lrintf: .................... ${ac_cv_func_lrintf}
  14527. Use alloca: .................... ${use_alloca}
  14528. General configuration:
  14529. Floating point support: ........ ${enable_float}
  14530. Fast float approximations: ..... ${enable_float_approx}
  14531. Fixed point debugging: ......... ${enable_fixed_point_debug}
  14532. Inline Assembly Optimizations: . ${inline_optimization}
  14533. External Assembly Optimizations: ${asm_optimization}
  14534. Intrinsics Optimizations: ...... ${intrinsics_support}
  14535. Run-time CPU detection: ........ ${rtcd_support}
  14536. Custom modes: .................. ${enable_custom_modes}
  14537. Assertion checking: ............ ${enable_assertions}
  14538. Hardening: ..................... ${enable_hardening}
  14539. Fuzzing: ....................... ${enable_fuzzing}
  14540. Check ASM: ..................... ${enable_check_asm}
  14541. API documentation: ............. ${enable_doc}
  14542. Extra programs: ................ ${enable_extra_programs}
  14543. ------------------------------------------------------------------------
  14544. Type \"make; make install\" to compile and install
  14545. Type \"make check\" to run the test suite
  14546. " >&5
  14547. $as_echo "$as_me:
  14548. ------------------------------------------------------------------------
  14549. $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
  14550. Compiler support:
  14551. C99 var arrays: ................ ${has_var_arrays}
  14552. C99 lrintf: .................... ${ac_cv_func_lrintf}
  14553. Use alloca: .................... ${use_alloca}
  14554. General configuration:
  14555. Floating point support: ........ ${enable_float}
  14556. Fast float approximations: ..... ${enable_float_approx}
  14557. Fixed point debugging: ......... ${enable_fixed_point_debug}
  14558. Inline Assembly Optimizations: . ${inline_optimization}
  14559. External Assembly Optimizations: ${asm_optimization}
  14560. Intrinsics Optimizations: ...... ${intrinsics_support}
  14561. Run-time CPU detection: ........ ${rtcd_support}
  14562. Custom modes: .................. ${enable_custom_modes}
  14563. Assertion checking: ............ ${enable_assertions}
  14564. Hardening: ..................... ${enable_hardening}
  14565. Fuzzing: ....................... ${enable_fuzzing}
  14566. Check ASM: ..................... ${enable_check_asm}
  14567. API documentation: ............. ${enable_doc}
  14568. Extra programs: ................ ${enable_extra_programs}
  14569. ------------------------------------------------------------------------
  14570. Type \"make; make install\" to compile and install
  14571. Type \"make check\" to run the test suite
  14572. " >&6;}