configure 484 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.72 for libjpeg 9.6.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  18. 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 case e in #(
  26. e) case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed 'exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  127. then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else case e in #(
  135. e) case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else case e in #(
  157. e) exitcode=1; echo positional parameters were not saved. ;;
  158. esac
  159. fi
  160. test x\$exitcode = x0 || exit 1
  161. blah=\$(echo \$(echo blah))
  162. test x\"\$blah\" = xblah || exit 1
  163. test -x / || exit 1"
  164. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  165. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  166. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  167. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  168. test \$(( 1 + 1 )) = 2 || exit 1
  169. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  170. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  171. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. PATH=/empty FPATH=/empty; export PATH FPATH
  174. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  175. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  176. if (eval "$as_required") 2>/dev/null
  177. then :
  178. as_have_required=yes
  179. else case e in #(
  180. e) as_have_required=no ;;
  181. esac
  182. fi
  183. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  184. then :
  185. else case e in #(
  186. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  187. as_found=false
  188. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  189. do
  190. IFS=$as_save_IFS
  191. case $as_dir in #(((
  192. '') as_dir=./ ;;
  193. */) ;;
  194. *) as_dir=$as_dir/ ;;
  195. esac
  196. as_found=:
  197. case $as_dir in #(
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. # Try only shells that exist, to save several forks.
  201. as_shell=$as_dir$as_base
  202. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  203. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  204. then :
  205. CONFIG_SHELL=$as_shell as_have_required=yes
  206. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  207. then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. IFS=$as_save_IFS
  216. if $as_found
  217. then :
  218. else case e in #(
  219. e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  221. then :
  222. CONFIG_SHELL=$SHELL as_have_required=yes
  223. fi ;;
  224. esac
  225. fi
  226. if test "x$CONFIG_SHELL" != x
  227. then :
  228. export CONFIG_SHELL
  229. # We cannot yet assume a decent shell, so we have to provide a
  230. # neutralization value for shells without unset; and this also
  231. # works around shells that cannot unset nonexistent variables.
  232. # Preserve -v and -x to the replacement shell.
  233. BASH_ENV=/dev/null
  234. ENV=/dev/null
  235. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  236. case $- in # ((((
  237. *v*x* | *x*v* ) as_opts=-vx ;;
  238. *v* ) as_opts=-v ;;
  239. *x* ) as_opts=-x ;;
  240. * ) as_opts= ;;
  241. esac
  242. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  243. # Admittedly, this is quite paranoid, since all the known shells bail
  244. # out after a failed 'exec'.
  245. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  246. exit 255
  247. fi
  248. if test x$as_have_required = xno
  249. then :
  250. printf "%s\n" "$0: This script requires a shell more modern than all"
  251. printf "%s\n" "$0: the shells that I found on your system."
  252. if test ${ZSH_VERSION+y} ; then
  253. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi ;;
  263. esac
  264. fi
  265. fi
  266. SHELL=${CONFIG_SHELL-/bin/sh}
  267. export SHELL
  268. # Unset more variables known to interfere with behavior of common tools.
  269. CLICOLOR_FORCE= GREP_OPTIONS=
  270. unset CLICOLOR_FORCE GREP_OPTIONS
  271. ## --------------------- ##
  272. ## M4sh Shell Functions. ##
  273. ## --------------------- ##
  274. # as_fn_unset VAR
  275. # ---------------
  276. # Portably unset VAR.
  277. as_fn_unset ()
  278. {
  279. { eval $1=; unset $1;}
  280. }
  281. as_unset=as_fn_unset
  282. # as_fn_set_status STATUS
  283. # -----------------------
  284. # Set $? to STATUS, without forking.
  285. as_fn_set_status ()
  286. {
  287. return $1
  288. } # as_fn_set_status
  289. # as_fn_exit STATUS
  290. # -----------------
  291. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  292. as_fn_exit ()
  293. {
  294. set +e
  295. as_fn_set_status $1
  296. exit $1
  297. } # as_fn_exit
  298. # as_fn_mkdir_p
  299. # -------------
  300. # Create "$as_dir" as a directory, including parents if necessary.
  301. as_fn_mkdir_p ()
  302. {
  303. case $as_dir in #(
  304. -*) as_dir=./$as_dir;;
  305. esac
  306. test -d "$as_dir" || eval $as_mkdir_p || {
  307. as_dirs=
  308. while :; do
  309. case $as_dir in #(
  310. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  311. *) as_qdir=$as_dir;;
  312. esac
  313. as_dirs="'$as_qdir' $as_dirs"
  314. as_dir=`$as_dirname -- "$as_dir" ||
  315. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  316. X"$as_dir" : 'X\(//\)[^/]' \| \
  317. X"$as_dir" : 'X\(//\)$' \| \
  318. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  319. printf "%s\n" X"$as_dir" |
  320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)[^/].*/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)$/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\).*/{
  333. s//\1/
  334. q
  335. }
  336. s/.*/./; q'`
  337. test -d "$as_dir" && break
  338. done
  339. test -z "$as_dirs" || eval "mkdir $as_dirs"
  340. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  341. } # as_fn_mkdir_p
  342. # as_fn_executable_p FILE
  343. # -----------------------
  344. # Test if FILE is an executable regular file.
  345. as_fn_executable_p ()
  346. {
  347. test -f "$1" && test -x "$1"
  348. } # as_fn_executable_p
  349. # as_fn_append VAR VALUE
  350. # ----------------------
  351. # Append the text in VALUE to the end of the definition contained in VAR. Take
  352. # advantage of any shell optimizations that allow amortized linear growth over
  353. # repeated appends, instead of the typical quadratic growth present in naive
  354. # implementations.
  355. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  356. then :
  357. eval 'as_fn_append ()
  358. {
  359. eval $1+=\$2
  360. }'
  361. else case e in #(
  362. e) as_fn_append ()
  363. {
  364. eval $1=\$$1\$2
  365. } ;;
  366. esac
  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
  374. then :
  375. eval 'as_fn_arith ()
  376. {
  377. as_val=$(( $* ))
  378. }'
  379. else case e in #(
  380. e) as_fn_arith ()
  381. {
  382. as_val=`expr "$@" || test $? -eq 1`
  383. } ;;
  384. esac
  385. fi # as_fn_arith
  386. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  387. # ----------------------------------------
  388. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  389. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  390. # script with STATUS, using 1 if that was 0.
  391. as_fn_error ()
  392. {
  393. as_status=$1; test $as_status -eq 0 && as_status=1
  394. if test "$4"; then
  395. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  396. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  397. fi
  398. printf "%s\n" "$as_me: error: $2" >&2
  399. as_fn_exit $as_status
  400. } # as_fn_error
  401. if expr a : '\(a\)' >/dev/null 2>&1 &&
  402. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  403. as_expr=expr
  404. else
  405. as_expr=false
  406. fi
  407. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  408. as_basename=basename
  409. else
  410. as_basename=false
  411. fi
  412. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  413. as_dirname=dirname
  414. else
  415. as_dirname=false
  416. fi
  417. as_me=`$as_basename -- "$0" ||
  418. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  419. X"$0" : 'X\(//\)$' \| \
  420. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  421. printf "%s\n" X/"$0" |
  422. sed '/^.*\/\([^/][^/]*\)\/*$/{
  423. s//\1/
  424. q
  425. }
  426. /^X\/\(\/\/\)$/{
  427. s//\1/
  428. q
  429. }
  430. /^X\/\(\/\).*/{
  431. s//\1/
  432. q
  433. }
  434. s/.*/./; q'`
  435. # Avoid depending upon Character Ranges.
  436. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  437. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  438. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  439. as_cr_digits='0123456789'
  440. as_cr_alnum=$as_cr_Letters$as_cr_digits
  441. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  442. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  443. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  444. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  445. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  446. sed -n '
  447. p
  448. /[$]LINENO/=
  449. ' <$as_myself |
  450. sed '
  451. t clear
  452. :clear
  453. s/[$]LINENO.*/&-/
  454. t lineno
  455. b
  456. :lineno
  457. N
  458. :loop
  459. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  460. t loop
  461. s/-\n.*//
  462. ' >$as_me.lineno &&
  463. chmod +x "$as_me.lineno" ||
  464. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  465. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  466. # already done that, so ensure we don't try to do so again and fall
  467. # in an infinite loop. This has already happened in practice.
  468. _as_can_reexec=no; export _as_can_reexec
  469. # Don't try to exec as it changes $[0], causing all sort of problems
  470. # (the dirname of $[0] is not the place where we might find the
  471. # original and so on. Autoconf is especially sensitive to this).
  472. . "./$as_me.lineno"
  473. # Exit status is that of the last command.
  474. exit
  475. }
  476. # Determine whether it's possible to make 'echo' print without a newline.
  477. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  478. # for compatibility with existing Makefiles.
  479. ECHO_C= ECHO_N= ECHO_T=
  480. case `echo -n x` in #(((((
  481. -n*)
  482. case `echo 'xy\c'` in
  483. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  484. xy) ECHO_C='\c';;
  485. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  486. ECHO_T=' ';;
  487. esac;;
  488. *)
  489. ECHO_N='-n';;
  490. esac
  491. # For backward compatibility with old third-party macros, we provide
  492. # the shell variables $as_echo and $as_echo_n. New code should use
  493. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  494. as_echo='printf %s\n'
  495. as_echo_n='printf %s'
  496. rm -f conf$$ conf$$.exe conf$$.file
  497. if test -d conf$$.dir; then
  498. rm -f conf$$.dir/conf$$.file
  499. else
  500. rm -f conf$$.dir
  501. mkdir conf$$.dir 2>/dev/null
  502. fi
  503. if (echo >conf$$.file) 2>/dev/null; then
  504. if ln -s conf$$.file conf$$ 2>/dev/null; then
  505. as_ln_s='ln -s'
  506. # ... but there are two gotchas:
  507. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  508. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  509. # In both cases, we have to default to 'cp -pR'.
  510. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  511. as_ln_s='cp -pR'
  512. elif ln conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s=ln
  514. else
  515. as_ln_s='cp -pR'
  516. fi
  517. else
  518. as_ln_s='cp -pR'
  519. fi
  520. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  521. rmdir conf$$.dir 2>/dev/null
  522. if mkdir -p . 2>/dev/null; then
  523. as_mkdir_p='mkdir -p "$as_dir"'
  524. else
  525. test -d ./-p && rmdir ./-p
  526. as_mkdir_p=false
  527. fi
  528. as_test_x='test -x'
  529. as_executable_p=as_fn_executable_p
  530. # Sed expression to map a string onto a valid CPP name.
  531. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  532. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  533. # Sed expression to map a string onto a valid variable name.
  534. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  535. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  536. SHELL=${CONFIG_SHELL-/bin/sh}
  537. test -n "$DJDIR" || exec 7<&0 </dev/null
  538. exec 6>&1
  539. # Name of the host.
  540. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  541. # so uname gets run too.
  542. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  543. #
  544. # Initializations.
  545. #
  546. ac_default_prefix=/usr/local
  547. ac_clean_files=
  548. ac_config_libobj_dir=.
  549. LIBOBJS=
  550. cross_compiling=no
  551. subdirs=
  552. MFLAGS=
  553. MAKEFLAGS=
  554. # Identity of this package.
  555. PACKAGE_NAME='libjpeg'
  556. PACKAGE_TARNAME='libjpeg'
  557. PACKAGE_VERSION='9.6.0'
  558. PACKAGE_STRING='libjpeg 9.6.0'
  559. PACKAGE_BUGREPORT=''
  560. PACKAGE_URL=''
  561. # Factoring default headers for most tests.
  562. ac_includes_default="\
  563. #include <stddef.h>
  564. #ifdef HAVE_STDIO_H
  565. # include <stdio.h>
  566. #endif
  567. #ifdef HAVE_STDLIB_H
  568. # include <stdlib.h>
  569. #endif
  570. #ifdef HAVE_STRING_H
  571. # include <string.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_STRINGS_H
  580. # include <strings.h>
  581. #endif
  582. #ifdef HAVE_SYS_TYPES_H
  583. # include <sys/types.h>
  584. #endif
  585. #ifdef HAVE_SYS_STAT_H
  586. # include <sys/stat.h>
  587. #endif
  588. #ifdef HAVE_UNISTD_H
  589. # include <unistd.h>
  590. #endif"
  591. ac_header_c_list=
  592. ac_subst_vars='am__EXEEXT_FALSE
  593. am__EXEEXT_TRUE
  594. LTLIBOBJS
  595. LIBOBJS
  596. JPEG_LIB_VERSION_MINOR
  597. JPEG_LIB_VERSION_MAJOR
  598. JPEG_LIB_VERSION
  599. MEMORYMGR
  600. LT_SYS_LIBRARY_PATH
  601. OTOOL64
  602. OTOOL
  603. LIPO
  604. NMEDIT
  605. DSYMUTIL
  606. MANIFEST_TOOL
  607. RANLIB
  608. FILECMD
  609. NM
  610. ac_ct_DUMPBIN
  611. DUMPBIN
  612. LD
  613. FGREP
  614. SED
  615. LIBTOOL
  616. OBJDUMP
  617. DLLTOOL
  618. AS
  619. HAVE_LD_VERSION_SCRIPT_FALSE
  620. HAVE_LD_VERSION_SCRIPT_TRUE
  621. ac_ct_AR
  622. AR
  623. EGREP
  624. GREP
  625. LN_S
  626. CPP
  627. am__fastdepCC_FALSE
  628. am__fastdepCC_TRUE
  629. CCDEPMODE
  630. am__nodep
  631. AMDEPBACKSLASH
  632. AMDEP_FALSE
  633. AMDEP_TRUE
  634. am__include
  635. DEPDIR
  636. OBJEXT
  637. EXEEXT
  638. ac_ct_CC
  639. CPPFLAGS
  640. LDFLAGS
  641. CFLAGS
  642. CC
  643. MAINT
  644. MAINTAINER_MODE_FALSE
  645. MAINTAINER_MODE_TRUE
  646. AM_BACKSLASH
  647. AM_DEFAULT_VERBOSITY
  648. AM_DEFAULT_V
  649. AM_V
  650. CSCOPE
  651. ETAGS
  652. CTAGS
  653. am__untar
  654. am__tar
  655. AMTAR
  656. am__leading_dot
  657. SET_MAKE
  658. AWK
  659. mkdir_p
  660. MKDIR_P
  661. INSTALL_STRIP_PROGRAM
  662. STRIP
  663. install_sh
  664. MAKEINFO
  665. AUTOHEADER
  666. AUTOMAKE
  667. AUTOCONF
  668. ACLOCAL
  669. VERSION
  670. PACKAGE
  671. CYGPATH_W
  672. am__isrc
  673. INSTALL_DATA
  674. INSTALL_SCRIPT
  675. INSTALL_PROGRAM
  676. target_os
  677. target_vendor
  678. target_cpu
  679. target
  680. host_os
  681. host_vendor
  682. host_cpu
  683. host
  684. build_os
  685. build_vendor
  686. build_cpu
  687. build
  688. target_alias
  689. host_alias
  690. build_alias
  691. LIBS
  692. ECHO_T
  693. ECHO_N
  694. ECHO_C
  695. DEFS
  696. mandir
  697. localedir
  698. libdir
  699. psdir
  700. pdfdir
  701. dvidir
  702. htmldir
  703. infodir
  704. docdir
  705. oldincludedir
  706. includedir
  707. runstatedir
  708. localstatedir
  709. sharedstatedir
  710. sysconfdir
  711. datadir
  712. datarootdir
  713. libexecdir
  714. sbindir
  715. bindir
  716. program_transform_name
  717. prefix
  718. exec_prefix
  719. PACKAGE_URL
  720. PACKAGE_BUGREPORT
  721. PACKAGE_STRING
  722. PACKAGE_VERSION
  723. PACKAGE_TARNAME
  724. PACKAGE_NAME
  725. PATH_SEPARATOR
  726. SHELL
  727. am__quote'
  728. ac_subst_files=''
  729. ac_user_opts='
  730. enable_option_checking
  731. enable_silent_rules
  732. enable_maintainer_mode
  733. enable_dependency_tracking
  734. enable_ld_version_script
  735. enable_shared
  736. enable_static
  737. with_pic
  738. enable_fast_install
  739. with_aix_soname
  740. with_gnu_ld
  741. with_sysroot
  742. enable_libtool_lock
  743. enable_maxmem
  744. '
  745. ac_precious_vars='build_alias
  746. host_alias
  747. target_alias
  748. CC
  749. CFLAGS
  750. LDFLAGS
  751. LIBS
  752. CPPFLAGS
  753. CPP
  754. LT_SYS_LIBRARY_PATH'
  755. # Initialize some variables set by options.
  756. ac_init_help=
  757. ac_init_version=false
  758. ac_unrecognized_opts=
  759. ac_unrecognized_sep=
  760. # The variables have the same names as the options, with
  761. # dashes changed to underlines.
  762. cache_file=/dev/null
  763. exec_prefix=NONE
  764. no_create=
  765. no_recursion=
  766. prefix=NONE
  767. program_prefix=NONE
  768. program_suffix=NONE
  769. program_transform_name=s,x,x,
  770. silent=
  771. site=
  772. srcdir=
  773. verbose=
  774. x_includes=NONE
  775. x_libraries=NONE
  776. # Installation directory options.
  777. # These are left unexpanded so users can "make install exec_prefix=/foo"
  778. # and all the variables that are supposed to be based on exec_prefix
  779. # by default will actually change.
  780. # Use braces instead of parens because sh, perl, etc. also accept them.
  781. # (The list follows the same order as the GNU Coding Standards.)
  782. bindir='${exec_prefix}/bin'
  783. sbindir='${exec_prefix}/sbin'
  784. libexecdir='${exec_prefix}/libexec'
  785. datarootdir='${prefix}/share'
  786. datadir='${datarootdir}'
  787. sysconfdir='${prefix}/etc'
  788. sharedstatedir='${prefix}/com'
  789. localstatedir='${prefix}/var'
  790. runstatedir='${localstatedir}/run'
  791. includedir='${prefix}/include'
  792. oldincludedir='/usr/include'
  793. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  794. infodir='${datarootdir}/info'
  795. htmldir='${docdir}'
  796. dvidir='${docdir}'
  797. pdfdir='${docdir}'
  798. psdir='${docdir}'
  799. libdir='${exec_prefix}/lib'
  800. localedir='${datarootdir}/locale'
  801. mandir='${datarootdir}/man'
  802. ac_prev=
  803. ac_dashdash=
  804. for ac_option
  805. do
  806. # If the previous option needs an argument, assign it.
  807. if test -n "$ac_prev"; then
  808. eval $ac_prev=\$ac_option
  809. ac_prev=
  810. continue
  811. fi
  812. case $ac_option in
  813. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  814. *=) ac_optarg= ;;
  815. *) ac_optarg=yes ;;
  816. esac
  817. case $ac_dashdash$ac_option in
  818. --)
  819. ac_dashdash=yes ;;
  820. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  821. ac_prev=bindir ;;
  822. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  823. bindir=$ac_optarg ;;
  824. -build | --build | --buil | --bui | --bu)
  825. ac_prev=build_alias ;;
  826. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  827. build_alias=$ac_optarg ;;
  828. -cache-file | --cache-file | --cache-fil | --cache-fi \
  829. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  830. ac_prev=cache_file ;;
  831. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  832. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  833. cache_file=$ac_optarg ;;
  834. --config-cache | -C)
  835. cache_file=config.cache ;;
  836. -datadir | --datadir | --datadi | --datad)
  837. ac_prev=datadir ;;
  838. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  839. datadir=$ac_optarg ;;
  840. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  841. | --dataroo | --dataro | --datar)
  842. ac_prev=datarootdir ;;
  843. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  844. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  845. datarootdir=$ac_optarg ;;
  846. -disable-* | --disable-*)
  847. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  848. # Reject names that are not valid shell variable names.
  849. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  850. as_fn_error $? "invalid feature name: '$ac_useropt'"
  851. ac_useropt_orig=$ac_useropt
  852. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  853. case $ac_user_opts in
  854. *"
  855. "enable_$ac_useropt"
  856. "*) ;;
  857. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  858. ac_unrecognized_sep=', ';;
  859. esac
  860. eval enable_$ac_useropt=no ;;
  861. -docdir | --docdir | --docdi | --doc | --do)
  862. ac_prev=docdir ;;
  863. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  864. docdir=$ac_optarg ;;
  865. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  866. ac_prev=dvidir ;;
  867. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  868. dvidir=$ac_optarg ;;
  869. -enable-* | --enable-*)
  870. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  871. # Reject names that are not valid shell variable names.
  872. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  873. as_fn_error $? "invalid feature name: '$ac_useropt'"
  874. ac_useropt_orig=$ac_useropt
  875. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  876. case $ac_user_opts in
  877. *"
  878. "enable_$ac_useropt"
  879. "*) ;;
  880. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  881. ac_unrecognized_sep=', ';;
  882. esac
  883. eval enable_$ac_useropt=\$ac_optarg ;;
  884. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  885. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  886. | --exec | --exe | --ex)
  887. ac_prev=exec_prefix ;;
  888. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  889. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  890. | --exec=* | --exe=* | --ex=*)
  891. exec_prefix=$ac_optarg ;;
  892. -gas | --gas | --ga | --g)
  893. # Obsolete; use --with-gas.
  894. with_gas=yes ;;
  895. -help | --help | --hel | --he | -h)
  896. ac_init_help=long ;;
  897. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  898. ac_init_help=recursive ;;
  899. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  900. ac_init_help=short ;;
  901. -host | --host | --hos | --ho)
  902. ac_prev=host_alias ;;
  903. -host=* | --host=* | --hos=* | --ho=*)
  904. host_alias=$ac_optarg ;;
  905. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  906. ac_prev=htmldir ;;
  907. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  908. | --ht=*)
  909. htmldir=$ac_optarg ;;
  910. -includedir | --includedir | --includedi | --included | --include \
  911. | --includ | --inclu | --incl | --inc)
  912. ac_prev=includedir ;;
  913. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  914. | --includ=* | --inclu=* | --incl=* | --inc=*)
  915. includedir=$ac_optarg ;;
  916. -infodir | --infodir | --infodi | --infod | --info | --inf)
  917. ac_prev=infodir ;;
  918. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  919. infodir=$ac_optarg ;;
  920. -libdir | --libdir | --libdi | --libd)
  921. ac_prev=libdir ;;
  922. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  923. libdir=$ac_optarg ;;
  924. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  925. | --libexe | --libex | --libe)
  926. ac_prev=libexecdir ;;
  927. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  928. | --libexe=* | --libex=* | --libe=*)
  929. libexecdir=$ac_optarg ;;
  930. -localedir | --localedir | --localedi | --localed | --locale)
  931. ac_prev=localedir ;;
  932. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  933. localedir=$ac_optarg ;;
  934. -localstatedir | --localstatedir | --localstatedi | --localstated \
  935. | --localstate | --localstat | --localsta | --localst | --locals)
  936. ac_prev=localstatedir ;;
  937. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  938. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  939. localstatedir=$ac_optarg ;;
  940. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  941. ac_prev=mandir ;;
  942. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  943. mandir=$ac_optarg ;;
  944. -nfp | --nfp | --nf)
  945. # Obsolete; use --without-fp.
  946. with_fp=no ;;
  947. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  948. | --no-cr | --no-c | -n)
  949. no_create=yes ;;
  950. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  951. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  952. no_recursion=yes ;;
  953. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  954. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  955. | --oldin | --oldi | --old | --ol | --o)
  956. ac_prev=oldincludedir ;;
  957. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  958. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  959. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  960. oldincludedir=$ac_optarg ;;
  961. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  962. ac_prev=prefix ;;
  963. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  964. prefix=$ac_optarg ;;
  965. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  966. | --program-pre | --program-pr | --program-p)
  967. ac_prev=program_prefix ;;
  968. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  969. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  970. program_prefix=$ac_optarg ;;
  971. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  972. | --program-suf | --program-su | --program-s)
  973. ac_prev=program_suffix ;;
  974. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  975. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  976. program_suffix=$ac_optarg ;;
  977. -program-transform-name | --program-transform-name \
  978. | --program-transform-nam | --program-transform-na \
  979. | --program-transform-n | --program-transform- \
  980. | --program-transform | --program-transfor \
  981. | --program-transfo | --program-transf \
  982. | --program-trans | --program-tran \
  983. | --progr-tra | --program-tr | --program-t)
  984. ac_prev=program_transform_name ;;
  985. -program-transform-name=* | --program-transform-name=* \
  986. | --program-transform-nam=* | --program-transform-na=* \
  987. | --program-transform-n=* | --program-transform-=* \
  988. | --program-transform=* | --program-transfor=* \
  989. | --program-transfo=* | --program-transf=* \
  990. | --program-trans=* | --program-tran=* \
  991. | --progr-tra=* | --program-tr=* | --program-t=*)
  992. program_transform_name=$ac_optarg ;;
  993. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  994. ac_prev=pdfdir ;;
  995. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  996. pdfdir=$ac_optarg ;;
  997. -psdir | --psdir | --psdi | --psd | --ps)
  998. ac_prev=psdir ;;
  999. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1000. psdir=$ac_optarg ;;
  1001. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1002. | -silent | --silent | --silen | --sile | --sil)
  1003. silent=yes ;;
  1004. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1005. | --runstate | --runstat | --runsta | --runst | --runs \
  1006. | --run | --ru | --r)
  1007. ac_prev=runstatedir ;;
  1008. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1009. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1010. | --run=* | --ru=* | --r=*)
  1011. runstatedir=$ac_optarg ;;
  1012. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1013. ac_prev=sbindir ;;
  1014. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1015. | --sbi=* | --sb=*)
  1016. sbindir=$ac_optarg ;;
  1017. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1018. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1019. | --sharedst | --shareds | --shared | --share | --shar \
  1020. | --sha | --sh)
  1021. ac_prev=sharedstatedir ;;
  1022. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1023. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1024. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1025. | --sha=* | --sh=*)
  1026. sharedstatedir=$ac_optarg ;;
  1027. -site | --site | --sit)
  1028. ac_prev=site ;;
  1029. -site=* | --site=* | --sit=*)
  1030. site=$ac_optarg ;;
  1031. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1032. ac_prev=srcdir ;;
  1033. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1034. srcdir=$ac_optarg ;;
  1035. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1036. | --syscon | --sysco | --sysc | --sys | --sy)
  1037. ac_prev=sysconfdir ;;
  1038. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1039. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1040. sysconfdir=$ac_optarg ;;
  1041. -target | --target | --targe | --targ | --tar | --ta | --t)
  1042. ac_prev=target_alias ;;
  1043. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1044. target_alias=$ac_optarg ;;
  1045. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1046. verbose=yes ;;
  1047. -version | --version | --versio | --versi | --vers | -V)
  1048. ac_init_version=: ;;
  1049. -with-* | --with-*)
  1050. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1051. # Reject names that are not valid shell variable names.
  1052. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1053. as_fn_error $? "invalid package name: '$ac_useropt'"
  1054. ac_useropt_orig=$ac_useropt
  1055. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1056. case $ac_user_opts in
  1057. *"
  1058. "with_$ac_useropt"
  1059. "*) ;;
  1060. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1061. ac_unrecognized_sep=', ';;
  1062. esac
  1063. eval with_$ac_useropt=\$ac_optarg ;;
  1064. -without-* | --without-*)
  1065. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1066. # Reject names that are not valid shell variable names.
  1067. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1068. as_fn_error $? "invalid package name: '$ac_useropt'"
  1069. ac_useropt_orig=$ac_useropt
  1070. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1071. case $ac_user_opts in
  1072. *"
  1073. "with_$ac_useropt"
  1074. "*) ;;
  1075. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1076. ac_unrecognized_sep=', ';;
  1077. esac
  1078. eval with_$ac_useropt=no ;;
  1079. --x)
  1080. # Obsolete; use --with-x.
  1081. with_x=yes ;;
  1082. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1083. | --x-incl | --x-inc | --x-in | --x-i)
  1084. ac_prev=x_includes ;;
  1085. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1086. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1087. x_includes=$ac_optarg ;;
  1088. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1089. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1090. ac_prev=x_libraries ;;
  1091. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1092. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1093. x_libraries=$ac_optarg ;;
  1094. -*) as_fn_error $? "unrecognized option: '$ac_option'
  1095. Try '$0 --help' for more information"
  1096. ;;
  1097. *=*)
  1098. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1099. # Reject names that are not valid shell variable names.
  1100. case $ac_envvar in #(
  1101. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1102. as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
  1103. esac
  1104. eval $ac_envvar=\$ac_optarg
  1105. export $ac_envvar ;;
  1106. *)
  1107. # FIXME: should be removed in autoconf 3.0.
  1108. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1109. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1110. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1111. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1112. ;;
  1113. esac
  1114. done
  1115. if test -n "$ac_prev"; then
  1116. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1117. as_fn_error $? "missing argument to $ac_option"
  1118. fi
  1119. if test -n "$ac_unrecognized_opts"; then
  1120. case $enable_option_checking in
  1121. no) ;;
  1122. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1123. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1124. esac
  1125. fi
  1126. # Check all directory arguments for consistency.
  1127. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1128. datadir sysconfdir sharedstatedir localstatedir includedir \
  1129. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1130. libdir localedir mandir runstatedir
  1131. do
  1132. eval ac_val=\$$ac_var
  1133. # Remove trailing slashes.
  1134. case $ac_val in
  1135. */ )
  1136. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1137. eval $ac_var=\$ac_val;;
  1138. esac
  1139. # Be sure to have absolute directory names.
  1140. case $ac_val in
  1141. [\\/$]* | ?:[\\/]* ) continue;;
  1142. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1143. esac
  1144. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1145. done
  1146. # There might be people who depend on the old broken behavior: '$host'
  1147. # used to hold the argument of --host etc.
  1148. # FIXME: To remove some day.
  1149. build=$build_alias
  1150. host=$host_alias
  1151. target=$target_alias
  1152. # FIXME: To remove some day.
  1153. if test "x$host_alias" != x; then
  1154. if test "x$build_alias" = x; then
  1155. cross_compiling=maybe
  1156. elif test "x$build_alias" != "x$host_alias"; then
  1157. cross_compiling=yes
  1158. fi
  1159. fi
  1160. ac_tool_prefix=
  1161. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1162. test "$silent" = yes && exec 6>/dev/null
  1163. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1164. ac_ls_di=`ls -di .` &&
  1165. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1166. as_fn_error $? "working directory cannot be determined"
  1167. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1168. as_fn_error $? "pwd does not report name of working directory"
  1169. # Find the source files, if location was not specified.
  1170. if test -z "$srcdir"; then
  1171. ac_srcdir_defaulted=yes
  1172. # Try the directory containing this script, then the parent directory.
  1173. ac_confdir=`$as_dirname -- "$as_myself" ||
  1174. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1175. X"$as_myself" : 'X\(//\)[^/]' \| \
  1176. X"$as_myself" : 'X\(//\)$' \| \
  1177. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1178. printf "%s\n" X"$as_myself" |
  1179. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1180. s//\1/
  1181. q
  1182. }
  1183. /^X\(\/\/\)[^/].*/{
  1184. s//\1/
  1185. q
  1186. }
  1187. /^X\(\/\/\)$/{
  1188. s//\1/
  1189. q
  1190. }
  1191. /^X\(\/\).*/{
  1192. s//\1/
  1193. q
  1194. }
  1195. s/.*/./; q'`
  1196. srcdir=$ac_confdir
  1197. if test ! -r "$srcdir/$ac_unique_file"; then
  1198. srcdir=..
  1199. fi
  1200. else
  1201. ac_srcdir_defaulted=no
  1202. fi
  1203. if test ! -r "$srcdir/$ac_unique_file"; then
  1204. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1205. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1206. fi
  1207. ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
  1208. ac_abs_confdir=`(
  1209. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1210. pwd)`
  1211. # When building in place, set srcdir=.
  1212. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1213. srcdir=.
  1214. fi
  1215. # Remove unnecessary trailing slashes from srcdir.
  1216. # Double slashes in file names in object file debugging info
  1217. # mess up M-x gdb in Emacs.
  1218. case $srcdir in
  1219. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1220. esac
  1221. for ac_var in $ac_precious_vars; do
  1222. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1223. eval ac_env_${ac_var}_value=\$${ac_var}
  1224. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1225. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1226. done
  1227. #
  1228. # Report the --help message.
  1229. #
  1230. if test "$ac_init_help" = "long"; then
  1231. # Omit some internal or obsolete options to make the list less imposing.
  1232. # This message is too long to be a string in the A/UX 3.1 sh.
  1233. cat <<_ACEOF
  1234. 'configure' configures libjpeg 9.6.0 to adapt to many kinds of systems.
  1235. Usage: $0 [OPTION]... [VAR=VALUE]...
  1236. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1237. VAR=VALUE. See below for descriptions of some of the useful variables.
  1238. Defaults for the options are specified in brackets.
  1239. Configuration:
  1240. -h, --help display this help and exit
  1241. --help=short display options specific to this package
  1242. --help=recursive display the short help of all the included packages
  1243. -V, --version display version information and exit
  1244. -q, --quiet, --silent do not print 'checking ...' messages
  1245. --cache-file=FILE cache test results in FILE [disabled]
  1246. -C, --config-cache alias for '--cache-file=config.cache'
  1247. -n, --no-create do not create output files
  1248. --srcdir=DIR find the sources in DIR [configure dir or '..']
  1249. Installation directories:
  1250. --prefix=PREFIX install architecture-independent files in PREFIX
  1251. [$ac_default_prefix]
  1252. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1253. [PREFIX]
  1254. By default, 'make install' will install all the files in
  1255. '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
  1256. an installation prefix other than '$ac_default_prefix' using '--prefix',
  1257. for instance '--prefix=\$HOME'.
  1258. For better control, use the options below.
  1259. Fine tuning of the installation directories:
  1260. --bindir=DIR user executables [EPREFIX/bin]
  1261. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1262. --libexecdir=DIR program executables [EPREFIX/libexec]
  1263. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1264. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1265. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1266. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1267. --libdir=DIR object code libraries [EPREFIX/lib]
  1268. --includedir=DIR C header files [PREFIX/include]
  1269. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1270. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1271. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1272. --infodir=DIR info documentation [DATAROOTDIR/info]
  1273. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1274. --mandir=DIR man documentation [DATAROOTDIR/man]
  1275. --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
  1276. --htmldir=DIR html documentation [DOCDIR]
  1277. --dvidir=DIR dvi documentation [DOCDIR]
  1278. --pdfdir=DIR pdf documentation [DOCDIR]
  1279. --psdir=DIR ps documentation [DOCDIR]
  1280. _ACEOF
  1281. cat <<\_ACEOF
  1282. Program names:
  1283. --program-prefix=PREFIX prepend PREFIX to installed program names
  1284. --program-suffix=SUFFIX append SUFFIX to installed program names
  1285. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1286. System types:
  1287. --build=BUILD configure for building on BUILD [guessed]
  1288. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1289. --target=TARGET configure for building compilers for TARGET [HOST]
  1290. _ACEOF
  1291. fi
  1292. if test -n "$ac_init_help"; then
  1293. case $ac_init_help in
  1294. short | recursive ) echo "Configuration of libjpeg 9.6.0:";;
  1295. esac
  1296. cat <<\_ACEOF
  1297. Optional Features:
  1298. --disable-option-checking ignore unrecognized --enable/--with options
  1299. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1300. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1301. --enable-silent-rules less verbose build output (undo: "make V=1")
  1302. --disable-silent-rules verbose build output (undo: "make V=0")
  1303. --enable-maintainer-mode
  1304. enable make rules and dependencies not useful (and
  1305. sometimes confusing) to the casual installer
  1306. --enable-dependency-tracking
  1307. do not reject slow dependency extractors
  1308. --disable-dependency-tracking
  1309. speeds up one-time build
  1310. --enable-ld-version-script
  1311. enable linker version script (default is enabled
  1312. when possible)
  1313. --enable-shared[=PKGS] build shared libraries [default=yes]
  1314. --enable-static[=PKGS] build static libraries [default=yes]
  1315. --enable-fast-install[=PKGS]
  1316. optimize for fast installation [default=yes]
  1317. --disable-libtool-lock avoid locking (might break parallel builds)
  1318. --enable-maxmem=N enable use of temp files, set max mem usage to N MB
  1319. Optional Packages:
  1320. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1321. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1322. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1323. both]
  1324. --with-aix-soname=aix|svr4|both
  1325. shared library versioning (aka "SONAME") variant to
  1326. provide on AIX, [default=aix].
  1327. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1328. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1329. compiler's sysroot if not specified).
  1330. Some influential environment variables:
  1331. CC C compiler command
  1332. CFLAGS C compiler flags
  1333. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1334. nonstandard directory <lib dir>
  1335. LIBS libraries to pass to the linker, e.g. -l<library>
  1336. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1337. you have headers in a nonstandard directory <include dir>
  1338. CPP C preprocessor
  1339. LT_SYS_LIBRARY_PATH
  1340. User-defined run-time library search path.
  1341. Use these variables to override the choices made by 'configure' or to help
  1342. it to find libraries and programs with nonstandard names/locations.
  1343. Report bugs to the package provider.
  1344. _ACEOF
  1345. ac_status=$?
  1346. fi
  1347. if test "$ac_init_help" = "recursive"; then
  1348. # If there are subdirs, report their specific --help.
  1349. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1350. test -d "$ac_dir" ||
  1351. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1352. continue
  1353. ac_builddir=.
  1354. case "$ac_dir" in
  1355. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1356. *)
  1357. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1358. # A ".." for each directory in $ac_dir_suffix.
  1359. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1360. case $ac_top_builddir_sub in
  1361. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1362. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1363. esac ;;
  1364. esac
  1365. ac_abs_top_builddir=$ac_pwd
  1366. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1367. # for backward compatibility:
  1368. ac_top_builddir=$ac_top_build_prefix
  1369. case $srcdir in
  1370. .) # We are building in place.
  1371. ac_srcdir=.
  1372. ac_top_srcdir=$ac_top_builddir_sub
  1373. ac_abs_top_srcdir=$ac_pwd ;;
  1374. [\\/]* | ?:[\\/]* ) # Absolute name.
  1375. ac_srcdir=$srcdir$ac_dir_suffix;
  1376. ac_top_srcdir=$srcdir
  1377. ac_abs_top_srcdir=$srcdir ;;
  1378. *) # Relative name.
  1379. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1380. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1381. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1382. esac
  1383. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1384. cd "$ac_dir" || { ac_status=$?; continue; }
  1385. # Check for configure.gnu first; this name is used for a wrapper for
  1386. # Metaconfig's "Configure" on case-insensitive file systems.
  1387. if test -f "$ac_srcdir/configure.gnu"; then
  1388. echo &&
  1389. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1390. elif test -f "$ac_srcdir/configure"; then
  1391. echo &&
  1392. $SHELL "$ac_srcdir/configure" --help=recursive
  1393. else
  1394. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1395. fi || ac_status=$?
  1396. cd "$ac_pwd" || { ac_status=$?; break; }
  1397. done
  1398. fi
  1399. test -n "$ac_init_help" && exit $ac_status
  1400. if $ac_init_version; then
  1401. cat <<\_ACEOF
  1402. libjpeg configure 9.6.0
  1403. generated by GNU Autoconf 2.72
  1404. Copyright (C) 2023 Free Software Foundation, Inc.
  1405. This configure script is free software; the Free Software Foundation
  1406. gives unlimited permission to copy, distribute and modify it.
  1407. _ACEOF
  1408. exit
  1409. fi
  1410. ## ------------------------ ##
  1411. ## Autoconf initialization. ##
  1412. ## ------------------------ ##
  1413. # ac_fn_c_try_compile LINENO
  1414. # --------------------------
  1415. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1416. ac_fn_c_try_compile ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. rm -f conftest.$ac_objext conftest.beam
  1420. if { { ac_try="$ac_compile"
  1421. case "(($ac_try" in
  1422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1423. *) ac_try_echo=$ac_try;;
  1424. esac
  1425. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1426. printf "%s\n" "$ac_try_echo"; } >&5
  1427. (eval "$ac_compile") 2>conftest.err
  1428. ac_status=$?
  1429. if test -s conftest.err; then
  1430. grep -v '^ *+' conftest.err >conftest.er1
  1431. cat conftest.er1 >&5
  1432. mv -f conftest.er1 conftest.err
  1433. fi
  1434. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1435. test $ac_status = 0; } && {
  1436. test -z "$ac_c_werror_flag" ||
  1437. test ! -s conftest.err
  1438. } && test -s conftest.$ac_objext
  1439. then :
  1440. ac_retval=0
  1441. else case e in #(
  1442. e) printf "%s\n" "$as_me: failed program was:" >&5
  1443. sed 's/^/| /' conftest.$ac_ext >&5
  1444. ac_retval=1 ;;
  1445. esac
  1446. fi
  1447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1448. as_fn_set_status $ac_retval
  1449. } # ac_fn_c_try_compile
  1450. # ac_fn_c_try_cpp LINENO
  1451. # ----------------------
  1452. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1453. ac_fn_c_try_cpp ()
  1454. {
  1455. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1456. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1457. case "(($ac_try" in
  1458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1459. *) ac_try_echo=$ac_try;;
  1460. esac
  1461. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1462. printf "%s\n" "$ac_try_echo"; } >&5
  1463. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1464. ac_status=$?
  1465. if test -s conftest.err; then
  1466. grep -v '^ *+' conftest.err >conftest.er1
  1467. cat conftest.er1 >&5
  1468. mv -f conftest.er1 conftest.err
  1469. fi
  1470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1471. test $ac_status = 0; } > conftest.i && {
  1472. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1473. test ! -s conftest.err
  1474. }
  1475. then :
  1476. ac_retval=0
  1477. else case e in #(
  1478. e) printf "%s\n" "$as_me: failed program was:" >&5
  1479. sed 's/^/| /' conftest.$ac_ext >&5
  1480. ac_retval=1 ;;
  1481. esac
  1482. fi
  1483. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1484. as_fn_set_status $ac_retval
  1485. } # ac_fn_c_try_cpp
  1486. # ac_fn_c_try_link LINENO
  1487. # -----------------------
  1488. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1489. ac_fn_c_try_link ()
  1490. {
  1491. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1492. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1493. if { { ac_try="$ac_link"
  1494. case "(($ac_try" in
  1495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1496. *) ac_try_echo=$ac_try;;
  1497. esac
  1498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1499. printf "%s\n" "$ac_try_echo"; } >&5
  1500. (eval "$ac_link") 2>conftest.err
  1501. ac_status=$?
  1502. if test -s conftest.err; then
  1503. grep -v '^ *+' conftest.err >conftest.er1
  1504. cat conftest.er1 >&5
  1505. mv -f conftest.er1 conftest.err
  1506. fi
  1507. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1508. test $ac_status = 0; } && {
  1509. test -z "$ac_c_werror_flag" ||
  1510. test ! -s conftest.err
  1511. } && test -s conftest$ac_exeext && {
  1512. test "$cross_compiling" = yes ||
  1513. test -x conftest$ac_exeext
  1514. }
  1515. then :
  1516. ac_retval=0
  1517. else case e in #(
  1518. e) printf "%s\n" "$as_me: failed program was:" >&5
  1519. sed 's/^/| /' conftest.$ac_ext >&5
  1520. ac_retval=1 ;;
  1521. esac
  1522. fi
  1523. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1524. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1525. # interfere with the next link command; also delete a directory that is
  1526. # left behind by Apple's compiler. We do this before executing the actions.
  1527. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. as_fn_set_status $ac_retval
  1530. } # ac_fn_c_try_link
  1531. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1532. # -------------------------------------------------------
  1533. # Tests whether HEADER exists and can be compiled using the include files in
  1534. # INCLUDES, setting the cache variable VAR accordingly.
  1535. ac_fn_c_check_header_compile ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1539. printf %s "checking for $2... " >&6; }
  1540. if eval test \${$3+y}
  1541. then :
  1542. printf %s "(cached) " >&6
  1543. else case e in #(
  1544. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1545. /* end confdefs.h. */
  1546. $4
  1547. #include <$2>
  1548. _ACEOF
  1549. if ac_fn_c_try_compile "$LINENO"
  1550. then :
  1551. eval "$3=yes"
  1552. else case e in #(
  1553. e) eval "$3=no" ;;
  1554. esac
  1555. fi
  1556. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1557. esac
  1558. fi
  1559. eval ac_res=\$$3
  1560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1561. printf "%s\n" "$ac_res" >&6; }
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. } # ac_fn_c_check_header_compile
  1564. # ac_fn_c_try_run LINENO
  1565. # ----------------------
  1566. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1567. # executables *can* be run.
  1568. ac_fn_c_try_run ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. if { { ac_try="$ac_link"
  1572. case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. printf "%s\n" "$ac_try_echo"; } >&5
  1578. (eval "$ac_link") 2>&5
  1579. ac_status=$?
  1580. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1582. { { case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. printf "%s\n" "$ac_try_echo"; } >&5
  1588. (eval "$ac_try") 2>&5
  1589. ac_status=$?
  1590. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; }; }
  1592. then :
  1593. ac_retval=0
  1594. else case e in #(
  1595. e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1596. printf "%s\n" "$as_me: failed program was:" >&5
  1597. sed 's/^/| /' conftest.$ac_ext >&5
  1598. ac_retval=$ac_status ;;
  1599. esac
  1600. fi
  1601. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1602. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1603. as_fn_set_status $ac_retval
  1604. } # ac_fn_c_try_run
  1605. # ac_fn_c_check_func LINENO FUNC VAR
  1606. # ----------------------------------
  1607. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1608. ac_fn_c_check_func ()
  1609. {
  1610. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1612. printf %s "checking for $2... " >&6; }
  1613. if eval test \${$3+y}
  1614. then :
  1615. printf %s "(cached) " >&6
  1616. else case e in #(
  1617. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1618. /* end confdefs.h. */
  1619. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1620. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1621. #define $2 innocuous_$2
  1622. /* System header to define __stub macros and hopefully few prototypes,
  1623. which can conflict with char $2 (void); below. */
  1624. #include <limits.h>
  1625. #undef $2
  1626. /* Override any GCC internal prototype to avoid an error.
  1627. Use char because int might match the return type of a GCC
  1628. builtin and then its argument prototype would still apply. */
  1629. #ifdef __cplusplus
  1630. extern "C"
  1631. #endif
  1632. char $2 (void);
  1633. /* The GNU C library defines this for functions which it implements
  1634. to always fail with ENOSYS. Some functions are actually named
  1635. something starting with __ and the normal name is an alias. */
  1636. #if defined __stub_$2 || defined __stub___$2
  1637. choke me
  1638. #endif
  1639. int
  1640. main (void)
  1641. {
  1642. return $2 ();
  1643. ;
  1644. return 0;
  1645. }
  1646. _ACEOF
  1647. if ac_fn_c_try_link "$LINENO"
  1648. then :
  1649. eval "$3=yes"
  1650. else case e in #(
  1651. e) eval "$3=no" ;;
  1652. esac
  1653. fi
  1654. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1655. conftest$ac_exeext conftest.$ac_ext ;;
  1656. esac
  1657. fi
  1658. eval ac_res=\$$3
  1659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1660. printf "%s\n" "$ac_res" >&6; }
  1661. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1662. } # ac_fn_c_check_func
  1663. ac_configure_args_raw=
  1664. for ac_arg
  1665. do
  1666. case $ac_arg in
  1667. *\'*)
  1668. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1669. esac
  1670. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1671. done
  1672. case $ac_configure_args_raw in
  1673. *$as_nl*)
  1674. ac_safe_unquote= ;;
  1675. *)
  1676. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1677. ac_unsafe_a="$ac_unsafe_z#~"
  1678. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1679. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1680. esac
  1681. cat >config.log <<_ACEOF
  1682. This file contains any messages produced by compilers while
  1683. running configure, to aid debugging if configure makes a mistake.
  1684. It was created by libjpeg $as_me 9.6.0, which was
  1685. generated by GNU Autoconf 2.72. Invocation command line was
  1686. $ $0$ac_configure_args_raw
  1687. _ACEOF
  1688. exec 5>>config.log
  1689. {
  1690. cat <<_ASUNAME
  1691. ## --------- ##
  1692. ## Platform. ##
  1693. ## --------- ##
  1694. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1695. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1696. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1697. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1698. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1699. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1700. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1701. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1702. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1703. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1704. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1705. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1706. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1707. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1708. _ASUNAME
  1709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1710. for as_dir in $PATH
  1711. do
  1712. IFS=$as_save_IFS
  1713. case $as_dir in #(((
  1714. '') as_dir=./ ;;
  1715. */) ;;
  1716. *) as_dir=$as_dir/ ;;
  1717. esac
  1718. printf "%s\n" "PATH: $as_dir"
  1719. done
  1720. IFS=$as_save_IFS
  1721. } >&5
  1722. cat >&5 <<_ACEOF
  1723. ## ----------- ##
  1724. ## Core tests. ##
  1725. ## ----------- ##
  1726. _ACEOF
  1727. # Keep a trace of the command line.
  1728. # Strip out --no-create and --no-recursion so they do not pile up.
  1729. # Strip out --silent because we don't want to record it for future runs.
  1730. # Also quote any args containing shell meta-characters.
  1731. # Make two passes to allow for proper duplicate-argument suppression.
  1732. ac_configure_args=
  1733. ac_configure_args0=
  1734. ac_configure_args1=
  1735. ac_must_keep_next=false
  1736. for ac_pass in 1 2
  1737. do
  1738. for ac_arg
  1739. do
  1740. case $ac_arg in
  1741. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1742. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1743. | -silent | --silent | --silen | --sile | --sil)
  1744. continue ;;
  1745. *\'*)
  1746. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1747. esac
  1748. case $ac_pass in
  1749. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1750. 2)
  1751. as_fn_append ac_configure_args1 " '$ac_arg'"
  1752. if test $ac_must_keep_next = true; then
  1753. ac_must_keep_next=false # Got value, back to normal.
  1754. else
  1755. case $ac_arg in
  1756. *=* | --config-cache | -C | -disable-* | --disable-* \
  1757. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1758. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1759. | -with-* | --with-* | -without-* | --without-* | --x)
  1760. case "$ac_configure_args0 " in
  1761. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1762. esac
  1763. ;;
  1764. -* ) ac_must_keep_next=true ;;
  1765. esac
  1766. fi
  1767. as_fn_append ac_configure_args " '$ac_arg'"
  1768. ;;
  1769. esac
  1770. done
  1771. done
  1772. { ac_configure_args0=; unset ac_configure_args0;}
  1773. { ac_configure_args1=; unset ac_configure_args1;}
  1774. # When interrupted or exit'd, cleanup temporary files, and complete
  1775. # config.log. We remove comments because anyway the quotes in there
  1776. # would cause problems or look ugly.
  1777. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1778. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1779. trap 'exit_status=$?
  1780. # Sanitize IFS.
  1781. IFS=" "" $as_nl"
  1782. # Save into config.log some information that might help in debugging.
  1783. {
  1784. echo
  1785. printf "%s\n" "## ---------------- ##
  1786. ## Cache variables. ##
  1787. ## ---------------- ##"
  1788. echo
  1789. # The following way of writing the cache mishandles newlines in values,
  1790. (
  1791. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1792. eval ac_val=\$$ac_var
  1793. case $ac_val in #(
  1794. *${as_nl}*)
  1795. case $ac_var in #(
  1796. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1797. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1798. esac
  1799. case $ac_var in #(
  1800. _ | IFS | as_nl) ;; #(
  1801. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1802. *) { eval $ac_var=; unset $ac_var;} ;;
  1803. esac ;;
  1804. esac
  1805. done
  1806. (set) 2>&1 |
  1807. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1808. *${as_nl}ac_space=\ *)
  1809. sed -n \
  1810. "s/'\''/'\''\\\\'\'''\''/g;
  1811. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1812. ;; #(
  1813. *)
  1814. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1815. ;;
  1816. esac |
  1817. sort
  1818. )
  1819. echo
  1820. printf "%s\n" "## ----------------- ##
  1821. ## Output variables. ##
  1822. ## ----------------- ##"
  1823. echo
  1824. for ac_var in $ac_subst_vars
  1825. do
  1826. eval ac_val=\$$ac_var
  1827. case $ac_val in
  1828. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1829. esac
  1830. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1831. done | sort
  1832. echo
  1833. if test -n "$ac_subst_files"; then
  1834. printf "%s\n" "## ------------------- ##
  1835. ## File substitutions. ##
  1836. ## ------------------- ##"
  1837. echo
  1838. for ac_var in $ac_subst_files
  1839. do
  1840. eval ac_val=\$$ac_var
  1841. case $ac_val in
  1842. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1843. esac
  1844. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1845. done | sort
  1846. echo
  1847. fi
  1848. if test -s confdefs.h; then
  1849. printf "%s\n" "## ----------- ##
  1850. ## confdefs.h. ##
  1851. ## ----------- ##"
  1852. echo
  1853. cat confdefs.h
  1854. echo
  1855. fi
  1856. test "$ac_signal" != 0 &&
  1857. printf "%s\n" "$as_me: caught signal $ac_signal"
  1858. printf "%s\n" "$as_me: exit $exit_status"
  1859. } >&5
  1860. rm -f core *.core core.conftest.* &&
  1861. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1862. exit $exit_status
  1863. ' 0
  1864. for ac_signal in 1 2 13 15; do
  1865. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1866. done
  1867. ac_signal=0
  1868. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1869. rm -f -r conftest* confdefs.h
  1870. printf "%s\n" "/* confdefs.h */" > confdefs.h
  1871. # Predefined preprocessor variables.
  1872. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  1873. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  1874. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  1875. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  1876. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  1877. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  1878. # Let the site file select an alternate cache file if it wants to.
  1879. # Prefer an explicitly selected file to automatically selected ones.
  1880. if test -n "$CONFIG_SITE"; then
  1881. ac_site_files="$CONFIG_SITE"
  1882. elif test "x$prefix" != xNONE; then
  1883. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  1884. else
  1885. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1886. fi
  1887. for ac_site_file in $ac_site_files
  1888. do
  1889. case $ac_site_file in #(
  1890. */*) :
  1891. ;; #(
  1892. *) :
  1893. ac_site_file=./$ac_site_file ;;
  1894. esac
  1895. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  1896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1897. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  1898. sed 's/^/| /' "$ac_site_file" >&5
  1899. . "$ac_site_file" \
  1900. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  1901. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  1902. as_fn_error $? "failed to load site script $ac_site_file
  1903. See 'config.log' for more details" "$LINENO" 5; }
  1904. fi
  1905. done
  1906. if test -r "$cache_file"; then
  1907. # Some versions of bash will fail to source /dev/null (special files
  1908. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1909. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1911. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  1912. case $cache_file in
  1913. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1914. *) . "./$cache_file";;
  1915. esac
  1916. fi
  1917. else
  1918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1919. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  1920. >$cache_file
  1921. fi
  1922. # Test code for whether the C compiler supports C89 (global declarations)
  1923. ac_c_conftest_c89_globals='
  1924. /* Does the compiler advertise C89 conformance?
  1925. Do not test the value of __STDC__, because some compilers set it to 0
  1926. while being otherwise adequately conformant. */
  1927. #if !defined __STDC__
  1928. # error "Compiler does not advertise C89 conformance"
  1929. #endif
  1930. #include <stddef.h>
  1931. #include <stdarg.h>
  1932. struct stat;
  1933. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  1934. struct buf { int x; };
  1935. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  1936. static char *e (char **p, int i)
  1937. {
  1938. return p[i];
  1939. }
  1940. static char *f (char * (*g) (char **, int), char **p, ...)
  1941. {
  1942. char *s;
  1943. va_list v;
  1944. va_start (v,p);
  1945. s = g (p, va_arg (v,int));
  1946. va_end (v);
  1947. return s;
  1948. }
  1949. /* C89 style stringification. */
  1950. #define noexpand_stringify(a) #a
  1951. const char *stringified = noexpand_stringify(arbitrary+token=sequence);
  1952. /* C89 style token pasting. Exercises some of the corner cases that
  1953. e.g. old MSVC gets wrong, but not very hard. */
  1954. #define noexpand_concat(a,b) a##b
  1955. #define expand_concat(a,b) noexpand_concat(a,b)
  1956. extern int vA;
  1957. extern int vbee;
  1958. #define aye A
  1959. #define bee B
  1960. int *pvA = &expand_concat(v,aye);
  1961. int *pvbee = &noexpand_concat(v,bee);
  1962. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1963. function prototypes and stuff, but not \xHH hex character constants.
  1964. These do not provoke an error unfortunately, instead are silently treated
  1965. as an "x". The following induces an error, until -std is added to get
  1966. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  1967. array size at least. It is necessary to write \x00 == 0 to get something
  1968. that is true only with -std. */
  1969. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  1970. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  1971. inside strings and character constants. */
  1972. #define FOO(x) '\''x'\''
  1973. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  1974. int test (int i, double x);
  1975. struct s1 {int (*f) (int a);};
  1976. struct s2 {int (*f) (double a);};
  1977. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  1978. int, int);'
  1979. # Test code for whether the C compiler supports C89 (body of main).
  1980. ac_c_conftest_c89_main='
  1981. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  1982. '
  1983. # Test code for whether the C compiler supports C99 (global declarations)
  1984. ac_c_conftest_c99_globals='
  1985. /* Does the compiler advertise C99 conformance? */
  1986. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  1987. # error "Compiler does not advertise C99 conformance"
  1988. #endif
  1989. // See if C++-style comments work.
  1990. #include <stdbool.h>
  1991. extern int puts (const char *);
  1992. extern int printf (const char *, ...);
  1993. extern int dprintf (int, const char *, ...);
  1994. extern void *malloc (size_t);
  1995. extern void free (void *);
  1996. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  1997. // dprintf is used instead of fprintf to avoid needing to declare
  1998. // FILE and stderr.
  1999. #define debug(...) dprintf (2, __VA_ARGS__)
  2000. #define showlist(...) puts (#__VA_ARGS__)
  2001. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2002. static void
  2003. test_varargs_macros (void)
  2004. {
  2005. int x = 1234;
  2006. int y = 5678;
  2007. debug ("Flag");
  2008. debug ("X = %d\n", x);
  2009. showlist (The first, second, and third items.);
  2010. report (x>y, "x is %d but y is %d", x, y);
  2011. }
  2012. // Check long long types.
  2013. #define BIG64 18446744073709551615ull
  2014. #define BIG32 4294967295ul
  2015. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2016. #if !BIG_OK
  2017. #error "your preprocessor is broken"
  2018. #endif
  2019. #if BIG_OK
  2020. #else
  2021. #error "your preprocessor is broken"
  2022. #endif
  2023. static long long int bignum = -9223372036854775807LL;
  2024. static unsigned long long int ubignum = BIG64;
  2025. struct incomplete_array
  2026. {
  2027. int datasize;
  2028. double data[];
  2029. };
  2030. struct named_init {
  2031. int number;
  2032. const wchar_t *name;
  2033. double average;
  2034. };
  2035. typedef const char *ccp;
  2036. static inline int
  2037. test_restrict (ccp restrict text)
  2038. {
  2039. // Iterate through items via the restricted pointer.
  2040. // Also check for declarations in for loops.
  2041. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2042. continue;
  2043. return 0;
  2044. }
  2045. // Check varargs and va_copy.
  2046. static bool
  2047. test_varargs (const char *format, ...)
  2048. {
  2049. va_list args;
  2050. va_start (args, format);
  2051. va_list args_copy;
  2052. va_copy (args_copy, args);
  2053. const char *str = "";
  2054. int number = 0;
  2055. float fnumber = 0;
  2056. while (*format)
  2057. {
  2058. switch (*format++)
  2059. {
  2060. case '\''s'\'': // string
  2061. str = va_arg (args_copy, const char *);
  2062. break;
  2063. case '\''d'\'': // int
  2064. number = va_arg (args_copy, int);
  2065. break;
  2066. case '\''f'\'': // float
  2067. fnumber = va_arg (args_copy, double);
  2068. break;
  2069. default:
  2070. break;
  2071. }
  2072. }
  2073. va_end (args_copy);
  2074. va_end (args);
  2075. return *str && number && fnumber;
  2076. }
  2077. '
  2078. # Test code for whether the C compiler supports C99 (body of main).
  2079. ac_c_conftest_c99_main='
  2080. // Check bool.
  2081. _Bool success = false;
  2082. success |= (argc != 0);
  2083. // Check restrict.
  2084. if (test_restrict ("String literal") == 0)
  2085. success = true;
  2086. char *restrict newvar = "Another string";
  2087. // Check varargs.
  2088. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2089. test_varargs_macros ();
  2090. // Check flexible array members.
  2091. struct incomplete_array *ia =
  2092. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2093. ia->datasize = 10;
  2094. for (int i = 0; i < ia->datasize; ++i)
  2095. ia->data[i] = i * 1.234;
  2096. // Work around memory leak warnings.
  2097. free (ia);
  2098. // Check named initializers.
  2099. struct named_init ni = {
  2100. .number = 34,
  2101. .name = L"Test wide string",
  2102. .average = 543.34343,
  2103. };
  2104. ni.number = 58;
  2105. int dynamic_array[ni.number];
  2106. dynamic_array[0] = argv[0][0];
  2107. dynamic_array[ni.number - 1] = 543;
  2108. // work around unused variable warnings
  2109. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2110. || dynamic_array[ni.number - 1] != 543);
  2111. '
  2112. # Test code for whether the C compiler supports C11 (global declarations)
  2113. ac_c_conftest_c11_globals='
  2114. /* Does the compiler advertise C11 conformance? */
  2115. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2116. # error "Compiler does not advertise C11 conformance"
  2117. #endif
  2118. // Check _Alignas.
  2119. char _Alignas (double) aligned_as_double;
  2120. char _Alignas (0) no_special_alignment;
  2121. extern char aligned_as_int;
  2122. char _Alignas (0) _Alignas (int) aligned_as_int;
  2123. // Check _Alignof.
  2124. enum
  2125. {
  2126. int_alignment = _Alignof (int),
  2127. int_array_alignment = _Alignof (int[100]),
  2128. char_alignment = _Alignof (char)
  2129. };
  2130. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2131. // Check _Noreturn.
  2132. int _Noreturn does_not_return (void) { for (;;) continue; }
  2133. // Check _Static_assert.
  2134. struct test_static_assert
  2135. {
  2136. int x;
  2137. _Static_assert (sizeof (int) <= sizeof (long int),
  2138. "_Static_assert does not work in struct");
  2139. long int y;
  2140. };
  2141. // Check UTF-8 literals.
  2142. #define u8 syntax error!
  2143. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2144. // Check duplicate typedefs.
  2145. typedef long *long_ptr;
  2146. typedef long int *long_ptr;
  2147. typedef long_ptr long_ptr;
  2148. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2149. struct anonymous
  2150. {
  2151. union {
  2152. struct { int i; int j; };
  2153. struct { int k; long int l; } w;
  2154. };
  2155. int m;
  2156. } v1;
  2157. '
  2158. # Test code for whether the C compiler supports C11 (body of main).
  2159. ac_c_conftest_c11_main='
  2160. _Static_assert ((offsetof (struct anonymous, i)
  2161. == offsetof (struct anonymous, w.k)),
  2162. "Anonymous union alignment botch");
  2163. v1.i = 2;
  2164. v1.w.k = 5;
  2165. ok |= v1.i != 5;
  2166. '
  2167. # Test code for whether the C compiler supports C11 (complete).
  2168. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2169. ${ac_c_conftest_c99_globals}
  2170. ${ac_c_conftest_c11_globals}
  2171. int
  2172. main (int argc, char **argv)
  2173. {
  2174. int ok = 0;
  2175. ${ac_c_conftest_c89_main}
  2176. ${ac_c_conftest_c99_main}
  2177. ${ac_c_conftest_c11_main}
  2178. return ok;
  2179. }
  2180. "
  2181. # Test code for whether the C compiler supports C99 (complete).
  2182. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2183. ${ac_c_conftest_c99_globals}
  2184. int
  2185. main (int argc, char **argv)
  2186. {
  2187. int ok = 0;
  2188. ${ac_c_conftest_c89_main}
  2189. ${ac_c_conftest_c99_main}
  2190. return ok;
  2191. }
  2192. "
  2193. # Test code for whether the C compiler supports C89 (complete).
  2194. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2195. int
  2196. main (int argc, char **argv)
  2197. {
  2198. int ok = 0;
  2199. ${ac_c_conftest_c89_main}
  2200. return ok;
  2201. }
  2202. "
  2203. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2204. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2205. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2206. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2207. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2208. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2209. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2210. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2211. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2212. # Auxiliary files required by this configure script.
  2213. ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
  2214. # Locations in which to look for auxiliary files.
  2215. ac_aux_dir_candidates="${srcdir}/."
  2216. # Search for a directory containing all of the required auxiliary files,
  2217. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2218. # If we don't find one directory that contains all the files we need,
  2219. # we report the set of missing files from the *first* directory in
  2220. # $ac_aux_dir_candidates and give up.
  2221. ac_missing_aux_files=""
  2222. ac_first_candidate=:
  2223. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2225. as_found=false
  2226. for as_dir in $ac_aux_dir_candidates
  2227. do
  2228. IFS=$as_save_IFS
  2229. case $as_dir in #(((
  2230. '') as_dir=./ ;;
  2231. */) ;;
  2232. *) as_dir=$as_dir/ ;;
  2233. esac
  2234. as_found=:
  2235. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2236. ac_aux_dir_found=yes
  2237. ac_install_sh=
  2238. for ac_aux in $ac_aux_files
  2239. do
  2240. # As a special case, if "install-sh" is required, that requirement
  2241. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2242. # and $ac_install_sh is set appropriately for whichever one is found.
  2243. if test x"$ac_aux" = x"install-sh"
  2244. then
  2245. if test -f "${as_dir}install-sh"; then
  2246. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2247. ac_install_sh="${as_dir}install-sh -c"
  2248. elif test -f "${as_dir}install.sh"; then
  2249. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2250. ac_install_sh="${as_dir}install.sh -c"
  2251. elif test -f "${as_dir}shtool"; then
  2252. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2253. ac_install_sh="${as_dir}shtool install -c"
  2254. else
  2255. ac_aux_dir_found=no
  2256. if $ac_first_candidate; then
  2257. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2258. else
  2259. break
  2260. fi
  2261. fi
  2262. else
  2263. if test -f "${as_dir}${ac_aux}"; then
  2264. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2265. else
  2266. ac_aux_dir_found=no
  2267. if $ac_first_candidate; then
  2268. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2269. else
  2270. break
  2271. fi
  2272. fi
  2273. fi
  2274. done
  2275. if test "$ac_aux_dir_found" = yes; then
  2276. ac_aux_dir="$as_dir"
  2277. break
  2278. fi
  2279. ac_first_candidate=false
  2280. as_found=false
  2281. done
  2282. IFS=$as_save_IFS
  2283. if $as_found
  2284. then :
  2285. else case e in #(
  2286. e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
  2287. esac
  2288. fi
  2289. # These three variables are undocumented and unsupported,
  2290. # and are intended to be withdrawn in a future Autoconf release.
  2291. # They can cause serious problems if a builder's source tree is in a directory
  2292. # whose full name contains unusual characters.
  2293. if test -f "${ac_aux_dir}config.guess"; then
  2294. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2295. fi
  2296. if test -f "${ac_aux_dir}config.sub"; then
  2297. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2298. fi
  2299. if test -f "$ac_aux_dir/configure"; then
  2300. ac_configure="$SHELL ${ac_aux_dir}configure"
  2301. fi
  2302. # Check that the precious variables saved in the cache have kept the same
  2303. # value.
  2304. ac_cache_corrupted=false
  2305. for ac_var in $ac_precious_vars; do
  2306. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2307. eval ac_new_set=\$ac_env_${ac_var}_set
  2308. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2309. eval ac_new_val=\$ac_env_${ac_var}_value
  2310. case $ac_old_set,$ac_new_set in
  2311. set,)
  2312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
  2313. printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
  2314. ac_cache_corrupted=: ;;
  2315. ,set)
  2316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
  2317. printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
  2318. ac_cache_corrupted=: ;;
  2319. ,);;
  2320. *)
  2321. if test "x$ac_old_val" != "x$ac_new_val"; then
  2322. # differences in whitespace do not lead to failure.
  2323. ac_old_val_w=`echo x $ac_old_val`
  2324. ac_new_val_w=`echo x $ac_new_val`
  2325. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
  2327. printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
  2328. ac_cache_corrupted=:
  2329. else
  2330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
  2331. printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
  2332. eval $ac_var=\$ac_old_val
  2333. fi
  2334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
  2335. printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
  2336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
  2337. printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
  2338. fi;;
  2339. esac
  2340. # Pass precious variables to config.status.
  2341. if test "$ac_new_set" = set; then
  2342. case $ac_new_val in
  2343. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2344. *) ac_arg=$ac_var=$ac_new_val ;;
  2345. esac
  2346. case " $ac_configure_args " in
  2347. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2348. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2349. esac
  2350. fi
  2351. done
  2352. if $ac_cache_corrupted; then
  2353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2354. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2356. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2357. as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
  2358. and start over" "$LINENO" 5
  2359. fi
  2360. ## -------------------- ##
  2361. ## Main body of script. ##
  2362. ## -------------------- ##
  2363. ac_ext=c
  2364. ac_cpp='$CPP $CPPFLAGS'
  2365. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2366. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2367. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2368. # Directory where autotools helper scripts lives.
  2369. # Generate configuration headers.
  2370. ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
  2371. # Hack: disable autoheader so that it doesn't overwrite our cfg template.
  2372. AUTOHEADER="echo autoheader ignored"
  2373. # Check system type
  2374. # Make sure we can run config.sub.
  2375. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2376. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2378. printf %s "checking build system type... " >&6; }
  2379. if test ${ac_cv_build+y}
  2380. then :
  2381. printf %s "(cached) " >&6
  2382. else case e in #(
  2383. e) ac_build_alias=$build_alias
  2384. test "x$ac_build_alias" = x &&
  2385. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2386. test "x$ac_build_alias" = x &&
  2387. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2388. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2389. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2390. ;;
  2391. esac
  2392. fi
  2393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2394. printf "%s\n" "$ac_cv_build" >&6; }
  2395. case $ac_cv_build in
  2396. *-*-*) ;;
  2397. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2398. esac
  2399. build=$ac_cv_build
  2400. ac_save_IFS=$IFS; IFS='-'
  2401. set x $ac_cv_build
  2402. shift
  2403. build_cpu=$1
  2404. build_vendor=$2
  2405. shift; shift
  2406. # Remember, the first character of IFS is used to create $*,
  2407. # except with old shells:
  2408. build_os=$*
  2409. IFS=$ac_save_IFS
  2410. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2412. printf %s "checking host system type... " >&6; }
  2413. if test ${ac_cv_host+y}
  2414. then :
  2415. printf %s "(cached) " >&6
  2416. else case e in #(
  2417. e) if test "x$host_alias" = x; then
  2418. ac_cv_host=$ac_cv_build
  2419. else
  2420. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  2421. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  2422. fi
  2423. ;;
  2424. esac
  2425. fi
  2426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2427. printf "%s\n" "$ac_cv_host" >&6; }
  2428. case $ac_cv_host in
  2429. *-*-*) ;;
  2430. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2431. esac
  2432. host=$ac_cv_host
  2433. ac_save_IFS=$IFS; IFS='-'
  2434. set x $ac_cv_host
  2435. shift
  2436. host_cpu=$1
  2437. host_vendor=$2
  2438. shift; shift
  2439. # Remember, the first character of IFS is used to create $*,
  2440. # except with old shells:
  2441. host_os=$*
  2442. IFS=$ac_save_IFS
  2443. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2445. printf %s "checking target system type... " >&6; }
  2446. if test ${ac_cv_target+y}
  2447. then :
  2448. printf %s "(cached) " >&6
  2449. else case e in #(
  2450. e) if test "x$target_alias" = x; then
  2451. ac_cv_target=$ac_cv_host
  2452. else
  2453. ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
  2454. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
  2455. fi
  2456. ;;
  2457. esac
  2458. fi
  2459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2460. printf "%s\n" "$ac_cv_target" >&6; }
  2461. case $ac_cv_target in
  2462. *-*-*) ;;
  2463. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2464. esac
  2465. target=$ac_cv_target
  2466. ac_save_IFS=$IFS; IFS='-'
  2467. set x $ac_cv_target
  2468. shift
  2469. target_cpu=$1
  2470. target_vendor=$2
  2471. shift; shift
  2472. # Remember, the first character of IFS is used to create $*,
  2473. # except with old shells:
  2474. target_os=$*
  2475. IFS=$ac_save_IFS
  2476. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2477. # The aliases save the names the user supplied, while $host etc.
  2478. # will get canonicalized.
  2479. test -n "$target_alias" &&
  2480. test "$program_prefix$program_suffix$program_transform_name" = \
  2481. NONENONEs,x,x, &&
  2482. program_prefix=${target_alias}-
  2483. # Initialize Automake
  2484. # Don't require all the GNU mandated files
  2485. am__api_version='1.16'
  2486. # Find a good install program. We prefer a C program (faster),
  2487. # so one script is as good as another. But avoid the broken or
  2488. # incompatible versions:
  2489. # SysV /etc/install, /usr/sbin/install
  2490. # SunOS /usr/etc/install
  2491. # IRIX /sbin/install
  2492. # AIX /bin/install
  2493. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2494. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2495. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2496. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2497. # OS/2's system install, which has a completely different semantic
  2498. # ./install, which can be erroneously created by make from ./install.sh.
  2499. # Reject install programs that cannot install multiple files.
  2500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2501. printf %s "checking for a BSD-compatible install... " >&6; }
  2502. if test -z "$INSTALL"; then
  2503. if test ${ac_cv_path_install+y}
  2504. then :
  2505. printf %s "(cached) " >&6
  2506. else case e in #(
  2507. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2508. for as_dir in $PATH
  2509. do
  2510. IFS=$as_save_IFS
  2511. case $as_dir in #(((
  2512. '') as_dir=./ ;;
  2513. */) ;;
  2514. *) as_dir=$as_dir/ ;;
  2515. esac
  2516. # Account for fact that we put trailing slashes in our PATH walk.
  2517. case $as_dir in #((
  2518. ./ | /[cC]/* | \
  2519. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2520. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2521. /usr/ucb/* ) ;;
  2522. *)
  2523. # OSF1 and SCO ODT 3.0 have their own names for install.
  2524. # Don't use installbsd from OSF since it installs stuff as root
  2525. # by default.
  2526. for ac_prog in ginstall scoinst install; do
  2527. for ac_exec_ext in '' $ac_executable_extensions; do
  2528. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2529. if test $ac_prog = install &&
  2530. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2531. # AIX install. It has an incompatible calling convention.
  2532. :
  2533. elif test $ac_prog = install &&
  2534. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2535. # program-specific install script used by HP pwplus--don't use.
  2536. :
  2537. else
  2538. rm -rf conftest.one conftest.two conftest.dir
  2539. echo one > conftest.one
  2540. echo two > conftest.two
  2541. mkdir conftest.dir
  2542. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2543. test -s conftest.one && test -s conftest.two &&
  2544. test -s conftest.dir/conftest.one &&
  2545. test -s conftest.dir/conftest.two
  2546. then
  2547. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2548. break 3
  2549. fi
  2550. fi
  2551. fi
  2552. done
  2553. done
  2554. ;;
  2555. esac
  2556. done
  2557. IFS=$as_save_IFS
  2558. rm -rf conftest.one conftest.two conftest.dir
  2559. ;;
  2560. esac
  2561. fi
  2562. if test ${ac_cv_path_install+y}; then
  2563. INSTALL=$ac_cv_path_install
  2564. else
  2565. # As a last resort, use the slow shell script. Don't cache a
  2566. # value for INSTALL within a source directory, because that will
  2567. # break other packages using the cache if that directory is
  2568. # removed, or if the value is a relative name.
  2569. INSTALL=$ac_install_sh
  2570. fi
  2571. fi
  2572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2573. printf "%s\n" "$INSTALL" >&6; }
  2574. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2575. # It thinks the first close brace ends the variable substitution.
  2576. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2577. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2578. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2580. printf %s "checking whether build environment is sane... " >&6; }
  2581. # Reject unsafe characters in $srcdir or the absolute working directory
  2582. # name. Accept space and tab only in the latter.
  2583. am_lf='
  2584. '
  2585. case `pwd` in
  2586. *[\\\"\#\$\&\'\`$am_lf]*)
  2587. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2588. esac
  2589. case $srcdir in
  2590. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2591. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2592. esac
  2593. # Do 'set' in a subshell so we don't clobber the current shell's
  2594. # arguments. Must try -L first in case configure is actually a
  2595. # symlink; some systems play weird games with the mod time of symlinks
  2596. # (eg FreeBSD returns the mod time of the symlink's containing
  2597. # directory).
  2598. if (
  2599. am_has_slept=no
  2600. for am_try in 1 2; do
  2601. echo "timestamp, slept: $am_has_slept" > conftest.file
  2602. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2603. if test "$*" = "X"; then
  2604. # -L didn't work.
  2605. set X `ls -t "$srcdir/configure" conftest.file`
  2606. fi
  2607. if test "$*" != "X $srcdir/configure conftest.file" \
  2608. && test "$*" != "X conftest.file $srcdir/configure"; then
  2609. # If neither matched, then we have a broken ls. This can happen
  2610. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2611. # broken ls alias from the environment. This has actually
  2612. # happened. Such a system could not be considered "sane".
  2613. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2614. alias in your environment" "$LINENO" 5
  2615. fi
  2616. if test "$2" = conftest.file || test $am_try -eq 2; then
  2617. break
  2618. fi
  2619. # Just in case.
  2620. sleep 1
  2621. am_has_slept=yes
  2622. done
  2623. test "$2" = conftest.file
  2624. )
  2625. then
  2626. # Ok.
  2627. :
  2628. else
  2629. as_fn_error $? "newly created file is older than distributed files!
  2630. Check your system clock" "$LINENO" 5
  2631. fi
  2632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2633. printf "%s\n" "yes" >&6; }
  2634. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2635. # generated files are strictly newer.
  2636. am_sleep_pid=
  2637. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2638. ( sleep 1 ) &
  2639. am_sleep_pid=$!
  2640. fi
  2641. rm -f conftest.file
  2642. test "$program_prefix" != NONE &&
  2643. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2644. # Use a double $ so make ignores it.
  2645. test "$program_suffix" != NONE &&
  2646. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2647. # Double any \ or $.
  2648. # By default was 's,x,x', remove it if useless.
  2649. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2650. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2651. # Expand $ac_aux_dir to an absolute path.
  2652. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2653. if test x"${MISSING+set}" != xset; then
  2654. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2655. fi
  2656. # Use eval to expand $SHELL
  2657. if eval "$MISSING --is-lightweight"; then
  2658. am_missing_run="$MISSING "
  2659. else
  2660. am_missing_run=
  2661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2662. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2663. fi
  2664. if test x"${install_sh+set}" != xset; then
  2665. case $am_aux_dir in
  2666. *\ * | *\ *)
  2667. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2668. *)
  2669. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2670. esac
  2671. fi
  2672. # Installed binaries are usually stripped using 'strip' when the user
  2673. # run "make install-strip". However 'strip' might not be the right
  2674. # tool to use in cross-compilation environments, therefore Automake
  2675. # will honor the 'STRIP' environment variable to overrule this program.
  2676. if test "$cross_compiling" != no; then
  2677. if test -n "$ac_tool_prefix"; then
  2678. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2679. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2681. printf %s "checking for $ac_word... " >&6; }
  2682. if test ${ac_cv_prog_STRIP+y}
  2683. then :
  2684. printf %s "(cached) " >&6
  2685. else case e in #(
  2686. e) if test -n "$STRIP"; then
  2687. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2688. else
  2689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2690. for as_dir in $PATH
  2691. do
  2692. IFS=$as_save_IFS
  2693. case $as_dir in #(((
  2694. '') as_dir=./ ;;
  2695. */) ;;
  2696. *) as_dir=$as_dir/ ;;
  2697. esac
  2698. for ac_exec_ext in '' $ac_executable_extensions; do
  2699. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2700. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2701. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2702. break 2
  2703. fi
  2704. done
  2705. done
  2706. IFS=$as_save_IFS
  2707. fi ;;
  2708. esac
  2709. fi
  2710. STRIP=$ac_cv_prog_STRIP
  2711. if test -n "$STRIP"; then
  2712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2713. printf "%s\n" "$STRIP" >&6; }
  2714. else
  2715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2716. printf "%s\n" "no" >&6; }
  2717. fi
  2718. fi
  2719. if test -z "$ac_cv_prog_STRIP"; then
  2720. ac_ct_STRIP=$STRIP
  2721. # Extract the first word of "strip", so it can be a program name with args.
  2722. set dummy strip; ac_word=$2
  2723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2724. printf %s "checking for $ac_word... " >&6; }
  2725. if test ${ac_cv_prog_ac_ct_STRIP+y}
  2726. then :
  2727. printf %s "(cached) " >&6
  2728. else case e in #(
  2729. e) if test -n "$ac_ct_STRIP"; then
  2730. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2731. else
  2732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2733. for as_dir in $PATH
  2734. do
  2735. IFS=$as_save_IFS
  2736. case $as_dir in #(((
  2737. '') as_dir=./ ;;
  2738. */) ;;
  2739. *) as_dir=$as_dir/ ;;
  2740. esac
  2741. for ac_exec_ext in '' $ac_executable_extensions; do
  2742. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2743. ac_cv_prog_ac_ct_STRIP="strip"
  2744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2745. break 2
  2746. fi
  2747. done
  2748. done
  2749. IFS=$as_save_IFS
  2750. fi ;;
  2751. esac
  2752. fi
  2753. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2754. if test -n "$ac_ct_STRIP"; then
  2755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2756. printf "%s\n" "$ac_ct_STRIP" >&6; }
  2757. else
  2758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2759. printf "%s\n" "no" >&6; }
  2760. fi
  2761. if test "x$ac_ct_STRIP" = x; then
  2762. STRIP=":"
  2763. else
  2764. case $cross_compiling:$ac_tool_warned in
  2765. yes:)
  2766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2767. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2768. ac_tool_warned=yes ;;
  2769. esac
  2770. STRIP=$ac_ct_STRIP
  2771. fi
  2772. else
  2773. STRIP="$ac_cv_prog_STRIP"
  2774. fi
  2775. fi
  2776. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  2778. printf %s "checking for a race-free mkdir -p... " >&6; }
  2779. if test -z "$MKDIR_P"; then
  2780. if test ${ac_cv_path_mkdir+y}
  2781. then :
  2782. printf %s "(cached) " >&6
  2783. else case e in #(
  2784. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2785. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2786. do
  2787. IFS=$as_save_IFS
  2788. case $as_dir in #(((
  2789. '') as_dir=./ ;;
  2790. */) ;;
  2791. *) as_dir=$as_dir/ ;;
  2792. esac
  2793. for ac_prog in mkdir gmkdir; do
  2794. for ac_exec_ext in '' $ac_executable_extensions; do
  2795. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  2796. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2797. 'mkdir ('*'coreutils) '* | \
  2798. *'BusyBox '* | \
  2799. 'mkdir (fileutils) '4.1*)
  2800. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  2801. break 3;;
  2802. esac
  2803. done
  2804. done
  2805. done
  2806. IFS=$as_save_IFS
  2807. ;;
  2808. esac
  2809. fi
  2810. test -d ./--version && rmdir ./--version
  2811. if test ${ac_cv_path_mkdir+y}; then
  2812. MKDIR_P="$ac_cv_path_mkdir -p"
  2813. else
  2814. # As a last resort, use plain mkdir -p,
  2815. # in the hope it doesn't have the bugs of ancient mkdir.
  2816. MKDIR_P='mkdir -p'
  2817. fi
  2818. fi
  2819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2820. printf "%s\n" "$MKDIR_P" >&6; }
  2821. for ac_prog in gawk mawk nawk awk
  2822. do
  2823. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2824. set dummy $ac_prog; ac_word=$2
  2825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2826. printf %s "checking for $ac_word... " >&6; }
  2827. if test ${ac_cv_prog_AWK+y}
  2828. then :
  2829. printf %s "(cached) " >&6
  2830. else case e in #(
  2831. e) if test -n "$AWK"; then
  2832. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2833. else
  2834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2835. for as_dir in $PATH
  2836. do
  2837. IFS=$as_save_IFS
  2838. case $as_dir in #(((
  2839. '') as_dir=./ ;;
  2840. */) ;;
  2841. *) as_dir=$as_dir/ ;;
  2842. esac
  2843. for ac_exec_ext in '' $ac_executable_extensions; do
  2844. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2845. ac_cv_prog_AWK="$ac_prog"
  2846. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2847. break 2
  2848. fi
  2849. done
  2850. done
  2851. IFS=$as_save_IFS
  2852. fi ;;
  2853. esac
  2854. fi
  2855. AWK=$ac_cv_prog_AWK
  2856. if test -n "$AWK"; then
  2857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2858. printf "%s\n" "$AWK" >&6; }
  2859. else
  2860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2861. printf "%s\n" "no" >&6; }
  2862. fi
  2863. test -n "$AWK" && break
  2864. done
  2865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2866. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2867. set x ${MAKE-make}
  2868. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2869. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  2870. then :
  2871. printf %s "(cached) " >&6
  2872. else case e in #(
  2873. e) cat >conftest.make <<\_ACEOF
  2874. SHELL = /bin/sh
  2875. all:
  2876. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2877. _ACEOF
  2878. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2879. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2880. *@@@%%%=?*=@@@%%%*)
  2881. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2882. *)
  2883. eval ac_cv_prog_make_${ac_make}_set=no;;
  2884. esac
  2885. rm -f conftest.make ;;
  2886. esac
  2887. fi
  2888. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2890. printf "%s\n" "yes" >&6; }
  2891. SET_MAKE=
  2892. else
  2893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2894. printf "%s\n" "no" >&6; }
  2895. SET_MAKE="MAKE=${MAKE-make}"
  2896. fi
  2897. rm -rf .tst 2>/dev/null
  2898. mkdir .tst 2>/dev/null
  2899. if test -d .tst; then
  2900. am__leading_dot=.
  2901. else
  2902. am__leading_dot=_
  2903. fi
  2904. rmdir .tst 2>/dev/null
  2905. # Check whether --enable-silent-rules was given.
  2906. if test ${enable_silent_rules+y}
  2907. then :
  2908. enableval=$enable_silent_rules;
  2909. fi
  2910. case $enable_silent_rules in # (((
  2911. yes) AM_DEFAULT_VERBOSITY=0;;
  2912. no) AM_DEFAULT_VERBOSITY=1;;
  2913. *) AM_DEFAULT_VERBOSITY=1;;
  2914. esac
  2915. am_make=${MAKE-make}
  2916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2917. printf %s "checking whether $am_make supports nested variables... " >&6; }
  2918. if test ${am_cv_make_support_nested_variables+y}
  2919. then :
  2920. printf %s "(cached) " >&6
  2921. else case e in #(
  2922. e) if printf "%s\n" 'TRUE=$(BAR$(V))
  2923. BAR0=false
  2924. BAR1=true
  2925. V=1
  2926. am__doit:
  2927. @$(TRUE)
  2928. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2929. am_cv_make_support_nested_variables=yes
  2930. else
  2931. am_cv_make_support_nested_variables=no
  2932. fi ;;
  2933. esac
  2934. fi
  2935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2936. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  2937. if test $am_cv_make_support_nested_variables = yes; then
  2938. AM_V='$(V)'
  2939. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2940. else
  2941. AM_V=$AM_DEFAULT_VERBOSITY
  2942. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2943. fi
  2944. AM_BACKSLASH='\'
  2945. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2946. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2947. # is not polluted with repeated "-I."
  2948. am__isrc=' -I$(srcdir)'
  2949. # test to see if srcdir already configured
  2950. if test -f $srcdir/config.status; then
  2951. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2952. fi
  2953. fi
  2954. # test whether we have cygpath
  2955. if test -z "$CYGPATH_W"; then
  2956. if (cygpath --version) >/dev/null 2>/dev/null; then
  2957. CYGPATH_W='cygpath -w'
  2958. else
  2959. CYGPATH_W=echo
  2960. fi
  2961. fi
  2962. # Define the identity of the package.
  2963. PACKAGE='libjpeg'
  2964. VERSION='9.6.0'
  2965. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  2966. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  2967. # Some tools Automake needs.
  2968. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2969. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2970. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2971. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2972. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2973. # For better backward compatibility. To be removed once Automake 1.9.x
  2974. # dies out for good. For more background, see:
  2975. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2976. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2977. mkdir_p='$(MKDIR_P)'
  2978. # We need awk for the "check" target (and possibly the TAP driver). The
  2979. # system "awk" is bad on some platforms.
  2980. # Always define AMTAR for backward compatibility. Yes, it's still used
  2981. # in the wild :-( We should find a proper way to deprecate it ...
  2982. AMTAR='$${TAR-tar}'
  2983. # We'll loop over all known methods to create a tar archive until one works.
  2984. _am_tools='gnutar pax cpio none'
  2985. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2986. # Variables for tags utilities; see am/tags.am
  2987. if test -z "$CTAGS"; then
  2988. CTAGS=ctags
  2989. fi
  2990. if test -z "$ETAGS"; then
  2991. ETAGS=etags
  2992. fi
  2993. if test -z "$CSCOPE"; then
  2994. CSCOPE=cscope
  2995. fi
  2996. # POSIX will say in a future version that running "rm -f" with no argument
  2997. # is OK; and we want to be able to make that assumption in our Makefile
  2998. # recipes. So use an aggressive probe to check that the usage we want is
  2999. # actually supported "in the wild" to an acceptable degree.
  3000. # See automake bug#10828.
  3001. # To make any issue more visible, cause the running configure to be aborted
  3002. # by default if the 'rm' program in use doesn't match our expectations; the
  3003. # user can still override this though.
  3004. if rm -f && rm -fr && rm -rf; then : OK; else
  3005. cat >&2 <<'END'
  3006. Oops!
  3007. Your 'rm' program seems unable to run without file operands specified
  3008. on the command line, even when the '-f' option is present. This is contrary
  3009. to the behaviour of most rm programs out there, and not conforming with
  3010. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3011. Please tell bug-automake@gnu.org about your system, including the value
  3012. of your $PATH and any error possibly output before this message. This
  3013. can help us improve future automake versions.
  3014. END
  3015. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3016. echo 'Configuration will proceed anyway, since you have set the' >&2
  3017. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3018. echo >&2
  3019. else
  3020. cat >&2 <<'END'
  3021. Aborting the configuration process, to ensure you take notice of the issue.
  3022. You can download and install GNU coreutils to get an 'rm' implementation
  3023. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3024. If you want to complete the configuration process using your problematic
  3025. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3026. to "yes", and re-run configure.
  3027. END
  3028. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3029. fi
  3030. fi
  3031. # Make --enable-silent-rules the default.
  3032. # To get verbose build output you may configure
  3033. # with --disable-silent-rules or use "make V=1".
  3034. # Check whether --enable-silent-rules was given.
  3035. if test ${enable_silent_rules+y}
  3036. then :
  3037. enableval=$enable_silent_rules;
  3038. fi
  3039. case $enable_silent_rules in # (((
  3040. yes) AM_DEFAULT_VERBOSITY=0;;
  3041. no) AM_DEFAULT_VERBOSITY=1;;
  3042. *) AM_DEFAULT_VERBOSITY=0;;
  3043. esac
  3044. am_make=${MAKE-make}
  3045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3046. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3047. if test ${am_cv_make_support_nested_variables+y}
  3048. then :
  3049. printf %s "(cached) " >&6
  3050. else case e in #(
  3051. e) if printf "%s\n" 'TRUE=$(BAR$(V))
  3052. BAR0=false
  3053. BAR1=true
  3054. V=1
  3055. am__doit:
  3056. @$(TRUE)
  3057. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3058. am_cv_make_support_nested_variables=yes
  3059. else
  3060. am_cv_make_support_nested_variables=no
  3061. fi ;;
  3062. esac
  3063. fi
  3064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3065. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3066. if test $am_cv_make_support_nested_variables = yes; then
  3067. AM_V='$(V)'
  3068. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3069. else
  3070. AM_V=$AM_DEFAULT_VERBOSITY
  3071. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3072. fi
  3073. AM_BACKSLASH='\'
  3074. # Add configure option --enable-maintainer-mode which enables
  3075. # dependency checking and generation useful to package maintainers.
  3076. # This is made an option to avoid confusing end users.
  3077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3078. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3079. # Check whether --enable-maintainer-mode was given.
  3080. if test ${enable_maintainer_mode+y}
  3081. then :
  3082. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3083. else case e in #(
  3084. e) USE_MAINTAINER_MODE=no ;;
  3085. esac
  3086. fi
  3087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3088. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  3089. if test $USE_MAINTAINER_MODE = yes; then
  3090. MAINTAINER_MODE_TRUE=
  3091. MAINTAINER_MODE_FALSE='#'
  3092. else
  3093. MAINTAINER_MODE_TRUE='#'
  3094. MAINTAINER_MODE_FALSE=
  3095. fi
  3096. MAINT=$MAINTAINER_MODE_TRUE
  3097. # Check for programs
  3098. ac_ext=c
  3099. ac_cpp='$CPP $CPPFLAGS'
  3100. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3101. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3102. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3103. if test -n "$ac_tool_prefix"; then
  3104. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3105. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3107. printf %s "checking for $ac_word... " >&6; }
  3108. if test ${ac_cv_prog_CC+y}
  3109. then :
  3110. printf %s "(cached) " >&6
  3111. else case e in #(
  3112. e) if test -n "$CC"; then
  3113. ac_cv_prog_CC="$CC" # Let the user override the test.
  3114. else
  3115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3116. for as_dir in $PATH
  3117. do
  3118. IFS=$as_save_IFS
  3119. case $as_dir in #(((
  3120. '') as_dir=./ ;;
  3121. */) ;;
  3122. *) as_dir=$as_dir/ ;;
  3123. esac
  3124. for ac_exec_ext in '' $ac_executable_extensions; do
  3125. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3126. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3127. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3128. break 2
  3129. fi
  3130. done
  3131. done
  3132. IFS=$as_save_IFS
  3133. fi ;;
  3134. esac
  3135. fi
  3136. CC=$ac_cv_prog_CC
  3137. if test -n "$CC"; then
  3138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3139. printf "%s\n" "$CC" >&6; }
  3140. else
  3141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3142. printf "%s\n" "no" >&6; }
  3143. fi
  3144. fi
  3145. if test -z "$ac_cv_prog_CC"; then
  3146. ac_ct_CC=$CC
  3147. # Extract the first word of "gcc", so it can be a program name with args.
  3148. set dummy gcc; ac_word=$2
  3149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3150. printf %s "checking for $ac_word... " >&6; }
  3151. if test ${ac_cv_prog_ac_ct_CC+y}
  3152. then :
  3153. printf %s "(cached) " >&6
  3154. else case e in #(
  3155. e) if test -n "$ac_ct_CC"; then
  3156. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3157. else
  3158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. for as_dir in $PATH
  3160. do
  3161. IFS=$as_save_IFS
  3162. case $as_dir in #(((
  3163. '') as_dir=./ ;;
  3164. */) ;;
  3165. *) as_dir=$as_dir/ ;;
  3166. esac
  3167. for ac_exec_ext in '' $ac_executable_extensions; do
  3168. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3169. ac_cv_prog_ac_ct_CC="gcc"
  3170. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3171. break 2
  3172. fi
  3173. done
  3174. done
  3175. IFS=$as_save_IFS
  3176. fi ;;
  3177. esac
  3178. fi
  3179. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3180. if test -n "$ac_ct_CC"; then
  3181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3182. printf "%s\n" "$ac_ct_CC" >&6; }
  3183. else
  3184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3185. printf "%s\n" "no" >&6; }
  3186. fi
  3187. if test "x$ac_ct_CC" = x; then
  3188. CC=""
  3189. else
  3190. case $cross_compiling:$ac_tool_warned in
  3191. yes:)
  3192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3193. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3194. ac_tool_warned=yes ;;
  3195. esac
  3196. CC=$ac_ct_CC
  3197. fi
  3198. else
  3199. CC="$ac_cv_prog_CC"
  3200. fi
  3201. if test -z "$CC"; then
  3202. if test -n "$ac_tool_prefix"; then
  3203. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3204. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3206. printf %s "checking for $ac_word... " >&6; }
  3207. if test ${ac_cv_prog_CC+y}
  3208. then :
  3209. printf %s "(cached) " >&6
  3210. else case e in #(
  3211. e) if test -n "$CC"; then
  3212. ac_cv_prog_CC="$CC" # Let the user override the test.
  3213. else
  3214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3215. for as_dir in $PATH
  3216. do
  3217. IFS=$as_save_IFS
  3218. case $as_dir in #(((
  3219. '') as_dir=./ ;;
  3220. */) ;;
  3221. *) as_dir=$as_dir/ ;;
  3222. esac
  3223. for ac_exec_ext in '' $ac_executable_extensions; do
  3224. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3225. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3227. break 2
  3228. fi
  3229. done
  3230. done
  3231. IFS=$as_save_IFS
  3232. fi ;;
  3233. esac
  3234. fi
  3235. CC=$ac_cv_prog_CC
  3236. if test -n "$CC"; then
  3237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3238. printf "%s\n" "$CC" >&6; }
  3239. else
  3240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3241. printf "%s\n" "no" >&6; }
  3242. fi
  3243. fi
  3244. fi
  3245. if test -z "$CC"; then
  3246. # Extract the first word of "cc", so it can be a program name with args.
  3247. set dummy cc; ac_word=$2
  3248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3249. printf %s "checking for $ac_word... " >&6; }
  3250. if test ${ac_cv_prog_CC+y}
  3251. then :
  3252. printf %s "(cached) " >&6
  3253. else case e in #(
  3254. e) if test -n "$CC"; then
  3255. ac_cv_prog_CC="$CC" # Let the user override the test.
  3256. else
  3257. ac_prog_rejected=no
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH
  3260. do
  3261. IFS=$as_save_IFS
  3262. case $as_dir in #(((
  3263. '') as_dir=./ ;;
  3264. */) ;;
  3265. *) as_dir=$as_dir/ ;;
  3266. esac
  3267. for ac_exec_ext in '' $ac_executable_extensions; do
  3268. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3269. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3270. ac_prog_rejected=yes
  3271. continue
  3272. fi
  3273. ac_cv_prog_CC="cc"
  3274. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3275. break 2
  3276. fi
  3277. done
  3278. done
  3279. IFS=$as_save_IFS
  3280. if test $ac_prog_rejected = yes; then
  3281. # We found a bogon in the path, so make sure we never use it.
  3282. set dummy $ac_cv_prog_CC
  3283. shift
  3284. if test $# != 0; then
  3285. # We chose a different compiler from the bogus one.
  3286. # However, it has the same basename, so the bogon will be chosen
  3287. # first if we set CC to just the basename; use the full file name.
  3288. shift
  3289. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3290. fi
  3291. fi
  3292. fi ;;
  3293. esac
  3294. fi
  3295. CC=$ac_cv_prog_CC
  3296. if test -n "$CC"; then
  3297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3298. printf "%s\n" "$CC" >&6; }
  3299. else
  3300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3301. printf "%s\n" "no" >&6; }
  3302. fi
  3303. fi
  3304. if test -z "$CC"; then
  3305. if test -n "$ac_tool_prefix"; then
  3306. for ac_prog in cl.exe
  3307. do
  3308. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3309. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3311. printf %s "checking for $ac_word... " >&6; }
  3312. if test ${ac_cv_prog_CC+y}
  3313. then :
  3314. printf %s "(cached) " >&6
  3315. else case e in #(
  3316. e) if test -n "$CC"; then
  3317. ac_cv_prog_CC="$CC" # Let the user override the test.
  3318. else
  3319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3320. for as_dir in $PATH
  3321. do
  3322. IFS=$as_save_IFS
  3323. case $as_dir in #(((
  3324. '') as_dir=./ ;;
  3325. */) ;;
  3326. *) as_dir=$as_dir/ ;;
  3327. esac
  3328. for ac_exec_ext in '' $ac_executable_extensions; do
  3329. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3330. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3331. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3332. break 2
  3333. fi
  3334. done
  3335. done
  3336. IFS=$as_save_IFS
  3337. fi ;;
  3338. esac
  3339. fi
  3340. CC=$ac_cv_prog_CC
  3341. if test -n "$CC"; then
  3342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3343. printf "%s\n" "$CC" >&6; }
  3344. else
  3345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3346. printf "%s\n" "no" >&6; }
  3347. fi
  3348. test -n "$CC" && break
  3349. done
  3350. fi
  3351. if test -z "$CC"; then
  3352. ac_ct_CC=$CC
  3353. for ac_prog in cl.exe
  3354. do
  3355. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3356. set dummy $ac_prog; ac_word=$2
  3357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3358. printf %s "checking for $ac_word... " >&6; }
  3359. if test ${ac_cv_prog_ac_ct_CC+y}
  3360. then :
  3361. printf %s "(cached) " >&6
  3362. else case e in #(
  3363. e) if test -n "$ac_ct_CC"; then
  3364. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3365. else
  3366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3367. for as_dir in $PATH
  3368. do
  3369. IFS=$as_save_IFS
  3370. case $as_dir in #(((
  3371. '') as_dir=./ ;;
  3372. */) ;;
  3373. *) as_dir=$as_dir/ ;;
  3374. esac
  3375. for ac_exec_ext in '' $ac_executable_extensions; do
  3376. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3377. ac_cv_prog_ac_ct_CC="$ac_prog"
  3378. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3379. break 2
  3380. fi
  3381. done
  3382. done
  3383. IFS=$as_save_IFS
  3384. fi ;;
  3385. esac
  3386. fi
  3387. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3388. if test -n "$ac_ct_CC"; then
  3389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3390. printf "%s\n" "$ac_ct_CC" >&6; }
  3391. else
  3392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3393. printf "%s\n" "no" >&6; }
  3394. fi
  3395. test -n "$ac_ct_CC" && break
  3396. done
  3397. if test "x$ac_ct_CC" = x; then
  3398. CC=""
  3399. else
  3400. case $cross_compiling:$ac_tool_warned in
  3401. yes:)
  3402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3403. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3404. ac_tool_warned=yes ;;
  3405. esac
  3406. CC=$ac_ct_CC
  3407. fi
  3408. fi
  3409. fi
  3410. if test -z "$CC"; then
  3411. if test -n "$ac_tool_prefix"; then
  3412. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3413. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3415. printf %s "checking for $ac_word... " >&6; }
  3416. if test ${ac_cv_prog_CC+y}
  3417. then :
  3418. printf %s "(cached) " >&6
  3419. else case e in #(
  3420. e) if test -n "$CC"; then
  3421. ac_cv_prog_CC="$CC" # Let the user override the test.
  3422. else
  3423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3424. for as_dir in $PATH
  3425. do
  3426. IFS=$as_save_IFS
  3427. case $as_dir in #(((
  3428. '') as_dir=./ ;;
  3429. */) ;;
  3430. *) as_dir=$as_dir/ ;;
  3431. esac
  3432. for ac_exec_ext in '' $ac_executable_extensions; do
  3433. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3434. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3435. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3436. break 2
  3437. fi
  3438. done
  3439. done
  3440. IFS=$as_save_IFS
  3441. fi ;;
  3442. esac
  3443. fi
  3444. CC=$ac_cv_prog_CC
  3445. if test -n "$CC"; then
  3446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3447. printf "%s\n" "$CC" >&6; }
  3448. else
  3449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3450. printf "%s\n" "no" >&6; }
  3451. fi
  3452. fi
  3453. if test -z "$ac_cv_prog_CC"; then
  3454. ac_ct_CC=$CC
  3455. # Extract the first word of "clang", so it can be a program name with args.
  3456. set dummy clang; ac_word=$2
  3457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3458. printf %s "checking for $ac_word... " >&6; }
  3459. if test ${ac_cv_prog_ac_ct_CC+y}
  3460. then :
  3461. printf %s "(cached) " >&6
  3462. else case e in #(
  3463. e) if test -n "$ac_ct_CC"; then
  3464. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3465. else
  3466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3467. for as_dir in $PATH
  3468. do
  3469. IFS=$as_save_IFS
  3470. case $as_dir in #(((
  3471. '') as_dir=./ ;;
  3472. */) ;;
  3473. *) as_dir=$as_dir/ ;;
  3474. esac
  3475. for ac_exec_ext in '' $ac_executable_extensions; do
  3476. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3477. ac_cv_prog_ac_ct_CC="clang"
  3478. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3479. break 2
  3480. fi
  3481. done
  3482. done
  3483. IFS=$as_save_IFS
  3484. fi ;;
  3485. esac
  3486. fi
  3487. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3488. if test -n "$ac_ct_CC"; then
  3489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3490. printf "%s\n" "$ac_ct_CC" >&6; }
  3491. else
  3492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3493. printf "%s\n" "no" >&6; }
  3494. fi
  3495. if test "x$ac_ct_CC" = x; then
  3496. CC=""
  3497. else
  3498. case $cross_compiling:$ac_tool_warned in
  3499. yes:)
  3500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3501. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3502. ac_tool_warned=yes ;;
  3503. esac
  3504. CC=$ac_ct_CC
  3505. fi
  3506. else
  3507. CC="$ac_cv_prog_CC"
  3508. fi
  3509. fi
  3510. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3511. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3512. as_fn_error $? "no acceptable C compiler found in \$PATH
  3513. See 'config.log' for more details" "$LINENO" 5; }
  3514. # Provide some information about the compiler.
  3515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3516. set X $ac_compile
  3517. ac_compiler=$2
  3518. for ac_option in --version -v -V -qversion -version; do
  3519. { { ac_try="$ac_compiler $ac_option >&5"
  3520. case "(($ac_try" in
  3521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3522. *) ac_try_echo=$ac_try;;
  3523. esac
  3524. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3525. printf "%s\n" "$ac_try_echo"; } >&5
  3526. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3527. ac_status=$?
  3528. if test -s conftest.err; then
  3529. sed '10a\
  3530. ... rest of stderr output deleted ...
  3531. 10q' conftest.err >conftest.er1
  3532. cat conftest.er1 >&5
  3533. fi
  3534. rm -f conftest.er1 conftest.err
  3535. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3536. test $ac_status = 0; }
  3537. done
  3538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3539. /* end confdefs.h. */
  3540. int
  3541. main (void)
  3542. {
  3543. ;
  3544. return 0;
  3545. }
  3546. _ACEOF
  3547. ac_clean_files_save=$ac_clean_files
  3548. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3549. # Try to create an executable without -o first, disregard a.out.
  3550. # It will help us diagnose broken compilers, and finding out an intuition
  3551. # of exeext.
  3552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3553. printf %s "checking whether the C compiler works... " >&6; }
  3554. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3555. # The possible output files:
  3556. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3557. ac_rmfiles=
  3558. for ac_file in $ac_files
  3559. do
  3560. case $ac_file in
  3561. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3562. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3563. esac
  3564. done
  3565. rm -f $ac_rmfiles
  3566. if { { ac_try="$ac_link_default"
  3567. case "(($ac_try" in
  3568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3569. *) ac_try_echo=$ac_try;;
  3570. esac
  3571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3572. printf "%s\n" "$ac_try_echo"; } >&5
  3573. (eval "$ac_link_default") 2>&5
  3574. ac_status=$?
  3575. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3576. test $ac_status = 0; }
  3577. then :
  3578. # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
  3579. # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
  3580. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3581. # so that the user can short-circuit this test for compilers unknown to
  3582. # Autoconf.
  3583. for ac_file in $ac_files ''
  3584. do
  3585. test -f "$ac_file" || continue
  3586. case $ac_file in
  3587. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3588. ;;
  3589. [ab].out )
  3590. # We found the default executable, but exeext='' is most
  3591. # certainly right.
  3592. break;;
  3593. *.* )
  3594. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3595. then :; else
  3596. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3597. fi
  3598. # We set ac_cv_exeext here because the later test for it is not
  3599. # safe: cross compilers may not add the suffix if given an '-o'
  3600. # argument, so we may need to know it at that point already.
  3601. # Even if this section looks crufty: it has the advantage of
  3602. # actually working.
  3603. break;;
  3604. * )
  3605. break;;
  3606. esac
  3607. done
  3608. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3609. else case e in #(
  3610. e) ac_file='' ;;
  3611. esac
  3612. fi
  3613. if test -z "$ac_file"
  3614. then :
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3616. printf "%s\n" "no" >&6; }
  3617. printf "%s\n" "$as_me: failed program was:" >&5
  3618. sed 's/^/| /' conftest.$ac_ext >&5
  3619. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3620. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3621. as_fn_error 77 "C compiler cannot create executables
  3622. See 'config.log' for more details" "$LINENO" 5; }
  3623. else case e in #(
  3624. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3625. printf "%s\n" "yes" >&6; } ;;
  3626. esac
  3627. fi
  3628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3629. printf %s "checking for C compiler default output file name... " >&6; }
  3630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3631. printf "%s\n" "$ac_file" >&6; }
  3632. ac_exeext=$ac_cv_exeext
  3633. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3634. ac_clean_files=$ac_clean_files_save
  3635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3636. printf %s "checking for suffix of executables... " >&6; }
  3637. if { { ac_try="$ac_link"
  3638. case "(($ac_try" in
  3639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3640. *) ac_try_echo=$ac_try;;
  3641. esac
  3642. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3643. printf "%s\n" "$ac_try_echo"; } >&5
  3644. (eval "$ac_link") 2>&5
  3645. ac_status=$?
  3646. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3647. test $ac_status = 0; }
  3648. then :
  3649. # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
  3650. # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
  3651. # work properly (i.e., refer to 'conftest.exe'), while it won't with
  3652. # 'rm'.
  3653. for ac_file in conftest.exe conftest conftest.*; do
  3654. test -f "$ac_file" || continue
  3655. case $ac_file in
  3656. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3657. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3658. break;;
  3659. * ) break;;
  3660. esac
  3661. done
  3662. else case e in #(
  3663. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3664. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3665. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3666. See 'config.log' for more details" "$LINENO" 5; } ;;
  3667. esac
  3668. fi
  3669. rm -f conftest conftest$ac_cv_exeext
  3670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3671. printf "%s\n" "$ac_cv_exeext" >&6; }
  3672. rm -f conftest.$ac_ext
  3673. EXEEXT=$ac_cv_exeext
  3674. ac_exeext=$EXEEXT
  3675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3676. /* end confdefs.h. */
  3677. #include <stdio.h>
  3678. int
  3679. main (void)
  3680. {
  3681. FILE *f = fopen ("conftest.out", "w");
  3682. if (!f)
  3683. return 1;
  3684. return ferror (f) || fclose (f) != 0;
  3685. ;
  3686. return 0;
  3687. }
  3688. _ACEOF
  3689. ac_clean_files="$ac_clean_files conftest.out"
  3690. # Check that the compiler produces executables we can run. If not, either
  3691. # the compiler is broken, or we cross compile.
  3692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3693. printf %s "checking whether we are cross compiling... " >&6; }
  3694. if test "$cross_compiling" != yes; then
  3695. { { ac_try="$ac_link"
  3696. case "(($ac_try" in
  3697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3698. *) ac_try_echo=$ac_try;;
  3699. esac
  3700. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3701. printf "%s\n" "$ac_try_echo"; } >&5
  3702. (eval "$ac_link") 2>&5
  3703. ac_status=$?
  3704. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3705. test $ac_status = 0; }
  3706. if { ac_try='./conftest$ac_cv_exeext'
  3707. { { case "(($ac_try" in
  3708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3709. *) ac_try_echo=$ac_try;;
  3710. esac
  3711. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3712. printf "%s\n" "$ac_try_echo"; } >&5
  3713. (eval "$ac_try") 2>&5
  3714. ac_status=$?
  3715. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3716. test $ac_status = 0; }; }; then
  3717. cross_compiling=no
  3718. else
  3719. if test "$cross_compiling" = maybe; then
  3720. cross_compiling=yes
  3721. else
  3722. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3723. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3724. as_fn_error 77 "cannot run C compiled programs.
  3725. If you meant to cross compile, use '--host'.
  3726. See 'config.log' for more details" "$LINENO" 5; }
  3727. fi
  3728. fi
  3729. fi
  3730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3731. printf "%s\n" "$cross_compiling" >&6; }
  3732. rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  3733. conftest.o conftest.obj conftest.out
  3734. ac_clean_files=$ac_clean_files_save
  3735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3736. printf %s "checking for suffix of object files... " >&6; }
  3737. if test ${ac_cv_objext+y}
  3738. then :
  3739. printf %s "(cached) " >&6
  3740. else case e in #(
  3741. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3742. /* end confdefs.h. */
  3743. int
  3744. main (void)
  3745. {
  3746. ;
  3747. return 0;
  3748. }
  3749. _ACEOF
  3750. rm -f conftest.o conftest.obj
  3751. if { { ac_try="$ac_compile"
  3752. case "(($ac_try" in
  3753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3754. *) ac_try_echo=$ac_try;;
  3755. esac
  3756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3757. printf "%s\n" "$ac_try_echo"; } >&5
  3758. (eval "$ac_compile") 2>&5
  3759. ac_status=$?
  3760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3761. test $ac_status = 0; }
  3762. then :
  3763. for ac_file in conftest.o conftest.obj conftest.*; do
  3764. test -f "$ac_file" || continue;
  3765. case $ac_file in
  3766. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3767. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3768. break;;
  3769. esac
  3770. done
  3771. else case e in #(
  3772. e) printf "%s\n" "$as_me: failed program was:" >&5
  3773. sed 's/^/| /' conftest.$ac_ext >&5
  3774. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3775. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3776. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3777. See 'config.log' for more details" "$LINENO" 5; } ;;
  3778. esac
  3779. fi
  3780. rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
  3781. esac
  3782. fi
  3783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3784. printf "%s\n" "$ac_cv_objext" >&6; }
  3785. OBJEXT=$ac_cv_objext
  3786. ac_objext=$OBJEXT
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3788. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3789. if test ${ac_cv_c_compiler_gnu+y}
  3790. then :
  3791. printf %s "(cached) " >&6
  3792. else case e in #(
  3793. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3794. /* end confdefs.h. */
  3795. int
  3796. main (void)
  3797. {
  3798. #ifndef __GNUC__
  3799. choke me
  3800. #endif
  3801. ;
  3802. return 0;
  3803. }
  3804. _ACEOF
  3805. if ac_fn_c_try_compile "$LINENO"
  3806. then :
  3807. ac_compiler_gnu=yes
  3808. else case e in #(
  3809. e) ac_compiler_gnu=no ;;
  3810. esac
  3811. fi
  3812. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3813. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3814. ;;
  3815. esac
  3816. fi
  3817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3818. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3819. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3820. if test $ac_compiler_gnu = yes; then
  3821. GCC=yes
  3822. else
  3823. GCC=
  3824. fi
  3825. ac_test_CFLAGS=${CFLAGS+y}
  3826. ac_save_CFLAGS=$CFLAGS
  3827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3828. printf %s "checking whether $CC accepts -g... " >&6; }
  3829. if test ${ac_cv_prog_cc_g+y}
  3830. then :
  3831. printf %s "(cached) " >&6
  3832. else case e in #(
  3833. e) ac_save_c_werror_flag=$ac_c_werror_flag
  3834. ac_c_werror_flag=yes
  3835. ac_cv_prog_cc_g=no
  3836. CFLAGS="-g"
  3837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3838. /* end confdefs.h. */
  3839. int
  3840. main (void)
  3841. {
  3842. ;
  3843. return 0;
  3844. }
  3845. _ACEOF
  3846. if ac_fn_c_try_compile "$LINENO"
  3847. then :
  3848. ac_cv_prog_cc_g=yes
  3849. else case e in #(
  3850. e) CFLAGS=""
  3851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3852. /* end confdefs.h. */
  3853. int
  3854. main (void)
  3855. {
  3856. ;
  3857. return 0;
  3858. }
  3859. _ACEOF
  3860. if ac_fn_c_try_compile "$LINENO"
  3861. then :
  3862. else case e in #(
  3863. e) ac_c_werror_flag=$ac_save_c_werror_flag
  3864. CFLAGS="-g"
  3865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3866. /* end confdefs.h. */
  3867. int
  3868. main (void)
  3869. {
  3870. ;
  3871. return 0;
  3872. }
  3873. _ACEOF
  3874. if ac_fn_c_try_compile "$LINENO"
  3875. then :
  3876. ac_cv_prog_cc_g=yes
  3877. fi
  3878. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3879. esac
  3880. fi
  3881. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3882. esac
  3883. fi
  3884. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3885. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  3886. esac
  3887. fi
  3888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3889. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3890. if test $ac_test_CFLAGS; then
  3891. CFLAGS=$ac_save_CFLAGS
  3892. elif test $ac_cv_prog_cc_g = yes; then
  3893. if test "$GCC" = yes; then
  3894. CFLAGS="-g -O2"
  3895. else
  3896. CFLAGS="-g"
  3897. fi
  3898. else
  3899. if test "$GCC" = yes; then
  3900. CFLAGS="-O2"
  3901. else
  3902. CFLAGS=
  3903. fi
  3904. fi
  3905. ac_prog_cc_stdc=no
  3906. if test x$ac_prog_cc_stdc = xno
  3907. then :
  3908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3909. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3910. if test ${ac_cv_prog_cc_c11+y}
  3911. then :
  3912. printf %s "(cached) " >&6
  3913. else case e in #(
  3914. e) ac_cv_prog_cc_c11=no
  3915. ac_save_CC=$CC
  3916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3917. /* end confdefs.h. */
  3918. $ac_c_conftest_c11_program
  3919. _ACEOF
  3920. for ac_arg in '' -std=gnu11
  3921. do
  3922. CC="$ac_save_CC $ac_arg"
  3923. if ac_fn_c_try_compile "$LINENO"
  3924. then :
  3925. ac_cv_prog_cc_c11=$ac_arg
  3926. fi
  3927. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3928. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3929. done
  3930. rm -f conftest.$ac_ext
  3931. CC=$ac_save_CC ;;
  3932. esac
  3933. fi
  3934. if test "x$ac_cv_prog_cc_c11" = xno
  3935. then :
  3936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3937. printf "%s\n" "unsupported" >&6; }
  3938. else case e in #(
  3939. e) if test "x$ac_cv_prog_cc_c11" = x
  3940. then :
  3941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3942. printf "%s\n" "none needed" >&6; }
  3943. else case e in #(
  3944. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3945. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3946. CC="$CC $ac_cv_prog_cc_c11" ;;
  3947. esac
  3948. fi
  3949. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3950. ac_prog_cc_stdc=c11 ;;
  3951. esac
  3952. fi
  3953. fi
  3954. if test x$ac_prog_cc_stdc = xno
  3955. then :
  3956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3957. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3958. if test ${ac_cv_prog_cc_c99+y}
  3959. then :
  3960. printf %s "(cached) " >&6
  3961. else case e in #(
  3962. e) ac_cv_prog_cc_c99=no
  3963. ac_save_CC=$CC
  3964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3965. /* end confdefs.h. */
  3966. $ac_c_conftest_c99_program
  3967. _ACEOF
  3968. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3969. do
  3970. CC="$ac_save_CC $ac_arg"
  3971. if ac_fn_c_try_compile "$LINENO"
  3972. then :
  3973. ac_cv_prog_cc_c99=$ac_arg
  3974. fi
  3975. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3976. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3977. done
  3978. rm -f conftest.$ac_ext
  3979. CC=$ac_save_CC ;;
  3980. esac
  3981. fi
  3982. if test "x$ac_cv_prog_cc_c99" = xno
  3983. then :
  3984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3985. printf "%s\n" "unsupported" >&6; }
  3986. else case e in #(
  3987. e) if test "x$ac_cv_prog_cc_c99" = x
  3988. then :
  3989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3990. printf "%s\n" "none needed" >&6; }
  3991. else case e in #(
  3992. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3993. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3994. CC="$CC $ac_cv_prog_cc_c99" ;;
  3995. esac
  3996. fi
  3997. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3998. ac_prog_cc_stdc=c99 ;;
  3999. esac
  4000. fi
  4001. fi
  4002. if test x$ac_prog_cc_stdc = xno
  4003. then :
  4004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4005. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4006. if test ${ac_cv_prog_cc_c89+y}
  4007. then :
  4008. printf %s "(cached) " >&6
  4009. else case e in #(
  4010. e) ac_cv_prog_cc_c89=no
  4011. ac_save_CC=$CC
  4012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4013. /* end confdefs.h. */
  4014. $ac_c_conftest_c89_program
  4015. _ACEOF
  4016. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4017. do
  4018. CC="$ac_save_CC $ac_arg"
  4019. if ac_fn_c_try_compile "$LINENO"
  4020. then :
  4021. ac_cv_prog_cc_c89=$ac_arg
  4022. fi
  4023. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4024. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4025. done
  4026. rm -f conftest.$ac_ext
  4027. CC=$ac_save_CC ;;
  4028. esac
  4029. fi
  4030. if test "x$ac_cv_prog_cc_c89" = xno
  4031. then :
  4032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4033. printf "%s\n" "unsupported" >&6; }
  4034. else case e in #(
  4035. e) if test "x$ac_cv_prog_cc_c89" = x
  4036. then :
  4037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4038. printf "%s\n" "none needed" >&6; }
  4039. else case e in #(
  4040. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4041. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4042. CC="$CC $ac_cv_prog_cc_c89" ;;
  4043. esac
  4044. fi
  4045. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4046. ac_prog_cc_stdc=c89 ;;
  4047. esac
  4048. fi
  4049. fi
  4050. ac_ext=c
  4051. ac_cpp='$CPP $CPPFLAGS'
  4052. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4053. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4054. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4055. ac_ext=c
  4056. ac_cpp='$CPP $CPPFLAGS'
  4057. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4058. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4059. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4061. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4062. if test ${am_cv_prog_cc_c_o+y}
  4063. then :
  4064. printf %s "(cached) " >&6
  4065. else case e in #(
  4066. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4067. /* end confdefs.h. */
  4068. int
  4069. main (void)
  4070. {
  4071. ;
  4072. return 0;
  4073. }
  4074. _ACEOF
  4075. # Make sure it works both with $CC and with simple cc.
  4076. # Following AC_PROG_CC_C_O, we do the test twice because some
  4077. # compilers refuse to overwrite an existing .o file with -o,
  4078. # though they will create one.
  4079. am_cv_prog_cc_c_o=yes
  4080. for am_i in 1 2; do
  4081. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4082. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4083. ac_status=$?
  4084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4085. (exit $ac_status); } \
  4086. && test -f conftest2.$ac_objext; then
  4087. : OK
  4088. else
  4089. am_cv_prog_cc_c_o=no
  4090. break
  4091. fi
  4092. done
  4093. rm -f core conftest*
  4094. unset am_i ;;
  4095. esac
  4096. fi
  4097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4098. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4099. if test "$am_cv_prog_cc_c_o" != yes; then
  4100. # Losing compiler, so override with the script.
  4101. # FIXME: It is wrong to rewrite CC.
  4102. # But if we don't then we get into trouble of one sort or another.
  4103. # A longer-term fix would be to have automake use am__CC in this case,
  4104. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4105. CC="$am_aux_dir/compile $CC"
  4106. fi
  4107. ac_ext=c
  4108. ac_cpp='$CPP $CPPFLAGS'
  4109. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4110. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4111. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4112. DEPDIR="${am__leading_dot}deps"
  4113. ac_config_commands="$ac_config_commands depfiles"
  4114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4115. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4116. cat > confinc.mk << 'END'
  4117. am__doit:
  4118. @echo this is the am__doit target >confinc.out
  4119. .PHONY: am__doit
  4120. END
  4121. am__include="#"
  4122. am__quote=
  4123. # BSD make does it like this.
  4124. echo '.include "confinc.mk" # ignored' > confmf.BSD
  4125. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  4126. echo 'include confinc.mk # ignored' > confmf.GNU
  4127. _am_result=no
  4128. for s in GNU BSD; do
  4129. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  4130. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  4131. ac_status=$?
  4132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4133. (exit $ac_status); }
  4134. case $?:`cat confinc.out 2>/dev/null` in #(
  4135. '0:this is the am__doit target') :
  4136. case $s in #(
  4137. BSD) :
  4138. am__include='.include' am__quote='"' ;; #(
  4139. *) :
  4140. am__include='include' am__quote='' ;;
  4141. esac ;; #(
  4142. *) :
  4143. ;;
  4144. esac
  4145. if test "$am__include" != "#"; then
  4146. _am_result="yes ($s style)"
  4147. break
  4148. fi
  4149. done
  4150. rm -f confinc.* confmf.*
  4151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4152. printf "%s\n" "${_am_result}" >&6; }
  4153. # Check whether --enable-dependency-tracking was given.
  4154. if test ${enable_dependency_tracking+y}
  4155. then :
  4156. enableval=$enable_dependency_tracking;
  4157. fi
  4158. if test "x$enable_dependency_tracking" != xno; then
  4159. am_depcomp="$ac_aux_dir/depcomp"
  4160. AMDEPBACKSLASH='\'
  4161. am__nodep='_no'
  4162. fi
  4163. if test "x$enable_dependency_tracking" != xno; then
  4164. AMDEP_TRUE=
  4165. AMDEP_FALSE='#'
  4166. else
  4167. AMDEP_TRUE='#'
  4168. AMDEP_FALSE=
  4169. fi
  4170. depcc="$CC" am_compiler_list=
  4171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4172. printf %s "checking dependency style of $depcc... " >&6; }
  4173. if test ${am_cv_CC_dependencies_compiler_type+y}
  4174. then :
  4175. printf %s "(cached) " >&6
  4176. else case e in #(
  4177. e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4178. # We make a subdir and do the tests there. Otherwise we can end up
  4179. # making bogus files that we don't know about and never remove. For
  4180. # instance it was reported that on HP-UX the gcc test will end up
  4181. # making a dummy file named 'D' -- because '-MD' means "put the output
  4182. # in D".
  4183. rm -rf conftest.dir
  4184. mkdir conftest.dir
  4185. # Copy depcomp to subdir because otherwise we won't find it if we're
  4186. # using a relative directory.
  4187. cp "$am_depcomp" conftest.dir
  4188. cd conftest.dir
  4189. # We will build objects and dependencies in a subdirectory because
  4190. # it helps to detect inapplicable dependency modes. For instance
  4191. # both Tru64's cc and ICC support -MD to output dependencies as a
  4192. # side effect of compilation, but ICC will put the dependencies in
  4193. # the current directory while Tru64 will put them in the object
  4194. # directory.
  4195. mkdir sub
  4196. am_cv_CC_dependencies_compiler_type=none
  4197. if test "$am_compiler_list" = ""; then
  4198. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4199. fi
  4200. am__universal=false
  4201. case " $depcc " in #(
  4202. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4203. esac
  4204. for depmode in $am_compiler_list; do
  4205. # Setup a source with many dependencies, because some compilers
  4206. # like to wrap large dependency lists on column 80 (with \), and
  4207. # we should not choose a depcomp mode which is confused by this.
  4208. #
  4209. # We need to recreate these files for each test, as the compiler may
  4210. # overwrite some of them when testing with obscure command lines.
  4211. # This happens at least with the AIX C compiler.
  4212. : > sub/conftest.c
  4213. for i in 1 2 3 4 5 6; do
  4214. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4215. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4216. # Solaris 10 /bin/sh.
  4217. echo '/* dummy */' > sub/conftst$i.h
  4218. done
  4219. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4220. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4221. # mode. It turns out that the SunPro C++ compiler does not properly
  4222. # handle '-M -o', and we need to detect this. Also, some Intel
  4223. # versions had trouble with output in subdirs.
  4224. am__obj=sub/conftest.${OBJEXT-o}
  4225. am__minus_obj="-o $am__obj"
  4226. case $depmode in
  4227. gcc)
  4228. # This depmode causes a compiler race in universal mode.
  4229. test "$am__universal" = false || continue
  4230. ;;
  4231. nosideeffect)
  4232. # After this tag, mechanisms are not by side-effect, so they'll
  4233. # only be used when explicitly requested.
  4234. if test "x$enable_dependency_tracking" = xyes; then
  4235. continue
  4236. else
  4237. break
  4238. fi
  4239. ;;
  4240. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4241. # This compiler won't grok '-c -o', but also, the minuso test has
  4242. # not run yet. These depmodes are late enough in the game, and
  4243. # so weak that their functioning should not be impacted.
  4244. am__obj=conftest.${OBJEXT-o}
  4245. am__minus_obj=
  4246. ;;
  4247. none) break ;;
  4248. esac
  4249. if depmode=$depmode \
  4250. source=sub/conftest.c object=$am__obj \
  4251. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4252. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4253. >/dev/null 2>conftest.err &&
  4254. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4255. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4256. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4257. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4258. # icc doesn't choke on unknown options, it will just issue warnings
  4259. # or remarks (even with -Werror). So we grep stderr for any message
  4260. # that says an option was ignored or not supported.
  4261. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4262. # icc: Command line warning: ignoring option '-M'; no argument required
  4263. # The diagnosis changed in icc 8.0:
  4264. # icc: Command line remark: option '-MP' not supported
  4265. if (grep 'ignoring option' conftest.err ||
  4266. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4267. am_cv_CC_dependencies_compiler_type=$depmode
  4268. break
  4269. fi
  4270. fi
  4271. done
  4272. cd ..
  4273. rm -rf conftest.dir
  4274. else
  4275. am_cv_CC_dependencies_compiler_type=none
  4276. fi
  4277. ;;
  4278. esac
  4279. fi
  4280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4281. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4282. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4283. if
  4284. test "x$enable_dependency_tracking" != xno \
  4285. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4286. am__fastdepCC_TRUE=
  4287. am__fastdepCC_FALSE='#'
  4288. else
  4289. am__fastdepCC_TRUE='#'
  4290. am__fastdepCC_FALSE=
  4291. fi
  4292. ac_ext=c
  4293. ac_cpp='$CPP $CPPFLAGS'
  4294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4298. printf %s "checking how to run the C preprocessor... " >&6; }
  4299. # On Suns, sometimes $CPP names a directory.
  4300. if test -n "$CPP" && test -d "$CPP"; then
  4301. CPP=
  4302. fi
  4303. if test -z "$CPP"; then
  4304. if test ${ac_cv_prog_CPP+y}
  4305. then :
  4306. printf %s "(cached) " >&6
  4307. else case e in #(
  4308. e) # Double quotes because $CC needs to be expanded
  4309. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  4310. do
  4311. ac_preproc_ok=false
  4312. for ac_c_preproc_warn_flag in '' yes
  4313. do
  4314. # Use a header file that comes with gcc, so configuring glibc
  4315. # with a fresh cross-compiler works.
  4316. # On the NeXT, cc -E runs the code through the compiler's parser,
  4317. # not just through cpp. "Syntax error" is here to catch this case.
  4318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4319. /* end confdefs.h. */
  4320. #include <limits.h>
  4321. Syntax error
  4322. _ACEOF
  4323. if ac_fn_c_try_cpp "$LINENO"
  4324. then :
  4325. else case e in #(
  4326. e) # Broken: fails on valid input.
  4327. continue ;;
  4328. esac
  4329. fi
  4330. rm -f conftest.err conftest.i conftest.$ac_ext
  4331. # OK, works on sane cases. Now check whether nonexistent headers
  4332. # can be detected and how.
  4333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4334. /* end confdefs.h. */
  4335. #include <ac_nonexistent.h>
  4336. _ACEOF
  4337. if ac_fn_c_try_cpp "$LINENO"
  4338. then :
  4339. # Broken: success on invalid input.
  4340. continue
  4341. else case e in #(
  4342. e) # Passes both tests.
  4343. ac_preproc_ok=:
  4344. break ;;
  4345. esac
  4346. fi
  4347. rm -f conftest.err conftest.i conftest.$ac_ext
  4348. done
  4349. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4350. rm -f conftest.i conftest.err conftest.$ac_ext
  4351. if $ac_preproc_ok
  4352. then :
  4353. break
  4354. fi
  4355. done
  4356. ac_cv_prog_CPP=$CPP
  4357. ;;
  4358. esac
  4359. fi
  4360. CPP=$ac_cv_prog_CPP
  4361. else
  4362. ac_cv_prog_CPP=$CPP
  4363. fi
  4364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4365. printf "%s\n" "$CPP" >&6; }
  4366. ac_preproc_ok=false
  4367. for ac_c_preproc_warn_flag in '' yes
  4368. do
  4369. # Use a header file that comes with gcc, so configuring glibc
  4370. # with a fresh cross-compiler works.
  4371. # On the NeXT, cc -E runs the code through the compiler's parser,
  4372. # not just through cpp. "Syntax error" is here to catch this case.
  4373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4374. /* end confdefs.h. */
  4375. #include <limits.h>
  4376. Syntax error
  4377. _ACEOF
  4378. if ac_fn_c_try_cpp "$LINENO"
  4379. then :
  4380. else case e in #(
  4381. e) # Broken: fails on valid input.
  4382. continue ;;
  4383. esac
  4384. fi
  4385. rm -f conftest.err conftest.i conftest.$ac_ext
  4386. # OK, works on sane cases. Now check whether nonexistent headers
  4387. # can be detected and how.
  4388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4389. /* end confdefs.h. */
  4390. #include <ac_nonexistent.h>
  4391. _ACEOF
  4392. if ac_fn_c_try_cpp "$LINENO"
  4393. then :
  4394. # Broken: success on invalid input.
  4395. continue
  4396. else case e in #(
  4397. e) # Passes both tests.
  4398. ac_preproc_ok=:
  4399. break ;;
  4400. esac
  4401. fi
  4402. rm -f conftest.err conftest.i conftest.$ac_ext
  4403. done
  4404. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4405. rm -f conftest.i conftest.err conftest.$ac_ext
  4406. if $ac_preproc_ok
  4407. then :
  4408. else case e in #(
  4409. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4410. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4411. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4412. See 'config.log' for more details" "$LINENO" 5; } ;;
  4413. esac
  4414. fi
  4415. ac_ext=c
  4416. ac_cpp='$CPP $CPPFLAGS'
  4417. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4418. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4419. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4421. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4422. set x ${MAKE-make}
  4423. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4424. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  4425. then :
  4426. printf %s "(cached) " >&6
  4427. else case e in #(
  4428. e) cat >conftest.make <<\_ACEOF
  4429. SHELL = /bin/sh
  4430. all:
  4431. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4432. _ACEOF
  4433. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4434. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4435. *@@@%%%=?*=@@@%%%*)
  4436. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4437. *)
  4438. eval ac_cv_prog_make_${ac_make}_set=no;;
  4439. esac
  4440. rm -f conftest.make ;;
  4441. esac
  4442. fi
  4443. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4445. printf "%s\n" "yes" >&6; }
  4446. SET_MAKE=
  4447. else
  4448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4449. printf "%s\n" "no" >&6; }
  4450. SET_MAKE="MAKE=${MAKE-make}"
  4451. fi
  4452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4453. printf %s "checking whether ln -s works... " >&6; }
  4454. LN_S=$as_ln_s
  4455. if test "$LN_S" = "ln -s"; then
  4456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4457. printf "%s\n" "yes" >&6; }
  4458. else
  4459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4460. printf "%s\n" "no, using $LN_S" >&6; }
  4461. fi
  4462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4463. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4464. if test ${ac_cv_path_GREP+y}
  4465. then :
  4466. printf %s "(cached) " >&6
  4467. else case e in #(
  4468. e) if test -z "$GREP"; then
  4469. ac_path_GREP_found=false
  4470. # Loop through the user's path and test for each of PROGNAME-LIST
  4471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4472. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4473. do
  4474. IFS=$as_save_IFS
  4475. case $as_dir in #(((
  4476. '') as_dir=./ ;;
  4477. */) ;;
  4478. *) as_dir=$as_dir/ ;;
  4479. esac
  4480. for ac_prog in grep ggrep
  4481. do
  4482. for ac_exec_ext in '' $ac_executable_extensions; do
  4483. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4484. as_fn_executable_p "$ac_path_GREP" || continue
  4485. # Check for GNU ac_path_GREP and select it if it is found.
  4486. # Check for GNU $ac_path_GREP
  4487. case `"$ac_path_GREP" --version 2>&1` in #(
  4488. *GNU*)
  4489. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4490. #(
  4491. *)
  4492. ac_count=0
  4493. printf %s 0123456789 >"conftest.in"
  4494. while :
  4495. do
  4496. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4497. mv "conftest.tmp" "conftest.in"
  4498. cp "conftest.in" "conftest.nl"
  4499. printf "%s\n" 'GREP' >> "conftest.nl"
  4500. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4501. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4502. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4503. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4504. # Best one so far, save it but keep looking for a better one
  4505. ac_cv_path_GREP="$ac_path_GREP"
  4506. ac_path_GREP_max=$ac_count
  4507. fi
  4508. # 10*(2^10) chars as input seems more than enough
  4509. test $ac_count -gt 10 && break
  4510. done
  4511. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4512. esac
  4513. $ac_path_GREP_found && break 3
  4514. done
  4515. done
  4516. done
  4517. IFS=$as_save_IFS
  4518. if test -z "$ac_cv_path_GREP"; then
  4519. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4520. fi
  4521. else
  4522. ac_cv_path_GREP=$GREP
  4523. fi
  4524. ;;
  4525. esac
  4526. fi
  4527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4528. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4529. GREP="$ac_cv_path_GREP"
  4530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4531. printf %s "checking for egrep... " >&6; }
  4532. if test ${ac_cv_path_EGREP+y}
  4533. then :
  4534. printf %s "(cached) " >&6
  4535. else case e in #(
  4536. e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4537. then ac_cv_path_EGREP="$GREP -E"
  4538. else
  4539. if test -z "$EGREP"; then
  4540. ac_path_EGREP_found=false
  4541. # Loop through the user's path and test for each of PROGNAME-LIST
  4542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4543. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4544. do
  4545. IFS=$as_save_IFS
  4546. case $as_dir in #(((
  4547. '') as_dir=./ ;;
  4548. */) ;;
  4549. *) as_dir=$as_dir/ ;;
  4550. esac
  4551. for ac_prog in egrep
  4552. do
  4553. for ac_exec_ext in '' $ac_executable_extensions; do
  4554. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4555. as_fn_executable_p "$ac_path_EGREP" || continue
  4556. # Check for GNU ac_path_EGREP and select it if it is found.
  4557. # Check for GNU $ac_path_EGREP
  4558. case `"$ac_path_EGREP" --version 2>&1` in #(
  4559. *GNU*)
  4560. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4561. #(
  4562. *)
  4563. ac_count=0
  4564. printf %s 0123456789 >"conftest.in"
  4565. while :
  4566. do
  4567. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4568. mv "conftest.tmp" "conftest.in"
  4569. cp "conftest.in" "conftest.nl"
  4570. printf "%s\n" 'EGREP' >> "conftest.nl"
  4571. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4572. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4573. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4574. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4575. # Best one so far, save it but keep looking for a better one
  4576. ac_cv_path_EGREP="$ac_path_EGREP"
  4577. ac_path_EGREP_max=$ac_count
  4578. fi
  4579. # 10*(2^10) chars as input seems more than enough
  4580. test $ac_count -gt 10 && break
  4581. done
  4582. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4583. esac
  4584. $ac_path_EGREP_found && break 3
  4585. done
  4586. done
  4587. done
  4588. IFS=$as_save_IFS
  4589. if test -z "$ac_cv_path_EGREP"; then
  4590. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4591. fi
  4592. else
  4593. ac_cv_path_EGREP=$EGREP
  4594. fi
  4595. fi ;;
  4596. esac
  4597. fi
  4598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4599. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4600. EGREP="$ac_cv_path_EGREP"
  4601. EGREP_TRADITIONAL=$EGREP
  4602. ac_cv_path_EGREP_TRADITIONAL=$EGREP
  4603. if test -n "$ac_tool_prefix"; then
  4604. for ac_prog in ar lib "link -lib"
  4605. do
  4606. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4607. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4609. printf %s "checking for $ac_word... " >&6; }
  4610. if test ${ac_cv_prog_AR+y}
  4611. then :
  4612. printf %s "(cached) " >&6
  4613. else case e in #(
  4614. e) if test -n "$AR"; then
  4615. ac_cv_prog_AR="$AR" # Let the user override the test.
  4616. else
  4617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4618. for as_dir in $PATH
  4619. do
  4620. IFS=$as_save_IFS
  4621. case $as_dir in #(((
  4622. '') as_dir=./ ;;
  4623. */) ;;
  4624. *) as_dir=$as_dir/ ;;
  4625. esac
  4626. for ac_exec_ext in '' $ac_executable_extensions; do
  4627. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4628. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4629. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4630. break 2
  4631. fi
  4632. done
  4633. done
  4634. IFS=$as_save_IFS
  4635. fi ;;
  4636. esac
  4637. fi
  4638. AR=$ac_cv_prog_AR
  4639. if test -n "$AR"; then
  4640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4641. printf "%s\n" "$AR" >&6; }
  4642. else
  4643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4644. printf "%s\n" "no" >&6; }
  4645. fi
  4646. test -n "$AR" && break
  4647. done
  4648. fi
  4649. if test -z "$AR"; then
  4650. ac_ct_AR=$AR
  4651. for ac_prog in ar lib "link -lib"
  4652. do
  4653. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4654. set dummy $ac_prog; ac_word=$2
  4655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4656. printf %s "checking for $ac_word... " >&6; }
  4657. if test ${ac_cv_prog_ac_ct_AR+y}
  4658. then :
  4659. printf %s "(cached) " >&6
  4660. else case e in #(
  4661. e) if test -n "$ac_ct_AR"; then
  4662. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4663. else
  4664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4665. for as_dir in $PATH
  4666. do
  4667. IFS=$as_save_IFS
  4668. case $as_dir in #(((
  4669. '') as_dir=./ ;;
  4670. */) ;;
  4671. *) as_dir=$as_dir/ ;;
  4672. esac
  4673. for ac_exec_ext in '' $ac_executable_extensions; do
  4674. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4675. ac_cv_prog_ac_ct_AR="$ac_prog"
  4676. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4677. break 2
  4678. fi
  4679. done
  4680. done
  4681. IFS=$as_save_IFS
  4682. fi ;;
  4683. esac
  4684. fi
  4685. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4686. if test -n "$ac_ct_AR"; then
  4687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4688. printf "%s\n" "$ac_ct_AR" >&6; }
  4689. else
  4690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4691. printf "%s\n" "no" >&6; }
  4692. fi
  4693. test -n "$ac_ct_AR" && break
  4694. done
  4695. if test "x$ac_ct_AR" = x; then
  4696. AR="false"
  4697. else
  4698. case $cross_compiling:$ac_tool_warned in
  4699. yes:)
  4700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4701. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4702. ac_tool_warned=yes ;;
  4703. esac
  4704. AR=$ac_ct_AR
  4705. fi
  4706. fi
  4707. : ${AR=ar}
  4708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4709. printf %s "checking the archiver ($AR) interface... " >&6; }
  4710. if test ${am_cv_ar_interface+y}
  4711. then :
  4712. printf %s "(cached) " >&6
  4713. else case e in #(
  4714. e) ac_ext=c
  4715. ac_cpp='$CPP $CPPFLAGS'
  4716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4719. am_cv_ar_interface=ar
  4720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4721. /* end confdefs.h. */
  4722. int some_variable = 0;
  4723. _ACEOF
  4724. if ac_fn_c_try_compile "$LINENO"
  4725. then :
  4726. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4727. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4728. (eval $am_ar_try) 2>&5
  4729. ac_status=$?
  4730. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4731. test $ac_status = 0; }
  4732. if test "$ac_status" -eq 0; then
  4733. am_cv_ar_interface=ar
  4734. else
  4735. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4736. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4737. (eval $am_ar_try) 2>&5
  4738. ac_status=$?
  4739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4740. test $ac_status = 0; }
  4741. if test "$ac_status" -eq 0; then
  4742. am_cv_ar_interface=lib
  4743. else
  4744. am_cv_ar_interface=unknown
  4745. fi
  4746. fi
  4747. rm -f conftest.lib libconftest.a
  4748. fi
  4749. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4750. ac_ext=c
  4751. ac_cpp='$CPP $CPPFLAGS'
  4752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4754. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4755. ;;
  4756. esac
  4757. fi
  4758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4759. printf "%s\n" "$am_cv_ar_interface" >&6; }
  4760. case $am_cv_ar_interface in
  4761. ar)
  4762. ;;
  4763. lib)
  4764. # Microsoft lib, so override with the ar-lib wrapper script.
  4765. # FIXME: It is wrong to rewrite AR.
  4766. # But if we don't then we get into trouble of one sort or another.
  4767. # A longer-term fix would be to have automake use am__AR in this case,
  4768. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4769. # similar.
  4770. AR="$am_aux_dir/ar-lib $AR"
  4771. ;;
  4772. unknown)
  4773. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4774. ;;
  4775. esac
  4776. # Check if LD supports linker scripts,
  4777. # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
  4778. # Check whether --enable-ld-version-script was given.
  4779. if test ${enable_ld_version_script+y}
  4780. then :
  4781. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  4782. fi
  4783. if test -z "$have_ld_version_script"; then
  4784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  4785. printf %s "checking if LD -Wl,--version-script works... " >&6; }
  4786. save_LDFLAGS="$LDFLAGS"
  4787. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  4788. cat > conftest.map <<EOF
  4789. VERS_1 {
  4790. global: sym;
  4791. };
  4792. VERS_2 {
  4793. global: sym;
  4794. } VERS_1;
  4795. EOF
  4796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4797. /* end confdefs.h. */
  4798. int
  4799. main (void)
  4800. {
  4801. ;
  4802. return 0;
  4803. }
  4804. _ACEOF
  4805. if ac_fn_c_try_link "$LINENO"
  4806. then :
  4807. have_ld_version_script=yes
  4808. else case e in #(
  4809. e) have_ld_version_script=no ;;
  4810. esac
  4811. fi
  4812. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4813. conftest$ac_exeext conftest.$ac_ext
  4814. rm -f conftest.map
  4815. LDFLAGS="$save_LDFLAGS"
  4816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  4817. printf "%s\n" "$have_ld_version_script" >&6; }
  4818. fi
  4819. if test "$have_ld_version_script" = "yes"; then
  4820. HAVE_LD_VERSION_SCRIPT_TRUE=
  4821. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  4822. else
  4823. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  4824. HAVE_LD_VERSION_SCRIPT_FALSE=
  4825. fi
  4826. # See if compiler supports prototypes.
  4827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
  4828. printf %s "checking for function prototypes... " >&6; }
  4829. if test ${ijg_cv_have_prototypes+y}
  4830. then :
  4831. printf %s "(cached) " >&6
  4832. else case e in #(
  4833. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4834. /* end confdefs.h. */
  4835. int testfunction (int arg1, int * arg2); /* check prototypes */
  4836. struct methods_struct { /* check method-pointer declarations */
  4837. int (*error_exit) (char *msgtext);
  4838. int (*trace_message) (char *msgtext);
  4839. int (*another_method) (void);
  4840. };
  4841. int testfunction (int arg1, int * arg2) /* check definitions */
  4842. { return arg2[arg1]; }
  4843. int test2function (void) /* check void arg list */
  4844. { return 0; }
  4845. _ACEOF
  4846. if ac_fn_c_try_compile "$LINENO"
  4847. then :
  4848. ijg_cv_have_prototypes=yes
  4849. else case e in #(
  4850. e) ijg_cv_have_prototypes=no ;;
  4851. esac
  4852. fi
  4853. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4854. esac
  4855. fi
  4856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
  4857. printf "%s\n" "$ijg_cv_have_prototypes" >&6; }
  4858. if test $ijg_cv_have_prototypes = yes; then
  4859. printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h
  4860. else
  4861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler does not seem to know about function prototypes.
  4862. Perhaps it needs a special switch to enable ANSI C mode.
  4863. If so, we recommend running configure like this:
  4864. ./configure CC='cc -switch'
  4865. where -switch is the proper switch." >&5
  4866. printf "%s\n" "$as_me: WARNING: Your compiler does not seem to know about function prototypes.
  4867. Perhaps it needs a special switch to enable ANSI C mode.
  4868. If so, we recommend running configure like this:
  4869. ./configure CC='cc -switch'
  4870. where -switch is the proper switch." >&2;}
  4871. fi
  4872. # Check header files
  4873. ac_header= ac_cache=
  4874. for ac_item in $ac_header_c_list
  4875. do
  4876. if test $ac_cache; then
  4877. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4878. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4879. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4880. fi
  4881. ac_header= ac_cache=
  4882. elif test $ac_header; then
  4883. ac_cache=$ac_item
  4884. else
  4885. ac_header=$ac_item
  4886. fi
  4887. done
  4888. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4889. then :
  4890. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4891. fi
  4892. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  4893. if test "x$ac_cv_header_stddef_h" = xyes
  4894. then :
  4895. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  4896. fi
  4897. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4898. if test "x$ac_cv_header_stdlib_h" = xyes
  4899. then :
  4900. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  4901. fi
  4902. ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  4903. if test "x$ac_cv_header_locale_h" = xyes
  4904. then :
  4905. printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
  4906. fi
  4907. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  4908. if test "x$ac_cv_header_string_h" = xyes
  4909. then :
  4910. else case e in #(
  4911. e)
  4912. printf "%s\n" "#define NEED_BSD_STRINGS 1" >>confdefs.h
  4913. ;;
  4914. esac
  4915. fi
  4916. # See whether type size_t is defined in any ANSI-standard places;
  4917. # if not, perhaps it is defined in <sys/types.h>.
  4918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
  4919. printf %s "checking for size_t... " >&6; }
  4920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4921. /* end confdefs.h. */
  4922. #ifdef HAVE_STDDEF_H
  4923. #include <stddef.h>
  4924. #endif
  4925. #ifdef HAVE_STDLIB_H
  4926. #include <stdlib.h>
  4927. #endif
  4928. #include <stdio.h>
  4929. #ifdef NEED_BSD_STRINGS
  4930. #include <strings.h>
  4931. #else
  4932. #include <string.h>
  4933. #endif
  4934. typedef size_t my_size_t;
  4935. int
  4936. main (void)
  4937. {
  4938. my_size_t foovar;
  4939. ;
  4940. return 0;
  4941. }
  4942. _ACEOF
  4943. if ac_fn_c_try_compile "$LINENO"
  4944. then :
  4945. ijg_size_t_ok=yes
  4946. else case e in #(
  4947. e) ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h" ;;
  4948. esac
  4949. fi
  4950. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
  4952. printf "%s\n" "$ijg_size_t_ok" >&6; }
  4953. if test "$ijg_size_t_ok" != yes; then
  4954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
  4955. printf %s "checking for egrep -e... " >&6; }
  4956. if test ${ac_cv_path_EGREP_TRADITIONAL+y}
  4957. then :
  4958. printf %s "(cached) " >&6
  4959. else case e in #(
  4960. e) if test -z "$EGREP_TRADITIONAL"; then
  4961. ac_path_EGREP_TRADITIONAL_found=false
  4962. # Loop through the user's path and test for each of PROGNAME-LIST
  4963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4964. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4965. do
  4966. IFS=$as_save_IFS
  4967. case $as_dir in #(((
  4968. '') as_dir=./ ;;
  4969. */) ;;
  4970. *) as_dir=$as_dir/ ;;
  4971. esac
  4972. for ac_prog in grep ggrep
  4973. do
  4974. for ac_exec_ext in '' $ac_executable_extensions; do
  4975. ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
  4976. as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
  4977. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  4978. # Check for GNU $ac_path_EGREP_TRADITIONAL
  4979. case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
  4980. *GNU*)
  4981. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
  4982. #(
  4983. *)
  4984. ac_count=0
  4985. printf %s 0123456789 >"conftest.in"
  4986. while :
  4987. do
  4988. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4989. mv "conftest.tmp" "conftest.in"
  4990. cp "conftest.in" "conftest.nl"
  4991. printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
  4992. "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4993. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4994. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4995. if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
  4996. # Best one so far, save it but keep looking for a better one
  4997. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
  4998. ac_path_EGREP_TRADITIONAL_max=$ac_count
  4999. fi
  5000. # 10*(2^10) chars as input seems more than enough
  5001. test $ac_count -gt 10 && break
  5002. done
  5003. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5004. esac
  5005. $ac_path_EGREP_TRADITIONAL_found && break 3
  5006. done
  5007. done
  5008. done
  5009. IFS=$as_save_IFS
  5010. if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
  5011. :
  5012. fi
  5013. else
  5014. ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
  5015. fi
  5016. if test "$ac_cv_path_EGREP_TRADITIONAL"
  5017. then :
  5018. ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
  5019. else case e in #(
  5020. e) if test -z "$EGREP_TRADITIONAL"; then
  5021. ac_path_EGREP_TRADITIONAL_found=false
  5022. # Loop through the user's path and test for each of PROGNAME-LIST
  5023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5024. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5025. do
  5026. IFS=$as_save_IFS
  5027. case $as_dir in #(((
  5028. '') as_dir=./ ;;
  5029. */) ;;
  5030. *) as_dir=$as_dir/ ;;
  5031. esac
  5032. for ac_prog in egrep
  5033. do
  5034. for ac_exec_ext in '' $ac_executable_extensions; do
  5035. ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
  5036. as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
  5037. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  5038. # Check for GNU $ac_path_EGREP_TRADITIONAL
  5039. case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
  5040. *GNU*)
  5041. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
  5042. #(
  5043. *)
  5044. ac_count=0
  5045. printf %s 0123456789 >"conftest.in"
  5046. while :
  5047. do
  5048. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5049. mv "conftest.tmp" "conftest.in"
  5050. cp "conftest.in" "conftest.nl"
  5051. printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
  5052. "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5053. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5054. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5055. if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
  5056. # Best one so far, save it but keep looking for a better one
  5057. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
  5058. ac_path_EGREP_TRADITIONAL_max=$ac_count
  5059. fi
  5060. # 10*(2^10) chars as input seems more than enough
  5061. test $ac_count -gt 10 && break
  5062. done
  5063. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5064. esac
  5065. $ac_path_EGREP_TRADITIONAL_found && break 3
  5066. done
  5067. done
  5068. done
  5069. IFS=$as_save_IFS
  5070. if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
  5071. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5072. fi
  5073. else
  5074. ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
  5075. fi
  5076. ;;
  5077. esac
  5078. fi ;;
  5079. esac
  5080. fi
  5081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
  5082. printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
  5083. EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
  5084. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  5085. if test "x$ac_cv_header_sys_types_h" = xyes
  5086. then :
  5087. printf "%s\n" "#define NEED_SYS_TYPES_H 1" >>confdefs.h
  5088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5089. /* end confdefs.h. */
  5090. #include <sys/types.h>
  5091. _ACEOF
  5092. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5093. $EGREP_TRADITIONAL "size_t" >/dev/null 2>&1
  5094. then :
  5095. ijg_size_t_ok="size_t is in sys/types.h"
  5096. else case e in #(
  5097. e) ijg_size_t_ok=no ;;
  5098. esac
  5099. fi
  5100. rm -rf conftest*
  5101. else case e in #(
  5102. e) ijg_size_t_ok=no ;;
  5103. esac
  5104. fi
  5105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
  5106. printf "%s\n" "$ijg_size_t_ok" >&6; }
  5107. if test "$ijg_size_t_ok" = no; then
  5108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Type size_t is not defined in any of the usual places.
  5109. Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&5
  5110. printf "%s\n" "$as_me: WARNING: Type size_t is not defined in any of the usual places.
  5111. Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&2;}
  5112. fi
  5113. fi
  5114. # Check compiler characteristics
  5115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
  5116. printf %s "checking for type unsigned char... " >&6; }
  5117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5118. /* end confdefs.h. */
  5119. int
  5120. main (void)
  5121. {
  5122. unsigned char un_char;
  5123. ;
  5124. return 0;
  5125. }
  5126. _ACEOF
  5127. if ac_fn_c_try_compile "$LINENO"
  5128. then :
  5129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5130. printf "%s\n" "yes" >&6; }
  5131. printf "%s\n" "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
  5132. else case e in #(
  5133. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5134. printf "%s\n" "no" >&6; } ;;
  5135. esac
  5136. fi
  5137. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
  5139. printf %s "checking for type unsigned short... " >&6; }
  5140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5141. /* end confdefs.h. */
  5142. int
  5143. main (void)
  5144. {
  5145. unsigned short un_short;
  5146. ;
  5147. return 0;
  5148. }
  5149. _ACEOF
  5150. if ac_fn_c_try_compile "$LINENO"
  5151. then :
  5152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5153. printf "%s\n" "yes" >&6; }
  5154. printf "%s\n" "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
  5155. else case e in #(
  5156. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5157. printf "%s\n" "no" >&6; } ;;
  5158. esac
  5159. fi
  5160. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
  5162. printf %s "checking for type void... " >&6; }
  5163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5164. /* end confdefs.h. */
  5165. /* Caution: a C++ compiler will insist on valid prototypes */
  5166. typedef void * void_ptr; /* check void * */
  5167. #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
  5168. typedef void (*void_func) (int a, int b);
  5169. #else
  5170. typedef void (*void_func) ();
  5171. #endif
  5172. #ifdef HAVE_PROTOTYPES /* check void function result */
  5173. void test3function (void_ptr arg1, void_func arg2)
  5174. #else
  5175. void test3function (arg1, arg2)
  5176. void_ptr arg1;
  5177. void_func arg2;
  5178. #endif
  5179. {
  5180. char * locptr = (char *) arg1; /* check casting to and from void * */
  5181. arg1 = (void *) locptr;
  5182. (*arg2) (1, 2); /* check call of fcn returning void */
  5183. }
  5184. int
  5185. main (void)
  5186. {
  5187. ;
  5188. return 0;
  5189. }
  5190. _ACEOF
  5191. if ac_fn_c_try_compile "$LINENO"
  5192. then :
  5193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5194. printf "%s\n" "yes" >&6; }
  5195. else case e in #(
  5196. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5197. printf "%s\n" "no" >&6; }
  5198. printf "%s\n" "#define void char" >>confdefs.h
  5199. ;;
  5200. esac
  5201. fi
  5202. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  5204. printf %s "checking for an ANSI C-conforming const... " >&6; }
  5205. if test ${ac_cv_c_const+y}
  5206. then :
  5207. printf %s "(cached) " >&6
  5208. else case e in #(
  5209. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5210. /* end confdefs.h. */
  5211. int
  5212. main (void)
  5213. {
  5214. #ifndef __cplusplus
  5215. /* Ultrix mips cc rejects this sort of thing. */
  5216. typedef int charset[2];
  5217. const charset cs = { 0, 0 };
  5218. /* SunOS 4.1.1 cc rejects this. */
  5219. char const *const *pcpcc;
  5220. char **ppc;
  5221. /* NEC SVR4.0.2 mips cc rejects this. */
  5222. struct point {int x, y;};
  5223. static struct point const zero = {0,0};
  5224. /* IBM XL C 1.02.0.0 rejects this.
  5225. It does not let you subtract one const X* pointer from another in
  5226. an arm of an if-expression whose if-part is not a constant
  5227. expression */
  5228. const char *g = "string";
  5229. pcpcc = &g + (g ? g-g : 0);
  5230. /* HPUX 7.0 cc rejects these. */
  5231. ++pcpcc;
  5232. ppc = (char**) pcpcc;
  5233. pcpcc = (char const *const *) ppc;
  5234. { /* SCO 3.2v4 cc rejects this sort of thing. */
  5235. char tx;
  5236. char *t = &tx;
  5237. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5238. *t++ = 0;
  5239. if (s) return 0;
  5240. }
  5241. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5242. int x[] = {25, 17};
  5243. const int *foo = &x[0];
  5244. ++foo;
  5245. }
  5246. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5247. typedef const int *iptr;
  5248. iptr p = 0;
  5249. ++p;
  5250. }
  5251. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  5252. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5253. struct s { int j; const int *ap[3]; } bx;
  5254. struct s *b = &bx; b->j = 5;
  5255. }
  5256. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5257. const int foo = 10;
  5258. if (!foo) return 0;
  5259. }
  5260. return !cs[0] && !zero.x;
  5261. #endif
  5262. ;
  5263. return 0;
  5264. }
  5265. _ACEOF
  5266. if ac_fn_c_try_compile "$LINENO"
  5267. then :
  5268. ac_cv_c_const=yes
  5269. else case e in #(
  5270. e) ac_cv_c_const=no ;;
  5271. esac
  5272. fi
  5273. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  5274. esac
  5275. fi
  5276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  5277. printf "%s\n" "$ac_cv_c_const" >&6; }
  5278. if test $ac_cv_c_const = no; then
  5279. printf "%s\n" "#define const /**/" >>confdefs.h
  5280. fi
  5281. # Check for non-broken inline under various spellings
  5282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  5283. printf %s "checking for inline... " >&6; }
  5284. ijg_cv_inline=""
  5285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5286. /* end confdefs.h. */
  5287. int
  5288. main (void)
  5289. {
  5290. } __inline__ int foo() { return 0; }
  5291. int bar() { return foo();
  5292. ;
  5293. return 0;
  5294. }
  5295. _ACEOF
  5296. if ac_fn_c_try_compile "$LINENO"
  5297. then :
  5298. ijg_cv_inline="__inline__"
  5299. else case e in #(
  5300. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5301. /* end confdefs.h. */
  5302. int
  5303. main (void)
  5304. {
  5305. } __inline int foo() { return 0; }
  5306. int bar() { return foo();
  5307. ;
  5308. return 0;
  5309. }
  5310. _ACEOF
  5311. if ac_fn_c_try_compile "$LINENO"
  5312. then :
  5313. ijg_cv_inline="__inline"
  5314. else case e in #(
  5315. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5316. /* end confdefs.h. */
  5317. int
  5318. main (void)
  5319. {
  5320. } inline int foo() { return 0; }
  5321. int bar() { return foo();
  5322. ;
  5323. return 0;
  5324. }
  5325. _ACEOF
  5326. if ac_fn_c_try_compile "$LINENO"
  5327. then :
  5328. ijg_cv_inline="inline"
  5329. fi
  5330. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  5331. esac
  5332. fi
  5333. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  5334. esac
  5335. fi
  5336. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
  5338. printf "%s\n" "$ijg_cv_inline" >&6; }
  5339. printf "%s\n" "#define INLINE $ijg_cv_inline" >>confdefs.h
  5340. # We cannot check for bogus warnings, but at least we can check for errors
  5341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
  5342. printf %s "checking for broken incomplete types... " >&6; }
  5343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5344. /* end confdefs.h. */
  5345. typedef struct undefined_structure * undef_struct_ptr;
  5346. int
  5347. main (void)
  5348. {
  5349. ;
  5350. return 0;
  5351. }
  5352. _ACEOF
  5353. if ac_fn_c_try_compile "$LINENO"
  5354. then :
  5355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5356. printf "%s\n" "ok" >&6; }
  5357. else case e in #(
  5358. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: broken" >&5
  5359. printf "%s\n" "broken" >&6; }
  5360. printf "%s\n" "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
  5361. ;;
  5362. esac
  5363. fi
  5364. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5365. # Test whether global names are unique to at least 15 chars
  5366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
  5367. printf %s "checking for short external names... " >&6; }
  5368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5369. /* end confdefs.h. */
  5370. int possibly_duplicate_function () { return 0; }
  5371. int possibly_dupli_function () { return 1; }
  5372. int
  5373. main (void)
  5374. {
  5375. ;
  5376. return 0;
  5377. }
  5378. _ACEOF
  5379. if ac_fn_c_try_link "$LINENO"
  5380. then :
  5381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5382. printf "%s\n" "ok" >&6; }
  5383. else case e in #(
  5384. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: short" >&5
  5385. printf "%s\n" "short" >&6; }
  5386. printf "%s\n" "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
  5387. ;;
  5388. esac
  5389. fi
  5390. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5391. conftest$ac_exeext conftest.$ac_ext
  5392. # Run-time checks
  5393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
  5394. printf %s "checking to see if char is signed... " >&6; }
  5395. if test "$cross_compiling" = yes
  5396. then :
  5397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Assuming that char is signed on target machine.
  5398. If it is unsigned, this will be a little bit inefficient." >&5
  5399. printf "%s\n" "$as_me: WARNING: Assuming that char is signed on target machine.
  5400. If it is unsigned, this will be a little bit inefficient." >&2;}
  5401. else case e in #(
  5402. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5403. /* end confdefs.h. */
  5404. #ifdef HAVE_STDLIB_H
  5405. #include <stdlib.h>
  5406. #endif
  5407. #include <stdio.h>
  5408. #ifdef HAVE_PROTOTYPES
  5409. int is_char_signed (int arg)
  5410. #else
  5411. int is_char_signed (arg)
  5412. int arg;
  5413. #endif
  5414. {
  5415. if (arg == 189) { /* expected result for unsigned char */
  5416. return 0; /* type char is unsigned */
  5417. }
  5418. else if (arg != -67) { /* expected result for signed char */
  5419. printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
  5420. printf("I fear the JPEG software will not work at all.\n\n");
  5421. }
  5422. return 1; /* assume char is signed otherwise */
  5423. }
  5424. char signed_char_check = (char) (-67);
  5425. int main() {
  5426. exit(is_char_signed((int) signed_char_check));
  5427. }
  5428. _ACEOF
  5429. if ac_fn_c_try_run "$LINENO"
  5430. then :
  5431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5432. printf "%s\n" "no" >&6; }
  5433. printf "%s\n" "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
  5434. else case e in #(
  5435. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5436. printf "%s\n" "yes" >&6; } ;;
  5437. esac
  5438. fi
  5439. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5440. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  5441. esac
  5442. fi
  5443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
  5444. printf %s "checking to see if right shift is signed... " >&6; }
  5445. if test "$cross_compiling" = yes
  5446. then :
  5447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
  5448. printf "%s\n" "Assuming that right shift is signed on target machine." >&6; }
  5449. else case e in #(
  5450. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5451. /* end confdefs.h. */
  5452. #ifdef HAVE_STDLIB_H
  5453. #include <stdlib.h>
  5454. #endif
  5455. #include <stdio.h>
  5456. #ifdef HAVE_PROTOTYPES
  5457. int is_shifting_signed (long arg)
  5458. #else
  5459. int is_shifting_signed (arg)
  5460. long arg;
  5461. #endif
  5462. /* See whether right-shift on a long is signed or not. */
  5463. {
  5464. long res = arg >> 4;
  5465. if (res == -0x7F7E80CL) { /* expected result for signed shift */
  5466. return 1; /* right shift is signed */
  5467. }
  5468. /* see if unsigned-shift hack will fix it. */
  5469. /* we can't just test exact value since it depends on width of long... */
  5470. res |= (~0L) << (32-4);
  5471. if (res == -0x7F7E80CL) { /* expected result now? */
  5472. return 0; /* right shift is unsigned */
  5473. }
  5474. printf("Right shift isn't acting as I expect it to.\n");
  5475. printf("I fear the JPEG software will not work at all.\n\n");
  5476. return 0; /* try it with unsigned anyway */
  5477. }
  5478. int main() {
  5479. exit(is_shifting_signed(-0x7F7E80B1L));
  5480. }
  5481. _ACEOF
  5482. if ac_fn_c_try_run "$LINENO"
  5483. then :
  5484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5485. printf "%s\n" "no" >&6; }
  5486. printf "%s\n" "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
  5487. else case e in #(
  5488. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5489. printf "%s\n" "yes" >&6; } ;;
  5490. esac
  5491. fi
  5492. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5493. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  5494. esac
  5495. fi
  5496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
  5497. printf %s "checking to see if fopen accepts b spec... " >&6; }
  5498. if test "$cross_compiling" = yes
  5499. then :
  5500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
  5501. printf "%s\n" "Assuming that it does." >&6; }
  5502. else case e in #(
  5503. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5504. /* end confdefs.h. */
  5505. #ifdef HAVE_STDLIB_H
  5506. #include <stdlib.h>
  5507. #endif
  5508. #include <stdio.h>
  5509. int main() {
  5510. if (fopen("conftestdata", "wb") != NULL)
  5511. exit(0);
  5512. exit(1);
  5513. }
  5514. _ACEOF
  5515. if ac_fn_c_try_run "$LINENO"
  5516. then :
  5517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5518. printf "%s\n" "yes" >&6; }
  5519. else case e in #(
  5520. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5521. printf "%s\n" "no" >&6; }
  5522. printf "%s\n" "#define DONT_USE_B_MODE 1" >>confdefs.h
  5523. ;;
  5524. esac
  5525. fi
  5526. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5527. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  5528. esac
  5529. fi
  5530. # Configure libtool
  5531. case `pwd` in
  5532. *\ * | *\ *)
  5533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5534. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5535. esac
  5536. macro_version='2.4.7'
  5537. macro_revision='2.4.7'
  5538. ltmain=$ac_aux_dir/ltmain.sh
  5539. # Backslashify metacharacters that are still active within
  5540. # double-quoted strings.
  5541. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5542. # Same as above, but do not quote variable references.
  5543. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5544. # Sed substitution to delay expansion of an escaped shell variable in a
  5545. # double_quote_subst'ed string.
  5546. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5547. # Sed substitution to delay expansion of an escaped single quote.
  5548. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5549. # Sed substitution to avoid accidental globbing in evaled expressions
  5550. no_glob_subst='s/\*/\\\*/g'
  5551. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5552. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5553. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5555. printf %s "checking how to print strings... " >&6; }
  5556. # Test print first, because it will be a builtin if present.
  5557. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5558. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5559. ECHO='print -r --'
  5560. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5561. ECHO='printf %s\n'
  5562. else
  5563. # Use this function as a fallback that always works.
  5564. func_fallback_echo ()
  5565. {
  5566. eval 'cat <<_LTECHO_EOF
  5567. $1
  5568. _LTECHO_EOF'
  5569. }
  5570. ECHO='func_fallback_echo'
  5571. fi
  5572. # func_echo_all arg...
  5573. # Invoke $ECHO with all args, space-separated.
  5574. func_echo_all ()
  5575. {
  5576. $ECHO ""
  5577. }
  5578. case $ECHO in
  5579. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5580. printf "%s\n" "printf" >&6; } ;;
  5581. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5582. printf "%s\n" "print -r" >&6; } ;;
  5583. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5584. printf "%s\n" "cat" >&6; } ;;
  5585. esac
  5586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5587. printf %s "checking for a sed that does not truncate output... " >&6; }
  5588. if test ${ac_cv_path_SED+y}
  5589. then :
  5590. printf %s "(cached) " >&6
  5591. else case e in #(
  5592. e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5593. for ac_i in 1 2 3 4 5 6 7; do
  5594. ac_script="$ac_script$as_nl$ac_script"
  5595. done
  5596. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5597. { ac_script=; unset ac_script;}
  5598. if test -z "$SED"; then
  5599. ac_path_SED_found=false
  5600. # Loop through the user's path and test for each of PROGNAME-LIST
  5601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5602. for as_dir in $PATH
  5603. do
  5604. IFS=$as_save_IFS
  5605. case $as_dir in #(((
  5606. '') as_dir=./ ;;
  5607. */) ;;
  5608. *) as_dir=$as_dir/ ;;
  5609. esac
  5610. for ac_prog in sed gsed
  5611. do
  5612. for ac_exec_ext in '' $ac_executable_extensions; do
  5613. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5614. as_fn_executable_p "$ac_path_SED" || continue
  5615. # Check for GNU ac_path_SED and select it if it is found.
  5616. # Check for GNU $ac_path_SED
  5617. case `"$ac_path_SED" --version 2>&1` in #(
  5618. *GNU*)
  5619. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5620. #(
  5621. *)
  5622. ac_count=0
  5623. printf %s 0123456789 >"conftest.in"
  5624. while :
  5625. do
  5626. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5627. mv "conftest.tmp" "conftest.in"
  5628. cp "conftest.in" "conftest.nl"
  5629. printf "%s\n" '' >> "conftest.nl"
  5630. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5631. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5632. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5633. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5634. # Best one so far, save it but keep looking for a better one
  5635. ac_cv_path_SED="$ac_path_SED"
  5636. ac_path_SED_max=$ac_count
  5637. fi
  5638. # 10*(2^10) chars as input seems more than enough
  5639. test $ac_count -gt 10 && break
  5640. done
  5641. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5642. esac
  5643. $ac_path_SED_found && break 3
  5644. done
  5645. done
  5646. done
  5647. IFS=$as_save_IFS
  5648. if test -z "$ac_cv_path_SED"; then
  5649. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5650. fi
  5651. else
  5652. ac_cv_path_SED=$SED
  5653. fi
  5654. ;;
  5655. esac
  5656. fi
  5657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5658. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5659. SED="$ac_cv_path_SED"
  5660. rm -f conftest.sed
  5661. test -z "$SED" && SED=sed
  5662. Xsed="$SED -e 1s/^X//"
  5663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5664. printf %s "checking for fgrep... " >&6; }
  5665. if test ${ac_cv_path_FGREP+y}
  5666. then :
  5667. printf %s "(cached) " >&6
  5668. else case e in #(
  5669. e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5670. then ac_cv_path_FGREP="$GREP -F"
  5671. else
  5672. if test -z "$FGREP"; then
  5673. ac_path_FGREP_found=false
  5674. # Loop through the user's path and test for each of PROGNAME-LIST
  5675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5676. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5677. do
  5678. IFS=$as_save_IFS
  5679. case $as_dir in #(((
  5680. '') as_dir=./ ;;
  5681. */) ;;
  5682. *) as_dir=$as_dir/ ;;
  5683. esac
  5684. for ac_prog in fgrep
  5685. do
  5686. for ac_exec_ext in '' $ac_executable_extensions; do
  5687. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5688. as_fn_executable_p "$ac_path_FGREP" || continue
  5689. # Check for GNU ac_path_FGREP and select it if it is found.
  5690. # Check for GNU $ac_path_FGREP
  5691. case `"$ac_path_FGREP" --version 2>&1` in #(
  5692. *GNU*)
  5693. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5694. #(
  5695. *)
  5696. ac_count=0
  5697. printf %s 0123456789 >"conftest.in"
  5698. while :
  5699. do
  5700. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5701. mv "conftest.tmp" "conftest.in"
  5702. cp "conftest.in" "conftest.nl"
  5703. printf "%s\n" 'FGREP' >> "conftest.nl"
  5704. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5705. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5706. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5707. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5708. # Best one so far, save it but keep looking for a better one
  5709. ac_cv_path_FGREP="$ac_path_FGREP"
  5710. ac_path_FGREP_max=$ac_count
  5711. fi
  5712. # 10*(2^10) chars as input seems more than enough
  5713. test $ac_count -gt 10 && break
  5714. done
  5715. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5716. esac
  5717. $ac_path_FGREP_found && break 3
  5718. done
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. if test -z "$ac_cv_path_FGREP"; then
  5723. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5724. fi
  5725. else
  5726. ac_cv_path_FGREP=$FGREP
  5727. fi
  5728. fi ;;
  5729. esac
  5730. fi
  5731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5732. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5733. FGREP="$ac_cv_path_FGREP"
  5734. test -z "$GREP" && GREP=grep
  5735. # Check whether --with-gnu-ld was given.
  5736. if test ${with_gnu_ld+y}
  5737. then :
  5738. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5739. else case e in #(
  5740. e) with_gnu_ld=no ;;
  5741. esac
  5742. fi
  5743. ac_prog=ld
  5744. if test yes = "$GCC"; then
  5745. # Check if gcc -print-prog-name=ld gives a path.
  5746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5747. printf %s "checking for ld used by $CC... " >&6; }
  5748. case $host in
  5749. *-*-mingw*)
  5750. # gcc leaves a trailing carriage return, which upsets mingw
  5751. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5752. *)
  5753. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5754. esac
  5755. case $ac_prog in
  5756. # Accept absolute paths.
  5757. [\\/]* | ?:[\\/]*)
  5758. re_direlt='/[^/][^/]*/\.\./'
  5759. # Canonicalize the pathname of ld
  5760. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5761. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5762. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5763. done
  5764. test -z "$LD" && LD=$ac_prog
  5765. ;;
  5766. "")
  5767. # If it fails, then pretend we aren't using GCC.
  5768. ac_prog=ld
  5769. ;;
  5770. *)
  5771. # If it is relative, then search for the first ld in PATH.
  5772. with_gnu_ld=unknown
  5773. ;;
  5774. esac
  5775. elif test yes = "$with_gnu_ld"; then
  5776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5777. printf %s "checking for GNU ld... " >&6; }
  5778. else
  5779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5780. printf %s "checking for non-GNU ld... " >&6; }
  5781. fi
  5782. if test ${lt_cv_path_LD+y}
  5783. then :
  5784. printf %s "(cached) " >&6
  5785. else case e in #(
  5786. e) if test -z "$LD"; then
  5787. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5788. for ac_dir in $PATH; do
  5789. IFS=$lt_save_ifs
  5790. test -z "$ac_dir" && ac_dir=.
  5791. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5792. lt_cv_path_LD=$ac_dir/$ac_prog
  5793. # Check to see if the program is GNU ld. I'd rather use --version,
  5794. # but apparently some variants of GNU ld only accept -v.
  5795. # Break only if it was the GNU/non-GNU ld that we prefer.
  5796. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5797. *GNU* | *'with BFD'*)
  5798. test no != "$with_gnu_ld" && break
  5799. ;;
  5800. *)
  5801. test yes != "$with_gnu_ld" && break
  5802. ;;
  5803. esac
  5804. fi
  5805. done
  5806. IFS=$lt_save_ifs
  5807. else
  5808. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5809. fi ;;
  5810. esac
  5811. fi
  5812. LD=$lt_cv_path_LD
  5813. if test -n "$LD"; then
  5814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5815. printf "%s\n" "$LD" >&6; }
  5816. else
  5817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5818. printf "%s\n" "no" >&6; }
  5819. fi
  5820. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5822. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5823. if test ${lt_cv_prog_gnu_ld+y}
  5824. then :
  5825. printf %s "(cached) " >&6
  5826. else case e in #(
  5827. e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5828. case `$LD -v 2>&1 </dev/null` in
  5829. *GNU* | *'with BFD'*)
  5830. lt_cv_prog_gnu_ld=yes
  5831. ;;
  5832. *)
  5833. lt_cv_prog_gnu_ld=no
  5834. ;;
  5835. esac ;;
  5836. esac
  5837. fi
  5838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5839. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5840. with_gnu_ld=$lt_cv_prog_gnu_ld
  5841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5842. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5843. if test ${lt_cv_path_NM+y}
  5844. then :
  5845. printf %s "(cached) " >&6
  5846. else case e in #(
  5847. e) if test -n "$NM"; then
  5848. # Let the user override the test.
  5849. lt_cv_path_NM=$NM
  5850. else
  5851. lt_nm_to_check=${ac_tool_prefix}nm
  5852. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5853. lt_nm_to_check="$lt_nm_to_check nm"
  5854. fi
  5855. for lt_tmp_nm in $lt_nm_to_check; do
  5856. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5857. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5858. IFS=$lt_save_ifs
  5859. test -z "$ac_dir" && ac_dir=.
  5860. tmp_nm=$ac_dir/$lt_tmp_nm
  5861. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5862. # Check to see if the nm accepts a BSD-compat flag.
  5863. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5864. # nm: unknown option "B" ignored
  5865. # Tru64's nm complains that /dev/null is an invalid object file
  5866. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5867. case $build_os in
  5868. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5869. *) lt_bad_file=/dev/null ;;
  5870. esac
  5871. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  5872. *$lt_bad_file* | *'Invalid file or object type'*)
  5873. lt_cv_path_NM="$tmp_nm -B"
  5874. break 2
  5875. ;;
  5876. *)
  5877. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  5878. */dev/null*)
  5879. lt_cv_path_NM="$tmp_nm -p"
  5880. break 2
  5881. ;;
  5882. *)
  5883. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5884. continue # so that we can try to find one that supports BSD flags
  5885. ;;
  5886. esac
  5887. ;;
  5888. esac
  5889. fi
  5890. done
  5891. IFS=$lt_save_ifs
  5892. done
  5893. : ${lt_cv_path_NM=no}
  5894. fi ;;
  5895. esac
  5896. fi
  5897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5898. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5899. if test no != "$lt_cv_path_NM"; then
  5900. NM=$lt_cv_path_NM
  5901. else
  5902. # Didn't find any BSD compatible name lister, look for dumpbin.
  5903. if test -n "$DUMPBIN"; then :
  5904. # Let the user override the test.
  5905. else
  5906. if test -n "$ac_tool_prefix"; then
  5907. for ac_prog in dumpbin "link -dump"
  5908. do
  5909. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5910. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5912. printf %s "checking for $ac_word... " >&6; }
  5913. if test ${ac_cv_prog_DUMPBIN+y}
  5914. then :
  5915. printf %s "(cached) " >&6
  5916. else case e in #(
  5917. e) if test -n "$DUMPBIN"; then
  5918. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5919. else
  5920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5921. for as_dir in $PATH
  5922. do
  5923. IFS=$as_save_IFS
  5924. case $as_dir in #(((
  5925. '') as_dir=./ ;;
  5926. */) ;;
  5927. *) as_dir=$as_dir/ ;;
  5928. esac
  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_DUMPBIN="$ac_tool_prefix$ac_prog"
  5932. printf "%s\n" "$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. esac
  5940. fi
  5941. DUMPBIN=$ac_cv_prog_DUMPBIN
  5942. if test -n "$DUMPBIN"; then
  5943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5944. printf "%s\n" "$DUMPBIN" >&6; }
  5945. else
  5946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5947. printf "%s\n" "no" >&6; }
  5948. fi
  5949. test -n "$DUMPBIN" && break
  5950. done
  5951. fi
  5952. if test -z "$DUMPBIN"; then
  5953. ac_ct_DUMPBIN=$DUMPBIN
  5954. for ac_prog in dumpbin "link -dump"
  5955. do
  5956. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5957. set dummy $ac_prog; ac_word=$2
  5958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5959. printf %s "checking for $ac_word... " >&6; }
  5960. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5961. then :
  5962. printf %s "(cached) " >&6
  5963. else case e in #(
  5964. e) if test -n "$ac_ct_DUMPBIN"; then
  5965. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5966. else
  5967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5968. for as_dir in $PATH
  5969. do
  5970. IFS=$as_save_IFS
  5971. case $as_dir in #(((
  5972. '') as_dir=./ ;;
  5973. */) ;;
  5974. *) as_dir=$as_dir/ ;;
  5975. esac
  5976. for ac_exec_ext in '' $ac_executable_extensions; do
  5977. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5978. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5979. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5980. break 2
  5981. fi
  5982. done
  5983. done
  5984. IFS=$as_save_IFS
  5985. fi ;;
  5986. esac
  5987. fi
  5988. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5989. if test -n "$ac_ct_DUMPBIN"; then
  5990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5991. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5992. else
  5993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5994. printf "%s\n" "no" >&6; }
  5995. fi
  5996. test -n "$ac_ct_DUMPBIN" && break
  5997. done
  5998. if test "x$ac_ct_DUMPBIN" = x; then
  5999. DUMPBIN=":"
  6000. else
  6001. case $cross_compiling:$ac_tool_warned in
  6002. yes:)
  6003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6004. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6005. ac_tool_warned=yes ;;
  6006. esac
  6007. DUMPBIN=$ac_ct_DUMPBIN
  6008. fi
  6009. fi
  6010. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  6011. *COFF*)
  6012. DUMPBIN="$DUMPBIN -symbols -headers"
  6013. ;;
  6014. *)
  6015. DUMPBIN=:
  6016. ;;
  6017. esac
  6018. fi
  6019. if test : != "$DUMPBIN"; then
  6020. NM=$DUMPBIN
  6021. fi
  6022. fi
  6023. test -z "$NM" && NM=nm
  6024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6025. printf %s "checking the name lister ($NM) interface... " >&6; }
  6026. if test ${lt_cv_nm_interface+y}
  6027. then :
  6028. printf %s "(cached) " >&6
  6029. else case e in #(
  6030. e) lt_cv_nm_interface="BSD nm"
  6031. echo "int some_variable = 0;" > conftest.$ac_ext
  6032. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6033. (eval "$ac_compile" 2>conftest.err)
  6034. cat conftest.err >&5
  6035. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6036. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6037. cat conftest.err >&5
  6038. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6039. cat conftest.out >&5
  6040. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6041. lt_cv_nm_interface="MS dumpbin"
  6042. fi
  6043. rm -f conftest* ;;
  6044. esac
  6045. fi
  6046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6047. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  6048. # find the maximum length of command line arguments
  6049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6050. printf %s "checking the maximum length of command line arguments... " >&6; }
  6051. if test ${lt_cv_sys_max_cmd_len+y}
  6052. then :
  6053. printf %s "(cached) " >&6
  6054. else case e in #(
  6055. e) i=0
  6056. teststring=ABCD
  6057. case $build_os in
  6058. msdosdjgpp*)
  6059. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6060. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6061. # during glob expansion). Even if it were fixed, the result of this
  6062. # check would be larger than it should be.
  6063. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6064. ;;
  6065. gnu*)
  6066. # Under GNU Hurd, this test is not required because there is
  6067. # no limit to the length of command line arguments.
  6068. # Libtool will interpret -1 as no limit whatsoever
  6069. lt_cv_sys_max_cmd_len=-1;
  6070. ;;
  6071. cygwin* | mingw* | cegcc*)
  6072. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6073. # about 5 minutes as the teststring grows exponentially.
  6074. # Worse, since 9x/ME are not pre-emptively multitasking,
  6075. # you end up with a "frozen" computer, even though with patience
  6076. # the test eventually succeeds (with a max line length of 256k).
  6077. # Instead, let's just punt: use the minimum linelength reported by
  6078. # all of the supported platforms: 8192 (on NT/2K/XP).
  6079. lt_cv_sys_max_cmd_len=8192;
  6080. ;;
  6081. mint*)
  6082. # On MiNT this can take a long time and run out of memory.
  6083. lt_cv_sys_max_cmd_len=8192;
  6084. ;;
  6085. amigaos*)
  6086. # On AmigaOS with pdksh, this test takes hours, literally.
  6087. # So we just punt and use a minimum line length of 8192.
  6088. lt_cv_sys_max_cmd_len=8192;
  6089. ;;
  6090. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  6091. # This has been around since 386BSD, at least. Likely further.
  6092. if test -x /sbin/sysctl; then
  6093. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6094. elif test -x /usr/sbin/sysctl; then
  6095. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6096. else
  6097. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6098. fi
  6099. # And add a safety zone
  6100. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6101. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6102. ;;
  6103. interix*)
  6104. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6105. lt_cv_sys_max_cmd_len=196608
  6106. ;;
  6107. os2*)
  6108. # The test takes a long time on OS/2.
  6109. lt_cv_sys_max_cmd_len=8192
  6110. ;;
  6111. osf*)
  6112. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6113. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6114. # nice to cause kernel panics so lets avoid the loop below.
  6115. # First set a reasonable default.
  6116. lt_cv_sys_max_cmd_len=16384
  6117. #
  6118. if test -x /sbin/sysconfig; then
  6119. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6120. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6121. esac
  6122. fi
  6123. ;;
  6124. sco3.2v5*)
  6125. lt_cv_sys_max_cmd_len=102400
  6126. ;;
  6127. sysv5* | sco5v6* | sysv4.2uw2*)
  6128. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6129. if test -n "$kargmax"; then
  6130. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  6131. else
  6132. lt_cv_sys_max_cmd_len=32768
  6133. fi
  6134. ;;
  6135. *)
  6136. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6137. if test -n "$lt_cv_sys_max_cmd_len" && \
  6138. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6139. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6140. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6141. else
  6142. # Make teststring a little bigger before we do anything with it.
  6143. # a 1K string should be a reasonable start.
  6144. for i in 1 2 3 4 5 6 7 8; do
  6145. teststring=$teststring$teststring
  6146. done
  6147. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6148. # If test is not a shell built-in, we'll probably end up computing a
  6149. # maximum length that is only half of the actual maximum length, but
  6150. # we can't tell.
  6151. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  6152. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6153. test 17 != "$i" # 1/2 MB should be enough
  6154. do
  6155. i=`expr $i + 1`
  6156. teststring=$teststring$teststring
  6157. done
  6158. # Only check the string length outside the loop.
  6159. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6160. teststring=
  6161. # Add a significant safety factor because C++ compilers can tack on
  6162. # massive amounts of additional arguments before passing them to the
  6163. # linker. It appears as though 1/2 is a usable value.
  6164. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6165. fi
  6166. ;;
  6167. esac
  6168. ;;
  6169. esac
  6170. fi
  6171. if test -n "$lt_cv_sys_max_cmd_len"; then
  6172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6173. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  6174. else
  6175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6176. printf "%s\n" "none" >&6; }
  6177. fi
  6178. max_cmd_len=$lt_cv_sys_max_cmd_len
  6179. : ${CP="cp -f"}
  6180. : ${MV="mv -f"}
  6181. : ${RM="rm -f"}
  6182. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6183. lt_unset=unset
  6184. else
  6185. lt_unset=false
  6186. fi
  6187. # test EBCDIC or ASCII
  6188. case `echo X|tr X '\101'` in
  6189. A) # ASCII based system
  6190. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6191. lt_SP2NL='tr \040 \012'
  6192. lt_NL2SP='tr \015\012 \040\040'
  6193. ;;
  6194. *) # EBCDIC based system
  6195. lt_SP2NL='tr \100 \n'
  6196. lt_NL2SP='tr \r\n \100\100'
  6197. ;;
  6198. esac
  6199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6200. printf %s "checking how to convert $build file names to $host format... " >&6; }
  6201. if test ${lt_cv_to_host_file_cmd+y}
  6202. then :
  6203. printf %s "(cached) " >&6
  6204. else case e in #(
  6205. e) case $host in
  6206. *-*-mingw* )
  6207. case $build in
  6208. *-*-mingw* ) # actually msys
  6209. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6210. ;;
  6211. *-*-cygwin* )
  6212. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6213. ;;
  6214. * ) # otherwise, assume *nix
  6215. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6216. ;;
  6217. esac
  6218. ;;
  6219. *-*-cygwin* )
  6220. case $build in
  6221. *-*-mingw* ) # actually msys
  6222. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6223. ;;
  6224. *-*-cygwin* )
  6225. lt_cv_to_host_file_cmd=func_convert_file_noop
  6226. ;;
  6227. * ) # otherwise, assume *nix
  6228. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6229. ;;
  6230. esac
  6231. ;;
  6232. * ) # unhandled hosts (and "normal" native builds)
  6233. lt_cv_to_host_file_cmd=func_convert_file_noop
  6234. ;;
  6235. esac
  6236. ;;
  6237. esac
  6238. fi
  6239. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6241. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  6242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6243. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  6244. if test ${lt_cv_to_tool_file_cmd+y}
  6245. then :
  6246. printf %s "(cached) " >&6
  6247. else case e in #(
  6248. e) #assume ordinary cross tools, or native build.
  6249. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6250. case $host in
  6251. *-*-mingw* )
  6252. case $build in
  6253. *-*-mingw* ) # actually msys
  6254. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6255. ;;
  6256. esac
  6257. ;;
  6258. esac
  6259. ;;
  6260. esac
  6261. fi
  6262. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6264. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  6265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6266. printf %s "checking for $LD option to reload object files... " >&6; }
  6267. if test ${lt_cv_ld_reload_flag+y}
  6268. then :
  6269. printf %s "(cached) " >&6
  6270. else case e in #(
  6271. e) lt_cv_ld_reload_flag='-r' ;;
  6272. esac
  6273. fi
  6274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6275. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  6276. reload_flag=$lt_cv_ld_reload_flag
  6277. case $reload_flag in
  6278. "" | " "*) ;;
  6279. *) reload_flag=" $reload_flag" ;;
  6280. esac
  6281. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6282. case $host_os in
  6283. cygwin* | mingw* | pw32* | cegcc*)
  6284. if test yes != "$GCC"; then
  6285. reload_cmds=false
  6286. fi
  6287. ;;
  6288. darwin*)
  6289. if test yes = "$GCC"; then
  6290. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6291. else
  6292. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6293. fi
  6294. ;;
  6295. esac
  6296. if test -n "$ac_tool_prefix"; then
  6297. # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
  6298. set dummy ${ac_tool_prefix}file; ac_word=$2
  6299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6300. printf %s "checking for $ac_word... " >&6; }
  6301. if test ${ac_cv_prog_FILECMD+y}
  6302. then :
  6303. printf %s "(cached) " >&6
  6304. else case e in #(
  6305. e) if test -n "$FILECMD"; then
  6306. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  6307. else
  6308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6309. for as_dir in $PATH
  6310. do
  6311. IFS=$as_save_IFS
  6312. case $as_dir in #(((
  6313. '') as_dir=./ ;;
  6314. */) ;;
  6315. *) as_dir=$as_dir/ ;;
  6316. esac
  6317. for ac_exec_ext in '' $ac_executable_extensions; do
  6318. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6319. ac_cv_prog_FILECMD="${ac_tool_prefix}file"
  6320. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6321. break 2
  6322. fi
  6323. done
  6324. done
  6325. IFS=$as_save_IFS
  6326. fi ;;
  6327. esac
  6328. fi
  6329. FILECMD=$ac_cv_prog_FILECMD
  6330. if test -n "$FILECMD"; then
  6331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  6332. printf "%s\n" "$FILECMD" >&6; }
  6333. else
  6334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6335. printf "%s\n" "no" >&6; }
  6336. fi
  6337. fi
  6338. if test -z "$ac_cv_prog_FILECMD"; then
  6339. ac_ct_FILECMD=$FILECMD
  6340. # Extract the first word of "file", so it can be a program name with args.
  6341. set dummy file; ac_word=$2
  6342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6343. printf %s "checking for $ac_word... " >&6; }
  6344. if test ${ac_cv_prog_ac_ct_FILECMD+y}
  6345. then :
  6346. printf %s "(cached) " >&6
  6347. else case e in #(
  6348. e) if test -n "$ac_ct_FILECMD"; then
  6349. ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
  6350. else
  6351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6352. for as_dir in $PATH
  6353. do
  6354. IFS=$as_save_IFS
  6355. case $as_dir in #(((
  6356. '') as_dir=./ ;;
  6357. */) ;;
  6358. *) as_dir=$as_dir/ ;;
  6359. esac
  6360. for ac_exec_ext in '' $ac_executable_extensions; do
  6361. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6362. ac_cv_prog_ac_ct_FILECMD="file"
  6363. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6364. break 2
  6365. fi
  6366. done
  6367. done
  6368. IFS=$as_save_IFS
  6369. fi ;;
  6370. esac
  6371. fi
  6372. ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
  6373. if test -n "$ac_ct_FILECMD"; then
  6374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
  6375. printf "%s\n" "$ac_ct_FILECMD" >&6; }
  6376. else
  6377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6378. printf "%s\n" "no" >&6; }
  6379. fi
  6380. if test "x$ac_ct_FILECMD" = x; then
  6381. FILECMD=":"
  6382. else
  6383. case $cross_compiling:$ac_tool_warned in
  6384. yes:)
  6385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6386. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6387. ac_tool_warned=yes ;;
  6388. esac
  6389. FILECMD=$ac_ct_FILECMD
  6390. fi
  6391. else
  6392. FILECMD="$ac_cv_prog_FILECMD"
  6393. fi
  6394. if test -n "$ac_tool_prefix"; then
  6395. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6396. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6398. printf %s "checking for $ac_word... " >&6; }
  6399. if test ${ac_cv_prog_OBJDUMP+y}
  6400. then :
  6401. printf %s "(cached) " >&6
  6402. else case e in #(
  6403. e) if test -n "$OBJDUMP"; then
  6404. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6405. else
  6406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6407. for as_dir in $PATH
  6408. do
  6409. IFS=$as_save_IFS
  6410. case $as_dir in #(((
  6411. '') as_dir=./ ;;
  6412. */) ;;
  6413. *) as_dir=$as_dir/ ;;
  6414. esac
  6415. for ac_exec_ext in '' $ac_executable_extensions; do
  6416. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6417. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6418. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6419. break 2
  6420. fi
  6421. done
  6422. done
  6423. IFS=$as_save_IFS
  6424. fi ;;
  6425. esac
  6426. fi
  6427. OBJDUMP=$ac_cv_prog_OBJDUMP
  6428. if test -n "$OBJDUMP"; then
  6429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6430. printf "%s\n" "$OBJDUMP" >&6; }
  6431. else
  6432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6433. printf "%s\n" "no" >&6; }
  6434. fi
  6435. fi
  6436. if test -z "$ac_cv_prog_OBJDUMP"; then
  6437. ac_ct_OBJDUMP=$OBJDUMP
  6438. # Extract the first word of "objdump", so it can be a program name with args.
  6439. set dummy objdump; ac_word=$2
  6440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6441. printf %s "checking for $ac_word... " >&6; }
  6442. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  6443. then :
  6444. printf %s "(cached) " >&6
  6445. else case e in #(
  6446. e) if test -n "$ac_ct_OBJDUMP"; then
  6447. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6448. else
  6449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6450. for as_dir in $PATH
  6451. do
  6452. IFS=$as_save_IFS
  6453. case $as_dir in #(((
  6454. '') as_dir=./ ;;
  6455. */) ;;
  6456. *) as_dir=$as_dir/ ;;
  6457. esac
  6458. for ac_exec_ext in '' $ac_executable_extensions; do
  6459. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6460. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6461. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6462. break 2
  6463. fi
  6464. done
  6465. done
  6466. IFS=$as_save_IFS
  6467. fi ;;
  6468. esac
  6469. fi
  6470. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6471. if test -n "$ac_ct_OBJDUMP"; then
  6472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6473. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  6474. else
  6475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6476. printf "%s\n" "no" >&6; }
  6477. fi
  6478. if test "x$ac_ct_OBJDUMP" = x; then
  6479. OBJDUMP="false"
  6480. else
  6481. case $cross_compiling:$ac_tool_warned in
  6482. yes:)
  6483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6484. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6485. ac_tool_warned=yes ;;
  6486. esac
  6487. OBJDUMP=$ac_ct_OBJDUMP
  6488. fi
  6489. else
  6490. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6491. fi
  6492. test -z "$OBJDUMP" && OBJDUMP=objdump
  6493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6494. printf %s "checking how to recognize dependent libraries... " >&6; }
  6495. if test ${lt_cv_deplibs_check_method+y}
  6496. then :
  6497. printf %s "(cached) " >&6
  6498. else case e in #(
  6499. e) lt_cv_file_magic_cmd='$MAGIC_CMD'
  6500. lt_cv_file_magic_test_file=
  6501. lt_cv_deplibs_check_method='unknown'
  6502. # Need to set the preceding variable on all platforms that support
  6503. # interlibrary dependencies.
  6504. # 'none' -- dependencies not supported.
  6505. # 'unknown' -- same as none, but documents that we really don't know.
  6506. # 'pass_all' -- all dependencies passed with no checks.
  6507. # 'test_compile' -- check by making test program.
  6508. # 'file_magic [[regex]]' -- check by looking for files in library path
  6509. # that responds to the $file_magic_cmd with a given extended regex.
  6510. # If you have 'file' or equivalent on your system and you're not sure
  6511. # whether 'pass_all' will *always* work, you probably want this one.
  6512. case $host_os in
  6513. aix[4-9]*)
  6514. lt_cv_deplibs_check_method=pass_all
  6515. ;;
  6516. beos*)
  6517. lt_cv_deplibs_check_method=pass_all
  6518. ;;
  6519. bsdi[45]*)
  6520. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6521. lt_cv_file_magic_cmd='$FILECMD -L'
  6522. lt_cv_file_magic_test_file=/shlib/libc.so
  6523. ;;
  6524. cygwin*)
  6525. # func_win32_libid is a shell function defined in ltmain.sh
  6526. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6527. lt_cv_file_magic_cmd='func_win32_libid'
  6528. ;;
  6529. mingw* | pw32*)
  6530. # Base MSYS/MinGW do not provide the 'file' command needed by
  6531. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6532. # unless we find 'file', for example because we are cross-compiling.
  6533. if ( file / ) >/dev/null 2>&1; then
  6534. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6535. lt_cv_file_magic_cmd='func_win32_libid'
  6536. else
  6537. # Keep this pattern in sync with the one in func_win32_libid.
  6538. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6539. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6540. fi
  6541. ;;
  6542. cegcc*)
  6543. # use the weaker test based on 'objdump'. See mingw*.
  6544. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6545. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6546. ;;
  6547. darwin* | rhapsody*)
  6548. lt_cv_deplibs_check_method=pass_all
  6549. ;;
  6550. freebsd* | dragonfly* | midnightbsd*)
  6551. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6552. case $host_cpu in
  6553. i*86 )
  6554. # Not sure whether the presence of OpenBSD here was a mistake.
  6555. # Let's accept both of them until this is cleared up.
  6556. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6557. lt_cv_file_magic_cmd=$FILECMD
  6558. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6559. ;;
  6560. esac
  6561. else
  6562. lt_cv_deplibs_check_method=pass_all
  6563. fi
  6564. ;;
  6565. haiku*)
  6566. lt_cv_deplibs_check_method=pass_all
  6567. ;;
  6568. hpux10.20* | hpux11*)
  6569. lt_cv_file_magic_cmd=$FILECMD
  6570. case $host_cpu in
  6571. ia64*)
  6572. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6573. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6574. ;;
  6575. hppa*64*)
  6576. 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]'
  6577. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6578. ;;
  6579. *)
  6580. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6581. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6582. ;;
  6583. esac
  6584. ;;
  6585. interix[3-9]*)
  6586. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6587. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6588. ;;
  6589. irix5* | irix6* | nonstopux*)
  6590. case $LD in
  6591. *-32|*"-32 ") libmagic=32-bit;;
  6592. *-n32|*"-n32 ") libmagic=N32;;
  6593. *-64|*"-64 ") libmagic=64-bit;;
  6594. *) libmagic=never-match;;
  6595. esac
  6596. lt_cv_deplibs_check_method=pass_all
  6597. ;;
  6598. # This must be glibc/ELF.
  6599. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6600. lt_cv_deplibs_check_method=pass_all
  6601. ;;
  6602. netbsd*)
  6603. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6604. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6605. else
  6606. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6607. fi
  6608. ;;
  6609. newos6*)
  6610. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6611. lt_cv_file_magic_cmd=$FILECMD
  6612. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6613. ;;
  6614. *nto* | *qnx*)
  6615. lt_cv_deplibs_check_method=pass_all
  6616. ;;
  6617. openbsd* | bitrig*)
  6618. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6619. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6620. else
  6621. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6622. fi
  6623. ;;
  6624. osf3* | osf4* | osf5*)
  6625. lt_cv_deplibs_check_method=pass_all
  6626. ;;
  6627. rdos*)
  6628. lt_cv_deplibs_check_method=pass_all
  6629. ;;
  6630. solaris*)
  6631. lt_cv_deplibs_check_method=pass_all
  6632. ;;
  6633. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6634. lt_cv_deplibs_check_method=pass_all
  6635. ;;
  6636. sysv4 | sysv4.3*)
  6637. case $host_vendor in
  6638. motorola)
  6639. 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]'
  6640. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6641. ;;
  6642. ncr)
  6643. lt_cv_deplibs_check_method=pass_all
  6644. ;;
  6645. sequent)
  6646. lt_cv_file_magic_cmd='/bin/file'
  6647. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6648. ;;
  6649. sni)
  6650. lt_cv_file_magic_cmd='/bin/file'
  6651. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6652. lt_cv_file_magic_test_file=/lib/libc.so
  6653. ;;
  6654. siemens)
  6655. lt_cv_deplibs_check_method=pass_all
  6656. ;;
  6657. pc)
  6658. lt_cv_deplibs_check_method=pass_all
  6659. ;;
  6660. esac
  6661. ;;
  6662. tpf*)
  6663. lt_cv_deplibs_check_method=pass_all
  6664. ;;
  6665. os2*)
  6666. lt_cv_deplibs_check_method=pass_all
  6667. ;;
  6668. esac
  6669. ;;
  6670. esac
  6671. fi
  6672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6673. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6674. file_magic_glob=
  6675. want_nocaseglob=no
  6676. if test "$build" = "$host"; then
  6677. case $host_os in
  6678. mingw* | pw32*)
  6679. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6680. want_nocaseglob=yes
  6681. else
  6682. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6683. fi
  6684. ;;
  6685. esac
  6686. fi
  6687. file_magic_cmd=$lt_cv_file_magic_cmd
  6688. deplibs_check_method=$lt_cv_deplibs_check_method
  6689. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6690. if test -n "$ac_tool_prefix"; then
  6691. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6692. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6694. printf %s "checking for $ac_word... " >&6; }
  6695. if test ${ac_cv_prog_DLLTOOL+y}
  6696. then :
  6697. printf %s "(cached) " >&6
  6698. else case e in #(
  6699. e) if test -n "$DLLTOOL"; then
  6700. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6701. else
  6702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6703. for as_dir in $PATH
  6704. do
  6705. IFS=$as_save_IFS
  6706. case $as_dir in #(((
  6707. '') as_dir=./ ;;
  6708. */) ;;
  6709. *) as_dir=$as_dir/ ;;
  6710. esac
  6711. for ac_exec_ext in '' $ac_executable_extensions; do
  6712. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6713. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6715. break 2
  6716. fi
  6717. done
  6718. done
  6719. IFS=$as_save_IFS
  6720. fi ;;
  6721. esac
  6722. fi
  6723. DLLTOOL=$ac_cv_prog_DLLTOOL
  6724. if test -n "$DLLTOOL"; then
  6725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6726. printf "%s\n" "$DLLTOOL" >&6; }
  6727. else
  6728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6729. printf "%s\n" "no" >&6; }
  6730. fi
  6731. fi
  6732. if test -z "$ac_cv_prog_DLLTOOL"; then
  6733. ac_ct_DLLTOOL=$DLLTOOL
  6734. # Extract the first word of "dlltool", so it can be a program name with args.
  6735. set dummy dlltool; ac_word=$2
  6736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6737. printf %s "checking for $ac_word... " >&6; }
  6738. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6739. then :
  6740. printf %s "(cached) " >&6
  6741. else case e in #(
  6742. e) if test -n "$ac_ct_DLLTOOL"; then
  6743. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6744. else
  6745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6746. for as_dir in $PATH
  6747. do
  6748. IFS=$as_save_IFS
  6749. case $as_dir in #(((
  6750. '') as_dir=./ ;;
  6751. */) ;;
  6752. *) as_dir=$as_dir/ ;;
  6753. esac
  6754. for ac_exec_ext in '' $ac_executable_extensions; do
  6755. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6756. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6757. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6758. break 2
  6759. fi
  6760. done
  6761. done
  6762. IFS=$as_save_IFS
  6763. fi ;;
  6764. esac
  6765. fi
  6766. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6767. if test -n "$ac_ct_DLLTOOL"; then
  6768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6769. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6770. else
  6771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6772. printf "%s\n" "no" >&6; }
  6773. fi
  6774. if test "x$ac_ct_DLLTOOL" = x; then
  6775. DLLTOOL="false"
  6776. else
  6777. case $cross_compiling:$ac_tool_warned in
  6778. yes:)
  6779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6780. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6781. ac_tool_warned=yes ;;
  6782. esac
  6783. DLLTOOL=$ac_ct_DLLTOOL
  6784. fi
  6785. else
  6786. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6787. fi
  6788. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6790. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6791. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6792. then :
  6793. printf %s "(cached) " >&6
  6794. else case e in #(
  6795. e) lt_cv_sharedlib_from_linklib_cmd='unknown'
  6796. case $host_os in
  6797. cygwin* | mingw* | pw32* | cegcc*)
  6798. # two different shell functions defined in ltmain.sh;
  6799. # decide which one to use based on capabilities of $DLLTOOL
  6800. case `$DLLTOOL --help 2>&1` in
  6801. *--identify-strict*)
  6802. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6803. ;;
  6804. *)
  6805. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6806. ;;
  6807. esac
  6808. ;;
  6809. *)
  6810. # fallback: assume linklib IS sharedlib
  6811. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6812. ;;
  6813. esac
  6814. ;;
  6815. esac
  6816. fi
  6817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6818. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6819. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6820. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6821. if test -n "$ac_tool_prefix"; then
  6822. for ac_prog in ar
  6823. do
  6824. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6825. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6827. printf %s "checking for $ac_word... " >&6; }
  6828. if test ${ac_cv_prog_AR+y}
  6829. then :
  6830. printf %s "(cached) " >&6
  6831. else case e in #(
  6832. e) if test -n "$AR"; then
  6833. ac_cv_prog_AR="$AR" # Let the user override the test.
  6834. else
  6835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6836. for as_dir in $PATH
  6837. do
  6838. IFS=$as_save_IFS
  6839. case $as_dir in #(((
  6840. '') as_dir=./ ;;
  6841. */) ;;
  6842. *) as_dir=$as_dir/ ;;
  6843. esac
  6844. for ac_exec_ext in '' $ac_executable_extensions; do
  6845. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6846. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6847. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6848. break 2
  6849. fi
  6850. done
  6851. done
  6852. IFS=$as_save_IFS
  6853. fi ;;
  6854. esac
  6855. fi
  6856. AR=$ac_cv_prog_AR
  6857. if test -n "$AR"; then
  6858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6859. printf "%s\n" "$AR" >&6; }
  6860. else
  6861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6862. printf "%s\n" "no" >&6; }
  6863. fi
  6864. test -n "$AR" && break
  6865. done
  6866. fi
  6867. if test -z "$AR"; then
  6868. ac_ct_AR=$AR
  6869. for ac_prog in ar
  6870. do
  6871. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6872. set dummy $ac_prog; ac_word=$2
  6873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6874. printf %s "checking for $ac_word... " >&6; }
  6875. if test ${ac_cv_prog_ac_ct_AR+y}
  6876. then :
  6877. printf %s "(cached) " >&6
  6878. else case e in #(
  6879. e) if test -n "$ac_ct_AR"; then
  6880. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6881. else
  6882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6883. for as_dir in $PATH
  6884. do
  6885. IFS=$as_save_IFS
  6886. case $as_dir in #(((
  6887. '') as_dir=./ ;;
  6888. */) ;;
  6889. *) as_dir=$as_dir/ ;;
  6890. esac
  6891. for ac_exec_ext in '' $ac_executable_extensions; do
  6892. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6893. ac_cv_prog_ac_ct_AR="$ac_prog"
  6894. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6895. break 2
  6896. fi
  6897. done
  6898. done
  6899. IFS=$as_save_IFS
  6900. fi ;;
  6901. esac
  6902. fi
  6903. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6904. if test -n "$ac_ct_AR"; then
  6905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6906. printf "%s\n" "$ac_ct_AR" >&6; }
  6907. else
  6908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6909. printf "%s\n" "no" >&6; }
  6910. fi
  6911. test -n "$ac_ct_AR" && break
  6912. done
  6913. if test "x$ac_ct_AR" = x; then
  6914. AR="false"
  6915. else
  6916. case $cross_compiling:$ac_tool_warned in
  6917. yes:)
  6918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6919. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6920. ac_tool_warned=yes ;;
  6921. esac
  6922. AR=$ac_ct_AR
  6923. fi
  6924. fi
  6925. : ${AR=ar}
  6926. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  6927. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  6928. # higher priority because thats what people were doing historically (setting
  6929. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  6930. # variable obsoleted/removed.
  6931. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  6932. lt_ar_flags=$AR_FLAGS
  6933. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  6934. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  6935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6936. printf %s "checking for archiver @FILE support... " >&6; }
  6937. if test ${lt_cv_ar_at_file+y}
  6938. then :
  6939. printf %s "(cached) " >&6
  6940. else case e in #(
  6941. e) lt_cv_ar_at_file=no
  6942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6943. /* end confdefs.h. */
  6944. int
  6945. main (void)
  6946. {
  6947. ;
  6948. return 0;
  6949. }
  6950. _ACEOF
  6951. if ac_fn_c_try_compile "$LINENO"
  6952. then :
  6953. echo conftest.$ac_objext > conftest.lst
  6954. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6955. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6956. (eval $lt_ar_try) 2>&5
  6957. ac_status=$?
  6958. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6959. test $ac_status = 0; }
  6960. if test 0 -eq "$ac_status"; then
  6961. # Ensure the archiver fails upon bogus file names.
  6962. rm -f conftest.$ac_objext libconftest.a
  6963. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6964. (eval $lt_ar_try) 2>&5
  6965. ac_status=$?
  6966. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6967. test $ac_status = 0; }
  6968. if test 0 -ne "$ac_status"; then
  6969. lt_cv_ar_at_file=@
  6970. fi
  6971. fi
  6972. rm -f conftest.* libconftest.a
  6973. fi
  6974. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6975. ;;
  6976. esac
  6977. fi
  6978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6979. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6980. if test no = "$lt_cv_ar_at_file"; then
  6981. archiver_list_spec=
  6982. else
  6983. archiver_list_spec=$lt_cv_ar_at_file
  6984. fi
  6985. if test -n "$ac_tool_prefix"; then
  6986. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6987. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6989. printf %s "checking for $ac_word... " >&6; }
  6990. if test ${ac_cv_prog_STRIP+y}
  6991. then :
  6992. printf %s "(cached) " >&6
  6993. else case e in #(
  6994. e) if test -n "$STRIP"; then
  6995. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6996. else
  6997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6998. for as_dir in $PATH
  6999. do
  7000. IFS=$as_save_IFS
  7001. case $as_dir in #(((
  7002. '') as_dir=./ ;;
  7003. */) ;;
  7004. *) as_dir=$as_dir/ ;;
  7005. esac
  7006. for ac_exec_ext in '' $ac_executable_extensions; do
  7007. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7008. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7009. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7010. break 2
  7011. fi
  7012. done
  7013. done
  7014. IFS=$as_save_IFS
  7015. fi ;;
  7016. esac
  7017. fi
  7018. STRIP=$ac_cv_prog_STRIP
  7019. if test -n "$STRIP"; then
  7020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7021. printf "%s\n" "$STRIP" >&6; }
  7022. else
  7023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7024. printf "%s\n" "no" >&6; }
  7025. fi
  7026. fi
  7027. if test -z "$ac_cv_prog_STRIP"; then
  7028. ac_ct_STRIP=$STRIP
  7029. # Extract the first word of "strip", so it can be a program name with args.
  7030. set dummy strip; ac_word=$2
  7031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7032. printf %s "checking for $ac_word... " >&6; }
  7033. if test ${ac_cv_prog_ac_ct_STRIP+y}
  7034. then :
  7035. printf %s "(cached) " >&6
  7036. else case e in #(
  7037. e) if test -n "$ac_ct_STRIP"; then
  7038. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7039. else
  7040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7041. for as_dir in $PATH
  7042. do
  7043. IFS=$as_save_IFS
  7044. case $as_dir in #(((
  7045. '') as_dir=./ ;;
  7046. */) ;;
  7047. *) as_dir=$as_dir/ ;;
  7048. esac
  7049. for ac_exec_ext in '' $ac_executable_extensions; do
  7050. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7051. ac_cv_prog_ac_ct_STRIP="strip"
  7052. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7053. break 2
  7054. fi
  7055. done
  7056. done
  7057. IFS=$as_save_IFS
  7058. fi ;;
  7059. esac
  7060. fi
  7061. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7062. if test -n "$ac_ct_STRIP"; then
  7063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7064. printf "%s\n" "$ac_ct_STRIP" >&6; }
  7065. else
  7066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7067. printf "%s\n" "no" >&6; }
  7068. fi
  7069. if test "x$ac_ct_STRIP" = x; then
  7070. STRIP=":"
  7071. else
  7072. case $cross_compiling:$ac_tool_warned in
  7073. yes:)
  7074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7075. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7076. ac_tool_warned=yes ;;
  7077. esac
  7078. STRIP=$ac_ct_STRIP
  7079. fi
  7080. else
  7081. STRIP="$ac_cv_prog_STRIP"
  7082. fi
  7083. test -z "$STRIP" && STRIP=:
  7084. if test -n "$ac_tool_prefix"; then
  7085. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7086. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7088. printf %s "checking for $ac_word... " >&6; }
  7089. if test ${ac_cv_prog_RANLIB+y}
  7090. then :
  7091. printf %s "(cached) " >&6
  7092. else case e in #(
  7093. e) if test -n "$RANLIB"; then
  7094. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7095. else
  7096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7097. for as_dir in $PATH
  7098. do
  7099. IFS=$as_save_IFS
  7100. case $as_dir in #(((
  7101. '') as_dir=./ ;;
  7102. */) ;;
  7103. *) as_dir=$as_dir/ ;;
  7104. esac
  7105. for ac_exec_ext in '' $ac_executable_extensions; do
  7106. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7107. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7108. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7109. break 2
  7110. fi
  7111. done
  7112. done
  7113. IFS=$as_save_IFS
  7114. fi ;;
  7115. esac
  7116. fi
  7117. RANLIB=$ac_cv_prog_RANLIB
  7118. if test -n "$RANLIB"; then
  7119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7120. printf "%s\n" "$RANLIB" >&6; }
  7121. else
  7122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7123. printf "%s\n" "no" >&6; }
  7124. fi
  7125. fi
  7126. if test -z "$ac_cv_prog_RANLIB"; then
  7127. ac_ct_RANLIB=$RANLIB
  7128. # Extract the first word of "ranlib", so it can be a program name with args.
  7129. set dummy ranlib; ac_word=$2
  7130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7131. printf %s "checking for $ac_word... " >&6; }
  7132. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  7133. then :
  7134. printf %s "(cached) " >&6
  7135. else case e in #(
  7136. e) if test -n "$ac_ct_RANLIB"; then
  7137. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7138. else
  7139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7140. for as_dir in $PATH
  7141. do
  7142. IFS=$as_save_IFS
  7143. case $as_dir in #(((
  7144. '') as_dir=./ ;;
  7145. */) ;;
  7146. *) as_dir=$as_dir/ ;;
  7147. esac
  7148. for ac_exec_ext in '' $ac_executable_extensions; do
  7149. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7150. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7151. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7152. break 2
  7153. fi
  7154. done
  7155. done
  7156. IFS=$as_save_IFS
  7157. fi ;;
  7158. esac
  7159. fi
  7160. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7161. if test -n "$ac_ct_RANLIB"; then
  7162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7163. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  7164. else
  7165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7166. printf "%s\n" "no" >&6; }
  7167. fi
  7168. if test "x$ac_ct_RANLIB" = x; then
  7169. RANLIB=":"
  7170. else
  7171. case $cross_compiling:$ac_tool_warned in
  7172. yes:)
  7173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7174. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7175. ac_tool_warned=yes ;;
  7176. esac
  7177. RANLIB=$ac_ct_RANLIB
  7178. fi
  7179. else
  7180. RANLIB="$ac_cv_prog_RANLIB"
  7181. fi
  7182. test -z "$RANLIB" && RANLIB=:
  7183. # Determine commands to create old-style static archives.
  7184. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7185. old_postinstall_cmds='chmod 644 $oldlib'
  7186. old_postuninstall_cmds=
  7187. if test -n "$RANLIB"; then
  7188. case $host_os in
  7189. bitrig* | openbsd*)
  7190. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7191. ;;
  7192. *)
  7193. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7194. ;;
  7195. esac
  7196. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7197. fi
  7198. case $host_os in
  7199. darwin*)
  7200. lock_old_archive_extraction=yes ;;
  7201. *)
  7202. lock_old_archive_extraction=no ;;
  7203. esac
  7204. # If no C compiler was specified, use CC.
  7205. LTCC=${LTCC-"$CC"}
  7206. # If no C compiler flags were specified, use CFLAGS.
  7207. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7208. # Allow CC to be a program name with arguments.
  7209. compiler=$CC
  7210. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7212. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  7213. if test ${lt_cv_sys_global_symbol_pipe+y}
  7214. then :
  7215. printf %s "(cached) " >&6
  7216. else case e in #(
  7217. e)
  7218. # These are sane defaults that work on at least a few old systems.
  7219. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7220. # Character class describing NM global symbol codes.
  7221. symcode='[BCDEGRST]'
  7222. # Regexp to match symbols that can be accessed directly from C.
  7223. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7224. # Define system-specific variables.
  7225. case $host_os in
  7226. aix*)
  7227. symcode='[BCDT]'
  7228. ;;
  7229. cygwin* | mingw* | pw32* | cegcc*)
  7230. symcode='[ABCDGISTW]'
  7231. ;;
  7232. hpux*)
  7233. if test ia64 = "$host_cpu"; then
  7234. symcode='[ABCDEGRST]'
  7235. fi
  7236. ;;
  7237. irix* | nonstopux*)
  7238. symcode='[BCDEGRST]'
  7239. ;;
  7240. osf*)
  7241. symcode='[BCDEGQRST]'
  7242. ;;
  7243. solaris*)
  7244. symcode='[BDRT]'
  7245. ;;
  7246. sco3.2v5*)
  7247. symcode='[DT]'
  7248. ;;
  7249. sysv4.2uw2*)
  7250. symcode='[DT]'
  7251. ;;
  7252. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7253. symcode='[ABDT]'
  7254. ;;
  7255. sysv4)
  7256. symcode='[DFNSTU]'
  7257. ;;
  7258. esac
  7259. # If we're using GNU nm, then use its standard symbol codes.
  7260. case `$NM -V 2>&1` in
  7261. *GNU* | *'with BFD'*)
  7262. symcode='[ABCDGIRSTW]' ;;
  7263. esac
  7264. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7265. # Gets list of data symbols to import.
  7266. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  7267. # Adjust the below global symbol transforms to fixup imported variables.
  7268. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7269. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7270. lt_c_name_lib_hook="\
  7271. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7272. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7273. else
  7274. # Disable hooks by default.
  7275. lt_cv_sys_global_symbol_to_import=
  7276. lt_cdecl_hook=
  7277. lt_c_name_hook=
  7278. lt_c_name_lib_hook=
  7279. fi
  7280. # Transform an extracted symbol line into a proper C declaration.
  7281. # Some systems (esp. on ia64) link data and code symbols differently,
  7282. # so use this general approach.
  7283. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  7284. $lt_cdecl_hook\
  7285. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7286. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7287. # Transform an extracted symbol line into symbol name and symbol address
  7288. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  7289. $lt_c_name_hook\
  7290. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7291. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7292. # Transform an extracted symbol line into symbol name with lib prefix and
  7293. # symbol address.
  7294. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  7295. $lt_c_name_lib_hook\
  7296. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7297. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7298. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7299. # Handle CRLF in mingw tool chain
  7300. opt_cr=
  7301. case $build_os in
  7302. mingw*)
  7303. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7304. ;;
  7305. esac
  7306. # Try without a prefix underscore, then with it.
  7307. for ac_symprfx in "" "_"; do
  7308. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7309. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7310. # Write the raw and C identifiers.
  7311. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7312. # Fake it for dumpbin and say T for any non-static function,
  7313. # D for any global variable and I for any imported variable.
  7314. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  7315. # which start with @ or ?.
  7316. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7317. " {last_section=section; section=\$ 3};"\
  7318. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7319. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7320. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7321. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7322. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7323. " \$ 0!~/External *\|/{next};"\
  7324. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7325. " {if(hide[section]) next};"\
  7326. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7327. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7328. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7329. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7330. " ' prfx=^$ac_symprfx"
  7331. else
  7332. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7333. fi
  7334. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  7335. # Check to see that the pipe works correctly.
  7336. pipe_works=no
  7337. rm -f conftest*
  7338. cat > conftest.$ac_ext <<_LT_EOF
  7339. #ifdef __cplusplus
  7340. extern "C" {
  7341. #endif
  7342. char nm_test_var;
  7343. void nm_test_func(void);
  7344. void nm_test_func(void){}
  7345. #ifdef __cplusplus
  7346. }
  7347. #endif
  7348. int main(){nm_test_var='a';nm_test_func();return(0);}
  7349. _LT_EOF
  7350. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7351. (eval $ac_compile) 2>&5
  7352. ac_status=$?
  7353. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7354. test $ac_status = 0; }; then
  7355. # Now try to grab the symbols.
  7356. nlist=conftest.nm
  7357. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7358. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7359. ac_status=$?
  7360. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7361. test $ac_status = 0; } && test -s "$nlist"; then
  7362. # Try sorting and uniquifying the output.
  7363. if sort "$nlist" | uniq > "$nlist"T; then
  7364. mv -f "$nlist"T "$nlist"
  7365. else
  7366. rm -f "$nlist"T
  7367. fi
  7368. # Make sure that we snagged all the symbols we need.
  7369. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7370. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7371. cat <<_LT_EOF > conftest.$ac_ext
  7372. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7373. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7374. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7375. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7376. # define LT_DLSYM_CONST
  7377. #elif defined __osf__
  7378. /* This system does not cope well with relocations in const data. */
  7379. # define LT_DLSYM_CONST
  7380. #else
  7381. # define LT_DLSYM_CONST const
  7382. #endif
  7383. #ifdef __cplusplus
  7384. extern "C" {
  7385. #endif
  7386. _LT_EOF
  7387. # Now generate the symbol file.
  7388. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7389. cat <<_LT_EOF >> conftest.$ac_ext
  7390. /* The mapping between symbol names and symbols. */
  7391. LT_DLSYM_CONST struct {
  7392. const char *name;
  7393. void *address;
  7394. }
  7395. lt__PROGRAM__LTX_preloaded_symbols[] =
  7396. {
  7397. { "@PROGRAM@", (void *) 0 },
  7398. _LT_EOF
  7399. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7400. cat <<\_LT_EOF >> conftest.$ac_ext
  7401. {0, (void *) 0}
  7402. };
  7403. /* This works around a problem in FreeBSD linker */
  7404. #ifdef FREEBSD_WORKAROUND
  7405. static const void *lt_preloaded_setup() {
  7406. return lt__PROGRAM__LTX_preloaded_symbols;
  7407. }
  7408. #endif
  7409. #ifdef __cplusplus
  7410. }
  7411. #endif
  7412. _LT_EOF
  7413. # Now try linking the two files.
  7414. mv conftest.$ac_objext conftstm.$ac_objext
  7415. lt_globsym_save_LIBS=$LIBS
  7416. lt_globsym_save_CFLAGS=$CFLAGS
  7417. LIBS=conftstm.$ac_objext
  7418. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7419. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7420. (eval $ac_link) 2>&5
  7421. ac_status=$?
  7422. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7423. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7424. pipe_works=yes
  7425. fi
  7426. LIBS=$lt_globsym_save_LIBS
  7427. CFLAGS=$lt_globsym_save_CFLAGS
  7428. else
  7429. echo "cannot find nm_test_func in $nlist" >&5
  7430. fi
  7431. else
  7432. echo "cannot find nm_test_var in $nlist" >&5
  7433. fi
  7434. else
  7435. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7436. fi
  7437. else
  7438. echo "$progname: failed program was:" >&5
  7439. cat conftest.$ac_ext >&5
  7440. fi
  7441. rm -rf conftest* conftst*
  7442. # Do not use the global_symbol_pipe unless it works.
  7443. if test yes = "$pipe_works"; then
  7444. break
  7445. else
  7446. lt_cv_sys_global_symbol_pipe=
  7447. fi
  7448. done
  7449. ;;
  7450. esac
  7451. fi
  7452. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7453. lt_cv_sys_global_symbol_to_cdecl=
  7454. fi
  7455. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7457. printf "%s\n" "failed" >&6; }
  7458. else
  7459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7460. printf "%s\n" "ok" >&6; }
  7461. fi
  7462. # Response file support.
  7463. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7464. nm_file_list_spec='@'
  7465. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7466. nm_file_list_spec='@'
  7467. fi
  7468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7469. printf %s "checking for sysroot... " >&6; }
  7470. # Check whether --with-sysroot was given.
  7471. if test ${with_sysroot+y}
  7472. then :
  7473. withval=$with_sysroot;
  7474. else case e in #(
  7475. e) with_sysroot=no ;;
  7476. esac
  7477. fi
  7478. lt_sysroot=
  7479. case $with_sysroot in #(
  7480. yes)
  7481. if test yes = "$GCC"; then
  7482. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7483. fi
  7484. ;; #(
  7485. /*)
  7486. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  7487. ;; #(
  7488. no|'')
  7489. ;; #(
  7490. *)
  7491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7492. printf "%s\n" "$with_sysroot" >&6; }
  7493. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7494. ;;
  7495. esac
  7496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7497. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  7498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7499. printf %s "checking for a working dd... " >&6; }
  7500. if test ${ac_cv_path_lt_DD+y}
  7501. then :
  7502. printf %s "(cached) " >&6
  7503. else case e in #(
  7504. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  7505. cat conftest.i conftest.i >conftest2.i
  7506. : ${lt_DD:=$DD}
  7507. if test -z "$lt_DD"; then
  7508. ac_path_lt_DD_found=false
  7509. # Loop through the user's path and test for each of PROGNAME-LIST
  7510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7511. for as_dir in $PATH
  7512. do
  7513. IFS=$as_save_IFS
  7514. case $as_dir in #(((
  7515. '') as_dir=./ ;;
  7516. */) ;;
  7517. *) as_dir=$as_dir/ ;;
  7518. esac
  7519. for ac_prog in dd
  7520. do
  7521. for ac_exec_ext in '' $ac_executable_extensions; do
  7522. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  7523. as_fn_executable_p "$ac_path_lt_DD" || continue
  7524. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7525. cmp -s conftest.i conftest.out \
  7526. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7527. fi
  7528. $ac_path_lt_DD_found && break 3
  7529. done
  7530. done
  7531. done
  7532. IFS=$as_save_IFS
  7533. if test -z "$ac_cv_path_lt_DD"; then
  7534. :
  7535. fi
  7536. else
  7537. ac_cv_path_lt_DD=$lt_DD
  7538. fi
  7539. rm -f conftest.i conftest2.i conftest.out ;;
  7540. esac
  7541. fi
  7542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7543. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  7544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7545. printf %s "checking how to truncate binary pipes... " >&6; }
  7546. if test ${lt_cv_truncate_bin+y}
  7547. then :
  7548. printf %s "(cached) " >&6
  7549. else case e in #(
  7550. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  7551. cat conftest.i conftest.i >conftest2.i
  7552. lt_cv_truncate_bin=
  7553. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7554. cmp -s conftest.i conftest.out \
  7555. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7556. fi
  7557. rm -f conftest.i conftest2.i conftest.out
  7558. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
  7559. esac
  7560. fi
  7561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7562. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  7563. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7564. func_cc_basename ()
  7565. {
  7566. for cc_temp in $*""; do
  7567. case $cc_temp in
  7568. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7569. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7570. \-*) ;;
  7571. *) break;;
  7572. esac
  7573. done
  7574. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7575. }
  7576. # Check whether --enable-libtool-lock was given.
  7577. if test ${enable_libtool_lock+y}
  7578. then :
  7579. enableval=$enable_libtool_lock;
  7580. fi
  7581. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7582. # Some flags need to be propagated to the compiler or linker for good
  7583. # libtool support.
  7584. case $host in
  7585. ia64-*-hpux*)
  7586. # Find out what ABI is being produced by ac_compile, and set mode
  7587. # options accordingly.
  7588. echo 'int i;' > conftest.$ac_ext
  7589. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7590. (eval $ac_compile) 2>&5
  7591. ac_status=$?
  7592. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7593. test $ac_status = 0; }; then
  7594. case `$FILECMD conftest.$ac_objext` in
  7595. *ELF-32*)
  7596. HPUX_IA64_MODE=32
  7597. ;;
  7598. *ELF-64*)
  7599. HPUX_IA64_MODE=64
  7600. ;;
  7601. esac
  7602. fi
  7603. rm -rf conftest*
  7604. ;;
  7605. *-*-irix6*)
  7606. # Find out what ABI is being produced by ac_compile, and set linker
  7607. # options accordingly.
  7608. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7609. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7610. (eval $ac_compile) 2>&5
  7611. ac_status=$?
  7612. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7613. test $ac_status = 0; }; then
  7614. if test yes = "$lt_cv_prog_gnu_ld"; then
  7615. case `$FILECMD conftest.$ac_objext` in
  7616. *32-bit*)
  7617. LD="${LD-ld} -melf32bsmip"
  7618. ;;
  7619. *N32*)
  7620. LD="${LD-ld} -melf32bmipn32"
  7621. ;;
  7622. *64-bit*)
  7623. LD="${LD-ld} -melf64bmip"
  7624. ;;
  7625. esac
  7626. else
  7627. case `$FILECMD conftest.$ac_objext` in
  7628. *32-bit*)
  7629. LD="${LD-ld} -32"
  7630. ;;
  7631. *N32*)
  7632. LD="${LD-ld} -n32"
  7633. ;;
  7634. *64-bit*)
  7635. LD="${LD-ld} -64"
  7636. ;;
  7637. esac
  7638. fi
  7639. fi
  7640. rm -rf conftest*
  7641. ;;
  7642. mips64*-*linux*)
  7643. # Find out what ABI is being produced by ac_compile, and set linker
  7644. # options accordingly.
  7645. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7646. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7647. (eval $ac_compile) 2>&5
  7648. ac_status=$?
  7649. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7650. test $ac_status = 0; }; then
  7651. emul=elf
  7652. case `$FILECMD conftest.$ac_objext` in
  7653. *32-bit*)
  7654. emul="${emul}32"
  7655. ;;
  7656. *64-bit*)
  7657. emul="${emul}64"
  7658. ;;
  7659. esac
  7660. case `$FILECMD conftest.$ac_objext` in
  7661. *MSB*)
  7662. emul="${emul}btsmip"
  7663. ;;
  7664. *LSB*)
  7665. emul="${emul}ltsmip"
  7666. ;;
  7667. esac
  7668. case `$FILECMD conftest.$ac_objext` in
  7669. *N32*)
  7670. emul="${emul}n32"
  7671. ;;
  7672. esac
  7673. LD="${LD-ld} -m $emul"
  7674. fi
  7675. rm -rf conftest*
  7676. ;;
  7677. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7678. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7679. # Find out what ABI is being produced by ac_compile, and set linker
  7680. # options accordingly. Note that the listed cases only cover the
  7681. # situations where additional linker options are needed (such as when
  7682. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7683. # vice versa); the common cases where no linker options are needed do
  7684. # not appear in the list.
  7685. echo 'int i;' > conftest.$ac_ext
  7686. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7687. (eval $ac_compile) 2>&5
  7688. ac_status=$?
  7689. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7690. test $ac_status = 0; }; then
  7691. case `$FILECMD conftest.o` in
  7692. *32-bit*)
  7693. case $host in
  7694. x86_64-*kfreebsd*-gnu)
  7695. LD="${LD-ld} -m elf_i386_fbsd"
  7696. ;;
  7697. x86_64-*linux*)
  7698. case `$FILECMD conftest.o` in
  7699. *x86-64*)
  7700. LD="${LD-ld} -m elf32_x86_64"
  7701. ;;
  7702. *)
  7703. LD="${LD-ld} -m elf_i386"
  7704. ;;
  7705. esac
  7706. ;;
  7707. powerpc64le-*linux*)
  7708. LD="${LD-ld} -m elf32lppclinux"
  7709. ;;
  7710. powerpc64-*linux*)
  7711. LD="${LD-ld} -m elf32ppclinux"
  7712. ;;
  7713. s390x-*linux*)
  7714. LD="${LD-ld} -m elf_s390"
  7715. ;;
  7716. sparc64-*linux*)
  7717. LD="${LD-ld} -m elf32_sparc"
  7718. ;;
  7719. esac
  7720. ;;
  7721. *64-bit*)
  7722. case $host in
  7723. x86_64-*kfreebsd*-gnu)
  7724. LD="${LD-ld} -m elf_x86_64_fbsd"
  7725. ;;
  7726. x86_64-*linux*)
  7727. LD="${LD-ld} -m elf_x86_64"
  7728. ;;
  7729. powerpcle-*linux*)
  7730. LD="${LD-ld} -m elf64lppc"
  7731. ;;
  7732. powerpc-*linux*)
  7733. LD="${LD-ld} -m elf64ppc"
  7734. ;;
  7735. s390*-*linux*|s390*-*tpf*)
  7736. LD="${LD-ld} -m elf64_s390"
  7737. ;;
  7738. sparc*-*linux*)
  7739. LD="${LD-ld} -m elf64_sparc"
  7740. ;;
  7741. esac
  7742. ;;
  7743. esac
  7744. fi
  7745. rm -rf conftest*
  7746. ;;
  7747. *-*-sco3.2v5*)
  7748. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7749. SAVE_CFLAGS=$CFLAGS
  7750. CFLAGS="$CFLAGS -belf"
  7751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7752. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7753. if test ${lt_cv_cc_needs_belf+y}
  7754. then :
  7755. printf %s "(cached) " >&6
  7756. else case e in #(
  7757. e) ac_ext=c
  7758. ac_cpp='$CPP $CPPFLAGS'
  7759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7763. /* end confdefs.h. */
  7764. int
  7765. main (void)
  7766. {
  7767. ;
  7768. return 0;
  7769. }
  7770. _ACEOF
  7771. if ac_fn_c_try_link "$LINENO"
  7772. then :
  7773. lt_cv_cc_needs_belf=yes
  7774. else case e in #(
  7775. e) lt_cv_cc_needs_belf=no ;;
  7776. esac
  7777. fi
  7778. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7779. conftest$ac_exeext conftest.$ac_ext
  7780. ac_ext=c
  7781. ac_cpp='$CPP $CPPFLAGS'
  7782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7785. ;;
  7786. esac
  7787. fi
  7788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7789. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7790. if test yes != "$lt_cv_cc_needs_belf"; then
  7791. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7792. CFLAGS=$SAVE_CFLAGS
  7793. fi
  7794. ;;
  7795. *-*solaris*)
  7796. # Find out what ABI is being produced by ac_compile, and set linker
  7797. # options accordingly.
  7798. echo 'int i;' > conftest.$ac_ext
  7799. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7800. (eval $ac_compile) 2>&5
  7801. ac_status=$?
  7802. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7803. test $ac_status = 0; }; then
  7804. case `$FILECMD conftest.o` in
  7805. *64-bit*)
  7806. case $lt_cv_prog_gnu_ld in
  7807. yes*)
  7808. case $host in
  7809. i?86-*-solaris*|x86_64-*-solaris*)
  7810. LD="${LD-ld} -m elf_x86_64"
  7811. ;;
  7812. sparc*-*-solaris*)
  7813. LD="${LD-ld} -m elf64_sparc"
  7814. ;;
  7815. esac
  7816. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7817. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7818. LD=${LD-ld}_sol2
  7819. fi
  7820. ;;
  7821. *)
  7822. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7823. LD="${LD-ld} -64"
  7824. fi
  7825. ;;
  7826. esac
  7827. ;;
  7828. esac
  7829. fi
  7830. rm -rf conftest*
  7831. ;;
  7832. esac
  7833. need_locks=$enable_libtool_lock
  7834. if test -n "$ac_tool_prefix"; then
  7835. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7836. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7838. printf %s "checking for $ac_word... " >&6; }
  7839. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7840. then :
  7841. printf %s "(cached) " >&6
  7842. else case e in #(
  7843. e) if test -n "$MANIFEST_TOOL"; then
  7844. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7845. else
  7846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7847. for as_dir in $PATH
  7848. do
  7849. IFS=$as_save_IFS
  7850. case $as_dir in #(((
  7851. '') as_dir=./ ;;
  7852. */) ;;
  7853. *) as_dir=$as_dir/ ;;
  7854. esac
  7855. for ac_exec_ext in '' $ac_executable_extensions; do
  7856. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7857. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7858. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7859. break 2
  7860. fi
  7861. done
  7862. done
  7863. IFS=$as_save_IFS
  7864. fi ;;
  7865. esac
  7866. fi
  7867. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7868. if test -n "$MANIFEST_TOOL"; then
  7869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7870. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7871. else
  7872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7873. printf "%s\n" "no" >&6; }
  7874. fi
  7875. fi
  7876. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7877. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7878. # Extract the first word of "mt", so it can be a program name with args.
  7879. set dummy mt; ac_word=$2
  7880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7881. printf %s "checking for $ac_word... " >&6; }
  7882. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7883. then :
  7884. printf %s "(cached) " >&6
  7885. else case e in #(
  7886. e) if test -n "$ac_ct_MANIFEST_TOOL"; then
  7887. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7888. else
  7889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7890. for as_dir in $PATH
  7891. do
  7892. IFS=$as_save_IFS
  7893. case $as_dir in #(((
  7894. '') as_dir=./ ;;
  7895. */) ;;
  7896. *) as_dir=$as_dir/ ;;
  7897. esac
  7898. for ac_exec_ext in '' $ac_executable_extensions; do
  7899. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7900. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7901. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7902. break 2
  7903. fi
  7904. done
  7905. done
  7906. IFS=$as_save_IFS
  7907. fi ;;
  7908. esac
  7909. fi
  7910. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7911. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7913. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7914. else
  7915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7916. printf "%s\n" "no" >&6; }
  7917. fi
  7918. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7919. MANIFEST_TOOL=":"
  7920. else
  7921. case $cross_compiling:$ac_tool_warned in
  7922. yes:)
  7923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7924. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7925. ac_tool_warned=yes ;;
  7926. esac
  7927. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7928. fi
  7929. else
  7930. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7931. fi
  7932. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7934. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7935. if test ${lt_cv_path_mainfest_tool+y}
  7936. then :
  7937. printf %s "(cached) " >&6
  7938. else case e in #(
  7939. e) lt_cv_path_mainfest_tool=no
  7940. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7941. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7942. cat conftest.err >&5
  7943. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7944. lt_cv_path_mainfest_tool=yes
  7945. fi
  7946. rm -f conftest* ;;
  7947. esac
  7948. fi
  7949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7950. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7951. if test yes != "$lt_cv_path_mainfest_tool"; then
  7952. MANIFEST_TOOL=:
  7953. fi
  7954. case $host_os in
  7955. rhapsody* | darwin*)
  7956. if test -n "$ac_tool_prefix"; then
  7957. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7958. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7960. printf %s "checking for $ac_word... " >&6; }
  7961. if test ${ac_cv_prog_DSYMUTIL+y}
  7962. then :
  7963. printf %s "(cached) " >&6
  7964. else case e in #(
  7965. e) if test -n "$DSYMUTIL"; then
  7966. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7967. else
  7968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7969. for as_dir in $PATH
  7970. do
  7971. IFS=$as_save_IFS
  7972. case $as_dir in #(((
  7973. '') as_dir=./ ;;
  7974. */) ;;
  7975. *) as_dir=$as_dir/ ;;
  7976. esac
  7977. for ac_exec_ext in '' $ac_executable_extensions; do
  7978. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7979. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7980. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7981. break 2
  7982. fi
  7983. done
  7984. done
  7985. IFS=$as_save_IFS
  7986. fi ;;
  7987. esac
  7988. fi
  7989. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7990. if test -n "$DSYMUTIL"; then
  7991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7992. printf "%s\n" "$DSYMUTIL" >&6; }
  7993. else
  7994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7995. printf "%s\n" "no" >&6; }
  7996. fi
  7997. fi
  7998. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7999. ac_ct_DSYMUTIL=$DSYMUTIL
  8000. # Extract the first word of "dsymutil", so it can be a program name with args.
  8001. set dummy dsymutil; ac_word=$2
  8002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8003. printf %s "checking for $ac_word... " >&6; }
  8004. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  8005. then :
  8006. printf %s "(cached) " >&6
  8007. else case e in #(
  8008. e) if test -n "$ac_ct_DSYMUTIL"; then
  8009. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8010. else
  8011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8012. for as_dir in $PATH
  8013. do
  8014. IFS=$as_save_IFS
  8015. case $as_dir in #(((
  8016. '') as_dir=./ ;;
  8017. */) ;;
  8018. *) as_dir=$as_dir/ ;;
  8019. esac
  8020. for ac_exec_ext in '' $ac_executable_extensions; do
  8021. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8022. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8024. break 2
  8025. fi
  8026. done
  8027. done
  8028. IFS=$as_save_IFS
  8029. fi ;;
  8030. esac
  8031. fi
  8032. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8033. if test -n "$ac_ct_DSYMUTIL"; then
  8034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8035. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  8036. else
  8037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8038. printf "%s\n" "no" >&6; }
  8039. fi
  8040. if test "x$ac_ct_DSYMUTIL" = x; then
  8041. DSYMUTIL=":"
  8042. else
  8043. case $cross_compiling:$ac_tool_warned in
  8044. yes:)
  8045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8046. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8047. ac_tool_warned=yes ;;
  8048. esac
  8049. DSYMUTIL=$ac_ct_DSYMUTIL
  8050. fi
  8051. else
  8052. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8053. fi
  8054. if test -n "$ac_tool_prefix"; then
  8055. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8056. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8058. printf %s "checking for $ac_word... " >&6; }
  8059. if test ${ac_cv_prog_NMEDIT+y}
  8060. then :
  8061. printf %s "(cached) " >&6
  8062. else case e in #(
  8063. e) if test -n "$NMEDIT"; then
  8064. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8065. else
  8066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8067. for as_dir in $PATH
  8068. do
  8069. IFS=$as_save_IFS
  8070. case $as_dir in #(((
  8071. '') as_dir=./ ;;
  8072. */) ;;
  8073. *) as_dir=$as_dir/ ;;
  8074. esac
  8075. for ac_exec_ext in '' $ac_executable_extensions; do
  8076. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8077. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8078. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8079. break 2
  8080. fi
  8081. done
  8082. done
  8083. IFS=$as_save_IFS
  8084. fi ;;
  8085. esac
  8086. fi
  8087. NMEDIT=$ac_cv_prog_NMEDIT
  8088. if test -n "$NMEDIT"; then
  8089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8090. printf "%s\n" "$NMEDIT" >&6; }
  8091. else
  8092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8093. printf "%s\n" "no" >&6; }
  8094. fi
  8095. fi
  8096. if test -z "$ac_cv_prog_NMEDIT"; then
  8097. ac_ct_NMEDIT=$NMEDIT
  8098. # Extract the first word of "nmedit", so it can be a program name with args.
  8099. set dummy nmedit; ac_word=$2
  8100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8101. printf %s "checking for $ac_word... " >&6; }
  8102. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  8103. then :
  8104. printf %s "(cached) " >&6
  8105. else case e in #(
  8106. e) if test -n "$ac_ct_NMEDIT"; then
  8107. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8108. else
  8109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8110. for as_dir in $PATH
  8111. do
  8112. IFS=$as_save_IFS
  8113. case $as_dir in #(((
  8114. '') as_dir=./ ;;
  8115. */) ;;
  8116. *) as_dir=$as_dir/ ;;
  8117. esac
  8118. for ac_exec_ext in '' $ac_executable_extensions; do
  8119. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8120. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8121. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8122. break 2
  8123. fi
  8124. done
  8125. done
  8126. IFS=$as_save_IFS
  8127. fi ;;
  8128. esac
  8129. fi
  8130. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8131. if test -n "$ac_ct_NMEDIT"; then
  8132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8133. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  8134. else
  8135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8136. printf "%s\n" "no" >&6; }
  8137. fi
  8138. if test "x$ac_ct_NMEDIT" = x; then
  8139. NMEDIT=":"
  8140. else
  8141. case $cross_compiling:$ac_tool_warned in
  8142. yes:)
  8143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8144. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8145. ac_tool_warned=yes ;;
  8146. esac
  8147. NMEDIT=$ac_ct_NMEDIT
  8148. fi
  8149. else
  8150. NMEDIT="$ac_cv_prog_NMEDIT"
  8151. fi
  8152. if test -n "$ac_tool_prefix"; then
  8153. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8154. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8156. printf %s "checking for $ac_word... " >&6; }
  8157. if test ${ac_cv_prog_LIPO+y}
  8158. then :
  8159. printf %s "(cached) " >&6
  8160. else case e in #(
  8161. e) if test -n "$LIPO"; then
  8162. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8163. else
  8164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8165. for as_dir in $PATH
  8166. do
  8167. IFS=$as_save_IFS
  8168. case $as_dir in #(((
  8169. '') as_dir=./ ;;
  8170. */) ;;
  8171. *) as_dir=$as_dir/ ;;
  8172. esac
  8173. for ac_exec_ext in '' $ac_executable_extensions; do
  8174. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8175. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8176. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8177. break 2
  8178. fi
  8179. done
  8180. done
  8181. IFS=$as_save_IFS
  8182. fi ;;
  8183. esac
  8184. fi
  8185. LIPO=$ac_cv_prog_LIPO
  8186. if test -n "$LIPO"; then
  8187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8188. printf "%s\n" "$LIPO" >&6; }
  8189. else
  8190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8191. printf "%s\n" "no" >&6; }
  8192. fi
  8193. fi
  8194. if test -z "$ac_cv_prog_LIPO"; then
  8195. ac_ct_LIPO=$LIPO
  8196. # Extract the first word of "lipo", so it can be a program name with args.
  8197. set dummy lipo; ac_word=$2
  8198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8199. printf %s "checking for $ac_word... " >&6; }
  8200. if test ${ac_cv_prog_ac_ct_LIPO+y}
  8201. then :
  8202. printf %s "(cached) " >&6
  8203. else case e in #(
  8204. e) if test -n "$ac_ct_LIPO"; then
  8205. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8206. else
  8207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8208. for as_dir in $PATH
  8209. do
  8210. IFS=$as_save_IFS
  8211. case $as_dir in #(((
  8212. '') as_dir=./ ;;
  8213. */) ;;
  8214. *) as_dir=$as_dir/ ;;
  8215. esac
  8216. for ac_exec_ext in '' $ac_executable_extensions; do
  8217. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8218. ac_cv_prog_ac_ct_LIPO="lipo"
  8219. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8220. break 2
  8221. fi
  8222. done
  8223. done
  8224. IFS=$as_save_IFS
  8225. fi ;;
  8226. esac
  8227. fi
  8228. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8229. if test -n "$ac_ct_LIPO"; then
  8230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8231. printf "%s\n" "$ac_ct_LIPO" >&6; }
  8232. else
  8233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8234. printf "%s\n" "no" >&6; }
  8235. fi
  8236. if test "x$ac_ct_LIPO" = x; then
  8237. LIPO=":"
  8238. else
  8239. case $cross_compiling:$ac_tool_warned in
  8240. yes:)
  8241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8242. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8243. ac_tool_warned=yes ;;
  8244. esac
  8245. LIPO=$ac_ct_LIPO
  8246. fi
  8247. else
  8248. LIPO="$ac_cv_prog_LIPO"
  8249. fi
  8250. if test -n "$ac_tool_prefix"; then
  8251. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8252. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8254. printf %s "checking for $ac_word... " >&6; }
  8255. if test ${ac_cv_prog_OTOOL+y}
  8256. then :
  8257. printf %s "(cached) " >&6
  8258. else case e in #(
  8259. e) if test -n "$OTOOL"; then
  8260. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8261. else
  8262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8263. for as_dir in $PATH
  8264. do
  8265. IFS=$as_save_IFS
  8266. case $as_dir in #(((
  8267. '') as_dir=./ ;;
  8268. */) ;;
  8269. *) as_dir=$as_dir/ ;;
  8270. esac
  8271. for ac_exec_ext in '' $ac_executable_extensions; do
  8272. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8273. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8274. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8275. break 2
  8276. fi
  8277. done
  8278. done
  8279. IFS=$as_save_IFS
  8280. fi ;;
  8281. esac
  8282. fi
  8283. OTOOL=$ac_cv_prog_OTOOL
  8284. if test -n "$OTOOL"; then
  8285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8286. printf "%s\n" "$OTOOL" >&6; }
  8287. else
  8288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8289. printf "%s\n" "no" >&6; }
  8290. fi
  8291. fi
  8292. if test -z "$ac_cv_prog_OTOOL"; then
  8293. ac_ct_OTOOL=$OTOOL
  8294. # Extract the first word of "otool", so it can be a program name with args.
  8295. set dummy otool; ac_word=$2
  8296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8297. printf %s "checking for $ac_word... " >&6; }
  8298. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  8299. then :
  8300. printf %s "(cached) " >&6
  8301. else case e in #(
  8302. e) if test -n "$ac_ct_OTOOL"; then
  8303. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8304. else
  8305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8306. for as_dir in $PATH
  8307. do
  8308. IFS=$as_save_IFS
  8309. case $as_dir in #(((
  8310. '') as_dir=./ ;;
  8311. */) ;;
  8312. *) as_dir=$as_dir/ ;;
  8313. esac
  8314. for ac_exec_ext in '' $ac_executable_extensions; do
  8315. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8316. ac_cv_prog_ac_ct_OTOOL="otool"
  8317. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8318. break 2
  8319. fi
  8320. done
  8321. done
  8322. IFS=$as_save_IFS
  8323. fi ;;
  8324. esac
  8325. fi
  8326. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8327. if test -n "$ac_ct_OTOOL"; then
  8328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8329. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  8330. else
  8331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8332. printf "%s\n" "no" >&6; }
  8333. fi
  8334. if test "x$ac_ct_OTOOL" = x; then
  8335. OTOOL=":"
  8336. else
  8337. case $cross_compiling:$ac_tool_warned in
  8338. yes:)
  8339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8340. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8341. ac_tool_warned=yes ;;
  8342. esac
  8343. OTOOL=$ac_ct_OTOOL
  8344. fi
  8345. else
  8346. OTOOL="$ac_cv_prog_OTOOL"
  8347. fi
  8348. if test -n "$ac_tool_prefix"; then
  8349. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8350. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8352. printf %s "checking for $ac_word... " >&6; }
  8353. if test ${ac_cv_prog_OTOOL64+y}
  8354. then :
  8355. printf %s "(cached) " >&6
  8356. else case e in #(
  8357. e) if test -n "$OTOOL64"; then
  8358. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8359. else
  8360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8361. for as_dir in $PATH
  8362. do
  8363. IFS=$as_save_IFS
  8364. case $as_dir in #(((
  8365. '') as_dir=./ ;;
  8366. */) ;;
  8367. *) as_dir=$as_dir/ ;;
  8368. esac
  8369. for ac_exec_ext in '' $ac_executable_extensions; do
  8370. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8371. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8372. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8373. break 2
  8374. fi
  8375. done
  8376. done
  8377. IFS=$as_save_IFS
  8378. fi ;;
  8379. esac
  8380. fi
  8381. OTOOL64=$ac_cv_prog_OTOOL64
  8382. if test -n "$OTOOL64"; then
  8383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8384. printf "%s\n" "$OTOOL64" >&6; }
  8385. else
  8386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8387. printf "%s\n" "no" >&6; }
  8388. fi
  8389. fi
  8390. if test -z "$ac_cv_prog_OTOOL64"; then
  8391. ac_ct_OTOOL64=$OTOOL64
  8392. # Extract the first word of "otool64", so it can be a program name with args.
  8393. set dummy otool64; ac_word=$2
  8394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8395. printf %s "checking for $ac_word... " >&6; }
  8396. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  8397. then :
  8398. printf %s "(cached) " >&6
  8399. else case e in #(
  8400. e) if test -n "$ac_ct_OTOOL64"; then
  8401. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8402. else
  8403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8404. for as_dir in $PATH
  8405. do
  8406. IFS=$as_save_IFS
  8407. case $as_dir in #(((
  8408. '') as_dir=./ ;;
  8409. */) ;;
  8410. *) as_dir=$as_dir/ ;;
  8411. esac
  8412. for ac_exec_ext in '' $ac_executable_extensions; do
  8413. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8414. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8415. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8416. break 2
  8417. fi
  8418. done
  8419. done
  8420. IFS=$as_save_IFS
  8421. fi ;;
  8422. esac
  8423. fi
  8424. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8425. if test -n "$ac_ct_OTOOL64"; then
  8426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8427. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  8428. else
  8429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8430. printf "%s\n" "no" >&6; }
  8431. fi
  8432. if test "x$ac_ct_OTOOL64" = x; then
  8433. OTOOL64=":"
  8434. else
  8435. case $cross_compiling:$ac_tool_warned in
  8436. yes:)
  8437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8438. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8439. ac_tool_warned=yes ;;
  8440. esac
  8441. OTOOL64=$ac_ct_OTOOL64
  8442. fi
  8443. else
  8444. OTOOL64="$ac_cv_prog_OTOOL64"
  8445. fi
  8446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8447. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  8448. if test ${lt_cv_ld_exported_symbols_list+y}
  8449. then :
  8450. printf %s "(cached) " >&6
  8451. else case e in #(
  8452. e) lt_cv_ld_exported_symbols_list=no
  8453. save_LDFLAGS=$LDFLAGS
  8454. echo "_main" > conftest.sym
  8455. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8457. /* end confdefs.h. */
  8458. int
  8459. main (void)
  8460. {
  8461. ;
  8462. return 0;
  8463. }
  8464. _ACEOF
  8465. if ac_fn_c_try_link "$LINENO"
  8466. then :
  8467. lt_cv_ld_exported_symbols_list=yes
  8468. else case e in #(
  8469. e) lt_cv_ld_exported_symbols_list=no ;;
  8470. esac
  8471. fi
  8472. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8473. conftest$ac_exeext conftest.$ac_ext
  8474. LDFLAGS=$save_LDFLAGS
  8475. ;;
  8476. esac
  8477. fi
  8478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8479. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  8480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8481. printf %s "checking for -force_load linker flag... " >&6; }
  8482. if test ${lt_cv_ld_force_load+y}
  8483. then :
  8484. printf %s "(cached) " >&6
  8485. else case e in #(
  8486. e) lt_cv_ld_force_load=no
  8487. cat > conftest.c << _LT_EOF
  8488. int forced_loaded() { return 2;}
  8489. _LT_EOF
  8490. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8491. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8492. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  8493. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  8494. echo "$RANLIB libconftest.a" >&5
  8495. $RANLIB libconftest.a 2>&5
  8496. cat > conftest.c << _LT_EOF
  8497. int main() { return 0;}
  8498. _LT_EOF
  8499. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8500. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8501. _lt_result=$?
  8502. if test -s conftest.err && $GREP force_load conftest.err; then
  8503. cat conftest.err >&5
  8504. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8505. lt_cv_ld_force_load=yes
  8506. else
  8507. cat conftest.err >&5
  8508. fi
  8509. rm -f conftest.err libconftest.a conftest conftest.c
  8510. rm -rf conftest.dSYM
  8511. ;;
  8512. esac
  8513. fi
  8514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8515. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  8516. case $host_os in
  8517. rhapsody* | darwin1.[012])
  8518. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8519. darwin1.*)
  8520. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8521. darwin*)
  8522. case $MACOSX_DEPLOYMENT_TARGET,$host in
  8523. 10.[012],*|,*powerpc*-darwin[5-8]*)
  8524. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8525. *)
  8526. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8527. esac
  8528. ;;
  8529. esac
  8530. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8531. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8532. else
  8533. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8534. fi
  8535. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8536. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8537. else
  8538. _lt_dsymutil=
  8539. fi
  8540. ;;
  8541. esac
  8542. # func_munge_path_list VARIABLE PATH
  8543. # -----------------------------------
  8544. # VARIABLE is name of variable containing _space_ separated list of
  8545. # directories to be munged by the contents of PATH, which is string
  8546. # having a format:
  8547. # "DIR[:DIR]:"
  8548. # string "DIR[ DIR]" will be prepended to VARIABLE
  8549. # ":DIR[:DIR]"
  8550. # string "DIR[ DIR]" will be appended to VARIABLE
  8551. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8552. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8553. # "DIRA[ DIRA]" will be appended to VARIABLE
  8554. # "DIR[:DIR]"
  8555. # VARIABLE will be replaced by "DIR[ DIR]"
  8556. func_munge_path_list ()
  8557. {
  8558. case x$2 in
  8559. x)
  8560. ;;
  8561. *:)
  8562. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8563. ;;
  8564. x:*)
  8565. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8566. ;;
  8567. *::*)
  8568. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8569. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8570. ;;
  8571. *)
  8572. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8573. ;;
  8574. esac
  8575. }
  8576. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8577. "
  8578. if test "x$ac_cv_header_dlfcn_h" = xyes
  8579. then :
  8580. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8581. fi
  8582. # Set options
  8583. enable_win32_dll=yes
  8584. case $host in
  8585. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  8586. if test -n "$ac_tool_prefix"; then
  8587. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  8588. set dummy ${ac_tool_prefix}as; ac_word=$2
  8589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8590. printf %s "checking for $ac_word... " >&6; }
  8591. if test ${ac_cv_prog_AS+y}
  8592. then :
  8593. printf %s "(cached) " >&6
  8594. else case e in #(
  8595. e) if test -n "$AS"; then
  8596. ac_cv_prog_AS="$AS" # Let the user override the test.
  8597. else
  8598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8599. for as_dir in $PATH
  8600. do
  8601. IFS=$as_save_IFS
  8602. case $as_dir in #(((
  8603. '') as_dir=./ ;;
  8604. */) ;;
  8605. *) as_dir=$as_dir/ ;;
  8606. esac
  8607. for ac_exec_ext in '' $ac_executable_extensions; do
  8608. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8609. ac_cv_prog_AS="${ac_tool_prefix}as"
  8610. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8611. break 2
  8612. fi
  8613. done
  8614. done
  8615. IFS=$as_save_IFS
  8616. fi ;;
  8617. esac
  8618. fi
  8619. AS=$ac_cv_prog_AS
  8620. if test -n "$AS"; then
  8621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  8622. printf "%s\n" "$AS" >&6; }
  8623. else
  8624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8625. printf "%s\n" "no" >&6; }
  8626. fi
  8627. fi
  8628. if test -z "$ac_cv_prog_AS"; then
  8629. ac_ct_AS=$AS
  8630. # Extract the first word of "as", so it can be a program name with args.
  8631. set dummy as; ac_word=$2
  8632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8633. printf %s "checking for $ac_word... " >&6; }
  8634. if test ${ac_cv_prog_ac_ct_AS+y}
  8635. then :
  8636. printf %s "(cached) " >&6
  8637. else case e in #(
  8638. e) if test -n "$ac_ct_AS"; then
  8639. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  8640. else
  8641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8642. for as_dir in $PATH
  8643. do
  8644. IFS=$as_save_IFS
  8645. case $as_dir in #(((
  8646. '') as_dir=./ ;;
  8647. */) ;;
  8648. *) as_dir=$as_dir/ ;;
  8649. esac
  8650. for ac_exec_ext in '' $ac_executable_extensions; do
  8651. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8652. ac_cv_prog_ac_ct_AS="as"
  8653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8654. break 2
  8655. fi
  8656. done
  8657. done
  8658. IFS=$as_save_IFS
  8659. fi ;;
  8660. esac
  8661. fi
  8662. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  8663. if test -n "$ac_ct_AS"; then
  8664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  8665. printf "%s\n" "$ac_ct_AS" >&6; }
  8666. else
  8667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8668. printf "%s\n" "no" >&6; }
  8669. fi
  8670. if test "x$ac_ct_AS" = x; then
  8671. AS="false"
  8672. else
  8673. case $cross_compiling:$ac_tool_warned in
  8674. yes:)
  8675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8676. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8677. ac_tool_warned=yes ;;
  8678. esac
  8679. AS=$ac_ct_AS
  8680. fi
  8681. else
  8682. AS="$ac_cv_prog_AS"
  8683. fi
  8684. if test -n "$ac_tool_prefix"; then
  8685. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8686. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8688. printf %s "checking for $ac_word... " >&6; }
  8689. if test ${ac_cv_prog_DLLTOOL+y}
  8690. then :
  8691. printf %s "(cached) " >&6
  8692. else case e in #(
  8693. e) if test -n "$DLLTOOL"; then
  8694. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8695. else
  8696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8697. for as_dir in $PATH
  8698. do
  8699. IFS=$as_save_IFS
  8700. case $as_dir in #(((
  8701. '') as_dir=./ ;;
  8702. */) ;;
  8703. *) as_dir=$as_dir/ ;;
  8704. esac
  8705. for ac_exec_ext in '' $ac_executable_extensions; do
  8706. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8707. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8709. break 2
  8710. fi
  8711. done
  8712. done
  8713. IFS=$as_save_IFS
  8714. fi ;;
  8715. esac
  8716. fi
  8717. DLLTOOL=$ac_cv_prog_DLLTOOL
  8718. if test -n "$DLLTOOL"; then
  8719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8720. printf "%s\n" "$DLLTOOL" >&6; }
  8721. else
  8722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8723. printf "%s\n" "no" >&6; }
  8724. fi
  8725. fi
  8726. if test -z "$ac_cv_prog_DLLTOOL"; then
  8727. ac_ct_DLLTOOL=$DLLTOOL
  8728. # Extract the first word of "dlltool", so it can be a program name with args.
  8729. set dummy dlltool; ac_word=$2
  8730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8731. printf %s "checking for $ac_word... " >&6; }
  8732. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  8733. then :
  8734. printf %s "(cached) " >&6
  8735. else case e in #(
  8736. e) if test -n "$ac_ct_DLLTOOL"; then
  8737. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8738. else
  8739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8740. for as_dir in $PATH
  8741. do
  8742. IFS=$as_save_IFS
  8743. case $as_dir in #(((
  8744. '') as_dir=./ ;;
  8745. */) ;;
  8746. *) as_dir=$as_dir/ ;;
  8747. esac
  8748. for ac_exec_ext in '' $ac_executable_extensions; do
  8749. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8750. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8752. break 2
  8753. fi
  8754. done
  8755. done
  8756. IFS=$as_save_IFS
  8757. fi ;;
  8758. esac
  8759. fi
  8760. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8761. if test -n "$ac_ct_DLLTOOL"; then
  8762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8763. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  8764. else
  8765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8766. printf "%s\n" "no" >&6; }
  8767. fi
  8768. if test "x$ac_ct_DLLTOOL" = x; then
  8769. DLLTOOL="false"
  8770. else
  8771. case $cross_compiling:$ac_tool_warned in
  8772. yes:)
  8773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8774. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8775. ac_tool_warned=yes ;;
  8776. esac
  8777. DLLTOOL=$ac_ct_DLLTOOL
  8778. fi
  8779. else
  8780. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8781. fi
  8782. if test -n "$ac_tool_prefix"; then
  8783. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8784. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8786. printf %s "checking for $ac_word... " >&6; }
  8787. if test ${ac_cv_prog_OBJDUMP+y}
  8788. then :
  8789. printf %s "(cached) " >&6
  8790. else case e in #(
  8791. e) if test -n "$OBJDUMP"; then
  8792. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8793. else
  8794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8795. for as_dir in $PATH
  8796. do
  8797. IFS=$as_save_IFS
  8798. case $as_dir in #(((
  8799. '') as_dir=./ ;;
  8800. */) ;;
  8801. *) as_dir=$as_dir/ ;;
  8802. esac
  8803. for ac_exec_ext in '' $ac_executable_extensions; do
  8804. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8805. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8806. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8807. break 2
  8808. fi
  8809. done
  8810. done
  8811. IFS=$as_save_IFS
  8812. fi ;;
  8813. esac
  8814. fi
  8815. OBJDUMP=$ac_cv_prog_OBJDUMP
  8816. if test -n "$OBJDUMP"; then
  8817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8818. printf "%s\n" "$OBJDUMP" >&6; }
  8819. else
  8820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8821. printf "%s\n" "no" >&6; }
  8822. fi
  8823. fi
  8824. if test -z "$ac_cv_prog_OBJDUMP"; then
  8825. ac_ct_OBJDUMP=$OBJDUMP
  8826. # Extract the first word of "objdump", so it can be a program name with args.
  8827. set dummy objdump; ac_word=$2
  8828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8829. printf %s "checking for $ac_word... " >&6; }
  8830. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  8831. then :
  8832. printf %s "(cached) " >&6
  8833. else case e in #(
  8834. e) if test -n "$ac_ct_OBJDUMP"; then
  8835. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8836. else
  8837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8838. for as_dir in $PATH
  8839. do
  8840. IFS=$as_save_IFS
  8841. case $as_dir in #(((
  8842. '') as_dir=./ ;;
  8843. */) ;;
  8844. *) as_dir=$as_dir/ ;;
  8845. esac
  8846. for ac_exec_ext in '' $ac_executable_extensions; do
  8847. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8848. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8849. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8850. break 2
  8851. fi
  8852. done
  8853. done
  8854. IFS=$as_save_IFS
  8855. fi ;;
  8856. esac
  8857. fi
  8858. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8859. if test -n "$ac_ct_OBJDUMP"; then
  8860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8861. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  8862. else
  8863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8864. printf "%s\n" "no" >&6; }
  8865. fi
  8866. if test "x$ac_ct_OBJDUMP" = x; then
  8867. OBJDUMP="false"
  8868. else
  8869. case $cross_compiling:$ac_tool_warned in
  8870. yes:)
  8871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8872. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8873. ac_tool_warned=yes ;;
  8874. esac
  8875. OBJDUMP=$ac_ct_OBJDUMP
  8876. fi
  8877. else
  8878. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8879. fi
  8880. ;;
  8881. esac
  8882. test -z "$AS" && AS=as
  8883. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8884. test -z "$OBJDUMP" && OBJDUMP=objdump
  8885. enable_dlopen=no
  8886. # Check whether --enable-shared was given.
  8887. if test ${enable_shared+y}
  8888. then :
  8889. enableval=$enable_shared; p=${PACKAGE-default}
  8890. case $enableval in
  8891. yes) enable_shared=yes ;;
  8892. no) enable_shared=no ;;
  8893. *)
  8894. enable_shared=no
  8895. # Look at the argument we got. We use all the common list separators.
  8896. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8897. for pkg in $enableval; do
  8898. IFS=$lt_save_ifs
  8899. if test "X$pkg" = "X$p"; then
  8900. enable_shared=yes
  8901. fi
  8902. done
  8903. IFS=$lt_save_ifs
  8904. ;;
  8905. esac
  8906. else case e in #(
  8907. e) enable_shared=yes ;;
  8908. esac
  8909. fi
  8910. # Check whether --enable-static was given.
  8911. if test ${enable_static+y}
  8912. then :
  8913. enableval=$enable_static; p=${PACKAGE-default}
  8914. case $enableval in
  8915. yes) enable_static=yes ;;
  8916. no) enable_static=no ;;
  8917. *)
  8918. enable_static=no
  8919. # Look at the argument we got. We use all the common list separators.
  8920. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8921. for pkg in $enableval; do
  8922. IFS=$lt_save_ifs
  8923. if test "X$pkg" = "X$p"; then
  8924. enable_static=yes
  8925. fi
  8926. done
  8927. IFS=$lt_save_ifs
  8928. ;;
  8929. esac
  8930. else case e in #(
  8931. e) enable_static=yes ;;
  8932. esac
  8933. fi
  8934. # Check whether --with-pic was given.
  8935. if test ${with_pic+y}
  8936. then :
  8937. withval=$with_pic; lt_p=${PACKAGE-default}
  8938. case $withval in
  8939. yes|no) pic_mode=$withval ;;
  8940. *)
  8941. pic_mode=default
  8942. # Look at the argument we got. We use all the common list separators.
  8943. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8944. for lt_pkg in $withval; do
  8945. IFS=$lt_save_ifs
  8946. if test "X$lt_pkg" = "X$lt_p"; then
  8947. pic_mode=yes
  8948. fi
  8949. done
  8950. IFS=$lt_save_ifs
  8951. ;;
  8952. esac
  8953. else case e in #(
  8954. e) pic_mode=default ;;
  8955. esac
  8956. fi
  8957. # Check whether --enable-fast-install was given.
  8958. if test ${enable_fast_install+y}
  8959. then :
  8960. enableval=$enable_fast_install; p=${PACKAGE-default}
  8961. case $enableval in
  8962. yes) enable_fast_install=yes ;;
  8963. no) enable_fast_install=no ;;
  8964. *)
  8965. enable_fast_install=no
  8966. # Look at the argument we got. We use all the common list separators.
  8967. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8968. for pkg in $enableval; do
  8969. IFS=$lt_save_ifs
  8970. if test "X$pkg" = "X$p"; then
  8971. enable_fast_install=yes
  8972. fi
  8973. done
  8974. IFS=$lt_save_ifs
  8975. ;;
  8976. esac
  8977. else case e in #(
  8978. e) enable_fast_install=yes ;;
  8979. esac
  8980. fi
  8981. shared_archive_member_spec=
  8982. case $host,$enable_shared in
  8983. power*-*-aix[5-9]*,yes)
  8984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8985. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8986. # Check whether --with-aix-soname was given.
  8987. if test ${with_aix_soname+y}
  8988. then :
  8989. withval=$with_aix_soname; case $withval in
  8990. aix|svr4|both)
  8991. ;;
  8992. *)
  8993. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8994. ;;
  8995. esac
  8996. lt_cv_with_aix_soname=$with_aix_soname
  8997. else case e in #(
  8998. e) if test ${lt_cv_with_aix_soname+y}
  8999. then :
  9000. printf %s "(cached) " >&6
  9001. else case e in #(
  9002. e) lt_cv_with_aix_soname=aix ;;
  9003. esac
  9004. fi
  9005. with_aix_soname=$lt_cv_with_aix_soname ;;
  9006. esac
  9007. fi
  9008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  9009. printf "%s\n" "$with_aix_soname" >&6; }
  9010. if test aix != "$with_aix_soname"; then
  9011. # For the AIX way of multilib, we name the shared archive member
  9012. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  9013. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  9014. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  9015. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  9016. if test 64 = "${OBJECT_MODE-32}"; then
  9017. shared_archive_member_spec=shr_64
  9018. else
  9019. shared_archive_member_spec=shr
  9020. fi
  9021. fi
  9022. ;;
  9023. *)
  9024. with_aix_soname=aix
  9025. ;;
  9026. esac
  9027. # This can be used to rebuild libtool when needed
  9028. LIBTOOL_DEPS=$ltmain
  9029. # Always use our own libtool.
  9030. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9031. test -z "$LN_S" && LN_S="ln -s"
  9032. if test -n "${ZSH_VERSION+set}"; then
  9033. setopt NO_GLOB_SUBST
  9034. fi
  9035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9036. printf %s "checking for objdir... " >&6; }
  9037. if test ${lt_cv_objdir+y}
  9038. then :
  9039. printf %s "(cached) " >&6
  9040. else case e in #(
  9041. e) rm -f .libs 2>/dev/null
  9042. mkdir .libs 2>/dev/null
  9043. if test -d .libs; then
  9044. lt_cv_objdir=.libs
  9045. else
  9046. # MS-DOS does not allow filenames that begin with a dot.
  9047. lt_cv_objdir=_libs
  9048. fi
  9049. rmdir .libs 2>/dev/null ;;
  9050. esac
  9051. fi
  9052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9053. printf "%s\n" "$lt_cv_objdir" >&6; }
  9054. objdir=$lt_cv_objdir
  9055. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  9056. case $host_os in
  9057. aix3*)
  9058. # AIX sometimes has problems with the GCC collect2 program. For some
  9059. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9060. # vanish in a puff of smoke.
  9061. if test set != "${COLLECT_NAMES+set}"; then
  9062. COLLECT_NAMES=
  9063. export COLLECT_NAMES
  9064. fi
  9065. ;;
  9066. esac
  9067. # Global variables:
  9068. ofile=libtool
  9069. can_build_shared=yes
  9070. # All known linkers require a '.a' archive for static linking (except MSVC and
  9071. # ICC, which need '.lib').
  9072. libext=a
  9073. with_gnu_ld=$lt_cv_prog_gnu_ld
  9074. old_CC=$CC
  9075. old_CFLAGS=$CFLAGS
  9076. # Set sane defaults for various variables
  9077. test -z "$CC" && CC=cc
  9078. test -z "$LTCC" && LTCC=$CC
  9079. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9080. test -z "$LD" && LD=ld
  9081. test -z "$ac_objext" && ac_objext=o
  9082. func_cc_basename $compiler
  9083. cc_basename=$func_cc_basename_result
  9084. # Only perform the check for file, if the check method requires it
  9085. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9086. case $deplibs_check_method in
  9087. file_magic*)
  9088. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9090. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  9091. if test ${lt_cv_path_MAGIC_CMD+y}
  9092. then :
  9093. printf %s "(cached) " >&6
  9094. else case e in #(
  9095. e) case $MAGIC_CMD in
  9096. [\\/*] | ?:[\\/]*)
  9097. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9098. ;;
  9099. *)
  9100. lt_save_MAGIC_CMD=$MAGIC_CMD
  9101. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9102. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9103. for ac_dir in $ac_dummy; do
  9104. IFS=$lt_save_ifs
  9105. test -z "$ac_dir" && ac_dir=.
  9106. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9107. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9108. if test -n "$file_magic_test_file"; then
  9109. case $deplibs_check_method in
  9110. "file_magic "*)
  9111. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9112. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9113. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9114. $EGREP "$file_magic_regex" > /dev/null; then
  9115. :
  9116. else
  9117. cat <<_LT_EOF 1>&2
  9118. *** Warning: the command libtool uses to detect shared libraries,
  9119. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9120. *** The result is that libtool may fail to recognize shared libraries
  9121. *** as such. This will affect the creation of libtool libraries that
  9122. *** depend on shared libraries, but programs linked with such libtool
  9123. *** libraries will work regardless of this problem. Nevertheless, you
  9124. *** may want to report the problem to your system manager and/or to
  9125. *** bug-libtool@gnu.org
  9126. _LT_EOF
  9127. fi ;;
  9128. esac
  9129. fi
  9130. break
  9131. fi
  9132. done
  9133. IFS=$lt_save_ifs
  9134. MAGIC_CMD=$lt_save_MAGIC_CMD
  9135. ;;
  9136. esac ;;
  9137. esac
  9138. fi
  9139. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9140. if test -n "$MAGIC_CMD"; then
  9141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9142. printf "%s\n" "$MAGIC_CMD" >&6; }
  9143. else
  9144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9145. printf "%s\n" "no" >&6; }
  9146. fi
  9147. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9148. if test -n "$ac_tool_prefix"; then
  9149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9150. printf %s "checking for file... " >&6; }
  9151. if test ${lt_cv_path_MAGIC_CMD+y}
  9152. then :
  9153. printf %s "(cached) " >&6
  9154. else case e in #(
  9155. e) case $MAGIC_CMD in
  9156. [\\/*] | ?:[\\/]*)
  9157. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9158. ;;
  9159. *)
  9160. lt_save_MAGIC_CMD=$MAGIC_CMD
  9161. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9162. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9163. for ac_dir in $ac_dummy; do
  9164. IFS=$lt_save_ifs
  9165. test -z "$ac_dir" && ac_dir=.
  9166. if test -f "$ac_dir/file"; then
  9167. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  9168. if test -n "$file_magic_test_file"; then
  9169. case $deplibs_check_method in
  9170. "file_magic "*)
  9171. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9172. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9173. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9174. $EGREP "$file_magic_regex" > /dev/null; then
  9175. :
  9176. else
  9177. cat <<_LT_EOF 1>&2
  9178. *** Warning: the command libtool uses to detect shared libraries,
  9179. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9180. *** The result is that libtool may fail to recognize shared libraries
  9181. *** as such. This will affect the creation of libtool libraries that
  9182. *** depend on shared libraries, but programs linked with such libtool
  9183. *** libraries will work regardless of this problem. Nevertheless, you
  9184. *** may want to report the problem to your system manager and/or to
  9185. *** bug-libtool@gnu.org
  9186. _LT_EOF
  9187. fi ;;
  9188. esac
  9189. fi
  9190. break
  9191. fi
  9192. done
  9193. IFS=$lt_save_ifs
  9194. MAGIC_CMD=$lt_save_MAGIC_CMD
  9195. ;;
  9196. esac ;;
  9197. esac
  9198. fi
  9199. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9200. if test -n "$MAGIC_CMD"; then
  9201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9202. printf "%s\n" "$MAGIC_CMD" >&6; }
  9203. else
  9204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9205. printf "%s\n" "no" >&6; }
  9206. fi
  9207. else
  9208. MAGIC_CMD=:
  9209. fi
  9210. fi
  9211. fi
  9212. ;;
  9213. esac
  9214. # Use C for the default configuration in the libtool script
  9215. lt_save_CC=$CC
  9216. ac_ext=c
  9217. ac_cpp='$CPP $CPPFLAGS'
  9218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9221. # Source file extension for C test sources.
  9222. ac_ext=c
  9223. # Object file extension for compiled C test sources.
  9224. objext=o
  9225. objext=$objext
  9226. # Code to be used in simple compile tests
  9227. lt_simple_compile_test_code="int some_variable = 0;"
  9228. # Code to be used in simple link tests
  9229. lt_simple_link_test_code='int main(){return(0);}'
  9230. # If no C compiler was specified, use CC.
  9231. LTCC=${LTCC-"$CC"}
  9232. # If no C compiler flags were specified, use CFLAGS.
  9233. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9234. # Allow CC to be a program name with arguments.
  9235. compiler=$CC
  9236. # Save the default compiler, since it gets overwritten when the other
  9237. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9238. compiler_DEFAULT=$CC
  9239. # save warnings/boilerplate of simple test code
  9240. ac_outfile=conftest.$ac_objext
  9241. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9242. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9243. _lt_compiler_boilerplate=`cat conftest.err`
  9244. $RM conftest*
  9245. ac_outfile=conftest.$ac_objext
  9246. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9247. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9248. _lt_linker_boilerplate=`cat conftest.err`
  9249. $RM -r conftest*
  9250. if test -n "$compiler"; then
  9251. lt_prog_compiler_no_builtin_flag=
  9252. if test yes = "$GCC"; then
  9253. case $cc_basename in
  9254. nvcc*)
  9255. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9256. *)
  9257. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9258. esac
  9259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9260. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9261. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  9262. then :
  9263. printf %s "(cached) " >&6
  9264. else case e in #(
  9265. e) lt_cv_prog_compiler_rtti_exceptions=no
  9266. ac_outfile=conftest.$ac_objext
  9267. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9268. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  9269. # Insert the option either (1) after the last *FLAGS variable, or
  9270. # (2) before a word containing "conftest.", or (3) at the end.
  9271. # Note that $ac_compile itself does not contain backslashes and begins
  9272. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9273. # The option is referenced via a variable to avoid confusing sed.
  9274. lt_compile=`echo "$ac_compile" | $SED \
  9275. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9276. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9277. -e 's:$: $lt_compiler_flag:'`
  9278. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9279. (eval "$lt_compile" 2>conftest.err)
  9280. ac_status=$?
  9281. cat conftest.err >&5
  9282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9283. if (exit $ac_status) && test -s "$ac_outfile"; then
  9284. # The compiler can only warn and ignore the option if not recognized
  9285. # So say no if there are warnings other than the usual output.
  9286. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9287. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9288. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9289. lt_cv_prog_compiler_rtti_exceptions=yes
  9290. fi
  9291. fi
  9292. $RM conftest*
  9293. ;;
  9294. esac
  9295. fi
  9296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9297. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9298. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  9299. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9300. else
  9301. :
  9302. fi
  9303. fi
  9304. lt_prog_compiler_wl=
  9305. lt_prog_compiler_pic=
  9306. lt_prog_compiler_static=
  9307. if test yes = "$GCC"; then
  9308. lt_prog_compiler_wl='-Wl,'
  9309. lt_prog_compiler_static='-static'
  9310. case $host_os in
  9311. aix*)
  9312. # All AIX code is PIC.
  9313. if test ia64 = "$host_cpu"; then
  9314. # AIX 5 now supports IA64 processor
  9315. lt_prog_compiler_static='-Bstatic'
  9316. fi
  9317. lt_prog_compiler_pic='-fPIC'
  9318. ;;
  9319. amigaos*)
  9320. case $host_cpu in
  9321. powerpc)
  9322. # see comment about AmigaOS4 .so support
  9323. lt_prog_compiler_pic='-fPIC'
  9324. ;;
  9325. m68k)
  9326. # FIXME: we need at least 68020 code to build shared libraries, but
  9327. # adding the '-m68020' flag to GCC prevents building anything better,
  9328. # like '-m68040'.
  9329. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9330. ;;
  9331. esac
  9332. ;;
  9333. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9334. # PIC is the default for these OSes.
  9335. ;;
  9336. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9337. # This hack is so that the source file can tell whether it is being
  9338. # built for inclusion in a dll (and should export symbols for example).
  9339. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9340. # (--disable-auto-import) libraries
  9341. lt_prog_compiler_pic='-DDLL_EXPORT'
  9342. case $host_os in
  9343. os2*)
  9344. lt_prog_compiler_static='$wl-static'
  9345. ;;
  9346. esac
  9347. ;;
  9348. darwin* | rhapsody*)
  9349. # PIC is the default on this platform
  9350. # Common symbols not allowed in MH_DYLIB files
  9351. lt_prog_compiler_pic='-fno-common'
  9352. ;;
  9353. haiku*)
  9354. # PIC is the default for Haiku.
  9355. # The "-static" flag exists, but is broken.
  9356. lt_prog_compiler_static=
  9357. ;;
  9358. hpux*)
  9359. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9360. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9361. # sets the default TLS model and affects inlining.
  9362. case $host_cpu in
  9363. hppa*64*)
  9364. # +Z the default
  9365. ;;
  9366. *)
  9367. lt_prog_compiler_pic='-fPIC'
  9368. ;;
  9369. esac
  9370. ;;
  9371. interix[3-9]*)
  9372. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9373. # Instead, we relocate shared libraries at runtime.
  9374. ;;
  9375. msdosdjgpp*)
  9376. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9377. # on systems that don't support them.
  9378. lt_prog_compiler_can_build_shared=no
  9379. enable_shared=no
  9380. ;;
  9381. *nto* | *qnx*)
  9382. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9383. # it will coredump.
  9384. lt_prog_compiler_pic='-fPIC -shared'
  9385. ;;
  9386. sysv4*MP*)
  9387. if test -d /usr/nec; then
  9388. lt_prog_compiler_pic=-Kconform_pic
  9389. fi
  9390. ;;
  9391. *)
  9392. lt_prog_compiler_pic='-fPIC'
  9393. ;;
  9394. esac
  9395. case $cc_basename in
  9396. nvcc*) # Cuda Compiler Driver 2.2
  9397. lt_prog_compiler_wl='-Xlinker '
  9398. if test -n "$lt_prog_compiler_pic"; then
  9399. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9400. fi
  9401. ;;
  9402. esac
  9403. else
  9404. # PORTME Check for flag to pass linker flags through the system compiler.
  9405. case $host_os in
  9406. aix*)
  9407. lt_prog_compiler_wl='-Wl,'
  9408. if test ia64 = "$host_cpu"; then
  9409. # AIX 5 now supports IA64 processor
  9410. lt_prog_compiler_static='-Bstatic'
  9411. else
  9412. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9413. fi
  9414. ;;
  9415. darwin* | rhapsody*)
  9416. # PIC is the default on this platform
  9417. # Common symbols not allowed in MH_DYLIB files
  9418. lt_prog_compiler_pic='-fno-common'
  9419. case $cc_basename in
  9420. nagfor*)
  9421. # NAG Fortran compiler
  9422. lt_prog_compiler_wl='-Wl,-Wl,,'
  9423. lt_prog_compiler_pic='-PIC'
  9424. lt_prog_compiler_static='-Bstatic'
  9425. ;;
  9426. esac
  9427. ;;
  9428. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9429. # This hack is so that the source file can tell whether it is being
  9430. # built for inclusion in a dll (and should export symbols for example).
  9431. lt_prog_compiler_pic='-DDLL_EXPORT'
  9432. case $host_os in
  9433. os2*)
  9434. lt_prog_compiler_static='$wl-static'
  9435. ;;
  9436. esac
  9437. ;;
  9438. hpux9* | hpux10* | hpux11*)
  9439. lt_prog_compiler_wl='-Wl,'
  9440. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9441. # not for PA HP-UX.
  9442. case $host_cpu in
  9443. hppa*64*|ia64*)
  9444. # +Z the default
  9445. ;;
  9446. *)
  9447. lt_prog_compiler_pic='+Z'
  9448. ;;
  9449. esac
  9450. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9451. lt_prog_compiler_static='$wl-a ${wl}archive'
  9452. ;;
  9453. irix5* | irix6* | nonstopux*)
  9454. lt_prog_compiler_wl='-Wl,'
  9455. # PIC (with -KPIC) is the default.
  9456. lt_prog_compiler_static='-non_shared'
  9457. ;;
  9458. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9459. case $cc_basename in
  9460. # old Intel for x86_64, which still supported -KPIC.
  9461. ecc*)
  9462. lt_prog_compiler_wl='-Wl,'
  9463. lt_prog_compiler_pic='-KPIC'
  9464. lt_prog_compiler_static='-static'
  9465. ;;
  9466. # icc used to be incompatible with GCC.
  9467. # ICC 10 doesn't accept -KPIC any more.
  9468. icc* | ifort*)
  9469. lt_prog_compiler_wl='-Wl,'
  9470. lt_prog_compiler_pic='-fPIC'
  9471. lt_prog_compiler_static='-static'
  9472. ;;
  9473. # Lahey Fortran 8.1.
  9474. lf95*)
  9475. lt_prog_compiler_wl='-Wl,'
  9476. lt_prog_compiler_pic='--shared'
  9477. lt_prog_compiler_static='--static'
  9478. ;;
  9479. nagfor*)
  9480. # NAG Fortran compiler
  9481. lt_prog_compiler_wl='-Wl,-Wl,,'
  9482. lt_prog_compiler_pic='-PIC'
  9483. lt_prog_compiler_static='-Bstatic'
  9484. ;;
  9485. tcc*)
  9486. # Fabrice Bellard et al's Tiny C Compiler
  9487. lt_prog_compiler_wl='-Wl,'
  9488. lt_prog_compiler_pic='-fPIC'
  9489. lt_prog_compiler_static='-static'
  9490. ;;
  9491. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9492. # Portland Group compilers (*not* the Pentium gcc compiler,
  9493. # which looks to be a dead project)
  9494. lt_prog_compiler_wl='-Wl,'
  9495. lt_prog_compiler_pic='-fpic'
  9496. lt_prog_compiler_static='-Bstatic'
  9497. ;;
  9498. ccc*)
  9499. lt_prog_compiler_wl='-Wl,'
  9500. # All Alpha code is PIC.
  9501. lt_prog_compiler_static='-non_shared'
  9502. ;;
  9503. xl* | bgxl* | bgf* | mpixl*)
  9504. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9505. lt_prog_compiler_wl='-Wl,'
  9506. lt_prog_compiler_pic='-qpic'
  9507. lt_prog_compiler_static='-qstaticlink'
  9508. ;;
  9509. *)
  9510. case `$CC -V 2>&1 | $SED 5q` in
  9511. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9512. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9513. lt_prog_compiler_pic='-KPIC'
  9514. lt_prog_compiler_static='-Bstatic'
  9515. lt_prog_compiler_wl=''
  9516. ;;
  9517. *Sun\ F* | *Sun*Fortran*)
  9518. lt_prog_compiler_pic='-KPIC'
  9519. lt_prog_compiler_static='-Bstatic'
  9520. lt_prog_compiler_wl='-Qoption ld '
  9521. ;;
  9522. *Sun\ C*)
  9523. # Sun C 5.9
  9524. lt_prog_compiler_pic='-KPIC'
  9525. lt_prog_compiler_static='-Bstatic'
  9526. lt_prog_compiler_wl='-Wl,'
  9527. ;;
  9528. *Intel*\ [CF]*Compiler*)
  9529. lt_prog_compiler_wl='-Wl,'
  9530. lt_prog_compiler_pic='-fPIC'
  9531. lt_prog_compiler_static='-static'
  9532. ;;
  9533. *Portland\ Group*)
  9534. lt_prog_compiler_wl='-Wl,'
  9535. lt_prog_compiler_pic='-fpic'
  9536. lt_prog_compiler_static='-Bstatic'
  9537. ;;
  9538. esac
  9539. ;;
  9540. esac
  9541. ;;
  9542. newsos6)
  9543. lt_prog_compiler_pic='-KPIC'
  9544. lt_prog_compiler_static='-Bstatic'
  9545. ;;
  9546. *nto* | *qnx*)
  9547. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9548. # it will coredump.
  9549. lt_prog_compiler_pic='-fPIC -shared'
  9550. ;;
  9551. osf3* | osf4* | osf5*)
  9552. lt_prog_compiler_wl='-Wl,'
  9553. # All OSF/1 code is PIC.
  9554. lt_prog_compiler_static='-non_shared'
  9555. ;;
  9556. rdos*)
  9557. lt_prog_compiler_static='-non_shared'
  9558. ;;
  9559. solaris*)
  9560. lt_prog_compiler_pic='-KPIC'
  9561. lt_prog_compiler_static='-Bstatic'
  9562. case $cc_basename in
  9563. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9564. lt_prog_compiler_wl='-Qoption ld ';;
  9565. *)
  9566. lt_prog_compiler_wl='-Wl,';;
  9567. esac
  9568. ;;
  9569. sunos4*)
  9570. lt_prog_compiler_wl='-Qoption ld '
  9571. lt_prog_compiler_pic='-PIC'
  9572. lt_prog_compiler_static='-Bstatic'
  9573. ;;
  9574. sysv4 | sysv4.2uw2* | sysv4.3*)
  9575. lt_prog_compiler_wl='-Wl,'
  9576. lt_prog_compiler_pic='-KPIC'
  9577. lt_prog_compiler_static='-Bstatic'
  9578. ;;
  9579. sysv4*MP*)
  9580. if test -d /usr/nec; then
  9581. lt_prog_compiler_pic='-Kconform_pic'
  9582. lt_prog_compiler_static='-Bstatic'
  9583. fi
  9584. ;;
  9585. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9586. lt_prog_compiler_wl='-Wl,'
  9587. lt_prog_compiler_pic='-KPIC'
  9588. lt_prog_compiler_static='-Bstatic'
  9589. ;;
  9590. unicos*)
  9591. lt_prog_compiler_wl='-Wl,'
  9592. lt_prog_compiler_can_build_shared=no
  9593. ;;
  9594. uts4*)
  9595. lt_prog_compiler_pic='-pic'
  9596. lt_prog_compiler_static='-Bstatic'
  9597. ;;
  9598. *)
  9599. lt_prog_compiler_can_build_shared=no
  9600. ;;
  9601. esac
  9602. fi
  9603. case $host_os in
  9604. # For platforms that do not support PIC, -DPIC is meaningless:
  9605. *djgpp*)
  9606. lt_prog_compiler_pic=
  9607. ;;
  9608. *)
  9609. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9610. ;;
  9611. esac
  9612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9613. printf %s "checking for $compiler option to produce PIC... " >&6; }
  9614. if test ${lt_cv_prog_compiler_pic+y}
  9615. then :
  9616. printf %s "(cached) " >&6
  9617. else case e in #(
  9618. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  9619. esac
  9620. fi
  9621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9622. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9623. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9624. #
  9625. # Check to make sure the PIC flag actually works.
  9626. #
  9627. if test -n "$lt_prog_compiler_pic"; then
  9628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9629. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9630. if test ${lt_cv_prog_compiler_pic_works+y}
  9631. then :
  9632. printf %s "(cached) " >&6
  9633. else case e in #(
  9634. e) lt_cv_prog_compiler_pic_works=no
  9635. ac_outfile=conftest.$ac_objext
  9636. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9637. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9638. # Insert the option either (1) after the last *FLAGS variable, or
  9639. # (2) before a word containing "conftest.", or (3) at the end.
  9640. # Note that $ac_compile itself does not contain backslashes and begins
  9641. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9642. # The option is referenced via a variable to avoid confusing sed.
  9643. lt_compile=`echo "$ac_compile" | $SED \
  9644. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9645. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9646. -e 's:$: $lt_compiler_flag:'`
  9647. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9648. (eval "$lt_compile" 2>conftest.err)
  9649. ac_status=$?
  9650. cat conftest.err >&5
  9651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9652. if (exit $ac_status) && test -s "$ac_outfile"; then
  9653. # The compiler can only warn and ignore the option if not recognized
  9654. # So say no if there are warnings other than the usual output.
  9655. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9656. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9657. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9658. lt_cv_prog_compiler_pic_works=yes
  9659. fi
  9660. fi
  9661. $RM conftest*
  9662. ;;
  9663. esac
  9664. fi
  9665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9666. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9667. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9668. case $lt_prog_compiler_pic in
  9669. "" | " "*) ;;
  9670. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9671. esac
  9672. else
  9673. lt_prog_compiler_pic=
  9674. lt_prog_compiler_can_build_shared=no
  9675. fi
  9676. fi
  9677. #
  9678. # Check to make sure the static flag actually works.
  9679. #
  9680. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9682. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9683. if test ${lt_cv_prog_compiler_static_works+y}
  9684. then :
  9685. printf %s "(cached) " >&6
  9686. else case e in #(
  9687. e) lt_cv_prog_compiler_static_works=no
  9688. save_LDFLAGS=$LDFLAGS
  9689. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9690. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9691. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9692. # The linker can only warn and ignore the option if not recognized
  9693. # So say no if there are warnings
  9694. if test -s conftest.err; then
  9695. # Append any errors to the config.log.
  9696. cat conftest.err 1>&5
  9697. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9698. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9699. if diff conftest.exp conftest.er2 >/dev/null; then
  9700. lt_cv_prog_compiler_static_works=yes
  9701. fi
  9702. else
  9703. lt_cv_prog_compiler_static_works=yes
  9704. fi
  9705. fi
  9706. $RM -r conftest*
  9707. LDFLAGS=$save_LDFLAGS
  9708. ;;
  9709. esac
  9710. fi
  9711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9712. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9713. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9714. :
  9715. else
  9716. lt_prog_compiler_static=
  9717. fi
  9718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9719. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9720. if test ${lt_cv_prog_compiler_c_o+y}
  9721. then :
  9722. printf %s "(cached) " >&6
  9723. else case e in #(
  9724. e) lt_cv_prog_compiler_c_o=no
  9725. $RM -r conftest 2>/dev/null
  9726. mkdir conftest
  9727. cd conftest
  9728. mkdir out
  9729. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9730. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9731. # Insert the option either (1) after the last *FLAGS variable, or
  9732. # (2) before a word containing "conftest.", or (3) at the end.
  9733. # Note that $ac_compile itself does not contain backslashes and begins
  9734. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9735. lt_compile=`echo "$ac_compile" | $SED \
  9736. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9737. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9738. -e 's:$: $lt_compiler_flag:'`
  9739. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9740. (eval "$lt_compile" 2>out/conftest.err)
  9741. ac_status=$?
  9742. cat out/conftest.err >&5
  9743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9744. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9745. then
  9746. # The compiler can only warn and ignore the option if not recognized
  9747. # So say no if there are warnings
  9748. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9749. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9750. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9751. lt_cv_prog_compiler_c_o=yes
  9752. fi
  9753. fi
  9754. chmod u+w . 2>&5
  9755. $RM conftest*
  9756. # SGI C++ compiler will create directory out/ii_files/ for
  9757. # template instantiation
  9758. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9759. $RM out/* && rmdir out
  9760. cd ..
  9761. $RM -r conftest
  9762. $RM conftest*
  9763. ;;
  9764. esac
  9765. fi
  9766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9767. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9769. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9770. if test ${lt_cv_prog_compiler_c_o+y}
  9771. then :
  9772. printf %s "(cached) " >&6
  9773. else case e in #(
  9774. e) lt_cv_prog_compiler_c_o=no
  9775. $RM -r conftest 2>/dev/null
  9776. mkdir conftest
  9777. cd conftest
  9778. mkdir out
  9779. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9780. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9781. # Insert the option either (1) after the last *FLAGS variable, or
  9782. # (2) before a word containing "conftest.", or (3) at the end.
  9783. # Note that $ac_compile itself does not contain backslashes and begins
  9784. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9785. lt_compile=`echo "$ac_compile" | $SED \
  9786. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9787. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9788. -e 's:$: $lt_compiler_flag:'`
  9789. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9790. (eval "$lt_compile" 2>out/conftest.err)
  9791. ac_status=$?
  9792. cat out/conftest.err >&5
  9793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9794. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9795. then
  9796. # The compiler can only warn and ignore the option if not recognized
  9797. # So say no if there are warnings
  9798. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9799. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9800. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9801. lt_cv_prog_compiler_c_o=yes
  9802. fi
  9803. fi
  9804. chmod u+w . 2>&5
  9805. $RM conftest*
  9806. # SGI C++ compiler will create directory out/ii_files/ for
  9807. # template instantiation
  9808. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9809. $RM out/* && rmdir out
  9810. cd ..
  9811. $RM -r conftest
  9812. $RM conftest*
  9813. ;;
  9814. esac
  9815. fi
  9816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9817. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9818. hard_links=nottested
  9819. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9820. # do not overwrite the value of need_locks provided by the user
  9821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9822. printf %s "checking if we can lock with hard links... " >&6; }
  9823. hard_links=yes
  9824. $RM conftest*
  9825. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9826. touch conftest.a
  9827. ln conftest.a conftest.b 2>&5 || hard_links=no
  9828. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9830. printf "%s\n" "$hard_links" >&6; }
  9831. if test no = "$hard_links"; then
  9832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9833. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9834. need_locks=warn
  9835. fi
  9836. else
  9837. need_locks=no
  9838. fi
  9839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9840. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9841. runpath_var=
  9842. allow_undefined_flag=
  9843. always_export_symbols=no
  9844. archive_cmds=
  9845. archive_expsym_cmds=
  9846. compiler_needs_object=no
  9847. enable_shared_with_static_runtimes=no
  9848. export_dynamic_flag_spec=
  9849. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9850. hardcode_automatic=no
  9851. hardcode_direct=no
  9852. hardcode_direct_absolute=no
  9853. hardcode_libdir_flag_spec=
  9854. hardcode_libdir_separator=
  9855. hardcode_minus_L=no
  9856. hardcode_shlibpath_var=unsupported
  9857. inherit_rpath=no
  9858. link_all_deplibs=unknown
  9859. module_cmds=
  9860. module_expsym_cmds=
  9861. old_archive_from_new_cmds=
  9862. old_archive_from_expsyms_cmds=
  9863. thread_safe_flag_spec=
  9864. whole_archive_flag_spec=
  9865. # include_expsyms should be a list of space-separated symbols to be *always*
  9866. # included in the symbol list
  9867. include_expsyms=
  9868. # exclude_expsyms can be an extended regexp of symbols to exclude
  9869. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9870. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9871. # as well as any symbol that contains 'd'.
  9872. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9873. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9874. # platforms (ab)use it in PIC code, but their linkers get confused if
  9875. # the symbol is explicitly referenced. Since portable code cannot
  9876. # rely on this symbol name, it's probably fine to never include it in
  9877. # preloaded symbol tables.
  9878. # Exclude shared library initialization/finalization symbols.
  9879. extract_expsyms_cmds=
  9880. case $host_os in
  9881. cygwin* | mingw* | pw32* | cegcc*)
  9882. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9883. # When not using gcc, we currently assume that we are using
  9884. # Microsoft Visual C++ or Intel C++ Compiler.
  9885. if test yes != "$GCC"; then
  9886. with_gnu_ld=no
  9887. fi
  9888. ;;
  9889. interix*)
  9890. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9891. with_gnu_ld=yes
  9892. ;;
  9893. openbsd* | bitrig*)
  9894. with_gnu_ld=no
  9895. ;;
  9896. esac
  9897. ld_shlibs=yes
  9898. # On some targets, GNU ld is compatible enough with the native linker
  9899. # that we're better off using the native interface for both.
  9900. lt_use_gnu_ld_interface=no
  9901. if test yes = "$with_gnu_ld"; then
  9902. case $host_os in
  9903. aix*)
  9904. # The AIX port of GNU ld has always aspired to compatibility
  9905. # with the native linker. However, as the warning in the GNU ld
  9906. # block says, versions before 2.19.5* couldn't really create working
  9907. # shared libraries, regardless of the interface used.
  9908. case `$LD -v 2>&1` in
  9909. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9910. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9911. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9912. *)
  9913. lt_use_gnu_ld_interface=yes
  9914. ;;
  9915. esac
  9916. ;;
  9917. *)
  9918. lt_use_gnu_ld_interface=yes
  9919. ;;
  9920. esac
  9921. fi
  9922. if test yes = "$lt_use_gnu_ld_interface"; then
  9923. # If archive_cmds runs LD, not CC, wlarc should be empty
  9924. wlarc='$wl'
  9925. # Set some defaults for GNU ld with shared library support. These
  9926. # are reset later if shared libraries are not supported. Putting them
  9927. # here allows them to be overridden if necessary.
  9928. runpath_var=LD_RUN_PATH
  9929. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9930. export_dynamic_flag_spec='$wl--export-dynamic'
  9931. # ancient GNU ld didn't support --whole-archive et. al.
  9932. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9933. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9934. else
  9935. whole_archive_flag_spec=
  9936. fi
  9937. supports_anon_versioning=no
  9938. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  9939. *GNU\ gold*) supports_anon_versioning=yes ;;
  9940. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9941. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9942. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9943. *\ 2.11.*) ;; # other 2.11 versions
  9944. *) supports_anon_versioning=yes ;;
  9945. esac
  9946. # See if GNU ld supports shared libraries.
  9947. case $host_os in
  9948. aix[3-9]*)
  9949. # On AIX/PPC, the GNU linker is very broken
  9950. if test ia64 != "$host_cpu"; then
  9951. ld_shlibs=no
  9952. cat <<_LT_EOF 1>&2
  9953. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9954. *** to be unable to reliably create shared libraries on AIX.
  9955. *** Therefore, libtool is disabling shared libraries support. If you
  9956. *** really care for shared libraries, you may want to install binutils
  9957. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9958. *** You will then need to restart the configuration process.
  9959. _LT_EOF
  9960. fi
  9961. ;;
  9962. amigaos*)
  9963. case $host_cpu in
  9964. powerpc)
  9965. # see comment about AmigaOS4 .so support
  9966. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9967. archive_expsym_cmds=''
  9968. ;;
  9969. m68k)
  9970. 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)'
  9971. hardcode_libdir_flag_spec='-L$libdir'
  9972. hardcode_minus_L=yes
  9973. ;;
  9974. esac
  9975. ;;
  9976. beos*)
  9977. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9978. allow_undefined_flag=unsupported
  9979. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9980. # support --undefined. This deserves some investigation. FIXME
  9981. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9982. else
  9983. ld_shlibs=no
  9984. fi
  9985. ;;
  9986. cygwin* | mingw* | pw32* | cegcc*)
  9987. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9988. # as there is no search path for DLLs.
  9989. hardcode_libdir_flag_spec='-L$libdir'
  9990. export_dynamic_flag_spec='$wl--export-all-symbols'
  9991. allow_undefined_flag=unsupported
  9992. always_export_symbols=no
  9993. enable_shared_with_static_runtimes=yes
  9994. 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'
  9995. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9996. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9997. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9998. # If the export-symbols file already is a .def file, use it as
  9999. # is; otherwise, prepend EXPORTS...
  10000. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10001. cp $export_symbols $output_objdir/$soname.def;
  10002. else
  10003. echo EXPORTS > $output_objdir/$soname.def;
  10004. cat $export_symbols >> $output_objdir/$soname.def;
  10005. fi~
  10006. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10007. else
  10008. ld_shlibs=no
  10009. fi
  10010. ;;
  10011. haiku*)
  10012. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10013. link_all_deplibs=yes
  10014. ;;
  10015. os2*)
  10016. hardcode_libdir_flag_spec='-L$libdir'
  10017. hardcode_minus_L=yes
  10018. allow_undefined_flag=unsupported
  10019. shrext_cmds=.dll
  10020. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10021. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10022. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10023. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10024. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10025. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10026. emximp -o $lib $output_objdir/$libname.def'
  10027. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10028. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10029. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10030. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10031. prefix_cmds="$SED"~
  10032. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10033. prefix_cmds="$prefix_cmds -e 1d";
  10034. fi~
  10035. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10036. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10037. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10038. emximp -o $lib $output_objdir/$libname.def'
  10039. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10040. enable_shared_with_static_runtimes=yes
  10041. file_list_spec='@'
  10042. ;;
  10043. interix[3-9]*)
  10044. hardcode_direct=no
  10045. hardcode_shlibpath_var=no
  10046. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10047. export_dynamic_flag_spec='$wl-E'
  10048. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10049. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10050. # default) and relocated if they conflict, which is a slow very memory
  10051. # consuming and fragmenting process. To avoid this, we pick a random,
  10052. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10053. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10054. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10055. 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'
  10056. ;;
  10057. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10058. tmp_diet=no
  10059. if test linux-dietlibc = "$host_os"; then
  10060. case $cc_basename in
  10061. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10062. esac
  10063. fi
  10064. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10065. && test no = "$tmp_diet"
  10066. then
  10067. tmp_addflag=' $pic_flag'
  10068. tmp_sharedflag='-shared'
  10069. case $cc_basename,$host_cpu in
  10070. pgcc*) # Portland Group C compiler
  10071. 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'
  10072. tmp_addflag=' $pic_flag'
  10073. ;;
  10074. pgf77* | pgf90* | pgf95* | pgfortran*)
  10075. # Portland Group f77 and f90 compilers
  10076. 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'
  10077. tmp_addflag=' $pic_flag -Mnomain' ;;
  10078. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10079. tmp_addflag=' -i_dynamic' ;;
  10080. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10081. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10082. ifc* | ifort*) # Intel Fortran compiler
  10083. tmp_addflag=' -nofor_main' ;;
  10084. lf95*) # Lahey Fortran 8.1
  10085. whole_archive_flag_spec=
  10086. tmp_sharedflag='--shared' ;;
  10087. nagfor*) # NAGFOR 5.3
  10088. tmp_sharedflag='-Wl,-shared' ;;
  10089. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10090. tmp_sharedflag='-qmkshrobj'
  10091. tmp_addflag= ;;
  10092. nvcc*) # Cuda Compiler Driver 2.2
  10093. 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'
  10094. compiler_needs_object=yes
  10095. ;;
  10096. esac
  10097. case `$CC -V 2>&1 | $SED 5q` in
  10098. *Sun\ C*) # Sun C 5.9
  10099. 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'
  10100. compiler_needs_object=yes
  10101. tmp_sharedflag='-G' ;;
  10102. *Sun\ F*) # Sun Fortran 8.3
  10103. tmp_sharedflag='-G' ;;
  10104. esac
  10105. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10106. if test yes = "$supports_anon_versioning"; then
  10107. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10108. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10109. echo "local: *; };" >> $output_objdir/$libname.ver~
  10110. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10111. fi
  10112. case $cc_basename in
  10113. tcc*)
  10114. export_dynamic_flag_spec='-rdynamic'
  10115. ;;
  10116. xlf* | bgf* | bgxlf* | mpixlf*)
  10117. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10118. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10119. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10120. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10121. if test yes = "$supports_anon_versioning"; then
  10122. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10123. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10124. echo "local: *; };" >> $output_objdir/$libname.ver~
  10125. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10126. fi
  10127. ;;
  10128. esac
  10129. else
  10130. ld_shlibs=no
  10131. fi
  10132. ;;
  10133. netbsd*)
  10134. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10135. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10136. wlarc=
  10137. else
  10138. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10139. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10140. fi
  10141. ;;
  10142. solaris*)
  10143. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10144. ld_shlibs=no
  10145. cat <<_LT_EOF 1>&2
  10146. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10147. *** create shared libraries on Solaris systems. Therefore, libtool
  10148. *** is disabling shared libraries support. We urge you to upgrade GNU
  10149. *** binutils to release 2.9.1 or newer. Another option is to modify
  10150. *** your PATH or compiler configuration so that the native linker is
  10151. *** used, and then restart.
  10152. _LT_EOF
  10153. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10154. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10155. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10156. else
  10157. ld_shlibs=no
  10158. fi
  10159. ;;
  10160. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10161. case `$LD -v 2>&1` in
  10162. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10163. ld_shlibs=no
  10164. cat <<_LT_EOF 1>&2
  10165. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  10166. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10167. *** is disabling shared libraries support. We urge you to upgrade GNU
  10168. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10169. *** your PATH or compiler configuration so that the native linker is
  10170. *** used, and then restart.
  10171. _LT_EOF
  10172. ;;
  10173. *)
  10174. # For security reasons, it is highly recommended that you always
  10175. # use absolute paths for naming shared libraries, and exclude the
  10176. # DT_RUNPATH tag from executables and libraries. But doing so
  10177. # requires that you compile everything twice, which is a pain.
  10178. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10179. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10180. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10181. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10182. else
  10183. ld_shlibs=no
  10184. fi
  10185. ;;
  10186. esac
  10187. ;;
  10188. sunos4*)
  10189. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10190. wlarc=
  10191. hardcode_direct=yes
  10192. hardcode_shlibpath_var=no
  10193. ;;
  10194. *)
  10195. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10196. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10197. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10198. else
  10199. ld_shlibs=no
  10200. fi
  10201. ;;
  10202. esac
  10203. if test no = "$ld_shlibs"; then
  10204. runpath_var=
  10205. hardcode_libdir_flag_spec=
  10206. export_dynamic_flag_spec=
  10207. whole_archive_flag_spec=
  10208. fi
  10209. else
  10210. # PORTME fill in a description of your system's linker (not GNU ld)
  10211. case $host_os in
  10212. aix3*)
  10213. allow_undefined_flag=unsupported
  10214. always_export_symbols=yes
  10215. 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'
  10216. # Note: this linker hardcodes the directories in LIBPATH if there
  10217. # are no directories specified by -L.
  10218. hardcode_minus_L=yes
  10219. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  10220. # Neither direct hardcoding nor static linking is supported with a
  10221. # broken collect2.
  10222. hardcode_direct=unsupported
  10223. fi
  10224. ;;
  10225. aix[4-9]*)
  10226. if test ia64 = "$host_cpu"; then
  10227. # On IA64, the linker does run time linking by default, so we don't
  10228. # have to do anything special.
  10229. aix_use_runtimelinking=no
  10230. exp_sym_flag='-Bexport'
  10231. no_entry_flag=
  10232. else
  10233. # If we're using GNU nm, then we don't want the "-C" option.
  10234. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  10235. # Without the "-l" option, or with the "-B" option, AIX nm treats
  10236. # weak defined symbols like other global defined symbols, whereas
  10237. # GNU nm marks them as "W".
  10238. # While the 'weak' keyword is ignored in the Export File, we need
  10239. # it in the Import File for the 'aix-soname' feature, so we have
  10240. # to replace the "-B" option with "-P" for AIX nm.
  10241. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10242. 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'
  10243. else
  10244. 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 == "L") || (\$ 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'
  10245. fi
  10246. aix_use_runtimelinking=no
  10247. # Test if we are trying to use run time linking or normal
  10248. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10249. # have runtime linking enabled, and use it for executables.
  10250. # For shared libraries, we enable/disable runtime linking
  10251. # depending on the kind of the shared library created -
  10252. # when "with_aix_soname,aix_use_runtimelinking" is:
  10253. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  10254. # "aix,yes" lib.so shared, rtl:yes, for executables
  10255. # lib.a static archive
  10256. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  10257. # lib.a(lib.so.V) shared, rtl:no, for executables
  10258. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  10259. # lib.a(lib.so.V) shared, rtl:no
  10260. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  10261. # lib.a static archive
  10262. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10263. for ld_flag in $LDFLAGS; do
  10264. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  10265. aix_use_runtimelinking=yes
  10266. break
  10267. fi
  10268. done
  10269. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  10270. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  10271. # so we don't have lib.a shared libs to link our executables.
  10272. # We have to force runtime linking in this case.
  10273. aix_use_runtimelinking=yes
  10274. LDFLAGS="$LDFLAGS -Wl,-brtl"
  10275. fi
  10276. ;;
  10277. esac
  10278. exp_sym_flag='-bexport'
  10279. no_entry_flag='-bnoentry'
  10280. fi
  10281. # When large executables or shared objects are built, AIX ld can
  10282. # have problems creating the table of contents. If linking a library
  10283. # or program results in "error TOC overflow" add -mminimal-toc to
  10284. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10285. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10286. archive_cmds=''
  10287. hardcode_direct=yes
  10288. hardcode_direct_absolute=yes
  10289. hardcode_libdir_separator=':'
  10290. link_all_deplibs=yes
  10291. file_list_spec='$wl-f,'
  10292. case $with_aix_soname,$aix_use_runtimelinking in
  10293. aix,*) ;; # traditional, no import file
  10294. svr4,* | *,yes) # use import file
  10295. # The Import File defines what to hardcode.
  10296. hardcode_direct=no
  10297. hardcode_direct_absolute=no
  10298. ;;
  10299. esac
  10300. if test yes = "$GCC"; then
  10301. case $host_os in aix4.[012]|aix4.[012].*)
  10302. # We only want to do this on AIX 4.2 and lower, the check
  10303. # below for broken collect2 doesn't work under 4.3+
  10304. collect2name=`$CC -print-prog-name=collect2`
  10305. if test -f "$collect2name" &&
  10306. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10307. then
  10308. # We have reworked collect2
  10309. :
  10310. else
  10311. # We have old collect2
  10312. hardcode_direct=unsupported
  10313. # It fails to find uninstalled libraries when the uninstalled
  10314. # path is not listed in the libpath. Setting hardcode_minus_L
  10315. # to unsupported forces relinking
  10316. hardcode_minus_L=yes
  10317. hardcode_libdir_flag_spec='-L$libdir'
  10318. hardcode_libdir_separator=
  10319. fi
  10320. ;;
  10321. esac
  10322. shared_flag='-shared'
  10323. if test yes = "$aix_use_runtimelinking"; then
  10324. shared_flag="$shared_flag "'$wl-G'
  10325. fi
  10326. # Need to ensure runtime linking is disabled for the traditional
  10327. # shared library, or the linker may eventually find shared libraries
  10328. # /with/ Import File - we do not want to mix them.
  10329. shared_flag_aix='-shared'
  10330. shared_flag_svr4='-shared $wl-G'
  10331. else
  10332. # not using gcc
  10333. if test ia64 = "$host_cpu"; then
  10334. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10335. # chokes on -Wl,-G. The following line is correct:
  10336. shared_flag='-G'
  10337. else
  10338. if test yes = "$aix_use_runtimelinking"; then
  10339. shared_flag='$wl-G'
  10340. else
  10341. shared_flag='$wl-bM:SRE'
  10342. fi
  10343. shared_flag_aix='$wl-bM:SRE'
  10344. shared_flag_svr4='$wl-G'
  10345. fi
  10346. fi
  10347. export_dynamic_flag_spec='$wl-bexpall'
  10348. # It seems that -bexpall does not export symbols beginning with
  10349. # underscore (_), so it is better to generate a list of symbols to export.
  10350. always_export_symbols=yes
  10351. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  10352. # Warning - without using the other runtime loading flags (-brtl),
  10353. # -berok will link without error, but may produce a broken library.
  10354. allow_undefined_flag='-berok'
  10355. # Determine the default libpath from the value encoded in an
  10356. # empty executable.
  10357. if test set = "${lt_cv_aix_libpath+set}"; then
  10358. aix_libpath=$lt_cv_aix_libpath
  10359. else
  10360. if test ${lt_cv_aix_libpath_+y}
  10361. then :
  10362. printf %s "(cached) " >&6
  10363. else case e in #(
  10364. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10365. /* end confdefs.h. */
  10366. int
  10367. main (void)
  10368. {
  10369. ;
  10370. return 0;
  10371. }
  10372. _ACEOF
  10373. if ac_fn_c_try_link "$LINENO"
  10374. then :
  10375. lt_aix_libpath_sed='
  10376. /Import File Strings/,/^$/ {
  10377. /^0/ {
  10378. s/^0 *\([^ ]*\) *$/\1/
  10379. p
  10380. }
  10381. }'
  10382. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10383. # Check for a 64-bit object if we didn't find anything.
  10384. if test -z "$lt_cv_aix_libpath_"; then
  10385. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10386. fi
  10387. fi
  10388. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10389. conftest$ac_exeext conftest.$ac_ext
  10390. if test -z "$lt_cv_aix_libpath_"; then
  10391. lt_cv_aix_libpath_=/usr/lib:/lib
  10392. fi
  10393. ;;
  10394. esac
  10395. fi
  10396. aix_libpath=$lt_cv_aix_libpath_
  10397. fi
  10398. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10399. 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
  10400. else
  10401. if test ia64 = "$host_cpu"; then
  10402. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  10403. allow_undefined_flag="-z nodefs"
  10404. 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"
  10405. else
  10406. # Determine the default libpath from the value encoded in an
  10407. # empty executable.
  10408. if test set = "${lt_cv_aix_libpath+set}"; then
  10409. aix_libpath=$lt_cv_aix_libpath
  10410. else
  10411. if test ${lt_cv_aix_libpath_+y}
  10412. then :
  10413. printf %s "(cached) " >&6
  10414. else case e in #(
  10415. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10416. /* end confdefs.h. */
  10417. int
  10418. main (void)
  10419. {
  10420. ;
  10421. return 0;
  10422. }
  10423. _ACEOF
  10424. if ac_fn_c_try_link "$LINENO"
  10425. then :
  10426. lt_aix_libpath_sed='
  10427. /Import File Strings/,/^$/ {
  10428. /^0/ {
  10429. s/^0 *\([^ ]*\) *$/\1/
  10430. p
  10431. }
  10432. }'
  10433. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10434. # Check for a 64-bit object if we didn't find anything.
  10435. if test -z "$lt_cv_aix_libpath_"; then
  10436. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10437. fi
  10438. fi
  10439. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10440. conftest$ac_exeext conftest.$ac_ext
  10441. if test -z "$lt_cv_aix_libpath_"; then
  10442. lt_cv_aix_libpath_=/usr/lib:/lib
  10443. fi
  10444. ;;
  10445. esac
  10446. fi
  10447. aix_libpath=$lt_cv_aix_libpath_
  10448. fi
  10449. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10450. # Warning - without using the other run time loading flags,
  10451. # -berok will link without error, but may produce a broken library.
  10452. no_undefined_flag=' $wl-bernotok'
  10453. allow_undefined_flag=' $wl-berok'
  10454. if test yes = "$with_gnu_ld"; then
  10455. # We only use this code for GNU lds that support --whole-archive.
  10456. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  10457. else
  10458. # Exported symbols can be pulled into shared objects from archives
  10459. whole_archive_flag_spec='$convenience'
  10460. fi
  10461. archive_cmds_need_lc=yes
  10462. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10463. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10464. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10465. if test svr4 != "$with_aix_soname"; then
  10466. # This is similar to how AIX traditionally builds its shared libraries.
  10467. 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'
  10468. fi
  10469. if test aix != "$with_aix_soname"; then
  10470. 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'
  10471. else
  10472. # used by -dlpreopen to get the symbols
  10473. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10474. fi
  10475. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10476. fi
  10477. fi
  10478. ;;
  10479. amigaos*)
  10480. case $host_cpu in
  10481. powerpc)
  10482. # see comment about AmigaOS4 .so support
  10483. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10484. archive_expsym_cmds=''
  10485. ;;
  10486. m68k)
  10487. 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)'
  10488. hardcode_libdir_flag_spec='-L$libdir'
  10489. hardcode_minus_L=yes
  10490. ;;
  10491. esac
  10492. ;;
  10493. bsdi[45]*)
  10494. export_dynamic_flag_spec=-rdynamic
  10495. ;;
  10496. cygwin* | mingw* | pw32* | cegcc*)
  10497. # When not using gcc, we currently assume that we are using
  10498. # Microsoft Visual C++ or Intel C++ Compiler.
  10499. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10500. # no search path for DLLs.
  10501. case $cc_basename in
  10502. cl* | icl*)
  10503. # Native MSVC or ICC
  10504. hardcode_libdir_flag_spec=' '
  10505. allow_undefined_flag=unsupported
  10506. always_export_symbols=yes
  10507. file_list_spec='@'
  10508. # Tell ltmain to make .lib files, not .a files.
  10509. libext=lib
  10510. # Tell ltmain to make .dll files, not .so files.
  10511. shrext_cmds=.dll
  10512. # FIXME: Setting linknames here is a bad hack.
  10513. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10514. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10515. cp "$export_symbols" "$output_objdir/$soname.def";
  10516. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10517. else
  10518. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10519. fi~
  10520. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10521. linknames='
  10522. # The linker will not automatically build a static lib if we build a DLL.
  10523. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10524. enable_shared_with_static_runtimes=yes
  10525. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10526. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10527. # Don't use ranlib
  10528. old_postinstall_cmds='chmod 644 $oldlib'
  10529. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10530. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10531. case $lt_outputfile in
  10532. *.exe|*.EXE) ;;
  10533. *)
  10534. lt_outputfile=$lt_outputfile.exe
  10535. lt_tool_outputfile=$lt_tool_outputfile.exe
  10536. ;;
  10537. esac~
  10538. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10539. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10540. $RM "$lt_outputfile.manifest";
  10541. fi'
  10542. ;;
  10543. *)
  10544. # Assume MSVC and ICC wrapper
  10545. hardcode_libdir_flag_spec=' '
  10546. allow_undefined_flag=unsupported
  10547. # Tell ltmain to make .lib files, not .a files.
  10548. libext=lib
  10549. # Tell ltmain to make .dll files, not .so files.
  10550. shrext_cmds=.dll
  10551. # FIXME: Setting linknames here is a bad hack.
  10552. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10553. # The linker will automatically build a .lib file if we build a DLL.
  10554. old_archive_from_new_cmds='true'
  10555. # FIXME: Should let the user specify the lib program.
  10556. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10557. enable_shared_with_static_runtimes=yes
  10558. ;;
  10559. esac
  10560. ;;
  10561. darwin* | rhapsody*)
  10562. archive_cmds_need_lc=no
  10563. hardcode_direct=no
  10564. hardcode_automatic=yes
  10565. hardcode_shlibpath_var=unsupported
  10566. if test yes = "$lt_cv_ld_force_load"; then
  10567. 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\"`'
  10568. else
  10569. whole_archive_flag_spec=''
  10570. fi
  10571. link_all_deplibs=yes
  10572. allow_undefined_flag=$_lt_dar_allow_undefined
  10573. case $cc_basename in
  10574. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10575. *) _lt_dar_can_shared=$GCC ;;
  10576. esac
  10577. if test yes = "$_lt_dar_can_shared"; then
  10578. output_verbose_link_cmd=func_echo_all
  10579. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dsymutil"
  10580. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10581. 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_export_syms$_lt_dsymutil"
  10582. 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"
  10583. else
  10584. ld_shlibs=no
  10585. fi
  10586. ;;
  10587. dgux*)
  10588. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10589. hardcode_libdir_flag_spec='-L$libdir'
  10590. hardcode_shlibpath_var=no
  10591. ;;
  10592. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10593. # support. Future versions do this automatically, but an explicit c++rt0.o
  10594. # does not break anything, and helps significantly (at the cost of a little
  10595. # extra space).
  10596. freebsd2.2*)
  10597. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10598. hardcode_libdir_flag_spec='-R$libdir'
  10599. hardcode_direct=yes
  10600. hardcode_shlibpath_var=no
  10601. ;;
  10602. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10603. freebsd2.*)
  10604. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10605. hardcode_direct=yes
  10606. hardcode_minus_L=yes
  10607. hardcode_shlibpath_var=no
  10608. ;;
  10609. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10610. freebsd* | dragonfly* | midnightbsd*)
  10611. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10612. hardcode_libdir_flag_spec='-R$libdir'
  10613. hardcode_direct=yes
  10614. hardcode_shlibpath_var=no
  10615. ;;
  10616. hpux9*)
  10617. if test yes = "$GCC"; then
  10618. 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'
  10619. else
  10620. 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'
  10621. fi
  10622. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10623. hardcode_libdir_separator=:
  10624. hardcode_direct=yes
  10625. # hardcode_minus_L: Not really in the search PATH,
  10626. # but as the default location of the library.
  10627. hardcode_minus_L=yes
  10628. export_dynamic_flag_spec='$wl-E'
  10629. ;;
  10630. hpux10*)
  10631. if test yes,no = "$GCC,$with_gnu_ld"; then
  10632. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10633. else
  10634. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10635. fi
  10636. if test no = "$with_gnu_ld"; then
  10637. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10638. hardcode_libdir_separator=:
  10639. hardcode_direct=yes
  10640. hardcode_direct_absolute=yes
  10641. export_dynamic_flag_spec='$wl-E'
  10642. # hardcode_minus_L: Not really in the search PATH,
  10643. # but as the default location of the library.
  10644. hardcode_minus_L=yes
  10645. fi
  10646. ;;
  10647. hpux11*)
  10648. if test yes,no = "$GCC,$with_gnu_ld"; then
  10649. case $host_cpu in
  10650. hppa*64*)
  10651. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10652. ;;
  10653. ia64*)
  10654. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10655. ;;
  10656. *)
  10657. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10658. ;;
  10659. esac
  10660. else
  10661. case $host_cpu in
  10662. hppa*64*)
  10663. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10664. ;;
  10665. ia64*)
  10666. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10667. ;;
  10668. *)
  10669. # Older versions of the 11.00 compiler do not understand -b yet
  10670. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10672. printf %s "checking if $CC understands -b... " >&6; }
  10673. if test ${lt_cv_prog_compiler__b+y}
  10674. then :
  10675. printf %s "(cached) " >&6
  10676. else case e in #(
  10677. e) lt_cv_prog_compiler__b=no
  10678. save_LDFLAGS=$LDFLAGS
  10679. LDFLAGS="$LDFLAGS -b"
  10680. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10681. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10682. # The linker can only warn and ignore the option if not recognized
  10683. # So say no if there are warnings
  10684. if test -s conftest.err; then
  10685. # Append any errors to the config.log.
  10686. cat conftest.err 1>&5
  10687. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10688. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10689. if diff conftest.exp conftest.er2 >/dev/null; then
  10690. lt_cv_prog_compiler__b=yes
  10691. fi
  10692. else
  10693. lt_cv_prog_compiler__b=yes
  10694. fi
  10695. fi
  10696. $RM -r conftest*
  10697. LDFLAGS=$save_LDFLAGS
  10698. ;;
  10699. esac
  10700. fi
  10701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10702. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10703. if test yes = "$lt_cv_prog_compiler__b"; then
  10704. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10705. else
  10706. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10707. fi
  10708. ;;
  10709. esac
  10710. fi
  10711. if test no = "$with_gnu_ld"; then
  10712. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10713. hardcode_libdir_separator=:
  10714. case $host_cpu in
  10715. hppa*64*|ia64*)
  10716. hardcode_direct=no
  10717. hardcode_shlibpath_var=no
  10718. ;;
  10719. *)
  10720. hardcode_direct=yes
  10721. hardcode_direct_absolute=yes
  10722. export_dynamic_flag_spec='$wl-E'
  10723. # hardcode_minus_L: Not really in the search PATH,
  10724. # but as the default location of the library.
  10725. hardcode_minus_L=yes
  10726. ;;
  10727. esac
  10728. fi
  10729. ;;
  10730. irix5* | irix6* | nonstopux*)
  10731. if test yes = "$GCC"; then
  10732. 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'
  10733. # Try to use the -exported_symbol ld option, if it does not
  10734. # work, assume that -exports_file does not work either and
  10735. # implicitly export all symbols.
  10736. # This should be the same for all languages, so no per-tag cache variable.
  10737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10738. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10739. if test ${lt_cv_irix_exported_symbol+y}
  10740. then :
  10741. printf %s "(cached) " >&6
  10742. else case e in #(
  10743. e) save_LDFLAGS=$LDFLAGS
  10744. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10746. /* end confdefs.h. */
  10747. int foo (void) { return 0; }
  10748. _ACEOF
  10749. if ac_fn_c_try_link "$LINENO"
  10750. then :
  10751. lt_cv_irix_exported_symbol=yes
  10752. else case e in #(
  10753. e) lt_cv_irix_exported_symbol=no ;;
  10754. esac
  10755. fi
  10756. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10757. conftest$ac_exeext conftest.$ac_ext
  10758. LDFLAGS=$save_LDFLAGS ;;
  10759. esac
  10760. fi
  10761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10762. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10763. if test yes = "$lt_cv_irix_exported_symbol"; then
  10764. 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'
  10765. fi
  10766. else
  10767. 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'
  10768. 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'
  10769. fi
  10770. archive_cmds_need_lc='no'
  10771. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10772. hardcode_libdir_separator=:
  10773. inherit_rpath=yes
  10774. link_all_deplibs=yes
  10775. ;;
  10776. linux*)
  10777. case $cc_basename in
  10778. tcc*)
  10779. # Fabrice Bellard et al's Tiny C Compiler
  10780. ld_shlibs=yes
  10781. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10782. ;;
  10783. esac
  10784. ;;
  10785. netbsd*)
  10786. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10787. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10788. else
  10789. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10790. fi
  10791. hardcode_libdir_flag_spec='-R$libdir'
  10792. hardcode_direct=yes
  10793. hardcode_shlibpath_var=no
  10794. ;;
  10795. newsos6)
  10796. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10797. hardcode_direct=yes
  10798. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10799. hardcode_libdir_separator=:
  10800. hardcode_shlibpath_var=no
  10801. ;;
  10802. *nto* | *qnx*)
  10803. ;;
  10804. openbsd* | bitrig*)
  10805. if test -f /usr/libexec/ld.so; then
  10806. hardcode_direct=yes
  10807. hardcode_shlibpath_var=no
  10808. hardcode_direct_absolute=yes
  10809. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10810. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10811. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10812. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10813. export_dynamic_flag_spec='$wl-E'
  10814. else
  10815. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10816. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10817. fi
  10818. else
  10819. ld_shlibs=no
  10820. fi
  10821. ;;
  10822. os2*)
  10823. hardcode_libdir_flag_spec='-L$libdir'
  10824. hardcode_minus_L=yes
  10825. allow_undefined_flag=unsupported
  10826. shrext_cmds=.dll
  10827. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10828. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10829. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10830. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10831. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10832. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10833. emximp -o $lib $output_objdir/$libname.def'
  10834. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10835. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10836. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10837. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10838. prefix_cmds="$SED"~
  10839. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10840. prefix_cmds="$prefix_cmds -e 1d";
  10841. fi~
  10842. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10843. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10844. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10845. emximp -o $lib $output_objdir/$libname.def'
  10846. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10847. enable_shared_with_static_runtimes=yes
  10848. file_list_spec='@'
  10849. ;;
  10850. osf3*)
  10851. if test yes = "$GCC"; then
  10852. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10853. 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'
  10854. else
  10855. allow_undefined_flag=' -expect_unresolved \*'
  10856. 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'
  10857. fi
  10858. archive_cmds_need_lc='no'
  10859. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10860. hardcode_libdir_separator=:
  10861. ;;
  10862. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10863. if test yes = "$GCC"; then
  10864. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10865. 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'
  10866. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10867. else
  10868. allow_undefined_flag=' -expect_unresolved \*'
  10869. 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'
  10870. 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~
  10871. $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'
  10872. # Both c and cxx compiler support -rpath directly
  10873. hardcode_libdir_flag_spec='-rpath $libdir'
  10874. fi
  10875. archive_cmds_need_lc='no'
  10876. hardcode_libdir_separator=:
  10877. ;;
  10878. solaris*)
  10879. no_undefined_flag=' -z defs'
  10880. if test yes = "$GCC"; then
  10881. wlarc='$wl'
  10882. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10883. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10884. $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'
  10885. else
  10886. case `$CC -V 2>&1` in
  10887. *"Compilers 5.0"*)
  10888. wlarc=''
  10889. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10890. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10891. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10892. ;;
  10893. *)
  10894. wlarc='$wl'
  10895. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10896. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10897. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10898. ;;
  10899. esac
  10900. fi
  10901. hardcode_libdir_flag_spec='-R$libdir'
  10902. hardcode_shlibpath_var=no
  10903. case $host_os in
  10904. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10905. *)
  10906. # The compiler driver will combine and reorder linker options,
  10907. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10908. # but is careful enough not to reorder.
  10909. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10910. if test yes = "$GCC"; then
  10911. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10912. else
  10913. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10914. fi
  10915. ;;
  10916. esac
  10917. link_all_deplibs=yes
  10918. ;;
  10919. sunos4*)
  10920. if test sequent = "$host_vendor"; then
  10921. # Use $CC to link under sequent, because it throws in some extra .o
  10922. # files that make .init and .fini sections work.
  10923. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10924. else
  10925. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10926. fi
  10927. hardcode_libdir_flag_spec='-L$libdir'
  10928. hardcode_direct=yes
  10929. hardcode_minus_L=yes
  10930. hardcode_shlibpath_var=no
  10931. ;;
  10932. sysv4)
  10933. case $host_vendor in
  10934. sni)
  10935. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10936. hardcode_direct=yes # is this really true???
  10937. ;;
  10938. siemens)
  10939. ## LD is ld it makes a PLAMLIB
  10940. ## CC just makes a GrossModule.
  10941. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10942. reload_cmds='$CC -r -o $output$reload_objs'
  10943. hardcode_direct=no
  10944. ;;
  10945. motorola)
  10946. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10947. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10948. ;;
  10949. esac
  10950. runpath_var='LD_RUN_PATH'
  10951. hardcode_shlibpath_var=no
  10952. ;;
  10953. sysv4.3*)
  10954. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10955. hardcode_shlibpath_var=no
  10956. export_dynamic_flag_spec='-Bexport'
  10957. ;;
  10958. sysv4*MP*)
  10959. if test -d /usr/nec; then
  10960. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10961. hardcode_shlibpath_var=no
  10962. runpath_var=LD_RUN_PATH
  10963. hardcode_runpath_var=yes
  10964. ld_shlibs=yes
  10965. fi
  10966. ;;
  10967. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10968. no_undefined_flag='$wl-z,text'
  10969. archive_cmds_need_lc=no
  10970. hardcode_shlibpath_var=no
  10971. runpath_var='LD_RUN_PATH'
  10972. if test yes = "$GCC"; then
  10973. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10974. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10975. else
  10976. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10977. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10978. fi
  10979. ;;
  10980. sysv5* | sco3.2v5* | sco5v6*)
  10981. # Note: We CANNOT use -z defs as we might desire, because we do not
  10982. # link with -lc, and that would cause any symbols used from libc to
  10983. # always be unresolved, which means just about no library would
  10984. # ever link correctly. If we're not using GNU ld we use -z text
  10985. # though, which does catch some bad symbols but isn't as heavy-handed
  10986. # as -z defs.
  10987. no_undefined_flag='$wl-z,text'
  10988. allow_undefined_flag='$wl-z,nodefs'
  10989. archive_cmds_need_lc=no
  10990. hardcode_shlibpath_var=no
  10991. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10992. hardcode_libdir_separator=':'
  10993. link_all_deplibs=yes
  10994. export_dynamic_flag_spec='$wl-Bexport'
  10995. runpath_var='LD_RUN_PATH'
  10996. if test yes = "$GCC"; then
  10997. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10998. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10999. else
  11000. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11001. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11002. fi
  11003. ;;
  11004. uts4*)
  11005. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11006. hardcode_libdir_flag_spec='-L$libdir'
  11007. hardcode_shlibpath_var=no
  11008. ;;
  11009. *)
  11010. ld_shlibs=no
  11011. ;;
  11012. esac
  11013. if test sni = "$host_vendor"; then
  11014. case $host in
  11015. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11016. export_dynamic_flag_spec='$wl-Blargedynsym'
  11017. ;;
  11018. esac
  11019. fi
  11020. fi
  11021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11022. printf "%s\n" "$ld_shlibs" >&6; }
  11023. test no = "$ld_shlibs" && can_build_shared=no
  11024. with_gnu_ld=$with_gnu_ld
  11025. #
  11026. # Do we need to explicitly link libc?
  11027. #
  11028. case "x$archive_cmds_need_lc" in
  11029. x|xyes)
  11030. # Assume -lc should be added
  11031. archive_cmds_need_lc=yes
  11032. if test yes,yes = "$GCC,$enable_shared"; then
  11033. case $archive_cmds in
  11034. *'~'*)
  11035. # FIXME: we may have to deal with multi-command sequences.
  11036. ;;
  11037. '$CC '*)
  11038. # Test whether the compiler implicitly links with -lc since on some
  11039. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11040. # to ld, don't add -lc before -lgcc.
  11041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11042. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  11043. if test ${lt_cv_archive_cmds_need_lc+y}
  11044. then :
  11045. printf %s "(cached) " >&6
  11046. else case e in #(
  11047. e) $RM conftest*
  11048. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11049. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11050. (eval $ac_compile) 2>&5
  11051. ac_status=$?
  11052. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11053. test $ac_status = 0; } 2>conftest.err; then
  11054. soname=conftest
  11055. lib=conftest
  11056. libobjs=conftest.$ac_objext
  11057. deplibs=
  11058. wl=$lt_prog_compiler_wl
  11059. pic_flag=$lt_prog_compiler_pic
  11060. compiler_flags=-v
  11061. linker_flags=-v
  11062. verstring=
  11063. output_objdir=.
  11064. libname=conftest
  11065. lt_save_allow_undefined_flag=$allow_undefined_flag
  11066. allow_undefined_flag=
  11067. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11068. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11069. ac_status=$?
  11070. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11071. test $ac_status = 0; }
  11072. then
  11073. lt_cv_archive_cmds_need_lc=no
  11074. else
  11075. lt_cv_archive_cmds_need_lc=yes
  11076. fi
  11077. allow_undefined_flag=$lt_save_allow_undefined_flag
  11078. else
  11079. cat conftest.err 1>&5
  11080. fi
  11081. $RM conftest*
  11082. ;;
  11083. esac
  11084. fi
  11085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11086. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  11087. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11088. ;;
  11089. esac
  11090. fi
  11091. ;;
  11092. esac
  11093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11094. printf %s "checking dynamic linker characteristics... " >&6; }
  11095. if test yes = "$GCC"; then
  11096. case $host_os in
  11097. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  11098. *) lt_awk_arg='/^libraries:/' ;;
  11099. esac
  11100. case $host_os in
  11101. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  11102. *) lt_sed_strip_eq='s|=/|/|g' ;;
  11103. esac
  11104. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11105. case $lt_search_path_spec in
  11106. *\;*)
  11107. # if the path contains ";" then we assume it to be the separator
  11108. # otherwise default to the standard path separator (i.e. ":") - it is
  11109. # assumed that no part of a normal pathname contains ";" but that should
  11110. # okay in the real world where ";" in dirpaths is itself problematic.
  11111. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11112. ;;
  11113. *)
  11114. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11115. ;;
  11116. esac
  11117. # Ok, now we have the path, separated by spaces, we can step through it
  11118. # and add multilib dir if necessary...
  11119. lt_tmp_lt_search_path_spec=
  11120. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11121. # ...but if some path component already ends with the multilib dir we assume
  11122. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11123. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11124. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11125. lt_multi_os_dir=
  11126. ;;
  11127. esac
  11128. for lt_sys_path in $lt_search_path_spec; do
  11129. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11130. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11131. elif test -n "$lt_multi_os_dir"; then
  11132. test -d "$lt_sys_path" && \
  11133. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11134. fi
  11135. done
  11136. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11137. BEGIN {RS = " "; FS = "/|\n";} {
  11138. lt_foo = "";
  11139. lt_count = 0;
  11140. for (lt_i = NF; lt_i > 0; lt_i--) {
  11141. if ($lt_i != "" && $lt_i != ".") {
  11142. if ($lt_i == "..") {
  11143. lt_count++;
  11144. } else {
  11145. if (lt_count == 0) {
  11146. lt_foo = "/" $lt_i lt_foo;
  11147. } else {
  11148. lt_count--;
  11149. }
  11150. }
  11151. }
  11152. }
  11153. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11154. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11155. }'`
  11156. # AWK program above erroneously prepends '/' to C:/dos/paths
  11157. # for these hosts.
  11158. case $host_os in
  11159. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11160. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  11161. esac
  11162. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11163. else
  11164. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11165. fi
  11166. library_names_spec=
  11167. libname_spec='lib$name'
  11168. soname_spec=
  11169. shrext_cmds=.so
  11170. postinstall_cmds=
  11171. postuninstall_cmds=
  11172. finish_cmds=
  11173. finish_eval=
  11174. shlibpath_var=
  11175. shlibpath_overrides_runpath=unknown
  11176. version_type=none
  11177. dynamic_linker="$host_os ld.so"
  11178. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11179. need_lib_prefix=unknown
  11180. hardcode_into_libs=no
  11181. # when you set need_version to no, make sure it does not cause -set_version
  11182. # flags to be left without arguments
  11183. need_version=unknown
  11184. case $host_os in
  11185. aix3*)
  11186. version_type=linux # correct to gnu/linux during the next big refactor
  11187. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  11188. shlibpath_var=LIBPATH
  11189. # AIX 3 has no versioning support, so we append a major version to the name.
  11190. soname_spec='$libname$release$shared_ext$major'
  11191. ;;
  11192. aix[4-9]*)
  11193. version_type=linux # correct to gnu/linux during the next big refactor
  11194. need_lib_prefix=no
  11195. need_version=no
  11196. hardcode_into_libs=yes
  11197. if test ia64 = "$host_cpu"; then
  11198. # AIX 5 supports IA64
  11199. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  11200. shlibpath_var=LD_LIBRARY_PATH
  11201. else
  11202. # With GCC up to 2.95.x, collect2 would create an import file
  11203. # for dependence libraries. The import file would start with
  11204. # the line '#! .'. This would cause the generated library to
  11205. # depend on '.', always an invalid library. This was fixed in
  11206. # development snapshots of GCC prior to 3.0.
  11207. case $host_os in
  11208. aix4 | aix4.[01] | aix4.[01].*)
  11209. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11210. echo ' yes '
  11211. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  11212. :
  11213. else
  11214. can_build_shared=no
  11215. fi
  11216. ;;
  11217. esac
  11218. # Using Import Files as archive members, it is possible to support
  11219. # filename-based versioning of shared library archives on AIX. While
  11220. # this would work for both with and without runtime linking, it will
  11221. # prevent static linking of such archives. So we do filename-based
  11222. # shared library versioning with .so extension only, which is used
  11223. # when both runtime linking and shared linking is enabled.
  11224. # Unfortunately, runtime linking may impact performance, so we do
  11225. # not want this to be the default eventually. Also, we use the
  11226. # versioned .so libs for executables only if there is the -brtl
  11227. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  11228. # To allow for filename-based versioning support, we need to create
  11229. # libNAME.so.V as an archive file, containing:
  11230. # *) an Import File, referring to the versioned filename of the
  11231. # archive as well as the shared archive member, telling the
  11232. # bitwidth (32 or 64) of that shared object, and providing the
  11233. # list of exported symbols of that shared object, eventually
  11234. # decorated with the 'weak' keyword
  11235. # *) the shared object with the F_LOADONLY flag set, to really avoid
  11236. # it being seen by the linker.
  11237. # At run time we better use the real file rather than another symlink,
  11238. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  11239. case $with_aix_soname,$aix_use_runtimelinking in
  11240. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  11241. # soname into executable. Probably we can add versioning support to
  11242. # collect2, so additional links can be useful in future.
  11243. aix,yes) # traditional libtool
  11244. dynamic_linker='AIX unversionable lib.so'
  11245. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11246. # instead of lib<name>.a to let people know that these are not
  11247. # typical AIX shared libraries.
  11248. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11249. ;;
  11250. aix,no) # traditional AIX only
  11251. dynamic_linker='AIX lib.a(lib.so.V)'
  11252. # We preserve .a as extension for shared libraries through AIX4.2
  11253. # and later when we are not doing run time linking.
  11254. library_names_spec='$libname$release.a $libname.a'
  11255. soname_spec='$libname$release$shared_ext$major'
  11256. ;;
  11257. svr4,*) # full svr4 only
  11258. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  11259. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11260. # We do not specify a path in Import Files, so LIBPATH fires.
  11261. shlibpath_overrides_runpath=yes
  11262. ;;
  11263. *,yes) # both, prefer svr4
  11264. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  11265. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11266. # unpreferred sharedlib libNAME.a needs extra handling
  11267. 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"'
  11268. 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"'
  11269. # We do not specify a path in Import Files, so LIBPATH fires.
  11270. shlibpath_overrides_runpath=yes
  11271. ;;
  11272. *,no) # both, prefer aix
  11273. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  11274. library_names_spec='$libname$release.a $libname.a'
  11275. soname_spec='$libname$release$shared_ext$major'
  11276. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  11277. 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)'
  11278. 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"'
  11279. ;;
  11280. esac
  11281. shlibpath_var=LIBPATH
  11282. fi
  11283. ;;
  11284. amigaos*)
  11285. case $host_cpu in
  11286. powerpc)
  11287. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11288. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11289. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11290. ;;
  11291. m68k)
  11292. library_names_spec='$libname.ixlibrary $libname.a'
  11293. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11294. 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'
  11295. ;;
  11296. esac
  11297. ;;
  11298. beos*)
  11299. library_names_spec='$libname$shared_ext'
  11300. dynamic_linker="$host_os ld.so"
  11301. shlibpath_var=LIBRARY_PATH
  11302. ;;
  11303. bsdi[45]*)
  11304. version_type=linux # correct to gnu/linux during the next big refactor
  11305. need_version=no
  11306. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11307. soname_spec='$libname$release$shared_ext$major'
  11308. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11309. shlibpath_var=LD_LIBRARY_PATH
  11310. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11311. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11312. # the default ld.so.conf also contains /usr/contrib/lib and
  11313. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11314. # libtool to hard-code these into programs
  11315. ;;
  11316. cygwin* | mingw* | pw32* | cegcc*)
  11317. version_type=windows
  11318. shrext_cmds=.dll
  11319. need_version=no
  11320. need_lib_prefix=no
  11321. case $GCC,$cc_basename in
  11322. yes,*)
  11323. # gcc
  11324. library_names_spec='$libname.dll.a'
  11325. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11326. postinstall_cmds='base_file=`basename \$file`~
  11327. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11328. dldir=$destdir/`dirname \$dlpath`~
  11329. test -d \$dldir || mkdir -p \$dldir~
  11330. $install_prog $dir/$dlname \$dldir/$dlname~
  11331. chmod a+x \$dldir/$dlname~
  11332. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11333. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11334. fi'
  11335. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11336. dlpath=$dir/\$dldll~
  11337. $RM \$dlpath'
  11338. shlibpath_overrides_runpath=yes
  11339. case $host_os in
  11340. cygwin*)
  11341. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11342. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11343. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11344. ;;
  11345. mingw* | cegcc*)
  11346. # MinGW DLLs use traditional 'lib' prefix
  11347. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11348. ;;
  11349. pw32*)
  11350. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11351. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11352. ;;
  11353. esac
  11354. dynamic_linker='Win32 ld.exe'
  11355. ;;
  11356. *,cl* | *,icl*)
  11357. # Native MSVC or ICC
  11358. libname_spec='$name'
  11359. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11360. library_names_spec='$libname.dll.lib'
  11361. case $build_os in
  11362. mingw*)
  11363. sys_lib_search_path_spec=
  11364. lt_save_ifs=$IFS
  11365. IFS=';'
  11366. for lt_path in $LIB
  11367. do
  11368. IFS=$lt_save_ifs
  11369. # Let DOS variable expansion print the short 8.3 style file name.
  11370. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11371. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11372. done
  11373. IFS=$lt_save_ifs
  11374. # Convert to MSYS style.
  11375. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11376. ;;
  11377. cygwin*)
  11378. # Convert to unix form, then to dos form, then back to unix form
  11379. # but this time dos style (no spaces!) so that the unix form looks
  11380. # like /cygdrive/c/PROGRA~1:/cygdr...
  11381. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11382. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11383. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11384. ;;
  11385. *)
  11386. sys_lib_search_path_spec=$LIB
  11387. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11388. # It is most probably a Windows format PATH.
  11389. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11390. else
  11391. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11392. fi
  11393. # FIXME: find the short name or the path components, as spaces are
  11394. # common. (e.g. "Program Files" -> "PROGRA~1")
  11395. ;;
  11396. esac
  11397. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11398. postinstall_cmds='base_file=`basename \$file`~
  11399. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11400. dldir=$destdir/`dirname \$dlpath`~
  11401. test -d \$dldir || mkdir -p \$dldir~
  11402. $install_prog $dir/$dlname \$dldir/$dlname'
  11403. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11404. dlpath=$dir/\$dldll~
  11405. $RM \$dlpath'
  11406. shlibpath_overrides_runpath=yes
  11407. dynamic_linker='Win32 link.exe'
  11408. ;;
  11409. *)
  11410. # Assume MSVC and ICC wrapper
  11411. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  11412. dynamic_linker='Win32 ld.exe'
  11413. ;;
  11414. esac
  11415. # FIXME: first we should search . and the directory the executable is in
  11416. shlibpath_var=PATH
  11417. ;;
  11418. darwin* | rhapsody*)
  11419. dynamic_linker="$host_os dyld"
  11420. version_type=darwin
  11421. need_lib_prefix=no
  11422. need_version=no
  11423. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  11424. soname_spec='$libname$release$major$shared_ext'
  11425. shlibpath_overrides_runpath=yes
  11426. shlibpath_var=DYLD_LIBRARY_PATH
  11427. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11428. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11429. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11430. ;;
  11431. dgux*)
  11432. version_type=linux # correct to gnu/linux during the next big refactor
  11433. need_lib_prefix=no
  11434. need_version=no
  11435. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11436. soname_spec='$libname$release$shared_ext$major'
  11437. shlibpath_var=LD_LIBRARY_PATH
  11438. ;;
  11439. freebsd* | dragonfly* | midnightbsd*)
  11440. # DragonFly does not have aout. When/if they implement a new
  11441. # versioning mechanism, adjust this.
  11442. if test -x /usr/bin/objformat; then
  11443. objformat=`/usr/bin/objformat`
  11444. else
  11445. case $host_os in
  11446. freebsd[23].*) objformat=aout ;;
  11447. *) objformat=elf ;;
  11448. esac
  11449. fi
  11450. version_type=freebsd-$objformat
  11451. case $version_type in
  11452. freebsd-elf*)
  11453. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11454. soname_spec='$libname$release$shared_ext$major'
  11455. need_version=no
  11456. need_lib_prefix=no
  11457. ;;
  11458. freebsd-*)
  11459. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11460. need_version=yes
  11461. ;;
  11462. esac
  11463. shlibpath_var=LD_LIBRARY_PATH
  11464. case $host_os in
  11465. freebsd2.*)
  11466. shlibpath_overrides_runpath=yes
  11467. ;;
  11468. freebsd3.[01]* | freebsdelf3.[01]*)
  11469. shlibpath_overrides_runpath=yes
  11470. hardcode_into_libs=yes
  11471. ;;
  11472. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11473. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11474. shlibpath_overrides_runpath=no
  11475. hardcode_into_libs=yes
  11476. ;;
  11477. *) # from 4.6 on, and DragonFly
  11478. shlibpath_overrides_runpath=yes
  11479. hardcode_into_libs=yes
  11480. ;;
  11481. esac
  11482. ;;
  11483. haiku*)
  11484. version_type=linux # correct to gnu/linux during the next big refactor
  11485. need_lib_prefix=no
  11486. need_version=no
  11487. dynamic_linker="$host_os runtime_loader"
  11488. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11489. soname_spec='$libname$release$shared_ext$major'
  11490. shlibpath_var=LIBRARY_PATH
  11491. shlibpath_overrides_runpath=no
  11492. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11493. hardcode_into_libs=yes
  11494. ;;
  11495. hpux9* | hpux10* | hpux11*)
  11496. # Give a soname corresponding to the major version so that dld.sl refuses to
  11497. # link against other versions.
  11498. version_type=sunos
  11499. need_lib_prefix=no
  11500. need_version=no
  11501. case $host_cpu in
  11502. ia64*)
  11503. shrext_cmds='.so'
  11504. hardcode_into_libs=yes
  11505. dynamic_linker="$host_os dld.so"
  11506. shlibpath_var=LD_LIBRARY_PATH
  11507. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11508. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11509. soname_spec='$libname$release$shared_ext$major'
  11510. if test 32 = "$HPUX_IA64_MODE"; then
  11511. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11512. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11513. else
  11514. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11515. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11516. fi
  11517. ;;
  11518. hppa*64*)
  11519. shrext_cmds='.sl'
  11520. hardcode_into_libs=yes
  11521. dynamic_linker="$host_os dld.sl"
  11522. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11523. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11524. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11525. soname_spec='$libname$release$shared_ext$major'
  11526. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11527. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11528. ;;
  11529. *)
  11530. shrext_cmds='.sl'
  11531. dynamic_linker="$host_os dld.sl"
  11532. shlibpath_var=SHLIB_PATH
  11533. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11534. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11535. soname_spec='$libname$release$shared_ext$major'
  11536. ;;
  11537. esac
  11538. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11539. postinstall_cmds='chmod 555 $lib'
  11540. # or fails outright, so override atomically:
  11541. install_override_mode=555
  11542. ;;
  11543. interix[3-9]*)
  11544. version_type=linux # correct to gnu/linux during the next big refactor
  11545. need_lib_prefix=no
  11546. need_version=no
  11547. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11548. soname_spec='$libname$release$shared_ext$major'
  11549. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11550. shlibpath_var=LD_LIBRARY_PATH
  11551. shlibpath_overrides_runpath=no
  11552. hardcode_into_libs=yes
  11553. ;;
  11554. irix5* | irix6* | nonstopux*)
  11555. case $host_os in
  11556. nonstopux*) version_type=nonstopux ;;
  11557. *)
  11558. if test yes = "$lt_cv_prog_gnu_ld"; then
  11559. version_type=linux # correct to gnu/linux during the next big refactor
  11560. else
  11561. version_type=irix
  11562. fi ;;
  11563. esac
  11564. need_lib_prefix=no
  11565. need_version=no
  11566. soname_spec='$libname$release$shared_ext$major'
  11567. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11568. case $host_os in
  11569. irix5* | nonstopux*)
  11570. libsuff= shlibsuff=
  11571. ;;
  11572. *)
  11573. case $LD in # libtool.m4 will add one of these switches to LD
  11574. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11575. libsuff= shlibsuff= libmagic=32-bit;;
  11576. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11577. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11578. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11579. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11580. *) libsuff= shlibsuff= libmagic=never-match;;
  11581. esac
  11582. ;;
  11583. esac
  11584. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11585. shlibpath_overrides_runpath=no
  11586. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11587. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11588. hardcode_into_libs=yes
  11589. ;;
  11590. # No shared lib support for Linux oldld, aout, or coff.
  11591. linux*oldld* | linux*aout* | linux*coff*)
  11592. dynamic_linker=no
  11593. ;;
  11594. linux*android*)
  11595. version_type=none # Android doesn't support versioned libraries.
  11596. need_lib_prefix=no
  11597. need_version=no
  11598. library_names_spec='$libname$release$shared_ext'
  11599. soname_spec='$libname$release$shared_ext'
  11600. finish_cmds=
  11601. shlibpath_var=LD_LIBRARY_PATH
  11602. shlibpath_overrides_runpath=yes
  11603. # This implies no fast_install, which is unacceptable.
  11604. # Some rework will be needed to allow for fast_install
  11605. # before this can be enabled.
  11606. hardcode_into_libs=yes
  11607. dynamic_linker='Android linker'
  11608. # Don't embed -rpath directories since the linker doesn't support them.
  11609. hardcode_libdir_flag_spec='-L$libdir'
  11610. ;;
  11611. # This must be glibc/ELF.
  11612. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11613. version_type=linux # correct to gnu/linux during the next big refactor
  11614. need_lib_prefix=no
  11615. need_version=no
  11616. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11617. soname_spec='$libname$release$shared_ext$major'
  11618. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11619. shlibpath_var=LD_LIBRARY_PATH
  11620. shlibpath_overrides_runpath=no
  11621. # Some binutils ld are patched to set DT_RUNPATH
  11622. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11623. then :
  11624. printf %s "(cached) " >&6
  11625. else case e in #(
  11626. e) lt_cv_shlibpath_overrides_runpath=no
  11627. save_LDFLAGS=$LDFLAGS
  11628. save_libdir=$libdir
  11629. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11630. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11632. /* end confdefs.h. */
  11633. int
  11634. main (void)
  11635. {
  11636. ;
  11637. return 0;
  11638. }
  11639. _ACEOF
  11640. if ac_fn_c_try_link "$LINENO"
  11641. then :
  11642. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11643. then :
  11644. lt_cv_shlibpath_overrides_runpath=yes
  11645. fi
  11646. fi
  11647. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11648. conftest$ac_exeext conftest.$ac_ext
  11649. LDFLAGS=$save_LDFLAGS
  11650. libdir=$save_libdir
  11651. ;;
  11652. esac
  11653. fi
  11654. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11655. # This implies no fast_install, which is unacceptable.
  11656. # Some rework will be needed to allow for fast_install
  11657. # before this can be enabled.
  11658. hardcode_into_libs=yes
  11659. # Ideally, we could use ldconfig to report *all* directores which are
  11660. # searched for libraries, however this is still not possible. Aside from not
  11661. # being certain /sbin/ldconfig is available, command
  11662. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11663. # even though it is searched at run-time. Try to do the best guess by
  11664. # appending ld.so.conf contents (and includes) to the search path.
  11665. if test -f /etc/ld.so.conf; then
  11666. 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' ' '`
  11667. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11668. fi
  11669. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11670. # powerpc, because MkLinux only supported shared libraries with the
  11671. # GNU dynamic linker. Since this was broken with cross compilers,
  11672. # most powerpc-linux boxes support dynamic linking these days and
  11673. # people can always --disable-shared, the test was removed, and we
  11674. # assume the GNU/Linux dynamic linker is in use.
  11675. dynamic_linker='GNU/Linux ld.so'
  11676. ;;
  11677. netbsd*)
  11678. version_type=sunos
  11679. need_lib_prefix=no
  11680. need_version=no
  11681. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11682. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11683. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11684. dynamic_linker='NetBSD (a.out) ld.so'
  11685. else
  11686. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11687. soname_spec='$libname$release$shared_ext$major'
  11688. dynamic_linker='NetBSD ld.elf_so'
  11689. fi
  11690. shlibpath_var=LD_LIBRARY_PATH
  11691. shlibpath_overrides_runpath=yes
  11692. hardcode_into_libs=yes
  11693. ;;
  11694. newsos6)
  11695. version_type=linux # correct to gnu/linux during the next big refactor
  11696. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11697. shlibpath_var=LD_LIBRARY_PATH
  11698. shlibpath_overrides_runpath=yes
  11699. ;;
  11700. *nto* | *qnx*)
  11701. version_type=qnx
  11702. need_lib_prefix=no
  11703. need_version=no
  11704. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11705. soname_spec='$libname$release$shared_ext$major'
  11706. shlibpath_var=LD_LIBRARY_PATH
  11707. shlibpath_overrides_runpath=no
  11708. hardcode_into_libs=yes
  11709. dynamic_linker='ldqnx.so'
  11710. ;;
  11711. openbsd* | bitrig*)
  11712. version_type=sunos
  11713. sys_lib_dlsearch_path_spec=/usr/lib
  11714. need_lib_prefix=no
  11715. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11716. need_version=no
  11717. else
  11718. need_version=yes
  11719. fi
  11720. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11721. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11722. shlibpath_var=LD_LIBRARY_PATH
  11723. shlibpath_overrides_runpath=yes
  11724. ;;
  11725. os2*)
  11726. libname_spec='$name'
  11727. version_type=windows
  11728. shrext_cmds=.dll
  11729. need_version=no
  11730. need_lib_prefix=no
  11731. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11732. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11733. v=$($ECHO $release$versuffix | tr -d .-);
  11734. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11735. $ECHO $n$v`$shared_ext'
  11736. library_names_spec='${libname}_dll.$libext'
  11737. dynamic_linker='OS/2 ld.exe'
  11738. shlibpath_var=BEGINLIBPATH
  11739. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11740. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11741. postinstall_cmds='base_file=`basename \$file`~
  11742. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11743. dldir=$destdir/`dirname \$dlpath`~
  11744. test -d \$dldir || mkdir -p \$dldir~
  11745. $install_prog $dir/$dlname \$dldir/$dlname~
  11746. chmod a+x \$dldir/$dlname~
  11747. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11748. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11749. fi'
  11750. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11751. dlpath=$dir/\$dldll~
  11752. $RM \$dlpath'
  11753. ;;
  11754. osf3* | osf4* | osf5*)
  11755. version_type=osf
  11756. need_lib_prefix=no
  11757. need_version=no
  11758. soname_spec='$libname$release$shared_ext$major'
  11759. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11760. shlibpath_var=LD_LIBRARY_PATH
  11761. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11762. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11763. ;;
  11764. rdos*)
  11765. dynamic_linker=no
  11766. ;;
  11767. solaris*)
  11768. version_type=linux # correct to gnu/linux during the next big refactor
  11769. need_lib_prefix=no
  11770. need_version=no
  11771. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11772. soname_spec='$libname$release$shared_ext$major'
  11773. shlibpath_var=LD_LIBRARY_PATH
  11774. shlibpath_overrides_runpath=yes
  11775. hardcode_into_libs=yes
  11776. # ldd complains unless libraries are executable
  11777. postinstall_cmds='chmod +x $lib'
  11778. ;;
  11779. sunos4*)
  11780. version_type=sunos
  11781. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11782. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11783. shlibpath_var=LD_LIBRARY_PATH
  11784. shlibpath_overrides_runpath=yes
  11785. if test yes = "$with_gnu_ld"; then
  11786. need_lib_prefix=no
  11787. fi
  11788. need_version=yes
  11789. ;;
  11790. sysv4 | sysv4.3*)
  11791. version_type=linux # correct to gnu/linux during the next big refactor
  11792. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11793. soname_spec='$libname$release$shared_ext$major'
  11794. shlibpath_var=LD_LIBRARY_PATH
  11795. case $host_vendor in
  11796. sni)
  11797. shlibpath_overrides_runpath=no
  11798. need_lib_prefix=no
  11799. runpath_var=LD_RUN_PATH
  11800. ;;
  11801. siemens)
  11802. need_lib_prefix=no
  11803. ;;
  11804. motorola)
  11805. need_lib_prefix=no
  11806. need_version=no
  11807. shlibpath_overrides_runpath=no
  11808. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11809. ;;
  11810. esac
  11811. ;;
  11812. sysv4*MP*)
  11813. if test -d /usr/nec; then
  11814. version_type=linux # correct to gnu/linux during the next big refactor
  11815. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11816. soname_spec='$libname$shared_ext.$major'
  11817. shlibpath_var=LD_LIBRARY_PATH
  11818. fi
  11819. ;;
  11820. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11821. version_type=sco
  11822. need_lib_prefix=no
  11823. need_version=no
  11824. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11825. soname_spec='$libname$release$shared_ext$major'
  11826. shlibpath_var=LD_LIBRARY_PATH
  11827. shlibpath_overrides_runpath=yes
  11828. hardcode_into_libs=yes
  11829. if test yes = "$with_gnu_ld"; then
  11830. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11831. else
  11832. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11833. case $host_os in
  11834. sco3.2v5*)
  11835. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11836. ;;
  11837. esac
  11838. fi
  11839. sys_lib_dlsearch_path_spec='/usr/lib'
  11840. ;;
  11841. tpf*)
  11842. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11843. version_type=linux # correct to gnu/linux during the next big refactor
  11844. need_lib_prefix=no
  11845. need_version=no
  11846. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11847. shlibpath_var=LD_LIBRARY_PATH
  11848. shlibpath_overrides_runpath=no
  11849. hardcode_into_libs=yes
  11850. ;;
  11851. uts4*)
  11852. version_type=linux # correct to gnu/linux during the next big refactor
  11853. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11854. soname_spec='$libname$release$shared_ext$major'
  11855. shlibpath_var=LD_LIBRARY_PATH
  11856. ;;
  11857. *)
  11858. dynamic_linker=no
  11859. ;;
  11860. esac
  11861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11862. printf "%s\n" "$dynamic_linker" >&6; }
  11863. test no = "$dynamic_linker" && can_build_shared=no
  11864. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11865. if test yes = "$GCC"; then
  11866. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11867. fi
  11868. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11869. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11870. fi
  11871. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11872. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11873. fi
  11874. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11875. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11876. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11877. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11878. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11879. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11881. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11882. hardcode_action=
  11883. if test -n "$hardcode_libdir_flag_spec" ||
  11884. test -n "$runpath_var" ||
  11885. test yes = "$hardcode_automatic"; then
  11886. # We can hardcode non-existent directories.
  11887. if test no != "$hardcode_direct" &&
  11888. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11889. # have to relink, otherwise we might link with an installed library
  11890. # when we should be linking with a yet-to-be-installed one
  11891. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11892. test no != "$hardcode_minus_L"; then
  11893. # Linking always hardcodes the temporary library directory.
  11894. hardcode_action=relink
  11895. else
  11896. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11897. hardcode_action=immediate
  11898. fi
  11899. else
  11900. # We cannot hardcode anything, or else we can only hardcode existing
  11901. # directories.
  11902. hardcode_action=unsupported
  11903. fi
  11904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11905. printf "%s\n" "$hardcode_action" >&6; }
  11906. if test relink = "$hardcode_action" ||
  11907. test yes = "$inherit_rpath"; then
  11908. # Fast installation is not supported
  11909. enable_fast_install=no
  11910. elif test yes = "$shlibpath_overrides_runpath" ||
  11911. test no = "$enable_shared"; then
  11912. # Fast installation is not necessary
  11913. enable_fast_install=needless
  11914. fi
  11915. if test yes != "$enable_dlopen"; then
  11916. enable_dlopen=unknown
  11917. enable_dlopen_self=unknown
  11918. enable_dlopen_self_static=unknown
  11919. else
  11920. lt_cv_dlopen=no
  11921. lt_cv_dlopen_libs=
  11922. case $host_os in
  11923. beos*)
  11924. lt_cv_dlopen=load_add_on
  11925. lt_cv_dlopen_libs=
  11926. lt_cv_dlopen_self=yes
  11927. ;;
  11928. mingw* | pw32* | cegcc*)
  11929. lt_cv_dlopen=LoadLibrary
  11930. lt_cv_dlopen_libs=
  11931. ;;
  11932. cygwin*)
  11933. lt_cv_dlopen=dlopen
  11934. lt_cv_dlopen_libs=
  11935. ;;
  11936. darwin*)
  11937. # if libdl is installed we need to link against it
  11938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11939. printf %s "checking for dlopen in -ldl... " >&6; }
  11940. if test ${ac_cv_lib_dl_dlopen+y}
  11941. then :
  11942. printf %s "(cached) " >&6
  11943. else case e in #(
  11944. e) ac_check_lib_save_LIBS=$LIBS
  11945. LIBS="-ldl $LIBS"
  11946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11947. /* end confdefs.h. */
  11948. /* Override any GCC internal prototype to avoid an error.
  11949. Use char because int might match the return type of a GCC
  11950. builtin and then its argument prototype would still apply.
  11951. The 'extern "C"' is for builds by C++ compilers;
  11952. although this is not generally supported in C code supporting it here
  11953. has little cost and some practical benefit (sr 110532). */
  11954. #ifdef __cplusplus
  11955. extern "C"
  11956. #endif
  11957. char dlopen (void);
  11958. int
  11959. main (void)
  11960. {
  11961. return dlopen ();
  11962. ;
  11963. return 0;
  11964. }
  11965. _ACEOF
  11966. if ac_fn_c_try_link "$LINENO"
  11967. then :
  11968. ac_cv_lib_dl_dlopen=yes
  11969. else case e in #(
  11970. e) ac_cv_lib_dl_dlopen=no ;;
  11971. esac
  11972. fi
  11973. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11974. conftest$ac_exeext conftest.$ac_ext
  11975. LIBS=$ac_check_lib_save_LIBS ;;
  11976. esac
  11977. fi
  11978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11979. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11980. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11981. then :
  11982. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11983. else case e in #(
  11984. e)
  11985. lt_cv_dlopen=dyld
  11986. lt_cv_dlopen_libs=
  11987. lt_cv_dlopen_self=yes
  11988. ;;
  11989. esac
  11990. fi
  11991. ;;
  11992. tpf*)
  11993. # Don't try to run any link tests for TPF. We know it's impossible
  11994. # because TPF is a cross-compiler, and we know how we open DSOs.
  11995. lt_cv_dlopen=dlopen
  11996. lt_cv_dlopen_libs=
  11997. lt_cv_dlopen_self=no
  11998. ;;
  11999. *)
  12000. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12001. if test "x$ac_cv_func_shl_load" = xyes
  12002. then :
  12003. lt_cv_dlopen=shl_load
  12004. else case e in #(
  12005. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12006. printf %s "checking for shl_load in -ldld... " >&6; }
  12007. if test ${ac_cv_lib_dld_shl_load+y}
  12008. then :
  12009. printf %s "(cached) " >&6
  12010. else case e in #(
  12011. e) ac_check_lib_save_LIBS=$LIBS
  12012. LIBS="-ldld $LIBS"
  12013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12014. /* end confdefs.h. */
  12015. /* Override any GCC internal prototype to avoid an error.
  12016. Use char because int might match the return type of a GCC
  12017. builtin and then its argument prototype would still apply.
  12018. The 'extern "C"' is for builds by C++ compilers;
  12019. although this is not generally supported in C code supporting it here
  12020. has little cost and some practical benefit (sr 110532). */
  12021. #ifdef __cplusplus
  12022. extern "C"
  12023. #endif
  12024. char shl_load (void);
  12025. int
  12026. main (void)
  12027. {
  12028. return shl_load ();
  12029. ;
  12030. return 0;
  12031. }
  12032. _ACEOF
  12033. if ac_fn_c_try_link "$LINENO"
  12034. then :
  12035. ac_cv_lib_dld_shl_load=yes
  12036. else case e in #(
  12037. e) ac_cv_lib_dld_shl_load=no ;;
  12038. esac
  12039. fi
  12040. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12041. conftest$ac_exeext conftest.$ac_ext
  12042. LIBS=$ac_check_lib_save_LIBS ;;
  12043. esac
  12044. fi
  12045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12046. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  12047. if test "x$ac_cv_lib_dld_shl_load" = xyes
  12048. then :
  12049. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  12050. else case e in #(
  12051. e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12052. if test "x$ac_cv_func_dlopen" = xyes
  12053. then :
  12054. lt_cv_dlopen=dlopen
  12055. else case e in #(
  12056. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12057. printf %s "checking for dlopen in -ldl... " >&6; }
  12058. if test ${ac_cv_lib_dl_dlopen+y}
  12059. then :
  12060. printf %s "(cached) " >&6
  12061. else case e in #(
  12062. e) ac_check_lib_save_LIBS=$LIBS
  12063. LIBS="-ldl $LIBS"
  12064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12065. /* end confdefs.h. */
  12066. /* Override any GCC internal prototype to avoid an error.
  12067. Use char because int might match the return type of a GCC
  12068. builtin and then its argument prototype would still apply.
  12069. The 'extern "C"' is for builds by C++ compilers;
  12070. although this is not generally supported in C code supporting it here
  12071. has little cost and some practical benefit (sr 110532). */
  12072. #ifdef __cplusplus
  12073. extern "C"
  12074. #endif
  12075. char dlopen (void);
  12076. int
  12077. main (void)
  12078. {
  12079. return dlopen ();
  12080. ;
  12081. return 0;
  12082. }
  12083. _ACEOF
  12084. if ac_fn_c_try_link "$LINENO"
  12085. then :
  12086. ac_cv_lib_dl_dlopen=yes
  12087. else case e in #(
  12088. e) ac_cv_lib_dl_dlopen=no ;;
  12089. esac
  12090. fi
  12091. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12092. conftest$ac_exeext conftest.$ac_ext
  12093. LIBS=$ac_check_lib_save_LIBS ;;
  12094. esac
  12095. fi
  12096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12097. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  12098. if test "x$ac_cv_lib_dl_dlopen" = xyes
  12099. then :
  12100. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12101. else case e in #(
  12102. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12103. printf %s "checking for dlopen in -lsvld... " >&6; }
  12104. if test ${ac_cv_lib_svld_dlopen+y}
  12105. then :
  12106. printf %s "(cached) " >&6
  12107. else case e in #(
  12108. e) ac_check_lib_save_LIBS=$LIBS
  12109. LIBS="-lsvld $LIBS"
  12110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12111. /* end confdefs.h. */
  12112. /* Override any GCC internal prototype to avoid an error.
  12113. Use char because int might match the return type of a GCC
  12114. builtin and then its argument prototype would still apply.
  12115. The 'extern "C"' is for builds by C++ compilers;
  12116. although this is not generally supported in C code supporting it here
  12117. has little cost and some practical benefit (sr 110532). */
  12118. #ifdef __cplusplus
  12119. extern "C"
  12120. #endif
  12121. char dlopen (void);
  12122. int
  12123. main (void)
  12124. {
  12125. return dlopen ();
  12126. ;
  12127. return 0;
  12128. }
  12129. _ACEOF
  12130. if ac_fn_c_try_link "$LINENO"
  12131. then :
  12132. ac_cv_lib_svld_dlopen=yes
  12133. else case e in #(
  12134. e) ac_cv_lib_svld_dlopen=no ;;
  12135. esac
  12136. fi
  12137. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12138. conftest$ac_exeext conftest.$ac_ext
  12139. LIBS=$ac_check_lib_save_LIBS ;;
  12140. esac
  12141. fi
  12142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12143. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  12144. if test "x$ac_cv_lib_svld_dlopen" = xyes
  12145. then :
  12146. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12147. else case e in #(
  12148. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12149. printf %s "checking for dld_link in -ldld... " >&6; }
  12150. if test ${ac_cv_lib_dld_dld_link+y}
  12151. then :
  12152. printf %s "(cached) " >&6
  12153. else case e in #(
  12154. e) ac_check_lib_save_LIBS=$LIBS
  12155. LIBS="-ldld $LIBS"
  12156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12157. /* end confdefs.h. */
  12158. /* Override any GCC internal prototype to avoid an error.
  12159. Use char because int might match the return type of a GCC
  12160. builtin and then its argument prototype would still apply.
  12161. The 'extern "C"' is for builds by C++ compilers;
  12162. although this is not generally supported in C code supporting it here
  12163. has little cost and some practical benefit (sr 110532). */
  12164. #ifdef __cplusplus
  12165. extern "C"
  12166. #endif
  12167. char dld_link (void);
  12168. int
  12169. main (void)
  12170. {
  12171. return dld_link ();
  12172. ;
  12173. return 0;
  12174. }
  12175. _ACEOF
  12176. if ac_fn_c_try_link "$LINENO"
  12177. then :
  12178. ac_cv_lib_dld_dld_link=yes
  12179. else case e in #(
  12180. e) ac_cv_lib_dld_dld_link=no ;;
  12181. esac
  12182. fi
  12183. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12184. conftest$ac_exeext conftest.$ac_ext
  12185. LIBS=$ac_check_lib_save_LIBS ;;
  12186. esac
  12187. fi
  12188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12189. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  12190. if test "x$ac_cv_lib_dld_dld_link" = xyes
  12191. then :
  12192. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12193. fi
  12194. ;;
  12195. esac
  12196. fi
  12197. ;;
  12198. esac
  12199. fi
  12200. ;;
  12201. esac
  12202. fi
  12203. ;;
  12204. esac
  12205. fi
  12206. ;;
  12207. esac
  12208. fi
  12209. ;;
  12210. esac
  12211. if test no = "$lt_cv_dlopen"; then
  12212. enable_dlopen=no
  12213. else
  12214. enable_dlopen=yes
  12215. fi
  12216. case $lt_cv_dlopen in
  12217. dlopen)
  12218. save_CPPFLAGS=$CPPFLAGS
  12219. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12220. save_LDFLAGS=$LDFLAGS
  12221. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12222. save_LIBS=$LIBS
  12223. LIBS="$lt_cv_dlopen_libs $LIBS"
  12224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12225. printf %s "checking whether a program can dlopen itself... " >&6; }
  12226. if test ${lt_cv_dlopen_self+y}
  12227. then :
  12228. printf %s "(cached) " >&6
  12229. else case e in #(
  12230. e) if test yes = "$cross_compiling"; then :
  12231. lt_cv_dlopen_self=cross
  12232. else
  12233. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12234. lt_status=$lt_dlunknown
  12235. cat > conftest.$ac_ext <<_LT_EOF
  12236. #line $LINENO "configure"
  12237. #include "confdefs.h"
  12238. #if HAVE_DLFCN_H
  12239. #include <dlfcn.h>
  12240. #endif
  12241. #include <stdio.h>
  12242. #ifdef RTLD_GLOBAL
  12243. # define LT_DLGLOBAL RTLD_GLOBAL
  12244. #else
  12245. # ifdef DL_GLOBAL
  12246. # define LT_DLGLOBAL DL_GLOBAL
  12247. # else
  12248. # define LT_DLGLOBAL 0
  12249. # endif
  12250. #endif
  12251. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12252. find out it does not work in some platform. */
  12253. #ifndef LT_DLLAZY_OR_NOW
  12254. # ifdef RTLD_LAZY
  12255. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12256. # else
  12257. # ifdef DL_LAZY
  12258. # define LT_DLLAZY_OR_NOW DL_LAZY
  12259. # else
  12260. # ifdef RTLD_NOW
  12261. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12262. # else
  12263. # ifdef DL_NOW
  12264. # define LT_DLLAZY_OR_NOW DL_NOW
  12265. # else
  12266. # define LT_DLLAZY_OR_NOW 0
  12267. # endif
  12268. # endif
  12269. # endif
  12270. # endif
  12271. #endif
  12272. /* When -fvisibility=hidden is used, assume the code has been annotated
  12273. correspondingly for the symbols needed. */
  12274. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12275. int fnord () __attribute__((visibility("default")));
  12276. #endif
  12277. int fnord () { return 42; }
  12278. int main ()
  12279. {
  12280. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12281. int status = $lt_dlunknown;
  12282. if (self)
  12283. {
  12284. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12285. else
  12286. {
  12287. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12288. else puts (dlerror ());
  12289. }
  12290. /* dlclose (self); */
  12291. }
  12292. else
  12293. puts (dlerror ());
  12294. return status;
  12295. }
  12296. _LT_EOF
  12297. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12298. (eval $ac_link) 2>&5
  12299. ac_status=$?
  12300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12301. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12302. (./conftest; exit; ) >&5 2>/dev/null
  12303. lt_status=$?
  12304. case x$lt_status in
  12305. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12306. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12307. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12308. esac
  12309. else :
  12310. # compilation failed
  12311. lt_cv_dlopen_self=no
  12312. fi
  12313. fi
  12314. rm -fr conftest*
  12315. ;;
  12316. esac
  12317. fi
  12318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12319. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  12320. if test yes = "$lt_cv_dlopen_self"; then
  12321. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12323. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  12324. if test ${lt_cv_dlopen_self_static+y}
  12325. then :
  12326. printf %s "(cached) " >&6
  12327. else case e in #(
  12328. e) if test yes = "$cross_compiling"; then :
  12329. lt_cv_dlopen_self_static=cross
  12330. else
  12331. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12332. lt_status=$lt_dlunknown
  12333. cat > conftest.$ac_ext <<_LT_EOF
  12334. #line $LINENO "configure"
  12335. #include "confdefs.h"
  12336. #if HAVE_DLFCN_H
  12337. #include <dlfcn.h>
  12338. #endif
  12339. #include <stdio.h>
  12340. #ifdef RTLD_GLOBAL
  12341. # define LT_DLGLOBAL RTLD_GLOBAL
  12342. #else
  12343. # ifdef DL_GLOBAL
  12344. # define LT_DLGLOBAL DL_GLOBAL
  12345. # else
  12346. # define LT_DLGLOBAL 0
  12347. # endif
  12348. #endif
  12349. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12350. find out it does not work in some platform. */
  12351. #ifndef LT_DLLAZY_OR_NOW
  12352. # ifdef RTLD_LAZY
  12353. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12354. # else
  12355. # ifdef DL_LAZY
  12356. # define LT_DLLAZY_OR_NOW DL_LAZY
  12357. # else
  12358. # ifdef RTLD_NOW
  12359. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12360. # else
  12361. # ifdef DL_NOW
  12362. # define LT_DLLAZY_OR_NOW DL_NOW
  12363. # else
  12364. # define LT_DLLAZY_OR_NOW 0
  12365. # endif
  12366. # endif
  12367. # endif
  12368. # endif
  12369. #endif
  12370. /* When -fvisibility=hidden is used, assume the code has been annotated
  12371. correspondingly for the symbols needed. */
  12372. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12373. int fnord () __attribute__((visibility("default")));
  12374. #endif
  12375. int fnord () { return 42; }
  12376. int main ()
  12377. {
  12378. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12379. int status = $lt_dlunknown;
  12380. if (self)
  12381. {
  12382. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12383. else
  12384. {
  12385. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12386. else puts (dlerror ());
  12387. }
  12388. /* dlclose (self); */
  12389. }
  12390. else
  12391. puts (dlerror ());
  12392. return status;
  12393. }
  12394. _LT_EOF
  12395. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12396. (eval $ac_link) 2>&5
  12397. ac_status=$?
  12398. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12399. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12400. (./conftest; exit; ) >&5 2>/dev/null
  12401. lt_status=$?
  12402. case x$lt_status in
  12403. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12404. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12405. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12406. esac
  12407. else :
  12408. # compilation failed
  12409. lt_cv_dlopen_self_static=no
  12410. fi
  12411. fi
  12412. rm -fr conftest*
  12413. ;;
  12414. esac
  12415. fi
  12416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12417. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  12418. fi
  12419. CPPFLAGS=$save_CPPFLAGS
  12420. LDFLAGS=$save_LDFLAGS
  12421. LIBS=$save_LIBS
  12422. ;;
  12423. esac
  12424. case $lt_cv_dlopen_self in
  12425. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12426. *) enable_dlopen_self=unknown ;;
  12427. esac
  12428. case $lt_cv_dlopen_self_static in
  12429. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12430. *) enable_dlopen_self_static=unknown ;;
  12431. esac
  12432. fi
  12433. striplib=
  12434. old_striplib=
  12435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12436. printf %s "checking whether stripping libraries is possible... " >&6; }
  12437. if test -z "$STRIP"; then
  12438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12439. printf "%s\n" "no" >&6; }
  12440. else
  12441. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12442. old_striplib="$STRIP --strip-debug"
  12443. striplib="$STRIP --strip-unneeded"
  12444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12445. printf "%s\n" "yes" >&6; }
  12446. else
  12447. case $host_os in
  12448. darwin*)
  12449. # FIXME - insert some real tests, host_os isn't really good enough
  12450. striplib="$STRIP -x"
  12451. old_striplib="$STRIP -S"
  12452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12453. printf "%s\n" "yes" >&6; }
  12454. ;;
  12455. freebsd*)
  12456. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  12457. old_striplib="$STRIP --strip-debug"
  12458. striplib="$STRIP --strip-unneeded"
  12459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12460. printf "%s\n" "yes" >&6; }
  12461. else
  12462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12463. printf "%s\n" "no" >&6; }
  12464. fi
  12465. ;;
  12466. *)
  12467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12468. printf "%s\n" "no" >&6; }
  12469. ;;
  12470. esac
  12471. fi
  12472. fi
  12473. # Report what library types will actually be built
  12474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12475. printf %s "checking if libtool supports shared libraries... " >&6; }
  12476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12477. printf "%s\n" "$can_build_shared" >&6; }
  12478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12479. printf %s "checking whether to build shared libraries... " >&6; }
  12480. test no = "$can_build_shared" && enable_shared=no
  12481. # On AIX, shared libraries and static libraries use the same namespace, and
  12482. # are all built from PIC.
  12483. case $host_os in
  12484. aix3*)
  12485. test yes = "$enable_shared" && enable_static=no
  12486. if test -n "$RANLIB"; then
  12487. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12488. postinstall_cmds='$RANLIB $lib'
  12489. fi
  12490. ;;
  12491. aix[4-9]*)
  12492. if test ia64 != "$host_cpu"; then
  12493. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  12494. yes,aix,yes) ;; # shared object as lib.so file only
  12495. yes,svr4,*) ;; # shared object as lib.so archive member only
  12496. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  12497. esac
  12498. fi
  12499. ;;
  12500. esac
  12501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12502. printf "%s\n" "$enable_shared" >&6; }
  12503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12504. printf %s "checking whether to build static libraries... " >&6; }
  12505. # Make sure either enable_shared or enable_static is yes.
  12506. test yes = "$enable_shared" || enable_static=yes
  12507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12508. printf "%s\n" "$enable_static" >&6; }
  12509. fi
  12510. ac_ext=c
  12511. ac_cpp='$CPP $CPPFLAGS'
  12512. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12513. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12514. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12515. CC=$lt_save_CC
  12516. ac_config_commands="$ac_config_commands libtool"
  12517. # Only expand once:
  12518. # Select memory manager depending on user input.
  12519. # If no "-enable-maxmem", use jmemnobs
  12520. MEMORYMGR='jmemnobs'
  12521. MAXMEM="no"
  12522. # Check whether --enable-maxmem was given.
  12523. if test ${enable_maxmem+y}
  12524. then :
  12525. enableval=$enable_maxmem; MAXMEM="$enableval"
  12526. fi
  12527. if test "x$MAXMEM" = xyes; then
  12528. MAXMEM=1
  12529. fi
  12530. if test "x$MAXMEM" != xno; then
  12531. if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
  12532. as_fn_error $? "non-numeric argument to --enable-maxmem" "$LINENO" 5
  12533. fi
  12534. DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
  12535. printf "%s\n" "#define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}" >>confdefs.h
  12536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
  12537. printf %s "checking for 'tmpfile()'... " >&6; }
  12538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12539. /* end confdefs.h. */
  12540. #include <stdio.h>
  12541. int
  12542. main (void)
  12543. {
  12544. FILE * tfile = tmpfile();
  12545. ;
  12546. return 0;
  12547. }
  12548. _ACEOF
  12549. if ac_fn_c_try_link "$LINENO"
  12550. then :
  12551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12552. printf "%s\n" "yes" >&6; }
  12553. MEMORYMGR='jmemansi'
  12554. else case e in #(
  12555. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12556. printf "%s\n" "no" >&6; }
  12557. MEMORYMGR='jmemname'
  12558. # Test for the need to remove temporary files using a signal handler
  12559. # (for cjpeg/djpeg)
  12560. printf "%s\n" "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
  12561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
  12562. printf %s "checking for 'mktemp()'... " >&6; }
  12563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12564. /* end confdefs.h. */
  12565. int
  12566. main (void)
  12567. {
  12568. char fname[80]; mktemp(fname);
  12569. ;
  12570. return 0;
  12571. }
  12572. _ACEOF
  12573. if ac_fn_c_try_link "$LINENO"
  12574. then :
  12575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12576. printf "%s\n" "yes" >&6; }
  12577. else case e in #(
  12578. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12579. printf "%s\n" "no" >&6; }
  12580. printf "%s\n" "#define NO_MKTEMP 1" >>confdefs.h
  12581. ;;
  12582. esac
  12583. fi
  12584. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12585. conftest$ac_exeext conftest.$ac_ext ;;
  12586. esac
  12587. fi
  12588. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12589. conftest$ac_exeext conftest.$ac_ext
  12590. fi
  12591. # Extract the library version IDs from jpeglib.h.
  12592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
  12593. printf %s "checking libjpeg version number... " >&6; }
  12594. major=`sed -ne 's/^#define JPEG_LIB_VERSION_MAJOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
  12595. minor=`sed -ne 's/^#define JPEG_LIB_VERSION_MINOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
  12596. JPEG_LIB_VERSION=`expr $major + $minor`:0:$minor
  12597. JPEG_LIB_VERSION_MAJOR=$major
  12598. JPEG_LIB_VERSION_MINOR=$minor
  12599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $major.$minor.0" >&5
  12600. printf "%s\n" "$major.$minor.0" >&6; }
  12601. ac_config_files="$ac_config_files Makefile libjpeg.pc"
  12602. cat >confcache <<\_ACEOF
  12603. # This file is a shell script that caches the results of configure
  12604. # tests run on this system so they can be shared between configure
  12605. # scripts and configure runs, see configure's option --config-cache.
  12606. # It is not useful on other systems. If it contains results you don't
  12607. # want to keep, you may remove or edit it.
  12608. #
  12609. # config.status only pays attention to the cache file if you give it
  12610. # the --recheck option to rerun configure.
  12611. #
  12612. # 'ac_cv_env_foo' variables (set or unset) will be overridden when
  12613. # loading this file, other *unset* 'ac_cv_foo' will be assigned the
  12614. # following values.
  12615. _ACEOF
  12616. # The following way of writing the cache mishandles newlines in values,
  12617. # but we know of no workaround that is simple, portable, and efficient.
  12618. # So, we kill variables containing newlines.
  12619. # Ultrix sh set writes to stderr and can't be redirected directly,
  12620. # and sets the high bit in the cache file unless we assign to the vars.
  12621. (
  12622. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12623. eval ac_val=\$$ac_var
  12624. case $ac_val in #(
  12625. *${as_nl}*)
  12626. case $ac_var in #(
  12627. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12628. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12629. esac
  12630. case $ac_var in #(
  12631. _ | IFS | as_nl) ;; #(
  12632. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12633. *) { eval $ac_var=; unset $ac_var;} ;;
  12634. esac ;;
  12635. esac
  12636. done
  12637. (set) 2>&1 |
  12638. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12639. *${as_nl}ac_space=\ *)
  12640. # 'set' does not quote correctly, so add quotes: double-quote
  12641. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12642. sed -n \
  12643. "s/'/'\\\\''/g;
  12644. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12645. ;; #(
  12646. *)
  12647. # 'set' quotes correctly as required by POSIX, so do not add quotes.
  12648. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12649. ;;
  12650. esac |
  12651. sort
  12652. ) |
  12653. sed '
  12654. /^ac_cv_env_/b end
  12655. t clear
  12656. :clear
  12657. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  12658. t end
  12659. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12660. :end' >>confcache
  12661. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12662. if test -w "$cache_file"; then
  12663. if test "x$cache_file" != "x/dev/null"; then
  12664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12665. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  12666. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12667. cat confcache >"$cache_file"
  12668. else
  12669. case $cache_file in #(
  12670. */* | ?:*)
  12671. mv -f confcache "$cache_file"$$ &&
  12672. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12673. *)
  12674. mv -f confcache "$cache_file" ;;
  12675. esac
  12676. fi
  12677. fi
  12678. else
  12679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12680. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  12681. fi
  12682. fi
  12683. rm -f confcache
  12684. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12685. # Let make expand exec_prefix.
  12686. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12687. DEFS=-DHAVE_CONFIG_H
  12688. ac_libobjs=
  12689. ac_ltlibobjs=
  12690. U=
  12691. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12692. # 1. Remove the extension, and $U if already installed.
  12693. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12694. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  12695. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12696. # will be set to the directory where LIBOBJS objects are built.
  12697. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12698. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12699. done
  12700. LIBOBJS=$ac_libobjs
  12701. LTLIBOBJS=$ac_ltlibobjs
  12702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12703. printf %s "checking that generated files are newer than configure... " >&6; }
  12704. if test -n "$am_sleep_pid"; then
  12705. # Hide warnings about reused PIDs.
  12706. wait $am_sleep_pid 2>/dev/null
  12707. fi
  12708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12709. printf "%s\n" "done" >&6; }
  12710. if test -n "$EXEEXT"; then
  12711. am__EXEEXT_TRUE=
  12712. am__EXEEXT_FALSE='#'
  12713. else
  12714. am__EXEEXT_TRUE='#'
  12715. am__EXEEXT_FALSE=
  12716. fi
  12717. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12718. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  12719. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12720. fi
  12721. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12722. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12723. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12724. fi
  12725. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12726. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12727. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12728. fi
  12729. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  12730. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  12731. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12732. fi
  12733. : "${CONFIG_STATUS=./config.status}"
  12734. ac_write_fail=0
  12735. ac_clean_files_save=$ac_clean_files
  12736. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12738. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  12739. as_write_fail=0
  12740. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12741. #! $SHELL
  12742. # Generated by $as_me.
  12743. # Run this file to recreate the current configuration.
  12744. # Compiler output produced by configure, useful for debugging
  12745. # configure, is in config.log if it exists.
  12746. debug=false
  12747. ac_cs_recheck=false
  12748. ac_cs_silent=false
  12749. SHELL=\${CONFIG_SHELL-$SHELL}
  12750. export SHELL
  12751. _ASEOF
  12752. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12753. ## -------------------- ##
  12754. ## M4sh Initialization. ##
  12755. ## -------------------- ##
  12756. # Be more Bourne compatible
  12757. DUALCASE=1; export DUALCASE # for MKS sh
  12758. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  12759. then :
  12760. emulate sh
  12761. NULLCMD=:
  12762. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12763. # is contrary to our usage. Disable this feature.
  12764. alias -g '${1+"$@"}'='"$@"'
  12765. setopt NO_GLOB_SUBST
  12766. else case e in #(
  12767. e) case `(set -o) 2>/dev/null` in #(
  12768. *posix*) :
  12769. set -o posix ;; #(
  12770. *) :
  12771. ;;
  12772. esac ;;
  12773. esac
  12774. fi
  12775. # Reset variables that may have inherited troublesome values from
  12776. # the environment.
  12777. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  12778. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  12779. # side effect of setting IFS to empty, thus disabling word splitting.)
  12780. # Quoting is to prevent editors from complaining about space-tab.
  12781. as_nl='
  12782. '
  12783. export as_nl
  12784. IFS=" "" $as_nl"
  12785. PS1='$ '
  12786. PS2='> '
  12787. PS4='+ '
  12788. # Ensure predictable behavior from utilities with locale-dependent output.
  12789. LC_ALL=C
  12790. export LC_ALL
  12791. LANGUAGE=C
  12792. export LANGUAGE
  12793. # We cannot yet rely on "unset" to work, but we need these variables
  12794. # to be unset--not just set to an empty or harmless value--now, to
  12795. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  12796. # also avoids known problems related to "unset" and subshell syntax
  12797. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  12798. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  12799. do eval test \${$as_var+y} \
  12800. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12801. done
  12802. # Ensure that fds 0, 1, and 2 are open.
  12803. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  12804. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  12805. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  12806. # The user is always right.
  12807. if ${PATH_SEPARATOR+false} :; then
  12808. PATH_SEPARATOR=:
  12809. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12810. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12811. PATH_SEPARATOR=';'
  12812. }
  12813. fi
  12814. # Find who we are. Look in the path if we contain no directory separator.
  12815. as_myself=
  12816. case $0 in #((
  12817. *[\\/]* ) as_myself=$0 ;;
  12818. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12819. for as_dir in $PATH
  12820. do
  12821. IFS=$as_save_IFS
  12822. case $as_dir in #(((
  12823. '') as_dir=./ ;;
  12824. */) ;;
  12825. *) as_dir=$as_dir/ ;;
  12826. esac
  12827. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  12828. done
  12829. IFS=$as_save_IFS
  12830. ;;
  12831. esac
  12832. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  12833. # in which case we are not to be found in the path.
  12834. if test "x$as_myself" = x; then
  12835. as_myself=$0
  12836. fi
  12837. if test ! -f "$as_myself"; then
  12838. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12839. exit 1
  12840. fi
  12841. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12842. # ----------------------------------------
  12843. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12844. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12845. # script with STATUS, using 1 if that was 0.
  12846. as_fn_error ()
  12847. {
  12848. as_status=$1; test $as_status -eq 0 && as_status=1
  12849. if test "$4"; then
  12850. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12851. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12852. fi
  12853. printf "%s\n" "$as_me: error: $2" >&2
  12854. as_fn_exit $as_status
  12855. } # as_fn_error
  12856. # as_fn_set_status STATUS
  12857. # -----------------------
  12858. # Set $? to STATUS, without forking.
  12859. as_fn_set_status ()
  12860. {
  12861. return $1
  12862. } # as_fn_set_status
  12863. # as_fn_exit STATUS
  12864. # -----------------
  12865. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12866. as_fn_exit ()
  12867. {
  12868. set +e
  12869. as_fn_set_status $1
  12870. exit $1
  12871. } # as_fn_exit
  12872. # as_fn_unset VAR
  12873. # ---------------
  12874. # Portably unset VAR.
  12875. as_fn_unset ()
  12876. {
  12877. { eval $1=; unset $1;}
  12878. }
  12879. as_unset=as_fn_unset
  12880. # as_fn_append VAR VALUE
  12881. # ----------------------
  12882. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12883. # advantage of any shell optimizations that allow amortized linear growth over
  12884. # repeated appends, instead of the typical quadratic growth present in naive
  12885. # implementations.
  12886. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  12887. then :
  12888. eval 'as_fn_append ()
  12889. {
  12890. eval $1+=\$2
  12891. }'
  12892. else case e in #(
  12893. e) as_fn_append ()
  12894. {
  12895. eval $1=\$$1\$2
  12896. } ;;
  12897. esac
  12898. fi # as_fn_append
  12899. # as_fn_arith ARG...
  12900. # ------------------
  12901. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12902. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12903. # must be portable across $(()) and expr.
  12904. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  12905. then :
  12906. eval 'as_fn_arith ()
  12907. {
  12908. as_val=$(( $* ))
  12909. }'
  12910. else case e in #(
  12911. e) as_fn_arith ()
  12912. {
  12913. as_val=`expr "$@" || test $? -eq 1`
  12914. } ;;
  12915. esac
  12916. fi # as_fn_arith
  12917. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12918. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12919. as_expr=expr
  12920. else
  12921. as_expr=false
  12922. fi
  12923. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12924. as_basename=basename
  12925. else
  12926. as_basename=false
  12927. fi
  12928. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12929. as_dirname=dirname
  12930. else
  12931. as_dirname=false
  12932. fi
  12933. as_me=`$as_basename -- "$0" ||
  12934. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12935. X"$0" : 'X\(//\)$' \| \
  12936. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12937. printf "%s\n" X/"$0" |
  12938. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12939. s//\1/
  12940. q
  12941. }
  12942. /^X\/\(\/\/\)$/{
  12943. s//\1/
  12944. q
  12945. }
  12946. /^X\/\(\/\).*/{
  12947. s//\1/
  12948. q
  12949. }
  12950. s/.*/./; q'`
  12951. # Avoid depending upon Character Ranges.
  12952. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12953. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12954. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12955. as_cr_digits='0123456789'
  12956. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12957. # Determine whether it's possible to make 'echo' print without a newline.
  12958. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  12959. # for compatibility with existing Makefiles.
  12960. ECHO_C= ECHO_N= ECHO_T=
  12961. case `echo -n x` in #(((((
  12962. -n*)
  12963. case `echo 'xy\c'` in
  12964. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12965. xy) ECHO_C='\c';;
  12966. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12967. ECHO_T=' ';;
  12968. esac;;
  12969. *)
  12970. ECHO_N='-n';;
  12971. esac
  12972. # For backward compatibility with old third-party macros, we provide
  12973. # the shell variables $as_echo and $as_echo_n. New code should use
  12974. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  12975. as_echo='printf %s\n'
  12976. as_echo_n='printf %s'
  12977. rm -f conf$$ conf$$.exe conf$$.file
  12978. if test -d conf$$.dir; then
  12979. rm -f conf$$.dir/conf$$.file
  12980. else
  12981. rm -f conf$$.dir
  12982. mkdir conf$$.dir 2>/dev/null
  12983. fi
  12984. if (echo >conf$$.file) 2>/dev/null; then
  12985. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12986. as_ln_s='ln -s'
  12987. # ... but there are two gotchas:
  12988. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  12989. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  12990. # In both cases, we have to default to 'cp -pR'.
  12991. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12992. as_ln_s='cp -pR'
  12993. elif ln conf$$.file conf$$ 2>/dev/null; then
  12994. as_ln_s=ln
  12995. else
  12996. as_ln_s='cp -pR'
  12997. fi
  12998. else
  12999. as_ln_s='cp -pR'
  13000. fi
  13001. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13002. rmdir conf$$.dir 2>/dev/null
  13003. # as_fn_mkdir_p
  13004. # -------------
  13005. # Create "$as_dir" as a directory, including parents if necessary.
  13006. as_fn_mkdir_p ()
  13007. {
  13008. case $as_dir in #(
  13009. -*) as_dir=./$as_dir;;
  13010. esac
  13011. test -d "$as_dir" || eval $as_mkdir_p || {
  13012. as_dirs=
  13013. while :; do
  13014. case $as_dir in #(
  13015. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13016. *) as_qdir=$as_dir;;
  13017. esac
  13018. as_dirs="'$as_qdir' $as_dirs"
  13019. as_dir=`$as_dirname -- "$as_dir" ||
  13020. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13021. X"$as_dir" : 'X\(//\)[^/]' \| \
  13022. X"$as_dir" : 'X\(//\)$' \| \
  13023. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13024. printf "%s\n" X"$as_dir" |
  13025. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13026. s//\1/
  13027. q
  13028. }
  13029. /^X\(\/\/\)[^/].*/{
  13030. s//\1/
  13031. q
  13032. }
  13033. /^X\(\/\/\)$/{
  13034. s//\1/
  13035. q
  13036. }
  13037. /^X\(\/\).*/{
  13038. s//\1/
  13039. q
  13040. }
  13041. s/.*/./; q'`
  13042. test -d "$as_dir" && break
  13043. done
  13044. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13045. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13046. } # as_fn_mkdir_p
  13047. if mkdir -p . 2>/dev/null; then
  13048. as_mkdir_p='mkdir -p "$as_dir"'
  13049. else
  13050. test -d ./-p && rmdir ./-p
  13051. as_mkdir_p=false
  13052. fi
  13053. # as_fn_executable_p FILE
  13054. # -----------------------
  13055. # Test if FILE is an executable regular file.
  13056. as_fn_executable_p ()
  13057. {
  13058. test -f "$1" && test -x "$1"
  13059. } # as_fn_executable_p
  13060. as_test_x='test -x'
  13061. as_executable_p=as_fn_executable_p
  13062. # Sed expression to map a string onto a valid CPP name.
  13063. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  13064. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  13065. # Sed expression to map a string onto a valid variable name.
  13066. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  13067. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  13068. exec 6>&1
  13069. ## ----------------------------------- ##
  13070. ## Main body of $CONFIG_STATUS script. ##
  13071. ## ----------------------------------- ##
  13072. _ASEOF
  13073. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13074. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13075. # Save the log message, to keep $0 and so on meaningful, and to
  13076. # report actual input values of CONFIG_FILES etc. instead of their
  13077. # values after options handling.
  13078. ac_log="
  13079. This file was extended by libjpeg $as_me 9.6.0, which was
  13080. generated by GNU Autoconf 2.72. Invocation command line was
  13081. CONFIG_FILES = $CONFIG_FILES
  13082. CONFIG_HEADERS = $CONFIG_HEADERS
  13083. CONFIG_LINKS = $CONFIG_LINKS
  13084. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13085. $ $0 $@
  13086. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13087. "
  13088. _ACEOF
  13089. case $ac_config_files in *"
  13090. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13091. esac
  13092. case $ac_config_headers in *"
  13093. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13094. esac
  13095. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13096. # Files that config.status was made for.
  13097. config_files="$ac_config_files"
  13098. config_headers="$ac_config_headers"
  13099. config_commands="$ac_config_commands"
  13100. _ACEOF
  13101. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13102. ac_cs_usage="\
  13103. '$as_me' instantiates files and other configuration actions
  13104. from templates according to the current configuration. Unless the files
  13105. and actions are specified as TAGs, all are instantiated by default.
  13106. Usage: $0 [OPTION]... [TAG]...
  13107. -h, --help print this help, then exit
  13108. -V, --version print version number and configuration settings, then exit
  13109. --config print configuration, then exit
  13110. -q, --quiet, --silent
  13111. do not print progress messages
  13112. -d, --debug don't remove temporary files
  13113. --recheck update $as_me by reconfiguring in the same conditions
  13114. --file=FILE[:TEMPLATE]
  13115. instantiate the configuration file FILE
  13116. --header=FILE[:TEMPLATE]
  13117. instantiate the configuration header FILE
  13118. Configuration files:
  13119. $config_files
  13120. Configuration headers:
  13121. $config_headers
  13122. Configuration commands:
  13123. $config_commands
  13124. Report bugs to the package provider."
  13125. _ACEOF
  13126. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  13127. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  13128. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13129. ac_cs_config='$ac_cs_config_escaped'
  13130. ac_cs_version="\\
  13131. libjpeg config.status 9.6.0
  13132. configured by $0, generated by GNU Autoconf 2.72,
  13133. with options \\"\$ac_cs_config\\"
  13134. Copyright (C) 2023 Free Software Foundation, Inc.
  13135. This config.status script is free software; the Free Software Foundation
  13136. gives unlimited permission to copy, distribute and modify it."
  13137. ac_pwd='$ac_pwd'
  13138. srcdir='$srcdir'
  13139. INSTALL='$INSTALL'
  13140. MKDIR_P='$MKDIR_P'
  13141. AWK='$AWK'
  13142. test -n "\$AWK" || AWK=awk
  13143. _ACEOF
  13144. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13145. # The default lists apply if the user does not specify any file.
  13146. ac_need_defaults=:
  13147. while test $# != 0
  13148. do
  13149. case $1 in
  13150. --*=?*)
  13151. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13152. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13153. ac_shift=:
  13154. ;;
  13155. --*=)
  13156. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13157. ac_optarg=
  13158. ac_shift=:
  13159. ;;
  13160. *)
  13161. ac_option=$1
  13162. ac_optarg=$2
  13163. ac_shift=shift
  13164. ;;
  13165. esac
  13166. case $ac_option in
  13167. # Handling of the options.
  13168. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13169. ac_cs_recheck=: ;;
  13170. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13171. printf "%s\n" "$ac_cs_version"; exit ;;
  13172. --config | --confi | --conf | --con | --co | --c )
  13173. printf "%s\n" "$ac_cs_config"; exit ;;
  13174. --debug | --debu | --deb | --de | --d | -d )
  13175. debug=: ;;
  13176. --file | --fil | --fi | --f )
  13177. $ac_shift
  13178. case $ac_optarg in
  13179. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13180. '') as_fn_error $? "missing file argument" ;;
  13181. esac
  13182. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13183. ac_need_defaults=false;;
  13184. --header | --heade | --head | --hea )
  13185. $ac_shift
  13186. case $ac_optarg in
  13187. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13188. esac
  13189. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13190. ac_need_defaults=false;;
  13191. --he | --h)
  13192. # Conflict between --help and --header
  13193. as_fn_error $? "ambiguous option: '$1'
  13194. Try '$0 --help' for more information.";;
  13195. --help | --hel | -h )
  13196. printf "%s\n" "$ac_cs_usage"; exit ;;
  13197. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13198. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13199. ac_cs_silent=: ;;
  13200. # This is an error.
  13201. -*) as_fn_error $? "unrecognized option: '$1'
  13202. Try '$0 --help' for more information." ;;
  13203. *) as_fn_append ac_config_targets " $1"
  13204. ac_need_defaults=false ;;
  13205. esac
  13206. shift
  13207. done
  13208. ac_configure_extra_args=
  13209. if $ac_cs_silent; then
  13210. exec 6>/dev/null
  13211. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13212. fi
  13213. _ACEOF
  13214. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13215. if \$ac_cs_recheck; then
  13216. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13217. shift
  13218. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  13219. CONFIG_SHELL='$SHELL'
  13220. export CONFIG_SHELL
  13221. exec "\$@"
  13222. fi
  13223. _ACEOF
  13224. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13225. exec 5>>config.log
  13226. {
  13227. echo
  13228. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13229. ## Running $as_me. ##
  13230. _ASBOX
  13231. printf "%s\n" "$ac_log"
  13232. } >&5
  13233. _ACEOF
  13234. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13235. #
  13236. # INIT-COMMANDS
  13237. #
  13238. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  13239. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13240. # if CDPATH is set.
  13241. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13242. sed_quote_subst='$sed_quote_subst'
  13243. double_quote_subst='$double_quote_subst'
  13244. delay_variable_subst='$delay_variable_subst'
  13245. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13246. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13247. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  13248. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13249. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13250. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13251. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13252. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13253. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13254. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  13255. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13256. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13257. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13258. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13259. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13260. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13261. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13262. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13263. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13264. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13265. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13266. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13267. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13268. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13269. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13270. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13271. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13272. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13273. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13274. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13275. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13276. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13277. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13278. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13279. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13280. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13281. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13282. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  13283. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13284. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13285. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13286. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13287. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13288. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13289. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  13290. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13291. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13292. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13293. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13294. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13295. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13296. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13297. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13298. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13299. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13300. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13301. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13302. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13303. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13304. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  13305. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13306. 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"`'
  13307. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  13308. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13309. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13310. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  13311. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13312. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13313. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13314. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13315. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13316. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13317. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13318. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13319. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13320. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13321. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13322. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13323. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13324. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13325. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13326. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13327. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13328. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13329. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13330. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13331. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13332. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13333. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13334. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13335. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13336. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13337. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13338. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13339. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13340. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13341. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13342. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13343. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13344. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13345. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13346. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13347. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13348. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13349. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13350. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13351. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13352. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13353. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13354. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13355. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13356. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13357. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13358. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13359. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13360. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13361. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13362. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13363. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13364. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13365. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13366. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13367. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13368. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13369. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13370. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13371. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13372. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13373. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13374. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13375. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  13376. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  13377. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13378. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13379. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13380. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13381. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13382. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13383. LTCC='$LTCC'
  13384. LTCFLAGS='$LTCFLAGS'
  13385. compiler='$compiler_DEFAULT'
  13386. # A function that is used when there is no print builtin or printf.
  13387. func_fallback_echo ()
  13388. {
  13389. eval 'cat <<_LTECHO_EOF
  13390. \$1
  13391. _LTECHO_EOF'
  13392. }
  13393. # Quote evaled strings.
  13394. for var in AS \
  13395. DLLTOOL \
  13396. OBJDUMP \
  13397. SHELL \
  13398. ECHO \
  13399. PATH_SEPARATOR \
  13400. SED \
  13401. GREP \
  13402. EGREP \
  13403. FGREP \
  13404. LD \
  13405. NM \
  13406. LN_S \
  13407. lt_SP2NL \
  13408. lt_NL2SP \
  13409. reload_flag \
  13410. FILECMD \
  13411. deplibs_check_method \
  13412. file_magic_cmd \
  13413. file_magic_glob \
  13414. want_nocaseglob \
  13415. sharedlib_from_linklib_cmd \
  13416. AR \
  13417. archiver_list_spec \
  13418. STRIP \
  13419. RANLIB \
  13420. CC \
  13421. CFLAGS \
  13422. compiler \
  13423. lt_cv_sys_global_symbol_pipe \
  13424. lt_cv_sys_global_symbol_to_cdecl \
  13425. lt_cv_sys_global_symbol_to_import \
  13426. lt_cv_sys_global_symbol_to_c_name_address \
  13427. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13428. lt_cv_nm_interface \
  13429. nm_file_list_spec \
  13430. lt_cv_truncate_bin \
  13431. lt_prog_compiler_no_builtin_flag \
  13432. lt_prog_compiler_pic \
  13433. lt_prog_compiler_wl \
  13434. lt_prog_compiler_static \
  13435. lt_cv_prog_compiler_c_o \
  13436. need_locks \
  13437. MANIFEST_TOOL \
  13438. DSYMUTIL \
  13439. NMEDIT \
  13440. LIPO \
  13441. OTOOL \
  13442. OTOOL64 \
  13443. shrext_cmds \
  13444. export_dynamic_flag_spec \
  13445. whole_archive_flag_spec \
  13446. compiler_needs_object \
  13447. with_gnu_ld \
  13448. allow_undefined_flag \
  13449. no_undefined_flag \
  13450. hardcode_libdir_flag_spec \
  13451. hardcode_libdir_separator \
  13452. exclude_expsyms \
  13453. include_expsyms \
  13454. file_list_spec \
  13455. variables_saved_for_relink \
  13456. libname_spec \
  13457. library_names_spec \
  13458. soname_spec \
  13459. install_override_mode \
  13460. finish_eval \
  13461. old_striplib \
  13462. striplib; do
  13463. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13464. *[\\\\\\\`\\"\\\$]*)
  13465. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13466. ;;
  13467. *)
  13468. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13469. ;;
  13470. esac
  13471. done
  13472. # Double-quote double-evaled strings.
  13473. for var in reload_cmds \
  13474. old_postinstall_cmds \
  13475. old_postuninstall_cmds \
  13476. old_archive_cmds \
  13477. extract_expsyms_cmds \
  13478. old_archive_from_new_cmds \
  13479. old_archive_from_expsyms_cmds \
  13480. archive_cmds \
  13481. archive_expsym_cmds \
  13482. module_cmds \
  13483. module_expsym_cmds \
  13484. export_symbols_cmds \
  13485. prelink_cmds \
  13486. postlink_cmds \
  13487. postinstall_cmds \
  13488. postuninstall_cmds \
  13489. finish_cmds \
  13490. sys_lib_search_path_spec \
  13491. configure_time_dlsearch_path \
  13492. configure_time_lt_sys_library_path; do
  13493. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13494. *[\\\\\\\`\\"\\\$]*)
  13495. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13496. ;;
  13497. *)
  13498. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13499. ;;
  13500. esac
  13501. done
  13502. ac_aux_dir='$ac_aux_dir'
  13503. # See if we are running on zsh, and set the options that allow our
  13504. # commands through without removal of \ escapes INIT.
  13505. if test -n "\${ZSH_VERSION+set}"; then
  13506. setopt NO_GLOB_SUBST
  13507. fi
  13508. PACKAGE='$PACKAGE'
  13509. VERSION='$VERSION'
  13510. RM='$RM'
  13511. ofile='$ofile'
  13512. _ACEOF
  13513. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13514. # Handling of arguments.
  13515. for ac_config_target in $ac_config_targets
  13516. do
  13517. case $ac_config_target in
  13518. "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
  13519. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13520. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13521. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13522. "libjpeg.pc") CONFIG_FILES="$CONFIG_FILES libjpeg.pc" ;;
  13523. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  13524. esac
  13525. done
  13526. # If the user did not use the arguments to specify the items to instantiate,
  13527. # then the envvar interface is used. Set only those that are not.
  13528. # We use the long form for the default assignment because of an extremely
  13529. # bizarre bug on SunOS 4.1.3.
  13530. if $ac_need_defaults; then
  13531. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  13532. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  13533. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  13534. fi
  13535. # Have a temporary directory for convenience. Make it in the build tree
  13536. # simply because there is no reason against having it here, and in addition,
  13537. # creating and moving files from /tmp can sometimes cause problems.
  13538. # Hook for its removal unless debugging.
  13539. # Note that there is a small window in which the directory will not be cleaned:
  13540. # after its creation but before its name has been assigned to '$tmp'.
  13541. $debug ||
  13542. {
  13543. tmp= ac_tmp=
  13544. trap 'exit_status=$?
  13545. : "${ac_tmp:=$tmp}"
  13546. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13547. ' 0
  13548. trap 'as_fn_exit 1' 1 2 13 15
  13549. }
  13550. # Create a (secure) tmp directory for tmp files.
  13551. {
  13552. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13553. test -d "$tmp"
  13554. } ||
  13555. {
  13556. tmp=./conf$$-$RANDOM
  13557. (umask 077 && mkdir "$tmp")
  13558. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13559. ac_tmp=$tmp
  13560. # Set up the scripts for CONFIG_FILES section.
  13561. # No need to generate them if there are no CONFIG_FILES.
  13562. # This happens for instance with './config.status config.h'.
  13563. if test -n "$CONFIG_FILES"; then
  13564. ac_cr=`echo X | tr X '\015'`
  13565. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13566. # But we know of no other shell where ac_cr would be empty at this
  13567. # point, so we can use a bashism as a fallback.
  13568. if test "x$ac_cr" = x; then
  13569. eval ac_cr=\$\'\\r\'
  13570. fi
  13571. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13572. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13573. ac_cs_awk_cr='\\r'
  13574. else
  13575. ac_cs_awk_cr=$ac_cr
  13576. fi
  13577. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13578. _ACEOF
  13579. {
  13580. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13581. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13582. echo "_ACEOF"
  13583. } >conf$$subs.sh ||
  13584. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13585. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13586. ac_delim='%!_!# '
  13587. for ac_last_try in false false false false false :; do
  13588. . ./conf$$subs.sh ||
  13589. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13590. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13591. if test $ac_delim_n = $ac_delim_num; then
  13592. break
  13593. elif $ac_last_try; then
  13594. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13595. else
  13596. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13597. fi
  13598. done
  13599. rm -f conf$$subs.sh
  13600. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13601. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13602. _ACEOF
  13603. sed -n '
  13604. h
  13605. s/^/S["/; s/!.*/"]=/
  13606. p
  13607. g
  13608. s/^[^!]*!//
  13609. :repl
  13610. t repl
  13611. s/'"$ac_delim"'$//
  13612. t delim
  13613. :nl
  13614. h
  13615. s/\(.\{148\}\)..*/\1/
  13616. t more1
  13617. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13618. p
  13619. n
  13620. b repl
  13621. :more1
  13622. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13623. p
  13624. g
  13625. s/.\{148\}//
  13626. t nl
  13627. :delim
  13628. h
  13629. s/\(.\{148\}\)..*/\1/
  13630. t more2
  13631. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13632. p
  13633. b
  13634. :more2
  13635. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13636. p
  13637. g
  13638. s/.\{148\}//
  13639. t delim
  13640. ' <conf$$subs.awk | sed '
  13641. /^[^""]/{
  13642. N
  13643. s/\n//
  13644. }
  13645. ' >>$CONFIG_STATUS || ac_write_fail=1
  13646. rm -f conf$$subs.awk
  13647. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13648. _ACAWK
  13649. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13650. for (key in S) S_is_set[key] = 1
  13651. FS = ""
  13652. }
  13653. {
  13654. line = $ 0
  13655. nfields = split(line, field, "@")
  13656. substed = 0
  13657. len = length(field[1])
  13658. for (i = 2; i < nfields; i++) {
  13659. key = field[i]
  13660. keylen = length(key)
  13661. if (S_is_set[key]) {
  13662. value = S[key]
  13663. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13664. len += length(value) + length(field[++i])
  13665. substed = 1
  13666. } else
  13667. len += 1 + keylen
  13668. }
  13669. print line
  13670. }
  13671. _ACAWK
  13672. _ACEOF
  13673. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13674. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13675. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13676. else
  13677. cat
  13678. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13679. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13680. _ACEOF
  13681. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13682. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13683. # trailing colons and then remove the whole line if VPATH becomes empty
  13684. # (actually we leave an empty line to preserve line numbers).
  13685. if test "x$srcdir" = x.; then
  13686. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13687. h
  13688. s///
  13689. s/^/:/
  13690. s/[ ]*$/:/
  13691. s/:\$(srcdir):/:/g
  13692. s/:\${srcdir}:/:/g
  13693. s/:@srcdir@:/:/g
  13694. s/^:*//
  13695. s/:*$//
  13696. x
  13697. s/\(=[ ]*\).*/\1/
  13698. G
  13699. s/\n//
  13700. s/^[^=]*=[ ]*$//
  13701. }'
  13702. fi
  13703. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13704. fi # test -n "$CONFIG_FILES"
  13705. # Set up the scripts for CONFIG_HEADERS section.
  13706. # No need to generate them if there are no CONFIG_HEADERS.
  13707. # This happens for instance with './config.status Makefile'.
  13708. if test -n "$CONFIG_HEADERS"; then
  13709. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13710. BEGIN {
  13711. _ACEOF
  13712. # Transform confdefs.h into an awk script 'defines.awk', embedded as
  13713. # here-document in config.status, that substitutes the proper values into
  13714. # config.h.in to produce config.h.
  13715. # Create a delimiter string that does not exist in confdefs.h, to ease
  13716. # handling of long lines.
  13717. ac_delim='%!_!# '
  13718. for ac_last_try in false false :; do
  13719. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13720. if test -z "$ac_tt"; then
  13721. break
  13722. elif $ac_last_try; then
  13723. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13724. else
  13725. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13726. fi
  13727. done
  13728. # For the awk script, D is an array of macro values keyed by name,
  13729. # likewise P contains macro parameters if any. Preserve backslash
  13730. # newline sequences.
  13731. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13732. sed -n '
  13733. s/.\{148\}/&'"$ac_delim"'/g
  13734. t rset
  13735. :rset
  13736. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13737. t def
  13738. d
  13739. :def
  13740. s/\\$//
  13741. t bsnl
  13742. s/["\\]/\\&/g
  13743. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13744. D["\1"]=" \3"/p
  13745. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13746. d
  13747. :bsnl
  13748. s/["\\]/\\&/g
  13749. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13750. D["\1"]=" \3\\\\\\n"\\/p
  13751. t cont
  13752. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13753. t cont
  13754. d
  13755. :cont
  13756. n
  13757. s/.\{148\}/&'"$ac_delim"'/g
  13758. t clear
  13759. :clear
  13760. s/\\$//
  13761. t bsnlc
  13762. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13763. d
  13764. :bsnlc
  13765. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13766. b cont
  13767. ' <confdefs.h | sed '
  13768. s/'"$ac_delim"'/"\\\
  13769. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13770. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13771. for (key in D) D_is_set[key] = 1
  13772. FS = ""
  13773. }
  13774. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13775. line = \$ 0
  13776. split(line, arg, " ")
  13777. if (arg[1] == "#") {
  13778. defundef = arg[2]
  13779. mac1 = arg[3]
  13780. } else {
  13781. defundef = substr(arg[1], 2)
  13782. mac1 = arg[2]
  13783. }
  13784. split(mac1, mac2, "(") #)
  13785. macro = mac2[1]
  13786. prefix = substr(line, 1, index(line, defundef) - 1)
  13787. if (D_is_set[macro]) {
  13788. # Preserve the white space surrounding the "#".
  13789. print prefix "define", macro P[macro] D[macro]
  13790. next
  13791. } else {
  13792. # Replace #undef with comments. This is necessary, for example,
  13793. # in the case of _POSIX_SOURCE, which is predefined and required
  13794. # on some systems where configure will not decide to define it.
  13795. if (defundef == "undef") {
  13796. print "/*", prefix defundef, macro, "*/"
  13797. next
  13798. }
  13799. }
  13800. }
  13801. { print }
  13802. _ACAWK
  13803. _ACEOF
  13804. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13805. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13806. fi # test -n "$CONFIG_HEADERS"
  13807. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13808. shift
  13809. for ac_tag
  13810. do
  13811. case $ac_tag in
  13812. :[FHLC]) ac_mode=$ac_tag; continue;;
  13813. esac
  13814. case $ac_mode$ac_tag in
  13815. :[FHL]*:*);;
  13816. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  13817. :[FH]-) ac_tag=-:-;;
  13818. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13819. esac
  13820. ac_save_IFS=$IFS
  13821. IFS=:
  13822. set x $ac_tag
  13823. IFS=$ac_save_IFS
  13824. shift
  13825. ac_file=$1
  13826. shift
  13827. case $ac_mode in
  13828. :L) ac_source=$1;;
  13829. :[FH])
  13830. ac_file_inputs=
  13831. for ac_f
  13832. do
  13833. case $ac_f in
  13834. -) ac_f="$ac_tmp/stdin";;
  13835. *) # Look for the file first in the build tree, then in the source tree
  13836. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13837. # because $ac_f cannot contain ':'.
  13838. test -f "$ac_f" ||
  13839. case $ac_f in
  13840. [\\/$]*) false;;
  13841. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13842. esac ||
  13843. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  13844. esac
  13845. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13846. as_fn_append ac_file_inputs " '$ac_f'"
  13847. done
  13848. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  13849. # use $as_me), people would be surprised to read:
  13850. # /* config.h. Generated by config.status. */
  13851. configure_input='Generated from '`
  13852. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13853. `' by configure.'
  13854. if test x"$ac_file" != x-; then
  13855. configure_input="$ac_file. $configure_input"
  13856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13857. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  13858. fi
  13859. # Neutralize special characters interpreted by sed in replacement strings.
  13860. case $configure_input in #(
  13861. *\&* | *\|* | *\\* )
  13862. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  13863. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13864. *) ac_sed_conf_input=$configure_input;;
  13865. esac
  13866. case $ac_tag in
  13867. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13868. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13869. esac
  13870. ;;
  13871. esac
  13872. ac_dir=`$as_dirname -- "$ac_file" ||
  13873. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13874. X"$ac_file" : 'X\(//\)[^/]' \| \
  13875. X"$ac_file" : 'X\(//\)$' \| \
  13876. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13877. printf "%s\n" X"$ac_file" |
  13878. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13879. s//\1/
  13880. q
  13881. }
  13882. /^X\(\/\/\)[^/].*/{
  13883. s//\1/
  13884. q
  13885. }
  13886. /^X\(\/\/\)$/{
  13887. s//\1/
  13888. q
  13889. }
  13890. /^X\(\/\).*/{
  13891. s//\1/
  13892. q
  13893. }
  13894. s/.*/./; q'`
  13895. as_dir="$ac_dir"; as_fn_mkdir_p
  13896. ac_builddir=.
  13897. case "$ac_dir" in
  13898. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13899. *)
  13900. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  13901. # A ".." for each directory in $ac_dir_suffix.
  13902. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13903. case $ac_top_builddir_sub in
  13904. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13905. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13906. esac ;;
  13907. esac
  13908. ac_abs_top_builddir=$ac_pwd
  13909. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13910. # for backward compatibility:
  13911. ac_top_builddir=$ac_top_build_prefix
  13912. case $srcdir in
  13913. .) # We are building in place.
  13914. ac_srcdir=.
  13915. ac_top_srcdir=$ac_top_builddir_sub
  13916. ac_abs_top_srcdir=$ac_pwd ;;
  13917. [\\/]* | ?:[\\/]* ) # Absolute name.
  13918. ac_srcdir=$srcdir$ac_dir_suffix;
  13919. ac_top_srcdir=$srcdir
  13920. ac_abs_top_srcdir=$srcdir ;;
  13921. *) # Relative name.
  13922. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13923. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13924. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13925. esac
  13926. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13927. case $ac_mode in
  13928. :F)
  13929. #
  13930. # CONFIG_FILE
  13931. #
  13932. case $INSTALL in
  13933. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13934. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13935. esac
  13936. ac_MKDIR_P=$MKDIR_P
  13937. case $MKDIR_P in
  13938. [\\/$]* | ?:[\\/]* ) ;;
  13939. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13940. esac
  13941. _ACEOF
  13942. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13943. # If the template does not know about datarootdir, expand it.
  13944. # FIXME: This hack should be removed a few years after 2.60.
  13945. ac_datarootdir_hack=; ac_datarootdir_seen=
  13946. ac_sed_dataroot='
  13947. /datarootdir/ {
  13948. p
  13949. q
  13950. }
  13951. /@datadir@/p
  13952. /@docdir@/p
  13953. /@infodir@/p
  13954. /@localedir@/p
  13955. /@mandir@/p'
  13956. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13957. *datarootdir*) ac_datarootdir_seen=yes;;
  13958. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13960. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13961. _ACEOF
  13962. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13963. ac_datarootdir_hack='
  13964. s&@datadir@&$datadir&g
  13965. s&@docdir@&$docdir&g
  13966. s&@infodir@&$infodir&g
  13967. s&@localedir@&$localedir&g
  13968. s&@mandir@&$mandir&g
  13969. s&\\\${datarootdir}&$datarootdir&g' ;;
  13970. esac
  13971. _ACEOF
  13972. # Neutralize VPATH when '$srcdir' = '.'.
  13973. # Shell code in configure.ac might set extrasub.
  13974. # FIXME: do we really want to maintain this feature?
  13975. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13976. ac_sed_extra="$ac_vpsub
  13977. $extrasub
  13978. _ACEOF
  13979. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13980. :t
  13981. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13982. s|@configure_input@|$ac_sed_conf_input|;t t
  13983. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13984. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13985. s&@srcdir@&$ac_srcdir&;t t
  13986. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13987. s&@top_srcdir@&$ac_top_srcdir&;t t
  13988. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13989. s&@builddir@&$ac_builddir&;t t
  13990. s&@abs_builddir@&$ac_abs_builddir&;t t
  13991. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13992. s&@INSTALL@&$ac_INSTALL&;t t
  13993. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13994. $ac_datarootdir_hack
  13995. "
  13996. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13997. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13998. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13999. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14000. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14001. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  14003. which seems to be undefined. Please make sure it is defined" >&5
  14004. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  14005. which seems to be undefined. Please make sure it is defined" >&2;}
  14006. rm -f "$ac_tmp/stdin"
  14007. case $ac_file in
  14008. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14009. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14010. esac \
  14011. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14012. ;;
  14013. :H)
  14014. #
  14015. # CONFIG_HEADER
  14016. #
  14017. if test x"$ac_file" != x-; then
  14018. {
  14019. printf "%s\n" "/* $configure_input */" >&1 \
  14020. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14021. } >"$ac_tmp/config.h" \
  14022. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14023. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14025. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  14026. else
  14027. rm -f "$ac_file"
  14028. mv "$ac_tmp/config.h" "$ac_file" \
  14029. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14030. fi
  14031. else
  14032. printf "%s\n" "/* $configure_input */" >&1 \
  14033. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14034. || as_fn_error $? "could not create -" "$LINENO" 5
  14035. fi
  14036. # Compute "$ac_file"'s index in $config_headers.
  14037. _am_arg="$ac_file"
  14038. _am_stamp_count=1
  14039. for _am_header in $config_headers :; do
  14040. case $_am_header in
  14041. $_am_arg | $_am_arg:* )
  14042. break ;;
  14043. * )
  14044. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14045. esac
  14046. done
  14047. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14048. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14049. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14050. X"$_am_arg" : 'X\(//\)$' \| \
  14051. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14052. printf "%s\n" X"$_am_arg" |
  14053. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14054. s//\1/
  14055. q
  14056. }
  14057. /^X\(\/\/\)[^/].*/{
  14058. s//\1/
  14059. q
  14060. }
  14061. /^X\(\/\/\)$/{
  14062. s//\1/
  14063. q
  14064. }
  14065. /^X\(\/\).*/{
  14066. s//\1/
  14067. q
  14068. }
  14069. s/.*/./; q'`/stamp-h$_am_stamp_count
  14070. ;;
  14071. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14072. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  14073. ;;
  14074. esac
  14075. case $ac_file$ac_mode in
  14076. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14077. # Older Autoconf quotes --file arguments for eval, but not when files
  14078. # are listed without --file. Let's play safe and only enable the eval
  14079. # if we detect the quoting.
  14080. # TODO: see whether this extra hack can be removed once we start
  14081. # requiring Autoconf 2.70 or later.
  14082. case $CONFIG_FILES in #(
  14083. *\'*) :
  14084. eval set x "$CONFIG_FILES" ;; #(
  14085. *) :
  14086. set x $CONFIG_FILES ;; #(
  14087. *) :
  14088. ;;
  14089. esac
  14090. shift
  14091. # Used to flag and report bootstrapping failures.
  14092. am_rc=0
  14093. for am_mf
  14094. do
  14095. # Strip MF so we end up with the name of the file.
  14096. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  14097. # Check whether this is an Automake generated Makefile which includes
  14098. # dependency-tracking related rules and includes.
  14099. # Grep'ing the whole file directly is not great: AIX grep has a line
  14100. # limit of 2048, but all sed's we know have understand at least 4000.
  14101. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  14102. || continue
  14103. am_dirpart=`$as_dirname -- "$am_mf" ||
  14104. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14105. X"$am_mf" : 'X\(//\)[^/]' \| \
  14106. X"$am_mf" : 'X\(//\)$' \| \
  14107. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14108. printf "%s\n" X"$am_mf" |
  14109. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14110. s//\1/
  14111. q
  14112. }
  14113. /^X\(\/\/\)[^/].*/{
  14114. s//\1/
  14115. q
  14116. }
  14117. /^X\(\/\/\)$/{
  14118. s//\1/
  14119. q
  14120. }
  14121. /^X\(\/\).*/{
  14122. s//\1/
  14123. q
  14124. }
  14125. s/.*/./; q'`
  14126. am_filepart=`$as_basename -- "$am_mf" ||
  14127. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  14128. X"$am_mf" : 'X\(//\)$' \| \
  14129. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14130. printf "%s\n" X/"$am_mf" |
  14131. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14132. s//\1/
  14133. q
  14134. }
  14135. /^X\/\(\/\/\)$/{
  14136. s//\1/
  14137. q
  14138. }
  14139. /^X\/\(\/\).*/{
  14140. s//\1/
  14141. q
  14142. }
  14143. s/.*/./; q'`
  14144. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  14145. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14146. | $MAKE -f - am--depfiles" >&5
  14147. (cd "$am_dirpart" \
  14148. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14149. | $MAKE -f - am--depfiles) >&5 2>&5
  14150. ac_status=$?
  14151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14152. (exit $ac_status); } || am_rc=$?
  14153. done
  14154. if test $am_rc -ne 0; then
  14155. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  14156. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  14157. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  14158. for automatic dependency tracking. If GNU make was not used, consider
  14159. re-running the configure script with MAKE=\"gmake\" (or whatever is
  14160. necessary). You can also try re-running configure with the
  14161. '--disable-dependency-tracking' option to at least be able to build
  14162. the package (albeit without support for automatic dependency tracking).
  14163. See 'config.log' for more details" "$LINENO" 5; }
  14164. fi
  14165. { am_dirpart=; unset am_dirpart;}
  14166. { am_filepart=; unset am_filepart;}
  14167. { am_mf=; unset am_mf;}
  14168. { am_rc=; unset am_rc;}
  14169. rm -f conftest-deps.mk
  14170. }
  14171. ;;
  14172. "libtool":C)
  14173. # See if we are running on zsh, and set the options that allow our
  14174. # commands through without removal of \ escapes.
  14175. if test -n "${ZSH_VERSION+set}"; then
  14176. setopt NO_GLOB_SUBST
  14177. fi
  14178. cfgfile=${ofile}T
  14179. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14180. $RM "$cfgfile"
  14181. cat <<_LT_EOF >> "$cfgfile"
  14182. #! $SHELL
  14183. # Generated automatically by $as_me ($PACKAGE) $VERSION
  14184. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14185. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14186. # Provide generalized library-building support services.
  14187. # Written by Gordon Matzigkeit, 1996
  14188. # Copyright (C) 2014 Free Software Foundation, Inc.
  14189. # This is free software; see the source for copying conditions. There is NO
  14190. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14191. # GNU Libtool is free software; you can redistribute it and/or modify
  14192. # it under the terms of the GNU General Public License as published by
  14193. # the Free Software Foundation; either version 2 of of the License, or
  14194. # (at your option) any later version.
  14195. #
  14196. # As a special exception to the GNU General Public License, if you
  14197. # distribute this file as part of a program or library that is built
  14198. # using GNU Libtool, you may include this file under the same
  14199. # distribution terms that you use for the rest of that program.
  14200. #
  14201. # GNU Libtool is distributed in the hope that it will be useful, but
  14202. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14203. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14204. # GNU General Public License for more details.
  14205. #
  14206. # You should have received a copy of the GNU General Public License
  14207. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14208. # The names of the tagged configurations supported by this script.
  14209. available_tags=''
  14210. # Configured defaults for sys_lib_dlsearch_path munging.
  14211. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  14212. # ### BEGIN LIBTOOL CONFIG
  14213. # Which release of libtool.m4 was used?
  14214. macro_version=$macro_version
  14215. macro_revision=$macro_revision
  14216. # Assembler program.
  14217. AS=$lt_AS
  14218. # DLL creation program.
  14219. DLLTOOL=$lt_DLLTOOL
  14220. # Object dumper program.
  14221. OBJDUMP=$lt_OBJDUMP
  14222. # Whether or not to build shared libraries.
  14223. build_libtool_libs=$enable_shared
  14224. # Whether or not to build static libraries.
  14225. build_old_libs=$enable_static
  14226. # What type of objects to build.
  14227. pic_mode=$pic_mode
  14228. # Whether or not to optimize for fast installation.
  14229. fast_install=$enable_fast_install
  14230. # Shared archive member basename,for filename based shared library versioning on AIX.
  14231. shared_archive_member_spec=$shared_archive_member_spec
  14232. # Shell to use when invoking shell scripts.
  14233. SHELL=$lt_SHELL
  14234. # An echo program that protects backslashes.
  14235. ECHO=$lt_ECHO
  14236. # The PATH separator for the build system.
  14237. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14238. # The host system.
  14239. host_alias=$host_alias
  14240. host=$host
  14241. host_os=$host_os
  14242. # The build system.
  14243. build_alias=$build_alias
  14244. build=$build
  14245. build_os=$build_os
  14246. # A sed program that does not truncate output.
  14247. SED=$lt_SED
  14248. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14249. Xsed="\$SED -e 1s/^X//"
  14250. # A grep program that handles long lines.
  14251. GREP=$lt_GREP
  14252. # An ERE matcher.
  14253. EGREP=$lt_EGREP
  14254. # A literal string matcher.
  14255. FGREP=$lt_FGREP
  14256. # A BSD- or MS-compatible name lister.
  14257. NM=$lt_NM
  14258. # Whether we need soft or hard links.
  14259. LN_S=$lt_LN_S
  14260. # What is the maximum length of a command?
  14261. max_cmd_len=$max_cmd_len
  14262. # Object file suffix (normally "o").
  14263. objext=$ac_objext
  14264. # Executable file suffix (normally "").
  14265. exeext=$exeext
  14266. # whether the shell understands "unset".
  14267. lt_unset=$lt_unset
  14268. # turn spaces into newlines.
  14269. SP2NL=$lt_lt_SP2NL
  14270. # turn newlines into spaces.
  14271. NL2SP=$lt_lt_NL2SP
  14272. # convert \$build file names to \$host format.
  14273. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14274. # convert \$build files to toolchain format.
  14275. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14276. # A file(cmd) program that detects file types.
  14277. FILECMD=$lt_FILECMD
  14278. # Method to check whether dependent libraries are shared objects.
  14279. deplibs_check_method=$lt_deplibs_check_method
  14280. # Command to use when deplibs_check_method = "file_magic".
  14281. file_magic_cmd=$lt_file_magic_cmd
  14282. # How to find potential files when deplibs_check_method = "file_magic".
  14283. file_magic_glob=$lt_file_magic_glob
  14284. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14285. want_nocaseglob=$lt_want_nocaseglob
  14286. # Command to associate shared and link libraries.
  14287. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14288. # The archiver.
  14289. AR=$lt_AR
  14290. # Flags to create an archive (by configure).
  14291. lt_ar_flags=$lt_ar_flags
  14292. # Flags to create an archive.
  14293. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  14294. # How to feed a file listing to the archiver.
  14295. archiver_list_spec=$lt_archiver_list_spec
  14296. # A symbol stripping program.
  14297. STRIP=$lt_STRIP
  14298. # Commands used to install an old-style archive.
  14299. RANLIB=$lt_RANLIB
  14300. old_postinstall_cmds=$lt_old_postinstall_cmds
  14301. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14302. # Whether to use a lock for old archive extraction.
  14303. lock_old_archive_extraction=$lock_old_archive_extraction
  14304. # A C compiler.
  14305. LTCC=$lt_CC
  14306. # LTCC compiler flags.
  14307. LTCFLAGS=$lt_CFLAGS
  14308. # Take the output of nm and produce a listing of raw symbols and C names.
  14309. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14310. # Transform the output of nm in a proper C declaration.
  14311. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14312. # Transform the output of nm into a list of symbols to manually relocate.
  14313. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  14314. # Transform the output of nm in a C name address pair.
  14315. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14316. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14317. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14318. # The name lister interface.
  14319. nm_interface=$lt_lt_cv_nm_interface
  14320. # Specify filename containing input files for \$NM.
  14321. nm_file_list_spec=$lt_nm_file_list_spec
  14322. # The root where to search for dependent libraries,and where our libraries should be installed.
  14323. lt_sysroot=$lt_sysroot
  14324. # Command to truncate a binary pipe.
  14325. lt_truncate_bin=$lt_lt_cv_truncate_bin
  14326. # The name of the directory that contains temporary libtool files.
  14327. objdir=$objdir
  14328. # Used to examine libraries when file_magic_cmd begins with "file".
  14329. MAGIC_CMD=$MAGIC_CMD
  14330. # Must we lock files when doing compilation?
  14331. need_locks=$lt_need_locks
  14332. # Manifest tool.
  14333. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14334. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14335. DSYMUTIL=$lt_DSYMUTIL
  14336. # Tool to change global to local symbols on Mac OS X.
  14337. NMEDIT=$lt_NMEDIT
  14338. # Tool to manipulate fat objects and archives on Mac OS X.
  14339. LIPO=$lt_LIPO
  14340. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14341. OTOOL=$lt_OTOOL
  14342. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14343. OTOOL64=$lt_OTOOL64
  14344. # Old archive suffix (normally "a").
  14345. libext=$libext
  14346. # Shared library suffix (normally ".so").
  14347. shrext_cmds=$lt_shrext_cmds
  14348. # The commands to extract the exported symbol list from a shared archive.
  14349. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14350. # Variables whose values should be saved in libtool wrapper scripts and
  14351. # restored at link time.
  14352. variables_saved_for_relink=$lt_variables_saved_for_relink
  14353. # Do we need the "lib" prefix for modules?
  14354. need_lib_prefix=$need_lib_prefix
  14355. # Do we need a version for libraries?
  14356. need_version=$need_version
  14357. # Library versioning type.
  14358. version_type=$version_type
  14359. # Shared library runtime path variable.
  14360. runpath_var=$runpath_var
  14361. # Shared library path variable.
  14362. shlibpath_var=$shlibpath_var
  14363. # Is shlibpath searched before the hard-coded library search path?
  14364. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14365. # Format of library name prefix.
  14366. libname_spec=$lt_libname_spec
  14367. # List of archive names. First name is the real one, the rest are links.
  14368. # The last name is the one that the linker finds with -lNAME
  14369. library_names_spec=$lt_library_names_spec
  14370. # The coded name of the library, if different from the real name.
  14371. soname_spec=$lt_soname_spec
  14372. # Permission mode override for installation of shared libraries.
  14373. install_override_mode=$lt_install_override_mode
  14374. # Command to use after installation of a shared archive.
  14375. postinstall_cmds=$lt_postinstall_cmds
  14376. # Command to use after uninstallation of a shared archive.
  14377. postuninstall_cmds=$lt_postuninstall_cmds
  14378. # Commands used to finish a libtool library installation in a directory.
  14379. finish_cmds=$lt_finish_cmds
  14380. # As "finish_cmds", except a single script fragment to be evaled but
  14381. # not shown.
  14382. finish_eval=$lt_finish_eval
  14383. # Whether we should hardcode library paths into libraries.
  14384. hardcode_into_libs=$hardcode_into_libs
  14385. # Compile-time system search path for libraries.
  14386. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14387. # Detected run-time system search path for libraries.
  14388. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  14389. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  14390. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  14391. # Whether dlopen is supported.
  14392. dlopen_support=$enable_dlopen
  14393. # Whether dlopen of programs is supported.
  14394. dlopen_self=$enable_dlopen_self
  14395. # Whether dlopen of statically linked programs is supported.
  14396. dlopen_self_static=$enable_dlopen_self_static
  14397. # Commands to strip libraries.
  14398. old_striplib=$lt_old_striplib
  14399. striplib=$lt_striplib
  14400. # The linker used to build libraries.
  14401. LD=$lt_LD
  14402. # How to create reloadable object files.
  14403. reload_flag=$lt_reload_flag
  14404. reload_cmds=$lt_reload_cmds
  14405. # Commands used to build an old-style archive.
  14406. old_archive_cmds=$lt_old_archive_cmds
  14407. # A language specific compiler.
  14408. CC=$lt_compiler
  14409. # Is the compiler the GNU compiler?
  14410. with_gcc=$GCC
  14411. # Compiler flag to turn off builtin functions.
  14412. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14413. # Additional compiler flags for building library objects.
  14414. pic_flag=$lt_lt_prog_compiler_pic
  14415. # How to pass a linker flag through the compiler.
  14416. wl=$lt_lt_prog_compiler_wl
  14417. # Compiler flag to prevent dynamic linking.
  14418. link_static_flag=$lt_lt_prog_compiler_static
  14419. # Does compiler simultaneously support -c and -o options?
  14420. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14421. # Whether or not to add -lc for building shared libraries.
  14422. build_libtool_need_lc=$archive_cmds_need_lc
  14423. # Whether or not to disallow shared libs when runtime libs are static.
  14424. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14425. # Compiler flag to allow reflexive dlopens.
  14426. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14427. # Compiler flag to generate shared objects directly from archives.
  14428. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14429. # Whether the compiler copes with passing no objects directly.
  14430. compiler_needs_object=$lt_compiler_needs_object
  14431. # Create an old-style archive from a shared archive.
  14432. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14433. # Create a temporary old-style archive to link instead of a shared archive.
  14434. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14435. # Commands used to build a shared archive.
  14436. archive_cmds=$lt_archive_cmds
  14437. archive_expsym_cmds=$lt_archive_expsym_cmds
  14438. # Commands used to build a loadable module if different from building
  14439. # a shared archive.
  14440. module_cmds=$lt_module_cmds
  14441. module_expsym_cmds=$lt_module_expsym_cmds
  14442. # Whether we are building with GNU ld or not.
  14443. with_gnu_ld=$lt_with_gnu_ld
  14444. # Flag that allows shared libraries with undefined symbols to be built.
  14445. allow_undefined_flag=$lt_allow_undefined_flag
  14446. # Flag that enforces no undefined symbols.
  14447. no_undefined_flag=$lt_no_undefined_flag
  14448. # Flag to hardcode \$libdir into a binary during linking.
  14449. # This must work even if \$libdir does not exist
  14450. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14451. # Whether we need a single "-rpath" flag with a separated argument.
  14452. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14453. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14454. # DIR into the resulting binary.
  14455. hardcode_direct=$hardcode_direct
  14456. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14457. # DIR into the resulting binary and the resulting library dependency is
  14458. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  14459. # library is relocated.
  14460. hardcode_direct_absolute=$hardcode_direct_absolute
  14461. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14462. # into the resulting binary.
  14463. hardcode_minus_L=$hardcode_minus_L
  14464. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14465. # into the resulting binary.
  14466. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14467. # Set to "yes" if building a shared library automatically hardcodes DIR
  14468. # into the library and all subsequent libraries and executables linked
  14469. # against it.
  14470. hardcode_automatic=$hardcode_automatic
  14471. # Set to yes if linker adds runtime paths of dependent libraries
  14472. # to runtime path list.
  14473. inherit_rpath=$inherit_rpath
  14474. # Whether libtool must link a program against all its dependency libraries.
  14475. link_all_deplibs=$link_all_deplibs
  14476. # Set to "yes" if exported symbols are required.
  14477. always_export_symbols=$always_export_symbols
  14478. # The commands to list exported symbols.
  14479. export_symbols_cmds=$lt_export_symbols_cmds
  14480. # Symbols that should not be listed in the preloaded symbols.
  14481. exclude_expsyms=$lt_exclude_expsyms
  14482. # Symbols that must always be exported.
  14483. include_expsyms=$lt_include_expsyms
  14484. # Commands necessary for linking programs (against libraries) with templates.
  14485. prelink_cmds=$lt_prelink_cmds
  14486. # Commands necessary for finishing linking programs.
  14487. postlink_cmds=$lt_postlink_cmds
  14488. # Specify filename containing input files.
  14489. file_list_spec=$lt_file_list_spec
  14490. # How to hardcode a shared library path into an executable.
  14491. hardcode_action=$hardcode_action
  14492. # ### END LIBTOOL CONFIG
  14493. _LT_EOF
  14494. cat <<'_LT_EOF' >> "$cfgfile"
  14495. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  14496. # func_munge_path_list VARIABLE PATH
  14497. # -----------------------------------
  14498. # VARIABLE is name of variable containing _space_ separated list of
  14499. # directories to be munged by the contents of PATH, which is string
  14500. # having a format:
  14501. # "DIR[:DIR]:"
  14502. # string "DIR[ DIR]" will be prepended to VARIABLE
  14503. # ":DIR[:DIR]"
  14504. # string "DIR[ DIR]" will be appended to VARIABLE
  14505. # "DIRP[:DIRP]::[DIRA:]DIRA"
  14506. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  14507. # "DIRA[ DIRA]" will be appended to VARIABLE
  14508. # "DIR[:DIR]"
  14509. # VARIABLE will be replaced by "DIR[ DIR]"
  14510. func_munge_path_list ()
  14511. {
  14512. case x$2 in
  14513. x)
  14514. ;;
  14515. *:)
  14516. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  14517. ;;
  14518. x:*)
  14519. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  14520. ;;
  14521. *::*)
  14522. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  14523. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  14524. ;;
  14525. *)
  14526. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  14527. ;;
  14528. esac
  14529. }
  14530. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  14531. func_cc_basename ()
  14532. {
  14533. for cc_temp in $*""; do
  14534. case $cc_temp in
  14535. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14536. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14537. \-*) ;;
  14538. *) break;;
  14539. esac
  14540. done
  14541. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14542. }
  14543. # ### END FUNCTIONS SHARED WITH CONFIGURE
  14544. _LT_EOF
  14545. case $host_os in
  14546. aix3*)
  14547. cat <<\_LT_EOF >> "$cfgfile"
  14548. # AIX sometimes has problems with the GCC collect2 program. For some
  14549. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14550. # vanish in a puff of smoke.
  14551. if test set != "${COLLECT_NAMES+set}"; then
  14552. COLLECT_NAMES=
  14553. export COLLECT_NAMES
  14554. fi
  14555. _LT_EOF
  14556. ;;
  14557. esac
  14558. ltmain=$ac_aux_dir/ltmain.sh
  14559. # We use sed instead of cat because bash on DJGPP gets confused if
  14560. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14561. # text mode, it properly converts lines to CR/LF. This bash problem
  14562. # is reportedly fixed, but why not run on old versions too?
  14563. $SED '$q' "$ltmain" >> "$cfgfile" \
  14564. || (rm -f "$cfgfile"; exit 1)
  14565. mv -f "$cfgfile" "$ofile" ||
  14566. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14567. chmod +x "$ofile"
  14568. ;;
  14569. esac
  14570. done # for ac_tag
  14571. as_fn_exit 0
  14572. _ACEOF
  14573. ac_clean_files=$ac_clean_files_save
  14574. test $ac_write_fail = 0 ||
  14575. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14576. # configure is writing to config.log, and then calls config.status.
  14577. # config.status does its own redirection, appending to config.log.
  14578. # Unfortunately, on DOS this fails, as config.log is still kept open
  14579. # by configure, so config.status won't be able to write to it; its
  14580. # output is simply discarded. So we exec the FD to /dev/null,
  14581. # effectively closing config.log, so it can be properly (re)opened and
  14582. # appended to by config.status. When coming back to configure, we
  14583. # need to make the FD available again.
  14584. if test "$no_create" != yes; then
  14585. ac_cs_success=:
  14586. ac_config_status_args=
  14587. test "$silent" = yes &&
  14588. ac_config_status_args="$ac_config_status_args --quiet"
  14589. exec 5>/dev/null
  14590. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14591. exec 5>>config.log
  14592. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14593. # would make configure fail if this is the last instruction.
  14594. $ac_cs_success || as_fn_exit 1
  14595. fi
  14596. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14598. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14599. fi