You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure 430 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for json-c 0.12.
  4. #
  5. # Report bugs to <json-c@googlegroups.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: json-c@googlegroups.com about your system, including
  260. $0: any error possibly output before this message. Then
  261. $0: install a modern shell, or manually run the script
  262. $0: under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='json-c'
  542. PACKAGE_TARNAME='json-c'
  543. PACKAGE_VERSION='0.12'
  544. PACKAGE_STRING='json-c 0.12'
  545. PACKAGE_BUGREPORT='json-c@googlegroups.com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.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_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. JSON_BSYMBOLIC_LDFLAGS
  586. OTOOL64
  587. OTOOL
  588. LIPO
  589. NMEDIT
  590. DSYMUTIL
  591. MANIFEST_TOOL
  592. RANLIB
  593. ac_ct_AR
  594. AR
  595. DLLTOOL
  596. OBJDUMP
  597. LN_S
  598. NM
  599. ac_ct_DUMPBIN
  600. DUMPBIN
  601. LD
  602. FGREP
  603. SED
  604. host_os
  605. host_vendor
  606. host_cpu
  607. host
  608. build_os
  609. build_vendor
  610. build_cpu
  611. build
  612. LIBTOOL
  613. LIBOBJS
  614. EGREP
  615. GREP
  616. CPP
  617. am__fastdepCC_FALSE
  618. am__fastdepCC_TRUE
  619. CCDEPMODE
  620. am__nodep
  621. AMDEPBACKSLASH
  622. AMDEP_FALSE
  623. AMDEP_TRUE
  624. am__quote
  625. am__include
  626. DEPDIR
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CC
  630. CPPFLAGS
  631. LDFLAGS
  632. CFLAGS
  633. CC
  634. AM_BACKSLASH
  635. AM_DEFAULT_VERBOSITY
  636. AM_DEFAULT_V
  637. AM_V
  638. am__untar
  639. am__tar
  640. AMTAR
  641. am__leading_dot
  642. SET_MAKE
  643. AWK
  644. mkdir_p
  645. MKDIR_P
  646. INSTALL_STRIP_PROGRAM
  647. STRIP
  648. install_sh
  649. MAKEINFO
  650. AUTOHEADER
  651. AUTOMAKE
  652. AUTOCONF
  653. ACLOCAL
  654. VERSION
  655. PACKAGE
  656. CYGPATH_W
  657. am__isrc
  658. INSTALL_DATA
  659. INSTALL_SCRIPT
  660. INSTALL_PROGRAM
  661. target_alias
  662. host_alias
  663. build_alias
  664. LIBS
  665. ECHO_T
  666. ECHO_N
  667. ECHO_C
  668. DEFS
  669. mandir
  670. localedir
  671. libdir
  672. psdir
  673. pdfdir
  674. dvidir
  675. htmldir
  676. infodir
  677. docdir
  678. oldincludedir
  679. includedir
  680. localstatedir
  681. sharedstatedir
  682. sysconfdir
  683. datadir
  684. datarootdir
  685. libexecdir
  686. sbindir
  687. bindir
  688. program_transform_name
  689. prefix
  690. exec_prefix
  691. PACKAGE_URL
  692. PACKAGE_BUGREPORT
  693. PACKAGE_STRING
  694. PACKAGE_VERSION
  695. PACKAGE_TARNAME
  696. PACKAGE_NAME
  697. PATH_SEPARATOR
  698. SHELL'
  699. ac_subst_files=''
  700. ac_user_opts='
  701. enable_option_checking
  702. enable_silent_rules
  703. enable_rdrand
  704. enable_dependency_tracking
  705. enable_shared
  706. enable_static
  707. with_pic
  708. enable_fast_install
  709. with_gnu_ld
  710. with_sysroot
  711. enable_libtool_lock
  712. enable_Bsymbolic
  713. '
  714. ac_precious_vars='build_alias
  715. host_alias
  716. target_alias
  717. CC
  718. CFLAGS
  719. LDFLAGS
  720. LIBS
  721. CPPFLAGS
  722. CPP'
  723. # Initialize some variables set by options.
  724. ac_init_help=
  725. ac_init_version=false
  726. ac_unrecognized_opts=
  727. ac_unrecognized_sep=
  728. # The variables have the same names as the options, with
  729. # dashes changed to underlines.
  730. cache_file=/dev/null
  731. exec_prefix=NONE
  732. no_create=
  733. no_recursion=
  734. prefix=NONE
  735. program_prefix=NONE
  736. program_suffix=NONE
  737. program_transform_name=s,x,x,
  738. silent=
  739. site=
  740. srcdir=
  741. verbose=
  742. x_includes=NONE
  743. x_libraries=NONE
  744. # Installation directory options.
  745. # These are left unexpanded so users can "make install exec_prefix=/foo"
  746. # and all the variables that are supposed to be based on exec_prefix
  747. # by default will actually change.
  748. # Use braces instead of parens because sh, perl, etc. also accept them.
  749. # (The list follows the same order as the GNU Coding Standards.)
  750. bindir='${exec_prefix}/bin'
  751. sbindir='${exec_prefix}/sbin'
  752. libexecdir='${exec_prefix}/libexec'
  753. datarootdir='${prefix}/share'
  754. datadir='${datarootdir}'
  755. sysconfdir='${prefix}/etc'
  756. sharedstatedir='${prefix}/com'
  757. localstatedir='${prefix}/var'
  758. includedir='${prefix}/include'
  759. oldincludedir='/usr/include'
  760. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  761. infodir='${datarootdir}/info'
  762. htmldir='${docdir}'
  763. dvidir='${docdir}'
  764. pdfdir='${docdir}'
  765. psdir='${docdir}'
  766. libdir='${exec_prefix}/lib'
  767. localedir='${datarootdir}/locale'
  768. mandir='${datarootdir}/man'
  769. ac_prev=
  770. ac_dashdash=
  771. for ac_option
  772. do
  773. # If the previous option needs an argument, assign it.
  774. if test -n "$ac_prev"; then
  775. eval $ac_prev=\$ac_option
  776. ac_prev=
  777. continue
  778. fi
  779. case $ac_option in
  780. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  781. *=) ac_optarg= ;;
  782. *) ac_optarg=yes ;;
  783. esac
  784. # Accept the important Cygnus configure options, so we can diagnose typos.
  785. case $ac_dashdash$ac_option in
  786. --)
  787. ac_dashdash=yes ;;
  788. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  789. ac_prev=bindir ;;
  790. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  791. bindir=$ac_optarg ;;
  792. -build | --build | --buil | --bui | --bu)
  793. ac_prev=build_alias ;;
  794. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  795. build_alias=$ac_optarg ;;
  796. -cache-file | --cache-file | --cache-fil | --cache-fi \
  797. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  798. ac_prev=cache_file ;;
  799. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  800. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  801. cache_file=$ac_optarg ;;
  802. --config-cache | -C)
  803. cache_file=config.cache ;;
  804. -datadir | --datadir | --datadi | --datad)
  805. ac_prev=datadir ;;
  806. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  807. datadir=$ac_optarg ;;
  808. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  809. | --dataroo | --dataro | --datar)
  810. ac_prev=datarootdir ;;
  811. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  812. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  813. datarootdir=$ac_optarg ;;
  814. -disable-* | --disable-*)
  815. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  816. # Reject names that are not valid shell variable names.
  817. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  818. as_fn_error $? "invalid feature name: $ac_useropt"
  819. ac_useropt_orig=$ac_useropt
  820. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  821. case $ac_user_opts in
  822. *"
  823. "enable_$ac_useropt"
  824. "*) ;;
  825. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  826. ac_unrecognized_sep=', ';;
  827. esac
  828. eval enable_$ac_useropt=no ;;
  829. -docdir | --docdir | --docdi | --doc | --do)
  830. ac_prev=docdir ;;
  831. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  832. docdir=$ac_optarg ;;
  833. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  834. ac_prev=dvidir ;;
  835. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  836. dvidir=$ac_optarg ;;
  837. -enable-* | --enable-*)
  838. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  839. # Reject names that are not valid shell variable names.
  840. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  841. as_fn_error $? "invalid feature name: $ac_useropt"
  842. ac_useropt_orig=$ac_useropt
  843. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  844. case $ac_user_opts in
  845. *"
  846. "enable_$ac_useropt"
  847. "*) ;;
  848. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  849. ac_unrecognized_sep=', ';;
  850. esac
  851. eval enable_$ac_useropt=\$ac_optarg ;;
  852. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  853. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  854. | --exec | --exe | --ex)
  855. ac_prev=exec_prefix ;;
  856. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  857. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  858. | --exec=* | --exe=* | --ex=*)
  859. exec_prefix=$ac_optarg ;;
  860. -gas | --gas | --ga | --g)
  861. # Obsolete; use --with-gas.
  862. with_gas=yes ;;
  863. -help | --help | --hel | --he | -h)
  864. ac_init_help=long ;;
  865. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  866. ac_init_help=recursive ;;
  867. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  868. ac_init_help=short ;;
  869. -host | --host | --hos | --ho)
  870. ac_prev=host_alias ;;
  871. -host=* | --host=* | --hos=* | --ho=*)
  872. host_alias=$ac_optarg ;;
  873. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  874. ac_prev=htmldir ;;
  875. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  876. | --ht=*)
  877. htmldir=$ac_optarg ;;
  878. -includedir | --includedir | --includedi | --included | --include \
  879. | --includ | --inclu | --incl | --inc)
  880. ac_prev=includedir ;;
  881. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  882. | --includ=* | --inclu=* | --incl=* | --inc=*)
  883. includedir=$ac_optarg ;;
  884. -infodir | --infodir | --infodi | --infod | --info | --inf)
  885. ac_prev=infodir ;;
  886. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  887. infodir=$ac_optarg ;;
  888. -libdir | --libdir | --libdi | --libd)
  889. ac_prev=libdir ;;
  890. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  891. libdir=$ac_optarg ;;
  892. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  893. | --libexe | --libex | --libe)
  894. ac_prev=libexecdir ;;
  895. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  896. | --libexe=* | --libex=* | --libe=*)
  897. libexecdir=$ac_optarg ;;
  898. -localedir | --localedir | --localedi | --localed | --locale)
  899. ac_prev=localedir ;;
  900. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  901. localedir=$ac_optarg ;;
  902. -localstatedir | --localstatedir | --localstatedi | --localstated \
  903. | --localstate | --localstat | --localsta | --localst | --locals)
  904. ac_prev=localstatedir ;;
  905. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  906. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  907. localstatedir=$ac_optarg ;;
  908. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  909. ac_prev=mandir ;;
  910. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  911. mandir=$ac_optarg ;;
  912. -nfp | --nfp | --nf)
  913. # Obsolete; use --without-fp.
  914. with_fp=no ;;
  915. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  916. | --no-cr | --no-c | -n)
  917. no_create=yes ;;
  918. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  919. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  920. no_recursion=yes ;;
  921. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  922. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  923. | --oldin | --oldi | --old | --ol | --o)
  924. ac_prev=oldincludedir ;;
  925. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  926. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  927. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  928. oldincludedir=$ac_optarg ;;
  929. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  930. ac_prev=prefix ;;
  931. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  932. prefix=$ac_optarg ;;
  933. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  934. | --program-pre | --program-pr | --program-p)
  935. ac_prev=program_prefix ;;
  936. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  937. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  938. program_prefix=$ac_optarg ;;
  939. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  940. | --program-suf | --program-su | --program-s)
  941. ac_prev=program_suffix ;;
  942. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  943. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  944. program_suffix=$ac_optarg ;;
  945. -program-transform-name | --program-transform-name \
  946. | --program-transform-nam | --program-transform-na \
  947. | --program-transform-n | --program-transform- \
  948. | --program-transform | --program-transfor \
  949. | --program-transfo | --program-transf \
  950. | --program-trans | --program-tran \
  951. | --progr-tra | --program-tr | --program-t)
  952. ac_prev=program_transform_name ;;
  953. -program-transform-name=* | --program-transform-name=* \
  954. | --program-transform-nam=* | --program-transform-na=* \
  955. | --program-transform-n=* | --program-transform-=* \
  956. | --program-transform=* | --program-transfor=* \
  957. | --program-transfo=* | --program-transf=* \
  958. | --program-trans=* | --program-tran=* \
  959. | --progr-tra=* | --program-tr=* | --program-t=*)
  960. program_transform_name=$ac_optarg ;;
  961. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  962. ac_prev=pdfdir ;;
  963. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  964. pdfdir=$ac_optarg ;;
  965. -psdir | --psdir | --psdi | --psd | --ps)
  966. ac_prev=psdir ;;
  967. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  968. psdir=$ac_optarg ;;
  969. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  970. | -silent | --silent | --silen | --sile | --sil)
  971. silent=yes ;;
  972. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  973. ac_prev=sbindir ;;
  974. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  975. | --sbi=* | --sb=*)
  976. sbindir=$ac_optarg ;;
  977. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  978. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  979. | --sharedst | --shareds | --shared | --share | --shar \
  980. | --sha | --sh)
  981. ac_prev=sharedstatedir ;;
  982. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  983. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  984. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  985. | --sha=* | --sh=*)
  986. sharedstatedir=$ac_optarg ;;
  987. -site | --site | --sit)
  988. ac_prev=site ;;
  989. -site=* | --site=* | --sit=*)
  990. site=$ac_optarg ;;
  991. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  992. ac_prev=srcdir ;;
  993. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  994. srcdir=$ac_optarg ;;
  995. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  996. | --syscon | --sysco | --sysc | --sys | --sy)
  997. ac_prev=sysconfdir ;;
  998. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  999. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1000. sysconfdir=$ac_optarg ;;
  1001. -target | --target | --targe | --targ | --tar | --ta | --t)
  1002. ac_prev=target_alias ;;
  1003. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1004. target_alias=$ac_optarg ;;
  1005. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1006. verbose=yes ;;
  1007. -version | --version | --versio | --versi | --vers | -V)
  1008. ac_init_version=: ;;
  1009. -with-* | --with-*)
  1010. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1011. # Reject names that are not valid shell variable names.
  1012. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1013. as_fn_error $? "invalid package name: $ac_useropt"
  1014. ac_useropt_orig=$ac_useropt
  1015. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1016. case $ac_user_opts in
  1017. *"
  1018. "with_$ac_useropt"
  1019. "*) ;;
  1020. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1021. ac_unrecognized_sep=', ';;
  1022. esac
  1023. eval with_$ac_useropt=\$ac_optarg ;;
  1024. -without-* | --without-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid package name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "with_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval with_$ac_useropt=no ;;
  1039. --x)
  1040. # Obsolete; use --with-x.
  1041. with_x=yes ;;
  1042. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1043. | --x-incl | --x-inc | --x-in | --x-i)
  1044. ac_prev=x_includes ;;
  1045. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1046. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1047. x_includes=$ac_optarg ;;
  1048. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1049. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1050. ac_prev=x_libraries ;;
  1051. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1052. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1053. x_libraries=$ac_optarg ;;
  1054. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1055. Try \`$0 --help' for more information"
  1056. ;;
  1057. *=*)
  1058. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1059. # Reject names that are not valid shell variable names.
  1060. case $ac_envvar in #(
  1061. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1062. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1063. esac
  1064. eval $ac_envvar=\$ac_optarg
  1065. export $ac_envvar ;;
  1066. *)
  1067. # FIXME: should be removed in autoconf 3.0.
  1068. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1069. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1070. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1071. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1072. ;;
  1073. esac
  1074. done
  1075. if test -n "$ac_prev"; then
  1076. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1077. as_fn_error $? "missing argument to $ac_option"
  1078. fi
  1079. if test -n "$ac_unrecognized_opts"; then
  1080. case $enable_option_checking in
  1081. no) ;;
  1082. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1083. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1084. esac
  1085. fi
  1086. # Check all directory arguments for consistency.
  1087. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1088. datadir sysconfdir sharedstatedir localstatedir includedir \
  1089. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1090. libdir localedir mandir
  1091. do
  1092. eval ac_val=\$$ac_var
  1093. # Remove trailing slashes.
  1094. case $ac_val in
  1095. */ )
  1096. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1097. eval $ac_var=\$ac_val;;
  1098. esac
  1099. # Be sure to have absolute directory names.
  1100. case $ac_val in
  1101. [\\/$]* | ?:[\\/]* ) continue;;
  1102. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1103. esac
  1104. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1105. done
  1106. # There might be people who depend on the old broken behavior: `$host'
  1107. # used to hold the argument of --host etc.
  1108. # FIXME: To remove some day.
  1109. build=$build_alias
  1110. host=$host_alias
  1111. target=$target_alias
  1112. # FIXME: To remove some day.
  1113. if test "x$host_alias" != x; then
  1114. if test "x$build_alias" = x; then
  1115. cross_compiling=maybe
  1116. elif test "x$build_alias" != "x$host_alias"; then
  1117. cross_compiling=yes
  1118. fi
  1119. fi
  1120. ac_tool_prefix=
  1121. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1122. test "$silent" = yes && exec 6>/dev/null
  1123. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1124. ac_ls_di=`ls -di .` &&
  1125. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1126. as_fn_error $? "working directory cannot be determined"
  1127. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1128. as_fn_error $? "pwd does not report name of working directory"
  1129. # Find the source files, if location was not specified.
  1130. if test -z "$srcdir"; then
  1131. ac_srcdir_defaulted=yes
  1132. # Try the directory containing this script, then the parent directory.
  1133. ac_confdir=`$as_dirname -- "$as_myself" ||
  1134. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1135. X"$as_myself" : 'X\(//\)[^/]' \| \
  1136. X"$as_myself" : 'X\(//\)$' \| \
  1137. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1138. $as_echo X"$as_myself" |
  1139. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1140. s//\1/
  1141. q
  1142. }
  1143. /^X\(\/\/\)[^/].*/{
  1144. s//\1/
  1145. q
  1146. }
  1147. /^X\(\/\/\)$/{
  1148. s//\1/
  1149. q
  1150. }
  1151. /^X\(\/\).*/{
  1152. s//\1/
  1153. q
  1154. }
  1155. s/.*/./; q'`
  1156. srcdir=$ac_confdir
  1157. if test ! -r "$srcdir/$ac_unique_file"; then
  1158. srcdir=..
  1159. fi
  1160. else
  1161. ac_srcdir_defaulted=no
  1162. fi
  1163. if test ! -r "$srcdir/$ac_unique_file"; then
  1164. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1165. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1166. fi
  1167. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1168. ac_abs_confdir=`(
  1169. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1170. pwd)`
  1171. # When building in place, set srcdir=.
  1172. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1173. srcdir=.
  1174. fi
  1175. # Remove unnecessary trailing slashes from srcdir.
  1176. # Double slashes in file names in object file debugging info
  1177. # mess up M-x gdb in Emacs.
  1178. case $srcdir in
  1179. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1180. esac
  1181. for ac_var in $ac_precious_vars; do
  1182. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1183. eval ac_env_${ac_var}_value=\$${ac_var}
  1184. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1185. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1186. done
  1187. #
  1188. # Report the --help message.
  1189. #
  1190. if test "$ac_init_help" = "long"; then
  1191. # Omit some internal or obsolete options to make the list less imposing.
  1192. # This message is too long to be a string in the A/UX 3.1 sh.
  1193. cat <<_ACEOF
  1194. \`configure' configures json-c 0.12 to adapt to many kinds of systems.
  1195. Usage: $0 [OPTION]... [VAR=VALUE]...
  1196. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1197. VAR=VALUE. See below for descriptions of some of the useful variables.
  1198. Defaults for the options are specified in brackets.
  1199. Configuration:
  1200. -h, --help display this help and exit
  1201. --help=short display options specific to this package
  1202. --help=recursive display the short help of all the included packages
  1203. -V, --version display version information and exit
  1204. -q, --quiet, --silent do not print \`checking ...' messages
  1205. --cache-file=FILE cache test results in FILE [disabled]
  1206. -C, --config-cache alias for \`--cache-file=config.cache'
  1207. -n, --no-create do not create output files
  1208. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1209. Installation directories:
  1210. --prefix=PREFIX install architecture-independent files in PREFIX
  1211. [$ac_default_prefix]
  1212. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1213. [PREFIX]
  1214. By default, \`make install' will install all the files in
  1215. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1216. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1217. for instance \`--prefix=\$HOME'.
  1218. For better control, use the options below.
  1219. Fine tuning of the installation directories:
  1220. --bindir=DIR user executables [EPREFIX/bin]
  1221. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1222. --libexecdir=DIR program executables [EPREFIX/libexec]
  1223. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1224. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1225. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1226. --libdir=DIR object code libraries [EPREFIX/lib]
  1227. --includedir=DIR C header files [PREFIX/include]
  1228. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1229. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1230. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1231. --infodir=DIR info documentation [DATAROOTDIR/info]
  1232. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1233. --mandir=DIR man documentation [DATAROOTDIR/man]
  1234. --docdir=DIR documentation root [DATAROOTDIR/doc/json-c]
  1235. --htmldir=DIR html documentation [DOCDIR]
  1236. --dvidir=DIR dvi documentation [DOCDIR]
  1237. --pdfdir=DIR pdf documentation [DOCDIR]
  1238. --psdir=DIR ps documentation [DOCDIR]
  1239. _ACEOF
  1240. cat <<\_ACEOF
  1241. Program names:
  1242. --program-prefix=PREFIX prepend PREFIX to installed program names
  1243. --program-suffix=SUFFIX append SUFFIX to installed program names
  1244. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1245. System types:
  1246. --build=BUILD configure for building on BUILD [guessed]
  1247. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1248. _ACEOF
  1249. fi
  1250. if test -n "$ac_init_help"; then
  1251. case $ac_init_help in
  1252. short | recursive ) echo "Configuration of json-c 0.12:";;
  1253. esac
  1254. cat <<\_ACEOF
  1255. Optional Features:
  1256. --disable-option-checking ignore unrecognized --enable/--with options
  1257. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1258. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1259. --enable-silent-rules less verbose build output (undo: "make V=1")
  1260. --disable-silent-rules verbose build output (undo: "make V=0")
  1261. --enable-rdrand Enable RDRAND Hardware RNG Hash Seed generation on
  1262. supported x86/x64 platforms.
  1263. --enable-dependency-tracking
  1264. do not reject slow dependency extractors
  1265. --disable-dependency-tracking
  1266. speeds up one-time build
  1267. --enable-shared[=PKGS] build shared libraries [default=yes]
  1268. --enable-static[=PKGS] build static libraries [default=yes]
  1269. --enable-fast-install[=PKGS]
  1270. optimize for fast installation [default=yes]
  1271. --disable-libtool-lock avoid locking (might break parallel builds)
  1272. --disable-Bsymbolic Avoid linking with -Bsymbolic-function
  1273. Optional Packages:
  1274. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1275. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1276. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1277. both]
  1278. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1279. --with-sysroot=DIR Search for dependent libraries within DIR
  1280. (or the compiler's sysroot if not specified).
  1281. Some influential environment variables:
  1282. CC C compiler command
  1283. CFLAGS C compiler flags
  1284. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1285. nonstandard directory <lib dir>
  1286. LIBS libraries to pass to the linker, e.g. -l<library>
  1287. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1288. you have headers in a nonstandard directory <include dir>
  1289. CPP C preprocessor
  1290. Use these variables to override the choices made by `configure' or to help
  1291. it to find libraries and programs with nonstandard names/locations.
  1292. Report bugs to <json-c@googlegroups.com>.
  1293. _ACEOF
  1294. ac_status=$?
  1295. fi
  1296. if test "$ac_init_help" = "recursive"; then
  1297. # If there are subdirs, report their specific --help.
  1298. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1299. test -d "$ac_dir" ||
  1300. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1301. continue
  1302. ac_builddir=.
  1303. case "$ac_dir" in
  1304. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1305. *)
  1306. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1307. # A ".." for each directory in $ac_dir_suffix.
  1308. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1309. case $ac_top_builddir_sub in
  1310. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1311. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1312. esac ;;
  1313. esac
  1314. ac_abs_top_builddir=$ac_pwd
  1315. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1316. # for backward compatibility:
  1317. ac_top_builddir=$ac_top_build_prefix
  1318. case $srcdir in
  1319. .) # We are building in place.
  1320. ac_srcdir=.
  1321. ac_top_srcdir=$ac_top_builddir_sub
  1322. ac_abs_top_srcdir=$ac_pwd ;;
  1323. [\\/]* | ?:[\\/]* ) # Absolute name.
  1324. ac_srcdir=$srcdir$ac_dir_suffix;
  1325. ac_top_srcdir=$srcdir
  1326. ac_abs_top_srcdir=$srcdir ;;
  1327. *) # Relative name.
  1328. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1329. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1330. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1331. esac
  1332. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1333. cd "$ac_dir" || { ac_status=$?; continue; }
  1334. # Check for guested configure.
  1335. if test -f "$ac_srcdir/configure.gnu"; then
  1336. echo &&
  1337. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1338. elif test -f "$ac_srcdir/configure"; then
  1339. echo &&
  1340. $SHELL "$ac_srcdir/configure" --help=recursive
  1341. else
  1342. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1343. fi || ac_status=$?
  1344. cd "$ac_pwd" || { ac_status=$?; break; }
  1345. done
  1346. fi
  1347. test -n "$ac_init_help" && exit $ac_status
  1348. if $ac_init_version; then
  1349. cat <<\_ACEOF
  1350. json-c configure 0.12
  1351. generated by GNU Autoconf 2.69
  1352. Copyright (C) 2012 Free Software Foundation, Inc.
  1353. This configure script is free software; the Free Software Foundation
  1354. gives unlimited permission to copy, distribute and modify it.
  1355. _ACEOF
  1356. exit
  1357. fi
  1358. ## ------------------------ ##
  1359. ## Autoconf initialization. ##
  1360. ## ------------------------ ##
  1361. # ac_fn_c_try_compile LINENO
  1362. # --------------------------
  1363. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1364. ac_fn_c_try_compile ()
  1365. {
  1366. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1367. rm -f conftest.$ac_objext
  1368. if { { ac_try="$ac_compile"
  1369. case "(($ac_try" in
  1370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1371. *) ac_try_echo=$ac_try;;
  1372. esac
  1373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1374. $as_echo "$ac_try_echo"; } >&5
  1375. (eval "$ac_compile") 2>conftest.err
  1376. ac_status=$?
  1377. if test -s conftest.err; then
  1378. grep -v '^ *+' conftest.err >conftest.er1
  1379. cat conftest.er1 >&5
  1380. mv -f conftest.er1 conftest.err
  1381. fi
  1382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1383. test $ac_status = 0; } && {
  1384. test -z "$ac_c_werror_flag" ||
  1385. test ! -s conftest.err
  1386. } && test -s conftest.$ac_objext; then :
  1387. ac_retval=0
  1388. else
  1389. $as_echo "$as_me: failed program was:" >&5
  1390. sed 's/^/| /' conftest.$ac_ext >&5
  1391. ac_retval=1
  1392. fi
  1393. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1394. as_fn_set_status $ac_retval
  1395. } # ac_fn_c_try_compile
  1396. # ac_fn_c_try_cpp LINENO
  1397. # ----------------------
  1398. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1399. ac_fn_c_try_cpp ()
  1400. {
  1401. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1402. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1403. case "(($ac_try" in
  1404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1405. *) ac_try_echo=$ac_try;;
  1406. esac
  1407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1408. $as_echo "$ac_try_echo"; } >&5
  1409. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1410. ac_status=$?
  1411. if test -s conftest.err; then
  1412. grep -v '^ *+' conftest.err >conftest.er1
  1413. cat conftest.er1 >&5
  1414. mv -f conftest.er1 conftest.err
  1415. fi
  1416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1417. test $ac_status = 0; } > conftest.i && {
  1418. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1419. test ! -s conftest.err
  1420. }; then :
  1421. ac_retval=0
  1422. else
  1423. $as_echo "$as_me: failed program was:" >&5
  1424. sed 's/^/| /' conftest.$ac_ext >&5
  1425. ac_retval=1
  1426. fi
  1427. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1428. as_fn_set_status $ac_retval
  1429. } # ac_fn_c_try_cpp
  1430. # ac_fn_c_try_run LINENO
  1431. # ----------------------
  1432. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1433. # that executables *can* be run.
  1434. ac_fn_c_try_run ()
  1435. {
  1436. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1437. if { { ac_try="$ac_link"
  1438. case "(($ac_try" in
  1439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1440. *) ac_try_echo=$ac_try;;
  1441. esac
  1442. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1443. $as_echo "$ac_try_echo"; } >&5
  1444. (eval "$ac_link") 2>&5
  1445. ac_status=$?
  1446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1448. { { case "(($ac_try" in
  1449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1450. *) ac_try_echo=$ac_try;;
  1451. esac
  1452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1453. $as_echo "$ac_try_echo"; } >&5
  1454. (eval "$ac_try") 2>&5
  1455. ac_status=$?
  1456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1457. test $ac_status = 0; }; }; then :
  1458. ac_retval=0
  1459. else
  1460. $as_echo "$as_me: program exited with status $ac_status" >&5
  1461. $as_echo "$as_me: failed program was:" >&5
  1462. sed 's/^/| /' conftest.$ac_ext >&5
  1463. ac_retval=$ac_status
  1464. fi
  1465. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1466. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1467. as_fn_set_status $ac_retval
  1468. } # ac_fn_c_try_run
  1469. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1470. # -------------------------------------------------------
  1471. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1472. # the include files in INCLUDES and setting the cache variable VAR
  1473. # accordingly.
  1474. ac_fn_c_check_header_mongrel ()
  1475. {
  1476. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1477. if eval \${$3+:} false; then :
  1478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1479. $as_echo_n "checking for $2... " >&6; }
  1480. if eval \${$3+:} false; then :
  1481. $as_echo_n "(cached) " >&6
  1482. fi
  1483. eval ac_res=\$$3
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1485. $as_echo "$ac_res" >&6; }
  1486. else
  1487. # Is the header compilable?
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1489. $as_echo_n "checking $2 usability... " >&6; }
  1490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1491. /* end confdefs.h. */
  1492. $4
  1493. #include <$2>
  1494. _ACEOF
  1495. if ac_fn_c_try_compile "$LINENO"; then :
  1496. ac_header_compiler=yes
  1497. else
  1498. ac_header_compiler=no
  1499. fi
  1500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1502. $as_echo "$ac_header_compiler" >&6; }
  1503. # Is the header present?
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1505. $as_echo_n "checking $2 presence... " >&6; }
  1506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1507. /* end confdefs.h. */
  1508. #include <$2>
  1509. _ACEOF
  1510. if ac_fn_c_try_cpp "$LINENO"; then :
  1511. ac_header_preproc=yes
  1512. else
  1513. ac_header_preproc=no
  1514. fi
  1515. rm -f conftest.err conftest.i conftest.$ac_ext
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1517. $as_echo "$ac_header_preproc" >&6; }
  1518. # So? What about this header?
  1519. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1520. yes:no: )
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1522. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1524. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1525. ;;
  1526. no:yes:* )
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1528. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1530. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1532. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1534. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1536. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1537. ( $as_echo "## -------------------------------------- ##
  1538. ## Report this to json-c@googlegroups.com ##
  1539. ## -------------------------------------- ##"
  1540. ) | sed "s/^/$as_me: WARNING: /" >&2
  1541. ;;
  1542. esac
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1544. $as_echo_n "checking for $2... " >&6; }
  1545. if eval \${$3+:} false; then :
  1546. $as_echo_n "(cached) " >&6
  1547. else
  1548. eval "$3=\$ac_header_compiler"
  1549. fi
  1550. eval ac_res=\$$3
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1552. $as_echo "$ac_res" >&6; }
  1553. fi
  1554. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1555. } # ac_fn_c_check_header_mongrel
  1556. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1557. # -------------------------------------------------------
  1558. # Tests whether HEADER exists and can be compiled using the include files in
  1559. # INCLUDES, setting the cache variable VAR accordingly.
  1560. ac_fn_c_check_header_compile ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1564. $as_echo_n "checking for $2... " >&6; }
  1565. if eval \${$3+:} false; then :
  1566. $as_echo_n "(cached) " >&6
  1567. else
  1568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1569. /* end confdefs.h. */
  1570. $4
  1571. #include <$2>
  1572. _ACEOF
  1573. if ac_fn_c_try_compile "$LINENO"; then :
  1574. eval "$3=yes"
  1575. else
  1576. eval "$3=no"
  1577. fi
  1578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1579. fi
  1580. eval ac_res=\$$3
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1582. $as_echo "$ac_res" >&6; }
  1583. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1584. } # ac_fn_c_check_header_compile
  1585. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1586. # -------------------------------------------
  1587. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1588. # variable VAR accordingly.
  1589. ac_fn_c_check_type ()
  1590. {
  1591. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1593. $as_echo_n "checking for $2... " >&6; }
  1594. if eval \${$3+:} false; then :
  1595. $as_echo_n "(cached) " >&6
  1596. else
  1597. eval "$3=no"
  1598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1599. /* end confdefs.h. */
  1600. $4
  1601. int
  1602. main ()
  1603. {
  1604. if (sizeof ($2))
  1605. return 0;
  1606. ;
  1607. return 0;
  1608. }
  1609. _ACEOF
  1610. if ac_fn_c_try_compile "$LINENO"; then :
  1611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1612. /* end confdefs.h. */
  1613. $4
  1614. int
  1615. main ()
  1616. {
  1617. if (sizeof (($2)))
  1618. return 0;
  1619. ;
  1620. return 0;
  1621. }
  1622. _ACEOF
  1623. if ac_fn_c_try_compile "$LINENO"; then :
  1624. else
  1625. eval "$3=yes"
  1626. fi
  1627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1628. fi
  1629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1630. fi
  1631. eval ac_res=\$$3
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1633. $as_echo "$ac_res" >&6; }
  1634. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1635. } # ac_fn_c_check_type
  1636. # ac_fn_c_try_link LINENO
  1637. # -----------------------
  1638. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1639. ac_fn_c_try_link ()
  1640. {
  1641. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1642. rm -f conftest.$ac_objext conftest$ac_exeext
  1643. if { { ac_try="$ac_link"
  1644. case "(($ac_try" in
  1645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1646. *) ac_try_echo=$ac_try;;
  1647. esac
  1648. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1649. $as_echo "$ac_try_echo"; } >&5
  1650. (eval "$ac_link") 2>conftest.err
  1651. ac_status=$?
  1652. if test -s conftest.err; then
  1653. grep -v '^ *+' conftest.err >conftest.er1
  1654. cat conftest.er1 >&5
  1655. mv -f conftest.er1 conftest.err
  1656. fi
  1657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1658. test $ac_status = 0; } && {
  1659. test -z "$ac_c_werror_flag" ||
  1660. test ! -s conftest.err
  1661. } && test -s conftest$ac_exeext && {
  1662. test "$cross_compiling" = yes ||
  1663. test -x conftest$ac_exeext
  1664. }; then :
  1665. ac_retval=0
  1666. else
  1667. $as_echo "$as_me: failed program was:" >&5
  1668. sed 's/^/| /' conftest.$ac_ext >&5
  1669. ac_retval=1
  1670. fi
  1671. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1672. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1673. # interfere with the next link command; also delete a directory that is
  1674. # left behind by Apple's compiler. We do this before executing the actions.
  1675. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1676. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1677. as_fn_set_status $ac_retval
  1678. } # ac_fn_c_try_link
  1679. # ac_fn_c_check_func LINENO FUNC VAR
  1680. # ----------------------------------
  1681. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1682. ac_fn_c_check_func ()
  1683. {
  1684. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1686. $as_echo_n "checking for $2... " >&6; }
  1687. if eval \${$3+:} false; then :
  1688. $as_echo_n "(cached) " >&6
  1689. else
  1690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1691. /* end confdefs.h. */
  1692. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1693. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1694. #define $2 innocuous_$2
  1695. /* System header to define __stub macros and hopefully few prototypes,
  1696. which can conflict with char $2 (); below.
  1697. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1698. <limits.h> exists even on freestanding compilers. */
  1699. #ifdef __STDC__
  1700. # include <limits.h>
  1701. #else
  1702. # include <assert.h>
  1703. #endif
  1704. #undef $2
  1705. /* Override any GCC internal prototype to avoid an error.
  1706. Use char because int might match the return type of a GCC
  1707. builtin and then its argument prototype would still apply. */
  1708. #ifdef __cplusplus
  1709. extern "C"
  1710. #endif
  1711. char $2 ();
  1712. /* The GNU C library defines this for functions which it implements
  1713. to always fail with ENOSYS. Some functions are actually named
  1714. something starting with __ and the normal name is an alias. */
  1715. #if defined __stub_$2 || defined __stub___$2
  1716. choke me
  1717. #endif
  1718. int
  1719. main ()
  1720. {
  1721. return $2 ();
  1722. ;
  1723. return 0;
  1724. }
  1725. _ACEOF
  1726. if ac_fn_c_try_link "$LINENO"; then :
  1727. eval "$3=yes"
  1728. else
  1729. eval "$3=no"
  1730. fi
  1731. rm -f core conftest.err conftest.$ac_objext \
  1732. conftest$ac_exeext conftest.$ac_ext
  1733. fi
  1734. eval ac_res=\$$3
  1735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1736. $as_echo "$ac_res" >&6; }
  1737. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1738. } # ac_fn_c_check_func
  1739. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1740. # ---------------------------------------------
  1741. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1742. # accordingly.
  1743. ac_fn_c_check_decl ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1747. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1749. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1750. if eval \${$3+:} false; then :
  1751. $as_echo_n "(cached) " >&6
  1752. else
  1753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1754. /* end confdefs.h. */
  1755. $4
  1756. int
  1757. main ()
  1758. {
  1759. #ifndef $as_decl_name
  1760. #ifdef __cplusplus
  1761. (void) $as_decl_use;
  1762. #else
  1763. (void) $as_decl_name;
  1764. #endif
  1765. #endif
  1766. ;
  1767. return 0;
  1768. }
  1769. _ACEOF
  1770. if ac_fn_c_try_compile "$LINENO"; then :
  1771. eval "$3=yes"
  1772. else
  1773. eval "$3=no"
  1774. fi
  1775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1776. fi
  1777. eval ac_res=\$$3
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1779. $as_echo "$ac_res" >&6; }
  1780. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1781. } # ac_fn_c_check_decl
  1782. cat >config.log <<_ACEOF
  1783. This file contains any messages produced by compilers while
  1784. running configure, to aid debugging if configure makes a mistake.
  1785. It was created by json-c $as_me 0.12, which was
  1786. generated by GNU Autoconf 2.69. Invocation command line was
  1787. $ $0 $@
  1788. _ACEOF
  1789. exec 5>>config.log
  1790. {
  1791. cat <<_ASUNAME
  1792. ## --------- ##
  1793. ## Platform. ##
  1794. ## --------- ##
  1795. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1796. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1797. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1798. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1799. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1800. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1801. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1802. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1803. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1804. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1805. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1806. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1807. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1808. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1809. _ASUNAME
  1810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1811. for as_dir in $PATH
  1812. do
  1813. IFS=$as_save_IFS
  1814. test -z "$as_dir" && as_dir=.
  1815. $as_echo "PATH: $as_dir"
  1816. done
  1817. IFS=$as_save_IFS
  1818. } >&5
  1819. cat >&5 <<_ACEOF
  1820. ## ----------- ##
  1821. ## Core tests. ##
  1822. ## ----------- ##
  1823. _ACEOF
  1824. # Keep a trace of the command line.
  1825. # Strip out --no-create and --no-recursion so they do not pile up.
  1826. # Strip out --silent because we don't want to record it for future runs.
  1827. # Also quote any args containing shell meta-characters.
  1828. # Make two passes to allow for proper duplicate-argument suppression.
  1829. ac_configure_args=
  1830. ac_configure_args0=
  1831. ac_configure_args1=
  1832. ac_must_keep_next=false
  1833. for ac_pass in 1 2
  1834. do
  1835. for ac_arg
  1836. do
  1837. case $ac_arg in
  1838. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1839. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1840. | -silent | --silent | --silen | --sile | --sil)
  1841. continue ;;
  1842. *\'*)
  1843. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1844. esac
  1845. case $ac_pass in
  1846. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1847. 2)
  1848. as_fn_append ac_configure_args1 " '$ac_arg'"
  1849. if test $ac_must_keep_next = true; then
  1850. ac_must_keep_next=false # Got value, back to normal.
  1851. else
  1852. case $ac_arg in
  1853. *=* | --config-cache | -C | -disable-* | --disable-* \
  1854. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1855. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1856. | -with-* | --with-* | -without-* | --without-* | --x)
  1857. case "$ac_configure_args0 " in
  1858. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1859. esac
  1860. ;;
  1861. -* ) ac_must_keep_next=true ;;
  1862. esac
  1863. fi
  1864. as_fn_append ac_configure_args " '$ac_arg'"
  1865. ;;
  1866. esac
  1867. done
  1868. done
  1869. { ac_configure_args0=; unset ac_configure_args0;}
  1870. { ac_configure_args1=; unset ac_configure_args1;}
  1871. # When interrupted or exit'd, cleanup temporary files, and complete
  1872. # config.log. We remove comments because anyway the quotes in there
  1873. # would cause problems or look ugly.
  1874. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1875. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1876. trap 'exit_status=$?
  1877. # Save into config.log some information that might help in debugging.
  1878. {
  1879. echo
  1880. $as_echo "## ---------------- ##
  1881. ## Cache variables. ##
  1882. ## ---------------- ##"
  1883. echo
  1884. # The following way of writing the cache mishandles newlines in values,
  1885. (
  1886. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1887. eval ac_val=\$$ac_var
  1888. case $ac_val in #(
  1889. *${as_nl}*)
  1890. case $ac_var in #(
  1891. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1892. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1893. esac
  1894. case $ac_var in #(
  1895. _ | IFS | as_nl) ;; #(
  1896. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1897. *) { eval $ac_var=; unset $ac_var;} ;;
  1898. esac ;;
  1899. esac
  1900. done
  1901. (set) 2>&1 |
  1902. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1903. *${as_nl}ac_space=\ *)
  1904. sed -n \
  1905. "s/'\''/'\''\\\\'\'''\''/g;
  1906. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1907. ;; #(
  1908. *)
  1909. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1910. ;;
  1911. esac |
  1912. sort
  1913. )
  1914. echo
  1915. $as_echo "## ----------------- ##
  1916. ## Output variables. ##
  1917. ## ----------------- ##"
  1918. echo
  1919. for ac_var in $ac_subst_vars
  1920. do
  1921. eval ac_val=\$$ac_var
  1922. case $ac_val in
  1923. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1924. esac
  1925. $as_echo "$ac_var='\''$ac_val'\''"
  1926. done | sort
  1927. echo
  1928. if test -n "$ac_subst_files"; then
  1929. $as_echo "## ------------------- ##
  1930. ## File substitutions. ##
  1931. ## ------------------- ##"
  1932. echo
  1933. for ac_var in $ac_subst_files
  1934. do
  1935. eval ac_val=\$$ac_var
  1936. case $ac_val in
  1937. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1938. esac
  1939. $as_echo "$ac_var='\''$ac_val'\''"
  1940. done | sort
  1941. echo
  1942. fi
  1943. if test -s confdefs.h; then
  1944. $as_echo "## ----------- ##
  1945. ## confdefs.h. ##
  1946. ## ----------- ##"
  1947. echo
  1948. cat confdefs.h
  1949. echo
  1950. fi
  1951. test "$ac_signal" != 0 &&
  1952. $as_echo "$as_me: caught signal $ac_signal"
  1953. $as_echo "$as_me: exit $exit_status"
  1954. } >&5
  1955. rm -f core *.core core.conftest.* &&
  1956. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1957. exit $exit_status
  1958. ' 0
  1959. for ac_signal in 1 2 13 15; do
  1960. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1961. done
  1962. ac_signal=0
  1963. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1964. rm -f -r conftest* confdefs.h
  1965. $as_echo "/* confdefs.h */" > confdefs.h
  1966. # Predefined preprocessor variables.
  1967. cat >>confdefs.h <<_ACEOF
  1968. #define PACKAGE_NAME "$PACKAGE_NAME"
  1969. _ACEOF
  1970. cat >>confdefs.h <<_ACEOF
  1971. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1972. _ACEOF
  1973. cat >>confdefs.h <<_ACEOF
  1974. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1975. _ACEOF
  1976. cat >>confdefs.h <<_ACEOF
  1977. #define PACKAGE_STRING "$PACKAGE_STRING"
  1978. _ACEOF
  1979. cat >>confdefs.h <<_ACEOF
  1980. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1981. _ACEOF
  1982. cat >>confdefs.h <<_ACEOF
  1983. #define PACKAGE_URL "$PACKAGE_URL"
  1984. _ACEOF
  1985. # Let the site file select an alternate cache file if it wants to.
  1986. # Prefer an explicitly selected file to automatically selected ones.
  1987. ac_site_file1=NONE
  1988. ac_site_file2=NONE
  1989. if test -n "$CONFIG_SITE"; then
  1990. # We do not want a PATH search for config.site.
  1991. case $CONFIG_SITE in #((
  1992. -*) ac_site_file1=./$CONFIG_SITE;;
  1993. */*) ac_site_file1=$CONFIG_SITE;;
  1994. *) ac_site_file1=./$CONFIG_SITE;;
  1995. esac
  1996. elif test "x$prefix" != xNONE; then
  1997. ac_site_file1=$prefix/share/config.site
  1998. ac_site_file2=$prefix/etc/config.site
  1999. else
  2000. ac_site_file1=$ac_default_prefix/share/config.site
  2001. ac_site_file2=$ac_default_prefix/etc/config.site
  2002. fi
  2003. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2004. do
  2005. test "x$ac_site_file" = xNONE && continue
  2006. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2008. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2009. sed 's/^/| /' "$ac_site_file" >&5
  2010. . "$ac_site_file" \
  2011. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2012. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2013. as_fn_error $? "failed to load site script $ac_site_file
  2014. See \`config.log' for more details" "$LINENO" 5; }
  2015. fi
  2016. done
  2017. if test -r "$cache_file"; then
  2018. # Some versions of bash will fail to source /dev/null (special files
  2019. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2020. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2021. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2022. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2023. case $cache_file in
  2024. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2025. *) . "./$cache_file";;
  2026. esac
  2027. fi
  2028. else
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2030. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2031. >$cache_file
  2032. fi
  2033. # Check that the precious variables saved in the cache have kept the same
  2034. # value.
  2035. ac_cache_corrupted=false
  2036. for ac_var in $ac_precious_vars; do
  2037. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2038. eval ac_new_set=\$ac_env_${ac_var}_set
  2039. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2040. eval ac_new_val=\$ac_env_${ac_var}_value
  2041. case $ac_old_set,$ac_new_set in
  2042. set,)
  2043. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2044. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2045. ac_cache_corrupted=: ;;
  2046. ,set)
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2048. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2049. ac_cache_corrupted=: ;;
  2050. ,);;
  2051. *)
  2052. if test "x$ac_old_val" != "x$ac_new_val"; then
  2053. # differences in whitespace do not lead to failure.
  2054. ac_old_val_w=`echo x $ac_old_val`
  2055. ac_new_val_w=`echo x $ac_new_val`
  2056. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2058. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2059. ac_cache_corrupted=:
  2060. else
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2062. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2063. eval $ac_var=\$ac_old_val
  2064. fi
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2066. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2068. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2069. fi;;
  2070. esac
  2071. # Pass precious variables to config.status.
  2072. if test "$ac_new_set" = set; then
  2073. case $ac_new_val in
  2074. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2075. *) ac_arg=$ac_var=$ac_new_val ;;
  2076. esac
  2077. case " $ac_configure_args " in
  2078. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2079. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2080. esac
  2081. fi
  2082. done
  2083. if $ac_cache_corrupted; then
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2085. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2087. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2088. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2089. fi
  2090. ## -------------------- ##
  2091. ## Main body of script. ##
  2092. ## -------------------- ##
  2093. ac_ext=c
  2094. ac_cpp='$CPP $CPPFLAGS'
  2095. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2096. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2097. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2098. am__api_version='1.14'
  2099. ac_aux_dir=
  2100. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2101. if test -f "$ac_dir/install-sh"; then
  2102. ac_aux_dir=$ac_dir
  2103. ac_install_sh="$ac_aux_dir/install-sh -c"
  2104. break
  2105. elif test -f "$ac_dir/install.sh"; then
  2106. ac_aux_dir=$ac_dir
  2107. ac_install_sh="$ac_aux_dir/install.sh -c"
  2108. break
  2109. elif test -f "$ac_dir/shtool"; then
  2110. ac_aux_dir=$ac_dir
  2111. ac_install_sh="$ac_aux_dir/shtool install -c"
  2112. break
  2113. fi
  2114. done
  2115. if test -z "$ac_aux_dir"; then
  2116. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2117. fi
  2118. # These three variables are undocumented and unsupported,
  2119. # and are intended to be withdrawn in a future Autoconf release.
  2120. # They can cause serious problems if a builder's source tree is in a directory
  2121. # whose full name contains unusual characters.
  2122. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2123. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2124. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2125. # Find a good install program. We prefer a C program (faster),
  2126. # so one script is as good as another. But avoid the broken or
  2127. # incompatible versions:
  2128. # SysV /etc/install, /usr/sbin/install
  2129. # SunOS /usr/etc/install
  2130. # IRIX /sbin/install
  2131. # AIX /bin/install
  2132. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2133. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2134. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2135. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2136. # OS/2's system install, which has a completely different semantic
  2137. # ./install, which can be erroneously created by make from ./install.sh.
  2138. # Reject install programs that cannot install multiple files.
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2140. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2141. if test -z "$INSTALL"; then
  2142. if ${ac_cv_path_install+:} false; then :
  2143. $as_echo_n "(cached) " >&6
  2144. else
  2145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2146. for as_dir in $PATH
  2147. do
  2148. IFS=$as_save_IFS
  2149. test -z "$as_dir" && as_dir=.
  2150. # Account for people who put trailing slashes in PATH elements.
  2151. case $as_dir/ in #((
  2152. ./ | .// | /[cC]/* | \
  2153. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2154. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2155. /usr/ucb/* ) ;;
  2156. *)
  2157. # OSF1 and SCO ODT 3.0 have their own names for install.
  2158. # Don't use installbsd from OSF since it installs stuff as root
  2159. # by default.
  2160. for ac_prog in ginstall scoinst install; do
  2161. for ac_exec_ext in '' $ac_executable_extensions; do
  2162. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2163. if test $ac_prog = install &&
  2164. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2165. # AIX install. It has an incompatible calling convention.
  2166. :
  2167. elif test $ac_prog = install &&
  2168. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2169. # program-specific install script used by HP pwplus--don't use.
  2170. :
  2171. else
  2172. rm -rf conftest.one conftest.two conftest.dir
  2173. echo one > conftest.one
  2174. echo two > conftest.two
  2175. mkdir conftest.dir
  2176. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2177. test -s conftest.one && test -s conftest.two &&
  2178. test -s conftest.dir/conftest.one &&
  2179. test -s conftest.dir/conftest.two
  2180. then
  2181. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2182. break 3
  2183. fi
  2184. fi
  2185. fi
  2186. done
  2187. done
  2188. ;;
  2189. esac
  2190. done
  2191. IFS=$as_save_IFS
  2192. rm -rf conftest.one conftest.two conftest.dir
  2193. fi
  2194. if test "${ac_cv_path_install+set}" = set; then
  2195. INSTALL=$ac_cv_path_install
  2196. else
  2197. # As a last resort, use the slow shell script. Don't cache a
  2198. # value for INSTALL within a source directory, because that will
  2199. # break other packages using the cache if that directory is
  2200. # removed, or if the value is a relative name.
  2201. INSTALL=$ac_install_sh
  2202. fi
  2203. fi
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2205. $as_echo "$INSTALL" >&6; }
  2206. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2207. # It thinks the first close brace ends the variable substitution.
  2208. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2209. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2210. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2212. $as_echo_n "checking whether build environment is sane... " >&6; }
  2213. # Reject unsafe characters in $srcdir or the absolute working directory
  2214. # name. Accept space and tab only in the latter.
  2215. am_lf='
  2216. '
  2217. case `pwd` in
  2218. *[\\\"\#\$\&\'\`$am_lf]*)
  2219. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2220. esac
  2221. case $srcdir in
  2222. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2223. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2224. esac
  2225. # Do 'set' in a subshell so we don't clobber the current shell's
  2226. # arguments. Must try -L first in case configure is actually a
  2227. # symlink; some systems play weird games with the mod time of symlinks
  2228. # (eg FreeBSD returns the mod time of the symlink's containing
  2229. # directory).
  2230. if (
  2231. am_has_slept=no
  2232. for am_try in 1 2; do
  2233. echo "timestamp, slept: $am_has_slept" > conftest.file
  2234. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2235. if test "$*" = "X"; then
  2236. # -L didn't work.
  2237. set X `ls -t "$srcdir/configure" conftest.file`
  2238. fi
  2239. if test "$*" != "X $srcdir/configure conftest.file" \
  2240. && test "$*" != "X conftest.file $srcdir/configure"; then
  2241. # If neither matched, then we have a broken ls. This can happen
  2242. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2243. # broken ls alias from the environment. This has actually
  2244. # happened. Such a system could not be considered "sane".
  2245. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2246. alias in your environment" "$LINENO" 5
  2247. fi
  2248. if test "$2" = conftest.file || test $am_try -eq 2; then
  2249. break
  2250. fi
  2251. # Just in case.
  2252. sleep 1
  2253. am_has_slept=yes
  2254. done
  2255. test "$2" = conftest.file
  2256. )
  2257. then
  2258. # Ok.
  2259. :
  2260. else
  2261. as_fn_error $? "newly created file is older than distributed files!
  2262. Check your system clock" "$LINENO" 5
  2263. fi
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2265. $as_echo "yes" >&6; }
  2266. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2267. # generated files are strictly newer.
  2268. am_sleep_pid=
  2269. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2270. ( sleep 1 ) &
  2271. am_sleep_pid=$!
  2272. fi
  2273. rm -f conftest.file
  2274. test "$program_prefix" != NONE &&
  2275. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2276. # Use a double $ so make ignores it.
  2277. test "$program_suffix" != NONE &&
  2278. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2279. # Double any \ or $.
  2280. # By default was `s,x,x', remove it if useless.
  2281. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2282. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2283. # expand $ac_aux_dir to an absolute path
  2284. am_aux_dir=`cd $ac_aux_dir && pwd`
  2285. if test x"${MISSING+set}" != xset; then
  2286. case $am_aux_dir in
  2287. *\ * | *\ *)
  2288. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2289. *)
  2290. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2291. esac
  2292. fi
  2293. # Use eval to expand $SHELL
  2294. if eval "$MISSING --is-lightweight"; then
  2295. am_missing_run="$MISSING "
  2296. else
  2297. am_missing_run=
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2299. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2300. fi
  2301. if test x"${install_sh}" != xset; then
  2302. case $am_aux_dir in
  2303. *\ * | *\ *)
  2304. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2305. *)
  2306. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2307. esac
  2308. fi
  2309. # Installed binaries are usually stripped using 'strip' when the user
  2310. # run "make install-strip". However 'strip' might not be the right
  2311. # tool to use in cross-compilation environments, therefore Automake
  2312. # will honor the 'STRIP' environment variable to overrule this program.
  2313. if test "$cross_compiling" != no; then
  2314. if test -n "$ac_tool_prefix"; then
  2315. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2316. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2318. $as_echo_n "checking for $ac_word... " >&6; }
  2319. if ${ac_cv_prog_STRIP+:} false; then :
  2320. $as_echo_n "(cached) " >&6
  2321. else
  2322. if test -n "$STRIP"; then
  2323. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2324. else
  2325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2326. for as_dir in $PATH
  2327. do
  2328. IFS=$as_save_IFS
  2329. test -z "$as_dir" && as_dir=.
  2330. for ac_exec_ext in '' $ac_executable_extensions; do
  2331. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2332. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2334. break 2
  2335. fi
  2336. done
  2337. done
  2338. IFS=$as_save_IFS
  2339. fi
  2340. fi
  2341. STRIP=$ac_cv_prog_STRIP
  2342. if test -n "$STRIP"; then
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2344. $as_echo "$STRIP" >&6; }
  2345. else
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2347. $as_echo "no" >&6; }
  2348. fi
  2349. fi
  2350. if test -z "$ac_cv_prog_STRIP"; then
  2351. ac_ct_STRIP=$STRIP
  2352. # Extract the first word of "strip", so it can be a program name with args.
  2353. set dummy strip; ac_word=$2
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2355. $as_echo_n "checking for $ac_word... " >&6; }
  2356. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2357. $as_echo_n "(cached) " >&6
  2358. else
  2359. if test -n "$ac_ct_STRIP"; then
  2360. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2361. else
  2362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2363. for as_dir in $PATH
  2364. do
  2365. IFS=$as_save_IFS
  2366. test -z "$as_dir" && as_dir=.
  2367. for ac_exec_ext in '' $ac_executable_extensions; do
  2368. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2369. ac_cv_prog_ac_ct_STRIP="strip"
  2370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2371. break 2
  2372. fi
  2373. done
  2374. done
  2375. IFS=$as_save_IFS
  2376. fi
  2377. fi
  2378. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2379. if test -n "$ac_ct_STRIP"; then
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2381. $as_echo "$ac_ct_STRIP" >&6; }
  2382. else
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2384. $as_echo "no" >&6; }
  2385. fi
  2386. if test "x$ac_ct_STRIP" = x; then
  2387. STRIP=":"
  2388. else
  2389. case $cross_compiling:$ac_tool_warned in
  2390. yes:)
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2392. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2393. ac_tool_warned=yes ;;
  2394. esac
  2395. STRIP=$ac_ct_STRIP
  2396. fi
  2397. else
  2398. STRIP="$ac_cv_prog_STRIP"
  2399. fi
  2400. fi
  2401. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2403. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2404. if test -z "$MKDIR_P"; then
  2405. if ${ac_cv_path_mkdir+:} false; then :
  2406. $as_echo_n "(cached) " >&6
  2407. else
  2408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2409. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2410. do
  2411. IFS=$as_save_IFS
  2412. test -z "$as_dir" && as_dir=.
  2413. for ac_prog in mkdir gmkdir; do
  2414. for ac_exec_ext in '' $ac_executable_extensions; do
  2415. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2416. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2417. 'mkdir (GNU coreutils) '* | \
  2418. 'mkdir (coreutils) '* | \
  2419. 'mkdir (fileutils) '4.1*)
  2420. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2421. break 3;;
  2422. esac
  2423. done
  2424. done
  2425. done
  2426. IFS=$as_save_IFS
  2427. fi
  2428. test -d ./--version && rmdir ./--version
  2429. if test "${ac_cv_path_mkdir+set}" = set; then
  2430. MKDIR_P="$ac_cv_path_mkdir -p"
  2431. else
  2432. # As a last resort, use the slow shell script. Don't cache a
  2433. # value for MKDIR_P within a source directory, because that will
  2434. # break other packages using the cache if that directory is
  2435. # removed, or if the value is a relative name.
  2436. MKDIR_P="$ac_install_sh -d"
  2437. fi
  2438. fi
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2440. $as_echo "$MKDIR_P" >&6; }
  2441. for ac_prog in gawk mawk nawk awk
  2442. do
  2443. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2444. set dummy $ac_prog; ac_word=$2
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2446. $as_echo_n "checking for $ac_word... " >&6; }
  2447. if ${ac_cv_prog_AWK+:} false; then :
  2448. $as_echo_n "(cached) " >&6
  2449. else
  2450. if test -n "$AWK"; then
  2451. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2452. else
  2453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2454. for as_dir in $PATH
  2455. do
  2456. IFS=$as_save_IFS
  2457. test -z "$as_dir" && as_dir=.
  2458. for ac_exec_ext in '' $ac_executable_extensions; do
  2459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2460. ac_cv_prog_AWK="$ac_prog"
  2461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2462. break 2
  2463. fi
  2464. done
  2465. done
  2466. IFS=$as_save_IFS
  2467. fi
  2468. fi
  2469. AWK=$ac_cv_prog_AWK
  2470. if test -n "$AWK"; then
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2472. $as_echo "$AWK" >&6; }
  2473. else
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2475. $as_echo "no" >&6; }
  2476. fi
  2477. test -n "$AWK" && break
  2478. done
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2480. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2481. set x ${MAKE-make}
  2482. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2483. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2484. $as_echo_n "(cached) " >&6
  2485. else
  2486. cat >conftest.make <<\_ACEOF
  2487. SHELL = /bin/sh
  2488. all:
  2489. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2490. _ACEOF
  2491. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2492. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2493. *@@@%%%=?*=@@@%%%*)
  2494. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2495. *)
  2496. eval ac_cv_prog_make_${ac_make}_set=no;;
  2497. esac
  2498. rm -f conftest.make
  2499. fi
  2500. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2502. $as_echo "yes" >&6; }
  2503. SET_MAKE=
  2504. else
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2506. $as_echo "no" >&6; }
  2507. SET_MAKE="MAKE=${MAKE-make}"
  2508. fi
  2509. rm -rf .tst 2>/dev/null
  2510. mkdir .tst 2>/dev/null
  2511. if test -d .tst; then
  2512. am__leading_dot=.
  2513. else
  2514. am__leading_dot=_
  2515. fi
  2516. rmdir .tst 2>/dev/null
  2517. # Check whether --enable-silent-rules was given.
  2518. if test "${enable_silent_rules+set}" = set; then :
  2519. enableval=$enable_silent_rules;
  2520. fi
  2521. case $enable_silent_rules in # (((
  2522. yes) AM_DEFAULT_VERBOSITY=0;;
  2523. no) AM_DEFAULT_VERBOSITY=1;;
  2524. *) AM_DEFAULT_VERBOSITY=1;;
  2525. esac
  2526. am_make=${MAKE-make}
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2528. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2529. if ${am_cv_make_support_nested_variables+:} false; then :
  2530. $as_echo_n "(cached) " >&6
  2531. else
  2532. if $as_echo 'TRUE=$(BAR$(V))
  2533. BAR0=false
  2534. BAR1=true
  2535. V=1
  2536. am__doit:
  2537. @$(TRUE)
  2538. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2539. am_cv_make_support_nested_variables=yes
  2540. else
  2541. am_cv_make_support_nested_variables=no
  2542. fi
  2543. fi
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2545. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2546. if test $am_cv_make_support_nested_variables = yes; then
  2547. AM_V='$(V)'
  2548. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2549. else
  2550. AM_V=$AM_DEFAULT_VERBOSITY
  2551. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2552. fi
  2553. AM_BACKSLASH='\'
  2554. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2555. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2556. # is not polluted with repeated "-I."
  2557. am__isrc=' -I$(srcdir)'
  2558. # test to see if srcdir already configured
  2559. if test -f $srcdir/config.status; then
  2560. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2561. fi
  2562. fi
  2563. # test whether we have cygpath
  2564. if test -z "$CYGPATH_W"; then
  2565. if (cygpath --version) >/dev/null 2>/dev/null; then
  2566. CYGPATH_W='cygpath -w'
  2567. else
  2568. CYGPATH_W=echo
  2569. fi
  2570. fi
  2571. # Define the identity of the package.
  2572. PACKAGE='json-c'
  2573. VERSION='0.12'
  2574. cat >>confdefs.h <<_ACEOF
  2575. #define PACKAGE "$PACKAGE"
  2576. _ACEOF
  2577. cat >>confdefs.h <<_ACEOF
  2578. #define VERSION "$VERSION"
  2579. _ACEOF
  2580. # Some tools Automake needs.
  2581. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2582. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2583. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2584. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2585. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2586. # For better backward compatibility. To be removed once Automake 1.9.x
  2587. # dies out for good. For more background, see:
  2588. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2589. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2590. mkdir_p='$(MKDIR_P)'
  2591. # We need awk for the "check" target. The system "awk" is bad on
  2592. # some platforms.
  2593. # Always define AMTAR for backward compatibility. Yes, it's still used
  2594. # in the wild :-( We should find a proper way to deprecate it ...
  2595. AMTAR='$${TAR-tar}'
  2596. # We'll loop over all known methods to create a tar archive until one works.
  2597. _am_tools='gnutar pax cpio none'
  2598. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2599. # POSIX will say in a future version that running "rm -f" with no argument
  2600. # is OK; and we want to be able to make that assumption in our Makefile
  2601. # recipes. So use an aggressive probe to check that the usage we want is
  2602. # actually supported "in the wild" to an acceptable degree.
  2603. # See automake bug#10828.
  2604. # To make any issue more visible, cause the running configure to be aborted
  2605. # by default if the 'rm' program in use doesn't match our expectations; the
  2606. # user can still override this though.
  2607. if rm -f && rm -fr && rm -rf; then : OK; else
  2608. cat >&2 <<'END'
  2609. Oops!
  2610. Your 'rm' program seems unable to run without file operands specified
  2611. on the command line, even when the '-f' option is present. This is contrary
  2612. to the behaviour of most rm programs out there, and not conforming with
  2613. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2614. Please tell bug-automake@gnu.org about your system, including the value
  2615. of your $PATH and any error possibly output before this message. This
  2616. can help us improve future automake versions.
  2617. END
  2618. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2619. echo 'Configuration will proceed anyway, since you have set the' >&2
  2620. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2621. echo >&2
  2622. else
  2623. cat >&2 <<'END'
  2624. Aborting the configuration process, to ensure you take notice of the issue.
  2625. You can download and install GNU coreutils to get an 'rm' implementation
  2626. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2627. If you want to complete the configuration process using your problematic
  2628. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2629. to "yes", and re-run configure.
  2630. END
  2631. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2632. fi
  2633. fi
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2635. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2636. set x ${MAKE-make}
  2637. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2638. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2639. $as_echo_n "(cached) " >&6
  2640. else
  2641. cat >conftest.make <<\_ACEOF
  2642. SHELL = /bin/sh
  2643. all:
  2644. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2645. _ACEOF
  2646. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2647. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2648. *@@@%%%=?*=@@@%%%*)
  2649. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2650. *)
  2651. eval ac_cv_prog_make_${ac_make}_set=no;;
  2652. esac
  2653. rm -f conftest.make
  2654. fi
  2655. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2657. $as_echo "yes" >&6; }
  2658. SET_MAKE=
  2659. else
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2661. $as_echo "no" >&6; }
  2662. SET_MAKE="MAKE=${MAKE-make}"
  2663. fi
  2664. # Check whether --enable-rdrand was given.
  2665. if test "${enable_rdrand+set}" = set; then :
  2666. enableval=$enable_rdrand; if test x$enableval = xyes; then
  2667. enable_rdrand=yes
  2668. $as_echo "#define ENABLE_RDRAND 1" >>confdefs.h
  2669. fi
  2670. fi
  2671. if test "x$enable_rdrand" = "xyes"; then
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&5
  2673. $as_echo "RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&6; }
  2674. else
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&5
  2676. $as_echo "RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&6; }
  2677. fi
  2678. # Checks for programs.
  2679. # Checks for libraries.
  2680. # Checks for header files.
  2681. DEPDIR="${am__leading_dot}deps"
  2682. ac_config_commands="$ac_config_commands depfiles"
  2683. am_make=${MAKE-make}
  2684. cat > confinc << 'END'
  2685. am__doit:
  2686. @echo this is the am__doit target
  2687. .PHONY: am__doit
  2688. END
  2689. # If we don't find an include directive, just comment out the code.
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2691. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2692. am__include="#"
  2693. am__quote=
  2694. _am_result=none
  2695. # First try GNU make style include.
  2696. echo "include confinc" > confmf
  2697. # Ignore all kinds of additional output from 'make'.
  2698. case `$am_make -s -f confmf 2> /dev/null` in #(
  2699. *the\ am__doit\ target*)
  2700. am__include=include
  2701. am__quote=
  2702. _am_result=GNU
  2703. ;;
  2704. esac
  2705. # Now try BSD make style include.
  2706. if test "$am__include" = "#"; then
  2707. echo '.include "confinc"' > confmf
  2708. case `$am_make -s -f confmf 2> /dev/null` in #(
  2709. *the\ am__doit\ target*)
  2710. am__include=.include
  2711. am__quote="\""
  2712. _am_result=BSD
  2713. ;;
  2714. esac
  2715. fi
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2717. $as_echo "$_am_result" >&6; }
  2718. rm -f confinc confmf
  2719. # Check whether --enable-dependency-tracking was given.
  2720. if test "${enable_dependency_tracking+set}" = set; then :
  2721. enableval=$enable_dependency_tracking;
  2722. fi
  2723. if test "x$enable_dependency_tracking" != xno; then
  2724. am_depcomp="$ac_aux_dir/depcomp"
  2725. AMDEPBACKSLASH='\'
  2726. am__nodep='_no'
  2727. fi
  2728. if test "x$enable_dependency_tracking" != xno; then
  2729. AMDEP_TRUE=
  2730. AMDEP_FALSE='#'
  2731. else
  2732. AMDEP_TRUE='#'
  2733. AMDEP_FALSE=
  2734. fi
  2735. ac_ext=c
  2736. ac_cpp='$CPP $CPPFLAGS'
  2737. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2738. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2739. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2740. if test -n "$ac_tool_prefix"; then
  2741. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2742. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2744. $as_echo_n "checking for $ac_word... " >&6; }
  2745. if ${ac_cv_prog_CC+:} false; then :
  2746. $as_echo_n "(cached) " >&6
  2747. else
  2748. if test -n "$CC"; then
  2749. ac_cv_prog_CC="$CC" # Let the user override the test.
  2750. else
  2751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2752. for as_dir in $PATH
  2753. do
  2754. IFS=$as_save_IFS
  2755. test -z "$as_dir" && as_dir=.
  2756. for ac_exec_ext in '' $ac_executable_extensions; do
  2757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2758. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2760. break 2
  2761. fi
  2762. done
  2763. done
  2764. IFS=$as_save_IFS
  2765. fi
  2766. fi
  2767. CC=$ac_cv_prog_CC
  2768. if test -n "$CC"; then
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2770. $as_echo "$CC" >&6; }
  2771. else
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2773. $as_echo "no" >&6; }
  2774. fi
  2775. fi
  2776. if test -z "$ac_cv_prog_CC"; then
  2777. ac_ct_CC=$CC
  2778. # Extract the first word of "gcc", so it can be a program name with args.
  2779. set dummy gcc; ac_word=$2
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2781. $as_echo_n "checking for $ac_word... " >&6; }
  2782. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2783. $as_echo_n "(cached) " >&6
  2784. else
  2785. if test -n "$ac_ct_CC"; then
  2786. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2787. else
  2788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2789. for as_dir in $PATH
  2790. do
  2791. IFS=$as_save_IFS
  2792. test -z "$as_dir" && as_dir=.
  2793. for ac_exec_ext in '' $ac_executable_extensions; do
  2794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2795. ac_cv_prog_ac_ct_CC="gcc"
  2796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2797. break 2
  2798. fi
  2799. done
  2800. done
  2801. IFS=$as_save_IFS
  2802. fi
  2803. fi
  2804. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2805. if test -n "$ac_ct_CC"; then
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2807. $as_echo "$ac_ct_CC" >&6; }
  2808. else
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2810. $as_echo "no" >&6; }
  2811. fi
  2812. if test "x$ac_ct_CC" = x; then
  2813. CC=""
  2814. else
  2815. case $cross_compiling:$ac_tool_warned in
  2816. yes:)
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2818. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2819. ac_tool_warned=yes ;;
  2820. esac
  2821. CC=$ac_ct_CC
  2822. fi
  2823. else
  2824. CC="$ac_cv_prog_CC"
  2825. fi
  2826. if test -z "$CC"; then
  2827. if test -n "$ac_tool_prefix"; then
  2828. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2829. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2831. $as_echo_n "checking for $ac_word... " >&6; }
  2832. if ${ac_cv_prog_CC+:} false; then :
  2833. $as_echo_n "(cached) " >&6
  2834. else
  2835. if test -n "$CC"; then
  2836. ac_cv_prog_CC="$CC" # Let the user override the test.
  2837. else
  2838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2839. for as_dir in $PATH
  2840. do
  2841. IFS=$as_save_IFS
  2842. test -z "$as_dir" && as_dir=.
  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_CC="${ac_tool_prefix}cc"
  2846. $as_echo "$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. fi
  2854. CC=$ac_cv_prog_CC
  2855. if test -n "$CC"; then
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2857. $as_echo "$CC" >&6; }
  2858. else
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2860. $as_echo "no" >&6; }
  2861. fi
  2862. fi
  2863. fi
  2864. if test -z "$CC"; then
  2865. # Extract the first word of "cc", so it can be a program name with args.
  2866. set dummy cc; ac_word=$2
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2868. $as_echo_n "checking for $ac_word... " >&6; }
  2869. if ${ac_cv_prog_CC+:} false; then :
  2870. $as_echo_n "(cached) " >&6
  2871. else
  2872. if test -n "$CC"; then
  2873. ac_cv_prog_CC="$CC" # Let the user override the test.
  2874. else
  2875. ac_prog_rejected=no
  2876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2877. for as_dir in $PATH
  2878. do
  2879. IFS=$as_save_IFS
  2880. test -z "$as_dir" && as_dir=.
  2881. for ac_exec_ext in '' $ac_executable_extensions; do
  2882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2883. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2884. ac_prog_rejected=yes
  2885. continue
  2886. fi
  2887. ac_cv_prog_CC="cc"
  2888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2889. break 2
  2890. fi
  2891. done
  2892. done
  2893. IFS=$as_save_IFS
  2894. if test $ac_prog_rejected = yes; then
  2895. # We found a bogon in the path, so make sure we never use it.
  2896. set dummy $ac_cv_prog_CC
  2897. shift
  2898. if test $# != 0; then
  2899. # We chose a different compiler from the bogus one.
  2900. # However, it has the same basename, so the bogon will be chosen
  2901. # first if we set CC to just the basename; use the full file name.
  2902. shift
  2903. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2904. fi
  2905. fi
  2906. fi
  2907. fi
  2908. CC=$ac_cv_prog_CC
  2909. if test -n "$CC"; then
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2911. $as_echo "$CC" >&6; }
  2912. else
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2914. $as_echo "no" >&6; }
  2915. fi
  2916. fi
  2917. if test -z "$CC"; then
  2918. if test -n "$ac_tool_prefix"; then
  2919. for ac_prog in cl.exe
  2920. do
  2921. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2922. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2924. $as_echo_n "checking for $ac_word... " >&6; }
  2925. if ${ac_cv_prog_CC+:} false; then :
  2926. $as_echo_n "(cached) " >&6
  2927. else
  2928. if test -n "$CC"; then
  2929. ac_cv_prog_CC="$CC" # Let the user override the test.
  2930. else
  2931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2932. for as_dir in $PATH
  2933. do
  2934. IFS=$as_save_IFS
  2935. test -z "$as_dir" && as_dir=.
  2936. for ac_exec_ext in '' $ac_executable_extensions; do
  2937. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2938. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2940. break 2
  2941. fi
  2942. done
  2943. done
  2944. IFS=$as_save_IFS
  2945. fi
  2946. fi
  2947. CC=$ac_cv_prog_CC
  2948. if test -n "$CC"; then
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2950. $as_echo "$CC" >&6; }
  2951. else
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2953. $as_echo "no" >&6; }
  2954. fi
  2955. test -n "$CC" && break
  2956. done
  2957. fi
  2958. if test -z "$CC"; then
  2959. ac_ct_CC=$CC
  2960. for ac_prog in cl.exe
  2961. do
  2962. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2963. set dummy $ac_prog; ac_word=$2
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2965. $as_echo_n "checking for $ac_word... " >&6; }
  2966. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2967. $as_echo_n "(cached) " >&6
  2968. else
  2969. if test -n "$ac_ct_CC"; then
  2970. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2971. else
  2972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2973. for as_dir in $PATH
  2974. do
  2975. IFS=$as_save_IFS
  2976. test -z "$as_dir" && as_dir=.
  2977. for ac_exec_ext in '' $ac_executable_extensions; do
  2978. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2979. ac_cv_prog_ac_ct_CC="$ac_prog"
  2980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2981. break 2
  2982. fi
  2983. done
  2984. done
  2985. IFS=$as_save_IFS
  2986. fi
  2987. fi
  2988. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2989. if test -n "$ac_ct_CC"; then
  2990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2991. $as_echo "$ac_ct_CC" >&6; }
  2992. else
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2994. $as_echo "no" >&6; }
  2995. fi
  2996. test -n "$ac_ct_CC" && break
  2997. done
  2998. if test "x$ac_ct_CC" = x; then
  2999. CC=""
  3000. else
  3001. case $cross_compiling:$ac_tool_warned in
  3002. yes:)
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3004. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3005. ac_tool_warned=yes ;;
  3006. esac
  3007. CC=$ac_ct_CC
  3008. fi
  3009. fi
  3010. fi
  3011. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3012. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3013. as_fn_error $? "no acceptable C compiler found in \$PATH
  3014. See \`config.log' for more details" "$LINENO" 5; }
  3015. # Provide some information about the compiler.
  3016. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3017. set X $ac_compile
  3018. ac_compiler=$2
  3019. for ac_option in --version -v -V -qversion; do
  3020. { { ac_try="$ac_compiler $ac_option >&5"
  3021. case "(($ac_try" in
  3022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3023. *) ac_try_echo=$ac_try;;
  3024. esac
  3025. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3026. $as_echo "$ac_try_echo"; } >&5
  3027. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3028. ac_status=$?
  3029. if test -s conftest.err; then
  3030. sed '10a\
  3031. ... rest of stderr output deleted ...
  3032. 10q' conftest.err >conftest.er1
  3033. cat conftest.er1 >&5
  3034. fi
  3035. rm -f conftest.er1 conftest.err
  3036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3037. test $ac_status = 0; }
  3038. done
  3039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3040. /* end confdefs.h. */
  3041. int
  3042. main ()
  3043. {
  3044. ;
  3045. return 0;
  3046. }
  3047. _ACEOF
  3048. ac_clean_files_save=$ac_clean_files
  3049. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3050. # Try to create an executable without -o first, disregard a.out.
  3051. # It will help us diagnose broken compilers, and finding out an intuition
  3052. # of exeext.
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3054. $as_echo_n "checking whether the C compiler works... " >&6; }
  3055. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3056. # The possible output files:
  3057. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3058. ac_rmfiles=
  3059. for ac_file in $ac_files
  3060. do
  3061. case $ac_file in
  3062. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3063. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3064. esac
  3065. done
  3066. rm -f $ac_rmfiles
  3067. if { { ac_try="$ac_link_default"
  3068. case "(($ac_try" in
  3069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3070. *) ac_try_echo=$ac_try;;
  3071. esac
  3072. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3073. $as_echo "$ac_try_echo"; } >&5
  3074. (eval "$ac_link_default") 2>&5
  3075. ac_status=$?
  3076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3077. test $ac_status = 0; }; then :
  3078. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3079. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3080. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3081. # so that the user can short-circuit this test for compilers unknown to
  3082. # Autoconf.
  3083. for ac_file in $ac_files ''
  3084. do
  3085. test -f "$ac_file" || continue
  3086. case $ac_file in
  3087. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3088. ;;
  3089. [ab].out )
  3090. # We found the default executable, but exeext='' is most
  3091. # certainly right.
  3092. break;;
  3093. *.* )
  3094. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3095. then :; else
  3096. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3097. fi
  3098. # We set ac_cv_exeext here because the later test for it is not
  3099. # safe: cross compilers may not add the suffix if given an `-o'
  3100. # argument, so we may need to know it at that point already.
  3101. # Even if this section looks crufty: it has the advantage of
  3102. # actually working.
  3103. break;;
  3104. * )
  3105. break;;
  3106. esac
  3107. done
  3108. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3109. else
  3110. ac_file=''
  3111. fi
  3112. if test -z "$ac_file"; then :
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3114. $as_echo "no" >&6; }
  3115. $as_echo "$as_me: failed program was:" >&5
  3116. sed 's/^/| /' conftest.$ac_ext >&5
  3117. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3118. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3119. as_fn_error 77 "C compiler cannot create executables
  3120. See \`config.log' for more details" "$LINENO" 5; }
  3121. else
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3123. $as_echo "yes" >&6; }
  3124. fi
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3126. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3128. $as_echo "$ac_file" >&6; }
  3129. ac_exeext=$ac_cv_exeext
  3130. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3131. ac_clean_files=$ac_clean_files_save
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3133. $as_echo_n "checking for suffix of executables... " >&6; }
  3134. if { { ac_try="$ac_link"
  3135. case "(($ac_try" in
  3136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3137. *) ac_try_echo=$ac_try;;
  3138. esac
  3139. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3140. $as_echo "$ac_try_echo"; } >&5
  3141. (eval "$ac_link") 2>&5
  3142. ac_status=$?
  3143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3144. test $ac_status = 0; }; then :
  3145. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3146. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3147. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3148. # `rm'.
  3149. for ac_file in conftest.exe conftest conftest.*; do
  3150. test -f "$ac_file" || continue
  3151. case $ac_file in
  3152. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3153. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3154. break;;
  3155. * ) break;;
  3156. esac
  3157. done
  3158. else
  3159. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3160. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3161. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3162. See \`config.log' for more details" "$LINENO" 5; }
  3163. fi
  3164. rm -f conftest conftest$ac_cv_exeext
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3166. $as_echo "$ac_cv_exeext" >&6; }
  3167. rm -f conftest.$ac_ext
  3168. EXEEXT=$ac_cv_exeext
  3169. ac_exeext=$EXEEXT
  3170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3171. /* end confdefs.h. */
  3172. #include <stdio.h>
  3173. int
  3174. main ()
  3175. {
  3176. FILE *f = fopen ("conftest.out", "w");
  3177. return ferror (f) || fclose (f) != 0;
  3178. ;
  3179. return 0;
  3180. }
  3181. _ACEOF
  3182. ac_clean_files="$ac_clean_files conftest.out"
  3183. # Check that the compiler produces executables we can run. If not, either
  3184. # the compiler is broken, or we cross compile.
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3186. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3187. if test "$cross_compiling" != yes; then
  3188. { { ac_try="$ac_link"
  3189. case "(($ac_try" in
  3190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3191. *) ac_try_echo=$ac_try;;
  3192. esac
  3193. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3194. $as_echo "$ac_try_echo"; } >&5
  3195. (eval "$ac_link") 2>&5
  3196. ac_status=$?
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3198. test $ac_status = 0; }
  3199. if { ac_try='./conftest$ac_cv_exeext'
  3200. { { case "(($ac_try" in
  3201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3202. *) ac_try_echo=$ac_try;;
  3203. esac
  3204. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3205. $as_echo "$ac_try_echo"; } >&5
  3206. (eval "$ac_try") 2>&5
  3207. ac_status=$?
  3208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3209. test $ac_status = 0; }; }; then
  3210. cross_compiling=no
  3211. else
  3212. if test "$cross_compiling" = maybe; then
  3213. cross_compiling=yes
  3214. else
  3215. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3216. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3217. as_fn_error $? "cannot run C compiled programs.
  3218. If you meant to cross compile, use \`--host'.
  3219. See \`config.log' for more details" "$LINENO" 5; }
  3220. fi
  3221. fi
  3222. fi
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3224. $as_echo "$cross_compiling" >&6; }
  3225. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3226. ac_clean_files=$ac_clean_files_save
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3228. $as_echo_n "checking for suffix of object files... " >&6; }
  3229. if ${ac_cv_objext+:} false; then :
  3230. $as_echo_n "(cached) " >&6
  3231. else
  3232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3233. /* end confdefs.h. */
  3234. int
  3235. main ()
  3236. {
  3237. ;
  3238. return 0;
  3239. }
  3240. _ACEOF
  3241. rm -f conftest.o conftest.obj
  3242. if { { ac_try="$ac_compile"
  3243. case "(($ac_try" in
  3244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3245. *) ac_try_echo=$ac_try;;
  3246. esac
  3247. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3248. $as_echo "$ac_try_echo"; } >&5
  3249. (eval "$ac_compile") 2>&5
  3250. ac_status=$?
  3251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3252. test $ac_status = 0; }; then :
  3253. for ac_file in conftest.o conftest.obj conftest.*; do
  3254. test -f "$ac_file" || continue;
  3255. case $ac_file in
  3256. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3257. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3258. break;;
  3259. esac
  3260. done
  3261. else
  3262. $as_echo "$as_me: failed program was:" >&5
  3263. sed 's/^/| /' conftest.$ac_ext >&5
  3264. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3265. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3266. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3267. See \`config.log' for more details" "$LINENO" 5; }
  3268. fi
  3269. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3270. fi
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3272. $as_echo "$ac_cv_objext" >&6; }
  3273. OBJEXT=$ac_cv_objext
  3274. ac_objext=$OBJEXT
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3276. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3277. if ${ac_cv_c_compiler_gnu+:} false; then :
  3278. $as_echo_n "(cached) " >&6
  3279. else
  3280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3281. /* end confdefs.h. */
  3282. int
  3283. main ()
  3284. {
  3285. #ifndef __GNUC__
  3286. choke me
  3287. #endif
  3288. ;
  3289. return 0;
  3290. }
  3291. _ACEOF
  3292. if ac_fn_c_try_compile "$LINENO"; then :
  3293. ac_compiler_gnu=yes
  3294. else
  3295. ac_compiler_gnu=no
  3296. fi
  3297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3298. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3299. fi
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3301. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3302. if test $ac_compiler_gnu = yes; then
  3303. GCC=yes
  3304. else
  3305. GCC=
  3306. fi
  3307. ac_test_CFLAGS=${CFLAGS+set}
  3308. ac_save_CFLAGS=$CFLAGS
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3310. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3311. if ${ac_cv_prog_cc_g+:} false; then :
  3312. $as_echo_n "(cached) " >&6
  3313. else
  3314. ac_save_c_werror_flag=$ac_c_werror_flag
  3315. ac_c_werror_flag=yes
  3316. ac_cv_prog_cc_g=no
  3317. CFLAGS="-g"
  3318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3319. /* end confdefs.h. */
  3320. int
  3321. main ()
  3322. {
  3323. ;
  3324. return 0;
  3325. }
  3326. _ACEOF
  3327. if ac_fn_c_try_compile "$LINENO"; then :
  3328. ac_cv_prog_cc_g=yes
  3329. else
  3330. CFLAGS=""
  3331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3332. /* end confdefs.h. */
  3333. int
  3334. main ()
  3335. {
  3336. ;
  3337. return 0;
  3338. }
  3339. _ACEOF
  3340. if ac_fn_c_try_compile "$LINENO"; then :
  3341. else
  3342. ac_c_werror_flag=$ac_save_c_werror_flag
  3343. CFLAGS="-g"
  3344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3345. /* end confdefs.h. */
  3346. int
  3347. main ()
  3348. {
  3349. ;
  3350. return 0;
  3351. }
  3352. _ACEOF
  3353. if ac_fn_c_try_compile "$LINENO"; then :
  3354. ac_cv_prog_cc_g=yes
  3355. fi
  3356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3357. fi
  3358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3359. fi
  3360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3361. ac_c_werror_flag=$ac_save_c_werror_flag
  3362. fi
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3364. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3365. if test "$ac_test_CFLAGS" = set; then
  3366. CFLAGS=$ac_save_CFLAGS
  3367. elif test $ac_cv_prog_cc_g = yes; then
  3368. if test "$GCC" = yes; then
  3369. CFLAGS="-g -O2"
  3370. else
  3371. CFLAGS="-g"
  3372. fi
  3373. else
  3374. if test "$GCC" = yes; then
  3375. CFLAGS="-O2"
  3376. else
  3377. CFLAGS=
  3378. fi
  3379. fi
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3381. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3382. if ${ac_cv_prog_cc_c89+:} false; then :
  3383. $as_echo_n "(cached) " >&6
  3384. else
  3385. ac_cv_prog_cc_c89=no
  3386. ac_save_CC=$CC
  3387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3388. /* end confdefs.h. */
  3389. #include <stdarg.h>
  3390. #include <stdio.h>
  3391. struct stat;
  3392. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3393. struct buf { int x; };
  3394. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3395. static char *e (p, i)
  3396. char **p;
  3397. int i;
  3398. {
  3399. return p[i];
  3400. }
  3401. static char *f (char * (*g) (char **, int), char **p, ...)
  3402. {
  3403. char *s;
  3404. va_list v;
  3405. va_start (v,p);
  3406. s = g (p, va_arg (v,int));
  3407. va_end (v);
  3408. return s;
  3409. }
  3410. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3411. function prototypes and stuff, but not '\xHH' hex character constants.
  3412. These don't provoke an error unfortunately, instead are silently treated
  3413. as 'x'. The following induces an error, until -std is added to get
  3414. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3415. array size at least. It's necessary to write '\x00'==0 to get something
  3416. that's true only with -std. */
  3417. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3418. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3419. inside strings and character constants. */
  3420. #define FOO(x) 'x'
  3421. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3422. int test (int i, double x);
  3423. struct s1 {int (*f) (int a);};
  3424. struct s2 {int (*f) (double a);};
  3425. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3426. int argc;
  3427. char **argv;
  3428. int
  3429. main ()
  3430. {
  3431. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3432. ;
  3433. return 0;
  3434. }
  3435. _ACEOF
  3436. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3437. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3438. do
  3439. CC="$ac_save_CC $ac_arg"
  3440. if ac_fn_c_try_compile "$LINENO"; then :
  3441. ac_cv_prog_cc_c89=$ac_arg
  3442. fi
  3443. rm -f core conftest.err conftest.$ac_objext
  3444. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3445. done
  3446. rm -f conftest.$ac_ext
  3447. CC=$ac_save_CC
  3448. fi
  3449. # AC_CACHE_VAL
  3450. case "x$ac_cv_prog_cc_c89" in
  3451. x)
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3453. $as_echo "none needed" >&6; } ;;
  3454. xno)
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3456. $as_echo "unsupported" >&6; } ;;
  3457. *)
  3458. CC="$CC $ac_cv_prog_cc_c89"
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3460. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3461. esac
  3462. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3463. fi
  3464. ac_ext=c
  3465. ac_cpp='$CPP $CPPFLAGS'
  3466. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3467. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3468. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3469. ac_ext=c
  3470. ac_cpp='$CPP $CPPFLAGS'
  3471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3475. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3476. if ${am_cv_prog_cc_c_o+:} false; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3480. /* end confdefs.h. */
  3481. int
  3482. main ()
  3483. {
  3484. ;
  3485. return 0;
  3486. }
  3487. _ACEOF
  3488. # Make sure it works both with $CC and with simple cc.
  3489. # Following AC_PROG_CC_C_O, we do the test twice because some
  3490. # compilers refuse to overwrite an existing .o file with -o,
  3491. # though they will create one.
  3492. am_cv_prog_cc_c_o=yes
  3493. for am_i in 1 2; do
  3494. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3495. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3496. ac_status=$?
  3497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3498. (exit $ac_status); } \
  3499. && test -f conftest2.$ac_objext; then
  3500. : OK
  3501. else
  3502. am_cv_prog_cc_c_o=no
  3503. break
  3504. fi
  3505. done
  3506. rm -f core conftest*
  3507. unset am_i
  3508. fi
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3510. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3511. if test "$am_cv_prog_cc_c_o" != yes; then
  3512. # Losing compiler, so override with the script.
  3513. # FIXME: It is wrong to rewrite CC.
  3514. # But if we don't then we get into trouble of one sort or another.
  3515. # A longer-term fix would be to have automake use am__CC in this case,
  3516. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3517. CC="$am_aux_dir/compile $CC"
  3518. fi
  3519. ac_ext=c
  3520. ac_cpp='$CPP $CPPFLAGS'
  3521. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3522. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3523. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3524. depcc="$CC" am_compiler_list=
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3526. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3527. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3528. $as_echo_n "(cached) " >&6
  3529. else
  3530. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3531. # We make a subdir and do the tests there. Otherwise we can end up
  3532. # making bogus files that we don't know about and never remove. For
  3533. # instance it was reported that on HP-UX the gcc test will end up
  3534. # making a dummy file named 'D' -- because '-MD' means "put the output
  3535. # in D".
  3536. rm -rf conftest.dir
  3537. mkdir conftest.dir
  3538. # Copy depcomp to subdir because otherwise we won't find it if we're
  3539. # using a relative directory.
  3540. cp "$am_depcomp" conftest.dir
  3541. cd conftest.dir
  3542. # We will build objects and dependencies in a subdirectory because
  3543. # it helps to detect inapplicable dependency modes. For instance
  3544. # both Tru64's cc and ICC support -MD to output dependencies as a
  3545. # side effect of compilation, but ICC will put the dependencies in
  3546. # the current directory while Tru64 will put them in the object
  3547. # directory.
  3548. mkdir sub
  3549. am_cv_CC_dependencies_compiler_type=none
  3550. if test "$am_compiler_list" = ""; then
  3551. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3552. fi
  3553. am__universal=false
  3554. case " $depcc " in #(
  3555. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3556. esac
  3557. for depmode in $am_compiler_list; do
  3558. # Setup a source with many dependencies, because some compilers
  3559. # like to wrap large dependency lists on column 80 (with \), and
  3560. # we should not choose a depcomp mode which is confused by this.
  3561. #
  3562. # We need to recreate these files for each test, as the compiler may
  3563. # overwrite some of them when testing with obscure command lines.
  3564. # This happens at least with the AIX C compiler.
  3565. : > sub/conftest.c
  3566. for i in 1 2 3 4 5 6; do
  3567. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3568. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3569. # Solaris 10 /bin/sh.
  3570. echo '/* dummy */' > sub/conftst$i.h
  3571. done
  3572. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3573. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3574. # mode. It turns out that the SunPro C++ compiler does not properly
  3575. # handle '-M -o', and we need to detect this. Also, some Intel
  3576. # versions had trouble with output in subdirs.
  3577. am__obj=sub/conftest.${OBJEXT-o}
  3578. am__minus_obj="-o $am__obj"
  3579. case $depmode in
  3580. gcc)
  3581. # This depmode causes a compiler race in universal mode.
  3582. test "$am__universal" = false || continue
  3583. ;;
  3584. nosideeffect)
  3585. # After this tag, mechanisms are not by side-effect, so they'll
  3586. # only be used when explicitly requested.
  3587. if test "x$enable_dependency_tracking" = xyes; then
  3588. continue
  3589. else
  3590. break
  3591. fi
  3592. ;;
  3593. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3594. # This compiler won't grok '-c -o', but also, the minuso test has
  3595. # not run yet. These depmodes are late enough in the game, and
  3596. # so weak that their functioning should not be impacted.
  3597. am__obj=conftest.${OBJEXT-o}
  3598. am__minus_obj=
  3599. ;;
  3600. none) break ;;
  3601. esac
  3602. if depmode=$depmode \
  3603. source=sub/conftest.c object=$am__obj \
  3604. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3605. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3606. >/dev/null 2>conftest.err &&
  3607. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3608. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3609. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3610. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3611. # icc doesn't choke on unknown options, it will just issue warnings
  3612. # or remarks (even with -Werror). So we grep stderr for any message
  3613. # that says an option was ignored or not supported.
  3614. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3615. # icc: Command line warning: ignoring option '-M'; no argument required
  3616. # The diagnosis changed in icc 8.0:
  3617. # icc: Command line remark: option '-MP' not supported
  3618. if (grep 'ignoring option' conftest.err ||
  3619. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3620. am_cv_CC_dependencies_compiler_type=$depmode
  3621. break
  3622. fi
  3623. fi
  3624. done
  3625. cd ..
  3626. rm -rf conftest.dir
  3627. else
  3628. am_cv_CC_dependencies_compiler_type=none
  3629. fi
  3630. fi
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3632. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3633. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3634. if
  3635. test "x$enable_dependency_tracking" != xno \
  3636. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3637. am__fastdepCC_TRUE=
  3638. am__fastdepCC_FALSE='#'
  3639. else
  3640. am__fastdepCC_TRUE='#'
  3641. am__fastdepCC_FALSE=
  3642. fi
  3643. ac_config_headers="$ac_config_headers config.h"
  3644. ac_config_headers="$ac_config_headers json_config.h"
  3645. ac_ext=c
  3646. ac_cpp='$CPP $CPPFLAGS'
  3647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3651. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3652. # On Suns, sometimes $CPP names a directory.
  3653. if test -n "$CPP" && test -d "$CPP"; then
  3654. CPP=
  3655. fi
  3656. if test -z "$CPP"; then
  3657. if ${ac_cv_prog_CPP+:} false; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. # Double quotes because CPP needs to be expanded
  3661. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3662. do
  3663. ac_preproc_ok=false
  3664. for ac_c_preproc_warn_flag in '' yes
  3665. do
  3666. # Use a header file that comes with gcc, so configuring glibc
  3667. # with a fresh cross-compiler works.
  3668. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3669. # <limits.h> exists even on freestanding compilers.
  3670. # On the NeXT, cc -E runs the code through the compiler's parser,
  3671. # not just through cpp. "Syntax error" is here to catch this case.
  3672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3673. /* end confdefs.h. */
  3674. #ifdef __STDC__
  3675. # include <limits.h>
  3676. #else
  3677. # include <assert.h>
  3678. #endif
  3679. Syntax error
  3680. _ACEOF
  3681. if ac_fn_c_try_cpp "$LINENO"; then :
  3682. else
  3683. # Broken: fails on valid input.
  3684. continue
  3685. fi
  3686. rm -f conftest.err conftest.i conftest.$ac_ext
  3687. # OK, works on sane cases. Now check whether nonexistent headers
  3688. # can be detected and how.
  3689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3690. /* end confdefs.h. */
  3691. #include <ac_nonexistent.h>
  3692. _ACEOF
  3693. if ac_fn_c_try_cpp "$LINENO"; then :
  3694. # Broken: success on invalid input.
  3695. continue
  3696. else
  3697. # Passes both tests.
  3698. ac_preproc_ok=:
  3699. break
  3700. fi
  3701. rm -f conftest.err conftest.i conftest.$ac_ext
  3702. done
  3703. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3704. rm -f conftest.i conftest.err conftest.$ac_ext
  3705. if $ac_preproc_ok; then :
  3706. break
  3707. fi
  3708. done
  3709. ac_cv_prog_CPP=$CPP
  3710. fi
  3711. CPP=$ac_cv_prog_CPP
  3712. else
  3713. ac_cv_prog_CPP=$CPP
  3714. fi
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3716. $as_echo "$CPP" >&6; }
  3717. ac_preproc_ok=false
  3718. for ac_c_preproc_warn_flag in '' yes
  3719. do
  3720. # Use a header file that comes with gcc, so configuring glibc
  3721. # with a fresh cross-compiler works.
  3722. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3723. # <limits.h> exists even on freestanding compilers.
  3724. # On the NeXT, cc -E runs the code through the compiler's parser,
  3725. # not just through cpp. "Syntax error" is here to catch this case.
  3726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3727. /* end confdefs.h. */
  3728. #ifdef __STDC__
  3729. # include <limits.h>
  3730. #else
  3731. # include <assert.h>
  3732. #endif
  3733. Syntax error
  3734. _ACEOF
  3735. if ac_fn_c_try_cpp "$LINENO"; then :
  3736. else
  3737. # Broken: fails on valid input.
  3738. continue
  3739. fi
  3740. rm -f conftest.err conftest.i conftest.$ac_ext
  3741. # OK, works on sane cases. Now check whether nonexistent headers
  3742. # can be detected and how.
  3743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3744. /* end confdefs.h. */
  3745. #include <ac_nonexistent.h>
  3746. _ACEOF
  3747. if ac_fn_c_try_cpp "$LINENO"; then :
  3748. # Broken: success on invalid input.
  3749. continue
  3750. else
  3751. # Passes both tests.
  3752. ac_preproc_ok=:
  3753. break
  3754. fi
  3755. rm -f conftest.err conftest.i conftest.$ac_ext
  3756. done
  3757. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3758. rm -f conftest.i conftest.err conftest.$ac_ext
  3759. if $ac_preproc_ok; then :
  3760. else
  3761. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3762. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3763. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3764. See \`config.log' for more details" "$LINENO" 5; }
  3765. fi
  3766. ac_ext=c
  3767. ac_cpp='$CPP $CPPFLAGS'
  3768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3772. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3773. if ${ac_cv_path_GREP+:} false; then :
  3774. $as_echo_n "(cached) " >&6
  3775. else
  3776. if test -z "$GREP"; then
  3777. ac_path_GREP_found=false
  3778. # Loop through the user's path and test for each of PROGNAME-LIST
  3779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3780. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3781. do
  3782. IFS=$as_save_IFS
  3783. test -z "$as_dir" && as_dir=.
  3784. for ac_prog in grep ggrep; do
  3785. for ac_exec_ext in '' $ac_executable_extensions; do
  3786. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3787. as_fn_executable_p "$ac_path_GREP" || continue
  3788. # Check for GNU ac_path_GREP and select it if it is found.
  3789. # Check for GNU $ac_path_GREP
  3790. case `"$ac_path_GREP" --version 2>&1` in
  3791. *GNU*)
  3792. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3793. *)
  3794. ac_count=0
  3795. $as_echo_n 0123456789 >"conftest.in"
  3796. while :
  3797. do
  3798. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3799. mv "conftest.tmp" "conftest.in"
  3800. cp "conftest.in" "conftest.nl"
  3801. $as_echo 'GREP' >> "conftest.nl"
  3802. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3803. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3804. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3805. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3806. # Best one so far, save it but keep looking for a better one
  3807. ac_cv_path_GREP="$ac_path_GREP"
  3808. ac_path_GREP_max=$ac_count
  3809. fi
  3810. # 10*(2^10) chars as input seems more than enough
  3811. test $ac_count -gt 10 && break
  3812. done
  3813. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3814. esac
  3815. $ac_path_GREP_found && break 3
  3816. done
  3817. done
  3818. done
  3819. IFS=$as_save_IFS
  3820. if test -z "$ac_cv_path_GREP"; then
  3821. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3822. fi
  3823. else
  3824. ac_cv_path_GREP=$GREP
  3825. fi
  3826. fi
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3828. $as_echo "$ac_cv_path_GREP" >&6; }
  3829. GREP="$ac_cv_path_GREP"
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3831. $as_echo_n "checking for egrep... " >&6; }
  3832. if ${ac_cv_path_EGREP+:} false; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3836. then ac_cv_path_EGREP="$GREP -E"
  3837. else
  3838. if test -z "$EGREP"; then
  3839. ac_path_EGREP_found=false
  3840. # Loop through the user's path and test for each of PROGNAME-LIST
  3841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3842. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3843. do
  3844. IFS=$as_save_IFS
  3845. test -z "$as_dir" && as_dir=.
  3846. for ac_prog in egrep; do
  3847. for ac_exec_ext in '' $ac_executable_extensions; do
  3848. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3849. as_fn_executable_p "$ac_path_EGREP" || continue
  3850. # Check for GNU ac_path_EGREP and select it if it is found.
  3851. # Check for GNU $ac_path_EGREP
  3852. case `"$ac_path_EGREP" --version 2>&1` in
  3853. *GNU*)
  3854. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3855. *)
  3856. ac_count=0
  3857. $as_echo_n 0123456789 >"conftest.in"
  3858. while :
  3859. do
  3860. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3861. mv "conftest.tmp" "conftest.in"
  3862. cp "conftest.in" "conftest.nl"
  3863. $as_echo 'EGREP' >> "conftest.nl"
  3864. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3865. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3866. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3867. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3868. # Best one so far, save it but keep looking for a better one
  3869. ac_cv_path_EGREP="$ac_path_EGREP"
  3870. ac_path_EGREP_max=$ac_count
  3871. fi
  3872. # 10*(2^10) chars as input seems more than enough
  3873. test $ac_count -gt 10 && break
  3874. done
  3875. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3876. esac
  3877. $ac_path_EGREP_found && break 3
  3878. done
  3879. done
  3880. done
  3881. IFS=$as_save_IFS
  3882. if test -z "$ac_cv_path_EGREP"; then
  3883. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3884. fi
  3885. else
  3886. ac_cv_path_EGREP=$EGREP
  3887. fi
  3888. fi
  3889. fi
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3891. $as_echo "$ac_cv_path_EGREP" >&6; }
  3892. EGREP="$ac_cv_path_EGREP"
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3894. $as_echo_n "checking for ANSI C header files... " >&6; }
  3895. if ${ac_cv_header_stdc+:} false; then :
  3896. $as_echo_n "(cached) " >&6
  3897. else
  3898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3899. /* end confdefs.h. */
  3900. #include <stdlib.h>
  3901. #include <stdarg.h>
  3902. #include <string.h>
  3903. #include <float.h>
  3904. int
  3905. main ()
  3906. {
  3907. ;
  3908. return 0;
  3909. }
  3910. _ACEOF
  3911. if ac_fn_c_try_compile "$LINENO"; then :
  3912. ac_cv_header_stdc=yes
  3913. else
  3914. ac_cv_header_stdc=no
  3915. fi
  3916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3917. if test $ac_cv_header_stdc = yes; then
  3918. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3920. /* end confdefs.h. */
  3921. #include <string.h>
  3922. _ACEOF
  3923. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3924. $EGREP "memchr" >/dev/null 2>&1; then :
  3925. else
  3926. ac_cv_header_stdc=no
  3927. fi
  3928. rm -f conftest*
  3929. fi
  3930. if test $ac_cv_header_stdc = yes; then
  3931. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3933. /* end confdefs.h. */
  3934. #include <stdlib.h>
  3935. _ACEOF
  3936. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3937. $EGREP "free" >/dev/null 2>&1; then :
  3938. else
  3939. ac_cv_header_stdc=no
  3940. fi
  3941. rm -f conftest*
  3942. fi
  3943. if test $ac_cv_header_stdc = yes; then
  3944. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3945. if test "$cross_compiling" = yes; then :
  3946. :
  3947. else
  3948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3949. /* end confdefs.h. */
  3950. #include <ctype.h>
  3951. #include <stdlib.h>
  3952. #if ((' ' & 0x0FF) == 0x020)
  3953. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3954. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3955. #else
  3956. # define ISLOWER(c) \
  3957. (('a' <= (c) && (c) <= 'i') \
  3958. || ('j' <= (c) && (c) <= 'r') \
  3959. || ('s' <= (c) && (c) <= 'z'))
  3960. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3961. #endif
  3962. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3963. int
  3964. main ()
  3965. {
  3966. int i;
  3967. for (i = 0; i < 256; i++)
  3968. if (XOR (islower (i), ISLOWER (i))
  3969. || toupper (i) != TOUPPER (i))
  3970. return 2;
  3971. return 0;
  3972. }
  3973. _ACEOF
  3974. if ac_fn_c_try_run "$LINENO"; then :
  3975. else
  3976. ac_cv_header_stdc=no
  3977. fi
  3978. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3979. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3980. fi
  3981. fi
  3982. fi
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3984. $as_echo "$ac_cv_header_stdc" >&6; }
  3985. if test $ac_cv_header_stdc = yes; then
  3986. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3987. fi
  3988. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3989. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3990. inttypes.h stdint.h unistd.h
  3991. do :
  3992. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3993. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3994. "
  3995. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3996. cat >>confdefs.h <<_ACEOF
  3997. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3998. _ACEOF
  3999. fi
  4000. done
  4001. for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/cdefs.h sys/param.h stdarg.h locale.h endian.h
  4002. do :
  4003. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4004. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4005. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4006. cat >>confdefs.h <<_ACEOF
  4007. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4008. _ACEOF
  4009. fi
  4010. done
  4011. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  4012. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  4013. $as_echo "#define JSON_C_HAVE_INTTYPES_H 1" >>confdefs.h
  4014. fi
  4015. # Checks for typedefs, structures, and compiler characteristics.
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4017. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4018. if ${ac_cv_c_const+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4022. /* end confdefs.h. */
  4023. int
  4024. main ()
  4025. {
  4026. #ifndef __cplusplus
  4027. /* Ultrix mips cc rejects this sort of thing. */
  4028. typedef int charset[2];
  4029. const charset cs = { 0, 0 };
  4030. /* SunOS 4.1.1 cc rejects this. */
  4031. char const *const *pcpcc;
  4032. char **ppc;
  4033. /* NEC SVR4.0.2 mips cc rejects this. */
  4034. struct point {int x, y;};
  4035. static struct point const zero = {0,0};
  4036. /* AIX XL C 1.02.0.0 rejects this.
  4037. It does not let you subtract one const X* pointer from another in
  4038. an arm of an if-expression whose if-part is not a constant
  4039. expression */
  4040. const char *g = "string";
  4041. pcpcc = &g + (g ? g-g : 0);
  4042. /* HPUX 7.0 cc rejects these. */
  4043. ++pcpcc;
  4044. ppc = (char**) pcpcc;
  4045. pcpcc = (char const *const *) ppc;
  4046. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4047. char tx;
  4048. char *t = &tx;
  4049. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4050. *t++ = 0;
  4051. if (s) return 0;
  4052. }
  4053. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4054. int x[] = {25, 17};
  4055. const int *foo = &x[0];
  4056. ++foo;
  4057. }
  4058. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4059. typedef const int *iptr;
  4060. iptr p = 0;
  4061. ++p;
  4062. }
  4063. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4064. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4065. struct s { int j; const int *ap[3]; } bx;
  4066. struct s *b = &bx; b->j = 5;
  4067. }
  4068. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4069. const int foo = 10;
  4070. if (!foo) return 0;
  4071. }
  4072. return !cs[0] && !zero.x;
  4073. #endif
  4074. ;
  4075. return 0;
  4076. }
  4077. _ACEOF
  4078. if ac_fn_c_try_compile "$LINENO"; then :
  4079. ac_cv_c_const=yes
  4080. else
  4081. ac_cv_c_const=no
  4082. fi
  4083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4084. fi
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4086. $as_echo "$ac_cv_c_const" >&6; }
  4087. if test $ac_cv_c_const = no; then
  4088. $as_echo "#define const /**/" >>confdefs.h
  4089. fi
  4090. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4091. if test "x$ac_cv_type_size_t" = xyes; then :
  4092. else
  4093. cat >>confdefs.h <<_ACEOF
  4094. #define size_t unsigned int
  4095. _ACEOF
  4096. fi
  4097. # Checks for library functions.
  4098. for ac_func in vprintf
  4099. do :
  4100. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  4101. if test "x$ac_cv_func_vprintf" = xyes; then :
  4102. cat >>confdefs.h <<_ACEOF
  4103. #define HAVE_VPRINTF 1
  4104. _ACEOF
  4105. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  4106. if test "x$ac_cv_func__doprnt" = xyes; then :
  4107. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  4108. fi
  4109. fi
  4110. done
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  4112. $as_echo_n "checking for working memcmp... " >&6; }
  4113. if ${ac_cv_func_memcmp_working+:} false; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. if test "$cross_compiling" = yes; then :
  4117. ac_cv_func_memcmp_working=no
  4118. else
  4119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4120. /* end confdefs.h. */
  4121. $ac_includes_default
  4122. int
  4123. main ()
  4124. {
  4125. /* Some versions of memcmp are not 8-bit clean. */
  4126. char c0 = '\100', c1 = '\200', c2 = '\201';
  4127. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  4128. return 1;
  4129. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  4130. or more and with at least one buffer not starting on a 4-byte boundary.
  4131. William Lewis provided this test program. */
  4132. {
  4133. char foo[21];
  4134. char bar[21];
  4135. int i;
  4136. for (i = 0; i < 4; i++)
  4137. {
  4138. char *a = foo + i;
  4139. char *b = bar + i;
  4140. strcpy (a, "--------01111111");
  4141. strcpy (b, "--------10000000");
  4142. if (memcmp (a, b, 16) >= 0)
  4143. return 1;
  4144. }
  4145. return 0;
  4146. }
  4147. ;
  4148. return 0;
  4149. }
  4150. _ACEOF
  4151. if ac_fn_c_try_run "$LINENO"; then :
  4152. ac_cv_func_memcmp_working=yes
  4153. else
  4154. ac_cv_func_memcmp_working=no
  4155. fi
  4156. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4157. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4158. fi
  4159. fi
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  4161. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  4162. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  4163. *" memcmp.$ac_objext "* ) ;;
  4164. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  4165. ;;
  4166. esac
  4167. for ac_header in stdlib.h
  4168. do :
  4169. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4170. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  4171. cat >>confdefs.h <<_ACEOF
  4172. #define HAVE_STDLIB_H 1
  4173. _ACEOF
  4174. fi
  4175. done
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  4177. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  4178. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  4179. $as_echo_n "(cached) " >&6
  4180. else
  4181. if test "$cross_compiling" = yes; then :
  4182. ac_cv_func_malloc_0_nonnull=no
  4183. else
  4184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4185. /* end confdefs.h. */
  4186. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  4187. # include <stdlib.h>
  4188. #else
  4189. char *malloc ();
  4190. #endif
  4191. int
  4192. main ()
  4193. {
  4194. return ! malloc (0);
  4195. ;
  4196. return 0;
  4197. }
  4198. _ACEOF
  4199. if ac_fn_c_try_run "$LINENO"; then :
  4200. ac_cv_func_malloc_0_nonnull=yes
  4201. else
  4202. ac_cv_func_malloc_0_nonnull=no
  4203. fi
  4204. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4205. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4206. fi
  4207. fi
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  4209. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  4210. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  4211. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  4212. else
  4213. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  4214. case " $LIBOBJS " in
  4215. *" malloc.$ac_objext "* ) ;;
  4216. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  4217. ;;
  4218. esac
  4219. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  4220. fi
  4221. for ac_header in stdlib.h
  4222. do :
  4223. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4224. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  4225. cat >>confdefs.h <<_ACEOF
  4226. #define HAVE_STDLIB_H 1
  4227. _ACEOF
  4228. fi
  4229. done
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  4231. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  4232. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. if test "$cross_compiling" = yes; then :
  4236. ac_cv_func_realloc_0_nonnull=no
  4237. else
  4238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4239. /* end confdefs.h. */
  4240. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  4241. # include <stdlib.h>
  4242. #else
  4243. char *realloc ();
  4244. #endif
  4245. int
  4246. main ()
  4247. {
  4248. return ! realloc (0, 0);
  4249. ;
  4250. return 0;
  4251. }
  4252. _ACEOF
  4253. if ac_fn_c_try_run "$LINENO"; then :
  4254. ac_cv_func_realloc_0_nonnull=yes
  4255. else
  4256. ac_cv_func_realloc_0_nonnull=no
  4257. fi
  4258. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4259. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4260. fi
  4261. fi
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  4263. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  4264. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  4265. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  4266. else
  4267. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  4268. case " $LIBOBJS " in
  4269. *" realloc.$ac_objext "* ) ;;
  4270. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  4271. ;;
  4272. esac
  4273. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  4274. fi
  4275. for ac_func in strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale
  4276. do :
  4277. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4278. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4279. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4280. cat >>confdefs.h <<_ACEOF
  4281. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4282. _ACEOF
  4283. fi
  4284. done
  4285. ac_fn_c_check_decl "$LINENO" "INFINITY" "ac_cv_have_decl_INFINITY" "#include <math.h>
  4286. "
  4287. if test "x$ac_cv_have_decl_INFINITY" = xyes; then :
  4288. ac_have_decl=1
  4289. else
  4290. ac_have_decl=0
  4291. fi
  4292. cat >>confdefs.h <<_ACEOF
  4293. #define HAVE_DECL_INFINITY $ac_have_decl
  4294. _ACEOF
  4295. ac_fn_c_check_decl "$LINENO" "nan" "ac_cv_have_decl_nan" "#include <math.h>
  4296. "
  4297. if test "x$ac_cv_have_decl_nan" = xyes; then :
  4298. ac_have_decl=1
  4299. else
  4300. ac_have_decl=0
  4301. fi
  4302. cat >>confdefs.h <<_ACEOF
  4303. #define HAVE_DECL_NAN $ac_have_decl
  4304. _ACEOF
  4305. ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
  4306. "
  4307. if test "x$ac_cv_have_decl_isnan" = xyes; then :
  4308. ac_have_decl=1
  4309. else
  4310. ac_have_decl=0
  4311. fi
  4312. cat >>confdefs.h <<_ACEOF
  4313. #define HAVE_DECL_ISNAN $ac_have_decl
  4314. _ACEOF
  4315. ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
  4316. "
  4317. if test "x$ac_cv_have_decl_isinf" = xyes; then :
  4318. ac_have_decl=1
  4319. else
  4320. ac_have_decl=0
  4321. fi
  4322. cat >>confdefs.h <<_ACEOF
  4323. #define HAVE_DECL_ISINF $ac_have_decl
  4324. _ACEOF
  4325. ac_fn_c_check_decl "$LINENO" "_isnan" "ac_cv_have_decl__isnan" "#include <float.h>
  4326. "
  4327. if test "x$ac_cv_have_decl__isnan" = xyes; then :
  4328. ac_have_decl=1
  4329. else
  4330. ac_have_decl=0
  4331. fi
  4332. cat >>confdefs.h <<_ACEOF
  4333. #define HAVE_DECL__ISNAN $ac_have_decl
  4334. _ACEOF
  4335. ac_fn_c_check_decl "$LINENO" "_finite" "ac_cv_have_decl__finite" "#include <float.h>
  4336. "
  4337. if test "x$ac_cv_have_decl__finite" = xyes; then :
  4338. ac_have_decl=1
  4339. else
  4340. ac_have_decl=0
  4341. fi
  4342. cat >>confdefs.h <<_ACEOF
  4343. #define HAVE_DECL__FINITE $ac_have_decl
  4344. _ACEOF
  4345. #check if .section.gnu.warning accepts long strings (for __warn_references)
  4346. ac_ext=c
  4347. ac_cpp='$CPP $CPPFLAGS'
  4348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .gnu.warning accepts long strings" >&5
  4352. $as_echo_n "checking if .gnu.warning accepts long strings... " >&6; }
  4353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4354. /* end confdefs.h. */
  4355. extern void json_object_get();
  4356. __asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libjson-c instead of libjson\"\n\t.text");
  4357. int main(int c,char* v) {return 0;}
  4358. _ACEOF
  4359. if ac_fn_c_try_link "$LINENO"; then :
  4360. $as_echo "#define HAS_GNU_WARNING_LONG 1" >>confdefs.h
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4362. $as_echo "yes" >&6; }
  4363. else
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4365. $as_echo "no" >&6; }
  4366. fi
  4367. rm -f core conftest.err conftest.$ac_objext \
  4368. conftest$ac_exeext conftest.$ac_ext
  4369. ac_ext=c
  4370. ac_cpp='$CPP $CPPFLAGS'
  4371. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4372. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4373. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4374. case `pwd` in
  4375. *\ * | *\ *)
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4377. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4378. esac
  4379. macro_version='2.4.2'
  4380. macro_revision='1.3337'
  4381. ltmain="$ac_aux_dir/ltmain.sh"
  4382. # Make sure we can run config.sub.
  4383. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4384. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4386. $as_echo_n "checking build system type... " >&6; }
  4387. if ${ac_cv_build+:} false; then :
  4388. $as_echo_n "(cached) " >&6
  4389. else
  4390. ac_build_alias=$build_alias
  4391. test "x$ac_build_alias" = x &&
  4392. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4393. test "x$ac_build_alias" = x &&
  4394. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4395. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4396. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4397. fi
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4399. $as_echo "$ac_cv_build" >&6; }
  4400. case $ac_cv_build in
  4401. *-*-*) ;;
  4402. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4403. esac
  4404. build=$ac_cv_build
  4405. ac_save_IFS=$IFS; IFS='-'
  4406. set x $ac_cv_build
  4407. shift
  4408. build_cpu=$1
  4409. build_vendor=$2
  4410. shift; shift
  4411. # Remember, the first character of IFS is used to create $*,
  4412. # except with old shells:
  4413. build_os=$*
  4414. IFS=$ac_save_IFS
  4415. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4417. $as_echo_n "checking host system type... " >&6; }
  4418. if ${ac_cv_host+:} false; then :
  4419. $as_echo_n "(cached) " >&6
  4420. else
  4421. if test "x$host_alias" = x; then
  4422. ac_cv_host=$ac_cv_build
  4423. else
  4424. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4425. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4426. fi
  4427. fi
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4429. $as_echo "$ac_cv_host" >&6; }
  4430. case $ac_cv_host in
  4431. *-*-*) ;;
  4432. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4433. esac
  4434. host=$ac_cv_host
  4435. ac_save_IFS=$IFS; IFS='-'
  4436. set x $ac_cv_host
  4437. shift
  4438. host_cpu=$1
  4439. host_vendor=$2
  4440. shift; shift
  4441. # Remember, the first character of IFS is used to create $*,
  4442. # except with old shells:
  4443. host_os=$*
  4444. IFS=$ac_save_IFS
  4445. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4446. # Backslashify metacharacters that are still active within
  4447. # double-quoted strings.
  4448. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4449. # Same as above, but do not quote variable references.
  4450. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4451. # Sed substitution to delay expansion of an escaped shell variable in a
  4452. # double_quote_subst'ed string.
  4453. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4454. # Sed substitution to delay expansion of an escaped single quote.
  4455. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4456. # Sed substitution to avoid accidental globbing in evaled expressions
  4457. no_glob_subst='s/\*/\\\*/g'
  4458. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4459. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4460. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4462. $as_echo_n "checking how to print strings... " >&6; }
  4463. # Test print first, because it will be a builtin if present.
  4464. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4465. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4466. ECHO='print -r --'
  4467. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4468. ECHO='printf %s\n'
  4469. else
  4470. # Use this function as a fallback that always works.
  4471. func_fallback_echo ()
  4472. {
  4473. eval 'cat <<_LTECHO_EOF
  4474. $1
  4475. _LTECHO_EOF'
  4476. }
  4477. ECHO='func_fallback_echo'
  4478. fi
  4479. # func_echo_all arg...
  4480. # Invoke $ECHO with all args, space-separated.
  4481. func_echo_all ()
  4482. {
  4483. $ECHO ""
  4484. }
  4485. case "$ECHO" in
  4486. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4487. $as_echo "printf" >&6; } ;;
  4488. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4489. $as_echo "print -r" >&6; } ;;
  4490. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4491. $as_echo "cat" >&6; } ;;
  4492. esac
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4494. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4495. if ${ac_cv_path_SED+:} false; then :
  4496. $as_echo_n "(cached) " >&6
  4497. else
  4498. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4499. for ac_i in 1 2 3 4 5 6 7; do
  4500. ac_script="$ac_script$as_nl$ac_script"
  4501. done
  4502. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4503. { ac_script=; unset ac_script;}
  4504. if test -z "$SED"; then
  4505. ac_path_SED_found=false
  4506. # Loop through the user's path and test for each of PROGNAME-LIST
  4507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4508. for as_dir in $PATH
  4509. do
  4510. IFS=$as_save_IFS
  4511. test -z "$as_dir" && as_dir=.
  4512. for ac_prog in sed gsed; do
  4513. for ac_exec_ext in '' $ac_executable_extensions; do
  4514. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4515. as_fn_executable_p "$ac_path_SED" || continue
  4516. # Check for GNU ac_path_SED and select it if it is found.
  4517. # Check for GNU $ac_path_SED
  4518. case `"$ac_path_SED" --version 2>&1` in
  4519. *GNU*)
  4520. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4521. *)
  4522. ac_count=0
  4523. $as_echo_n 0123456789 >"conftest.in"
  4524. while :
  4525. do
  4526. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4527. mv "conftest.tmp" "conftest.in"
  4528. cp "conftest.in" "conftest.nl"
  4529. $as_echo '' >> "conftest.nl"
  4530. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4531. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4532. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4533. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4534. # Best one so far, save it but keep looking for a better one
  4535. ac_cv_path_SED="$ac_path_SED"
  4536. ac_path_SED_max=$ac_count
  4537. fi
  4538. # 10*(2^10) chars as input seems more than enough
  4539. test $ac_count -gt 10 && break
  4540. done
  4541. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4542. esac
  4543. $ac_path_SED_found && break 3
  4544. done
  4545. done
  4546. done
  4547. IFS=$as_save_IFS
  4548. if test -z "$ac_cv_path_SED"; then
  4549. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4550. fi
  4551. else
  4552. ac_cv_path_SED=$SED
  4553. fi
  4554. fi
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4556. $as_echo "$ac_cv_path_SED" >&6; }
  4557. SED="$ac_cv_path_SED"
  4558. rm -f conftest.sed
  4559. test -z "$SED" && SED=sed
  4560. Xsed="$SED -e 1s/^X//"
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4562. $as_echo_n "checking for fgrep... " >&6; }
  4563. if ${ac_cv_path_FGREP+:} false; then :
  4564. $as_echo_n "(cached) " >&6
  4565. else
  4566. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4567. then ac_cv_path_FGREP="$GREP -F"
  4568. else
  4569. if test -z "$FGREP"; then
  4570. ac_path_FGREP_found=false
  4571. # Loop through the user's path and test for each of PROGNAME-LIST
  4572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4573. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4574. do
  4575. IFS=$as_save_IFS
  4576. test -z "$as_dir" && as_dir=.
  4577. for ac_prog in fgrep; do
  4578. for ac_exec_ext in '' $ac_executable_extensions; do
  4579. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4580. as_fn_executable_p "$ac_path_FGREP" || continue
  4581. # Check for GNU ac_path_FGREP and select it if it is found.
  4582. # Check for GNU $ac_path_FGREP
  4583. case `"$ac_path_FGREP" --version 2>&1` in
  4584. *GNU*)
  4585. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4586. *)
  4587. ac_count=0
  4588. $as_echo_n 0123456789 >"conftest.in"
  4589. while :
  4590. do
  4591. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4592. mv "conftest.tmp" "conftest.in"
  4593. cp "conftest.in" "conftest.nl"
  4594. $as_echo 'FGREP' >> "conftest.nl"
  4595. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4596. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4597. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4598. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4599. # Best one so far, save it but keep looking for a better one
  4600. ac_cv_path_FGREP="$ac_path_FGREP"
  4601. ac_path_FGREP_max=$ac_count
  4602. fi
  4603. # 10*(2^10) chars as input seems more than enough
  4604. test $ac_count -gt 10 && break
  4605. done
  4606. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4607. esac
  4608. $ac_path_FGREP_found && break 3
  4609. done
  4610. done
  4611. done
  4612. IFS=$as_save_IFS
  4613. if test -z "$ac_cv_path_FGREP"; then
  4614. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4615. fi
  4616. else
  4617. ac_cv_path_FGREP=$FGREP
  4618. fi
  4619. fi
  4620. fi
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4622. $as_echo "$ac_cv_path_FGREP" >&6; }
  4623. FGREP="$ac_cv_path_FGREP"
  4624. test -z "$GREP" && GREP=grep
  4625. # Check whether --with-gnu-ld was given.
  4626. if test "${with_gnu_ld+set}" = set; then :
  4627. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4628. else
  4629. with_gnu_ld=no
  4630. fi
  4631. ac_prog=ld
  4632. if test "$GCC" = yes; then
  4633. # Check if gcc -print-prog-name=ld gives a path.
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4635. $as_echo_n "checking for ld used by $CC... " >&6; }
  4636. case $host in
  4637. *-*-mingw*)
  4638. # gcc leaves a trailing carriage return which upsets mingw
  4639. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4640. *)
  4641. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4642. esac
  4643. case $ac_prog in
  4644. # Accept absolute paths.
  4645. [\\/]* | ?:[\\/]*)
  4646. re_direlt='/[^/][^/]*/\.\./'
  4647. # Canonicalize the pathname of ld
  4648. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4649. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4650. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4651. done
  4652. test -z "$LD" && LD="$ac_prog"
  4653. ;;
  4654. "")
  4655. # If it fails, then pretend we aren't using GCC.
  4656. ac_prog=ld
  4657. ;;
  4658. *)
  4659. # If it is relative, then search for the first ld in PATH.
  4660. with_gnu_ld=unknown
  4661. ;;
  4662. esac
  4663. elif test "$with_gnu_ld" = yes; then
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4665. $as_echo_n "checking for GNU ld... " >&6; }
  4666. else
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4668. $as_echo_n "checking for non-GNU ld... " >&6; }
  4669. fi
  4670. if ${lt_cv_path_LD+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. if test -z "$LD"; then
  4674. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4675. for ac_dir in $PATH; do
  4676. IFS="$lt_save_ifs"
  4677. test -z "$ac_dir" && ac_dir=.
  4678. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4679. lt_cv_path_LD="$ac_dir/$ac_prog"
  4680. # Check to see if the program is GNU ld. I'd rather use --version,
  4681. # but apparently some variants of GNU ld only accept -v.
  4682. # Break only if it was the GNU/non-GNU ld that we prefer.
  4683. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4684. *GNU* | *'with BFD'*)
  4685. test "$with_gnu_ld" != no && break
  4686. ;;
  4687. *)
  4688. test "$with_gnu_ld" != yes && break
  4689. ;;
  4690. esac
  4691. fi
  4692. done
  4693. IFS="$lt_save_ifs"
  4694. else
  4695. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4696. fi
  4697. fi
  4698. LD="$lt_cv_path_LD"
  4699. if test -n "$LD"; then
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4701. $as_echo "$LD" >&6; }
  4702. else
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4704. $as_echo "no" >&6; }
  4705. fi
  4706. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4708. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4709. if ${lt_cv_prog_gnu_ld+:} false; then :
  4710. $as_echo_n "(cached) " >&6
  4711. else
  4712. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4713. case `$LD -v 2>&1 </dev/null` in
  4714. *GNU* | *'with BFD'*)
  4715. lt_cv_prog_gnu_ld=yes
  4716. ;;
  4717. *)
  4718. lt_cv_prog_gnu_ld=no
  4719. ;;
  4720. esac
  4721. fi
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4723. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4724. with_gnu_ld=$lt_cv_prog_gnu_ld
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4726. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4727. if ${lt_cv_path_NM+:} false; then :
  4728. $as_echo_n "(cached) " >&6
  4729. else
  4730. if test -n "$NM"; then
  4731. # Let the user override the test.
  4732. lt_cv_path_NM="$NM"
  4733. else
  4734. lt_nm_to_check="${ac_tool_prefix}nm"
  4735. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4736. lt_nm_to_check="$lt_nm_to_check nm"
  4737. fi
  4738. for lt_tmp_nm in $lt_nm_to_check; do
  4739. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4740. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4741. IFS="$lt_save_ifs"
  4742. test -z "$ac_dir" && ac_dir=.
  4743. tmp_nm="$ac_dir/$lt_tmp_nm"
  4744. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4745. # Check to see if the nm accepts a BSD-compat flag.
  4746. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4747. # nm: unknown option "B" ignored
  4748. # Tru64's nm complains that /dev/null is an invalid object file
  4749. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4750. */dev/null* | *'Invalid file or object type'*)
  4751. lt_cv_path_NM="$tmp_nm -B"
  4752. break
  4753. ;;
  4754. *)
  4755. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4756. */dev/null*)
  4757. lt_cv_path_NM="$tmp_nm -p"
  4758. break
  4759. ;;
  4760. *)
  4761. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4762. continue # so that we can try to find one that supports BSD flags
  4763. ;;
  4764. esac
  4765. ;;
  4766. esac
  4767. fi
  4768. done
  4769. IFS="$lt_save_ifs"
  4770. done
  4771. : ${lt_cv_path_NM=no}
  4772. fi
  4773. fi
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4775. $as_echo "$lt_cv_path_NM" >&6; }
  4776. if test "$lt_cv_path_NM" != "no"; then
  4777. NM="$lt_cv_path_NM"
  4778. else
  4779. # Didn't find any BSD compatible name lister, look for dumpbin.
  4780. if test -n "$DUMPBIN"; then :
  4781. # Let the user override the test.
  4782. else
  4783. if test -n "$ac_tool_prefix"; then
  4784. for ac_prog in dumpbin "link -dump"
  4785. do
  4786. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4787. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4789. $as_echo_n "checking for $ac_word... " >&6; }
  4790. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4791. $as_echo_n "(cached) " >&6
  4792. else
  4793. if test -n "$DUMPBIN"; then
  4794. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4795. else
  4796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4797. for as_dir in $PATH
  4798. do
  4799. IFS=$as_save_IFS
  4800. test -z "$as_dir" && as_dir=.
  4801. for ac_exec_ext in '' $ac_executable_extensions; do
  4802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4803. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4805. break 2
  4806. fi
  4807. done
  4808. done
  4809. IFS=$as_save_IFS
  4810. fi
  4811. fi
  4812. DUMPBIN=$ac_cv_prog_DUMPBIN
  4813. if test -n "$DUMPBIN"; then
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4815. $as_echo "$DUMPBIN" >&6; }
  4816. else
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4818. $as_echo "no" >&6; }
  4819. fi
  4820. test -n "$DUMPBIN" && break
  4821. done
  4822. fi
  4823. if test -z "$DUMPBIN"; then
  4824. ac_ct_DUMPBIN=$DUMPBIN
  4825. for ac_prog in dumpbin "link -dump"
  4826. do
  4827. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4828. set dummy $ac_prog; ac_word=$2
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4830. $as_echo_n "checking for $ac_word... " >&6; }
  4831. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4832. $as_echo_n "(cached) " >&6
  4833. else
  4834. if test -n "$ac_ct_DUMPBIN"; then
  4835. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4836. else
  4837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4838. for as_dir in $PATH
  4839. do
  4840. IFS=$as_save_IFS
  4841. test -z "$as_dir" && as_dir=.
  4842. for ac_exec_ext in '' $ac_executable_extensions; do
  4843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4844. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4846. break 2
  4847. fi
  4848. done
  4849. done
  4850. IFS=$as_save_IFS
  4851. fi
  4852. fi
  4853. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4854. if test -n "$ac_ct_DUMPBIN"; then
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4856. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4857. else
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4859. $as_echo "no" >&6; }
  4860. fi
  4861. test -n "$ac_ct_DUMPBIN" && break
  4862. done
  4863. if test "x$ac_ct_DUMPBIN" = x; then
  4864. DUMPBIN=":"
  4865. else
  4866. case $cross_compiling:$ac_tool_warned in
  4867. yes:)
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4869. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4870. ac_tool_warned=yes ;;
  4871. esac
  4872. DUMPBIN=$ac_ct_DUMPBIN
  4873. fi
  4874. fi
  4875. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4876. *COFF*)
  4877. DUMPBIN="$DUMPBIN -symbols"
  4878. ;;
  4879. *)
  4880. DUMPBIN=:
  4881. ;;
  4882. esac
  4883. fi
  4884. if test "$DUMPBIN" != ":"; then
  4885. NM="$DUMPBIN"
  4886. fi
  4887. fi
  4888. test -z "$NM" && NM=nm
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4890. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4891. if ${lt_cv_nm_interface+:} false; then :
  4892. $as_echo_n "(cached) " >&6
  4893. else
  4894. lt_cv_nm_interface="BSD nm"
  4895. echo "int some_variable = 0;" > conftest.$ac_ext
  4896. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4897. (eval "$ac_compile" 2>conftest.err)
  4898. cat conftest.err >&5
  4899. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4900. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4901. cat conftest.err >&5
  4902. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4903. cat conftest.out >&5
  4904. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4905. lt_cv_nm_interface="MS dumpbin"
  4906. fi
  4907. rm -f conftest*
  4908. fi
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4910. $as_echo "$lt_cv_nm_interface" >&6; }
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4912. $as_echo_n "checking whether ln -s works... " >&6; }
  4913. LN_S=$as_ln_s
  4914. if test "$LN_S" = "ln -s"; then
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4916. $as_echo "yes" >&6; }
  4917. else
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4919. $as_echo "no, using $LN_S" >&6; }
  4920. fi
  4921. # find the maximum length of command line arguments
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4923. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4924. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4925. $as_echo_n "(cached) " >&6
  4926. else
  4927. i=0
  4928. teststring="ABCD"
  4929. case $build_os in
  4930. msdosdjgpp*)
  4931. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4932. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4933. # during glob expansion). Even if it were fixed, the result of this
  4934. # check would be larger than it should be.
  4935. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4936. ;;
  4937. gnu*)
  4938. # Under GNU Hurd, this test is not required because there is
  4939. # no limit to the length of command line arguments.
  4940. # Libtool will interpret -1 as no limit whatsoever
  4941. lt_cv_sys_max_cmd_len=-1;
  4942. ;;
  4943. cygwin* | mingw* | cegcc*)
  4944. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4945. # about 5 minutes as the teststring grows exponentially.
  4946. # Worse, since 9x/ME are not pre-emptively multitasking,
  4947. # you end up with a "frozen" computer, even though with patience
  4948. # the test eventually succeeds (with a max line length of 256k).
  4949. # Instead, let's just punt: use the minimum linelength reported by
  4950. # all of the supported platforms: 8192 (on NT/2K/XP).
  4951. lt_cv_sys_max_cmd_len=8192;
  4952. ;;
  4953. mint*)
  4954. # On MiNT this can take a long time and run out of memory.
  4955. lt_cv_sys_max_cmd_len=8192;
  4956. ;;
  4957. amigaos*)
  4958. # On AmigaOS with pdksh, this test takes hours, literally.
  4959. # So we just punt and use a minimum line length of 8192.
  4960. lt_cv_sys_max_cmd_len=8192;
  4961. ;;
  4962. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4963. # This has been around since 386BSD, at least. Likely further.
  4964. if test -x /sbin/sysctl; then
  4965. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4966. elif test -x /usr/sbin/sysctl; then
  4967. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4968. else
  4969. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4970. fi
  4971. # And add a safety zone
  4972. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4973. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4974. ;;
  4975. interix*)
  4976. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4977. lt_cv_sys_max_cmd_len=196608
  4978. ;;
  4979. os2*)
  4980. # The test takes a long time on OS/2.
  4981. lt_cv_sys_max_cmd_len=8192
  4982. ;;
  4983. osf*)
  4984. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4985. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4986. # nice to cause kernel panics so lets avoid the loop below.
  4987. # First set a reasonable default.
  4988. lt_cv_sys_max_cmd_len=16384
  4989. #
  4990. if test -x /sbin/sysconfig; then
  4991. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4992. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4993. esac
  4994. fi
  4995. ;;
  4996. sco3.2v5*)
  4997. lt_cv_sys_max_cmd_len=102400
  4998. ;;
  4999. sysv5* | sco5v6* | sysv4.2uw2*)
  5000. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5001. if test -n "$kargmax"; then
  5002. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5003. else
  5004. lt_cv_sys_max_cmd_len=32768
  5005. fi
  5006. ;;
  5007. *)
  5008. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5009. if test -n "$lt_cv_sys_max_cmd_len"; then
  5010. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5011. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5012. else
  5013. # Make teststring a little bigger before we do anything with it.
  5014. # a 1K string should be a reasonable start.
  5015. for i in 1 2 3 4 5 6 7 8 ; do
  5016. teststring=$teststring$teststring
  5017. done
  5018. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5019. # If test is not a shell built-in, we'll probably end up computing a
  5020. # maximum length that is only half of the actual maximum length, but
  5021. # we can't tell.
  5022. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5023. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5024. test $i != 17 # 1/2 MB should be enough
  5025. do
  5026. i=`expr $i + 1`
  5027. teststring=$teststring$teststring
  5028. done
  5029. # Only check the string length outside the loop.
  5030. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5031. teststring=
  5032. # Add a significant safety factor because C++ compilers can tack on
  5033. # massive amounts of additional arguments before passing them to the
  5034. # linker. It appears as though 1/2 is a usable value.
  5035. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5036. fi
  5037. ;;
  5038. esac
  5039. fi
  5040. if test -n $lt_cv_sys_max_cmd_len ; then
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5042. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5043. else
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5045. $as_echo "none" >&6; }
  5046. fi
  5047. max_cmd_len=$lt_cv_sys_max_cmd_len
  5048. : ${CP="cp -f"}
  5049. : ${MV="mv -f"}
  5050. : ${RM="rm -f"}
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5052. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5053. # Try some XSI features
  5054. xsi_shell=no
  5055. ( _lt_dummy="a/b/c"
  5056. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5057. = c,a/b,b/c, \
  5058. && eval 'test $(( 1 + 1 )) -eq 2 \
  5059. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5060. && xsi_shell=yes
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5062. $as_echo "$xsi_shell" >&6; }
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5064. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5065. lt_shell_append=no
  5066. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5067. >/dev/null 2>&1 \
  5068. && lt_shell_append=yes
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5070. $as_echo "$lt_shell_append" >&6; }
  5071. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5072. lt_unset=unset
  5073. else
  5074. lt_unset=false
  5075. fi
  5076. # test EBCDIC or ASCII
  5077. case `echo X|tr X '\101'` in
  5078. A) # ASCII based system
  5079. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5080. lt_SP2NL='tr \040 \012'
  5081. lt_NL2SP='tr \015\012 \040\040'
  5082. ;;
  5083. *) # EBCDIC based system
  5084. lt_SP2NL='tr \100 \n'
  5085. lt_NL2SP='tr \r\n \100\100'
  5086. ;;
  5087. esac
  5088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5089. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5090. if ${lt_cv_to_host_file_cmd+:} false; then :
  5091. $as_echo_n "(cached) " >&6
  5092. else
  5093. case $host in
  5094. *-*-mingw* )
  5095. case $build in
  5096. *-*-mingw* ) # actually msys
  5097. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5098. ;;
  5099. *-*-cygwin* )
  5100. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5101. ;;
  5102. * ) # otherwise, assume *nix
  5103. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5104. ;;
  5105. esac
  5106. ;;
  5107. *-*-cygwin* )
  5108. case $build in
  5109. *-*-mingw* ) # actually msys
  5110. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5111. ;;
  5112. *-*-cygwin* )
  5113. lt_cv_to_host_file_cmd=func_convert_file_noop
  5114. ;;
  5115. * ) # otherwise, assume *nix
  5116. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5117. ;;
  5118. esac
  5119. ;;
  5120. * ) # unhandled hosts (and "normal" native builds)
  5121. lt_cv_to_host_file_cmd=func_convert_file_noop
  5122. ;;
  5123. esac
  5124. fi
  5125. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5127. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5129. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5130. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5131. $as_echo_n "(cached) " >&6
  5132. else
  5133. #assume ordinary cross tools, or native build.
  5134. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5135. case $host in
  5136. *-*-mingw* )
  5137. case $build in
  5138. *-*-mingw* ) # actually msys
  5139. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5140. ;;
  5141. esac
  5142. ;;
  5143. esac
  5144. fi
  5145. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5147. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5149. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5150. if ${lt_cv_ld_reload_flag+:} false; then :
  5151. $as_echo_n "(cached) " >&6
  5152. else
  5153. lt_cv_ld_reload_flag='-r'
  5154. fi
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5156. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5157. reload_flag=$lt_cv_ld_reload_flag
  5158. case $reload_flag in
  5159. "" | " "*) ;;
  5160. *) reload_flag=" $reload_flag" ;;
  5161. esac
  5162. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5163. case $host_os in
  5164. cygwin* | mingw* | pw32* | cegcc*)
  5165. if test "$GCC" != yes; then
  5166. reload_cmds=false
  5167. fi
  5168. ;;
  5169. darwin*)
  5170. if test "$GCC" = yes; then
  5171. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5172. else
  5173. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5174. fi
  5175. ;;
  5176. esac
  5177. if test -n "$ac_tool_prefix"; then
  5178. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5179. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5181. $as_echo_n "checking for $ac_word... " >&6; }
  5182. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5183. $as_echo_n "(cached) " >&6
  5184. else
  5185. if test -n "$OBJDUMP"; then
  5186. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5187. else
  5188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5189. for as_dir in $PATH
  5190. do
  5191. IFS=$as_save_IFS
  5192. test -z "$as_dir" && as_dir=.
  5193. for ac_exec_ext in '' $ac_executable_extensions; do
  5194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5195. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5197. break 2
  5198. fi
  5199. done
  5200. done
  5201. IFS=$as_save_IFS
  5202. fi
  5203. fi
  5204. OBJDUMP=$ac_cv_prog_OBJDUMP
  5205. if test -n "$OBJDUMP"; then
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5207. $as_echo "$OBJDUMP" >&6; }
  5208. else
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5210. $as_echo "no" >&6; }
  5211. fi
  5212. fi
  5213. if test -z "$ac_cv_prog_OBJDUMP"; then
  5214. ac_ct_OBJDUMP=$OBJDUMP
  5215. # Extract the first word of "objdump", so it can be a program name with args.
  5216. set dummy objdump; ac_word=$2
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5218. $as_echo_n "checking for $ac_word... " >&6; }
  5219. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. if test -n "$ac_ct_OBJDUMP"; then
  5223. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5224. else
  5225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5226. for as_dir in $PATH
  5227. do
  5228. IFS=$as_save_IFS
  5229. test -z "$as_dir" && as_dir=.
  5230. for ac_exec_ext in '' $ac_executable_extensions; do
  5231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5232. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5234. break 2
  5235. fi
  5236. done
  5237. done
  5238. IFS=$as_save_IFS
  5239. fi
  5240. fi
  5241. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5242. if test -n "$ac_ct_OBJDUMP"; then
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5244. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5245. else
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5247. $as_echo "no" >&6; }
  5248. fi
  5249. if test "x$ac_ct_OBJDUMP" = x; then
  5250. OBJDUMP="false"
  5251. else
  5252. case $cross_compiling:$ac_tool_warned in
  5253. yes:)
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5255. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5256. ac_tool_warned=yes ;;
  5257. esac
  5258. OBJDUMP=$ac_ct_OBJDUMP
  5259. fi
  5260. else
  5261. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5262. fi
  5263. test -z "$OBJDUMP" && OBJDUMP=objdump
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5265. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5266. if ${lt_cv_deplibs_check_method+:} false; then :
  5267. $as_echo_n "(cached) " >&6
  5268. else
  5269. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5270. lt_cv_file_magic_test_file=
  5271. lt_cv_deplibs_check_method='unknown'
  5272. # Need to set the preceding variable on all platforms that support
  5273. # interlibrary dependencies.
  5274. # 'none' -- dependencies not supported.
  5275. # `unknown' -- same as none, but documents that we really don't know.
  5276. # 'pass_all' -- all dependencies passed with no checks.
  5277. # 'test_compile' -- check by making test program.
  5278. # 'file_magic [[regex]]' -- check by looking for files in library path
  5279. # which responds to the $file_magic_cmd with a given extended regex.
  5280. # If you have `file' or equivalent on your system and you're not sure
  5281. # whether `pass_all' will *always* work, you probably want this one.
  5282. case $host_os in
  5283. aix[4-9]*)
  5284. lt_cv_deplibs_check_method=pass_all
  5285. ;;
  5286. beos*)
  5287. lt_cv_deplibs_check_method=pass_all
  5288. ;;
  5289. bsdi[45]*)
  5290. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5291. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5292. lt_cv_file_magic_test_file=/shlib/libc.so
  5293. ;;
  5294. cygwin*)
  5295. # func_win32_libid is a shell function defined in ltmain.sh
  5296. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5297. lt_cv_file_magic_cmd='func_win32_libid'
  5298. ;;
  5299. mingw* | pw32*)
  5300. # Base MSYS/MinGW do not provide the 'file' command needed by
  5301. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5302. # unless we find 'file', for example because we are cross-compiling.
  5303. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5304. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5305. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5306. lt_cv_file_magic_cmd='func_win32_libid'
  5307. else
  5308. # Keep this pattern in sync with the one in func_win32_libid.
  5309. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5310. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5311. fi
  5312. ;;
  5313. cegcc*)
  5314. # use the weaker test based on 'objdump'. See mingw*.
  5315. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5316. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5317. ;;
  5318. darwin* | rhapsody*)
  5319. lt_cv_deplibs_check_method=pass_all
  5320. ;;
  5321. freebsd* | dragonfly*)
  5322. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5323. case $host_cpu in
  5324. i*86 )
  5325. # Not sure whether the presence of OpenBSD here was a mistake.
  5326. # Let's accept both of them until this is cleared up.
  5327. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5328. lt_cv_file_magic_cmd=/usr/bin/file
  5329. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5330. ;;
  5331. esac
  5332. else
  5333. lt_cv_deplibs_check_method=pass_all
  5334. fi
  5335. ;;
  5336. gnu*)
  5337. lt_cv_deplibs_check_method=pass_all
  5338. ;;
  5339. haiku*)
  5340. lt_cv_deplibs_check_method=pass_all
  5341. ;;
  5342. hpux10.20* | hpux11*)
  5343. lt_cv_file_magic_cmd=/usr/bin/file
  5344. case $host_cpu in
  5345. ia64*)
  5346. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5347. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5348. ;;
  5349. hppa*64*)
  5350. 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]'
  5351. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5352. ;;
  5353. *)
  5354. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5355. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5356. ;;
  5357. esac
  5358. ;;
  5359. interix[3-9]*)
  5360. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5361. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5362. ;;
  5363. irix5* | irix6* | nonstopux*)
  5364. case $LD in
  5365. *-32|*"-32 ") libmagic=32-bit;;
  5366. *-n32|*"-n32 ") libmagic=N32;;
  5367. *-64|*"-64 ") libmagic=64-bit;;
  5368. *) libmagic=never-match;;
  5369. esac
  5370. lt_cv_deplibs_check_method=pass_all
  5371. ;;
  5372. # This must be glibc/ELF.
  5373. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5374. lt_cv_deplibs_check_method=pass_all
  5375. ;;
  5376. netbsd*)
  5377. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5378. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5379. else
  5380. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5381. fi
  5382. ;;
  5383. newos6*)
  5384. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5385. lt_cv_file_magic_cmd=/usr/bin/file
  5386. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5387. ;;
  5388. *nto* | *qnx*)
  5389. lt_cv_deplibs_check_method=pass_all
  5390. ;;
  5391. openbsd*)
  5392. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5393. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5394. else
  5395. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5396. fi
  5397. ;;
  5398. osf3* | osf4* | osf5*)
  5399. lt_cv_deplibs_check_method=pass_all
  5400. ;;
  5401. rdos*)
  5402. lt_cv_deplibs_check_method=pass_all
  5403. ;;
  5404. solaris*)
  5405. lt_cv_deplibs_check_method=pass_all
  5406. ;;
  5407. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5408. lt_cv_deplibs_check_method=pass_all
  5409. ;;
  5410. sysv4 | sysv4.3*)
  5411. case $host_vendor in
  5412. motorola)
  5413. 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]'
  5414. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5415. ;;
  5416. ncr)
  5417. lt_cv_deplibs_check_method=pass_all
  5418. ;;
  5419. sequent)
  5420. lt_cv_file_magic_cmd='/bin/file'
  5421. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5422. ;;
  5423. sni)
  5424. lt_cv_file_magic_cmd='/bin/file'
  5425. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5426. lt_cv_file_magic_test_file=/lib/libc.so
  5427. ;;
  5428. siemens)
  5429. lt_cv_deplibs_check_method=pass_all
  5430. ;;
  5431. pc)
  5432. lt_cv_deplibs_check_method=pass_all
  5433. ;;
  5434. esac
  5435. ;;
  5436. tpf*)
  5437. lt_cv_deplibs_check_method=pass_all
  5438. ;;
  5439. esac
  5440. fi
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5442. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5443. file_magic_glob=
  5444. want_nocaseglob=no
  5445. if test "$build" = "$host"; then
  5446. case $host_os in
  5447. mingw* | pw32*)
  5448. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5449. want_nocaseglob=yes
  5450. else
  5451. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5452. fi
  5453. ;;
  5454. esac
  5455. fi
  5456. file_magic_cmd=$lt_cv_file_magic_cmd
  5457. deplibs_check_method=$lt_cv_deplibs_check_method
  5458. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5459. if test -n "$ac_tool_prefix"; then
  5460. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5461. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5463. $as_echo_n "checking for $ac_word... " >&6; }
  5464. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5465. $as_echo_n "(cached) " >&6
  5466. else
  5467. if test -n "$DLLTOOL"; then
  5468. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5469. else
  5470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5471. for as_dir in $PATH
  5472. do
  5473. IFS=$as_save_IFS
  5474. test -z "$as_dir" && as_dir=.
  5475. for ac_exec_ext in '' $ac_executable_extensions; do
  5476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5477. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5479. break 2
  5480. fi
  5481. done
  5482. done
  5483. IFS=$as_save_IFS
  5484. fi
  5485. fi
  5486. DLLTOOL=$ac_cv_prog_DLLTOOL
  5487. if test -n "$DLLTOOL"; then
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5489. $as_echo "$DLLTOOL" >&6; }
  5490. else
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5492. $as_echo "no" >&6; }
  5493. fi
  5494. fi
  5495. if test -z "$ac_cv_prog_DLLTOOL"; then
  5496. ac_ct_DLLTOOL=$DLLTOOL
  5497. # Extract the first word of "dlltool", so it can be a program name with args.
  5498. set dummy dlltool; ac_word=$2
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5500. $as_echo_n "checking for $ac_word... " >&6; }
  5501. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. if test -n "$ac_ct_DLLTOOL"; then
  5505. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5506. else
  5507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. for as_dir in $PATH
  5509. do
  5510. IFS=$as_save_IFS
  5511. test -z "$as_dir" && as_dir=.
  5512. for ac_exec_ext in '' $ac_executable_extensions; do
  5513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5514. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5516. break 2
  5517. fi
  5518. done
  5519. done
  5520. IFS=$as_save_IFS
  5521. fi
  5522. fi
  5523. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5524. if test -n "$ac_ct_DLLTOOL"; then
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5526. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5527. else
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5529. $as_echo "no" >&6; }
  5530. fi
  5531. if test "x$ac_ct_DLLTOOL" = x; then
  5532. DLLTOOL="false"
  5533. else
  5534. case $cross_compiling:$ac_tool_warned in
  5535. yes:)
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5537. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5538. ac_tool_warned=yes ;;
  5539. esac
  5540. DLLTOOL=$ac_ct_DLLTOOL
  5541. fi
  5542. else
  5543. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5544. fi
  5545. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5547. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5548. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5549. $as_echo_n "(cached) " >&6
  5550. else
  5551. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5552. case $host_os in
  5553. cygwin* | mingw* | pw32* | cegcc*)
  5554. # two different shell functions defined in ltmain.sh
  5555. # decide which to use based on capabilities of $DLLTOOL
  5556. case `$DLLTOOL --help 2>&1` in
  5557. *--identify-strict*)
  5558. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5559. ;;
  5560. *)
  5561. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5562. ;;
  5563. esac
  5564. ;;
  5565. *)
  5566. # fallback: assume linklib IS sharedlib
  5567. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5568. ;;
  5569. esac
  5570. fi
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5572. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5573. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5574. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5575. if test -n "$ac_tool_prefix"; then
  5576. for ac_prog in ar
  5577. do
  5578. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5579. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5581. $as_echo_n "checking for $ac_word... " >&6; }
  5582. if ${ac_cv_prog_AR+:} false; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. if test -n "$AR"; then
  5586. ac_cv_prog_AR="$AR" # Let the user override the test.
  5587. else
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5595. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. IFS=$as_save_IFS
  5602. fi
  5603. fi
  5604. AR=$ac_cv_prog_AR
  5605. if test -n "$AR"; then
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5607. $as_echo "$AR" >&6; }
  5608. else
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. $as_echo "no" >&6; }
  5611. fi
  5612. test -n "$AR" && break
  5613. done
  5614. fi
  5615. if test -z "$AR"; then
  5616. ac_ct_AR=$AR
  5617. for ac_prog in ar
  5618. do
  5619. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5620. set dummy $ac_prog; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$ac_ct_AR"; then
  5627. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_ac_ct_AR="$ac_prog"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5646. if test -n "$ac_ct_AR"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5648. $as_echo "$ac_ct_AR" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. test -n "$ac_ct_AR" && break
  5654. done
  5655. if test "x$ac_ct_AR" = x; then
  5656. AR="false"
  5657. else
  5658. case $cross_compiling:$ac_tool_warned in
  5659. yes:)
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5661. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5662. ac_tool_warned=yes ;;
  5663. esac
  5664. AR=$ac_ct_AR
  5665. fi
  5666. fi
  5667. : ${AR=ar}
  5668. : ${AR_FLAGS=cru}
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5670. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5671. if ${lt_cv_ar_at_file+:} false; then :
  5672. $as_echo_n "(cached) " >&6
  5673. else
  5674. lt_cv_ar_at_file=no
  5675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5676. /* end confdefs.h. */
  5677. int
  5678. main ()
  5679. {
  5680. ;
  5681. return 0;
  5682. }
  5683. _ACEOF
  5684. if ac_fn_c_try_compile "$LINENO"; then :
  5685. echo conftest.$ac_objext > conftest.lst
  5686. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5687. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5688. (eval $lt_ar_try) 2>&5
  5689. ac_status=$?
  5690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5691. test $ac_status = 0; }
  5692. if test "$ac_status" -eq 0; then
  5693. # Ensure the archiver fails upon bogus file names.
  5694. rm -f conftest.$ac_objext libconftest.a
  5695. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5696. (eval $lt_ar_try) 2>&5
  5697. ac_status=$?
  5698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5699. test $ac_status = 0; }
  5700. if test "$ac_status" -ne 0; then
  5701. lt_cv_ar_at_file=@
  5702. fi
  5703. fi
  5704. rm -f conftest.* libconftest.a
  5705. fi
  5706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5707. fi
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5709. $as_echo "$lt_cv_ar_at_file" >&6; }
  5710. if test "x$lt_cv_ar_at_file" = xno; then
  5711. archiver_list_spec=
  5712. else
  5713. archiver_list_spec=$lt_cv_ar_at_file
  5714. fi
  5715. if test -n "$ac_tool_prefix"; then
  5716. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5717. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5719. $as_echo_n "checking for $ac_word... " >&6; }
  5720. if ${ac_cv_prog_STRIP+:} false; then :
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. if test -n "$STRIP"; then
  5724. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5725. else
  5726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5727. for as_dir in $PATH
  5728. do
  5729. IFS=$as_save_IFS
  5730. test -z "$as_dir" && as_dir=.
  5731. for ac_exec_ext in '' $ac_executable_extensions; do
  5732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5733. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5735. break 2
  5736. fi
  5737. done
  5738. done
  5739. IFS=$as_save_IFS
  5740. fi
  5741. fi
  5742. STRIP=$ac_cv_prog_STRIP
  5743. if test -n "$STRIP"; then
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5745. $as_echo "$STRIP" >&6; }
  5746. else
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5748. $as_echo "no" >&6; }
  5749. fi
  5750. fi
  5751. if test -z "$ac_cv_prog_STRIP"; then
  5752. ac_ct_STRIP=$STRIP
  5753. # Extract the first word of "strip", so it can be a program name with args.
  5754. set dummy strip; ac_word=$2
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5756. $as_echo_n "checking for $ac_word... " >&6; }
  5757. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5758. $as_echo_n "(cached) " >&6
  5759. else
  5760. if test -n "$ac_ct_STRIP"; then
  5761. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5762. else
  5763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5764. for as_dir in $PATH
  5765. do
  5766. IFS=$as_save_IFS
  5767. test -z "$as_dir" && as_dir=.
  5768. for ac_exec_ext in '' $ac_executable_extensions; do
  5769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5770. ac_cv_prog_ac_ct_STRIP="strip"
  5771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5772. break 2
  5773. fi
  5774. done
  5775. done
  5776. IFS=$as_save_IFS
  5777. fi
  5778. fi
  5779. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5780. if test -n "$ac_ct_STRIP"; then
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5782. $as_echo "$ac_ct_STRIP" >&6; }
  5783. else
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5785. $as_echo "no" >&6; }
  5786. fi
  5787. if test "x$ac_ct_STRIP" = x; then
  5788. STRIP=":"
  5789. else
  5790. case $cross_compiling:$ac_tool_warned in
  5791. yes:)
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5793. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5794. ac_tool_warned=yes ;;
  5795. esac
  5796. STRIP=$ac_ct_STRIP
  5797. fi
  5798. else
  5799. STRIP="$ac_cv_prog_STRIP"
  5800. fi
  5801. test -z "$STRIP" && STRIP=:
  5802. if test -n "$ac_tool_prefix"; then
  5803. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5804. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5806. $as_echo_n "checking for $ac_word... " >&6; }
  5807. if ${ac_cv_prog_RANLIB+:} false; then :
  5808. $as_echo_n "(cached) " >&6
  5809. else
  5810. if test -n "$RANLIB"; then
  5811. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5812. else
  5813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5814. for as_dir in $PATH
  5815. do
  5816. IFS=$as_save_IFS
  5817. test -z "$as_dir" && as_dir=.
  5818. for ac_exec_ext in '' $ac_executable_extensions; do
  5819. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5820. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5822. break 2
  5823. fi
  5824. done
  5825. done
  5826. IFS=$as_save_IFS
  5827. fi
  5828. fi
  5829. RANLIB=$ac_cv_prog_RANLIB
  5830. if test -n "$RANLIB"; then
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5832. $as_echo "$RANLIB" >&6; }
  5833. else
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5835. $as_echo "no" >&6; }
  5836. fi
  5837. fi
  5838. if test -z "$ac_cv_prog_RANLIB"; then
  5839. ac_ct_RANLIB=$RANLIB
  5840. # Extract the first word of "ranlib", so it can be a program name with args.
  5841. set dummy ranlib; ac_word=$2
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5843. $as_echo_n "checking for $ac_word... " >&6; }
  5844. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5845. $as_echo_n "(cached) " >&6
  5846. else
  5847. if test -n "$ac_ct_RANLIB"; then
  5848. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5849. else
  5850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5851. for as_dir in $PATH
  5852. do
  5853. IFS=$as_save_IFS
  5854. test -z "$as_dir" && as_dir=.
  5855. for ac_exec_ext in '' $ac_executable_extensions; do
  5856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5857. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5859. break 2
  5860. fi
  5861. done
  5862. done
  5863. IFS=$as_save_IFS
  5864. fi
  5865. fi
  5866. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5867. if test -n "$ac_ct_RANLIB"; then
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5869. $as_echo "$ac_ct_RANLIB" >&6; }
  5870. else
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5872. $as_echo "no" >&6; }
  5873. fi
  5874. if test "x$ac_ct_RANLIB" = x; then
  5875. RANLIB=":"
  5876. else
  5877. case $cross_compiling:$ac_tool_warned in
  5878. yes:)
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5880. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5881. ac_tool_warned=yes ;;
  5882. esac
  5883. RANLIB=$ac_ct_RANLIB
  5884. fi
  5885. else
  5886. RANLIB="$ac_cv_prog_RANLIB"
  5887. fi
  5888. test -z "$RANLIB" && RANLIB=:
  5889. # Determine commands to create old-style static archives.
  5890. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5891. old_postinstall_cmds='chmod 644 $oldlib'
  5892. old_postuninstall_cmds=
  5893. if test -n "$RANLIB"; then
  5894. case $host_os in
  5895. openbsd*)
  5896. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5897. ;;
  5898. *)
  5899. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5900. ;;
  5901. esac
  5902. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5903. fi
  5904. case $host_os in
  5905. darwin*)
  5906. lock_old_archive_extraction=yes ;;
  5907. *)
  5908. lock_old_archive_extraction=no ;;
  5909. esac
  5910. # If no C compiler was specified, use CC.
  5911. LTCC=${LTCC-"$CC"}
  5912. # If no C compiler flags were specified, use CFLAGS.
  5913. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5914. # Allow CC to be a program name with arguments.
  5915. compiler=$CC
  5916. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5918. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5919. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5920. $as_echo_n "(cached) " >&6
  5921. else
  5922. # These are sane defaults that work on at least a few old systems.
  5923. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5924. # Character class describing NM global symbol codes.
  5925. symcode='[BCDEGRST]'
  5926. # Regexp to match symbols that can be accessed directly from C.
  5927. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5928. # Define system-specific variables.
  5929. case $host_os in
  5930. aix*)
  5931. symcode='[BCDT]'
  5932. ;;
  5933. cygwin* | mingw* | pw32* | cegcc*)
  5934. symcode='[ABCDGISTW]'
  5935. ;;
  5936. hpux*)
  5937. if test "$host_cpu" = ia64; then
  5938. symcode='[ABCDEGRST]'
  5939. fi
  5940. ;;
  5941. irix* | nonstopux*)
  5942. symcode='[BCDEGRST]'
  5943. ;;
  5944. osf*)
  5945. symcode='[BCDEGQRST]'
  5946. ;;
  5947. solaris*)
  5948. symcode='[BDRT]'
  5949. ;;
  5950. sco3.2v5*)
  5951. symcode='[DT]'
  5952. ;;
  5953. sysv4.2uw2*)
  5954. symcode='[DT]'
  5955. ;;
  5956. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5957. symcode='[ABDT]'
  5958. ;;
  5959. sysv4)
  5960. symcode='[DFNSTU]'
  5961. ;;
  5962. esac
  5963. # If we're using GNU nm, then use its standard symbol codes.
  5964. case `$NM -V 2>&1` in
  5965. *GNU* | *'with BFD'*)
  5966. symcode='[ABCDGIRSTW]' ;;
  5967. esac
  5968. # Transform an extracted symbol line into a proper C declaration.
  5969. # Some systems (esp. on ia64) link data and code symbols differently,
  5970. # so use this general approach.
  5971. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5972. # Transform an extracted symbol line into symbol name and symbol address
  5973. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5974. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5975. # Handle CRLF in mingw tool chain
  5976. opt_cr=
  5977. case $build_os in
  5978. mingw*)
  5979. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5980. ;;
  5981. esac
  5982. # Try without a prefix underscore, then with it.
  5983. for ac_symprfx in "" "_"; do
  5984. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5985. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5986. # Write the raw and C identifiers.
  5987. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5988. # Fake it for dumpbin and say T for any non-static function
  5989. # and D for any global variable.
  5990. # Also find C++ and __fastcall symbols from MSVC++,
  5991. # which start with @ or ?.
  5992. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5993. " {last_section=section; section=\$ 3};"\
  5994. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5995. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5996. " \$ 0!~/External *\|/{next};"\
  5997. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5998. " {if(hide[section]) next};"\
  5999. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6000. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6001. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6002. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6003. " ' prfx=^$ac_symprfx"
  6004. else
  6005. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6006. fi
  6007. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6008. # Check to see that the pipe works correctly.
  6009. pipe_works=no
  6010. rm -f conftest*
  6011. cat > conftest.$ac_ext <<_LT_EOF
  6012. #ifdef __cplusplus
  6013. extern "C" {
  6014. #endif
  6015. char nm_test_var;
  6016. void nm_test_func(void);
  6017. void nm_test_func(void){}
  6018. #ifdef __cplusplus
  6019. }
  6020. #endif
  6021. int main(){nm_test_var='a';nm_test_func();return(0);}
  6022. _LT_EOF
  6023. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6024. (eval $ac_compile) 2>&5
  6025. ac_status=$?
  6026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6027. test $ac_status = 0; }; then
  6028. # Now try to grab the symbols.
  6029. nlist=conftest.nm
  6030. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6031. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6032. ac_status=$?
  6033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6034. test $ac_status = 0; } && test -s "$nlist"; then
  6035. # Try sorting and uniquifying the output.
  6036. if sort "$nlist" | uniq > "$nlist"T; then
  6037. mv -f "$nlist"T "$nlist"
  6038. else
  6039. rm -f "$nlist"T
  6040. fi
  6041. # Make sure that we snagged all the symbols we need.
  6042. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6043. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6044. cat <<_LT_EOF > conftest.$ac_ext
  6045. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6046. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6047. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6048. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6049. # define LT_DLSYM_CONST
  6050. #elif defined(__osf__)
  6051. /* This system does not cope well with relocations in const data. */
  6052. # define LT_DLSYM_CONST
  6053. #else
  6054. # define LT_DLSYM_CONST const
  6055. #endif
  6056. #ifdef __cplusplus
  6057. extern "C" {
  6058. #endif
  6059. _LT_EOF
  6060. # Now generate the symbol file.
  6061. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6062. cat <<_LT_EOF >> conftest.$ac_ext
  6063. /* The mapping between symbol names and symbols. */
  6064. LT_DLSYM_CONST struct {
  6065. const char *name;
  6066. void *address;
  6067. }
  6068. lt__PROGRAM__LTX_preloaded_symbols[] =
  6069. {
  6070. { "@PROGRAM@", (void *) 0 },
  6071. _LT_EOF
  6072. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6073. cat <<\_LT_EOF >> conftest.$ac_ext
  6074. {0, (void *) 0}
  6075. };
  6076. /* This works around a problem in FreeBSD linker */
  6077. #ifdef FREEBSD_WORKAROUND
  6078. static const void *lt_preloaded_setup() {
  6079. return lt__PROGRAM__LTX_preloaded_symbols;
  6080. }
  6081. #endif
  6082. #ifdef __cplusplus
  6083. }
  6084. #endif
  6085. _LT_EOF
  6086. # Now try linking the two files.
  6087. mv conftest.$ac_objext conftstm.$ac_objext
  6088. lt_globsym_save_LIBS=$LIBS
  6089. lt_globsym_save_CFLAGS=$CFLAGS
  6090. LIBS="conftstm.$ac_objext"
  6091. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6092. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6093. (eval $ac_link) 2>&5
  6094. ac_status=$?
  6095. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6096. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6097. pipe_works=yes
  6098. fi
  6099. LIBS=$lt_globsym_save_LIBS
  6100. CFLAGS=$lt_globsym_save_CFLAGS
  6101. else
  6102. echo "cannot find nm_test_func in $nlist" >&5
  6103. fi
  6104. else
  6105. echo "cannot find nm_test_var in $nlist" >&5
  6106. fi
  6107. else
  6108. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6109. fi
  6110. else
  6111. echo "$progname: failed program was:" >&5
  6112. cat conftest.$ac_ext >&5
  6113. fi
  6114. rm -rf conftest* conftst*
  6115. # Do not use the global_symbol_pipe unless it works.
  6116. if test "$pipe_works" = yes; then
  6117. break
  6118. else
  6119. lt_cv_sys_global_symbol_pipe=
  6120. fi
  6121. done
  6122. fi
  6123. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6124. lt_cv_sys_global_symbol_to_cdecl=
  6125. fi
  6126. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6128. $as_echo "failed" >&6; }
  6129. else
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6131. $as_echo "ok" >&6; }
  6132. fi
  6133. # Response file support.
  6134. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6135. nm_file_list_spec='@'
  6136. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6137. nm_file_list_spec='@'
  6138. fi
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6140. $as_echo_n "checking for sysroot... " >&6; }
  6141. # Check whether --with-sysroot was given.
  6142. if test "${with_sysroot+set}" = set; then :
  6143. withval=$with_sysroot;
  6144. else
  6145. with_sysroot=no
  6146. fi
  6147. lt_sysroot=
  6148. case ${with_sysroot} in #(
  6149. yes)
  6150. if test "$GCC" = yes; then
  6151. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6152. fi
  6153. ;; #(
  6154. /*)
  6155. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6156. ;; #(
  6157. no|'')
  6158. ;; #(
  6159. *)
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6161. $as_echo "${with_sysroot}" >&6; }
  6162. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6163. ;;
  6164. esac
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6166. $as_echo "${lt_sysroot:-no}" >&6; }
  6167. # Check whether --enable-libtool-lock was given.
  6168. if test "${enable_libtool_lock+set}" = set; then :
  6169. enableval=$enable_libtool_lock;
  6170. fi
  6171. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6172. # Some flags need to be propagated to the compiler or linker for good
  6173. # libtool support.
  6174. case $host in
  6175. ia64-*-hpux*)
  6176. # Find out which ABI we are using.
  6177. echo 'int i;' > conftest.$ac_ext
  6178. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6179. (eval $ac_compile) 2>&5
  6180. ac_status=$?
  6181. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6182. test $ac_status = 0; }; then
  6183. case `/usr/bin/file conftest.$ac_objext` in
  6184. *ELF-32*)
  6185. HPUX_IA64_MODE="32"
  6186. ;;
  6187. *ELF-64*)
  6188. HPUX_IA64_MODE="64"
  6189. ;;
  6190. esac
  6191. fi
  6192. rm -rf conftest*
  6193. ;;
  6194. *-*-irix6*)
  6195. # Find out which ABI we are using.
  6196. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6197. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6198. (eval $ac_compile) 2>&5
  6199. ac_status=$?
  6200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6201. test $ac_status = 0; }; then
  6202. if test "$lt_cv_prog_gnu_ld" = yes; then
  6203. case `/usr/bin/file conftest.$ac_objext` in
  6204. *32-bit*)
  6205. LD="${LD-ld} -melf32bsmip"
  6206. ;;
  6207. *N32*)
  6208. LD="${LD-ld} -melf32bmipn32"
  6209. ;;
  6210. *64-bit*)
  6211. LD="${LD-ld} -melf64bmip"
  6212. ;;
  6213. esac
  6214. else
  6215. case `/usr/bin/file conftest.$ac_objext` in
  6216. *32-bit*)
  6217. LD="${LD-ld} -32"
  6218. ;;
  6219. *N32*)
  6220. LD="${LD-ld} -n32"
  6221. ;;
  6222. *64-bit*)
  6223. LD="${LD-ld} -64"
  6224. ;;
  6225. esac
  6226. fi
  6227. fi
  6228. rm -rf conftest*
  6229. ;;
  6230. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6231. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6232. # Find out which ABI we are using.
  6233. echo 'int i;' > conftest.$ac_ext
  6234. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6235. (eval $ac_compile) 2>&5
  6236. ac_status=$?
  6237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6238. test $ac_status = 0; }; then
  6239. case `/usr/bin/file conftest.o` in
  6240. *32-bit*)
  6241. case $host in
  6242. x86_64-*kfreebsd*-gnu)
  6243. LD="${LD-ld} -m elf_i386_fbsd"
  6244. ;;
  6245. x86_64-*linux*)
  6246. LD="${LD-ld} -m elf_i386"
  6247. ;;
  6248. ppc64-*linux*|powerpc64-*linux*)
  6249. LD="${LD-ld} -m elf32ppclinux"
  6250. ;;
  6251. s390x-*linux*)
  6252. LD="${LD-ld} -m elf_s390"
  6253. ;;
  6254. sparc64-*linux*)
  6255. LD="${LD-ld} -m elf32_sparc"
  6256. ;;
  6257. esac
  6258. ;;
  6259. *64-bit*)
  6260. case $host in
  6261. x86_64-*kfreebsd*-gnu)
  6262. LD="${LD-ld} -m elf_x86_64_fbsd"
  6263. ;;
  6264. x86_64-*linux*)
  6265. LD="${LD-ld} -m elf_x86_64"
  6266. ;;
  6267. ppc*-*linux*|powerpc*-*linux*)
  6268. LD="${LD-ld} -m elf64ppc"
  6269. ;;
  6270. s390*-*linux*|s390*-*tpf*)
  6271. LD="${LD-ld} -m elf64_s390"
  6272. ;;
  6273. sparc*-*linux*)
  6274. LD="${LD-ld} -m elf64_sparc"
  6275. ;;
  6276. esac
  6277. ;;
  6278. esac
  6279. fi
  6280. rm -rf conftest*
  6281. ;;
  6282. *-*-sco3.2v5*)
  6283. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6284. SAVE_CFLAGS="$CFLAGS"
  6285. CFLAGS="$CFLAGS -belf"
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6287. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6288. if ${lt_cv_cc_needs_belf+:} false; then :
  6289. $as_echo_n "(cached) " >&6
  6290. else
  6291. ac_ext=c
  6292. ac_cpp='$CPP $CPPFLAGS'
  6293. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6294. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6295. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6297. /* end confdefs.h. */
  6298. int
  6299. main ()
  6300. {
  6301. ;
  6302. return 0;
  6303. }
  6304. _ACEOF
  6305. if ac_fn_c_try_link "$LINENO"; then :
  6306. lt_cv_cc_needs_belf=yes
  6307. else
  6308. lt_cv_cc_needs_belf=no
  6309. fi
  6310. rm -f core conftest.err conftest.$ac_objext \
  6311. conftest$ac_exeext conftest.$ac_ext
  6312. ac_ext=c
  6313. ac_cpp='$CPP $CPPFLAGS'
  6314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6317. fi
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6319. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6320. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6321. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6322. CFLAGS="$SAVE_CFLAGS"
  6323. fi
  6324. ;;
  6325. *-*solaris*)
  6326. # Find out which ABI we are using.
  6327. echo 'int i;' > conftest.$ac_ext
  6328. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6329. (eval $ac_compile) 2>&5
  6330. ac_status=$?
  6331. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6332. test $ac_status = 0; }; then
  6333. case `/usr/bin/file conftest.o` in
  6334. *64-bit*)
  6335. case $lt_cv_prog_gnu_ld in
  6336. yes*)
  6337. case $host in
  6338. i?86-*-solaris*)
  6339. LD="${LD-ld} -m elf_x86_64"
  6340. ;;
  6341. sparc*-*-solaris*)
  6342. LD="${LD-ld} -m elf64_sparc"
  6343. ;;
  6344. esac
  6345. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6346. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6347. LD="${LD-ld}_sol2"
  6348. fi
  6349. ;;
  6350. *)
  6351. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6352. LD="${LD-ld} -64"
  6353. fi
  6354. ;;
  6355. esac
  6356. ;;
  6357. esac
  6358. fi
  6359. rm -rf conftest*
  6360. ;;
  6361. esac
  6362. need_locks="$enable_libtool_lock"
  6363. if test -n "$ac_tool_prefix"; then
  6364. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6365. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6367. $as_echo_n "checking for $ac_word... " >&6; }
  6368. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6369. $as_echo_n "(cached) " >&6
  6370. else
  6371. if test -n "$MANIFEST_TOOL"; then
  6372. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6373. else
  6374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6375. for as_dir in $PATH
  6376. do
  6377. IFS=$as_save_IFS
  6378. test -z "$as_dir" && as_dir=.
  6379. for ac_exec_ext in '' $ac_executable_extensions; do
  6380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6381. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6383. break 2
  6384. fi
  6385. done
  6386. done
  6387. IFS=$as_save_IFS
  6388. fi
  6389. fi
  6390. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6391. if test -n "$MANIFEST_TOOL"; then
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6393. $as_echo "$MANIFEST_TOOL" >&6; }
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6396. $as_echo "no" >&6; }
  6397. fi
  6398. fi
  6399. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6400. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6401. # Extract the first word of "mt", so it can be a program name with args.
  6402. set dummy mt; ac_word=$2
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6404. $as_echo_n "checking for $ac_word... " >&6; }
  6405. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6409. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6410. else
  6411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6412. for as_dir in $PATH
  6413. do
  6414. IFS=$as_save_IFS
  6415. test -z "$as_dir" && as_dir=.
  6416. for ac_exec_ext in '' $ac_executable_extensions; do
  6417. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6418. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6420. break 2
  6421. fi
  6422. done
  6423. done
  6424. IFS=$as_save_IFS
  6425. fi
  6426. fi
  6427. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6428. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6430. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6431. else
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6433. $as_echo "no" >&6; }
  6434. fi
  6435. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6436. MANIFEST_TOOL=":"
  6437. else
  6438. case $cross_compiling:$ac_tool_warned in
  6439. yes:)
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6441. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6442. ac_tool_warned=yes ;;
  6443. esac
  6444. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6445. fi
  6446. else
  6447. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6448. fi
  6449. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6451. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6452. if ${lt_cv_path_mainfest_tool+:} false; then :
  6453. $as_echo_n "(cached) " >&6
  6454. else
  6455. lt_cv_path_mainfest_tool=no
  6456. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6457. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6458. cat conftest.err >&5
  6459. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6460. lt_cv_path_mainfest_tool=yes
  6461. fi
  6462. rm -f conftest*
  6463. fi
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6465. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6466. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6467. MANIFEST_TOOL=:
  6468. fi
  6469. case $host_os in
  6470. rhapsody* | darwin*)
  6471. if test -n "$ac_tool_prefix"; then
  6472. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6473. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6475. $as_echo_n "checking for $ac_word... " >&6; }
  6476. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6477. $as_echo_n "(cached) " >&6
  6478. else
  6479. if test -n "$DSYMUTIL"; then
  6480. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6481. else
  6482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6483. for as_dir in $PATH
  6484. do
  6485. IFS=$as_save_IFS
  6486. test -z "$as_dir" && as_dir=.
  6487. for ac_exec_ext in '' $ac_executable_extensions; do
  6488. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6489. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6491. break 2
  6492. fi
  6493. done
  6494. done
  6495. IFS=$as_save_IFS
  6496. fi
  6497. fi
  6498. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6499. if test -n "$DSYMUTIL"; then
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6501. $as_echo "$DSYMUTIL" >&6; }
  6502. else
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6504. $as_echo "no" >&6; }
  6505. fi
  6506. fi
  6507. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6508. ac_ct_DSYMUTIL=$DSYMUTIL
  6509. # Extract the first word of "dsymutil", so it can be a program name with args.
  6510. set dummy dsymutil; ac_word=$2
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6512. $as_echo_n "checking for $ac_word... " >&6; }
  6513. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6514. $as_echo_n "(cached) " >&6
  6515. else
  6516. if test -n "$ac_ct_DSYMUTIL"; then
  6517. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6518. else
  6519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6520. for as_dir in $PATH
  6521. do
  6522. IFS=$as_save_IFS
  6523. test -z "$as_dir" && as_dir=.
  6524. for ac_exec_ext in '' $ac_executable_extensions; do
  6525. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6526. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6528. break 2
  6529. fi
  6530. done
  6531. done
  6532. IFS=$as_save_IFS
  6533. fi
  6534. fi
  6535. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6536. if test -n "$ac_ct_DSYMUTIL"; then
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6538. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6539. else
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6541. $as_echo "no" >&6; }
  6542. fi
  6543. if test "x$ac_ct_DSYMUTIL" = x; then
  6544. DSYMUTIL=":"
  6545. else
  6546. case $cross_compiling:$ac_tool_warned in
  6547. yes:)
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6549. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6550. ac_tool_warned=yes ;;
  6551. esac
  6552. DSYMUTIL=$ac_ct_DSYMUTIL
  6553. fi
  6554. else
  6555. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6556. fi
  6557. if test -n "$ac_tool_prefix"; then
  6558. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6559. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6561. $as_echo_n "checking for $ac_word... " >&6; }
  6562. if ${ac_cv_prog_NMEDIT+:} false; then :
  6563. $as_echo_n "(cached) " >&6
  6564. else
  6565. if test -n "$NMEDIT"; then
  6566. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6567. else
  6568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6569. for as_dir in $PATH
  6570. do
  6571. IFS=$as_save_IFS
  6572. test -z "$as_dir" && as_dir=.
  6573. for ac_exec_ext in '' $ac_executable_extensions; do
  6574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6575. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6577. break 2
  6578. fi
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. fi
  6583. fi
  6584. NMEDIT=$ac_cv_prog_NMEDIT
  6585. if test -n "$NMEDIT"; then
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6587. $as_echo "$NMEDIT" >&6; }
  6588. else
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6590. $as_echo "no" >&6; }
  6591. fi
  6592. fi
  6593. if test -z "$ac_cv_prog_NMEDIT"; then
  6594. ac_ct_NMEDIT=$NMEDIT
  6595. # Extract the first word of "nmedit", so it can be a program name with args.
  6596. set dummy nmedit; ac_word=$2
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6598. $as_echo_n "checking for $ac_word... " >&6; }
  6599. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6600. $as_echo_n "(cached) " >&6
  6601. else
  6602. if test -n "$ac_ct_NMEDIT"; then
  6603. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6604. else
  6605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6606. for as_dir in $PATH
  6607. do
  6608. IFS=$as_save_IFS
  6609. test -z "$as_dir" && as_dir=.
  6610. for ac_exec_ext in '' $ac_executable_extensions; do
  6611. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6612. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6614. break 2
  6615. fi
  6616. done
  6617. done
  6618. IFS=$as_save_IFS
  6619. fi
  6620. fi
  6621. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6622. if test -n "$ac_ct_NMEDIT"; then
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6624. $as_echo "$ac_ct_NMEDIT" >&6; }
  6625. else
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6627. $as_echo "no" >&6; }
  6628. fi
  6629. if test "x$ac_ct_NMEDIT" = x; then
  6630. NMEDIT=":"
  6631. else
  6632. case $cross_compiling:$ac_tool_warned in
  6633. yes:)
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6636. ac_tool_warned=yes ;;
  6637. esac
  6638. NMEDIT=$ac_ct_NMEDIT
  6639. fi
  6640. else
  6641. NMEDIT="$ac_cv_prog_NMEDIT"
  6642. fi
  6643. if test -n "$ac_tool_prefix"; then
  6644. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6645. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6647. $as_echo_n "checking for $ac_word... " >&6; }
  6648. if ${ac_cv_prog_LIPO+:} false; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. if test -n "$LIPO"; then
  6652. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6653. else
  6654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6655. for as_dir in $PATH
  6656. do
  6657. IFS=$as_save_IFS
  6658. test -z "$as_dir" && as_dir=.
  6659. for ac_exec_ext in '' $ac_executable_extensions; do
  6660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6661. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6663. break 2
  6664. fi
  6665. done
  6666. done
  6667. IFS=$as_save_IFS
  6668. fi
  6669. fi
  6670. LIPO=$ac_cv_prog_LIPO
  6671. if test -n "$LIPO"; then
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6673. $as_echo "$LIPO" >&6; }
  6674. else
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6676. $as_echo "no" >&6; }
  6677. fi
  6678. fi
  6679. if test -z "$ac_cv_prog_LIPO"; then
  6680. ac_ct_LIPO=$LIPO
  6681. # Extract the first word of "lipo", so it can be a program name with args.
  6682. set dummy lipo; ac_word=$2
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6684. $as_echo_n "checking for $ac_word... " >&6; }
  6685. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6686. $as_echo_n "(cached) " >&6
  6687. else
  6688. if test -n "$ac_ct_LIPO"; then
  6689. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6690. else
  6691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6692. for as_dir in $PATH
  6693. do
  6694. IFS=$as_save_IFS
  6695. test -z "$as_dir" && as_dir=.
  6696. for ac_exec_ext in '' $ac_executable_extensions; do
  6697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6698. ac_cv_prog_ac_ct_LIPO="lipo"
  6699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6700. break 2
  6701. fi
  6702. done
  6703. done
  6704. IFS=$as_save_IFS
  6705. fi
  6706. fi
  6707. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6708. if test -n "$ac_ct_LIPO"; then
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6710. $as_echo "$ac_ct_LIPO" >&6; }
  6711. else
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6713. $as_echo "no" >&6; }
  6714. fi
  6715. if test "x$ac_ct_LIPO" = x; then
  6716. LIPO=":"
  6717. else
  6718. case $cross_compiling:$ac_tool_warned in
  6719. yes:)
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6721. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6722. ac_tool_warned=yes ;;
  6723. esac
  6724. LIPO=$ac_ct_LIPO
  6725. fi
  6726. else
  6727. LIPO="$ac_cv_prog_LIPO"
  6728. fi
  6729. if test -n "$ac_tool_prefix"; then
  6730. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6731. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6733. $as_echo_n "checking for $ac_word... " >&6; }
  6734. if ${ac_cv_prog_OTOOL+:} false; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. if test -n "$OTOOL"; then
  6738. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6739. else
  6740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6741. for as_dir in $PATH
  6742. do
  6743. IFS=$as_save_IFS
  6744. test -z "$as_dir" && as_dir=.
  6745. for ac_exec_ext in '' $ac_executable_extensions; do
  6746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6747. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6749. break 2
  6750. fi
  6751. done
  6752. done
  6753. IFS=$as_save_IFS
  6754. fi
  6755. fi
  6756. OTOOL=$ac_cv_prog_OTOOL
  6757. if test -n "$OTOOL"; then
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6759. $as_echo "$OTOOL" >&6; }
  6760. else
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6762. $as_echo "no" >&6; }
  6763. fi
  6764. fi
  6765. if test -z "$ac_cv_prog_OTOOL"; then
  6766. ac_ct_OTOOL=$OTOOL
  6767. # Extract the first word of "otool", so it can be a program name with args.
  6768. set dummy otool; ac_word=$2
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6770. $as_echo_n "checking for $ac_word... " >&6; }
  6771. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6772. $as_echo_n "(cached) " >&6
  6773. else
  6774. if test -n "$ac_ct_OTOOL"; then
  6775. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6776. else
  6777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6778. for as_dir in $PATH
  6779. do
  6780. IFS=$as_save_IFS
  6781. test -z "$as_dir" && as_dir=.
  6782. for ac_exec_ext in '' $ac_executable_extensions; do
  6783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6784. ac_cv_prog_ac_ct_OTOOL="otool"
  6785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6786. break 2
  6787. fi
  6788. done
  6789. done
  6790. IFS=$as_save_IFS
  6791. fi
  6792. fi
  6793. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6794. if test -n "$ac_ct_OTOOL"; then
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6796. $as_echo "$ac_ct_OTOOL" >&6; }
  6797. else
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6799. $as_echo "no" >&6; }
  6800. fi
  6801. if test "x$ac_ct_OTOOL" = x; then
  6802. OTOOL=":"
  6803. else
  6804. case $cross_compiling:$ac_tool_warned in
  6805. yes:)
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6807. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6808. ac_tool_warned=yes ;;
  6809. esac
  6810. OTOOL=$ac_ct_OTOOL
  6811. fi
  6812. else
  6813. OTOOL="$ac_cv_prog_OTOOL"
  6814. fi
  6815. if test -n "$ac_tool_prefix"; then
  6816. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6817. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6819. $as_echo_n "checking for $ac_word... " >&6; }
  6820. if ${ac_cv_prog_OTOOL64+:} false; then :
  6821. $as_echo_n "(cached) " >&6
  6822. else
  6823. if test -n "$OTOOL64"; then
  6824. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6825. else
  6826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6827. for as_dir in $PATH
  6828. do
  6829. IFS=$as_save_IFS
  6830. test -z "$as_dir" && as_dir=.
  6831. for ac_exec_ext in '' $ac_executable_extensions; do
  6832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6833. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6835. break 2
  6836. fi
  6837. done
  6838. done
  6839. IFS=$as_save_IFS
  6840. fi
  6841. fi
  6842. OTOOL64=$ac_cv_prog_OTOOL64
  6843. if test -n "$OTOOL64"; then
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6845. $as_echo "$OTOOL64" >&6; }
  6846. else
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6848. $as_echo "no" >&6; }
  6849. fi
  6850. fi
  6851. if test -z "$ac_cv_prog_OTOOL64"; then
  6852. ac_ct_OTOOL64=$OTOOL64
  6853. # Extract the first word of "otool64", so it can be a program name with args.
  6854. set dummy otool64; ac_word=$2
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6856. $as_echo_n "checking for $ac_word... " >&6; }
  6857. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6858. $as_echo_n "(cached) " >&6
  6859. else
  6860. if test -n "$ac_ct_OTOOL64"; then
  6861. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6862. else
  6863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6864. for as_dir in $PATH
  6865. do
  6866. IFS=$as_save_IFS
  6867. test -z "$as_dir" && as_dir=.
  6868. for ac_exec_ext in '' $ac_executable_extensions; do
  6869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6870. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6872. break 2
  6873. fi
  6874. done
  6875. done
  6876. IFS=$as_save_IFS
  6877. fi
  6878. fi
  6879. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6880. if test -n "$ac_ct_OTOOL64"; then
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6882. $as_echo "$ac_ct_OTOOL64" >&6; }
  6883. else
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6885. $as_echo "no" >&6; }
  6886. fi
  6887. if test "x$ac_ct_OTOOL64" = x; then
  6888. OTOOL64=":"
  6889. else
  6890. case $cross_compiling:$ac_tool_warned in
  6891. yes:)
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6893. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6894. ac_tool_warned=yes ;;
  6895. esac
  6896. OTOOL64=$ac_ct_OTOOL64
  6897. fi
  6898. else
  6899. OTOOL64="$ac_cv_prog_OTOOL64"
  6900. fi
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6902. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6903. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6904. $as_echo_n "(cached) " >&6
  6905. else
  6906. lt_cv_apple_cc_single_mod=no
  6907. if test -z "${LT_MULTI_MODULE}"; then
  6908. # By default we will add the -single_module flag. You can override
  6909. # by either setting the environment variable LT_MULTI_MODULE
  6910. # non-empty at configure time, or by adding -multi_module to the
  6911. # link flags.
  6912. rm -rf libconftest.dylib*
  6913. echo "int foo(void){return 1;}" > conftest.c
  6914. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6915. -dynamiclib -Wl,-single_module conftest.c" >&5
  6916. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6917. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6918. _lt_result=$?
  6919. # If there is a non-empty error log, and "single_module"
  6920. # appears in it, assume the flag caused a linker warning
  6921. if test -s conftest.err && $GREP single_module conftest.err; then
  6922. cat conftest.err >&5
  6923. # Otherwise, if the output was created with a 0 exit code from
  6924. # the compiler, it worked.
  6925. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6926. lt_cv_apple_cc_single_mod=yes
  6927. else
  6928. cat conftest.err >&5
  6929. fi
  6930. rm -rf libconftest.dylib*
  6931. rm -f conftest.*
  6932. fi
  6933. fi
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6935. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6937. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6938. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6939. $as_echo_n "(cached) " >&6
  6940. else
  6941. lt_cv_ld_exported_symbols_list=no
  6942. save_LDFLAGS=$LDFLAGS
  6943. echo "_main" > conftest.sym
  6944. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6946. /* end confdefs.h. */
  6947. int
  6948. main ()
  6949. {
  6950. ;
  6951. return 0;
  6952. }
  6953. _ACEOF
  6954. if ac_fn_c_try_link "$LINENO"; then :
  6955. lt_cv_ld_exported_symbols_list=yes
  6956. else
  6957. lt_cv_ld_exported_symbols_list=no
  6958. fi
  6959. rm -f core conftest.err conftest.$ac_objext \
  6960. conftest$ac_exeext conftest.$ac_ext
  6961. LDFLAGS="$save_LDFLAGS"
  6962. fi
  6963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6964. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6966. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6967. if ${lt_cv_ld_force_load+:} false; then :
  6968. $as_echo_n "(cached) " >&6
  6969. else
  6970. lt_cv_ld_force_load=no
  6971. cat > conftest.c << _LT_EOF
  6972. int forced_loaded() { return 2;}
  6973. _LT_EOF
  6974. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6975. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6976. echo "$AR cru libconftest.a conftest.o" >&5
  6977. $AR cru libconftest.a conftest.o 2>&5
  6978. echo "$RANLIB libconftest.a" >&5
  6979. $RANLIB libconftest.a 2>&5
  6980. cat > conftest.c << _LT_EOF
  6981. int main() { return 0;}
  6982. _LT_EOF
  6983. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6984. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6985. _lt_result=$?
  6986. if test -s conftest.err && $GREP force_load conftest.err; then
  6987. cat conftest.err >&5
  6988. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6989. lt_cv_ld_force_load=yes
  6990. else
  6991. cat conftest.err >&5
  6992. fi
  6993. rm -f conftest.err libconftest.a conftest conftest.c
  6994. rm -rf conftest.dSYM
  6995. fi
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6997. $as_echo "$lt_cv_ld_force_load" >&6; }
  6998. case $host_os in
  6999. rhapsody* | darwin1.[012])
  7000. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7001. darwin1.*)
  7002. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7003. darwin*) # darwin 5.x on
  7004. # if running on 10.5 or later, the deployment target defaults
  7005. # to the OS version, if on x86, and 10.4, the deployment
  7006. # target defaults to 10.4. Don't you love it?
  7007. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7008. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7009. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7010. 10.[012]*)
  7011. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7012. 10.*)
  7013. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7014. esac
  7015. ;;
  7016. esac
  7017. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7018. _lt_dar_single_mod='$single_module'
  7019. fi
  7020. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7021. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7022. else
  7023. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7024. fi
  7025. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7026. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7027. else
  7028. _lt_dsymutil=
  7029. fi
  7030. ;;
  7031. esac
  7032. for ac_header in dlfcn.h
  7033. do :
  7034. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7035. "
  7036. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7037. cat >>confdefs.h <<_ACEOF
  7038. #define HAVE_DLFCN_H 1
  7039. _ACEOF
  7040. fi
  7041. done
  7042. # Set options
  7043. enable_dlopen=no
  7044. enable_win32_dll=no
  7045. # Check whether --enable-shared was given.
  7046. if test "${enable_shared+set}" = set; then :
  7047. enableval=$enable_shared; p=${PACKAGE-default}
  7048. case $enableval in
  7049. yes) enable_shared=yes ;;
  7050. no) enable_shared=no ;;
  7051. *)
  7052. enable_shared=no
  7053. # Look at the argument we got. We use all the common list separators.
  7054. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7055. for pkg in $enableval; do
  7056. IFS="$lt_save_ifs"
  7057. if test "X$pkg" = "X$p"; then
  7058. enable_shared=yes
  7059. fi
  7060. done
  7061. IFS="$lt_save_ifs"
  7062. ;;
  7063. esac
  7064. else
  7065. enable_shared=yes
  7066. fi
  7067. # Check whether --enable-static was given.
  7068. if test "${enable_static+set}" = set; then :
  7069. enableval=$enable_static; p=${PACKAGE-default}
  7070. case $enableval in
  7071. yes) enable_static=yes ;;
  7072. no) enable_static=no ;;
  7073. *)
  7074. enable_static=no
  7075. # Look at the argument we got. We use all the common list separators.
  7076. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7077. for pkg in $enableval; do
  7078. IFS="$lt_save_ifs"
  7079. if test "X$pkg" = "X$p"; then
  7080. enable_static=yes
  7081. fi
  7082. done
  7083. IFS="$lt_save_ifs"
  7084. ;;
  7085. esac
  7086. else
  7087. enable_static=yes
  7088. fi
  7089. # Check whether --with-pic was given.
  7090. if test "${with_pic+set}" = set; then :
  7091. withval=$with_pic; lt_p=${PACKAGE-default}
  7092. case $withval in
  7093. yes|no) pic_mode=$withval ;;
  7094. *)
  7095. pic_mode=default
  7096. # Look at the argument we got. We use all the common list separators.
  7097. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7098. for lt_pkg in $withval; do
  7099. IFS="$lt_save_ifs"
  7100. if test "X$lt_pkg" = "X$lt_p"; then
  7101. pic_mode=yes
  7102. fi
  7103. done
  7104. IFS="$lt_save_ifs"
  7105. ;;
  7106. esac
  7107. else
  7108. pic_mode=default
  7109. fi
  7110. test -z "$pic_mode" && pic_mode=default
  7111. # Check whether --enable-fast-install was given.
  7112. if test "${enable_fast_install+set}" = set; then :
  7113. enableval=$enable_fast_install; p=${PACKAGE-default}
  7114. case $enableval in
  7115. yes) enable_fast_install=yes ;;
  7116. no) enable_fast_install=no ;;
  7117. *)
  7118. enable_fast_install=no
  7119. # Look at the argument we got. We use all the common list separators.
  7120. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7121. for pkg in $enableval; do
  7122. IFS="$lt_save_ifs"
  7123. if test "X$pkg" = "X$p"; then
  7124. enable_fast_install=yes
  7125. fi
  7126. done
  7127. IFS="$lt_save_ifs"
  7128. ;;
  7129. esac
  7130. else
  7131. enable_fast_install=yes
  7132. fi
  7133. # This can be used to rebuild libtool when needed
  7134. LIBTOOL_DEPS="$ltmain"
  7135. # Always use our own libtool.
  7136. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7137. test -z "$LN_S" && LN_S="ln -s"
  7138. if test -n "${ZSH_VERSION+set}" ; then
  7139. setopt NO_GLOB_SUBST
  7140. fi
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7142. $as_echo_n "checking for objdir... " >&6; }
  7143. if ${lt_cv_objdir+:} false; then :
  7144. $as_echo_n "(cached) " >&6
  7145. else
  7146. rm -f .libs 2>/dev/null
  7147. mkdir .libs 2>/dev/null
  7148. if test -d .libs; then
  7149. lt_cv_objdir=.libs
  7150. else
  7151. # MS-DOS does not allow filenames that begin with a dot.
  7152. lt_cv_objdir=_libs
  7153. fi
  7154. rmdir .libs 2>/dev/null
  7155. fi
  7156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7157. $as_echo "$lt_cv_objdir" >&6; }
  7158. objdir=$lt_cv_objdir
  7159. cat >>confdefs.h <<_ACEOF
  7160. #define LT_OBJDIR "$lt_cv_objdir/"
  7161. _ACEOF
  7162. case $host_os in
  7163. aix3*)
  7164. # AIX sometimes has problems with the GCC collect2 program. For some
  7165. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7166. # vanish in a puff of smoke.
  7167. if test "X${COLLECT_NAMES+set}" != Xset; then
  7168. COLLECT_NAMES=
  7169. export COLLECT_NAMES
  7170. fi
  7171. ;;
  7172. esac
  7173. # Global variables:
  7174. ofile=libtool
  7175. can_build_shared=yes
  7176. # All known linkers require a `.a' archive for static linking (except MSVC,
  7177. # which needs '.lib').
  7178. libext=a
  7179. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7180. old_CC="$CC"
  7181. old_CFLAGS="$CFLAGS"
  7182. # Set sane defaults for various variables
  7183. test -z "$CC" && CC=cc
  7184. test -z "$LTCC" && LTCC=$CC
  7185. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7186. test -z "$LD" && LD=ld
  7187. test -z "$ac_objext" && ac_objext=o
  7188. for cc_temp in $compiler""; do
  7189. case $cc_temp in
  7190. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7191. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7192. \-*) ;;
  7193. *) break;;
  7194. esac
  7195. done
  7196. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7197. # Only perform the check for file, if the check method requires it
  7198. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7199. case $deplibs_check_method in
  7200. file_magic*)
  7201. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7203. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7204. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7205. $as_echo_n "(cached) " >&6
  7206. else
  7207. case $MAGIC_CMD in
  7208. [\\/*] | ?:[\\/]*)
  7209. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7210. ;;
  7211. *)
  7212. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7213. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7214. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7215. for ac_dir in $ac_dummy; do
  7216. IFS="$lt_save_ifs"
  7217. test -z "$ac_dir" && ac_dir=.
  7218. if test -f $ac_dir/${ac_tool_prefix}file; then
  7219. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7220. if test -n "$file_magic_test_file"; then
  7221. case $deplibs_check_method in
  7222. "file_magic "*)
  7223. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7224. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7225. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7226. $EGREP "$file_magic_regex" > /dev/null; then
  7227. :
  7228. else
  7229. cat <<_LT_EOF 1>&2
  7230. *** Warning: the command libtool uses to detect shared libraries,
  7231. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7232. *** The result is that libtool may fail to recognize shared libraries
  7233. *** as such. This will affect the creation of libtool libraries that
  7234. *** depend on shared libraries, but programs linked with such libtool
  7235. *** libraries will work regardless of this problem. Nevertheless, you
  7236. *** may want to report the problem to your system manager and/or to
  7237. *** bug-libtool@gnu.org
  7238. _LT_EOF
  7239. fi ;;
  7240. esac
  7241. fi
  7242. break
  7243. fi
  7244. done
  7245. IFS="$lt_save_ifs"
  7246. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7247. ;;
  7248. esac
  7249. fi
  7250. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7251. if test -n "$MAGIC_CMD"; then
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7253. $as_echo "$MAGIC_CMD" >&6; }
  7254. else
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7256. $as_echo "no" >&6; }
  7257. fi
  7258. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7259. if test -n "$ac_tool_prefix"; then
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7261. $as_echo_n "checking for file... " >&6; }
  7262. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7263. $as_echo_n "(cached) " >&6
  7264. else
  7265. case $MAGIC_CMD in
  7266. [\\/*] | ?:[\\/]*)
  7267. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7268. ;;
  7269. *)
  7270. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7271. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7272. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7273. for ac_dir in $ac_dummy; do
  7274. IFS="$lt_save_ifs"
  7275. test -z "$ac_dir" && ac_dir=.
  7276. if test -f $ac_dir/file; then
  7277. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7278. if test -n "$file_magic_test_file"; then
  7279. case $deplibs_check_method in
  7280. "file_magic "*)
  7281. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7282. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7283. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7284. $EGREP "$file_magic_regex" > /dev/null; then
  7285. :
  7286. else
  7287. cat <<_LT_EOF 1>&2
  7288. *** Warning: the command libtool uses to detect shared libraries,
  7289. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7290. *** The result is that libtool may fail to recognize shared libraries
  7291. *** as such. This will affect the creation of libtool libraries that
  7292. *** depend on shared libraries, but programs linked with such libtool
  7293. *** libraries will work regardless of this problem. Nevertheless, you
  7294. *** may want to report the problem to your system manager and/or to
  7295. *** bug-libtool@gnu.org
  7296. _LT_EOF
  7297. fi ;;
  7298. esac
  7299. fi
  7300. break
  7301. fi
  7302. done
  7303. IFS="$lt_save_ifs"
  7304. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7305. ;;
  7306. esac
  7307. fi
  7308. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7309. if test -n "$MAGIC_CMD"; then
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7311. $as_echo "$MAGIC_CMD" >&6; }
  7312. else
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7314. $as_echo "no" >&6; }
  7315. fi
  7316. else
  7317. MAGIC_CMD=:
  7318. fi
  7319. fi
  7320. fi
  7321. ;;
  7322. esac
  7323. # Use C for the default configuration in the libtool script
  7324. lt_save_CC="$CC"
  7325. ac_ext=c
  7326. ac_cpp='$CPP $CPPFLAGS'
  7327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7330. # Source file extension for C test sources.
  7331. ac_ext=c
  7332. # Object file extension for compiled C test sources.
  7333. objext=o
  7334. objext=$objext
  7335. # Code to be used in simple compile tests
  7336. lt_simple_compile_test_code="int some_variable = 0;"
  7337. # Code to be used in simple link tests
  7338. lt_simple_link_test_code='int main(){return(0);}'
  7339. # If no C compiler was specified, use CC.
  7340. LTCC=${LTCC-"$CC"}
  7341. # If no C compiler flags were specified, use CFLAGS.
  7342. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7343. # Allow CC to be a program name with arguments.
  7344. compiler=$CC
  7345. # Save the default compiler, since it gets overwritten when the other
  7346. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7347. compiler_DEFAULT=$CC
  7348. # save warnings/boilerplate of simple test code
  7349. ac_outfile=conftest.$ac_objext
  7350. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7351. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7352. _lt_compiler_boilerplate=`cat conftest.err`
  7353. $RM conftest*
  7354. ac_outfile=conftest.$ac_objext
  7355. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7356. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7357. _lt_linker_boilerplate=`cat conftest.err`
  7358. $RM -r conftest*
  7359. if test -n "$compiler"; then
  7360. lt_prog_compiler_no_builtin_flag=
  7361. if test "$GCC" = yes; then
  7362. case $cc_basename in
  7363. nvcc*)
  7364. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7365. *)
  7366. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7367. esac
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7369. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7370. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7371. $as_echo_n "(cached) " >&6
  7372. else
  7373. lt_cv_prog_compiler_rtti_exceptions=no
  7374. ac_outfile=conftest.$ac_objext
  7375. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7376. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7377. # Insert the option either (1) after the last *FLAGS variable, or
  7378. # (2) before a word containing "conftest.", or (3) at the end.
  7379. # Note that $ac_compile itself does not contain backslashes and begins
  7380. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7381. # The option is referenced via a variable to avoid confusing sed.
  7382. lt_compile=`echo "$ac_compile" | $SED \
  7383. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7384. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7385. -e 's:$: $lt_compiler_flag:'`
  7386. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7387. (eval "$lt_compile" 2>conftest.err)
  7388. ac_status=$?
  7389. cat conftest.err >&5
  7390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7391. if (exit $ac_status) && test -s "$ac_outfile"; then
  7392. # The compiler can only warn and ignore the option if not recognized
  7393. # So say no if there are warnings other than the usual output.
  7394. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7395. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7396. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7397. lt_cv_prog_compiler_rtti_exceptions=yes
  7398. fi
  7399. fi
  7400. $RM conftest*
  7401. fi
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7403. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7404. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7405. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7406. else
  7407. :
  7408. fi
  7409. fi
  7410. lt_prog_compiler_wl=
  7411. lt_prog_compiler_pic=
  7412. lt_prog_compiler_static=
  7413. if test "$GCC" = yes; then
  7414. lt_prog_compiler_wl='-Wl,'
  7415. lt_prog_compiler_static='-static'
  7416. case $host_os in
  7417. aix*)
  7418. # All AIX code is PIC.
  7419. if test "$host_cpu" = ia64; then
  7420. # AIX 5 now supports IA64 processor
  7421. lt_prog_compiler_static='-Bstatic'
  7422. fi
  7423. ;;
  7424. amigaos*)
  7425. case $host_cpu in
  7426. powerpc)
  7427. # see comment about AmigaOS4 .so support
  7428. lt_prog_compiler_pic='-fPIC'
  7429. ;;
  7430. m68k)
  7431. # FIXME: we need at least 68020 code to build shared libraries, but
  7432. # adding the `-m68020' flag to GCC prevents building anything better,
  7433. # like `-m68040'.
  7434. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7435. ;;
  7436. esac
  7437. ;;
  7438. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7439. # PIC is the default for these OSes.
  7440. ;;
  7441. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7442. # This hack is so that the source file can tell whether it is being
  7443. # built for inclusion in a dll (and should export symbols for example).
  7444. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7445. # (--disable-auto-import) libraries
  7446. lt_prog_compiler_pic='-DDLL_EXPORT'
  7447. ;;
  7448. darwin* | rhapsody*)
  7449. # PIC is the default on this platform
  7450. # Common symbols not allowed in MH_DYLIB files
  7451. lt_prog_compiler_pic='-fno-common'
  7452. ;;
  7453. haiku*)
  7454. # PIC is the default for Haiku.
  7455. # The "-static" flag exists, but is broken.
  7456. lt_prog_compiler_static=
  7457. ;;
  7458. hpux*)
  7459. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7460. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7461. # sets the default TLS model and affects inlining.
  7462. case $host_cpu in
  7463. hppa*64*)
  7464. # +Z the default
  7465. ;;
  7466. *)
  7467. lt_prog_compiler_pic='-fPIC'
  7468. ;;
  7469. esac
  7470. ;;
  7471. interix[3-9]*)
  7472. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7473. # Instead, we relocate shared libraries at runtime.
  7474. ;;
  7475. msdosdjgpp*)
  7476. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7477. # on systems that don't support them.
  7478. lt_prog_compiler_can_build_shared=no
  7479. enable_shared=no
  7480. ;;
  7481. *nto* | *qnx*)
  7482. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7483. # it will coredump.
  7484. lt_prog_compiler_pic='-fPIC -shared'
  7485. ;;
  7486. sysv4*MP*)
  7487. if test -d /usr/nec; then
  7488. lt_prog_compiler_pic=-Kconform_pic
  7489. fi
  7490. ;;
  7491. *)
  7492. lt_prog_compiler_pic='-fPIC'
  7493. ;;
  7494. esac
  7495. case $cc_basename in
  7496. nvcc*) # Cuda Compiler Driver 2.2
  7497. lt_prog_compiler_wl='-Xlinker '
  7498. if test -n "$lt_prog_compiler_pic"; then
  7499. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7500. fi
  7501. ;;
  7502. esac
  7503. else
  7504. # PORTME Check for flag to pass linker flags through the system compiler.
  7505. case $host_os in
  7506. aix*)
  7507. lt_prog_compiler_wl='-Wl,'
  7508. if test "$host_cpu" = ia64; then
  7509. # AIX 5 now supports IA64 processor
  7510. lt_prog_compiler_static='-Bstatic'
  7511. else
  7512. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7513. fi
  7514. ;;
  7515. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7516. # This hack is so that the source file can tell whether it is being
  7517. # built for inclusion in a dll (and should export symbols for example).
  7518. lt_prog_compiler_pic='-DDLL_EXPORT'
  7519. ;;
  7520. hpux9* | hpux10* | hpux11*)
  7521. lt_prog_compiler_wl='-Wl,'
  7522. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7523. # not for PA HP-UX.
  7524. case $host_cpu in
  7525. hppa*64*|ia64*)
  7526. # +Z the default
  7527. ;;
  7528. *)
  7529. lt_prog_compiler_pic='+Z'
  7530. ;;
  7531. esac
  7532. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7533. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7534. ;;
  7535. irix5* | irix6* | nonstopux*)
  7536. lt_prog_compiler_wl='-Wl,'
  7537. # PIC (with -KPIC) is the default.
  7538. lt_prog_compiler_static='-non_shared'
  7539. ;;
  7540. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7541. case $cc_basename in
  7542. # old Intel for x86_64 which still supported -KPIC.
  7543. ecc*)
  7544. lt_prog_compiler_wl='-Wl,'
  7545. lt_prog_compiler_pic='-KPIC'
  7546. lt_prog_compiler_static='-static'
  7547. ;;
  7548. # icc used to be incompatible with GCC.
  7549. # ICC 10 doesn't accept -KPIC any more.
  7550. icc* | ifort*)
  7551. lt_prog_compiler_wl='-Wl,'
  7552. lt_prog_compiler_pic='-fPIC'
  7553. lt_prog_compiler_static='-static'
  7554. ;;
  7555. # Lahey Fortran 8.1.
  7556. lf95*)
  7557. lt_prog_compiler_wl='-Wl,'
  7558. lt_prog_compiler_pic='--shared'
  7559. lt_prog_compiler_static='--static'
  7560. ;;
  7561. nagfor*)
  7562. # NAG Fortran compiler
  7563. lt_prog_compiler_wl='-Wl,-Wl,,'
  7564. lt_prog_compiler_pic='-PIC'
  7565. lt_prog_compiler_static='-Bstatic'
  7566. ;;
  7567. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7568. # Portland Group compilers (*not* the Pentium gcc compiler,
  7569. # which looks to be a dead project)
  7570. lt_prog_compiler_wl='-Wl,'
  7571. lt_prog_compiler_pic='-fpic'
  7572. lt_prog_compiler_static='-Bstatic'
  7573. ;;
  7574. ccc*)
  7575. lt_prog_compiler_wl='-Wl,'
  7576. # All Alpha code is PIC.
  7577. lt_prog_compiler_static='-non_shared'
  7578. ;;
  7579. xl* | bgxl* | bgf* | mpixl*)
  7580. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7581. lt_prog_compiler_wl='-Wl,'
  7582. lt_prog_compiler_pic='-qpic'
  7583. lt_prog_compiler_static='-qstaticlink'
  7584. ;;
  7585. *)
  7586. case `$CC -V 2>&1 | sed 5q` in
  7587. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7588. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7589. lt_prog_compiler_pic='-KPIC'
  7590. lt_prog_compiler_static='-Bstatic'
  7591. lt_prog_compiler_wl=''
  7592. ;;
  7593. *Sun\ F* | *Sun*Fortran*)
  7594. lt_prog_compiler_pic='-KPIC'
  7595. lt_prog_compiler_static='-Bstatic'
  7596. lt_prog_compiler_wl='-Qoption ld '
  7597. ;;
  7598. *Sun\ C*)
  7599. # Sun C 5.9
  7600. lt_prog_compiler_pic='-KPIC'
  7601. lt_prog_compiler_static='-Bstatic'
  7602. lt_prog_compiler_wl='-Wl,'
  7603. ;;
  7604. *Intel*\ [CF]*Compiler*)
  7605. lt_prog_compiler_wl='-Wl,'
  7606. lt_prog_compiler_pic='-fPIC'
  7607. lt_prog_compiler_static='-static'
  7608. ;;
  7609. *Portland\ Group*)
  7610. lt_prog_compiler_wl='-Wl,'
  7611. lt_prog_compiler_pic='-fpic'
  7612. lt_prog_compiler_static='-Bstatic'
  7613. ;;
  7614. esac
  7615. ;;
  7616. esac
  7617. ;;
  7618. newsos6)
  7619. lt_prog_compiler_pic='-KPIC'
  7620. lt_prog_compiler_static='-Bstatic'
  7621. ;;
  7622. *nto* | *qnx*)
  7623. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7624. # it will coredump.
  7625. lt_prog_compiler_pic='-fPIC -shared'
  7626. ;;
  7627. osf3* | osf4* | osf5*)
  7628. lt_prog_compiler_wl='-Wl,'
  7629. # All OSF/1 code is PIC.
  7630. lt_prog_compiler_static='-non_shared'
  7631. ;;
  7632. rdos*)
  7633. lt_prog_compiler_static='-non_shared'
  7634. ;;
  7635. solaris*)
  7636. lt_prog_compiler_pic='-KPIC'
  7637. lt_prog_compiler_static='-Bstatic'
  7638. case $cc_basename in
  7639. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7640. lt_prog_compiler_wl='-Qoption ld ';;
  7641. *)
  7642. lt_prog_compiler_wl='-Wl,';;
  7643. esac
  7644. ;;
  7645. sunos4*)
  7646. lt_prog_compiler_wl='-Qoption ld '
  7647. lt_prog_compiler_pic='-PIC'
  7648. lt_prog_compiler_static='-Bstatic'
  7649. ;;
  7650. sysv4 | sysv4.2uw2* | sysv4.3*)
  7651. lt_prog_compiler_wl='-Wl,'
  7652. lt_prog_compiler_pic='-KPIC'
  7653. lt_prog_compiler_static='-Bstatic'
  7654. ;;
  7655. sysv4*MP*)
  7656. if test -d /usr/nec ;then
  7657. lt_prog_compiler_pic='-Kconform_pic'
  7658. lt_prog_compiler_static='-Bstatic'
  7659. fi
  7660. ;;
  7661. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7662. lt_prog_compiler_wl='-Wl,'
  7663. lt_prog_compiler_pic='-KPIC'
  7664. lt_prog_compiler_static='-Bstatic'
  7665. ;;
  7666. unicos*)
  7667. lt_prog_compiler_wl='-Wl,'
  7668. lt_prog_compiler_can_build_shared=no
  7669. ;;
  7670. uts4*)
  7671. lt_prog_compiler_pic='-pic'
  7672. lt_prog_compiler_static='-Bstatic'
  7673. ;;
  7674. *)
  7675. lt_prog_compiler_can_build_shared=no
  7676. ;;
  7677. esac
  7678. fi
  7679. case $host_os in
  7680. # For platforms which do not support PIC, -DPIC is meaningless:
  7681. *djgpp*)
  7682. lt_prog_compiler_pic=
  7683. ;;
  7684. *)
  7685. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7686. ;;
  7687. esac
  7688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7689. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7690. if ${lt_cv_prog_compiler_pic+:} false; then :
  7691. $as_echo_n "(cached) " >&6
  7692. else
  7693. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7694. fi
  7695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7696. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7697. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7698. #
  7699. # Check to make sure the PIC flag actually works.
  7700. #
  7701. if test -n "$lt_prog_compiler_pic"; then
  7702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7703. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7704. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7705. $as_echo_n "(cached) " >&6
  7706. else
  7707. lt_cv_prog_compiler_pic_works=no
  7708. ac_outfile=conftest.$ac_objext
  7709. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7710. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7711. # Insert the option either (1) after the last *FLAGS variable, or
  7712. # (2) before a word containing "conftest.", or (3) at the end.
  7713. # Note that $ac_compile itself does not contain backslashes and begins
  7714. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7715. # The option is referenced via a variable to avoid confusing sed.
  7716. lt_compile=`echo "$ac_compile" | $SED \
  7717. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7718. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7719. -e 's:$: $lt_compiler_flag:'`
  7720. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7721. (eval "$lt_compile" 2>conftest.err)
  7722. ac_status=$?
  7723. cat conftest.err >&5
  7724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7725. if (exit $ac_status) && test -s "$ac_outfile"; then
  7726. # The compiler can only warn and ignore the option if not recognized
  7727. # So say no if there are warnings other than the usual output.
  7728. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7729. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7730. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7731. lt_cv_prog_compiler_pic_works=yes
  7732. fi
  7733. fi
  7734. $RM conftest*
  7735. fi
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7737. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7738. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7739. case $lt_prog_compiler_pic in
  7740. "" | " "*) ;;
  7741. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7742. esac
  7743. else
  7744. lt_prog_compiler_pic=
  7745. lt_prog_compiler_can_build_shared=no
  7746. fi
  7747. fi
  7748. #
  7749. # Check to make sure the static flag actually works.
  7750. #
  7751. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7753. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7754. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7755. $as_echo_n "(cached) " >&6
  7756. else
  7757. lt_cv_prog_compiler_static_works=no
  7758. save_LDFLAGS="$LDFLAGS"
  7759. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7760. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7761. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7762. # The linker can only warn and ignore the option if not recognized
  7763. # So say no if there are warnings
  7764. if test -s conftest.err; then
  7765. # Append any errors to the config.log.
  7766. cat conftest.err 1>&5
  7767. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7768. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7769. if diff conftest.exp conftest.er2 >/dev/null; then
  7770. lt_cv_prog_compiler_static_works=yes
  7771. fi
  7772. else
  7773. lt_cv_prog_compiler_static_works=yes
  7774. fi
  7775. fi
  7776. $RM -r conftest*
  7777. LDFLAGS="$save_LDFLAGS"
  7778. fi
  7779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7780. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7781. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7782. :
  7783. else
  7784. lt_prog_compiler_static=
  7785. fi
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7787. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7788. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7789. $as_echo_n "(cached) " >&6
  7790. else
  7791. lt_cv_prog_compiler_c_o=no
  7792. $RM -r conftest 2>/dev/null
  7793. mkdir conftest
  7794. cd conftest
  7795. mkdir out
  7796. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7797. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7798. # Insert the option either (1) after the last *FLAGS variable, or
  7799. # (2) before a word containing "conftest.", or (3) at the end.
  7800. # Note that $ac_compile itself does not contain backslashes and begins
  7801. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7802. lt_compile=`echo "$ac_compile" | $SED \
  7803. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7804. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7805. -e 's:$: $lt_compiler_flag:'`
  7806. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7807. (eval "$lt_compile" 2>out/conftest.err)
  7808. ac_status=$?
  7809. cat out/conftest.err >&5
  7810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7811. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7812. then
  7813. # The compiler can only warn and ignore the option if not recognized
  7814. # So say no if there are warnings
  7815. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7816. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7817. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7818. lt_cv_prog_compiler_c_o=yes
  7819. fi
  7820. fi
  7821. chmod u+w . 2>&5
  7822. $RM conftest*
  7823. # SGI C++ compiler will create directory out/ii_files/ for
  7824. # template instantiation
  7825. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7826. $RM out/* && rmdir out
  7827. cd ..
  7828. $RM -r conftest
  7829. $RM conftest*
  7830. fi
  7831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7832. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7834. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7835. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7836. $as_echo_n "(cached) " >&6
  7837. else
  7838. lt_cv_prog_compiler_c_o=no
  7839. $RM -r conftest 2>/dev/null
  7840. mkdir conftest
  7841. cd conftest
  7842. mkdir out
  7843. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7844. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7845. # Insert the option either (1) after the last *FLAGS variable, or
  7846. # (2) before a word containing "conftest.", or (3) at the end.
  7847. # Note that $ac_compile itself does not contain backslashes and begins
  7848. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7849. lt_compile=`echo "$ac_compile" | $SED \
  7850. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7851. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7852. -e 's:$: $lt_compiler_flag:'`
  7853. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7854. (eval "$lt_compile" 2>out/conftest.err)
  7855. ac_status=$?
  7856. cat out/conftest.err >&5
  7857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7858. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7859. then
  7860. # The compiler can only warn and ignore the option if not recognized
  7861. # So say no if there are warnings
  7862. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7863. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7864. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7865. lt_cv_prog_compiler_c_o=yes
  7866. fi
  7867. fi
  7868. chmod u+w . 2>&5
  7869. $RM conftest*
  7870. # SGI C++ compiler will create directory out/ii_files/ for
  7871. # template instantiation
  7872. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7873. $RM out/* && rmdir out
  7874. cd ..
  7875. $RM -r conftest
  7876. $RM conftest*
  7877. fi
  7878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7879. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7880. hard_links="nottested"
  7881. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7882. # do not overwrite the value of need_locks provided by the user
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7884. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7885. hard_links=yes
  7886. $RM conftest*
  7887. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7888. touch conftest.a
  7889. ln conftest.a conftest.b 2>&5 || hard_links=no
  7890. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7892. $as_echo "$hard_links" >&6; }
  7893. if test "$hard_links" = no; then
  7894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7895. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7896. need_locks=warn
  7897. fi
  7898. else
  7899. need_locks=no
  7900. fi
  7901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7902. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7903. runpath_var=
  7904. allow_undefined_flag=
  7905. always_export_symbols=no
  7906. archive_cmds=
  7907. archive_expsym_cmds=
  7908. compiler_needs_object=no
  7909. enable_shared_with_static_runtimes=no
  7910. export_dynamic_flag_spec=
  7911. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7912. hardcode_automatic=no
  7913. hardcode_direct=no
  7914. hardcode_direct_absolute=no
  7915. hardcode_libdir_flag_spec=
  7916. hardcode_libdir_separator=
  7917. hardcode_minus_L=no
  7918. hardcode_shlibpath_var=unsupported
  7919. inherit_rpath=no
  7920. link_all_deplibs=unknown
  7921. module_cmds=
  7922. module_expsym_cmds=
  7923. old_archive_from_new_cmds=
  7924. old_archive_from_expsyms_cmds=
  7925. thread_safe_flag_spec=
  7926. whole_archive_flag_spec=
  7927. # include_expsyms should be a list of space-separated symbols to be *always*
  7928. # included in the symbol list
  7929. include_expsyms=
  7930. # exclude_expsyms can be an extended regexp of symbols to exclude
  7931. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7932. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7933. # as well as any symbol that contains `d'.
  7934. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7935. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7936. # platforms (ab)use it in PIC code, but their linkers get confused if
  7937. # the symbol is explicitly referenced. Since portable code cannot
  7938. # rely on this symbol name, it's probably fine to never include it in
  7939. # preloaded symbol tables.
  7940. # Exclude shared library initialization/finalization symbols.
  7941. extract_expsyms_cmds=
  7942. case $host_os in
  7943. cygwin* | mingw* | pw32* | cegcc*)
  7944. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7945. # When not using gcc, we currently assume that we are using
  7946. # Microsoft Visual C++.
  7947. if test "$GCC" != yes; then
  7948. with_gnu_ld=no
  7949. fi
  7950. ;;
  7951. interix*)
  7952. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7953. with_gnu_ld=yes
  7954. ;;
  7955. openbsd*)
  7956. with_gnu_ld=no
  7957. ;;
  7958. esac
  7959. ld_shlibs=yes
  7960. # On some targets, GNU ld is compatible enough with the native linker
  7961. # that we're better off using the native interface for both.
  7962. lt_use_gnu_ld_interface=no
  7963. if test "$with_gnu_ld" = yes; then
  7964. case $host_os in
  7965. aix*)
  7966. # The AIX port of GNU ld has always aspired to compatibility
  7967. # with the native linker. However, as the warning in the GNU ld
  7968. # block says, versions before 2.19.5* couldn't really create working
  7969. # shared libraries, regardless of the interface used.
  7970. case `$LD -v 2>&1` in
  7971. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7972. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7973. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7974. *)
  7975. lt_use_gnu_ld_interface=yes
  7976. ;;
  7977. esac
  7978. ;;
  7979. *)
  7980. lt_use_gnu_ld_interface=yes
  7981. ;;
  7982. esac
  7983. fi
  7984. if test "$lt_use_gnu_ld_interface" = yes; then
  7985. # If archive_cmds runs LD, not CC, wlarc should be empty
  7986. wlarc='${wl}'
  7987. # Set some defaults for GNU ld with shared library support. These
  7988. # are reset later if shared libraries are not supported. Putting them
  7989. # here allows them to be overridden if necessary.
  7990. runpath_var=LD_RUN_PATH
  7991. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7992. export_dynamic_flag_spec='${wl}--export-dynamic'
  7993. # ancient GNU ld didn't support --whole-archive et. al.
  7994. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7995. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7996. else
  7997. whole_archive_flag_spec=
  7998. fi
  7999. supports_anon_versioning=no
  8000. case `$LD -v 2>&1` in
  8001. *GNU\ gold*) supports_anon_versioning=yes ;;
  8002. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8003. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8004. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8005. *\ 2.11.*) ;; # other 2.11 versions
  8006. *) supports_anon_versioning=yes ;;
  8007. esac
  8008. # See if GNU ld supports shared libraries.
  8009. case $host_os in
  8010. aix[3-9]*)
  8011. # On AIX/PPC, the GNU linker is very broken
  8012. if test "$host_cpu" != ia64; then
  8013. ld_shlibs=no
  8014. cat <<_LT_EOF 1>&2
  8015. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8016. *** to be unable to reliably create shared libraries on AIX.
  8017. *** Therefore, libtool is disabling shared libraries support. If you
  8018. *** really care for shared libraries, you may want to install binutils
  8019. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8020. *** You will then need to restart the configuration process.
  8021. _LT_EOF
  8022. fi
  8023. ;;
  8024. amigaos*)
  8025. case $host_cpu in
  8026. powerpc)
  8027. # see comment about AmigaOS4 .so support
  8028. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8029. archive_expsym_cmds=''
  8030. ;;
  8031. m68k)
  8032. 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)'
  8033. hardcode_libdir_flag_spec='-L$libdir'
  8034. hardcode_minus_L=yes
  8035. ;;
  8036. esac
  8037. ;;
  8038. beos*)
  8039. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8040. allow_undefined_flag=unsupported
  8041. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8042. # support --undefined. This deserves some investigation. FIXME
  8043. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8044. else
  8045. ld_shlibs=no
  8046. fi
  8047. ;;
  8048. cygwin* | mingw* | pw32* | cegcc*)
  8049. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8050. # as there is no search path for DLLs.
  8051. hardcode_libdir_flag_spec='-L$libdir'
  8052. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8053. allow_undefined_flag=unsupported
  8054. always_export_symbols=no
  8055. enable_shared_with_static_runtimes=yes
  8056. 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'
  8057. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8058. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8059. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8060. # If the export-symbols file already is a .def file (1st line
  8061. # is EXPORTS), use it as is; otherwise, prepend...
  8062. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8063. cp $export_symbols $output_objdir/$soname.def;
  8064. else
  8065. echo EXPORTS > $output_objdir/$soname.def;
  8066. cat $export_symbols >> $output_objdir/$soname.def;
  8067. fi~
  8068. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8069. else
  8070. ld_shlibs=no
  8071. fi
  8072. ;;
  8073. haiku*)
  8074. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8075. link_all_deplibs=yes
  8076. ;;
  8077. interix[3-9]*)
  8078. hardcode_direct=no
  8079. hardcode_shlibpath_var=no
  8080. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8081. export_dynamic_flag_spec='${wl}-E'
  8082. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8083. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8084. # default) and relocated if they conflict, which is a slow very memory
  8085. # consuming and fragmenting process. To avoid this, we pick a random,
  8086. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8087. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8088. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8089. 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'
  8090. ;;
  8091. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8092. tmp_diet=no
  8093. if test "$host_os" = linux-dietlibc; then
  8094. case $cc_basename in
  8095. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8096. esac
  8097. fi
  8098. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8099. && test "$tmp_diet" = no
  8100. then
  8101. tmp_addflag=' $pic_flag'
  8102. tmp_sharedflag='-shared'
  8103. case $cc_basename,$host_cpu in
  8104. pgcc*) # Portland Group C compiler
  8105. 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'
  8106. tmp_addflag=' $pic_flag'
  8107. ;;
  8108. pgf77* | pgf90* | pgf95* | pgfortran*)
  8109. # Portland Group f77 and f90 compilers
  8110. 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'
  8111. tmp_addflag=' $pic_flag -Mnomain' ;;
  8112. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8113. tmp_addflag=' -i_dynamic' ;;
  8114. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8115. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8116. ifc* | ifort*) # Intel Fortran compiler
  8117. tmp_addflag=' -nofor_main' ;;
  8118. lf95*) # Lahey Fortran 8.1
  8119. whole_archive_flag_spec=
  8120. tmp_sharedflag='--shared' ;;
  8121. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8122. tmp_sharedflag='-qmkshrobj'
  8123. tmp_addflag= ;;
  8124. nvcc*) # Cuda Compiler Driver 2.2
  8125. 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'
  8126. compiler_needs_object=yes
  8127. ;;
  8128. esac
  8129. case `$CC -V 2>&1 | sed 5q` in
  8130. *Sun\ C*) # Sun C 5.9
  8131. 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'
  8132. compiler_needs_object=yes
  8133. tmp_sharedflag='-G' ;;
  8134. *Sun\ F*) # Sun Fortran 8.3
  8135. tmp_sharedflag='-G' ;;
  8136. esac
  8137. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8138. if test "x$supports_anon_versioning" = xyes; then
  8139. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8140. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8141. echo "local: *; };" >> $output_objdir/$libname.ver~
  8142. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8143. fi
  8144. case $cc_basename in
  8145. xlf* | bgf* | bgxlf* | mpixlf*)
  8146. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8147. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8148. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8149. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8150. if test "x$supports_anon_versioning" = xyes; then
  8151. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8152. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8153. echo "local: *; };" >> $output_objdir/$libname.ver~
  8154. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8155. fi
  8156. ;;
  8157. esac
  8158. else
  8159. ld_shlibs=no
  8160. fi
  8161. ;;
  8162. netbsd*)
  8163. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8164. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8165. wlarc=
  8166. else
  8167. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8168. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8169. fi
  8170. ;;
  8171. solaris*)
  8172. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8173. ld_shlibs=no
  8174. cat <<_LT_EOF 1>&2
  8175. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8176. *** create shared libraries on Solaris systems. Therefore, libtool
  8177. *** is disabling shared libraries support. We urge you to upgrade GNU
  8178. *** binutils to release 2.9.1 or newer. Another option is to modify
  8179. *** your PATH or compiler configuration so that the native linker is
  8180. *** used, and then restart.
  8181. _LT_EOF
  8182. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8183. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8184. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8185. else
  8186. ld_shlibs=no
  8187. fi
  8188. ;;
  8189. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8190. case `$LD -v 2>&1` in
  8191. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8192. ld_shlibs=no
  8193. cat <<_LT_EOF 1>&2
  8194. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8195. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8196. *** is disabling shared libraries support. We urge you to upgrade GNU
  8197. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8198. *** your PATH or compiler configuration so that the native linker is
  8199. *** used, and then restart.
  8200. _LT_EOF
  8201. ;;
  8202. *)
  8203. # For security reasons, it is highly recommended that you always
  8204. # use absolute paths for naming shared libraries, and exclude the
  8205. # DT_RUNPATH tag from executables and libraries. But doing so
  8206. # requires that you compile everything twice, which is a pain.
  8207. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8208. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8209. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8210. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8211. else
  8212. ld_shlibs=no
  8213. fi
  8214. ;;
  8215. esac
  8216. ;;
  8217. sunos4*)
  8218. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8219. wlarc=
  8220. hardcode_direct=yes
  8221. hardcode_shlibpath_var=no
  8222. ;;
  8223. *)
  8224. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8225. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8226. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8227. else
  8228. ld_shlibs=no
  8229. fi
  8230. ;;
  8231. esac
  8232. if test "$ld_shlibs" = no; then
  8233. runpath_var=
  8234. hardcode_libdir_flag_spec=
  8235. export_dynamic_flag_spec=
  8236. whole_archive_flag_spec=
  8237. fi
  8238. else
  8239. # PORTME fill in a description of your system's linker (not GNU ld)
  8240. case $host_os in
  8241. aix3*)
  8242. allow_undefined_flag=unsupported
  8243. always_export_symbols=yes
  8244. 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'
  8245. # Note: this linker hardcodes the directories in LIBPATH if there
  8246. # are no directories specified by -L.
  8247. hardcode_minus_L=yes
  8248. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8249. # Neither direct hardcoding nor static linking is supported with a
  8250. # broken collect2.
  8251. hardcode_direct=unsupported
  8252. fi
  8253. ;;
  8254. aix[4-9]*)
  8255. if test "$host_cpu" = ia64; then
  8256. # On IA64, the linker does run time linking by default, so we don't
  8257. # have to do anything special.
  8258. aix_use_runtimelinking=no
  8259. exp_sym_flag='-Bexport'
  8260. no_entry_flag=""
  8261. else
  8262. # If we're using GNU nm, then we don't want the "-C" option.
  8263. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8264. # Also, AIX nm treats weak defined symbols like other global
  8265. # defined symbols, whereas GNU nm marks them as "W".
  8266. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8267. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8268. else
  8269. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8270. fi
  8271. aix_use_runtimelinking=no
  8272. # Test if we are trying to use run time linking or normal
  8273. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8274. # need to do runtime linking.
  8275. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8276. for ld_flag in $LDFLAGS; do
  8277. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8278. aix_use_runtimelinking=yes
  8279. break
  8280. fi
  8281. done
  8282. ;;
  8283. esac
  8284. exp_sym_flag='-bexport'
  8285. no_entry_flag='-bnoentry'
  8286. fi
  8287. # When large executables or shared objects are built, AIX ld can
  8288. # have problems creating the table of contents. If linking a library
  8289. # or program results in "error TOC overflow" add -mminimal-toc to
  8290. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8291. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8292. archive_cmds=''
  8293. hardcode_direct=yes
  8294. hardcode_direct_absolute=yes
  8295. hardcode_libdir_separator=':'
  8296. link_all_deplibs=yes
  8297. file_list_spec='${wl}-f,'
  8298. if test "$GCC" = yes; then
  8299. case $host_os in aix4.[012]|aix4.[012].*)
  8300. # We only want to do this on AIX 4.2 and lower, the check
  8301. # below for broken collect2 doesn't work under 4.3+
  8302. collect2name=`${CC} -print-prog-name=collect2`
  8303. if test -f "$collect2name" &&
  8304. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8305. then
  8306. # We have reworked collect2
  8307. :
  8308. else
  8309. # We have old collect2
  8310. hardcode_direct=unsupported
  8311. # It fails to find uninstalled libraries when the uninstalled
  8312. # path is not listed in the libpath. Setting hardcode_minus_L
  8313. # to unsupported forces relinking
  8314. hardcode_minus_L=yes
  8315. hardcode_libdir_flag_spec='-L$libdir'
  8316. hardcode_libdir_separator=
  8317. fi
  8318. ;;
  8319. esac
  8320. shared_flag='-shared'
  8321. if test "$aix_use_runtimelinking" = yes; then
  8322. shared_flag="$shared_flag "'${wl}-G'
  8323. fi
  8324. else
  8325. # not using gcc
  8326. if test "$host_cpu" = ia64; then
  8327. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8328. # chokes on -Wl,-G. The following line is correct:
  8329. shared_flag='-G'
  8330. else
  8331. if test "$aix_use_runtimelinking" = yes; then
  8332. shared_flag='${wl}-G'
  8333. else
  8334. shared_flag='${wl}-bM:SRE'
  8335. fi
  8336. fi
  8337. fi
  8338. export_dynamic_flag_spec='${wl}-bexpall'
  8339. # It seems that -bexpall does not export symbols beginning with
  8340. # underscore (_), so it is better to generate a list of symbols to export.
  8341. always_export_symbols=yes
  8342. if test "$aix_use_runtimelinking" = yes; then
  8343. # Warning - without using the other runtime loading flags (-brtl),
  8344. # -berok will link without error, but may produce a broken library.
  8345. allow_undefined_flag='-berok'
  8346. # Determine the default libpath from the value encoded in an
  8347. # empty executable.
  8348. if test "${lt_cv_aix_libpath+set}" = set; then
  8349. aix_libpath=$lt_cv_aix_libpath
  8350. else
  8351. if ${lt_cv_aix_libpath_+:} false; then :
  8352. $as_echo_n "(cached) " >&6
  8353. else
  8354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8355. /* end confdefs.h. */
  8356. int
  8357. main ()
  8358. {
  8359. ;
  8360. return 0;
  8361. }
  8362. _ACEOF
  8363. if ac_fn_c_try_link "$LINENO"; then :
  8364. lt_aix_libpath_sed='
  8365. /Import File Strings/,/^$/ {
  8366. /^0/ {
  8367. s/^0 *\([^ ]*\) *$/\1/
  8368. p
  8369. }
  8370. }'
  8371. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8372. # Check for a 64-bit object if we didn't find anything.
  8373. if test -z "$lt_cv_aix_libpath_"; then
  8374. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8375. fi
  8376. fi
  8377. rm -f core conftest.err conftest.$ac_objext \
  8378. conftest$ac_exeext conftest.$ac_ext
  8379. if test -z "$lt_cv_aix_libpath_"; then
  8380. lt_cv_aix_libpath_="/usr/lib:/lib"
  8381. fi
  8382. fi
  8383. aix_libpath=$lt_cv_aix_libpath_
  8384. fi
  8385. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8386. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8387. else
  8388. if test "$host_cpu" = ia64; then
  8389. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8390. allow_undefined_flag="-z nodefs"
  8391. 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"
  8392. else
  8393. # Determine the default libpath from the value encoded in an
  8394. # empty executable.
  8395. if test "${lt_cv_aix_libpath+set}" = set; then
  8396. aix_libpath=$lt_cv_aix_libpath
  8397. else
  8398. if ${lt_cv_aix_libpath_+:} false; then :
  8399. $as_echo_n "(cached) " >&6
  8400. else
  8401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8402. /* end confdefs.h. */
  8403. int
  8404. main ()
  8405. {
  8406. ;
  8407. return 0;
  8408. }
  8409. _ACEOF
  8410. if ac_fn_c_try_link "$LINENO"; then :
  8411. lt_aix_libpath_sed='
  8412. /Import File Strings/,/^$/ {
  8413. /^0/ {
  8414. s/^0 *\([^ ]*\) *$/\1/
  8415. p
  8416. }
  8417. }'
  8418. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8419. # Check for a 64-bit object if we didn't find anything.
  8420. if test -z "$lt_cv_aix_libpath_"; then
  8421. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8422. fi
  8423. fi
  8424. rm -f core conftest.err conftest.$ac_objext \
  8425. conftest$ac_exeext conftest.$ac_ext
  8426. if test -z "$lt_cv_aix_libpath_"; then
  8427. lt_cv_aix_libpath_="/usr/lib:/lib"
  8428. fi
  8429. fi
  8430. aix_libpath=$lt_cv_aix_libpath_
  8431. fi
  8432. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8433. # Warning - without using the other run time loading flags,
  8434. # -berok will link without error, but may produce a broken library.
  8435. no_undefined_flag=' ${wl}-bernotok'
  8436. allow_undefined_flag=' ${wl}-berok'
  8437. if test "$with_gnu_ld" = yes; then
  8438. # We only use this code for GNU lds that support --whole-archive.
  8439. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8440. else
  8441. # Exported symbols can be pulled into shared objects from archives
  8442. whole_archive_flag_spec='$convenience'
  8443. fi
  8444. archive_cmds_need_lc=yes
  8445. # This is similar to how AIX traditionally builds its shared libraries.
  8446. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8447. fi
  8448. fi
  8449. ;;
  8450. amigaos*)
  8451. case $host_cpu in
  8452. powerpc)
  8453. # see comment about AmigaOS4 .so support
  8454. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8455. archive_expsym_cmds=''
  8456. ;;
  8457. m68k)
  8458. 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)'
  8459. hardcode_libdir_flag_spec='-L$libdir'
  8460. hardcode_minus_L=yes
  8461. ;;
  8462. esac
  8463. ;;
  8464. bsdi[45]*)
  8465. export_dynamic_flag_spec=-rdynamic
  8466. ;;
  8467. cygwin* | mingw* | pw32* | cegcc*)
  8468. # When not using gcc, we currently assume that we are using
  8469. # Microsoft Visual C++.
  8470. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8471. # no search path for DLLs.
  8472. case $cc_basename in
  8473. cl*)
  8474. # Native MSVC
  8475. hardcode_libdir_flag_spec=' '
  8476. allow_undefined_flag=unsupported
  8477. always_export_symbols=yes
  8478. file_list_spec='@'
  8479. # Tell ltmain to make .lib files, not .a files.
  8480. libext=lib
  8481. # Tell ltmain to make .dll files, not .so files.
  8482. shrext_cmds=".dll"
  8483. # FIXME: Setting linknames here is a bad hack.
  8484. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8485. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8486. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8487. else
  8488. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8489. fi~
  8490. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8491. linknames='
  8492. # The linker will not automatically build a static lib if we build a DLL.
  8493. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8494. enable_shared_with_static_runtimes=yes
  8495. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8496. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8497. # Don't use ranlib
  8498. old_postinstall_cmds='chmod 644 $oldlib'
  8499. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8500. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8501. case $lt_outputfile in
  8502. *.exe|*.EXE) ;;
  8503. *)
  8504. lt_outputfile="$lt_outputfile.exe"
  8505. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8506. ;;
  8507. esac~
  8508. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8509. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8510. $RM "$lt_outputfile.manifest";
  8511. fi'
  8512. ;;
  8513. *)
  8514. # Assume MSVC wrapper
  8515. hardcode_libdir_flag_spec=' '
  8516. allow_undefined_flag=unsupported
  8517. # Tell ltmain to make .lib files, not .a files.
  8518. libext=lib
  8519. # Tell ltmain to make .dll files, not .so files.
  8520. shrext_cmds=".dll"
  8521. # FIXME: Setting linknames here is a bad hack.
  8522. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8523. # The linker will automatically build a .lib file if we build a DLL.
  8524. old_archive_from_new_cmds='true'
  8525. # FIXME: Should let the user specify the lib program.
  8526. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8527. enable_shared_with_static_runtimes=yes
  8528. ;;
  8529. esac
  8530. ;;
  8531. darwin* | rhapsody*)
  8532. archive_cmds_need_lc=no
  8533. hardcode_direct=no
  8534. hardcode_automatic=yes
  8535. hardcode_shlibpath_var=unsupported
  8536. if test "$lt_cv_ld_force_load" = "yes"; then
  8537. 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\"`'
  8538. else
  8539. whole_archive_flag_spec=''
  8540. fi
  8541. link_all_deplibs=yes
  8542. allow_undefined_flag="$_lt_dar_allow_undefined"
  8543. case $cc_basename in
  8544. ifort*) _lt_dar_can_shared=yes ;;
  8545. *) _lt_dar_can_shared=$GCC ;;
  8546. esac
  8547. if test "$_lt_dar_can_shared" = "yes"; then
  8548. output_verbose_link_cmd=func_echo_all
  8549. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8550. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8551. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8552. 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}"
  8553. else
  8554. ld_shlibs=no
  8555. fi
  8556. ;;
  8557. dgux*)
  8558. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8559. hardcode_libdir_flag_spec='-L$libdir'
  8560. hardcode_shlibpath_var=no
  8561. ;;
  8562. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8563. # support. Future versions do this automatically, but an explicit c++rt0.o
  8564. # does not break anything, and helps significantly (at the cost of a little
  8565. # extra space).
  8566. freebsd2.2*)
  8567. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8568. hardcode_libdir_flag_spec='-R$libdir'
  8569. hardcode_direct=yes
  8570. hardcode_shlibpath_var=no
  8571. ;;
  8572. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8573. freebsd2.*)
  8574. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8575. hardcode_direct=yes
  8576. hardcode_minus_L=yes
  8577. hardcode_shlibpath_var=no
  8578. ;;
  8579. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8580. freebsd* | dragonfly*)
  8581. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8582. hardcode_libdir_flag_spec='-R$libdir'
  8583. hardcode_direct=yes
  8584. hardcode_shlibpath_var=no
  8585. ;;
  8586. hpux9*)
  8587. if test "$GCC" = yes; then
  8588. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8589. else
  8590. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8591. fi
  8592. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8593. hardcode_libdir_separator=:
  8594. hardcode_direct=yes
  8595. # hardcode_minus_L: Not really in the search PATH,
  8596. # but as the default location of the library.
  8597. hardcode_minus_L=yes
  8598. export_dynamic_flag_spec='${wl}-E'
  8599. ;;
  8600. hpux10*)
  8601. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8602. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8603. else
  8604. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8605. fi
  8606. if test "$with_gnu_ld" = no; then
  8607. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8608. hardcode_libdir_separator=:
  8609. hardcode_direct=yes
  8610. hardcode_direct_absolute=yes
  8611. export_dynamic_flag_spec='${wl}-E'
  8612. # hardcode_minus_L: Not really in the search PATH,
  8613. # but as the default location of the library.
  8614. hardcode_minus_L=yes
  8615. fi
  8616. ;;
  8617. hpux11*)
  8618. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8619. case $host_cpu in
  8620. hppa*64*)
  8621. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8622. ;;
  8623. ia64*)
  8624. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8625. ;;
  8626. *)
  8627. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8628. ;;
  8629. esac
  8630. else
  8631. case $host_cpu in
  8632. hppa*64*)
  8633. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8634. ;;
  8635. ia64*)
  8636. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8637. ;;
  8638. *)
  8639. # Older versions of the 11.00 compiler do not understand -b yet
  8640. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8642. $as_echo_n "checking if $CC understands -b... " >&6; }
  8643. if ${lt_cv_prog_compiler__b+:} false; then :
  8644. $as_echo_n "(cached) " >&6
  8645. else
  8646. lt_cv_prog_compiler__b=no
  8647. save_LDFLAGS="$LDFLAGS"
  8648. LDFLAGS="$LDFLAGS -b"
  8649. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8650. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8651. # The linker can only warn and ignore the option if not recognized
  8652. # So say no if there are warnings
  8653. if test -s conftest.err; then
  8654. # Append any errors to the config.log.
  8655. cat conftest.err 1>&5
  8656. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8657. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8658. if diff conftest.exp conftest.er2 >/dev/null; then
  8659. lt_cv_prog_compiler__b=yes
  8660. fi
  8661. else
  8662. lt_cv_prog_compiler__b=yes
  8663. fi
  8664. fi
  8665. $RM -r conftest*
  8666. LDFLAGS="$save_LDFLAGS"
  8667. fi
  8668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8669. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8670. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8671. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8672. else
  8673. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8674. fi
  8675. ;;
  8676. esac
  8677. fi
  8678. if test "$with_gnu_ld" = no; then
  8679. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8680. hardcode_libdir_separator=:
  8681. case $host_cpu in
  8682. hppa*64*|ia64*)
  8683. hardcode_direct=no
  8684. hardcode_shlibpath_var=no
  8685. ;;
  8686. *)
  8687. hardcode_direct=yes
  8688. hardcode_direct_absolute=yes
  8689. export_dynamic_flag_spec='${wl}-E'
  8690. # hardcode_minus_L: Not really in the search PATH,
  8691. # but as the default location of the library.
  8692. hardcode_minus_L=yes
  8693. ;;
  8694. esac
  8695. fi
  8696. ;;
  8697. irix5* | irix6* | nonstopux*)
  8698. if test "$GCC" = yes; then
  8699. 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'
  8700. # Try to use the -exported_symbol ld option, if it does not
  8701. # work, assume that -exports_file does not work either and
  8702. # implicitly export all symbols.
  8703. # This should be the same for all languages, so no per-tag cache variable.
  8704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8705. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8706. if ${lt_cv_irix_exported_symbol+:} false; then :
  8707. $as_echo_n "(cached) " >&6
  8708. else
  8709. save_LDFLAGS="$LDFLAGS"
  8710. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8712. /* end confdefs.h. */
  8713. int foo (void) { return 0; }
  8714. _ACEOF
  8715. if ac_fn_c_try_link "$LINENO"; then :
  8716. lt_cv_irix_exported_symbol=yes
  8717. else
  8718. lt_cv_irix_exported_symbol=no
  8719. fi
  8720. rm -f core conftest.err conftest.$ac_objext \
  8721. conftest$ac_exeext conftest.$ac_ext
  8722. LDFLAGS="$save_LDFLAGS"
  8723. fi
  8724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8725. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8726. if test "$lt_cv_irix_exported_symbol" = yes; then
  8727. 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'
  8728. fi
  8729. else
  8730. 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'
  8731. 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'
  8732. fi
  8733. archive_cmds_need_lc='no'
  8734. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8735. hardcode_libdir_separator=:
  8736. inherit_rpath=yes
  8737. link_all_deplibs=yes
  8738. ;;
  8739. netbsd*)
  8740. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8741. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8742. else
  8743. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8744. fi
  8745. hardcode_libdir_flag_spec='-R$libdir'
  8746. hardcode_direct=yes
  8747. hardcode_shlibpath_var=no
  8748. ;;
  8749. newsos6)
  8750. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8751. hardcode_direct=yes
  8752. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8753. hardcode_libdir_separator=:
  8754. hardcode_shlibpath_var=no
  8755. ;;
  8756. *nto* | *qnx*)
  8757. ;;
  8758. openbsd*)
  8759. if test -f /usr/libexec/ld.so; then
  8760. hardcode_direct=yes
  8761. hardcode_shlibpath_var=no
  8762. hardcode_direct_absolute=yes
  8763. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8764. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8765. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8766. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8767. export_dynamic_flag_spec='${wl}-E'
  8768. else
  8769. case $host_os in
  8770. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8771. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8772. hardcode_libdir_flag_spec='-R$libdir'
  8773. ;;
  8774. *)
  8775. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8776. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8777. ;;
  8778. esac
  8779. fi
  8780. else
  8781. ld_shlibs=no
  8782. fi
  8783. ;;
  8784. os2*)
  8785. hardcode_libdir_flag_spec='-L$libdir'
  8786. hardcode_minus_L=yes
  8787. allow_undefined_flag=unsupported
  8788. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8789. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8790. ;;
  8791. osf3*)
  8792. if test "$GCC" = yes; then
  8793. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8794. 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'
  8795. else
  8796. allow_undefined_flag=' -expect_unresolved \*'
  8797. 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'
  8798. fi
  8799. archive_cmds_need_lc='no'
  8800. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8801. hardcode_libdir_separator=:
  8802. ;;
  8803. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8804. if test "$GCC" = yes; then
  8805. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8806. 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'
  8807. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8808. else
  8809. allow_undefined_flag=' -expect_unresolved \*'
  8810. 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'
  8811. 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~
  8812. $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'
  8813. # Both c and cxx compiler support -rpath directly
  8814. hardcode_libdir_flag_spec='-rpath $libdir'
  8815. fi
  8816. archive_cmds_need_lc='no'
  8817. hardcode_libdir_separator=:
  8818. ;;
  8819. solaris*)
  8820. no_undefined_flag=' -z defs'
  8821. if test "$GCC" = yes; then
  8822. wlarc='${wl}'
  8823. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8824. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8825. $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'
  8826. else
  8827. case `$CC -V 2>&1` in
  8828. *"Compilers 5.0"*)
  8829. wlarc=''
  8830. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8831. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8832. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8833. ;;
  8834. *)
  8835. wlarc='${wl}'
  8836. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8837. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8838. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8839. ;;
  8840. esac
  8841. fi
  8842. hardcode_libdir_flag_spec='-R$libdir'
  8843. hardcode_shlibpath_var=no
  8844. case $host_os in
  8845. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8846. *)
  8847. # The compiler driver will combine and reorder linker options,
  8848. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8849. # but is careful enough not to reorder.
  8850. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8851. if test "$GCC" = yes; then
  8852. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8853. else
  8854. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8855. fi
  8856. ;;
  8857. esac
  8858. link_all_deplibs=yes
  8859. ;;
  8860. sunos4*)
  8861. if test "x$host_vendor" = xsequent; then
  8862. # Use $CC to link under sequent, because it throws in some extra .o
  8863. # files that make .init and .fini sections work.
  8864. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8865. else
  8866. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8867. fi
  8868. hardcode_libdir_flag_spec='-L$libdir'
  8869. hardcode_direct=yes
  8870. hardcode_minus_L=yes
  8871. hardcode_shlibpath_var=no
  8872. ;;
  8873. sysv4)
  8874. case $host_vendor in
  8875. sni)
  8876. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8877. hardcode_direct=yes # is this really true???
  8878. ;;
  8879. siemens)
  8880. ## LD is ld it makes a PLAMLIB
  8881. ## CC just makes a GrossModule.
  8882. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8883. reload_cmds='$CC -r -o $output$reload_objs'
  8884. hardcode_direct=no
  8885. ;;
  8886. motorola)
  8887. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8888. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8889. ;;
  8890. esac
  8891. runpath_var='LD_RUN_PATH'
  8892. hardcode_shlibpath_var=no
  8893. ;;
  8894. sysv4.3*)
  8895. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8896. hardcode_shlibpath_var=no
  8897. export_dynamic_flag_spec='-Bexport'
  8898. ;;
  8899. sysv4*MP*)
  8900. if test -d /usr/nec; then
  8901. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8902. hardcode_shlibpath_var=no
  8903. runpath_var=LD_RUN_PATH
  8904. hardcode_runpath_var=yes
  8905. ld_shlibs=yes
  8906. fi
  8907. ;;
  8908. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8909. no_undefined_flag='${wl}-z,text'
  8910. archive_cmds_need_lc=no
  8911. hardcode_shlibpath_var=no
  8912. runpath_var='LD_RUN_PATH'
  8913. if test "$GCC" = yes; then
  8914. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8915. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8916. else
  8917. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8918. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8919. fi
  8920. ;;
  8921. sysv5* | sco3.2v5* | sco5v6*)
  8922. # Note: We can NOT use -z defs as we might desire, because we do not
  8923. # link with -lc, and that would cause any symbols used from libc to
  8924. # always be unresolved, which means just about no library would
  8925. # ever link correctly. If we're not using GNU ld we use -z text
  8926. # though, which does catch some bad symbols but isn't as heavy-handed
  8927. # as -z defs.
  8928. no_undefined_flag='${wl}-z,text'
  8929. allow_undefined_flag='${wl}-z,nodefs'
  8930. archive_cmds_need_lc=no
  8931. hardcode_shlibpath_var=no
  8932. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8933. hardcode_libdir_separator=':'
  8934. link_all_deplibs=yes
  8935. export_dynamic_flag_spec='${wl}-Bexport'
  8936. runpath_var='LD_RUN_PATH'
  8937. if test "$GCC" = yes; then
  8938. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8939. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8940. else
  8941. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8942. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8943. fi
  8944. ;;
  8945. uts4*)
  8946. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8947. hardcode_libdir_flag_spec='-L$libdir'
  8948. hardcode_shlibpath_var=no
  8949. ;;
  8950. *)
  8951. ld_shlibs=no
  8952. ;;
  8953. esac
  8954. if test x$host_vendor = xsni; then
  8955. case $host in
  8956. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8957. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8958. ;;
  8959. esac
  8960. fi
  8961. fi
  8962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8963. $as_echo "$ld_shlibs" >&6; }
  8964. test "$ld_shlibs" = no && can_build_shared=no
  8965. with_gnu_ld=$with_gnu_ld
  8966. #
  8967. # Do we need to explicitly link libc?
  8968. #
  8969. case "x$archive_cmds_need_lc" in
  8970. x|xyes)
  8971. # Assume -lc should be added
  8972. archive_cmds_need_lc=yes
  8973. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8974. case $archive_cmds in
  8975. *'~'*)
  8976. # FIXME: we may have to deal with multi-command sequences.
  8977. ;;
  8978. '$CC '*)
  8979. # Test whether the compiler implicitly links with -lc since on some
  8980. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8981. # to ld, don't add -lc before -lgcc.
  8982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8983. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8984. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8985. $as_echo_n "(cached) " >&6
  8986. else
  8987. $RM conftest*
  8988. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8989. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8990. (eval $ac_compile) 2>&5
  8991. ac_status=$?
  8992. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8993. test $ac_status = 0; } 2>conftest.err; then
  8994. soname=conftest
  8995. lib=conftest
  8996. libobjs=conftest.$ac_objext
  8997. deplibs=
  8998. wl=$lt_prog_compiler_wl
  8999. pic_flag=$lt_prog_compiler_pic
  9000. compiler_flags=-v
  9001. linker_flags=-v
  9002. verstring=
  9003. output_objdir=.
  9004. libname=conftest
  9005. lt_save_allow_undefined_flag=$allow_undefined_flag
  9006. allow_undefined_flag=
  9007. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9008. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9009. ac_status=$?
  9010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9011. test $ac_status = 0; }
  9012. then
  9013. lt_cv_archive_cmds_need_lc=no
  9014. else
  9015. lt_cv_archive_cmds_need_lc=yes
  9016. fi
  9017. allow_undefined_flag=$lt_save_allow_undefined_flag
  9018. else
  9019. cat conftest.err 1>&5
  9020. fi
  9021. $RM conftest*
  9022. fi
  9023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9024. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9025. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9026. ;;
  9027. esac
  9028. fi
  9029. ;;
  9030. esac
  9031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9032. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9033. if test "$GCC" = yes; then
  9034. case $host_os in
  9035. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9036. *) lt_awk_arg="/^libraries:/" ;;
  9037. esac
  9038. case $host_os in
  9039. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9040. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9041. esac
  9042. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9043. case $lt_search_path_spec in
  9044. *\;*)
  9045. # if the path contains ";" then we assume it to be the separator
  9046. # otherwise default to the standard path separator (i.e. ":") - it is
  9047. # assumed that no part of a normal pathname contains ";" but that should
  9048. # okay in the real world where ";" in dirpaths is itself problematic.
  9049. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9050. ;;
  9051. *)
  9052. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9053. ;;
  9054. esac
  9055. # Ok, now we have the path, separated by spaces, we can step through it
  9056. # and add multilib dir if necessary.
  9057. lt_tmp_lt_search_path_spec=
  9058. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9059. for lt_sys_path in $lt_search_path_spec; do
  9060. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9061. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9062. else
  9063. test -d "$lt_sys_path" && \
  9064. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9065. fi
  9066. done
  9067. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9068. BEGIN {RS=" "; FS="/|\n";} {
  9069. lt_foo="";
  9070. lt_count=0;
  9071. for (lt_i = NF; lt_i > 0; lt_i--) {
  9072. if ($lt_i != "" && $lt_i != ".") {
  9073. if ($lt_i == "..") {
  9074. lt_count++;
  9075. } else {
  9076. if (lt_count == 0) {
  9077. lt_foo="/" $lt_i lt_foo;
  9078. } else {
  9079. lt_count--;
  9080. }
  9081. }
  9082. }
  9083. }
  9084. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9085. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9086. }'`
  9087. # AWK program above erroneously prepends '/' to C:/dos/paths
  9088. # for these hosts.
  9089. case $host_os in
  9090. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9091. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9092. esac
  9093. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9094. else
  9095. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9096. fi
  9097. library_names_spec=
  9098. libname_spec='lib$name'
  9099. soname_spec=
  9100. shrext_cmds=".so"
  9101. postinstall_cmds=
  9102. postuninstall_cmds=
  9103. finish_cmds=
  9104. finish_eval=
  9105. shlibpath_var=
  9106. shlibpath_overrides_runpath=unknown
  9107. version_type=none
  9108. dynamic_linker="$host_os ld.so"
  9109. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9110. need_lib_prefix=unknown
  9111. hardcode_into_libs=no
  9112. # when you set need_version to no, make sure it does not cause -set_version
  9113. # flags to be left without arguments
  9114. need_version=unknown
  9115. case $host_os in
  9116. aix3*)
  9117. version_type=linux # correct to gnu/linux during the next big refactor
  9118. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9119. shlibpath_var=LIBPATH
  9120. # AIX 3 has no versioning support, so we append a major version to the name.
  9121. soname_spec='${libname}${release}${shared_ext}$major'
  9122. ;;
  9123. aix[4-9]*)
  9124. version_type=linux # correct to gnu/linux during the next big refactor
  9125. need_lib_prefix=no
  9126. need_version=no
  9127. hardcode_into_libs=yes
  9128. if test "$host_cpu" = ia64; then
  9129. # AIX 5 supports IA64
  9130. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9131. shlibpath_var=LD_LIBRARY_PATH
  9132. else
  9133. # With GCC up to 2.95.x, collect2 would create an import file
  9134. # for dependence libraries. The import file would start with
  9135. # the line `#! .'. This would cause the generated library to
  9136. # depend on `.', always an invalid library. This was fixed in
  9137. # development snapshots of GCC prior to 3.0.
  9138. case $host_os in
  9139. aix4 | aix4.[01] | aix4.[01].*)
  9140. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9141. echo ' yes '
  9142. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9143. :
  9144. else
  9145. can_build_shared=no
  9146. fi
  9147. ;;
  9148. esac
  9149. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9150. # soname into executable. Probably we can add versioning support to
  9151. # collect2, so additional links can be useful in future.
  9152. if test "$aix_use_runtimelinking" = yes; then
  9153. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9154. # instead of lib<name>.a to let people know that these are not
  9155. # typical AIX shared libraries.
  9156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9157. else
  9158. # We preserve .a as extension for shared libraries through AIX4.2
  9159. # and later when we are not doing run time linking.
  9160. library_names_spec='${libname}${release}.a $libname.a'
  9161. soname_spec='${libname}${release}${shared_ext}$major'
  9162. fi
  9163. shlibpath_var=LIBPATH
  9164. fi
  9165. ;;
  9166. amigaos*)
  9167. case $host_cpu in
  9168. powerpc)
  9169. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9170. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9172. ;;
  9173. m68k)
  9174. library_names_spec='$libname.ixlibrary $libname.a'
  9175. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9176. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9177. ;;
  9178. esac
  9179. ;;
  9180. beos*)
  9181. library_names_spec='${libname}${shared_ext}'
  9182. dynamic_linker="$host_os ld.so"
  9183. shlibpath_var=LIBRARY_PATH
  9184. ;;
  9185. bsdi[45]*)
  9186. version_type=linux # correct to gnu/linux during the next big refactor
  9187. need_version=no
  9188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9189. soname_spec='${libname}${release}${shared_ext}$major'
  9190. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9191. shlibpath_var=LD_LIBRARY_PATH
  9192. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9193. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9194. # the default ld.so.conf also contains /usr/contrib/lib and
  9195. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9196. # libtool to hard-code these into programs
  9197. ;;
  9198. cygwin* | mingw* | pw32* | cegcc*)
  9199. version_type=windows
  9200. shrext_cmds=".dll"
  9201. need_version=no
  9202. need_lib_prefix=no
  9203. case $GCC,$cc_basename in
  9204. yes,*)
  9205. # gcc
  9206. library_names_spec='$libname.dll.a'
  9207. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9208. postinstall_cmds='base_file=`basename \${file}`~
  9209. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9210. dldir=$destdir/`dirname \$dlpath`~
  9211. test -d \$dldir || mkdir -p \$dldir~
  9212. $install_prog $dir/$dlname \$dldir/$dlname~
  9213. chmod a+x \$dldir/$dlname~
  9214. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9215. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9216. fi'
  9217. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9218. dlpath=$dir/\$dldll~
  9219. $RM \$dlpath'
  9220. shlibpath_overrides_runpath=yes
  9221. case $host_os in
  9222. cygwin*)
  9223. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9224. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9225. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9226. ;;
  9227. mingw* | cegcc*)
  9228. # MinGW DLLs use traditional 'lib' prefix
  9229. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9230. ;;
  9231. pw32*)
  9232. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9233. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9234. ;;
  9235. esac
  9236. dynamic_linker='Win32 ld.exe'
  9237. ;;
  9238. *,cl*)
  9239. # Native MSVC
  9240. libname_spec='$name'
  9241. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9242. library_names_spec='${libname}.dll.lib'
  9243. case $build_os in
  9244. mingw*)
  9245. sys_lib_search_path_spec=
  9246. lt_save_ifs=$IFS
  9247. IFS=';'
  9248. for lt_path in $LIB
  9249. do
  9250. IFS=$lt_save_ifs
  9251. # Let DOS variable expansion print the short 8.3 style file name.
  9252. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9253. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9254. done
  9255. IFS=$lt_save_ifs
  9256. # Convert to MSYS style.
  9257. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9258. ;;
  9259. cygwin*)
  9260. # Convert to unix form, then to dos form, then back to unix form
  9261. # but this time dos style (no spaces!) so that the unix form looks
  9262. # like /cygdrive/c/PROGRA~1:/cygdr...
  9263. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9264. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9265. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9266. ;;
  9267. *)
  9268. sys_lib_search_path_spec="$LIB"
  9269. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9270. # It is most probably a Windows format PATH.
  9271. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9272. else
  9273. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9274. fi
  9275. # FIXME: find the short name or the path components, as spaces are
  9276. # common. (e.g. "Program Files" -> "PROGRA~1")
  9277. ;;
  9278. esac
  9279. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9280. postinstall_cmds='base_file=`basename \${file}`~
  9281. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9282. dldir=$destdir/`dirname \$dlpath`~
  9283. test -d \$dldir || mkdir -p \$dldir~
  9284. $install_prog $dir/$dlname \$dldir/$dlname'
  9285. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9286. dlpath=$dir/\$dldll~
  9287. $RM \$dlpath'
  9288. shlibpath_overrides_runpath=yes
  9289. dynamic_linker='Win32 link.exe'
  9290. ;;
  9291. *)
  9292. # Assume MSVC wrapper
  9293. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9294. dynamic_linker='Win32 ld.exe'
  9295. ;;
  9296. esac
  9297. # FIXME: first we should search . and the directory the executable is in
  9298. shlibpath_var=PATH
  9299. ;;
  9300. darwin* | rhapsody*)
  9301. dynamic_linker="$host_os dyld"
  9302. version_type=darwin
  9303. need_lib_prefix=no
  9304. need_version=no
  9305. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9306. soname_spec='${libname}${release}${major}$shared_ext'
  9307. shlibpath_overrides_runpath=yes
  9308. shlibpath_var=DYLD_LIBRARY_PATH
  9309. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9310. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9311. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9312. ;;
  9313. dgux*)
  9314. version_type=linux # correct to gnu/linux during the next big refactor
  9315. need_lib_prefix=no
  9316. need_version=no
  9317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9318. soname_spec='${libname}${release}${shared_ext}$major'
  9319. shlibpath_var=LD_LIBRARY_PATH
  9320. ;;
  9321. freebsd* | dragonfly*)
  9322. # DragonFly does not have aout. When/if they implement a new
  9323. # versioning mechanism, adjust this.
  9324. if test -x /usr/bin/objformat; then
  9325. objformat=`/usr/bin/objformat`
  9326. else
  9327. case $host_os in
  9328. freebsd[23].*) objformat=aout ;;
  9329. *) objformat=elf ;;
  9330. esac
  9331. fi
  9332. version_type=freebsd-$objformat
  9333. case $version_type in
  9334. freebsd-elf*)
  9335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9336. need_version=no
  9337. need_lib_prefix=no
  9338. ;;
  9339. freebsd-*)
  9340. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9341. need_version=yes
  9342. ;;
  9343. esac
  9344. shlibpath_var=LD_LIBRARY_PATH
  9345. case $host_os in
  9346. freebsd2.*)
  9347. shlibpath_overrides_runpath=yes
  9348. ;;
  9349. freebsd3.[01]* | freebsdelf3.[01]*)
  9350. shlibpath_overrides_runpath=yes
  9351. hardcode_into_libs=yes
  9352. ;;
  9353. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9354. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9355. shlibpath_overrides_runpath=no
  9356. hardcode_into_libs=yes
  9357. ;;
  9358. *) # from 4.6 on, and DragonFly
  9359. shlibpath_overrides_runpath=yes
  9360. hardcode_into_libs=yes
  9361. ;;
  9362. esac
  9363. ;;
  9364. gnu*)
  9365. version_type=linux # correct to gnu/linux during the next big refactor
  9366. need_lib_prefix=no
  9367. need_version=no
  9368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9369. soname_spec='${libname}${release}${shared_ext}$major'
  9370. shlibpath_var=LD_LIBRARY_PATH
  9371. shlibpath_overrides_runpath=no
  9372. hardcode_into_libs=yes
  9373. ;;
  9374. haiku*)
  9375. version_type=linux # correct to gnu/linux during the next big refactor
  9376. need_lib_prefix=no
  9377. need_version=no
  9378. dynamic_linker="$host_os runtime_loader"
  9379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9380. soname_spec='${libname}${release}${shared_ext}$major'
  9381. shlibpath_var=LIBRARY_PATH
  9382. shlibpath_overrides_runpath=yes
  9383. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9384. hardcode_into_libs=yes
  9385. ;;
  9386. hpux9* | hpux10* | hpux11*)
  9387. # Give a soname corresponding to the major version so that dld.sl refuses to
  9388. # link against other versions.
  9389. version_type=sunos
  9390. need_lib_prefix=no
  9391. need_version=no
  9392. case $host_cpu in
  9393. ia64*)
  9394. shrext_cmds='.so'
  9395. hardcode_into_libs=yes
  9396. dynamic_linker="$host_os dld.so"
  9397. shlibpath_var=LD_LIBRARY_PATH
  9398. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9400. soname_spec='${libname}${release}${shared_ext}$major'
  9401. if test "X$HPUX_IA64_MODE" = X32; then
  9402. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9403. else
  9404. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9405. fi
  9406. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9407. ;;
  9408. hppa*64*)
  9409. shrext_cmds='.sl'
  9410. hardcode_into_libs=yes
  9411. dynamic_linker="$host_os dld.sl"
  9412. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9413. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9415. soname_spec='${libname}${release}${shared_ext}$major'
  9416. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9417. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9418. ;;
  9419. *)
  9420. shrext_cmds='.sl'
  9421. dynamic_linker="$host_os dld.sl"
  9422. shlibpath_var=SHLIB_PATH
  9423. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9425. soname_spec='${libname}${release}${shared_ext}$major'
  9426. ;;
  9427. esac
  9428. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9429. postinstall_cmds='chmod 555 $lib'
  9430. # or fails outright, so override atomically:
  9431. install_override_mode=555
  9432. ;;
  9433. interix[3-9]*)
  9434. version_type=linux # correct to gnu/linux during the next big refactor
  9435. need_lib_prefix=no
  9436. need_version=no
  9437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9438. soname_spec='${libname}${release}${shared_ext}$major'
  9439. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9440. shlibpath_var=LD_LIBRARY_PATH
  9441. shlibpath_overrides_runpath=no
  9442. hardcode_into_libs=yes
  9443. ;;
  9444. irix5* | irix6* | nonstopux*)
  9445. case $host_os in
  9446. nonstopux*) version_type=nonstopux ;;
  9447. *)
  9448. if test "$lt_cv_prog_gnu_ld" = yes; then
  9449. version_type=linux # correct to gnu/linux during the next big refactor
  9450. else
  9451. version_type=irix
  9452. fi ;;
  9453. esac
  9454. need_lib_prefix=no
  9455. need_version=no
  9456. soname_spec='${libname}${release}${shared_ext}$major'
  9457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9458. case $host_os in
  9459. irix5* | nonstopux*)
  9460. libsuff= shlibsuff=
  9461. ;;
  9462. *)
  9463. case $LD in # libtool.m4 will add one of these switches to LD
  9464. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9465. libsuff= shlibsuff= libmagic=32-bit;;
  9466. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9467. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9468. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9469. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9470. *) libsuff= shlibsuff= libmagic=never-match;;
  9471. esac
  9472. ;;
  9473. esac
  9474. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9475. shlibpath_overrides_runpath=no
  9476. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9477. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9478. hardcode_into_libs=yes
  9479. ;;
  9480. # No shared lib support for Linux oldld, aout, or coff.
  9481. linux*oldld* | linux*aout* | linux*coff*)
  9482. dynamic_linker=no
  9483. ;;
  9484. # This must be glibc/ELF.
  9485. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9486. version_type=linux # correct to gnu/linux during the next big refactor
  9487. need_lib_prefix=no
  9488. need_version=no
  9489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9490. soname_spec='${libname}${release}${shared_ext}$major'
  9491. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9492. shlibpath_var=LD_LIBRARY_PATH
  9493. shlibpath_overrides_runpath=no
  9494. # Some binutils ld are patched to set DT_RUNPATH
  9495. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9496. $as_echo_n "(cached) " >&6
  9497. else
  9498. lt_cv_shlibpath_overrides_runpath=no
  9499. save_LDFLAGS=$LDFLAGS
  9500. save_libdir=$libdir
  9501. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9502. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9504. /* end confdefs.h. */
  9505. int
  9506. main ()
  9507. {
  9508. ;
  9509. return 0;
  9510. }
  9511. _ACEOF
  9512. if ac_fn_c_try_link "$LINENO"; then :
  9513. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9514. lt_cv_shlibpath_overrides_runpath=yes
  9515. fi
  9516. fi
  9517. rm -f core conftest.err conftest.$ac_objext \
  9518. conftest$ac_exeext conftest.$ac_ext
  9519. LDFLAGS=$save_LDFLAGS
  9520. libdir=$save_libdir
  9521. fi
  9522. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9523. # This implies no fast_install, which is unacceptable.
  9524. # Some rework will be needed to allow for fast_install
  9525. # before this can be enabled.
  9526. hardcode_into_libs=yes
  9527. # Append ld.so.conf contents to the search path
  9528. if test -f /etc/ld.so.conf; then
  9529. 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' ' '`
  9530. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9531. fi
  9532. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9533. # powerpc, because MkLinux only supported shared libraries with the
  9534. # GNU dynamic linker. Since this was broken with cross compilers,
  9535. # most powerpc-linux boxes support dynamic linking these days and
  9536. # people can always --disable-shared, the test was removed, and we
  9537. # assume the GNU/Linux dynamic linker is in use.
  9538. dynamic_linker='GNU/Linux ld.so'
  9539. ;;
  9540. netbsd*)
  9541. version_type=sunos
  9542. need_lib_prefix=no
  9543. need_version=no
  9544. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9546. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9547. dynamic_linker='NetBSD (a.out) ld.so'
  9548. else
  9549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9550. soname_spec='${libname}${release}${shared_ext}$major'
  9551. dynamic_linker='NetBSD ld.elf_so'
  9552. fi
  9553. shlibpath_var=LD_LIBRARY_PATH
  9554. shlibpath_overrides_runpath=yes
  9555. hardcode_into_libs=yes
  9556. ;;
  9557. newsos6)
  9558. version_type=linux # correct to gnu/linux during the next big refactor
  9559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9560. shlibpath_var=LD_LIBRARY_PATH
  9561. shlibpath_overrides_runpath=yes
  9562. ;;
  9563. *nto* | *qnx*)
  9564. version_type=qnx
  9565. need_lib_prefix=no
  9566. need_version=no
  9567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9568. soname_spec='${libname}${release}${shared_ext}$major'
  9569. shlibpath_var=LD_LIBRARY_PATH
  9570. shlibpath_overrides_runpath=no
  9571. hardcode_into_libs=yes
  9572. dynamic_linker='ldqnx.so'
  9573. ;;
  9574. openbsd*)
  9575. version_type=sunos
  9576. sys_lib_dlsearch_path_spec="/usr/lib"
  9577. need_lib_prefix=no
  9578. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9579. case $host_os in
  9580. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9581. *) need_version=no ;;
  9582. esac
  9583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9584. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9585. shlibpath_var=LD_LIBRARY_PATH
  9586. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9587. case $host_os in
  9588. openbsd2.[89] | openbsd2.[89].*)
  9589. shlibpath_overrides_runpath=no
  9590. ;;
  9591. *)
  9592. shlibpath_overrides_runpath=yes
  9593. ;;
  9594. esac
  9595. else
  9596. shlibpath_overrides_runpath=yes
  9597. fi
  9598. ;;
  9599. os2*)
  9600. libname_spec='$name'
  9601. shrext_cmds=".dll"
  9602. need_lib_prefix=no
  9603. library_names_spec='$libname${shared_ext} $libname.a'
  9604. dynamic_linker='OS/2 ld.exe'
  9605. shlibpath_var=LIBPATH
  9606. ;;
  9607. osf3* | osf4* | osf5*)
  9608. version_type=osf
  9609. need_lib_prefix=no
  9610. need_version=no
  9611. soname_spec='${libname}${release}${shared_ext}$major'
  9612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9613. shlibpath_var=LD_LIBRARY_PATH
  9614. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9615. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9616. ;;
  9617. rdos*)
  9618. dynamic_linker=no
  9619. ;;
  9620. solaris*)
  9621. version_type=linux # correct to gnu/linux during the next big refactor
  9622. need_lib_prefix=no
  9623. need_version=no
  9624. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9625. soname_spec='${libname}${release}${shared_ext}$major'
  9626. shlibpath_var=LD_LIBRARY_PATH
  9627. shlibpath_overrides_runpath=yes
  9628. hardcode_into_libs=yes
  9629. # ldd complains unless libraries are executable
  9630. postinstall_cmds='chmod +x $lib'
  9631. ;;
  9632. sunos4*)
  9633. version_type=sunos
  9634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9635. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9636. shlibpath_var=LD_LIBRARY_PATH
  9637. shlibpath_overrides_runpath=yes
  9638. if test "$with_gnu_ld" = yes; then
  9639. need_lib_prefix=no
  9640. fi
  9641. need_version=yes
  9642. ;;
  9643. sysv4 | sysv4.3*)
  9644. version_type=linux # correct to gnu/linux during the next big refactor
  9645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9646. soname_spec='${libname}${release}${shared_ext}$major'
  9647. shlibpath_var=LD_LIBRARY_PATH
  9648. case $host_vendor in
  9649. sni)
  9650. shlibpath_overrides_runpath=no
  9651. need_lib_prefix=no
  9652. runpath_var=LD_RUN_PATH
  9653. ;;
  9654. siemens)
  9655. need_lib_prefix=no
  9656. ;;
  9657. motorola)
  9658. need_lib_prefix=no
  9659. need_version=no
  9660. shlibpath_overrides_runpath=no
  9661. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9662. ;;
  9663. esac
  9664. ;;
  9665. sysv4*MP*)
  9666. if test -d /usr/nec ;then
  9667. version_type=linux # correct to gnu/linux during the next big refactor
  9668. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9669. soname_spec='$libname${shared_ext}.$major'
  9670. shlibpath_var=LD_LIBRARY_PATH
  9671. fi
  9672. ;;
  9673. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9674. version_type=freebsd-elf
  9675. need_lib_prefix=no
  9676. need_version=no
  9677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9678. soname_spec='${libname}${release}${shared_ext}$major'
  9679. shlibpath_var=LD_LIBRARY_PATH
  9680. shlibpath_overrides_runpath=yes
  9681. hardcode_into_libs=yes
  9682. if test "$with_gnu_ld" = yes; then
  9683. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9684. else
  9685. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9686. case $host_os in
  9687. sco3.2v5*)
  9688. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9689. ;;
  9690. esac
  9691. fi
  9692. sys_lib_dlsearch_path_spec='/usr/lib'
  9693. ;;
  9694. tpf*)
  9695. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9696. version_type=linux # correct to gnu/linux during the next big refactor
  9697. need_lib_prefix=no
  9698. need_version=no
  9699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9700. shlibpath_var=LD_LIBRARY_PATH
  9701. shlibpath_overrides_runpath=no
  9702. hardcode_into_libs=yes
  9703. ;;
  9704. uts4*)
  9705. version_type=linux # correct to gnu/linux during the next big refactor
  9706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9707. soname_spec='${libname}${release}${shared_ext}$major'
  9708. shlibpath_var=LD_LIBRARY_PATH
  9709. ;;
  9710. *)
  9711. dynamic_linker=no
  9712. ;;
  9713. esac
  9714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9715. $as_echo "$dynamic_linker" >&6; }
  9716. test "$dynamic_linker" = no && can_build_shared=no
  9717. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9718. if test "$GCC" = yes; then
  9719. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9720. fi
  9721. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9722. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9723. fi
  9724. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9725. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9726. fi
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9728. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9729. hardcode_action=
  9730. if test -n "$hardcode_libdir_flag_spec" ||
  9731. test -n "$runpath_var" ||
  9732. test "X$hardcode_automatic" = "Xyes" ; then
  9733. # We can hardcode non-existent directories.
  9734. if test "$hardcode_direct" != no &&
  9735. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9736. # have to relink, otherwise we might link with an installed library
  9737. # when we should be linking with a yet-to-be-installed one
  9738. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9739. test "$hardcode_minus_L" != no; then
  9740. # Linking always hardcodes the temporary library directory.
  9741. hardcode_action=relink
  9742. else
  9743. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9744. hardcode_action=immediate
  9745. fi
  9746. else
  9747. # We cannot hardcode anything, or else we can only hardcode existing
  9748. # directories.
  9749. hardcode_action=unsupported
  9750. fi
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9752. $as_echo "$hardcode_action" >&6; }
  9753. if test "$hardcode_action" = relink ||
  9754. test "$inherit_rpath" = yes; then
  9755. # Fast installation is not supported
  9756. enable_fast_install=no
  9757. elif test "$shlibpath_overrides_runpath" = yes ||
  9758. test "$enable_shared" = no; then
  9759. # Fast installation is not necessary
  9760. enable_fast_install=needless
  9761. fi
  9762. if test "x$enable_dlopen" != xyes; then
  9763. enable_dlopen=unknown
  9764. enable_dlopen_self=unknown
  9765. enable_dlopen_self_static=unknown
  9766. else
  9767. lt_cv_dlopen=no
  9768. lt_cv_dlopen_libs=
  9769. case $host_os in
  9770. beos*)
  9771. lt_cv_dlopen="load_add_on"
  9772. lt_cv_dlopen_libs=
  9773. lt_cv_dlopen_self=yes
  9774. ;;
  9775. mingw* | pw32* | cegcc*)
  9776. lt_cv_dlopen="LoadLibrary"
  9777. lt_cv_dlopen_libs=
  9778. ;;
  9779. cygwin*)
  9780. lt_cv_dlopen="dlopen"
  9781. lt_cv_dlopen_libs=
  9782. ;;
  9783. darwin*)
  9784. # if libdl is installed we need to link against it
  9785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9786. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9787. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9788. $as_echo_n "(cached) " >&6
  9789. else
  9790. ac_check_lib_save_LIBS=$LIBS
  9791. LIBS="-ldl $LIBS"
  9792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9793. /* end confdefs.h. */
  9794. /* Override any GCC internal prototype to avoid an error.
  9795. Use char because int might match the return type of a GCC
  9796. builtin and then its argument prototype would still apply. */
  9797. #ifdef __cplusplus
  9798. extern "C"
  9799. #endif
  9800. char dlopen ();
  9801. int
  9802. main ()
  9803. {
  9804. return dlopen ();
  9805. ;
  9806. return 0;
  9807. }
  9808. _ACEOF
  9809. if ac_fn_c_try_link "$LINENO"; then :
  9810. ac_cv_lib_dl_dlopen=yes
  9811. else
  9812. ac_cv_lib_dl_dlopen=no
  9813. fi
  9814. rm -f core conftest.err conftest.$ac_objext \
  9815. conftest$ac_exeext conftest.$ac_ext
  9816. LIBS=$ac_check_lib_save_LIBS
  9817. fi
  9818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9819. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9820. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9821. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9822. else
  9823. lt_cv_dlopen="dyld"
  9824. lt_cv_dlopen_libs=
  9825. lt_cv_dlopen_self=yes
  9826. fi
  9827. ;;
  9828. *)
  9829. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9830. if test "x$ac_cv_func_shl_load" = xyes; then :
  9831. lt_cv_dlopen="shl_load"
  9832. else
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9834. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9835. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9836. $as_echo_n "(cached) " >&6
  9837. else
  9838. ac_check_lib_save_LIBS=$LIBS
  9839. LIBS="-ldld $LIBS"
  9840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9841. /* end confdefs.h. */
  9842. /* Override any GCC internal prototype to avoid an error.
  9843. Use char because int might match the return type of a GCC
  9844. builtin and then its argument prototype would still apply. */
  9845. #ifdef __cplusplus
  9846. extern "C"
  9847. #endif
  9848. char shl_load ();
  9849. int
  9850. main ()
  9851. {
  9852. return shl_load ();
  9853. ;
  9854. return 0;
  9855. }
  9856. _ACEOF
  9857. if ac_fn_c_try_link "$LINENO"; then :
  9858. ac_cv_lib_dld_shl_load=yes
  9859. else
  9860. ac_cv_lib_dld_shl_load=no
  9861. fi
  9862. rm -f core conftest.err conftest.$ac_objext \
  9863. conftest$ac_exeext conftest.$ac_ext
  9864. LIBS=$ac_check_lib_save_LIBS
  9865. fi
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9867. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9868. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9869. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9870. else
  9871. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9872. if test "x$ac_cv_func_dlopen" = xyes; then :
  9873. lt_cv_dlopen="dlopen"
  9874. else
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9876. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9877. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9878. $as_echo_n "(cached) " >&6
  9879. else
  9880. ac_check_lib_save_LIBS=$LIBS
  9881. LIBS="-ldl $LIBS"
  9882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9883. /* end confdefs.h. */
  9884. /* Override any GCC internal prototype to avoid an error.
  9885. Use char because int might match the return type of a GCC
  9886. builtin and then its argument prototype would still apply. */
  9887. #ifdef __cplusplus
  9888. extern "C"
  9889. #endif
  9890. char dlopen ();
  9891. int
  9892. main ()
  9893. {
  9894. return dlopen ();
  9895. ;
  9896. return 0;
  9897. }
  9898. _ACEOF
  9899. if ac_fn_c_try_link "$LINENO"; then :
  9900. ac_cv_lib_dl_dlopen=yes
  9901. else
  9902. ac_cv_lib_dl_dlopen=no
  9903. fi
  9904. rm -f core conftest.err conftest.$ac_objext \
  9905. conftest$ac_exeext conftest.$ac_ext
  9906. LIBS=$ac_check_lib_save_LIBS
  9907. fi
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9909. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9910. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9911. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9912. else
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9914. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9915. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. ac_check_lib_save_LIBS=$LIBS
  9919. LIBS="-lsvld $LIBS"
  9920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9921. /* end confdefs.h. */
  9922. /* Override any GCC internal prototype to avoid an error.
  9923. Use char because int might match the return type of a GCC
  9924. builtin and then its argument prototype would still apply. */
  9925. #ifdef __cplusplus
  9926. extern "C"
  9927. #endif
  9928. char dlopen ();
  9929. int
  9930. main ()
  9931. {
  9932. return dlopen ();
  9933. ;
  9934. return 0;
  9935. }
  9936. _ACEOF
  9937. if ac_fn_c_try_link "$LINENO"; then :
  9938. ac_cv_lib_svld_dlopen=yes
  9939. else
  9940. ac_cv_lib_svld_dlopen=no
  9941. fi
  9942. rm -f core conftest.err conftest.$ac_objext \
  9943. conftest$ac_exeext conftest.$ac_ext
  9944. LIBS=$ac_check_lib_save_LIBS
  9945. fi
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9947. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9948. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9949. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9950. else
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9952. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9953. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9954. $as_echo_n "(cached) " >&6
  9955. else
  9956. ac_check_lib_save_LIBS=$LIBS
  9957. LIBS="-ldld $LIBS"
  9958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9959. /* end confdefs.h. */
  9960. /* Override any GCC internal prototype to avoid an error.
  9961. Use char because int might match the return type of a GCC
  9962. builtin and then its argument prototype would still apply. */
  9963. #ifdef __cplusplus
  9964. extern "C"
  9965. #endif
  9966. char dld_link ();
  9967. int
  9968. main ()
  9969. {
  9970. return dld_link ();
  9971. ;
  9972. return 0;
  9973. }
  9974. _ACEOF
  9975. if ac_fn_c_try_link "$LINENO"; then :
  9976. ac_cv_lib_dld_dld_link=yes
  9977. else
  9978. ac_cv_lib_dld_dld_link=no
  9979. fi
  9980. rm -f core conftest.err conftest.$ac_objext \
  9981. conftest$ac_exeext conftest.$ac_ext
  9982. LIBS=$ac_check_lib_save_LIBS
  9983. fi
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9985. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9986. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9987. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9988. fi
  9989. fi
  9990. fi
  9991. fi
  9992. fi
  9993. fi
  9994. ;;
  9995. esac
  9996. if test "x$lt_cv_dlopen" != xno; then
  9997. enable_dlopen=yes
  9998. else
  9999. enable_dlopen=no
  10000. fi
  10001. case $lt_cv_dlopen in
  10002. dlopen)
  10003. save_CPPFLAGS="$CPPFLAGS"
  10004. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10005. save_LDFLAGS="$LDFLAGS"
  10006. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10007. save_LIBS="$LIBS"
  10008. LIBS="$lt_cv_dlopen_libs $LIBS"
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10010. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10011. if ${lt_cv_dlopen_self+:} false; then :
  10012. $as_echo_n "(cached) " >&6
  10013. else
  10014. if test "$cross_compiling" = yes; then :
  10015. lt_cv_dlopen_self=cross
  10016. else
  10017. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10018. lt_status=$lt_dlunknown
  10019. cat > conftest.$ac_ext <<_LT_EOF
  10020. #line $LINENO "configure"
  10021. #include "confdefs.h"
  10022. #if HAVE_DLFCN_H
  10023. #include <dlfcn.h>
  10024. #endif
  10025. #include <stdio.h>
  10026. #ifdef RTLD_GLOBAL
  10027. # define LT_DLGLOBAL RTLD_GLOBAL
  10028. #else
  10029. # ifdef DL_GLOBAL
  10030. # define LT_DLGLOBAL DL_GLOBAL
  10031. # else
  10032. # define LT_DLGLOBAL 0
  10033. # endif
  10034. #endif
  10035. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10036. find out it does not work in some platform. */
  10037. #ifndef LT_DLLAZY_OR_NOW
  10038. # ifdef RTLD_LAZY
  10039. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10040. # else
  10041. # ifdef DL_LAZY
  10042. # define LT_DLLAZY_OR_NOW DL_LAZY
  10043. # else
  10044. # ifdef RTLD_NOW
  10045. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10046. # else
  10047. # ifdef DL_NOW
  10048. # define LT_DLLAZY_OR_NOW DL_NOW
  10049. # else
  10050. # define LT_DLLAZY_OR_NOW 0
  10051. # endif
  10052. # endif
  10053. # endif
  10054. # endif
  10055. #endif
  10056. /* When -fvisbility=hidden is used, assume the code has been annotated
  10057. correspondingly for the symbols needed. */
  10058. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10059. int fnord () __attribute__((visibility("default")));
  10060. #endif
  10061. int fnord () { return 42; }
  10062. int main ()
  10063. {
  10064. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10065. int status = $lt_dlunknown;
  10066. if (self)
  10067. {
  10068. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10069. else
  10070. {
  10071. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10072. else puts (dlerror ());
  10073. }
  10074. /* dlclose (self); */
  10075. }
  10076. else
  10077. puts (dlerror ());
  10078. return status;
  10079. }
  10080. _LT_EOF
  10081. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10082. (eval $ac_link) 2>&5
  10083. ac_status=$?
  10084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10085. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10086. (./conftest; exit; ) >&5 2>/dev/null
  10087. lt_status=$?
  10088. case x$lt_status in
  10089. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10090. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10091. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10092. esac
  10093. else :
  10094. # compilation failed
  10095. lt_cv_dlopen_self=no
  10096. fi
  10097. fi
  10098. rm -fr conftest*
  10099. fi
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10101. $as_echo "$lt_cv_dlopen_self" >&6; }
  10102. if test "x$lt_cv_dlopen_self" = xyes; then
  10103. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10105. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10106. if ${lt_cv_dlopen_self_static+:} false; then :
  10107. $as_echo_n "(cached) " >&6
  10108. else
  10109. if test "$cross_compiling" = yes; then :
  10110. lt_cv_dlopen_self_static=cross
  10111. else
  10112. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10113. lt_status=$lt_dlunknown
  10114. cat > conftest.$ac_ext <<_LT_EOF
  10115. #line $LINENO "configure"
  10116. #include "confdefs.h"
  10117. #if HAVE_DLFCN_H
  10118. #include <dlfcn.h>
  10119. #endif
  10120. #include <stdio.h>
  10121. #ifdef RTLD_GLOBAL
  10122. # define LT_DLGLOBAL RTLD_GLOBAL
  10123. #else
  10124. # ifdef DL_GLOBAL
  10125. # define LT_DLGLOBAL DL_GLOBAL
  10126. # else
  10127. # define LT_DLGLOBAL 0
  10128. # endif
  10129. #endif
  10130. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10131. find out it does not work in some platform. */
  10132. #ifndef LT_DLLAZY_OR_NOW
  10133. # ifdef RTLD_LAZY
  10134. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10135. # else
  10136. # ifdef DL_LAZY
  10137. # define LT_DLLAZY_OR_NOW DL_LAZY
  10138. # else
  10139. # ifdef RTLD_NOW
  10140. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10141. # else
  10142. # ifdef DL_NOW
  10143. # define LT_DLLAZY_OR_NOW DL_NOW
  10144. # else
  10145. # define LT_DLLAZY_OR_NOW 0
  10146. # endif
  10147. # endif
  10148. # endif
  10149. # endif
  10150. #endif
  10151. /* When -fvisbility=hidden is used, assume the code has been annotated
  10152. correspondingly for the symbols needed. */
  10153. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10154. int fnord () __attribute__((visibility("default")));
  10155. #endif
  10156. int fnord () { return 42; }
  10157. int main ()
  10158. {
  10159. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10160. int status = $lt_dlunknown;
  10161. if (self)
  10162. {
  10163. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10164. else
  10165. {
  10166. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10167. else puts (dlerror ());
  10168. }
  10169. /* dlclose (self); */
  10170. }
  10171. else
  10172. puts (dlerror ());
  10173. return status;
  10174. }
  10175. _LT_EOF
  10176. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10177. (eval $ac_link) 2>&5
  10178. ac_status=$?
  10179. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10180. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10181. (./conftest; exit; ) >&5 2>/dev/null
  10182. lt_status=$?
  10183. case x$lt_status in
  10184. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10185. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10186. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10187. esac
  10188. else :
  10189. # compilation failed
  10190. lt_cv_dlopen_self_static=no
  10191. fi
  10192. fi
  10193. rm -fr conftest*
  10194. fi
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10196. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10197. fi
  10198. CPPFLAGS="$save_CPPFLAGS"
  10199. LDFLAGS="$save_LDFLAGS"
  10200. LIBS="$save_LIBS"
  10201. ;;
  10202. esac
  10203. case $lt_cv_dlopen_self in
  10204. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10205. *) enable_dlopen_self=unknown ;;
  10206. esac
  10207. case $lt_cv_dlopen_self_static in
  10208. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10209. *) enable_dlopen_self_static=unknown ;;
  10210. esac
  10211. fi
  10212. striplib=
  10213. old_striplib=
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10215. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10216. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10217. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10218. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10220. $as_echo "yes" >&6; }
  10221. else
  10222. # FIXME - insert some real tests, host_os isn't really good enough
  10223. case $host_os in
  10224. darwin*)
  10225. if test -n "$STRIP" ; then
  10226. striplib="$STRIP -x"
  10227. old_striplib="$STRIP -S"
  10228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10229. $as_echo "yes" >&6; }
  10230. else
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10232. $as_echo "no" >&6; }
  10233. fi
  10234. ;;
  10235. *)
  10236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10237. $as_echo "no" >&6; }
  10238. ;;
  10239. esac
  10240. fi
  10241. # Report which library types will actually be built
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10243. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10245. $as_echo "$can_build_shared" >&6; }
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10247. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10248. test "$can_build_shared" = "no" && enable_shared=no
  10249. # On AIX, shared libraries and static libraries use the same namespace, and
  10250. # are all built from PIC.
  10251. case $host_os in
  10252. aix3*)
  10253. test "$enable_shared" = yes && enable_static=no
  10254. if test -n "$RANLIB"; then
  10255. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10256. postinstall_cmds='$RANLIB $lib'
  10257. fi
  10258. ;;
  10259. aix[4-9]*)
  10260. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10261. test "$enable_shared" = yes && enable_static=no
  10262. fi
  10263. ;;
  10264. esac
  10265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10266. $as_echo "$enable_shared" >&6; }
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10268. $as_echo_n "checking whether to build static libraries... " >&6; }
  10269. # Make sure either enable_shared or enable_static is yes.
  10270. test "$enable_shared" = yes || enable_static=yes
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10272. $as_echo "$enable_static" >&6; }
  10273. fi
  10274. ac_ext=c
  10275. ac_cpp='$CPP $CPPFLAGS'
  10276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10279. CC="$lt_save_CC"
  10280. ac_config_commands="$ac_config_commands libtool"
  10281. # Only expand once:
  10282. # Check for the -Bsymbolic-functions linker flag
  10283. # Check whether --enable-Bsymbolic was given.
  10284. if test "${enable_Bsymbolic+set}" = set; then :
  10285. enableval=$enable_Bsymbolic;
  10286. else
  10287. enable_Bsymbolic=check
  10288. fi
  10289. if test "x$enable_Bsymbolic" = "xcheck"; then :
  10290. saved_LDFLAGS="${LDFLAGS}"
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
  10292. $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
  10293. LDFLAGS=-Wl,-Bsymbolic-functions
  10294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10295. /* end confdefs.h. */
  10296. int
  10297. main ()
  10298. {
  10299. int main (void) { return 0; }
  10300. ;
  10301. return 0;
  10302. }
  10303. _ACEOF
  10304. if ac_fn_c_try_link "$LINENO"; then :
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10306. $as_echo "yes" >&6; }
  10307. enable_Bsymbolic=yes
  10308. else
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10310. $as_echo "no" >&6; }
  10311. enable_Bsymbolic=no
  10312. fi
  10313. rm -f core conftest.err conftest.$ac_objext \
  10314. conftest$ac_exeext conftest.$ac_ext
  10315. LDFLAGS="${saved_LDFLAGS}"
  10316. fi
  10317. if test "x$enable_Bsymbolic" = "xyes"; then :
  10318. JSON_BSYMBOLIC_LDFLAGS=-Wl,-Bsymbolic-functions
  10319. fi
  10320. ac_config_files="$ac_config_files Makefile json-c.pc tests/Makefile json-c-uninstalled.pc"
  10321. cat >confcache <<\_ACEOF
  10322. # This file is a shell script that caches the results of configure
  10323. # tests run on this system so they can be shared between configure
  10324. # scripts and configure runs, see configure's option --config-cache.
  10325. # It is not useful on other systems. If it contains results you don't
  10326. # want to keep, you may remove or edit it.
  10327. #
  10328. # config.status only pays attention to the cache file if you give it
  10329. # the --recheck option to rerun configure.
  10330. #
  10331. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10332. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10333. # following values.
  10334. _ACEOF
  10335. # The following way of writing the cache mishandles newlines in values,
  10336. # but we know of no workaround that is simple, portable, and efficient.
  10337. # So, we kill variables containing newlines.
  10338. # Ultrix sh set writes to stderr and can't be redirected directly,
  10339. # and sets the high bit in the cache file unless we assign to the vars.
  10340. (
  10341. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10342. eval ac_val=\$$ac_var
  10343. case $ac_val in #(
  10344. *${as_nl}*)
  10345. case $ac_var in #(
  10346. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10347. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10348. esac
  10349. case $ac_var in #(
  10350. _ | IFS | as_nl) ;; #(
  10351. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10352. *) { eval $ac_var=; unset $ac_var;} ;;
  10353. esac ;;
  10354. esac
  10355. done
  10356. (set) 2>&1 |
  10357. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10358. *${as_nl}ac_space=\ *)
  10359. # `set' does not quote correctly, so add quotes: double-quote
  10360. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10361. sed -n \
  10362. "s/'/'\\\\''/g;
  10363. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10364. ;; #(
  10365. *)
  10366. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10367. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10368. ;;
  10369. esac |
  10370. sort
  10371. ) |
  10372. sed '
  10373. /^ac_cv_env_/b end
  10374. t clear
  10375. :clear
  10376. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10377. t end
  10378. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10379. :end' >>confcache
  10380. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10381. if test -w "$cache_file"; then
  10382. if test "x$cache_file" != "x/dev/null"; then
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10384. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10385. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10386. cat confcache >"$cache_file"
  10387. else
  10388. case $cache_file in #(
  10389. */* | ?:*)
  10390. mv -f confcache "$cache_file"$$ &&
  10391. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10392. *)
  10393. mv -f confcache "$cache_file" ;;
  10394. esac
  10395. fi
  10396. fi
  10397. else
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10399. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10400. fi
  10401. fi
  10402. rm -f confcache
  10403. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10404. # Let make expand exec_prefix.
  10405. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10406. DEFS=-DHAVE_CONFIG_H
  10407. ac_libobjs=
  10408. ac_ltlibobjs=
  10409. U=
  10410. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10411. # 1. Remove the extension, and $U if already installed.
  10412. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10413. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10414. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10415. # will be set to the directory where LIBOBJS objects are built.
  10416. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10417. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10418. done
  10419. LIBOBJS=$ac_libobjs
  10420. LTLIBOBJS=$ac_ltlibobjs
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10422. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10423. if test -n "$am_sleep_pid"; then
  10424. # Hide warnings about reused PIDs.
  10425. wait $am_sleep_pid 2>/dev/null
  10426. fi
  10427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10428. $as_echo "done" >&6; }
  10429. if test -n "$EXEEXT"; then
  10430. am__EXEEXT_TRUE=
  10431. am__EXEEXT_FALSE='#'
  10432. else
  10433. am__EXEEXT_TRUE='#'
  10434. am__EXEEXT_FALSE=
  10435. fi
  10436. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10437. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10438. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10439. fi
  10440. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10441. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10442. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10443. fi
  10444. : "${CONFIG_STATUS=./config.status}"
  10445. ac_write_fail=0
  10446. ac_clean_files_save=$ac_clean_files
  10447. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10449. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10450. as_write_fail=0
  10451. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10452. #! $SHELL
  10453. # Generated by $as_me.
  10454. # Run this file to recreate the current configuration.
  10455. # Compiler output produced by configure, useful for debugging
  10456. # configure, is in config.log if it exists.
  10457. debug=false
  10458. ac_cs_recheck=false
  10459. ac_cs_silent=false
  10460. SHELL=\${CONFIG_SHELL-$SHELL}
  10461. export SHELL
  10462. _ASEOF
  10463. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10464. ## -------------------- ##
  10465. ## M4sh Initialization. ##
  10466. ## -------------------- ##
  10467. # Be more Bourne compatible
  10468. DUALCASE=1; export DUALCASE # for MKS sh
  10469. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10470. emulate sh
  10471. NULLCMD=:
  10472. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10473. # is contrary to our usage. Disable this feature.
  10474. alias -g '${1+"$@"}'='"$@"'
  10475. setopt NO_GLOB_SUBST
  10476. else
  10477. case `(set -o) 2>/dev/null` in #(
  10478. *posix*) :
  10479. set -o posix ;; #(
  10480. *) :
  10481. ;;
  10482. esac
  10483. fi
  10484. as_nl='
  10485. '
  10486. export as_nl
  10487. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10488. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10489. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10490. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10491. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10492. # but without wasting forks for bash or zsh.
  10493. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10494. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10495. as_echo='print -r --'
  10496. as_echo_n='print -rn --'
  10497. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10498. as_echo='printf %s\n'
  10499. as_echo_n='printf %s'
  10500. else
  10501. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10502. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10503. as_echo_n='/usr/ucb/echo -n'
  10504. else
  10505. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10506. as_echo_n_body='eval
  10507. arg=$1;
  10508. case $arg in #(
  10509. *"$as_nl"*)
  10510. expr "X$arg" : "X\\(.*\\)$as_nl";
  10511. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10512. esac;
  10513. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10514. '
  10515. export as_echo_n_body
  10516. as_echo_n='sh -c $as_echo_n_body as_echo'
  10517. fi
  10518. export as_echo_body
  10519. as_echo='sh -c $as_echo_body as_echo'
  10520. fi
  10521. # The user is always right.
  10522. if test "${PATH_SEPARATOR+set}" != set; then
  10523. PATH_SEPARATOR=:
  10524. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10525. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10526. PATH_SEPARATOR=';'
  10527. }
  10528. fi
  10529. # IFS
  10530. # We need space, tab and new line, in precisely that order. Quoting is
  10531. # there to prevent editors from complaining about space-tab.
  10532. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10533. # splitting by setting IFS to empty value.)
  10534. IFS=" "" $as_nl"
  10535. # Find who we are. Look in the path if we contain no directory separator.
  10536. as_myself=
  10537. case $0 in #((
  10538. *[\\/]* ) as_myself=$0 ;;
  10539. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10540. for as_dir in $PATH
  10541. do
  10542. IFS=$as_save_IFS
  10543. test -z "$as_dir" && as_dir=.
  10544. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10545. done
  10546. IFS=$as_save_IFS
  10547. ;;
  10548. esac
  10549. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10550. # in which case we are not to be found in the path.
  10551. if test "x$as_myself" = x; then
  10552. as_myself=$0
  10553. fi
  10554. if test ! -f "$as_myself"; then
  10555. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10556. exit 1
  10557. fi
  10558. # Unset variables that we do not need and which cause bugs (e.g. in
  10559. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10560. # suppresses any "Segmentation fault" message there. '((' could
  10561. # trigger a bug in pdksh 5.2.14.
  10562. for as_var in BASH_ENV ENV MAIL MAILPATH
  10563. do eval test x\${$as_var+set} = xset \
  10564. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10565. done
  10566. PS1='$ '
  10567. PS2='> '
  10568. PS4='+ '
  10569. # NLS nuisances.
  10570. LC_ALL=C
  10571. export LC_ALL
  10572. LANGUAGE=C
  10573. export LANGUAGE
  10574. # CDPATH.
  10575. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10576. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10577. # ----------------------------------------
  10578. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10579. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10580. # script with STATUS, using 1 if that was 0.
  10581. as_fn_error ()
  10582. {
  10583. as_status=$1; test $as_status -eq 0 && as_status=1
  10584. if test "$4"; then
  10585. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10586. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10587. fi
  10588. $as_echo "$as_me: error: $2" >&2
  10589. as_fn_exit $as_status
  10590. } # as_fn_error
  10591. # as_fn_set_status STATUS
  10592. # -----------------------
  10593. # Set $? to STATUS, without forking.
  10594. as_fn_set_status ()
  10595. {
  10596. return $1
  10597. } # as_fn_set_status
  10598. # as_fn_exit STATUS
  10599. # -----------------
  10600. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10601. as_fn_exit ()
  10602. {
  10603. set +e
  10604. as_fn_set_status $1
  10605. exit $1
  10606. } # as_fn_exit
  10607. # as_fn_unset VAR
  10608. # ---------------
  10609. # Portably unset VAR.
  10610. as_fn_unset ()
  10611. {
  10612. { eval $1=; unset $1;}
  10613. }
  10614. as_unset=as_fn_unset
  10615. # as_fn_append VAR VALUE
  10616. # ----------------------
  10617. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10618. # advantage of any shell optimizations that allow amortized linear growth over
  10619. # repeated appends, instead of the typical quadratic growth present in naive
  10620. # implementations.
  10621. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10622. eval 'as_fn_append ()
  10623. {
  10624. eval $1+=\$2
  10625. }'
  10626. else
  10627. as_fn_append ()
  10628. {
  10629. eval $1=\$$1\$2
  10630. }
  10631. fi # as_fn_append
  10632. # as_fn_arith ARG...
  10633. # ------------------
  10634. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10635. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10636. # must be portable across $(()) and expr.
  10637. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10638. eval 'as_fn_arith ()
  10639. {
  10640. as_val=$(( $* ))
  10641. }'
  10642. else
  10643. as_fn_arith ()
  10644. {
  10645. as_val=`expr "$@" || test $? -eq 1`
  10646. }
  10647. fi # as_fn_arith
  10648. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10649. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10650. as_expr=expr
  10651. else
  10652. as_expr=false
  10653. fi
  10654. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10655. as_basename=basename
  10656. else
  10657. as_basename=false
  10658. fi
  10659. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10660. as_dirname=dirname
  10661. else
  10662. as_dirname=false
  10663. fi
  10664. as_me=`$as_basename -- "$0" ||
  10665. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10666. X"$0" : 'X\(//\)$' \| \
  10667. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10668. $as_echo X/"$0" |
  10669. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10670. s//\1/
  10671. q
  10672. }
  10673. /^X\/\(\/\/\)$/{
  10674. s//\1/
  10675. q
  10676. }
  10677. /^X\/\(\/\).*/{
  10678. s//\1/
  10679. q
  10680. }
  10681. s/.*/./; q'`
  10682. # Avoid depending upon Character Ranges.
  10683. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10684. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10685. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10686. as_cr_digits='0123456789'
  10687. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10688. ECHO_C= ECHO_N= ECHO_T=
  10689. case `echo -n x` in #(((((
  10690. -n*)
  10691. case `echo 'xy\c'` in
  10692. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10693. xy) ECHO_C='\c';;
  10694. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10695. ECHO_T=' ';;
  10696. esac;;
  10697. *)
  10698. ECHO_N='-n';;
  10699. esac
  10700. rm -f conf$$ conf$$.exe conf$$.file
  10701. if test -d conf$$.dir; then
  10702. rm -f conf$$.dir/conf$$.file
  10703. else
  10704. rm -f conf$$.dir
  10705. mkdir conf$$.dir 2>/dev/null
  10706. fi
  10707. if (echo >conf$$.file) 2>/dev/null; then
  10708. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10709. as_ln_s='ln -s'
  10710. # ... but there are two gotchas:
  10711. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10712. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10713. # In both cases, we have to default to `cp -pR'.
  10714. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10715. as_ln_s='cp -pR'
  10716. elif ln conf$$.file conf$$ 2>/dev/null; then
  10717. as_ln_s=ln
  10718. else
  10719. as_ln_s='cp -pR'
  10720. fi
  10721. else
  10722. as_ln_s='cp -pR'
  10723. fi
  10724. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10725. rmdir conf$$.dir 2>/dev/null
  10726. # as_fn_mkdir_p
  10727. # -------------
  10728. # Create "$as_dir" as a directory, including parents if necessary.
  10729. as_fn_mkdir_p ()
  10730. {
  10731. case $as_dir in #(
  10732. -*) as_dir=./$as_dir;;
  10733. esac
  10734. test -d "$as_dir" || eval $as_mkdir_p || {
  10735. as_dirs=
  10736. while :; do
  10737. case $as_dir in #(
  10738. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10739. *) as_qdir=$as_dir;;
  10740. esac
  10741. as_dirs="'$as_qdir' $as_dirs"
  10742. as_dir=`$as_dirname -- "$as_dir" ||
  10743. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10744. X"$as_dir" : 'X\(//\)[^/]' \| \
  10745. X"$as_dir" : 'X\(//\)$' \| \
  10746. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10747. $as_echo X"$as_dir" |
  10748. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10749. s//\1/
  10750. q
  10751. }
  10752. /^X\(\/\/\)[^/].*/{
  10753. s//\1/
  10754. q
  10755. }
  10756. /^X\(\/\/\)$/{
  10757. s//\1/
  10758. q
  10759. }
  10760. /^X\(\/\).*/{
  10761. s//\1/
  10762. q
  10763. }
  10764. s/.*/./; q'`
  10765. test -d "$as_dir" && break
  10766. done
  10767. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10768. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10769. } # as_fn_mkdir_p
  10770. if mkdir -p . 2>/dev/null; then
  10771. as_mkdir_p='mkdir -p "$as_dir"'
  10772. else
  10773. test -d ./-p && rmdir ./-p
  10774. as_mkdir_p=false
  10775. fi
  10776. # as_fn_executable_p FILE
  10777. # -----------------------
  10778. # Test if FILE is an executable regular file.
  10779. as_fn_executable_p ()
  10780. {
  10781. test -f "$1" && test -x "$1"
  10782. } # as_fn_executable_p
  10783. as_test_x='test -x'
  10784. as_executable_p=as_fn_executable_p
  10785. # Sed expression to map a string onto a valid CPP name.
  10786. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10787. # Sed expression to map a string onto a valid variable name.
  10788. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10789. exec 6>&1
  10790. ## ----------------------------------- ##
  10791. ## Main body of $CONFIG_STATUS script. ##
  10792. ## ----------------------------------- ##
  10793. _ASEOF
  10794. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10795. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10796. # Save the log message, to keep $0 and so on meaningful, and to
  10797. # report actual input values of CONFIG_FILES etc. instead of their
  10798. # values after options handling.
  10799. ac_log="
  10800. This file was extended by json-c $as_me 0.12, which was
  10801. generated by GNU Autoconf 2.69. Invocation command line was
  10802. CONFIG_FILES = $CONFIG_FILES
  10803. CONFIG_HEADERS = $CONFIG_HEADERS
  10804. CONFIG_LINKS = $CONFIG_LINKS
  10805. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10806. $ $0 $@
  10807. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10808. "
  10809. _ACEOF
  10810. case $ac_config_files in *"
  10811. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10812. esac
  10813. case $ac_config_headers in *"
  10814. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10815. esac
  10816. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10817. # Files that config.status was made for.
  10818. config_files="$ac_config_files"
  10819. config_headers="$ac_config_headers"
  10820. config_commands="$ac_config_commands"
  10821. _ACEOF
  10822. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10823. ac_cs_usage="\
  10824. \`$as_me' instantiates files and other configuration actions
  10825. from templates according to the current configuration. Unless the files
  10826. and actions are specified as TAGs, all are instantiated by default.
  10827. Usage: $0 [OPTION]... [TAG]...
  10828. -h, --help print this help, then exit
  10829. -V, --version print version number and configuration settings, then exit
  10830. --config print configuration, then exit
  10831. -q, --quiet, --silent
  10832. do not print progress messages
  10833. -d, --debug don't remove temporary files
  10834. --recheck update $as_me by reconfiguring in the same conditions
  10835. --file=FILE[:TEMPLATE]
  10836. instantiate the configuration file FILE
  10837. --header=FILE[:TEMPLATE]
  10838. instantiate the configuration header FILE
  10839. Configuration files:
  10840. $config_files
  10841. Configuration headers:
  10842. $config_headers
  10843. Configuration commands:
  10844. $config_commands
  10845. Report bugs to <json-c@googlegroups.com>."
  10846. _ACEOF
  10847. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10848. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10849. ac_cs_version="\\
  10850. json-c config.status 0.12
  10851. configured by $0, generated by GNU Autoconf 2.69,
  10852. with options \\"\$ac_cs_config\\"
  10853. Copyright (C) 2012 Free Software Foundation, Inc.
  10854. This config.status script is free software; the Free Software Foundation
  10855. gives unlimited permission to copy, distribute and modify it."
  10856. ac_pwd='$ac_pwd'
  10857. srcdir='$srcdir'
  10858. INSTALL='$INSTALL'
  10859. MKDIR_P='$MKDIR_P'
  10860. AWK='$AWK'
  10861. test -n "\$AWK" || AWK=awk
  10862. _ACEOF
  10863. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10864. # The default lists apply if the user does not specify any file.
  10865. ac_need_defaults=:
  10866. while test $# != 0
  10867. do
  10868. case $1 in
  10869. --*=?*)
  10870. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10871. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10872. ac_shift=:
  10873. ;;
  10874. --*=)
  10875. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10876. ac_optarg=
  10877. ac_shift=:
  10878. ;;
  10879. *)
  10880. ac_option=$1
  10881. ac_optarg=$2
  10882. ac_shift=shift
  10883. ;;
  10884. esac
  10885. case $ac_option in
  10886. # Handling of the options.
  10887. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10888. ac_cs_recheck=: ;;
  10889. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10890. $as_echo "$ac_cs_version"; exit ;;
  10891. --config | --confi | --conf | --con | --co | --c )
  10892. $as_echo "$ac_cs_config"; exit ;;
  10893. --debug | --debu | --deb | --de | --d | -d )
  10894. debug=: ;;
  10895. --file | --fil | --fi | --f )
  10896. $ac_shift
  10897. case $ac_optarg in
  10898. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10899. '') as_fn_error $? "missing file argument" ;;
  10900. esac
  10901. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10902. ac_need_defaults=false;;
  10903. --header | --heade | --head | --hea )
  10904. $ac_shift
  10905. case $ac_optarg in
  10906. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10907. esac
  10908. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10909. ac_need_defaults=false;;
  10910. --he | --h)
  10911. # Conflict between --help and --header
  10912. as_fn_error $? "ambiguous option: \`$1'
  10913. Try \`$0 --help' for more information.";;
  10914. --help | --hel | -h )
  10915. $as_echo "$ac_cs_usage"; exit ;;
  10916. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10917. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10918. ac_cs_silent=: ;;
  10919. # This is an error.
  10920. -*) as_fn_error $? "unrecognized option: \`$1'
  10921. Try \`$0 --help' for more information." ;;
  10922. *) as_fn_append ac_config_targets " $1"
  10923. ac_need_defaults=false ;;
  10924. esac
  10925. shift
  10926. done
  10927. ac_configure_extra_args=
  10928. if $ac_cs_silent; then
  10929. exec 6>/dev/null
  10930. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10931. fi
  10932. _ACEOF
  10933. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10934. if \$ac_cs_recheck; then
  10935. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10936. shift
  10937. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10938. CONFIG_SHELL='$SHELL'
  10939. export CONFIG_SHELL
  10940. exec "\$@"
  10941. fi
  10942. _ACEOF
  10943. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10944. exec 5>>config.log
  10945. {
  10946. echo
  10947. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10948. ## Running $as_me. ##
  10949. _ASBOX
  10950. $as_echo "$ac_log"
  10951. } >&5
  10952. _ACEOF
  10953. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10954. #
  10955. # INIT-COMMANDS
  10956. #
  10957. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10958. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10959. # if CDPATH is set.
  10960. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10961. sed_quote_subst='$sed_quote_subst'
  10962. double_quote_subst='$double_quote_subst'
  10963. delay_variable_subst='$delay_variable_subst'
  10964. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10965. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10966. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10967. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10968. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10969. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10970. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10971. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10972. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  10973. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10974. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10975. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10976. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10977. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10978. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10979. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10980. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10981. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10982. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10983. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10984. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10985. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10986. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10987. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10988. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10989. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10990. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10991. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10992. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10993. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10994. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10995. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10996. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10997. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10998. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10999. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11000. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11001. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11002. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11003. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11004. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11005. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11006. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11007. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11008. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11009. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11010. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11011. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11012. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11013. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11014. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11015. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11016. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11017. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11018. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11019. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11020. 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"`'
  11021. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11022. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11023. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11024. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11025. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11026. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11027. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11028. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11029. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11030. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11031. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11032. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11033. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11034. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11035. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11036. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11037. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11038. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11039. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11040. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11041. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11042. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11043. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11044. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11045. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11046. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11047. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11048. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11049. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11050. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11051. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11052. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11053. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11054. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11055. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11056. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11057. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11058. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11059. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11060. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11061. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11062. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11063. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11064. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11065. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11066. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11067. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11068. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11069. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11070. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11071. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11072. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11073. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11074. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11075. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11076. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11077. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11078. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11079. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11080. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11081. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11082. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11083. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11084. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11085. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11086. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11087. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11088. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11089. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11090. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11091. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11092. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11093. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11094. LTCC='$LTCC'
  11095. LTCFLAGS='$LTCFLAGS'
  11096. compiler='$compiler_DEFAULT'
  11097. # A function that is used when there is no print builtin or printf.
  11098. func_fallback_echo ()
  11099. {
  11100. eval 'cat <<_LTECHO_EOF
  11101. \$1
  11102. _LTECHO_EOF'
  11103. }
  11104. # Quote evaled strings.
  11105. for var in SHELL \
  11106. ECHO \
  11107. PATH_SEPARATOR \
  11108. SED \
  11109. GREP \
  11110. EGREP \
  11111. FGREP \
  11112. LD \
  11113. NM \
  11114. LN_S \
  11115. lt_SP2NL \
  11116. lt_NL2SP \
  11117. reload_flag \
  11118. OBJDUMP \
  11119. deplibs_check_method \
  11120. file_magic_cmd \
  11121. file_magic_glob \
  11122. want_nocaseglob \
  11123. DLLTOOL \
  11124. sharedlib_from_linklib_cmd \
  11125. AR \
  11126. AR_FLAGS \
  11127. archiver_list_spec \
  11128. STRIP \
  11129. RANLIB \
  11130. CC \
  11131. CFLAGS \
  11132. compiler \
  11133. lt_cv_sys_global_symbol_pipe \
  11134. lt_cv_sys_global_symbol_to_cdecl \
  11135. lt_cv_sys_global_symbol_to_c_name_address \
  11136. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11137. nm_file_list_spec \
  11138. lt_prog_compiler_no_builtin_flag \
  11139. lt_prog_compiler_pic \
  11140. lt_prog_compiler_wl \
  11141. lt_prog_compiler_static \
  11142. lt_cv_prog_compiler_c_o \
  11143. need_locks \
  11144. MANIFEST_TOOL \
  11145. DSYMUTIL \
  11146. NMEDIT \
  11147. LIPO \
  11148. OTOOL \
  11149. OTOOL64 \
  11150. shrext_cmds \
  11151. export_dynamic_flag_spec \
  11152. whole_archive_flag_spec \
  11153. compiler_needs_object \
  11154. with_gnu_ld \
  11155. allow_undefined_flag \
  11156. no_undefined_flag \
  11157. hardcode_libdir_flag_spec \
  11158. hardcode_libdir_separator \
  11159. exclude_expsyms \
  11160. include_expsyms \
  11161. file_list_spec \
  11162. variables_saved_for_relink \
  11163. libname_spec \
  11164. library_names_spec \
  11165. soname_spec \
  11166. install_override_mode \
  11167. finish_eval \
  11168. old_striplib \
  11169. striplib; do
  11170. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11171. *[\\\\\\\`\\"\\\$]*)
  11172. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11173. ;;
  11174. *)
  11175. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11176. ;;
  11177. esac
  11178. done
  11179. # Double-quote double-evaled strings.
  11180. for var in reload_cmds \
  11181. old_postinstall_cmds \
  11182. old_postuninstall_cmds \
  11183. old_archive_cmds \
  11184. extract_expsyms_cmds \
  11185. old_archive_from_new_cmds \
  11186. old_archive_from_expsyms_cmds \
  11187. archive_cmds \
  11188. archive_expsym_cmds \
  11189. module_cmds \
  11190. module_expsym_cmds \
  11191. export_symbols_cmds \
  11192. prelink_cmds \
  11193. postlink_cmds \
  11194. postinstall_cmds \
  11195. postuninstall_cmds \
  11196. finish_cmds \
  11197. sys_lib_search_path_spec \
  11198. sys_lib_dlsearch_path_spec; do
  11199. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11200. *[\\\\\\\`\\"\\\$]*)
  11201. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11202. ;;
  11203. *)
  11204. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11205. ;;
  11206. esac
  11207. done
  11208. ac_aux_dir='$ac_aux_dir'
  11209. xsi_shell='$xsi_shell'
  11210. lt_shell_append='$lt_shell_append'
  11211. # See if we are running on zsh, and set the options which allow our
  11212. # commands through without removal of \ escapes INIT.
  11213. if test -n "\${ZSH_VERSION+set}" ; then
  11214. setopt NO_GLOB_SUBST
  11215. fi
  11216. PACKAGE='$PACKAGE'
  11217. VERSION='$VERSION'
  11218. TIMESTAMP='$TIMESTAMP'
  11219. RM='$RM'
  11220. ofile='$ofile'
  11221. _ACEOF
  11222. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11223. # Handling of arguments.
  11224. for ac_config_target in $ac_config_targets
  11225. do
  11226. case $ac_config_target in
  11227. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11228. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11229. "json_config.h") CONFIG_HEADERS="$CONFIG_HEADERS json_config.h" ;;
  11230. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11231. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11232. "json-c.pc") CONFIG_FILES="$CONFIG_FILES json-c.pc" ;;
  11233. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  11234. "json-c-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES json-c-uninstalled.pc" ;;
  11235. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11236. esac
  11237. done
  11238. # If the user did not use the arguments to specify the items to instantiate,
  11239. # then the envvar interface is used. Set only those that are not.
  11240. # We use the long form for the default assignment because of an extremely
  11241. # bizarre bug on SunOS 4.1.3.
  11242. if $ac_need_defaults; then
  11243. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11244. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11245. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11246. fi
  11247. # Have a temporary directory for convenience. Make it in the build tree
  11248. # simply because there is no reason against having it here, and in addition,
  11249. # creating and moving files from /tmp can sometimes cause problems.
  11250. # Hook for its removal unless debugging.
  11251. # Note that there is a small window in which the directory will not be cleaned:
  11252. # after its creation but before its name has been assigned to `$tmp'.
  11253. $debug ||
  11254. {
  11255. tmp= ac_tmp=
  11256. trap 'exit_status=$?
  11257. : "${ac_tmp:=$tmp}"
  11258. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11259. ' 0
  11260. trap 'as_fn_exit 1' 1 2 13 15
  11261. }
  11262. # Create a (secure) tmp directory for tmp files.
  11263. {
  11264. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11265. test -d "$tmp"
  11266. } ||
  11267. {
  11268. tmp=./conf$$-$RANDOM
  11269. (umask 077 && mkdir "$tmp")
  11270. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11271. ac_tmp=$tmp
  11272. # Set up the scripts for CONFIG_FILES section.
  11273. # No need to generate them if there are no CONFIG_FILES.
  11274. # This happens for instance with `./config.status config.h'.
  11275. if test -n "$CONFIG_FILES"; then
  11276. ac_cr=`echo X | tr X '\015'`
  11277. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11278. # But we know of no other shell where ac_cr would be empty at this
  11279. # point, so we can use a bashism as a fallback.
  11280. if test "x$ac_cr" = x; then
  11281. eval ac_cr=\$\'\\r\'
  11282. fi
  11283. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11284. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11285. ac_cs_awk_cr='\\r'
  11286. else
  11287. ac_cs_awk_cr=$ac_cr
  11288. fi
  11289. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11290. _ACEOF
  11291. {
  11292. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11293. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11294. echo "_ACEOF"
  11295. } >conf$$subs.sh ||
  11296. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11297. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11298. ac_delim='%!_!# '
  11299. for ac_last_try in false false false false false :; do
  11300. . ./conf$$subs.sh ||
  11301. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11302. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11303. if test $ac_delim_n = $ac_delim_num; then
  11304. break
  11305. elif $ac_last_try; then
  11306. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11307. else
  11308. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11309. fi
  11310. done
  11311. rm -f conf$$subs.sh
  11312. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11313. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11314. _ACEOF
  11315. sed -n '
  11316. h
  11317. s/^/S["/; s/!.*/"]=/
  11318. p
  11319. g
  11320. s/^[^!]*!//
  11321. :repl
  11322. t repl
  11323. s/'"$ac_delim"'$//
  11324. t delim
  11325. :nl
  11326. h
  11327. s/\(.\{148\}\)..*/\1/
  11328. t more1
  11329. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11330. p
  11331. n
  11332. b repl
  11333. :more1
  11334. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11335. p
  11336. g
  11337. s/.\{148\}//
  11338. t nl
  11339. :delim
  11340. h
  11341. s/\(.\{148\}\)..*/\1/
  11342. t more2
  11343. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11344. p
  11345. b
  11346. :more2
  11347. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11348. p
  11349. g
  11350. s/.\{148\}//
  11351. t delim
  11352. ' <conf$$subs.awk | sed '
  11353. /^[^""]/{
  11354. N
  11355. s/\n//
  11356. }
  11357. ' >>$CONFIG_STATUS || ac_write_fail=1
  11358. rm -f conf$$subs.awk
  11359. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11360. _ACAWK
  11361. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11362. for (key in S) S_is_set[key] = 1
  11363. FS = ""
  11364. }
  11365. {
  11366. line = $ 0
  11367. nfields = split(line, field, "@")
  11368. substed = 0
  11369. len = length(field[1])
  11370. for (i = 2; i < nfields; i++) {
  11371. key = field[i]
  11372. keylen = length(key)
  11373. if (S_is_set[key]) {
  11374. value = S[key]
  11375. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11376. len += length(value) + length(field[++i])
  11377. substed = 1
  11378. } else
  11379. len += 1 + keylen
  11380. }
  11381. print line
  11382. }
  11383. _ACAWK
  11384. _ACEOF
  11385. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11386. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11387. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11388. else
  11389. cat
  11390. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11391. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11392. _ACEOF
  11393. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11394. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11395. # trailing colons and then remove the whole line if VPATH becomes empty
  11396. # (actually we leave an empty line to preserve line numbers).
  11397. if test "x$srcdir" = x.; then
  11398. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11399. h
  11400. s///
  11401. s/^/:/
  11402. s/[ ]*$/:/
  11403. s/:\$(srcdir):/:/g
  11404. s/:\${srcdir}:/:/g
  11405. s/:@srcdir@:/:/g
  11406. s/^:*//
  11407. s/:*$//
  11408. x
  11409. s/\(=[ ]*\).*/\1/
  11410. G
  11411. s/\n//
  11412. s/^[^=]*=[ ]*$//
  11413. }'
  11414. fi
  11415. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11416. fi # test -n "$CONFIG_FILES"
  11417. # Set up the scripts for CONFIG_HEADERS section.
  11418. # No need to generate them if there are no CONFIG_HEADERS.
  11419. # This happens for instance with `./config.status Makefile'.
  11420. if test -n "$CONFIG_HEADERS"; then
  11421. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11422. BEGIN {
  11423. _ACEOF
  11424. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11425. # here-document in config.status, that substitutes the proper values into
  11426. # config.h.in to produce config.h.
  11427. # Create a delimiter string that does not exist in confdefs.h, to ease
  11428. # handling of long lines.
  11429. ac_delim='%!_!# '
  11430. for ac_last_try in false false :; do
  11431. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11432. if test -z "$ac_tt"; then
  11433. break
  11434. elif $ac_last_try; then
  11435. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11436. else
  11437. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11438. fi
  11439. done
  11440. # For the awk script, D is an array of macro values keyed by name,
  11441. # likewise P contains macro parameters if any. Preserve backslash
  11442. # newline sequences.
  11443. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11444. sed -n '
  11445. s/.\{148\}/&'"$ac_delim"'/g
  11446. t rset
  11447. :rset
  11448. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11449. t def
  11450. d
  11451. :def
  11452. s/\\$//
  11453. t bsnl
  11454. s/["\\]/\\&/g
  11455. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11456. D["\1"]=" \3"/p
  11457. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11458. d
  11459. :bsnl
  11460. s/["\\]/\\&/g
  11461. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11462. D["\1"]=" \3\\\\\\n"\\/p
  11463. t cont
  11464. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11465. t cont
  11466. d
  11467. :cont
  11468. n
  11469. s/.\{148\}/&'"$ac_delim"'/g
  11470. t clear
  11471. :clear
  11472. s/\\$//
  11473. t bsnlc
  11474. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11475. d
  11476. :bsnlc
  11477. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11478. b cont
  11479. ' <confdefs.h | sed '
  11480. s/'"$ac_delim"'/"\\\
  11481. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11482. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11483. for (key in D) D_is_set[key] = 1
  11484. FS = ""
  11485. }
  11486. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11487. line = \$ 0
  11488. split(line, arg, " ")
  11489. if (arg[1] == "#") {
  11490. defundef = arg[2]
  11491. mac1 = arg[3]
  11492. } else {
  11493. defundef = substr(arg[1], 2)
  11494. mac1 = arg[2]
  11495. }
  11496. split(mac1, mac2, "(") #)
  11497. macro = mac2[1]
  11498. prefix = substr(line, 1, index(line, defundef) - 1)
  11499. if (D_is_set[macro]) {
  11500. # Preserve the white space surrounding the "#".
  11501. print prefix "define", macro P[macro] D[macro]
  11502. next
  11503. } else {
  11504. # Replace #undef with comments. This is necessary, for example,
  11505. # in the case of _POSIX_SOURCE, which is predefined and required
  11506. # on some systems where configure will not decide to define it.
  11507. if (defundef == "undef") {
  11508. print "/*", prefix defundef, macro, "*/"
  11509. next
  11510. }
  11511. }
  11512. }
  11513. { print }
  11514. _ACAWK
  11515. _ACEOF
  11516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11517. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11518. fi # test -n "$CONFIG_HEADERS"
  11519. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11520. shift
  11521. for ac_tag
  11522. do
  11523. case $ac_tag in
  11524. :[FHLC]) ac_mode=$ac_tag; continue;;
  11525. esac
  11526. case $ac_mode$ac_tag in
  11527. :[FHL]*:*);;
  11528. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11529. :[FH]-) ac_tag=-:-;;
  11530. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11531. esac
  11532. ac_save_IFS=$IFS
  11533. IFS=:
  11534. set x $ac_tag
  11535. IFS=$ac_save_IFS
  11536. shift
  11537. ac_file=$1
  11538. shift
  11539. case $ac_mode in
  11540. :L) ac_source=$1;;
  11541. :[FH])
  11542. ac_file_inputs=
  11543. for ac_f
  11544. do
  11545. case $ac_f in
  11546. -) ac_f="$ac_tmp/stdin";;
  11547. *) # Look for the file first in the build tree, then in the source tree
  11548. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11549. # because $ac_f cannot contain `:'.
  11550. test -f "$ac_f" ||
  11551. case $ac_f in
  11552. [\\/$]*) false;;
  11553. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11554. esac ||
  11555. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11556. esac
  11557. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11558. as_fn_append ac_file_inputs " '$ac_f'"
  11559. done
  11560. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11561. # use $as_me), people would be surprised to read:
  11562. # /* config.h. Generated by config.status. */
  11563. configure_input='Generated from '`
  11564. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11565. `' by configure.'
  11566. if test x"$ac_file" != x-; then
  11567. configure_input="$ac_file. $configure_input"
  11568. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11569. $as_echo "$as_me: creating $ac_file" >&6;}
  11570. fi
  11571. # Neutralize special characters interpreted by sed in replacement strings.
  11572. case $configure_input in #(
  11573. *\&* | *\|* | *\\* )
  11574. ac_sed_conf_input=`$as_echo "$configure_input" |
  11575. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11576. *) ac_sed_conf_input=$configure_input;;
  11577. esac
  11578. case $ac_tag in
  11579. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11580. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11581. esac
  11582. ;;
  11583. esac
  11584. ac_dir=`$as_dirname -- "$ac_file" ||
  11585. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11586. X"$ac_file" : 'X\(//\)[^/]' \| \
  11587. X"$ac_file" : 'X\(//\)$' \| \
  11588. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11589. $as_echo X"$ac_file" |
  11590. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11591. s//\1/
  11592. q
  11593. }
  11594. /^X\(\/\/\)[^/].*/{
  11595. s//\1/
  11596. q
  11597. }
  11598. /^X\(\/\/\)$/{
  11599. s//\1/
  11600. q
  11601. }
  11602. /^X\(\/\).*/{
  11603. s//\1/
  11604. q
  11605. }
  11606. s/.*/./; q'`
  11607. as_dir="$ac_dir"; as_fn_mkdir_p
  11608. ac_builddir=.
  11609. case "$ac_dir" in
  11610. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11611. *)
  11612. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11613. # A ".." for each directory in $ac_dir_suffix.
  11614. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11615. case $ac_top_builddir_sub in
  11616. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11617. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11618. esac ;;
  11619. esac
  11620. ac_abs_top_builddir=$ac_pwd
  11621. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11622. # for backward compatibility:
  11623. ac_top_builddir=$ac_top_build_prefix
  11624. case $srcdir in
  11625. .) # We are building in place.
  11626. ac_srcdir=.
  11627. ac_top_srcdir=$ac_top_builddir_sub
  11628. ac_abs_top_srcdir=$ac_pwd ;;
  11629. [\\/]* | ?:[\\/]* ) # Absolute name.
  11630. ac_srcdir=$srcdir$ac_dir_suffix;
  11631. ac_top_srcdir=$srcdir
  11632. ac_abs_top_srcdir=$srcdir ;;
  11633. *) # Relative name.
  11634. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11635. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11636. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11637. esac
  11638. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11639. case $ac_mode in
  11640. :F)
  11641. #
  11642. # CONFIG_FILE
  11643. #
  11644. case $INSTALL in
  11645. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11646. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11647. esac
  11648. ac_MKDIR_P=$MKDIR_P
  11649. case $MKDIR_P in
  11650. [\\/$]* | ?:[\\/]* ) ;;
  11651. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11652. esac
  11653. _ACEOF
  11654. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11655. # If the template does not know about datarootdir, expand it.
  11656. # FIXME: This hack should be removed a few years after 2.60.
  11657. ac_datarootdir_hack=; ac_datarootdir_seen=
  11658. ac_sed_dataroot='
  11659. /datarootdir/ {
  11660. p
  11661. q
  11662. }
  11663. /@datadir@/p
  11664. /@docdir@/p
  11665. /@infodir@/p
  11666. /@localedir@/p
  11667. /@mandir@/p'
  11668. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11669. *datarootdir*) ac_datarootdir_seen=yes;;
  11670. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11672. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11673. _ACEOF
  11674. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11675. ac_datarootdir_hack='
  11676. s&@datadir@&$datadir&g
  11677. s&@docdir@&$docdir&g
  11678. s&@infodir@&$infodir&g
  11679. s&@localedir@&$localedir&g
  11680. s&@mandir@&$mandir&g
  11681. s&\\\${datarootdir}&$datarootdir&g' ;;
  11682. esac
  11683. _ACEOF
  11684. # Neutralize VPATH when `$srcdir' = `.'.
  11685. # Shell code in configure.ac might set extrasub.
  11686. # FIXME: do we really want to maintain this feature?
  11687. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11688. ac_sed_extra="$ac_vpsub
  11689. $extrasub
  11690. _ACEOF
  11691. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11692. :t
  11693. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11694. s|@configure_input@|$ac_sed_conf_input|;t t
  11695. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11696. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11697. s&@srcdir@&$ac_srcdir&;t t
  11698. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11699. s&@top_srcdir@&$ac_top_srcdir&;t t
  11700. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11701. s&@builddir@&$ac_builddir&;t t
  11702. s&@abs_builddir@&$ac_abs_builddir&;t t
  11703. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11704. s&@INSTALL@&$ac_INSTALL&;t t
  11705. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11706. $ac_datarootdir_hack
  11707. "
  11708. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11709. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11710. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11711. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11712. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11713. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11715. which seems to be undefined. Please make sure it is defined" >&5
  11716. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11717. which seems to be undefined. Please make sure it is defined" >&2;}
  11718. rm -f "$ac_tmp/stdin"
  11719. case $ac_file in
  11720. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11721. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11722. esac \
  11723. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11724. ;;
  11725. :H)
  11726. #
  11727. # CONFIG_HEADER
  11728. #
  11729. if test x"$ac_file" != x-; then
  11730. {
  11731. $as_echo "/* $configure_input */" \
  11732. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11733. } >"$ac_tmp/config.h" \
  11734. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11735. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11736. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11737. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11738. else
  11739. rm -f "$ac_file"
  11740. mv "$ac_tmp/config.h" "$ac_file" \
  11741. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11742. fi
  11743. else
  11744. $as_echo "/* $configure_input */" \
  11745. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11746. || as_fn_error $? "could not create -" "$LINENO" 5
  11747. fi
  11748. # Compute "$ac_file"'s index in $config_headers.
  11749. _am_arg="$ac_file"
  11750. _am_stamp_count=1
  11751. for _am_header in $config_headers :; do
  11752. case $_am_header in
  11753. $_am_arg | $_am_arg:* )
  11754. break ;;
  11755. * )
  11756. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11757. esac
  11758. done
  11759. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11760. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11761. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11762. X"$_am_arg" : 'X\(//\)$' \| \
  11763. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11764. $as_echo X"$_am_arg" |
  11765. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11766. s//\1/
  11767. q
  11768. }
  11769. /^X\(\/\/\)[^/].*/{
  11770. s//\1/
  11771. q
  11772. }
  11773. /^X\(\/\/\)$/{
  11774. s//\1/
  11775. q
  11776. }
  11777. /^X\(\/\).*/{
  11778. s//\1/
  11779. q
  11780. }
  11781. s/.*/./; q'`/stamp-h$_am_stamp_count
  11782. ;;
  11783. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11784. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11785. ;;
  11786. esac
  11787. case $ac_file$ac_mode in
  11788. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11789. # Older Autoconf quotes --file arguments for eval, but not when files
  11790. # are listed without --file. Let's play safe and only enable the eval
  11791. # if we detect the quoting.
  11792. case $CONFIG_FILES in
  11793. *\'*) eval set x "$CONFIG_FILES" ;;
  11794. *) set x $CONFIG_FILES ;;
  11795. esac
  11796. shift
  11797. for mf
  11798. do
  11799. # Strip MF so we end up with the name of the file.
  11800. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11801. # Check whether this is an Automake generated Makefile or not.
  11802. # We used to match only the files named 'Makefile.in', but
  11803. # some people rename them; so instead we look at the file content.
  11804. # Grep'ing the first line is not enough: some people post-process
  11805. # each Makefile.in and add a new line on top of each file to say so.
  11806. # Grep'ing the whole file is not good either: AIX grep has a line
  11807. # limit of 2048, but all sed's we know have understand at least 4000.
  11808. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11809. dirpart=`$as_dirname -- "$mf" ||
  11810. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11811. X"$mf" : 'X\(//\)[^/]' \| \
  11812. X"$mf" : 'X\(//\)$' \| \
  11813. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11814. $as_echo X"$mf" |
  11815. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11816. s//\1/
  11817. q
  11818. }
  11819. /^X\(\/\/\)[^/].*/{
  11820. s//\1/
  11821. q
  11822. }
  11823. /^X\(\/\/\)$/{
  11824. s//\1/
  11825. q
  11826. }
  11827. /^X\(\/\).*/{
  11828. s//\1/
  11829. q
  11830. }
  11831. s/.*/./; q'`
  11832. else
  11833. continue
  11834. fi
  11835. # Extract the definition of DEPDIR, am__include, and am__quote
  11836. # from the Makefile without running 'make'.
  11837. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11838. test -z "$DEPDIR" && continue
  11839. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11840. test -z "$am__include" && continue
  11841. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11842. # Find all dependency output files, they are included files with
  11843. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11844. # simplest approach to changing $(DEPDIR) to its actual value in the
  11845. # expansion.
  11846. for file in `sed -n "
  11847. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11848. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11849. # Make sure the directory exists.
  11850. test -f "$dirpart/$file" && continue
  11851. fdir=`$as_dirname -- "$file" ||
  11852. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11853. X"$file" : 'X\(//\)[^/]' \| \
  11854. X"$file" : 'X\(//\)$' \| \
  11855. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11856. $as_echo X"$file" |
  11857. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11858. s//\1/
  11859. q
  11860. }
  11861. /^X\(\/\/\)[^/].*/{
  11862. s//\1/
  11863. q
  11864. }
  11865. /^X\(\/\/\)$/{
  11866. s//\1/
  11867. q
  11868. }
  11869. /^X\(\/\).*/{
  11870. s//\1/
  11871. q
  11872. }
  11873. s/.*/./; q'`
  11874. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11875. # echo "creating $dirpart/$file"
  11876. echo '# dummy' > "$dirpart/$file"
  11877. done
  11878. done
  11879. }
  11880. ;;
  11881. "libtool":C)
  11882. # See if we are running on zsh, and set the options which allow our
  11883. # commands through without removal of \ escapes.
  11884. if test -n "${ZSH_VERSION+set}" ; then
  11885. setopt NO_GLOB_SUBST
  11886. fi
  11887. cfgfile="${ofile}T"
  11888. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11889. $RM "$cfgfile"
  11890. cat <<_LT_EOF >> "$cfgfile"
  11891. #! $SHELL
  11892. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11893. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11894. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11895. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11896. #
  11897. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11898. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11899. # Foundation, Inc.
  11900. # Written by Gordon Matzigkeit, 1996
  11901. #
  11902. # This file is part of GNU Libtool.
  11903. #
  11904. # GNU Libtool is free software; you can redistribute it and/or
  11905. # modify it under the terms of the GNU General Public License as
  11906. # published by the Free Software Foundation; either version 2 of
  11907. # the License, or (at your option) any later version.
  11908. #
  11909. # As a special exception to the GNU General Public License,
  11910. # if you distribute this file as part of a program or library that
  11911. # is built using GNU Libtool, you may include this file under the
  11912. # same distribution terms that you use for the rest of that program.
  11913. #
  11914. # GNU Libtool is distributed in the hope that it will be useful,
  11915. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11916. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11917. # GNU General Public License for more details.
  11918. #
  11919. # You should have received a copy of the GNU General Public License
  11920. # along with GNU Libtool; see the file COPYING. If not, a copy
  11921. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11922. # obtained by writing to the Free Software Foundation, Inc.,
  11923. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11924. # The names of the tagged configurations supported by this script.
  11925. available_tags=""
  11926. # ### BEGIN LIBTOOL CONFIG
  11927. # Which release of libtool.m4 was used?
  11928. macro_version=$macro_version
  11929. macro_revision=$macro_revision
  11930. # Whether or not to build shared libraries.
  11931. build_libtool_libs=$enable_shared
  11932. # Whether or not to build static libraries.
  11933. build_old_libs=$enable_static
  11934. # What type of objects to build.
  11935. pic_mode=$pic_mode
  11936. # Whether or not to optimize for fast installation.
  11937. fast_install=$enable_fast_install
  11938. # Shell to use when invoking shell scripts.
  11939. SHELL=$lt_SHELL
  11940. # An echo program that protects backslashes.
  11941. ECHO=$lt_ECHO
  11942. # The PATH separator for the build system.
  11943. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11944. # The host system.
  11945. host_alias=$host_alias
  11946. host=$host
  11947. host_os=$host_os
  11948. # The build system.
  11949. build_alias=$build_alias
  11950. build=$build
  11951. build_os=$build_os
  11952. # A sed program that does not truncate output.
  11953. SED=$lt_SED
  11954. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11955. Xsed="\$SED -e 1s/^X//"
  11956. # A grep program that handles long lines.
  11957. GREP=$lt_GREP
  11958. # An ERE matcher.
  11959. EGREP=$lt_EGREP
  11960. # A literal string matcher.
  11961. FGREP=$lt_FGREP
  11962. # A BSD- or MS-compatible name lister.
  11963. NM=$lt_NM
  11964. # Whether we need soft or hard links.
  11965. LN_S=$lt_LN_S
  11966. # What is the maximum length of a command?
  11967. max_cmd_len=$max_cmd_len
  11968. # Object file suffix (normally "o").
  11969. objext=$ac_objext
  11970. # Executable file suffix (normally "").
  11971. exeext=$exeext
  11972. # whether the shell understands "unset".
  11973. lt_unset=$lt_unset
  11974. # turn spaces into newlines.
  11975. SP2NL=$lt_lt_SP2NL
  11976. # turn newlines into spaces.
  11977. NL2SP=$lt_lt_NL2SP
  11978. # convert \$build file names to \$host format.
  11979. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11980. # convert \$build files to toolchain format.
  11981. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11982. # An object symbol dumper.
  11983. OBJDUMP=$lt_OBJDUMP
  11984. # Method to check whether dependent libraries are shared objects.
  11985. deplibs_check_method=$lt_deplibs_check_method
  11986. # Command to use when deplibs_check_method = "file_magic".
  11987. file_magic_cmd=$lt_file_magic_cmd
  11988. # How to find potential files when deplibs_check_method = "file_magic".
  11989. file_magic_glob=$lt_file_magic_glob
  11990. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11991. want_nocaseglob=$lt_want_nocaseglob
  11992. # DLL creation program.
  11993. DLLTOOL=$lt_DLLTOOL
  11994. # Command to associate shared and link libraries.
  11995. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11996. # The archiver.
  11997. AR=$lt_AR
  11998. # Flags to create an archive.
  11999. AR_FLAGS=$lt_AR_FLAGS
  12000. # How to feed a file listing to the archiver.
  12001. archiver_list_spec=$lt_archiver_list_spec
  12002. # A symbol stripping program.
  12003. STRIP=$lt_STRIP
  12004. # Commands used to install an old-style archive.
  12005. RANLIB=$lt_RANLIB
  12006. old_postinstall_cmds=$lt_old_postinstall_cmds
  12007. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12008. # Whether to use a lock for old archive extraction.
  12009. lock_old_archive_extraction=$lock_old_archive_extraction
  12010. # A C compiler.
  12011. LTCC=$lt_CC
  12012. # LTCC compiler flags.
  12013. LTCFLAGS=$lt_CFLAGS
  12014. # Take the output of nm and produce a listing of raw symbols and C names.
  12015. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12016. # Transform the output of nm in a proper C declaration.
  12017. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12018. # Transform the output of nm in a C name address pair.
  12019. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12020. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12021. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12022. # Specify filename containing input files for \$NM.
  12023. nm_file_list_spec=$lt_nm_file_list_spec
  12024. # The root where to search for dependent libraries,and in which our libraries should be installed.
  12025. lt_sysroot=$lt_sysroot
  12026. # The name of the directory that contains temporary libtool files.
  12027. objdir=$objdir
  12028. # Used to examine libraries when file_magic_cmd begins with "file".
  12029. MAGIC_CMD=$MAGIC_CMD
  12030. # Must we lock files when doing compilation?
  12031. need_locks=$lt_need_locks
  12032. # Manifest tool.
  12033. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12034. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12035. DSYMUTIL=$lt_DSYMUTIL
  12036. # Tool to change global to local symbols on Mac OS X.
  12037. NMEDIT=$lt_NMEDIT
  12038. # Tool to manipulate fat objects and archives on Mac OS X.
  12039. LIPO=$lt_LIPO
  12040. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12041. OTOOL=$lt_OTOOL
  12042. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12043. OTOOL64=$lt_OTOOL64
  12044. # Old archive suffix (normally "a").
  12045. libext=$libext
  12046. # Shared library suffix (normally ".so").
  12047. shrext_cmds=$lt_shrext_cmds
  12048. # The commands to extract the exported symbol list from a shared archive.
  12049. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12050. # Variables whose values should be saved in libtool wrapper scripts and
  12051. # restored at link time.
  12052. variables_saved_for_relink=$lt_variables_saved_for_relink
  12053. # Do we need the "lib" prefix for modules?
  12054. need_lib_prefix=$need_lib_prefix
  12055. # Do we need a version for libraries?
  12056. need_version=$need_version
  12057. # Library versioning type.
  12058. version_type=$version_type
  12059. # Shared library runtime path variable.
  12060. runpath_var=$runpath_var
  12061. # Shared library path variable.
  12062. shlibpath_var=$shlibpath_var
  12063. # Is shlibpath searched before the hard-coded library search path?
  12064. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12065. # Format of library name prefix.
  12066. libname_spec=$lt_libname_spec
  12067. # List of archive names. First name is the real one, the rest are links.
  12068. # The last name is the one that the linker finds with -lNAME
  12069. library_names_spec=$lt_library_names_spec
  12070. # The coded name of the library, if different from the real name.
  12071. soname_spec=$lt_soname_spec
  12072. # Permission mode override for installation of shared libraries.
  12073. install_override_mode=$lt_install_override_mode
  12074. # Command to use after installation of a shared archive.
  12075. postinstall_cmds=$lt_postinstall_cmds
  12076. # Command to use after uninstallation of a shared archive.
  12077. postuninstall_cmds=$lt_postuninstall_cmds
  12078. # Commands used to finish a libtool library installation in a directory.
  12079. finish_cmds=$lt_finish_cmds
  12080. # As "finish_cmds", except a single script fragment to be evaled but
  12081. # not shown.
  12082. finish_eval=$lt_finish_eval
  12083. # Whether we should hardcode library paths into libraries.
  12084. hardcode_into_libs=$hardcode_into_libs
  12085. # Compile-time system search path for libraries.
  12086. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12087. # Run-time system search path for libraries.
  12088. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12089. # Whether dlopen is supported.
  12090. dlopen_support=$enable_dlopen
  12091. # Whether dlopen of programs is supported.
  12092. dlopen_self=$enable_dlopen_self
  12093. # Whether dlopen of statically linked programs is supported.
  12094. dlopen_self_static=$enable_dlopen_self_static
  12095. # Commands to strip libraries.
  12096. old_striplib=$lt_old_striplib
  12097. striplib=$lt_striplib
  12098. # The linker used to build libraries.
  12099. LD=$lt_LD
  12100. # How to create reloadable object files.
  12101. reload_flag=$lt_reload_flag
  12102. reload_cmds=$lt_reload_cmds
  12103. # Commands used to build an old-style archive.
  12104. old_archive_cmds=$lt_old_archive_cmds
  12105. # A language specific compiler.
  12106. CC=$lt_compiler
  12107. # Is the compiler the GNU compiler?
  12108. with_gcc=$GCC
  12109. # Compiler flag to turn off builtin functions.
  12110. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12111. # Additional compiler flags for building library objects.
  12112. pic_flag=$lt_lt_prog_compiler_pic
  12113. # How to pass a linker flag through the compiler.
  12114. wl=$lt_lt_prog_compiler_wl
  12115. # Compiler flag to prevent dynamic linking.
  12116. link_static_flag=$lt_lt_prog_compiler_static
  12117. # Does compiler simultaneously support -c and -o options?
  12118. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12119. # Whether or not to add -lc for building shared libraries.
  12120. build_libtool_need_lc=$archive_cmds_need_lc
  12121. # Whether or not to disallow shared libs when runtime libs are static.
  12122. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12123. # Compiler flag to allow reflexive dlopens.
  12124. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12125. # Compiler flag to generate shared objects directly from archives.
  12126. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12127. # Whether the compiler copes with passing no objects directly.
  12128. compiler_needs_object=$lt_compiler_needs_object
  12129. # Create an old-style archive from a shared archive.
  12130. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12131. # Create a temporary old-style archive to link instead of a shared archive.
  12132. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12133. # Commands used to build a shared archive.
  12134. archive_cmds=$lt_archive_cmds
  12135. archive_expsym_cmds=$lt_archive_expsym_cmds
  12136. # Commands used to build a loadable module if different from building
  12137. # a shared archive.
  12138. module_cmds=$lt_module_cmds
  12139. module_expsym_cmds=$lt_module_expsym_cmds
  12140. # Whether we are building with GNU ld or not.
  12141. with_gnu_ld=$lt_with_gnu_ld
  12142. # Flag that allows shared libraries with undefined symbols to be built.
  12143. allow_undefined_flag=$lt_allow_undefined_flag
  12144. # Flag that enforces no undefined symbols.
  12145. no_undefined_flag=$lt_no_undefined_flag
  12146. # Flag to hardcode \$libdir into a binary during linking.
  12147. # This must work even if \$libdir does not exist
  12148. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12149. # Whether we need a single "-rpath" flag with a separated argument.
  12150. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12151. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12152. # DIR into the resulting binary.
  12153. hardcode_direct=$hardcode_direct
  12154. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12155. # DIR into the resulting binary and the resulting library dependency is
  12156. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12157. # library is relocated.
  12158. hardcode_direct_absolute=$hardcode_direct_absolute
  12159. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12160. # into the resulting binary.
  12161. hardcode_minus_L=$hardcode_minus_L
  12162. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12163. # into the resulting binary.
  12164. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12165. # Set to "yes" if building a shared library automatically hardcodes DIR
  12166. # into the library and all subsequent libraries and executables linked
  12167. # against it.
  12168. hardcode_automatic=$hardcode_automatic
  12169. # Set to yes if linker adds runtime paths of dependent libraries
  12170. # to runtime path list.
  12171. inherit_rpath=$inherit_rpath
  12172. # Whether libtool must link a program against all its dependency libraries.
  12173. link_all_deplibs=$link_all_deplibs
  12174. # Set to "yes" if exported symbols are required.
  12175. always_export_symbols=$always_export_symbols
  12176. # The commands to list exported symbols.
  12177. export_symbols_cmds=$lt_export_symbols_cmds
  12178. # Symbols that should not be listed in the preloaded symbols.
  12179. exclude_expsyms=$lt_exclude_expsyms
  12180. # Symbols that must always be exported.
  12181. include_expsyms=$lt_include_expsyms
  12182. # Commands necessary for linking programs (against libraries) with templates.
  12183. prelink_cmds=$lt_prelink_cmds
  12184. # Commands necessary for finishing linking programs.
  12185. postlink_cmds=$lt_postlink_cmds
  12186. # Specify filename containing input files.
  12187. file_list_spec=$lt_file_list_spec
  12188. # How to hardcode a shared library path into an executable.
  12189. hardcode_action=$hardcode_action
  12190. # ### END LIBTOOL CONFIG
  12191. _LT_EOF
  12192. case $host_os in
  12193. aix3*)
  12194. cat <<\_LT_EOF >> "$cfgfile"
  12195. # AIX sometimes has problems with the GCC collect2 program. For some
  12196. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12197. # vanish in a puff of smoke.
  12198. if test "X${COLLECT_NAMES+set}" != Xset; then
  12199. COLLECT_NAMES=
  12200. export COLLECT_NAMES
  12201. fi
  12202. _LT_EOF
  12203. ;;
  12204. esac
  12205. ltmain="$ac_aux_dir/ltmain.sh"
  12206. # We use sed instead of cat because bash on DJGPP gets confused if
  12207. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12208. # text mode, it properly converts lines to CR/LF. This bash problem
  12209. # is reportedly fixed, but why not run on old versions too?
  12210. sed '$q' "$ltmain" >> "$cfgfile" \
  12211. || (rm -f "$cfgfile"; exit 1)
  12212. if test x"$xsi_shell" = xyes; then
  12213. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  12214. func_dirname ()\
  12215. {\
  12216. \ case ${1} in\
  12217. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12218. \ * ) func_dirname_result="${3}" ;;\
  12219. \ esac\
  12220. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  12221. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12222. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12223. test 0 -eq $? || _lt_function_replace_fail=:
  12224. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  12225. func_basename ()\
  12226. {\
  12227. \ func_basename_result="${1##*/}"\
  12228. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12229. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12230. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12231. test 0 -eq $? || _lt_function_replace_fail=:
  12232. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  12233. func_dirname_and_basename ()\
  12234. {\
  12235. \ case ${1} in\
  12236. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12237. \ * ) func_dirname_result="${3}" ;;\
  12238. \ esac\
  12239. \ func_basename_result="${1##*/}"\
  12240. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12241. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12242. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12243. test 0 -eq $? || _lt_function_replace_fail=:
  12244. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  12245. func_stripname ()\
  12246. {\
  12247. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  12248. \ # positional parameters, so assign one to ordinary parameter first.\
  12249. \ func_stripname_result=${3}\
  12250. \ func_stripname_result=${func_stripname_result#"${1}"}\
  12251. \ func_stripname_result=${func_stripname_result%"${2}"}\
  12252. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  12253. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12254. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12255. test 0 -eq $? || _lt_function_replace_fail=:
  12256. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  12257. func_split_long_opt ()\
  12258. {\
  12259. \ func_split_long_opt_name=${1%%=*}\
  12260. \ func_split_long_opt_arg=${1#*=}\
  12261. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12262. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12263. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12264. test 0 -eq $? || _lt_function_replace_fail=:
  12265. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  12266. func_split_short_opt ()\
  12267. {\
  12268. \ func_split_short_opt_arg=${1#??}\
  12269. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  12270. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12271. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12272. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12273. test 0 -eq $? || _lt_function_replace_fail=:
  12274. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  12275. func_lo2o ()\
  12276. {\
  12277. \ case ${1} in\
  12278. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  12279. \ *) func_lo2o_result=${1} ;;\
  12280. \ esac\
  12281. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  12282. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12283. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12284. test 0 -eq $? || _lt_function_replace_fail=:
  12285. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  12286. func_xform ()\
  12287. {\
  12288. func_xform_result=${1%.*}.lo\
  12289. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  12290. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12291. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12292. test 0 -eq $? || _lt_function_replace_fail=:
  12293. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  12294. func_arith ()\
  12295. {\
  12296. func_arith_result=$(( $* ))\
  12297. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  12298. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12299. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12300. test 0 -eq $? || _lt_function_replace_fail=:
  12301. sed -e '/^func_len ()$/,/^} # func_len /c\
  12302. func_len ()\
  12303. {\
  12304. func_len_result=${#1}\
  12305. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  12306. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12307. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12308. test 0 -eq $? || _lt_function_replace_fail=:
  12309. fi
  12310. if test x"$lt_shell_append" = xyes; then
  12311. sed -e '/^func_append ()$/,/^} # func_append /c\
  12312. func_append ()\
  12313. {\
  12314. eval "${1}+=\\${2}"\
  12315. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  12316. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12317. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12318. test 0 -eq $? || _lt_function_replace_fail=:
  12319. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  12320. func_append_quoted ()\
  12321. {\
  12322. \ func_quote_for_eval "${2}"\
  12323. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  12324. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  12325. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12326. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12327. test 0 -eq $? || _lt_function_replace_fail=:
  12328. # Save a `func_append' function call where possible by direct use of '+='
  12329. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  12330. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12331. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12332. test 0 -eq $? || _lt_function_replace_fail=:
  12333. else
  12334. # Save a `func_append' function call even when '+=' is not available
  12335. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  12336. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12337. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12338. test 0 -eq $? || _lt_function_replace_fail=:
  12339. fi
  12340. if test x"$_lt_function_replace_fail" = x":"; then
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  12342. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  12343. fi
  12344. mv -f "$cfgfile" "$ofile" ||
  12345. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12346. chmod +x "$ofile"
  12347. ;;
  12348. esac
  12349. done # for ac_tag
  12350. as_fn_exit 0
  12351. _ACEOF
  12352. ac_clean_files=$ac_clean_files_save
  12353. test $ac_write_fail = 0 ||
  12354. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12355. # configure is writing to config.log, and then calls config.status.
  12356. # config.status does its own redirection, appending to config.log.
  12357. # Unfortunately, on DOS this fails, as config.log is still kept open
  12358. # by configure, so config.status won't be able to write to it; its
  12359. # output is simply discarded. So we exec the FD to /dev/null,
  12360. # effectively closing config.log, so it can be properly (re)opened and
  12361. # appended to by config.status. When coming back to configure, we
  12362. # need to make the FD available again.
  12363. if test "$no_create" != yes; then
  12364. ac_cs_success=:
  12365. ac_config_status_args=
  12366. test "$silent" = yes &&
  12367. ac_config_status_args="$ac_config_status_args --quiet"
  12368. exec 5>/dev/null
  12369. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12370. exec 5>>config.log
  12371. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12372. # would make configure fail if this is the last instruction.
  12373. $ac_cs_success || as_fn_exit 1
  12374. fi
  12375. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12377. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12378. fi