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 392 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for json-c 0.11.
  4. #
  5. # Report bugs to <json-c@googlegroups.com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1"
  164. if (eval "$as_required") 2>/dev/null; then :
  165. as_have_required=yes
  166. else
  167. as_have_required=no
  168. fi
  169. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  170. else
  171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. as_found=false
  173. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  174. do
  175. IFS=$as_save_IFS
  176. test -z "$as_dir" && as_dir=.
  177. as_found=:
  178. case $as_dir in #(
  179. /*)
  180. for as_base in sh bash ksh sh5; do
  181. # Try only shells that exist, to save several forks.
  182. as_shell=$as_dir/$as_base
  183. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  184. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. CONFIG_SHELL=$as_shell as_have_required=yes
  186. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. break 2
  188. fi
  189. fi
  190. done;;
  191. esac
  192. as_found=false
  193. done
  194. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  195. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  196. CONFIG_SHELL=$SHELL as_have_required=yes
  197. fi; }
  198. IFS=$as_save_IFS
  199. if test "x$CONFIG_SHELL" != x; then :
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. # Preserve -v and -x to the replacement shell.
  204. BASH_ENV=/dev/null
  205. ENV=/dev/null
  206. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  207. export CONFIG_SHELL
  208. case $- in # ((((
  209. *v*x* | *x*v* ) as_opts=-vx ;;
  210. *v* ) as_opts=-v ;;
  211. *x* ) as_opts=-x ;;
  212. * ) as_opts= ;;
  213. esac
  214. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  215. fi
  216. if test x$as_have_required = xno; then :
  217. $as_echo "$0: This script requires a shell more modern than all"
  218. $as_echo "$0: the shells that I found on your system."
  219. if test x${ZSH_VERSION+set} = xset ; then
  220. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  221. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  222. else
  223. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  224. $0: json-c@googlegroups.com about your system, including
  225. $0: any error possibly output before this message. Then
  226. $0: install a modern shell, or manually run the script
  227. $0: under such a shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. # Check that we are running under the correct shell.
  497. SHELL=${CONFIG_SHELL-/bin/sh}
  498. case X$lt_ECHO in
  499. X*--fallback-echo)
  500. # Remove one level of quotation (which was required for Make).
  501. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  502. ;;
  503. esac
  504. ECHO=${lt_ECHO-echo}
  505. if test "X$1" = X--no-reexec; then
  506. # Discard the --no-reexec flag, and continue.
  507. shift
  508. elif test "X$1" = X--fallback-echo; then
  509. # Avoid inline document here, it may be left over
  510. :
  511. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  512. # Yippee, $ECHO works!
  513. :
  514. else
  515. # Restart under the correct shell.
  516. exec $SHELL "$0" --no-reexec ${1+"$@"}
  517. fi
  518. if test "X$1" = X--fallback-echo; then
  519. # used as fallback echo
  520. shift
  521. cat <<_LT_EOF
  522. $*
  523. _LT_EOF
  524. exit 0
  525. fi
  526. # The HP-UX ksh and POSIX shell print the target directory to stdout
  527. # if CDPATH is set.
  528. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  529. if test -z "$lt_ECHO"; then
  530. if test "X${echo_test_string+set}" != Xset; then
  531. # find a string as large as possible, as long as the shell can cope with it
  532. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  533. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  534. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  535. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  536. then
  537. break
  538. fi
  539. done
  540. fi
  541. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  542. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  543. test "X$echo_testing_string" = "X$echo_test_string"; then
  544. :
  545. else
  546. # The Solaris, AIX, and Digital Unix default echo programs unquote
  547. # backslashes. This makes it impossible to quote backslashes using
  548. # echo "$something" | sed 's/\\/\\\\/g'
  549. #
  550. # So, first we look for a working echo in the user's PATH.
  551. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  552. for dir in $PATH /usr/ucb; do
  553. IFS="$lt_save_ifs"
  554. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  555. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. ECHO="$dir/echo"
  559. break
  560. fi
  561. done
  562. IFS="$lt_save_ifs"
  563. if test "X$ECHO" = Xecho; then
  564. # We didn't find a better echo, so look for alternatives.
  565. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  566. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. # This shell has a builtin print -r that does the trick.
  569. ECHO='print -r'
  570. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  571. test "X$CONFIG_SHELL" != X/bin/ksh; then
  572. # If we have ksh, try running configure again with it.
  573. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  574. export ORIGINAL_CONFIG_SHELL
  575. CONFIG_SHELL=/bin/ksh
  576. export CONFIG_SHELL
  577. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  578. else
  579. # Try using printf.
  580. ECHO='printf %s\n'
  581. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  582. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  583. test "X$echo_testing_string" = "X$echo_test_string"; then
  584. # Cool, printf works
  585. :
  586. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  587. test "X$echo_testing_string" = 'X\t' &&
  588. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  589. test "X$echo_testing_string" = "X$echo_test_string"; then
  590. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  591. export CONFIG_SHELL
  592. SHELL="$CONFIG_SHELL"
  593. export SHELL
  594. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  595. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  596. test "X$echo_testing_string" = 'X\t' &&
  597. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  598. test "X$echo_testing_string" = "X$echo_test_string"; then
  599. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  600. else
  601. # maybe with a smaller string...
  602. prev=:
  603. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  604. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  605. then
  606. break
  607. fi
  608. prev="$cmd"
  609. done
  610. if test "$prev" != 'sed 50q "$0"'; then
  611. echo_test_string=`eval $prev`
  612. export echo_test_string
  613. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  614. else
  615. # Oops. We lost completely, so just stick with echo.
  616. ECHO=echo
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. # Copy echo and quote the copy suitably for passing to libtool from
  624. # the Makefile, instead of quoting the original, which is used later.
  625. lt_ECHO=$ECHO
  626. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  627. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  628. fi
  629. test -n "$DJDIR" || exec 7<&0 </dev/null
  630. exec 6>&1
  631. # Name of the host.
  632. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  633. # so uname gets run too.
  634. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  635. #
  636. # Initializations.
  637. #
  638. ac_default_prefix=/usr/local
  639. ac_clean_files=
  640. ac_config_libobj_dir=.
  641. LIBOBJS=
  642. cross_compiling=no
  643. subdirs=
  644. MFLAGS=
  645. MAKEFLAGS=
  646. # Identity of this package.
  647. PACKAGE_NAME='json-c'
  648. PACKAGE_TARNAME='json-c'
  649. PACKAGE_VERSION='0.11'
  650. PACKAGE_STRING='json-c 0.11'
  651. PACKAGE_BUGREPORT='json-c@googlegroups.com'
  652. PACKAGE_URL=''
  653. # Factoring default headers for most tests.
  654. ac_includes_default="\
  655. #include <stdio.h>
  656. #ifdef HAVE_SYS_TYPES_H
  657. # include <sys/types.h>
  658. #endif
  659. #ifdef HAVE_SYS_STAT_H
  660. # include <sys/stat.h>
  661. #endif
  662. #ifdef STDC_HEADERS
  663. # include <stdlib.h>
  664. # include <stddef.h>
  665. #else
  666. # ifdef HAVE_STDLIB_H
  667. # include <stdlib.h>
  668. # endif
  669. #endif
  670. #ifdef HAVE_STRING_H
  671. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  672. # include <memory.h>
  673. # endif
  674. # include <string.h>
  675. #endif
  676. #ifdef HAVE_STRINGS_H
  677. # include <strings.h>
  678. #endif
  679. #ifdef HAVE_INTTYPES_H
  680. # include <inttypes.h>
  681. #endif
  682. #ifdef HAVE_STDINT_H
  683. # include <stdint.h>
  684. #endif
  685. #ifdef HAVE_UNISTD_H
  686. # include <unistd.h>
  687. #endif"
  688. ac_subst_vars='am__EXEEXT_FALSE
  689. am__EXEEXT_TRUE
  690. LTLIBOBJS
  691. OTOOL64
  692. OTOOL
  693. LIPO
  694. NMEDIT
  695. DSYMUTIL
  696. lt_ECHO
  697. RANLIB
  698. AR
  699. OBJDUMP
  700. LN_S
  701. NM
  702. ac_ct_DUMPBIN
  703. DUMPBIN
  704. LD
  705. FGREP
  706. SED
  707. host_os
  708. host_vendor
  709. host_cpu
  710. host
  711. build_os
  712. build_vendor
  713. build_cpu
  714. build
  715. LIBTOOL
  716. LIBOBJS
  717. EGREP
  718. GREP
  719. CPP
  720. am__fastdepCC_FALSE
  721. am__fastdepCC_TRUE
  722. CCDEPMODE
  723. AMDEPBACKSLASH
  724. AMDEP_FALSE
  725. AMDEP_TRUE
  726. am__quote
  727. am__include
  728. DEPDIR
  729. OBJEXT
  730. EXEEXT
  731. ac_ct_CC
  732. CPPFLAGS
  733. LDFLAGS
  734. CFLAGS
  735. CC
  736. ENABLE_OLDNAME_COMPAT_FALSE
  737. ENABLE_OLDNAME_COMPAT_TRUE
  738. am__untar
  739. am__tar
  740. AMTAR
  741. am__leading_dot
  742. SET_MAKE
  743. AWK
  744. mkdir_p
  745. MKDIR_P
  746. INSTALL_STRIP_PROGRAM
  747. STRIP
  748. install_sh
  749. MAKEINFO
  750. AUTOHEADER
  751. AUTOMAKE
  752. AUTOCONF
  753. ACLOCAL
  754. VERSION
  755. PACKAGE
  756. CYGPATH_W
  757. am__isrc
  758. INSTALL_DATA
  759. INSTALL_SCRIPT
  760. INSTALL_PROGRAM
  761. target_alias
  762. host_alias
  763. build_alias
  764. LIBS
  765. ECHO_T
  766. ECHO_N
  767. ECHO_C
  768. DEFS
  769. mandir
  770. localedir
  771. libdir
  772. psdir
  773. pdfdir
  774. dvidir
  775. htmldir
  776. infodir
  777. docdir
  778. oldincludedir
  779. includedir
  780. localstatedir
  781. sharedstatedir
  782. sysconfdir
  783. datadir
  784. datarootdir
  785. libexecdir
  786. sbindir
  787. bindir
  788. program_transform_name
  789. prefix
  790. exec_prefix
  791. PACKAGE_URL
  792. PACKAGE_BUGREPORT
  793. PACKAGE_STRING
  794. PACKAGE_VERSION
  795. PACKAGE_TARNAME
  796. PACKAGE_NAME
  797. PATH_SEPARATOR
  798. SHELL'
  799. ac_subst_files=''
  800. ac_user_opts='
  801. enable_option_checking
  802. enable_oldname_compat
  803. enable_dependency_tracking
  804. enable_shared
  805. enable_static
  806. with_pic
  807. enable_fast_install
  808. with_gnu_ld
  809. enable_libtool_lock
  810. '
  811. ac_precious_vars='build_alias
  812. host_alias
  813. target_alias
  814. CC
  815. CFLAGS
  816. LDFLAGS
  817. LIBS
  818. CPPFLAGS
  819. CPP'
  820. # Initialize some variables set by options.
  821. ac_init_help=
  822. ac_init_version=false
  823. ac_unrecognized_opts=
  824. ac_unrecognized_sep=
  825. # The variables have the same names as the options, with
  826. # dashes changed to underlines.
  827. cache_file=/dev/null
  828. exec_prefix=NONE
  829. no_create=
  830. no_recursion=
  831. prefix=NONE
  832. program_prefix=NONE
  833. program_suffix=NONE
  834. program_transform_name=s,x,x,
  835. silent=
  836. site=
  837. srcdir=
  838. verbose=
  839. x_includes=NONE
  840. x_libraries=NONE
  841. # Installation directory options.
  842. # These are left unexpanded so users can "make install exec_prefix=/foo"
  843. # and all the variables that are supposed to be based on exec_prefix
  844. # by default will actually change.
  845. # Use braces instead of parens because sh, perl, etc. also accept them.
  846. # (The list follows the same order as the GNU Coding Standards.)
  847. bindir='${exec_prefix}/bin'
  848. sbindir='${exec_prefix}/sbin'
  849. libexecdir='${exec_prefix}/libexec'
  850. datarootdir='${prefix}/share'
  851. datadir='${datarootdir}'
  852. sysconfdir='${prefix}/etc'
  853. sharedstatedir='${prefix}/com'
  854. localstatedir='${prefix}/var'
  855. includedir='${prefix}/include'
  856. oldincludedir='/usr/include'
  857. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  858. infodir='${datarootdir}/info'
  859. htmldir='${docdir}'
  860. dvidir='${docdir}'
  861. pdfdir='${docdir}'
  862. psdir='${docdir}'
  863. libdir='${exec_prefix}/lib'
  864. localedir='${datarootdir}/locale'
  865. mandir='${datarootdir}/man'
  866. ac_prev=
  867. ac_dashdash=
  868. for ac_option
  869. do
  870. # If the previous option needs an argument, assign it.
  871. if test -n "$ac_prev"; then
  872. eval $ac_prev=\$ac_option
  873. ac_prev=
  874. continue
  875. fi
  876. case $ac_option in
  877. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  878. *=) ac_optarg= ;;
  879. *) ac_optarg=yes ;;
  880. esac
  881. # Accept the important Cygnus configure options, so we can diagnose typos.
  882. case $ac_dashdash$ac_option in
  883. --)
  884. ac_dashdash=yes ;;
  885. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  886. ac_prev=bindir ;;
  887. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  888. bindir=$ac_optarg ;;
  889. -build | --build | --buil | --bui | --bu)
  890. ac_prev=build_alias ;;
  891. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  892. build_alias=$ac_optarg ;;
  893. -cache-file | --cache-file | --cache-fil | --cache-fi \
  894. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  895. ac_prev=cache_file ;;
  896. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  897. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  898. cache_file=$ac_optarg ;;
  899. --config-cache | -C)
  900. cache_file=config.cache ;;
  901. -datadir | --datadir | --datadi | --datad)
  902. ac_prev=datadir ;;
  903. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  904. datadir=$ac_optarg ;;
  905. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  906. | --dataroo | --dataro | --datar)
  907. ac_prev=datarootdir ;;
  908. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  909. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  910. datarootdir=$ac_optarg ;;
  911. -disable-* | --disable-*)
  912. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  913. # Reject names that are not valid shell variable names.
  914. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  915. as_fn_error $? "invalid feature name: $ac_useropt"
  916. ac_useropt_orig=$ac_useropt
  917. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  918. case $ac_user_opts in
  919. *"
  920. "enable_$ac_useropt"
  921. "*) ;;
  922. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  923. ac_unrecognized_sep=', ';;
  924. esac
  925. eval enable_$ac_useropt=no ;;
  926. -docdir | --docdir | --docdi | --doc | --do)
  927. ac_prev=docdir ;;
  928. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  929. docdir=$ac_optarg ;;
  930. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  931. ac_prev=dvidir ;;
  932. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  933. dvidir=$ac_optarg ;;
  934. -enable-* | --enable-*)
  935. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  936. # Reject names that are not valid shell variable names.
  937. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  938. as_fn_error $? "invalid feature name: $ac_useropt"
  939. ac_useropt_orig=$ac_useropt
  940. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  941. case $ac_user_opts in
  942. *"
  943. "enable_$ac_useropt"
  944. "*) ;;
  945. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  946. ac_unrecognized_sep=', ';;
  947. esac
  948. eval enable_$ac_useropt=\$ac_optarg ;;
  949. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  950. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  951. | --exec | --exe | --ex)
  952. ac_prev=exec_prefix ;;
  953. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  954. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  955. | --exec=* | --exe=* | --ex=*)
  956. exec_prefix=$ac_optarg ;;
  957. -gas | --gas | --ga | --g)
  958. # Obsolete; use --with-gas.
  959. with_gas=yes ;;
  960. -help | --help | --hel | --he | -h)
  961. ac_init_help=long ;;
  962. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  963. ac_init_help=recursive ;;
  964. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  965. ac_init_help=short ;;
  966. -host | --host | --hos | --ho)
  967. ac_prev=host_alias ;;
  968. -host=* | --host=* | --hos=* | --ho=*)
  969. host_alias=$ac_optarg ;;
  970. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  971. ac_prev=htmldir ;;
  972. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  973. | --ht=*)
  974. htmldir=$ac_optarg ;;
  975. -includedir | --includedir | --includedi | --included | --include \
  976. | --includ | --inclu | --incl | --inc)
  977. ac_prev=includedir ;;
  978. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  979. | --includ=* | --inclu=* | --incl=* | --inc=*)
  980. includedir=$ac_optarg ;;
  981. -infodir | --infodir | --infodi | --infod | --info | --inf)
  982. ac_prev=infodir ;;
  983. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  984. infodir=$ac_optarg ;;
  985. -libdir | --libdir | --libdi | --libd)
  986. ac_prev=libdir ;;
  987. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  988. libdir=$ac_optarg ;;
  989. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  990. | --libexe | --libex | --libe)
  991. ac_prev=libexecdir ;;
  992. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  993. | --libexe=* | --libex=* | --libe=*)
  994. libexecdir=$ac_optarg ;;
  995. -localedir | --localedir | --localedi | --localed | --locale)
  996. ac_prev=localedir ;;
  997. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  998. localedir=$ac_optarg ;;
  999. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1000. | --localstate | --localstat | --localsta | --localst | --locals)
  1001. ac_prev=localstatedir ;;
  1002. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1003. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1004. localstatedir=$ac_optarg ;;
  1005. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1006. ac_prev=mandir ;;
  1007. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1008. mandir=$ac_optarg ;;
  1009. -nfp | --nfp | --nf)
  1010. # Obsolete; use --without-fp.
  1011. with_fp=no ;;
  1012. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1013. | --no-cr | --no-c | -n)
  1014. no_create=yes ;;
  1015. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1016. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1017. no_recursion=yes ;;
  1018. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1019. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1020. | --oldin | --oldi | --old | --ol | --o)
  1021. ac_prev=oldincludedir ;;
  1022. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1023. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1024. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1025. oldincludedir=$ac_optarg ;;
  1026. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1027. ac_prev=prefix ;;
  1028. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1029. prefix=$ac_optarg ;;
  1030. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1031. | --program-pre | --program-pr | --program-p)
  1032. ac_prev=program_prefix ;;
  1033. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1034. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1035. program_prefix=$ac_optarg ;;
  1036. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1037. | --program-suf | --program-su | --program-s)
  1038. ac_prev=program_suffix ;;
  1039. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1040. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1041. program_suffix=$ac_optarg ;;
  1042. -program-transform-name | --program-transform-name \
  1043. | --program-transform-nam | --program-transform-na \
  1044. | --program-transform-n | --program-transform- \
  1045. | --program-transform | --program-transfor \
  1046. | --program-transfo | --program-transf \
  1047. | --program-trans | --program-tran \
  1048. | --progr-tra | --program-tr | --program-t)
  1049. ac_prev=program_transform_name ;;
  1050. -program-transform-name=* | --program-transform-name=* \
  1051. | --program-transform-nam=* | --program-transform-na=* \
  1052. | --program-transform-n=* | --program-transform-=* \
  1053. | --program-transform=* | --program-transfor=* \
  1054. | --program-transfo=* | --program-transf=* \
  1055. | --program-trans=* | --program-tran=* \
  1056. | --progr-tra=* | --program-tr=* | --program-t=*)
  1057. program_transform_name=$ac_optarg ;;
  1058. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1059. ac_prev=pdfdir ;;
  1060. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1061. pdfdir=$ac_optarg ;;
  1062. -psdir | --psdir | --psdi | --psd | --ps)
  1063. ac_prev=psdir ;;
  1064. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1065. psdir=$ac_optarg ;;
  1066. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1067. | -silent | --silent | --silen | --sile | --sil)
  1068. silent=yes ;;
  1069. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1070. ac_prev=sbindir ;;
  1071. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1072. | --sbi=* | --sb=*)
  1073. sbindir=$ac_optarg ;;
  1074. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1075. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1076. | --sharedst | --shareds | --shared | --share | --shar \
  1077. | --sha | --sh)
  1078. ac_prev=sharedstatedir ;;
  1079. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1080. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1081. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1082. | --sha=* | --sh=*)
  1083. sharedstatedir=$ac_optarg ;;
  1084. -site | --site | --sit)
  1085. ac_prev=site ;;
  1086. -site=* | --site=* | --sit=*)
  1087. site=$ac_optarg ;;
  1088. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1089. ac_prev=srcdir ;;
  1090. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1091. srcdir=$ac_optarg ;;
  1092. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1093. | --syscon | --sysco | --sysc | --sys | --sy)
  1094. ac_prev=sysconfdir ;;
  1095. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1096. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1097. sysconfdir=$ac_optarg ;;
  1098. -target | --target | --targe | --targ | --tar | --ta | --t)
  1099. ac_prev=target_alias ;;
  1100. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1101. target_alias=$ac_optarg ;;
  1102. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1103. verbose=yes ;;
  1104. -version | --version | --versio | --versi | --vers | -V)
  1105. ac_init_version=: ;;
  1106. -with-* | --with-*)
  1107. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1110. as_fn_error $? "invalid package name: $ac_useropt"
  1111. ac_useropt_orig=$ac_useropt
  1112. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1113. case $ac_user_opts in
  1114. *"
  1115. "with_$ac_useropt"
  1116. "*) ;;
  1117. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1118. ac_unrecognized_sep=', ';;
  1119. esac
  1120. eval with_$ac_useropt=\$ac_optarg ;;
  1121. -without-* | --without-*)
  1122. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1123. # Reject names that are not valid shell variable names.
  1124. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125. as_fn_error $? "invalid package name: $ac_useropt"
  1126. ac_useropt_orig=$ac_useropt
  1127. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128. case $ac_user_opts in
  1129. *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1133. ac_unrecognized_sep=', ';;
  1134. esac
  1135. eval with_$ac_useropt=no ;;
  1136. --x)
  1137. # Obsolete; use --with-x.
  1138. with_x=yes ;;
  1139. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1140. | --x-incl | --x-inc | --x-in | --x-i)
  1141. ac_prev=x_includes ;;
  1142. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1143. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1144. x_includes=$ac_optarg ;;
  1145. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1146. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1147. ac_prev=x_libraries ;;
  1148. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1149. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1150. x_libraries=$ac_optarg ;;
  1151. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1152. Try \`$0 --help' for more information"
  1153. ;;
  1154. *=*)
  1155. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1156. # Reject names that are not valid shell variable names.
  1157. case $ac_envvar in #(
  1158. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1159. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1160. esac
  1161. eval $ac_envvar=\$ac_optarg
  1162. export $ac_envvar ;;
  1163. *)
  1164. # FIXME: should be removed in autoconf 3.0.
  1165. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1166. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1167. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1168. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1169. ;;
  1170. esac
  1171. done
  1172. if test -n "$ac_prev"; then
  1173. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1174. as_fn_error $? "missing argument to $ac_option"
  1175. fi
  1176. if test -n "$ac_unrecognized_opts"; then
  1177. case $enable_option_checking in
  1178. no) ;;
  1179. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1180. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1181. esac
  1182. fi
  1183. # Check all directory arguments for consistency.
  1184. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1185. datadir sysconfdir sharedstatedir localstatedir includedir \
  1186. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1187. libdir localedir mandir
  1188. do
  1189. eval ac_val=\$$ac_var
  1190. # Remove trailing slashes.
  1191. case $ac_val in
  1192. */ )
  1193. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1194. eval $ac_var=\$ac_val;;
  1195. esac
  1196. # Be sure to have absolute directory names.
  1197. case $ac_val in
  1198. [\\/$]* | ?:[\\/]* ) continue;;
  1199. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1200. esac
  1201. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1202. done
  1203. # There might be people who depend on the old broken behavior: `$host'
  1204. # used to hold the argument of --host etc.
  1205. # FIXME: To remove some day.
  1206. build=$build_alias
  1207. host=$host_alias
  1208. target=$target_alias
  1209. # FIXME: To remove some day.
  1210. if test "x$host_alias" != x; then
  1211. if test "x$build_alias" = x; then
  1212. cross_compiling=maybe
  1213. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1214. If a cross compiler is detected then cross compile mode will be used" >&2
  1215. elif test "x$build_alias" != "x$host_alias"; then
  1216. cross_compiling=yes
  1217. fi
  1218. fi
  1219. ac_tool_prefix=
  1220. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1221. test "$silent" = yes && exec 6>/dev/null
  1222. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1223. ac_ls_di=`ls -di .` &&
  1224. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1225. as_fn_error $? "working directory cannot be determined"
  1226. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1227. as_fn_error $? "pwd does not report name of working directory"
  1228. # Find the source files, if location was not specified.
  1229. if test -z "$srcdir"; then
  1230. ac_srcdir_defaulted=yes
  1231. # Try the directory containing this script, then the parent directory.
  1232. ac_confdir=`$as_dirname -- "$as_myself" ||
  1233. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1234. X"$as_myself" : 'X\(//\)[^/]' \| \
  1235. X"$as_myself" : 'X\(//\)$' \| \
  1236. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1237. $as_echo X"$as_myself" |
  1238. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1239. s//\1/
  1240. q
  1241. }
  1242. /^X\(\/\/\)[^/].*/{
  1243. s//\1/
  1244. q
  1245. }
  1246. /^X\(\/\/\)$/{
  1247. s//\1/
  1248. q
  1249. }
  1250. /^X\(\/\).*/{
  1251. s//\1/
  1252. q
  1253. }
  1254. s/.*/./; q'`
  1255. srcdir=$ac_confdir
  1256. if test ! -r "$srcdir/$ac_unique_file"; then
  1257. srcdir=..
  1258. fi
  1259. else
  1260. ac_srcdir_defaulted=no
  1261. fi
  1262. if test ! -r "$srcdir/$ac_unique_file"; then
  1263. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1264. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1265. fi
  1266. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1267. ac_abs_confdir=`(
  1268. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1269. pwd)`
  1270. # When building in place, set srcdir=.
  1271. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1272. srcdir=.
  1273. fi
  1274. # Remove unnecessary trailing slashes from srcdir.
  1275. # Double slashes in file names in object file debugging info
  1276. # mess up M-x gdb in Emacs.
  1277. case $srcdir in
  1278. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1279. esac
  1280. for ac_var in $ac_precious_vars; do
  1281. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1282. eval ac_env_${ac_var}_value=\$${ac_var}
  1283. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1284. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1285. done
  1286. #
  1287. # Report the --help message.
  1288. #
  1289. if test "$ac_init_help" = "long"; then
  1290. # Omit some internal or obsolete options to make the list less imposing.
  1291. # This message is too long to be a string in the A/UX 3.1 sh.
  1292. cat <<_ACEOF
  1293. \`configure' configures json-c 0.11 to adapt to many kinds of systems.
  1294. Usage: $0 [OPTION]... [VAR=VALUE]...
  1295. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1296. VAR=VALUE. See below for descriptions of some of the useful variables.
  1297. Defaults for the options are specified in brackets.
  1298. Configuration:
  1299. -h, --help display this help and exit
  1300. --help=short display options specific to this package
  1301. --help=recursive display the short help of all the included packages
  1302. -V, --version display version information and exit
  1303. -q, --quiet, --silent do not print \`checking ...' messages
  1304. --cache-file=FILE cache test results in FILE [disabled]
  1305. -C, --config-cache alias for \`--cache-file=config.cache'
  1306. -n, --no-create do not create output files
  1307. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1308. Installation directories:
  1309. --prefix=PREFIX install architecture-independent files in PREFIX
  1310. [$ac_default_prefix]
  1311. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1312. [PREFIX]
  1313. By default, \`make install' will install all the files in
  1314. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1315. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1316. for instance \`--prefix=\$HOME'.
  1317. For better control, use the options below.
  1318. Fine tuning of the installation directories:
  1319. --bindir=DIR user executables [EPREFIX/bin]
  1320. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1321. --libexecdir=DIR program executables [EPREFIX/libexec]
  1322. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1323. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1324. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1325. --libdir=DIR object code libraries [EPREFIX/lib]
  1326. --includedir=DIR C header files [PREFIX/include]
  1327. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1328. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1329. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1330. --infodir=DIR info documentation [DATAROOTDIR/info]
  1331. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1332. --mandir=DIR man documentation [DATAROOTDIR/man]
  1333. --docdir=DIR documentation root [DATAROOTDIR/doc/json-c]
  1334. --htmldir=DIR html documentation [DOCDIR]
  1335. --dvidir=DIR dvi documentation [DOCDIR]
  1336. --pdfdir=DIR pdf documentation [DOCDIR]
  1337. --psdir=DIR ps documentation [DOCDIR]
  1338. _ACEOF
  1339. cat <<\_ACEOF
  1340. Program names:
  1341. --program-prefix=PREFIX prepend PREFIX to installed program names
  1342. --program-suffix=SUFFIX append SUFFIX to installed program names
  1343. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1344. System types:
  1345. --build=BUILD configure for building on BUILD [guessed]
  1346. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1347. _ACEOF
  1348. fi
  1349. if test -n "$ac_init_help"; then
  1350. case $ac_init_help in
  1351. short | recursive ) echo "Configuration of json-c 0.11:";;
  1352. esac
  1353. cat <<\_ACEOF
  1354. Optional Features:
  1355. --disable-option-checking ignore unrecognized --enable/--with options
  1356. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1357. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1358. --disable-oldname-compat
  1359. Don't include the old libjson.so library and
  1360. include/json directory.
  1361. --disable-dependency-tracking speeds up one-time build
  1362. --enable-dependency-tracking do not reject slow dependency extractors
  1363. --enable-shared[=PKGS] build shared libraries [default=yes]
  1364. --enable-static[=PKGS] build static libraries [default=yes]
  1365. --enable-fast-install[=PKGS]
  1366. optimize for fast installation [default=yes]
  1367. --disable-libtool-lock avoid locking (might break parallel builds)
  1368. Optional Packages:
  1369. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1370. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1371. --with-pic try to use only PIC/non-PIC objects [default=use
  1372. both]
  1373. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1374. Some influential environment variables:
  1375. CC C compiler command
  1376. CFLAGS C compiler flags
  1377. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1378. nonstandard directory <lib dir>
  1379. LIBS libraries to pass to the linker, e.g. -l<library>
  1380. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1381. you have headers in a nonstandard directory <include dir>
  1382. CPP C preprocessor
  1383. Use these variables to override the choices made by `configure' or to help
  1384. it to find libraries and programs with nonstandard names/locations.
  1385. Report bugs to <json-c@googlegroups.com>.
  1386. _ACEOF
  1387. ac_status=$?
  1388. fi
  1389. if test "$ac_init_help" = "recursive"; then
  1390. # If there are subdirs, report their specific --help.
  1391. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1392. test -d "$ac_dir" ||
  1393. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1394. continue
  1395. ac_builddir=.
  1396. case "$ac_dir" in
  1397. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398. *)
  1399. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1400. # A ".." for each directory in $ac_dir_suffix.
  1401. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1402. case $ac_top_builddir_sub in
  1403. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1405. esac ;;
  1406. esac
  1407. ac_abs_top_builddir=$ac_pwd
  1408. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1409. # for backward compatibility:
  1410. ac_top_builddir=$ac_top_build_prefix
  1411. case $srcdir in
  1412. .) # We are building in place.
  1413. ac_srcdir=.
  1414. ac_top_srcdir=$ac_top_builddir_sub
  1415. ac_abs_top_srcdir=$ac_pwd ;;
  1416. [\\/]* | ?:[\\/]* ) # Absolute name.
  1417. ac_srcdir=$srcdir$ac_dir_suffix;
  1418. ac_top_srcdir=$srcdir
  1419. ac_abs_top_srcdir=$srcdir ;;
  1420. *) # Relative name.
  1421. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1422. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1423. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1424. esac
  1425. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1426. cd "$ac_dir" || { ac_status=$?; continue; }
  1427. # Check for guested configure.
  1428. if test -f "$ac_srcdir/configure.gnu"; then
  1429. echo &&
  1430. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1431. elif test -f "$ac_srcdir/configure"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure" --help=recursive
  1434. else
  1435. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1436. fi || ac_status=$?
  1437. cd "$ac_pwd" || { ac_status=$?; break; }
  1438. done
  1439. fi
  1440. test -n "$ac_init_help" && exit $ac_status
  1441. if $ac_init_version; then
  1442. cat <<\_ACEOF
  1443. json-c configure 0.11
  1444. generated by GNU Autoconf 2.68
  1445. Copyright (C) 2010 Free Software Foundation, Inc.
  1446. This configure script is free software; the Free Software Foundation
  1447. gives unlimited permission to copy, distribute and modify it.
  1448. _ACEOF
  1449. exit
  1450. fi
  1451. ## ------------------------ ##
  1452. ## Autoconf initialization. ##
  1453. ## ------------------------ ##
  1454. # ac_fn_c_try_compile LINENO
  1455. # --------------------------
  1456. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1457. ac_fn_c_try_compile ()
  1458. {
  1459. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1460. rm -f conftest.$ac_objext
  1461. if { { ac_try="$ac_compile"
  1462. case "(($ac_try" in
  1463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1464. *) ac_try_echo=$ac_try;;
  1465. esac
  1466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1467. $as_echo "$ac_try_echo"; } >&5
  1468. (eval "$ac_compile") 2>conftest.err
  1469. ac_status=$?
  1470. if test -s conftest.err; then
  1471. grep -v '^ *+' conftest.err >conftest.er1
  1472. cat conftest.er1 >&5
  1473. mv -f conftest.er1 conftest.err
  1474. fi
  1475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1476. test $ac_status = 0; } && {
  1477. test -z "$ac_c_werror_flag" ||
  1478. test ! -s conftest.err
  1479. } && test -s conftest.$ac_objext; then :
  1480. ac_retval=0
  1481. else
  1482. $as_echo "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=1
  1485. fi
  1486. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1487. as_fn_set_status $ac_retval
  1488. } # ac_fn_c_try_compile
  1489. # ac_fn_c_try_cpp LINENO
  1490. # ----------------------
  1491. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_cpp ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1496. case "(($ac_try" in
  1497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1498. *) ac_try_echo=$ac_try;;
  1499. esac
  1500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1501. $as_echo "$ac_try_echo"; } >&5
  1502. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1503. ac_status=$?
  1504. if test -s conftest.err; then
  1505. grep -v '^ *+' conftest.err >conftest.er1
  1506. cat conftest.er1 >&5
  1507. mv -f conftest.er1 conftest.err
  1508. fi
  1509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1510. test $ac_status = 0; } > conftest.i && {
  1511. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1512. test ! -s conftest.err
  1513. }; then :
  1514. ac_retval=0
  1515. else
  1516. $as_echo "$as_me: failed program was:" >&5
  1517. sed 's/^/| /' conftest.$ac_ext >&5
  1518. ac_retval=1
  1519. fi
  1520. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1521. as_fn_set_status $ac_retval
  1522. } # ac_fn_c_try_cpp
  1523. # ac_fn_c_try_run LINENO
  1524. # ----------------------
  1525. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1526. # that executables *can* be run.
  1527. ac_fn_c_try_run ()
  1528. {
  1529. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1530. if { { ac_try="$ac_link"
  1531. case "(($ac_try" in
  1532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1533. *) ac_try_echo=$ac_try;;
  1534. esac
  1535. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1536. $as_echo "$ac_try_echo"; } >&5
  1537. (eval "$ac_link") 2>&5
  1538. ac_status=$?
  1539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1540. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1541. { { case "(($ac_try" in
  1542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1543. *) ac_try_echo=$ac_try;;
  1544. esac
  1545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1546. $as_echo "$ac_try_echo"; } >&5
  1547. (eval "$ac_try") 2>&5
  1548. ac_status=$?
  1549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1550. test $ac_status = 0; }; }; then :
  1551. ac_retval=0
  1552. else
  1553. $as_echo "$as_me: program exited with status $ac_status" >&5
  1554. $as_echo "$as_me: failed program was:" >&5
  1555. sed 's/^/| /' conftest.$ac_ext >&5
  1556. ac_retval=$ac_status
  1557. fi
  1558. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1559. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1560. as_fn_set_status $ac_retval
  1561. } # ac_fn_c_try_run
  1562. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1563. # -------------------------------------------------------
  1564. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1565. # the include files in INCLUDES and setting the cache variable VAR
  1566. # accordingly.
  1567. ac_fn_c_check_header_mongrel ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. if eval \${$3+:} false; then :
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1572. $as_echo_n "checking for $2... " >&6; }
  1573. if eval \${$3+:} false; then :
  1574. $as_echo_n "(cached) " >&6
  1575. fi
  1576. eval ac_res=\$$3
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1578. $as_echo "$ac_res" >&6; }
  1579. else
  1580. # Is the header compilable?
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1582. $as_echo_n "checking $2 usability... " >&6; }
  1583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1584. /* end confdefs.h. */
  1585. $4
  1586. #include <$2>
  1587. _ACEOF
  1588. if ac_fn_c_try_compile "$LINENO"; then :
  1589. ac_header_compiler=yes
  1590. else
  1591. ac_header_compiler=no
  1592. fi
  1593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1595. $as_echo "$ac_header_compiler" >&6; }
  1596. # Is the header present?
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1598. $as_echo_n "checking $2 presence... " >&6; }
  1599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1600. /* end confdefs.h. */
  1601. #include <$2>
  1602. _ACEOF
  1603. if ac_fn_c_try_cpp "$LINENO"; then :
  1604. ac_header_preproc=yes
  1605. else
  1606. ac_header_preproc=no
  1607. fi
  1608. rm -f conftest.err conftest.i conftest.$ac_ext
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1610. $as_echo "$ac_header_preproc" >&6; }
  1611. # So? What about this header?
  1612. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1613. yes:no: )
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1615. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1617. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1618. ;;
  1619. no:yes:* )
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1621. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1623. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1625. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1627. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1629. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1630. ( $as_echo "## -------------------------------------- ##
  1631. ## Report this to json-c@googlegroups.com ##
  1632. ## -------------------------------------- ##"
  1633. ) | sed "s/^/$as_me: WARNING: /" >&2
  1634. ;;
  1635. esac
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1637. $as_echo_n "checking for $2... " >&6; }
  1638. if eval \${$3+:} false; then :
  1639. $as_echo_n "(cached) " >&6
  1640. else
  1641. eval "$3=\$ac_header_compiler"
  1642. fi
  1643. eval ac_res=\$$3
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1645. $as_echo "$ac_res" >&6; }
  1646. fi
  1647. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1648. } # ac_fn_c_check_header_mongrel
  1649. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1650. # -------------------------------------------------------
  1651. # Tests whether HEADER exists and can be compiled using the include files in
  1652. # INCLUDES, setting the cache variable VAR accordingly.
  1653. ac_fn_c_check_header_compile ()
  1654. {
  1655. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1657. $as_echo_n "checking for $2... " >&6; }
  1658. if eval \${$3+:} false; then :
  1659. $as_echo_n "(cached) " >&6
  1660. else
  1661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1662. /* end confdefs.h. */
  1663. $4
  1664. #include <$2>
  1665. _ACEOF
  1666. if ac_fn_c_try_compile "$LINENO"; then :
  1667. eval "$3=yes"
  1668. else
  1669. eval "$3=no"
  1670. fi
  1671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1672. fi
  1673. eval ac_res=\$$3
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1675. $as_echo "$ac_res" >&6; }
  1676. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1677. } # ac_fn_c_check_header_compile
  1678. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1679. # -------------------------------------------
  1680. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1681. # variable VAR accordingly.
  1682. ac_fn_c_check_type ()
  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. eval "$3=no"
  1691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1692. /* end confdefs.h. */
  1693. $4
  1694. int
  1695. main ()
  1696. {
  1697. if (sizeof ($2))
  1698. return 0;
  1699. ;
  1700. return 0;
  1701. }
  1702. _ACEOF
  1703. if ac_fn_c_try_compile "$LINENO"; then :
  1704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1705. /* end confdefs.h. */
  1706. $4
  1707. int
  1708. main ()
  1709. {
  1710. if (sizeof (($2)))
  1711. return 0;
  1712. ;
  1713. return 0;
  1714. }
  1715. _ACEOF
  1716. if ac_fn_c_try_compile "$LINENO"; then :
  1717. else
  1718. eval "$3=yes"
  1719. fi
  1720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1721. fi
  1722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1723. fi
  1724. eval ac_res=\$$3
  1725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1726. $as_echo "$ac_res" >&6; }
  1727. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1728. } # ac_fn_c_check_type
  1729. # ac_fn_c_try_link LINENO
  1730. # -----------------------
  1731. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1732. ac_fn_c_try_link ()
  1733. {
  1734. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1735. rm -f conftest.$ac_objext conftest$ac_exeext
  1736. if { { ac_try="$ac_link"
  1737. case "(($ac_try" in
  1738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1739. *) ac_try_echo=$ac_try;;
  1740. esac
  1741. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1742. $as_echo "$ac_try_echo"; } >&5
  1743. (eval "$ac_link") 2>conftest.err
  1744. ac_status=$?
  1745. if test -s conftest.err; then
  1746. grep -v '^ *+' conftest.err >conftest.er1
  1747. cat conftest.er1 >&5
  1748. mv -f conftest.er1 conftest.err
  1749. fi
  1750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1751. test $ac_status = 0; } && {
  1752. test -z "$ac_c_werror_flag" ||
  1753. test ! -s conftest.err
  1754. } && test -s conftest$ac_exeext && {
  1755. test "$cross_compiling" = yes ||
  1756. $as_test_x conftest$ac_exeext
  1757. }; then :
  1758. ac_retval=0
  1759. else
  1760. $as_echo "$as_me: failed program was:" >&5
  1761. sed 's/^/| /' conftest.$ac_ext >&5
  1762. ac_retval=1
  1763. fi
  1764. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1765. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1766. # interfere with the next link command; also delete a directory that is
  1767. # left behind by Apple's compiler. We do this before executing the actions.
  1768. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1769. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1770. as_fn_set_status $ac_retval
  1771. } # ac_fn_c_try_link
  1772. # ac_fn_c_check_func LINENO FUNC VAR
  1773. # ----------------------------------
  1774. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1775. ac_fn_c_check_func ()
  1776. {
  1777. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1779. $as_echo_n "checking for $2... " >&6; }
  1780. if eval \${$3+:} false; then :
  1781. $as_echo_n "(cached) " >&6
  1782. else
  1783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1784. /* end confdefs.h. */
  1785. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1786. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1787. #define $2 innocuous_$2
  1788. /* System header to define __stub macros and hopefully few prototypes,
  1789. which can conflict with char $2 (); below.
  1790. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1791. <limits.h> exists even on freestanding compilers. */
  1792. #ifdef __STDC__
  1793. # include <limits.h>
  1794. #else
  1795. # include <assert.h>
  1796. #endif
  1797. #undef $2
  1798. /* Override any GCC internal prototype to avoid an error.
  1799. Use char because int might match the return type of a GCC
  1800. builtin and then its argument prototype would still apply. */
  1801. #ifdef __cplusplus
  1802. extern "C"
  1803. #endif
  1804. char $2 ();
  1805. /* The GNU C library defines this for functions which it implements
  1806. to always fail with ENOSYS. Some functions are actually named
  1807. something starting with __ and the normal name is an alias. */
  1808. #if defined __stub_$2 || defined __stub___$2
  1809. choke me
  1810. #endif
  1811. int
  1812. main ()
  1813. {
  1814. return $2 ();
  1815. ;
  1816. return 0;
  1817. }
  1818. _ACEOF
  1819. if ac_fn_c_try_link "$LINENO"; then :
  1820. eval "$3=yes"
  1821. else
  1822. eval "$3=no"
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext \
  1825. conftest$ac_exeext conftest.$ac_ext
  1826. fi
  1827. eval ac_res=\$$3
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1829. $as_echo "$ac_res" >&6; }
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. } # ac_fn_c_check_func
  1832. cat >config.log <<_ACEOF
  1833. This file contains any messages produced by compilers while
  1834. running configure, to aid debugging if configure makes a mistake.
  1835. It was created by json-c $as_me 0.11, which was
  1836. generated by GNU Autoconf 2.68. Invocation command line was
  1837. $ $0 $@
  1838. _ACEOF
  1839. exec 5>>config.log
  1840. {
  1841. cat <<_ASUNAME
  1842. ## --------- ##
  1843. ## Platform. ##
  1844. ## --------- ##
  1845. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1846. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1847. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1848. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1849. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1850. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1851. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1852. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1853. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1854. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1855. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1856. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1857. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1858. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1859. _ASUNAME
  1860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1861. for as_dir in $PATH
  1862. do
  1863. IFS=$as_save_IFS
  1864. test -z "$as_dir" && as_dir=.
  1865. $as_echo "PATH: $as_dir"
  1866. done
  1867. IFS=$as_save_IFS
  1868. } >&5
  1869. cat >&5 <<_ACEOF
  1870. ## ----------- ##
  1871. ## Core tests. ##
  1872. ## ----------- ##
  1873. _ACEOF
  1874. # Keep a trace of the command line.
  1875. # Strip out --no-create and --no-recursion so they do not pile up.
  1876. # Strip out --silent because we don't want to record it for future runs.
  1877. # Also quote any args containing shell meta-characters.
  1878. # Make two passes to allow for proper duplicate-argument suppression.
  1879. ac_configure_args=
  1880. ac_configure_args0=
  1881. ac_configure_args1=
  1882. ac_must_keep_next=false
  1883. for ac_pass in 1 2
  1884. do
  1885. for ac_arg
  1886. do
  1887. case $ac_arg in
  1888. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1889. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1890. | -silent | --silent | --silen | --sile | --sil)
  1891. continue ;;
  1892. *\'*)
  1893. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1894. esac
  1895. case $ac_pass in
  1896. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1897. 2)
  1898. as_fn_append ac_configure_args1 " '$ac_arg'"
  1899. if test $ac_must_keep_next = true; then
  1900. ac_must_keep_next=false # Got value, back to normal.
  1901. else
  1902. case $ac_arg in
  1903. *=* | --config-cache | -C | -disable-* | --disable-* \
  1904. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1905. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1906. | -with-* | --with-* | -without-* | --without-* | --x)
  1907. case "$ac_configure_args0 " in
  1908. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1909. esac
  1910. ;;
  1911. -* ) ac_must_keep_next=true ;;
  1912. esac
  1913. fi
  1914. as_fn_append ac_configure_args " '$ac_arg'"
  1915. ;;
  1916. esac
  1917. done
  1918. done
  1919. { ac_configure_args0=; unset ac_configure_args0;}
  1920. { ac_configure_args1=; unset ac_configure_args1;}
  1921. # When interrupted or exit'd, cleanup temporary files, and complete
  1922. # config.log. We remove comments because anyway the quotes in there
  1923. # would cause problems or look ugly.
  1924. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1925. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1926. trap 'exit_status=$?
  1927. # Save into config.log some information that might help in debugging.
  1928. {
  1929. echo
  1930. $as_echo "## ---------------- ##
  1931. ## Cache variables. ##
  1932. ## ---------------- ##"
  1933. echo
  1934. # The following way of writing the cache mishandles newlines in values,
  1935. (
  1936. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1937. eval ac_val=\$$ac_var
  1938. case $ac_val in #(
  1939. *${as_nl}*)
  1940. case $ac_var in #(
  1941. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1942. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1943. esac
  1944. case $ac_var in #(
  1945. _ | IFS | as_nl) ;; #(
  1946. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1947. *) { eval $ac_var=; unset $ac_var;} ;;
  1948. esac ;;
  1949. esac
  1950. done
  1951. (set) 2>&1 |
  1952. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1953. *${as_nl}ac_space=\ *)
  1954. sed -n \
  1955. "s/'\''/'\''\\\\'\'''\''/g;
  1956. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1957. ;; #(
  1958. *)
  1959. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1960. ;;
  1961. esac |
  1962. sort
  1963. )
  1964. echo
  1965. $as_echo "## ----------------- ##
  1966. ## Output variables. ##
  1967. ## ----------------- ##"
  1968. echo
  1969. for ac_var in $ac_subst_vars
  1970. do
  1971. eval ac_val=\$$ac_var
  1972. case $ac_val in
  1973. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1974. esac
  1975. $as_echo "$ac_var='\''$ac_val'\''"
  1976. done | sort
  1977. echo
  1978. if test -n "$ac_subst_files"; then
  1979. $as_echo "## ------------------- ##
  1980. ## File substitutions. ##
  1981. ## ------------------- ##"
  1982. echo
  1983. for ac_var in $ac_subst_files
  1984. do
  1985. eval ac_val=\$$ac_var
  1986. case $ac_val in
  1987. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1988. esac
  1989. $as_echo "$ac_var='\''$ac_val'\''"
  1990. done | sort
  1991. echo
  1992. fi
  1993. if test -s confdefs.h; then
  1994. $as_echo "## ----------- ##
  1995. ## confdefs.h. ##
  1996. ## ----------- ##"
  1997. echo
  1998. cat confdefs.h
  1999. echo
  2000. fi
  2001. test "$ac_signal" != 0 &&
  2002. $as_echo "$as_me: caught signal $ac_signal"
  2003. $as_echo "$as_me: exit $exit_status"
  2004. } >&5
  2005. rm -f core *.core core.conftest.* &&
  2006. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2007. exit $exit_status
  2008. ' 0
  2009. for ac_signal in 1 2 13 15; do
  2010. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2011. done
  2012. ac_signal=0
  2013. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2014. rm -f -r conftest* confdefs.h
  2015. $as_echo "/* confdefs.h */" > confdefs.h
  2016. # Predefined preprocessor variables.
  2017. cat >>confdefs.h <<_ACEOF
  2018. #define PACKAGE_NAME "$PACKAGE_NAME"
  2019. _ACEOF
  2020. cat >>confdefs.h <<_ACEOF
  2021. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2022. _ACEOF
  2023. cat >>confdefs.h <<_ACEOF
  2024. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2025. _ACEOF
  2026. cat >>confdefs.h <<_ACEOF
  2027. #define PACKAGE_STRING "$PACKAGE_STRING"
  2028. _ACEOF
  2029. cat >>confdefs.h <<_ACEOF
  2030. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2031. _ACEOF
  2032. cat >>confdefs.h <<_ACEOF
  2033. #define PACKAGE_URL "$PACKAGE_URL"
  2034. _ACEOF
  2035. # Let the site file select an alternate cache file if it wants to.
  2036. # Prefer an explicitly selected file to automatically selected ones.
  2037. ac_site_file1=NONE
  2038. ac_site_file2=NONE
  2039. if test -n "$CONFIG_SITE"; then
  2040. # We do not want a PATH search for config.site.
  2041. case $CONFIG_SITE in #((
  2042. -*) ac_site_file1=./$CONFIG_SITE;;
  2043. */*) ac_site_file1=$CONFIG_SITE;;
  2044. *) ac_site_file1=./$CONFIG_SITE;;
  2045. esac
  2046. elif test "x$prefix" != xNONE; then
  2047. ac_site_file1=$prefix/share/config.site
  2048. ac_site_file2=$prefix/etc/config.site
  2049. else
  2050. ac_site_file1=$ac_default_prefix/share/config.site
  2051. ac_site_file2=$ac_default_prefix/etc/config.site
  2052. fi
  2053. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2054. do
  2055. test "x$ac_site_file" = xNONE && continue
  2056. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2058. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2059. sed 's/^/| /' "$ac_site_file" >&5
  2060. . "$ac_site_file" \
  2061. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2063. as_fn_error $? "failed to load site script $ac_site_file
  2064. See \`config.log' for more details" "$LINENO" 5; }
  2065. fi
  2066. done
  2067. if test -r "$cache_file"; then
  2068. # Some versions of bash will fail to source /dev/null (special files
  2069. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2070. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2072. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2073. case $cache_file in
  2074. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2075. *) . "./$cache_file";;
  2076. esac
  2077. fi
  2078. else
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2080. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2081. >$cache_file
  2082. fi
  2083. # Check that the precious variables saved in the cache have kept the same
  2084. # value.
  2085. ac_cache_corrupted=false
  2086. for ac_var in $ac_precious_vars; do
  2087. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2088. eval ac_new_set=\$ac_env_${ac_var}_set
  2089. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2090. eval ac_new_val=\$ac_env_${ac_var}_value
  2091. case $ac_old_set,$ac_new_set in
  2092. set,)
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2094. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2095. ac_cache_corrupted=: ;;
  2096. ,set)
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2098. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2099. ac_cache_corrupted=: ;;
  2100. ,);;
  2101. *)
  2102. if test "x$ac_old_val" != "x$ac_new_val"; then
  2103. # differences in whitespace do not lead to failure.
  2104. ac_old_val_w=`echo x $ac_old_val`
  2105. ac_new_val_w=`echo x $ac_new_val`
  2106. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2108. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2109. ac_cache_corrupted=:
  2110. else
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2112. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2113. eval $ac_var=\$ac_old_val
  2114. fi
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2116. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2118. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2119. fi;;
  2120. esac
  2121. # Pass precious variables to config.status.
  2122. if test "$ac_new_set" = set; then
  2123. case $ac_new_val in
  2124. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2125. *) ac_arg=$ac_var=$ac_new_val ;;
  2126. esac
  2127. case " $ac_configure_args " in
  2128. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2129. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2130. esac
  2131. fi
  2132. done
  2133. if $ac_cache_corrupted; then
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2135. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2137. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2138. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2139. fi
  2140. ## -------------------- ##
  2141. ## Main body of script. ##
  2142. ## -------------------- ##
  2143. ac_ext=c
  2144. ac_cpp='$CPP $CPPFLAGS'
  2145. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2146. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2147. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2148. am__api_version='1.11'
  2149. ac_aux_dir=
  2150. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2151. if test -f "$ac_dir/install-sh"; then
  2152. ac_aux_dir=$ac_dir
  2153. ac_install_sh="$ac_aux_dir/install-sh -c"
  2154. break
  2155. elif test -f "$ac_dir/install.sh"; then
  2156. ac_aux_dir=$ac_dir
  2157. ac_install_sh="$ac_aux_dir/install.sh -c"
  2158. break
  2159. elif test -f "$ac_dir/shtool"; then
  2160. ac_aux_dir=$ac_dir
  2161. ac_install_sh="$ac_aux_dir/shtool install -c"
  2162. break
  2163. fi
  2164. done
  2165. if test -z "$ac_aux_dir"; then
  2166. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2167. fi
  2168. # These three variables are undocumented and unsupported,
  2169. # and are intended to be withdrawn in a future Autoconf release.
  2170. # They can cause serious problems if a builder's source tree is in a directory
  2171. # whose full name contains unusual characters.
  2172. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2173. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2174. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2175. # Find a good install program. We prefer a C program (faster),
  2176. # so one script is as good as another. But avoid the broken or
  2177. # incompatible versions:
  2178. # SysV /etc/install, /usr/sbin/install
  2179. # SunOS /usr/etc/install
  2180. # IRIX /sbin/install
  2181. # AIX /bin/install
  2182. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2183. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2184. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2185. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2186. # OS/2's system install, which has a completely different semantic
  2187. # ./install, which can be erroneously created by make from ./install.sh.
  2188. # Reject install programs that cannot install multiple files.
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2190. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2191. if test -z "$INSTALL"; then
  2192. if ${ac_cv_path_install+:} false; then :
  2193. $as_echo_n "(cached) " >&6
  2194. else
  2195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2196. for as_dir in $PATH
  2197. do
  2198. IFS=$as_save_IFS
  2199. test -z "$as_dir" && as_dir=.
  2200. # Account for people who put trailing slashes in PATH elements.
  2201. case $as_dir/ in #((
  2202. ./ | .// | /[cC]/* | \
  2203. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2204. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2205. /usr/ucb/* ) ;;
  2206. *)
  2207. # OSF1 and SCO ODT 3.0 have their own names for install.
  2208. # Don't use installbsd from OSF since it installs stuff as root
  2209. # by default.
  2210. for ac_prog in ginstall scoinst install; do
  2211. for ac_exec_ext in '' $ac_executable_extensions; do
  2212. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2213. if test $ac_prog = install &&
  2214. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2215. # AIX install. It has an incompatible calling convention.
  2216. :
  2217. elif test $ac_prog = install &&
  2218. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2219. # program-specific install script used by HP pwplus--don't use.
  2220. :
  2221. else
  2222. rm -rf conftest.one conftest.two conftest.dir
  2223. echo one > conftest.one
  2224. echo two > conftest.two
  2225. mkdir conftest.dir
  2226. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2227. test -s conftest.one && test -s conftest.two &&
  2228. test -s conftest.dir/conftest.one &&
  2229. test -s conftest.dir/conftest.two
  2230. then
  2231. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2232. break 3
  2233. fi
  2234. fi
  2235. fi
  2236. done
  2237. done
  2238. ;;
  2239. esac
  2240. done
  2241. IFS=$as_save_IFS
  2242. rm -rf conftest.one conftest.two conftest.dir
  2243. fi
  2244. if test "${ac_cv_path_install+set}" = set; then
  2245. INSTALL=$ac_cv_path_install
  2246. else
  2247. # As a last resort, use the slow shell script. Don't cache a
  2248. # value for INSTALL within a source directory, because that will
  2249. # break other packages using the cache if that directory is
  2250. # removed, or if the value is a relative name.
  2251. INSTALL=$ac_install_sh
  2252. fi
  2253. fi
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2255. $as_echo "$INSTALL" >&6; }
  2256. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2257. # It thinks the first close brace ends the variable substitution.
  2258. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2259. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2260. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2262. $as_echo_n "checking whether build environment is sane... " >&6; }
  2263. # Just in case
  2264. sleep 1
  2265. echo timestamp > conftest.file
  2266. # Reject unsafe characters in $srcdir or the absolute working directory
  2267. # name. Accept space and tab only in the latter.
  2268. am_lf='
  2269. '
  2270. case `pwd` in
  2271. *[\\\"\#\$\&\'\`$am_lf]*)
  2272. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2273. esac
  2274. case $srcdir in
  2275. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2276. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2277. esac
  2278. # Do `set' in a subshell so we don't clobber the current shell's
  2279. # arguments. Must try -L first in case configure is actually a
  2280. # symlink; some systems play weird games with the mod time of symlinks
  2281. # (eg FreeBSD returns the mod time of the symlink's containing
  2282. # directory).
  2283. if (
  2284. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2285. if test "$*" = "X"; then
  2286. # -L didn't work.
  2287. set X `ls -t "$srcdir/configure" conftest.file`
  2288. fi
  2289. rm -f conftest.file
  2290. if test "$*" != "X $srcdir/configure conftest.file" \
  2291. && test "$*" != "X conftest.file $srcdir/configure"; then
  2292. # If neither matched, then we have a broken ls. This can happen
  2293. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2294. # broken ls alias from the environment. This has actually
  2295. # happened. Such a system could not be considered "sane".
  2296. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2297. alias in your environment" "$LINENO" 5
  2298. fi
  2299. test "$2" = conftest.file
  2300. )
  2301. then
  2302. # Ok.
  2303. :
  2304. else
  2305. as_fn_error $? "newly created file is older than distributed files!
  2306. Check your system clock" "$LINENO" 5
  2307. fi
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2309. $as_echo "yes" >&6; }
  2310. test "$program_prefix" != NONE &&
  2311. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2312. # Use a double $ so make ignores it.
  2313. test "$program_suffix" != NONE &&
  2314. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2315. # Double any \ or $.
  2316. # By default was `s,x,x', remove it if useless.
  2317. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2318. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2319. # expand $ac_aux_dir to an absolute path
  2320. am_aux_dir=`cd $ac_aux_dir && pwd`
  2321. if test x"${MISSING+set}" != xset; then
  2322. case $am_aux_dir in
  2323. *\ * | *\ *)
  2324. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2325. *)
  2326. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2327. esac
  2328. fi
  2329. # Use eval to expand $SHELL
  2330. if eval "$MISSING --run true"; then
  2331. am_missing_run="$MISSING --run "
  2332. else
  2333. am_missing_run=
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2335. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2336. fi
  2337. if test x"${install_sh}" != xset; then
  2338. case $am_aux_dir in
  2339. *\ * | *\ *)
  2340. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2341. *)
  2342. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2343. esac
  2344. fi
  2345. # Installed binaries are usually stripped using `strip' when the user
  2346. # run `make install-strip'. However `strip' might not be the right
  2347. # tool to use in cross-compilation environments, therefore Automake
  2348. # will honor the `STRIP' environment variable to overrule this program.
  2349. if test "$cross_compiling" != no; then
  2350. if test -n "$ac_tool_prefix"; then
  2351. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2352. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2354. $as_echo_n "checking for $ac_word... " >&6; }
  2355. if ${ac_cv_prog_STRIP+:} false; then :
  2356. $as_echo_n "(cached) " >&6
  2357. else
  2358. if test -n "$STRIP"; then
  2359. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2360. else
  2361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2362. for as_dir in $PATH
  2363. do
  2364. IFS=$as_save_IFS
  2365. test -z "$as_dir" && as_dir=.
  2366. for ac_exec_ext in '' $ac_executable_extensions; do
  2367. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2368. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2370. break 2
  2371. fi
  2372. done
  2373. done
  2374. IFS=$as_save_IFS
  2375. fi
  2376. fi
  2377. STRIP=$ac_cv_prog_STRIP
  2378. if test -n "$STRIP"; then
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2380. $as_echo "$STRIP" >&6; }
  2381. else
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2383. $as_echo "no" >&6; }
  2384. fi
  2385. fi
  2386. if test -z "$ac_cv_prog_STRIP"; then
  2387. ac_ct_STRIP=$STRIP
  2388. # Extract the first word of "strip", so it can be a program name with args.
  2389. set dummy strip; ac_word=$2
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2391. $as_echo_n "checking for $ac_word... " >&6; }
  2392. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2393. $as_echo_n "(cached) " >&6
  2394. else
  2395. if test -n "$ac_ct_STRIP"; then
  2396. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2397. else
  2398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2399. for as_dir in $PATH
  2400. do
  2401. IFS=$as_save_IFS
  2402. test -z "$as_dir" && as_dir=.
  2403. for ac_exec_ext in '' $ac_executable_extensions; do
  2404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2405. ac_cv_prog_ac_ct_STRIP="strip"
  2406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2407. break 2
  2408. fi
  2409. done
  2410. done
  2411. IFS=$as_save_IFS
  2412. fi
  2413. fi
  2414. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2415. if test -n "$ac_ct_STRIP"; then
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2417. $as_echo "$ac_ct_STRIP" >&6; }
  2418. else
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2420. $as_echo "no" >&6; }
  2421. fi
  2422. if test "x$ac_ct_STRIP" = x; then
  2423. STRIP=":"
  2424. else
  2425. case $cross_compiling:$ac_tool_warned in
  2426. yes:)
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2428. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2429. ac_tool_warned=yes ;;
  2430. esac
  2431. STRIP=$ac_ct_STRIP
  2432. fi
  2433. else
  2434. STRIP="$ac_cv_prog_STRIP"
  2435. fi
  2436. fi
  2437. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2439. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2440. if test -z "$MKDIR_P"; then
  2441. if ${ac_cv_path_mkdir+:} false; then :
  2442. $as_echo_n "(cached) " >&6
  2443. else
  2444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2445. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2446. do
  2447. IFS=$as_save_IFS
  2448. test -z "$as_dir" && as_dir=.
  2449. for ac_prog in mkdir gmkdir; do
  2450. for ac_exec_ext in '' $ac_executable_extensions; do
  2451. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2452. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2453. 'mkdir (GNU coreutils) '* | \
  2454. 'mkdir (coreutils) '* | \
  2455. 'mkdir (fileutils) '4.1*)
  2456. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2457. break 3;;
  2458. esac
  2459. done
  2460. done
  2461. done
  2462. IFS=$as_save_IFS
  2463. fi
  2464. test -d ./--version && rmdir ./--version
  2465. if test "${ac_cv_path_mkdir+set}" = set; then
  2466. MKDIR_P="$ac_cv_path_mkdir -p"
  2467. else
  2468. # As a last resort, use the slow shell script. Don't cache a
  2469. # value for MKDIR_P within a source directory, because that will
  2470. # break other packages using the cache if that directory is
  2471. # removed, or if the value is a relative name.
  2472. MKDIR_P="$ac_install_sh -d"
  2473. fi
  2474. fi
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2476. $as_echo "$MKDIR_P" >&6; }
  2477. mkdir_p="$MKDIR_P"
  2478. case $mkdir_p in
  2479. [\\/$]* | ?:[\\/]*) ;;
  2480. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2481. esac
  2482. for ac_prog in gawk mawk nawk awk
  2483. do
  2484. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2485. set dummy $ac_prog; ac_word=$2
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2487. $as_echo_n "checking for $ac_word... " >&6; }
  2488. if ${ac_cv_prog_AWK+:} false; then :
  2489. $as_echo_n "(cached) " >&6
  2490. else
  2491. if test -n "$AWK"; then
  2492. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2493. else
  2494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2495. for as_dir in $PATH
  2496. do
  2497. IFS=$as_save_IFS
  2498. test -z "$as_dir" && as_dir=.
  2499. for ac_exec_ext in '' $ac_executable_extensions; do
  2500. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2501. ac_cv_prog_AWK="$ac_prog"
  2502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2503. break 2
  2504. fi
  2505. done
  2506. done
  2507. IFS=$as_save_IFS
  2508. fi
  2509. fi
  2510. AWK=$ac_cv_prog_AWK
  2511. if test -n "$AWK"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2513. $as_echo "$AWK" >&6; }
  2514. else
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2516. $as_echo "no" >&6; }
  2517. fi
  2518. test -n "$AWK" && break
  2519. done
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2521. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2522. set x ${MAKE-make}
  2523. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2524. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2525. $as_echo_n "(cached) " >&6
  2526. else
  2527. cat >conftest.make <<\_ACEOF
  2528. SHELL = /bin/sh
  2529. all:
  2530. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2531. _ACEOF
  2532. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2533. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2534. *@@@%%%=?*=@@@%%%*)
  2535. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2536. *)
  2537. eval ac_cv_prog_make_${ac_make}_set=no;;
  2538. esac
  2539. rm -f conftest.make
  2540. fi
  2541. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2543. $as_echo "yes" >&6; }
  2544. SET_MAKE=
  2545. else
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2547. $as_echo "no" >&6; }
  2548. SET_MAKE="MAKE=${MAKE-make}"
  2549. fi
  2550. rm -rf .tst 2>/dev/null
  2551. mkdir .tst 2>/dev/null
  2552. if test -d .tst; then
  2553. am__leading_dot=.
  2554. else
  2555. am__leading_dot=_
  2556. fi
  2557. rmdir .tst 2>/dev/null
  2558. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2559. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2560. # is not polluted with repeated "-I."
  2561. am__isrc=' -I$(srcdir)'
  2562. # test to see if srcdir already configured
  2563. if test -f $srcdir/config.status; then
  2564. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2565. fi
  2566. fi
  2567. # test whether we have cygpath
  2568. if test -z "$CYGPATH_W"; then
  2569. if (cygpath --version) >/dev/null 2>/dev/null; then
  2570. CYGPATH_W='cygpath -w'
  2571. else
  2572. CYGPATH_W=echo
  2573. fi
  2574. fi
  2575. # Define the identity of the package.
  2576. PACKAGE=json-c
  2577. VERSION=0.11
  2578. cat >>confdefs.h <<_ACEOF
  2579. #define PACKAGE "$PACKAGE"
  2580. _ACEOF
  2581. cat >>confdefs.h <<_ACEOF
  2582. #define VERSION "$VERSION"
  2583. _ACEOF
  2584. # Some tools Automake needs.
  2585. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2586. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2587. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2588. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2589. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2590. # We need awk for the "check" target. The system "awk" is bad on
  2591. # some platforms.
  2592. # Always define AMTAR for backward compatibility.
  2593. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2594. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2596. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2597. set x ${MAKE-make}
  2598. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2599. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2600. $as_echo_n "(cached) " >&6
  2601. else
  2602. cat >conftest.make <<\_ACEOF
  2603. SHELL = /bin/sh
  2604. all:
  2605. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2606. _ACEOF
  2607. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2608. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2609. *@@@%%%=?*=@@@%%%*)
  2610. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2611. *)
  2612. eval ac_cv_prog_make_${ac_make}_set=no;;
  2613. esac
  2614. rm -f conftest.make
  2615. fi
  2616. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2618. $as_echo "yes" >&6; }
  2619. SET_MAKE=
  2620. else
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2622. $as_echo "no" >&6; }
  2623. SET_MAKE="MAKE=${MAKE-make}"
  2624. fi
  2625. # Check whether --enable-oldname-compat was given.
  2626. if test "${enable_oldname_compat+set}" = set; then :
  2627. enableval=$enable_oldname_compat;
  2628. else
  2629. enable_oldname_compat=yes
  2630. fi
  2631. if test "x${enable_oldname_compat}" != "xno"; then
  2632. ENABLE_OLDNAME_COMPAT_TRUE=
  2633. ENABLE_OLDNAME_COMPAT_FALSE='#'
  2634. else
  2635. ENABLE_OLDNAME_COMPAT_TRUE='#'
  2636. ENABLE_OLDNAME_COMPAT_FALSE=
  2637. fi
  2638. # Checks for programs.
  2639. # Checks for libraries.
  2640. # Checks for header files.
  2641. ac_config_headers="$ac_config_headers config.h"
  2642. ac_config_headers="$ac_config_headers json_config.h"
  2643. DEPDIR="${am__leading_dot}deps"
  2644. ac_config_commands="$ac_config_commands depfiles"
  2645. am_make=${MAKE-make}
  2646. cat > confinc << 'END'
  2647. am__doit:
  2648. @echo this is the am__doit target
  2649. .PHONY: am__doit
  2650. END
  2651. # If we don't find an include directive, just comment out the code.
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2653. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2654. am__include="#"
  2655. am__quote=
  2656. _am_result=none
  2657. # First try GNU make style include.
  2658. echo "include confinc" > confmf
  2659. # Ignore all kinds of additional output from `make'.
  2660. case `$am_make -s -f confmf 2> /dev/null` in #(
  2661. *the\ am__doit\ target*)
  2662. am__include=include
  2663. am__quote=
  2664. _am_result=GNU
  2665. ;;
  2666. esac
  2667. # Now try BSD make style include.
  2668. if test "$am__include" = "#"; then
  2669. echo '.include "confinc"' > confmf
  2670. case `$am_make -s -f confmf 2> /dev/null` in #(
  2671. *the\ am__doit\ target*)
  2672. am__include=.include
  2673. am__quote="\""
  2674. _am_result=BSD
  2675. ;;
  2676. esac
  2677. fi
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2679. $as_echo "$_am_result" >&6; }
  2680. rm -f confinc confmf
  2681. # Check whether --enable-dependency-tracking was given.
  2682. if test "${enable_dependency_tracking+set}" = set; then :
  2683. enableval=$enable_dependency_tracking;
  2684. fi
  2685. if test "x$enable_dependency_tracking" != xno; then
  2686. am_depcomp="$ac_aux_dir/depcomp"
  2687. AMDEPBACKSLASH='\'
  2688. fi
  2689. if test "x$enable_dependency_tracking" != xno; then
  2690. AMDEP_TRUE=
  2691. AMDEP_FALSE='#'
  2692. else
  2693. AMDEP_TRUE='#'
  2694. AMDEP_FALSE=
  2695. fi
  2696. ac_ext=c
  2697. ac_cpp='$CPP $CPPFLAGS'
  2698. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2699. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2700. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2701. if test -n "$ac_tool_prefix"; then
  2702. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2703. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2705. $as_echo_n "checking for $ac_word... " >&6; }
  2706. if ${ac_cv_prog_CC+:} false; then :
  2707. $as_echo_n "(cached) " >&6
  2708. else
  2709. if test -n "$CC"; then
  2710. ac_cv_prog_CC="$CC" # Let the user override the test.
  2711. else
  2712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2713. for as_dir in $PATH
  2714. do
  2715. IFS=$as_save_IFS
  2716. test -z "$as_dir" && as_dir=.
  2717. for ac_exec_ext in '' $ac_executable_extensions; do
  2718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2719. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2721. break 2
  2722. fi
  2723. done
  2724. done
  2725. IFS=$as_save_IFS
  2726. fi
  2727. fi
  2728. CC=$ac_cv_prog_CC
  2729. if test -n "$CC"; then
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2731. $as_echo "$CC" >&6; }
  2732. else
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2734. $as_echo "no" >&6; }
  2735. fi
  2736. fi
  2737. if test -z "$ac_cv_prog_CC"; then
  2738. ac_ct_CC=$CC
  2739. # Extract the first word of "gcc", so it can be a program name with args.
  2740. set dummy gcc; ac_word=$2
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2742. $as_echo_n "checking for $ac_word... " >&6; }
  2743. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2744. $as_echo_n "(cached) " >&6
  2745. else
  2746. if test -n "$ac_ct_CC"; then
  2747. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2748. else
  2749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2750. for as_dir in $PATH
  2751. do
  2752. IFS=$as_save_IFS
  2753. test -z "$as_dir" && as_dir=.
  2754. for ac_exec_ext in '' $ac_executable_extensions; do
  2755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2756. ac_cv_prog_ac_ct_CC="gcc"
  2757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2758. break 2
  2759. fi
  2760. done
  2761. done
  2762. IFS=$as_save_IFS
  2763. fi
  2764. fi
  2765. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2766. if test -n "$ac_ct_CC"; then
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2768. $as_echo "$ac_ct_CC" >&6; }
  2769. else
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2771. $as_echo "no" >&6; }
  2772. fi
  2773. if test "x$ac_ct_CC" = x; then
  2774. CC=""
  2775. else
  2776. case $cross_compiling:$ac_tool_warned in
  2777. yes:)
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2779. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2780. ac_tool_warned=yes ;;
  2781. esac
  2782. CC=$ac_ct_CC
  2783. fi
  2784. else
  2785. CC="$ac_cv_prog_CC"
  2786. fi
  2787. if test -z "$CC"; then
  2788. if test -n "$ac_tool_prefix"; then
  2789. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2790. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2792. $as_echo_n "checking for $ac_word... " >&6; }
  2793. if ${ac_cv_prog_CC+:} false; then :
  2794. $as_echo_n "(cached) " >&6
  2795. else
  2796. if test -n "$CC"; then
  2797. ac_cv_prog_CC="$CC" # Let the user override the test.
  2798. else
  2799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2800. for as_dir in $PATH
  2801. do
  2802. IFS=$as_save_IFS
  2803. test -z "$as_dir" && as_dir=.
  2804. for ac_exec_ext in '' $ac_executable_extensions; do
  2805. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2806. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2808. break 2
  2809. fi
  2810. done
  2811. done
  2812. IFS=$as_save_IFS
  2813. fi
  2814. fi
  2815. CC=$ac_cv_prog_CC
  2816. if test -n "$CC"; then
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2818. $as_echo "$CC" >&6; }
  2819. else
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2821. $as_echo "no" >&6; }
  2822. fi
  2823. fi
  2824. fi
  2825. if test -z "$CC"; then
  2826. # Extract the first word of "cc", so it can be a program name with args.
  2827. set dummy cc; ac_word=$2
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2829. $as_echo_n "checking for $ac_word... " >&6; }
  2830. if ${ac_cv_prog_CC+:} false; then :
  2831. $as_echo_n "(cached) " >&6
  2832. else
  2833. if test -n "$CC"; then
  2834. ac_cv_prog_CC="$CC" # Let the user override the test.
  2835. else
  2836. ac_prog_rejected=no
  2837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2838. for as_dir in $PATH
  2839. do
  2840. IFS=$as_save_IFS
  2841. test -z "$as_dir" && as_dir=.
  2842. for ac_exec_ext in '' $ac_executable_extensions; do
  2843. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2844. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2845. ac_prog_rejected=yes
  2846. continue
  2847. fi
  2848. ac_cv_prog_CC="cc"
  2849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2850. break 2
  2851. fi
  2852. done
  2853. done
  2854. IFS=$as_save_IFS
  2855. if test $ac_prog_rejected = yes; then
  2856. # We found a bogon in the path, so make sure we never use it.
  2857. set dummy $ac_cv_prog_CC
  2858. shift
  2859. if test $# != 0; then
  2860. # We chose a different compiler from the bogus one.
  2861. # However, it has the same basename, so the bogon will be chosen
  2862. # first if we set CC to just the basename; use the full file name.
  2863. shift
  2864. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2865. fi
  2866. fi
  2867. fi
  2868. fi
  2869. CC=$ac_cv_prog_CC
  2870. if test -n "$CC"; then
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2872. $as_echo "$CC" >&6; }
  2873. else
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2875. $as_echo "no" >&6; }
  2876. fi
  2877. fi
  2878. if test -z "$CC"; then
  2879. if test -n "$ac_tool_prefix"; then
  2880. for ac_prog in cl.exe
  2881. do
  2882. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2883. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2885. $as_echo_n "checking for $ac_word... " >&6; }
  2886. if ${ac_cv_prog_CC+:} false; then :
  2887. $as_echo_n "(cached) " >&6
  2888. else
  2889. if test -n "$CC"; then
  2890. ac_cv_prog_CC="$CC" # Let the user override the test.
  2891. else
  2892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2893. for as_dir in $PATH
  2894. do
  2895. IFS=$as_save_IFS
  2896. test -z "$as_dir" && as_dir=.
  2897. for ac_exec_ext in '' $ac_executable_extensions; do
  2898. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2899. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2901. break 2
  2902. fi
  2903. done
  2904. done
  2905. IFS=$as_save_IFS
  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. test -n "$CC" && break
  2917. done
  2918. fi
  2919. if test -z "$CC"; then
  2920. ac_ct_CC=$CC
  2921. for ac_prog in cl.exe
  2922. do
  2923. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2924. set dummy $ac_prog; ac_word=$2
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2926. $as_echo_n "checking for $ac_word... " >&6; }
  2927. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2928. $as_echo_n "(cached) " >&6
  2929. else
  2930. if test -n "$ac_ct_CC"; then
  2931. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2932. else
  2933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2934. for as_dir in $PATH
  2935. do
  2936. IFS=$as_save_IFS
  2937. test -z "$as_dir" && as_dir=.
  2938. for ac_exec_ext in '' $ac_executable_extensions; do
  2939. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2940. ac_cv_prog_ac_ct_CC="$ac_prog"
  2941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2942. break 2
  2943. fi
  2944. done
  2945. done
  2946. IFS=$as_save_IFS
  2947. fi
  2948. fi
  2949. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2950. if test -n "$ac_ct_CC"; then
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2952. $as_echo "$ac_ct_CC" >&6; }
  2953. else
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2955. $as_echo "no" >&6; }
  2956. fi
  2957. test -n "$ac_ct_CC" && break
  2958. done
  2959. if test "x$ac_ct_CC" = x; then
  2960. CC=""
  2961. else
  2962. case $cross_compiling:$ac_tool_warned in
  2963. yes:)
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2965. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2966. ac_tool_warned=yes ;;
  2967. esac
  2968. CC=$ac_ct_CC
  2969. fi
  2970. fi
  2971. fi
  2972. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2973. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2974. as_fn_error $? "no acceptable C compiler found in \$PATH
  2975. See \`config.log' for more details" "$LINENO" 5; }
  2976. # Provide some information about the compiler.
  2977. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2978. set X $ac_compile
  2979. ac_compiler=$2
  2980. for ac_option in --version -v -V -qversion; do
  2981. { { ac_try="$ac_compiler $ac_option >&5"
  2982. case "(($ac_try" in
  2983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2984. *) ac_try_echo=$ac_try;;
  2985. esac
  2986. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2987. $as_echo "$ac_try_echo"; } >&5
  2988. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2989. ac_status=$?
  2990. if test -s conftest.err; then
  2991. sed '10a\
  2992. ... rest of stderr output deleted ...
  2993. 10q' conftest.err >conftest.er1
  2994. cat conftest.er1 >&5
  2995. fi
  2996. rm -f conftest.er1 conftest.err
  2997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2998. test $ac_status = 0; }
  2999. done
  3000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3001. /* end confdefs.h. */
  3002. int
  3003. main ()
  3004. {
  3005. ;
  3006. return 0;
  3007. }
  3008. _ACEOF
  3009. ac_clean_files_save=$ac_clean_files
  3010. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3011. # Try to create an executable without -o first, disregard a.out.
  3012. # It will help us diagnose broken compilers, and finding out an intuition
  3013. # of exeext.
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3015. $as_echo_n "checking whether the C compiler works... " >&6; }
  3016. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3017. # The possible output files:
  3018. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3019. ac_rmfiles=
  3020. for ac_file in $ac_files
  3021. do
  3022. case $ac_file in
  3023. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3024. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3025. esac
  3026. done
  3027. rm -f $ac_rmfiles
  3028. if { { ac_try="$ac_link_default"
  3029. case "(($ac_try" in
  3030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3031. *) ac_try_echo=$ac_try;;
  3032. esac
  3033. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3034. $as_echo "$ac_try_echo"; } >&5
  3035. (eval "$ac_link_default") 2>&5
  3036. ac_status=$?
  3037. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3038. test $ac_status = 0; }; then :
  3039. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3040. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3041. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3042. # so that the user can short-circuit this test for compilers unknown to
  3043. # Autoconf.
  3044. for ac_file in $ac_files ''
  3045. do
  3046. test -f "$ac_file" || continue
  3047. case $ac_file in
  3048. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3049. ;;
  3050. [ab].out )
  3051. # We found the default executable, but exeext='' is most
  3052. # certainly right.
  3053. break;;
  3054. *.* )
  3055. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3056. then :; else
  3057. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3058. fi
  3059. # We set ac_cv_exeext here because the later test for it is not
  3060. # safe: cross compilers may not add the suffix if given an `-o'
  3061. # argument, so we may need to know it at that point already.
  3062. # Even if this section looks crufty: it has the advantage of
  3063. # actually working.
  3064. break;;
  3065. * )
  3066. break;;
  3067. esac
  3068. done
  3069. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3070. else
  3071. ac_file=''
  3072. fi
  3073. if test -z "$ac_file"; then :
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3075. $as_echo "no" >&6; }
  3076. $as_echo "$as_me: failed program was:" >&5
  3077. sed 's/^/| /' conftest.$ac_ext >&5
  3078. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3079. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3080. as_fn_error 77 "C compiler cannot create executables
  3081. See \`config.log' for more details" "$LINENO" 5; }
  3082. else
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3084. $as_echo "yes" >&6; }
  3085. fi
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3087. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3089. $as_echo "$ac_file" >&6; }
  3090. ac_exeext=$ac_cv_exeext
  3091. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3092. ac_clean_files=$ac_clean_files_save
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3094. $as_echo_n "checking for suffix of executables... " >&6; }
  3095. if { { ac_try="$ac_link"
  3096. case "(($ac_try" in
  3097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3098. *) ac_try_echo=$ac_try;;
  3099. esac
  3100. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3101. $as_echo "$ac_try_echo"; } >&5
  3102. (eval "$ac_link") 2>&5
  3103. ac_status=$?
  3104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3105. test $ac_status = 0; }; then :
  3106. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3107. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3108. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3109. # `rm'.
  3110. for ac_file in conftest.exe conftest conftest.*; do
  3111. test -f "$ac_file" || continue
  3112. case $ac_file in
  3113. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3114. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3115. break;;
  3116. * ) break;;
  3117. esac
  3118. done
  3119. else
  3120. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3121. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3122. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3123. See \`config.log' for more details" "$LINENO" 5; }
  3124. fi
  3125. rm -f conftest conftest$ac_cv_exeext
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3127. $as_echo "$ac_cv_exeext" >&6; }
  3128. rm -f conftest.$ac_ext
  3129. EXEEXT=$ac_cv_exeext
  3130. ac_exeext=$EXEEXT
  3131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3132. /* end confdefs.h. */
  3133. #include <stdio.h>
  3134. int
  3135. main ()
  3136. {
  3137. FILE *f = fopen ("conftest.out", "w");
  3138. return ferror (f) || fclose (f) != 0;
  3139. ;
  3140. return 0;
  3141. }
  3142. _ACEOF
  3143. ac_clean_files="$ac_clean_files conftest.out"
  3144. # Check that the compiler produces executables we can run. If not, either
  3145. # the compiler is broken, or we cross compile.
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3147. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3148. if test "$cross_compiling" != yes; then
  3149. { { ac_try="$ac_link"
  3150. case "(($ac_try" in
  3151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3152. *) ac_try_echo=$ac_try;;
  3153. esac
  3154. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3155. $as_echo "$ac_try_echo"; } >&5
  3156. (eval "$ac_link") 2>&5
  3157. ac_status=$?
  3158. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3159. test $ac_status = 0; }
  3160. if { ac_try='./conftest$ac_cv_exeext'
  3161. { { case "(($ac_try" in
  3162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3163. *) ac_try_echo=$ac_try;;
  3164. esac
  3165. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3166. $as_echo "$ac_try_echo"; } >&5
  3167. (eval "$ac_try") 2>&5
  3168. ac_status=$?
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3170. test $ac_status = 0; }; }; then
  3171. cross_compiling=no
  3172. else
  3173. if test "$cross_compiling" = maybe; then
  3174. cross_compiling=yes
  3175. else
  3176. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3177. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3178. as_fn_error $? "cannot run C compiled programs.
  3179. If you meant to cross compile, use \`--host'.
  3180. See \`config.log' for more details" "$LINENO" 5; }
  3181. fi
  3182. fi
  3183. fi
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3185. $as_echo "$cross_compiling" >&6; }
  3186. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3187. ac_clean_files=$ac_clean_files_save
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3189. $as_echo_n "checking for suffix of object files... " >&6; }
  3190. if ${ac_cv_objext+:} false; then :
  3191. $as_echo_n "(cached) " >&6
  3192. else
  3193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3194. /* end confdefs.h. */
  3195. int
  3196. main ()
  3197. {
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. rm -f conftest.o conftest.obj
  3203. if { { ac_try="$ac_compile"
  3204. case "(($ac_try" in
  3205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3206. *) ac_try_echo=$ac_try;;
  3207. esac
  3208. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3209. $as_echo "$ac_try_echo"; } >&5
  3210. (eval "$ac_compile") 2>&5
  3211. ac_status=$?
  3212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3213. test $ac_status = 0; }; then :
  3214. for ac_file in conftest.o conftest.obj conftest.*; do
  3215. test -f "$ac_file" || continue;
  3216. case $ac_file in
  3217. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3218. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3219. break;;
  3220. esac
  3221. done
  3222. else
  3223. $as_echo "$as_me: failed program was:" >&5
  3224. sed 's/^/| /' conftest.$ac_ext >&5
  3225. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3226. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3227. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3228. See \`config.log' for more details" "$LINENO" 5; }
  3229. fi
  3230. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3231. fi
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3233. $as_echo "$ac_cv_objext" >&6; }
  3234. OBJEXT=$ac_cv_objext
  3235. ac_objext=$OBJEXT
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3237. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3238. if ${ac_cv_c_compiler_gnu+:} false; then :
  3239. $as_echo_n "(cached) " >&6
  3240. else
  3241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3242. /* end confdefs.h. */
  3243. int
  3244. main ()
  3245. {
  3246. #ifndef __GNUC__
  3247. choke me
  3248. #endif
  3249. ;
  3250. return 0;
  3251. }
  3252. _ACEOF
  3253. if ac_fn_c_try_compile "$LINENO"; then :
  3254. ac_compiler_gnu=yes
  3255. else
  3256. ac_compiler_gnu=no
  3257. fi
  3258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3259. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3260. fi
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3262. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3263. if test $ac_compiler_gnu = yes; then
  3264. GCC=yes
  3265. else
  3266. GCC=
  3267. fi
  3268. ac_test_CFLAGS=${CFLAGS+set}
  3269. ac_save_CFLAGS=$CFLAGS
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3271. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3272. if ${ac_cv_prog_cc_g+:} false; then :
  3273. $as_echo_n "(cached) " >&6
  3274. else
  3275. ac_save_c_werror_flag=$ac_c_werror_flag
  3276. ac_c_werror_flag=yes
  3277. ac_cv_prog_cc_g=no
  3278. CFLAGS="-g"
  3279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3280. /* end confdefs.h. */
  3281. int
  3282. main ()
  3283. {
  3284. ;
  3285. return 0;
  3286. }
  3287. _ACEOF
  3288. if ac_fn_c_try_compile "$LINENO"; then :
  3289. ac_cv_prog_cc_g=yes
  3290. else
  3291. CFLAGS=""
  3292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3293. /* end confdefs.h. */
  3294. int
  3295. main ()
  3296. {
  3297. ;
  3298. return 0;
  3299. }
  3300. _ACEOF
  3301. if ac_fn_c_try_compile "$LINENO"; then :
  3302. else
  3303. ac_c_werror_flag=$ac_save_c_werror_flag
  3304. CFLAGS="-g"
  3305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3306. /* end confdefs.h. */
  3307. int
  3308. main ()
  3309. {
  3310. ;
  3311. return 0;
  3312. }
  3313. _ACEOF
  3314. if ac_fn_c_try_compile "$LINENO"; then :
  3315. ac_cv_prog_cc_g=yes
  3316. fi
  3317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3318. fi
  3319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3320. fi
  3321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3322. ac_c_werror_flag=$ac_save_c_werror_flag
  3323. fi
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3325. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3326. if test "$ac_test_CFLAGS" = set; then
  3327. CFLAGS=$ac_save_CFLAGS
  3328. elif test $ac_cv_prog_cc_g = yes; then
  3329. if test "$GCC" = yes; then
  3330. CFLAGS="-g -O2"
  3331. else
  3332. CFLAGS="-g"
  3333. fi
  3334. else
  3335. if test "$GCC" = yes; then
  3336. CFLAGS="-O2"
  3337. else
  3338. CFLAGS=
  3339. fi
  3340. fi
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3342. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3343. if ${ac_cv_prog_cc_c89+:} false; then :
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. ac_cv_prog_cc_c89=no
  3347. ac_save_CC=$CC
  3348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3349. /* end confdefs.h. */
  3350. #include <stdarg.h>
  3351. #include <stdio.h>
  3352. #include <sys/types.h>
  3353. #include <sys/stat.h>
  3354. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3355. struct buf { int x; };
  3356. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3357. static char *e (p, i)
  3358. char **p;
  3359. int i;
  3360. {
  3361. return p[i];
  3362. }
  3363. static char *f (char * (*g) (char **, int), char **p, ...)
  3364. {
  3365. char *s;
  3366. va_list v;
  3367. va_start (v,p);
  3368. s = g (p, va_arg (v,int));
  3369. va_end (v);
  3370. return s;
  3371. }
  3372. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3373. function prototypes and stuff, but not '\xHH' hex character constants.
  3374. These don't provoke an error unfortunately, instead are silently treated
  3375. as 'x'. The following induces an error, until -std is added to get
  3376. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3377. array size at least. It's necessary to write '\x00'==0 to get something
  3378. that's true only with -std. */
  3379. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3380. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3381. inside strings and character constants. */
  3382. #define FOO(x) 'x'
  3383. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3384. int test (int i, double x);
  3385. struct s1 {int (*f) (int a);};
  3386. struct s2 {int (*f) (double a);};
  3387. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3388. int argc;
  3389. char **argv;
  3390. int
  3391. main ()
  3392. {
  3393. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3394. ;
  3395. return 0;
  3396. }
  3397. _ACEOF
  3398. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3399. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3400. do
  3401. CC="$ac_save_CC $ac_arg"
  3402. if ac_fn_c_try_compile "$LINENO"; then :
  3403. ac_cv_prog_cc_c89=$ac_arg
  3404. fi
  3405. rm -f core conftest.err conftest.$ac_objext
  3406. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3407. done
  3408. rm -f conftest.$ac_ext
  3409. CC=$ac_save_CC
  3410. fi
  3411. # AC_CACHE_VAL
  3412. case "x$ac_cv_prog_cc_c89" in
  3413. x)
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3415. $as_echo "none needed" >&6; } ;;
  3416. xno)
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3418. $as_echo "unsupported" >&6; } ;;
  3419. *)
  3420. CC="$CC $ac_cv_prog_cc_c89"
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3422. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3423. esac
  3424. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3425. fi
  3426. ac_ext=c
  3427. ac_cpp='$CPP $CPPFLAGS'
  3428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3431. depcc="$CC" am_compiler_list=
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3433. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3434. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3435. $as_echo_n "(cached) " >&6
  3436. else
  3437. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3438. # We make a subdir and do the tests there. Otherwise we can end up
  3439. # making bogus files that we don't know about and never remove. For
  3440. # instance it was reported that on HP-UX the gcc test will end up
  3441. # making a dummy file named `D' -- because `-MD' means `put the output
  3442. # in D'.
  3443. mkdir conftest.dir
  3444. # Copy depcomp to subdir because otherwise we won't find it if we're
  3445. # using a relative directory.
  3446. cp "$am_depcomp" conftest.dir
  3447. cd conftest.dir
  3448. # We will build objects and dependencies in a subdirectory because
  3449. # it helps to detect inapplicable dependency modes. For instance
  3450. # both Tru64's cc and ICC support -MD to output dependencies as a
  3451. # side effect of compilation, but ICC will put the dependencies in
  3452. # the current directory while Tru64 will put them in the object
  3453. # directory.
  3454. mkdir sub
  3455. am_cv_CC_dependencies_compiler_type=none
  3456. if test "$am_compiler_list" = ""; then
  3457. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3458. fi
  3459. am__universal=false
  3460. case " $depcc " in #(
  3461. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3462. esac
  3463. for depmode in $am_compiler_list; do
  3464. # Setup a source with many dependencies, because some compilers
  3465. # like to wrap large dependency lists on column 80 (with \), and
  3466. # we should not choose a depcomp mode which is confused by this.
  3467. #
  3468. # We need to recreate these files for each test, as the compiler may
  3469. # overwrite some of them when testing with obscure command lines.
  3470. # This happens at least with the AIX C compiler.
  3471. : > sub/conftest.c
  3472. for i in 1 2 3 4 5 6; do
  3473. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3474. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3475. # Solaris 8's {/usr,}/bin/sh.
  3476. touch sub/conftst$i.h
  3477. done
  3478. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3479. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3480. # mode. It turns out that the SunPro C++ compiler does not properly
  3481. # handle `-M -o', and we need to detect this. Also, some Intel
  3482. # versions had trouble with output in subdirs
  3483. am__obj=sub/conftest.${OBJEXT-o}
  3484. am__minus_obj="-o $am__obj"
  3485. case $depmode in
  3486. gcc)
  3487. # This depmode causes a compiler race in universal mode.
  3488. test "$am__universal" = false || continue
  3489. ;;
  3490. nosideeffect)
  3491. # after this tag, mechanisms are not by side-effect, so they'll
  3492. # only be used when explicitly requested
  3493. if test "x$enable_dependency_tracking" = xyes; then
  3494. continue
  3495. else
  3496. break
  3497. fi
  3498. ;;
  3499. msvisualcpp | msvcmsys)
  3500. # This compiler won't grok `-c -o', but also, the minuso test has
  3501. # not run yet. These depmodes are late enough in the game, and
  3502. # so weak that their functioning should not be impacted.
  3503. am__obj=conftest.${OBJEXT-o}
  3504. am__minus_obj=
  3505. ;;
  3506. none) break ;;
  3507. esac
  3508. if depmode=$depmode \
  3509. source=sub/conftest.c object=$am__obj \
  3510. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3511. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3512. >/dev/null 2>conftest.err &&
  3513. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3514. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3515. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3516. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3517. # icc doesn't choke on unknown options, it will just issue warnings
  3518. # or remarks (even with -Werror). So we grep stderr for any message
  3519. # that says an option was ignored or not supported.
  3520. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3521. # icc: Command line warning: ignoring option '-M'; no argument required
  3522. # The diagnosis changed in icc 8.0:
  3523. # icc: Command line remark: option '-MP' not supported
  3524. if (grep 'ignoring option' conftest.err ||
  3525. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3526. am_cv_CC_dependencies_compiler_type=$depmode
  3527. break
  3528. fi
  3529. fi
  3530. done
  3531. cd ..
  3532. rm -rf conftest.dir
  3533. else
  3534. am_cv_CC_dependencies_compiler_type=none
  3535. fi
  3536. fi
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3538. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3539. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3540. if
  3541. test "x$enable_dependency_tracking" != xno \
  3542. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3543. am__fastdepCC_TRUE=
  3544. am__fastdepCC_FALSE='#'
  3545. else
  3546. am__fastdepCC_TRUE='#'
  3547. am__fastdepCC_FALSE=
  3548. fi
  3549. ac_ext=c
  3550. ac_cpp='$CPP $CPPFLAGS'
  3551. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3552. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3553. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3555. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3556. # On Suns, sometimes $CPP names a directory.
  3557. if test -n "$CPP" && test -d "$CPP"; then
  3558. CPP=
  3559. fi
  3560. if test -z "$CPP"; then
  3561. if ${ac_cv_prog_CPP+:} false; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. # Double quotes because CPP needs to be expanded
  3565. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3566. do
  3567. ac_preproc_ok=false
  3568. for ac_c_preproc_warn_flag in '' yes
  3569. do
  3570. # Use a header file that comes with gcc, so configuring glibc
  3571. # with a fresh cross-compiler works.
  3572. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3573. # <limits.h> exists even on freestanding compilers.
  3574. # On the NeXT, cc -E runs the code through the compiler's parser,
  3575. # not just through cpp. "Syntax error" is here to catch this case.
  3576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3577. /* end confdefs.h. */
  3578. #ifdef __STDC__
  3579. # include <limits.h>
  3580. #else
  3581. # include <assert.h>
  3582. #endif
  3583. Syntax error
  3584. _ACEOF
  3585. if ac_fn_c_try_cpp "$LINENO"; then :
  3586. else
  3587. # Broken: fails on valid input.
  3588. continue
  3589. fi
  3590. rm -f conftest.err conftest.i conftest.$ac_ext
  3591. # OK, works on sane cases. Now check whether nonexistent headers
  3592. # can be detected and how.
  3593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3594. /* end confdefs.h. */
  3595. #include <ac_nonexistent.h>
  3596. _ACEOF
  3597. if ac_fn_c_try_cpp "$LINENO"; then :
  3598. # Broken: success on invalid input.
  3599. continue
  3600. else
  3601. # Passes both tests.
  3602. ac_preproc_ok=:
  3603. break
  3604. fi
  3605. rm -f conftest.err conftest.i conftest.$ac_ext
  3606. done
  3607. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3608. rm -f conftest.i conftest.err conftest.$ac_ext
  3609. if $ac_preproc_ok; then :
  3610. break
  3611. fi
  3612. done
  3613. ac_cv_prog_CPP=$CPP
  3614. fi
  3615. CPP=$ac_cv_prog_CPP
  3616. else
  3617. ac_cv_prog_CPP=$CPP
  3618. fi
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3620. $as_echo "$CPP" >&6; }
  3621. ac_preproc_ok=false
  3622. for ac_c_preproc_warn_flag in '' yes
  3623. do
  3624. # Use a header file that comes with gcc, so configuring glibc
  3625. # with a fresh cross-compiler works.
  3626. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3627. # <limits.h> exists even on freestanding compilers.
  3628. # On the NeXT, cc -E runs the code through the compiler's parser,
  3629. # not just through cpp. "Syntax error" is here to catch this case.
  3630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3631. /* end confdefs.h. */
  3632. #ifdef __STDC__
  3633. # include <limits.h>
  3634. #else
  3635. # include <assert.h>
  3636. #endif
  3637. Syntax error
  3638. _ACEOF
  3639. if ac_fn_c_try_cpp "$LINENO"; then :
  3640. else
  3641. # Broken: fails on valid input.
  3642. continue
  3643. fi
  3644. rm -f conftest.err conftest.i conftest.$ac_ext
  3645. # OK, works on sane cases. Now check whether nonexistent headers
  3646. # can be detected and how.
  3647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3648. /* end confdefs.h. */
  3649. #include <ac_nonexistent.h>
  3650. _ACEOF
  3651. if ac_fn_c_try_cpp "$LINENO"; then :
  3652. # Broken: success on invalid input.
  3653. continue
  3654. else
  3655. # Passes both tests.
  3656. ac_preproc_ok=:
  3657. break
  3658. fi
  3659. rm -f conftest.err conftest.i conftest.$ac_ext
  3660. done
  3661. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3662. rm -f conftest.i conftest.err conftest.$ac_ext
  3663. if $ac_preproc_ok; then :
  3664. else
  3665. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3666. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3667. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3668. See \`config.log' for more details" "$LINENO" 5; }
  3669. fi
  3670. ac_ext=c
  3671. ac_cpp='$CPP $CPPFLAGS'
  3672. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3673. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3674. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3676. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3677. if ${ac_cv_path_GREP+:} false; then :
  3678. $as_echo_n "(cached) " >&6
  3679. else
  3680. if test -z "$GREP"; then
  3681. ac_path_GREP_found=false
  3682. # Loop through the user's path and test for each of PROGNAME-LIST
  3683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3684. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3685. do
  3686. IFS=$as_save_IFS
  3687. test -z "$as_dir" && as_dir=.
  3688. for ac_prog in grep ggrep; do
  3689. for ac_exec_ext in '' $ac_executable_extensions; do
  3690. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3691. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3692. # Check for GNU ac_path_GREP and select it if it is found.
  3693. # Check for GNU $ac_path_GREP
  3694. case `"$ac_path_GREP" --version 2>&1` in
  3695. *GNU*)
  3696. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3697. *)
  3698. ac_count=0
  3699. $as_echo_n 0123456789 >"conftest.in"
  3700. while :
  3701. do
  3702. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3703. mv "conftest.tmp" "conftest.in"
  3704. cp "conftest.in" "conftest.nl"
  3705. $as_echo 'GREP' >> "conftest.nl"
  3706. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3707. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3708. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3709. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3710. # Best one so far, save it but keep looking for a better one
  3711. ac_cv_path_GREP="$ac_path_GREP"
  3712. ac_path_GREP_max=$ac_count
  3713. fi
  3714. # 10*(2^10) chars as input seems more than enough
  3715. test $ac_count -gt 10 && break
  3716. done
  3717. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3718. esac
  3719. $ac_path_GREP_found && break 3
  3720. done
  3721. done
  3722. done
  3723. IFS=$as_save_IFS
  3724. if test -z "$ac_cv_path_GREP"; then
  3725. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3726. fi
  3727. else
  3728. ac_cv_path_GREP=$GREP
  3729. fi
  3730. fi
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3732. $as_echo "$ac_cv_path_GREP" >&6; }
  3733. GREP="$ac_cv_path_GREP"
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3735. $as_echo_n "checking for egrep... " >&6; }
  3736. if ${ac_cv_path_EGREP+:} false; then :
  3737. $as_echo_n "(cached) " >&6
  3738. else
  3739. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3740. then ac_cv_path_EGREP="$GREP -E"
  3741. else
  3742. if test -z "$EGREP"; then
  3743. ac_path_EGREP_found=false
  3744. # Loop through the user's path and test for each of PROGNAME-LIST
  3745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3746. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3747. do
  3748. IFS=$as_save_IFS
  3749. test -z "$as_dir" && as_dir=.
  3750. for ac_prog in egrep; do
  3751. for ac_exec_ext in '' $ac_executable_extensions; do
  3752. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3753. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3754. # Check for GNU ac_path_EGREP and select it if it is found.
  3755. # Check for GNU $ac_path_EGREP
  3756. case `"$ac_path_EGREP" --version 2>&1` in
  3757. *GNU*)
  3758. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3759. *)
  3760. ac_count=0
  3761. $as_echo_n 0123456789 >"conftest.in"
  3762. while :
  3763. do
  3764. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3765. mv "conftest.tmp" "conftest.in"
  3766. cp "conftest.in" "conftest.nl"
  3767. $as_echo 'EGREP' >> "conftest.nl"
  3768. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3769. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3770. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3771. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3772. # Best one so far, save it but keep looking for a better one
  3773. ac_cv_path_EGREP="$ac_path_EGREP"
  3774. ac_path_EGREP_max=$ac_count
  3775. fi
  3776. # 10*(2^10) chars as input seems more than enough
  3777. test $ac_count -gt 10 && break
  3778. done
  3779. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3780. esac
  3781. $ac_path_EGREP_found && break 3
  3782. done
  3783. done
  3784. done
  3785. IFS=$as_save_IFS
  3786. if test -z "$ac_cv_path_EGREP"; then
  3787. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3788. fi
  3789. else
  3790. ac_cv_path_EGREP=$EGREP
  3791. fi
  3792. fi
  3793. fi
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3795. $as_echo "$ac_cv_path_EGREP" >&6; }
  3796. EGREP="$ac_cv_path_EGREP"
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3798. $as_echo_n "checking for ANSI C header files... " >&6; }
  3799. if ${ac_cv_header_stdc+:} false; then :
  3800. $as_echo_n "(cached) " >&6
  3801. else
  3802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3803. /* end confdefs.h. */
  3804. #include <stdlib.h>
  3805. #include <stdarg.h>
  3806. #include <string.h>
  3807. #include <float.h>
  3808. int
  3809. main ()
  3810. {
  3811. ;
  3812. return 0;
  3813. }
  3814. _ACEOF
  3815. if ac_fn_c_try_compile "$LINENO"; then :
  3816. ac_cv_header_stdc=yes
  3817. else
  3818. ac_cv_header_stdc=no
  3819. fi
  3820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3821. if test $ac_cv_header_stdc = yes; then
  3822. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3824. /* end confdefs.h. */
  3825. #include <string.h>
  3826. _ACEOF
  3827. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3828. $EGREP "memchr" >/dev/null 2>&1; then :
  3829. else
  3830. ac_cv_header_stdc=no
  3831. fi
  3832. rm -f conftest*
  3833. fi
  3834. if test $ac_cv_header_stdc = yes; then
  3835. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3837. /* end confdefs.h. */
  3838. #include <stdlib.h>
  3839. _ACEOF
  3840. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3841. $EGREP "free" >/dev/null 2>&1; then :
  3842. else
  3843. ac_cv_header_stdc=no
  3844. fi
  3845. rm -f conftest*
  3846. fi
  3847. if test $ac_cv_header_stdc = yes; then
  3848. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3849. if test "$cross_compiling" = yes; then :
  3850. :
  3851. else
  3852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3853. /* end confdefs.h. */
  3854. #include <ctype.h>
  3855. #include <stdlib.h>
  3856. #if ((' ' & 0x0FF) == 0x020)
  3857. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3858. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3859. #else
  3860. # define ISLOWER(c) \
  3861. (('a' <= (c) && (c) <= 'i') \
  3862. || ('j' <= (c) && (c) <= 'r') \
  3863. || ('s' <= (c) && (c) <= 'z'))
  3864. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3865. #endif
  3866. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3867. int
  3868. main ()
  3869. {
  3870. int i;
  3871. for (i = 0; i < 256; i++)
  3872. if (XOR (islower (i), ISLOWER (i))
  3873. || toupper (i) != TOUPPER (i))
  3874. return 2;
  3875. return 0;
  3876. }
  3877. _ACEOF
  3878. if ac_fn_c_try_run "$LINENO"; then :
  3879. else
  3880. ac_cv_header_stdc=no
  3881. fi
  3882. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3883. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3884. fi
  3885. fi
  3886. fi
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3888. $as_echo "$ac_cv_header_stdc" >&6; }
  3889. if test $ac_cv_header_stdc = yes; then
  3890. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3891. fi
  3892. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3893. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3894. inttypes.h stdint.h unistd.h
  3895. do :
  3896. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3897. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3898. "
  3899. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3900. cat >>confdefs.h <<_ACEOF
  3901. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3902. _ACEOF
  3903. fi
  3904. done
  3905. for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/cdefs.h sys/param.h stdarg.h locale.h
  3906. do :
  3907. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3908. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3909. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3910. cat >>confdefs.h <<_ACEOF
  3911. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3912. _ACEOF
  3913. fi
  3914. done
  3915. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  3916. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  3917. $as_echo "#define JSON_C_HAVE_INTTYPES_H 1" >>confdefs.h
  3918. fi
  3919. # Checks for typedefs, structures, and compiler characteristics.
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3921. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3922. if ${ac_cv_c_const+:} false; then :
  3923. $as_echo_n "(cached) " >&6
  3924. else
  3925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3926. /* end confdefs.h. */
  3927. int
  3928. main ()
  3929. {
  3930. /* FIXME: Include the comments suggested by Paul. */
  3931. #ifndef __cplusplus
  3932. /* Ultrix mips cc rejects this. */
  3933. typedef int charset[2];
  3934. const charset cs;
  3935. /* SunOS 4.1.1 cc rejects this. */
  3936. char const *const *pcpcc;
  3937. char **ppc;
  3938. /* NEC SVR4.0.2 mips cc rejects this. */
  3939. struct point {int x, y;};
  3940. static struct point const zero = {0,0};
  3941. /* AIX XL C 1.02.0.0 rejects this.
  3942. It does not let you subtract one const X* pointer from another in
  3943. an arm of an if-expression whose if-part is not a constant
  3944. expression */
  3945. const char *g = "string";
  3946. pcpcc = &g + (g ? g-g : 0);
  3947. /* HPUX 7.0 cc rejects these. */
  3948. ++pcpcc;
  3949. ppc = (char**) pcpcc;
  3950. pcpcc = (char const *const *) ppc;
  3951. { /* SCO 3.2v4 cc rejects this. */
  3952. char *t;
  3953. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3954. *t++ = 0;
  3955. if (s) return 0;
  3956. }
  3957. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3958. int x[] = {25, 17};
  3959. const int *foo = &x[0];
  3960. ++foo;
  3961. }
  3962. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3963. typedef const int *iptr;
  3964. iptr p = 0;
  3965. ++p;
  3966. }
  3967. { /* AIX XL C 1.02.0.0 rejects this saying
  3968. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3969. struct s { int j; const int *ap[3]; };
  3970. struct s *b; b->j = 5;
  3971. }
  3972. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3973. const int foo = 10;
  3974. if (!foo) return 0;
  3975. }
  3976. return !cs[0] && !zero.x;
  3977. #endif
  3978. ;
  3979. return 0;
  3980. }
  3981. _ACEOF
  3982. if ac_fn_c_try_compile "$LINENO"; then :
  3983. ac_cv_c_const=yes
  3984. else
  3985. ac_cv_c_const=no
  3986. fi
  3987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3988. fi
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3990. $as_echo "$ac_cv_c_const" >&6; }
  3991. if test $ac_cv_c_const = no; then
  3992. $as_echo "#define const /**/" >>confdefs.h
  3993. fi
  3994. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3995. if test "x$ac_cv_type_size_t" = xyes; then :
  3996. else
  3997. cat >>confdefs.h <<_ACEOF
  3998. #define size_t unsigned int
  3999. _ACEOF
  4000. fi
  4001. # Checks for library functions.
  4002. for ac_func in vprintf
  4003. do :
  4004. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  4005. if test "x$ac_cv_func_vprintf" = xyes; then :
  4006. cat >>confdefs.h <<_ACEOF
  4007. #define HAVE_VPRINTF 1
  4008. _ACEOF
  4009. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  4010. if test "x$ac_cv_func__doprnt" = xyes; then :
  4011. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  4012. fi
  4013. fi
  4014. done
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  4016. $as_echo_n "checking for working memcmp... " >&6; }
  4017. if ${ac_cv_func_memcmp_working+:} false; then :
  4018. $as_echo_n "(cached) " >&6
  4019. else
  4020. if test "$cross_compiling" = yes; then :
  4021. ac_cv_func_memcmp_working=no
  4022. else
  4023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4024. /* end confdefs.h. */
  4025. $ac_includes_default
  4026. int
  4027. main ()
  4028. {
  4029. /* Some versions of memcmp are not 8-bit clean. */
  4030. char c0 = '\100', c1 = '\200', c2 = '\201';
  4031. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  4032. return 1;
  4033. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  4034. or more and with at least one buffer not starting on a 4-byte boundary.
  4035. William Lewis provided this test program. */
  4036. {
  4037. char foo[21];
  4038. char bar[21];
  4039. int i;
  4040. for (i = 0; i < 4; i++)
  4041. {
  4042. char *a = foo + i;
  4043. char *b = bar + i;
  4044. strcpy (a, "--------01111111");
  4045. strcpy (b, "--------10000000");
  4046. if (memcmp (a, b, 16) >= 0)
  4047. return 1;
  4048. }
  4049. return 0;
  4050. }
  4051. ;
  4052. return 0;
  4053. }
  4054. _ACEOF
  4055. if ac_fn_c_try_run "$LINENO"; then :
  4056. ac_cv_func_memcmp_working=yes
  4057. else
  4058. ac_cv_func_memcmp_working=no
  4059. fi
  4060. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4061. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4062. fi
  4063. fi
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  4065. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  4066. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  4067. *" memcmp.$ac_objext "* ) ;;
  4068. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  4069. ;;
  4070. esac
  4071. for ac_header in stdlib.h
  4072. do :
  4073. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4074. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  4075. cat >>confdefs.h <<_ACEOF
  4076. #define HAVE_STDLIB_H 1
  4077. _ACEOF
  4078. fi
  4079. done
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  4081. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  4082. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  4083. $as_echo_n "(cached) " >&6
  4084. else
  4085. if test "$cross_compiling" = yes; then :
  4086. ac_cv_func_malloc_0_nonnull=no
  4087. else
  4088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4089. /* end confdefs.h. */
  4090. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  4091. # include <stdlib.h>
  4092. #else
  4093. char *malloc ();
  4094. #endif
  4095. int
  4096. main ()
  4097. {
  4098. return ! malloc (0);
  4099. ;
  4100. return 0;
  4101. }
  4102. _ACEOF
  4103. if ac_fn_c_try_run "$LINENO"; then :
  4104. ac_cv_func_malloc_0_nonnull=yes
  4105. else
  4106. ac_cv_func_malloc_0_nonnull=no
  4107. fi
  4108. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4109. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4110. fi
  4111. fi
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  4113. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  4114. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  4115. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  4116. else
  4117. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  4118. case " $LIBOBJS " in
  4119. *" malloc.$ac_objext "* ) ;;
  4120. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  4121. ;;
  4122. esac
  4123. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  4124. fi
  4125. for ac_header in stdlib.h
  4126. do :
  4127. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4128. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  4129. cat >>confdefs.h <<_ACEOF
  4130. #define HAVE_STDLIB_H 1
  4131. _ACEOF
  4132. fi
  4133. done
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  4135. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  4136. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  4137. $as_echo_n "(cached) " >&6
  4138. else
  4139. if test "$cross_compiling" = yes; then :
  4140. ac_cv_func_realloc_0_nonnull=no
  4141. else
  4142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4143. /* end confdefs.h. */
  4144. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  4145. # include <stdlib.h>
  4146. #else
  4147. char *realloc ();
  4148. #endif
  4149. int
  4150. main ()
  4151. {
  4152. return ! realloc (0, 0);
  4153. ;
  4154. return 0;
  4155. }
  4156. _ACEOF
  4157. if ac_fn_c_try_run "$LINENO"; then :
  4158. ac_cv_func_realloc_0_nonnull=yes
  4159. else
  4160. ac_cv_func_realloc_0_nonnull=no
  4161. fi
  4162. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4163. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4164. fi
  4165. fi
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  4167. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  4168. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  4169. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  4170. else
  4171. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  4172. case " $LIBOBJS " in
  4173. *" realloc.$ac_objext "* ) ;;
  4174. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  4175. ;;
  4176. esac
  4177. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  4178. fi
  4179. for ac_func in strcasecmp strdup strndup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale
  4180. do :
  4181. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4182. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4183. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4184. cat >>confdefs.h <<_ACEOF
  4185. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4186. _ACEOF
  4187. fi
  4188. done
  4189. #check if .section.gnu.warning accepts long strings (for __warn_references)
  4190. ac_ext=c
  4191. ac_cpp='$CPP $CPPFLAGS'
  4192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .gnu.warning accepts long strings" >&5
  4196. $as_echo_n "checking if .gnu.warning accepts long strings... " >&6; }
  4197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4198. /* end confdefs.h. */
  4199. extern void json_object_get();
  4200. __asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libjson-c instead of libjson\"\n\t.text");
  4201. int main(int c,char* v) {return 0;}
  4202. _ACEOF
  4203. if ac_fn_c_try_link "$LINENO"; then :
  4204. $as_echo "#define HAS_GNU_WARNING_LONG 1" >>confdefs.h
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4206. $as_echo "yes" >&6; }
  4207. else
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4209. $as_echo "no" >&6; }
  4210. fi
  4211. rm -f core conftest.err conftest.$ac_objext \
  4212. conftest$ac_exeext conftest.$ac_ext
  4213. ac_ext=c
  4214. ac_cpp='$CPP $CPPFLAGS'
  4215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4218. case `pwd` in
  4219. *\ * | *\ *)
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4221. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4222. esac
  4223. macro_version='2.2.6b'
  4224. macro_revision='1.3017'
  4225. ltmain="$ac_aux_dir/ltmain.sh"
  4226. # Make sure we can run config.sub.
  4227. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4228. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4230. $as_echo_n "checking build system type... " >&6; }
  4231. if ${ac_cv_build+:} false; then :
  4232. $as_echo_n "(cached) " >&6
  4233. else
  4234. ac_build_alias=$build_alias
  4235. test "x$ac_build_alias" = x &&
  4236. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4237. test "x$ac_build_alias" = x &&
  4238. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4239. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4240. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4241. fi
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4243. $as_echo "$ac_cv_build" >&6; }
  4244. case $ac_cv_build in
  4245. *-*-*) ;;
  4246. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4247. esac
  4248. build=$ac_cv_build
  4249. ac_save_IFS=$IFS; IFS='-'
  4250. set x $ac_cv_build
  4251. shift
  4252. build_cpu=$1
  4253. build_vendor=$2
  4254. shift; shift
  4255. # Remember, the first character of IFS is used to create $*,
  4256. # except with old shells:
  4257. build_os=$*
  4258. IFS=$ac_save_IFS
  4259. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4261. $as_echo_n "checking host system type... " >&6; }
  4262. if ${ac_cv_host+:} false; then :
  4263. $as_echo_n "(cached) " >&6
  4264. else
  4265. if test "x$host_alias" = x; then
  4266. ac_cv_host=$ac_cv_build
  4267. else
  4268. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4269. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4270. fi
  4271. fi
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4273. $as_echo "$ac_cv_host" >&6; }
  4274. case $ac_cv_host in
  4275. *-*-*) ;;
  4276. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4277. esac
  4278. host=$ac_cv_host
  4279. ac_save_IFS=$IFS; IFS='-'
  4280. set x $ac_cv_host
  4281. shift
  4282. host_cpu=$1
  4283. host_vendor=$2
  4284. shift; shift
  4285. # Remember, the first character of IFS is used to create $*,
  4286. # except with old shells:
  4287. host_os=$*
  4288. IFS=$ac_save_IFS
  4289. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4291. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4292. if ${ac_cv_path_SED+:} false; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4296. for ac_i in 1 2 3 4 5 6 7; do
  4297. ac_script="$ac_script$as_nl$ac_script"
  4298. done
  4299. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4300. { ac_script=; unset ac_script;}
  4301. if test -z "$SED"; then
  4302. ac_path_SED_found=false
  4303. # Loop through the user's path and test for each of PROGNAME-LIST
  4304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4305. for as_dir in $PATH
  4306. do
  4307. IFS=$as_save_IFS
  4308. test -z "$as_dir" && as_dir=.
  4309. for ac_prog in sed gsed; do
  4310. for ac_exec_ext in '' $ac_executable_extensions; do
  4311. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4312. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4313. # Check for GNU ac_path_SED and select it if it is found.
  4314. # Check for GNU $ac_path_SED
  4315. case `"$ac_path_SED" --version 2>&1` in
  4316. *GNU*)
  4317. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4318. *)
  4319. ac_count=0
  4320. $as_echo_n 0123456789 >"conftest.in"
  4321. while :
  4322. do
  4323. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4324. mv "conftest.tmp" "conftest.in"
  4325. cp "conftest.in" "conftest.nl"
  4326. $as_echo '' >> "conftest.nl"
  4327. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4328. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4329. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4330. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4331. # Best one so far, save it but keep looking for a better one
  4332. ac_cv_path_SED="$ac_path_SED"
  4333. ac_path_SED_max=$ac_count
  4334. fi
  4335. # 10*(2^10) chars as input seems more than enough
  4336. test $ac_count -gt 10 && break
  4337. done
  4338. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4339. esac
  4340. $ac_path_SED_found && break 3
  4341. done
  4342. done
  4343. done
  4344. IFS=$as_save_IFS
  4345. if test -z "$ac_cv_path_SED"; then
  4346. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4347. fi
  4348. else
  4349. ac_cv_path_SED=$SED
  4350. fi
  4351. fi
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4353. $as_echo "$ac_cv_path_SED" >&6; }
  4354. SED="$ac_cv_path_SED"
  4355. rm -f conftest.sed
  4356. test -z "$SED" && SED=sed
  4357. Xsed="$SED -e 1s/^X//"
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4359. $as_echo_n "checking for fgrep... " >&6; }
  4360. if ${ac_cv_path_FGREP+:} false; then :
  4361. $as_echo_n "(cached) " >&6
  4362. else
  4363. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4364. then ac_cv_path_FGREP="$GREP -F"
  4365. else
  4366. if test -z "$FGREP"; then
  4367. ac_path_FGREP_found=false
  4368. # Loop through the user's path and test for each of PROGNAME-LIST
  4369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4370. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4371. do
  4372. IFS=$as_save_IFS
  4373. test -z "$as_dir" && as_dir=.
  4374. for ac_prog in fgrep; do
  4375. for ac_exec_ext in '' $ac_executable_extensions; do
  4376. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4377. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4378. # Check for GNU ac_path_FGREP and select it if it is found.
  4379. # Check for GNU $ac_path_FGREP
  4380. case `"$ac_path_FGREP" --version 2>&1` in
  4381. *GNU*)
  4382. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4383. *)
  4384. ac_count=0
  4385. $as_echo_n 0123456789 >"conftest.in"
  4386. while :
  4387. do
  4388. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4389. mv "conftest.tmp" "conftest.in"
  4390. cp "conftest.in" "conftest.nl"
  4391. $as_echo 'FGREP' >> "conftest.nl"
  4392. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4393. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4394. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4395. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4396. # Best one so far, save it but keep looking for a better one
  4397. ac_cv_path_FGREP="$ac_path_FGREP"
  4398. ac_path_FGREP_max=$ac_count
  4399. fi
  4400. # 10*(2^10) chars as input seems more than enough
  4401. test $ac_count -gt 10 && break
  4402. done
  4403. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4404. esac
  4405. $ac_path_FGREP_found && break 3
  4406. done
  4407. done
  4408. done
  4409. IFS=$as_save_IFS
  4410. if test -z "$ac_cv_path_FGREP"; then
  4411. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4412. fi
  4413. else
  4414. ac_cv_path_FGREP=$FGREP
  4415. fi
  4416. fi
  4417. fi
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4419. $as_echo "$ac_cv_path_FGREP" >&6; }
  4420. FGREP="$ac_cv_path_FGREP"
  4421. test -z "$GREP" && GREP=grep
  4422. # Check whether --with-gnu-ld was given.
  4423. if test "${with_gnu_ld+set}" = set; then :
  4424. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4425. else
  4426. with_gnu_ld=no
  4427. fi
  4428. ac_prog=ld
  4429. if test "$GCC" = yes; then
  4430. # Check if gcc -print-prog-name=ld gives a path.
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4432. $as_echo_n "checking for ld used by $CC... " >&6; }
  4433. case $host in
  4434. *-*-mingw*)
  4435. # gcc leaves a trailing carriage return which upsets mingw
  4436. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4437. *)
  4438. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4439. esac
  4440. case $ac_prog in
  4441. # Accept absolute paths.
  4442. [\\/]* | ?:[\\/]*)
  4443. re_direlt='/[^/][^/]*/\.\./'
  4444. # Canonicalize the pathname of ld
  4445. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4446. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4447. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4448. done
  4449. test -z "$LD" && LD="$ac_prog"
  4450. ;;
  4451. "")
  4452. # If it fails, then pretend we aren't using GCC.
  4453. ac_prog=ld
  4454. ;;
  4455. *)
  4456. # If it is relative, then search for the first ld in PATH.
  4457. with_gnu_ld=unknown
  4458. ;;
  4459. esac
  4460. elif test "$with_gnu_ld" = yes; then
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4462. $as_echo_n "checking for GNU ld... " >&6; }
  4463. else
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4465. $as_echo_n "checking for non-GNU ld... " >&6; }
  4466. fi
  4467. if ${lt_cv_path_LD+:} false; then :
  4468. $as_echo_n "(cached) " >&6
  4469. else
  4470. if test -z "$LD"; then
  4471. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4472. for ac_dir in $PATH; do
  4473. IFS="$lt_save_ifs"
  4474. test -z "$ac_dir" && ac_dir=.
  4475. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4476. lt_cv_path_LD="$ac_dir/$ac_prog"
  4477. # Check to see if the program is GNU ld. I'd rather use --version,
  4478. # but apparently some variants of GNU ld only accept -v.
  4479. # Break only if it was the GNU/non-GNU ld that we prefer.
  4480. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4481. *GNU* | *'with BFD'*)
  4482. test "$with_gnu_ld" != no && break
  4483. ;;
  4484. *)
  4485. test "$with_gnu_ld" != yes && break
  4486. ;;
  4487. esac
  4488. fi
  4489. done
  4490. IFS="$lt_save_ifs"
  4491. else
  4492. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4493. fi
  4494. fi
  4495. LD="$lt_cv_path_LD"
  4496. if test -n "$LD"; then
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4498. $as_echo "$LD" >&6; }
  4499. else
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4501. $as_echo "no" >&6; }
  4502. fi
  4503. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4505. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4506. if ${lt_cv_prog_gnu_ld+:} false; then :
  4507. $as_echo_n "(cached) " >&6
  4508. else
  4509. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4510. case `$LD -v 2>&1 </dev/null` in
  4511. *GNU* | *'with BFD'*)
  4512. lt_cv_prog_gnu_ld=yes
  4513. ;;
  4514. *)
  4515. lt_cv_prog_gnu_ld=no
  4516. ;;
  4517. esac
  4518. fi
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4520. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4521. with_gnu_ld=$lt_cv_prog_gnu_ld
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4523. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4524. if ${lt_cv_path_NM+:} false; then :
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. if test -n "$NM"; then
  4528. # Let the user override the test.
  4529. lt_cv_path_NM="$NM"
  4530. else
  4531. lt_nm_to_check="${ac_tool_prefix}nm"
  4532. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4533. lt_nm_to_check="$lt_nm_to_check nm"
  4534. fi
  4535. for lt_tmp_nm in $lt_nm_to_check; do
  4536. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4537. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4538. IFS="$lt_save_ifs"
  4539. test -z "$ac_dir" && ac_dir=.
  4540. tmp_nm="$ac_dir/$lt_tmp_nm"
  4541. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4542. # Check to see if the nm accepts a BSD-compat flag.
  4543. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4544. # nm: unknown option "B" ignored
  4545. # Tru64's nm complains that /dev/null is an invalid object file
  4546. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4547. */dev/null* | *'Invalid file or object type'*)
  4548. lt_cv_path_NM="$tmp_nm -B"
  4549. break
  4550. ;;
  4551. *)
  4552. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4553. */dev/null*)
  4554. lt_cv_path_NM="$tmp_nm -p"
  4555. break
  4556. ;;
  4557. *)
  4558. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4559. continue # so that we can try to find one that supports BSD flags
  4560. ;;
  4561. esac
  4562. ;;
  4563. esac
  4564. fi
  4565. done
  4566. IFS="$lt_save_ifs"
  4567. done
  4568. : ${lt_cv_path_NM=no}
  4569. fi
  4570. fi
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4572. $as_echo "$lt_cv_path_NM" >&6; }
  4573. if test "$lt_cv_path_NM" != "no"; then
  4574. NM="$lt_cv_path_NM"
  4575. else
  4576. # Didn't find any BSD compatible name lister, look for dumpbin.
  4577. if test -n "$ac_tool_prefix"; then
  4578. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4579. do
  4580. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4581. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4583. $as_echo_n "checking for $ac_word... " >&6; }
  4584. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. if test -n "$DUMPBIN"; then
  4588. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4589. else
  4590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4591. for as_dir in $PATH
  4592. do
  4593. IFS=$as_save_IFS
  4594. test -z "$as_dir" && as_dir=.
  4595. for ac_exec_ext in '' $ac_executable_extensions; do
  4596. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4597. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4599. break 2
  4600. fi
  4601. done
  4602. done
  4603. IFS=$as_save_IFS
  4604. fi
  4605. fi
  4606. DUMPBIN=$ac_cv_prog_DUMPBIN
  4607. if test -n "$DUMPBIN"; then
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4609. $as_echo "$DUMPBIN" >&6; }
  4610. else
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4612. $as_echo "no" >&6; }
  4613. fi
  4614. test -n "$DUMPBIN" && break
  4615. done
  4616. fi
  4617. if test -z "$DUMPBIN"; then
  4618. ac_ct_DUMPBIN=$DUMPBIN
  4619. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4620. do
  4621. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4622. set dummy $ac_prog; ac_word=$2
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4624. $as_echo_n "checking for $ac_word... " >&6; }
  4625. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4626. $as_echo_n "(cached) " >&6
  4627. else
  4628. if test -n "$ac_ct_DUMPBIN"; then
  4629. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4630. else
  4631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4632. for as_dir in $PATH
  4633. do
  4634. IFS=$as_save_IFS
  4635. test -z "$as_dir" && as_dir=.
  4636. for ac_exec_ext in '' $ac_executable_extensions; do
  4637. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4638. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4640. break 2
  4641. fi
  4642. done
  4643. done
  4644. IFS=$as_save_IFS
  4645. fi
  4646. fi
  4647. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4648. if test -n "$ac_ct_DUMPBIN"; then
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4650. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4651. else
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4653. $as_echo "no" >&6; }
  4654. fi
  4655. test -n "$ac_ct_DUMPBIN" && break
  4656. done
  4657. if test "x$ac_ct_DUMPBIN" = x; then
  4658. DUMPBIN=":"
  4659. else
  4660. case $cross_compiling:$ac_tool_warned in
  4661. yes:)
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4664. ac_tool_warned=yes ;;
  4665. esac
  4666. DUMPBIN=$ac_ct_DUMPBIN
  4667. fi
  4668. fi
  4669. if test "$DUMPBIN" != ":"; then
  4670. NM="$DUMPBIN"
  4671. fi
  4672. fi
  4673. test -z "$NM" && NM=nm
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4675. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4676. if ${lt_cv_nm_interface+:} false; then :
  4677. $as_echo_n "(cached) " >&6
  4678. else
  4679. lt_cv_nm_interface="BSD nm"
  4680. echo "int some_variable = 0;" > conftest.$ac_ext
  4681. (eval echo "\"\$as_me:5251: $ac_compile\"" >&5)
  4682. (eval "$ac_compile" 2>conftest.err)
  4683. cat conftest.err >&5
  4684. (eval echo "\"\$as_me:5254: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4685. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4686. cat conftest.err >&5
  4687. (eval echo "\"\$as_me:5257: output\"" >&5)
  4688. cat conftest.out >&5
  4689. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4690. lt_cv_nm_interface="MS dumpbin"
  4691. fi
  4692. rm -f conftest*
  4693. fi
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4695. $as_echo "$lt_cv_nm_interface" >&6; }
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4697. $as_echo_n "checking whether ln -s works... " >&6; }
  4698. LN_S=$as_ln_s
  4699. if test "$LN_S" = "ln -s"; then
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4701. $as_echo "yes" >&6; }
  4702. else
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4704. $as_echo "no, using $LN_S" >&6; }
  4705. fi
  4706. # find the maximum length of command line arguments
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4708. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4709. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4710. $as_echo_n "(cached) " >&6
  4711. else
  4712. i=0
  4713. teststring="ABCD"
  4714. case $build_os in
  4715. msdosdjgpp*)
  4716. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4717. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4718. # during glob expansion). Even if it were fixed, the result of this
  4719. # check would be larger than it should be.
  4720. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4721. ;;
  4722. gnu*)
  4723. # Under GNU Hurd, this test is not required because there is
  4724. # no limit to the length of command line arguments.
  4725. # Libtool will interpret -1 as no limit whatsoever
  4726. lt_cv_sys_max_cmd_len=-1;
  4727. ;;
  4728. cygwin* | mingw* | cegcc*)
  4729. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4730. # about 5 minutes as the teststring grows exponentially.
  4731. # Worse, since 9x/ME are not pre-emptively multitasking,
  4732. # you end up with a "frozen" computer, even though with patience
  4733. # the test eventually succeeds (with a max line length of 256k).
  4734. # Instead, let's just punt: use the minimum linelength reported by
  4735. # all of the supported platforms: 8192 (on NT/2K/XP).
  4736. lt_cv_sys_max_cmd_len=8192;
  4737. ;;
  4738. amigaos*)
  4739. # On AmigaOS with pdksh, this test takes hours, literally.
  4740. # So we just punt and use a minimum line length of 8192.
  4741. lt_cv_sys_max_cmd_len=8192;
  4742. ;;
  4743. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4744. # This has been around since 386BSD, at least. Likely further.
  4745. if test -x /sbin/sysctl; then
  4746. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4747. elif test -x /usr/sbin/sysctl; then
  4748. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4749. else
  4750. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4751. fi
  4752. # And add a safety zone
  4753. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4754. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4755. ;;
  4756. interix*)
  4757. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4758. lt_cv_sys_max_cmd_len=196608
  4759. ;;
  4760. osf*)
  4761. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4762. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4763. # nice to cause kernel panics so lets avoid the loop below.
  4764. # First set a reasonable default.
  4765. lt_cv_sys_max_cmd_len=16384
  4766. #
  4767. if test -x /sbin/sysconfig; then
  4768. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4769. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4770. esac
  4771. fi
  4772. ;;
  4773. sco3.2v5*)
  4774. lt_cv_sys_max_cmd_len=102400
  4775. ;;
  4776. sysv5* | sco5v6* | sysv4.2uw2*)
  4777. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4778. if test -n "$kargmax"; then
  4779. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4780. else
  4781. lt_cv_sys_max_cmd_len=32768
  4782. fi
  4783. ;;
  4784. *)
  4785. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4786. if test -n "$lt_cv_sys_max_cmd_len"; then
  4787. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4788. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4789. else
  4790. # Make teststring a little bigger before we do anything with it.
  4791. # a 1K string should be a reasonable start.
  4792. for i in 1 2 3 4 5 6 7 8 ; do
  4793. teststring=$teststring$teststring
  4794. done
  4795. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4796. # If test is not a shell built-in, we'll probably end up computing a
  4797. # maximum length that is only half of the actual maximum length, but
  4798. # we can't tell.
  4799. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4800. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4801. test $i != 17 # 1/2 MB should be enough
  4802. do
  4803. i=`expr $i + 1`
  4804. teststring=$teststring$teststring
  4805. done
  4806. # Only check the string length outside the loop.
  4807. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4808. teststring=
  4809. # Add a significant safety factor because C++ compilers can tack on
  4810. # massive amounts of additional arguments before passing them to the
  4811. # linker. It appears as though 1/2 is a usable value.
  4812. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4813. fi
  4814. ;;
  4815. esac
  4816. fi
  4817. if test -n $lt_cv_sys_max_cmd_len ; then
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4819. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4820. else
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4822. $as_echo "none" >&6; }
  4823. fi
  4824. max_cmd_len=$lt_cv_sys_max_cmd_len
  4825. : ${CP="cp -f"}
  4826. : ${MV="mv -f"}
  4827. : ${RM="rm -f"}
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4829. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4830. # Try some XSI features
  4831. xsi_shell=no
  4832. ( _lt_dummy="a/b/c"
  4833. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4834. = c,a/b,, \
  4835. && eval 'test $(( 1 + 1 )) -eq 2 \
  4836. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4837. && xsi_shell=yes
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4839. $as_echo "$xsi_shell" >&6; }
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4841. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4842. lt_shell_append=no
  4843. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4844. >/dev/null 2>&1 \
  4845. && lt_shell_append=yes
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4847. $as_echo "$lt_shell_append" >&6; }
  4848. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4849. lt_unset=unset
  4850. else
  4851. lt_unset=false
  4852. fi
  4853. # test EBCDIC or ASCII
  4854. case `echo X|tr X '\101'` in
  4855. A) # ASCII based system
  4856. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4857. lt_SP2NL='tr \040 \012'
  4858. lt_NL2SP='tr \015\012 \040\040'
  4859. ;;
  4860. *) # EBCDIC based system
  4861. lt_SP2NL='tr \100 \n'
  4862. lt_NL2SP='tr \r\n \100\100'
  4863. ;;
  4864. esac
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4866. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4867. if ${lt_cv_ld_reload_flag+:} false; then :
  4868. $as_echo_n "(cached) " >&6
  4869. else
  4870. lt_cv_ld_reload_flag='-r'
  4871. fi
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4873. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4874. reload_flag=$lt_cv_ld_reload_flag
  4875. case $reload_flag in
  4876. "" | " "*) ;;
  4877. *) reload_flag=" $reload_flag" ;;
  4878. esac
  4879. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4880. case $host_os in
  4881. darwin*)
  4882. if test "$GCC" = yes; then
  4883. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4884. else
  4885. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4886. fi
  4887. ;;
  4888. esac
  4889. if test -n "$ac_tool_prefix"; then
  4890. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4891. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4893. $as_echo_n "checking for $ac_word... " >&6; }
  4894. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4895. $as_echo_n "(cached) " >&6
  4896. else
  4897. if test -n "$OBJDUMP"; then
  4898. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4899. else
  4900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4901. for as_dir in $PATH
  4902. do
  4903. IFS=$as_save_IFS
  4904. test -z "$as_dir" && as_dir=.
  4905. for ac_exec_ext in '' $ac_executable_extensions; do
  4906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4907. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4909. break 2
  4910. fi
  4911. done
  4912. done
  4913. IFS=$as_save_IFS
  4914. fi
  4915. fi
  4916. OBJDUMP=$ac_cv_prog_OBJDUMP
  4917. if test -n "$OBJDUMP"; then
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4919. $as_echo "$OBJDUMP" >&6; }
  4920. else
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4922. $as_echo "no" >&6; }
  4923. fi
  4924. fi
  4925. if test -z "$ac_cv_prog_OBJDUMP"; then
  4926. ac_ct_OBJDUMP=$OBJDUMP
  4927. # Extract the first word of "objdump", so it can be a program name with args.
  4928. set dummy objdump; ac_word=$2
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4930. $as_echo_n "checking for $ac_word... " >&6; }
  4931. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4932. $as_echo_n "(cached) " >&6
  4933. else
  4934. if test -n "$ac_ct_OBJDUMP"; then
  4935. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4936. else
  4937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4938. for as_dir in $PATH
  4939. do
  4940. IFS=$as_save_IFS
  4941. test -z "$as_dir" && as_dir=.
  4942. for ac_exec_ext in '' $ac_executable_extensions; do
  4943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4944. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4946. break 2
  4947. fi
  4948. done
  4949. done
  4950. IFS=$as_save_IFS
  4951. fi
  4952. fi
  4953. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4954. if test -n "$ac_ct_OBJDUMP"; then
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4956. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4957. else
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4959. $as_echo "no" >&6; }
  4960. fi
  4961. if test "x$ac_ct_OBJDUMP" = x; then
  4962. OBJDUMP="false"
  4963. else
  4964. case $cross_compiling:$ac_tool_warned in
  4965. yes:)
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4967. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4968. ac_tool_warned=yes ;;
  4969. esac
  4970. OBJDUMP=$ac_ct_OBJDUMP
  4971. fi
  4972. else
  4973. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4974. fi
  4975. test -z "$OBJDUMP" && OBJDUMP=objdump
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4977. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4978. if ${lt_cv_deplibs_check_method+:} false; then :
  4979. $as_echo_n "(cached) " >&6
  4980. else
  4981. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4982. lt_cv_file_magic_test_file=
  4983. lt_cv_deplibs_check_method='unknown'
  4984. # Need to set the preceding variable on all platforms that support
  4985. # interlibrary dependencies.
  4986. # 'none' -- dependencies not supported.
  4987. # `unknown' -- same as none, but documents that we really don't know.
  4988. # 'pass_all' -- all dependencies passed with no checks.
  4989. # 'test_compile' -- check by making test program.
  4990. # 'file_magic [[regex]]' -- check by looking for files in library path
  4991. # which responds to the $file_magic_cmd with a given extended regex.
  4992. # If you have `file' or equivalent on your system and you're not sure
  4993. # whether `pass_all' will *always* work, you probably want this one.
  4994. case $host_os in
  4995. aix[4-9]*)
  4996. lt_cv_deplibs_check_method=pass_all
  4997. ;;
  4998. beos*)
  4999. lt_cv_deplibs_check_method=pass_all
  5000. ;;
  5001. bsdi[45]*)
  5002. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5003. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5004. lt_cv_file_magic_test_file=/shlib/libc.so
  5005. ;;
  5006. cygwin*)
  5007. # func_win32_libid is a shell function defined in ltmain.sh
  5008. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5009. lt_cv_file_magic_cmd='func_win32_libid'
  5010. ;;
  5011. mingw* | pw32*)
  5012. # Base MSYS/MinGW do not provide the 'file' command needed by
  5013. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5014. # unless we find 'file', for example because we are cross-compiling.
  5015. if ( file / ) >/dev/null 2>&1; then
  5016. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5017. lt_cv_file_magic_cmd='func_win32_libid'
  5018. else
  5019. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5020. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5021. fi
  5022. ;;
  5023. cegcc)
  5024. # use the weaker test based on 'objdump'. See mingw*.
  5025. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5026. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5027. ;;
  5028. darwin* | rhapsody*)
  5029. lt_cv_deplibs_check_method=pass_all
  5030. ;;
  5031. freebsd* | dragonfly*)
  5032. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5033. case $host_cpu in
  5034. i*86 )
  5035. # Not sure whether the presence of OpenBSD here was a mistake.
  5036. # Let's accept both of them until this is cleared up.
  5037. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5038. lt_cv_file_magic_cmd=/usr/bin/file
  5039. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5040. ;;
  5041. esac
  5042. else
  5043. lt_cv_deplibs_check_method=pass_all
  5044. fi
  5045. ;;
  5046. gnu*)
  5047. lt_cv_deplibs_check_method=pass_all
  5048. ;;
  5049. hpux10.20* | hpux11*)
  5050. lt_cv_file_magic_cmd=/usr/bin/file
  5051. case $host_cpu in
  5052. ia64*)
  5053. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5054. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5055. ;;
  5056. hppa*64*)
  5057. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5058. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5059. ;;
  5060. *)
  5061. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5062. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5063. ;;
  5064. esac
  5065. ;;
  5066. interix[3-9]*)
  5067. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5068. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5069. ;;
  5070. irix5* | irix6* | nonstopux*)
  5071. case $LD in
  5072. *-32|*"-32 ") libmagic=32-bit;;
  5073. *-n32|*"-n32 ") libmagic=N32;;
  5074. *-64|*"-64 ") libmagic=64-bit;;
  5075. *) libmagic=never-match;;
  5076. esac
  5077. lt_cv_deplibs_check_method=pass_all
  5078. ;;
  5079. # This must be Linux ELF.
  5080. linux* | k*bsd*-gnu)
  5081. lt_cv_deplibs_check_method=pass_all
  5082. ;;
  5083. netbsd*)
  5084. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5085. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5086. else
  5087. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5088. fi
  5089. ;;
  5090. newos6*)
  5091. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5092. lt_cv_file_magic_cmd=/usr/bin/file
  5093. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5094. ;;
  5095. *nto* | *qnx*)
  5096. lt_cv_deplibs_check_method=pass_all
  5097. ;;
  5098. openbsd*)
  5099. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5100. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5101. else
  5102. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5103. fi
  5104. ;;
  5105. osf3* | osf4* | osf5*)
  5106. lt_cv_deplibs_check_method=pass_all
  5107. ;;
  5108. rdos*)
  5109. lt_cv_deplibs_check_method=pass_all
  5110. ;;
  5111. solaris*)
  5112. lt_cv_deplibs_check_method=pass_all
  5113. ;;
  5114. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5115. lt_cv_deplibs_check_method=pass_all
  5116. ;;
  5117. sysv4 | sysv4.3*)
  5118. case $host_vendor in
  5119. motorola)
  5120. 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]'
  5121. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5122. ;;
  5123. ncr)
  5124. lt_cv_deplibs_check_method=pass_all
  5125. ;;
  5126. sequent)
  5127. lt_cv_file_magic_cmd='/bin/file'
  5128. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5129. ;;
  5130. sni)
  5131. lt_cv_file_magic_cmd='/bin/file'
  5132. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5133. lt_cv_file_magic_test_file=/lib/libc.so
  5134. ;;
  5135. siemens)
  5136. lt_cv_deplibs_check_method=pass_all
  5137. ;;
  5138. pc)
  5139. lt_cv_deplibs_check_method=pass_all
  5140. ;;
  5141. esac
  5142. ;;
  5143. tpf*)
  5144. lt_cv_deplibs_check_method=pass_all
  5145. ;;
  5146. esac
  5147. fi
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5149. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5150. file_magic_cmd=$lt_cv_file_magic_cmd
  5151. deplibs_check_method=$lt_cv_deplibs_check_method
  5152. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5153. if test -n "$ac_tool_prefix"; then
  5154. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5155. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5157. $as_echo_n "checking for $ac_word... " >&6; }
  5158. if ${ac_cv_prog_AR+:} false; then :
  5159. $as_echo_n "(cached) " >&6
  5160. else
  5161. if test -n "$AR"; then
  5162. ac_cv_prog_AR="$AR" # Let the user override the test.
  5163. else
  5164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5165. for as_dir in $PATH
  5166. do
  5167. IFS=$as_save_IFS
  5168. test -z "$as_dir" && as_dir=.
  5169. for ac_exec_ext in '' $ac_executable_extensions; do
  5170. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5171. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5173. break 2
  5174. fi
  5175. done
  5176. done
  5177. IFS=$as_save_IFS
  5178. fi
  5179. fi
  5180. AR=$ac_cv_prog_AR
  5181. if test -n "$AR"; then
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5183. $as_echo "$AR" >&6; }
  5184. else
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5186. $as_echo "no" >&6; }
  5187. fi
  5188. fi
  5189. if test -z "$ac_cv_prog_AR"; then
  5190. ac_ct_AR=$AR
  5191. # Extract the first word of "ar", so it can be a program name with args.
  5192. set dummy ar; ac_word=$2
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5194. $as_echo_n "checking for $ac_word... " >&6; }
  5195. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5196. $as_echo_n "(cached) " >&6
  5197. else
  5198. if test -n "$ac_ct_AR"; then
  5199. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5200. else
  5201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5202. for as_dir in $PATH
  5203. do
  5204. IFS=$as_save_IFS
  5205. test -z "$as_dir" && as_dir=.
  5206. for ac_exec_ext in '' $ac_executable_extensions; do
  5207. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5208. ac_cv_prog_ac_ct_AR="ar"
  5209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5210. break 2
  5211. fi
  5212. done
  5213. done
  5214. IFS=$as_save_IFS
  5215. fi
  5216. fi
  5217. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5218. if test -n "$ac_ct_AR"; then
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5220. $as_echo "$ac_ct_AR" >&6; }
  5221. else
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5223. $as_echo "no" >&6; }
  5224. fi
  5225. if test "x$ac_ct_AR" = x; then
  5226. AR="false"
  5227. else
  5228. case $cross_compiling:$ac_tool_warned in
  5229. yes:)
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5231. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5232. ac_tool_warned=yes ;;
  5233. esac
  5234. AR=$ac_ct_AR
  5235. fi
  5236. else
  5237. AR="$ac_cv_prog_AR"
  5238. fi
  5239. test -z "$AR" && AR=ar
  5240. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5241. if test -n "$ac_tool_prefix"; then
  5242. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5243. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5245. $as_echo_n "checking for $ac_word... " >&6; }
  5246. if ${ac_cv_prog_STRIP+:} false; then :
  5247. $as_echo_n "(cached) " >&6
  5248. else
  5249. if test -n "$STRIP"; then
  5250. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5251. else
  5252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5253. for as_dir in $PATH
  5254. do
  5255. IFS=$as_save_IFS
  5256. test -z "$as_dir" && as_dir=.
  5257. for ac_exec_ext in '' $ac_executable_extensions; do
  5258. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5259. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5261. break 2
  5262. fi
  5263. done
  5264. done
  5265. IFS=$as_save_IFS
  5266. fi
  5267. fi
  5268. STRIP=$ac_cv_prog_STRIP
  5269. if test -n "$STRIP"; then
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5271. $as_echo "$STRIP" >&6; }
  5272. else
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5274. $as_echo "no" >&6; }
  5275. fi
  5276. fi
  5277. if test -z "$ac_cv_prog_STRIP"; then
  5278. ac_ct_STRIP=$STRIP
  5279. # Extract the first word of "strip", so it can be a program name with args.
  5280. set dummy strip; ac_word=$2
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5282. $as_echo_n "checking for $ac_word... " >&6; }
  5283. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5284. $as_echo_n "(cached) " >&6
  5285. else
  5286. if test -n "$ac_ct_STRIP"; then
  5287. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5288. else
  5289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5290. for as_dir in $PATH
  5291. do
  5292. IFS=$as_save_IFS
  5293. test -z "$as_dir" && as_dir=.
  5294. for ac_exec_ext in '' $ac_executable_extensions; do
  5295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5296. ac_cv_prog_ac_ct_STRIP="strip"
  5297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5298. break 2
  5299. fi
  5300. done
  5301. done
  5302. IFS=$as_save_IFS
  5303. fi
  5304. fi
  5305. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5306. if test -n "$ac_ct_STRIP"; then
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5308. $as_echo "$ac_ct_STRIP" >&6; }
  5309. else
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5311. $as_echo "no" >&6; }
  5312. fi
  5313. if test "x$ac_ct_STRIP" = x; then
  5314. STRIP=":"
  5315. else
  5316. case $cross_compiling:$ac_tool_warned in
  5317. yes:)
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5319. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5320. ac_tool_warned=yes ;;
  5321. esac
  5322. STRIP=$ac_ct_STRIP
  5323. fi
  5324. else
  5325. STRIP="$ac_cv_prog_STRIP"
  5326. fi
  5327. test -z "$STRIP" && STRIP=:
  5328. if test -n "$ac_tool_prefix"; then
  5329. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5330. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5332. $as_echo_n "checking for $ac_word... " >&6; }
  5333. if ${ac_cv_prog_RANLIB+:} false; then :
  5334. $as_echo_n "(cached) " >&6
  5335. else
  5336. if test -n "$RANLIB"; then
  5337. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5338. else
  5339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5340. for as_dir in $PATH
  5341. do
  5342. IFS=$as_save_IFS
  5343. test -z "$as_dir" && as_dir=.
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5346. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5348. break 2
  5349. fi
  5350. done
  5351. done
  5352. IFS=$as_save_IFS
  5353. fi
  5354. fi
  5355. RANLIB=$ac_cv_prog_RANLIB
  5356. if test -n "$RANLIB"; then
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5358. $as_echo "$RANLIB" >&6; }
  5359. else
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5361. $as_echo "no" >&6; }
  5362. fi
  5363. fi
  5364. if test -z "$ac_cv_prog_RANLIB"; then
  5365. ac_ct_RANLIB=$RANLIB
  5366. # Extract the first word of "ranlib", so it can be a program name with args.
  5367. set dummy ranlib; ac_word=$2
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5369. $as_echo_n "checking for $ac_word... " >&6; }
  5370. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5371. $as_echo_n "(cached) " >&6
  5372. else
  5373. if test -n "$ac_ct_RANLIB"; then
  5374. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5375. else
  5376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5377. for as_dir in $PATH
  5378. do
  5379. IFS=$as_save_IFS
  5380. test -z "$as_dir" && as_dir=.
  5381. for ac_exec_ext in '' $ac_executable_extensions; do
  5382. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5383. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5385. break 2
  5386. fi
  5387. done
  5388. done
  5389. IFS=$as_save_IFS
  5390. fi
  5391. fi
  5392. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5393. if test -n "$ac_ct_RANLIB"; then
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5395. $as_echo "$ac_ct_RANLIB" >&6; }
  5396. else
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5398. $as_echo "no" >&6; }
  5399. fi
  5400. if test "x$ac_ct_RANLIB" = x; then
  5401. RANLIB=":"
  5402. else
  5403. case $cross_compiling:$ac_tool_warned in
  5404. yes:)
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5406. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5407. ac_tool_warned=yes ;;
  5408. esac
  5409. RANLIB=$ac_ct_RANLIB
  5410. fi
  5411. else
  5412. RANLIB="$ac_cv_prog_RANLIB"
  5413. fi
  5414. test -z "$RANLIB" && RANLIB=:
  5415. # Determine commands to create old-style static archives.
  5416. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5417. old_postinstall_cmds='chmod 644 $oldlib'
  5418. old_postuninstall_cmds=
  5419. if test -n "$RANLIB"; then
  5420. case $host_os in
  5421. openbsd*)
  5422. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5423. ;;
  5424. *)
  5425. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5426. ;;
  5427. esac
  5428. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5429. fi
  5430. # If no C compiler was specified, use CC.
  5431. LTCC=${LTCC-"$CC"}
  5432. # If no C compiler flags were specified, use CFLAGS.
  5433. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5434. # Allow CC to be a program name with arguments.
  5435. compiler=$CC
  5436. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5438. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5439. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5440. $as_echo_n "(cached) " >&6
  5441. else
  5442. # These are sane defaults that work on at least a few old systems.
  5443. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5444. # Character class describing NM global symbol codes.
  5445. symcode='[BCDEGRST]'
  5446. # Regexp to match symbols that can be accessed directly from C.
  5447. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5448. # Define system-specific variables.
  5449. case $host_os in
  5450. aix*)
  5451. symcode='[BCDT]'
  5452. ;;
  5453. cygwin* | mingw* | pw32* | cegcc*)
  5454. symcode='[ABCDGISTW]'
  5455. ;;
  5456. hpux*)
  5457. if test "$host_cpu" = ia64; then
  5458. symcode='[ABCDEGRST]'
  5459. fi
  5460. ;;
  5461. irix* | nonstopux*)
  5462. symcode='[BCDEGRST]'
  5463. ;;
  5464. osf*)
  5465. symcode='[BCDEGQRST]'
  5466. ;;
  5467. solaris*)
  5468. symcode='[BDRT]'
  5469. ;;
  5470. sco3.2v5*)
  5471. symcode='[DT]'
  5472. ;;
  5473. sysv4.2uw2*)
  5474. symcode='[DT]'
  5475. ;;
  5476. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5477. symcode='[ABDT]'
  5478. ;;
  5479. sysv4)
  5480. symcode='[DFNSTU]'
  5481. ;;
  5482. esac
  5483. # If we're using GNU nm, then use its standard symbol codes.
  5484. case `$NM -V 2>&1` in
  5485. *GNU* | *'with BFD'*)
  5486. symcode='[ABCDGIRSTW]' ;;
  5487. esac
  5488. # Transform an extracted symbol line into a proper C declaration.
  5489. # Some systems (esp. on ia64) link data and code symbols differently,
  5490. # so use this general approach.
  5491. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5492. # Transform an extracted symbol line into symbol name and symbol address
  5493. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5494. 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'"
  5495. # Handle CRLF in mingw tool chain
  5496. opt_cr=
  5497. case $build_os in
  5498. mingw*)
  5499. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5500. ;;
  5501. esac
  5502. # Try without a prefix underscore, then with it.
  5503. for ac_symprfx in "" "_"; do
  5504. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5505. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5506. # Write the raw and C identifiers.
  5507. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5508. # Fake it for dumpbin and say T for any non-static function
  5509. # and D for any global variable.
  5510. # Also find C++ and __fastcall symbols from MSVC++,
  5511. # which start with @ or ?.
  5512. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5513. " {last_section=section; section=\$ 3};"\
  5514. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5515. " \$ 0!~/External *\|/{next};"\
  5516. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5517. " {if(hide[section]) next};"\
  5518. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5519. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5520. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5521. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5522. " ' prfx=^$ac_symprfx"
  5523. else
  5524. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5525. fi
  5526. # Check to see that the pipe works correctly.
  5527. pipe_works=no
  5528. rm -f conftest*
  5529. cat > conftest.$ac_ext <<_LT_EOF
  5530. #ifdef __cplusplus
  5531. extern "C" {
  5532. #endif
  5533. char nm_test_var;
  5534. void nm_test_func(void);
  5535. void nm_test_func(void){}
  5536. #ifdef __cplusplus
  5537. }
  5538. #endif
  5539. int main(){nm_test_var='a';nm_test_func();return(0);}
  5540. _LT_EOF
  5541. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5542. (eval $ac_compile) 2>&5
  5543. ac_status=$?
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5545. test $ac_status = 0; }; then
  5546. # Now try to grab the symbols.
  5547. nlist=conftest.nm
  5548. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5549. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5550. ac_status=$?
  5551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5552. test $ac_status = 0; } && test -s "$nlist"; then
  5553. # Try sorting and uniquifying the output.
  5554. if sort "$nlist" | uniq > "$nlist"T; then
  5555. mv -f "$nlist"T "$nlist"
  5556. else
  5557. rm -f "$nlist"T
  5558. fi
  5559. # Make sure that we snagged all the symbols we need.
  5560. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5561. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5562. cat <<_LT_EOF > conftest.$ac_ext
  5563. #ifdef __cplusplus
  5564. extern "C" {
  5565. #endif
  5566. _LT_EOF
  5567. # Now generate the symbol file.
  5568. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5569. cat <<_LT_EOF >> conftest.$ac_ext
  5570. /* The mapping between symbol names and symbols. */
  5571. const struct {
  5572. const char *name;
  5573. void *address;
  5574. }
  5575. lt__PROGRAM__LTX_preloaded_symbols[] =
  5576. {
  5577. { "@PROGRAM@", (void *) 0 },
  5578. _LT_EOF
  5579. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5580. cat <<\_LT_EOF >> conftest.$ac_ext
  5581. {0, (void *) 0}
  5582. };
  5583. /* This works around a problem in FreeBSD linker */
  5584. #ifdef FREEBSD_WORKAROUND
  5585. static const void *lt_preloaded_setup() {
  5586. return lt__PROGRAM__LTX_preloaded_symbols;
  5587. }
  5588. #endif
  5589. #ifdef __cplusplus
  5590. }
  5591. #endif
  5592. _LT_EOF
  5593. # Now try linking the two files.
  5594. mv conftest.$ac_objext conftstm.$ac_objext
  5595. lt_save_LIBS="$LIBS"
  5596. lt_save_CFLAGS="$CFLAGS"
  5597. LIBS="conftstm.$ac_objext"
  5598. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5599. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5600. (eval $ac_link) 2>&5
  5601. ac_status=$?
  5602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5603. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5604. pipe_works=yes
  5605. fi
  5606. LIBS="$lt_save_LIBS"
  5607. CFLAGS="$lt_save_CFLAGS"
  5608. else
  5609. echo "cannot find nm_test_func in $nlist" >&5
  5610. fi
  5611. else
  5612. echo "cannot find nm_test_var in $nlist" >&5
  5613. fi
  5614. else
  5615. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5616. fi
  5617. else
  5618. echo "$progname: failed program was:" >&5
  5619. cat conftest.$ac_ext >&5
  5620. fi
  5621. rm -rf conftest* conftst*
  5622. # Do not use the global_symbol_pipe unless it works.
  5623. if test "$pipe_works" = yes; then
  5624. break
  5625. else
  5626. lt_cv_sys_global_symbol_pipe=
  5627. fi
  5628. done
  5629. fi
  5630. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5631. lt_cv_sys_global_symbol_to_cdecl=
  5632. fi
  5633. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5635. $as_echo "failed" >&6; }
  5636. else
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5638. $as_echo "ok" >&6; }
  5639. fi
  5640. # Check whether --enable-libtool-lock was given.
  5641. if test "${enable_libtool_lock+set}" = set; then :
  5642. enableval=$enable_libtool_lock;
  5643. fi
  5644. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5645. # Some flags need to be propagated to the compiler or linker for good
  5646. # libtool support.
  5647. case $host in
  5648. ia64-*-hpux*)
  5649. # Find out which ABI we are using.
  5650. echo 'int i;' > conftest.$ac_ext
  5651. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5652. (eval $ac_compile) 2>&5
  5653. ac_status=$?
  5654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5655. test $ac_status = 0; }; then
  5656. case `/usr/bin/file conftest.$ac_objext` in
  5657. *ELF-32*)
  5658. HPUX_IA64_MODE="32"
  5659. ;;
  5660. *ELF-64*)
  5661. HPUX_IA64_MODE="64"
  5662. ;;
  5663. esac
  5664. fi
  5665. rm -rf conftest*
  5666. ;;
  5667. *-*-irix6*)
  5668. # Find out which ABI we are using.
  5669. echo '#line 6462 "configure"' > conftest.$ac_ext
  5670. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5671. (eval $ac_compile) 2>&5
  5672. ac_status=$?
  5673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5674. test $ac_status = 0; }; then
  5675. if test "$lt_cv_prog_gnu_ld" = yes; then
  5676. case `/usr/bin/file conftest.$ac_objext` in
  5677. *32-bit*)
  5678. LD="${LD-ld} -melf32bsmip"
  5679. ;;
  5680. *N32*)
  5681. LD="${LD-ld} -melf32bmipn32"
  5682. ;;
  5683. *64-bit*)
  5684. LD="${LD-ld} -melf64bmip"
  5685. ;;
  5686. esac
  5687. else
  5688. case `/usr/bin/file conftest.$ac_objext` in
  5689. *32-bit*)
  5690. LD="${LD-ld} -32"
  5691. ;;
  5692. *N32*)
  5693. LD="${LD-ld} -n32"
  5694. ;;
  5695. *64-bit*)
  5696. LD="${LD-ld} -64"
  5697. ;;
  5698. esac
  5699. fi
  5700. fi
  5701. rm -rf conftest*
  5702. ;;
  5703. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5704. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5705. # Find out which ABI we are using.
  5706. echo 'int i;' > conftest.$ac_ext
  5707. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5708. (eval $ac_compile) 2>&5
  5709. ac_status=$?
  5710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5711. test $ac_status = 0; }; then
  5712. case `/usr/bin/file conftest.o` in
  5713. *32-bit*)
  5714. case $host in
  5715. x86_64-*kfreebsd*-gnu)
  5716. LD="${LD-ld} -m elf_i386_fbsd"
  5717. ;;
  5718. x86_64-*linux*)
  5719. LD="${LD-ld} -m elf_i386"
  5720. ;;
  5721. ppc64-*linux*|powerpc64-*linux*)
  5722. LD="${LD-ld} -m elf32ppclinux"
  5723. ;;
  5724. s390x-*linux*)
  5725. LD="${LD-ld} -m elf_s390"
  5726. ;;
  5727. sparc64-*linux*)
  5728. LD="${LD-ld} -m elf32_sparc"
  5729. ;;
  5730. esac
  5731. ;;
  5732. *64-bit*)
  5733. case $host in
  5734. x86_64-*kfreebsd*-gnu)
  5735. LD="${LD-ld} -m elf_x86_64_fbsd"
  5736. ;;
  5737. x86_64-*linux*)
  5738. LD="${LD-ld} -m elf_x86_64"
  5739. ;;
  5740. ppc*-*linux*|powerpc*-*linux*)
  5741. LD="${LD-ld} -m elf64ppc"
  5742. ;;
  5743. s390*-*linux*|s390*-*tpf*)
  5744. LD="${LD-ld} -m elf64_s390"
  5745. ;;
  5746. sparc*-*linux*)
  5747. LD="${LD-ld} -m elf64_sparc"
  5748. ;;
  5749. esac
  5750. ;;
  5751. esac
  5752. fi
  5753. rm -rf conftest*
  5754. ;;
  5755. *-*-sco3.2v5*)
  5756. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5757. SAVE_CFLAGS="$CFLAGS"
  5758. CFLAGS="$CFLAGS -belf"
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5760. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5761. if ${lt_cv_cc_needs_belf+:} false; then :
  5762. $as_echo_n "(cached) " >&6
  5763. else
  5764. ac_ext=c
  5765. ac_cpp='$CPP $CPPFLAGS'
  5766. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5767. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5768. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5770. /* end confdefs.h. */
  5771. int
  5772. main ()
  5773. {
  5774. ;
  5775. return 0;
  5776. }
  5777. _ACEOF
  5778. if ac_fn_c_try_link "$LINENO"; then :
  5779. lt_cv_cc_needs_belf=yes
  5780. else
  5781. lt_cv_cc_needs_belf=no
  5782. fi
  5783. rm -f core conftest.err conftest.$ac_objext \
  5784. conftest$ac_exeext conftest.$ac_ext
  5785. ac_ext=c
  5786. ac_cpp='$CPP $CPPFLAGS'
  5787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5790. fi
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5792. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5793. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5794. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5795. CFLAGS="$SAVE_CFLAGS"
  5796. fi
  5797. ;;
  5798. sparc*-*solaris*)
  5799. # Find out which ABI we are using.
  5800. echo 'int i;' > conftest.$ac_ext
  5801. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5802. (eval $ac_compile) 2>&5
  5803. ac_status=$?
  5804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5805. test $ac_status = 0; }; then
  5806. case `/usr/bin/file conftest.o` in
  5807. *64-bit*)
  5808. case $lt_cv_prog_gnu_ld in
  5809. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5810. *)
  5811. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5812. LD="${LD-ld} -64"
  5813. fi
  5814. ;;
  5815. esac
  5816. ;;
  5817. esac
  5818. fi
  5819. rm -rf conftest*
  5820. ;;
  5821. esac
  5822. need_locks="$enable_libtool_lock"
  5823. case $host_os in
  5824. rhapsody* | darwin*)
  5825. if test -n "$ac_tool_prefix"; then
  5826. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5827. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5829. $as_echo_n "checking for $ac_word... " >&6; }
  5830. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. if test -n "$DSYMUTIL"; then
  5834. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5835. else
  5836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5837. for as_dir in $PATH
  5838. do
  5839. IFS=$as_save_IFS
  5840. test -z "$as_dir" && as_dir=.
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5843. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5845. break 2
  5846. fi
  5847. done
  5848. done
  5849. IFS=$as_save_IFS
  5850. fi
  5851. fi
  5852. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5853. if test -n "$DSYMUTIL"; then
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5855. $as_echo "$DSYMUTIL" >&6; }
  5856. else
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5858. $as_echo "no" >&6; }
  5859. fi
  5860. fi
  5861. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5862. ac_ct_DSYMUTIL=$DSYMUTIL
  5863. # Extract the first word of "dsymutil", so it can be a program name with args.
  5864. set dummy dsymutil; ac_word=$2
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5866. $as_echo_n "checking for $ac_word... " >&6; }
  5867. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if test -n "$ac_ct_DSYMUTIL"; then
  5871. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5872. else
  5873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5874. for as_dir in $PATH
  5875. do
  5876. IFS=$as_save_IFS
  5877. test -z "$as_dir" && as_dir=.
  5878. for ac_exec_ext in '' $ac_executable_extensions; do
  5879. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5880. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5882. break 2
  5883. fi
  5884. done
  5885. done
  5886. IFS=$as_save_IFS
  5887. fi
  5888. fi
  5889. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5890. if test -n "$ac_ct_DSYMUTIL"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5892. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. fi
  5897. if test "x$ac_ct_DSYMUTIL" = x; then
  5898. DSYMUTIL=":"
  5899. else
  5900. case $cross_compiling:$ac_tool_warned in
  5901. yes:)
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5904. ac_tool_warned=yes ;;
  5905. esac
  5906. DSYMUTIL=$ac_ct_DSYMUTIL
  5907. fi
  5908. else
  5909. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5910. fi
  5911. if test -n "$ac_tool_prefix"; then
  5912. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5913. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5915. $as_echo_n "checking for $ac_word... " >&6; }
  5916. if ${ac_cv_prog_NMEDIT+:} false; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. if test -n "$NMEDIT"; then
  5920. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5921. else
  5922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5923. for as_dir in $PATH
  5924. do
  5925. IFS=$as_save_IFS
  5926. test -z "$as_dir" && as_dir=.
  5927. for ac_exec_ext in '' $ac_executable_extensions; do
  5928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5929. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5931. break 2
  5932. fi
  5933. done
  5934. done
  5935. IFS=$as_save_IFS
  5936. fi
  5937. fi
  5938. NMEDIT=$ac_cv_prog_NMEDIT
  5939. if test -n "$NMEDIT"; then
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5941. $as_echo "$NMEDIT" >&6; }
  5942. else
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5944. $as_echo "no" >&6; }
  5945. fi
  5946. fi
  5947. if test -z "$ac_cv_prog_NMEDIT"; then
  5948. ac_ct_NMEDIT=$NMEDIT
  5949. # Extract the first word of "nmedit", so it can be a program name with args.
  5950. set dummy nmedit; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$ac_ct_NMEDIT"; then
  5957. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5966. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5976. if test -n "$ac_ct_NMEDIT"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5978. $as_echo "$ac_ct_NMEDIT" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. if test "x$ac_ct_NMEDIT" = x; then
  5984. NMEDIT=":"
  5985. else
  5986. case $cross_compiling:$ac_tool_warned in
  5987. yes:)
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5990. ac_tool_warned=yes ;;
  5991. esac
  5992. NMEDIT=$ac_ct_NMEDIT
  5993. fi
  5994. else
  5995. NMEDIT="$ac_cv_prog_NMEDIT"
  5996. fi
  5997. if test -n "$ac_tool_prefix"; then
  5998. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5999. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6001. $as_echo_n "checking for $ac_word... " >&6; }
  6002. if ${ac_cv_prog_LIPO+:} false; then :
  6003. $as_echo_n "(cached) " >&6
  6004. else
  6005. if test -n "$LIPO"; then
  6006. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6007. else
  6008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6009. for as_dir in $PATH
  6010. do
  6011. IFS=$as_save_IFS
  6012. test -z "$as_dir" && as_dir=.
  6013. for ac_exec_ext in '' $ac_executable_extensions; do
  6014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6015. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6017. break 2
  6018. fi
  6019. done
  6020. done
  6021. IFS=$as_save_IFS
  6022. fi
  6023. fi
  6024. LIPO=$ac_cv_prog_LIPO
  6025. if test -n "$LIPO"; then
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6027. $as_echo "$LIPO" >&6; }
  6028. else
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6030. $as_echo "no" >&6; }
  6031. fi
  6032. fi
  6033. if test -z "$ac_cv_prog_LIPO"; then
  6034. ac_ct_LIPO=$LIPO
  6035. # Extract the first word of "lipo", so it can be a program name with args.
  6036. set dummy lipo; ac_word=$2
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6038. $as_echo_n "checking for $ac_word... " >&6; }
  6039. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6040. $as_echo_n "(cached) " >&6
  6041. else
  6042. if test -n "$ac_ct_LIPO"; then
  6043. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6044. else
  6045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6046. for as_dir in $PATH
  6047. do
  6048. IFS=$as_save_IFS
  6049. test -z "$as_dir" && as_dir=.
  6050. for ac_exec_ext in '' $ac_executable_extensions; do
  6051. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6052. ac_cv_prog_ac_ct_LIPO="lipo"
  6053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6054. break 2
  6055. fi
  6056. done
  6057. done
  6058. IFS=$as_save_IFS
  6059. fi
  6060. fi
  6061. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6062. if test -n "$ac_ct_LIPO"; then
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6064. $as_echo "$ac_ct_LIPO" >&6; }
  6065. else
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6067. $as_echo "no" >&6; }
  6068. fi
  6069. if test "x$ac_ct_LIPO" = x; then
  6070. LIPO=":"
  6071. else
  6072. case $cross_compiling:$ac_tool_warned in
  6073. yes:)
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6075. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6076. ac_tool_warned=yes ;;
  6077. esac
  6078. LIPO=$ac_ct_LIPO
  6079. fi
  6080. else
  6081. LIPO="$ac_cv_prog_LIPO"
  6082. fi
  6083. if test -n "$ac_tool_prefix"; then
  6084. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6085. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6087. $as_echo_n "checking for $ac_word... " >&6; }
  6088. if ${ac_cv_prog_OTOOL+:} false; then :
  6089. $as_echo_n "(cached) " >&6
  6090. else
  6091. if test -n "$OTOOL"; then
  6092. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6093. else
  6094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6095. for as_dir in $PATH
  6096. do
  6097. IFS=$as_save_IFS
  6098. test -z "$as_dir" && as_dir=.
  6099. for ac_exec_ext in '' $ac_executable_extensions; do
  6100. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6101. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6103. break 2
  6104. fi
  6105. done
  6106. done
  6107. IFS=$as_save_IFS
  6108. fi
  6109. fi
  6110. OTOOL=$ac_cv_prog_OTOOL
  6111. if test -n "$OTOOL"; then
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6113. $as_echo "$OTOOL" >&6; }
  6114. else
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6116. $as_echo "no" >&6; }
  6117. fi
  6118. fi
  6119. if test -z "$ac_cv_prog_OTOOL"; then
  6120. ac_ct_OTOOL=$OTOOL
  6121. # Extract the first word of "otool", so it can be a program name with args.
  6122. set dummy otool; ac_word=$2
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6124. $as_echo_n "checking for $ac_word... " >&6; }
  6125. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6126. $as_echo_n "(cached) " >&6
  6127. else
  6128. if test -n "$ac_ct_OTOOL"; then
  6129. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6130. else
  6131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6132. for as_dir in $PATH
  6133. do
  6134. IFS=$as_save_IFS
  6135. test -z "$as_dir" && as_dir=.
  6136. for ac_exec_ext in '' $ac_executable_extensions; do
  6137. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6138. ac_cv_prog_ac_ct_OTOOL="otool"
  6139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6140. break 2
  6141. fi
  6142. done
  6143. done
  6144. IFS=$as_save_IFS
  6145. fi
  6146. fi
  6147. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6148. if test -n "$ac_ct_OTOOL"; then
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6150. $as_echo "$ac_ct_OTOOL" >&6; }
  6151. else
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6153. $as_echo "no" >&6; }
  6154. fi
  6155. if test "x$ac_ct_OTOOL" = x; then
  6156. OTOOL=":"
  6157. else
  6158. case $cross_compiling:$ac_tool_warned in
  6159. yes:)
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6161. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6162. ac_tool_warned=yes ;;
  6163. esac
  6164. OTOOL=$ac_ct_OTOOL
  6165. fi
  6166. else
  6167. OTOOL="$ac_cv_prog_OTOOL"
  6168. fi
  6169. if test -n "$ac_tool_prefix"; then
  6170. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6171. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6173. $as_echo_n "checking for $ac_word... " >&6; }
  6174. if ${ac_cv_prog_OTOOL64+:} false; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. if test -n "$OTOOL64"; then
  6178. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6179. else
  6180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6181. for as_dir in $PATH
  6182. do
  6183. IFS=$as_save_IFS
  6184. test -z "$as_dir" && as_dir=.
  6185. for ac_exec_ext in '' $ac_executable_extensions; do
  6186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6187. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6189. break 2
  6190. fi
  6191. done
  6192. done
  6193. IFS=$as_save_IFS
  6194. fi
  6195. fi
  6196. OTOOL64=$ac_cv_prog_OTOOL64
  6197. if test -n "$OTOOL64"; then
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6199. $as_echo "$OTOOL64" >&6; }
  6200. else
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6202. $as_echo "no" >&6; }
  6203. fi
  6204. fi
  6205. if test -z "$ac_cv_prog_OTOOL64"; then
  6206. ac_ct_OTOOL64=$OTOOL64
  6207. # Extract the first word of "otool64", so it can be a program name with args.
  6208. set dummy otool64; ac_word=$2
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6210. $as_echo_n "checking for $ac_word... " >&6; }
  6211. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6212. $as_echo_n "(cached) " >&6
  6213. else
  6214. if test -n "$ac_ct_OTOOL64"; then
  6215. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6216. else
  6217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6218. for as_dir in $PATH
  6219. do
  6220. IFS=$as_save_IFS
  6221. test -z "$as_dir" && as_dir=.
  6222. for ac_exec_ext in '' $ac_executable_extensions; do
  6223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6224. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6226. break 2
  6227. fi
  6228. done
  6229. done
  6230. IFS=$as_save_IFS
  6231. fi
  6232. fi
  6233. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6234. if test -n "$ac_ct_OTOOL64"; then
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6236. $as_echo "$ac_ct_OTOOL64" >&6; }
  6237. else
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6239. $as_echo "no" >&6; }
  6240. fi
  6241. if test "x$ac_ct_OTOOL64" = x; then
  6242. OTOOL64=":"
  6243. else
  6244. case $cross_compiling:$ac_tool_warned in
  6245. yes:)
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6248. ac_tool_warned=yes ;;
  6249. esac
  6250. OTOOL64=$ac_ct_OTOOL64
  6251. fi
  6252. else
  6253. OTOOL64="$ac_cv_prog_OTOOL64"
  6254. fi
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6256. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6257. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6258. $as_echo_n "(cached) " >&6
  6259. else
  6260. lt_cv_apple_cc_single_mod=no
  6261. if test -z "${LT_MULTI_MODULE}"; then
  6262. # By default we will add the -single_module flag. You can override
  6263. # by either setting the environment variable LT_MULTI_MODULE
  6264. # non-empty at configure time, or by adding -multi_module to the
  6265. # link flags.
  6266. rm -rf libconftest.dylib*
  6267. echo "int foo(void){return 1;}" > conftest.c
  6268. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6269. -dynamiclib -Wl,-single_module conftest.c" >&5
  6270. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6271. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6272. _lt_result=$?
  6273. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6274. lt_cv_apple_cc_single_mod=yes
  6275. else
  6276. cat conftest.err >&5
  6277. fi
  6278. rm -rf libconftest.dylib*
  6279. rm -f conftest.*
  6280. fi
  6281. fi
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6283. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6285. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6286. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. lt_cv_ld_exported_symbols_list=no
  6290. save_LDFLAGS=$LDFLAGS
  6291. echo "_main" > conftest.sym
  6292. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6294. /* end confdefs.h. */
  6295. int
  6296. main ()
  6297. {
  6298. ;
  6299. return 0;
  6300. }
  6301. _ACEOF
  6302. if ac_fn_c_try_link "$LINENO"; then :
  6303. lt_cv_ld_exported_symbols_list=yes
  6304. else
  6305. lt_cv_ld_exported_symbols_list=no
  6306. fi
  6307. rm -f core conftest.err conftest.$ac_objext \
  6308. conftest$ac_exeext conftest.$ac_ext
  6309. LDFLAGS="$save_LDFLAGS"
  6310. fi
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6312. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6313. case $host_os in
  6314. rhapsody* | darwin1.[012])
  6315. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6316. darwin1.*)
  6317. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6318. darwin*) # darwin 5.x on
  6319. # if running on 10.5 or later, the deployment target defaults
  6320. # to the OS version, if on x86, and 10.4, the deployment
  6321. # target defaults to 10.4. Don't you love it?
  6322. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6323. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6324. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6325. 10.[012]*)
  6326. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6327. 10.*)
  6328. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6329. esac
  6330. ;;
  6331. esac
  6332. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6333. _lt_dar_single_mod='$single_module'
  6334. fi
  6335. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6336. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6337. else
  6338. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6339. fi
  6340. if test "$DSYMUTIL" != ":"; then
  6341. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6342. else
  6343. _lt_dsymutil=
  6344. fi
  6345. ;;
  6346. esac
  6347. for ac_header in dlfcn.h
  6348. do :
  6349. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6350. "
  6351. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6352. cat >>confdefs.h <<_ACEOF
  6353. #define HAVE_DLFCN_H 1
  6354. _ACEOF
  6355. fi
  6356. done
  6357. # Set options
  6358. enable_dlopen=no
  6359. enable_win32_dll=no
  6360. # Check whether --enable-shared was given.
  6361. if test "${enable_shared+set}" = set; then :
  6362. enableval=$enable_shared; p=${PACKAGE-default}
  6363. case $enableval in
  6364. yes) enable_shared=yes ;;
  6365. no) enable_shared=no ;;
  6366. *)
  6367. enable_shared=no
  6368. # Look at the argument we got. We use all the common list separators.
  6369. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6370. for pkg in $enableval; do
  6371. IFS="$lt_save_ifs"
  6372. if test "X$pkg" = "X$p"; then
  6373. enable_shared=yes
  6374. fi
  6375. done
  6376. IFS="$lt_save_ifs"
  6377. ;;
  6378. esac
  6379. else
  6380. enable_shared=yes
  6381. fi
  6382. # Check whether --enable-static was given.
  6383. if test "${enable_static+set}" = set; then :
  6384. enableval=$enable_static; p=${PACKAGE-default}
  6385. case $enableval in
  6386. yes) enable_static=yes ;;
  6387. no) enable_static=no ;;
  6388. *)
  6389. enable_static=no
  6390. # Look at the argument we got. We use all the common list separators.
  6391. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6392. for pkg in $enableval; do
  6393. IFS="$lt_save_ifs"
  6394. if test "X$pkg" = "X$p"; then
  6395. enable_static=yes
  6396. fi
  6397. done
  6398. IFS="$lt_save_ifs"
  6399. ;;
  6400. esac
  6401. else
  6402. enable_static=yes
  6403. fi
  6404. # Check whether --with-pic was given.
  6405. if test "${with_pic+set}" = set; then :
  6406. withval=$with_pic; pic_mode="$withval"
  6407. else
  6408. pic_mode=default
  6409. fi
  6410. test -z "$pic_mode" && pic_mode=default
  6411. # Check whether --enable-fast-install was given.
  6412. if test "${enable_fast_install+set}" = set; then :
  6413. enableval=$enable_fast_install; p=${PACKAGE-default}
  6414. case $enableval in
  6415. yes) enable_fast_install=yes ;;
  6416. no) enable_fast_install=no ;;
  6417. *)
  6418. enable_fast_install=no
  6419. # Look at the argument we got. We use all the common list separators.
  6420. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6421. for pkg in $enableval; do
  6422. IFS="$lt_save_ifs"
  6423. if test "X$pkg" = "X$p"; then
  6424. enable_fast_install=yes
  6425. fi
  6426. done
  6427. IFS="$lt_save_ifs"
  6428. ;;
  6429. esac
  6430. else
  6431. enable_fast_install=yes
  6432. fi
  6433. # This can be used to rebuild libtool when needed
  6434. LIBTOOL_DEPS="$ltmain"
  6435. # Always use our own libtool.
  6436. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6437. test -z "$LN_S" && LN_S="ln -s"
  6438. if test -n "${ZSH_VERSION+set}" ; then
  6439. setopt NO_GLOB_SUBST
  6440. fi
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6442. $as_echo_n "checking for objdir... " >&6; }
  6443. if ${lt_cv_objdir+:} false; then :
  6444. $as_echo_n "(cached) " >&6
  6445. else
  6446. rm -f .libs 2>/dev/null
  6447. mkdir .libs 2>/dev/null
  6448. if test -d .libs; then
  6449. lt_cv_objdir=.libs
  6450. else
  6451. # MS-DOS does not allow filenames that begin with a dot.
  6452. lt_cv_objdir=_libs
  6453. fi
  6454. rmdir .libs 2>/dev/null
  6455. fi
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6457. $as_echo "$lt_cv_objdir" >&6; }
  6458. objdir=$lt_cv_objdir
  6459. cat >>confdefs.h <<_ACEOF
  6460. #define LT_OBJDIR "$lt_cv_objdir/"
  6461. _ACEOF
  6462. case $host_os in
  6463. aix3*)
  6464. # AIX sometimes has problems with the GCC collect2 program. For some
  6465. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6466. # vanish in a puff of smoke.
  6467. if test "X${COLLECT_NAMES+set}" != Xset; then
  6468. COLLECT_NAMES=
  6469. export COLLECT_NAMES
  6470. fi
  6471. ;;
  6472. esac
  6473. # Sed substitution that helps us do robust quoting. It backslashifies
  6474. # metacharacters that are still active within double-quoted strings.
  6475. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6476. # Same as above, but do not quote variable references.
  6477. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6478. # Sed substitution to delay expansion of an escaped shell variable in a
  6479. # double_quote_subst'ed string.
  6480. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6481. # Sed substitution to delay expansion of an escaped single quote.
  6482. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6483. # Sed substitution to avoid accidental globbing in evaled expressions
  6484. no_glob_subst='s/\*/\\\*/g'
  6485. # Global variables:
  6486. ofile=libtool
  6487. can_build_shared=yes
  6488. # All known linkers require a `.a' archive for static linking (except MSVC,
  6489. # which needs '.lib').
  6490. libext=a
  6491. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6492. old_CC="$CC"
  6493. old_CFLAGS="$CFLAGS"
  6494. # Set sane defaults for various variables
  6495. test -z "$CC" && CC=cc
  6496. test -z "$LTCC" && LTCC=$CC
  6497. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6498. test -z "$LD" && LD=ld
  6499. test -z "$ac_objext" && ac_objext=o
  6500. for cc_temp in $compiler""; do
  6501. case $cc_temp in
  6502. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6503. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6504. \-*) ;;
  6505. *) break;;
  6506. esac
  6507. done
  6508. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6509. # Only perform the check for file, if the check method requires it
  6510. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6511. case $deplibs_check_method in
  6512. file_magic*)
  6513. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6515. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6516. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6517. $as_echo_n "(cached) " >&6
  6518. else
  6519. case $MAGIC_CMD in
  6520. [\\/*] | ?:[\\/]*)
  6521. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6522. ;;
  6523. *)
  6524. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6525. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6526. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6527. for ac_dir in $ac_dummy; do
  6528. IFS="$lt_save_ifs"
  6529. test -z "$ac_dir" && ac_dir=.
  6530. if test -f $ac_dir/${ac_tool_prefix}file; then
  6531. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6532. if test -n "$file_magic_test_file"; then
  6533. case $deplibs_check_method in
  6534. "file_magic "*)
  6535. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6536. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6537. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6538. $EGREP "$file_magic_regex" > /dev/null; then
  6539. :
  6540. else
  6541. cat <<_LT_EOF 1>&2
  6542. *** Warning: the command libtool uses to detect shared libraries,
  6543. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6544. *** The result is that libtool may fail to recognize shared libraries
  6545. *** as such. This will affect the creation of libtool libraries that
  6546. *** depend on shared libraries, but programs linked with such libtool
  6547. *** libraries will work regardless of this problem. Nevertheless, you
  6548. *** may want to report the problem to your system manager and/or to
  6549. *** bug-libtool@gnu.org
  6550. _LT_EOF
  6551. fi ;;
  6552. esac
  6553. fi
  6554. break
  6555. fi
  6556. done
  6557. IFS="$lt_save_ifs"
  6558. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6559. ;;
  6560. esac
  6561. fi
  6562. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6563. if test -n "$MAGIC_CMD"; then
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6565. $as_echo "$MAGIC_CMD" >&6; }
  6566. else
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6568. $as_echo "no" >&6; }
  6569. fi
  6570. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6571. if test -n "$ac_tool_prefix"; then
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6573. $as_echo_n "checking for file... " >&6; }
  6574. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6575. $as_echo_n "(cached) " >&6
  6576. else
  6577. case $MAGIC_CMD in
  6578. [\\/*] | ?:[\\/]*)
  6579. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6580. ;;
  6581. *)
  6582. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6583. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6584. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6585. for ac_dir in $ac_dummy; do
  6586. IFS="$lt_save_ifs"
  6587. test -z "$ac_dir" && ac_dir=.
  6588. if test -f $ac_dir/file; then
  6589. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6590. if test -n "$file_magic_test_file"; then
  6591. case $deplibs_check_method in
  6592. "file_magic "*)
  6593. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6594. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6595. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6596. $EGREP "$file_magic_regex" > /dev/null; then
  6597. :
  6598. else
  6599. cat <<_LT_EOF 1>&2
  6600. *** Warning: the command libtool uses to detect shared libraries,
  6601. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6602. *** The result is that libtool may fail to recognize shared libraries
  6603. *** as such. This will affect the creation of libtool libraries that
  6604. *** depend on shared libraries, but programs linked with such libtool
  6605. *** libraries will work regardless of this problem. Nevertheless, you
  6606. *** may want to report the problem to your system manager and/or to
  6607. *** bug-libtool@gnu.org
  6608. _LT_EOF
  6609. fi ;;
  6610. esac
  6611. fi
  6612. break
  6613. fi
  6614. done
  6615. IFS="$lt_save_ifs"
  6616. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6617. ;;
  6618. esac
  6619. fi
  6620. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6621. if test -n "$MAGIC_CMD"; then
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6623. $as_echo "$MAGIC_CMD" >&6; }
  6624. else
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6626. $as_echo "no" >&6; }
  6627. fi
  6628. else
  6629. MAGIC_CMD=:
  6630. fi
  6631. fi
  6632. fi
  6633. ;;
  6634. esac
  6635. # Use C for the default configuration in the libtool script
  6636. lt_save_CC="$CC"
  6637. ac_ext=c
  6638. ac_cpp='$CPP $CPPFLAGS'
  6639. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6640. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6641. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6642. # Source file extension for C test sources.
  6643. ac_ext=c
  6644. # Object file extension for compiled C test sources.
  6645. objext=o
  6646. objext=$objext
  6647. # Code to be used in simple compile tests
  6648. lt_simple_compile_test_code="int some_variable = 0;"
  6649. # Code to be used in simple link tests
  6650. lt_simple_link_test_code='int main(){return(0);}'
  6651. # If no C compiler was specified, use CC.
  6652. LTCC=${LTCC-"$CC"}
  6653. # If no C compiler flags were specified, use CFLAGS.
  6654. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6655. # Allow CC to be a program name with arguments.
  6656. compiler=$CC
  6657. # Save the default compiler, since it gets overwritten when the other
  6658. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6659. compiler_DEFAULT=$CC
  6660. # save warnings/boilerplate of simple test code
  6661. ac_outfile=conftest.$ac_objext
  6662. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6663. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6664. _lt_compiler_boilerplate=`cat conftest.err`
  6665. $RM conftest*
  6666. ac_outfile=conftest.$ac_objext
  6667. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6668. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6669. _lt_linker_boilerplate=`cat conftest.err`
  6670. $RM -r conftest*
  6671. if test -n "$compiler"; then
  6672. lt_prog_compiler_no_builtin_flag=
  6673. if test "$GCC" = yes; then
  6674. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6676. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6677. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6678. $as_echo_n "(cached) " >&6
  6679. else
  6680. lt_cv_prog_compiler_rtti_exceptions=no
  6681. ac_outfile=conftest.$ac_objext
  6682. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6683. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6684. # Insert the option either (1) after the last *FLAGS variable, or
  6685. # (2) before a word containing "conftest.", or (3) at the end.
  6686. # Note that $ac_compile itself does not contain backslashes and begins
  6687. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6688. # The option is referenced via a variable to avoid confusing sed.
  6689. lt_compile=`echo "$ac_compile" | $SED \
  6690. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6691. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6692. -e 's:$: $lt_compiler_flag:'`
  6693. (eval echo "\"\$as_me:7720: $lt_compile\"" >&5)
  6694. (eval "$lt_compile" 2>conftest.err)
  6695. ac_status=$?
  6696. cat conftest.err >&5
  6697. echo "$as_me:7724: \$? = $ac_status" >&5
  6698. if (exit $ac_status) && test -s "$ac_outfile"; then
  6699. # The compiler can only warn and ignore the option if not recognized
  6700. # So say no if there are warnings other than the usual output.
  6701. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6702. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6703. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6704. lt_cv_prog_compiler_rtti_exceptions=yes
  6705. fi
  6706. fi
  6707. $RM conftest*
  6708. fi
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6710. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6711. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6712. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6713. else
  6714. :
  6715. fi
  6716. fi
  6717. lt_prog_compiler_wl=
  6718. lt_prog_compiler_pic=
  6719. lt_prog_compiler_static=
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6721. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6722. if test "$GCC" = yes; then
  6723. lt_prog_compiler_wl='-Wl,'
  6724. lt_prog_compiler_static='-static'
  6725. case $host_os in
  6726. aix*)
  6727. # All AIX code is PIC.
  6728. if test "$host_cpu" = ia64; then
  6729. # AIX 5 now supports IA64 processor
  6730. lt_prog_compiler_static='-Bstatic'
  6731. fi
  6732. ;;
  6733. amigaos*)
  6734. case $host_cpu in
  6735. powerpc)
  6736. # see comment about AmigaOS4 .so support
  6737. lt_prog_compiler_pic='-fPIC'
  6738. ;;
  6739. m68k)
  6740. # FIXME: we need at least 68020 code to build shared libraries, but
  6741. # adding the `-m68020' flag to GCC prevents building anything better,
  6742. # like `-m68040'.
  6743. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6744. ;;
  6745. esac
  6746. ;;
  6747. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6748. # PIC is the default for these OSes.
  6749. ;;
  6750. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6751. # This hack is so that the source file can tell whether it is being
  6752. # built for inclusion in a dll (and should export symbols for example).
  6753. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6754. # (--disable-auto-import) libraries
  6755. lt_prog_compiler_pic='-DDLL_EXPORT'
  6756. ;;
  6757. darwin* | rhapsody*)
  6758. # PIC is the default on this platform
  6759. # Common symbols not allowed in MH_DYLIB files
  6760. lt_prog_compiler_pic='-fno-common'
  6761. ;;
  6762. hpux*)
  6763. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6764. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6765. # sets the default TLS model and affects inlining.
  6766. case $host_cpu in
  6767. hppa*64*)
  6768. # +Z the default
  6769. ;;
  6770. *)
  6771. lt_prog_compiler_pic='-fPIC'
  6772. ;;
  6773. esac
  6774. ;;
  6775. interix[3-9]*)
  6776. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6777. # Instead, we relocate shared libraries at runtime.
  6778. ;;
  6779. msdosdjgpp*)
  6780. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6781. # on systems that don't support them.
  6782. lt_prog_compiler_can_build_shared=no
  6783. enable_shared=no
  6784. ;;
  6785. *nto* | *qnx*)
  6786. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6787. # it will coredump.
  6788. lt_prog_compiler_pic='-fPIC -shared'
  6789. ;;
  6790. sysv4*MP*)
  6791. if test -d /usr/nec; then
  6792. lt_prog_compiler_pic=-Kconform_pic
  6793. fi
  6794. ;;
  6795. *)
  6796. lt_prog_compiler_pic='-fPIC'
  6797. ;;
  6798. esac
  6799. else
  6800. # PORTME Check for flag to pass linker flags through the system compiler.
  6801. case $host_os in
  6802. aix*)
  6803. lt_prog_compiler_wl='-Wl,'
  6804. if test "$host_cpu" = ia64; then
  6805. # AIX 5 now supports IA64 processor
  6806. lt_prog_compiler_static='-Bstatic'
  6807. else
  6808. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6809. fi
  6810. ;;
  6811. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6812. # This hack is so that the source file can tell whether it is being
  6813. # built for inclusion in a dll (and should export symbols for example).
  6814. lt_prog_compiler_pic='-DDLL_EXPORT'
  6815. ;;
  6816. hpux9* | hpux10* | hpux11*)
  6817. lt_prog_compiler_wl='-Wl,'
  6818. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6819. # not for PA HP-UX.
  6820. case $host_cpu in
  6821. hppa*64*|ia64*)
  6822. # +Z the default
  6823. ;;
  6824. *)
  6825. lt_prog_compiler_pic='+Z'
  6826. ;;
  6827. esac
  6828. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6829. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6830. ;;
  6831. irix5* | irix6* | nonstopux*)
  6832. lt_prog_compiler_wl='-Wl,'
  6833. # PIC (with -KPIC) is the default.
  6834. lt_prog_compiler_static='-non_shared'
  6835. ;;
  6836. linux* | k*bsd*-gnu)
  6837. case $cc_basename in
  6838. # old Intel for x86_64 which still supported -KPIC.
  6839. ecc*)
  6840. lt_prog_compiler_wl='-Wl,'
  6841. lt_prog_compiler_pic='-KPIC'
  6842. lt_prog_compiler_static='-static'
  6843. ;;
  6844. # icc used to be incompatible with GCC.
  6845. # ICC 10 doesn't accept -KPIC any more.
  6846. icc* | ifort*)
  6847. lt_prog_compiler_wl='-Wl,'
  6848. lt_prog_compiler_pic='-fPIC'
  6849. lt_prog_compiler_static='-static'
  6850. ;;
  6851. # Lahey Fortran 8.1.
  6852. lf95*)
  6853. lt_prog_compiler_wl='-Wl,'
  6854. lt_prog_compiler_pic='--shared'
  6855. lt_prog_compiler_static='--static'
  6856. ;;
  6857. pgcc* | pgf77* | pgf90* | pgf95*)
  6858. # Portland Group compilers (*not* the Pentium gcc compiler,
  6859. # which looks to be a dead project)
  6860. lt_prog_compiler_wl='-Wl,'
  6861. lt_prog_compiler_pic='-fpic'
  6862. lt_prog_compiler_static='-Bstatic'
  6863. ;;
  6864. ccc*)
  6865. lt_prog_compiler_wl='-Wl,'
  6866. # All Alpha code is PIC.
  6867. lt_prog_compiler_static='-non_shared'
  6868. ;;
  6869. xl*)
  6870. # IBM XL C 8.0/Fortran 10.1 on PPC
  6871. lt_prog_compiler_wl='-Wl,'
  6872. lt_prog_compiler_pic='-qpic'
  6873. lt_prog_compiler_static='-qstaticlink'
  6874. ;;
  6875. *)
  6876. case `$CC -V 2>&1 | sed 5q` in
  6877. *Sun\ C*)
  6878. # Sun C 5.9
  6879. lt_prog_compiler_pic='-KPIC'
  6880. lt_prog_compiler_static='-Bstatic'
  6881. lt_prog_compiler_wl='-Wl,'
  6882. ;;
  6883. *Sun\ F*)
  6884. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6885. lt_prog_compiler_pic='-KPIC'
  6886. lt_prog_compiler_static='-Bstatic'
  6887. lt_prog_compiler_wl=''
  6888. ;;
  6889. esac
  6890. ;;
  6891. esac
  6892. ;;
  6893. newsos6)
  6894. lt_prog_compiler_pic='-KPIC'
  6895. lt_prog_compiler_static='-Bstatic'
  6896. ;;
  6897. *nto* | *qnx*)
  6898. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6899. # it will coredump.
  6900. lt_prog_compiler_pic='-fPIC -shared'
  6901. ;;
  6902. osf3* | osf4* | osf5*)
  6903. lt_prog_compiler_wl='-Wl,'
  6904. # All OSF/1 code is PIC.
  6905. lt_prog_compiler_static='-non_shared'
  6906. ;;
  6907. rdos*)
  6908. lt_prog_compiler_static='-non_shared'
  6909. ;;
  6910. solaris*)
  6911. lt_prog_compiler_pic='-KPIC'
  6912. lt_prog_compiler_static='-Bstatic'
  6913. case $cc_basename in
  6914. f77* | f90* | f95*)
  6915. lt_prog_compiler_wl='-Qoption ld ';;
  6916. *)
  6917. lt_prog_compiler_wl='-Wl,';;
  6918. esac
  6919. ;;
  6920. sunos4*)
  6921. lt_prog_compiler_wl='-Qoption ld '
  6922. lt_prog_compiler_pic='-PIC'
  6923. lt_prog_compiler_static='-Bstatic'
  6924. ;;
  6925. sysv4 | sysv4.2uw2* | sysv4.3*)
  6926. lt_prog_compiler_wl='-Wl,'
  6927. lt_prog_compiler_pic='-KPIC'
  6928. lt_prog_compiler_static='-Bstatic'
  6929. ;;
  6930. sysv4*MP*)
  6931. if test -d /usr/nec ;then
  6932. lt_prog_compiler_pic='-Kconform_pic'
  6933. lt_prog_compiler_static='-Bstatic'
  6934. fi
  6935. ;;
  6936. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6937. lt_prog_compiler_wl='-Wl,'
  6938. lt_prog_compiler_pic='-KPIC'
  6939. lt_prog_compiler_static='-Bstatic'
  6940. ;;
  6941. unicos*)
  6942. lt_prog_compiler_wl='-Wl,'
  6943. lt_prog_compiler_can_build_shared=no
  6944. ;;
  6945. uts4*)
  6946. lt_prog_compiler_pic='-pic'
  6947. lt_prog_compiler_static='-Bstatic'
  6948. ;;
  6949. *)
  6950. lt_prog_compiler_can_build_shared=no
  6951. ;;
  6952. esac
  6953. fi
  6954. case $host_os in
  6955. # For platforms which do not support PIC, -DPIC is meaningless:
  6956. *djgpp*)
  6957. lt_prog_compiler_pic=
  6958. ;;
  6959. *)
  6960. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6961. ;;
  6962. esac
  6963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6964. $as_echo "$lt_prog_compiler_pic" >&6; }
  6965. #
  6966. # Check to make sure the PIC flag actually works.
  6967. #
  6968. if test -n "$lt_prog_compiler_pic"; then
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6970. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6971. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  6972. $as_echo_n "(cached) " >&6
  6973. else
  6974. lt_cv_prog_compiler_pic_works=no
  6975. ac_outfile=conftest.$ac_objext
  6976. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6977. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6978. # Insert the option either (1) after the last *FLAGS variable, or
  6979. # (2) before a word containing "conftest.", or (3) at the end.
  6980. # Note that $ac_compile itself does not contain backslashes and begins
  6981. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6982. # The option is referenced via a variable to avoid confusing sed.
  6983. lt_compile=`echo "$ac_compile" | $SED \
  6984. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6985. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6986. -e 's:$: $lt_compiler_flag:'`
  6987. (eval echo "\"\$as_me:8059: $lt_compile\"" >&5)
  6988. (eval "$lt_compile" 2>conftest.err)
  6989. ac_status=$?
  6990. cat conftest.err >&5
  6991. echo "$as_me:8063: \$? = $ac_status" >&5
  6992. if (exit $ac_status) && test -s "$ac_outfile"; then
  6993. # The compiler can only warn and ignore the option if not recognized
  6994. # So say no if there are warnings other than the usual output.
  6995. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6996. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6997. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6998. lt_cv_prog_compiler_pic_works=yes
  6999. fi
  7000. fi
  7001. $RM conftest*
  7002. fi
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7004. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7005. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7006. case $lt_prog_compiler_pic in
  7007. "" | " "*) ;;
  7008. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7009. esac
  7010. else
  7011. lt_prog_compiler_pic=
  7012. lt_prog_compiler_can_build_shared=no
  7013. fi
  7014. fi
  7015. #
  7016. # Check to make sure the static flag actually works.
  7017. #
  7018. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7020. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7021. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7022. $as_echo_n "(cached) " >&6
  7023. else
  7024. lt_cv_prog_compiler_static_works=no
  7025. save_LDFLAGS="$LDFLAGS"
  7026. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7027. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7028. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7029. # The linker can only warn and ignore the option if not recognized
  7030. # So say no if there are warnings
  7031. if test -s conftest.err; then
  7032. # Append any errors to the config.log.
  7033. cat conftest.err 1>&5
  7034. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7036. if diff conftest.exp conftest.er2 >/dev/null; then
  7037. lt_cv_prog_compiler_static_works=yes
  7038. fi
  7039. else
  7040. lt_cv_prog_compiler_static_works=yes
  7041. fi
  7042. fi
  7043. $RM -r conftest*
  7044. LDFLAGS="$save_LDFLAGS"
  7045. fi
  7046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7047. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7048. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7049. :
  7050. else
  7051. lt_prog_compiler_static=
  7052. fi
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7054. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7055. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7056. $as_echo_n "(cached) " >&6
  7057. else
  7058. lt_cv_prog_compiler_c_o=no
  7059. $RM -r conftest 2>/dev/null
  7060. mkdir conftest
  7061. cd conftest
  7062. mkdir out
  7063. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7064. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7065. # Insert the option either (1) after the last *FLAGS variable, or
  7066. # (2) before a word containing "conftest.", or (3) at the end.
  7067. # Note that $ac_compile itself does not contain backslashes and begins
  7068. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7069. lt_compile=`echo "$ac_compile" | $SED \
  7070. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7071. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7072. -e 's:$: $lt_compiler_flag:'`
  7073. (eval echo "\"\$as_me:8164: $lt_compile\"" >&5)
  7074. (eval "$lt_compile" 2>out/conftest.err)
  7075. ac_status=$?
  7076. cat out/conftest.err >&5
  7077. echo "$as_me:8168: \$? = $ac_status" >&5
  7078. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7079. then
  7080. # The compiler can only warn and ignore the option if not recognized
  7081. # So say no if there are warnings
  7082. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7083. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7084. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7085. lt_cv_prog_compiler_c_o=yes
  7086. fi
  7087. fi
  7088. chmod u+w . 2>&5
  7089. $RM conftest*
  7090. # SGI C++ compiler will create directory out/ii_files/ for
  7091. # template instantiation
  7092. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7093. $RM out/* && rmdir out
  7094. cd ..
  7095. $RM -r conftest
  7096. $RM conftest*
  7097. fi
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7099. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7101. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7102. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7103. $as_echo_n "(cached) " >&6
  7104. else
  7105. lt_cv_prog_compiler_c_o=no
  7106. $RM -r conftest 2>/dev/null
  7107. mkdir conftest
  7108. cd conftest
  7109. mkdir out
  7110. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7111. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7112. # Insert the option either (1) after the last *FLAGS variable, or
  7113. # (2) before a word containing "conftest.", or (3) at the end.
  7114. # Note that $ac_compile itself does not contain backslashes and begins
  7115. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7116. lt_compile=`echo "$ac_compile" | $SED \
  7117. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7118. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7119. -e 's:$: $lt_compiler_flag:'`
  7120. (eval echo "\"\$as_me:8219: $lt_compile\"" >&5)
  7121. (eval "$lt_compile" 2>out/conftest.err)
  7122. ac_status=$?
  7123. cat out/conftest.err >&5
  7124. echo "$as_me:8223: \$? = $ac_status" >&5
  7125. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7126. then
  7127. # The compiler can only warn and ignore the option if not recognized
  7128. # So say no if there are warnings
  7129. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7130. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7131. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7132. lt_cv_prog_compiler_c_o=yes
  7133. fi
  7134. fi
  7135. chmod u+w . 2>&5
  7136. $RM conftest*
  7137. # SGI C++ compiler will create directory out/ii_files/ for
  7138. # template instantiation
  7139. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7140. $RM out/* && rmdir out
  7141. cd ..
  7142. $RM -r conftest
  7143. $RM conftest*
  7144. fi
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7146. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7147. hard_links="nottested"
  7148. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7149. # do not overwrite the value of need_locks provided by the user
  7150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7151. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7152. hard_links=yes
  7153. $RM conftest*
  7154. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7155. touch conftest.a
  7156. ln conftest.a conftest.b 2>&5 || hard_links=no
  7157. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7159. $as_echo "$hard_links" >&6; }
  7160. if test "$hard_links" = no; then
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7162. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7163. need_locks=warn
  7164. fi
  7165. else
  7166. need_locks=no
  7167. fi
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7169. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7170. runpath_var=
  7171. allow_undefined_flag=
  7172. always_export_symbols=no
  7173. archive_cmds=
  7174. archive_expsym_cmds=
  7175. compiler_needs_object=no
  7176. enable_shared_with_static_runtimes=no
  7177. export_dynamic_flag_spec=
  7178. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7179. hardcode_automatic=no
  7180. hardcode_direct=no
  7181. hardcode_direct_absolute=no
  7182. hardcode_libdir_flag_spec=
  7183. hardcode_libdir_flag_spec_ld=
  7184. hardcode_libdir_separator=
  7185. hardcode_minus_L=no
  7186. hardcode_shlibpath_var=unsupported
  7187. inherit_rpath=no
  7188. link_all_deplibs=unknown
  7189. module_cmds=
  7190. module_expsym_cmds=
  7191. old_archive_from_new_cmds=
  7192. old_archive_from_expsyms_cmds=
  7193. thread_safe_flag_spec=
  7194. whole_archive_flag_spec=
  7195. # include_expsyms should be a list of space-separated symbols to be *always*
  7196. # included in the symbol list
  7197. include_expsyms=
  7198. # exclude_expsyms can be an extended regexp of symbols to exclude
  7199. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7200. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7201. # as well as any symbol that contains `d'.
  7202. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7203. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7204. # platforms (ab)use it in PIC code, but their linkers get confused if
  7205. # the symbol is explicitly referenced. Since portable code cannot
  7206. # rely on this symbol name, it's probably fine to never include it in
  7207. # preloaded symbol tables.
  7208. # Exclude shared library initialization/finalization symbols.
  7209. extract_expsyms_cmds=
  7210. case $host_os in
  7211. cygwin* | mingw* | pw32* | cegcc*)
  7212. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7213. # When not using gcc, we currently assume that we are using
  7214. # Microsoft Visual C++.
  7215. if test "$GCC" != yes; then
  7216. with_gnu_ld=no
  7217. fi
  7218. ;;
  7219. interix*)
  7220. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7221. with_gnu_ld=yes
  7222. ;;
  7223. openbsd*)
  7224. with_gnu_ld=no
  7225. ;;
  7226. esac
  7227. ld_shlibs=yes
  7228. if test "$with_gnu_ld" = yes; then
  7229. # If archive_cmds runs LD, not CC, wlarc should be empty
  7230. wlarc='${wl}'
  7231. # Set some defaults for GNU ld with shared library support. These
  7232. # are reset later if shared libraries are not supported. Putting them
  7233. # here allows them to be overridden if necessary.
  7234. runpath_var=LD_RUN_PATH
  7235. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7236. export_dynamic_flag_spec='${wl}--export-dynamic'
  7237. # ancient GNU ld didn't support --whole-archive et. al.
  7238. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7239. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7240. else
  7241. whole_archive_flag_spec=
  7242. fi
  7243. supports_anon_versioning=no
  7244. case `$LD -v 2>&1` in
  7245. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7246. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7247. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7248. *\ 2.11.*) ;; # other 2.11 versions
  7249. *) supports_anon_versioning=yes ;;
  7250. esac
  7251. # See if GNU ld supports shared libraries.
  7252. case $host_os in
  7253. aix[3-9]*)
  7254. # On AIX/PPC, the GNU linker is very broken
  7255. if test "$host_cpu" != ia64; then
  7256. ld_shlibs=no
  7257. cat <<_LT_EOF 1>&2
  7258. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7259. *** to be unable to reliably create shared libraries on AIX.
  7260. *** Therefore, libtool is disabling shared libraries support. If you
  7261. *** really care for shared libraries, you may want to modify your PATH
  7262. *** so that a non-GNU linker is found, and then restart.
  7263. _LT_EOF
  7264. fi
  7265. ;;
  7266. amigaos*)
  7267. case $host_cpu in
  7268. powerpc)
  7269. # see comment about AmigaOS4 .so support
  7270. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7271. archive_expsym_cmds=''
  7272. ;;
  7273. m68k)
  7274. 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)'
  7275. hardcode_libdir_flag_spec='-L$libdir'
  7276. hardcode_minus_L=yes
  7277. ;;
  7278. esac
  7279. ;;
  7280. beos*)
  7281. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7282. allow_undefined_flag=unsupported
  7283. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7284. # support --undefined. This deserves some investigation. FIXME
  7285. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7286. else
  7287. ld_shlibs=no
  7288. fi
  7289. ;;
  7290. cygwin* | mingw* | pw32* | cegcc*)
  7291. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7292. # as there is no search path for DLLs.
  7293. hardcode_libdir_flag_spec='-L$libdir'
  7294. allow_undefined_flag=unsupported
  7295. always_export_symbols=no
  7296. enable_shared_with_static_runtimes=yes
  7297. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7298. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7299. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7300. # If the export-symbols file already is a .def file (1st line
  7301. # is EXPORTS), use it as is; otherwise, prepend...
  7302. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7303. cp $export_symbols $output_objdir/$soname.def;
  7304. else
  7305. echo EXPORTS > $output_objdir/$soname.def;
  7306. cat $export_symbols >> $output_objdir/$soname.def;
  7307. fi~
  7308. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7309. else
  7310. ld_shlibs=no
  7311. fi
  7312. ;;
  7313. interix[3-9]*)
  7314. hardcode_direct=no
  7315. hardcode_shlibpath_var=no
  7316. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7317. export_dynamic_flag_spec='${wl}-E'
  7318. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7319. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7320. # default) and relocated if they conflict, which is a slow very memory
  7321. # consuming and fragmenting process. To avoid this, we pick a random,
  7322. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7323. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7324. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7325. 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'
  7326. ;;
  7327. gnu* | linux* | tpf* | k*bsd*-gnu)
  7328. tmp_diet=no
  7329. if test "$host_os" = linux-dietlibc; then
  7330. case $cc_basename in
  7331. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7332. esac
  7333. fi
  7334. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7335. && test "$tmp_diet" = no
  7336. then
  7337. tmp_addflag=
  7338. tmp_sharedflag='-shared'
  7339. case $cc_basename,$host_cpu in
  7340. pgcc*) # Portland Group C compiler
  7341. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7342. tmp_addflag=' $pic_flag'
  7343. ;;
  7344. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7345. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7346. tmp_addflag=' $pic_flag -Mnomain' ;;
  7347. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7348. tmp_addflag=' -i_dynamic' ;;
  7349. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7350. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7351. ifc* | ifort*) # Intel Fortran compiler
  7352. tmp_addflag=' -nofor_main' ;;
  7353. lf95*) # Lahey Fortran 8.1
  7354. whole_archive_flag_spec=
  7355. tmp_sharedflag='--shared' ;;
  7356. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7357. tmp_sharedflag='-qmkshrobj'
  7358. tmp_addflag= ;;
  7359. esac
  7360. case `$CC -V 2>&1 | sed 5q` in
  7361. *Sun\ C*) # Sun C 5.9
  7362. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7363. compiler_needs_object=yes
  7364. tmp_sharedflag='-G' ;;
  7365. *Sun\ F*) # Sun Fortran 8.3
  7366. tmp_sharedflag='-G' ;;
  7367. esac
  7368. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7369. if test "x$supports_anon_versioning" = xyes; then
  7370. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7371. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7372. echo "local: *; };" >> $output_objdir/$libname.ver~
  7373. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7374. fi
  7375. case $cc_basename in
  7376. xlf*)
  7377. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7378. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7379. hardcode_libdir_flag_spec=
  7380. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7381. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7382. if test "x$supports_anon_versioning" = xyes; then
  7383. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7384. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7385. echo "local: *; };" >> $output_objdir/$libname.ver~
  7386. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7387. fi
  7388. ;;
  7389. esac
  7390. else
  7391. ld_shlibs=no
  7392. fi
  7393. ;;
  7394. netbsd*)
  7395. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7396. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7397. wlarc=
  7398. else
  7399. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7400. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7401. fi
  7402. ;;
  7403. solaris*)
  7404. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7405. ld_shlibs=no
  7406. cat <<_LT_EOF 1>&2
  7407. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7408. *** create shared libraries on Solaris systems. Therefore, libtool
  7409. *** is disabling shared libraries support. We urge you to upgrade GNU
  7410. *** binutils to release 2.9.1 or newer. Another option is to modify
  7411. *** your PATH or compiler configuration so that the native linker is
  7412. *** used, and then restart.
  7413. _LT_EOF
  7414. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7415. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7416. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7417. else
  7418. ld_shlibs=no
  7419. fi
  7420. ;;
  7421. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7422. case `$LD -v 2>&1` in
  7423. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7424. ld_shlibs=no
  7425. cat <<_LT_EOF 1>&2
  7426. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7427. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7428. *** is disabling shared libraries support. We urge you to upgrade GNU
  7429. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7430. *** your PATH or compiler configuration so that the native linker is
  7431. *** used, and then restart.
  7432. _LT_EOF
  7433. ;;
  7434. *)
  7435. # For security reasons, it is highly recommended that you always
  7436. # use absolute paths for naming shared libraries, and exclude the
  7437. # DT_RUNPATH tag from executables and libraries. But doing so
  7438. # requires that you compile everything twice, which is a pain.
  7439. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7440. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7441. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7442. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7443. else
  7444. ld_shlibs=no
  7445. fi
  7446. ;;
  7447. esac
  7448. ;;
  7449. sunos4*)
  7450. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7451. wlarc=
  7452. hardcode_direct=yes
  7453. hardcode_shlibpath_var=no
  7454. ;;
  7455. *)
  7456. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7457. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7458. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7459. else
  7460. ld_shlibs=no
  7461. fi
  7462. ;;
  7463. esac
  7464. if test "$ld_shlibs" = no; then
  7465. runpath_var=
  7466. hardcode_libdir_flag_spec=
  7467. export_dynamic_flag_spec=
  7468. whole_archive_flag_spec=
  7469. fi
  7470. else
  7471. # PORTME fill in a description of your system's linker (not GNU ld)
  7472. case $host_os in
  7473. aix3*)
  7474. allow_undefined_flag=unsupported
  7475. always_export_symbols=yes
  7476. 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'
  7477. # Note: this linker hardcodes the directories in LIBPATH if there
  7478. # are no directories specified by -L.
  7479. hardcode_minus_L=yes
  7480. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7481. # Neither direct hardcoding nor static linking is supported with a
  7482. # broken collect2.
  7483. hardcode_direct=unsupported
  7484. fi
  7485. ;;
  7486. aix[4-9]*)
  7487. if test "$host_cpu" = ia64; then
  7488. # On IA64, the linker does run time linking by default, so we don't
  7489. # have to do anything special.
  7490. aix_use_runtimelinking=no
  7491. exp_sym_flag='-Bexport'
  7492. no_entry_flag=""
  7493. else
  7494. # If we're using GNU nm, then we don't want the "-C" option.
  7495. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7496. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7497. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7498. else
  7499. 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'
  7500. fi
  7501. aix_use_runtimelinking=no
  7502. # Test if we are trying to use run time linking or normal
  7503. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7504. # need to do runtime linking.
  7505. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7506. for ld_flag in $LDFLAGS; do
  7507. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7508. aix_use_runtimelinking=yes
  7509. break
  7510. fi
  7511. done
  7512. ;;
  7513. esac
  7514. exp_sym_flag='-bexport'
  7515. no_entry_flag='-bnoentry'
  7516. fi
  7517. # When large executables or shared objects are built, AIX ld can
  7518. # have problems creating the table of contents. If linking a library
  7519. # or program results in "error TOC overflow" add -mminimal-toc to
  7520. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7521. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7522. archive_cmds=''
  7523. hardcode_direct=yes
  7524. hardcode_direct_absolute=yes
  7525. hardcode_libdir_separator=':'
  7526. link_all_deplibs=yes
  7527. file_list_spec='${wl}-f,'
  7528. if test "$GCC" = yes; then
  7529. case $host_os in aix4.[012]|aix4.[012].*)
  7530. # We only want to do this on AIX 4.2 and lower, the check
  7531. # below for broken collect2 doesn't work under 4.3+
  7532. collect2name=`${CC} -print-prog-name=collect2`
  7533. if test -f "$collect2name" &&
  7534. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7535. then
  7536. # We have reworked collect2
  7537. :
  7538. else
  7539. # We have old collect2
  7540. hardcode_direct=unsupported
  7541. # It fails to find uninstalled libraries when the uninstalled
  7542. # path is not listed in the libpath. Setting hardcode_minus_L
  7543. # to unsupported forces relinking
  7544. hardcode_minus_L=yes
  7545. hardcode_libdir_flag_spec='-L$libdir'
  7546. hardcode_libdir_separator=
  7547. fi
  7548. ;;
  7549. esac
  7550. shared_flag='-shared'
  7551. if test "$aix_use_runtimelinking" = yes; then
  7552. shared_flag="$shared_flag "'${wl}-G'
  7553. fi
  7554. else
  7555. # not using gcc
  7556. if test "$host_cpu" = ia64; then
  7557. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7558. # chokes on -Wl,-G. The following line is correct:
  7559. shared_flag='-G'
  7560. else
  7561. if test "$aix_use_runtimelinking" = yes; then
  7562. shared_flag='${wl}-G'
  7563. else
  7564. shared_flag='${wl}-bM:SRE'
  7565. fi
  7566. fi
  7567. fi
  7568. export_dynamic_flag_spec='${wl}-bexpall'
  7569. # It seems that -bexpall does not export symbols beginning with
  7570. # underscore (_), so it is better to generate a list of symbols to export.
  7571. always_export_symbols=yes
  7572. if test "$aix_use_runtimelinking" = yes; then
  7573. # Warning - without using the other runtime loading flags (-brtl),
  7574. # -berok will link without error, but may produce a broken library.
  7575. allow_undefined_flag='-berok'
  7576. # Determine the default libpath from the value encoded in an
  7577. # empty executable.
  7578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7579. /* end confdefs.h. */
  7580. int
  7581. main ()
  7582. {
  7583. ;
  7584. return 0;
  7585. }
  7586. _ACEOF
  7587. if ac_fn_c_try_link "$LINENO"; then :
  7588. lt_aix_libpath_sed='
  7589. /Import File Strings/,/^$/ {
  7590. /^0/ {
  7591. s/^0 *\(.*\)$/\1/
  7592. p
  7593. }
  7594. }'
  7595. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7596. # Check for a 64-bit object if we didn't find anything.
  7597. if test -z "$aix_libpath"; then
  7598. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7599. fi
  7600. fi
  7601. rm -f core conftest.err conftest.$ac_objext \
  7602. conftest$ac_exeext conftest.$ac_ext
  7603. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7604. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7605. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7606. else
  7607. if test "$host_cpu" = ia64; then
  7608. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7609. allow_undefined_flag="-z nodefs"
  7610. 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"
  7611. else
  7612. # Determine the default libpath from the value encoded in an
  7613. # empty executable.
  7614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7615. /* end confdefs.h. */
  7616. int
  7617. main ()
  7618. {
  7619. ;
  7620. return 0;
  7621. }
  7622. _ACEOF
  7623. if ac_fn_c_try_link "$LINENO"; then :
  7624. lt_aix_libpath_sed='
  7625. /Import File Strings/,/^$/ {
  7626. /^0/ {
  7627. s/^0 *\(.*\)$/\1/
  7628. p
  7629. }
  7630. }'
  7631. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7632. # Check for a 64-bit object if we didn't find anything.
  7633. if test -z "$aix_libpath"; then
  7634. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7635. fi
  7636. fi
  7637. rm -f core conftest.err conftest.$ac_objext \
  7638. conftest$ac_exeext conftest.$ac_ext
  7639. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7640. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7641. # Warning - without using the other run time loading flags,
  7642. # -berok will link without error, but may produce a broken library.
  7643. no_undefined_flag=' ${wl}-bernotok'
  7644. allow_undefined_flag=' ${wl}-berok'
  7645. # Exported symbols can be pulled into shared objects from archives
  7646. whole_archive_flag_spec='$convenience'
  7647. archive_cmds_need_lc=yes
  7648. # This is similar to how AIX traditionally builds its shared libraries.
  7649. 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'
  7650. fi
  7651. fi
  7652. ;;
  7653. amigaos*)
  7654. case $host_cpu in
  7655. powerpc)
  7656. # see comment about AmigaOS4 .so support
  7657. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7658. archive_expsym_cmds=''
  7659. ;;
  7660. m68k)
  7661. 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)'
  7662. hardcode_libdir_flag_spec='-L$libdir'
  7663. hardcode_minus_L=yes
  7664. ;;
  7665. esac
  7666. ;;
  7667. bsdi[45]*)
  7668. export_dynamic_flag_spec=-rdynamic
  7669. ;;
  7670. cygwin* | mingw* | pw32* | cegcc*)
  7671. # When not using gcc, we currently assume that we are using
  7672. # Microsoft Visual C++.
  7673. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7674. # no search path for DLLs.
  7675. hardcode_libdir_flag_spec=' '
  7676. allow_undefined_flag=unsupported
  7677. # Tell ltmain to make .lib files, not .a files.
  7678. libext=lib
  7679. # Tell ltmain to make .dll files, not .so files.
  7680. shrext_cmds=".dll"
  7681. # FIXME: Setting linknames here is a bad hack.
  7682. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7683. # The linker will automatically build a .lib file if we build a DLL.
  7684. old_archive_from_new_cmds='true'
  7685. # FIXME: Should let the user specify the lib program.
  7686. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7687. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7688. enable_shared_with_static_runtimes=yes
  7689. ;;
  7690. darwin* | rhapsody*)
  7691. archive_cmds_need_lc=no
  7692. hardcode_direct=no
  7693. hardcode_automatic=yes
  7694. hardcode_shlibpath_var=unsupported
  7695. whole_archive_flag_spec=''
  7696. link_all_deplibs=yes
  7697. allow_undefined_flag="$_lt_dar_allow_undefined"
  7698. case $cc_basename in
  7699. ifort*) _lt_dar_can_shared=yes ;;
  7700. *) _lt_dar_can_shared=$GCC ;;
  7701. esac
  7702. if test "$_lt_dar_can_shared" = "yes"; then
  7703. output_verbose_link_cmd=echo
  7704. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7705. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7706. 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}"
  7707. 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}"
  7708. else
  7709. ld_shlibs=no
  7710. fi
  7711. ;;
  7712. dgux*)
  7713. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7714. hardcode_libdir_flag_spec='-L$libdir'
  7715. hardcode_shlibpath_var=no
  7716. ;;
  7717. freebsd1*)
  7718. ld_shlibs=no
  7719. ;;
  7720. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7721. # support. Future versions do this automatically, but an explicit c++rt0.o
  7722. # does not break anything, and helps significantly (at the cost of a little
  7723. # extra space).
  7724. freebsd2.2*)
  7725. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7726. hardcode_libdir_flag_spec='-R$libdir'
  7727. hardcode_direct=yes
  7728. hardcode_shlibpath_var=no
  7729. ;;
  7730. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7731. freebsd2*)
  7732. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7733. hardcode_direct=yes
  7734. hardcode_minus_L=yes
  7735. hardcode_shlibpath_var=no
  7736. ;;
  7737. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7738. freebsd* | dragonfly*)
  7739. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7740. hardcode_libdir_flag_spec='-R$libdir'
  7741. hardcode_direct=yes
  7742. hardcode_shlibpath_var=no
  7743. ;;
  7744. hpux9*)
  7745. if test "$GCC" = yes; then
  7746. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7747. else
  7748. 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'
  7749. fi
  7750. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7751. hardcode_libdir_separator=:
  7752. hardcode_direct=yes
  7753. # hardcode_minus_L: Not really in the search PATH,
  7754. # but as the default location of the library.
  7755. hardcode_minus_L=yes
  7756. export_dynamic_flag_spec='${wl}-E'
  7757. ;;
  7758. hpux10*)
  7759. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7760. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7761. else
  7762. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7763. fi
  7764. if test "$with_gnu_ld" = no; then
  7765. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7766. hardcode_libdir_flag_spec_ld='+b $libdir'
  7767. hardcode_libdir_separator=:
  7768. hardcode_direct=yes
  7769. hardcode_direct_absolute=yes
  7770. export_dynamic_flag_spec='${wl}-E'
  7771. # hardcode_minus_L: Not really in the search PATH,
  7772. # but as the default location of the library.
  7773. hardcode_minus_L=yes
  7774. fi
  7775. ;;
  7776. hpux11*)
  7777. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7778. case $host_cpu in
  7779. hppa*64*)
  7780. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7781. ;;
  7782. ia64*)
  7783. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7784. ;;
  7785. *)
  7786. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7787. ;;
  7788. esac
  7789. else
  7790. case $host_cpu in
  7791. hppa*64*)
  7792. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7793. ;;
  7794. ia64*)
  7795. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7796. ;;
  7797. *)
  7798. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7799. ;;
  7800. esac
  7801. fi
  7802. if test "$with_gnu_ld" = no; then
  7803. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7804. hardcode_libdir_separator=:
  7805. case $host_cpu in
  7806. hppa*64*|ia64*)
  7807. hardcode_direct=no
  7808. hardcode_shlibpath_var=no
  7809. ;;
  7810. *)
  7811. hardcode_direct=yes
  7812. hardcode_direct_absolute=yes
  7813. export_dynamic_flag_spec='${wl}-E'
  7814. # hardcode_minus_L: Not really in the search PATH,
  7815. # but as the default location of the library.
  7816. hardcode_minus_L=yes
  7817. ;;
  7818. esac
  7819. fi
  7820. ;;
  7821. irix5* | irix6* | nonstopux*)
  7822. if test "$GCC" = yes; then
  7823. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7824. # Try to use the -exported_symbol ld option, if it does not
  7825. # work, assume that -exports_file does not work either and
  7826. # implicitly export all symbols.
  7827. save_LDFLAGS="$LDFLAGS"
  7828. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7830. /* end confdefs.h. */
  7831. int foo (void) { return 0; }
  7832. _ACEOF
  7833. if ac_fn_c_try_link "$LINENO"; then :
  7834. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7835. fi
  7836. rm -f core conftest.err conftest.$ac_objext \
  7837. conftest$ac_exeext conftest.$ac_ext
  7838. LDFLAGS="$save_LDFLAGS"
  7839. else
  7840. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7841. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7842. fi
  7843. archive_cmds_need_lc='no'
  7844. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7845. hardcode_libdir_separator=:
  7846. inherit_rpath=yes
  7847. link_all_deplibs=yes
  7848. ;;
  7849. netbsd*)
  7850. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7851. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7852. else
  7853. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7854. fi
  7855. hardcode_libdir_flag_spec='-R$libdir'
  7856. hardcode_direct=yes
  7857. hardcode_shlibpath_var=no
  7858. ;;
  7859. newsos6)
  7860. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7861. hardcode_direct=yes
  7862. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7863. hardcode_libdir_separator=:
  7864. hardcode_shlibpath_var=no
  7865. ;;
  7866. *nto* | *qnx*)
  7867. ;;
  7868. openbsd*)
  7869. if test -f /usr/libexec/ld.so; then
  7870. hardcode_direct=yes
  7871. hardcode_shlibpath_var=no
  7872. hardcode_direct_absolute=yes
  7873. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7874. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7875. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7876. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7877. export_dynamic_flag_spec='${wl}-E'
  7878. else
  7879. case $host_os in
  7880. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7881. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7882. hardcode_libdir_flag_spec='-R$libdir'
  7883. ;;
  7884. *)
  7885. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7886. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7887. ;;
  7888. esac
  7889. fi
  7890. else
  7891. ld_shlibs=no
  7892. fi
  7893. ;;
  7894. os2*)
  7895. hardcode_libdir_flag_spec='-L$libdir'
  7896. hardcode_minus_L=yes
  7897. allow_undefined_flag=unsupported
  7898. 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'
  7899. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7900. ;;
  7901. osf3*)
  7902. if test "$GCC" = yes; then
  7903. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7904. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7905. else
  7906. allow_undefined_flag=' -expect_unresolved \*'
  7907. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7908. fi
  7909. archive_cmds_need_lc='no'
  7910. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7911. hardcode_libdir_separator=:
  7912. ;;
  7913. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7914. if test "$GCC" = yes; then
  7915. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7916. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7917. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7918. else
  7919. allow_undefined_flag=' -expect_unresolved \*'
  7920. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7921. 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~
  7922. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7923. # Both c and cxx compiler support -rpath directly
  7924. hardcode_libdir_flag_spec='-rpath $libdir'
  7925. fi
  7926. archive_cmds_need_lc='no'
  7927. hardcode_libdir_separator=:
  7928. ;;
  7929. solaris*)
  7930. no_undefined_flag=' -z defs'
  7931. if test "$GCC" = yes; then
  7932. wlarc='${wl}'
  7933. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7934. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7935. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7936. else
  7937. case `$CC -V 2>&1` in
  7938. *"Compilers 5.0"*)
  7939. wlarc=''
  7940. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7941. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7942. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7943. ;;
  7944. *)
  7945. wlarc='${wl}'
  7946. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7947. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7948. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7949. ;;
  7950. esac
  7951. fi
  7952. hardcode_libdir_flag_spec='-R$libdir'
  7953. hardcode_shlibpath_var=no
  7954. case $host_os in
  7955. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7956. *)
  7957. # The compiler driver will combine and reorder linker options,
  7958. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7959. # but is careful enough not to reorder.
  7960. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7961. if test "$GCC" = yes; then
  7962. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7963. else
  7964. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7965. fi
  7966. ;;
  7967. esac
  7968. link_all_deplibs=yes
  7969. ;;
  7970. sunos4*)
  7971. if test "x$host_vendor" = xsequent; then
  7972. # Use $CC to link under sequent, because it throws in some extra .o
  7973. # files that make .init and .fini sections work.
  7974. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7975. else
  7976. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7977. fi
  7978. hardcode_libdir_flag_spec='-L$libdir'
  7979. hardcode_direct=yes
  7980. hardcode_minus_L=yes
  7981. hardcode_shlibpath_var=no
  7982. ;;
  7983. sysv4)
  7984. case $host_vendor in
  7985. sni)
  7986. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7987. hardcode_direct=yes # is this really true???
  7988. ;;
  7989. siemens)
  7990. ## LD is ld it makes a PLAMLIB
  7991. ## CC just makes a GrossModule.
  7992. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7993. reload_cmds='$CC -r -o $output$reload_objs'
  7994. hardcode_direct=no
  7995. ;;
  7996. motorola)
  7997. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7998. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7999. ;;
  8000. esac
  8001. runpath_var='LD_RUN_PATH'
  8002. hardcode_shlibpath_var=no
  8003. ;;
  8004. sysv4.3*)
  8005. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8006. hardcode_shlibpath_var=no
  8007. export_dynamic_flag_spec='-Bexport'
  8008. ;;
  8009. sysv4*MP*)
  8010. if test -d /usr/nec; then
  8011. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8012. hardcode_shlibpath_var=no
  8013. runpath_var=LD_RUN_PATH
  8014. hardcode_runpath_var=yes
  8015. ld_shlibs=yes
  8016. fi
  8017. ;;
  8018. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8019. no_undefined_flag='${wl}-z,text'
  8020. archive_cmds_need_lc=no
  8021. hardcode_shlibpath_var=no
  8022. runpath_var='LD_RUN_PATH'
  8023. if test "$GCC" = yes; then
  8024. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8025. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8026. else
  8027. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8028. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8029. fi
  8030. ;;
  8031. sysv5* | sco3.2v5* | sco5v6*)
  8032. # Note: We can NOT use -z defs as we might desire, because we do not
  8033. # link with -lc, and that would cause any symbols used from libc to
  8034. # always be unresolved, which means just about no library would
  8035. # ever link correctly. If we're not using GNU ld we use -z text
  8036. # though, which does catch some bad symbols but isn't as heavy-handed
  8037. # as -z defs.
  8038. no_undefined_flag='${wl}-z,text'
  8039. allow_undefined_flag='${wl}-z,nodefs'
  8040. archive_cmds_need_lc=no
  8041. hardcode_shlibpath_var=no
  8042. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8043. hardcode_libdir_separator=':'
  8044. link_all_deplibs=yes
  8045. export_dynamic_flag_spec='${wl}-Bexport'
  8046. runpath_var='LD_RUN_PATH'
  8047. if test "$GCC" = yes; then
  8048. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8049. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8050. else
  8051. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8052. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8053. fi
  8054. ;;
  8055. uts4*)
  8056. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8057. hardcode_libdir_flag_spec='-L$libdir'
  8058. hardcode_shlibpath_var=no
  8059. ;;
  8060. *)
  8061. ld_shlibs=no
  8062. ;;
  8063. esac
  8064. if test x$host_vendor = xsni; then
  8065. case $host in
  8066. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8067. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8068. ;;
  8069. esac
  8070. fi
  8071. fi
  8072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8073. $as_echo "$ld_shlibs" >&6; }
  8074. test "$ld_shlibs" = no && can_build_shared=no
  8075. with_gnu_ld=$with_gnu_ld
  8076. #
  8077. # Do we need to explicitly link libc?
  8078. #
  8079. case "x$archive_cmds_need_lc" in
  8080. x|xyes)
  8081. # Assume -lc should be added
  8082. archive_cmds_need_lc=yes
  8083. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8084. case $archive_cmds in
  8085. *'~'*)
  8086. # FIXME: we may have to deal with multi-command sequences.
  8087. ;;
  8088. '$CC '*)
  8089. # Test whether the compiler implicitly links with -lc since on some
  8090. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8091. # to ld, don't add -lc before -lgcc.
  8092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8093. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8094. $RM conftest*
  8095. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8096. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8097. (eval $ac_compile) 2>&5
  8098. ac_status=$?
  8099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8100. test $ac_status = 0; } 2>conftest.err; then
  8101. soname=conftest
  8102. lib=conftest
  8103. libobjs=conftest.$ac_objext
  8104. deplibs=
  8105. wl=$lt_prog_compiler_wl
  8106. pic_flag=$lt_prog_compiler_pic
  8107. compiler_flags=-v
  8108. linker_flags=-v
  8109. verstring=
  8110. output_objdir=.
  8111. libname=conftest
  8112. lt_save_allow_undefined_flag=$allow_undefined_flag
  8113. allow_undefined_flag=
  8114. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8115. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8116. ac_status=$?
  8117. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8118. test $ac_status = 0; }
  8119. then
  8120. archive_cmds_need_lc=no
  8121. else
  8122. archive_cmds_need_lc=yes
  8123. fi
  8124. allow_undefined_flag=$lt_save_allow_undefined_flag
  8125. else
  8126. cat conftest.err 1>&5
  8127. fi
  8128. $RM conftest*
  8129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8130. $as_echo "$archive_cmds_need_lc" >&6; }
  8131. ;;
  8132. esac
  8133. fi
  8134. ;;
  8135. esac
  8136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8137. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8138. if test "$GCC" = yes; then
  8139. case $host_os in
  8140. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8141. *) lt_awk_arg="/^libraries:/" ;;
  8142. esac
  8143. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8144. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8145. # if the path contains ";" then we assume it to be the separator
  8146. # otherwise default to the standard path separator (i.e. ":") - it is
  8147. # assumed that no part of a normal pathname contains ";" but that should
  8148. # okay in the real world where ";" in dirpaths is itself problematic.
  8149. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8150. else
  8151. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8152. fi
  8153. # Ok, now we have the path, separated by spaces, we can step through it
  8154. # and add multilib dir if necessary.
  8155. lt_tmp_lt_search_path_spec=
  8156. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8157. for lt_sys_path in $lt_search_path_spec; do
  8158. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8159. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8160. else
  8161. test -d "$lt_sys_path" && \
  8162. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8163. fi
  8164. done
  8165. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8166. BEGIN {RS=" "; FS="/|\n";} {
  8167. lt_foo="";
  8168. lt_count=0;
  8169. for (lt_i = NF; lt_i > 0; lt_i--) {
  8170. if ($lt_i != "" && $lt_i != ".") {
  8171. if ($lt_i == "..") {
  8172. lt_count++;
  8173. } else {
  8174. if (lt_count == 0) {
  8175. lt_foo="/" $lt_i lt_foo;
  8176. } else {
  8177. lt_count--;
  8178. }
  8179. }
  8180. }
  8181. }
  8182. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8183. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8184. }'`
  8185. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8186. else
  8187. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8188. fi
  8189. library_names_spec=
  8190. libname_spec='lib$name'
  8191. soname_spec=
  8192. shrext_cmds=".so"
  8193. postinstall_cmds=
  8194. postuninstall_cmds=
  8195. finish_cmds=
  8196. finish_eval=
  8197. shlibpath_var=
  8198. shlibpath_overrides_runpath=unknown
  8199. version_type=none
  8200. dynamic_linker="$host_os ld.so"
  8201. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8202. need_lib_prefix=unknown
  8203. hardcode_into_libs=no
  8204. # when you set need_version to no, make sure it does not cause -set_version
  8205. # flags to be left without arguments
  8206. need_version=unknown
  8207. case $host_os in
  8208. aix3*)
  8209. version_type=linux
  8210. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8211. shlibpath_var=LIBPATH
  8212. # AIX 3 has no versioning support, so we append a major version to the name.
  8213. soname_spec='${libname}${release}${shared_ext}$major'
  8214. ;;
  8215. aix[4-9]*)
  8216. version_type=linux
  8217. need_lib_prefix=no
  8218. need_version=no
  8219. hardcode_into_libs=yes
  8220. if test "$host_cpu" = ia64; then
  8221. # AIX 5 supports IA64
  8222. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8223. shlibpath_var=LD_LIBRARY_PATH
  8224. else
  8225. # With GCC up to 2.95.x, collect2 would create an import file
  8226. # for dependence libraries. The import file would start with
  8227. # the line `#! .'. This would cause the generated library to
  8228. # depend on `.', always an invalid library. This was fixed in
  8229. # development snapshots of GCC prior to 3.0.
  8230. case $host_os in
  8231. aix4 | aix4.[01] | aix4.[01].*)
  8232. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8233. echo ' yes '
  8234. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8235. :
  8236. else
  8237. can_build_shared=no
  8238. fi
  8239. ;;
  8240. esac
  8241. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8242. # soname into executable. Probably we can add versioning support to
  8243. # collect2, so additional links can be useful in future.
  8244. if test "$aix_use_runtimelinking" = yes; then
  8245. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8246. # instead of lib<name>.a to let people know that these are not
  8247. # typical AIX shared libraries.
  8248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8249. else
  8250. # We preserve .a as extension for shared libraries through AIX4.2
  8251. # and later when we are not doing run time linking.
  8252. library_names_spec='${libname}${release}.a $libname.a'
  8253. soname_spec='${libname}${release}${shared_ext}$major'
  8254. fi
  8255. shlibpath_var=LIBPATH
  8256. fi
  8257. ;;
  8258. amigaos*)
  8259. case $host_cpu in
  8260. powerpc)
  8261. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8262. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8264. ;;
  8265. m68k)
  8266. library_names_spec='$libname.ixlibrary $libname.a'
  8267. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8268. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  8269. ;;
  8270. esac
  8271. ;;
  8272. beos*)
  8273. library_names_spec='${libname}${shared_ext}'
  8274. dynamic_linker="$host_os ld.so"
  8275. shlibpath_var=LIBRARY_PATH
  8276. ;;
  8277. bsdi[45]*)
  8278. version_type=linux
  8279. need_version=no
  8280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8281. soname_spec='${libname}${release}${shared_ext}$major'
  8282. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8283. shlibpath_var=LD_LIBRARY_PATH
  8284. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8285. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8286. # the default ld.so.conf also contains /usr/contrib/lib and
  8287. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8288. # libtool to hard-code these into programs
  8289. ;;
  8290. cygwin* | mingw* | pw32* | cegcc*)
  8291. version_type=windows
  8292. shrext_cmds=".dll"
  8293. need_version=no
  8294. need_lib_prefix=no
  8295. case $GCC,$host_os in
  8296. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8297. library_names_spec='$libname.dll.a'
  8298. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8299. postinstall_cmds='base_file=`basename \${file}`~
  8300. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8301. dldir=$destdir/`dirname \$dlpath`~
  8302. test -d \$dldir || mkdir -p \$dldir~
  8303. $install_prog $dir/$dlname \$dldir/$dlname~
  8304. chmod a+x \$dldir/$dlname~
  8305. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8306. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8307. fi'
  8308. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8309. dlpath=$dir/\$dldll~
  8310. $RM \$dlpath'
  8311. shlibpath_overrides_runpath=yes
  8312. case $host_os in
  8313. cygwin*)
  8314. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8315. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8316. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8317. ;;
  8318. mingw* | cegcc*)
  8319. # MinGW DLLs use traditional 'lib' prefix
  8320. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8321. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8322. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8323. # It is most probably a Windows format PATH printed by
  8324. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8325. # path with ; separators, and with drive letters. We can handle the
  8326. # drive letters (cygwin fileutils understands them), so leave them,
  8327. # especially as we might pass files found there to a mingw objdump,
  8328. # which wouldn't understand a cygwinified path. Ahh.
  8329. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8330. else
  8331. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8332. fi
  8333. ;;
  8334. pw32*)
  8335. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8336. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8337. ;;
  8338. esac
  8339. ;;
  8340. *)
  8341. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8342. ;;
  8343. esac
  8344. dynamic_linker='Win32 ld.exe'
  8345. # FIXME: first we should search . and the directory the executable is in
  8346. shlibpath_var=PATH
  8347. ;;
  8348. darwin* | rhapsody*)
  8349. dynamic_linker="$host_os dyld"
  8350. version_type=darwin
  8351. need_lib_prefix=no
  8352. need_version=no
  8353. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8354. soname_spec='${libname}${release}${major}$shared_ext'
  8355. shlibpath_overrides_runpath=yes
  8356. shlibpath_var=DYLD_LIBRARY_PATH
  8357. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8358. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8359. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8360. ;;
  8361. dgux*)
  8362. version_type=linux
  8363. need_lib_prefix=no
  8364. need_version=no
  8365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8366. soname_spec='${libname}${release}${shared_ext}$major'
  8367. shlibpath_var=LD_LIBRARY_PATH
  8368. ;;
  8369. freebsd1*)
  8370. dynamic_linker=no
  8371. ;;
  8372. freebsd* | dragonfly*)
  8373. # DragonFly does not have aout. When/if they implement a new
  8374. # versioning mechanism, adjust this.
  8375. if test -x /usr/bin/objformat; then
  8376. objformat=`/usr/bin/objformat`
  8377. else
  8378. case $host_os in
  8379. freebsd[123]*) objformat=aout ;;
  8380. *) objformat=elf ;;
  8381. esac
  8382. fi
  8383. version_type=freebsd-$objformat
  8384. case $version_type in
  8385. freebsd-elf*)
  8386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8387. need_version=no
  8388. need_lib_prefix=no
  8389. ;;
  8390. freebsd-*)
  8391. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8392. need_version=yes
  8393. ;;
  8394. esac
  8395. shlibpath_var=LD_LIBRARY_PATH
  8396. case $host_os in
  8397. freebsd2*)
  8398. shlibpath_overrides_runpath=yes
  8399. ;;
  8400. freebsd3.[01]* | freebsdelf3.[01]*)
  8401. shlibpath_overrides_runpath=yes
  8402. hardcode_into_libs=yes
  8403. ;;
  8404. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8405. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8406. shlibpath_overrides_runpath=no
  8407. hardcode_into_libs=yes
  8408. ;;
  8409. *) # from 4.6 on, and DragonFly
  8410. shlibpath_overrides_runpath=yes
  8411. hardcode_into_libs=yes
  8412. ;;
  8413. esac
  8414. ;;
  8415. gnu*)
  8416. version_type=linux
  8417. need_lib_prefix=no
  8418. need_version=no
  8419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8420. soname_spec='${libname}${release}${shared_ext}$major'
  8421. shlibpath_var=LD_LIBRARY_PATH
  8422. hardcode_into_libs=yes
  8423. ;;
  8424. hpux9* | hpux10* | hpux11*)
  8425. # Give a soname corresponding to the major version so that dld.sl refuses to
  8426. # link against other versions.
  8427. version_type=sunos
  8428. need_lib_prefix=no
  8429. need_version=no
  8430. case $host_cpu in
  8431. ia64*)
  8432. shrext_cmds='.so'
  8433. hardcode_into_libs=yes
  8434. dynamic_linker="$host_os dld.so"
  8435. shlibpath_var=LD_LIBRARY_PATH
  8436. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8438. soname_spec='${libname}${release}${shared_ext}$major'
  8439. if test "X$HPUX_IA64_MODE" = X32; then
  8440. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8441. else
  8442. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8443. fi
  8444. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8445. ;;
  8446. hppa*64*)
  8447. shrext_cmds='.sl'
  8448. hardcode_into_libs=yes
  8449. dynamic_linker="$host_os dld.sl"
  8450. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8451. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8453. soname_spec='${libname}${release}${shared_ext}$major'
  8454. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8455. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8456. ;;
  8457. *)
  8458. shrext_cmds='.sl'
  8459. dynamic_linker="$host_os dld.sl"
  8460. shlibpath_var=SHLIB_PATH
  8461. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8463. soname_spec='${libname}${release}${shared_ext}$major'
  8464. ;;
  8465. esac
  8466. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8467. postinstall_cmds='chmod 555 $lib'
  8468. ;;
  8469. interix[3-9]*)
  8470. version_type=linux
  8471. need_lib_prefix=no
  8472. need_version=no
  8473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8474. soname_spec='${libname}${release}${shared_ext}$major'
  8475. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8476. shlibpath_var=LD_LIBRARY_PATH
  8477. shlibpath_overrides_runpath=no
  8478. hardcode_into_libs=yes
  8479. ;;
  8480. irix5* | irix6* | nonstopux*)
  8481. case $host_os in
  8482. nonstopux*) version_type=nonstopux ;;
  8483. *)
  8484. if test "$lt_cv_prog_gnu_ld" = yes; then
  8485. version_type=linux
  8486. else
  8487. version_type=irix
  8488. fi ;;
  8489. esac
  8490. need_lib_prefix=no
  8491. need_version=no
  8492. soname_spec='${libname}${release}${shared_ext}$major'
  8493. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8494. case $host_os in
  8495. irix5* | nonstopux*)
  8496. libsuff= shlibsuff=
  8497. ;;
  8498. *)
  8499. case $LD in # libtool.m4 will add one of these switches to LD
  8500. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8501. libsuff= shlibsuff= libmagic=32-bit;;
  8502. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8503. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8504. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8505. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8506. *) libsuff= shlibsuff= libmagic=never-match;;
  8507. esac
  8508. ;;
  8509. esac
  8510. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8511. shlibpath_overrides_runpath=no
  8512. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8513. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8514. hardcode_into_libs=yes
  8515. ;;
  8516. # No shared lib support for Linux oldld, aout, or coff.
  8517. linux*oldld* | linux*aout* | linux*coff*)
  8518. dynamic_linker=no
  8519. ;;
  8520. # This must be Linux ELF.
  8521. linux* | k*bsd*-gnu)
  8522. version_type=linux
  8523. need_lib_prefix=no
  8524. need_version=no
  8525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8526. soname_spec='${libname}${release}${shared_ext}$major'
  8527. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8528. shlibpath_var=LD_LIBRARY_PATH
  8529. shlibpath_overrides_runpath=no
  8530. # Some binutils ld are patched to set DT_RUNPATH
  8531. save_LDFLAGS=$LDFLAGS
  8532. save_libdir=$libdir
  8533. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8534. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8536. /* end confdefs.h. */
  8537. int
  8538. main ()
  8539. {
  8540. ;
  8541. return 0;
  8542. }
  8543. _ACEOF
  8544. if ac_fn_c_try_link "$LINENO"; then :
  8545. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8546. shlibpath_overrides_runpath=yes
  8547. fi
  8548. fi
  8549. rm -f core conftest.err conftest.$ac_objext \
  8550. conftest$ac_exeext conftest.$ac_ext
  8551. LDFLAGS=$save_LDFLAGS
  8552. libdir=$save_libdir
  8553. # This implies no fast_install, which is unacceptable.
  8554. # Some rework will be needed to allow for fast_install
  8555. # before this can be enabled.
  8556. hardcode_into_libs=yes
  8557. # Append ld.so.conf contents to the search path
  8558. if test -f /etc/ld.so.conf; then
  8559. 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;/^$/d' | tr '\n' ' '`
  8560. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8561. fi
  8562. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8563. # powerpc, because MkLinux only supported shared libraries with the
  8564. # GNU dynamic linker. Since this was broken with cross compilers,
  8565. # most powerpc-linux boxes support dynamic linking these days and
  8566. # people can always --disable-shared, the test was removed, and we
  8567. # assume the GNU/Linux dynamic linker is in use.
  8568. dynamic_linker='GNU/Linux ld.so'
  8569. ;;
  8570. netbsd*)
  8571. version_type=sunos
  8572. need_lib_prefix=no
  8573. need_version=no
  8574. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8576. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8577. dynamic_linker='NetBSD (a.out) ld.so'
  8578. else
  8579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8580. soname_spec='${libname}${release}${shared_ext}$major'
  8581. dynamic_linker='NetBSD ld.elf_so'
  8582. fi
  8583. shlibpath_var=LD_LIBRARY_PATH
  8584. shlibpath_overrides_runpath=yes
  8585. hardcode_into_libs=yes
  8586. ;;
  8587. newsos6)
  8588. version_type=linux
  8589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8590. shlibpath_var=LD_LIBRARY_PATH
  8591. shlibpath_overrides_runpath=yes
  8592. ;;
  8593. *nto* | *qnx*)
  8594. version_type=qnx
  8595. need_lib_prefix=no
  8596. need_version=no
  8597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8598. soname_spec='${libname}${release}${shared_ext}$major'
  8599. shlibpath_var=LD_LIBRARY_PATH
  8600. shlibpath_overrides_runpath=no
  8601. hardcode_into_libs=yes
  8602. dynamic_linker='ldqnx.so'
  8603. ;;
  8604. openbsd*)
  8605. version_type=sunos
  8606. sys_lib_dlsearch_path_spec="/usr/lib"
  8607. need_lib_prefix=no
  8608. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8609. case $host_os in
  8610. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8611. *) need_version=no ;;
  8612. esac
  8613. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8614. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8615. shlibpath_var=LD_LIBRARY_PATH
  8616. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8617. case $host_os in
  8618. openbsd2.[89] | openbsd2.[89].*)
  8619. shlibpath_overrides_runpath=no
  8620. ;;
  8621. *)
  8622. shlibpath_overrides_runpath=yes
  8623. ;;
  8624. esac
  8625. else
  8626. shlibpath_overrides_runpath=yes
  8627. fi
  8628. ;;
  8629. os2*)
  8630. libname_spec='$name'
  8631. shrext_cmds=".dll"
  8632. need_lib_prefix=no
  8633. library_names_spec='$libname${shared_ext} $libname.a'
  8634. dynamic_linker='OS/2 ld.exe'
  8635. shlibpath_var=LIBPATH
  8636. ;;
  8637. osf3* | osf4* | osf5*)
  8638. version_type=osf
  8639. need_lib_prefix=no
  8640. need_version=no
  8641. soname_spec='${libname}${release}${shared_ext}$major'
  8642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8643. shlibpath_var=LD_LIBRARY_PATH
  8644. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8645. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8646. ;;
  8647. rdos*)
  8648. dynamic_linker=no
  8649. ;;
  8650. solaris*)
  8651. version_type=linux
  8652. need_lib_prefix=no
  8653. need_version=no
  8654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8655. soname_spec='${libname}${release}${shared_ext}$major'
  8656. shlibpath_var=LD_LIBRARY_PATH
  8657. shlibpath_overrides_runpath=yes
  8658. hardcode_into_libs=yes
  8659. # ldd complains unless libraries are executable
  8660. postinstall_cmds='chmod +x $lib'
  8661. ;;
  8662. sunos4*)
  8663. version_type=sunos
  8664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8665. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8666. shlibpath_var=LD_LIBRARY_PATH
  8667. shlibpath_overrides_runpath=yes
  8668. if test "$with_gnu_ld" = yes; then
  8669. need_lib_prefix=no
  8670. fi
  8671. need_version=yes
  8672. ;;
  8673. sysv4 | sysv4.3*)
  8674. version_type=linux
  8675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8676. soname_spec='${libname}${release}${shared_ext}$major'
  8677. shlibpath_var=LD_LIBRARY_PATH
  8678. case $host_vendor in
  8679. sni)
  8680. shlibpath_overrides_runpath=no
  8681. need_lib_prefix=no
  8682. runpath_var=LD_RUN_PATH
  8683. ;;
  8684. siemens)
  8685. need_lib_prefix=no
  8686. ;;
  8687. motorola)
  8688. need_lib_prefix=no
  8689. need_version=no
  8690. shlibpath_overrides_runpath=no
  8691. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8692. ;;
  8693. esac
  8694. ;;
  8695. sysv4*MP*)
  8696. if test -d /usr/nec ;then
  8697. version_type=linux
  8698. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8699. soname_spec='$libname${shared_ext}.$major'
  8700. shlibpath_var=LD_LIBRARY_PATH
  8701. fi
  8702. ;;
  8703. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8704. version_type=freebsd-elf
  8705. need_lib_prefix=no
  8706. need_version=no
  8707. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8708. soname_spec='${libname}${release}${shared_ext}$major'
  8709. shlibpath_var=LD_LIBRARY_PATH
  8710. shlibpath_overrides_runpath=yes
  8711. hardcode_into_libs=yes
  8712. if test "$with_gnu_ld" = yes; then
  8713. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8714. else
  8715. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8716. case $host_os in
  8717. sco3.2v5*)
  8718. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8719. ;;
  8720. esac
  8721. fi
  8722. sys_lib_dlsearch_path_spec='/usr/lib'
  8723. ;;
  8724. tpf*)
  8725. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8726. version_type=linux
  8727. need_lib_prefix=no
  8728. need_version=no
  8729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8730. shlibpath_var=LD_LIBRARY_PATH
  8731. shlibpath_overrides_runpath=no
  8732. hardcode_into_libs=yes
  8733. ;;
  8734. uts4*)
  8735. version_type=linux
  8736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8737. soname_spec='${libname}${release}${shared_ext}$major'
  8738. shlibpath_var=LD_LIBRARY_PATH
  8739. ;;
  8740. *)
  8741. dynamic_linker=no
  8742. ;;
  8743. esac
  8744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8745. $as_echo "$dynamic_linker" >&6; }
  8746. test "$dynamic_linker" = no && can_build_shared=no
  8747. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8748. if test "$GCC" = yes; then
  8749. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8750. fi
  8751. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8752. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8753. fi
  8754. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8755. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8756. fi
  8757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8758. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8759. hardcode_action=
  8760. if test -n "$hardcode_libdir_flag_spec" ||
  8761. test -n "$runpath_var" ||
  8762. test "X$hardcode_automatic" = "Xyes" ; then
  8763. # We can hardcode non-existent directories.
  8764. if test "$hardcode_direct" != no &&
  8765. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8766. # have to relink, otherwise we might link with an installed library
  8767. # when we should be linking with a yet-to-be-installed one
  8768. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8769. test "$hardcode_minus_L" != no; then
  8770. # Linking always hardcodes the temporary library directory.
  8771. hardcode_action=relink
  8772. else
  8773. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8774. hardcode_action=immediate
  8775. fi
  8776. else
  8777. # We cannot hardcode anything, or else we can only hardcode existing
  8778. # directories.
  8779. hardcode_action=unsupported
  8780. fi
  8781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8782. $as_echo "$hardcode_action" >&6; }
  8783. if test "$hardcode_action" = relink ||
  8784. test "$inherit_rpath" = yes; then
  8785. # Fast installation is not supported
  8786. enable_fast_install=no
  8787. elif test "$shlibpath_overrides_runpath" = yes ||
  8788. test "$enable_shared" = no; then
  8789. # Fast installation is not necessary
  8790. enable_fast_install=needless
  8791. fi
  8792. if test "x$enable_dlopen" != xyes; then
  8793. enable_dlopen=unknown
  8794. enable_dlopen_self=unknown
  8795. enable_dlopen_self_static=unknown
  8796. else
  8797. lt_cv_dlopen=no
  8798. lt_cv_dlopen_libs=
  8799. case $host_os in
  8800. beos*)
  8801. lt_cv_dlopen="load_add_on"
  8802. lt_cv_dlopen_libs=
  8803. lt_cv_dlopen_self=yes
  8804. ;;
  8805. mingw* | pw32* | cegcc*)
  8806. lt_cv_dlopen="LoadLibrary"
  8807. lt_cv_dlopen_libs=
  8808. ;;
  8809. cygwin*)
  8810. lt_cv_dlopen="dlopen"
  8811. lt_cv_dlopen_libs=
  8812. ;;
  8813. darwin*)
  8814. # if libdl is installed we need to link against it
  8815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8816. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8817. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8818. $as_echo_n "(cached) " >&6
  8819. else
  8820. ac_check_lib_save_LIBS=$LIBS
  8821. LIBS="-ldl $LIBS"
  8822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8823. /* end confdefs.h. */
  8824. /* Override any GCC internal prototype to avoid an error.
  8825. Use char because int might match the return type of a GCC
  8826. builtin and then its argument prototype would still apply. */
  8827. #ifdef __cplusplus
  8828. extern "C"
  8829. #endif
  8830. char dlopen ();
  8831. int
  8832. main ()
  8833. {
  8834. return dlopen ();
  8835. ;
  8836. return 0;
  8837. }
  8838. _ACEOF
  8839. if ac_fn_c_try_link "$LINENO"; then :
  8840. ac_cv_lib_dl_dlopen=yes
  8841. else
  8842. ac_cv_lib_dl_dlopen=no
  8843. fi
  8844. rm -f core conftest.err conftest.$ac_objext \
  8845. conftest$ac_exeext conftest.$ac_ext
  8846. LIBS=$ac_check_lib_save_LIBS
  8847. fi
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8849. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8850. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8851. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8852. else
  8853. lt_cv_dlopen="dyld"
  8854. lt_cv_dlopen_libs=
  8855. lt_cv_dlopen_self=yes
  8856. fi
  8857. ;;
  8858. *)
  8859. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8860. if test "x$ac_cv_func_shl_load" = xyes; then :
  8861. lt_cv_dlopen="shl_load"
  8862. else
  8863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8864. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8865. if ${ac_cv_lib_dld_shl_load+:} false; then :
  8866. $as_echo_n "(cached) " >&6
  8867. else
  8868. ac_check_lib_save_LIBS=$LIBS
  8869. LIBS="-ldld $LIBS"
  8870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8871. /* end confdefs.h. */
  8872. /* Override any GCC internal prototype to avoid an error.
  8873. Use char because int might match the return type of a GCC
  8874. builtin and then its argument prototype would still apply. */
  8875. #ifdef __cplusplus
  8876. extern "C"
  8877. #endif
  8878. char shl_load ();
  8879. int
  8880. main ()
  8881. {
  8882. return shl_load ();
  8883. ;
  8884. return 0;
  8885. }
  8886. _ACEOF
  8887. if ac_fn_c_try_link "$LINENO"; then :
  8888. ac_cv_lib_dld_shl_load=yes
  8889. else
  8890. ac_cv_lib_dld_shl_load=no
  8891. fi
  8892. rm -f core conftest.err conftest.$ac_objext \
  8893. conftest$ac_exeext conftest.$ac_ext
  8894. LIBS=$ac_check_lib_save_LIBS
  8895. fi
  8896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8897. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8898. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  8899. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8900. else
  8901. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8902. if test "x$ac_cv_func_dlopen" = xyes; then :
  8903. lt_cv_dlopen="dlopen"
  8904. else
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8906. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8907. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8908. $as_echo_n "(cached) " >&6
  8909. else
  8910. ac_check_lib_save_LIBS=$LIBS
  8911. LIBS="-ldl $LIBS"
  8912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8913. /* end confdefs.h. */
  8914. /* Override any GCC internal prototype to avoid an error.
  8915. Use char because int might match the return type of a GCC
  8916. builtin and then its argument prototype would still apply. */
  8917. #ifdef __cplusplus
  8918. extern "C"
  8919. #endif
  8920. char dlopen ();
  8921. int
  8922. main ()
  8923. {
  8924. return dlopen ();
  8925. ;
  8926. return 0;
  8927. }
  8928. _ACEOF
  8929. if ac_fn_c_try_link "$LINENO"; then :
  8930. ac_cv_lib_dl_dlopen=yes
  8931. else
  8932. ac_cv_lib_dl_dlopen=no
  8933. fi
  8934. rm -f core conftest.err conftest.$ac_objext \
  8935. conftest$ac_exeext conftest.$ac_ext
  8936. LIBS=$ac_check_lib_save_LIBS
  8937. fi
  8938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8939. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8940. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8941. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8942. else
  8943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8944. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8945. if ${ac_cv_lib_svld_dlopen+:} false; then :
  8946. $as_echo_n "(cached) " >&6
  8947. else
  8948. ac_check_lib_save_LIBS=$LIBS
  8949. LIBS="-lsvld $LIBS"
  8950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8951. /* end confdefs.h. */
  8952. /* Override any GCC internal prototype to avoid an error.
  8953. Use char because int might match the return type of a GCC
  8954. builtin and then its argument prototype would still apply. */
  8955. #ifdef __cplusplus
  8956. extern "C"
  8957. #endif
  8958. char dlopen ();
  8959. int
  8960. main ()
  8961. {
  8962. return dlopen ();
  8963. ;
  8964. return 0;
  8965. }
  8966. _ACEOF
  8967. if ac_fn_c_try_link "$LINENO"; then :
  8968. ac_cv_lib_svld_dlopen=yes
  8969. else
  8970. ac_cv_lib_svld_dlopen=no
  8971. fi
  8972. rm -f core conftest.err conftest.$ac_objext \
  8973. conftest$ac_exeext conftest.$ac_ext
  8974. LIBS=$ac_check_lib_save_LIBS
  8975. fi
  8976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8977. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8978. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  8979. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8980. else
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8982. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8983. if ${ac_cv_lib_dld_dld_link+:} false; then :
  8984. $as_echo_n "(cached) " >&6
  8985. else
  8986. ac_check_lib_save_LIBS=$LIBS
  8987. LIBS="-ldld $LIBS"
  8988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8989. /* end confdefs.h. */
  8990. /* Override any GCC internal prototype to avoid an error.
  8991. Use char because int might match the return type of a GCC
  8992. builtin and then its argument prototype would still apply. */
  8993. #ifdef __cplusplus
  8994. extern "C"
  8995. #endif
  8996. char dld_link ();
  8997. int
  8998. main ()
  8999. {
  9000. return dld_link ();
  9001. ;
  9002. return 0;
  9003. }
  9004. _ACEOF
  9005. if ac_fn_c_try_link "$LINENO"; then :
  9006. ac_cv_lib_dld_dld_link=yes
  9007. else
  9008. ac_cv_lib_dld_dld_link=no
  9009. fi
  9010. rm -f core conftest.err conftest.$ac_objext \
  9011. conftest$ac_exeext conftest.$ac_ext
  9012. LIBS=$ac_check_lib_save_LIBS
  9013. fi
  9014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9015. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9016. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9017. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9018. fi
  9019. fi
  9020. fi
  9021. fi
  9022. fi
  9023. fi
  9024. ;;
  9025. esac
  9026. if test "x$lt_cv_dlopen" != xno; then
  9027. enable_dlopen=yes
  9028. else
  9029. enable_dlopen=no
  9030. fi
  9031. case $lt_cv_dlopen in
  9032. dlopen)
  9033. save_CPPFLAGS="$CPPFLAGS"
  9034. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9035. save_LDFLAGS="$LDFLAGS"
  9036. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9037. save_LIBS="$LIBS"
  9038. LIBS="$lt_cv_dlopen_libs $LIBS"
  9039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9040. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9041. if ${lt_cv_dlopen_self+:} false; then :
  9042. $as_echo_n "(cached) " >&6
  9043. else
  9044. if test "$cross_compiling" = yes; then :
  9045. lt_cv_dlopen_self=cross
  9046. else
  9047. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9048. lt_status=$lt_dlunknown
  9049. cat > conftest.$ac_ext <<_LT_EOF
  9050. #line 10587 "configure"
  9051. #include "confdefs.h"
  9052. #if HAVE_DLFCN_H
  9053. #include <dlfcn.h>
  9054. #endif
  9055. #include <stdio.h>
  9056. #ifdef RTLD_GLOBAL
  9057. # define LT_DLGLOBAL RTLD_GLOBAL
  9058. #else
  9059. # ifdef DL_GLOBAL
  9060. # define LT_DLGLOBAL DL_GLOBAL
  9061. # else
  9062. # define LT_DLGLOBAL 0
  9063. # endif
  9064. #endif
  9065. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9066. find out it does not work in some platform. */
  9067. #ifndef LT_DLLAZY_OR_NOW
  9068. # ifdef RTLD_LAZY
  9069. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9070. # else
  9071. # ifdef DL_LAZY
  9072. # define LT_DLLAZY_OR_NOW DL_LAZY
  9073. # else
  9074. # ifdef RTLD_NOW
  9075. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9076. # else
  9077. # ifdef DL_NOW
  9078. # define LT_DLLAZY_OR_NOW DL_NOW
  9079. # else
  9080. # define LT_DLLAZY_OR_NOW 0
  9081. # endif
  9082. # endif
  9083. # endif
  9084. # endif
  9085. #endif
  9086. void fnord() { int i=42;}
  9087. int main ()
  9088. {
  9089. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9090. int status = $lt_dlunknown;
  9091. if (self)
  9092. {
  9093. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9094. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9095. /* dlclose (self); */
  9096. }
  9097. else
  9098. puts (dlerror ());
  9099. return status;
  9100. }
  9101. _LT_EOF
  9102. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9103. (eval $ac_link) 2>&5
  9104. ac_status=$?
  9105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9106. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9107. (./conftest; exit; ) >&5 2>/dev/null
  9108. lt_status=$?
  9109. case x$lt_status in
  9110. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9111. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9112. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9113. esac
  9114. else :
  9115. # compilation failed
  9116. lt_cv_dlopen_self=no
  9117. fi
  9118. fi
  9119. rm -fr conftest*
  9120. fi
  9121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9122. $as_echo "$lt_cv_dlopen_self" >&6; }
  9123. if test "x$lt_cv_dlopen_self" = xyes; then
  9124. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9126. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9127. if ${lt_cv_dlopen_self_static+:} false; then :
  9128. $as_echo_n "(cached) " >&6
  9129. else
  9130. if test "$cross_compiling" = yes; then :
  9131. lt_cv_dlopen_self_static=cross
  9132. else
  9133. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9134. lt_status=$lt_dlunknown
  9135. cat > conftest.$ac_ext <<_LT_EOF
  9136. #line 10683 "configure"
  9137. #include "confdefs.h"
  9138. #if HAVE_DLFCN_H
  9139. #include <dlfcn.h>
  9140. #endif
  9141. #include <stdio.h>
  9142. #ifdef RTLD_GLOBAL
  9143. # define LT_DLGLOBAL RTLD_GLOBAL
  9144. #else
  9145. # ifdef DL_GLOBAL
  9146. # define LT_DLGLOBAL DL_GLOBAL
  9147. # else
  9148. # define LT_DLGLOBAL 0
  9149. # endif
  9150. #endif
  9151. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9152. find out it does not work in some platform. */
  9153. #ifndef LT_DLLAZY_OR_NOW
  9154. # ifdef RTLD_LAZY
  9155. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9156. # else
  9157. # ifdef DL_LAZY
  9158. # define LT_DLLAZY_OR_NOW DL_LAZY
  9159. # else
  9160. # ifdef RTLD_NOW
  9161. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9162. # else
  9163. # ifdef DL_NOW
  9164. # define LT_DLLAZY_OR_NOW DL_NOW
  9165. # else
  9166. # define LT_DLLAZY_OR_NOW 0
  9167. # endif
  9168. # endif
  9169. # endif
  9170. # endif
  9171. #endif
  9172. void fnord() { int i=42;}
  9173. int main ()
  9174. {
  9175. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9176. int status = $lt_dlunknown;
  9177. if (self)
  9178. {
  9179. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9180. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9181. /* dlclose (self); */
  9182. }
  9183. else
  9184. puts (dlerror ());
  9185. return status;
  9186. }
  9187. _LT_EOF
  9188. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9189. (eval $ac_link) 2>&5
  9190. ac_status=$?
  9191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9192. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9193. (./conftest; exit; ) >&5 2>/dev/null
  9194. lt_status=$?
  9195. case x$lt_status in
  9196. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9197. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9198. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9199. esac
  9200. else :
  9201. # compilation failed
  9202. lt_cv_dlopen_self_static=no
  9203. fi
  9204. fi
  9205. rm -fr conftest*
  9206. fi
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9208. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9209. fi
  9210. CPPFLAGS="$save_CPPFLAGS"
  9211. LDFLAGS="$save_LDFLAGS"
  9212. LIBS="$save_LIBS"
  9213. ;;
  9214. esac
  9215. case $lt_cv_dlopen_self in
  9216. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9217. *) enable_dlopen_self=unknown ;;
  9218. esac
  9219. case $lt_cv_dlopen_self_static in
  9220. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9221. *) enable_dlopen_self_static=unknown ;;
  9222. esac
  9223. fi
  9224. striplib=
  9225. old_striplib=
  9226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9227. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9228. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9229. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9230. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9232. $as_echo "yes" >&6; }
  9233. else
  9234. # FIXME - insert some real tests, host_os isn't really good enough
  9235. case $host_os in
  9236. darwin*)
  9237. if test -n "$STRIP" ; then
  9238. striplib="$STRIP -x"
  9239. old_striplib="$STRIP -S"
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9241. $as_echo "yes" >&6; }
  9242. else
  9243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9244. $as_echo "no" >&6; }
  9245. fi
  9246. ;;
  9247. *)
  9248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9249. $as_echo "no" >&6; }
  9250. ;;
  9251. esac
  9252. fi
  9253. # Report which library types will actually be built
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9255. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9257. $as_echo "$can_build_shared" >&6; }
  9258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9259. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9260. test "$can_build_shared" = "no" && enable_shared=no
  9261. # On AIX, shared libraries and static libraries use the same namespace, and
  9262. # are all built from PIC.
  9263. case $host_os in
  9264. aix3*)
  9265. test "$enable_shared" = yes && enable_static=no
  9266. if test -n "$RANLIB"; then
  9267. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9268. postinstall_cmds='$RANLIB $lib'
  9269. fi
  9270. ;;
  9271. aix[4-9]*)
  9272. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9273. test "$enable_shared" = yes && enable_static=no
  9274. fi
  9275. ;;
  9276. esac
  9277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9278. $as_echo "$enable_shared" >&6; }
  9279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9280. $as_echo_n "checking whether to build static libraries... " >&6; }
  9281. # Make sure either enable_shared or enable_static is yes.
  9282. test "$enable_shared" = yes || enable_static=yes
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9284. $as_echo "$enable_static" >&6; }
  9285. fi
  9286. ac_ext=c
  9287. ac_cpp='$CPP $CPPFLAGS'
  9288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9291. CC="$lt_save_CC"
  9292. ac_config_commands="$ac_config_commands libtool"
  9293. # Only expand once:
  9294. ac_config_files="$ac_config_files Makefile json.pc json-c.pc tests/Makefile json-c-uninstalled.pc"
  9295. cat >confcache <<\_ACEOF
  9296. # This file is a shell script that caches the results of configure
  9297. # tests run on this system so they can be shared between configure
  9298. # scripts and configure runs, see configure's option --config-cache.
  9299. # It is not useful on other systems. If it contains results you don't
  9300. # want to keep, you may remove or edit it.
  9301. #
  9302. # config.status only pays attention to the cache file if you give it
  9303. # the --recheck option to rerun configure.
  9304. #
  9305. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9306. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9307. # following values.
  9308. _ACEOF
  9309. # The following way of writing the cache mishandles newlines in values,
  9310. # but we know of no workaround that is simple, portable, and efficient.
  9311. # So, we kill variables containing newlines.
  9312. # Ultrix sh set writes to stderr and can't be redirected directly,
  9313. # and sets the high bit in the cache file unless we assign to the vars.
  9314. (
  9315. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9316. eval ac_val=\$$ac_var
  9317. case $ac_val in #(
  9318. *${as_nl}*)
  9319. case $ac_var in #(
  9320. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9321. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9322. esac
  9323. case $ac_var in #(
  9324. _ | IFS | as_nl) ;; #(
  9325. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9326. *) { eval $ac_var=; unset $ac_var;} ;;
  9327. esac ;;
  9328. esac
  9329. done
  9330. (set) 2>&1 |
  9331. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9332. *${as_nl}ac_space=\ *)
  9333. # `set' does not quote correctly, so add quotes: double-quote
  9334. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9335. sed -n \
  9336. "s/'/'\\\\''/g;
  9337. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9338. ;; #(
  9339. *)
  9340. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9341. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9342. ;;
  9343. esac |
  9344. sort
  9345. ) |
  9346. sed '
  9347. /^ac_cv_env_/b end
  9348. t clear
  9349. :clear
  9350. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9351. t end
  9352. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9353. :end' >>confcache
  9354. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9355. if test -w "$cache_file"; then
  9356. if test "x$cache_file" != "x/dev/null"; then
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9358. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9359. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9360. cat confcache >"$cache_file"
  9361. else
  9362. case $cache_file in #(
  9363. */* | ?:*)
  9364. mv -f confcache "$cache_file"$$ &&
  9365. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9366. *)
  9367. mv -f confcache "$cache_file" ;;
  9368. esac
  9369. fi
  9370. fi
  9371. else
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9373. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9374. fi
  9375. fi
  9376. rm -f confcache
  9377. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9378. # Let make expand exec_prefix.
  9379. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9380. DEFS=-DHAVE_CONFIG_H
  9381. ac_libobjs=
  9382. ac_ltlibobjs=
  9383. U=
  9384. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9385. # 1. Remove the extension, and $U if already installed.
  9386. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9387. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9388. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9389. # will be set to the directory where LIBOBJS objects are built.
  9390. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9391. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9392. done
  9393. LIBOBJS=$ac_libobjs
  9394. LTLIBOBJS=$ac_ltlibobjs
  9395. if test -n "$EXEEXT"; then
  9396. am__EXEEXT_TRUE=
  9397. am__EXEEXT_FALSE='#'
  9398. else
  9399. am__EXEEXT_TRUE='#'
  9400. am__EXEEXT_FALSE=
  9401. fi
  9402. if test -z "${ENABLE_OLDNAME_COMPAT_TRUE}" && test -z "${ENABLE_OLDNAME_COMPAT_FALSE}"; then
  9403. as_fn_error $? "conditional \"ENABLE_OLDNAME_COMPAT\" was never defined.
  9404. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9405. fi
  9406. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9407. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9408. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9409. fi
  9410. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9411. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9412. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9413. fi
  9414. : "${CONFIG_STATUS=./config.status}"
  9415. ac_write_fail=0
  9416. ac_clean_files_save=$ac_clean_files
  9417. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9418. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9419. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9420. as_write_fail=0
  9421. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9422. #! $SHELL
  9423. # Generated by $as_me.
  9424. # Run this file to recreate the current configuration.
  9425. # Compiler output produced by configure, useful for debugging
  9426. # configure, is in config.log if it exists.
  9427. debug=false
  9428. ac_cs_recheck=false
  9429. ac_cs_silent=false
  9430. SHELL=\${CONFIG_SHELL-$SHELL}
  9431. export SHELL
  9432. _ASEOF
  9433. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9434. ## -------------------- ##
  9435. ## M4sh Initialization. ##
  9436. ## -------------------- ##
  9437. # Be more Bourne compatible
  9438. DUALCASE=1; export DUALCASE # for MKS sh
  9439. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9440. emulate sh
  9441. NULLCMD=:
  9442. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9443. # is contrary to our usage. Disable this feature.
  9444. alias -g '${1+"$@"}'='"$@"'
  9445. setopt NO_GLOB_SUBST
  9446. else
  9447. case `(set -o) 2>/dev/null` in #(
  9448. *posix*) :
  9449. set -o posix ;; #(
  9450. *) :
  9451. ;;
  9452. esac
  9453. fi
  9454. as_nl='
  9455. '
  9456. export as_nl
  9457. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9458. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9459. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9460. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9461. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9462. # but without wasting forks for bash or zsh.
  9463. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9464. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9465. as_echo='print -r --'
  9466. as_echo_n='print -rn --'
  9467. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9468. as_echo='printf %s\n'
  9469. as_echo_n='printf %s'
  9470. else
  9471. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9472. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9473. as_echo_n='/usr/ucb/echo -n'
  9474. else
  9475. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9476. as_echo_n_body='eval
  9477. arg=$1;
  9478. case $arg in #(
  9479. *"$as_nl"*)
  9480. expr "X$arg" : "X\\(.*\\)$as_nl";
  9481. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9482. esac;
  9483. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9484. '
  9485. export as_echo_n_body
  9486. as_echo_n='sh -c $as_echo_n_body as_echo'
  9487. fi
  9488. export as_echo_body
  9489. as_echo='sh -c $as_echo_body as_echo'
  9490. fi
  9491. # The user is always right.
  9492. if test "${PATH_SEPARATOR+set}" != set; then
  9493. PATH_SEPARATOR=:
  9494. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9495. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9496. PATH_SEPARATOR=';'
  9497. }
  9498. fi
  9499. # IFS
  9500. # We need space, tab and new line, in precisely that order. Quoting is
  9501. # there to prevent editors from complaining about space-tab.
  9502. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9503. # splitting by setting IFS to empty value.)
  9504. IFS=" "" $as_nl"
  9505. # Find who we are. Look in the path if we contain no directory separator.
  9506. as_myself=
  9507. case $0 in #((
  9508. *[\\/]* ) as_myself=$0 ;;
  9509. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9510. for as_dir in $PATH
  9511. do
  9512. IFS=$as_save_IFS
  9513. test -z "$as_dir" && as_dir=.
  9514. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9515. done
  9516. IFS=$as_save_IFS
  9517. ;;
  9518. esac
  9519. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9520. # in which case we are not to be found in the path.
  9521. if test "x$as_myself" = x; then
  9522. as_myself=$0
  9523. fi
  9524. if test ! -f "$as_myself"; then
  9525. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9526. exit 1
  9527. fi
  9528. # Unset variables that we do not need and which cause bugs (e.g. in
  9529. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9530. # suppresses any "Segmentation fault" message there. '((' could
  9531. # trigger a bug in pdksh 5.2.14.
  9532. for as_var in BASH_ENV ENV MAIL MAILPATH
  9533. do eval test x\${$as_var+set} = xset \
  9534. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9535. done
  9536. PS1='$ '
  9537. PS2='> '
  9538. PS4='+ '
  9539. # NLS nuisances.
  9540. LC_ALL=C
  9541. export LC_ALL
  9542. LANGUAGE=C
  9543. export LANGUAGE
  9544. # CDPATH.
  9545. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9546. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9547. # ----------------------------------------
  9548. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9549. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9550. # script with STATUS, using 1 if that was 0.
  9551. as_fn_error ()
  9552. {
  9553. as_status=$1; test $as_status -eq 0 && as_status=1
  9554. if test "$4"; then
  9555. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9556. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9557. fi
  9558. $as_echo "$as_me: error: $2" >&2
  9559. as_fn_exit $as_status
  9560. } # as_fn_error
  9561. # as_fn_set_status STATUS
  9562. # -----------------------
  9563. # Set $? to STATUS, without forking.
  9564. as_fn_set_status ()
  9565. {
  9566. return $1
  9567. } # as_fn_set_status
  9568. # as_fn_exit STATUS
  9569. # -----------------
  9570. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9571. as_fn_exit ()
  9572. {
  9573. set +e
  9574. as_fn_set_status $1
  9575. exit $1
  9576. } # as_fn_exit
  9577. # as_fn_unset VAR
  9578. # ---------------
  9579. # Portably unset VAR.
  9580. as_fn_unset ()
  9581. {
  9582. { eval $1=; unset $1;}
  9583. }
  9584. as_unset=as_fn_unset
  9585. # as_fn_append VAR VALUE
  9586. # ----------------------
  9587. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9588. # advantage of any shell optimizations that allow amortized linear growth over
  9589. # repeated appends, instead of the typical quadratic growth present in naive
  9590. # implementations.
  9591. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9592. eval 'as_fn_append ()
  9593. {
  9594. eval $1+=\$2
  9595. }'
  9596. else
  9597. as_fn_append ()
  9598. {
  9599. eval $1=\$$1\$2
  9600. }
  9601. fi # as_fn_append
  9602. # as_fn_arith ARG...
  9603. # ------------------
  9604. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9605. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9606. # must be portable across $(()) and expr.
  9607. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9608. eval 'as_fn_arith ()
  9609. {
  9610. as_val=$(( $* ))
  9611. }'
  9612. else
  9613. as_fn_arith ()
  9614. {
  9615. as_val=`expr "$@" || test $? -eq 1`
  9616. }
  9617. fi # as_fn_arith
  9618. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9619. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9620. as_expr=expr
  9621. else
  9622. as_expr=false
  9623. fi
  9624. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9625. as_basename=basename
  9626. else
  9627. as_basename=false
  9628. fi
  9629. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9630. as_dirname=dirname
  9631. else
  9632. as_dirname=false
  9633. fi
  9634. as_me=`$as_basename -- "$0" ||
  9635. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9636. X"$0" : 'X\(//\)$' \| \
  9637. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9638. $as_echo X/"$0" |
  9639. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9640. s//\1/
  9641. q
  9642. }
  9643. /^X\/\(\/\/\)$/{
  9644. s//\1/
  9645. q
  9646. }
  9647. /^X\/\(\/\).*/{
  9648. s//\1/
  9649. q
  9650. }
  9651. s/.*/./; q'`
  9652. # Avoid depending upon Character Ranges.
  9653. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9654. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9655. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9656. as_cr_digits='0123456789'
  9657. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9658. ECHO_C= ECHO_N= ECHO_T=
  9659. case `echo -n x` in #(((((
  9660. -n*)
  9661. case `echo 'xy\c'` in
  9662. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9663. xy) ECHO_C='\c';;
  9664. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9665. ECHO_T=' ';;
  9666. esac;;
  9667. *)
  9668. ECHO_N='-n';;
  9669. esac
  9670. rm -f conf$$ conf$$.exe conf$$.file
  9671. if test -d conf$$.dir; then
  9672. rm -f conf$$.dir/conf$$.file
  9673. else
  9674. rm -f conf$$.dir
  9675. mkdir conf$$.dir 2>/dev/null
  9676. fi
  9677. if (echo >conf$$.file) 2>/dev/null; then
  9678. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9679. as_ln_s='ln -s'
  9680. # ... but there are two gotchas:
  9681. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9682. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9683. # In both cases, we have to default to `cp -p'.
  9684. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9685. as_ln_s='cp -p'
  9686. elif ln conf$$.file conf$$ 2>/dev/null; then
  9687. as_ln_s=ln
  9688. else
  9689. as_ln_s='cp -p'
  9690. fi
  9691. else
  9692. as_ln_s='cp -p'
  9693. fi
  9694. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9695. rmdir conf$$.dir 2>/dev/null
  9696. # as_fn_mkdir_p
  9697. # -------------
  9698. # Create "$as_dir" as a directory, including parents if necessary.
  9699. as_fn_mkdir_p ()
  9700. {
  9701. case $as_dir in #(
  9702. -*) as_dir=./$as_dir;;
  9703. esac
  9704. test -d "$as_dir" || eval $as_mkdir_p || {
  9705. as_dirs=
  9706. while :; do
  9707. case $as_dir in #(
  9708. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9709. *) as_qdir=$as_dir;;
  9710. esac
  9711. as_dirs="'$as_qdir' $as_dirs"
  9712. as_dir=`$as_dirname -- "$as_dir" ||
  9713. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9714. X"$as_dir" : 'X\(//\)[^/]' \| \
  9715. X"$as_dir" : 'X\(//\)$' \| \
  9716. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9717. $as_echo X"$as_dir" |
  9718. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9719. s//\1/
  9720. q
  9721. }
  9722. /^X\(\/\/\)[^/].*/{
  9723. s//\1/
  9724. q
  9725. }
  9726. /^X\(\/\/\)$/{
  9727. s//\1/
  9728. q
  9729. }
  9730. /^X\(\/\).*/{
  9731. s//\1/
  9732. q
  9733. }
  9734. s/.*/./; q'`
  9735. test -d "$as_dir" && break
  9736. done
  9737. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9738. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9739. } # as_fn_mkdir_p
  9740. if mkdir -p . 2>/dev/null; then
  9741. as_mkdir_p='mkdir -p "$as_dir"'
  9742. else
  9743. test -d ./-p && rmdir ./-p
  9744. as_mkdir_p=false
  9745. fi
  9746. if test -x / >/dev/null 2>&1; then
  9747. as_test_x='test -x'
  9748. else
  9749. if ls -dL / >/dev/null 2>&1; then
  9750. as_ls_L_option=L
  9751. else
  9752. as_ls_L_option=
  9753. fi
  9754. as_test_x='
  9755. eval sh -c '\''
  9756. if test -d "$1"; then
  9757. test -d "$1/.";
  9758. else
  9759. case $1 in #(
  9760. -*)set "./$1";;
  9761. esac;
  9762. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  9763. ???[sx]*):;;*)false;;esac;fi
  9764. '\'' sh
  9765. '
  9766. fi
  9767. as_executable_p=$as_test_x
  9768. # Sed expression to map a string onto a valid CPP name.
  9769. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9770. # Sed expression to map a string onto a valid variable name.
  9771. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9772. exec 6>&1
  9773. ## ----------------------------------- ##
  9774. ## Main body of $CONFIG_STATUS script. ##
  9775. ## ----------------------------------- ##
  9776. _ASEOF
  9777. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9778. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9779. # Save the log message, to keep $0 and so on meaningful, and to
  9780. # report actual input values of CONFIG_FILES etc. instead of their
  9781. # values after options handling.
  9782. ac_log="
  9783. This file was extended by json-c $as_me 0.11, which was
  9784. generated by GNU Autoconf 2.68. Invocation command line was
  9785. CONFIG_FILES = $CONFIG_FILES
  9786. CONFIG_HEADERS = $CONFIG_HEADERS
  9787. CONFIG_LINKS = $CONFIG_LINKS
  9788. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9789. $ $0 $@
  9790. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9791. "
  9792. _ACEOF
  9793. case $ac_config_files in *"
  9794. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9795. esac
  9796. case $ac_config_headers in *"
  9797. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9798. esac
  9799. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9800. # Files that config.status was made for.
  9801. config_files="$ac_config_files"
  9802. config_headers="$ac_config_headers"
  9803. config_commands="$ac_config_commands"
  9804. _ACEOF
  9805. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9806. ac_cs_usage="\
  9807. \`$as_me' instantiates files and other configuration actions
  9808. from templates according to the current configuration. Unless the files
  9809. and actions are specified as TAGs, all are instantiated by default.
  9810. Usage: $0 [OPTION]... [TAG]...
  9811. -h, --help print this help, then exit
  9812. -V, --version print version number and configuration settings, then exit
  9813. --config print configuration, then exit
  9814. -q, --quiet, --silent
  9815. do not print progress messages
  9816. -d, --debug don't remove temporary files
  9817. --recheck update $as_me by reconfiguring in the same conditions
  9818. --file=FILE[:TEMPLATE]
  9819. instantiate the configuration file FILE
  9820. --header=FILE[:TEMPLATE]
  9821. instantiate the configuration header FILE
  9822. Configuration files:
  9823. $config_files
  9824. Configuration headers:
  9825. $config_headers
  9826. Configuration commands:
  9827. $config_commands
  9828. Report bugs to <json-c@googlegroups.com>."
  9829. _ACEOF
  9830. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9831. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9832. ac_cs_version="\\
  9833. json-c config.status 0.11
  9834. configured by $0, generated by GNU Autoconf 2.68,
  9835. with options \\"\$ac_cs_config\\"
  9836. Copyright (C) 2010 Free Software Foundation, Inc.
  9837. This config.status script is free software; the Free Software Foundation
  9838. gives unlimited permission to copy, distribute and modify it."
  9839. ac_pwd='$ac_pwd'
  9840. srcdir='$srcdir'
  9841. INSTALL='$INSTALL'
  9842. MKDIR_P='$MKDIR_P'
  9843. AWK='$AWK'
  9844. test -n "\$AWK" || AWK=awk
  9845. _ACEOF
  9846. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9847. # The default lists apply if the user does not specify any file.
  9848. ac_need_defaults=:
  9849. while test $# != 0
  9850. do
  9851. case $1 in
  9852. --*=?*)
  9853. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9854. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9855. ac_shift=:
  9856. ;;
  9857. --*=)
  9858. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9859. ac_optarg=
  9860. ac_shift=:
  9861. ;;
  9862. *)
  9863. ac_option=$1
  9864. ac_optarg=$2
  9865. ac_shift=shift
  9866. ;;
  9867. esac
  9868. case $ac_option in
  9869. # Handling of the options.
  9870. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9871. ac_cs_recheck=: ;;
  9872. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9873. $as_echo "$ac_cs_version"; exit ;;
  9874. --config | --confi | --conf | --con | --co | --c )
  9875. $as_echo "$ac_cs_config"; exit ;;
  9876. --debug | --debu | --deb | --de | --d | -d )
  9877. debug=: ;;
  9878. --file | --fil | --fi | --f )
  9879. $ac_shift
  9880. case $ac_optarg in
  9881. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9882. '') as_fn_error $? "missing file argument" ;;
  9883. esac
  9884. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9885. ac_need_defaults=false;;
  9886. --header | --heade | --head | --hea )
  9887. $ac_shift
  9888. case $ac_optarg in
  9889. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9890. esac
  9891. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9892. ac_need_defaults=false;;
  9893. --he | --h)
  9894. # Conflict between --help and --header
  9895. as_fn_error $? "ambiguous option: \`$1'
  9896. Try \`$0 --help' for more information.";;
  9897. --help | --hel | -h )
  9898. $as_echo "$ac_cs_usage"; exit ;;
  9899. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9900. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9901. ac_cs_silent=: ;;
  9902. # This is an error.
  9903. -*) as_fn_error $? "unrecognized option: \`$1'
  9904. Try \`$0 --help' for more information." ;;
  9905. *) as_fn_append ac_config_targets " $1"
  9906. ac_need_defaults=false ;;
  9907. esac
  9908. shift
  9909. done
  9910. ac_configure_extra_args=
  9911. if $ac_cs_silent; then
  9912. exec 6>/dev/null
  9913. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9914. fi
  9915. _ACEOF
  9916. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9917. if \$ac_cs_recheck; then
  9918. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9919. shift
  9920. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9921. CONFIG_SHELL='$SHELL'
  9922. export CONFIG_SHELL
  9923. exec "\$@"
  9924. fi
  9925. _ACEOF
  9926. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9927. exec 5>>config.log
  9928. {
  9929. echo
  9930. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9931. ## Running $as_me. ##
  9932. _ASBOX
  9933. $as_echo "$ac_log"
  9934. } >&5
  9935. _ACEOF
  9936. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9937. #
  9938. # INIT-COMMANDS
  9939. #
  9940. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9941. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9942. # if CDPATH is set.
  9943. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9944. sed_quote_subst='$sed_quote_subst'
  9945. double_quote_subst='$double_quote_subst'
  9946. delay_variable_subst='$delay_variable_subst'
  9947. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  9948. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  9949. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  9950. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  9951. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  9952. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  9953. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  9954. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  9955. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  9956. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  9957. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  9958. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  9959. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  9960. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  9961. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  9962. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  9963. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  9964. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  9965. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  9966. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  9967. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  9968. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  9969. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  9970. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  9971. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  9972. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  9973. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  9974. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9975. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  9976. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  9977. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  9978. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  9979. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  9980. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  9981. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  9982. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9983. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9984. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9985. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  9986. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  9987. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  9988. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  9989. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  9990. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  9991. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  9992. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  9993. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  9994. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  9995. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  9996. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  9997. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  9998. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  9999. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  10000. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  10001. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  10002. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  10003. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  10004. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  10005. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  10006. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  10007. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  10008. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  10009. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10010. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10011. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  10012. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  10013. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10014. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10015. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  10016. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10017. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10018. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10019. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10020. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10021. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10022. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10023. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10024. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10025. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10026. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10027. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  10028. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  10029. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  10030. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  10031. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10032. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  10033. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  10034. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  10035. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  10036. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  10037. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10038. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10039. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10040. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10041. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10042. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  10043. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  10044. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  10045. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  10046. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10047. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10048. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  10049. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10050. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10051. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10052. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10053. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10054. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10055. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  10056. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  10057. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10058. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10059. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  10060. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  10061. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  10062. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  10063. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10064. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10065. LTCC='$LTCC'
  10066. LTCFLAGS='$LTCFLAGS'
  10067. compiler='$compiler_DEFAULT'
  10068. # Quote evaled strings.
  10069. for var in SED \
  10070. GREP \
  10071. EGREP \
  10072. FGREP \
  10073. LD \
  10074. NM \
  10075. LN_S \
  10076. lt_SP2NL \
  10077. lt_NL2SP \
  10078. reload_flag \
  10079. OBJDUMP \
  10080. deplibs_check_method \
  10081. file_magic_cmd \
  10082. AR \
  10083. AR_FLAGS \
  10084. STRIP \
  10085. RANLIB \
  10086. CC \
  10087. CFLAGS \
  10088. compiler \
  10089. lt_cv_sys_global_symbol_pipe \
  10090. lt_cv_sys_global_symbol_to_cdecl \
  10091. lt_cv_sys_global_symbol_to_c_name_address \
  10092. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10093. SHELL \
  10094. ECHO \
  10095. lt_prog_compiler_no_builtin_flag \
  10096. lt_prog_compiler_wl \
  10097. lt_prog_compiler_pic \
  10098. lt_prog_compiler_static \
  10099. lt_cv_prog_compiler_c_o \
  10100. need_locks \
  10101. DSYMUTIL \
  10102. NMEDIT \
  10103. LIPO \
  10104. OTOOL \
  10105. OTOOL64 \
  10106. shrext_cmds \
  10107. export_dynamic_flag_spec \
  10108. whole_archive_flag_spec \
  10109. compiler_needs_object \
  10110. with_gnu_ld \
  10111. allow_undefined_flag \
  10112. no_undefined_flag \
  10113. hardcode_libdir_flag_spec \
  10114. hardcode_libdir_flag_spec_ld \
  10115. hardcode_libdir_separator \
  10116. fix_srcfile_path \
  10117. exclude_expsyms \
  10118. include_expsyms \
  10119. file_list_spec \
  10120. variables_saved_for_relink \
  10121. libname_spec \
  10122. library_names_spec \
  10123. soname_spec \
  10124. finish_eval \
  10125. old_striplib \
  10126. striplib; do
  10127. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10128. *[\\\\\\\`\\"\\\$]*)
  10129. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10130. ;;
  10131. *)
  10132. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10133. ;;
  10134. esac
  10135. done
  10136. # Double-quote double-evaled strings.
  10137. for var in reload_cmds \
  10138. old_postinstall_cmds \
  10139. old_postuninstall_cmds \
  10140. old_archive_cmds \
  10141. extract_expsyms_cmds \
  10142. old_archive_from_new_cmds \
  10143. old_archive_from_expsyms_cmds \
  10144. archive_cmds \
  10145. archive_expsym_cmds \
  10146. module_cmds \
  10147. module_expsym_cmds \
  10148. export_symbols_cmds \
  10149. prelink_cmds \
  10150. postinstall_cmds \
  10151. postuninstall_cmds \
  10152. finish_cmds \
  10153. sys_lib_search_path_spec \
  10154. sys_lib_dlsearch_path_spec; do
  10155. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10156. *[\\\\\\\`\\"\\\$]*)
  10157. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10158. ;;
  10159. *)
  10160. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10161. ;;
  10162. esac
  10163. done
  10164. # Fix-up fallback echo if it was mangled by the above quoting rules.
  10165. case \$lt_ECHO in
  10166. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  10167. ;;
  10168. esac
  10169. ac_aux_dir='$ac_aux_dir'
  10170. xsi_shell='$xsi_shell'
  10171. lt_shell_append='$lt_shell_append'
  10172. # See if we are running on zsh, and set the options which allow our
  10173. # commands through without removal of \ escapes INIT.
  10174. if test -n "\${ZSH_VERSION+set}" ; then
  10175. setopt NO_GLOB_SUBST
  10176. fi
  10177. PACKAGE='$PACKAGE'
  10178. VERSION='$VERSION'
  10179. TIMESTAMP='$TIMESTAMP'
  10180. RM='$RM'
  10181. ofile='$ofile'
  10182. _ACEOF
  10183. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10184. # Handling of arguments.
  10185. for ac_config_target in $ac_config_targets
  10186. do
  10187. case $ac_config_target in
  10188. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10189. "json_config.h") CONFIG_HEADERS="$CONFIG_HEADERS json_config.h" ;;
  10190. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10191. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10192. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10193. "json.pc") CONFIG_FILES="$CONFIG_FILES json.pc" ;;
  10194. "json-c.pc") CONFIG_FILES="$CONFIG_FILES json-c.pc" ;;
  10195. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  10196. "json-c-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES json-c-uninstalled.pc" ;;
  10197. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10198. esac
  10199. done
  10200. # If the user did not use the arguments to specify the items to instantiate,
  10201. # then the envvar interface is used. Set only those that are not.
  10202. # We use the long form for the default assignment because of an extremely
  10203. # bizarre bug on SunOS 4.1.3.
  10204. if $ac_need_defaults; then
  10205. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10206. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10207. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10208. fi
  10209. # Have a temporary directory for convenience. Make it in the build tree
  10210. # simply because there is no reason against having it here, and in addition,
  10211. # creating and moving files from /tmp can sometimes cause problems.
  10212. # Hook for its removal unless debugging.
  10213. # Note that there is a small window in which the directory will not be cleaned:
  10214. # after its creation but before its name has been assigned to `$tmp'.
  10215. $debug ||
  10216. {
  10217. tmp= ac_tmp=
  10218. trap 'exit_status=$?
  10219. : "${ac_tmp:=$tmp}"
  10220. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10221. ' 0
  10222. trap 'as_fn_exit 1' 1 2 13 15
  10223. }
  10224. # Create a (secure) tmp directory for tmp files.
  10225. {
  10226. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10227. test -d "$tmp"
  10228. } ||
  10229. {
  10230. tmp=./conf$$-$RANDOM
  10231. (umask 077 && mkdir "$tmp")
  10232. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10233. ac_tmp=$tmp
  10234. # Set up the scripts for CONFIG_FILES section.
  10235. # No need to generate them if there are no CONFIG_FILES.
  10236. # This happens for instance with `./config.status config.h'.
  10237. if test -n "$CONFIG_FILES"; then
  10238. ac_cr=`echo X | tr X '\015'`
  10239. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10240. # But we know of no other shell where ac_cr would be empty at this
  10241. # point, so we can use a bashism as a fallback.
  10242. if test "x$ac_cr" = x; then
  10243. eval ac_cr=\$\'\\r\'
  10244. fi
  10245. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10246. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10247. ac_cs_awk_cr='\\r'
  10248. else
  10249. ac_cs_awk_cr=$ac_cr
  10250. fi
  10251. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10252. _ACEOF
  10253. {
  10254. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10255. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10256. echo "_ACEOF"
  10257. } >conf$$subs.sh ||
  10258. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10259. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10260. ac_delim='%!_!# '
  10261. for ac_last_try in false false false false false :; do
  10262. . ./conf$$subs.sh ||
  10263. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10264. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10265. if test $ac_delim_n = $ac_delim_num; then
  10266. break
  10267. elif $ac_last_try; then
  10268. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10269. else
  10270. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10271. fi
  10272. done
  10273. rm -f conf$$subs.sh
  10274. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10275. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10276. _ACEOF
  10277. sed -n '
  10278. h
  10279. s/^/S["/; s/!.*/"]=/
  10280. p
  10281. g
  10282. s/^[^!]*!//
  10283. :repl
  10284. t repl
  10285. s/'"$ac_delim"'$//
  10286. t delim
  10287. :nl
  10288. h
  10289. s/\(.\{148\}\)..*/\1/
  10290. t more1
  10291. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10292. p
  10293. n
  10294. b repl
  10295. :more1
  10296. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10297. p
  10298. g
  10299. s/.\{148\}//
  10300. t nl
  10301. :delim
  10302. h
  10303. s/\(.\{148\}\)..*/\1/
  10304. t more2
  10305. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10306. p
  10307. b
  10308. :more2
  10309. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10310. p
  10311. g
  10312. s/.\{148\}//
  10313. t delim
  10314. ' <conf$$subs.awk | sed '
  10315. /^[^""]/{
  10316. N
  10317. s/\n//
  10318. }
  10319. ' >>$CONFIG_STATUS || ac_write_fail=1
  10320. rm -f conf$$subs.awk
  10321. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10322. _ACAWK
  10323. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10324. for (key in S) S_is_set[key] = 1
  10325. FS = ""
  10326. }
  10327. {
  10328. line = $ 0
  10329. nfields = split(line, field, "@")
  10330. substed = 0
  10331. len = length(field[1])
  10332. for (i = 2; i < nfields; i++) {
  10333. key = field[i]
  10334. keylen = length(key)
  10335. if (S_is_set[key]) {
  10336. value = S[key]
  10337. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10338. len += length(value) + length(field[++i])
  10339. substed = 1
  10340. } else
  10341. len += 1 + keylen
  10342. }
  10343. print line
  10344. }
  10345. _ACAWK
  10346. _ACEOF
  10347. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10348. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10349. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10350. else
  10351. cat
  10352. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10353. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10354. _ACEOF
  10355. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10356. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10357. # trailing colons and then remove the whole line if VPATH becomes empty
  10358. # (actually we leave an empty line to preserve line numbers).
  10359. if test "x$srcdir" = x.; then
  10360. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10361. h
  10362. s///
  10363. s/^/:/
  10364. s/[ ]*$/:/
  10365. s/:\$(srcdir):/:/g
  10366. s/:\${srcdir}:/:/g
  10367. s/:@srcdir@:/:/g
  10368. s/^:*//
  10369. s/:*$//
  10370. x
  10371. s/\(=[ ]*\).*/\1/
  10372. G
  10373. s/\n//
  10374. s/^[^=]*=[ ]*$//
  10375. }'
  10376. fi
  10377. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10378. fi # test -n "$CONFIG_FILES"
  10379. # Set up the scripts for CONFIG_HEADERS section.
  10380. # No need to generate them if there are no CONFIG_HEADERS.
  10381. # This happens for instance with `./config.status Makefile'.
  10382. if test -n "$CONFIG_HEADERS"; then
  10383. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10384. BEGIN {
  10385. _ACEOF
  10386. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10387. # here-document in config.status, that substitutes the proper values into
  10388. # config.h.in to produce config.h.
  10389. # Create a delimiter string that does not exist in confdefs.h, to ease
  10390. # handling of long lines.
  10391. ac_delim='%!_!# '
  10392. for ac_last_try in false false :; do
  10393. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10394. if test -z "$ac_tt"; then
  10395. break
  10396. elif $ac_last_try; then
  10397. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10398. else
  10399. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10400. fi
  10401. done
  10402. # For the awk script, D is an array of macro values keyed by name,
  10403. # likewise P contains macro parameters if any. Preserve backslash
  10404. # newline sequences.
  10405. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10406. sed -n '
  10407. s/.\{148\}/&'"$ac_delim"'/g
  10408. t rset
  10409. :rset
  10410. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10411. t def
  10412. d
  10413. :def
  10414. s/\\$//
  10415. t bsnl
  10416. s/["\\]/\\&/g
  10417. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10418. D["\1"]=" \3"/p
  10419. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10420. d
  10421. :bsnl
  10422. s/["\\]/\\&/g
  10423. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10424. D["\1"]=" \3\\\\\\n"\\/p
  10425. t cont
  10426. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10427. t cont
  10428. d
  10429. :cont
  10430. n
  10431. s/.\{148\}/&'"$ac_delim"'/g
  10432. t clear
  10433. :clear
  10434. s/\\$//
  10435. t bsnlc
  10436. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10437. d
  10438. :bsnlc
  10439. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10440. b cont
  10441. ' <confdefs.h | sed '
  10442. s/'"$ac_delim"'/"\\\
  10443. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10444. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10445. for (key in D) D_is_set[key] = 1
  10446. FS = ""
  10447. }
  10448. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10449. line = \$ 0
  10450. split(line, arg, " ")
  10451. if (arg[1] == "#") {
  10452. defundef = arg[2]
  10453. mac1 = arg[3]
  10454. } else {
  10455. defundef = substr(arg[1], 2)
  10456. mac1 = arg[2]
  10457. }
  10458. split(mac1, mac2, "(") #)
  10459. macro = mac2[1]
  10460. prefix = substr(line, 1, index(line, defundef) - 1)
  10461. if (D_is_set[macro]) {
  10462. # Preserve the white space surrounding the "#".
  10463. print prefix "define", macro P[macro] D[macro]
  10464. next
  10465. } else {
  10466. # Replace #undef with comments. This is necessary, for example,
  10467. # in the case of _POSIX_SOURCE, which is predefined and required
  10468. # on some systems where configure will not decide to define it.
  10469. if (defundef == "undef") {
  10470. print "/*", prefix defundef, macro, "*/"
  10471. next
  10472. }
  10473. }
  10474. }
  10475. { print }
  10476. _ACAWK
  10477. _ACEOF
  10478. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10479. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10480. fi # test -n "$CONFIG_HEADERS"
  10481. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10482. shift
  10483. for ac_tag
  10484. do
  10485. case $ac_tag in
  10486. :[FHLC]) ac_mode=$ac_tag; continue;;
  10487. esac
  10488. case $ac_mode$ac_tag in
  10489. :[FHL]*:*);;
  10490. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10491. :[FH]-) ac_tag=-:-;;
  10492. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10493. esac
  10494. ac_save_IFS=$IFS
  10495. IFS=:
  10496. set x $ac_tag
  10497. IFS=$ac_save_IFS
  10498. shift
  10499. ac_file=$1
  10500. shift
  10501. case $ac_mode in
  10502. :L) ac_source=$1;;
  10503. :[FH])
  10504. ac_file_inputs=
  10505. for ac_f
  10506. do
  10507. case $ac_f in
  10508. -) ac_f="$ac_tmp/stdin";;
  10509. *) # Look for the file first in the build tree, then in the source tree
  10510. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10511. # because $ac_f cannot contain `:'.
  10512. test -f "$ac_f" ||
  10513. case $ac_f in
  10514. [\\/$]*) false;;
  10515. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10516. esac ||
  10517. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10518. esac
  10519. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10520. as_fn_append ac_file_inputs " '$ac_f'"
  10521. done
  10522. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10523. # use $as_me), people would be surprised to read:
  10524. # /* config.h. Generated by config.status. */
  10525. configure_input='Generated from '`
  10526. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10527. `' by configure.'
  10528. if test x"$ac_file" != x-; then
  10529. configure_input="$ac_file. $configure_input"
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10531. $as_echo "$as_me: creating $ac_file" >&6;}
  10532. fi
  10533. # Neutralize special characters interpreted by sed in replacement strings.
  10534. case $configure_input in #(
  10535. *\&* | *\|* | *\\* )
  10536. ac_sed_conf_input=`$as_echo "$configure_input" |
  10537. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10538. *) ac_sed_conf_input=$configure_input;;
  10539. esac
  10540. case $ac_tag in
  10541. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10542. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10543. esac
  10544. ;;
  10545. esac
  10546. ac_dir=`$as_dirname -- "$ac_file" ||
  10547. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10548. X"$ac_file" : 'X\(//\)[^/]' \| \
  10549. X"$ac_file" : 'X\(//\)$' \| \
  10550. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10551. $as_echo X"$ac_file" |
  10552. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10553. s//\1/
  10554. q
  10555. }
  10556. /^X\(\/\/\)[^/].*/{
  10557. s//\1/
  10558. q
  10559. }
  10560. /^X\(\/\/\)$/{
  10561. s//\1/
  10562. q
  10563. }
  10564. /^X\(\/\).*/{
  10565. s//\1/
  10566. q
  10567. }
  10568. s/.*/./; q'`
  10569. as_dir="$ac_dir"; as_fn_mkdir_p
  10570. ac_builddir=.
  10571. case "$ac_dir" in
  10572. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10573. *)
  10574. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10575. # A ".." for each directory in $ac_dir_suffix.
  10576. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10577. case $ac_top_builddir_sub in
  10578. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10579. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10580. esac ;;
  10581. esac
  10582. ac_abs_top_builddir=$ac_pwd
  10583. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10584. # for backward compatibility:
  10585. ac_top_builddir=$ac_top_build_prefix
  10586. case $srcdir in
  10587. .) # We are building in place.
  10588. ac_srcdir=.
  10589. ac_top_srcdir=$ac_top_builddir_sub
  10590. ac_abs_top_srcdir=$ac_pwd ;;
  10591. [\\/]* | ?:[\\/]* ) # Absolute name.
  10592. ac_srcdir=$srcdir$ac_dir_suffix;
  10593. ac_top_srcdir=$srcdir
  10594. ac_abs_top_srcdir=$srcdir ;;
  10595. *) # Relative name.
  10596. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10597. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10598. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10599. esac
  10600. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10601. case $ac_mode in
  10602. :F)
  10603. #
  10604. # CONFIG_FILE
  10605. #
  10606. case $INSTALL in
  10607. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10608. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10609. esac
  10610. ac_MKDIR_P=$MKDIR_P
  10611. case $MKDIR_P in
  10612. [\\/$]* | ?:[\\/]* ) ;;
  10613. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10614. esac
  10615. _ACEOF
  10616. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10617. # If the template does not know about datarootdir, expand it.
  10618. # FIXME: This hack should be removed a few years after 2.60.
  10619. ac_datarootdir_hack=; ac_datarootdir_seen=
  10620. ac_sed_dataroot='
  10621. /datarootdir/ {
  10622. p
  10623. q
  10624. }
  10625. /@datadir@/p
  10626. /@docdir@/p
  10627. /@infodir@/p
  10628. /@localedir@/p
  10629. /@mandir@/p'
  10630. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10631. *datarootdir*) ac_datarootdir_seen=yes;;
  10632. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10634. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10635. _ACEOF
  10636. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10637. ac_datarootdir_hack='
  10638. s&@datadir@&$datadir&g
  10639. s&@docdir@&$docdir&g
  10640. s&@infodir@&$infodir&g
  10641. s&@localedir@&$localedir&g
  10642. s&@mandir@&$mandir&g
  10643. s&\\\${datarootdir}&$datarootdir&g' ;;
  10644. esac
  10645. _ACEOF
  10646. # Neutralize VPATH when `$srcdir' = `.'.
  10647. # Shell code in configure.ac might set extrasub.
  10648. # FIXME: do we really want to maintain this feature?
  10649. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10650. ac_sed_extra="$ac_vpsub
  10651. $extrasub
  10652. _ACEOF
  10653. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10654. :t
  10655. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10656. s|@configure_input@|$ac_sed_conf_input|;t t
  10657. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10658. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10659. s&@srcdir@&$ac_srcdir&;t t
  10660. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10661. s&@top_srcdir@&$ac_top_srcdir&;t t
  10662. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10663. s&@builddir@&$ac_builddir&;t t
  10664. s&@abs_builddir@&$ac_abs_builddir&;t t
  10665. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10666. s&@INSTALL@&$ac_INSTALL&;t t
  10667. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10668. $ac_datarootdir_hack
  10669. "
  10670. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10671. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10672. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10673. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10674. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10675. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10677. which seems to be undefined. Please make sure it is defined" >&5
  10678. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10679. which seems to be undefined. Please make sure it is defined" >&2;}
  10680. rm -f "$ac_tmp/stdin"
  10681. case $ac_file in
  10682. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10683. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10684. esac \
  10685. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10686. ;;
  10687. :H)
  10688. #
  10689. # CONFIG_HEADER
  10690. #
  10691. if test x"$ac_file" != x-; then
  10692. {
  10693. $as_echo "/* $configure_input */" \
  10694. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10695. } >"$ac_tmp/config.h" \
  10696. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10697. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10698. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10699. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10700. else
  10701. rm -f "$ac_file"
  10702. mv "$ac_tmp/config.h" "$ac_file" \
  10703. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10704. fi
  10705. else
  10706. $as_echo "/* $configure_input */" \
  10707. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10708. || as_fn_error $? "could not create -" "$LINENO" 5
  10709. fi
  10710. # Compute "$ac_file"'s index in $config_headers.
  10711. _am_arg="$ac_file"
  10712. _am_stamp_count=1
  10713. for _am_header in $config_headers :; do
  10714. case $_am_header in
  10715. $_am_arg | $_am_arg:* )
  10716. break ;;
  10717. * )
  10718. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10719. esac
  10720. done
  10721. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10722. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10723. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10724. X"$_am_arg" : 'X\(//\)$' \| \
  10725. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10726. $as_echo X"$_am_arg" |
  10727. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10728. s//\1/
  10729. q
  10730. }
  10731. /^X\(\/\/\)[^/].*/{
  10732. s//\1/
  10733. q
  10734. }
  10735. /^X\(\/\/\)$/{
  10736. s//\1/
  10737. q
  10738. }
  10739. /^X\(\/\).*/{
  10740. s//\1/
  10741. q
  10742. }
  10743. s/.*/./; q'`/stamp-h$_am_stamp_count
  10744. ;;
  10745. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10746. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10747. ;;
  10748. esac
  10749. case $ac_file$ac_mode in
  10750. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10751. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10752. # are listed without --file. Let's play safe and only enable the eval
  10753. # if we detect the quoting.
  10754. case $CONFIG_FILES in
  10755. *\'*) eval set x "$CONFIG_FILES" ;;
  10756. *) set x $CONFIG_FILES ;;
  10757. esac
  10758. shift
  10759. for mf
  10760. do
  10761. # Strip MF so we end up with the name of the file.
  10762. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10763. # Check whether this is an Automake generated Makefile or not.
  10764. # We used to match only the files named `Makefile.in', but
  10765. # some people rename them; so instead we look at the file content.
  10766. # Grep'ing the first line is not enough: some people post-process
  10767. # each Makefile.in and add a new line on top of each file to say so.
  10768. # Grep'ing the whole file is not good either: AIX grep has a line
  10769. # limit of 2048, but all sed's we know have understand at least 4000.
  10770. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10771. dirpart=`$as_dirname -- "$mf" ||
  10772. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10773. X"$mf" : 'X\(//\)[^/]' \| \
  10774. X"$mf" : 'X\(//\)$' \| \
  10775. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10776. $as_echo X"$mf" |
  10777. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10778. s//\1/
  10779. q
  10780. }
  10781. /^X\(\/\/\)[^/].*/{
  10782. s//\1/
  10783. q
  10784. }
  10785. /^X\(\/\/\)$/{
  10786. s//\1/
  10787. q
  10788. }
  10789. /^X\(\/\).*/{
  10790. s//\1/
  10791. q
  10792. }
  10793. s/.*/./; q'`
  10794. else
  10795. continue
  10796. fi
  10797. # Extract the definition of DEPDIR, am__include, and am__quote
  10798. # from the Makefile without running `make'.
  10799. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10800. test -z "$DEPDIR" && continue
  10801. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10802. test -z "am__include" && continue
  10803. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10804. # When using ansi2knr, U may be empty or an underscore; expand it
  10805. U=`sed -n 's/^U = //p' < "$mf"`
  10806. # Find all dependency output files, they are included files with
  10807. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10808. # simplest approach to changing $(DEPDIR) to its actual value in the
  10809. # expansion.
  10810. for file in `sed -n "
  10811. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10812. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10813. # Make sure the directory exists.
  10814. test -f "$dirpart/$file" && continue
  10815. fdir=`$as_dirname -- "$file" ||
  10816. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10817. X"$file" : 'X\(//\)[^/]' \| \
  10818. X"$file" : 'X\(//\)$' \| \
  10819. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10820. $as_echo X"$file" |
  10821. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10822. s//\1/
  10823. q
  10824. }
  10825. /^X\(\/\/\)[^/].*/{
  10826. s//\1/
  10827. q
  10828. }
  10829. /^X\(\/\/\)$/{
  10830. s//\1/
  10831. q
  10832. }
  10833. /^X\(\/\).*/{
  10834. s//\1/
  10835. q
  10836. }
  10837. s/.*/./; q'`
  10838. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10839. # echo "creating $dirpart/$file"
  10840. echo '# dummy' > "$dirpart/$file"
  10841. done
  10842. done
  10843. }
  10844. ;;
  10845. "libtool":C)
  10846. # See if we are running on zsh, and set the options which allow our
  10847. # commands through without removal of \ escapes.
  10848. if test -n "${ZSH_VERSION+set}" ; then
  10849. setopt NO_GLOB_SUBST
  10850. fi
  10851. cfgfile="${ofile}T"
  10852. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  10853. $RM "$cfgfile"
  10854. cat <<_LT_EOF >> "$cfgfile"
  10855. #! $SHELL
  10856. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10857. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  10858. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10859. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10860. #
  10861. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  10862. # 2006, 2007, 2008 Free Software Foundation, Inc.
  10863. # Written by Gordon Matzigkeit, 1996
  10864. #
  10865. # This file is part of GNU Libtool.
  10866. #
  10867. # GNU Libtool is free software; you can redistribute it and/or
  10868. # modify it under the terms of the GNU General Public License as
  10869. # published by the Free Software Foundation; either version 2 of
  10870. # the License, or (at your option) any later version.
  10871. #
  10872. # As a special exception to the GNU General Public License,
  10873. # if you distribute this file as part of a program or library that
  10874. # is built using GNU Libtool, you may include this file under the
  10875. # same distribution terms that you use for the rest of that program.
  10876. #
  10877. # GNU Libtool is distributed in the hope that it will be useful,
  10878. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10879. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10880. # GNU General Public License for more details.
  10881. #
  10882. # You should have received a copy of the GNU General Public License
  10883. # along with GNU Libtool; see the file COPYING. If not, a copy
  10884. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  10885. # obtained by writing to the Free Software Foundation, Inc.,
  10886. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  10887. # The names of the tagged configurations supported by this script.
  10888. available_tags=""
  10889. # ### BEGIN LIBTOOL CONFIG
  10890. # Which release of libtool.m4 was used?
  10891. macro_version=$macro_version
  10892. macro_revision=$macro_revision
  10893. # Whether or not to build shared libraries.
  10894. build_libtool_libs=$enable_shared
  10895. # Whether or not to build static libraries.
  10896. build_old_libs=$enable_static
  10897. # What type of objects to build.
  10898. pic_mode=$pic_mode
  10899. # Whether or not to optimize for fast installation.
  10900. fast_install=$enable_fast_install
  10901. # The host system.
  10902. host_alias=$host_alias
  10903. host=$host
  10904. host_os=$host_os
  10905. # The build system.
  10906. build_alias=$build_alias
  10907. build=$build
  10908. build_os=$build_os
  10909. # A sed program that does not truncate output.
  10910. SED=$lt_SED
  10911. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10912. Xsed="\$SED -e 1s/^X//"
  10913. # A grep program that handles long lines.
  10914. GREP=$lt_GREP
  10915. # An ERE matcher.
  10916. EGREP=$lt_EGREP
  10917. # A literal string matcher.
  10918. FGREP=$lt_FGREP
  10919. # A BSD- or MS-compatible name lister.
  10920. NM=$lt_NM
  10921. # Whether we need soft or hard links.
  10922. LN_S=$lt_LN_S
  10923. # What is the maximum length of a command?
  10924. max_cmd_len=$max_cmd_len
  10925. # Object file suffix (normally "o").
  10926. objext=$ac_objext
  10927. # Executable file suffix (normally "").
  10928. exeext=$exeext
  10929. # whether the shell understands "unset".
  10930. lt_unset=$lt_unset
  10931. # turn spaces into newlines.
  10932. SP2NL=$lt_lt_SP2NL
  10933. # turn newlines into spaces.
  10934. NL2SP=$lt_lt_NL2SP
  10935. # How to create reloadable object files.
  10936. reload_flag=$lt_reload_flag
  10937. reload_cmds=$lt_reload_cmds
  10938. # An object symbol dumper.
  10939. OBJDUMP=$lt_OBJDUMP
  10940. # Method to check whether dependent libraries are shared objects.
  10941. deplibs_check_method=$lt_deplibs_check_method
  10942. # Command to use when deplibs_check_method == "file_magic".
  10943. file_magic_cmd=$lt_file_magic_cmd
  10944. # The archiver.
  10945. AR=$lt_AR
  10946. AR_FLAGS=$lt_AR_FLAGS
  10947. # A symbol stripping program.
  10948. STRIP=$lt_STRIP
  10949. # Commands used to install an old-style archive.
  10950. RANLIB=$lt_RANLIB
  10951. old_postinstall_cmds=$lt_old_postinstall_cmds
  10952. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10953. # A C compiler.
  10954. LTCC=$lt_CC
  10955. # LTCC compiler flags.
  10956. LTCFLAGS=$lt_CFLAGS
  10957. # Take the output of nm and produce a listing of raw symbols and C names.
  10958. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10959. # Transform the output of nm in a proper C declaration.
  10960. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10961. # Transform the output of nm in a C name address pair.
  10962. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10963. # Transform the output of nm in a C name address pair when lib prefix is needed.
  10964. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  10965. # The name of the directory that contains temporary libtool files.
  10966. objdir=$objdir
  10967. # Shell to use when invoking shell scripts.
  10968. SHELL=$lt_SHELL
  10969. # An echo program that does not interpret backslashes.
  10970. ECHO=$lt_ECHO
  10971. # Used to examine libraries when file_magic_cmd begins with "file".
  10972. MAGIC_CMD=$MAGIC_CMD
  10973. # Must we lock files when doing compilation?
  10974. need_locks=$lt_need_locks
  10975. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  10976. DSYMUTIL=$lt_DSYMUTIL
  10977. # Tool to change global to local symbols on Mac OS X.
  10978. NMEDIT=$lt_NMEDIT
  10979. # Tool to manipulate fat objects and archives on Mac OS X.
  10980. LIPO=$lt_LIPO
  10981. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  10982. OTOOL=$lt_OTOOL
  10983. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  10984. OTOOL64=$lt_OTOOL64
  10985. # Old archive suffix (normally "a").
  10986. libext=$libext
  10987. # Shared library suffix (normally ".so").
  10988. shrext_cmds=$lt_shrext_cmds
  10989. # The commands to extract the exported symbol list from a shared archive.
  10990. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10991. # Variables whose values should be saved in libtool wrapper scripts and
  10992. # restored at link time.
  10993. variables_saved_for_relink=$lt_variables_saved_for_relink
  10994. # Do we need the "lib" prefix for modules?
  10995. need_lib_prefix=$need_lib_prefix
  10996. # Do we need a version for libraries?
  10997. need_version=$need_version
  10998. # Library versioning type.
  10999. version_type=$version_type
  11000. # Shared library runtime path variable.
  11001. runpath_var=$runpath_var
  11002. # Shared library path variable.
  11003. shlibpath_var=$shlibpath_var
  11004. # Is shlibpath searched before the hard-coded library search path?
  11005. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11006. # Format of library name prefix.
  11007. libname_spec=$lt_libname_spec
  11008. # List of archive names. First name is the real one, the rest are links.
  11009. # The last name is the one that the linker finds with -lNAME
  11010. library_names_spec=$lt_library_names_spec
  11011. # The coded name of the library, if different from the real name.
  11012. soname_spec=$lt_soname_spec
  11013. # Command to use after installation of a shared archive.
  11014. postinstall_cmds=$lt_postinstall_cmds
  11015. # Command to use after uninstallation of a shared archive.
  11016. postuninstall_cmds=$lt_postuninstall_cmds
  11017. # Commands used to finish a libtool library installation in a directory.
  11018. finish_cmds=$lt_finish_cmds
  11019. # As "finish_cmds", except a single script fragment to be evaled but
  11020. # not shown.
  11021. finish_eval=$lt_finish_eval
  11022. # Whether we should hardcode library paths into libraries.
  11023. hardcode_into_libs=$hardcode_into_libs
  11024. # Compile-time system search path for libraries.
  11025. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11026. # Run-time system search path for libraries.
  11027. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11028. # Whether dlopen is supported.
  11029. dlopen_support=$enable_dlopen
  11030. # Whether dlopen of programs is supported.
  11031. dlopen_self=$enable_dlopen_self
  11032. # Whether dlopen of statically linked programs is supported.
  11033. dlopen_self_static=$enable_dlopen_self_static
  11034. # Commands to strip libraries.
  11035. old_striplib=$lt_old_striplib
  11036. striplib=$lt_striplib
  11037. # The linker used to build libraries.
  11038. LD=$lt_LD
  11039. # Commands used to build an old-style archive.
  11040. old_archive_cmds=$lt_old_archive_cmds
  11041. # A language specific compiler.
  11042. CC=$lt_compiler
  11043. # Is the compiler the GNU compiler?
  11044. with_gcc=$GCC
  11045. # Compiler flag to turn off builtin functions.
  11046. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11047. # How to pass a linker flag through the compiler.
  11048. wl=$lt_lt_prog_compiler_wl
  11049. # Additional compiler flags for building library objects.
  11050. pic_flag=$lt_lt_prog_compiler_pic
  11051. # Compiler flag to prevent dynamic linking.
  11052. link_static_flag=$lt_lt_prog_compiler_static
  11053. # Does compiler simultaneously support -c and -o options?
  11054. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11055. # Whether or not to add -lc for building shared libraries.
  11056. build_libtool_need_lc=$archive_cmds_need_lc
  11057. # Whether or not to disallow shared libs when runtime libs are static.
  11058. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11059. # Compiler flag to allow reflexive dlopens.
  11060. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11061. # Compiler flag to generate shared objects directly from archives.
  11062. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11063. # Whether the compiler copes with passing no objects directly.
  11064. compiler_needs_object=$lt_compiler_needs_object
  11065. # Create an old-style archive from a shared archive.
  11066. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11067. # Create a temporary old-style archive to link instead of a shared archive.
  11068. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11069. # Commands used to build a shared archive.
  11070. archive_cmds=$lt_archive_cmds
  11071. archive_expsym_cmds=$lt_archive_expsym_cmds
  11072. # Commands used to build a loadable module if different from building
  11073. # a shared archive.
  11074. module_cmds=$lt_module_cmds
  11075. module_expsym_cmds=$lt_module_expsym_cmds
  11076. # Whether we are building with GNU ld or not.
  11077. with_gnu_ld=$lt_with_gnu_ld
  11078. # Flag that allows shared libraries with undefined symbols to be built.
  11079. allow_undefined_flag=$lt_allow_undefined_flag
  11080. # Flag that enforces no undefined symbols.
  11081. no_undefined_flag=$lt_no_undefined_flag
  11082. # Flag to hardcode \$libdir into a binary during linking.
  11083. # This must work even if \$libdir does not exist
  11084. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11085. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11086. # during linking. This must work even if \$libdir does not exist.
  11087. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11088. # Whether we need a single "-rpath" flag with a separated argument.
  11089. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11090. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11091. # DIR into the resulting binary.
  11092. hardcode_direct=$hardcode_direct
  11093. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11094. # DIR into the resulting binary and the resulting library dependency is
  11095. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11096. # library is relocated.
  11097. hardcode_direct_absolute=$hardcode_direct_absolute
  11098. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11099. # into the resulting binary.
  11100. hardcode_minus_L=$hardcode_minus_L
  11101. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11102. # into the resulting binary.
  11103. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11104. # Set to "yes" if building a shared library automatically hardcodes DIR
  11105. # into the library and all subsequent libraries and executables linked
  11106. # against it.
  11107. hardcode_automatic=$hardcode_automatic
  11108. # Set to yes if linker adds runtime paths of dependent libraries
  11109. # to runtime path list.
  11110. inherit_rpath=$inherit_rpath
  11111. # Whether libtool must link a program against all its dependency libraries.
  11112. link_all_deplibs=$link_all_deplibs
  11113. # Fix the shell variable \$srcfile for the compiler.
  11114. fix_srcfile_path=$lt_fix_srcfile_path
  11115. # Set to "yes" if exported symbols are required.
  11116. always_export_symbols=$always_export_symbols
  11117. # The commands to list exported symbols.
  11118. export_symbols_cmds=$lt_export_symbols_cmds
  11119. # Symbols that should not be listed in the preloaded symbols.
  11120. exclude_expsyms=$lt_exclude_expsyms
  11121. # Symbols that must always be exported.
  11122. include_expsyms=$lt_include_expsyms
  11123. # Commands necessary for linking programs (against libraries) with templates.
  11124. prelink_cmds=$lt_prelink_cmds
  11125. # Specify filename containing input files.
  11126. file_list_spec=$lt_file_list_spec
  11127. # How to hardcode a shared library path into an executable.
  11128. hardcode_action=$hardcode_action
  11129. # ### END LIBTOOL CONFIG
  11130. _LT_EOF
  11131. case $host_os in
  11132. aix3*)
  11133. cat <<\_LT_EOF >> "$cfgfile"
  11134. # AIX sometimes has problems with the GCC collect2 program. For some
  11135. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11136. # vanish in a puff of smoke.
  11137. if test "X${COLLECT_NAMES+set}" != Xset; then
  11138. COLLECT_NAMES=
  11139. export COLLECT_NAMES
  11140. fi
  11141. _LT_EOF
  11142. ;;
  11143. esac
  11144. ltmain="$ac_aux_dir/ltmain.sh"
  11145. # We use sed instead of cat because bash on DJGPP gets confused if
  11146. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11147. # text mode, it properly converts lines to CR/LF. This bash problem
  11148. # is reportedly fixed, but why not run on old versions too?
  11149. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11150. || (rm -f "$cfgfile"; exit 1)
  11151. case $xsi_shell in
  11152. yes)
  11153. cat << \_LT_EOF >> "$cfgfile"
  11154. # func_dirname file append nondir_replacement
  11155. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11156. # otherwise set result to NONDIR_REPLACEMENT.
  11157. func_dirname ()
  11158. {
  11159. case ${1} in
  11160. */*) func_dirname_result="${1%/*}${2}" ;;
  11161. * ) func_dirname_result="${3}" ;;
  11162. esac
  11163. }
  11164. # func_basename file
  11165. func_basename ()
  11166. {
  11167. func_basename_result="${1##*/}"
  11168. }
  11169. # func_dirname_and_basename file append nondir_replacement
  11170. # perform func_basename and func_dirname in a single function
  11171. # call:
  11172. # dirname: Compute the dirname of FILE. If nonempty,
  11173. # add APPEND to the result, otherwise set result
  11174. # to NONDIR_REPLACEMENT.
  11175. # value returned in "$func_dirname_result"
  11176. # basename: Compute filename of FILE.
  11177. # value retuned in "$func_basename_result"
  11178. # Implementation must be kept synchronized with func_dirname
  11179. # and func_basename. For efficiency, we do not delegate to
  11180. # those functions but instead duplicate the functionality here.
  11181. func_dirname_and_basename ()
  11182. {
  11183. case ${1} in
  11184. */*) func_dirname_result="${1%/*}${2}" ;;
  11185. * ) func_dirname_result="${3}" ;;
  11186. esac
  11187. func_basename_result="${1##*/}"
  11188. }
  11189. # func_stripname prefix suffix name
  11190. # strip PREFIX and SUFFIX off of NAME.
  11191. # PREFIX and SUFFIX must not contain globbing or regex special
  11192. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11193. # dot (in which case that matches only a dot).
  11194. func_stripname ()
  11195. {
  11196. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11197. # positional parameters, so assign one to ordinary parameter first.
  11198. func_stripname_result=${3}
  11199. func_stripname_result=${func_stripname_result#"${1}"}
  11200. func_stripname_result=${func_stripname_result%"${2}"}
  11201. }
  11202. # func_opt_split
  11203. func_opt_split ()
  11204. {
  11205. func_opt_split_opt=${1%%=*}
  11206. func_opt_split_arg=${1#*=}
  11207. }
  11208. # func_lo2o object
  11209. func_lo2o ()
  11210. {
  11211. case ${1} in
  11212. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11213. *) func_lo2o_result=${1} ;;
  11214. esac
  11215. }
  11216. # func_xform libobj-or-source
  11217. func_xform ()
  11218. {
  11219. func_xform_result=${1%.*}.lo
  11220. }
  11221. # func_arith arithmetic-term...
  11222. func_arith ()
  11223. {
  11224. func_arith_result=$(( $* ))
  11225. }
  11226. # func_len string
  11227. # STRING may not start with a hyphen.
  11228. func_len ()
  11229. {
  11230. func_len_result=${#1}
  11231. }
  11232. _LT_EOF
  11233. ;;
  11234. *) # Bourne compatible functions.
  11235. cat << \_LT_EOF >> "$cfgfile"
  11236. # func_dirname file append nondir_replacement
  11237. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11238. # otherwise set result to NONDIR_REPLACEMENT.
  11239. func_dirname ()
  11240. {
  11241. # Extract subdirectory from the argument.
  11242. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11243. if test "X$func_dirname_result" = "X${1}"; then
  11244. func_dirname_result="${3}"
  11245. else
  11246. func_dirname_result="$func_dirname_result${2}"
  11247. fi
  11248. }
  11249. # func_basename file
  11250. func_basename ()
  11251. {
  11252. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11253. }
  11254. # func_stripname prefix suffix name
  11255. # strip PREFIX and SUFFIX off of NAME.
  11256. # PREFIX and SUFFIX must not contain globbing or regex special
  11257. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11258. # dot (in which case that matches only a dot).
  11259. # func_strip_suffix prefix name
  11260. func_stripname ()
  11261. {
  11262. case ${2} in
  11263. .*) func_stripname_result=`$ECHO "X${3}" \
  11264. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11265. *) func_stripname_result=`$ECHO "X${3}" \
  11266. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11267. esac
  11268. }
  11269. # sed scripts:
  11270. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11271. my_sed_long_arg='1s/^-[^=]*=//'
  11272. # func_opt_split
  11273. func_opt_split ()
  11274. {
  11275. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11276. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11277. }
  11278. # func_lo2o object
  11279. func_lo2o ()
  11280. {
  11281. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11282. }
  11283. # func_xform libobj-or-source
  11284. func_xform ()
  11285. {
  11286. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  11287. }
  11288. # func_arith arithmetic-term...
  11289. func_arith ()
  11290. {
  11291. func_arith_result=`expr "$@"`
  11292. }
  11293. # func_len string
  11294. # STRING may not start with a hyphen.
  11295. func_len ()
  11296. {
  11297. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11298. }
  11299. _LT_EOF
  11300. esac
  11301. case $lt_shell_append in
  11302. yes)
  11303. cat << \_LT_EOF >> "$cfgfile"
  11304. # func_append var value
  11305. # Append VALUE to the end of shell variable VAR.
  11306. func_append ()
  11307. {
  11308. eval "$1+=\$2"
  11309. }
  11310. _LT_EOF
  11311. ;;
  11312. *)
  11313. cat << \_LT_EOF >> "$cfgfile"
  11314. # func_append var value
  11315. # Append VALUE to the end of shell variable VAR.
  11316. func_append ()
  11317. {
  11318. eval "$1=\$$1\$2"
  11319. }
  11320. _LT_EOF
  11321. ;;
  11322. esac
  11323. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11324. || (rm -f "$cfgfile"; exit 1)
  11325. mv -f "$cfgfile" "$ofile" ||
  11326. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11327. chmod +x "$ofile"
  11328. ;;
  11329. esac
  11330. done # for ac_tag
  11331. as_fn_exit 0
  11332. _ACEOF
  11333. ac_clean_files=$ac_clean_files_save
  11334. test $ac_write_fail = 0 ||
  11335. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11336. # configure is writing to config.log, and then calls config.status.
  11337. # config.status does its own redirection, appending to config.log.
  11338. # Unfortunately, on DOS this fails, as config.log is still kept open
  11339. # by configure, so config.status won't be able to write to it; its
  11340. # output is simply discarded. So we exec the FD to /dev/null,
  11341. # effectively closing config.log, so it can be properly (re)opened and
  11342. # appended to by config.status. When coming back to configure, we
  11343. # need to make the FD available again.
  11344. if test "$no_create" != yes; then
  11345. ac_cs_success=:
  11346. ac_config_status_args=
  11347. test "$silent" = yes &&
  11348. ac_config_status_args="$ac_config_status_args --quiet"
  11349. exec 5>/dev/null
  11350. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11351. exec 5>>config.log
  11352. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11353. # would make configure fail if this is the last instruction.
  11354. $ac_cs_success || as_fn_exit 1
  11355. fi
  11356. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11358. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11359. fi