configure 978 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Check that we are running under the correct shell.
  215. SHELL=${CONFIG_SHELL-/bin/sh}
  216. case X$ECHO in
  217. X*--fallback-echo)
  218. # Remove one level of quotation (which was required for Make).
  219. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  220. ;;
  221. esac
  222. echo=${ECHO-echo}
  223. if test "X$1" = X--no-reexec; then
  224. # Discard the --no-reexec flag, and continue.
  225. shift
  226. elif test "X$1" = X--fallback-echo; then
  227. # Avoid inline document here, it may be left over
  228. :
  229. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  230. # Yippee, $echo works!
  231. :
  232. else
  233. # Restart under the correct shell.
  234. exec $SHELL "$0" --no-reexec ${1+"$@"}
  235. fi
  236. if test "X$1" = X--fallback-echo; then
  237. # used as fallback echo
  238. shift
  239. cat <<EOF
  240. $*
  241. EOF
  242. exit 0
  243. fi
  244. # The HP-UX ksh and POSIX shell print the target directory to stdout
  245. # if CDPATH is set.
  246. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  247. if test -z "$ECHO"; then
  248. if test "X${echo_test_string+set}" != Xset; then
  249. # find a string as large as possible, as long as the shell can cope with it
  250. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  251. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  252. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  253. echo_test_string="`eval $cmd`" &&
  254. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  255. then
  256. break
  257. fi
  258. done
  259. fi
  260. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  261. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  262. test "X$echo_testing_string" = "X$echo_test_string"; then
  263. :
  264. else
  265. # The Solaris, AIX, and Digital Unix default echo programs unquote
  266. # backslashes. This makes it impossible to quote backslashes using
  267. # echo "$something" | sed 's/\\/\\\\/g'
  268. #
  269. # So, first we look for a working echo in the user's PATH.
  270. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  271. for dir in $PATH /usr/ucb; do
  272. IFS="$lt_save_ifs"
  273. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  274. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  275. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  276. test "X$echo_testing_string" = "X$echo_test_string"; then
  277. echo="$dir/echo"
  278. break
  279. fi
  280. done
  281. IFS="$lt_save_ifs"
  282. if test "X$echo" = Xecho; then
  283. # We didn't find a better echo, so look for alternatives.
  284. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  285. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  286. test "X$echo_testing_string" = "X$echo_test_string"; then
  287. # This shell has a builtin print -r that does the trick.
  288. echo='print -r'
  289. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  290. test "X$CONFIG_SHELL" != X/bin/ksh; then
  291. # If we have ksh, try running configure again with it.
  292. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  293. export ORIGINAL_CONFIG_SHELL
  294. CONFIG_SHELL=/bin/ksh
  295. export CONFIG_SHELL
  296. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  297. else
  298. # Try using printf.
  299. echo='printf %s\n'
  300. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  301. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  302. test "X$echo_testing_string" = "X$echo_test_string"; then
  303. # Cool, printf works
  304. :
  305. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  306. test "X$echo_testing_string" = 'X\t' &&
  307. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  308. test "X$echo_testing_string" = "X$echo_test_string"; then
  309. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  310. export CONFIG_SHELL
  311. SHELL="$CONFIG_SHELL"
  312. export SHELL
  313. echo="$CONFIG_SHELL $0 --fallback-echo"
  314. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  315. test "X$echo_testing_string" = 'X\t' &&
  316. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  317. test "X$echo_testing_string" = "X$echo_test_string"; then
  318. echo="$CONFIG_SHELL $0 --fallback-echo"
  319. else
  320. # maybe with a smaller string...
  321. prev=:
  322. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  323. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  324. then
  325. break
  326. fi
  327. prev="$cmd"
  328. done
  329. if test "$prev" != 'sed 50q "$0"'; then
  330. echo_test_string=`eval $prev`
  331. export echo_test_string
  332. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  333. else
  334. # Oops. We lost completely, so just stick with echo.
  335. echo=echo
  336. fi
  337. fi
  338. fi
  339. fi
  340. fi
  341. fi
  342. # Copy echo and quote the copy suitably for passing to libtool from
  343. # the Makefile, instead of quoting the original, which is used later.
  344. ECHO=$echo
  345. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  346. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  347. fi
  348. tagnames=${tagnames+${tagnames},}CXX
  349. tagnames=${tagnames+${tagnames},}F77
  350. # Name of the host.
  351. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  352. # so uname gets run too.
  353. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  354. exec 6>&1
  355. #
  356. # Initializations.
  357. #
  358. ac_default_prefix=/usr/local
  359. ac_config_libobj_dir=.
  360. cross_compiling=no
  361. subdirs=
  362. MFLAGS=
  363. MAKEFLAGS=
  364. SHELL=${CONFIG_SHELL-/bin/sh}
  365. # Maximum number of lines to put in a shell here document.
  366. # This variable seems obsolete. It should probably be removed, and
  367. # only ac_max_sed_lines should be used.
  368. : ${ac_max_here_lines=38}
  369. # Identity of this package.
  370. PACKAGE_NAME=
  371. PACKAGE_TARNAME=
  372. PACKAGE_VERSION=
  373. PACKAGE_STRING=
  374. PACKAGE_BUGREPORT=
  375. ac_unique_file="tcpreplay"
  376. ac_unique_file="src/tcpreplay.c"
  377. # Factoring default headers for most tests.
  378. ac_includes_default="\
  379. #include <stdio.h>
  380. #if HAVE_SYS_TYPES_H
  381. # include <sys/types.h>
  382. #endif
  383. #if HAVE_SYS_STAT_H
  384. # include <sys/stat.h>
  385. #endif
  386. #if STDC_HEADERS
  387. # include <stdlib.h>
  388. # include <stddef.h>
  389. #else
  390. # if HAVE_STDLIB_H
  391. # include <stdlib.h>
  392. # endif
  393. #endif
  394. #if HAVE_STRING_H
  395. # if !STDC_HEADERS && HAVE_MEMORY_H
  396. # include <memory.h>
  397. # endif
  398. # include <string.h>
  399. #endif
  400. #if HAVE_STRINGS_H
  401. # include <strings.h>
  402. #endif
  403. #if HAVE_INTTYPES_H
  404. # include <inttypes.h>
  405. #else
  406. # if HAVE_STDINT_H
  407. # include <stdint.h>
  408. # endif
  409. #endif
  410. #if HAVE_UNISTD_H
  411. # include <unistd.h>
  412. #endif"
  413. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TCPREPLAY_VERSION TCPREPLAY_RELEASE target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PRINTF FIG2DEV LYX DVIPS TEXI2DVI LATEX2HTML DVIPDFM AUTOGEN LIBOBJS SYSTEM_STRLCPY_TRUE SYSTEM_STRLCPY_FALSE HAVE_DOCTOOLS_TRUE HAVE_DOCTOOLS_FALSE debug_flag LNETINC LNETLIB LPCAPINC LPCAPLIB PCAP_BPF_H_FILE pcncfg LNAVLIB LNAV_CFLAGS LNIDSINC LNIDSLIB HAVE_LIBNIDS_TRUE HAVE_LIBNIDS_FALSE td nic1 nic2 NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS LTLIBOBJS'
  414. ac_subst_files=''
  415. # Initialize some variables set by options.
  416. ac_init_help=
  417. ac_init_version=false
  418. # The variables have the same names as the options, with
  419. # dashes changed to underlines.
  420. cache_file=/dev/null
  421. exec_prefix=NONE
  422. no_create=
  423. no_recursion=
  424. prefix=NONE
  425. program_prefix=NONE
  426. program_suffix=NONE
  427. program_transform_name=s,x,x,
  428. silent=
  429. site=
  430. srcdir=
  431. verbose=
  432. x_includes=NONE
  433. x_libraries=NONE
  434. # Installation directory options.
  435. # These are left unexpanded so users can "make install exec_prefix=/foo"
  436. # and all the variables that are supposed to be based on exec_prefix
  437. # by default will actually change.
  438. # Use braces instead of parens because sh, perl, etc. also accept them.
  439. bindir='${exec_prefix}/bin'
  440. sbindir='${exec_prefix}/sbin'
  441. libexecdir='${exec_prefix}/libexec'
  442. datadir='${prefix}/share'
  443. sysconfdir='${prefix}/etc'
  444. sharedstatedir='${prefix}/com'
  445. localstatedir='${prefix}/var'
  446. libdir='${exec_prefix}/lib'
  447. includedir='${prefix}/include'
  448. oldincludedir='/usr/include'
  449. infodir='${prefix}/info'
  450. mandir='${prefix}/man'
  451. ac_prev=
  452. for ac_option
  453. do
  454. # If the previous option needs an argument, assign it.
  455. if test -n "$ac_prev"; then
  456. eval "$ac_prev=\$ac_option"
  457. ac_prev=
  458. continue
  459. fi
  460. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  461. # Accept the important Cygnus configure options, so we can diagnose typos.
  462. case $ac_option in
  463. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  464. ac_prev=bindir ;;
  465. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  466. bindir=$ac_optarg ;;
  467. -build | --build | --buil | --bui | --bu)
  468. ac_prev=build_alias ;;
  469. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  470. build_alias=$ac_optarg ;;
  471. -cache-file | --cache-file | --cache-fil | --cache-fi \
  472. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  473. ac_prev=cache_file ;;
  474. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  475. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  476. cache_file=$ac_optarg ;;
  477. --config-cache | -C)
  478. cache_file=config.cache ;;
  479. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  480. ac_prev=datadir ;;
  481. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  482. | --da=*)
  483. datadir=$ac_optarg ;;
  484. -disable-* | --disable-*)
  485. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  486. # Reject names that are not valid shell variable names.
  487. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  488. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  489. { (exit 1); exit 1; }; }
  490. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  491. eval "enable_$ac_feature=no" ;;
  492. -enable-* | --enable-*)
  493. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  494. # Reject names that are not valid shell variable names.
  495. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  496. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  497. { (exit 1); exit 1; }; }
  498. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  499. case $ac_option in
  500. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  501. *) ac_optarg=yes ;;
  502. esac
  503. eval "enable_$ac_feature='$ac_optarg'" ;;
  504. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  505. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  506. | --exec | --exe | --ex)
  507. ac_prev=exec_prefix ;;
  508. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  509. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  510. | --exec=* | --exe=* | --ex=*)
  511. exec_prefix=$ac_optarg ;;
  512. -gas | --gas | --ga | --g)
  513. # Obsolete; use --with-gas.
  514. with_gas=yes ;;
  515. -help | --help | --hel | --he | -h)
  516. ac_init_help=long ;;
  517. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  518. ac_init_help=recursive ;;
  519. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  520. ac_init_help=short ;;
  521. -host | --host | --hos | --ho)
  522. ac_prev=host_alias ;;
  523. -host=* | --host=* | --hos=* | --ho=*)
  524. host_alias=$ac_optarg ;;
  525. -includedir | --includedir | --includedi | --included | --include \
  526. | --includ | --inclu | --incl | --inc)
  527. ac_prev=includedir ;;
  528. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  529. | --includ=* | --inclu=* | --incl=* | --inc=*)
  530. includedir=$ac_optarg ;;
  531. -infodir | --infodir | --infodi | --infod | --info | --inf)
  532. ac_prev=infodir ;;
  533. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  534. infodir=$ac_optarg ;;
  535. -libdir | --libdir | --libdi | --libd)
  536. ac_prev=libdir ;;
  537. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  538. libdir=$ac_optarg ;;
  539. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  540. | --libexe | --libex | --libe)
  541. ac_prev=libexecdir ;;
  542. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  543. | --libexe=* | --libex=* | --libe=*)
  544. libexecdir=$ac_optarg ;;
  545. -localstatedir | --localstatedir | --localstatedi | --localstated \
  546. | --localstate | --localstat | --localsta | --localst \
  547. | --locals | --local | --loca | --loc | --lo)
  548. ac_prev=localstatedir ;;
  549. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  550. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  551. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  552. localstatedir=$ac_optarg ;;
  553. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  554. ac_prev=mandir ;;
  555. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  556. mandir=$ac_optarg ;;
  557. -nfp | --nfp | --nf)
  558. # Obsolete; use --without-fp.
  559. with_fp=no ;;
  560. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  561. | --no-cr | --no-c | -n)
  562. no_create=yes ;;
  563. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  564. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  565. no_recursion=yes ;;
  566. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  567. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  568. | --oldin | --oldi | --old | --ol | --o)
  569. ac_prev=oldincludedir ;;
  570. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  571. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  572. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  573. oldincludedir=$ac_optarg ;;
  574. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  575. ac_prev=prefix ;;
  576. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  577. prefix=$ac_optarg ;;
  578. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  579. | --program-pre | --program-pr | --program-p)
  580. ac_prev=program_prefix ;;
  581. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  582. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  583. program_prefix=$ac_optarg ;;
  584. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  585. | --program-suf | --program-su | --program-s)
  586. ac_prev=program_suffix ;;
  587. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  588. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  589. program_suffix=$ac_optarg ;;
  590. -program-transform-name | --program-transform-name \
  591. | --program-transform-nam | --program-transform-na \
  592. | --program-transform-n | --program-transform- \
  593. | --program-transform | --program-transfor \
  594. | --program-transfo | --program-transf \
  595. | --program-trans | --program-tran \
  596. | --progr-tra | --program-tr | --program-t)
  597. ac_prev=program_transform_name ;;
  598. -program-transform-name=* | --program-transform-name=* \
  599. | --program-transform-nam=* | --program-transform-na=* \
  600. | --program-transform-n=* | --program-transform-=* \
  601. | --program-transform=* | --program-transfor=* \
  602. | --program-transfo=* | --program-transf=* \
  603. | --program-trans=* | --program-tran=* \
  604. | --progr-tra=* | --program-tr=* | --program-t=*)
  605. program_transform_name=$ac_optarg ;;
  606. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  607. | -silent | --silent | --silen | --sile | --sil)
  608. silent=yes ;;
  609. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  610. ac_prev=sbindir ;;
  611. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  612. | --sbi=* | --sb=*)
  613. sbindir=$ac_optarg ;;
  614. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  615. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  616. | --sharedst | --shareds | --shared | --share | --shar \
  617. | --sha | --sh)
  618. ac_prev=sharedstatedir ;;
  619. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  620. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  621. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  622. | --sha=* | --sh=*)
  623. sharedstatedir=$ac_optarg ;;
  624. -site | --site | --sit)
  625. ac_prev=site ;;
  626. -site=* | --site=* | --sit=*)
  627. site=$ac_optarg ;;
  628. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  629. ac_prev=srcdir ;;
  630. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  631. srcdir=$ac_optarg ;;
  632. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  633. | --syscon | --sysco | --sysc | --sys | --sy)
  634. ac_prev=sysconfdir ;;
  635. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  636. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  637. sysconfdir=$ac_optarg ;;
  638. -target | --target | --targe | --targ | --tar | --ta | --t)
  639. ac_prev=target_alias ;;
  640. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  641. target_alias=$ac_optarg ;;
  642. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  643. verbose=yes ;;
  644. -version | --version | --versio | --versi | --vers | -V)
  645. ac_init_version=: ;;
  646. -with-* | --with-*)
  647. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  648. # Reject names that are not valid shell variable names.
  649. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  650. { echo "$as_me: error: invalid package name: $ac_package" >&2
  651. { (exit 1); exit 1; }; }
  652. ac_package=`echo $ac_package| sed 's/-/_/g'`
  653. case $ac_option in
  654. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  655. *) ac_optarg=yes ;;
  656. esac
  657. eval "with_$ac_package='$ac_optarg'" ;;
  658. -without-* | --without-*)
  659. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  660. # Reject names that are not valid shell variable names.
  661. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  662. { echo "$as_me: error: invalid package name: $ac_package" >&2
  663. { (exit 1); exit 1; }; }
  664. ac_package=`echo $ac_package | sed 's/-/_/g'`
  665. eval "with_$ac_package=no" ;;
  666. --x)
  667. # Obsolete; use --with-x.
  668. with_x=yes ;;
  669. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  670. | --x-incl | --x-inc | --x-in | --x-i)
  671. ac_prev=x_includes ;;
  672. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  673. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  674. x_includes=$ac_optarg ;;
  675. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  676. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  677. ac_prev=x_libraries ;;
  678. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  679. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  680. x_libraries=$ac_optarg ;;
  681. -*) { echo "$as_me: error: unrecognized option: $ac_option
  682. Try \`$0 --help' for more information." >&2
  683. { (exit 1); exit 1; }; }
  684. ;;
  685. *=*)
  686. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  687. # Reject names that are not valid shell variable names.
  688. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  689. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  690. { (exit 1); exit 1; }; }
  691. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  692. eval "$ac_envvar='$ac_optarg'"
  693. export $ac_envvar ;;
  694. *)
  695. # FIXME: should be removed in autoconf 3.0.
  696. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  697. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  698. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  699. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  700. ;;
  701. esac
  702. done
  703. if test -n "$ac_prev"; then
  704. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  705. { echo "$as_me: error: missing argument to $ac_option" >&2
  706. { (exit 1); exit 1; }; }
  707. fi
  708. # Be sure to have absolute paths.
  709. for ac_var in exec_prefix prefix
  710. do
  711. eval ac_val=$`echo $ac_var`
  712. case $ac_val in
  713. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  714. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  715. { (exit 1); exit 1; }; };;
  716. esac
  717. done
  718. # Be sure to have absolute paths.
  719. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  720. localstatedir libdir includedir oldincludedir infodir mandir
  721. do
  722. eval ac_val=$`echo $ac_var`
  723. case $ac_val in
  724. [\\/$]* | ?:[\\/]* ) ;;
  725. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  726. { (exit 1); exit 1; }; };;
  727. esac
  728. done
  729. # There might be people who depend on the old broken behavior: `$host'
  730. # used to hold the argument of --host etc.
  731. # FIXME: To remove some day.
  732. build=$build_alias
  733. host=$host_alias
  734. target=$target_alias
  735. # FIXME: To remove some day.
  736. if test "x$host_alias" != x; then
  737. if test "x$build_alias" = x; then
  738. cross_compiling=maybe
  739. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  740. If a cross compiler is detected then cross compile mode will be used." >&2
  741. elif test "x$build_alias" != "x$host_alias"; then
  742. cross_compiling=yes
  743. fi
  744. fi
  745. ac_tool_prefix=
  746. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  747. test "$silent" = yes && exec 6>/dev/null
  748. # Find the source files, if location was not specified.
  749. if test -z "$srcdir"; then
  750. ac_srcdir_defaulted=yes
  751. # Try the directory containing this script, then its parent.
  752. ac_confdir=`(dirname "$0") 2>/dev/null ||
  753. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  754. X"$0" : 'X\(//\)[^/]' \| \
  755. X"$0" : 'X\(//\)$' \| \
  756. X"$0" : 'X\(/\)' \| \
  757. . : '\(.\)' 2>/dev/null ||
  758. echo X"$0" |
  759. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  760. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  761. /^X\(\/\/\)$/{ s//\1/; q; }
  762. /^X\(\/\).*/{ s//\1/; q; }
  763. s/.*/./; q'`
  764. srcdir=$ac_confdir
  765. if test ! -r $srcdir/$ac_unique_file; then
  766. srcdir=..
  767. fi
  768. else
  769. ac_srcdir_defaulted=no
  770. fi
  771. if test ! -r $srcdir/$ac_unique_file; then
  772. if test "$ac_srcdir_defaulted" = yes; then
  773. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  774. { (exit 1); exit 1; }; }
  775. else
  776. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  777. { (exit 1); exit 1; }; }
  778. fi
  779. fi
  780. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  781. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  782. { (exit 1); exit 1; }; }
  783. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  784. ac_env_build_alias_set=${build_alias+set}
  785. ac_env_build_alias_value=$build_alias
  786. ac_cv_env_build_alias_set=${build_alias+set}
  787. ac_cv_env_build_alias_value=$build_alias
  788. ac_env_host_alias_set=${host_alias+set}
  789. ac_env_host_alias_value=$host_alias
  790. ac_cv_env_host_alias_set=${host_alias+set}
  791. ac_cv_env_host_alias_value=$host_alias
  792. ac_env_target_alias_set=${target_alias+set}
  793. ac_env_target_alias_value=$target_alias
  794. ac_cv_env_target_alias_set=${target_alias+set}
  795. ac_cv_env_target_alias_value=$target_alias
  796. ac_env_CC_set=${CC+set}
  797. ac_env_CC_value=$CC
  798. ac_cv_env_CC_set=${CC+set}
  799. ac_cv_env_CC_value=$CC
  800. ac_env_CFLAGS_set=${CFLAGS+set}
  801. ac_env_CFLAGS_value=$CFLAGS
  802. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  803. ac_cv_env_CFLAGS_value=$CFLAGS
  804. ac_env_LDFLAGS_set=${LDFLAGS+set}
  805. ac_env_LDFLAGS_value=$LDFLAGS
  806. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  807. ac_cv_env_LDFLAGS_value=$LDFLAGS
  808. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  809. ac_env_CPPFLAGS_value=$CPPFLAGS
  810. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  811. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  812. ac_env_CPP_set=${CPP+set}
  813. ac_env_CPP_value=$CPP
  814. ac_cv_env_CPP_set=${CPP+set}
  815. ac_cv_env_CPP_value=$CPP
  816. ac_env_CXX_set=${CXX+set}
  817. ac_env_CXX_value=$CXX
  818. ac_cv_env_CXX_set=${CXX+set}
  819. ac_cv_env_CXX_value=$CXX
  820. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  821. ac_env_CXXFLAGS_value=$CXXFLAGS
  822. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  823. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  824. ac_env_CXXCPP_set=${CXXCPP+set}
  825. ac_env_CXXCPP_value=$CXXCPP
  826. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  827. ac_cv_env_CXXCPP_value=$CXXCPP
  828. ac_env_F77_set=${F77+set}
  829. ac_env_F77_value=$F77
  830. ac_cv_env_F77_set=${F77+set}
  831. ac_cv_env_F77_value=$F77
  832. ac_env_FFLAGS_set=${FFLAGS+set}
  833. ac_env_FFLAGS_value=$FFLAGS
  834. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  835. ac_cv_env_FFLAGS_value=$FFLAGS
  836. #
  837. # Report the --help message.
  838. #
  839. if test "$ac_init_help" = "long"; then
  840. # Omit some internal or obsolete options to make the list less imposing.
  841. # This message is too long to be a string in the A/UX 3.1 sh.
  842. cat <<_ACEOF
  843. \`configure' configures this package to adapt to many kinds of systems.
  844. Usage: $0 [OPTION]... [VAR=VALUE]...
  845. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  846. VAR=VALUE. See below for descriptions of some of the useful variables.
  847. Defaults for the options are specified in brackets.
  848. Configuration:
  849. -h, --help display this help and exit
  850. --help=short display options specific to this package
  851. --help=recursive display the short help of all the included packages
  852. -V, --version display version information and exit
  853. -q, --quiet, --silent do not print \`checking...' messages
  854. --cache-file=FILE cache test results in FILE [disabled]
  855. -C, --config-cache alias for \`--cache-file=config.cache'
  856. -n, --no-create do not create output files
  857. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  858. _ACEOF
  859. cat <<_ACEOF
  860. Installation directories:
  861. --prefix=PREFIX install architecture-independent files in PREFIX
  862. [$ac_default_prefix]
  863. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  864. [PREFIX]
  865. By default, \`make install' will install all the files in
  866. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  867. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  868. for instance \`--prefix=\$HOME'.
  869. For better control, use the options below.
  870. Fine tuning of the installation directories:
  871. --bindir=DIR user executables [EPREFIX/bin]
  872. --sbindir=DIR system admin executables [EPREFIX/sbin]
  873. --libexecdir=DIR program executables [EPREFIX/libexec]
  874. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  875. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  876. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  877. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  878. --libdir=DIR object code libraries [EPREFIX/lib]
  879. --includedir=DIR C header files [PREFIX/include]
  880. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  881. --infodir=DIR info documentation [PREFIX/info]
  882. --mandir=DIR man documentation [PREFIX/man]
  883. _ACEOF
  884. cat <<\_ACEOF
  885. Program names:
  886. --program-prefix=PREFIX prepend PREFIX to installed program names
  887. --program-suffix=SUFFIX append SUFFIX to installed program names
  888. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  889. System types:
  890. --build=BUILD configure for building on BUILD [guessed]
  891. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  892. --target=TARGET configure for building compilers for TARGET [HOST]
  893. _ACEOF
  894. fi
  895. if test -n "$ac_init_help"; then
  896. cat <<\_ACEOF
  897. Optional Features:
  898. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  899. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  900. --enable-maintainer-mode enable make rules and dependencies not useful
  901. (and sometimes confusing) to the casual installer
  902. --enable-shared[=PKGS]
  903. build shared libraries [default=yes]
  904. --enable-static[=PKGS]
  905. build static libraries [default=yes]
  906. --enable-fast-install[=PKGS]
  907. optimize for fast installation [default=yes]
  908. --disable-libtool-lock avoid locking (might break parallel builds)
  909. --disable-dependency-tracking speeds up one-time build
  910. --enable-dependency-tracking do not reject slow dependency extractors
  911. --disable-largefile omit support for large files
  912. --enable-debug Enable debugging code and support for the -d option
  913. --enable-efence Enable Electric Fence memory debugger
  914. --enable-gprof Enable GNU Profiler
  915. --enable-64bits Use 64bit packet counters
  916. --enable-dynamic-link Dynamically link libraries
  917. --enable-local-libopts Force using the supplied libopts tearoff code
  918. Optional Packages:
  919. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  920. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  921. --with-dmalloc use dmalloc, as in
  922. http://www.dmalloc.com/dmalloc.tar.gz
  923. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  924. --with-pic try to use only PIC/non-PIC objects [default=use
  925. both]
  926. --with-tags[=TAGS]
  927. include additional configurations [automatic]
  928. --with-lyx=FILE Path to Lyx binary
  929. --with-libnet=DIR Use libnet in DIR
  930. --with-libpcap=DIR Use libpcap in DIR
  931. --with-pcapnav-config=FILE
  932. Use given pcapnav-config
  933. --with-libnids=DIR Use libnids in DIR
  934. --with-tcpdump=FILE Path to tcpdump binary
  935. --with-testnic=NIC Select which network card to use for testing
  936. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  937. testing
  938. --with-regex-header a reg expr header is specified
  939. --with-libregex libregex installation prefix
  940. --with-libregex-cflags libregex compile flags
  941. --with-libregex-libs libregex link command arguments
  942. --with-autoopts-config specify the config-info script
  943. Some influential environment variables:
  944. CC C compiler command
  945. CFLAGS C compiler flags
  946. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  947. nonstandard directory <lib dir>
  948. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  949. headers in a nonstandard directory <include dir>
  950. CPP C preprocessor
  951. CXX C++ compiler command
  952. CXXFLAGS C++ compiler flags
  953. CXXCPP C++ preprocessor
  954. F77 Fortran 77 compiler command
  955. FFLAGS Fortran 77 compiler flags
  956. Use these variables to override the choices made by `configure' or to help
  957. it to find libraries and programs with nonstandard names/locations.
  958. _ACEOF
  959. fi
  960. if test "$ac_init_help" = "recursive"; then
  961. # If there are subdirs, report their specific --help.
  962. ac_popdir=`pwd`
  963. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  964. test -d $ac_dir || continue
  965. ac_builddir=.
  966. if test "$ac_dir" != .; then
  967. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  968. # A "../" for each directory in $ac_dir_suffix.
  969. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  970. else
  971. ac_dir_suffix= ac_top_builddir=
  972. fi
  973. case $srcdir in
  974. .) # No --srcdir option. We are building in place.
  975. ac_srcdir=.
  976. if test -z "$ac_top_builddir"; then
  977. ac_top_srcdir=.
  978. else
  979. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  980. fi ;;
  981. [\\/]* | ?:[\\/]* ) # Absolute path.
  982. ac_srcdir=$srcdir$ac_dir_suffix;
  983. ac_top_srcdir=$srcdir ;;
  984. *) # Relative path.
  985. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  986. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  987. esac
  988. # Do not use `cd foo && pwd` to compute absolute paths, because
  989. # the directories may not exist.
  990. case `pwd` in
  991. .) ac_abs_builddir="$ac_dir";;
  992. *)
  993. case "$ac_dir" in
  994. .) ac_abs_builddir=`pwd`;;
  995. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  996. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  997. esac;;
  998. esac
  999. case $ac_abs_builddir in
  1000. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1001. *)
  1002. case ${ac_top_builddir}. in
  1003. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1004. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1005. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1006. esac;;
  1007. esac
  1008. case $ac_abs_builddir in
  1009. .) ac_abs_srcdir=$ac_srcdir;;
  1010. *)
  1011. case $ac_srcdir in
  1012. .) ac_abs_srcdir=$ac_abs_builddir;;
  1013. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1014. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1015. esac;;
  1016. esac
  1017. case $ac_abs_builddir in
  1018. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1019. *)
  1020. case $ac_top_srcdir in
  1021. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1022. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1023. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1024. esac;;
  1025. esac
  1026. cd $ac_dir
  1027. # Check for guested configure; otherwise get Cygnus style configure.
  1028. if test -f $ac_srcdir/configure.gnu; then
  1029. echo
  1030. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1031. elif test -f $ac_srcdir/configure; then
  1032. echo
  1033. $SHELL $ac_srcdir/configure --help=recursive
  1034. elif test -f $ac_srcdir/configure.ac ||
  1035. test -f $ac_srcdir/configure.in; then
  1036. echo
  1037. $ac_configure --help
  1038. else
  1039. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1040. fi
  1041. cd $ac_popdir
  1042. done
  1043. fi
  1044. test -n "$ac_init_help" && exit 0
  1045. if $ac_init_version; then
  1046. cat <<\_ACEOF
  1047. Copyright (C) 2003 Free Software Foundation, Inc.
  1048. This configure script is free software; the Free Software Foundation
  1049. gives unlimited permission to copy, distribute and modify it.
  1050. _ACEOF
  1051. exit 0
  1052. fi
  1053. exec 5>config.log
  1054. cat >&5 <<_ACEOF
  1055. This file contains any messages produced by compilers while
  1056. running configure, to aid debugging if configure makes a mistake.
  1057. It was created by $as_me, which was
  1058. generated by GNU Autoconf 2.59. Invocation command line was
  1059. $ $0 $@
  1060. _ACEOF
  1061. {
  1062. cat <<_ASUNAME
  1063. ## --------- ##
  1064. ## Platform. ##
  1065. ## --------- ##
  1066. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1067. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1068. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1069. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1070. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1071. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1072. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1073. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1074. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1075. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1076. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1077. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1078. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1079. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1080. _ASUNAME
  1081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1082. for as_dir in $PATH
  1083. do
  1084. IFS=$as_save_IFS
  1085. test -z "$as_dir" && as_dir=.
  1086. echo "PATH: $as_dir"
  1087. done
  1088. } >&5
  1089. cat >&5 <<_ACEOF
  1090. ## ----------- ##
  1091. ## Core tests. ##
  1092. ## ----------- ##
  1093. _ACEOF
  1094. # Keep a trace of the command line.
  1095. # Strip out --no-create and --no-recursion so they do not pile up.
  1096. # Strip out --silent because we don't want to record it for future runs.
  1097. # Also quote any args containing shell meta-characters.
  1098. # Make two passes to allow for proper duplicate-argument suppression.
  1099. ac_configure_args=
  1100. ac_configure_args0=
  1101. ac_configure_args1=
  1102. ac_sep=
  1103. ac_must_keep_next=false
  1104. for ac_pass in 1 2
  1105. do
  1106. for ac_arg
  1107. do
  1108. case $ac_arg in
  1109. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1110. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1111. | -silent | --silent | --silen | --sile | --sil)
  1112. continue ;;
  1113. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1114. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1115. esac
  1116. case $ac_pass in
  1117. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1118. 2)
  1119. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1120. if test $ac_must_keep_next = true; then
  1121. ac_must_keep_next=false # Got value, back to normal.
  1122. else
  1123. case $ac_arg in
  1124. *=* | --config-cache | -C | -disable-* | --disable-* \
  1125. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1126. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1127. | -with-* | --with-* | -without-* | --without-* | --x)
  1128. case "$ac_configure_args0 " in
  1129. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1130. esac
  1131. ;;
  1132. -* ) ac_must_keep_next=true ;;
  1133. esac
  1134. fi
  1135. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1136. # Get rid of the leading space.
  1137. ac_sep=" "
  1138. ;;
  1139. esac
  1140. done
  1141. done
  1142. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1143. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1144. # When interrupted or exit'd, cleanup temporary files, and complete
  1145. # config.log. We remove comments because anyway the quotes in there
  1146. # would cause problems or look ugly.
  1147. # WARNING: Be sure not to use single quotes in there, as some shells,
  1148. # such as our DU 5.0 friend, will then `close' the trap.
  1149. trap 'exit_status=$?
  1150. # Save into config.log some information that might help in debugging.
  1151. {
  1152. echo
  1153. cat <<\_ASBOX
  1154. ## ---------------- ##
  1155. ## Cache variables. ##
  1156. ## ---------------- ##
  1157. _ASBOX
  1158. echo
  1159. # The following way of writing the cache mishandles newlines in values,
  1160. {
  1161. (set) 2>&1 |
  1162. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1163. *ac_space=\ *)
  1164. sed -n \
  1165. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1166. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1167. ;;
  1168. *)
  1169. sed -n \
  1170. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1171. ;;
  1172. esac;
  1173. }
  1174. echo
  1175. cat <<\_ASBOX
  1176. ## ----------------- ##
  1177. ## Output variables. ##
  1178. ## ----------------- ##
  1179. _ASBOX
  1180. echo
  1181. for ac_var in $ac_subst_vars
  1182. do
  1183. eval ac_val=$`echo $ac_var`
  1184. echo "$ac_var='"'"'$ac_val'"'"'"
  1185. done | sort
  1186. echo
  1187. if test -n "$ac_subst_files"; then
  1188. cat <<\_ASBOX
  1189. ## ------------- ##
  1190. ## Output files. ##
  1191. ## ------------- ##
  1192. _ASBOX
  1193. echo
  1194. for ac_var in $ac_subst_files
  1195. do
  1196. eval ac_val=$`echo $ac_var`
  1197. echo "$ac_var='"'"'$ac_val'"'"'"
  1198. done | sort
  1199. echo
  1200. fi
  1201. if test -s confdefs.h; then
  1202. cat <<\_ASBOX
  1203. ## ----------- ##
  1204. ## confdefs.h. ##
  1205. ## ----------- ##
  1206. _ASBOX
  1207. echo
  1208. sed "/^$/d" confdefs.h | sort
  1209. echo
  1210. fi
  1211. test "$ac_signal" != 0 &&
  1212. echo "$as_me: caught signal $ac_signal"
  1213. echo "$as_me: exit $exit_status"
  1214. } >&5
  1215. rm -f core *.core &&
  1216. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1217. exit $exit_status
  1218. ' 0
  1219. for ac_signal in 1 2 13 15; do
  1220. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1221. done
  1222. ac_signal=0
  1223. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1224. rm -rf conftest* confdefs.h
  1225. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1226. echo >confdefs.h
  1227. # Predefined preprocessor variables.
  1228. cat >>confdefs.h <<_ACEOF
  1229. #define PACKAGE_NAME "$PACKAGE_NAME"
  1230. _ACEOF
  1231. cat >>confdefs.h <<_ACEOF
  1232. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1233. _ACEOF
  1234. cat >>confdefs.h <<_ACEOF
  1235. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1236. _ACEOF
  1237. cat >>confdefs.h <<_ACEOF
  1238. #define PACKAGE_STRING "$PACKAGE_STRING"
  1239. _ACEOF
  1240. cat >>confdefs.h <<_ACEOF
  1241. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1242. _ACEOF
  1243. # Let the site file select an alternate cache file if it wants to.
  1244. # Prefer explicitly selected file to automatically selected ones.
  1245. if test -z "$CONFIG_SITE"; then
  1246. if test "x$prefix" != xNONE; then
  1247. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1248. else
  1249. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1250. fi
  1251. fi
  1252. for ac_site_file in $CONFIG_SITE; do
  1253. if test -r "$ac_site_file"; then
  1254. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1255. echo "$as_me: loading site script $ac_site_file" >&6;}
  1256. sed 's/^/| /' "$ac_site_file" >&5
  1257. . "$ac_site_file"
  1258. fi
  1259. done
  1260. if test -r "$cache_file"; then
  1261. # Some versions of bash will fail to source /dev/null (special
  1262. # files actually), so we avoid doing that.
  1263. if test -f "$cache_file"; then
  1264. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1265. echo "$as_me: loading cache $cache_file" >&6;}
  1266. case $cache_file in
  1267. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1268. *) . ./$cache_file;;
  1269. esac
  1270. fi
  1271. else
  1272. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1273. echo "$as_me: creating cache $cache_file" >&6;}
  1274. >$cache_file
  1275. fi
  1276. # Check that the precious variables saved in the cache have kept the same
  1277. # value.
  1278. ac_cache_corrupted=false
  1279. for ac_var in `(set) 2>&1 |
  1280. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1281. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1282. eval ac_new_set=\$ac_env_${ac_var}_set
  1283. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1284. eval ac_new_val="\$ac_env_${ac_var}_value"
  1285. case $ac_old_set,$ac_new_set in
  1286. set,)
  1287. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1288. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1289. ac_cache_corrupted=: ;;
  1290. ,set)
  1291. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1292. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1293. ac_cache_corrupted=: ;;
  1294. ,);;
  1295. *)
  1296. if test "x$ac_old_val" != "x$ac_new_val"; then
  1297. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1298. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1299. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1300. echo "$as_me: former value: $ac_old_val" >&2;}
  1301. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1302. echo "$as_me: current value: $ac_new_val" >&2;}
  1303. ac_cache_corrupted=:
  1304. fi;;
  1305. esac
  1306. # Pass precious variables to config.status.
  1307. if test "$ac_new_set" = set; then
  1308. case $ac_new_val in
  1309. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1310. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1311. *) ac_arg=$ac_var=$ac_new_val ;;
  1312. esac
  1313. case " $ac_configure_args " in
  1314. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1315. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1316. esac
  1317. fi
  1318. done
  1319. if $ac_cache_corrupted; then
  1320. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1321. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1322. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1323. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1324. { (exit 1); exit 1; }; }
  1325. fi
  1326. ac_ext=c
  1327. ac_cpp='$CPP $CPPFLAGS'
  1328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1331. ac_config_headers="$ac_config_headers src/config.h"
  1332. ac_aux_dir=
  1333. for ac_dir in config $srcdir/config; do
  1334. if test -f $ac_dir/install-sh; then
  1335. ac_aux_dir=$ac_dir
  1336. ac_install_sh="$ac_aux_dir/install-sh -c"
  1337. break
  1338. elif test -f $ac_dir/install.sh; then
  1339. ac_aux_dir=$ac_dir
  1340. ac_install_sh="$ac_aux_dir/install.sh -c"
  1341. break
  1342. elif test -f $ac_dir/shtool; then
  1343. ac_aux_dir=$ac_dir
  1344. ac_install_sh="$ac_aux_dir/shtool install -c"
  1345. break
  1346. fi
  1347. done
  1348. if test -z "$ac_aux_dir"; then
  1349. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
  1350. echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
  1351. { (exit 1); exit 1; }; }
  1352. fi
  1353. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1354. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1355. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1356. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1357. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1358. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1359. if test "${enable_maintainer_mode+set}" = set; then
  1360. enableval="$enable_maintainer_mode"
  1361. USE_MAINTAINER_MODE=$enableval
  1362. else
  1363. USE_MAINTAINER_MODE=no
  1364. fi;
  1365. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1366. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1367. if test $USE_MAINTAINER_MODE = yes; then
  1368. MAINTAINER_MODE_TRUE=
  1369. MAINTAINER_MODE_FALSE='#'
  1370. else
  1371. MAINTAINER_MODE_TRUE='#'
  1372. MAINTAINER_MODE_FALSE=
  1373. fi
  1374. MAINT=$MAINTAINER_MODE_TRUE
  1375. echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1376. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
  1377. # Check whether --with-dmalloc or --without-dmalloc was given.
  1378. if test "${with_dmalloc+set}" = set; then
  1379. withval="$with_dmalloc"
  1380. if test "$withval" = yes; then
  1381. echo "$as_me:$LINENO: result: yes" >&5
  1382. echo "${ECHO_T}yes" >&6
  1383. cat >>confdefs.h <<\_ACEOF
  1384. #define WITH_DMALLOC 1
  1385. _ACEOF
  1386. LIBS="$LIBS -ldmalloc"
  1387. LDFLAGS="$LDFLAGS -g"
  1388. else
  1389. echo "$as_me:$LINENO: result: no" >&5
  1390. echo "${ECHO_T}no" >&6
  1391. fi
  1392. else
  1393. echo "$as_me:$LINENO: result: no" >&5
  1394. echo "${ECHO_T}no" >&6
  1395. fi;
  1396. # Check whether --enable-shared or --disable-shared was given.
  1397. if test "${enable_shared+set}" = set; then
  1398. enableval="$enable_shared"
  1399. p=${PACKAGE-default}
  1400. case $enableval in
  1401. yes) enable_shared=yes ;;
  1402. no) enable_shared=no ;;
  1403. *)
  1404. enable_shared=no
  1405. # Look at the argument we got. We use all the common list separators.
  1406. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1407. for pkg in $enableval; do
  1408. IFS="$lt_save_ifs"
  1409. if test "X$pkg" = "X$p"; then
  1410. enable_shared=yes
  1411. fi
  1412. done
  1413. IFS="$lt_save_ifs"
  1414. ;;
  1415. esac
  1416. else
  1417. enable_shared=yes
  1418. fi;
  1419. # Check whether --enable-static or --disable-static was given.
  1420. if test "${enable_static+set}" = set; then
  1421. enableval="$enable_static"
  1422. p=${PACKAGE-default}
  1423. case $enableval in
  1424. yes) enable_static=yes ;;
  1425. no) enable_static=no ;;
  1426. *)
  1427. enable_static=no
  1428. # Look at the argument we got. We use all the common list separators.
  1429. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1430. for pkg in $enableval; do
  1431. IFS="$lt_save_ifs"
  1432. if test "X$pkg" = "X$p"; then
  1433. enable_static=yes
  1434. fi
  1435. done
  1436. IFS="$lt_save_ifs"
  1437. ;;
  1438. esac
  1439. else
  1440. enable_static=yes
  1441. fi;
  1442. # Check whether --enable-fast-install or --disable-fast-install was given.
  1443. if test "${enable_fast_install+set}" = set; then
  1444. enableval="$enable_fast_install"
  1445. p=${PACKAGE-default}
  1446. case $enableval in
  1447. yes) enable_fast_install=yes ;;
  1448. no) enable_fast_install=no ;;
  1449. *)
  1450. enable_fast_install=no
  1451. # Look at the argument we got. We use all the common list separators.
  1452. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1453. for pkg in $enableval; do
  1454. IFS="$lt_save_ifs"
  1455. if test "X$pkg" = "X$p"; then
  1456. enable_fast_install=yes
  1457. fi
  1458. done
  1459. IFS="$lt_save_ifs"
  1460. ;;
  1461. esac
  1462. else
  1463. enable_fast_install=yes
  1464. fi;
  1465. # Make sure we can run config.sub.
  1466. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1467. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1468. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1469. { (exit 1); exit 1; }; }
  1470. echo "$as_me:$LINENO: checking build system type" >&5
  1471. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1472. if test "${ac_cv_build+set}" = set; then
  1473. echo $ECHO_N "(cached) $ECHO_C" >&6
  1474. else
  1475. ac_cv_build_alias=$build_alias
  1476. test -z "$ac_cv_build_alias" &&
  1477. ac_cv_build_alias=`$ac_config_guess`
  1478. test -z "$ac_cv_build_alias" &&
  1479. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1480. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1481. { (exit 1); exit 1; }; }
  1482. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1483. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1484. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1485. { (exit 1); exit 1; }; }
  1486. fi
  1487. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1488. echo "${ECHO_T}$ac_cv_build" >&6
  1489. build=$ac_cv_build
  1490. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1491. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1492. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1493. echo "$as_me:$LINENO: checking host system type" >&5
  1494. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1495. if test "${ac_cv_host+set}" = set; then
  1496. echo $ECHO_N "(cached) $ECHO_C" >&6
  1497. else
  1498. ac_cv_host_alias=$host_alias
  1499. test -z "$ac_cv_host_alias" &&
  1500. ac_cv_host_alias=$ac_cv_build_alias
  1501. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1502. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1503. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1504. { (exit 1); exit 1; }; }
  1505. fi
  1506. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1507. echo "${ECHO_T}$ac_cv_host" >&6
  1508. host=$ac_cv_host
  1509. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1510. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1511. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1512. ac_ext=c
  1513. ac_cpp='$CPP $CPPFLAGS'
  1514. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1515. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1516. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1517. if test -n "$ac_tool_prefix"; then
  1518. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1519. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1520. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1521. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1522. if test "${ac_cv_prog_CC+set}" = set; then
  1523. echo $ECHO_N "(cached) $ECHO_C" >&6
  1524. else
  1525. if test -n "$CC"; then
  1526. ac_cv_prog_CC="$CC" # Let the user override the test.
  1527. else
  1528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1529. for as_dir in $PATH
  1530. do
  1531. IFS=$as_save_IFS
  1532. test -z "$as_dir" && as_dir=.
  1533. for ac_exec_ext in '' $ac_executable_extensions; do
  1534. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1535. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1536. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1537. break 2
  1538. fi
  1539. done
  1540. done
  1541. fi
  1542. fi
  1543. CC=$ac_cv_prog_CC
  1544. if test -n "$CC"; then
  1545. echo "$as_me:$LINENO: result: $CC" >&5
  1546. echo "${ECHO_T}$CC" >&6
  1547. else
  1548. echo "$as_me:$LINENO: result: no" >&5
  1549. echo "${ECHO_T}no" >&6
  1550. fi
  1551. fi
  1552. if test -z "$ac_cv_prog_CC"; then
  1553. ac_ct_CC=$CC
  1554. # Extract the first word of "gcc", so it can be a program name with args.
  1555. set dummy gcc; ac_word=$2
  1556. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1557. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1558. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1559. echo $ECHO_N "(cached) $ECHO_C" >&6
  1560. else
  1561. if test -n "$ac_ct_CC"; then
  1562. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1563. else
  1564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1565. for as_dir in $PATH
  1566. do
  1567. IFS=$as_save_IFS
  1568. test -z "$as_dir" && as_dir=.
  1569. for ac_exec_ext in '' $ac_executable_extensions; do
  1570. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1571. ac_cv_prog_ac_ct_CC="gcc"
  1572. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1573. break 2
  1574. fi
  1575. done
  1576. done
  1577. fi
  1578. fi
  1579. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1580. if test -n "$ac_ct_CC"; then
  1581. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1582. echo "${ECHO_T}$ac_ct_CC" >&6
  1583. else
  1584. echo "$as_me:$LINENO: result: no" >&5
  1585. echo "${ECHO_T}no" >&6
  1586. fi
  1587. CC=$ac_ct_CC
  1588. else
  1589. CC="$ac_cv_prog_CC"
  1590. fi
  1591. if test -z "$CC"; then
  1592. if test -n "$ac_tool_prefix"; then
  1593. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1594. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1595. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1596. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1597. if test "${ac_cv_prog_CC+set}" = set; then
  1598. echo $ECHO_N "(cached) $ECHO_C" >&6
  1599. else
  1600. if test -n "$CC"; then
  1601. ac_cv_prog_CC="$CC" # Let the user override the test.
  1602. else
  1603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1604. for as_dir in $PATH
  1605. do
  1606. IFS=$as_save_IFS
  1607. test -z "$as_dir" && as_dir=.
  1608. for ac_exec_ext in '' $ac_executable_extensions; do
  1609. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1610. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1611. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1612. break 2
  1613. fi
  1614. done
  1615. done
  1616. fi
  1617. fi
  1618. CC=$ac_cv_prog_CC
  1619. if test -n "$CC"; then
  1620. echo "$as_me:$LINENO: result: $CC" >&5
  1621. echo "${ECHO_T}$CC" >&6
  1622. else
  1623. echo "$as_me:$LINENO: result: no" >&5
  1624. echo "${ECHO_T}no" >&6
  1625. fi
  1626. fi
  1627. if test -z "$ac_cv_prog_CC"; then
  1628. ac_ct_CC=$CC
  1629. # Extract the first word of "cc", so it can be a program name with args.
  1630. set dummy cc; ac_word=$2
  1631. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1632. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1633. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1634. echo $ECHO_N "(cached) $ECHO_C" >&6
  1635. else
  1636. if test -n "$ac_ct_CC"; then
  1637. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1638. else
  1639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1640. for as_dir in $PATH
  1641. do
  1642. IFS=$as_save_IFS
  1643. test -z "$as_dir" && as_dir=.
  1644. for ac_exec_ext in '' $ac_executable_extensions; do
  1645. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1646. ac_cv_prog_ac_ct_CC="cc"
  1647. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1648. break 2
  1649. fi
  1650. done
  1651. done
  1652. fi
  1653. fi
  1654. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1655. if test -n "$ac_ct_CC"; then
  1656. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1657. echo "${ECHO_T}$ac_ct_CC" >&6
  1658. else
  1659. echo "$as_me:$LINENO: result: no" >&5
  1660. echo "${ECHO_T}no" >&6
  1661. fi
  1662. CC=$ac_ct_CC
  1663. else
  1664. CC="$ac_cv_prog_CC"
  1665. fi
  1666. fi
  1667. if test -z "$CC"; then
  1668. # Extract the first word of "cc", so it can be a program name with args.
  1669. set dummy cc; ac_word=$2
  1670. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1671. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1672. if test "${ac_cv_prog_CC+set}" = set; then
  1673. echo $ECHO_N "(cached) $ECHO_C" >&6
  1674. else
  1675. if test -n "$CC"; then
  1676. ac_cv_prog_CC="$CC" # Let the user override the test.
  1677. else
  1678. ac_prog_rejected=no
  1679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1680. for as_dir in $PATH
  1681. do
  1682. IFS=$as_save_IFS
  1683. test -z "$as_dir" && as_dir=.
  1684. for ac_exec_ext in '' $ac_executable_extensions; do
  1685. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1686. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1687. ac_prog_rejected=yes
  1688. continue
  1689. fi
  1690. ac_cv_prog_CC="cc"
  1691. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1692. break 2
  1693. fi
  1694. done
  1695. done
  1696. if test $ac_prog_rejected = yes; then
  1697. # We found a bogon in the path, so make sure we never use it.
  1698. set dummy $ac_cv_prog_CC
  1699. shift
  1700. if test $# != 0; then
  1701. # We chose a different compiler from the bogus one.
  1702. # However, it has the same basename, so the bogon will be chosen
  1703. # first if we set CC to just the basename; use the full file name.
  1704. shift
  1705. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1706. fi
  1707. fi
  1708. fi
  1709. fi
  1710. CC=$ac_cv_prog_CC
  1711. if test -n "$CC"; then
  1712. echo "$as_me:$LINENO: result: $CC" >&5
  1713. echo "${ECHO_T}$CC" >&6
  1714. else
  1715. echo "$as_me:$LINENO: result: no" >&5
  1716. echo "${ECHO_T}no" >&6
  1717. fi
  1718. fi
  1719. if test -z "$CC"; then
  1720. if test -n "$ac_tool_prefix"; then
  1721. for ac_prog in cl
  1722. do
  1723. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1724. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1725. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1726. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1727. if test "${ac_cv_prog_CC+set}" = set; then
  1728. echo $ECHO_N "(cached) $ECHO_C" >&6
  1729. else
  1730. if test -n "$CC"; then
  1731. ac_cv_prog_CC="$CC" # Let the user override the test.
  1732. else
  1733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1734. for as_dir in $PATH
  1735. do
  1736. IFS=$as_save_IFS
  1737. test -z "$as_dir" && as_dir=.
  1738. for ac_exec_ext in '' $ac_executable_extensions; do
  1739. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1740. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1741. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1742. break 2
  1743. fi
  1744. done
  1745. done
  1746. fi
  1747. fi
  1748. CC=$ac_cv_prog_CC
  1749. if test -n "$CC"; then
  1750. echo "$as_me:$LINENO: result: $CC" >&5
  1751. echo "${ECHO_T}$CC" >&6
  1752. else
  1753. echo "$as_me:$LINENO: result: no" >&5
  1754. echo "${ECHO_T}no" >&6
  1755. fi
  1756. test -n "$CC" && break
  1757. done
  1758. fi
  1759. if test -z "$CC"; then
  1760. ac_ct_CC=$CC
  1761. for ac_prog in cl
  1762. do
  1763. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1764. set dummy $ac_prog; ac_word=$2
  1765. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1766. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1767. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1768. echo $ECHO_N "(cached) $ECHO_C" >&6
  1769. else
  1770. if test -n "$ac_ct_CC"; then
  1771. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1772. else
  1773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1774. for as_dir in $PATH
  1775. do
  1776. IFS=$as_save_IFS
  1777. test -z "$as_dir" && as_dir=.
  1778. for ac_exec_ext in '' $ac_executable_extensions; do
  1779. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1780. ac_cv_prog_ac_ct_CC="$ac_prog"
  1781. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1782. break 2
  1783. fi
  1784. done
  1785. done
  1786. fi
  1787. fi
  1788. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1789. if test -n "$ac_ct_CC"; then
  1790. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1791. echo "${ECHO_T}$ac_ct_CC" >&6
  1792. else
  1793. echo "$as_me:$LINENO: result: no" >&5
  1794. echo "${ECHO_T}no" >&6
  1795. fi
  1796. test -n "$ac_ct_CC" && break
  1797. done
  1798. CC=$ac_ct_CC
  1799. fi
  1800. fi
  1801. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1802. See \`config.log' for more details." >&5
  1803. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1804. See \`config.log' for more details." >&2;}
  1805. { (exit 1); exit 1; }; }
  1806. # Provide some information about the compiler.
  1807. echo "$as_me:$LINENO:" \
  1808. "checking for C compiler version" >&5
  1809. ac_compiler=`set X $ac_compile; echo $2`
  1810. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1811. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1812. ac_status=$?
  1813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1814. (exit $ac_status); }
  1815. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1816. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1817. ac_status=$?
  1818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1819. (exit $ac_status); }
  1820. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1821. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1822. ac_status=$?
  1823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1824. (exit $ac_status); }
  1825. cat >conftest.$ac_ext <<_ACEOF
  1826. /* confdefs.h. */
  1827. _ACEOF
  1828. cat confdefs.h >>conftest.$ac_ext
  1829. cat >>conftest.$ac_ext <<_ACEOF
  1830. /* end confdefs.h. */
  1831. int
  1832. main ()
  1833. {
  1834. ;
  1835. return 0;
  1836. }
  1837. _ACEOF
  1838. ac_clean_files_save=$ac_clean_files
  1839. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1840. # Try to create an executable without -o first, disregard a.out.
  1841. # It will help us diagnose broken compilers, and finding out an intuition
  1842. # of exeext.
  1843. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1844. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1845. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1846. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1847. (eval $ac_link_default) 2>&5
  1848. ac_status=$?
  1849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1850. (exit $ac_status); }; then
  1851. # Find the output, starting from the most likely. This scheme is
  1852. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1853. # resort.
  1854. # Be careful to initialize this variable, since it used to be cached.
  1855. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1856. ac_cv_exeext=
  1857. # b.out is created by i960 compilers.
  1858. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1859. do
  1860. test -f "$ac_file" || continue
  1861. case $ac_file in
  1862. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1863. ;;
  1864. conftest.$ac_ext )
  1865. # This is the source file.
  1866. ;;
  1867. [ab].out )
  1868. # We found the default executable, but exeext='' is most
  1869. # certainly right.
  1870. break;;
  1871. *.* )
  1872. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1873. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1874. # but it would be cool to find out if it's true. Does anybody
  1875. # maintain Libtool? --akim.
  1876. export ac_cv_exeext
  1877. break;;
  1878. * )
  1879. break;;
  1880. esac
  1881. done
  1882. else
  1883. echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1886. See \`config.log' for more details." >&5
  1887. echo "$as_me: error: C compiler cannot create executables
  1888. See \`config.log' for more details." >&2;}
  1889. { (exit 77); exit 77; }; }
  1890. fi
  1891. ac_exeext=$ac_cv_exeext
  1892. echo "$as_me:$LINENO: result: $ac_file" >&5
  1893. echo "${ECHO_T}$ac_file" >&6
  1894. # Check the compiler produces executables we can run. If not, either
  1895. # the compiler is broken, or we cross compile.
  1896. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1897. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1898. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1899. # If not cross compiling, check that we can run a simple program.
  1900. if test "$cross_compiling" != yes; then
  1901. if { ac_try='./$ac_file'
  1902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1903. (eval $ac_try) 2>&5
  1904. ac_status=$?
  1905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1906. (exit $ac_status); }; }; then
  1907. cross_compiling=no
  1908. else
  1909. if test "$cross_compiling" = maybe; then
  1910. cross_compiling=yes
  1911. else
  1912. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1913. If you meant to cross compile, use \`--host'.
  1914. See \`config.log' for more details." >&5
  1915. echo "$as_me: error: cannot run C compiled programs.
  1916. If you meant to cross compile, use \`--host'.
  1917. See \`config.log' for more details." >&2;}
  1918. { (exit 1); exit 1; }; }
  1919. fi
  1920. fi
  1921. fi
  1922. echo "$as_me:$LINENO: result: yes" >&5
  1923. echo "${ECHO_T}yes" >&6
  1924. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1925. ac_clean_files=$ac_clean_files_save
  1926. # Check the compiler produces executables we can run. If not, either
  1927. # the compiler is broken, or we cross compile.
  1928. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1929. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1930. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1931. echo "${ECHO_T}$cross_compiling" >&6
  1932. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1933. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1934. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1935. (eval $ac_link) 2>&5
  1936. ac_status=$?
  1937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1938. (exit $ac_status); }; then
  1939. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1940. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1941. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1942. # `rm'.
  1943. for ac_file in conftest.exe conftest conftest.*; do
  1944. test -f "$ac_file" || continue
  1945. case $ac_file in
  1946. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1947. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1948. export ac_cv_exeext
  1949. break;;
  1950. * ) break;;
  1951. esac
  1952. done
  1953. else
  1954. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1955. See \`config.log' for more details." >&5
  1956. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1957. See \`config.log' for more details." >&2;}
  1958. { (exit 1); exit 1; }; }
  1959. fi
  1960. rm -f conftest$ac_cv_exeext
  1961. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1962. echo "${ECHO_T}$ac_cv_exeext" >&6
  1963. rm -f conftest.$ac_ext
  1964. EXEEXT=$ac_cv_exeext
  1965. ac_exeext=$EXEEXT
  1966. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1967. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1968. if test "${ac_cv_objext+set}" = set; then
  1969. echo $ECHO_N "(cached) $ECHO_C" >&6
  1970. else
  1971. cat >conftest.$ac_ext <<_ACEOF
  1972. /* confdefs.h. */
  1973. _ACEOF
  1974. cat confdefs.h >>conftest.$ac_ext
  1975. cat >>conftest.$ac_ext <<_ACEOF
  1976. /* end confdefs.h. */
  1977. int
  1978. main ()
  1979. {
  1980. ;
  1981. return 0;
  1982. }
  1983. _ACEOF
  1984. rm -f conftest.o conftest.obj
  1985. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1986. (eval $ac_compile) 2>&5
  1987. ac_status=$?
  1988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1989. (exit $ac_status); }; then
  1990. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1991. case $ac_file in
  1992. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1993. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1994. break;;
  1995. esac
  1996. done
  1997. else
  1998. echo "$as_me: failed program was:" >&5
  1999. sed 's/^/| /' conftest.$ac_ext >&5
  2000. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2001. See \`config.log' for more details." >&5
  2002. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2003. See \`config.log' for more details." >&2;}
  2004. { (exit 1); exit 1; }; }
  2005. fi
  2006. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2007. fi
  2008. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2009. echo "${ECHO_T}$ac_cv_objext" >&6
  2010. OBJEXT=$ac_cv_objext
  2011. ac_objext=$OBJEXT
  2012. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2013. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2014. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2015. echo $ECHO_N "(cached) $ECHO_C" >&6
  2016. else
  2017. cat >conftest.$ac_ext <<_ACEOF
  2018. /* confdefs.h. */
  2019. _ACEOF
  2020. cat confdefs.h >>conftest.$ac_ext
  2021. cat >>conftest.$ac_ext <<_ACEOF
  2022. /* end confdefs.h. */
  2023. int
  2024. main ()
  2025. {
  2026. #ifndef __GNUC__
  2027. choke me
  2028. #endif
  2029. ;
  2030. return 0;
  2031. }
  2032. _ACEOF
  2033. rm -f conftest.$ac_objext
  2034. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2035. (eval $ac_compile) 2>conftest.er1
  2036. ac_status=$?
  2037. grep -v '^ *+' conftest.er1 >conftest.err
  2038. rm -f conftest.er1
  2039. cat conftest.err >&5
  2040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2041. (exit $ac_status); } &&
  2042. { ac_try='test -z "$ac_c_werror_flag"
  2043. || test ! -s conftest.err'
  2044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2045. (eval $ac_try) 2>&5
  2046. ac_status=$?
  2047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2048. (exit $ac_status); }; } &&
  2049. { ac_try='test -s conftest.$ac_objext'
  2050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2051. (eval $ac_try) 2>&5
  2052. ac_status=$?
  2053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2054. (exit $ac_status); }; }; then
  2055. ac_compiler_gnu=yes
  2056. else
  2057. echo "$as_me: failed program was:" >&5
  2058. sed 's/^/| /' conftest.$ac_ext >&5
  2059. ac_compiler_gnu=no
  2060. fi
  2061. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2062. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2063. fi
  2064. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2065. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2066. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2067. ac_test_CFLAGS=${CFLAGS+set}
  2068. ac_save_CFLAGS=$CFLAGS
  2069. CFLAGS="-g"
  2070. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2071. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2072. if test "${ac_cv_prog_cc_g+set}" = set; then
  2073. echo $ECHO_N "(cached) $ECHO_C" >&6
  2074. else
  2075. cat >conftest.$ac_ext <<_ACEOF
  2076. /* confdefs.h. */
  2077. _ACEOF
  2078. cat confdefs.h >>conftest.$ac_ext
  2079. cat >>conftest.$ac_ext <<_ACEOF
  2080. /* end confdefs.h. */
  2081. int
  2082. main ()
  2083. {
  2084. ;
  2085. return 0;
  2086. }
  2087. _ACEOF
  2088. rm -f conftest.$ac_objext
  2089. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2090. (eval $ac_compile) 2>conftest.er1
  2091. ac_status=$?
  2092. grep -v '^ *+' conftest.er1 >conftest.err
  2093. rm -f conftest.er1
  2094. cat conftest.err >&5
  2095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2096. (exit $ac_status); } &&
  2097. { ac_try='test -z "$ac_c_werror_flag"
  2098. || test ! -s conftest.err'
  2099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2100. (eval $ac_try) 2>&5
  2101. ac_status=$?
  2102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2103. (exit $ac_status); }; } &&
  2104. { ac_try='test -s conftest.$ac_objext'
  2105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2106. (eval $ac_try) 2>&5
  2107. ac_status=$?
  2108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2109. (exit $ac_status); }; }; then
  2110. ac_cv_prog_cc_g=yes
  2111. else
  2112. echo "$as_me: failed program was:" >&5
  2113. sed 's/^/| /' conftest.$ac_ext >&5
  2114. ac_cv_prog_cc_g=no
  2115. fi
  2116. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2117. fi
  2118. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2119. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2120. if test "$ac_test_CFLAGS" = set; then
  2121. CFLAGS=$ac_save_CFLAGS
  2122. elif test $ac_cv_prog_cc_g = yes; then
  2123. if test "$GCC" = yes; then
  2124. CFLAGS="-g -O2"
  2125. else
  2126. CFLAGS="-g"
  2127. fi
  2128. else
  2129. if test "$GCC" = yes; then
  2130. CFLAGS="-O2"
  2131. else
  2132. CFLAGS=
  2133. fi
  2134. fi
  2135. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2136. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2137. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2138. echo $ECHO_N "(cached) $ECHO_C" >&6
  2139. else
  2140. ac_cv_prog_cc_stdc=no
  2141. ac_save_CC=$CC
  2142. cat >conftest.$ac_ext <<_ACEOF
  2143. /* confdefs.h. */
  2144. _ACEOF
  2145. cat confdefs.h >>conftest.$ac_ext
  2146. cat >>conftest.$ac_ext <<_ACEOF
  2147. /* end confdefs.h. */
  2148. #include <stdarg.h>
  2149. #include <stdio.h>
  2150. #include <sys/types.h>
  2151. #include <sys/stat.h>
  2152. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2153. struct buf { int x; };
  2154. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2155. static char *e (p, i)
  2156. char **p;
  2157. int i;
  2158. {
  2159. return p[i];
  2160. }
  2161. static char *f (char * (*g) (char **, int), char **p, ...)
  2162. {
  2163. char *s;
  2164. va_list v;
  2165. va_start (v,p);
  2166. s = g (p, va_arg (v,int));
  2167. va_end (v);
  2168. return s;
  2169. }
  2170. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2171. function prototypes and stuff, but not '\xHH' hex character constants.
  2172. These don't provoke an error unfortunately, instead are silently treated
  2173. as 'x'. The following induces an error, until -std1 is added to get
  2174. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2175. array size at least. It's necessary to write '\x00'==0 to get something
  2176. that's true only with -std1. */
  2177. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2178. int test (int i, double x);
  2179. struct s1 {int (*f) (int a);};
  2180. struct s2 {int (*f) (double a);};
  2181. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2182. int argc;
  2183. char **argv;
  2184. int
  2185. main ()
  2186. {
  2187. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2188. ;
  2189. return 0;
  2190. }
  2191. _ACEOF
  2192. # Don't try gcc -ansi; that turns off useful extensions and
  2193. # breaks some systems' header files.
  2194. # AIX -qlanglvl=ansi
  2195. # Ultrix and OSF/1 -std1
  2196. # HP-UX 10.20 and later -Ae
  2197. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2198. # SVR4 -Xc -D__EXTENSIONS__
  2199. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2200. do
  2201. CC="$ac_save_CC $ac_arg"
  2202. rm -f conftest.$ac_objext
  2203. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2204. (eval $ac_compile) 2>conftest.er1
  2205. ac_status=$?
  2206. grep -v '^ *+' conftest.er1 >conftest.err
  2207. rm -f conftest.er1
  2208. cat conftest.err >&5
  2209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2210. (exit $ac_status); } &&
  2211. { ac_try='test -z "$ac_c_werror_flag"
  2212. || test ! -s conftest.err'
  2213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2214. (eval $ac_try) 2>&5
  2215. ac_status=$?
  2216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2217. (exit $ac_status); }; } &&
  2218. { ac_try='test -s conftest.$ac_objext'
  2219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2220. (eval $ac_try) 2>&5
  2221. ac_status=$?
  2222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2223. (exit $ac_status); }; }; then
  2224. ac_cv_prog_cc_stdc=$ac_arg
  2225. break
  2226. else
  2227. echo "$as_me: failed program was:" >&5
  2228. sed 's/^/| /' conftest.$ac_ext >&5
  2229. fi
  2230. rm -f conftest.err conftest.$ac_objext
  2231. done
  2232. rm -f conftest.$ac_ext conftest.$ac_objext
  2233. CC=$ac_save_CC
  2234. fi
  2235. case "x$ac_cv_prog_cc_stdc" in
  2236. x|xno)
  2237. echo "$as_me:$LINENO: result: none needed" >&5
  2238. echo "${ECHO_T}none needed" >&6 ;;
  2239. *)
  2240. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2241. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2242. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2243. esac
  2244. # Some people use a C++ compiler to compile C. Since we use `exit',
  2245. # in C++ we need to declare it. In case someone uses the same compiler
  2246. # for both compiling C and C++ we need to have the C++ compiler decide
  2247. # the declaration of exit, since it's the most demanding environment.
  2248. cat >conftest.$ac_ext <<_ACEOF
  2249. #ifndef __cplusplus
  2250. choke me
  2251. #endif
  2252. _ACEOF
  2253. rm -f conftest.$ac_objext
  2254. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2255. (eval $ac_compile) 2>conftest.er1
  2256. ac_status=$?
  2257. grep -v '^ *+' conftest.er1 >conftest.err
  2258. rm -f conftest.er1
  2259. cat conftest.err >&5
  2260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2261. (exit $ac_status); } &&
  2262. { ac_try='test -z "$ac_c_werror_flag"
  2263. || test ! -s conftest.err'
  2264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2265. (eval $ac_try) 2>&5
  2266. ac_status=$?
  2267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2268. (exit $ac_status); }; } &&
  2269. { ac_try='test -s conftest.$ac_objext'
  2270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2271. (eval $ac_try) 2>&5
  2272. ac_status=$?
  2273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2274. (exit $ac_status); }; }; then
  2275. for ac_declaration in \
  2276. '' \
  2277. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2278. 'extern "C" void std::exit (int); using std::exit;' \
  2279. 'extern "C" void exit (int) throw ();' \
  2280. 'extern "C" void exit (int);' \
  2281. 'void exit (int);'
  2282. do
  2283. cat >conftest.$ac_ext <<_ACEOF
  2284. /* confdefs.h. */
  2285. _ACEOF
  2286. cat confdefs.h >>conftest.$ac_ext
  2287. cat >>conftest.$ac_ext <<_ACEOF
  2288. /* end confdefs.h. */
  2289. $ac_declaration
  2290. #include <stdlib.h>
  2291. int
  2292. main ()
  2293. {
  2294. exit (42);
  2295. ;
  2296. return 0;
  2297. }
  2298. _ACEOF
  2299. rm -f conftest.$ac_objext
  2300. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2301. (eval $ac_compile) 2>conftest.er1
  2302. ac_status=$?
  2303. grep -v '^ *+' conftest.er1 >conftest.err
  2304. rm -f conftest.er1
  2305. cat conftest.err >&5
  2306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2307. (exit $ac_status); } &&
  2308. { ac_try='test -z "$ac_c_werror_flag"
  2309. || test ! -s conftest.err'
  2310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2311. (eval $ac_try) 2>&5
  2312. ac_status=$?
  2313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2314. (exit $ac_status); }; } &&
  2315. { ac_try='test -s conftest.$ac_objext'
  2316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2317. (eval $ac_try) 2>&5
  2318. ac_status=$?
  2319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2320. (exit $ac_status); }; }; then
  2321. :
  2322. else
  2323. echo "$as_me: failed program was:" >&5
  2324. sed 's/^/| /' conftest.$ac_ext >&5
  2325. continue
  2326. fi
  2327. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2328. cat >conftest.$ac_ext <<_ACEOF
  2329. /* confdefs.h. */
  2330. _ACEOF
  2331. cat confdefs.h >>conftest.$ac_ext
  2332. cat >>conftest.$ac_ext <<_ACEOF
  2333. /* end confdefs.h. */
  2334. $ac_declaration
  2335. int
  2336. main ()
  2337. {
  2338. exit (42);
  2339. ;
  2340. return 0;
  2341. }
  2342. _ACEOF
  2343. rm -f conftest.$ac_objext
  2344. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2345. (eval $ac_compile) 2>conftest.er1
  2346. ac_status=$?
  2347. grep -v '^ *+' conftest.er1 >conftest.err
  2348. rm -f conftest.er1
  2349. cat conftest.err >&5
  2350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2351. (exit $ac_status); } &&
  2352. { ac_try='test -z "$ac_c_werror_flag"
  2353. || test ! -s conftest.err'
  2354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2355. (eval $ac_try) 2>&5
  2356. ac_status=$?
  2357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2358. (exit $ac_status); }; } &&
  2359. { ac_try='test -s conftest.$ac_objext'
  2360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2361. (eval $ac_try) 2>&5
  2362. ac_status=$?
  2363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2364. (exit $ac_status); }; }; then
  2365. break
  2366. else
  2367. echo "$as_me: failed program was:" >&5
  2368. sed 's/^/| /' conftest.$ac_ext >&5
  2369. fi
  2370. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2371. done
  2372. rm -f conftest*
  2373. if test -n "$ac_declaration"; then
  2374. echo '#ifdef __cplusplus' >>confdefs.h
  2375. echo $ac_declaration >>confdefs.h
  2376. echo '#endif' >>confdefs.h
  2377. fi
  2378. else
  2379. echo "$as_me: failed program was:" >&5
  2380. sed 's/^/| /' conftest.$ac_ext >&5
  2381. fi
  2382. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2383. ac_ext=c
  2384. ac_cpp='$CPP $CPPFLAGS'
  2385. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2386. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2387. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2388. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2389. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  2390. if test "${lt_cv_path_SED+set}" = set; then
  2391. echo $ECHO_N "(cached) $ECHO_C" >&6
  2392. else
  2393. # Loop through the user's path and test for sed and gsed.
  2394. # Then use that list of sed's as ones to test for truncation.
  2395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2396. for as_dir in $PATH
  2397. do
  2398. IFS=$as_save_IFS
  2399. test -z "$as_dir" && as_dir=.
  2400. for lt_ac_prog in sed gsed; do
  2401. for ac_exec_ext in '' $ac_executable_extensions; do
  2402. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  2403. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  2404. fi
  2405. done
  2406. done
  2407. done
  2408. lt_ac_max=0
  2409. lt_ac_count=0
  2410. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  2411. # along with /bin/sed that truncates output.
  2412. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  2413. test ! -f $lt_ac_sed && continue
  2414. cat /dev/null > conftest.in
  2415. lt_ac_count=0
  2416. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  2417. # Check for GNU sed and select it if it is found.
  2418. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  2419. lt_cv_path_SED=$lt_ac_sed
  2420. break
  2421. fi
  2422. while true; do
  2423. cat conftest.in conftest.in >conftest.tmp
  2424. mv conftest.tmp conftest.in
  2425. cp conftest.in conftest.nl
  2426. echo >>conftest.nl
  2427. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  2428. cmp -s conftest.out conftest.nl || break
  2429. # 10000 chars as input seems more than enough
  2430. test $lt_ac_count -gt 10 && break
  2431. lt_ac_count=`expr $lt_ac_count + 1`
  2432. if test $lt_ac_count -gt $lt_ac_max; then
  2433. lt_ac_max=$lt_ac_count
  2434. lt_cv_path_SED=$lt_ac_sed
  2435. fi
  2436. done
  2437. done
  2438. fi
  2439. SED=$lt_cv_path_SED
  2440. echo "$as_me:$LINENO: result: $SED" >&5
  2441. echo "${ECHO_T}$SED" >&6
  2442. echo "$as_me:$LINENO: checking for egrep" >&5
  2443. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2444. if test "${ac_cv_prog_egrep+set}" = set; then
  2445. echo $ECHO_N "(cached) $ECHO_C" >&6
  2446. else
  2447. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2448. then ac_cv_prog_egrep='grep -E'
  2449. else ac_cv_prog_egrep='egrep'
  2450. fi
  2451. fi
  2452. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2453. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2454. EGREP=$ac_cv_prog_egrep
  2455. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2456. if test "${with_gnu_ld+set}" = set; then
  2457. withval="$with_gnu_ld"
  2458. test "$withval" = no || with_gnu_ld=yes
  2459. else
  2460. with_gnu_ld=no
  2461. fi;
  2462. ac_prog=ld
  2463. if test "$GCC" = yes; then
  2464. # Check if gcc -print-prog-name=ld gives a path.
  2465. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  2466. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  2467. case $host in
  2468. *-*-mingw*)
  2469. # gcc leaves a trailing carriage return which upsets mingw
  2470. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2471. *)
  2472. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2473. esac
  2474. case $ac_prog in
  2475. # Accept absolute paths.
  2476. [\\/]* | ?:[\\/]*)
  2477. re_direlt='/[^/][^/]*/\.\./'
  2478. # Canonicalize the pathname of ld
  2479. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2480. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2481. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2482. done
  2483. test -z "$LD" && LD="$ac_prog"
  2484. ;;
  2485. "")
  2486. # If it fails, then pretend we aren't using GCC.
  2487. ac_prog=ld
  2488. ;;
  2489. *)
  2490. # If it is relative, then search for the first ld in PATH.
  2491. with_gnu_ld=unknown
  2492. ;;
  2493. esac
  2494. elif test "$with_gnu_ld" = yes; then
  2495. echo "$as_me:$LINENO: checking for GNU ld" >&5
  2496. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2497. else
  2498. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2499. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2500. fi
  2501. if test "${lt_cv_path_LD+set}" = set; then
  2502. echo $ECHO_N "(cached) $ECHO_C" >&6
  2503. else
  2504. if test -z "$LD"; then
  2505. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2506. for ac_dir in $PATH; do
  2507. IFS="$lt_save_ifs"
  2508. test -z "$ac_dir" && ac_dir=.
  2509. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2510. lt_cv_path_LD="$ac_dir/$ac_prog"
  2511. # Check to see if the program is GNU ld. I'd rather use --version,
  2512. # but apparently some GNU ld's only accept -v.
  2513. # Break only if it was the GNU/non-GNU ld that we prefer.
  2514. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2515. *GNU* | *'with BFD'*)
  2516. test "$with_gnu_ld" != no && break
  2517. ;;
  2518. *)
  2519. test "$with_gnu_ld" != yes && break
  2520. ;;
  2521. esac
  2522. fi
  2523. done
  2524. IFS="$lt_save_ifs"
  2525. else
  2526. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2527. fi
  2528. fi
  2529. LD="$lt_cv_path_LD"
  2530. if test -n "$LD"; then
  2531. echo "$as_me:$LINENO: result: $LD" >&5
  2532. echo "${ECHO_T}$LD" >&6
  2533. else
  2534. echo "$as_me:$LINENO: result: no" >&5
  2535. echo "${ECHO_T}no" >&6
  2536. fi
  2537. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  2538. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  2539. { (exit 1); exit 1; }; }
  2540. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  2541. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  2542. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  2543. echo $ECHO_N "(cached) $ECHO_C" >&6
  2544. else
  2545. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  2546. case `$LD -v 2>&1 </dev/null` in
  2547. *GNU* | *'with BFD'*)
  2548. lt_cv_prog_gnu_ld=yes
  2549. ;;
  2550. *)
  2551. lt_cv_prog_gnu_ld=no
  2552. ;;
  2553. esac
  2554. fi
  2555. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  2556. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  2557. with_gnu_ld=$lt_cv_prog_gnu_ld
  2558. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  2559. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  2560. if test "${lt_cv_ld_reload_flag+set}" = set; then
  2561. echo $ECHO_N "(cached) $ECHO_C" >&6
  2562. else
  2563. lt_cv_ld_reload_flag='-r'
  2564. fi
  2565. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  2566. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  2567. reload_flag=$lt_cv_ld_reload_flag
  2568. case $reload_flag in
  2569. "" | " "*) ;;
  2570. *) reload_flag=" $reload_flag" ;;
  2571. esac
  2572. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2573. case $host_os in
  2574. darwin*)
  2575. if test "$GCC" = yes; then
  2576. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  2577. else
  2578. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2579. fi
  2580. ;;
  2581. esac
  2582. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  2583. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  2584. if test "${lt_cv_path_NM+set}" = set; then
  2585. echo $ECHO_N "(cached) $ECHO_C" >&6
  2586. else
  2587. if test -n "$NM"; then
  2588. # Let the user override the test.
  2589. lt_cv_path_NM="$NM"
  2590. else
  2591. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2592. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2593. IFS="$lt_save_ifs"
  2594. test -z "$ac_dir" && ac_dir=.
  2595. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  2596. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2597. # Check to see if the nm accepts a BSD-compat flag.
  2598. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2599. # nm: unknown option "B" ignored
  2600. # Tru64's nm complains that /dev/null is an invalid object file
  2601. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2602. */dev/null* | *'Invalid file or object type'*)
  2603. lt_cv_path_NM="$tmp_nm -B"
  2604. break
  2605. ;;
  2606. *)
  2607. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2608. */dev/null*)
  2609. lt_cv_path_NM="$tmp_nm -p"
  2610. break
  2611. ;;
  2612. *)
  2613. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2614. continue # so that we can try to find one that supports BSD flags
  2615. ;;
  2616. esac
  2617. esac
  2618. fi
  2619. done
  2620. IFS="$lt_save_ifs"
  2621. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2622. fi
  2623. fi
  2624. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  2625. echo "${ECHO_T}$lt_cv_path_NM" >&6
  2626. NM="$lt_cv_path_NM"
  2627. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2628. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2629. LN_S=$as_ln_s
  2630. if test "$LN_S" = "ln -s"; then
  2631. echo "$as_me:$LINENO: result: yes" >&5
  2632. echo "${ECHO_T}yes" >&6
  2633. else
  2634. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2635. echo "${ECHO_T}no, using $LN_S" >&6
  2636. fi
  2637. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  2638. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  2639. if test "${lt_cv_deplibs_check_method+set}" = set; then
  2640. echo $ECHO_N "(cached) $ECHO_C" >&6
  2641. else
  2642. lt_cv_file_magic_cmd='$MAGIC_CMD'
  2643. lt_cv_file_magic_test_file=
  2644. lt_cv_deplibs_check_method='unknown'
  2645. # Need to set the preceding variable on all platforms that support
  2646. # interlibrary dependencies.
  2647. # 'none' -- dependencies not supported.
  2648. # `unknown' -- same as none, but documents that we really don't know.
  2649. # 'pass_all' -- all dependencies passed with no checks.
  2650. # 'test_compile' -- check by making test program.
  2651. # 'file_magic [[regex]]' -- check by looking for files in library path
  2652. # which responds to the $file_magic_cmd with a given extended regex.
  2653. # If you have `file' or equivalent on your system and you're not sure
  2654. # whether `pass_all' will *always* work, you probably want this one.
  2655. case $host_os in
  2656. aix4* | aix5*)
  2657. lt_cv_deplibs_check_method=pass_all
  2658. ;;
  2659. beos*)
  2660. lt_cv_deplibs_check_method=pass_all
  2661. ;;
  2662. bsdi[45]*)
  2663. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  2664. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2665. lt_cv_file_magic_test_file=/shlib/libc.so
  2666. ;;
  2667. cygwin*)
  2668. # func_win32_libid is a shell function defined in ltmain.sh
  2669. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2670. lt_cv_file_magic_cmd='func_win32_libid'
  2671. ;;
  2672. mingw* | pw32*)
  2673. # Base MSYS/MinGW do not provide the 'file' command needed by
  2674. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  2675. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2676. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2677. ;;
  2678. darwin* | rhapsody*)
  2679. lt_cv_deplibs_check_method=pass_all
  2680. ;;
  2681. freebsd* | kfreebsd*-gnu | dragonfly*)
  2682. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2683. case $host_cpu in
  2684. i*86 )
  2685. # Not sure whether the presence of OpenBSD here was a mistake.
  2686. # Let's accept both of them until this is cleared up.
  2687. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  2688. lt_cv_file_magic_cmd=/usr/bin/file
  2689. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2690. ;;
  2691. esac
  2692. else
  2693. lt_cv_deplibs_check_method=pass_all
  2694. fi
  2695. ;;
  2696. gnu*)
  2697. lt_cv_deplibs_check_method=pass_all
  2698. ;;
  2699. hpux10.20* | hpux11*)
  2700. lt_cv_file_magic_cmd=/usr/bin/file
  2701. case "$host_cpu" in
  2702. ia64*)
  2703. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  2704. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2705. ;;
  2706. hppa*64*)
  2707. 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]'
  2708. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2709. ;;
  2710. *)
  2711. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2712. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2713. ;;
  2714. esac
  2715. ;;
  2716. irix5* | irix6* | nonstopux*)
  2717. case $LD in
  2718. *-32|*"-32 ") libmagic=32-bit;;
  2719. *-n32|*"-n32 ") libmagic=N32;;
  2720. *-64|*"-64 ") libmagic=64-bit;;
  2721. *) libmagic=never-match;;
  2722. esac
  2723. lt_cv_deplibs_check_method=pass_all
  2724. ;;
  2725. # This must be Linux ELF.
  2726. linux*)
  2727. lt_cv_deplibs_check_method=pass_all
  2728. ;;
  2729. netbsd*)
  2730. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2731. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2732. else
  2733. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  2734. fi
  2735. ;;
  2736. newos6*)
  2737. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  2738. lt_cv_file_magic_cmd=/usr/bin/file
  2739. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2740. ;;
  2741. nto-qnx*)
  2742. lt_cv_deplibs_check_method=unknown
  2743. ;;
  2744. openbsd*)
  2745. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2746. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  2747. else
  2748. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2749. fi
  2750. ;;
  2751. osf3* | osf4* | osf5*)
  2752. lt_cv_deplibs_check_method=pass_all
  2753. ;;
  2754. sco3.2v5*)
  2755. lt_cv_deplibs_check_method=pass_all
  2756. ;;
  2757. solaris*)
  2758. lt_cv_deplibs_check_method=pass_all
  2759. ;;
  2760. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2761. case $host_vendor in
  2762. motorola)
  2763. 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]'
  2764. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2765. ;;
  2766. ncr)
  2767. lt_cv_deplibs_check_method=pass_all
  2768. ;;
  2769. sequent)
  2770. lt_cv_file_magic_cmd='/bin/file'
  2771. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  2772. ;;
  2773. sni)
  2774. lt_cv_file_magic_cmd='/bin/file'
  2775. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  2776. lt_cv_file_magic_test_file=/lib/libc.so
  2777. ;;
  2778. siemens)
  2779. lt_cv_deplibs_check_method=pass_all
  2780. ;;
  2781. esac
  2782. ;;
  2783. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  2784. lt_cv_deplibs_check_method=pass_all
  2785. ;;
  2786. esac
  2787. fi
  2788. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  2789. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  2790. file_magic_cmd=$lt_cv_file_magic_cmd
  2791. deplibs_check_method=$lt_cv_deplibs_check_method
  2792. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2793. # If no C compiler was specified, use CC.
  2794. LTCC=${LTCC-"$CC"}
  2795. # Allow CC to be a program name with arguments.
  2796. compiler=$CC
  2797. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  2798. if test "${enable_libtool_lock+set}" = set; then
  2799. enableval="$enable_libtool_lock"
  2800. fi;
  2801. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2802. # Some flags need to be propagated to the compiler or linker for good
  2803. # libtool support.
  2804. case $host in
  2805. ia64-*-hpux*)
  2806. # Find out which ABI we are using.
  2807. echo 'int i;' > conftest.$ac_ext
  2808. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2809. (eval $ac_compile) 2>&5
  2810. ac_status=$?
  2811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2812. (exit $ac_status); }; then
  2813. case `/usr/bin/file conftest.$ac_objext` in
  2814. *ELF-32*)
  2815. HPUX_IA64_MODE="32"
  2816. ;;
  2817. *ELF-64*)
  2818. HPUX_IA64_MODE="64"
  2819. ;;
  2820. esac
  2821. fi
  2822. rm -rf conftest*
  2823. ;;
  2824. *-*-irix6*)
  2825. # Find out which ABI we are using.
  2826. echo '#line 3138 "configure"' > conftest.$ac_ext
  2827. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2828. (eval $ac_compile) 2>&5
  2829. ac_status=$?
  2830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2831. (exit $ac_status); }; then
  2832. if test "$lt_cv_prog_gnu_ld" = yes; then
  2833. case `/usr/bin/file conftest.$ac_objext` in
  2834. *32-bit*)
  2835. LD="${LD-ld} -melf32bsmip"
  2836. ;;
  2837. *N32*)
  2838. LD="${LD-ld} -melf32bmipn32"
  2839. ;;
  2840. *64-bit*)
  2841. LD="${LD-ld} -melf64bmip"
  2842. ;;
  2843. esac
  2844. else
  2845. case `/usr/bin/file conftest.$ac_objext` in
  2846. *32-bit*)
  2847. LD="${LD-ld} -32"
  2848. ;;
  2849. *N32*)
  2850. LD="${LD-ld} -n32"
  2851. ;;
  2852. *64-bit*)
  2853. LD="${LD-ld} -64"
  2854. ;;
  2855. esac
  2856. fi
  2857. fi
  2858. rm -rf conftest*
  2859. ;;
  2860. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  2861. # Find out which ABI we are using.
  2862. echo 'int i;' > conftest.$ac_ext
  2863. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2864. (eval $ac_compile) 2>&5
  2865. ac_status=$?
  2866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2867. (exit $ac_status); }; then
  2868. case "`/usr/bin/file conftest.o`" in
  2869. *32-bit*)
  2870. case $host in
  2871. x86_64-*linux*)
  2872. LD="${LD-ld} -m elf_i386"
  2873. ;;
  2874. ppc64-*linux*|powerpc64-*linux*)
  2875. LD="${LD-ld} -m elf32ppclinux"
  2876. ;;
  2877. s390x-*linux*)
  2878. LD="${LD-ld} -m elf_s390"
  2879. ;;
  2880. sparc64-*linux*)
  2881. LD="${LD-ld} -m elf32_sparc"
  2882. ;;
  2883. esac
  2884. ;;
  2885. *64-bit*)
  2886. case $host in
  2887. x86_64-*linux*)
  2888. LD="${LD-ld} -m elf_x86_64"
  2889. ;;
  2890. ppc*-*linux*|powerpc*-*linux*)
  2891. LD="${LD-ld} -m elf64ppc"
  2892. ;;
  2893. s390*-*linux*)
  2894. LD="${LD-ld} -m elf64_s390"
  2895. ;;
  2896. sparc*-*linux*)
  2897. LD="${LD-ld} -m elf64_sparc"
  2898. ;;
  2899. esac
  2900. ;;
  2901. esac
  2902. fi
  2903. rm -rf conftest*
  2904. ;;
  2905. *-*-sco3.2v5*)
  2906. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2907. SAVE_CFLAGS="$CFLAGS"
  2908. CFLAGS="$CFLAGS -belf"
  2909. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  2910. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  2911. if test "${lt_cv_cc_needs_belf+set}" = set; then
  2912. echo $ECHO_N "(cached) $ECHO_C" >&6
  2913. else
  2914. ac_ext=c
  2915. ac_cpp='$CPP $CPPFLAGS'
  2916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2919. cat >conftest.$ac_ext <<_ACEOF
  2920. /* confdefs.h. */
  2921. _ACEOF
  2922. cat confdefs.h >>conftest.$ac_ext
  2923. cat >>conftest.$ac_ext <<_ACEOF
  2924. /* end confdefs.h. */
  2925. int
  2926. main ()
  2927. {
  2928. ;
  2929. return 0;
  2930. }
  2931. _ACEOF
  2932. rm -f conftest.$ac_objext conftest$ac_exeext
  2933. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2934. (eval $ac_link) 2>conftest.er1
  2935. ac_status=$?
  2936. grep -v '^ *+' conftest.er1 >conftest.err
  2937. rm -f conftest.er1
  2938. cat conftest.err >&5
  2939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2940. (exit $ac_status); } &&
  2941. { ac_try='test -z "$ac_c_werror_flag"
  2942. || test ! -s conftest.err'
  2943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2944. (eval $ac_try) 2>&5
  2945. ac_status=$?
  2946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947. (exit $ac_status); }; } &&
  2948. { ac_try='test -s conftest$ac_exeext'
  2949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2950. (eval $ac_try) 2>&5
  2951. ac_status=$?
  2952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2953. (exit $ac_status); }; }; then
  2954. lt_cv_cc_needs_belf=yes
  2955. else
  2956. echo "$as_me: failed program was:" >&5
  2957. sed 's/^/| /' conftest.$ac_ext >&5
  2958. lt_cv_cc_needs_belf=no
  2959. fi
  2960. rm -f conftest.err conftest.$ac_objext \
  2961. conftest$ac_exeext conftest.$ac_ext
  2962. ac_ext=c
  2963. ac_cpp='$CPP $CPPFLAGS'
  2964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2967. fi
  2968. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  2969. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  2970. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2971. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2972. CFLAGS="$SAVE_CFLAGS"
  2973. fi
  2974. ;;
  2975. esac
  2976. need_locks="$enable_libtool_lock"
  2977. ac_ext=c
  2978. ac_cpp='$CPP $CPPFLAGS'
  2979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2982. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2983. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2984. # On Suns, sometimes $CPP names a directory.
  2985. if test -n "$CPP" && test -d "$CPP"; then
  2986. CPP=
  2987. fi
  2988. if test -z "$CPP"; then
  2989. if test "${ac_cv_prog_CPP+set}" = set; then
  2990. echo $ECHO_N "(cached) $ECHO_C" >&6
  2991. else
  2992. # Double quotes because CPP needs to be expanded
  2993. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2994. do
  2995. ac_preproc_ok=false
  2996. for ac_c_preproc_warn_flag in '' yes
  2997. do
  2998. # Use a header file that comes with gcc, so configuring glibc
  2999. # with a fresh cross-compiler works.
  3000. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3001. # <limits.h> exists even on freestanding compilers.
  3002. # On the NeXT, cc -E runs the code through the compiler's parser,
  3003. # not just through cpp. "Syntax error" is here to catch this case.
  3004. cat >conftest.$ac_ext <<_ACEOF
  3005. /* confdefs.h. */
  3006. _ACEOF
  3007. cat confdefs.h >>conftest.$ac_ext
  3008. cat >>conftest.$ac_ext <<_ACEOF
  3009. /* end confdefs.h. */
  3010. #ifdef __STDC__
  3011. # include <limits.h>
  3012. #else
  3013. # include <assert.h>
  3014. #endif
  3015. Syntax error
  3016. _ACEOF
  3017. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3018. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3019. ac_status=$?
  3020. grep -v '^ *+' conftest.er1 >conftest.err
  3021. rm -f conftest.er1
  3022. cat conftest.err >&5
  3023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3024. (exit $ac_status); } >/dev/null; then
  3025. if test -s conftest.err; then
  3026. ac_cpp_err=$ac_c_preproc_warn_flag
  3027. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3028. else
  3029. ac_cpp_err=
  3030. fi
  3031. else
  3032. ac_cpp_err=yes
  3033. fi
  3034. if test -z "$ac_cpp_err"; then
  3035. :
  3036. else
  3037. echo "$as_me: failed program was:" >&5
  3038. sed 's/^/| /' conftest.$ac_ext >&5
  3039. # Broken: fails on valid input.
  3040. continue
  3041. fi
  3042. rm -f conftest.err conftest.$ac_ext
  3043. # OK, works on sane cases. Now check whether non-existent headers
  3044. # can be detected and how.
  3045. cat >conftest.$ac_ext <<_ACEOF
  3046. /* confdefs.h. */
  3047. _ACEOF
  3048. cat confdefs.h >>conftest.$ac_ext
  3049. cat >>conftest.$ac_ext <<_ACEOF
  3050. /* end confdefs.h. */
  3051. #include <ac_nonexistent.h>
  3052. _ACEOF
  3053. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3054. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3055. ac_status=$?
  3056. grep -v '^ *+' conftest.er1 >conftest.err
  3057. rm -f conftest.er1
  3058. cat conftest.err >&5
  3059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3060. (exit $ac_status); } >/dev/null; then
  3061. if test -s conftest.err; then
  3062. ac_cpp_err=$ac_c_preproc_warn_flag
  3063. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3064. else
  3065. ac_cpp_err=
  3066. fi
  3067. else
  3068. ac_cpp_err=yes
  3069. fi
  3070. if test -z "$ac_cpp_err"; then
  3071. # Broken: success on invalid input.
  3072. continue
  3073. else
  3074. echo "$as_me: failed program was:" >&5
  3075. sed 's/^/| /' conftest.$ac_ext >&5
  3076. # Passes both tests.
  3077. ac_preproc_ok=:
  3078. break
  3079. fi
  3080. rm -f conftest.err conftest.$ac_ext
  3081. done
  3082. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3083. rm -f conftest.err conftest.$ac_ext
  3084. if $ac_preproc_ok; then
  3085. break
  3086. fi
  3087. done
  3088. ac_cv_prog_CPP=$CPP
  3089. fi
  3090. CPP=$ac_cv_prog_CPP
  3091. else
  3092. ac_cv_prog_CPP=$CPP
  3093. fi
  3094. echo "$as_me:$LINENO: result: $CPP" >&5
  3095. echo "${ECHO_T}$CPP" >&6
  3096. ac_preproc_ok=false
  3097. for ac_c_preproc_warn_flag in '' yes
  3098. do
  3099. # Use a header file that comes with gcc, so configuring glibc
  3100. # with a fresh cross-compiler works.
  3101. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3102. # <limits.h> exists even on freestanding compilers.
  3103. # On the NeXT, cc -E runs the code through the compiler's parser,
  3104. # not just through cpp. "Syntax error" is here to catch this case.
  3105. cat >conftest.$ac_ext <<_ACEOF
  3106. /* confdefs.h. */
  3107. _ACEOF
  3108. cat confdefs.h >>conftest.$ac_ext
  3109. cat >>conftest.$ac_ext <<_ACEOF
  3110. /* end confdefs.h. */
  3111. #ifdef __STDC__
  3112. # include <limits.h>
  3113. #else
  3114. # include <assert.h>
  3115. #endif
  3116. Syntax error
  3117. _ACEOF
  3118. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3119. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3120. ac_status=$?
  3121. grep -v '^ *+' conftest.er1 >conftest.err
  3122. rm -f conftest.er1
  3123. cat conftest.err >&5
  3124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3125. (exit $ac_status); } >/dev/null; then
  3126. if test -s conftest.err; then
  3127. ac_cpp_err=$ac_c_preproc_warn_flag
  3128. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3129. else
  3130. ac_cpp_err=
  3131. fi
  3132. else
  3133. ac_cpp_err=yes
  3134. fi
  3135. if test -z "$ac_cpp_err"; then
  3136. :
  3137. else
  3138. echo "$as_me: failed program was:" >&5
  3139. sed 's/^/| /' conftest.$ac_ext >&5
  3140. # Broken: fails on valid input.
  3141. continue
  3142. fi
  3143. rm -f conftest.err conftest.$ac_ext
  3144. # OK, works on sane cases. Now check whether non-existent headers
  3145. # can be detected and how.
  3146. cat >conftest.$ac_ext <<_ACEOF
  3147. /* confdefs.h. */
  3148. _ACEOF
  3149. cat confdefs.h >>conftest.$ac_ext
  3150. cat >>conftest.$ac_ext <<_ACEOF
  3151. /* end confdefs.h. */
  3152. #include <ac_nonexistent.h>
  3153. _ACEOF
  3154. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3155. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3156. ac_status=$?
  3157. grep -v '^ *+' conftest.er1 >conftest.err
  3158. rm -f conftest.er1
  3159. cat conftest.err >&5
  3160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3161. (exit $ac_status); } >/dev/null; then
  3162. if test -s conftest.err; then
  3163. ac_cpp_err=$ac_c_preproc_warn_flag
  3164. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3165. else
  3166. ac_cpp_err=
  3167. fi
  3168. else
  3169. ac_cpp_err=yes
  3170. fi
  3171. if test -z "$ac_cpp_err"; then
  3172. # Broken: success on invalid input.
  3173. continue
  3174. else
  3175. echo "$as_me: failed program was:" >&5
  3176. sed 's/^/| /' conftest.$ac_ext >&5
  3177. # Passes both tests.
  3178. ac_preproc_ok=:
  3179. break
  3180. fi
  3181. rm -f conftest.err conftest.$ac_ext
  3182. done
  3183. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3184. rm -f conftest.err conftest.$ac_ext
  3185. if $ac_preproc_ok; then
  3186. :
  3187. else
  3188. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3189. See \`config.log' for more details." >&5
  3190. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3191. See \`config.log' for more details." >&2;}
  3192. { (exit 1); exit 1; }; }
  3193. fi
  3194. ac_ext=c
  3195. ac_cpp='$CPP $CPPFLAGS'
  3196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3199. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3200. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3201. if test "${ac_cv_header_stdc+set}" = set; then
  3202. echo $ECHO_N "(cached) $ECHO_C" >&6
  3203. else
  3204. cat >conftest.$ac_ext <<_ACEOF
  3205. /* confdefs.h. */
  3206. _ACEOF
  3207. cat confdefs.h >>conftest.$ac_ext
  3208. cat >>conftest.$ac_ext <<_ACEOF
  3209. /* end confdefs.h. */
  3210. #include <stdlib.h>
  3211. #include <stdarg.h>
  3212. #include <string.h>
  3213. #include <float.h>
  3214. int
  3215. main ()
  3216. {
  3217. ;
  3218. return 0;
  3219. }
  3220. _ACEOF
  3221. rm -f conftest.$ac_objext
  3222. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3223. (eval $ac_compile) 2>conftest.er1
  3224. ac_status=$?
  3225. grep -v '^ *+' conftest.er1 >conftest.err
  3226. rm -f conftest.er1
  3227. cat conftest.err >&5
  3228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3229. (exit $ac_status); } &&
  3230. { ac_try='test -z "$ac_c_werror_flag"
  3231. || test ! -s conftest.err'
  3232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3233. (eval $ac_try) 2>&5
  3234. ac_status=$?
  3235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3236. (exit $ac_status); }; } &&
  3237. { ac_try='test -s conftest.$ac_objext'
  3238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3239. (eval $ac_try) 2>&5
  3240. ac_status=$?
  3241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3242. (exit $ac_status); }; }; then
  3243. ac_cv_header_stdc=yes
  3244. else
  3245. echo "$as_me: failed program was:" >&5
  3246. sed 's/^/| /' conftest.$ac_ext >&5
  3247. ac_cv_header_stdc=no
  3248. fi
  3249. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3250. if test $ac_cv_header_stdc = yes; then
  3251. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3252. cat >conftest.$ac_ext <<_ACEOF
  3253. /* confdefs.h. */
  3254. _ACEOF
  3255. cat confdefs.h >>conftest.$ac_ext
  3256. cat >>conftest.$ac_ext <<_ACEOF
  3257. /* end confdefs.h. */
  3258. #include <string.h>
  3259. _ACEOF
  3260. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3261. $EGREP "memchr" >/dev/null 2>&1; then
  3262. :
  3263. else
  3264. ac_cv_header_stdc=no
  3265. fi
  3266. rm -f conftest*
  3267. fi
  3268. if test $ac_cv_header_stdc = yes; then
  3269. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3270. cat >conftest.$ac_ext <<_ACEOF
  3271. /* confdefs.h. */
  3272. _ACEOF
  3273. cat confdefs.h >>conftest.$ac_ext
  3274. cat >>conftest.$ac_ext <<_ACEOF
  3275. /* end confdefs.h. */
  3276. #include <stdlib.h>
  3277. _ACEOF
  3278. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3279. $EGREP "free" >/dev/null 2>&1; then
  3280. :
  3281. else
  3282. ac_cv_header_stdc=no
  3283. fi
  3284. rm -f conftest*
  3285. fi
  3286. if test $ac_cv_header_stdc = yes; then
  3287. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3288. if test "$cross_compiling" = yes; then
  3289. :
  3290. else
  3291. cat >conftest.$ac_ext <<_ACEOF
  3292. /* confdefs.h. */
  3293. _ACEOF
  3294. cat confdefs.h >>conftest.$ac_ext
  3295. cat >>conftest.$ac_ext <<_ACEOF
  3296. /* end confdefs.h. */
  3297. #include <ctype.h>
  3298. #if ((' ' & 0x0FF) == 0x020)
  3299. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3300. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3301. #else
  3302. # define ISLOWER(c) \
  3303. (('a' <= (c) && (c) <= 'i') \
  3304. || ('j' <= (c) && (c) <= 'r') \
  3305. || ('s' <= (c) && (c) <= 'z'))
  3306. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3307. #endif
  3308. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3309. int
  3310. main ()
  3311. {
  3312. int i;
  3313. for (i = 0; i < 256; i++)
  3314. if (XOR (islower (i), ISLOWER (i))
  3315. || toupper (i) != TOUPPER (i))
  3316. exit(2);
  3317. exit (0);
  3318. }
  3319. _ACEOF
  3320. rm -f conftest$ac_exeext
  3321. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3322. (eval $ac_link) 2>&5
  3323. ac_status=$?
  3324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3325. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3327. (eval $ac_try) 2>&5
  3328. ac_status=$?
  3329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3330. (exit $ac_status); }; }; then
  3331. :
  3332. else
  3333. echo "$as_me: program exited with status $ac_status" >&5
  3334. echo "$as_me: failed program was:" >&5
  3335. sed 's/^/| /' conftest.$ac_ext >&5
  3336. ( exit $ac_status )
  3337. ac_cv_header_stdc=no
  3338. fi
  3339. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3340. fi
  3341. fi
  3342. fi
  3343. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3344. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3345. if test $ac_cv_header_stdc = yes; then
  3346. cat >>confdefs.h <<\_ACEOF
  3347. #define STDC_HEADERS 1
  3348. _ACEOF
  3349. fi
  3350. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3351. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3352. inttypes.h stdint.h unistd.h
  3353. do
  3354. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3355. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3356. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3357. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3358. echo $ECHO_N "(cached) $ECHO_C" >&6
  3359. else
  3360. cat >conftest.$ac_ext <<_ACEOF
  3361. /* confdefs.h. */
  3362. _ACEOF
  3363. cat confdefs.h >>conftest.$ac_ext
  3364. cat >>conftest.$ac_ext <<_ACEOF
  3365. /* end confdefs.h. */
  3366. $ac_includes_default
  3367. #include <$ac_header>
  3368. _ACEOF
  3369. rm -f conftest.$ac_objext
  3370. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3371. (eval $ac_compile) 2>conftest.er1
  3372. ac_status=$?
  3373. grep -v '^ *+' conftest.er1 >conftest.err
  3374. rm -f conftest.er1
  3375. cat conftest.err >&5
  3376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3377. (exit $ac_status); } &&
  3378. { ac_try='test -z "$ac_c_werror_flag"
  3379. || test ! -s conftest.err'
  3380. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3381. (eval $ac_try) 2>&5
  3382. ac_status=$?
  3383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3384. (exit $ac_status); }; } &&
  3385. { ac_try='test -s conftest.$ac_objext'
  3386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3387. (eval $ac_try) 2>&5
  3388. ac_status=$?
  3389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3390. (exit $ac_status); }; }; then
  3391. eval "$as_ac_Header=yes"
  3392. else
  3393. echo "$as_me: failed program was:" >&5
  3394. sed 's/^/| /' conftest.$ac_ext >&5
  3395. eval "$as_ac_Header=no"
  3396. fi
  3397. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3398. fi
  3399. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3400. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3401. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3402. cat >>confdefs.h <<_ACEOF
  3403. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3404. _ACEOF
  3405. fi
  3406. done
  3407. for ac_header in dlfcn.h
  3408. do
  3409. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3410. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3411. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3412. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3413. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3414. echo $ECHO_N "(cached) $ECHO_C" >&6
  3415. fi
  3416. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3417. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3418. else
  3419. # Is the header compilable?
  3420. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3421. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3422. cat >conftest.$ac_ext <<_ACEOF
  3423. /* confdefs.h. */
  3424. _ACEOF
  3425. cat confdefs.h >>conftest.$ac_ext
  3426. cat >>conftest.$ac_ext <<_ACEOF
  3427. /* end confdefs.h. */
  3428. $ac_includes_default
  3429. #include <$ac_header>
  3430. _ACEOF
  3431. rm -f conftest.$ac_objext
  3432. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3433. (eval $ac_compile) 2>conftest.er1
  3434. ac_status=$?
  3435. grep -v '^ *+' conftest.er1 >conftest.err
  3436. rm -f conftest.er1
  3437. cat conftest.err >&5
  3438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3439. (exit $ac_status); } &&
  3440. { ac_try='test -z "$ac_c_werror_flag"
  3441. || test ! -s conftest.err'
  3442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3443. (eval $ac_try) 2>&5
  3444. ac_status=$?
  3445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3446. (exit $ac_status); }; } &&
  3447. { ac_try='test -s conftest.$ac_objext'
  3448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3449. (eval $ac_try) 2>&5
  3450. ac_status=$?
  3451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3452. (exit $ac_status); }; }; then
  3453. ac_header_compiler=yes
  3454. else
  3455. echo "$as_me: failed program was:" >&5
  3456. sed 's/^/| /' conftest.$ac_ext >&5
  3457. ac_header_compiler=no
  3458. fi
  3459. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3460. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3461. echo "${ECHO_T}$ac_header_compiler" >&6
  3462. # Is the header present?
  3463. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3464. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3465. cat >conftest.$ac_ext <<_ACEOF
  3466. /* confdefs.h. */
  3467. _ACEOF
  3468. cat confdefs.h >>conftest.$ac_ext
  3469. cat >>conftest.$ac_ext <<_ACEOF
  3470. /* end confdefs.h. */
  3471. #include <$ac_header>
  3472. _ACEOF
  3473. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3474. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3475. ac_status=$?
  3476. grep -v '^ *+' conftest.er1 >conftest.err
  3477. rm -f conftest.er1
  3478. cat conftest.err >&5
  3479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3480. (exit $ac_status); } >/dev/null; then
  3481. if test -s conftest.err; then
  3482. ac_cpp_err=$ac_c_preproc_warn_flag
  3483. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3484. else
  3485. ac_cpp_err=
  3486. fi
  3487. else
  3488. ac_cpp_err=yes
  3489. fi
  3490. if test -z "$ac_cpp_err"; then
  3491. ac_header_preproc=yes
  3492. else
  3493. echo "$as_me: failed program was:" >&5
  3494. sed 's/^/| /' conftest.$ac_ext >&5
  3495. ac_header_preproc=no
  3496. fi
  3497. rm -f conftest.err conftest.$ac_ext
  3498. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3499. echo "${ECHO_T}$ac_header_preproc" >&6
  3500. # So? What about this header?
  3501. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3502. yes:no: )
  3503. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3504. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3505. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3506. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3507. ac_header_preproc=yes
  3508. ;;
  3509. no:yes:* )
  3510. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3511. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3512. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3513. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3514. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3515. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3516. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3517. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3518. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3519. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3520. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3521. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3522. (
  3523. cat <<\_ASBOX
  3524. ## ------------------------------------------ ##
  3525. ## Report this to the AC_PACKAGE_NAME lists. ##
  3526. ## ------------------------------------------ ##
  3527. _ASBOX
  3528. ) |
  3529. sed "s/^/$as_me: WARNING: /" >&2
  3530. ;;
  3531. esac
  3532. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3533. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3534. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3535. echo $ECHO_N "(cached) $ECHO_C" >&6
  3536. else
  3537. eval "$as_ac_Header=\$ac_header_preproc"
  3538. fi
  3539. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3540. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3541. fi
  3542. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3543. cat >>confdefs.h <<_ACEOF
  3544. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3545. _ACEOF
  3546. fi
  3547. done
  3548. ac_ext=cc
  3549. ac_cpp='$CXXCPP $CPPFLAGS'
  3550. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3551. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3552. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3553. if test -n "$ac_tool_prefix"; then
  3554. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3555. do
  3556. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3557. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3558. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3559. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3560. if test "${ac_cv_prog_CXX+set}" = set; then
  3561. echo $ECHO_N "(cached) $ECHO_C" >&6
  3562. else
  3563. if test -n "$CXX"; then
  3564. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3565. else
  3566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3567. for as_dir in $PATH
  3568. do
  3569. IFS=$as_save_IFS
  3570. test -z "$as_dir" && as_dir=.
  3571. for ac_exec_ext in '' $ac_executable_extensions; do
  3572. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3573. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3574. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3575. break 2
  3576. fi
  3577. done
  3578. done
  3579. fi
  3580. fi
  3581. CXX=$ac_cv_prog_CXX
  3582. if test -n "$CXX"; then
  3583. echo "$as_me:$LINENO: result: $CXX" >&5
  3584. echo "${ECHO_T}$CXX" >&6
  3585. else
  3586. echo "$as_me:$LINENO: result: no" >&5
  3587. echo "${ECHO_T}no" >&6
  3588. fi
  3589. test -n "$CXX" && break
  3590. done
  3591. fi
  3592. if test -z "$CXX"; then
  3593. ac_ct_CXX=$CXX
  3594. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3595. do
  3596. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3597. set dummy $ac_prog; ac_word=$2
  3598. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3599. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3600. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3601. echo $ECHO_N "(cached) $ECHO_C" >&6
  3602. else
  3603. if test -n "$ac_ct_CXX"; then
  3604. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3605. else
  3606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3607. for as_dir in $PATH
  3608. do
  3609. IFS=$as_save_IFS
  3610. test -z "$as_dir" && as_dir=.
  3611. for ac_exec_ext in '' $ac_executable_extensions; do
  3612. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3613. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3614. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3615. break 2
  3616. fi
  3617. done
  3618. done
  3619. fi
  3620. fi
  3621. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3622. if test -n "$ac_ct_CXX"; then
  3623. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3624. echo "${ECHO_T}$ac_ct_CXX" >&6
  3625. else
  3626. echo "$as_me:$LINENO: result: no" >&5
  3627. echo "${ECHO_T}no" >&6
  3628. fi
  3629. test -n "$ac_ct_CXX" && break
  3630. done
  3631. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  3632. CXX=$ac_ct_CXX
  3633. fi
  3634. # Provide some information about the compiler.
  3635. echo "$as_me:$LINENO:" \
  3636. "checking for C++ compiler version" >&5
  3637. ac_compiler=`set X $ac_compile; echo $2`
  3638. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3639. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3640. ac_status=$?
  3641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3642. (exit $ac_status); }
  3643. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3644. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3645. ac_status=$?
  3646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647. (exit $ac_status); }
  3648. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3649. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3650. ac_status=$?
  3651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3652. (exit $ac_status); }
  3653. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3654. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  3655. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3656. echo $ECHO_N "(cached) $ECHO_C" >&6
  3657. else
  3658. cat >conftest.$ac_ext <<_ACEOF
  3659. /* confdefs.h. */
  3660. _ACEOF
  3661. cat confdefs.h >>conftest.$ac_ext
  3662. cat >>conftest.$ac_ext <<_ACEOF
  3663. /* end confdefs.h. */
  3664. int
  3665. main ()
  3666. {
  3667. #ifndef __GNUC__
  3668. choke me
  3669. #endif
  3670. ;
  3671. return 0;
  3672. }
  3673. _ACEOF
  3674. rm -f conftest.$ac_objext
  3675. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3676. (eval $ac_compile) 2>conftest.er1
  3677. ac_status=$?
  3678. grep -v '^ *+' conftest.er1 >conftest.err
  3679. rm -f conftest.er1
  3680. cat conftest.err >&5
  3681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3682. (exit $ac_status); } &&
  3683. { ac_try='test -z "$ac_cxx_werror_flag"
  3684. || test ! -s conftest.err'
  3685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3686. (eval $ac_try) 2>&5
  3687. ac_status=$?
  3688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3689. (exit $ac_status); }; } &&
  3690. { ac_try='test -s conftest.$ac_objext'
  3691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3692. (eval $ac_try) 2>&5
  3693. ac_status=$?
  3694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3695. (exit $ac_status); }; }; then
  3696. ac_compiler_gnu=yes
  3697. else
  3698. echo "$as_me: failed program was:" >&5
  3699. sed 's/^/| /' conftest.$ac_ext >&5
  3700. ac_compiler_gnu=no
  3701. fi
  3702. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3703. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3704. fi
  3705. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3706. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  3707. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3708. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3709. ac_save_CXXFLAGS=$CXXFLAGS
  3710. CXXFLAGS="-g"
  3711. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3712. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  3713. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3714. echo $ECHO_N "(cached) $ECHO_C" >&6
  3715. else
  3716. cat >conftest.$ac_ext <<_ACEOF
  3717. /* confdefs.h. */
  3718. _ACEOF
  3719. cat confdefs.h >>conftest.$ac_ext
  3720. cat >>conftest.$ac_ext <<_ACEOF
  3721. /* end confdefs.h. */
  3722. int
  3723. main ()
  3724. {
  3725. ;
  3726. return 0;
  3727. }
  3728. _ACEOF
  3729. rm -f conftest.$ac_objext
  3730. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3731. (eval $ac_compile) 2>conftest.er1
  3732. ac_status=$?
  3733. grep -v '^ *+' conftest.er1 >conftest.err
  3734. rm -f conftest.er1
  3735. cat conftest.err >&5
  3736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3737. (exit $ac_status); } &&
  3738. { ac_try='test -z "$ac_cxx_werror_flag"
  3739. || test ! -s conftest.err'
  3740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3741. (eval $ac_try) 2>&5
  3742. ac_status=$?
  3743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3744. (exit $ac_status); }; } &&
  3745. { ac_try='test -s conftest.$ac_objext'
  3746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3747. (eval $ac_try) 2>&5
  3748. ac_status=$?
  3749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3750. (exit $ac_status); }; }; then
  3751. ac_cv_prog_cxx_g=yes
  3752. else
  3753. echo "$as_me: failed program was:" >&5
  3754. sed 's/^/| /' conftest.$ac_ext >&5
  3755. ac_cv_prog_cxx_g=no
  3756. fi
  3757. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3758. fi
  3759. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3760. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  3761. if test "$ac_test_CXXFLAGS" = set; then
  3762. CXXFLAGS=$ac_save_CXXFLAGS
  3763. elif test $ac_cv_prog_cxx_g = yes; then
  3764. if test "$GXX" = yes; then
  3765. CXXFLAGS="-g -O2"
  3766. else
  3767. CXXFLAGS="-g"
  3768. fi
  3769. else
  3770. if test "$GXX" = yes; then
  3771. CXXFLAGS="-O2"
  3772. else
  3773. CXXFLAGS=
  3774. fi
  3775. fi
  3776. for ac_declaration in \
  3777. '' \
  3778. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3779. 'extern "C" void std::exit (int); using std::exit;' \
  3780. 'extern "C" void exit (int) throw ();' \
  3781. 'extern "C" void exit (int);' \
  3782. 'void exit (int);'
  3783. do
  3784. cat >conftest.$ac_ext <<_ACEOF
  3785. /* confdefs.h. */
  3786. _ACEOF
  3787. cat confdefs.h >>conftest.$ac_ext
  3788. cat >>conftest.$ac_ext <<_ACEOF
  3789. /* end confdefs.h. */
  3790. $ac_declaration
  3791. #include <stdlib.h>
  3792. int
  3793. main ()
  3794. {
  3795. exit (42);
  3796. ;
  3797. return 0;
  3798. }
  3799. _ACEOF
  3800. rm -f conftest.$ac_objext
  3801. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3802. (eval $ac_compile) 2>conftest.er1
  3803. ac_status=$?
  3804. grep -v '^ *+' conftest.er1 >conftest.err
  3805. rm -f conftest.er1
  3806. cat conftest.err >&5
  3807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3808. (exit $ac_status); } &&
  3809. { ac_try='test -z "$ac_cxx_werror_flag"
  3810. || test ! -s conftest.err'
  3811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3812. (eval $ac_try) 2>&5
  3813. ac_status=$?
  3814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3815. (exit $ac_status); }; } &&
  3816. { ac_try='test -s conftest.$ac_objext'
  3817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3818. (eval $ac_try) 2>&5
  3819. ac_status=$?
  3820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3821. (exit $ac_status); }; }; then
  3822. :
  3823. else
  3824. echo "$as_me: failed program was:" >&5
  3825. sed 's/^/| /' conftest.$ac_ext >&5
  3826. continue
  3827. fi
  3828. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3829. cat >conftest.$ac_ext <<_ACEOF
  3830. /* confdefs.h. */
  3831. _ACEOF
  3832. cat confdefs.h >>conftest.$ac_ext
  3833. cat >>conftest.$ac_ext <<_ACEOF
  3834. /* end confdefs.h. */
  3835. $ac_declaration
  3836. int
  3837. main ()
  3838. {
  3839. exit (42);
  3840. ;
  3841. return 0;
  3842. }
  3843. _ACEOF
  3844. rm -f conftest.$ac_objext
  3845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3846. (eval $ac_compile) 2>conftest.er1
  3847. ac_status=$?
  3848. grep -v '^ *+' conftest.er1 >conftest.err
  3849. rm -f conftest.er1
  3850. cat conftest.err >&5
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); } &&
  3853. { ac_try='test -z "$ac_cxx_werror_flag"
  3854. || test ! -s conftest.err'
  3855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3856. (eval $ac_try) 2>&5
  3857. ac_status=$?
  3858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3859. (exit $ac_status); }; } &&
  3860. { ac_try='test -s conftest.$ac_objext'
  3861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3862. (eval $ac_try) 2>&5
  3863. ac_status=$?
  3864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3865. (exit $ac_status); }; }; then
  3866. break
  3867. else
  3868. echo "$as_me: failed program was:" >&5
  3869. sed 's/^/| /' conftest.$ac_ext >&5
  3870. fi
  3871. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3872. done
  3873. rm -f conftest*
  3874. if test -n "$ac_declaration"; then
  3875. echo '#ifdef __cplusplus' >>confdefs.h
  3876. echo $ac_declaration >>confdefs.h
  3877. echo '#endif' >>confdefs.h
  3878. fi
  3879. ac_ext=cc
  3880. ac_cpp='$CXXCPP $CPPFLAGS'
  3881. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3882. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3883. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3884. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3885. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3886. (test "X$CXX" != "Xg++"))) ; then
  3887. ac_ext=cc
  3888. ac_cpp='$CXXCPP $CPPFLAGS'
  3889. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3890. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3891. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3892. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  3893. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  3894. if test -z "$CXXCPP"; then
  3895. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  3896. echo $ECHO_N "(cached) $ECHO_C" >&6
  3897. else
  3898. # Double quotes because CXXCPP needs to be expanded
  3899. for CXXCPP in "$CXX -E" "/lib/cpp"
  3900. do
  3901. ac_preproc_ok=false
  3902. for ac_cxx_preproc_warn_flag in '' yes
  3903. do
  3904. # Use a header file that comes with gcc, so configuring glibc
  3905. # with a fresh cross-compiler works.
  3906. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3907. # <limits.h> exists even on freestanding compilers.
  3908. # On the NeXT, cc -E runs the code through the compiler's parser,
  3909. # not just through cpp. "Syntax error" is here to catch this case.
  3910. cat >conftest.$ac_ext <<_ACEOF
  3911. /* confdefs.h. */
  3912. _ACEOF
  3913. cat confdefs.h >>conftest.$ac_ext
  3914. cat >>conftest.$ac_ext <<_ACEOF
  3915. /* end confdefs.h. */
  3916. #ifdef __STDC__
  3917. # include <limits.h>
  3918. #else
  3919. # include <assert.h>
  3920. #endif
  3921. Syntax error
  3922. _ACEOF
  3923. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3924. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3925. ac_status=$?
  3926. grep -v '^ *+' conftest.er1 >conftest.err
  3927. rm -f conftest.er1
  3928. cat conftest.err >&5
  3929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3930. (exit $ac_status); } >/dev/null; then
  3931. if test -s conftest.err; then
  3932. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3933. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  3934. else
  3935. ac_cpp_err=
  3936. fi
  3937. else
  3938. ac_cpp_err=yes
  3939. fi
  3940. if test -z "$ac_cpp_err"; then
  3941. :
  3942. else
  3943. echo "$as_me: failed program was:" >&5
  3944. sed 's/^/| /' conftest.$ac_ext >&5
  3945. # Broken: fails on valid input.
  3946. continue
  3947. fi
  3948. rm -f conftest.err conftest.$ac_ext
  3949. # OK, works on sane cases. Now check whether non-existent headers
  3950. # can be detected and how.
  3951. cat >conftest.$ac_ext <<_ACEOF
  3952. /* confdefs.h. */
  3953. _ACEOF
  3954. cat confdefs.h >>conftest.$ac_ext
  3955. cat >>conftest.$ac_ext <<_ACEOF
  3956. /* end confdefs.h. */
  3957. #include <ac_nonexistent.h>
  3958. _ACEOF
  3959. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3960. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3961. ac_status=$?
  3962. grep -v '^ *+' conftest.er1 >conftest.err
  3963. rm -f conftest.er1
  3964. cat conftest.err >&5
  3965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3966. (exit $ac_status); } >/dev/null; then
  3967. if test -s conftest.err; then
  3968. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3969. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  3970. else
  3971. ac_cpp_err=
  3972. fi
  3973. else
  3974. ac_cpp_err=yes
  3975. fi
  3976. if test -z "$ac_cpp_err"; then
  3977. # Broken: success on invalid input.
  3978. continue
  3979. else
  3980. echo "$as_me: failed program was:" >&5
  3981. sed 's/^/| /' conftest.$ac_ext >&5
  3982. # Passes both tests.
  3983. ac_preproc_ok=:
  3984. break
  3985. fi
  3986. rm -f conftest.err conftest.$ac_ext
  3987. done
  3988. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3989. rm -f conftest.err conftest.$ac_ext
  3990. if $ac_preproc_ok; then
  3991. break
  3992. fi
  3993. done
  3994. ac_cv_prog_CXXCPP=$CXXCPP
  3995. fi
  3996. CXXCPP=$ac_cv_prog_CXXCPP
  3997. else
  3998. ac_cv_prog_CXXCPP=$CXXCPP
  3999. fi
  4000. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4001. echo "${ECHO_T}$CXXCPP" >&6
  4002. ac_preproc_ok=false
  4003. for ac_cxx_preproc_warn_flag in '' yes
  4004. do
  4005. # Use a header file that comes with gcc, so configuring glibc
  4006. # with a fresh cross-compiler works.
  4007. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4008. # <limits.h> exists even on freestanding compilers.
  4009. # On the NeXT, cc -E runs the code through the compiler's parser,
  4010. # not just through cpp. "Syntax error" is here to catch this case.
  4011. cat >conftest.$ac_ext <<_ACEOF
  4012. /* confdefs.h. */
  4013. _ACEOF
  4014. cat confdefs.h >>conftest.$ac_ext
  4015. cat >>conftest.$ac_ext <<_ACEOF
  4016. /* end confdefs.h. */
  4017. #ifdef __STDC__
  4018. # include <limits.h>
  4019. #else
  4020. # include <assert.h>
  4021. #endif
  4022. Syntax error
  4023. _ACEOF
  4024. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4025. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4026. ac_status=$?
  4027. grep -v '^ *+' conftest.er1 >conftest.err
  4028. rm -f conftest.er1
  4029. cat conftest.err >&5
  4030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031. (exit $ac_status); } >/dev/null; then
  4032. if test -s conftest.err; then
  4033. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4034. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4035. else
  4036. ac_cpp_err=
  4037. fi
  4038. else
  4039. ac_cpp_err=yes
  4040. fi
  4041. if test -z "$ac_cpp_err"; then
  4042. :
  4043. else
  4044. echo "$as_me: failed program was:" >&5
  4045. sed 's/^/| /' conftest.$ac_ext >&5
  4046. # Broken: fails on valid input.
  4047. continue
  4048. fi
  4049. rm -f conftest.err conftest.$ac_ext
  4050. # OK, works on sane cases. Now check whether non-existent headers
  4051. # can be detected and how.
  4052. cat >conftest.$ac_ext <<_ACEOF
  4053. /* confdefs.h. */
  4054. _ACEOF
  4055. cat confdefs.h >>conftest.$ac_ext
  4056. cat >>conftest.$ac_ext <<_ACEOF
  4057. /* end confdefs.h. */
  4058. #include <ac_nonexistent.h>
  4059. _ACEOF
  4060. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4061. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4062. ac_status=$?
  4063. grep -v '^ *+' conftest.er1 >conftest.err
  4064. rm -f conftest.er1
  4065. cat conftest.err >&5
  4066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4067. (exit $ac_status); } >/dev/null; then
  4068. if test -s conftest.err; then
  4069. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4070. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4071. else
  4072. ac_cpp_err=
  4073. fi
  4074. else
  4075. ac_cpp_err=yes
  4076. fi
  4077. if test -z "$ac_cpp_err"; then
  4078. # Broken: success on invalid input.
  4079. continue
  4080. else
  4081. echo "$as_me: failed program was:" >&5
  4082. sed 's/^/| /' conftest.$ac_ext >&5
  4083. # Passes both tests.
  4084. ac_preproc_ok=:
  4085. break
  4086. fi
  4087. rm -f conftest.err conftest.$ac_ext
  4088. done
  4089. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4090. rm -f conftest.err conftest.$ac_ext
  4091. if $ac_preproc_ok; then
  4092. :
  4093. else
  4094. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4095. See \`config.log' for more details." >&5
  4096. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4097. See \`config.log' for more details." >&2;}
  4098. { (exit 1); exit 1; }; }
  4099. fi
  4100. ac_ext=cc
  4101. ac_cpp='$CXXCPP $CPPFLAGS'
  4102. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4103. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4104. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4105. fi
  4106. ac_ext=f
  4107. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4108. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4109. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4110. if test -n "$ac_tool_prefix"; then
  4111. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4112. do
  4113. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4114. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4115. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4116. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4117. if test "${ac_cv_prog_F77+set}" = set; then
  4118. echo $ECHO_N "(cached) $ECHO_C" >&6
  4119. else
  4120. if test -n "$F77"; then
  4121. ac_cv_prog_F77="$F77" # Let the user override the test.
  4122. else
  4123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4124. for as_dir in $PATH
  4125. do
  4126. IFS=$as_save_IFS
  4127. test -z "$as_dir" && as_dir=.
  4128. for ac_exec_ext in '' $ac_executable_extensions; do
  4129. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4130. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4131. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4132. break 2
  4133. fi
  4134. done
  4135. done
  4136. fi
  4137. fi
  4138. F77=$ac_cv_prog_F77
  4139. if test -n "$F77"; then
  4140. echo "$as_me:$LINENO: result: $F77" >&5
  4141. echo "${ECHO_T}$F77" >&6
  4142. else
  4143. echo "$as_me:$LINENO: result: no" >&5
  4144. echo "${ECHO_T}no" >&6
  4145. fi
  4146. test -n "$F77" && break
  4147. done
  4148. fi
  4149. if test -z "$F77"; then
  4150. ac_ct_F77=$F77
  4151. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4152. do
  4153. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4154. set dummy $ac_prog; ac_word=$2
  4155. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4156. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4157. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4158. echo $ECHO_N "(cached) $ECHO_C" >&6
  4159. else
  4160. if test -n "$ac_ct_F77"; then
  4161. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4162. else
  4163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4164. for as_dir in $PATH
  4165. do
  4166. IFS=$as_save_IFS
  4167. test -z "$as_dir" && as_dir=.
  4168. for ac_exec_ext in '' $ac_executable_extensions; do
  4169. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4170. ac_cv_prog_ac_ct_F77="$ac_prog"
  4171. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4172. break 2
  4173. fi
  4174. done
  4175. done
  4176. fi
  4177. fi
  4178. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4179. if test -n "$ac_ct_F77"; then
  4180. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4181. echo "${ECHO_T}$ac_ct_F77" >&6
  4182. else
  4183. echo "$as_me:$LINENO: result: no" >&5
  4184. echo "${ECHO_T}no" >&6
  4185. fi
  4186. test -n "$ac_ct_F77" && break
  4187. done
  4188. F77=$ac_ct_F77
  4189. fi
  4190. # Provide some information about the compiler.
  4191. echo "$as_me:4608:" \
  4192. "checking for Fortran 77 compiler version" >&5
  4193. ac_compiler=`set X $ac_compile; echo $2`
  4194. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4195. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4196. ac_status=$?
  4197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4198. (exit $ac_status); }
  4199. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4200. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4201. ac_status=$?
  4202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4203. (exit $ac_status); }
  4204. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4205. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4206. ac_status=$?
  4207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4208. (exit $ac_status); }
  4209. rm -f a.out
  4210. # If we don't use `.F' as extension, the preprocessor is not run on the
  4211. # input file. (Note that this only needs to work for GNU compilers.)
  4212. ac_save_ext=$ac_ext
  4213. ac_ext=F
  4214. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4215. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4216. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4217. echo $ECHO_N "(cached) $ECHO_C" >&6
  4218. else
  4219. cat >conftest.$ac_ext <<_ACEOF
  4220. program main
  4221. #ifndef __GNUC__
  4222. choke me
  4223. #endif
  4224. end
  4225. _ACEOF
  4226. rm -f conftest.$ac_objext
  4227. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4228. (eval $ac_compile) 2>conftest.er1
  4229. ac_status=$?
  4230. grep -v '^ *+' conftest.er1 >conftest.err
  4231. rm -f conftest.er1
  4232. cat conftest.err >&5
  4233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4234. (exit $ac_status); } &&
  4235. { ac_try='test -z "$ac_f77_werror_flag"
  4236. || test ! -s conftest.err'
  4237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4238. (eval $ac_try) 2>&5
  4239. ac_status=$?
  4240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4241. (exit $ac_status); }; } &&
  4242. { ac_try='test -s conftest.$ac_objext'
  4243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4244. (eval $ac_try) 2>&5
  4245. ac_status=$?
  4246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4247. (exit $ac_status); }; }; then
  4248. ac_compiler_gnu=yes
  4249. else
  4250. echo "$as_me: failed program was:" >&5
  4251. sed 's/^/| /' conftest.$ac_ext >&5
  4252. ac_compiler_gnu=no
  4253. fi
  4254. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4255. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4256. fi
  4257. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4258. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  4259. ac_ext=$ac_save_ext
  4260. ac_test_FFLAGS=${FFLAGS+set}
  4261. ac_save_FFLAGS=$FFLAGS
  4262. FFLAGS=
  4263. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4264. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  4265. if test "${ac_cv_prog_f77_g+set}" = set; then
  4266. echo $ECHO_N "(cached) $ECHO_C" >&6
  4267. else
  4268. FFLAGS=-g
  4269. cat >conftest.$ac_ext <<_ACEOF
  4270. program main
  4271. end
  4272. _ACEOF
  4273. rm -f conftest.$ac_objext
  4274. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4275. (eval $ac_compile) 2>conftest.er1
  4276. ac_status=$?
  4277. grep -v '^ *+' conftest.er1 >conftest.err
  4278. rm -f conftest.er1
  4279. cat conftest.err >&5
  4280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4281. (exit $ac_status); } &&
  4282. { ac_try='test -z "$ac_f77_werror_flag"
  4283. || test ! -s conftest.err'
  4284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4285. (eval $ac_try) 2>&5
  4286. ac_status=$?
  4287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4288. (exit $ac_status); }; } &&
  4289. { ac_try='test -s conftest.$ac_objext'
  4290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4291. (eval $ac_try) 2>&5
  4292. ac_status=$?
  4293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4294. (exit $ac_status); }; }; then
  4295. ac_cv_prog_f77_g=yes
  4296. else
  4297. echo "$as_me: failed program was:" >&5
  4298. sed 's/^/| /' conftest.$ac_ext >&5
  4299. ac_cv_prog_f77_g=no
  4300. fi
  4301. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4302. fi
  4303. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  4304. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  4305. if test "$ac_test_FFLAGS" = set; then
  4306. FFLAGS=$ac_save_FFLAGS
  4307. elif test $ac_cv_prog_f77_g = yes; then
  4308. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4309. FFLAGS="-g -O2"
  4310. else
  4311. FFLAGS="-g"
  4312. fi
  4313. else
  4314. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4315. FFLAGS="-O2"
  4316. else
  4317. FFLAGS=
  4318. fi
  4319. fi
  4320. G77=`test $ac_compiler_gnu = yes && echo yes`
  4321. ac_ext=c
  4322. ac_cpp='$CPP $CPPFLAGS'
  4323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4326. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4327. # find the maximum length of command line arguments
  4328. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4329. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  4330. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4331. echo $ECHO_N "(cached) $ECHO_C" >&6
  4332. else
  4333. i=0
  4334. teststring="ABCD"
  4335. case $build_os in
  4336. msdosdjgpp*)
  4337. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4338. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4339. # during glob expansion). Even if it were fixed, the result of this
  4340. # check would be larger than it should be.
  4341. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4342. ;;
  4343. gnu*)
  4344. # Under GNU Hurd, this test is not required because there is
  4345. # no limit to the length of command line arguments.
  4346. # Libtool will interpret -1 as no limit whatsoever
  4347. lt_cv_sys_max_cmd_len=-1;
  4348. ;;
  4349. cygwin* | mingw*)
  4350. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4351. # about 5 minutes as the teststring grows exponentially.
  4352. # Worse, since 9x/ME are not pre-emptively multitasking,
  4353. # you end up with a "frozen" computer, even though with patience
  4354. # the test eventually succeeds (with a max line length of 256k).
  4355. # Instead, let's just punt: use the minimum linelength reported by
  4356. # all of the supported platforms: 8192 (on NT/2K/XP).
  4357. lt_cv_sys_max_cmd_len=8192;
  4358. ;;
  4359. amigaos*)
  4360. # On AmigaOS with pdksh, this test takes hours, literally.
  4361. # So we just punt and use a minimum line length of 8192.
  4362. lt_cv_sys_max_cmd_len=8192;
  4363. ;;
  4364. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4365. # This has been around since 386BSD, at least. Likely further.
  4366. if test -x /sbin/sysctl; then
  4367. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4368. elif test -x /usr/sbin/sysctl; then
  4369. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4370. else
  4371. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  4372. fi
  4373. # And add a safety zone
  4374. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4375. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4376. ;;
  4377. osf*)
  4378. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4379. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4380. # nice to cause kernel panics so lets avoid the loop below.
  4381. # First set a reasonable default.
  4382. lt_cv_sys_max_cmd_len=16384
  4383. #
  4384. if test -x /sbin/sysconfig; then
  4385. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4386. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4387. esac
  4388. fi
  4389. ;;
  4390. *)
  4391. # If test is not a shell built-in, we'll probably end up computing a
  4392. # maximum length that is only half of the actual maximum length, but
  4393. # we can't tell.
  4394. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4395. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  4396. = "XX$teststring") >/dev/null 2>&1 &&
  4397. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4398. lt_cv_sys_max_cmd_len=$new_result &&
  4399. test $i != 17 # 1/2 MB should be enough
  4400. do
  4401. i=`expr $i + 1`
  4402. teststring=$teststring$teststring
  4403. done
  4404. teststring=
  4405. # Add a significant safety factor because C++ compilers can tack on massive
  4406. # amounts of additional arguments before passing them to the linker.
  4407. # It appears as though 1/2 is a usable value.
  4408. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4409. ;;
  4410. esac
  4411. fi
  4412. if test -n $lt_cv_sys_max_cmd_len ; then
  4413. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4414. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  4415. else
  4416. echo "$as_me:$LINENO: result: none" >&5
  4417. echo "${ECHO_T}none" >&6
  4418. fi
  4419. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4420. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4421. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  4422. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4423. echo $ECHO_N "(cached) $ECHO_C" >&6
  4424. else
  4425. # These are sane defaults that work on at least a few old systems.
  4426. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4427. # Character class describing NM global symbol codes.
  4428. symcode='[BCDEGRST]'
  4429. # Regexp to match symbols that can be accessed directly from C.
  4430. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4431. # Transform an extracted symbol line into a proper C declaration
  4432. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4433. # Transform an extracted symbol line into symbol name and symbol address
  4434. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4435. # Define system-specific variables.
  4436. case $host_os in
  4437. aix*)
  4438. symcode='[BCDT]'
  4439. ;;
  4440. cygwin* | mingw* | pw32*)
  4441. symcode='[ABCDGISTW]'
  4442. ;;
  4443. hpux*) # Its linker distinguishes data from code symbols
  4444. if test "$host_cpu" = ia64; then
  4445. symcode='[ABCDEGRST]'
  4446. fi
  4447. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4448. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4449. ;;
  4450. linux*)
  4451. if test "$host_cpu" = ia64; then
  4452. symcode='[ABCDGIRSTW]'
  4453. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4454. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4455. fi
  4456. ;;
  4457. irix* | nonstopux*)
  4458. symcode='[BCDEGRST]'
  4459. ;;
  4460. osf*)
  4461. symcode='[BCDEGQRST]'
  4462. ;;
  4463. solaris* | sysv5*)
  4464. symcode='[BDRT]'
  4465. ;;
  4466. sysv4)
  4467. symcode='[DFNSTU]'
  4468. ;;
  4469. esac
  4470. # Handle CRLF in mingw tool chain
  4471. opt_cr=
  4472. case $build_os in
  4473. mingw*)
  4474. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4475. ;;
  4476. esac
  4477. # If we're using GNU nm, then use its standard symbol codes.
  4478. case `$NM -V 2>&1` in
  4479. *GNU* | *'with BFD'*)
  4480. symcode='[ABCDGIRSTW]' ;;
  4481. esac
  4482. # Try without a prefix undercore, then with it.
  4483. for ac_symprfx in "" "_"; do
  4484. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4485. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4486. # Write the raw and C identifiers.
  4487. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4488. # Check to see that the pipe works correctly.
  4489. pipe_works=no
  4490. rm -f conftest*
  4491. cat > conftest.$ac_ext <<EOF
  4492. #ifdef __cplusplus
  4493. extern "C" {
  4494. #endif
  4495. char nm_test_var;
  4496. void nm_test_func(){}
  4497. #ifdef __cplusplus
  4498. }
  4499. #endif
  4500. int main(){nm_test_var='a';nm_test_func();return(0);}
  4501. EOF
  4502. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4503. (eval $ac_compile) 2>&5
  4504. ac_status=$?
  4505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4506. (exit $ac_status); }; then
  4507. # Now try to grab the symbols.
  4508. nlist=conftest.nm
  4509. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4510. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4511. ac_status=$?
  4512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4513. (exit $ac_status); } && test -s "$nlist"; then
  4514. # Try sorting and uniquifying the output.
  4515. if sort "$nlist" | uniq > "$nlist"T; then
  4516. mv -f "$nlist"T "$nlist"
  4517. else
  4518. rm -f "$nlist"T
  4519. fi
  4520. # Make sure that we snagged all the symbols we need.
  4521. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4522. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4523. cat <<EOF > conftest.$ac_ext
  4524. #ifdef __cplusplus
  4525. extern "C" {
  4526. #endif
  4527. EOF
  4528. # Now generate the symbol file.
  4529. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4530. cat <<EOF >> conftest.$ac_ext
  4531. #if defined (__STDC__) && __STDC__
  4532. # define lt_ptr_t void *
  4533. #else
  4534. # define lt_ptr_t char *
  4535. # define const
  4536. #endif
  4537. /* The mapping between symbol names and symbols. */
  4538. const struct {
  4539. const char *name;
  4540. lt_ptr_t address;
  4541. }
  4542. lt_preloaded_symbols[] =
  4543. {
  4544. EOF
  4545. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4546. cat <<\EOF >> conftest.$ac_ext
  4547. {0, (lt_ptr_t) 0}
  4548. };
  4549. #ifdef __cplusplus
  4550. }
  4551. #endif
  4552. EOF
  4553. # Now try linking the two files.
  4554. mv conftest.$ac_objext conftstm.$ac_objext
  4555. lt_save_LIBS="$LIBS"
  4556. lt_save_CFLAGS="$CFLAGS"
  4557. LIBS="conftstm.$ac_objext"
  4558. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4559. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4560. (eval $ac_link) 2>&5
  4561. ac_status=$?
  4562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4563. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4564. pipe_works=yes
  4565. fi
  4566. LIBS="$lt_save_LIBS"
  4567. CFLAGS="$lt_save_CFLAGS"
  4568. else
  4569. echo "cannot find nm_test_func in $nlist" >&5
  4570. fi
  4571. else
  4572. echo "cannot find nm_test_var in $nlist" >&5
  4573. fi
  4574. else
  4575. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4576. fi
  4577. else
  4578. echo "$progname: failed program was:" >&5
  4579. cat conftest.$ac_ext >&5
  4580. fi
  4581. rm -f conftest* conftst*
  4582. # Do not use the global_symbol_pipe unless it works.
  4583. if test "$pipe_works" = yes; then
  4584. break
  4585. else
  4586. lt_cv_sys_global_symbol_pipe=
  4587. fi
  4588. done
  4589. fi
  4590. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4591. lt_cv_sys_global_symbol_to_cdecl=
  4592. fi
  4593. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4594. echo "$as_me:$LINENO: result: failed" >&5
  4595. echo "${ECHO_T}failed" >&6
  4596. else
  4597. echo "$as_me:$LINENO: result: ok" >&5
  4598. echo "${ECHO_T}ok" >&6
  4599. fi
  4600. echo "$as_me:$LINENO: checking for objdir" >&5
  4601. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  4602. if test "${lt_cv_objdir+set}" = set; then
  4603. echo $ECHO_N "(cached) $ECHO_C" >&6
  4604. else
  4605. rm -f .libs 2>/dev/null
  4606. mkdir .libs 2>/dev/null
  4607. if test -d .libs; then
  4608. lt_cv_objdir=.libs
  4609. else
  4610. # MS-DOS does not allow filenames that begin with a dot.
  4611. lt_cv_objdir=_libs
  4612. fi
  4613. rmdir .libs 2>/dev/null
  4614. fi
  4615. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  4616. echo "${ECHO_T}$lt_cv_objdir" >&6
  4617. objdir=$lt_cv_objdir
  4618. case $host_os in
  4619. aix3*)
  4620. # AIX sometimes has problems with the GCC collect2 program. For some
  4621. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4622. # vanish in a puff of smoke.
  4623. if test "X${COLLECT_NAMES+set}" != Xset; then
  4624. COLLECT_NAMES=
  4625. export COLLECT_NAMES
  4626. fi
  4627. ;;
  4628. esac
  4629. # Sed substitution that helps us do robust quoting. It backslashifies
  4630. # metacharacters that are still active within double-quoted strings.
  4631. Xsed='sed -e 1s/^X//'
  4632. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  4633. # Same as above, but do not quote variable references.
  4634. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  4635. # Sed substitution to delay expansion of an escaped shell variable in a
  4636. # double_quote_subst'ed string.
  4637. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4638. # Sed substitution to avoid accidental globbing in evaled expressions
  4639. no_glob_subst='s/\*/\\\*/g'
  4640. # Constants:
  4641. rm="rm -f"
  4642. # Global variables:
  4643. default_ofile=libtool
  4644. can_build_shared=yes
  4645. # All known linkers require a `.a' archive for static linking (except M$VC,
  4646. # which needs '.lib').
  4647. libext=a
  4648. ltmain="$ac_aux_dir/ltmain.sh"
  4649. ofile="$default_ofile"
  4650. with_gnu_ld="$lt_cv_prog_gnu_ld"
  4651. if test -n "$ac_tool_prefix"; then
  4652. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4653. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4654. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4655. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4656. if test "${ac_cv_prog_AR+set}" = set; then
  4657. echo $ECHO_N "(cached) $ECHO_C" >&6
  4658. else
  4659. if test -n "$AR"; then
  4660. ac_cv_prog_AR="$AR" # Let the user override the test.
  4661. else
  4662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4663. for as_dir in $PATH
  4664. do
  4665. IFS=$as_save_IFS
  4666. test -z "$as_dir" && as_dir=.
  4667. for ac_exec_ext in '' $ac_executable_extensions; do
  4668. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4669. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4670. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4671. break 2
  4672. fi
  4673. done
  4674. done
  4675. fi
  4676. fi
  4677. AR=$ac_cv_prog_AR
  4678. if test -n "$AR"; then
  4679. echo "$as_me:$LINENO: result: $AR" >&5
  4680. echo "${ECHO_T}$AR" >&6
  4681. else
  4682. echo "$as_me:$LINENO: result: no" >&5
  4683. echo "${ECHO_T}no" >&6
  4684. fi
  4685. fi
  4686. if test -z "$ac_cv_prog_AR"; then
  4687. ac_ct_AR=$AR
  4688. # Extract the first word of "ar", so it can be a program name with args.
  4689. set dummy ar; ac_word=$2
  4690. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4691. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4692. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4693. echo $ECHO_N "(cached) $ECHO_C" >&6
  4694. else
  4695. if test -n "$ac_ct_AR"; then
  4696. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4697. else
  4698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4699. for as_dir in $PATH
  4700. do
  4701. IFS=$as_save_IFS
  4702. test -z "$as_dir" && as_dir=.
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4705. ac_cv_prog_ac_ct_AR="ar"
  4706. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4707. break 2
  4708. fi
  4709. done
  4710. done
  4711. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  4712. fi
  4713. fi
  4714. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4715. if test -n "$ac_ct_AR"; then
  4716. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4717. echo "${ECHO_T}$ac_ct_AR" >&6
  4718. else
  4719. echo "$as_me:$LINENO: result: no" >&5
  4720. echo "${ECHO_T}no" >&6
  4721. fi
  4722. AR=$ac_ct_AR
  4723. else
  4724. AR="$ac_cv_prog_AR"
  4725. fi
  4726. if test -n "$ac_tool_prefix"; then
  4727. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4728. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4729. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4730. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4731. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4732. echo $ECHO_N "(cached) $ECHO_C" >&6
  4733. else
  4734. if test -n "$RANLIB"; then
  4735. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4736. else
  4737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4738. for as_dir in $PATH
  4739. do
  4740. IFS=$as_save_IFS
  4741. test -z "$as_dir" && as_dir=.
  4742. for ac_exec_ext in '' $ac_executable_extensions; do
  4743. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4744. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4745. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4746. break 2
  4747. fi
  4748. done
  4749. done
  4750. fi
  4751. fi
  4752. RANLIB=$ac_cv_prog_RANLIB
  4753. if test -n "$RANLIB"; then
  4754. echo "$as_me:$LINENO: result: $RANLIB" >&5
  4755. echo "${ECHO_T}$RANLIB" >&6
  4756. else
  4757. echo "$as_me:$LINENO: result: no" >&5
  4758. echo "${ECHO_T}no" >&6
  4759. fi
  4760. fi
  4761. if test -z "$ac_cv_prog_RANLIB"; then
  4762. ac_ct_RANLIB=$RANLIB
  4763. # Extract the first word of "ranlib", so it can be a program name with args.
  4764. set dummy ranlib; ac_word=$2
  4765. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4766. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4767. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4768. echo $ECHO_N "(cached) $ECHO_C" >&6
  4769. else
  4770. if test -n "$ac_ct_RANLIB"; then
  4771. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4772. else
  4773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4774. for as_dir in $PATH
  4775. do
  4776. IFS=$as_save_IFS
  4777. test -z "$as_dir" && as_dir=.
  4778. for ac_exec_ext in '' $ac_executable_extensions; do
  4779. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4780. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4781. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4782. break 2
  4783. fi
  4784. done
  4785. done
  4786. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  4787. fi
  4788. fi
  4789. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4790. if test -n "$ac_ct_RANLIB"; then
  4791. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4792. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  4793. else
  4794. echo "$as_me:$LINENO: result: no" >&5
  4795. echo "${ECHO_T}no" >&6
  4796. fi
  4797. RANLIB=$ac_ct_RANLIB
  4798. else
  4799. RANLIB="$ac_cv_prog_RANLIB"
  4800. fi
  4801. if test -n "$ac_tool_prefix"; then
  4802. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4803. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4804. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4805. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4806. if test "${ac_cv_prog_STRIP+set}" = set; then
  4807. echo $ECHO_N "(cached) $ECHO_C" >&6
  4808. else
  4809. if test -n "$STRIP"; then
  4810. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4811. else
  4812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4813. for as_dir in $PATH
  4814. do
  4815. IFS=$as_save_IFS
  4816. test -z "$as_dir" && as_dir=.
  4817. for ac_exec_ext in '' $ac_executable_extensions; do
  4818. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4819. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4820. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4821. break 2
  4822. fi
  4823. done
  4824. done
  4825. fi
  4826. fi
  4827. STRIP=$ac_cv_prog_STRIP
  4828. if test -n "$STRIP"; then
  4829. echo "$as_me:$LINENO: result: $STRIP" >&5
  4830. echo "${ECHO_T}$STRIP" >&6
  4831. else
  4832. echo "$as_me:$LINENO: result: no" >&5
  4833. echo "${ECHO_T}no" >&6
  4834. fi
  4835. fi
  4836. if test -z "$ac_cv_prog_STRIP"; then
  4837. ac_ct_STRIP=$STRIP
  4838. # Extract the first word of "strip", so it can be a program name with args.
  4839. set dummy strip; ac_word=$2
  4840. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4841. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4842. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4843. echo $ECHO_N "(cached) $ECHO_C" >&6
  4844. else
  4845. if test -n "$ac_ct_STRIP"; then
  4846. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4847. else
  4848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4849. for as_dir in $PATH
  4850. do
  4851. IFS=$as_save_IFS
  4852. test -z "$as_dir" && as_dir=.
  4853. for ac_exec_ext in '' $ac_executable_extensions; do
  4854. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4855. ac_cv_prog_ac_ct_STRIP="strip"
  4856. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4857. break 2
  4858. fi
  4859. done
  4860. done
  4861. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  4862. fi
  4863. fi
  4864. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4865. if test -n "$ac_ct_STRIP"; then
  4866. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4867. echo "${ECHO_T}$ac_ct_STRIP" >&6
  4868. else
  4869. echo "$as_me:$LINENO: result: no" >&5
  4870. echo "${ECHO_T}no" >&6
  4871. fi
  4872. STRIP=$ac_ct_STRIP
  4873. else
  4874. STRIP="$ac_cv_prog_STRIP"
  4875. fi
  4876. old_CC="$CC"
  4877. old_CFLAGS="$CFLAGS"
  4878. # Set sane defaults for various variables
  4879. test -z "$AR" && AR=ar
  4880. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4881. test -z "$AS" && AS=as
  4882. test -z "$CC" && CC=cc
  4883. test -z "$LTCC" && LTCC=$CC
  4884. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4885. test -z "$LD" && LD=ld
  4886. test -z "$LN_S" && LN_S="ln -s"
  4887. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  4888. test -z "$NM" && NM=nm
  4889. test -z "$SED" && SED=sed
  4890. test -z "$OBJDUMP" && OBJDUMP=objdump
  4891. test -z "$RANLIB" && RANLIB=:
  4892. test -z "$STRIP" && STRIP=:
  4893. test -z "$ac_objext" && ac_objext=o
  4894. # Determine commands to create old-style static archives.
  4895. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  4896. old_postinstall_cmds='chmod 644 $oldlib'
  4897. old_postuninstall_cmds=
  4898. if test -n "$RANLIB"; then
  4899. case $host_os in
  4900. openbsd*)
  4901. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  4902. ;;
  4903. *)
  4904. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  4905. ;;
  4906. esac
  4907. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4908. fi
  4909. for cc_temp in $compiler""; do
  4910. case $cc_temp in
  4911. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  4912. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  4913. \-*) ;;
  4914. *) break;;
  4915. esac
  4916. done
  4917. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  4918. # Only perform the check for file, if the check method requires it
  4919. case $deplibs_check_method in
  4920. file_magic*)
  4921. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  4922. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  4923. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  4924. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4925. echo $ECHO_N "(cached) $ECHO_C" >&6
  4926. else
  4927. case $MAGIC_CMD in
  4928. [\\/*] | ?:[\\/]*)
  4929. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4930. ;;
  4931. *)
  4932. lt_save_MAGIC_CMD="$MAGIC_CMD"
  4933. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4934. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  4935. for ac_dir in $ac_dummy; do
  4936. IFS="$lt_save_ifs"
  4937. test -z "$ac_dir" && ac_dir=.
  4938. if test -f $ac_dir/${ac_tool_prefix}file; then
  4939. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  4940. if test -n "$file_magic_test_file"; then
  4941. case $deplibs_check_method in
  4942. "file_magic "*)
  4943. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4944. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4945. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4946. $EGREP "$file_magic_regex" > /dev/null; then
  4947. :
  4948. else
  4949. cat <<EOF 1>&2
  4950. *** Warning: the command libtool uses to detect shared libraries,
  4951. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4952. *** The result is that libtool may fail to recognize shared libraries
  4953. *** as such. This will affect the creation of libtool libraries that
  4954. *** depend on shared libraries, but programs linked with such libtool
  4955. *** libraries will work regardless of this problem. Nevertheless, you
  4956. *** may want to report the problem to your system manager and/or to
  4957. *** bug-libtool@gnu.org
  4958. EOF
  4959. fi ;;
  4960. esac
  4961. fi
  4962. break
  4963. fi
  4964. done
  4965. IFS="$lt_save_ifs"
  4966. MAGIC_CMD="$lt_save_MAGIC_CMD"
  4967. ;;
  4968. esac
  4969. fi
  4970. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4971. if test -n "$MAGIC_CMD"; then
  4972. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  4973. echo "${ECHO_T}$MAGIC_CMD" >&6
  4974. else
  4975. echo "$as_me:$LINENO: result: no" >&5
  4976. echo "${ECHO_T}no" >&6
  4977. fi
  4978. if test -z "$lt_cv_path_MAGIC_CMD"; then
  4979. if test -n "$ac_tool_prefix"; then
  4980. echo "$as_me:$LINENO: checking for file" >&5
  4981. echo $ECHO_N "checking for file... $ECHO_C" >&6
  4982. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4983. echo $ECHO_N "(cached) $ECHO_C" >&6
  4984. else
  4985. case $MAGIC_CMD in
  4986. [\\/*] | ?:[\\/]*)
  4987. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4988. ;;
  4989. *)
  4990. lt_save_MAGIC_CMD="$MAGIC_CMD"
  4991. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4992. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  4993. for ac_dir in $ac_dummy; do
  4994. IFS="$lt_save_ifs"
  4995. test -z "$ac_dir" && ac_dir=.
  4996. if test -f $ac_dir/file; then
  4997. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  4998. if test -n "$file_magic_test_file"; then
  4999. case $deplibs_check_method in
  5000. "file_magic "*)
  5001. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5002. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5003. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5004. $EGREP "$file_magic_regex" > /dev/null; then
  5005. :
  5006. else
  5007. cat <<EOF 1>&2
  5008. *** Warning: the command libtool uses to detect shared libraries,
  5009. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5010. *** The result is that libtool may fail to recognize shared libraries
  5011. *** as such. This will affect the creation of libtool libraries that
  5012. *** depend on shared libraries, but programs linked with such libtool
  5013. *** libraries will work regardless of this problem. Nevertheless, you
  5014. *** may want to report the problem to your system manager and/or to
  5015. *** bug-libtool@gnu.org
  5016. EOF
  5017. fi ;;
  5018. esac
  5019. fi
  5020. break
  5021. fi
  5022. done
  5023. IFS="$lt_save_ifs"
  5024. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5025. ;;
  5026. esac
  5027. fi
  5028. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5029. if test -n "$MAGIC_CMD"; then
  5030. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5031. echo "${ECHO_T}$MAGIC_CMD" >&6
  5032. else
  5033. echo "$as_me:$LINENO: result: no" >&5
  5034. echo "${ECHO_T}no" >&6
  5035. fi
  5036. else
  5037. MAGIC_CMD=:
  5038. fi
  5039. fi
  5040. fi
  5041. ;;
  5042. esac
  5043. enable_dlopen=no
  5044. enable_win32_dll=no
  5045. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5046. if test "${enable_libtool_lock+set}" = set; then
  5047. enableval="$enable_libtool_lock"
  5048. fi;
  5049. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5050. # Check whether --with-pic or --without-pic was given.
  5051. if test "${with_pic+set}" = set; then
  5052. withval="$with_pic"
  5053. pic_mode="$withval"
  5054. else
  5055. pic_mode=default
  5056. fi;
  5057. test -z "$pic_mode" && pic_mode=default
  5058. # Use C for the default configuration in the libtool script
  5059. tagname=
  5060. lt_save_CC="$CC"
  5061. ac_ext=c
  5062. ac_cpp='$CPP $CPPFLAGS'
  5063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5066. # Source file extension for C test sources.
  5067. ac_ext=c
  5068. # Object file extension for compiled C test sources.
  5069. objext=o
  5070. objext=$objext
  5071. # Code to be used in simple compile tests
  5072. lt_simple_compile_test_code="int some_variable = 0;\n"
  5073. # Code to be used in simple link tests
  5074. lt_simple_link_test_code='int main(){return(0);}\n'
  5075. # If no C compiler was specified, use CC.
  5076. LTCC=${LTCC-"$CC"}
  5077. # Allow CC to be a program name with arguments.
  5078. compiler=$CC
  5079. # save warnings/boilerplate of simple test code
  5080. ac_outfile=conftest.$ac_objext
  5081. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5082. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5083. _lt_compiler_boilerplate=`cat conftest.err`
  5084. $rm conftest*
  5085. ac_outfile=conftest.$ac_objext
  5086. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5087. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5088. _lt_linker_boilerplate=`cat conftest.err`
  5089. $rm conftest*
  5090. #
  5091. # Check for any special shared library compilation flags.
  5092. #
  5093. lt_prog_cc_shlib=
  5094. if test "$GCC" = no; then
  5095. case $host_os in
  5096. sco3.2v5*)
  5097. lt_prog_cc_shlib='-belf'
  5098. ;;
  5099. esac
  5100. fi
  5101. if test -n "$lt_prog_cc_shlib"; then
  5102. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  5103. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  5104. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  5105. else
  5106. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  5107. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  5108. lt_cv_prog_cc_can_build_shared=no
  5109. fi
  5110. fi
  5111. #
  5112. # Check to make sure the static flag actually works.
  5113. #
  5114. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  5115. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  5116. if test "${lt_prog_compiler_static_works+set}" = set; then
  5117. echo $ECHO_N "(cached) $ECHO_C" >&6
  5118. else
  5119. lt_prog_compiler_static_works=no
  5120. save_LDFLAGS="$LDFLAGS"
  5121. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  5122. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5123. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5124. # The compiler can only warn and ignore the option if not recognized
  5125. # So say no if there are warnings
  5126. if test -s conftest.err; then
  5127. # Append any errors to the config.log.
  5128. cat conftest.err 1>&5
  5129. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  5130. $SED '/^$/d' conftest.err >conftest.er2
  5131. if diff conftest.exp conftest.er2 >/dev/null; then
  5132. lt_prog_compiler_static_works=yes
  5133. fi
  5134. else
  5135. lt_prog_compiler_static_works=yes
  5136. fi
  5137. fi
  5138. $rm conftest*
  5139. LDFLAGS="$save_LDFLAGS"
  5140. fi
  5141. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  5142. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  5143. if test x"$lt_prog_compiler_static_works" = xyes; then
  5144. :
  5145. else
  5146. lt_prog_compiler_static=
  5147. fi
  5148. lt_prog_compiler_no_builtin_flag=
  5149. if test "$GCC" = yes; then
  5150. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5151. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5152. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5153. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5154. echo $ECHO_N "(cached) $ECHO_C" >&6
  5155. else
  5156. lt_cv_prog_compiler_rtti_exceptions=no
  5157. ac_outfile=conftest.$ac_objext
  5158. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5159. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5160. # Insert the option either (1) after the last *FLAGS variable, or
  5161. # (2) before a word containing "conftest.", or (3) at the end.
  5162. # Note that $ac_compile itself does not contain backslashes and begins
  5163. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5164. # The option is referenced via a variable to avoid confusing sed.
  5165. lt_compile=`echo "$ac_compile" | $SED \
  5166. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5167. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5168. -e 's:$: $lt_compiler_flag:'`
  5169. (eval echo "\"\$as_me:5706: $lt_compile\"" >&5)
  5170. (eval "$lt_compile" 2>conftest.err)
  5171. ac_status=$?
  5172. cat conftest.err >&5
  5173. echo "$as_me:5710: \$? = $ac_status" >&5
  5174. if (exit $ac_status) && test -s "$ac_outfile"; then
  5175. # The compiler can only warn and ignore the option if not recognized
  5176. # So say no if there are warnings other than the usual output.
  5177. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  5178. $SED '/^$/d' conftest.err >conftest.er2
  5179. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  5180. lt_cv_prog_compiler_rtti_exceptions=yes
  5181. fi
  5182. fi
  5183. $rm conftest*
  5184. fi
  5185. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5186. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5187. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5188. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5189. else
  5190. :
  5191. fi
  5192. fi
  5193. lt_prog_compiler_wl=
  5194. lt_prog_compiler_pic=
  5195. lt_prog_compiler_static=
  5196. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5197. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5198. if test "$GCC" = yes; then
  5199. lt_prog_compiler_wl='-Wl,'
  5200. lt_prog_compiler_static='-static'
  5201. case $host_os in
  5202. aix*)
  5203. # All AIX code is PIC.
  5204. if test "$host_cpu" = ia64; then
  5205. # AIX 5 now supports IA64 processor
  5206. lt_prog_compiler_static='-Bstatic'
  5207. fi
  5208. ;;
  5209. amigaos*)
  5210. # FIXME: we need at least 68020 code to build shared libraries, but
  5211. # adding the `-m68020' flag to GCC prevents building anything better,
  5212. # like `-m68040'.
  5213. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5214. ;;
  5215. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5216. # PIC is the default for these OSes.
  5217. ;;
  5218. mingw* | pw32* | os2*)
  5219. # This hack is so that the source file can tell whether it is being
  5220. # built for inclusion in a dll (and should export symbols for example).
  5221. lt_prog_compiler_pic='-DDLL_EXPORT'
  5222. ;;
  5223. darwin* | rhapsody*)
  5224. # PIC is the default on this platform
  5225. # Common symbols not allowed in MH_DYLIB files
  5226. lt_prog_compiler_pic='-fno-common'
  5227. ;;
  5228. msdosdjgpp*)
  5229. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5230. # on systems that don't support them.
  5231. lt_prog_compiler_can_build_shared=no
  5232. enable_shared=no
  5233. ;;
  5234. sysv4*MP*)
  5235. if test -d /usr/nec; then
  5236. lt_prog_compiler_pic=-Kconform_pic
  5237. fi
  5238. ;;
  5239. hpux*)
  5240. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5241. # not for PA HP-UX.
  5242. case "$host_cpu" in
  5243. hppa*64*|ia64*)
  5244. # +Z the default
  5245. ;;
  5246. *)
  5247. lt_prog_compiler_pic='-fPIC'
  5248. ;;
  5249. esac
  5250. ;;
  5251. *)
  5252. lt_prog_compiler_pic='-fPIC'
  5253. ;;
  5254. esac
  5255. else
  5256. # PORTME Check for flag to pass linker flags through the system compiler.
  5257. case $host_os in
  5258. aix*)
  5259. lt_prog_compiler_wl='-Wl,'
  5260. if test "$host_cpu" = ia64; then
  5261. # AIX 5 now supports IA64 processor
  5262. lt_prog_compiler_static='-Bstatic'
  5263. else
  5264. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5265. fi
  5266. ;;
  5267. darwin*)
  5268. # PIC is the default on this platform
  5269. # Common symbols not allowed in MH_DYLIB files
  5270. case $cc_basename in
  5271. xlc*)
  5272. lt_prog_compiler_pic='-qnocommon'
  5273. lt_prog_compiler_wl='-Wl,'
  5274. ;;
  5275. esac
  5276. ;;
  5277. mingw* | pw32* | os2*)
  5278. # This hack is so that the source file can tell whether it is being
  5279. # built for inclusion in a dll (and should export symbols for example).
  5280. lt_prog_compiler_pic='-DDLL_EXPORT'
  5281. ;;
  5282. hpux9* | hpux10* | hpux11*)
  5283. lt_prog_compiler_wl='-Wl,'
  5284. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5285. # not for PA HP-UX.
  5286. case "$host_cpu" in
  5287. hppa*64*|ia64*)
  5288. # +Z the default
  5289. ;;
  5290. *)
  5291. lt_prog_compiler_pic='+Z'
  5292. ;;
  5293. esac
  5294. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5295. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5296. ;;
  5297. irix5* | irix6* | nonstopux*)
  5298. lt_prog_compiler_wl='-Wl,'
  5299. # PIC (with -KPIC) is the default.
  5300. lt_prog_compiler_static='-non_shared'
  5301. ;;
  5302. newsos6)
  5303. lt_prog_compiler_pic='-KPIC'
  5304. lt_prog_compiler_static='-Bstatic'
  5305. ;;
  5306. linux*)
  5307. case $cc_basename in
  5308. icc* | ecc*)
  5309. lt_prog_compiler_wl='-Wl,'
  5310. lt_prog_compiler_pic='-KPIC'
  5311. lt_prog_compiler_static='-static'
  5312. ;;
  5313. pgcc* | pgf77* | pgf90*)
  5314. # Portland Group compilers (*not* the Pentium gcc compiler,
  5315. # which looks to be a dead project)
  5316. lt_prog_compiler_wl='-Wl,'
  5317. lt_prog_compiler_pic='-fpic'
  5318. lt_prog_compiler_static='-static'
  5319. ;;
  5320. ccc*)
  5321. lt_prog_compiler_wl='-Wl,'
  5322. # All Alpha code is PIC.
  5323. lt_prog_compiler_static='-non_shared'
  5324. ;;
  5325. esac
  5326. ;;
  5327. osf3* | osf4* | osf5*)
  5328. lt_prog_compiler_wl='-Wl,'
  5329. # All OSF/1 code is PIC.
  5330. lt_prog_compiler_static='-non_shared'
  5331. ;;
  5332. sco3.2v5*)
  5333. lt_prog_compiler_pic='-Kpic'
  5334. lt_prog_compiler_static='-dn'
  5335. ;;
  5336. solaris*)
  5337. lt_prog_compiler_pic='-KPIC'
  5338. lt_prog_compiler_static='-Bstatic'
  5339. case $cc_basename in
  5340. f77* | f90* | f95*)
  5341. lt_prog_compiler_wl='-Qoption ld ';;
  5342. *)
  5343. lt_prog_compiler_wl='-Wl,';;
  5344. esac
  5345. ;;
  5346. sunos4*)
  5347. lt_prog_compiler_wl='-Qoption ld '
  5348. lt_prog_compiler_pic='-PIC'
  5349. lt_prog_compiler_static='-Bstatic'
  5350. ;;
  5351. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5352. lt_prog_compiler_wl='-Wl,'
  5353. lt_prog_compiler_pic='-KPIC'
  5354. lt_prog_compiler_static='-Bstatic'
  5355. ;;
  5356. sysv4*MP*)
  5357. if test -d /usr/nec ;then
  5358. lt_prog_compiler_pic='-Kconform_pic'
  5359. lt_prog_compiler_static='-Bstatic'
  5360. fi
  5361. ;;
  5362. unicos*)
  5363. lt_prog_compiler_wl='-Wl,'
  5364. lt_prog_compiler_can_build_shared=no
  5365. ;;
  5366. uts4*)
  5367. lt_prog_compiler_pic='-pic'
  5368. lt_prog_compiler_static='-Bstatic'
  5369. ;;
  5370. *)
  5371. lt_prog_compiler_can_build_shared=no
  5372. ;;
  5373. esac
  5374. fi
  5375. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5376. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  5377. #
  5378. # Check to make sure the PIC flag actually works.
  5379. #
  5380. if test -n "$lt_prog_compiler_pic"; then
  5381. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5382. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  5383. if test "${lt_prog_compiler_pic_works+set}" = set; then
  5384. echo $ECHO_N "(cached) $ECHO_C" >&6
  5385. else
  5386. lt_prog_compiler_pic_works=no
  5387. ac_outfile=conftest.$ac_objext
  5388. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5389. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5390. # Insert the option either (1) after the last *FLAGS variable, or
  5391. # (2) before a word containing "conftest.", or (3) at the end.
  5392. # Note that $ac_compile itself does not contain backslashes and begins
  5393. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5394. # The option is referenced via a variable to avoid confusing sed.
  5395. lt_compile=`echo "$ac_compile" | $SED \
  5396. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5397. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5398. -e 's:$: $lt_compiler_flag:'`
  5399. (eval echo "\"\$as_me:5968: $lt_compile\"" >&5)
  5400. (eval "$lt_compile" 2>conftest.err)
  5401. ac_status=$?
  5402. cat conftest.err >&5
  5403. echo "$as_me:5972: \$? = $ac_status" >&5
  5404. if (exit $ac_status) && test -s "$ac_outfile"; then
  5405. # The compiler can only warn and ignore the option if not recognized
  5406. # So say no if there are warnings other than the usual output.
  5407. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  5408. $SED '/^$/d' conftest.err >conftest.er2
  5409. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  5410. lt_prog_compiler_pic_works=yes
  5411. fi
  5412. fi
  5413. $rm conftest*
  5414. fi
  5415. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  5416. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  5417. if test x"$lt_prog_compiler_pic_works" = xyes; then
  5418. case $lt_prog_compiler_pic in
  5419. "" | " "*) ;;
  5420. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  5421. esac
  5422. else
  5423. lt_prog_compiler_pic=
  5424. lt_prog_compiler_can_build_shared=no
  5425. fi
  5426. fi
  5427. case "$host_os" in
  5428. # For platforms which do not support PIC, -DPIC is meaningless:
  5429. *djgpp*)
  5430. lt_prog_compiler_pic=
  5431. ;;
  5432. *)
  5433. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5434. ;;
  5435. esac
  5436. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  5437. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  5438. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  5439. echo $ECHO_N "(cached) $ECHO_C" >&6
  5440. else
  5441. lt_cv_prog_compiler_c_o=no
  5442. $rm -r conftest 2>/dev/null
  5443. mkdir conftest
  5444. cd conftest
  5445. mkdir out
  5446. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5447. lt_compiler_flag="-o out/conftest2.$ac_objext"
  5448. # Insert the option either (1) after the last *FLAGS variable, or
  5449. # (2) before a word containing "conftest.", or (3) at the end.
  5450. # Note that $ac_compile itself does not contain backslashes and begins
  5451. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5452. lt_compile=`echo "$ac_compile" | $SED \
  5453. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5454. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5455. -e 's:$: $lt_compiler_flag:'`
  5456. (eval echo "\"\$as_me:6030: $lt_compile\"" >&5)
  5457. (eval "$lt_compile" 2>out/conftest.err)
  5458. ac_status=$?
  5459. cat out/conftest.err >&5
  5460. echo "$as_me:6034: \$? = $ac_status" >&5
  5461. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5462. then
  5463. # The compiler can only warn and ignore the option if not recognized
  5464. # So say no if there are warnings
  5465. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  5466. $SED '/^$/d' out/conftest.err >out/conftest.er2
  5467. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5468. lt_cv_prog_compiler_c_o=yes
  5469. fi
  5470. fi
  5471. chmod u+w .
  5472. $rm conftest*
  5473. # SGI C++ compiler will create directory out/ii_files/ for
  5474. # template instantiation
  5475. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  5476. $rm out/* && rmdir out
  5477. cd ..
  5478. rmdir conftest
  5479. $rm conftest*
  5480. fi
  5481. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  5482. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  5483. hard_links="nottested"
  5484. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  5485. # do not overwrite the value of need_locks provided by the user
  5486. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  5487. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  5488. hard_links=yes
  5489. $rm conftest*
  5490. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5491. touch conftest.a
  5492. ln conftest.a conftest.b 2>&5 || hard_links=no
  5493. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5494. echo "$as_me:$LINENO: result: $hard_links" >&5
  5495. echo "${ECHO_T}$hard_links" >&6
  5496. if test "$hard_links" = no; then
  5497. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  5498. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  5499. need_locks=warn
  5500. fi
  5501. else
  5502. need_locks=no
  5503. fi
  5504. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  5505. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  5506. runpath_var=
  5507. allow_undefined_flag=
  5508. enable_shared_with_static_runtimes=no
  5509. archive_cmds=
  5510. archive_expsym_cmds=
  5511. old_archive_From_new_cmds=
  5512. old_archive_from_expsyms_cmds=
  5513. export_dynamic_flag_spec=
  5514. whole_archive_flag_spec=
  5515. thread_safe_flag_spec=
  5516. hardcode_libdir_flag_spec=
  5517. hardcode_libdir_flag_spec_ld=
  5518. hardcode_libdir_separator=
  5519. hardcode_direct=no
  5520. hardcode_minus_L=no
  5521. hardcode_shlibpath_var=unsupported
  5522. link_all_deplibs=unknown
  5523. hardcode_automatic=no
  5524. module_cmds=
  5525. module_expsym_cmds=
  5526. always_export_symbols=no
  5527. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5528. # include_expsyms should be a list of space-separated symbols to be *always*
  5529. # included in the symbol list
  5530. include_expsyms=
  5531. # exclude_expsyms can be an extended regexp of symbols to exclude
  5532. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5533. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5534. # as well as any symbol that contains `d'.
  5535. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  5536. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5537. # platforms (ab)use it in PIC code, but their linkers get confused if
  5538. # the symbol is explicitly referenced. Since portable code cannot
  5539. # rely on this symbol name, it's probably fine to never include it in
  5540. # preloaded symbol tables.
  5541. extract_expsyms_cmds=
  5542. # Just being paranoid about ensuring that cc_basename is set.
  5543. for cc_temp in $compiler""; do
  5544. case $cc_temp in
  5545. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5546. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5547. \-*) ;;
  5548. *) break;;
  5549. esac
  5550. done
  5551. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5552. case $host_os in
  5553. cygwin* | mingw* | pw32*)
  5554. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5555. # When not using gcc, we currently assume that we are using
  5556. # Microsoft Visual C++.
  5557. if test "$GCC" != yes; then
  5558. with_gnu_ld=no
  5559. fi
  5560. ;;
  5561. openbsd*)
  5562. with_gnu_ld=no
  5563. ;;
  5564. esac
  5565. ld_shlibs=yes
  5566. if test "$with_gnu_ld" = yes; then
  5567. # If archive_cmds runs LD, not CC, wlarc should be empty
  5568. wlarc='${wl}'
  5569. # Set some defaults for GNU ld with shared library support. These
  5570. # are reset later if shared libraries are not supported. Putting them
  5571. # here allows them to be overridden if necessary.
  5572. runpath_var=LD_RUN_PATH
  5573. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  5574. export_dynamic_flag_spec='${wl}--export-dynamic'
  5575. # ancient GNU ld didn't support --whole-archive et. al.
  5576. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5577. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5578. else
  5579. whole_archive_flag_spec=
  5580. fi
  5581. supports_anon_versioning=no
  5582. case `$LD -v 2>/dev/null` in
  5583. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  5584. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5585. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5586. *\ 2.11.*) ;; # other 2.11 versions
  5587. *) supports_anon_versioning=yes ;;
  5588. esac
  5589. # See if GNU ld supports shared libraries.
  5590. case $host_os in
  5591. aix3* | aix4* | aix5*)
  5592. # On AIX/PPC, the GNU linker is very broken
  5593. if test "$host_cpu" != ia64; then
  5594. ld_shlibs=no
  5595. cat <<EOF 1>&2
  5596. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5597. *** to be unable to reliably create shared libraries on AIX.
  5598. *** Therefore, libtool is disabling shared libraries support. If you
  5599. *** really care for shared libraries, you may want to modify your PATH
  5600. *** so that a non-GNU linker is found, and then restart.
  5601. EOF
  5602. fi
  5603. ;;
  5604. amigaos*)
  5605. 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)'
  5606. hardcode_libdir_flag_spec='-L$libdir'
  5607. hardcode_minus_L=yes
  5608. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5609. # that the semantics of dynamic libraries on AmigaOS, at least up
  5610. # to version 4, is to share data among multiple programs linked
  5611. # with the same dynamic library. Since this doesn't match the
  5612. # behavior of shared libraries on other platforms, we can't use
  5613. # them.
  5614. ld_shlibs=no
  5615. ;;
  5616. beos*)
  5617. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5618. allow_undefined_flag=unsupported
  5619. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5620. # support --undefined. This deserves some investigation. FIXME
  5621. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5622. else
  5623. ld_shlibs=no
  5624. fi
  5625. ;;
  5626. cygwin* | mingw* | pw32*)
  5627. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  5628. # as there is no search path for DLLs.
  5629. hardcode_libdir_flag_spec='-L$libdir'
  5630. allow_undefined_flag=unsupported
  5631. always_export_symbols=no
  5632. enable_shared_with_static_runtimes=yes
  5633. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  5634. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5635. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5636. # If the export-symbols file already is a .def file (1st line
  5637. # is EXPORTS), use it as is; otherwise, prepend...
  5638. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5639. cp $export_symbols $output_objdir/$soname.def;
  5640. else
  5641. echo EXPORTS > $output_objdir/$soname.def;
  5642. cat $export_symbols >> $output_objdir/$soname.def;
  5643. fi~
  5644. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5645. else
  5646. ld_shlibs=no
  5647. fi
  5648. ;;
  5649. linux*)
  5650. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5651. tmp_addflag=
  5652. case $cc_basename,$host_cpu in
  5653. pgcc*) # Portland Group C compiler
  5654. 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'
  5655. tmp_addflag=' $pic_flag'
  5656. ;;
  5657. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  5658. 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'
  5659. tmp_addflag=' $pic_flag -Mnomain' ;;
  5660. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5661. tmp_addflag=' -i_dynamic' ;;
  5662. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5663. tmp_addflag=' -i_dynamic -nofor_main' ;;
  5664. ifc* | ifort*) # Intel Fortran compiler
  5665. tmp_addflag=' -nofor_main' ;;
  5666. esac
  5667. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5668. if test $supports_anon_versioning = yes; then
  5669. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  5670. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5671. $echo "local: *; };" >> $output_objdir/$libname.ver~
  5672. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5673. fi
  5674. else
  5675. ld_shlibs=no
  5676. fi
  5677. ;;
  5678. netbsd*)
  5679. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5680. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5681. wlarc=
  5682. else
  5683. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5684. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5685. fi
  5686. ;;
  5687. solaris* | sysv5*)
  5688. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5689. ld_shlibs=no
  5690. cat <<EOF 1>&2
  5691. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5692. *** create shared libraries on Solaris systems. Therefore, libtool
  5693. *** is disabling shared libraries support. We urge you to upgrade GNU
  5694. *** binutils to release 2.9.1 or newer. Another option is to modify
  5695. *** your PATH or compiler configuration so that the native linker is
  5696. *** used, and then restart.
  5697. EOF
  5698. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5699. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5700. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5701. else
  5702. ld_shlibs=no
  5703. fi
  5704. ;;
  5705. sunos4*)
  5706. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5707. wlarc=
  5708. hardcode_direct=yes
  5709. hardcode_shlibpath_var=no
  5710. ;;
  5711. *)
  5712. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5713. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5714. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5715. else
  5716. ld_shlibs=no
  5717. fi
  5718. ;;
  5719. esac
  5720. if test "$ld_shlibs" = no; then
  5721. runpath_var=
  5722. hardcode_libdir_flag_spec=
  5723. export_dynamic_flag_spec=
  5724. whole_archive_flag_spec=
  5725. fi
  5726. else
  5727. # PORTME fill in a description of your system's linker (not GNU ld)
  5728. case $host_os in
  5729. aix3*)
  5730. allow_undefined_flag=unsupported
  5731. always_export_symbols=yes
  5732. 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'
  5733. # Note: this linker hardcodes the directories in LIBPATH if there
  5734. # are no directories specified by -L.
  5735. hardcode_minus_L=yes
  5736. if test "$GCC" = yes && test -z "$link_static_flag"; then
  5737. # Neither direct hardcoding nor static linking is supported with a
  5738. # broken collect2.
  5739. hardcode_direct=unsupported
  5740. fi
  5741. ;;
  5742. aix4* | aix5*)
  5743. if test "$host_cpu" = ia64; then
  5744. # On IA64, the linker does run time linking by default, so we don't
  5745. # have to do anything special.
  5746. aix_use_runtimelinking=no
  5747. exp_sym_flag='-Bexport'
  5748. no_entry_flag=""
  5749. else
  5750. # If we're using GNU nm, then we don't want the "-C" option.
  5751. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5752. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5753. 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'
  5754. else
  5755. 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'
  5756. fi
  5757. aix_use_runtimelinking=no
  5758. # Test if we are trying to use run time linking or normal
  5759. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5760. # need to do runtime linking.
  5761. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  5762. for ld_flag in $LDFLAGS; do
  5763. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5764. aix_use_runtimelinking=yes
  5765. break
  5766. fi
  5767. done
  5768. esac
  5769. exp_sym_flag='-bexport'
  5770. no_entry_flag='-bnoentry'
  5771. fi
  5772. # When large executables or shared objects are built, AIX ld can
  5773. # have problems creating the table of contents. If linking a library
  5774. # or program results in "error TOC overflow" add -mminimal-toc to
  5775. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5776. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5777. archive_cmds=''
  5778. hardcode_direct=yes
  5779. hardcode_libdir_separator=':'
  5780. link_all_deplibs=yes
  5781. if test "$GCC" = yes; then
  5782. case $host_os in aix4.[012]|aix4.[012].*)
  5783. # We only want to do this on AIX 4.2 and lower, the check
  5784. # below for broken collect2 doesn't work under 4.3+
  5785. collect2name=`${CC} -print-prog-name=collect2`
  5786. if test -f "$collect2name" && \
  5787. strings "$collect2name" | grep resolve_lib_name >/dev/null
  5788. then
  5789. # We have reworked collect2
  5790. hardcode_direct=yes
  5791. else
  5792. # We have old collect2
  5793. hardcode_direct=unsupported
  5794. # It fails to find uninstalled libraries when the uninstalled
  5795. # path is not listed in the libpath. Setting hardcode_minus_L
  5796. # to unsupported forces relinking
  5797. hardcode_minus_L=yes
  5798. hardcode_libdir_flag_spec='-L$libdir'
  5799. hardcode_libdir_separator=
  5800. fi
  5801. esac
  5802. shared_flag='-shared'
  5803. if test "$aix_use_runtimelinking" = yes; then
  5804. shared_flag="$shared_flag "'${wl}-G'
  5805. fi
  5806. else
  5807. # not using gcc
  5808. if test "$host_cpu" = ia64; then
  5809. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5810. # chokes on -Wl,-G. The following line is correct:
  5811. shared_flag='-G'
  5812. else
  5813. if test "$aix_use_runtimelinking" = yes; then
  5814. shared_flag='${wl}-G'
  5815. else
  5816. shared_flag='${wl}-bM:SRE'
  5817. fi
  5818. fi
  5819. fi
  5820. # It seems that -bexpall does not export symbols beginning with
  5821. # underscore (_), so it is better to generate a list of symbols to export.
  5822. always_export_symbols=yes
  5823. if test "$aix_use_runtimelinking" = yes; then
  5824. # Warning - without using the other runtime loading flags (-brtl),
  5825. # -berok will link without error, but may produce a broken library.
  5826. allow_undefined_flag='-berok'
  5827. # Determine the default libpath from the value encoded in an empty executable.
  5828. cat >conftest.$ac_ext <<_ACEOF
  5829. /* confdefs.h. */
  5830. _ACEOF
  5831. cat confdefs.h >>conftest.$ac_ext
  5832. cat >>conftest.$ac_ext <<_ACEOF
  5833. /* end confdefs.h. */
  5834. int
  5835. main ()
  5836. {
  5837. ;
  5838. return 0;
  5839. }
  5840. _ACEOF
  5841. rm -f conftest.$ac_objext conftest$ac_exeext
  5842. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5843. (eval $ac_link) 2>conftest.er1
  5844. ac_status=$?
  5845. grep -v '^ *+' conftest.er1 >conftest.err
  5846. rm -f conftest.er1
  5847. cat conftest.err >&5
  5848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5849. (exit $ac_status); } &&
  5850. { ac_try='test -z "$ac_c_werror_flag"
  5851. || test ! -s conftest.err'
  5852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5853. (eval $ac_try) 2>&5
  5854. ac_status=$?
  5855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5856. (exit $ac_status); }; } &&
  5857. { ac_try='test -s conftest$ac_exeext'
  5858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5859. (eval $ac_try) 2>&5
  5860. ac_status=$?
  5861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5862. (exit $ac_status); }; }; then
  5863. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5864. }'`
  5865. # Check for a 64-bit object if we didn't find anything.
  5866. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5867. }'`; fi
  5868. else
  5869. echo "$as_me: failed program was:" >&5
  5870. sed 's/^/| /' conftest.$ac_ext >&5
  5871. fi
  5872. rm -f conftest.err conftest.$ac_objext \
  5873. conftest$ac_exeext conftest.$ac_ext
  5874. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  5875. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  5876. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5877. else
  5878. if test "$host_cpu" = ia64; then
  5879. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  5880. allow_undefined_flag="-z nodefs"
  5881. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  5882. else
  5883. # Determine the default libpath from the value encoded in an empty executable.
  5884. cat >conftest.$ac_ext <<_ACEOF
  5885. /* confdefs.h. */
  5886. _ACEOF
  5887. cat confdefs.h >>conftest.$ac_ext
  5888. cat >>conftest.$ac_ext <<_ACEOF
  5889. /* end confdefs.h. */
  5890. int
  5891. main ()
  5892. {
  5893. ;
  5894. return 0;
  5895. }
  5896. _ACEOF
  5897. rm -f conftest.$ac_objext conftest$ac_exeext
  5898. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5899. (eval $ac_link) 2>conftest.er1
  5900. ac_status=$?
  5901. grep -v '^ *+' conftest.er1 >conftest.err
  5902. rm -f conftest.er1
  5903. cat conftest.err >&5
  5904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5905. (exit $ac_status); } &&
  5906. { ac_try='test -z "$ac_c_werror_flag"
  5907. || test ! -s conftest.err'
  5908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5909. (eval $ac_try) 2>&5
  5910. ac_status=$?
  5911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5912. (exit $ac_status); }; } &&
  5913. { ac_try='test -s conftest$ac_exeext'
  5914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5915. (eval $ac_try) 2>&5
  5916. ac_status=$?
  5917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5918. (exit $ac_status); }; }; then
  5919. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5920. }'`
  5921. # Check for a 64-bit object if we didn't find anything.
  5922. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5923. }'`; fi
  5924. else
  5925. echo "$as_me: failed program was:" >&5
  5926. sed 's/^/| /' conftest.$ac_ext >&5
  5927. fi
  5928. rm -f conftest.err conftest.$ac_objext \
  5929. conftest$ac_exeext conftest.$ac_ext
  5930. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  5931. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  5932. # Warning - without using the other run time loading flags,
  5933. # -berok will link without error, but may produce a broken library.
  5934. no_undefined_flag=' ${wl}-bernotok'
  5935. allow_undefined_flag=' ${wl}-berok'
  5936. # -bexpall does not export symbols beginning with underscore (_)
  5937. always_export_symbols=yes
  5938. # Exported symbols can be pulled into shared objects from archives
  5939. whole_archive_flag_spec=' '
  5940. archive_cmds_need_lc=yes
  5941. # This is similar to how AIX traditionally builds it's shared libraries.
  5942. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5943. fi
  5944. fi
  5945. ;;
  5946. amigaos*)
  5947. 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)'
  5948. hardcode_libdir_flag_spec='-L$libdir'
  5949. hardcode_minus_L=yes
  5950. # see comment about different semantics on the GNU ld section
  5951. ld_shlibs=no
  5952. ;;
  5953. bsdi[45]*)
  5954. export_dynamic_flag_spec=-rdynamic
  5955. ;;
  5956. cygwin* | mingw* | pw32*)
  5957. # When not using gcc, we currently assume that we are using
  5958. # Microsoft Visual C++.
  5959. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5960. # no search path for DLLs.
  5961. hardcode_libdir_flag_spec=' '
  5962. allow_undefined_flag=unsupported
  5963. # Tell ltmain to make .lib files, not .a files.
  5964. libext=lib
  5965. # Tell ltmain to make .dll files, not .so files.
  5966. shrext_cmds=".dll"
  5967. # FIXME: Setting linknames here is a bad hack.
  5968. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5969. # The linker will automatically build a .lib file if we build a DLL.
  5970. old_archive_From_new_cmds='true'
  5971. # FIXME: Should let the user specify the lib program.
  5972. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  5973. fix_srcfile_path='`cygpath -w "$srcfile"`'
  5974. enable_shared_with_static_runtimes=yes
  5975. ;;
  5976. darwin* | rhapsody*)
  5977. case "$host_os" in
  5978. rhapsody* | darwin1.[012])
  5979. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  5980. ;;
  5981. *) # Darwin 1.3 on
  5982. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5983. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5984. else
  5985. case ${MACOSX_DEPLOYMENT_TARGET} in
  5986. 10.[012])
  5987. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5988. ;;
  5989. 10.*)
  5990. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  5991. ;;
  5992. esac
  5993. fi
  5994. ;;
  5995. esac
  5996. archive_cmds_need_lc=no
  5997. hardcode_direct=no
  5998. hardcode_automatic=yes
  5999. hardcode_shlibpath_var=unsupported
  6000. whole_archive_flag_spec=''
  6001. link_all_deplibs=yes
  6002. if test "$GCC" = yes ; then
  6003. output_verbose_link_cmd='echo'
  6004. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6005. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6006. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  6007. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6008. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6009. else
  6010. case $cc_basename in
  6011. xlc*)
  6012. output_verbose_link_cmd='echo'
  6013. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6014. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6015. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  6016. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6017. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6018. ;;
  6019. *)
  6020. ld_shlibs=no
  6021. ;;
  6022. esac
  6023. fi
  6024. ;;
  6025. dgux*)
  6026. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6027. hardcode_libdir_flag_spec='-L$libdir'
  6028. hardcode_shlibpath_var=no
  6029. ;;
  6030. freebsd1*)
  6031. ld_shlibs=no
  6032. ;;
  6033. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6034. # support. Future versions do this automatically, but an explicit c++rt0.o
  6035. # does not break anything, and helps significantly (at the cost of a little
  6036. # extra space).
  6037. freebsd2.2*)
  6038. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6039. hardcode_libdir_flag_spec='-R$libdir'
  6040. hardcode_direct=yes
  6041. hardcode_shlibpath_var=no
  6042. ;;
  6043. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6044. freebsd2*)
  6045. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6046. hardcode_direct=yes
  6047. hardcode_minus_L=yes
  6048. hardcode_shlibpath_var=no
  6049. ;;
  6050. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6051. freebsd* | kfreebsd*-gnu | dragonfly*)
  6052. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6053. hardcode_libdir_flag_spec='-R$libdir'
  6054. hardcode_direct=yes
  6055. hardcode_shlibpath_var=no
  6056. ;;
  6057. hpux9*)
  6058. if test "$GCC" = yes; then
  6059. 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'
  6060. else
  6061. 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'
  6062. fi
  6063. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6064. hardcode_libdir_separator=:
  6065. hardcode_direct=yes
  6066. # hardcode_minus_L: Not really in the search PATH,
  6067. # but as the default location of the library.
  6068. hardcode_minus_L=yes
  6069. export_dynamic_flag_spec='${wl}-E'
  6070. ;;
  6071. hpux10* | hpux11*)
  6072. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6073. case "$host_cpu" in
  6074. hppa*64*|ia64*)
  6075. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6076. ;;
  6077. *)
  6078. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6079. ;;
  6080. esac
  6081. else
  6082. case "$host_cpu" in
  6083. hppa*64*|ia64*)
  6084. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  6085. ;;
  6086. *)
  6087. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6088. ;;
  6089. esac
  6090. fi
  6091. if test "$with_gnu_ld" = no; then
  6092. case "$host_cpu" in
  6093. hppa*64*)
  6094. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6095. hardcode_libdir_flag_spec_ld='+b $libdir'
  6096. hardcode_libdir_separator=:
  6097. hardcode_direct=no
  6098. hardcode_shlibpath_var=no
  6099. ;;
  6100. ia64*)
  6101. hardcode_libdir_flag_spec='-L$libdir'
  6102. hardcode_direct=no
  6103. hardcode_shlibpath_var=no
  6104. # hardcode_minus_L: Not really in the search PATH,
  6105. # but as the default location of the library.
  6106. hardcode_minus_L=yes
  6107. ;;
  6108. *)
  6109. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6110. hardcode_libdir_separator=:
  6111. hardcode_direct=yes
  6112. export_dynamic_flag_spec='${wl}-E'
  6113. # hardcode_minus_L: Not really in the search PATH,
  6114. # but as the default location of the library.
  6115. hardcode_minus_L=yes
  6116. ;;
  6117. esac
  6118. fi
  6119. ;;
  6120. irix5* | irix6* | nonstopux*)
  6121. if test "$GCC" = yes; then
  6122. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6123. else
  6124. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6125. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6126. fi
  6127. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6128. hardcode_libdir_separator=:
  6129. link_all_deplibs=yes
  6130. ;;
  6131. netbsd*)
  6132. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6133. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6134. else
  6135. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6136. fi
  6137. hardcode_libdir_flag_spec='-R$libdir'
  6138. hardcode_direct=yes
  6139. hardcode_shlibpath_var=no
  6140. ;;
  6141. newsos6)
  6142. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6143. hardcode_direct=yes
  6144. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6145. hardcode_libdir_separator=:
  6146. hardcode_shlibpath_var=no
  6147. ;;
  6148. openbsd*)
  6149. hardcode_direct=yes
  6150. hardcode_shlibpath_var=no
  6151. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6152. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6153. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6154. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6155. export_dynamic_flag_spec='${wl}-E'
  6156. else
  6157. case $host_os in
  6158. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6159. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6160. hardcode_libdir_flag_spec='-R$libdir'
  6161. ;;
  6162. *)
  6163. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6164. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6165. ;;
  6166. esac
  6167. fi
  6168. ;;
  6169. os2*)
  6170. hardcode_libdir_flag_spec='-L$libdir'
  6171. hardcode_minus_L=yes
  6172. allow_undefined_flag=unsupported
  6173. 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'
  6174. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6175. ;;
  6176. osf3*)
  6177. if test "$GCC" = yes; then
  6178. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6179. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6180. else
  6181. allow_undefined_flag=' -expect_unresolved \*'
  6182. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6183. fi
  6184. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6185. hardcode_libdir_separator=:
  6186. ;;
  6187. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6188. if test "$GCC" = yes; then
  6189. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6190. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6191. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6192. else
  6193. allow_undefined_flag=' -expect_unresolved \*'
  6194. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6195. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6196. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  6197. # Both c and cxx compiler support -rpath directly
  6198. hardcode_libdir_flag_spec='-rpath $libdir'
  6199. fi
  6200. hardcode_libdir_separator=:
  6201. ;;
  6202. sco3.2v5*)
  6203. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6204. hardcode_shlibpath_var=no
  6205. export_dynamic_flag_spec='${wl}-Bexport'
  6206. runpath_var=LD_RUN_PATH
  6207. hardcode_runpath_var=yes
  6208. ;;
  6209. solaris*)
  6210. no_undefined_flag=' -z text'
  6211. if test "$GCC" = yes; then
  6212. wlarc='${wl}'
  6213. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6214. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6215. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6216. else
  6217. wlarc=''
  6218. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6219. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6220. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6221. fi
  6222. hardcode_libdir_flag_spec='-R$libdir'
  6223. hardcode_shlibpath_var=no
  6224. case $host_os in
  6225. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6226. *)
  6227. # The compiler driver will combine linker options so we
  6228. # cannot just pass the convience library names through
  6229. # without $wl, iff we do not link with $LD.
  6230. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6231. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6232. case $wlarc in
  6233. '')
  6234. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6235. *)
  6236. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  6237. esac ;;
  6238. esac
  6239. link_all_deplibs=yes
  6240. ;;
  6241. sunos4*)
  6242. if test "x$host_vendor" = xsequent; then
  6243. # Use $CC to link under sequent, because it throws in some extra .o
  6244. # files that make .init and .fini sections work.
  6245. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6246. else
  6247. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6248. fi
  6249. hardcode_libdir_flag_spec='-L$libdir'
  6250. hardcode_direct=yes
  6251. hardcode_minus_L=yes
  6252. hardcode_shlibpath_var=no
  6253. ;;
  6254. sysv4)
  6255. case $host_vendor in
  6256. sni)
  6257. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6258. hardcode_direct=yes # is this really true???
  6259. ;;
  6260. siemens)
  6261. ## LD is ld it makes a PLAMLIB
  6262. ## CC just makes a GrossModule.
  6263. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6264. reload_cmds='$CC -r -o $output$reload_objs'
  6265. hardcode_direct=no
  6266. ;;
  6267. motorola)
  6268. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6269. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6270. ;;
  6271. esac
  6272. runpath_var='LD_RUN_PATH'
  6273. hardcode_shlibpath_var=no
  6274. ;;
  6275. sysv4.3*)
  6276. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6277. hardcode_shlibpath_var=no
  6278. export_dynamic_flag_spec='-Bexport'
  6279. ;;
  6280. sysv4*MP*)
  6281. if test -d /usr/nec; then
  6282. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6283. hardcode_shlibpath_var=no
  6284. runpath_var=LD_RUN_PATH
  6285. hardcode_runpath_var=yes
  6286. ld_shlibs=yes
  6287. fi
  6288. ;;
  6289. sysv4.2uw2*)
  6290. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6291. hardcode_direct=yes
  6292. hardcode_minus_L=no
  6293. hardcode_shlibpath_var=no
  6294. hardcode_runpath_var=yes
  6295. runpath_var=LD_RUN_PATH
  6296. ;;
  6297. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  6298. no_undefined_flag='${wl}-z ${wl}text'
  6299. if test "$GCC" = yes; then
  6300. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6301. else
  6302. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6303. fi
  6304. runpath_var='LD_RUN_PATH'
  6305. hardcode_shlibpath_var=no
  6306. ;;
  6307. sysv5*)
  6308. no_undefined_flag=' -z text'
  6309. # $CC -shared without GNU ld will not create a library from C++
  6310. # object files and a static libstdc++, better avoid it by now
  6311. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6312. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6313. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6314. hardcode_libdir_flag_spec=
  6315. hardcode_shlibpath_var=no
  6316. runpath_var='LD_RUN_PATH'
  6317. ;;
  6318. uts4*)
  6319. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6320. hardcode_libdir_flag_spec='-L$libdir'
  6321. hardcode_shlibpath_var=no
  6322. ;;
  6323. *)
  6324. ld_shlibs=no
  6325. ;;
  6326. esac
  6327. fi
  6328. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  6329. echo "${ECHO_T}$ld_shlibs" >&6
  6330. test "$ld_shlibs" = no && can_build_shared=no
  6331. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6332. if test "$GCC" = yes; then
  6333. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6334. fi
  6335. #
  6336. # Do we need to explicitly link libc?
  6337. #
  6338. case "x$archive_cmds_need_lc" in
  6339. x|xyes)
  6340. # Assume -lc should be added
  6341. archive_cmds_need_lc=yes
  6342. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6343. case $archive_cmds in
  6344. *'~'*)
  6345. # FIXME: we may have to deal with multi-command sequences.
  6346. ;;
  6347. '$CC '*)
  6348. # Test whether the compiler implicitly links with -lc since on some
  6349. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6350. # to ld, don't add -lc before -lgcc.
  6351. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6352. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6353. $rm conftest*
  6354. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6355. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6356. (eval $ac_compile) 2>&5
  6357. ac_status=$?
  6358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6359. (exit $ac_status); } 2>conftest.err; then
  6360. soname=conftest
  6361. lib=conftest
  6362. libobjs=conftest.$ac_objext
  6363. deplibs=
  6364. wl=$lt_prog_compiler_wl
  6365. compiler_flags=-v
  6366. linker_flags=-v
  6367. verstring=
  6368. output_objdir=.
  6369. libname=conftest
  6370. lt_save_allow_undefined_flag=$allow_undefined_flag
  6371. allow_undefined_flag=
  6372. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6373. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6374. ac_status=$?
  6375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6376. (exit $ac_status); }
  6377. then
  6378. archive_cmds_need_lc=no
  6379. else
  6380. archive_cmds_need_lc=yes
  6381. fi
  6382. allow_undefined_flag=$lt_save_allow_undefined_flag
  6383. else
  6384. cat conftest.err 1>&5
  6385. fi
  6386. $rm conftest*
  6387. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  6388. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  6389. ;;
  6390. esac
  6391. fi
  6392. ;;
  6393. esac
  6394. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  6395. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  6396. library_names_spec=
  6397. libname_spec='lib$name'
  6398. soname_spec=
  6399. shrext_cmds=".so"
  6400. postinstall_cmds=
  6401. postuninstall_cmds=
  6402. finish_cmds=
  6403. finish_eval=
  6404. shlibpath_var=
  6405. shlibpath_overrides_runpath=unknown
  6406. version_type=none
  6407. dynamic_linker="$host_os ld.so"
  6408. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6409. if test "$GCC" = yes; then
  6410. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6411. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  6412. # if the path contains ";" then we assume it to be the separator
  6413. # otherwise default to the standard path separator (i.e. ":") - it is
  6414. # assumed that no part of a normal pathname contains ";" but that should
  6415. # okay in the real world where ";" in dirpaths is itself problematic.
  6416. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6417. else
  6418. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6419. fi
  6420. else
  6421. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6422. fi
  6423. need_lib_prefix=unknown
  6424. hardcode_into_libs=no
  6425. # when you set need_version to no, make sure it does not cause -set_version
  6426. # flags to be left without arguments
  6427. need_version=unknown
  6428. case $host_os in
  6429. aix3*)
  6430. version_type=linux
  6431. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  6432. shlibpath_var=LIBPATH
  6433. # AIX 3 has no versioning support, so we append a major version to the name.
  6434. soname_spec='${libname}${release}${shared_ext}$major'
  6435. ;;
  6436. aix4* | aix5*)
  6437. version_type=linux
  6438. need_lib_prefix=no
  6439. need_version=no
  6440. hardcode_into_libs=yes
  6441. if test "$host_cpu" = ia64; then
  6442. # AIX 5 supports IA64
  6443. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  6444. shlibpath_var=LD_LIBRARY_PATH
  6445. else
  6446. # With GCC up to 2.95.x, collect2 would create an import file
  6447. # for dependence libraries. The import file would start with
  6448. # the line `#! .'. This would cause the generated library to
  6449. # depend on `.', always an invalid library. This was fixed in
  6450. # development snapshots of GCC prior to 3.0.
  6451. case $host_os in
  6452. aix4 | aix4.[01] | aix4.[01].*)
  6453. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  6454. echo ' yes '
  6455. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  6456. :
  6457. else
  6458. can_build_shared=no
  6459. fi
  6460. ;;
  6461. esac
  6462. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  6463. # soname into executable. Probably we can add versioning support to
  6464. # collect2, so additional links can be useful in future.
  6465. if test "$aix_use_runtimelinking" = yes; then
  6466. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  6467. # instead of lib<name>.a to let people know that these are not
  6468. # typical AIX shared libraries.
  6469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6470. else
  6471. # We preserve .a as extension for shared libraries through AIX4.2
  6472. # and later when we are not doing run time linking.
  6473. library_names_spec='${libname}${release}.a $libname.a'
  6474. soname_spec='${libname}${release}${shared_ext}$major'
  6475. fi
  6476. shlibpath_var=LIBPATH
  6477. fi
  6478. ;;
  6479. amigaos*)
  6480. library_names_spec='$libname.ixlibrary $libname.a'
  6481. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6482. 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'
  6483. ;;
  6484. beos*)
  6485. library_names_spec='${libname}${shared_ext}'
  6486. dynamic_linker="$host_os ld.so"
  6487. shlibpath_var=LIBRARY_PATH
  6488. ;;
  6489. bsdi[45]*)
  6490. version_type=linux
  6491. need_version=no
  6492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6493. soname_spec='${libname}${release}${shared_ext}$major'
  6494. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  6495. shlibpath_var=LD_LIBRARY_PATH
  6496. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  6497. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  6498. # the default ld.so.conf also contains /usr/contrib/lib and
  6499. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  6500. # libtool to hard-code these into programs
  6501. ;;
  6502. cygwin* | mingw* | pw32*)
  6503. version_type=windows
  6504. shrext_cmds=".dll"
  6505. need_version=no
  6506. need_lib_prefix=no
  6507. case $GCC,$host_os in
  6508. yes,cygwin* | yes,mingw* | yes,pw32*)
  6509. library_names_spec='$libname.dll.a'
  6510. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  6511. postinstall_cmds='base_file=`basename \${file}`~
  6512. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  6513. dldir=$destdir/`dirname \$dlpath`~
  6514. test -d \$dldir || mkdir -p \$dldir~
  6515. $install_prog $dir/$dlname \$dldir/$dlname'
  6516. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  6517. dlpath=$dir/\$dldll~
  6518. $rm \$dlpath'
  6519. shlibpath_overrides_runpath=yes
  6520. case $host_os in
  6521. cygwin*)
  6522. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  6523. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6524. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  6525. ;;
  6526. mingw*)
  6527. # MinGW DLLs use traditional 'lib' prefix
  6528. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6529. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6530. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  6531. # It is most probably a Windows format PATH printed by
  6532. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  6533. # path with ; separators, and with drive letters. We can handle the
  6534. # drive letters (cygwin fileutils understands them), so leave them,
  6535. # especially as we might pass files found there to a mingw objdump,
  6536. # which wouldn't understand a cygwinified path. Ahh.
  6537. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6538. else
  6539. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6540. fi
  6541. ;;
  6542. pw32*)
  6543. # pw32 DLLs use 'pw' prefix rather than 'lib'
  6544. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6545. ;;
  6546. esac
  6547. ;;
  6548. *)
  6549. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  6550. ;;
  6551. esac
  6552. dynamic_linker='Win32 ld.exe'
  6553. # FIXME: first we should search . and the directory the executable is in
  6554. shlibpath_var=PATH
  6555. ;;
  6556. darwin* | rhapsody*)
  6557. dynamic_linker="$host_os dyld"
  6558. version_type=darwin
  6559. need_lib_prefix=no
  6560. need_version=no
  6561. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  6562. soname_spec='${libname}${release}${major}$shared_ext'
  6563. shlibpath_overrides_runpath=yes
  6564. shlibpath_var=DYLD_LIBRARY_PATH
  6565. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  6566. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  6567. if test "$GCC" = yes; then
  6568. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  6569. else
  6570. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  6571. fi
  6572. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  6573. ;;
  6574. dgux*)
  6575. version_type=linux
  6576. need_lib_prefix=no
  6577. need_version=no
  6578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  6579. soname_spec='${libname}${release}${shared_ext}$major'
  6580. shlibpath_var=LD_LIBRARY_PATH
  6581. ;;
  6582. freebsd1*)
  6583. dynamic_linker=no
  6584. ;;
  6585. kfreebsd*-gnu)
  6586. version_type=linux
  6587. need_lib_prefix=no
  6588. need_version=no
  6589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6590. soname_spec='${libname}${release}${shared_ext}$major'
  6591. shlibpath_var=LD_LIBRARY_PATH
  6592. shlibpath_overrides_runpath=no
  6593. hardcode_into_libs=yes
  6594. dynamic_linker='GNU ld.so'
  6595. ;;
  6596. freebsd* | dragonfly*)
  6597. # DragonFly does not have aout. When/if they implement a new
  6598. # versioning mechanism, adjust this.
  6599. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  6600. version_type=freebsd-$objformat
  6601. case $version_type in
  6602. freebsd-elf*)
  6603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  6604. need_version=no
  6605. need_lib_prefix=no
  6606. ;;
  6607. freebsd-*)
  6608. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  6609. need_version=yes
  6610. ;;
  6611. esac
  6612. shlibpath_var=LD_LIBRARY_PATH
  6613. case $host_os in
  6614. freebsd2*)
  6615. shlibpath_overrides_runpath=yes
  6616. ;;
  6617. freebsd3.[01]* | freebsdelf3.[01]*)
  6618. shlibpath_overrides_runpath=yes
  6619. hardcode_into_libs=yes
  6620. ;;
  6621. *) # from 3.2 on
  6622. shlibpath_overrides_runpath=no
  6623. hardcode_into_libs=yes
  6624. ;;
  6625. esac
  6626. ;;
  6627. gnu*)
  6628. version_type=linux
  6629. need_lib_prefix=no
  6630. need_version=no
  6631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  6632. soname_spec='${libname}${release}${shared_ext}$major'
  6633. shlibpath_var=LD_LIBRARY_PATH
  6634. hardcode_into_libs=yes
  6635. ;;
  6636. hpux9* | hpux10* | hpux11*)
  6637. # Give a soname corresponding to the major version so that dld.sl refuses to
  6638. # link against other versions.
  6639. version_type=sunos
  6640. need_lib_prefix=no
  6641. need_version=no
  6642. case "$host_cpu" in
  6643. ia64*)
  6644. shrext_cmds='.so'
  6645. hardcode_into_libs=yes
  6646. dynamic_linker="$host_os dld.so"
  6647. shlibpath_var=LD_LIBRARY_PATH
  6648. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6650. soname_spec='${libname}${release}${shared_ext}$major'
  6651. if test "X$HPUX_IA64_MODE" = X32; then
  6652. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  6653. else
  6654. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  6655. fi
  6656. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6657. ;;
  6658. hppa*64*)
  6659. shrext_cmds='.sl'
  6660. hardcode_into_libs=yes
  6661. dynamic_linker="$host_os dld.sl"
  6662. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  6663. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6665. soname_spec='${libname}${release}${shared_ext}$major'
  6666. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  6667. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6668. ;;
  6669. *)
  6670. shrext_cmds='.sl'
  6671. dynamic_linker="$host_os dld.sl"
  6672. shlibpath_var=SHLIB_PATH
  6673. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  6674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6675. soname_spec='${libname}${release}${shared_ext}$major'
  6676. ;;
  6677. esac
  6678. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  6679. postinstall_cmds='chmod 555 $lib'
  6680. ;;
  6681. irix5* | irix6* | nonstopux*)
  6682. case $host_os in
  6683. nonstopux*) version_type=nonstopux ;;
  6684. *)
  6685. if test "$lt_cv_prog_gnu_ld" = yes; then
  6686. version_type=linux
  6687. else
  6688. version_type=irix
  6689. fi ;;
  6690. esac
  6691. need_lib_prefix=no
  6692. need_version=no
  6693. soname_spec='${libname}${release}${shared_ext}$major'
  6694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  6695. case $host_os in
  6696. irix5* | nonstopux*)
  6697. libsuff= shlibsuff=
  6698. ;;
  6699. *)
  6700. case $LD in # libtool.m4 will add one of these switches to LD
  6701. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  6702. libsuff= shlibsuff= libmagic=32-bit;;
  6703. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  6704. libsuff=32 shlibsuff=N32 libmagic=N32;;
  6705. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  6706. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  6707. *) libsuff= shlibsuff= libmagic=never-match;;
  6708. esac
  6709. ;;
  6710. esac
  6711. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  6712. shlibpath_overrides_runpath=no
  6713. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  6714. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  6715. hardcode_into_libs=yes
  6716. ;;
  6717. # No shared lib support for Linux oldld, aout, or coff.
  6718. linux*oldld* | linux*aout* | linux*coff*)
  6719. dynamic_linker=no
  6720. ;;
  6721. # This must be Linux ELF.
  6722. linux*)
  6723. version_type=linux
  6724. need_lib_prefix=no
  6725. need_version=no
  6726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6727. soname_spec='${libname}${release}${shared_ext}$major'
  6728. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  6729. shlibpath_var=LD_LIBRARY_PATH
  6730. shlibpath_overrides_runpath=no
  6731. # This implies no fast_install, which is unacceptable.
  6732. # Some rework will be needed to allow for fast_install
  6733. # before this can be enabled.
  6734. hardcode_into_libs=yes
  6735. # Append ld.so.conf contents to the search path
  6736. if test -f /etc/ld.so.conf; then
  6737. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  6738. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  6739. fi
  6740. # We used to test for /lib/ld.so.1 and disable shared libraries on
  6741. # powerpc, because MkLinux only supported shared libraries with the
  6742. # GNU dynamic linker. Since this was broken with cross compilers,
  6743. # most powerpc-linux boxes support dynamic linking these days and
  6744. # people can always --disable-shared, the test was removed, and we
  6745. # assume the GNU/Linux dynamic linker is in use.
  6746. dynamic_linker='GNU/Linux ld.so'
  6747. ;;
  6748. knetbsd*-gnu)
  6749. version_type=linux
  6750. need_lib_prefix=no
  6751. need_version=no
  6752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6753. soname_spec='${libname}${release}${shared_ext}$major'
  6754. shlibpath_var=LD_LIBRARY_PATH
  6755. shlibpath_overrides_runpath=no
  6756. hardcode_into_libs=yes
  6757. dynamic_linker='GNU ld.so'
  6758. ;;
  6759. netbsd*)
  6760. version_type=sunos
  6761. need_lib_prefix=no
  6762. need_version=no
  6763. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6765. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6766. dynamic_linker='NetBSD (a.out) ld.so'
  6767. else
  6768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6769. soname_spec='${libname}${release}${shared_ext}$major'
  6770. dynamic_linker='NetBSD ld.elf_so'
  6771. fi
  6772. shlibpath_var=LD_LIBRARY_PATH
  6773. shlibpath_overrides_runpath=yes
  6774. hardcode_into_libs=yes
  6775. ;;
  6776. newsos6)
  6777. version_type=linux
  6778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6779. shlibpath_var=LD_LIBRARY_PATH
  6780. shlibpath_overrides_runpath=yes
  6781. ;;
  6782. nto-qnx*)
  6783. version_type=linux
  6784. need_lib_prefix=no
  6785. need_version=no
  6786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6787. soname_spec='${libname}${release}${shared_ext}$major'
  6788. shlibpath_var=LD_LIBRARY_PATH
  6789. shlibpath_overrides_runpath=yes
  6790. ;;
  6791. openbsd*)
  6792. version_type=sunos
  6793. need_lib_prefix=no
  6794. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  6795. case $host_os in
  6796. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  6797. *) need_version=no ;;
  6798. esac
  6799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6800. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6801. shlibpath_var=LD_LIBRARY_PATH
  6802. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6803. case $host_os in
  6804. openbsd2.[89] | openbsd2.[89].*)
  6805. shlibpath_overrides_runpath=no
  6806. ;;
  6807. *)
  6808. shlibpath_overrides_runpath=yes
  6809. ;;
  6810. esac
  6811. else
  6812. shlibpath_overrides_runpath=yes
  6813. fi
  6814. ;;
  6815. os2*)
  6816. libname_spec='$name'
  6817. shrext_cmds=".dll"
  6818. need_lib_prefix=no
  6819. library_names_spec='$libname${shared_ext} $libname.a'
  6820. dynamic_linker='OS/2 ld.exe'
  6821. shlibpath_var=LIBPATH
  6822. ;;
  6823. osf3* | osf4* | osf5*)
  6824. version_type=osf
  6825. need_lib_prefix=no
  6826. need_version=no
  6827. soname_spec='${libname}${release}${shared_ext}$major'
  6828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6829. shlibpath_var=LD_LIBRARY_PATH
  6830. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  6831. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  6832. ;;
  6833. sco3.2v5*)
  6834. version_type=osf
  6835. soname_spec='${libname}${release}${shared_ext}$major'
  6836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6837. shlibpath_var=LD_LIBRARY_PATH
  6838. ;;
  6839. solaris*)
  6840. version_type=linux
  6841. need_lib_prefix=no
  6842. need_version=no
  6843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6844. soname_spec='${libname}${release}${shared_ext}$major'
  6845. shlibpath_var=LD_LIBRARY_PATH
  6846. shlibpath_overrides_runpath=yes
  6847. hardcode_into_libs=yes
  6848. # ldd complains unless libraries are executable
  6849. postinstall_cmds='chmod +x $lib'
  6850. ;;
  6851. sunos4*)
  6852. version_type=sunos
  6853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6854. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  6855. shlibpath_var=LD_LIBRARY_PATH
  6856. shlibpath_overrides_runpath=yes
  6857. if test "$with_gnu_ld" = yes; then
  6858. need_lib_prefix=no
  6859. fi
  6860. need_version=yes
  6861. ;;
  6862. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6863. version_type=linux
  6864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6865. soname_spec='${libname}${release}${shared_ext}$major'
  6866. shlibpath_var=LD_LIBRARY_PATH
  6867. case $host_vendor in
  6868. sni)
  6869. shlibpath_overrides_runpath=no
  6870. need_lib_prefix=no
  6871. export_dynamic_flag_spec='${wl}-Blargedynsym'
  6872. runpath_var=LD_RUN_PATH
  6873. ;;
  6874. siemens)
  6875. need_lib_prefix=no
  6876. ;;
  6877. motorola)
  6878. need_lib_prefix=no
  6879. need_version=no
  6880. shlibpath_overrides_runpath=no
  6881. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  6882. ;;
  6883. esac
  6884. ;;
  6885. sysv4*MP*)
  6886. if test -d /usr/nec ;then
  6887. version_type=linux
  6888. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  6889. soname_spec='$libname${shared_ext}.$major'
  6890. shlibpath_var=LD_LIBRARY_PATH
  6891. fi
  6892. ;;
  6893. uts4*)
  6894. version_type=linux
  6895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6896. soname_spec='${libname}${release}${shared_ext}$major'
  6897. shlibpath_var=LD_LIBRARY_PATH
  6898. ;;
  6899. *)
  6900. dynamic_linker=no
  6901. ;;
  6902. esac
  6903. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  6904. echo "${ECHO_T}$dynamic_linker" >&6
  6905. test "$dynamic_linker" = no && can_build_shared=no
  6906. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  6907. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  6908. hardcode_action=
  6909. if test -n "$hardcode_libdir_flag_spec" || \
  6910. test -n "$runpath_var" || \
  6911. test "X$hardcode_automatic" = "Xyes" ; then
  6912. # We can hardcode non-existant directories.
  6913. if test "$hardcode_direct" != no &&
  6914. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  6915. # have to relink, otherwise we might link with an installed library
  6916. # when we should be linking with a yet-to-be-installed one
  6917. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  6918. test "$hardcode_minus_L" != no; then
  6919. # Linking always hardcodes the temporary library directory.
  6920. hardcode_action=relink
  6921. else
  6922. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  6923. hardcode_action=immediate
  6924. fi
  6925. else
  6926. # We cannot hardcode anything, or else we can only hardcode existing
  6927. # directories.
  6928. hardcode_action=unsupported
  6929. fi
  6930. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  6931. echo "${ECHO_T}$hardcode_action" >&6
  6932. if test "$hardcode_action" = relink; then
  6933. # Fast installation is not supported
  6934. enable_fast_install=no
  6935. elif test "$shlibpath_overrides_runpath" = yes ||
  6936. test "$enable_shared" = no; then
  6937. # Fast installation is not necessary
  6938. enable_fast_install=needless
  6939. fi
  6940. striplib=
  6941. old_striplib=
  6942. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  6943. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  6944. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  6945. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  6946. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  6947. echo "$as_me:$LINENO: result: yes" >&5
  6948. echo "${ECHO_T}yes" >&6
  6949. else
  6950. # FIXME - insert some real tests, host_os isn't really good enough
  6951. case $host_os in
  6952. darwin*)
  6953. if test -n "$STRIP" ; then
  6954. striplib="$STRIP -x"
  6955. echo "$as_me:$LINENO: result: yes" >&5
  6956. echo "${ECHO_T}yes" >&6
  6957. else
  6958. echo "$as_me:$LINENO: result: no" >&5
  6959. echo "${ECHO_T}no" >&6
  6960. fi
  6961. ;;
  6962. *)
  6963. echo "$as_me:$LINENO: result: no" >&5
  6964. echo "${ECHO_T}no" >&6
  6965. ;;
  6966. esac
  6967. fi
  6968. if test "x$enable_dlopen" != xyes; then
  6969. enable_dlopen=unknown
  6970. enable_dlopen_self=unknown
  6971. enable_dlopen_self_static=unknown
  6972. else
  6973. lt_cv_dlopen=no
  6974. lt_cv_dlopen_libs=
  6975. case $host_os in
  6976. beos*)
  6977. lt_cv_dlopen="load_add_on"
  6978. lt_cv_dlopen_libs=
  6979. lt_cv_dlopen_self=yes
  6980. ;;
  6981. mingw* | pw32*)
  6982. lt_cv_dlopen="LoadLibrary"
  6983. lt_cv_dlopen_libs=
  6984. ;;
  6985. cygwin*)
  6986. lt_cv_dlopen="dlopen"
  6987. lt_cv_dlopen_libs=
  6988. ;;
  6989. darwin*)
  6990. # if libdl is installed we need to link against it
  6991. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  6992. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  6993. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  6994. echo $ECHO_N "(cached) $ECHO_C" >&6
  6995. else
  6996. ac_check_lib_save_LIBS=$LIBS
  6997. LIBS="-ldl $LIBS"
  6998. cat >conftest.$ac_ext <<_ACEOF
  6999. /* confdefs.h. */
  7000. _ACEOF
  7001. cat confdefs.h >>conftest.$ac_ext
  7002. cat >>conftest.$ac_ext <<_ACEOF
  7003. /* end confdefs.h. */
  7004. /* Override any gcc2 internal prototype to avoid an error. */
  7005. #ifdef __cplusplus
  7006. extern "C"
  7007. #endif
  7008. /* We use char because int might match the return type of a gcc2
  7009. builtin and then its argument prototype would still apply. */
  7010. char dlopen ();
  7011. int
  7012. main ()
  7013. {
  7014. dlopen ();
  7015. ;
  7016. return 0;
  7017. }
  7018. _ACEOF
  7019. rm -f conftest.$ac_objext conftest$ac_exeext
  7020. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7021. (eval $ac_link) 2>conftest.er1
  7022. ac_status=$?
  7023. grep -v '^ *+' conftest.er1 >conftest.err
  7024. rm -f conftest.er1
  7025. cat conftest.err >&5
  7026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7027. (exit $ac_status); } &&
  7028. { ac_try='test -z "$ac_c_werror_flag"
  7029. || test ! -s conftest.err'
  7030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7031. (eval $ac_try) 2>&5
  7032. ac_status=$?
  7033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034. (exit $ac_status); }; } &&
  7035. { ac_try='test -s conftest$ac_exeext'
  7036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7037. (eval $ac_try) 2>&5
  7038. ac_status=$?
  7039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7040. (exit $ac_status); }; }; then
  7041. ac_cv_lib_dl_dlopen=yes
  7042. else
  7043. echo "$as_me: failed program was:" >&5
  7044. sed 's/^/| /' conftest.$ac_ext >&5
  7045. ac_cv_lib_dl_dlopen=no
  7046. fi
  7047. rm -f conftest.err conftest.$ac_objext \
  7048. conftest$ac_exeext conftest.$ac_ext
  7049. LIBS=$ac_check_lib_save_LIBS
  7050. fi
  7051. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7052. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7053. if test $ac_cv_lib_dl_dlopen = yes; then
  7054. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7055. else
  7056. lt_cv_dlopen="dyld"
  7057. lt_cv_dlopen_libs=
  7058. lt_cv_dlopen_self=yes
  7059. fi
  7060. ;;
  7061. *)
  7062. echo "$as_me:$LINENO: checking for shl_load" >&5
  7063. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7064. if test "${ac_cv_func_shl_load+set}" = set; then
  7065. echo $ECHO_N "(cached) $ECHO_C" >&6
  7066. else
  7067. cat >conftest.$ac_ext <<_ACEOF
  7068. /* confdefs.h. */
  7069. _ACEOF
  7070. cat confdefs.h >>conftest.$ac_ext
  7071. cat >>conftest.$ac_ext <<_ACEOF
  7072. /* end confdefs.h. */
  7073. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7074. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7075. #define shl_load innocuous_shl_load
  7076. /* System header to define __stub macros and hopefully few prototypes,
  7077. which can conflict with char shl_load (); below.
  7078. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7079. <limits.h> exists even on freestanding compilers. */
  7080. #ifdef __STDC__
  7081. # include <limits.h>
  7082. #else
  7083. # include <assert.h>
  7084. #endif
  7085. #undef shl_load
  7086. /* Override any gcc2 internal prototype to avoid an error. */
  7087. #ifdef __cplusplus
  7088. extern "C"
  7089. {
  7090. #endif
  7091. /* We use char because int might match the return type of a gcc2
  7092. builtin and then its argument prototype would still apply. */
  7093. char shl_load ();
  7094. /* The GNU C library defines this for functions which it implements
  7095. to always fail with ENOSYS. Some functions are actually named
  7096. something starting with __ and the normal name is an alias. */
  7097. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7098. choke me
  7099. #else
  7100. char (*f) () = shl_load;
  7101. #endif
  7102. #ifdef __cplusplus
  7103. }
  7104. #endif
  7105. int
  7106. main ()
  7107. {
  7108. return f != shl_load;
  7109. ;
  7110. return 0;
  7111. }
  7112. _ACEOF
  7113. rm -f conftest.$ac_objext conftest$ac_exeext
  7114. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7115. (eval $ac_link) 2>conftest.er1
  7116. ac_status=$?
  7117. grep -v '^ *+' conftest.er1 >conftest.err
  7118. rm -f conftest.er1
  7119. cat conftest.err >&5
  7120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7121. (exit $ac_status); } &&
  7122. { ac_try='test -z "$ac_c_werror_flag"
  7123. || test ! -s conftest.err'
  7124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7125. (eval $ac_try) 2>&5
  7126. ac_status=$?
  7127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7128. (exit $ac_status); }; } &&
  7129. { ac_try='test -s conftest$ac_exeext'
  7130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7131. (eval $ac_try) 2>&5
  7132. ac_status=$?
  7133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7134. (exit $ac_status); }; }; then
  7135. ac_cv_func_shl_load=yes
  7136. else
  7137. echo "$as_me: failed program was:" >&5
  7138. sed 's/^/| /' conftest.$ac_ext >&5
  7139. ac_cv_func_shl_load=no
  7140. fi
  7141. rm -f conftest.err conftest.$ac_objext \
  7142. conftest$ac_exeext conftest.$ac_ext
  7143. fi
  7144. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7145. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7146. if test $ac_cv_func_shl_load = yes; then
  7147. lt_cv_dlopen="shl_load"
  7148. else
  7149. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7150. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7151. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7152. echo $ECHO_N "(cached) $ECHO_C" >&6
  7153. else
  7154. ac_check_lib_save_LIBS=$LIBS
  7155. LIBS="-ldld $LIBS"
  7156. cat >conftest.$ac_ext <<_ACEOF
  7157. /* confdefs.h. */
  7158. _ACEOF
  7159. cat confdefs.h >>conftest.$ac_ext
  7160. cat >>conftest.$ac_ext <<_ACEOF
  7161. /* end confdefs.h. */
  7162. /* Override any gcc2 internal prototype to avoid an error. */
  7163. #ifdef __cplusplus
  7164. extern "C"
  7165. #endif
  7166. /* We use char because int might match the return type of a gcc2
  7167. builtin and then its argument prototype would still apply. */
  7168. char shl_load ();
  7169. int
  7170. main ()
  7171. {
  7172. shl_load ();
  7173. ;
  7174. return 0;
  7175. }
  7176. _ACEOF
  7177. rm -f conftest.$ac_objext conftest$ac_exeext
  7178. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7179. (eval $ac_link) 2>conftest.er1
  7180. ac_status=$?
  7181. grep -v '^ *+' conftest.er1 >conftest.err
  7182. rm -f conftest.er1
  7183. cat conftest.err >&5
  7184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7185. (exit $ac_status); } &&
  7186. { ac_try='test -z "$ac_c_werror_flag"
  7187. || test ! -s conftest.err'
  7188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7189. (eval $ac_try) 2>&5
  7190. ac_status=$?
  7191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7192. (exit $ac_status); }; } &&
  7193. { ac_try='test -s conftest$ac_exeext'
  7194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7195. (eval $ac_try) 2>&5
  7196. ac_status=$?
  7197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7198. (exit $ac_status); }; }; then
  7199. ac_cv_lib_dld_shl_load=yes
  7200. else
  7201. echo "$as_me: failed program was:" >&5
  7202. sed 's/^/| /' conftest.$ac_ext >&5
  7203. ac_cv_lib_dld_shl_load=no
  7204. fi
  7205. rm -f conftest.err conftest.$ac_objext \
  7206. conftest$ac_exeext conftest.$ac_ext
  7207. LIBS=$ac_check_lib_save_LIBS
  7208. fi
  7209. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7210. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7211. if test $ac_cv_lib_dld_shl_load = yes; then
  7212. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7213. else
  7214. echo "$as_me:$LINENO: checking for dlopen" >&5
  7215. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7216. if test "${ac_cv_func_dlopen+set}" = set; then
  7217. echo $ECHO_N "(cached) $ECHO_C" >&6
  7218. else
  7219. cat >conftest.$ac_ext <<_ACEOF
  7220. /* confdefs.h. */
  7221. _ACEOF
  7222. cat confdefs.h >>conftest.$ac_ext
  7223. cat >>conftest.$ac_ext <<_ACEOF
  7224. /* end confdefs.h. */
  7225. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7226. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7227. #define dlopen innocuous_dlopen
  7228. /* System header to define __stub macros and hopefully few prototypes,
  7229. which can conflict with char dlopen (); below.
  7230. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7231. <limits.h> exists even on freestanding compilers. */
  7232. #ifdef __STDC__
  7233. # include <limits.h>
  7234. #else
  7235. # include <assert.h>
  7236. #endif
  7237. #undef dlopen
  7238. /* Override any gcc2 internal prototype to avoid an error. */
  7239. #ifdef __cplusplus
  7240. extern "C"
  7241. {
  7242. #endif
  7243. /* We use char because int might match the return type of a gcc2
  7244. builtin and then its argument prototype would still apply. */
  7245. char dlopen ();
  7246. /* The GNU C library defines this for functions which it implements
  7247. to always fail with ENOSYS. Some functions are actually named
  7248. something starting with __ and the normal name is an alias. */
  7249. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  7250. choke me
  7251. #else
  7252. char (*f) () = dlopen;
  7253. #endif
  7254. #ifdef __cplusplus
  7255. }
  7256. #endif
  7257. int
  7258. main ()
  7259. {
  7260. return f != dlopen;
  7261. ;
  7262. return 0;
  7263. }
  7264. _ACEOF
  7265. rm -f conftest.$ac_objext conftest$ac_exeext
  7266. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7267. (eval $ac_link) 2>conftest.er1
  7268. ac_status=$?
  7269. grep -v '^ *+' conftest.er1 >conftest.err
  7270. rm -f conftest.er1
  7271. cat conftest.err >&5
  7272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7273. (exit $ac_status); } &&
  7274. { ac_try='test -z "$ac_c_werror_flag"
  7275. || test ! -s conftest.err'
  7276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7277. (eval $ac_try) 2>&5
  7278. ac_status=$?
  7279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7280. (exit $ac_status); }; } &&
  7281. { ac_try='test -s conftest$ac_exeext'
  7282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7283. (eval $ac_try) 2>&5
  7284. ac_status=$?
  7285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7286. (exit $ac_status); }; }; then
  7287. ac_cv_func_dlopen=yes
  7288. else
  7289. echo "$as_me: failed program was:" >&5
  7290. sed 's/^/| /' conftest.$ac_ext >&5
  7291. ac_cv_func_dlopen=no
  7292. fi
  7293. rm -f conftest.err conftest.$ac_objext \
  7294. conftest$ac_exeext conftest.$ac_ext
  7295. fi
  7296. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  7297. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  7298. if test $ac_cv_func_dlopen = yes; then
  7299. lt_cv_dlopen="dlopen"
  7300. else
  7301. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7302. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7303. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7304. echo $ECHO_N "(cached) $ECHO_C" >&6
  7305. else
  7306. ac_check_lib_save_LIBS=$LIBS
  7307. LIBS="-ldl $LIBS"
  7308. cat >conftest.$ac_ext <<_ACEOF
  7309. /* confdefs.h. */
  7310. _ACEOF
  7311. cat confdefs.h >>conftest.$ac_ext
  7312. cat >>conftest.$ac_ext <<_ACEOF
  7313. /* end confdefs.h. */
  7314. /* Override any gcc2 internal prototype to avoid an error. */
  7315. #ifdef __cplusplus
  7316. extern "C"
  7317. #endif
  7318. /* We use char because int might match the return type of a gcc2
  7319. builtin and then its argument prototype would still apply. */
  7320. char dlopen ();
  7321. int
  7322. main ()
  7323. {
  7324. dlopen ();
  7325. ;
  7326. return 0;
  7327. }
  7328. _ACEOF
  7329. rm -f conftest.$ac_objext conftest$ac_exeext
  7330. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7331. (eval $ac_link) 2>conftest.er1
  7332. ac_status=$?
  7333. grep -v '^ *+' conftest.er1 >conftest.err
  7334. rm -f conftest.er1
  7335. cat conftest.err >&5
  7336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7337. (exit $ac_status); } &&
  7338. { ac_try='test -z "$ac_c_werror_flag"
  7339. || test ! -s conftest.err'
  7340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7341. (eval $ac_try) 2>&5
  7342. ac_status=$?
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. (exit $ac_status); }; } &&
  7345. { ac_try='test -s conftest$ac_exeext'
  7346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7347. (eval $ac_try) 2>&5
  7348. ac_status=$?
  7349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7350. (exit $ac_status); }; }; then
  7351. ac_cv_lib_dl_dlopen=yes
  7352. else
  7353. echo "$as_me: failed program was:" >&5
  7354. sed 's/^/| /' conftest.$ac_ext >&5
  7355. ac_cv_lib_dl_dlopen=no
  7356. fi
  7357. rm -f conftest.err conftest.$ac_objext \
  7358. conftest$ac_exeext conftest.$ac_ext
  7359. LIBS=$ac_check_lib_save_LIBS
  7360. fi
  7361. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7362. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7363. if test $ac_cv_lib_dl_dlopen = yes; then
  7364. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7365. else
  7366. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  7367. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  7368. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  7369. echo $ECHO_N "(cached) $ECHO_C" >&6
  7370. else
  7371. ac_check_lib_save_LIBS=$LIBS
  7372. LIBS="-lsvld $LIBS"
  7373. cat >conftest.$ac_ext <<_ACEOF
  7374. /* confdefs.h. */
  7375. _ACEOF
  7376. cat confdefs.h >>conftest.$ac_ext
  7377. cat >>conftest.$ac_ext <<_ACEOF
  7378. /* end confdefs.h. */
  7379. /* Override any gcc2 internal prototype to avoid an error. */
  7380. #ifdef __cplusplus
  7381. extern "C"
  7382. #endif
  7383. /* We use char because int might match the return type of a gcc2
  7384. builtin and then its argument prototype would still apply. */
  7385. char dlopen ();
  7386. int
  7387. main ()
  7388. {
  7389. dlopen ();
  7390. ;
  7391. return 0;
  7392. }
  7393. _ACEOF
  7394. rm -f conftest.$ac_objext conftest$ac_exeext
  7395. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7396. (eval $ac_link) 2>conftest.er1
  7397. ac_status=$?
  7398. grep -v '^ *+' conftest.er1 >conftest.err
  7399. rm -f conftest.er1
  7400. cat conftest.err >&5
  7401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7402. (exit $ac_status); } &&
  7403. { ac_try='test -z "$ac_c_werror_flag"
  7404. || test ! -s conftest.err'
  7405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7406. (eval $ac_try) 2>&5
  7407. ac_status=$?
  7408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7409. (exit $ac_status); }; } &&
  7410. { ac_try='test -s conftest$ac_exeext'
  7411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7412. (eval $ac_try) 2>&5
  7413. ac_status=$?
  7414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7415. (exit $ac_status); }; }; then
  7416. ac_cv_lib_svld_dlopen=yes
  7417. else
  7418. echo "$as_me: failed program was:" >&5
  7419. sed 's/^/| /' conftest.$ac_ext >&5
  7420. ac_cv_lib_svld_dlopen=no
  7421. fi
  7422. rm -f conftest.err conftest.$ac_objext \
  7423. conftest$ac_exeext conftest.$ac_ext
  7424. LIBS=$ac_check_lib_save_LIBS
  7425. fi
  7426. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  7427. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  7428. if test $ac_cv_lib_svld_dlopen = yes; then
  7429. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  7430. else
  7431. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  7432. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  7433. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  7434. echo $ECHO_N "(cached) $ECHO_C" >&6
  7435. else
  7436. ac_check_lib_save_LIBS=$LIBS
  7437. LIBS="-ldld $LIBS"
  7438. cat >conftest.$ac_ext <<_ACEOF
  7439. /* confdefs.h. */
  7440. _ACEOF
  7441. cat confdefs.h >>conftest.$ac_ext
  7442. cat >>conftest.$ac_ext <<_ACEOF
  7443. /* end confdefs.h. */
  7444. /* Override any gcc2 internal prototype to avoid an error. */
  7445. #ifdef __cplusplus
  7446. extern "C"
  7447. #endif
  7448. /* We use char because int might match the return type of a gcc2
  7449. builtin and then its argument prototype would still apply. */
  7450. char dld_link ();
  7451. int
  7452. main ()
  7453. {
  7454. dld_link ();
  7455. ;
  7456. return 0;
  7457. }
  7458. _ACEOF
  7459. rm -f conftest.$ac_objext conftest$ac_exeext
  7460. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7461. (eval $ac_link) 2>conftest.er1
  7462. ac_status=$?
  7463. grep -v '^ *+' conftest.er1 >conftest.err
  7464. rm -f conftest.er1
  7465. cat conftest.err >&5
  7466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7467. (exit $ac_status); } &&
  7468. { ac_try='test -z "$ac_c_werror_flag"
  7469. || test ! -s conftest.err'
  7470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7471. (eval $ac_try) 2>&5
  7472. ac_status=$?
  7473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7474. (exit $ac_status); }; } &&
  7475. { ac_try='test -s conftest$ac_exeext'
  7476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7477. (eval $ac_try) 2>&5
  7478. ac_status=$?
  7479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7480. (exit $ac_status); }; }; then
  7481. ac_cv_lib_dld_dld_link=yes
  7482. else
  7483. echo "$as_me: failed program was:" >&5
  7484. sed 's/^/| /' conftest.$ac_ext >&5
  7485. ac_cv_lib_dld_dld_link=no
  7486. fi
  7487. rm -f conftest.err conftest.$ac_objext \
  7488. conftest$ac_exeext conftest.$ac_ext
  7489. LIBS=$ac_check_lib_save_LIBS
  7490. fi
  7491. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  7492. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  7493. if test $ac_cv_lib_dld_dld_link = yes; then
  7494. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  7495. fi
  7496. fi
  7497. fi
  7498. fi
  7499. fi
  7500. fi
  7501. ;;
  7502. esac
  7503. if test "x$lt_cv_dlopen" != xno; then
  7504. enable_dlopen=yes
  7505. else
  7506. enable_dlopen=no
  7507. fi
  7508. case $lt_cv_dlopen in
  7509. dlopen)
  7510. save_CPPFLAGS="$CPPFLAGS"
  7511. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  7512. save_LDFLAGS="$LDFLAGS"
  7513. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  7514. save_LIBS="$LIBS"
  7515. LIBS="$lt_cv_dlopen_libs $LIBS"
  7516. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  7517. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  7518. if test "${lt_cv_dlopen_self+set}" = set; then
  7519. echo $ECHO_N "(cached) $ECHO_C" >&6
  7520. else
  7521. if test "$cross_compiling" = yes; then :
  7522. lt_cv_dlopen_self=cross
  7523. else
  7524. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7525. lt_status=$lt_dlunknown
  7526. cat > conftest.$ac_ext <<EOF
  7527. #line 8270 "configure"
  7528. #include "confdefs.h"
  7529. #if HAVE_DLFCN_H
  7530. #include <dlfcn.h>
  7531. #endif
  7532. #include <stdio.h>
  7533. #ifdef RTLD_GLOBAL
  7534. # define LT_DLGLOBAL RTLD_GLOBAL
  7535. #else
  7536. # ifdef DL_GLOBAL
  7537. # define LT_DLGLOBAL DL_GLOBAL
  7538. # else
  7539. # define LT_DLGLOBAL 0
  7540. # endif
  7541. #endif
  7542. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7543. find out it does not work in some platform. */
  7544. #ifndef LT_DLLAZY_OR_NOW
  7545. # ifdef RTLD_LAZY
  7546. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7547. # else
  7548. # ifdef DL_LAZY
  7549. # define LT_DLLAZY_OR_NOW DL_LAZY
  7550. # else
  7551. # ifdef RTLD_NOW
  7552. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7553. # else
  7554. # ifdef DL_NOW
  7555. # define LT_DLLAZY_OR_NOW DL_NOW
  7556. # else
  7557. # define LT_DLLAZY_OR_NOW 0
  7558. # endif
  7559. # endif
  7560. # endif
  7561. # endif
  7562. #endif
  7563. #ifdef __cplusplus
  7564. extern "C" void exit (int);
  7565. #endif
  7566. void fnord() { int i=42;}
  7567. int main ()
  7568. {
  7569. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7570. int status = $lt_dlunknown;
  7571. if (self)
  7572. {
  7573. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7574. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7575. /* dlclose (self); */
  7576. }
  7577. exit (status);
  7578. }
  7579. EOF
  7580. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7581. (eval $ac_link) 2>&5
  7582. ac_status=$?
  7583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7584. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7585. (./conftest; exit; ) 2>/dev/null
  7586. lt_status=$?
  7587. case x$lt_status in
  7588. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  7589. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  7590. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  7591. esac
  7592. else :
  7593. # compilation failed
  7594. lt_cv_dlopen_self=no
  7595. fi
  7596. fi
  7597. rm -fr conftest*
  7598. fi
  7599. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  7600. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  7601. if test "x$lt_cv_dlopen_self" = xyes; then
  7602. LDFLAGS="$LDFLAGS $link_static_flag"
  7603. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  7604. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  7605. if test "${lt_cv_dlopen_self_static+set}" = set; then
  7606. echo $ECHO_N "(cached) $ECHO_C" >&6
  7607. else
  7608. if test "$cross_compiling" = yes; then :
  7609. lt_cv_dlopen_self_static=cross
  7610. else
  7611. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7612. lt_status=$lt_dlunknown
  7613. cat > conftest.$ac_ext <<EOF
  7614. #line 8368 "configure"
  7615. #include "confdefs.h"
  7616. #if HAVE_DLFCN_H
  7617. #include <dlfcn.h>
  7618. #endif
  7619. #include <stdio.h>
  7620. #ifdef RTLD_GLOBAL
  7621. # define LT_DLGLOBAL RTLD_GLOBAL
  7622. #else
  7623. # ifdef DL_GLOBAL
  7624. # define LT_DLGLOBAL DL_GLOBAL
  7625. # else
  7626. # define LT_DLGLOBAL 0
  7627. # endif
  7628. #endif
  7629. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7630. find out it does not work in some platform. */
  7631. #ifndef LT_DLLAZY_OR_NOW
  7632. # ifdef RTLD_LAZY
  7633. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7634. # else
  7635. # ifdef DL_LAZY
  7636. # define LT_DLLAZY_OR_NOW DL_LAZY
  7637. # else
  7638. # ifdef RTLD_NOW
  7639. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7640. # else
  7641. # ifdef DL_NOW
  7642. # define LT_DLLAZY_OR_NOW DL_NOW
  7643. # else
  7644. # define LT_DLLAZY_OR_NOW 0
  7645. # endif
  7646. # endif
  7647. # endif
  7648. # endif
  7649. #endif
  7650. #ifdef __cplusplus
  7651. extern "C" void exit (int);
  7652. #endif
  7653. void fnord() { int i=42;}
  7654. int main ()
  7655. {
  7656. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7657. int status = $lt_dlunknown;
  7658. if (self)
  7659. {
  7660. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7661. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7662. /* dlclose (self); */
  7663. }
  7664. exit (status);
  7665. }
  7666. EOF
  7667. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7668. (eval $ac_link) 2>&5
  7669. ac_status=$?
  7670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7672. (./conftest; exit; ) 2>/dev/null
  7673. lt_status=$?
  7674. case x$lt_status in
  7675. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  7676. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  7677. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  7678. esac
  7679. else :
  7680. # compilation failed
  7681. lt_cv_dlopen_self_static=no
  7682. fi
  7683. fi
  7684. rm -fr conftest*
  7685. fi
  7686. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  7687. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  7688. fi
  7689. CPPFLAGS="$save_CPPFLAGS"
  7690. LDFLAGS="$save_LDFLAGS"
  7691. LIBS="$save_LIBS"
  7692. ;;
  7693. esac
  7694. case $lt_cv_dlopen_self in
  7695. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  7696. *) enable_dlopen_self=unknown ;;
  7697. esac
  7698. case $lt_cv_dlopen_self_static in
  7699. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  7700. *) enable_dlopen_self_static=unknown ;;
  7701. esac
  7702. fi
  7703. # Report which librarie types wil actually be built
  7704. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  7705. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  7706. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  7707. echo "${ECHO_T}$can_build_shared" >&6
  7708. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  7709. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  7710. test "$can_build_shared" = "no" && enable_shared=no
  7711. # On AIX, shared libraries and static libraries use the same namespace, and
  7712. # are all built from PIC.
  7713. case "$host_os" in
  7714. aix3*)
  7715. test "$enable_shared" = yes && enable_static=no
  7716. if test -n "$RANLIB"; then
  7717. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7718. postinstall_cmds='$RANLIB $lib'
  7719. fi
  7720. ;;
  7721. aix4* | aix5*)
  7722. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7723. test "$enable_shared" = yes && enable_static=no
  7724. fi
  7725. ;;
  7726. esac
  7727. echo "$as_me:$LINENO: result: $enable_shared" >&5
  7728. echo "${ECHO_T}$enable_shared" >&6
  7729. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  7730. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  7731. # Make sure either enable_shared or enable_static is yes.
  7732. test "$enable_shared" = yes || enable_static=yes
  7733. echo "$as_me:$LINENO: result: $enable_static" >&5
  7734. echo "${ECHO_T}$enable_static" >&6
  7735. # The else clause should only fire when bootstrapping the
  7736. # libtool distribution, otherwise you forgot to ship ltmain.sh
  7737. # with your package, and you will get complaints that there are
  7738. # no rules to generate ltmain.sh.
  7739. if test -f "$ltmain"; then
  7740. # See if we are running on zsh, and set the options which allow our commands through
  7741. # without removal of \ escapes.
  7742. if test -n "${ZSH_VERSION+set}" ; then
  7743. setopt NO_GLOB_SUBST
  7744. fi
  7745. # Now quote all the things that may contain metacharacters while being
  7746. # careful not to overquote the AC_SUBSTed values. We take copies of the
  7747. # variables and quote the copies for generation of the libtool script.
  7748. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  7749. SED SHELL STRIP \
  7750. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  7751. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  7752. deplibs_check_method reload_flag reload_cmds need_locks \
  7753. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  7754. lt_cv_sys_global_symbol_to_c_name_address \
  7755. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7756. old_postinstall_cmds old_postuninstall_cmds \
  7757. compiler \
  7758. CC \
  7759. LD \
  7760. lt_prog_compiler_wl \
  7761. lt_prog_compiler_pic \
  7762. lt_prog_compiler_static \
  7763. lt_prog_compiler_no_builtin_flag \
  7764. export_dynamic_flag_spec \
  7765. thread_safe_flag_spec \
  7766. whole_archive_flag_spec \
  7767. enable_shared_with_static_runtimes \
  7768. old_archive_cmds \
  7769. old_archive_from_new_cmds \
  7770. predep_objects \
  7771. postdep_objects \
  7772. predeps \
  7773. postdeps \
  7774. compiler_lib_search_path \
  7775. archive_cmds \
  7776. archive_expsym_cmds \
  7777. postinstall_cmds \
  7778. postuninstall_cmds \
  7779. old_archive_from_expsyms_cmds \
  7780. allow_undefined_flag \
  7781. no_undefined_flag \
  7782. export_symbols_cmds \
  7783. hardcode_libdir_flag_spec \
  7784. hardcode_libdir_flag_spec_ld \
  7785. hardcode_libdir_separator \
  7786. hardcode_automatic \
  7787. module_cmds \
  7788. module_expsym_cmds \
  7789. lt_cv_prog_compiler_c_o \
  7790. exclude_expsyms \
  7791. include_expsyms; do
  7792. case $var in
  7793. old_archive_cmds | \
  7794. old_archive_from_new_cmds | \
  7795. archive_cmds | \
  7796. archive_expsym_cmds | \
  7797. module_cmds | \
  7798. module_expsym_cmds | \
  7799. old_archive_from_expsyms_cmds | \
  7800. export_symbols_cmds | \
  7801. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7802. postinstall_cmds | postuninstall_cmds | \
  7803. old_postinstall_cmds | old_postuninstall_cmds | \
  7804. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7805. # Double-quote double-evaled strings.
  7806. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7807. ;;
  7808. *)
  7809. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7810. ;;
  7811. esac
  7812. done
  7813. case $lt_echo in
  7814. *'\$0 --fallback-echo"')
  7815. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  7816. ;;
  7817. esac
  7818. cfgfile="${ofile}T"
  7819. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7820. $rm -f "$cfgfile"
  7821. { echo "$as_me:$LINENO: creating $ofile" >&5
  7822. echo "$as_me: creating $ofile" >&6;}
  7823. cat <<__EOF__ >> "$cfgfile"
  7824. #! $SHELL
  7825. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7826. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7827. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7828. #
  7829. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7830. # Free Software Foundation, Inc.
  7831. #
  7832. # This file is part of GNU Libtool:
  7833. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7834. #
  7835. # This program is free software; you can redistribute it and/or modify
  7836. # it under the terms of the GNU General Public License as published by
  7837. # the Free Software Foundation; either version 2 of the License, or
  7838. # (at your option) any later version.
  7839. #
  7840. # This program is distributed in the hope that it will be useful, but
  7841. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7842. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7843. # General Public License for more details.
  7844. #
  7845. # You should have received a copy of the GNU General Public License
  7846. # along with this program; if not, write to the Free Software
  7847. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7848. #
  7849. # As a special exception to the GNU General Public License, if you
  7850. # distribute this file as part of a program that contains a
  7851. # configuration script generated by Autoconf, you may include it under
  7852. # the same distribution terms that you use for the rest of that program.
  7853. # A sed program that does not truncate output.
  7854. SED=$lt_SED
  7855. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7856. Xsed="$SED -e 1s/^X//"
  7857. # The HP-UX ksh and POSIX shell print the target directory to stdout
  7858. # if CDPATH is set.
  7859. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7860. # The names of the tagged configurations supported by this script.
  7861. available_tags=
  7862. # ### BEGIN LIBTOOL CONFIG
  7863. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7864. # Shell to use when invoking shell scripts.
  7865. SHELL=$lt_SHELL
  7866. # Whether or not to build shared libraries.
  7867. build_libtool_libs=$enable_shared
  7868. # Whether or not to build static libraries.
  7869. build_old_libs=$enable_static
  7870. # Whether or not to add -lc for building shared libraries.
  7871. build_libtool_need_lc=$archive_cmds_need_lc
  7872. # Whether or not to disallow shared libs when runtime libs are static
  7873. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  7874. # Whether or not to optimize for fast installation.
  7875. fast_install=$enable_fast_install
  7876. # The host system.
  7877. host_alias=$host_alias
  7878. host=$host
  7879. host_os=$host_os
  7880. # The build system.
  7881. build_alias=$build_alias
  7882. build=$build
  7883. build_os=$build_os
  7884. # An echo program that does not interpret backslashes.
  7885. echo=$lt_echo
  7886. # The archiver.
  7887. AR=$lt_AR
  7888. AR_FLAGS=$lt_AR_FLAGS
  7889. # A C compiler.
  7890. LTCC=$lt_LTCC
  7891. # A language-specific compiler.
  7892. CC=$lt_compiler
  7893. # Is the compiler the GNU C compiler?
  7894. with_gcc=$GCC
  7895. # An ERE matcher.
  7896. EGREP=$lt_EGREP
  7897. # The linker used to build libraries.
  7898. LD=$lt_LD
  7899. # Whether we need hard or soft links.
  7900. LN_S=$lt_LN_S
  7901. # A BSD-compatible nm program.
  7902. NM=$lt_NM
  7903. # A symbol stripping program
  7904. STRIP=$lt_STRIP
  7905. # Used to examine libraries when file_magic_cmd begins "file"
  7906. MAGIC_CMD=$MAGIC_CMD
  7907. # Used on cygwin: DLL creation program.
  7908. DLLTOOL="$DLLTOOL"
  7909. # Used on cygwin: object dumper.
  7910. OBJDUMP="$OBJDUMP"
  7911. # Used on cygwin: assembler.
  7912. AS="$AS"
  7913. # The name of the directory that contains temporary libtool files.
  7914. objdir=$objdir
  7915. # How to create reloadable object files.
  7916. reload_flag=$lt_reload_flag
  7917. reload_cmds=$lt_reload_cmds
  7918. # How to pass a linker flag through the compiler.
  7919. wl=$lt_lt_prog_compiler_wl
  7920. # Object file suffix (normally "o").
  7921. objext="$ac_objext"
  7922. # Old archive suffix (normally "a").
  7923. libext="$libext"
  7924. # Shared library suffix (normally ".so").
  7925. shrext_cmds='$shrext_cmds'
  7926. # Executable file suffix (normally "").
  7927. exeext="$exeext"
  7928. # Additional compiler flags for building library objects.
  7929. pic_flag=$lt_lt_prog_compiler_pic
  7930. pic_mode=$pic_mode
  7931. # What is the maximum length of a command?
  7932. max_cmd_len=$lt_cv_sys_max_cmd_len
  7933. # Does compiler simultaneously support -c and -o options?
  7934. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  7935. # Must we lock files when doing compilation?
  7936. need_locks=$lt_need_locks
  7937. # Do we need the lib prefix for modules?
  7938. need_lib_prefix=$need_lib_prefix
  7939. # Do we need a version for libraries?
  7940. need_version=$need_version
  7941. # Whether dlopen is supported.
  7942. dlopen_support=$enable_dlopen
  7943. # Whether dlopen of programs is supported.
  7944. dlopen_self=$enable_dlopen_self
  7945. # Whether dlopen of statically linked programs is supported.
  7946. dlopen_self_static=$enable_dlopen_self_static
  7947. # Compiler flag to prevent dynamic linking.
  7948. link_static_flag=$lt_lt_prog_compiler_static
  7949. # Compiler flag to turn off builtin functions.
  7950. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  7951. # Compiler flag to allow reflexive dlopens.
  7952. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  7953. # Compiler flag to generate shared objects directly from archives.
  7954. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  7955. # Compiler flag to generate thread-safe objects.
  7956. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  7957. # Library versioning type.
  7958. version_type=$version_type
  7959. # Format of library name prefix.
  7960. libname_spec=$lt_libname_spec
  7961. # List of archive names. First name is the real one, the rest are links.
  7962. # The last name is the one that the linker finds with -lNAME.
  7963. library_names_spec=$lt_library_names_spec
  7964. # The coded name of the library, if different from the real name.
  7965. soname_spec=$lt_soname_spec
  7966. # Commands used to build and install an old-style archive.
  7967. RANLIB=$lt_RANLIB
  7968. old_archive_cmds=$lt_old_archive_cmds
  7969. old_postinstall_cmds=$lt_old_postinstall_cmds
  7970. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7971. # Create an old-style archive from a shared archive.
  7972. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  7973. # Create a temporary old-style archive to link instead of a shared archive.
  7974. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  7975. # Commands used to build and install a shared archive.
  7976. archive_cmds=$lt_archive_cmds
  7977. archive_expsym_cmds=$lt_archive_expsym_cmds
  7978. postinstall_cmds=$lt_postinstall_cmds
  7979. postuninstall_cmds=$lt_postuninstall_cmds
  7980. # Commands used to build a loadable module (assumed same as above if empty)
  7981. module_cmds=$lt_module_cmds
  7982. module_expsym_cmds=$lt_module_expsym_cmds
  7983. # Commands to strip libraries.
  7984. old_striplib=$lt_old_striplib
  7985. striplib=$lt_striplib
  7986. # Dependencies to place before the objects being linked to create a
  7987. # shared library.
  7988. predep_objects=$lt_predep_objects
  7989. # Dependencies to place after the objects being linked to create a
  7990. # shared library.
  7991. postdep_objects=$lt_postdep_objects
  7992. # Dependencies to place before the objects being linked to create a
  7993. # shared library.
  7994. predeps=$lt_predeps
  7995. # Dependencies to place after the objects being linked to create a
  7996. # shared library.
  7997. postdeps=$lt_postdeps
  7998. # The library search path used internally by the compiler when linking
  7999. # a shared library.
  8000. compiler_lib_search_path=$lt_compiler_lib_search_path
  8001. # Method to check whether dependent libraries are shared objects.
  8002. deplibs_check_method=$lt_deplibs_check_method
  8003. # Command to use when deplibs_check_method == file_magic.
  8004. file_magic_cmd=$lt_file_magic_cmd
  8005. # Flag that allows shared libraries with undefined symbols to be built.
  8006. allow_undefined_flag=$lt_allow_undefined_flag
  8007. # Flag that forces no undefined symbols.
  8008. no_undefined_flag=$lt_no_undefined_flag
  8009. # Commands used to finish a libtool library installation in a directory.
  8010. finish_cmds=$lt_finish_cmds
  8011. # Same as above, but a single script fragment to be evaled but not shown.
  8012. finish_eval=$lt_finish_eval
  8013. # Take the output of nm and produce a listing of raw symbols and C names.
  8014. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8015. # Transform the output of nm in a proper C declaration
  8016. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8017. # Transform the output of nm in a C name address pair
  8018. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8019. # This is the shared library runtime path variable.
  8020. runpath_var=$runpath_var
  8021. # This is the shared library path variable.
  8022. shlibpath_var=$shlibpath_var
  8023. # Is shlibpath searched before the hard-coded library search path?
  8024. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8025. # How to hardcode a shared library path into an executable.
  8026. hardcode_action=$hardcode_action
  8027. # Whether we should hardcode library paths into libraries.
  8028. hardcode_into_libs=$hardcode_into_libs
  8029. # Flag to hardcode \$libdir into a binary during linking.
  8030. # This must work even if \$libdir does not exist.
  8031. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8032. # If ld is used when linking, flag to hardcode \$libdir into
  8033. # a binary during linking. This must work even if \$libdir does
  8034. # not exist.
  8035. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8036. # Whether we need a single -rpath flag with a separated argument.
  8037. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8038. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8039. # resulting binary.
  8040. hardcode_direct=$hardcode_direct
  8041. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8042. # resulting binary.
  8043. hardcode_minus_L=$hardcode_minus_L
  8044. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8045. # the resulting binary.
  8046. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8047. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8048. # and all subsequent libraries and executables linked against it.
  8049. hardcode_automatic=$hardcode_automatic
  8050. # Variables whose values should be saved in libtool wrapper scripts and
  8051. # restored at relink time.
  8052. variables_saved_for_relink="$variables_saved_for_relink"
  8053. # Whether libtool must link a program against all its dependency libraries.
  8054. link_all_deplibs=$link_all_deplibs
  8055. # Compile-time system search path for libraries
  8056. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8057. # Run-time system search path for libraries
  8058. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8059. # Fix the shell variable \$srcfile for the compiler.
  8060. fix_srcfile_path="$fix_srcfile_path"
  8061. # Set to yes if exported symbols are required.
  8062. always_export_symbols=$always_export_symbols
  8063. # The commands to list exported symbols.
  8064. export_symbols_cmds=$lt_export_symbols_cmds
  8065. # The commands to extract the exported symbol list from a shared archive.
  8066. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8067. # Symbols that should not be listed in the preloaded symbols.
  8068. exclude_expsyms=$lt_exclude_expsyms
  8069. # Symbols that must always be exported.
  8070. include_expsyms=$lt_include_expsyms
  8071. # ### END LIBTOOL CONFIG
  8072. __EOF__
  8073. case $host_os in
  8074. aix3*)
  8075. cat <<\EOF >> "$cfgfile"
  8076. # AIX sometimes has problems with the GCC collect2 program. For some
  8077. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8078. # vanish in a puff of smoke.
  8079. if test "X${COLLECT_NAMES+set}" != Xset; then
  8080. COLLECT_NAMES=
  8081. export COLLECT_NAMES
  8082. fi
  8083. EOF
  8084. ;;
  8085. esac
  8086. # We use sed instead of cat because bash on DJGPP gets confused if
  8087. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8088. # text mode, it properly converts lines to CR/LF. This bash problem
  8089. # is reportedly fixed, but why not run on old versions too?
  8090. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8091. mv -f "$cfgfile" "$ofile" || \
  8092. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8093. chmod +x "$ofile"
  8094. else
  8095. # If there is no Makefile yet, we rely on a make rule to execute
  8096. # `config.status --recheck' to rerun these tests and create the
  8097. # libtool script then.
  8098. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8099. if test -f "$ltmain_in"; then
  8100. test -f Makefile && make "$ltmain"
  8101. fi
  8102. fi
  8103. ac_ext=c
  8104. ac_cpp='$CPP $CPPFLAGS'
  8105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8108. CC="$lt_save_CC"
  8109. # Check whether --with-tags or --without-tags was given.
  8110. if test "${with_tags+set}" = set; then
  8111. withval="$with_tags"
  8112. tagnames="$withval"
  8113. fi;
  8114. if test -f "$ltmain" && test -n "$tagnames"; then
  8115. if test ! -f "${ofile}"; then
  8116. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8117. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8118. fi
  8119. if test -z "$LTCC"; then
  8120. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8121. if test -z "$LTCC"; then
  8122. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8123. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8124. else
  8125. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8126. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8127. fi
  8128. fi
  8129. # Extract list of available tagged configurations in $ofile.
  8130. # Note that this assumes the entire list is on one line.
  8131. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8132. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8133. for tagname in $tagnames; do
  8134. IFS="$lt_save_ifs"
  8135. # Check whether tagname contains only valid characters
  8136. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8137. "") ;;
  8138. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8139. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8140. { (exit 1); exit 1; }; }
  8141. ;;
  8142. esac
  8143. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8144. then
  8145. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8146. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8147. { (exit 1); exit 1; }; }
  8148. fi
  8149. # Update the list of available tags.
  8150. if test -n "$tagname"; then
  8151. echo appending configuration tag \"$tagname\" to $ofile
  8152. case $tagname in
  8153. CXX)
  8154. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8155. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8156. (test "X$CXX" != "Xg++"))) ; then
  8157. ac_ext=cc
  8158. ac_cpp='$CXXCPP $CPPFLAGS'
  8159. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8160. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8161. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8162. archive_cmds_need_lc_CXX=no
  8163. allow_undefined_flag_CXX=
  8164. always_export_symbols_CXX=no
  8165. archive_expsym_cmds_CXX=
  8166. export_dynamic_flag_spec_CXX=
  8167. hardcode_direct_CXX=no
  8168. hardcode_libdir_flag_spec_CXX=
  8169. hardcode_libdir_flag_spec_ld_CXX=
  8170. hardcode_libdir_separator_CXX=
  8171. hardcode_minus_L_CXX=no
  8172. hardcode_automatic_CXX=no
  8173. module_cmds_CXX=
  8174. module_expsym_cmds_CXX=
  8175. link_all_deplibs_CXX=unknown
  8176. old_archive_cmds_CXX=$old_archive_cmds
  8177. no_undefined_flag_CXX=
  8178. whole_archive_flag_spec_CXX=
  8179. enable_shared_with_static_runtimes_CXX=no
  8180. # Dependencies to place before and after the object being linked:
  8181. predep_objects_CXX=
  8182. postdep_objects_CXX=
  8183. predeps_CXX=
  8184. postdeps_CXX=
  8185. compiler_lib_search_path_CXX=
  8186. # Source file extension for C++ test sources.
  8187. ac_ext=cc
  8188. # Object file extension for compiled C++ test sources.
  8189. objext=o
  8190. objext_CXX=$objext
  8191. # Code to be used in simple compile tests
  8192. lt_simple_compile_test_code="int some_variable = 0;\n"
  8193. # Code to be used in simple link tests
  8194. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  8195. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8196. # If no C compiler was specified, use CC.
  8197. LTCC=${LTCC-"$CC"}
  8198. # Allow CC to be a program name with arguments.
  8199. compiler=$CC
  8200. # save warnings/boilerplate of simple test code
  8201. ac_outfile=conftest.$ac_objext
  8202. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8203. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8204. _lt_compiler_boilerplate=`cat conftest.err`
  8205. $rm conftest*
  8206. ac_outfile=conftest.$ac_objext
  8207. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8208. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8209. _lt_linker_boilerplate=`cat conftest.err`
  8210. $rm conftest*
  8211. # Allow CC to be a program name with arguments.
  8212. lt_save_CC=$CC
  8213. lt_save_LD=$LD
  8214. lt_save_GCC=$GCC
  8215. GCC=$GXX
  8216. lt_save_with_gnu_ld=$with_gnu_ld
  8217. lt_save_path_LD=$lt_cv_path_LD
  8218. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8219. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8220. else
  8221. unset lt_cv_prog_gnu_ld
  8222. fi
  8223. if test -n "${lt_cv_path_LDCXX+set}"; then
  8224. lt_cv_path_LD=$lt_cv_path_LDCXX
  8225. else
  8226. unset lt_cv_path_LD
  8227. fi
  8228. test -z "${LDCXX+set}" || LD=$LDCXX
  8229. CC=${CXX-"c++"}
  8230. compiler=$CC
  8231. compiler_CXX=$CC
  8232. for cc_temp in $compiler""; do
  8233. case $cc_temp in
  8234. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8235. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8236. \-*) ;;
  8237. *) break;;
  8238. esac
  8239. done
  8240. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8241. # We don't want -fno-exception wen compiling C++ code, so set the
  8242. # no_builtin_flag separately
  8243. if test "$GXX" = yes; then
  8244. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8245. else
  8246. lt_prog_compiler_no_builtin_flag_CXX=
  8247. fi
  8248. if test "$GXX" = yes; then
  8249. # Set up default GNU C++ configuration
  8250. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8251. if test "${with_gnu_ld+set}" = set; then
  8252. withval="$with_gnu_ld"
  8253. test "$withval" = no || with_gnu_ld=yes
  8254. else
  8255. with_gnu_ld=no
  8256. fi;
  8257. ac_prog=ld
  8258. if test "$GCC" = yes; then
  8259. # Check if gcc -print-prog-name=ld gives a path.
  8260. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8261. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8262. case $host in
  8263. *-*-mingw*)
  8264. # gcc leaves a trailing carriage return which upsets mingw
  8265. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8266. *)
  8267. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8268. esac
  8269. case $ac_prog in
  8270. # Accept absolute paths.
  8271. [\\/]* | ?:[\\/]*)
  8272. re_direlt='/[^/][^/]*/\.\./'
  8273. # Canonicalize the pathname of ld
  8274. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8275. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8276. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8277. done
  8278. test -z "$LD" && LD="$ac_prog"
  8279. ;;
  8280. "")
  8281. # If it fails, then pretend we aren't using GCC.
  8282. ac_prog=ld
  8283. ;;
  8284. *)
  8285. # If it is relative, then search for the first ld in PATH.
  8286. with_gnu_ld=unknown
  8287. ;;
  8288. esac
  8289. elif test "$with_gnu_ld" = yes; then
  8290. echo "$as_me:$LINENO: checking for GNU ld" >&5
  8291. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8292. else
  8293. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8294. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8295. fi
  8296. if test "${lt_cv_path_LD+set}" = set; then
  8297. echo $ECHO_N "(cached) $ECHO_C" >&6
  8298. else
  8299. if test -z "$LD"; then
  8300. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8301. for ac_dir in $PATH; do
  8302. IFS="$lt_save_ifs"
  8303. test -z "$ac_dir" && ac_dir=.
  8304. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8305. lt_cv_path_LD="$ac_dir/$ac_prog"
  8306. # Check to see if the program is GNU ld. I'd rather use --version,
  8307. # but apparently some GNU ld's only accept -v.
  8308. # Break only if it was the GNU/non-GNU ld that we prefer.
  8309. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8310. *GNU* | *'with BFD'*)
  8311. test "$with_gnu_ld" != no && break
  8312. ;;
  8313. *)
  8314. test "$with_gnu_ld" != yes && break
  8315. ;;
  8316. esac
  8317. fi
  8318. done
  8319. IFS="$lt_save_ifs"
  8320. else
  8321. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8322. fi
  8323. fi
  8324. LD="$lt_cv_path_LD"
  8325. if test -n "$LD"; then
  8326. echo "$as_me:$LINENO: result: $LD" >&5
  8327. echo "${ECHO_T}$LD" >&6
  8328. else
  8329. echo "$as_me:$LINENO: result: no" >&5
  8330. echo "${ECHO_T}no" >&6
  8331. fi
  8332. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8333. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8334. { (exit 1); exit 1; }; }
  8335. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8336. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8337. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  8338. echo $ECHO_N "(cached) $ECHO_C" >&6
  8339. else
  8340. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8341. case `$LD -v 2>&1 </dev/null` in
  8342. *GNU* | *'with BFD'*)
  8343. lt_cv_prog_gnu_ld=yes
  8344. ;;
  8345. *)
  8346. lt_cv_prog_gnu_ld=no
  8347. ;;
  8348. esac
  8349. fi
  8350. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  8351. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  8352. with_gnu_ld=$lt_cv_prog_gnu_ld
  8353. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8354. # archiving commands below assume that GNU ld is being used.
  8355. if test "$with_gnu_ld" = yes; then
  8356. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8357. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8358. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8359. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8360. # If archive_cmds runs LD, not CC, wlarc should be empty
  8361. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8362. # investigate it a little bit more. (MM)
  8363. wlarc='${wl}'
  8364. # ancient GNU ld didn't support --whole-archive et. al.
  8365. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  8366. grep 'no-whole-archive' > /dev/null; then
  8367. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8368. else
  8369. whole_archive_flag_spec_CXX=
  8370. fi
  8371. else
  8372. with_gnu_ld=no
  8373. wlarc=
  8374. # A generic and very simple default shared library creation
  8375. # command for GNU C++ for the case where it uses the native
  8376. # linker, instead of GNU ld. If possible, this setting should
  8377. # overridden to take advantage of the native linker features on
  8378. # the platform it is being used on.
  8379. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8380. fi
  8381. # Commands to make compiler produce verbose output that lists
  8382. # what "hidden" libraries, object files and flags are used when
  8383. # linking a shared library.
  8384. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  8385. else
  8386. GXX=no
  8387. with_gnu_ld=no
  8388. wlarc=
  8389. fi
  8390. # PORTME: fill in a description of your system's C++ link characteristics
  8391. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8392. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  8393. ld_shlibs_CXX=yes
  8394. case $host_os in
  8395. aix3*)
  8396. # FIXME: insert proper C++ library support
  8397. ld_shlibs_CXX=no
  8398. ;;
  8399. aix4* | aix5*)
  8400. if test "$host_cpu" = ia64; then
  8401. # On IA64, the linker does run time linking by default, so we don't
  8402. # have to do anything special.
  8403. aix_use_runtimelinking=no
  8404. exp_sym_flag='-Bexport'
  8405. no_entry_flag=""
  8406. else
  8407. aix_use_runtimelinking=no
  8408. # Test if we are trying to use run time linking or normal
  8409. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8410. # need to do runtime linking.
  8411. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8412. for ld_flag in $LDFLAGS; do
  8413. case $ld_flag in
  8414. *-brtl*)
  8415. aix_use_runtimelinking=yes
  8416. break
  8417. ;;
  8418. esac
  8419. done
  8420. esac
  8421. exp_sym_flag='-bexport'
  8422. no_entry_flag='-bnoentry'
  8423. fi
  8424. # When large executables or shared objects are built, AIX ld can
  8425. # have problems creating the table of contents. If linking a library
  8426. # or program results in "error TOC overflow" add -mminimal-toc to
  8427. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8428. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8429. archive_cmds_CXX=''
  8430. hardcode_direct_CXX=yes
  8431. hardcode_libdir_separator_CXX=':'
  8432. link_all_deplibs_CXX=yes
  8433. if test "$GXX" = yes; then
  8434. case $host_os in aix4.[012]|aix4.[012].*)
  8435. # We only want to do this on AIX 4.2 and lower, the check
  8436. # below for broken collect2 doesn't work under 4.3+
  8437. collect2name=`${CC} -print-prog-name=collect2`
  8438. if test -f "$collect2name" && \
  8439. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8440. then
  8441. # We have reworked collect2
  8442. hardcode_direct_CXX=yes
  8443. else
  8444. # We have old collect2
  8445. hardcode_direct_CXX=unsupported
  8446. # It fails to find uninstalled libraries when the uninstalled
  8447. # path is not listed in the libpath. Setting hardcode_minus_L
  8448. # to unsupported forces relinking
  8449. hardcode_minus_L_CXX=yes
  8450. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8451. hardcode_libdir_separator_CXX=
  8452. fi
  8453. esac
  8454. shared_flag='-shared'
  8455. if test "$aix_use_runtimelinking" = yes; then
  8456. shared_flag="$shared_flag "'${wl}-G'
  8457. fi
  8458. else
  8459. # not using gcc
  8460. if test "$host_cpu" = ia64; then
  8461. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8462. # chokes on -Wl,-G. The following line is correct:
  8463. shared_flag='-G'
  8464. else
  8465. if test "$aix_use_runtimelinking" = yes; then
  8466. shared_flag='${wl}-G'
  8467. else
  8468. shared_flag='${wl}-bM:SRE'
  8469. fi
  8470. fi
  8471. fi
  8472. # It seems that -bexpall does not export symbols beginning with
  8473. # underscore (_), so it is better to generate a list of symbols to export.
  8474. always_export_symbols_CXX=yes
  8475. if test "$aix_use_runtimelinking" = yes; then
  8476. # Warning - without using the other runtime loading flags (-brtl),
  8477. # -berok will link without error, but may produce a broken library.
  8478. allow_undefined_flag_CXX='-berok'
  8479. # Determine the default libpath from the value encoded in an empty executable.
  8480. cat >conftest.$ac_ext <<_ACEOF
  8481. /* confdefs.h. */
  8482. _ACEOF
  8483. cat confdefs.h >>conftest.$ac_ext
  8484. cat >>conftest.$ac_ext <<_ACEOF
  8485. /* end confdefs.h. */
  8486. int
  8487. main ()
  8488. {
  8489. ;
  8490. return 0;
  8491. }
  8492. _ACEOF
  8493. rm -f conftest.$ac_objext conftest$ac_exeext
  8494. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8495. (eval $ac_link) 2>conftest.er1
  8496. ac_status=$?
  8497. grep -v '^ *+' conftest.er1 >conftest.err
  8498. rm -f conftest.er1
  8499. cat conftest.err >&5
  8500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8501. (exit $ac_status); } &&
  8502. { ac_try='test -z "$ac_cxx_werror_flag"
  8503. || test ! -s conftest.err'
  8504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8505. (eval $ac_try) 2>&5
  8506. ac_status=$?
  8507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8508. (exit $ac_status); }; } &&
  8509. { ac_try='test -s conftest$ac_exeext'
  8510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8511. (eval $ac_try) 2>&5
  8512. ac_status=$?
  8513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8514. (exit $ac_status); }; }; then
  8515. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8516. }'`
  8517. # Check for a 64-bit object if we didn't find anything.
  8518. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8519. }'`; fi
  8520. else
  8521. echo "$as_me: failed program was:" >&5
  8522. sed 's/^/| /' conftest.$ac_ext >&5
  8523. fi
  8524. rm -f conftest.err conftest.$ac_objext \
  8525. conftest$ac_exeext conftest.$ac_ext
  8526. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8527. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8528. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8529. else
  8530. if test "$host_cpu" = ia64; then
  8531. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  8532. allow_undefined_flag_CXX="-z nodefs"
  8533. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  8534. else
  8535. # Determine the default libpath from the value encoded in an empty executable.
  8536. cat >conftest.$ac_ext <<_ACEOF
  8537. /* confdefs.h. */
  8538. _ACEOF
  8539. cat confdefs.h >>conftest.$ac_ext
  8540. cat >>conftest.$ac_ext <<_ACEOF
  8541. /* end confdefs.h. */
  8542. int
  8543. main ()
  8544. {
  8545. ;
  8546. return 0;
  8547. }
  8548. _ACEOF
  8549. rm -f conftest.$ac_objext conftest$ac_exeext
  8550. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8551. (eval $ac_link) 2>conftest.er1
  8552. ac_status=$?
  8553. grep -v '^ *+' conftest.er1 >conftest.err
  8554. rm -f conftest.er1
  8555. cat conftest.err >&5
  8556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8557. (exit $ac_status); } &&
  8558. { ac_try='test -z "$ac_cxx_werror_flag"
  8559. || test ! -s conftest.err'
  8560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8561. (eval $ac_try) 2>&5
  8562. ac_status=$?
  8563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8564. (exit $ac_status); }; } &&
  8565. { ac_try='test -s conftest$ac_exeext'
  8566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8567. (eval $ac_try) 2>&5
  8568. ac_status=$?
  8569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8570. (exit $ac_status); }; }; then
  8571. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8572. }'`
  8573. # Check for a 64-bit object if we didn't find anything.
  8574. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8575. }'`; fi
  8576. else
  8577. echo "$as_me: failed program was:" >&5
  8578. sed 's/^/| /' conftest.$ac_ext >&5
  8579. fi
  8580. rm -f conftest.err conftest.$ac_objext \
  8581. conftest$ac_exeext conftest.$ac_ext
  8582. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8583. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8584. # Warning - without using the other run time loading flags,
  8585. # -berok will link without error, but may produce a broken library.
  8586. no_undefined_flag_CXX=' ${wl}-bernotok'
  8587. allow_undefined_flag_CXX=' ${wl}-berok'
  8588. # -bexpall does not export symbols beginning with underscore (_)
  8589. always_export_symbols_CXX=yes
  8590. # Exported symbols can be pulled into shared objects from archives
  8591. whole_archive_flag_spec_CXX=' '
  8592. archive_cmds_need_lc_CXX=yes
  8593. # This is similar to how AIX traditionally builds it's shared libraries.
  8594. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8595. fi
  8596. fi
  8597. ;;
  8598. chorus*)
  8599. case $cc_basename in
  8600. *)
  8601. # FIXME: insert proper C++ library support
  8602. ld_shlibs_CXX=no
  8603. ;;
  8604. esac
  8605. ;;
  8606. cygwin* | mingw* | pw32*)
  8607. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  8608. # as there is no search path for DLLs.
  8609. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8610. allow_undefined_flag_CXX=unsupported
  8611. always_export_symbols_CXX=no
  8612. enable_shared_with_static_runtimes_CXX=yes
  8613. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8614. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8615. # If the export-symbols file already is a .def file (1st line
  8616. # is EXPORTS), use it as is; otherwise, prepend...
  8617. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8618. cp $export_symbols $output_objdir/$soname.def;
  8619. else
  8620. echo EXPORTS > $output_objdir/$soname.def;
  8621. cat $export_symbols >> $output_objdir/$soname.def;
  8622. fi~
  8623. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8624. else
  8625. ld_shlibs_CXX=no
  8626. fi
  8627. ;;
  8628. darwin* | rhapsody*)
  8629. case "$host_os" in
  8630. rhapsody* | darwin1.[012])
  8631. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  8632. ;;
  8633. *) # Darwin 1.3 on
  8634. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8635. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8636. else
  8637. case ${MACOSX_DEPLOYMENT_TARGET} in
  8638. 10.[012])
  8639. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8640. ;;
  8641. 10.*)
  8642. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  8643. ;;
  8644. esac
  8645. fi
  8646. ;;
  8647. esac
  8648. archive_cmds_need_lc_CXX=no
  8649. hardcode_direct_CXX=no
  8650. hardcode_automatic_CXX=yes
  8651. hardcode_shlibpath_var_CXX=unsupported
  8652. whole_archive_flag_spec_CXX=''
  8653. link_all_deplibs_CXX=yes
  8654. if test "$GXX" = yes ; then
  8655. lt_int_apple_cc_single_mod=no
  8656. output_verbose_link_cmd='echo'
  8657. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  8658. lt_int_apple_cc_single_mod=yes
  8659. fi
  8660. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8661. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8662. else
  8663. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8664. fi
  8665. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8666. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8667. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8668. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8669. else
  8670. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8671. fi
  8672. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8673. else
  8674. case $cc_basename in
  8675. xlc*)
  8676. output_verbose_link_cmd='echo'
  8677. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  8678. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8679. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8680. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8681. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8682. ;;
  8683. *)
  8684. ld_shlibs_CXX=no
  8685. ;;
  8686. esac
  8687. fi
  8688. ;;
  8689. dgux*)
  8690. case $cc_basename in
  8691. ec++*)
  8692. # FIXME: insert proper C++ library support
  8693. ld_shlibs_CXX=no
  8694. ;;
  8695. ghcx*)
  8696. # Green Hills C++ Compiler
  8697. # FIXME: insert proper C++ library support
  8698. ld_shlibs_CXX=no
  8699. ;;
  8700. *)
  8701. # FIXME: insert proper C++ library support
  8702. ld_shlibs_CXX=no
  8703. ;;
  8704. esac
  8705. ;;
  8706. freebsd[12]*)
  8707. # C++ shared libraries reported to be fairly broken before switch to ELF
  8708. ld_shlibs_CXX=no
  8709. ;;
  8710. freebsd-elf*)
  8711. archive_cmds_need_lc_CXX=no
  8712. ;;
  8713. freebsd* | kfreebsd*-gnu | dragonfly*)
  8714. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  8715. # conventions
  8716. ld_shlibs_CXX=yes
  8717. ;;
  8718. gnu*)
  8719. ;;
  8720. hpux9*)
  8721. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8722. hardcode_libdir_separator_CXX=:
  8723. export_dynamic_flag_spec_CXX='${wl}-E'
  8724. hardcode_direct_CXX=yes
  8725. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8726. # but as the default
  8727. # location of the library.
  8728. case $cc_basename in
  8729. CC*)
  8730. # FIXME: insert proper C++ library support
  8731. ld_shlibs_CXX=no
  8732. ;;
  8733. aCC*)
  8734. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8735. # Commands to make compiler produce verbose output that lists
  8736. # what "hidden" libraries, object files and flags are used when
  8737. # linking a shared library.
  8738. #
  8739. # There doesn't appear to be a way to prevent this compiler from
  8740. # explicitly linking system object files so we need to strip them
  8741. # from the output so that they don't get included in the library
  8742. # dependencies.
  8743. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  8744. ;;
  8745. *)
  8746. if test "$GXX" = yes; then
  8747. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8748. else
  8749. # FIXME: insert proper C++ library support
  8750. ld_shlibs_CXX=no
  8751. fi
  8752. ;;
  8753. esac
  8754. ;;
  8755. hpux10*|hpux11*)
  8756. if test $with_gnu_ld = no; then
  8757. case "$host_cpu" in
  8758. hppa*64*)
  8759. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8760. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  8761. hardcode_libdir_separator_CXX=:
  8762. ;;
  8763. ia64*)
  8764. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8765. ;;
  8766. *)
  8767. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8768. hardcode_libdir_separator_CXX=:
  8769. export_dynamic_flag_spec_CXX='${wl}-E'
  8770. ;;
  8771. esac
  8772. fi
  8773. case "$host_cpu" in
  8774. hppa*64*)
  8775. hardcode_direct_CXX=no
  8776. hardcode_shlibpath_var_CXX=no
  8777. ;;
  8778. ia64*)
  8779. hardcode_direct_CXX=no
  8780. hardcode_shlibpath_var_CXX=no
  8781. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8782. # but as the default
  8783. # location of the library.
  8784. ;;
  8785. *)
  8786. hardcode_direct_CXX=yes
  8787. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8788. # but as the default
  8789. # location of the library.
  8790. ;;
  8791. esac
  8792. case $cc_basename in
  8793. CC*)
  8794. # FIXME: insert proper C++ library support
  8795. ld_shlibs_CXX=no
  8796. ;;
  8797. aCC*)
  8798. case "$host_cpu" in
  8799. hppa*64*|ia64*)
  8800. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  8801. ;;
  8802. *)
  8803. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8804. ;;
  8805. esac
  8806. # Commands to make compiler produce verbose output that lists
  8807. # what "hidden" libraries, object files and flags are used when
  8808. # linking a shared library.
  8809. #
  8810. # There doesn't appear to be a way to prevent this compiler from
  8811. # explicitly linking system object files so we need to strip them
  8812. # from the output so that they don't get included in the library
  8813. # dependencies.
  8814. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  8815. ;;
  8816. *)
  8817. if test "$GXX" = yes; then
  8818. if test $with_gnu_ld = no; then
  8819. case "$host_cpu" in
  8820. ia64*|hppa*64*)
  8821. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  8822. ;;
  8823. *)
  8824. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8825. ;;
  8826. esac
  8827. fi
  8828. else
  8829. # FIXME: insert proper C++ library support
  8830. ld_shlibs_CXX=no
  8831. fi
  8832. ;;
  8833. esac
  8834. ;;
  8835. irix5* | irix6*)
  8836. case $cc_basename in
  8837. CC*)
  8838. # SGI C++
  8839. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  8840. # Archives containing C++ object files must be created using
  8841. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  8842. # necessary to make sure instantiated templates are included
  8843. # in the archive.
  8844. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  8845. ;;
  8846. *)
  8847. if test "$GXX" = yes; then
  8848. if test "$with_gnu_ld" = no; then
  8849. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8850. else
  8851. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  8852. fi
  8853. fi
  8854. link_all_deplibs_CXX=yes
  8855. ;;
  8856. esac
  8857. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  8858. hardcode_libdir_separator_CXX=:
  8859. ;;
  8860. linux*)
  8861. case $cc_basename in
  8862. KCC*)
  8863. # Kuck and Associates, Inc. (KAI) C++ Compiler
  8864. # KCC will only create a shared library if the output file
  8865. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8866. # to its proper name (with version) after linking.
  8867. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  8868. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  8869. # Commands to make compiler produce verbose output that lists
  8870. # what "hidden" libraries, object files and flags are used when
  8871. # linking a shared library.
  8872. #
  8873. # There doesn't appear to be a way to prevent this compiler from
  8874. # explicitly linking system object files so we need to strip them
  8875. # from the output so that they don't get included in the library
  8876. # dependencies.
  8877. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  8878. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  8879. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8880. # Archives containing C++ object files must be created using
  8881. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  8882. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  8883. ;;
  8884. icpc*)
  8885. # Intel C++
  8886. with_gnu_ld=yes
  8887. # version 8.0 and above of icpc choke on multiply defined symbols
  8888. # if we add $predep_objects and $postdep_objects, however 7.1 and
  8889. # earlier do not add the objects themselves.
  8890. case `$CC -V 2>&1` in
  8891. *"Version 7."*)
  8892. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8893. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8894. ;;
  8895. *) # Version 8.0 or newer
  8896. tmp_idyn=
  8897. case $host_cpu in
  8898. ia64*) tmp_idyn=' -i_dynamic';;
  8899. esac
  8900. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8901. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8902. ;;
  8903. esac
  8904. archive_cmds_need_lc_CXX=no
  8905. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8906. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8907. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8908. ;;
  8909. pgCC*)
  8910. # Portland Group C++ compiler
  8911. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  8912. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  8913. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8914. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8915. whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  8916. ;;
  8917. cxx*)
  8918. # Compaq C++
  8919. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8920. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  8921. runpath_var=LD_RUN_PATH
  8922. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  8923. hardcode_libdir_separator_CXX=:
  8924. # Commands to make compiler produce verbose output that lists
  8925. # what "hidden" libraries, object files and flags are used when
  8926. # linking a shared library.
  8927. #
  8928. # There doesn't appear to be a way to prevent this compiler from
  8929. # explicitly linking system object files so we need to strip them
  8930. # from the output so that they don't get included in the library
  8931. # dependencies.
  8932. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  8933. ;;
  8934. esac
  8935. ;;
  8936. lynxos*)
  8937. # FIXME: insert proper C++ library support
  8938. ld_shlibs_CXX=no
  8939. ;;
  8940. m88k*)
  8941. # FIXME: insert proper C++ library support
  8942. ld_shlibs_CXX=no
  8943. ;;
  8944. mvs*)
  8945. case $cc_basename in
  8946. cxx*)
  8947. # FIXME: insert proper C++ library support
  8948. ld_shlibs_CXX=no
  8949. ;;
  8950. *)
  8951. # FIXME: insert proper C++ library support
  8952. ld_shlibs_CXX=no
  8953. ;;
  8954. esac
  8955. ;;
  8956. netbsd*)
  8957. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8958. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  8959. wlarc=
  8960. hardcode_libdir_flag_spec_CXX='-R$libdir'
  8961. hardcode_direct_CXX=yes
  8962. hardcode_shlibpath_var_CXX=no
  8963. fi
  8964. # Workaround some broken pre-1.5 toolchains
  8965. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  8966. ;;
  8967. openbsd2*)
  8968. # C++ shared libraries are fairly broken
  8969. ld_shlibs_CXX=no
  8970. ;;
  8971. openbsd*)
  8972. hardcode_direct_CXX=yes
  8973. hardcode_shlibpath_var_CXX=no
  8974. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8975. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8976. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8977. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  8978. export_dynamic_flag_spec_CXX='${wl}-E'
  8979. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8980. fi
  8981. output_verbose_link_cmd='echo'
  8982. ;;
  8983. osf3*)
  8984. case $cc_basename in
  8985. KCC*)
  8986. # Kuck and Associates, Inc. (KAI) C++ Compiler
  8987. # KCC will only create a shared library if the output file
  8988. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8989. # to its proper name (with version) after linking.
  8990. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  8991. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8992. hardcode_libdir_separator_CXX=:
  8993. # Archives containing C++ object files must be created using
  8994. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  8995. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  8996. ;;
  8997. RCC*)
  8998. # Rational C++ 2.4.1
  8999. # FIXME: insert proper C++ library support
  9000. ld_shlibs_CXX=no
  9001. ;;
  9002. cxx*)
  9003. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9004. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9005. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9006. hardcode_libdir_separator_CXX=:
  9007. # Commands to make compiler produce verbose output that lists
  9008. # what "hidden" libraries, object files and flags are used when
  9009. # linking a shared library.
  9010. #
  9011. # There doesn't appear to be a way to prevent this compiler from
  9012. # explicitly linking system object files so we need to strip them
  9013. # from the output so that they don't get included in the library
  9014. # dependencies.
  9015. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9016. ;;
  9017. *)
  9018. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9019. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9020. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9021. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9022. hardcode_libdir_separator_CXX=:
  9023. # Commands to make compiler produce verbose output that lists
  9024. # what "hidden" libraries, object files and flags are used when
  9025. # linking a shared library.
  9026. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9027. else
  9028. # FIXME: insert proper C++ library support
  9029. ld_shlibs_CXX=no
  9030. fi
  9031. ;;
  9032. esac
  9033. ;;
  9034. osf4* | osf5*)
  9035. case $cc_basename in
  9036. KCC*)
  9037. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9038. # KCC will only create a shared library if the output file
  9039. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9040. # to its proper name (with version) after linking.
  9041. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9042. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9043. hardcode_libdir_separator_CXX=:
  9044. # Archives containing C++ object files must be created using
  9045. # the KAI C++ compiler.
  9046. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9047. ;;
  9048. RCC*)
  9049. # Rational C++ 2.4.1
  9050. # FIXME: insert proper C++ library support
  9051. ld_shlibs_CXX=no
  9052. ;;
  9053. cxx*)
  9054. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9055. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9056. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9057. echo "-hidden">> $lib.exp~
  9058. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  9059. $rm $lib.exp'
  9060. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9061. hardcode_libdir_separator_CXX=:
  9062. # Commands to make compiler produce verbose output that lists
  9063. # what "hidden" libraries, object files and flags are used when
  9064. # linking a shared library.
  9065. #
  9066. # There doesn't appear to be a way to prevent this compiler from
  9067. # explicitly linking system object files so we need to strip them
  9068. # from the output so that they don't get included in the library
  9069. # dependencies.
  9070. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9071. ;;
  9072. *)
  9073. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9074. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9075. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9076. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9077. hardcode_libdir_separator_CXX=:
  9078. # Commands to make compiler produce verbose output that lists
  9079. # what "hidden" libraries, object files and flags are used when
  9080. # linking a shared library.
  9081. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9082. else
  9083. # FIXME: insert proper C++ library support
  9084. ld_shlibs_CXX=no
  9085. fi
  9086. ;;
  9087. esac
  9088. ;;
  9089. psos*)
  9090. # FIXME: insert proper C++ library support
  9091. ld_shlibs_CXX=no
  9092. ;;
  9093. sco*)
  9094. archive_cmds_need_lc_CXX=no
  9095. case $cc_basename in
  9096. CC*)
  9097. # FIXME: insert proper C++ library support
  9098. ld_shlibs_CXX=no
  9099. ;;
  9100. *)
  9101. # FIXME: insert proper C++ library support
  9102. ld_shlibs_CXX=no
  9103. ;;
  9104. esac
  9105. ;;
  9106. sunos4*)
  9107. case $cc_basename in
  9108. CC*)
  9109. # Sun C++ 4.x
  9110. # FIXME: insert proper C++ library support
  9111. ld_shlibs_CXX=no
  9112. ;;
  9113. lcc*)
  9114. # Lucid
  9115. # FIXME: insert proper C++ library support
  9116. ld_shlibs_CXX=no
  9117. ;;
  9118. *)
  9119. # FIXME: insert proper C++ library support
  9120. ld_shlibs_CXX=no
  9121. ;;
  9122. esac
  9123. ;;
  9124. solaris*)
  9125. case $cc_basename in
  9126. CC*)
  9127. # Sun C++ 4.2, 5.x and Centerline C++
  9128. no_undefined_flag_CXX=' -zdefs'
  9129. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9130. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9131. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9132. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9133. hardcode_shlibpath_var_CXX=no
  9134. case $host_os in
  9135. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9136. *)
  9137. # The C++ compiler is used as linker so we must use $wl
  9138. # flag to pass the commands to the underlying system
  9139. # linker. We must also pass each convience library through
  9140. # to the system linker between allextract/defaultextract.
  9141. # The C++ compiler will combine linker options so we
  9142. # cannot just pass the convience library names through
  9143. # without $wl.
  9144. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9145. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  9146. ;;
  9147. esac
  9148. link_all_deplibs_CXX=yes
  9149. # Commands to make compiler produce verbose output that lists
  9150. # what "hidden" libraries, object files and flags are used when
  9151. # linking a shared library.
  9152. #
  9153. # There doesn't appear to be a way to prevent this compiler from
  9154. # explicitly linking system object files so we need to strip them
  9155. # from the output so that they don't get included in the library
  9156. # dependencies.
  9157. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9158. # Archives containing C++ object files must be created using
  9159. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9160. # necessary to make sure instantiated templates are included
  9161. # in the archive.
  9162. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9163. ;;
  9164. gcx*)
  9165. # Green Hills C++ Compiler
  9166. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9167. # The C++ compiler must be used to create the archive.
  9168. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9169. ;;
  9170. *)
  9171. # GNU C++ compiler with Solaris linker
  9172. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9173. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9174. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9175. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9176. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9177. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9178. # Commands to make compiler produce verbose output that lists
  9179. # what "hidden" libraries, object files and flags are used when
  9180. # linking a shared library.
  9181. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9182. else
  9183. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9184. # platform.
  9185. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9186. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9187. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9188. # Commands to make compiler produce verbose output that lists
  9189. # what "hidden" libraries, object files and flags are used when
  9190. # linking a shared library.
  9191. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9192. fi
  9193. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9194. fi
  9195. ;;
  9196. esac
  9197. ;;
  9198. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  9199. archive_cmds_need_lc_CXX=no
  9200. ;;
  9201. tandem*)
  9202. case $cc_basename in
  9203. NCC*)
  9204. # NonStop-UX NCC 3.20
  9205. # FIXME: insert proper C++ library support
  9206. ld_shlibs_CXX=no
  9207. ;;
  9208. *)
  9209. # FIXME: insert proper C++ library support
  9210. ld_shlibs_CXX=no
  9211. ;;
  9212. esac
  9213. ;;
  9214. vxworks*)
  9215. # FIXME: insert proper C++ library support
  9216. ld_shlibs_CXX=no
  9217. ;;
  9218. *)
  9219. # FIXME: insert proper C++ library support
  9220. ld_shlibs_CXX=no
  9221. ;;
  9222. esac
  9223. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9224. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9225. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9226. GCC_CXX="$GXX"
  9227. LD_CXX="$LD"
  9228. cat > conftest.$ac_ext <<EOF
  9229. class Foo
  9230. {
  9231. public:
  9232. Foo (void) { a = 0; }
  9233. private:
  9234. int a;
  9235. };
  9236. EOF
  9237. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9238. (eval $ac_compile) 2>&5
  9239. ac_status=$?
  9240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9241. (exit $ac_status); }; then
  9242. # Parse the compiler output and extract the necessary
  9243. # objects, libraries and library flags.
  9244. # Sentinel used to keep track of whether or not we are before
  9245. # the conftest object file.
  9246. pre_test_object_deps_done=no
  9247. # The `*' in the case matches for architectures that use `case' in
  9248. # $output_verbose_cmd can trigger glob expansion during the loop
  9249. # eval without this substitution.
  9250. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  9251. for p in `eval $output_verbose_link_cmd`; do
  9252. case $p in
  9253. -L* | -R* | -l*)
  9254. # Some compilers place space between "-{L,R}" and the path.
  9255. # Remove the space.
  9256. if test $p = "-L" \
  9257. || test $p = "-R"; then
  9258. prev=$p
  9259. continue
  9260. else
  9261. prev=
  9262. fi
  9263. if test "$pre_test_object_deps_done" = no; then
  9264. case $p in
  9265. -L* | -R*)
  9266. # Internal compiler library paths should come after those
  9267. # provided the user. The postdeps already come after the
  9268. # user supplied libs so there is no need to process them.
  9269. if test -z "$compiler_lib_search_path_CXX"; then
  9270. compiler_lib_search_path_CXX="${prev}${p}"
  9271. else
  9272. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9273. fi
  9274. ;;
  9275. # The "-l" case would never come before the object being
  9276. # linked, so don't bother handling this case.
  9277. esac
  9278. else
  9279. if test -z "$postdeps_CXX"; then
  9280. postdeps_CXX="${prev}${p}"
  9281. else
  9282. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  9283. fi
  9284. fi
  9285. ;;
  9286. *.$objext)
  9287. # This assumes that the test object file only shows up
  9288. # once in the compiler output.
  9289. if test "$p" = "conftest.$objext"; then
  9290. pre_test_object_deps_done=yes
  9291. continue
  9292. fi
  9293. if test "$pre_test_object_deps_done" = no; then
  9294. if test -z "$predep_objects_CXX"; then
  9295. predep_objects_CXX="$p"
  9296. else
  9297. predep_objects_CXX="$predep_objects_CXX $p"
  9298. fi
  9299. else
  9300. if test -z "$postdep_objects_CXX"; then
  9301. postdep_objects_CXX="$p"
  9302. else
  9303. postdep_objects_CXX="$postdep_objects_CXX $p"
  9304. fi
  9305. fi
  9306. ;;
  9307. *) ;; # Ignore the rest.
  9308. esac
  9309. done
  9310. # Clean up.
  9311. rm -f a.out a.exe
  9312. else
  9313. echo "libtool.m4: error: problem compiling CXX test program"
  9314. fi
  9315. $rm -f confest.$objext
  9316. case " $postdeps_CXX " in
  9317. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  9318. esac
  9319. lt_prog_compiler_wl_CXX=
  9320. lt_prog_compiler_pic_CXX=
  9321. lt_prog_compiler_static_CXX=
  9322. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  9323. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  9324. # C++ specific cases for pic, static, wl, etc.
  9325. if test "$GXX" = yes; then
  9326. lt_prog_compiler_wl_CXX='-Wl,'
  9327. lt_prog_compiler_static_CXX='-static'
  9328. case $host_os in
  9329. aix*)
  9330. # All AIX code is PIC.
  9331. if test "$host_cpu" = ia64; then
  9332. # AIX 5 now supports IA64 processor
  9333. lt_prog_compiler_static_CXX='-Bstatic'
  9334. fi
  9335. ;;
  9336. amigaos*)
  9337. # FIXME: we need at least 68020 code to build shared libraries, but
  9338. # adding the `-m68020' flag to GCC prevents building anything better,
  9339. # like `-m68040'.
  9340. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  9341. ;;
  9342. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9343. # PIC is the default for these OSes.
  9344. ;;
  9345. mingw* | os2* | pw32*)
  9346. # This hack is so that the source file can tell whether it is being
  9347. # built for inclusion in a dll (and should export symbols for example).
  9348. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  9349. ;;
  9350. darwin* | rhapsody*)
  9351. # PIC is the default on this platform
  9352. # Common symbols not allowed in MH_DYLIB files
  9353. lt_prog_compiler_pic_CXX='-fno-common'
  9354. ;;
  9355. *djgpp*)
  9356. # DJGPP does not support shared libraries at all
  9357. lt_prog_compiler_pic_CXX=
  9358. ;;
  9359. sysv4*MP*)
  9360. if test -d /usr/nec; then
  9361. lt_prog_compiler_pic_CXX=-Kconform_pic
  9362. fi
  9363. ;;
  9364. hpux*)
  9365. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9366. # not for PA HP-UX.
  9367. case "$host_cpu" in
  9368. hppa*64*|ia64*)
  9369. ;;
  9370. *)
  9371. lt_prog_compiler_pic_CXX='-fPIC'
  9372. ;;
  9373. esac
  9374. ;;
  9375. *)
  9376. lt_prog_compiler_pic_CXX='-fPIC'
  9377. ;;
  9378. esac
  9379. else
  9380. case $host_os in
  9381. aix4* | aix5*)
  9382. # All AIX code is PIC.
  9383. if test "$host_cpu" = ia64; then
  9384. # AIX 5 now supports IA64 processor
  9385. lt_prog_compiler_static_CXX='-Bstatic'
  9386. else
  9387. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  9388. fi
  9389. ;;
  9390. chorus*)
  9391. case $cc_basename in
  9392. cxch68*)
  9393. # Green Hills C++ Compiler
  9394. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  9395. ;;
  9396. esac
  9397. ;;
  9398. darwin*)
  9399. # PIC is the default on this platform
  9400. # Common symbols not allowed in MH_DYLIB files
  9401. case $cc_basename in
  9402. xlc*)
  9403. lt_prog_compiler_pic_CXX='-qnocommon'
  9404. lt_prog_compiler_wl_CXX='-Wl,'
  9405. ;;
  9406. esac
  9407. ;;
  9408. dgux*)
  9409. case $cc_basename in
  9410. ec++*)
  9411. lt_prog_compiler_pic_CXX='-KPIC'
  9412. ;;
  9413. ghcx*)
  9414. # Green Hills C++ Compiler
  9415. lt_prog_compiler_pic_CXX='-pic'
  9416. ;;
  9417. *)
  9418. ;;
  9419. esac
  9420. ;;
  9421. freebsd* | kfreebsd*-gnu | dragonfly*)
  9422. # FreeBSD uses GNU C++
  9423. ;;
  9424. hpux9* | hpux10* | hpux11*)
  9425. case $cc_basename in
  9426. CC*)
  9427. lt_prog_compiler_wl_CXX='-Wl,'
  9428. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9429. if test "$host_cpu" != ia64; then
  9430. lt_prog_compiler_pic_CXX='+Z'
  9431. fi
  9432. ;;
  9433. aCC*)
  9434. lt_prog_compiler_wl_CXX='-Wl,'
  9435. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9436. case "$host_cpu" in
  9437. hppa*64*|ia64*)
  9438. # +Z the default
  9439. ;;
  9440. *)
  9441. lt_prog_compiler_pic_CXX='+Z'
  9442. ;;
  9443. esac
  9444. ;;
  9445. *)
  9446. ;;
  9447. esac
  9448. ;;
  9449. irix5* | irix6* | nonstopux*)
  9450. case $cc_basename in
  9451. CC*)
  9452. lt_prog_compiler_wl_CXX='-Wl,'
  9453. lt_prog_compiler_static_CXX='-non_shared'
  9454. # CC pic flag -KPIC is the default.
  9455. ;;
  9456. *)
  9457. ;;
  9458. esac
  9459. ;;
  9460. linux*)
  9461. case $cc_basename in
  9462. KCC*)
  9463. # KAI C++ Compiler
  9464. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9465. lt_prog_compiler_pic_CXX='-fPIC'
  9466. ;;
  9467. icpc* | ecpc*)
  9468. # Intel C++
  9469. lt_prog_compiler_wl_CXX='-Wl,'
  9470. lt_prog_compiler_pic_CXX='-KPIC'
  9471. lt_prog_compiler_static_CXX='-static'
  9472. ;;
  9473. pgCC*)
  9474. # Portland Group C++ compiler.
  9475. lt_prog_compiler_wl_CXX='-Wl,'
  9476. lt_prog_compiler_pic_CXX='-fpic'
  9477. lt_prog_compiler_static_CXX='-static'
  9478. ;;
  9479. cxx*)
  9480. # Compaq C++
  9481. # Make sure the PIC flag is empty. It appears that all Alpha
  9482. # Linux and Compaq Tru64 Unix objects are PIC.
  9483. lt_prog_compiler_pic_CXX=
  9484. lt_prog_compiler_static_CXX='-non_shared'
  9485. ;;
  9486. *)
  9487. ;;
  9488. esac
  9489. ;;
  9490. lynxos*)
  9491. ;;
  9492. m88k*)
  9493. ;;
  9494. mvs*)
  9495. case $cc_basename in
  9496. cxx*)
  9497. lt_prog_compiler_pic_CXX='-W c,exportall'
  9498. ;;
  9499. *)
  9500. ;;
  9501. esac
  9502. ;;
  9503. netbsd*)
  9504. ;;
  9505. osf3* | osf4* | osf5*)
  9506. case $cc_basename in
  9507. KCC*)
  9508. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9509. ;;
  9510. RCC*)
  9511. # Rational C++ 2.4.1
  9512. lt_prog_compiler_pic_CXX='-pic'
  9513. ;;
  9514. cxx*)
  9515. # Digital/Compaq C++
  9516. lt_prog_compiler_wl_CXX='-Wl,'
  9517. # Make sure the PIC flag is empty. It appears that all Alpha
  9518. # Linux and Compaq Tru64 Unix objects are PIC.
  9519. lt_prog_compiler_pic_CXX=
  9520. lt_prog_compiler_static_CXX='-non_shared'
  9521. ;;
  9522. *)
  9523. ;;
  9524. esac
  9525. ;;
  9526. psos*)
  9527. ;;
  9528. sco*)
  9529. case $cc_basename in
  9530. CC*)
  9531. lt_prog_compiler_pic_CXX='-fPIC'
  9532. ;;
  9533. *)
  9534. ;;
  9535. esac
  9536. ;;
  9537. solaris*)
  9538. case $cc_basename in
  9539. CC*)
  9540. # Sun C++ 4.2, 5.x and Centerline C++
  9541. lt_prog_compiler_pic_CXX='-KPIC'
  9542. lt_prog_compiler_static_CXX='-Bstatic'
  9543. lt_prog_compiler_wl_CXX='-Qoption ld '
  9544. ;;
  9545. gcx*)
  9546. # Green Hills C++ Compiler
  9547. lt_prog_compiler_pic_CXX='-PIC'
  9548. ;;
  9549. *)
  9550. ;;
  9551. esac
  9552. ;;
  9553. sunos4*)
  9554. case $cc_basename in
  9555. CC*)
  9556. # Sun C++ 4.x
  9557. lt_prog_compiler_pic_CXX='-pic'
  9558. lt_prog_compiler_static_CXX='-Bstatic'
  9559. ;;
  9560. lcc*)
  9561. # Lucid
  9562. lt_prog_compiler_pic_CXX='-pic'
  9563. ;;
  9564. *)
  9565. ;;
  9566. esac
  9567. ;;
  9568. tandem*)
  9569. case $cc_basename in
  9570. NCC*)
  9571. # NonStop-UX NCC 3.20
  9572. lt_prog_compiler_pic_CXX='-KPIC'
  9573. ;;
  9574. *)
  9575. ;;
  9576. esac
  9577. ;;
  9578. unixware*)
  9579. ;;
  9580. vxworks*)
  9581. ;;
  9582. *)
  9583. lt_prog_compiler_can_build_shared_CXX=no
  9584. ;;
  9585. esac
  9586. fi
  9587. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  9588. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  9589. #
  9590. # Check to make sure the PIC flag actually works.
  9591. #
  9592. if test -n "$lt_prog_compiler_pic_CXX"; then
  9593. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  9594. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  9595. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  9596. echo $ECHO_N "(cached) $ECHO_C" >&6
  9597. else
  9598. lt_prog_compiler_pic_works_CXX=no
  9599. ac_outfile=conftest.$ac_objext
  9600. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9601. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  9602. # Insert the option either (1) after the last *FLAGS variable, or
  9603. # (2) before a word containing "conftest.", or (3) at the end.
  9604. # Note that $ac_compile itself does not contain backslashes and begins
  9605. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9606. # The option is referenced via a variable to avoid confusing sed.
  9607. lt_compile=`echo "$ac_compile" | $SED \
  9608. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  9609. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9610. -e 's:$: $lt_compiler_flag:'`
  9611. (eval echo "\"\$as_me:10616: $lt_compile\"" >&5)
  9612. (eval "$lt_compile" 2>conftest.err)
  9613. ac_status=$?
  9614. cat conftest.err >&5
  9615. echo "$as_me:10620: \$? = $ac_status" >&5
  9616. if (exit $ac_status) && test -s "$ac_outfile"; then
  9617. # The compiler can only warn and ignore the option if not recognized
  9618. # So say no if there are warnings other than the usual output.
  9619. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  9620. $SED '/^$/d' conftest.err >conftest.er2
  9621. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  9622. lt_prog_compiler_pic_works_CXX=yes
  9623. fi
  9624. fi
  9625. $rm conftest*
  9626. fi
  9627. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  9628. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  9629. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  9630. case $lt_prog_compiler_pic_CXX in
  9631. "" | " "*) ;;
  9632. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  9633. esac
  9634. else
  9635. lt_prog_compiler_pic_CXX=
  9636. lt_prog_compiler_can_build_shared_CXX=no
  9637. fi
  9638. fi
  9639. case "$host_os" in
  9640. # For platforms which do not support PIC, -DPIC is meaningless:
  9641. *djgpp*)
  9642. lt_prog_compiler_pic_CXX=
  9643. ;;
  9644. *)
  9645. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  9646. ;;
  9647. esac
  9648. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  9649. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  9650. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  9651. echo $ECHO_N "(cached) $ECHO_C" >&6
  9652. else
  9653. lt_cv_prog_compiler_c_o_CXX=no
  9654. $rm -r conftest 2>/dev/null
  9655. mkdir conftest
  9656. cd conftest
  9657. mkdir out
  9658. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9659. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9660. # Insert the option either (1) after the last *FLAGS variable, or
  9661. # (2) before a word containing "conftest.", or (3) at the end.
  9662. # Note that $ac_compile itself does not contain backslashes and begins
  9663. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9664. lt_compile=`echo "$ac_compile" | $SED \
  9665. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  9666. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9667. -e 's:$: $lt_compiler_flag:'`
  9668. (eval echo "\"\$as_me:10678: $lt_compile\"" >&5)
  9669. (eval "$lt_compile" 2>out/conftest.err)
  9670. ac_status=$?
  9671. cat out/conftest.err >&5
  9672. echo "$as_me:10682: \$? = $ac_status" >&5
  9673. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9674. then
  9675. # The compiler can only warn and ignore the option if not recognized
  9676. # So say no if there are warnings
  9677. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  9678. $SED '/^$/d' out/conftest.err >out/conftest.er2
  9679. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9680. lt_cv_prog_compiler_c_o_CXX=yes
  9681. fi
  9682. fi
  9683. chmod u+w .
  9684. $rm conftest*
  9685. # SGI C++ compiler will create directory out/ii_files/ for
  9686. # template instantiation
  9687. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  9688. $rm out/* && rmdir out
  9689. cd ..
  9690. rmdir conftest
  9691. $rm conftest*
  9692. fi
  9693. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  9694. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  9695. hard_links="nottested"
  9696. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  9697. # do not overwrite the value of need_locks provided by the user
  9698. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  9699. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  9700. hard_links=yes
  9701. $rm conftest*
  9702. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9703. touch conftest.a
  9704. ln conftest.a conftest.b 2>&5 || hard_links=no
  9705. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9706. echo "$as_me:$LINENO: result: $hard_links" >&5
  9707. echo "${ECHO_T}$hard_links" >&6
  9708. if test "$hard_links" = no; then
  9709. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9710. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9711. need_locks=warn
  9712. fi
  9713. else
  9714. need_locks=no
  9715. fi
  9716. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9717. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9718. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9719. case $host_os in
  9720. aix4* | aix5*)
  9721. # If we're using GNU nm, then we don't want the "-C" option.
  9722. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9723. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9724. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9725. else
  9726. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9727. fi
  9728. ;;
  9729. pw32*)
  9730. export_symbols_cmds_CXX="$ltdll_cmds"
  9731. ;;
  9732. cygwin* | mingw*)
  9733. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  9734. ;;
  9735. *)
  9736. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9737. ;;
  9738. esac
  9739. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9740. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9741. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9742. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9743. if test "$GCC" = yes; then
  9744. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9745. fi
  9746. #
  9747. # Do we need to explicitly link libc?
  9748. #
  9749. case "x$archive_cmds_need_lc_CXX" in
  9750. x|xyes)
  9751. # Assume -lc should be added
  9752. archive_cmds_need_lc_CXX=yes
  9753. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9754. case $archive_cmds_CXX in
  9755. *'~'*)
  9756. # FIXME: we may have to deal with multi-command sequences.
  9757. ;;
  9758. '$CC '*)
  9759. # Test whether the compiler implicitly links with -lc since on some
  9760. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9761. # to ld, don't add -lc before -lgcc.
  9762. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9763. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  9764. $rm conftest*
  9765. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9766. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9767. (eval $ac_compile) 2>&5
  9768. ac_status=$?
  9769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9770. (exit $ac_status); } 2>conftest.err; then
  9771. soname=conftest
  9772. lib=conftest
  9773. libobjs=conftest.$ac_objext
  9774. deplibs=
  9775. wl=$lt_prog_compiler_wl_CXX
  9776. compiler_flags=-v
  9777. linker_flags=-v
  9778. verstring=
  9779. output_objdir=.
  9780. libname=conftest
  9781. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  9782. allow_undefined_flag_CXX=
  9783. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9784. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9785. ac_status=$?
  9786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9787. (exit $ac_status); }
  9788. then
  9789. archive_cmds_need_lc_CXX=no
  9790. else
  9791. archive_cmds_need_lc_CXX=yes
  9792. fi
  9793. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  9794. else
  9795. cat conftest.err 1>&5
  9796. fi
  9797. $rm conftest*
  9798. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  9799. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  9800. ;;
  9801. esac
  9802. fi
  9803. ;;
  9804. esac
  9805. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9806. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  9807. library_names_spec=
  9808. libname_spec='lib$name'
  9809. soname_spec=
  9810. shrext_cmds=".so"
  9811. postinstall_cmds=
  9812. postuninstall_cmds=
  9813. finish_cmds=
  9814. finish_eval=
  9815. shlibpath_var=
  9816. shlibpath_overrides_runpath=unknown
  9817. version_type=none
  9818. dynamic_linker="$host_os ld.so"
  9819. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9820. if test "$GCC" = yes; then
  9821. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9822. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  9823. # if the path contains ";" then we assume it to be the separator
  9824. # otherwise default to the standard path separator (i.e. ":") - it is
  9825. # assumed that no part of a normal pathname contains ";" but that should
  9826. # okay in the real world where ";" in dirpaths is itself problematic.
  9827. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9828. else
  9829. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9830. fi
  9831. else
  9832. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9833. fi
  9834. need_lib_prefix=unknown
  9835. hardcode_into_libs=no
  9836. # when you set need_version to no, make sure it does not cause -set_version
  9837. # flags to be left without arguments
  9838. need_version=unknown
  9839. case $host_os in
  9840. aix3*)
  9841. version_type=linux
  9842. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9843. shlibpath_var=LIBPATH
  9844. # AIX 3 has no versioning support, so we append a major version to the name.
  9845. soname_spec='${libname}${release}${shared_ext}$major'
  9846. ;;
  9847. aix4* | aix5*)
  9848. version_type=linux
  9849. need_lib_prefix=no
  9850. need_version=no
  9851. hardcode_into_libs=yes
  9852. if test "$host_cpu" = ia64; then
  9853. # AIX 5 supports IA64
  9854. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9855. shlibpath_var=LD_LIBRARY_PATH
  9856. else
  9857. # With GCC up to 2.95.x, collect2 would create an import file
  9858. # for dependence libraries. The import file would start with
  9859. # the line `#! .'. This would cause the generated library to
  9860. # depend on `.', always an invalid library. This was fixed in
  9861. # development snapshots of GCC prior to 3.0.
  9862. case $host_os in
  9863. aix4 | aix4.[01] | aix4.[01].*)
  9864. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9865. echo ' yes '
  9866. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9867. :
  9868. else
  9869. can_build_shared=no
  9870. fi
  9871. ;;
  9872. esac
  9873. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9874. # soname into executable. Probably we can add versioning support to
  9875. # collect2, so additional links can be useful in future.
  9876. if test "$aix_use_runtimelinking" = yes; then
  9877. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9878. # instead of lib<name>.a to let people know that these are not
  9879. # typical AIX shared libraries.
  9880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9881. else
  9882. # We preserve .a as extension for shared libraries through AIX4.2
  9883. # and later when we are not doing run time linking.
  9884. library_names_spec='${libname}${release}.a $libname.a'
  9885. soname_spec='${libname}${release}${shared_ext}$major'
  9886. fi
  9887. shlibpath_var=LIBPATH
  9888. fi
  9889. ;;
  9890. amigaos*)
  9891. library_names_spec='$libname.ixlibrary $libname.a'
  9892. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9893. 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'
  9894. ;;
  9895. beos*)
  9896. library_names_spec='${libname}${shared_ext}'
  9897. dynamic_linker="$host_os ld.so"
  9898. shlibpath_var=LIBRARY_PATH
  9899. ;;
  9900. bsdi[45]*)
  9901. version_type=linux
  9902. need_version=no
  9903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9904. soname_spec='${libname}${release}${shared_ext}$major'
  9905. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9906. shlibpath_var=LD_LIBRARY_PATH
  9907. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9908. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9909. # the default ld.so.conf also contains /usr/contrib/lib and
  9910. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9911. # libtool to hard-code these into programs
  9912. ;;
  9913. cygwin* | mingw* | pw32*)
  9914. version_type=windows
  9915. shrext_cmds=".dll"
  9916. need_version=no
  9917. need_lib_prefix=no
  9918. case $GCC,$host_os in
  9919. yes,cygwin* | yes,mingw* | yes,pw32*)
  9920. library_names_spec='$libname.dll.a'
  9921. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9922. postinstall_cmds='base_file=`basename \${file}`~
  9923. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  9924. dldir=$destdir/`dirname \$dlpath`~
  9925. test -d \$dldir || mkdir -p \$dldir~
  9926. $install_prog $dir/$dlname \$dldir/$dlname'
  9927. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9928. dlpath=$dir/\$dldll~
  9929. $rm \$dlpath'
  9930. shlibpath_overrides_runpath=yes
  9931. case $host_os in
  9932. cygwin*)
  9933. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9934. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9935. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9936. ;;
  9937. mingw*)
  9938. # MinGW DLLs use traditional 'lib' prefix
  9939. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9940. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9941. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  9942. # It is most probably a Windows format PATH printed by
  9943. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9944. # path with ; separators, and with drive letters. We can handle the
  9945. # drive letters (cygwin fileutils understands them), so leave them,
  9946. # especially as we might pass files found there to a mingw objdump,
  9947. # which wouldn't understand a cygwinified path. Ahh.
  9948. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9949. else
  9950. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9951. fi
  9952. ;;
  9953. pw32*)
  9954. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9955. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9956. ;;
  9957. esac
  9958. ;;
  9959. *)
  9960. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9961. ;;
  9962. esac
  9963. dynamic_linker='Win32 ld.exe'
  9964. # FIXME: first we should search . and the directory the executable is in
  9965. shlibpath_var=PATH
  9966. ;;
  9967. darwin* | rhapsody*)
  9968. dynamic_linker="$host_os dyld"
  9969. version_type=darwin
  9970. need_lib_prefix=no
  9971. need_version=no
  9972. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9973. soname_spec='${libname}${release}${major}$shared_ext'
  9974. shlibpath_overrides_runpath=yes
  9975. shlibpath_var=DYLD_LIBRARY_PATH
  9976. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  9977. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  9978. if test "$GCC" = yes; then
  9979. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  9980. else
  9981. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  9982. fi
  9983. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9984. ;;
  9985. dgux*)
  9986. version_type=linux
  9987. need_lib_prefix=no
  9988. need_version=no
  9989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9990. soname_spec='${libname}${release}${shared_ext}$major'
  9991. shlibpath_var=LD_LIBRARY_PATH
  9992. ;;
  9993. freebsd1*)
  9994. dynamic_linker=no
  9995. ;;
  9996. kfreebsd*-gnu)
  9997. version_type=linux
  9998. need_lib_prefix=no
  9999. need_version=no
  10000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10001. soname_spec='${libname}${release}${shared_ext}$major'
  10002. shlibpath_var=LD_LIBRARY_PATH
  10003. shlibpath_overrides_runpath=no
  10004. hardcode_into_libs=yes
  10005. dynamic_linker='GNU ld.so'
  10006. ;;
  10007. freebsd* | dragonfly*)
  10008. # DragonFly does not have aout. When/if they implement a new
  10009. # versioning mechanism, adjust this.
  10010. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  10011. version_type=freebsd-$objformat
  10012. case $version_type in
  10013. freebsd-elf*)
  10014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10015. need_version=no
  10016. need_lib_prefix=no
  10017. ;;
  10018. freebsd-*)
  10019. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10020. need_version=yes
  10021. ;;
  10022. esac
  10023. shlibpath_var=LD_LIBRARY_PATH
  10024. case $host_os in
  10025. freebsd2*)
  10026. shlibpath_overrides_runpath=yes
  10027. ;;
  10028. freebsd3.[01]* | freebsdelf3.[01]*)
  10029. shlibpath_overrides_runpath=yes
  10030. hardcode_into_libs=yes
  10031. ;;
  10032. *) # from 3.2 on
  10033. shlibpath_overrides_runpath=no
  10034. hardcode_into_libs=yes
  10035. ;;
  10036. esac
  10037. ;;
  10038. gnu*)
  10039. version_type=linux
  10040. need_lib_prefix=no
  10041. need_version=no
  10042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10043. soname_spec='${libname}${release}${shared_ext}$major'
  10044. shlibpath_var=LD_LIBRARY_PATH
  10045. hardcode_into_libs=yes
  10046. ;;
  10047. hpux9* | hpux10* | hpux11*)
  10048. # Give a soname corresponding to the major version so that dld.sl refuses to
  10049. # link against other versions.
  10050. version_type=sunos
  10051. need_lib_prefix=no
  10052. need_version=no
  10053. case "$host_cpu" in
  10054. ia64*)
  10055. shrext_cmds='.so'
  10056. hardcode_into_libs=yes
  10057. dynamic_linker="$host_os dld.so"
  10058. shlibpath_var=LD_LIBRARY_PATH
  10059. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10061. soname_spec='${libname}${release}${shared_ext}$major'
  10062. if test "X$HPUX_IA64_MODE" = X32; then
  10063. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10064. else
  10065. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10066. fi
  10067. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10068. ;;
  10069. hppa*64*)
  10070. shrext_cmds='.sl'
  10071. hardcode_into_libs=yes
  10072. dynamic_linker="$host_os dld.sl"
  10073. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10074. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10076. soname_spec='${libname}${release}${shared_ext}$major'
  10077. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10078. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10079. ;;
  10080. *)
  10081. shrext_cmds='.sl'
  10082. dynamic_linker="$host_os dld.sl"
  10083. shlibpath_var=SHLIB_PATH
  10084. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10086. soname_spec='${libname}${release}${shared_ext}$major'
  10087. ;;
  10088. esac
  10089. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10090. postinstall_cmds='chmod 555 $lib'
  10091. ;;
  10092. irix5* | irix6* | nonstopux*)
  10093. case $host_os in
  10094. nonstopux*) version_type=nonstopux ;;
  10095. *)
  10096. if test "$lt_cv_prog_gnu_ld" = yes; then
  10097. version_type=linux
  10098. else
  10099. version_type=irix
  10100. fi ;;
  10101. esac
  10102. need_lib_prefix=no
  10103. need_version=no
  10104. soname_spec='${libname}${release}${shared_ext}$major'
  10105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10106. case $host_os in
  10107. irix5* | nonstopux*)
  10108. libsuff= shlibsuff=
  10109. ;;
  10110. *)
  10111. case $LD in # libtool.m4 will add one of these switches to LD
  10112. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10113. libsuff= shlibsuff= libmagic=32-bit;;
  10114. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10115. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10116. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10117. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10118. *) libsuff= shlibsuff= libmagic=never-match;;
  10119. esac
  10120. ;;
  10121. esac
  10122. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10123. shlibpath_overrides_runpath=no
  10124. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10125. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10126. hardcode_into_libs=yes
  10127. ;;
  10128. # No shared lib support for Linux oldld, aout, or coff.
  10129. linux*oldld* | linux*aout* | linux*coff*)
  10130. dynamic_linker=no
  10131. ;;
  10132. # This must be Linux ELF.
  10133. linux*)
  10134. version_type=linux
  10135. need_lib_prefix=no
  10136. need_version=no
  10137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10138. soname_spec='${libname}${release}${shared_ext}$major'
  10139. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10140. shlibpath_var=LD_LIBRARY_PATH
  10141. shlibpath_overrides_runpath=no
  10142. # This implies no fast_install, which is unacceptable.
  10143. # Some rework will be needed to allow for fast_install
  10144. # before this can be enabled.
  10145. hardcode_into_libs=yes
  10146. # Append ld.so.conf contents to the search path
  10147. if test -f /etc/ld.so.conf; then
  10148. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10149. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10150. fi
  10151. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10152. # powerpc, because MkLinux only supported shared libraries with the
  10153. # GNU dynamic linker. Since this was broken with cross compilers,
  10154. # most powerpc-linux boxes support dynamic linking these days and
  10155. # people can always --disable-shared, the test was removed, and we
  10156. # assume the GNU/Linux dynamic linker is in use.
  10157. dynamic_linker='GNU/Linux ld.so'
  10158. ;;
  10159. knetbsd*-gnu)
  10160. version_type=linux
  10161. need_lib_prefix=no
  10162. need_version=no
  10163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10164. soname_spec='${libname}${release}${shared_ext}$major'
  10165. shlibpath_var=LD_LIBRARY_PATH
  10166. shlibpath_overrides_runpath=no
  10167. hardcode_into_libs=yes
  10168. dynamic_linker='GNU ld.so'
  10169. ;;
  10170. netbsd*)
  10171. version_type=sunos
  10172. need_lib_prefix=no
  10173. need_version=no
  10174. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10176. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10177. dynamic_linker='NetBSD (a.out) ld.so'
  10178. else
  10179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10180. soname_spec='${libname}${release}${shared_ext}$major'
  10181. dynamic_linker='NetBSD ld.elf_so'
  10182. fi
  10183. shlibpath_var=LD_LIBRARY_PATH
  10184. shlibpath_overrides_runpath=yes
  10185. hardcode_into_libs=yes
  10186. ;;
  10187. newsos6)
  10188. version_type=linux
  10189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10190. shlibpath_var=LD_LIBRARY_PATH
  10191. shlibpath_overrides_runpath=yes
  10192. ;;
  10193. nto-qnx*)
  10194. version_type=linux
  10195. need_lib_prefix=no
  10196. need_version=no
  10197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10198. soname_spec='${libname}${release}${shared_ext}$major'
  10199. shlibpath_var=LD_LIBRARY_PATH
  10200. shlibpath_overrides_runpath=yes
  10201. ;;
  10202. openbsd*)
  10203. version_type=sunos
  10204. need_lib_prefix=no
  10205. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10206. case $host_os in
  10207. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10208. *) need_version=no ;;
  10209. esac
  10210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10211. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10212. shlibpath_var=LD_LIBRARY_PATH
  10213. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10214. case $host_os in
  10215. openbsd2.[89] | openbsd2.[89].*)
  10216. shlibpath_overrides_runpath=no
  10217. ;;
  10218. *)
  10219. shlibpath_overrides_runpath=yes
  10220. ;;
  10221. esac
  10222. else
  10223. shlibpath_overrides_runpath=yes
  10224. fi
  10225. ;;
  10226. os2*)
  10227. libname_spec='$name'
  10228. shrext_cmds=".dll"
  10229. need_lib_prefix=no
  10230. library_names_spec='$libname${shared_ext} $libname.a'
  10231. dynamic_linker='OS/2 ld.exe'
  10232. shlibpath_var=LIBPATH
  10233. ;;
  10234. osf3* | osf4* | osf5*)
  10235. version_type=osf
  10236. need_lib_prefix=no
  10237. need_version=no
  10238. soname_spec='${libname}${release}${shared_ext}$major'
  10239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10240. shlibpath_var=LD_LIBRARY_PATH
  10241. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10242. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10243. ;;
  10244. sco3.2v5*)
  10245. version_type=osf
  10246. soname_spec='${libname}${release}${shared_ext}$major'
  10247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10248. shlibpath_var=LD_LIBRARY_PATH
  10249. ;;
  10250. solaris*)
  10251. version_type=linux
  10252. need_lib_prefix=no
  10253. need_version=no
  10254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10255. soname_spec='${libname}${release}${shared_ext}$major'
  10256. shlibpath_var=LD_LIBRARY_PATH
  10257. shlibpath_overrides_runpath=yes
  10258. hardcode_into_libs=yes
  10259. # ldd complains unless libraries are executable
  10260. postinstall_cmds='chmod +x $lib'
  10261. ;;
  10262. sunos4*)
  10263. version_type=sunos
  10264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10265. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10266. shlibpath_var=LD_LIBRARY_PATH
  10267. shlibpath_overrides_runpath=yes
  10268. if test "$with_gnu_ld" = yes; then
  10269. need_lib_prefix=no
  10270. fi
  10271. need_version=yes
  10272. ;;
  10273. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10274. version_type=linux
  10275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10276. soname_spec='${libname}${release}${shared_ext}$major'
  10277. shlibpath_var=LD_LIBRARY_PATH
  10278. case $host_vendor in
  10279. sni)
  10280. shlibpath_overrides_runpath=no
  10281. need_lib_prefix=no
  10282. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10283. runpath_var=LD_RUN_PATH
  10284. ;;
  10285. siemens)
  10286. need_lib_prefix=no
  10287. ;;
  10288. motorola)
  10289. need_lib_prefix=no
  10290. need_version=no
  10291. shlibpath_overrides_runpath=no
  10292. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10293. ;;
  10294. esac
  10295. ;;
  10296. sysv4*MP*)
  10297. if test -d /usr/nec ;then
  10298. version_type=linux
  10299. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10300. soname_spec='$libname${shared_ext}.$major'
  10301. shlibpath_var=LD_LIBRARY_PATH
  10302. fi
  10303. ;;
  10304. uts4*)
  10305. version_type=linux
  10306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10307. soname_spec='${libname}${release}${shared_ext}$major'
  10308. shlibpath_var=LD_LIBRARY_PATH
  10309. ;;
  10310. *)
  10311. dynamic_linker=no
  10312. ;;
  10313. esac
  10314. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10315. echo "${ECHO_T}$dynamic_linker" >&6
  10316. test "$dynamic_linker" = no && can_build_shared=no
  10317. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10318. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  10319. hardcode_action_CXX=
  10320. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  10321. test -n "$runpath_var_CXX" || \
  10322. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  10323. # We can hardcode non-existant directories.
  10324. if test "$hardcode_direct_CXX" != no &&
  10325. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10326. # have to relink, otherwise we might link with an installed library
  10327. # when we should be linking with a yet-to-be-installed one
  10328. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  10329. test "$hardcode_minus_L_CXX" != no; then
  10330. # Linking always hardcodes the temporary library directory.
  10331. hardcode_action_CXX=relink
  10332. else
  10333. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10334. hardcode_action_CXX=immediate
  10335. fi
  10336. else
  10337. # We cannot hardcode anything, or else we can only hardcode existing
  10338. # directories.
  10339. hardcode_action_CXX=unsupported
  10340. fi
  10341. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  10342. echo "${ECHO_T}$hardcode_action_CXX" >&6
  10343. if test "$hardcode_action_CXX" = relink; then
  10344. # Fast installation is not supported
  10345. enable_fast_install=no
  10346. elif test "$shlibpath_overrides_runpath" = yes ||
  10347. test "$enable_shared" = no; then
  10348. # Fast installation is not necessary
  10349. enable_fast_install=needless
  10350. fi
  10351. striplib=
  10352. old_striplib=
  10353. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10354. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  10355. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10356. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10357. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10358. echo "$as_me:$LINENO: result: yes" >&5
  10359. echo "${ECHO_T}yes" >&6
  10360. else
  10361. # FIXME - insert some real tests, host_os isn't really good enough
  10362. case $host_os in
  10363. darwin*)
  10364. if test -n "$STRIP" ; then
  10365. striplib="$STRIP -x"
  10366. echo "$as_me:$LINENO: result: yes" >&5
  10367. echo "${ECHO_T}yes" >&6
  10368. else
  10369. echo "$as_me:$LINENO: result: no" >&5
  10370. echo "${ECHO_T}no" >&6
  10371. fi
  10372. ;;
  10373. *)
  10374. echo "$as_me:$LINENO: result: no" >&5
  10375. echo "${ECHO_T}no" >&6
  10376. ;;
  10377. esac
  10378. fi
  10379. if test "x$enable_dlopen" != xyes; then
  10380. enable_dlopen=unknown
  10381. enable_dlopen_self=unknown
  10382. enable_dlopen_self_static=unknown
  10383. else
  10384. lt_cv_dlopen=no
  10385. lt_cv_dlopen_libs=
  10386. case $host_os in
  10387. beos*)
  10388. lt_cv_dlopen="load_add_on"
  10389. lt_cv_dlopen_libs=
  10390. lt_cv_dlopen_self=yes
  10391. ;;
  10392. mingw* | pw32*)
  10393. lt_cv_dlopen="LoadLibrary"
  10394. lt_cv_dlopen_libs=
  10395. ;;
  10396. cygwin*)
  10397. lt_cv_dlopen="dlopen"
  10398. lt_cv_dlopen_libs=
  10399. ;;
  10400. darwin*)
  10401. # if libdl is installed we need to link against it
  10402. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10403. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  10404. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10405. echo $ECHO_N "(cached) $ECHO_C" >&6
  10406. else
  10407. ac_check_lib_save_LIBS=$LIBS
  10408. LIBS="-ldl $LIBS"
  10409. cat >conftest.$ac_ext <<_ACEOF
  10410. /* confdefs.h. */
  10411. _ACEOF
  10412. cat confdefs.h >>conftest.$ac_ext
  10413. cat >>conftest.$ac_ext <<_ACEOF
  10414. /* end confdefs.h. */
  10415. /* Override any gcc2 internal prototype to avoid an error. */
  10416. #ifdef __cplusplus
  10417. extern "C"
  10418. #endif
  10419. /* We use char because int might match the return type of a gcc2
  10420. builtin and then its argument prototype would still apply. */
  10421. char dlopen ();
  10422. int
  10423. main ()
  10424. {
  10425. dlopen ();
  10426. ;
  10427. return 0;
  10428. }
  10429. _ACEOF
  10430. rm -f conftest.$ac_objext conftest$ac_exeext
  10431. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10432. (eval $ac_link) 2>conftest.er1
  10433. ac_status=$?
  10434. grep -v '^ *+' conftest.er1 >conftest.err
  10435. rm -f conftest.er1
  10436. cat conftest.err >&5
  10437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10438. (exit $ac_status); } &&
  10439. { ac_try='test -z "$ac_cxx_werror_flag"
  10440. || test ! -s conftest.err'
  10441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10442. (eval $ac_try) 2>&5
  10443. ac_status=$?
  10444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10445. (exit $ac_status); }; } &&
  10446. { ac_try='test -s conftest$ac_exeext'
  10447. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10448. (eval $ac_try) 2>&5
  10449. ac_status=$?
  10450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10451. (exit $ac_status); }; }; then
  10452. ac_cv_lib_dl_dlopen=yes
  10453. else
  10454. echo "$as_me: failed program was:" >&5
  10455. sed 's/^/| /' conftest.$ac_ext >&5
  10456. ac_cv_lib_dl_dlopen=no
  10457. fi
  10458. rm -f conftest.err conftest.$ac_objext \
  10459. conftest$ac_exeext conftest.$ac_ext
  10460. LIBS=$ac_check_lib_save_LIBS
  10461. fi
  10462. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10463. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  10464. if test $ac_cv_lib_dl_dlopen = yes; then
  10465. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10466. else
  10467. lt_cv_dlopen="dyld"
  10468. lt_cv_dlopen_libs=
  10469. lt_cv_dlopen_self=yes
  10470. fi
  10471. ;;
  10472. *)
  10473. echo "$as_me:$LINENO: checking for shl_load" >&5
  10474. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  10475. if test "${ac_cv_func_shl_load+set}" = set; then
  10476. echo $ECHO_N "(cached) $ECHO_C" >&6
  10477. else
  10478. cat >conftest.$ac_ext <<_ACEOF
  10479. /* confdefs.h. */
  10480. _ACEOF
  10481. cat confdefs.h >>conftest.$ac_ext
  10482. cat >>conftest.$ac_ext <<_ACEOF
  10483. /* end confdefs.h. */
  10484. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10485. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10486. #define shl_load innocuous_shl_load
  10487. /* System header to define __stub macros and hopefully few prototypes,
  10488. which can conflict with char shl_load (); below.
  10489. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10490. <limits.h> exists even on freestanding compilers. */
  10491. #ifdef __STDC__
  10492. # include <limits.h>
  10493. #else
  10494. # include <assert.h>
  10495. #endif
  10496. #undef shl_load
  10497. /* Override any gcc2 internal prototype to avoid an error. */
  10498. #ifdef __cplusplus
  10499. extern "C"
  10500. {
  10501. #endif
  10502. /* We use char because int might match the return type of a gcc2
  10503. builtin and then its argument prototype would still apply. */
  10504. char shl_load ();
  10505. /* The GNU C library defines this for functions which it implements
  10506. to always fail with ENOSYS. Some functions are actually named
  10507. something starting with __ and the normal name is an alias. */
  10508. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  10509. choke me
  10510. #else
  10511. char (*f) () = shl_load;
  10512. #endif
  10513. #ifdef __cplusplus
  10514. }
  10515. #endif
  10516. int
  10517. main ()
  10518. {
  10519. return f != shl_load;
  10520. ;
  10521. return 0;
  10522. }
  10523. _ACEOF
  10524. rm -f conftest.$ac_objext conftest$ac_exeext
  10525. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10526. (eval $ac_link) 2>conftest.er1
  10527. ac_status=$?
  10528. grep -v '^ *+' conftest.er1 >conftest.err
  10529. rm -f conftest.er1
  10530. cat conftest.err >&5
  10531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10532. (exit $ac_status); } &&
  10533. { ac_try='test -z "$ac_cxx_werror_flag"
  10534. || test ! -s conftest.err'
  10535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10536. (eval $ac_try) 2>&5
  10537. ac_status=$?
  10538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10539. (exit $ac_status); }; } &&
  10540. { ac_try='test -s conftest$ac_exeext'
  10541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10542. (eval $ac_try) 2>&5
  10543. ac_status=$?
  10544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10545. (exit $ac_status); }; }; then
  10546. ac_cv_func_shl_load=yes
  10547. else
  10548. echo "$as_me: failed program was:" >&5
  10549. sed 's/^/| /' conftest.$ac_ext >&5
  10550. ac_cv_func_shl_load=no
  10551. fi
  10552. rm -f conftest.err conftest.$ac_objext \
  10553. conftest$ac_exeext conftest.$ac_ext
  10554. fi
  10555. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10556. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  10557. if test $ac_cv_func_shl_load = yes; then
  10558. lt_cv_dlopen="shl_load"
  10559. else
  10560. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10561. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  10562. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10563. echo $ECHO_N "(cached) $ECHO_C" >&6
  10564. else
  10565. ac_check_lib_save_LIBS=$LIBS
  10566. LIBS="-ldld $LIBS"
  10567. cat >conftest.$ac_ext <<_ACEOF
  10568. /* confdefs.h. */
  10569. _ACEOF
  10570. cat confdefs.h >>conftest.$ac_ext
  10571. cat >>conftest.$ac_ext <<_ACEOF
  10572. /* end confdefs.h. */
  10573. /* Override any gcc2 internal prototype to avoid an error. */
  10574. #ifdef __cplusplus
  10575. extern "C"
  10576. #endif
  10577. /* We use char because int might match the return type of a gcc2
  10578. builtin and then its argument prototype would still apply. */
  10579. char shl_load ();
  10580. int
  10581. main ()
  10582. {
  10583. shl_load ();
  10584. ;
  10585. return 0;
  10586. }
  10587. _ACEOF
  10588. rm -f conftest.$ac_objext conftest$ac_exeext
  10589. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10590. (eval $ac_link) 2>conftest.er1
  10591. ac_status=$?
  10592. grep -v '^ *+' conftest.er1 >conftest.err
  10593. rm -f conftest.er1
  10594. cat conftest.err >&5
  10595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10596. (exit $ac_status); } &&
  10597. { ac_try='test -z "$ac_cxx_werror_flag"
  10598. || test ! -s conftest.err'
  10599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10600. (eval $ac_try) 2>&5
  10601. ac_status=$?
  10602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10603. (exit $ac_status); }; } &&
  10604. { ac_try='test -s conftest$ac_exeext'
  10605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10606. (eval $ac_try) 2>&5
  10607. ac_status=$?
  10608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10609. (exit $ac_status); }; }; then
  10610. ac_cv_lib_dld_shl_load=yes
  10611. else
  10612. echo "$as_me: failed program was:" >&5
  10613. sed 's/^/| /' conftest.$ac_ext >&5
  10614. ac_cv_lib_dld_shl_load=no
  10615. fi
  10616. rm -f conftest.err conftest.$ac_objext \
  10617. conftest$ac_exeext conftest.$ac_ext
  10618. LIBS=$ac_check_lib_save_LIBS
  10619. fi
  10620. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10621. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  10622. if test $ac_cv_lib_dld_shl_load = yes; then
  10623. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10624. else
  10625. echo "$as_me:$LINENO: checking for dlopen" >&5
  10626. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  10627. if test "${ac_cv_func_dlopen+set}" = set; then
  10628. echo $ECHO_N "(cached) $ECHO_C" >&6
  10629. else
  10630. cat >conftest.$ac_ext <<_ACEOF
  10631. /* confdefs.h. */
  10632. _ACEOF
  10633. cat confdefs.h >>conftest.$ac_ext
  10634. cat >>conftest.$ac_ext <<_ACEOF
  10635. /* end confdefs.h. */
  10636. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10637. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10638. #define dlopen innocuous_dlopen
  10639. /* System header to define __stub macros and hopefully few prototypes,
  10640. which can conflict with char dlopen (); below.
  10641. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10642. <limits.h> exists even on freestanding compilers. */
  10643. #ifdef __STDC__
  10644. # include <limits.h>
  10645. #else
  10646. # include <assert.h>
  10647. #endif
  10648. #undef dlopen
  10649. /* Override any gcc2 internal prototype to avoid an error. */
  10650. #ifdef __cplusplus
  10651. extern "C"
  10652. {
  10653. #endif
  10654. /* We use char because int might match the return type of a gcc2
  10655. builtin and then its argument prototype would still apply. */
  10656. char dlopen ();
  10657. /* The GNU C library defines this for functions which it implements
  10658. to always fail with ENOSYS. Some functions are actually named
  10659. something starting with __ and the normal name is an alias. */
  10660. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  10661. choke me
  10662. #else
  10663. char (*f) () = dlopen;
  10664. #endif
  10665. #ifdef __cplusplus
  10666. }
  10667. #endif
  10668. int
  10669. main ()
  10670. {
  10671. return f != dlopen;
  10672. ;
  10673. return 0;
  10674. }
  10675. _ACEOF
  10676. rm -f conftest.$ac_objext conftest$ac_exeext
  10677. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10678. (eval $ac_link) 2>conftest.er1
  10679. ac_status=$?
  10680. grep -v '^ *+' conftest.er1 >conftest.err
  10681. rm -f conftest.er1
  10682. cat conftest.err >&5
  10683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10684. (exit $ac_status); } &&
  10685. { ac_try='test -z "$ac_cxx_werror_flag"
  10686. || test ! -s conftest.err'
  10687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10688. (eval $ac_try) 2>&5
  10689. ac_status=$?
  10690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10691. (exit $ac_status); }; } &&
  10692. { ac_try='test -s conftest$ac_exeext'
  10693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10694. (eval $ac_try) 2>&5
  10695. ac_status=$?
  10696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10697. (exit $ac_status); }; }; then
  10698. ac_cv_func_dlopen=yes
  10699. else
  10700. echo "$as_me: failed program was:" >&5
  10701. sed 's/^/| /' conftest.$ac_ext >&5
  10702. ac_cv_func_dlopen=no
  10703. fi
  10704. rm -f conftest.err conftest.$ac_objext \
  10705. conftest$ac_exeext conftest.$ac_ext
  10706. fi
  10707. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10708. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  10709. if test $ac_cv_func_dlopen = yes; then
  10710. lt_cv_dlopen="dlopen"
  10711. else
  10712. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10713. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  10714. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10715. echo $ECHO_N "(cached) $ECHO_C" >&6
  10716. else
  10717. ac_check_lib_save_LIBS=$LIBS
  10718. LIBS="-ldl $LIBS"
  10719. cat >conftest.$ac_ext <<_ACEOF
  10720. /* confdefs.h. */
  10721. _ACEOF
  10722. cat confdefs.h >>conftest.$ac_ext
  10723. cat >>conftest.$ac_ext <<_ACEOF
  10724. /* end confdefs.h. */
  10725. /* Override any gcc2 internal prototype to avoid an error. */
  10726. #ifdef __cplusplus
  10727. extern "C"
  10728. #endif
  10729. /* We use char because int might match the return type of a gcc2
  10730. builtin and then its argument prototype would still apply. */
  10731. char dlopen ();
  10732. int
  10733. main ()
  10734. {
  10735. dlopen ();
  10736. ;
  10737. return 0;
  10738. }
  10739. _ACEOF
  10740. rm -f conftest.$ac_objext conftest$ac_exeext
  10741. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10742. (eval $ac_link) 2>conftest.er1
  10743. ac_status=$?
  10744. grep -v '^ *+' conftest.er1 >conftest.err
  10745. rm -f conftest.er1
  10746. cat conftest.err >&5
  10747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10748. (exit $ac_status); } &&
  10749. { ac_try='test -z "$ac_cxx_werror_flag"
  10750. || test ! -s conftest.err'
  10751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10752. (eval $ac_try) 2>&5
  10753. ac_status=$?
  10754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10755. (exit $ac_status); }; } &&
  10756. { ac_try='test -s conftest$ac_exeext'
  10757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10758. (eval $ac_try) 2>&5
  10759. ac_status=$?
  10760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10761. (exit $ac_status); }; }; then
  10762. ac_cv_lib_dl_dlopen=yes
  10763. else
  10764. echo "$as_me: failed program was:" >&5
  10765. sed 's/^/| /' conftest.$ac_ext >&5
  10766. ac_cv_lib_dl_dlopen=no
  10767. fi
  10768. rm -f conftest.err conftest.$ac_objext \
  10769. conftest$ac_exeext conftest.$ac_ext
  10770. LIBS=$ac_check_lib_save_LIBS
  10771. fi
  10772. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10773. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  10774. if test $ac_cv_lib_dl_dlopen = yes; then
  10775. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10776. else
  10777. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10778. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  10779. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10780. echo $ECHO_N "(cached) $ECHO_C" >&6
  10781. else
  10782. ac_check_lib_save_LIBS=$LIBS
  10783. LIBS="-lsvld $LIBS"
  10784. cat >conftest.$ac_ext <<_ACEOF
  10785. /* confdefs.h. */
  10786. _ACEOF
  10787. cat confdefs.h >>conftest.$ac_ext
  10788. cat >>conftest.$ac_ext <<_ACEOF
  10789. /* end confdefs.h. */
  10790. /* Override any gcc2 internal prototype to avoid an error. */
  10791. #ifdef __cplusplus
  10792. extern "C"
  10793. #endif
  10794. /* We use char because int might match the return type of a gcc2
  10795. builtin and then its argument prototype would still apply. */
  10796. char dlopen ();
  10797. int
  10798. main ()
  10799. {
  10800. dlopen ();
  10801. ;
  10802. return 0;
  10803. }
  10804. _ACEOF
  10805. rm -f conftest.$ac_objext conftest$ac_exeext
  10806. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10807. (eval $ac_link) 2>conftest.er1
  10808. ac_status=$?
  10809. grep -v '^ *+' conftest.er1 >conftest.err
  10810. rm -f conftest.er1
  10811. cat conftest.err >&5
  10812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10813. (exit $ac_status); } &&
  10814. { ac_try='test -z "$ac_cxx_werror_flag"
  10815. || test ! -s conftest.err'
  10816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10817. (eval $ac_try) 2>&5
  10818. ac_status=$?
  10819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10820. (exit $ac_status); }; } &&
  10821. { ac_try='test -s conftest$ac_exeext'
  10822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10823. (eval $ac_try) 2>&5
  10824. ac_status=$?
  10825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10826. (exit $ac_status); }; }; then
  10827. ac_cv_lib_svld_dlopen=yes
  10828. else
  10829. echo "$as_me: failed program was:" >&5
  10830. sed 's/^/| /' conftest.$ac_ext >&5
  10831. ac_cv_lib_svld_dlopen=no
  10832. fi
  10833. rm -f conftest.err conftest.$ac_objext \
  10834. conftest$ac_exeext conftest.$ac_ext
  10835. LIBS=$ac_check_lib_save_LIBS
  10836. fi
  10837. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10838. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  10839. if test $ac_cv_lib_svld_dlopen = yes; then
  10840. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10841. else
  10842. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10843. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  10844. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10845. echo $ECHO_N "(cached) $ECHO_C" >&6
  10846. else
  10847. ac_check_lib_save_LIBS=$LIBS
  10848. LIBS="-ldld $LIBS"
  10849. cat >conftest.$ac_ext <<_ACEOF
  10850. /* confdefs.h. */
  10851. _ACEOF
  10852. cat confdefs.h >>conftest.$ac_ext
  10853. cat >>conftest.$ac_ext <<_ACEOF
  10854. /* end confdefs.h. */
  10855. /* Override any gcc2 internal prototype to avoid an error. */
  10856. #ifdef __cplusplus
  10857. extern "C"
  10858. #endif
  10859. /* We use char because int might match the return type of a gcc2
  10860. builtin and then its argument prototype would still apply. */
  10861. char dld_link ();
  10862. int
  10863. main ()
  10864. {
  10865. dld_link ();
  10866. ;
  10867. return 0;
  10868. }
  10869. _ACEOF
  10870. rm -f conftest.$ac_objext conftest$ac_exeext
  10871. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10872. (eval $ac_link) 2>conftest.er1
  10873. ac_status=$?
  10874. grep -v '^ *+' conftest.er1 >conftest.err
  10875. rm -f conftest.er1
  10876. cat conftest.err >&5
  10877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10878. (exit $ac_status); } &&
  10879. { ac_try='test -z "$ac_cxx_werror_flag"
  10880. || test ! -s conftest.err'
  10881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10882. (eval $ac_try) 2>&5
  10883. ac_status=$?
  10884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10885. (exit $ac_status); }; } &&
  10886. { ac_try='test -s conftest$ac_exeext'
  10887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10888. (eval $ac_try) 2>&5
  10889. ac_status=$?
  10890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10891. (exit $ac_status); }; }; then
  10892. ac_cv_lib_dld_dld_link=yes
  10893. else
  10894. echo "$as_me: failed program was:" >&5
  10895. sed 's/^/| /' conftest.$ac_ext >&5
  10896. ac_cv_lib_dld_dld_link=no
  10897. fi
  10898. rm -f conftest.err conftest.$ac_objext \
  10899. conftest$ac_exeext conftest.$ac_ext
  10900. LIBS=$ac_check_lib_save_LIBS
  10901. fi
  10902. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10903. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  10904. if test $ac_cv_lib_dld_dld_link = yes; then
  10905. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10906. fi
  10907. fi
  10908. fi
  10909. fi
  10910. fi
  10911. fi
  10912. ;;
  10913. esac
  10914. if test "x$lt_cv_dlopen" != xno; then
  10915. enable_dlopen=yes
  10916. else
  10917. enable_dlopen=no
  10918. fi
  10919. case $lt_cv_dlopen in
  10920. dlopen)
  10921. save_CPPFLAGS="$CPPFLAGS"
  10922. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10923. save_LDFLAGS="$LDFLAGS"
  10924. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10925. save_LIBS="$LIBS"
  10926. LIBS="$lt_cv_dlopen_libs $LIBS"
  10927. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10928. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  10929. if test "${lt_cv_dlopen_self+set}" = set; then
  10930. echo $ECHO_N "(cached) $ECHO_C" >&6
  10931. else
  10932. if test "$cross_compiling" = yes; then :
  10933. lt_cv_dlopen_self=cross
  10934. else
  10935. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10936. lt_status=$lt_dlunknown
  10937. cat > conftest.$ac_ext <<EOF
  10938. #line 12047 "configure"
  10939. #include "confdefs.h"
  10940. #if HAVE_DLFCN_H
  10941. #include <dlfcn.h>
  10942. #endif
  10943. #include <stdio.h>
  10944. #ifdef RTLD_GLOBAL
  10945. # define LT_DLGLOBAL RTLD_GLOBAL
  10946. #else
  10947. # ifdef DL_GLOBAL
  10948. # define LT_DLGLOBAL DL_GLOBAL
  10949. # else
  10950. # define LT_DLGLOBAL 0
  10951. # endif
  10952. #endif
  10953. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10954. find out it does not work in some platform. */
  10955. #ifndef LT_DLLAZY_OR_NOW
  10956. # ifdef RTLD_LAZY
  10957. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10958. # else
  10959. # ifdef DL_LAZY
  10960. # define LT_DLLAZY_OR_NOW DL_LAZY
  10961. # else
  10962. # ifdef RTLD_NOW
  10963. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10964. # else
  10965. # ifdef DL_NOW
  10966. # define LT_DLLAZY_OR_NOW DL_NOW
  10967. # else
  10968. # define LT_DLLAZY_OR_NOW 0
  10969. # endif
  10970. # endif
  10971. # endif
  10972. # endif
  10973. #endif
  10974. #ifdef __cplusplus
  10975. extern "C" void exit (int);
  10976. #endif
  10977. void fnord() { int i=42;}
  10978. int main ()
  10979. {
  10980. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10981. int status = $lt_dlunknown;
  10982. if (self)
  10983. {
  10984. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10985. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10986. /* dlclose (self); */
  10987. }
  10988. exit (status);
  10989. }
  10990. EOF
  10991. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10992. (eval $ac_link) 2>&5
  10993. ac_status=$?
  10994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10995. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10996. (./conftest; exit; ) 2>/dev/null
  10997. lt_status=$?
  10998. case x$lt_status in
  10999. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11000. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11001. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  11002. esac
  11003. else :
  11004. # compilation failed
  11005. lt_cv_dlopen_self=no
  11006. fi
  11007. fi
  11008. rm -fr conftest*
  11009. fi
  11010. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  11011. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  11012. if test "x$lt_cv_dlopen_self" = xyes; then
  11013. LDFLAGS="$LDFLAGS $link_static_flag"
  11014. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  11015. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  11016. if test "${lt_cv_dlopen_self_static+set}" = set; then
  11017. echo $ECHO_N "(cached) $ECHO_C" >&6
  11018. else
  11019. if test "$cross_compiling" = yes; then :
  11020. lt_cv_dlopen_self_static=cross
  11021. else
  11022. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11023. lt_status=$lt_dlunknown
  11024. cat > conftest.$ac_ext <<EOF
  11025. #line 12145 "configure"
  11026. #include "confdefs.h"
  11027. #if HAVE_DLFCN_H
  11028. #include <dlfcn.h>
  11029. #endif
  11030. #include <stdio.h>
  11031. #ifdef RTLD_GLOBAL
  11032. # define LT_DLGLOBAL RTLD_GLOBAL
  11033. #else
  11034. # ifdef DL_GLOBAL
  11035. # define LT_DLGLOBAL DL_GLOBAL
  11036. # else
  11037. # define LT_DLGLOBAL 0
  11038. # endif
  11039. #endif
  11040. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11041. find out it does not work in some platform. */
  11042. #ifndef LT_DLLAZY_OR_NOW
  11043. # ifdef RTLD_LAZY
  11044. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11045. # else
  11046. # ifdef DL_LAZY
  11047. # define LT_DLLAZY_OR_NOW DL_LAZY
  11048. # else
  11049. # ifdef RTLD_NOW
  11050. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11051. # else
  11052. # ifdef DL_NOW
  11053. # define LT_DLLAZY_OR_NOW DL_NOW
  11054. # else
  11055. # define LT_DLLAZY_OR_NOW 0
  11056. # endif
  11057. # endif
  11058. # endif
  11059. # endif
  11060. #endif
  11061. #ifdef __cplusplus
  11062. extern "C" void exit (int);
  11063. #endif
  11064. void fnord() { int i=42;}
  11065. int main ()
  11066. {
  11067. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11068. int status = $lt_dlunknown;
  11069. if (self)
  11070. {
  11071. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11072. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11073. /* dlclose (self); */
  11074. }
  11075. exit (status);
  11076. }
  11077. EOF
  11078. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11079. (eval $ac_link) 2>&5
  11080. ac_status=$?
  11081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11082. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11083. (./conftest; exit; ) 2>/dev/null
  11084. lt_status=$?
  11085. case x$lt_status in
  11086. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11087. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11088. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  11089. esac
  11090. else :
  11091. # compilation failed
  11092. lt_cv_dlopen_self_static=no
  11093. fi
  11094. fi
  11095. rm -fr conftest*
  11096. fi
  11097. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11098. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  11099. fi
  11100. CPPFLAGS="$save_CPPFLAGS"
  11101. LDFLAGS="$save_LDFLAGS"
  11102. LIBS="$save_LIBS"
  11103. ;;
  11104. esac
  11105. case $lt_cv_dlopen_self in
  11106. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11107. *) enable_dlopen_self=unknown ;;
  11108. esac
  11109. case $lt_cv_dlopen_self_static in
  11110. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11111. *) enable_dlopen_self_static=unknown ;;
  11112. esac
  11113. fi
  11114. # The else clause should only fire when bootstrapping the
  11115. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11116. # with your package, and you will get complaints that there are
  11117. # no rules to generate ltmain.sh.
  11118. if test -f "$ltmain"; then
  11119. # See if we are running on zsh, and set the options which allow our commands through
  11120. # without removal of \ escapes.
  11121. if test -n "${ZSH_VERSION+set}" ; then
  11122. setopt NO_GLOB_SUBST
  11123. fi
  11124. # Now quote all the things that may contain metacharacters while being
  11125. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11126. # variables and quote the copies for generation of the libtool script.
  11127. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  11128. SED SHELL STRIP \
  11129. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11130. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11131. deplibs_check_method reload_flag reload_cmds need_locks \
  11132. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11133. lt_cv_sys_global_symbol_to_c_name_address \
  11134. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11135. old_postinstall_cmds old_postuninstall_cmds \
  11136. compiler_CXX \
  11137. CC_CXX \
  11138. LD_CXX \
  11139. lt_prog_compiler_wl_CXX \
  11140. lt_prog_compiler_pic_CXX \
  11141. lt_prog_compiler_static_CXX \
  11142. lt_prog_compiler_no_builtin_flag_CXX \
  11143. export_dynamic_flag_spec_CXX \
  11144. thread_safe_flag_spec_CXX \
  11145. whole_archive_flag_spec_CXX \
  11146. enable_shared_with_static_runtimes_CXX \
  11147. old_archive_cmds_CXX \
  11148. old_archive_from_new_cmds_CXX \
  11149. predep_objects_CXX \
  11150. postdep_objects_CXX \
  11151. predeps_CXX \
  11152. postdeps_CXX \
  11153. compiler_lib_search_path_CXX \
  11154. archive_cmds_CXX \
  11155. archive_expsym_cmds_CXX \
  11156. postinstall_cmds_CXX \
  11157. postuninstall_cmds_CXX \
  11158. old_archive_from_expsyms_cmds_CXX \
  11159. allow_undefined_flag_CXX \
  11160. no_undefined_flag_CXX \
  11161. export_symbols_cmds_CXX \
  11162. hardcode_libdir_flag_spec_CXX \
  11163. hardcode_libdir_flag_spec_ld_CXX \
  11164. hardcode_libdir_separator_CXX \
  11165. hardcode_automatic_CXX \
  11166. module_cmds_CXX \
  11167. module_expsym_cmds_CXX \
  11168. lt_cv_prog_compiler_c_o_CXX \
  11169. exclude_expsyms_CXX \
  11170. include_expsyms_CXX; do
  11171. case $var in
  11172. old_archive_cmds_CXX | \
  11173. old_archive_from_new_cmds_CXX | \
  11174. archive_cmds_CXX | \
  11175. archive_expsym_cmds_CXX | \
  11176. module_cmds_CXX | \
  11177. module_expsym_cmds_CXX | \
  11178. old_archive_from_expsyms_cmds_CXX | \
  11179. export_symbols_cmds_CXX | \
  11180. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11181. postinstall_cmds | postuninstall_cmds | \
  11182. old_postinstall_cmds | old_postuninstall_cmds | \
  11183. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11184. # Double-quote double-evaled strings.
  11185. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11186. ;;
  11187. *)
  11188. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11189. ;;
  11190. esac
  11191. done
  11192. case $lt_echo in
  11193. *'\$0 --fallback-echo"')
  11194. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11195. ;;
  11196. esac
  11197. cfgfile="$ofile"
  11198. cat <<__EOF__ >> "$cfgfile"
  11199. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11200. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11201. # Shell to use when invoking shell scripts.
  11202. SHELL=$lt_SHELL
  11203. # Whether or not to build shared libraries.
  11204. build_libtool_libs=$enable_shared
  11205. # Whether or not to build static libraries.
  11206. build_old_libs=$enable_static
  11207. # Whether or not to add -lc for building shared libraries.
  11208. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11209. # Whether or not to disallow shared libs when runtime libs are static
  11210. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11211. # Whether or not to optimize for fast installation.
  11212. fast_install=$enable_fast_install
  11213. # The host system.
  11214. host_alias=$host_alias
  11215. host=$host
  11216. host_os=$host_os
  11217. # The build system.
  11218. build_alias=$build_alias
  11219. build=$build
  11220. build_os=$build_os
  11221. # An echo program that does not interpret backslashes.
  11222. echo=$lt_echo
  11223. # The archiver.
  11224. AR=$lt_AR
  11225. AR_FLAGS=$lt_AR_FLAGS
  11226. # A C compiler.
  11227. LTCC=$lt_LTCC
  11228. # A language-specific compiler.
  11229. CC=$lt_compiler_CXX
  11230. # Is the compiler the GNU C compiler?
  11231. with_gcc=$GCC_CXX
  11232. # An ERE matcher.
  11233. EGREP=$lt_EGREP
  11234. # The linker used to build libraries.
  11235. LD=$lt_LD_CXX
  11236. # Whether we need hard or soft links.
  11237. LN_S=$lt_LN_S
  11238. # A BSD-compatible nm program.
  11239. NM=$lt_NM
  11240. # A symbol stripping program
  11241. STRIP=$lt_STRIP
  11242. # Used to examine libraries when file_magic_cmd begins "file"
  11243. MAGIC_CMD=$MAGIC_CMD
  11244. # Used on cygwin: DLL creation program.
  11245. DLLTOOL="$DLLTOOL"
  11246. # Used on cygwin: object dumper.
  11247. OBJDUMP="$OBJDUMP"
  11248. # Used on cygwin: assembler.
  11249. AS="$AS"
  11250. # The name of the directory that contains temporary libtool files.
  11251. objdir=$objdir
  11252. # How to create reloadable object files.
  11253. reload_flag=$lt_reload_flag
  11254. reload_cmds=$lt_reload_cmds
  11255. # How to pass a linker flag through the compiler.
  11256. wl=$lt_lt_prog_compiler_wl_CXX
  11257. # Object file suffix (normally "o").
  11258. objext="$ac_objext"
  11259. # Old archive suffix (normally "a").
  11260. libext="$libext"
  11261. # Shared library suffix (normally ".so").
  11262. shrext_cmds='$shrext_cmds'
  11263. # Executable file suffix (normally "").
  11264. exeext="$exeext"
  11265. # Additional compiler flags for building library objects.
  11266. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11267. pic_mode=$pic_mode
  11268. # What is the maximum length of a command?
  11269. max_cmd_len=$lt_cv_sys_max_cmd_len
  11270. # Does compiler simultaneously support -c and -o options?
  11271. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11272. # Must we lock files when doing compilation?
  11273. need_locks=$lt_need_locks
  11274. # Do we need the lib prefix for modules?
  11275. need_lib_prefix=$need_lib_prefix
  11276. # Do we need a version for libraries?
  11277. need_version=$need_version
  11278. # Whether dlopen is supported.
  11279. dlopen_support=$enable_dlopen
  11280. # Whether dlopen of programs is supported.
  11281. dlopen_self=$enable_dlopen_self
  11282. # Whether dlopen of statically linked programs is supported.
  11283. dlopen_self_static=$enable_dlopen_self_static
  11284. # Compiler flag to prevent dynamic linking.
  11285. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11286. # Compiler flag to turn off builtin functions.
  11287. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11288. # Compiler flag to allow reflexive dlopens.
  11289. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11290. # Compiler flag to generate shared objects directly from archives.
  11291. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11292. # Compiler flag to generate thread-safe objects.
  11293. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11294. # Library versioning type.
  11295. version_type=$version_type
  11296. # Format of library name prefix.
  11297. libname_spec=$lt_libname_spec
  11298. # List of archive names. First name is the real one, the rest are links.
  11299. # The last name is the one that the linker finds with -lNAME.
  11300. library_names_spec=$lt_library_names_spec
  11301. # The coded name of the library, if different from the real name.
  11302. soname_spec=$lt_soname_spec
  11303. # Commands used to build and install an old-style archive.
  11304. RANLIB=$lt_RANLIB
  11305. old_archive_cmds=$lt_old_archive_cmds_CXX
  11306. old_postinstall_cmds=$lt_old_postinstall_cmds
  11307. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11308. # Create an old-style archive from a shared archive.
  11309. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11310. # Create a temporary old-style archive to link instead of a shared archive.
  11311. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11312. # Commands used to build and install a shared archive.
  11313. archive_cmds=$lt_archive_cmds_CXX
  11314. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11315. postinstall_cmds=$lt_postinstall_cmds
  11316. postuninstall_cmds=$lt_postuninstall_cmds
  11317. # Commands used to build a loadable module (assumed same as above if empty)
  11318. module_cmds=$lt_module_cmds_CXX
  11319. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11320. # Commands to strip libraries.
  11321. old_striplib=$lt_old_striplib
  11322. striplib=$lt_striplib
  11323. # Dependencies to place before the objects being linked to create a
  11324. # shared library.
  11325. predep_objects=$lt_predep_objects_CXX
  11326. # Dependencies to place after the objects being linked to create a
  11327. # shared library.
  11328. postdep_objects=$lt_postdep_objects_CXX
  11329. # Dependencies to place before the objects being linked to create a
  11330. # shared library.
  11331. predeps=$lt_predeps_CXX
  11332. # Dependencies to place after the objects being linked to create a
  11333. # shared library.
  11334. postdeps=$lt_postdeps_CXX
  11335. # The library search path used internally by the compiler when linking
  11336. # a shared library.
  11337. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11338. # Method to check whether dependent libraries are shared objects.
  11339. deplibs_check_method=$lt_deplibs_check_method
  11340. # Command to use when deplibs_check_method == file_magic.
  11341. file_magic_cmd=$lt_file_magic_cmd
  11342. # Flag that allows shared libraries with undefined symbols to be built.
  11343. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11344. # Flag that forces no undefined symbols.
  11345. no_undefined_flag=$lt_no_undefined_flag_CXX
  11346. # Commands used to finish a libtool library installation in a directory.
  11347. finish_cmds=$lt_finish_cmds
  11348. # Same as above, but a single script fragment to be evaled but not shown.
  11349. finish_eval=$lt_finish_eval
  11350. # Take the output of nm and produce a listing of raw symbols and C names.
  11351. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11352. # Transform the output of nm in a proper C declaration
  11353. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11354. # Transform the output of nm in a C name address pair
  11355. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11356. # This is the shared library runtime path variable.
  11357. runpath_var=$runpath_var
  11358. # This is the shared library path variable.
  11359. shlibpath_var=$shlibpath_var
  11360. # Is shlibpath searched before the hard-coded library search path?
  11361. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11362. # How to hardcode a shared library path into an executable.
  11363. hardcode_action=$hardcode_action_CXX
  11364. # Whether we should hardcode library paths into libraries.
  11365. hardcode_into_libs=$hardcode_into_libs
  11366. # Flag to hardcode \$libdir into a binary during linking.
  11367. # This must work even if \$libdir does not exist.
  11368. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11369. # If ld is used when linking, flag to hardcode \$libdir into
  11370. # a binary during linking. This must work even if \$libdir does
  11371. # not exist.
  11372. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11373. # Whether we need a single -rpath flag with a separated argument.
  11374. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11375. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11376. # resulting binary.
  11377. hardcode_direct=$hardcode_direct_CXX
  11378. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11379. # resulting binary.
  11380. hardcode_minus_L=$hardcode_minus_L_CXX
  11381. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11382. # the resulting binary.
  11383. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11384. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11385. # and all subsequent libraries and executables linked against it.
  11386. hardcode_automatic=$hardcode_automatic_CXX
  11387. # Variables whose values should be saved in libtool wrapper scripts and
  11388. # restored at relink time.
  11389. variables_saved_for_relink="$variables_saved_for_relink"
  11390. # Whether libtool must link a program against all its dependency libraries.
  11391. link_all_deplibs=$link_all_deplibs_CXX
  11392. # Compile-time system search path for libraries
  11393. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11394. # Run-time system search path for libraries
  11395. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11396. # Fix the shell variable \$srcfile for the compiler.
  11397. fix_srcfile_path="$fix_srcfile_path_CXX"
  11398. # Set to yes if exported symbols are required.
  11399. always_export_symbols=$always_export_symbols_CXX
  11400. # The commands to list exported symbols.
  11401. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11402. # The commands to extract the exported symbol list from a shared archive.
  11403. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11404. # Symbols that should not be listed in the preloaded symbols.
  11405. exclude_expsyms=$lt_exclude_expsyms_CXX
  11406. # Symbols that must always be exported.
  11407. include_expsyms=$lt_include_expsyms_CXX
  11408. # ### END LIBTOOL TAG CONFIG: $tagname
  11409. __EOF__
  11410. else
  11411. # If there is no Makefile yet, we rely on a make rule to execute
  11412. # `config.status --recheck' to rerun these tests and create the
  11413. # libtool script then.
  11414. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11415. if test -f "$ltmain_in"; then
  11416. test -f Makefile && make "$ltmain"
  11417. fi
  11418. fi
  11419. ac_ext=c
  11420. ac_cpp='$CPP $CPPFLAGS'
  11421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11424. CC=$lt_save_CC
  11425. LDCXX=$LD
  11426. LD=$lt_save_LD
  11427. GCC=$lt_save_GCC
  11428. with_gnu_ldcxx=$with_gnu_ld
  11429. with_gnu_ld=$lt_save_with_gnu_ld
  11430. lt_cv_path_LDCXX=$lt_cv_path_LD
  11431. lt_cv_path_LD=$lt_save_path_LD
  11432. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11433. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11434. else
  11435. tagname=""
  11436. fi
  11437. ;;
  11438. F77)
  11439. if test -n "$F77" && test "X$F77" != "Xno"; then
  11440. ac_ext=f
  11441. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11442. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11443. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11444. archive_cmds_need_lc_F77=no
  11445. allow_undefined_flag_F77=
  11446. always_export_symbols_F77=no
  11447. archive_expsym_cmds_F77=
  11448. export_dynamic_flag_spec_F77=
  11449. hardcode_direct_F77=no
  11450. hardcode_libdir_flag_spec_F77=
  11451. hardcode_libdir_flag_spec_ld_F77=
  11452. hardcode_libdir_separator_F77=
  11453. hardcode_minus_L_F77=no
  11454. hardcode_automatic_F77=no
  11455. module_cmds_F77=
  11456. module_expsym_cmds_F77=
  11457. link_all_deplibs_F77=unknown
  11458. old_archive_cmds_F77=$old_archive_cmds
  11459. no_undefined_flag_F77=
  11460. whole_archive_flag_spec_F77=
  11461. enable_shared_with_static_runtimes_F77=no
  11462. # Source file extension for f77 test sources.
  11463. ac_ext=f
  11464. # Object file extension for compiled f77 test sources.
  11465. objext=o
  11466. objext_F77=$objext
  11467. # Code to be used in simple compile tests
  11468. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11469. # Code to be used in simple link tests
  11470. lt_simple_link_test_code=" program t\n end\n"
  11471. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11472. # If no C compiler was specified, use CC.
  11473. LTCC=${LTCC-"$CC"}
  11474. # Allow CC to be a program name with arguments.
  11475. compiler=$CC
  11476. # save warnings/boilerplate of simple test code
  11477. ac_outfile=conftest.$ac_objext
  11478. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11479. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  11480. _lt_compiler_boilerplate=`cat conftest.err`
  11481. $rm conftest*
  11482. ac_outfile=conftest.$ac_objext
  11483. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11484. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  11485. _lt_linker_boilerplate=`cat conftest.err`
  11486. $rm conftest*
  11487. # Allow CC to be a program name with arguments.
  11488. lt_save_CC="$CC"
  11489. CC=${F77-"f77"}
  11490. compiler=$CC
  11491. compiler_F77=$CC
  11492. for cc_temp in $compiler""; do
  11493. case $cc_temp in
  11494. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11495. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11496. \-*) ;;
  11497. *) break;;
  11498. esac
  11499. done
  11500. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11501. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11502. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11503. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11504. echo "${ECHO_T}$can_build_shared" >&6
  11505. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11506. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11507. test "$can_build_shared" = "no" && enable_shared=no
  11508. # On AIX, shared libraries and static libraries use the same namespace, and
  11509. # are all built from PIC.
  11510. case "$host_os" in
  11511. aix3*)
  11512. test "$enable_shared" = yes && enable_static=no
  11513. if test -n "$RANLIB"; then
  11514. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11515. postinstall_cmds='$RANLIB $lib'
  11516. fi
  11517. ;;
  11518. aix4* | aix5*)
  11519. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11520. test "$enable_shared" = yes && enable_static=no
  11521. fi
  11522. ;;
  11523. esac
  11524. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11525. echo "${ECHO_T}$enable_shared" >&6
  11526. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11527. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11528. # Make sure either enable_shared or enable_static is yes.
  11529. test "$enable_shared" = yes || enable_static=yes
  11530. echo "$as_me:$LINENO: result: $enable_static" >&5
  11531. echo "${ECHO_T}$enable_static" >&6
  11532. test "$ld_shlibs_F77" = no && can_build_shared=no
  11533. GCC_F77="$G77"
  11534. LD_F77="$LD"
  11535. lt_prog_compiler_wl_F77=
  11536. lt_prog_compiler_pic_F77=
  11537. lt_prog_compiler_static_F77=
  11538. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11539. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11540. if test "$GCC" = yes; then
  11541. lt_prog_compiler_wl_F77='-Wl,'
  11542. lt_prog_compiler_static_F77='-static'
  11543. case $host_os in
  11544. aix*)
  11545. # All AIX code is PIC.
  11546. if test "$host_cpu" = ia64; then
  11547. # AIX 5 now supports IA64 processor
  11548. lt_prog_compiler_static_F77='-Bstatic'
  11549. fi
  11550. ;;
  11551. amigaos*)
  11552. # FIXME: we need at least 68020 code to build shared libraries, but
  11553. # adding the `-m68020' flag to GCC prevents building anything better,
  11554. # like `-m68040'.
  11555. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11556. ;;
  11557. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11558. # PIC is the default for these OSes.
  11559. ;;
  11560. mingw* | pw32* | os2*)
  11561. # This hack is so that the source file can tell whether it is being
  11562. # built for inclusion in a dll (and should export symbols for example).
  11563. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11564. ;;
  11565. darwin* | rhapsody*)
  11566. # PIC is the default on this platform
  11567. # Common symbols not allowed in MH_DYLIB files
  11568. lt_prog_compiler_pic_F77='-fno-common'
  11569. ;;
  11570. msdosdjgpp*)
  11571. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11572. # on systems that don't support them.
  11573. lt_prog_compiler_can_build_shared_F77=no
  11574. enable_shared=no
  11575. ;;
  11576. sysv4*MP*)
  11577. if test -d /usr/nec; then
  11578. lt_prog_compiler_pic_F77=-Kconform_pic
  11579. fi
  11580. ;;
  11581. hpux*)
  11582. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11583. # not for PA HP-UX.
  11584. case "$host_cpu" in
  11585. hppa*64*|ia64*)
  11586. # +Z the default
  11587. ;;
  11588. *)
  11589. lt_prog_compiler_pic_F77='-fPIC'
  11590. ;;
  11591. esac
  11592. ;;
  11593. *)
  11594. lt_prog_compiler_pic_F77='-fPIC'
  11595. ;;
  11596. esac
  11597. else
  11598. # PORTME Check for flag to pass linker flags through the system compiler.
  11599. case $host_os in
  11600. aix*)
  11601. lt_prog_compiler_wl_F77='-Wl,'
  11602. if test "$host_cpu" = ia64; then
  11603. # AIX 5 now supports IA64 processor
  11604. lt_prog_compiler_static_F77='-Bstatic'
  11605. else
  11606. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11607. fi
  11608. ;;
  11609. darwin*)
  11610. # PIC is the default on this platform
  11611. # Common symbols not allowed in MH_DYLIB files
  11612. case $cc_basename in
  11613. xlc*)
  11614. lt_prog_compiler_pic_F77='-qnocommon'
  11615. lt_prog_compiler_wl_F77='-Wl,'
  11616. ;;
  11617. esac
  11618. ;;
  11619. mingw* | pw32* | os2*)
  11620. # This hack is so that the source file can tell whether it is being
  11621. # built for inclusion in a dll (and should export symbols for example).
  11622. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11623. ;;
  11624. hpux9* | hpux10* | hpux11*)
  11625. lt_prog_compiler_wl_F77='-Wl,'
  11626. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11627. # not for PA HP-UX.
  11628. case "$host_cpu" in
  11629. hppa*64*|ia64*)
  11630. # +Z the default
  11631. ;;
  11632. *)
  11633. lt_prog_compiler_pic_F77='+Z'
  11634. ;;
  11635. esac
  11636. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11637. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11638. ;;
  11639. irix5* | irix6* | nonstopux*)
  11640. lt_prog_compiler_wl_F77='-Wl,'
  11641. # PIC (with -KPIC) is the default.
  11642. lt_prog_compiler_static_F77='-non_shared'
  11643. ;;
  11644. newsos6)
  11645. lt_prog_compiler_pic_F77='-KPIC'
  11646. lt_prog_compiler_static_F77='-Bstatic'
  11647. ;;
  11648. linux*)
  11649. case $cc_basename in
  11650. icc* | ecc*)
  11651. lt_prog_compiler_wl_F77='-Wl,'
  11652. lt_prog_compiler_pic_F77='-KPIC'
  11653. lt_prog_compiler_static_F77='-static'
  11654. ;;
  11655. pgcc* | pgf77* | pgf90*)
  11656. # Portland Group compilers (*not* the Pentium gcc compiler,
  11657. # which looks to be a dead project)
  11658. lt_prog_compiler_wl_F77='-Wl,'
  11659. lt_prog_compiler_pic_F77='-fpic'
  11660. lt_prog_compiler_static_F77='-static'
  11661. ;;
  11662. ccc*)
  11663. lt_prog_compiler_wl_F77='-Wl,'
  11664. # All Alpha code is PIC.
  11665. lt_prog_compiler_static_F77='-non_shared'
  11666. ;;
  11667. esac
  11668. ;;
  11669. osf3* | osf4* | osf5*)
  11670. lt_prog_compiler_wl_F77='-Wl,'
  11671. # All OSF/1 code is PIC.
  11672. lt_prog_compiler_static_F77='-non_shared'
  11673. ;;
  11674. sco3.2v5*)
  11675. lt_prog_compiler_pic_F77='-Kpic'
  11676. lt_prog_compiler_static_F77='-dn'
  11677. ;;
  11678. solaris*)
  11679. lt_prog_compiler_pic_F77='-KPIC'
  11680. lt_prog_compiler_static_F77='-Bstatic'
  11681. case $cc_basename in
  11682. f77* | f90* | f95*)
  11683. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11684. *)
  11685. lt_prog_compiler_wl_F77='-Wl,';;
  11686. esac
  11687. ;;
  11688. sunos4*)
  11689. lt_prog_compiler_wl_F77='-Qoption ld '
  11690. lt_prog_compiler_pic_F77='-PIC'
  11691. lt_prog_compiler_static_F77='-Bstatic'
  11692. ;;
  11693. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11694. lt_prog_compiler_wl_F77='-Wl,'
  11695. lt_prog_compiler_pic_F77='-KPIC'
  11696. lt_prog_compiler_static_F77='-Bstatic'
  11697. ;;
  11698. sysv4*MP*)
  11699. if test -d /usr/nec ;then
  11700. lt_prog_compiler_pic_F77='-Kconform_pic'
  11701. lt_prog_compiler_static_F77='-Bstatic'
  11702. fi
  11703. ;;
  11704. unicos*)
  11705. lt_prog_compiler_wl_F77='-Wl,'
  11706. lt_prog_compiler_can_build_shared_F77=no
  11707. ;;
  11708. uts4*)
  11709. lt_prog_compiler_pic_F77='-pic'
  11710. lt_prog_compiler_static_F77='-Bstatic'
  11711. ;;
  11712. *)
  11713. lt_prog_compiler_can_build_shared_F77=no
  11714. ;;
  11715. esac
  11716. fi
  11717. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11718. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11719. #
  11720. # Check to make sure the PIC flag actually works.
  11721. #
  11722. if test -n "$lt_prog_compiler_pic_F77"; then
  11723. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11724. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11725. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11726. echo $ECHO_N "(cached) $ECHO_C" >&6
  11727. else
  11728. lt_prog_compiler_pic_works_F77=no
  11729. ac_outfile=conftest.$ac_objext
  11730. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11731. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11732. # Insert the option either (1) after the last *FLAGS variable, or
  11733. # (2) before a word containing "conftest.", or (3) at the end.
  11734. # Note that $ac_compile itself does not contain backslashes and begins
  11735. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11736. # The option is referenced via a variable to avoid confusing sed.
  11737. lt_compile=`echo "$ac_compile" | $SED \
  11738. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11739. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11740. -e 's:$: $lt_compiler_flag:'`
  11741. (eval echo "\"\$as_me:13030: $lt_compile\"" >&5)
  11742. (eval "$lt_compile" 2>conftest.err)
  11743. ac_status=$?
  11744. cat conftest.err >&5
  11745. echo "$as_me:13034: \$? = $ac_status" >&5
  11746. if (exit $ac_status) && test -s "$ac_outfile"; then
  11747. # The compiler can only warn and ignore the option if not recognized
  11748. # So say no if there are warnings other than the usual output.
  11749. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  11750. $SED '/^$/d' conftest.err >conftest.er2
  11751. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  11752. lt_prog_compiler_pic_works_F77=yes
  11753. fi
  11754. fi
  11755. $rm conftest*
  11756. fi
  11757. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  11758. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  11759. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  11760. case $lt_prog_compiler_pic_F77 in
  11761. "" | " "*) ;;
  11762. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  11763. esac
  11764. else
  11765. lt_prog_compiler_pic_F77=
  11766. lt_prog_compiler_can_build_shared_F77=no
  11767. fi
  11768. fi
  11769. case "$host_os" in
  11770. # For platforms which do not support PIC, -DPIC is meaningless:
  11771. *djgpp*)
  11772. lt_prog_compiler_pic_F77=
  11773. ;;
  11774. *)
  11775. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  11776. ;;
  11777. esac
  11778. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11779. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11780. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  11781. echo $ECHO_N "(cached) $ECHO_C" >&6
  11782. else
  11783. lt_cv_prog_compiler_c_o_F77=no
  11784. $rm -r conftest 2>/dev/null
  11785. mkdir conftest
  11786. cd conftest
  11787. mkdir out
  11788. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11789. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11790. # Insert the option either (1) after the last *FLAGS variable, or
  11791. # (2) before a word containing "conftest.", or (3) at the end.
  11792. # Note that $ac_compile itself does not contain backslashes and begins
  11793. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11794. lt_compile=`echo "$ac_compile" | $SED \
  11795. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11796. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11797. -e 's:$: $lt_compiler_flag:'`
  11798. (eval echo "\"\$as_me:13092: $lt_compile\"" >&5)
  11799. (eval "$lt_compile" 2>out/conftest.err)
  11800. ac_status=$?
  11801. cat out/conftest.err >&5
  11802. echo "$as_me:13096: \$? = $ac_status" >&5
  11803. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11804. then
  11805. # The compiler can only warn and ignore the option if not recognized
  11806. # So say no if there are warnings
  11807. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  11808. $SED '/^$/d' out/conftest.err >out/conftest.er2
  11809. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11810. lt_cv_prog_compiler_c_o_F77=yes
  11811. fi
  11812. fi
  11813. chmod u+w .
  11814. $rm conftest*
  11815. # SGI C++ compiler will create directory out/ii_files/ for
  11816. # template instantiation
  11817. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11818. $rm out/* && rmdir out
  11819. cd ..
  11820. rmdir conftest
  11821. $rm conftest*
  11822. fi
  11823. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  11824. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  11825. hard_links="nottested"
  11826. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  11827. # do not overwrite the value of need_locks provided by the user
  11828. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11829. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11830. hard_links=yes
  11831. $rm conftest*
  11832. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11833. touch conftest.a
  11834. ln conftest.a conftest.b 2>&5 || hard_links=no
  11835. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11836. echo "$as_me:$LINENO: result: $hard_links" >&5
  11837. echo "${ECHO_T}$hard_links" >&6
  11838. if test "$hard_links" = no; then
  11839. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11840. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11841. need_locks=warn
  11842. fi
  11843. else
  11844. need_locks=no
  11845. fi
  11846. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11847. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11848. runpath_var=
  11849. allow_undefined_flag_F77=
  11850. enable_shared_with_static_runtimes_F77=no
  11851. archive_cmds_F77=
  11852. archive_expsym_cmds_F77=
  11853. old_archive_From_new_cmds_F77=
  11854. old_archive_from_expsyms_cmds_F77=
  11855. export_dynamic_flag_spec_F77=
  11856. whole_archive_flag_spec_F77=
  11857. thread_safe_flag_spec_F77=
  11858. hardcode_libdir_flag_spec_F77=
  11859. hardcode_libdir_flag_spec_ld_F77=
  11860. hardcode_libdir_separator_F77=
  11861. hardcode_direct_F77=no
  11862. hardcode_minus_L_F77=no
  11863. hardcode_shlibpath_var_F77=unsupported
  11864. link_all_deplibs_F77=unknown
  11865. hardcode_automatic_F77=no
  11866. module_cmds_F77=
  11867. module_expsym_cmds_F77=
  11868. always_export_symbols_F77=no
  11869. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11870. # include_expsyms should be a list of space-separated symbols to be *always*
  11871. # included in the symbol list
  11872. include_expsyms_F77=
  11873. # exclude_expsyms can be an extended regexp of symbols to exclude
  11874. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11875. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11876. # as well as any symbol that contains `d'.
  11877. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  11878. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11879. # platforms (ab)use it in PIC code, but their linkers get confused if
  11880. # the symbol is explicitly referenced. Since portable code cannot
  11881. # rely on this symbol name, it's probably fine to never include it in
  11882. # preloaded symbol tables.
  11883. extract_expsyms_cmds=
  11884. # Just being paranoid about ensuring that cc_basename is set.
  11885. for cc_temp in $compiler""; do
  11886. case $cc_temp in
  11887. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11888. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11889. \-*) ;;
  11890. *) break;;
  11891. esac
  11892. done
  11893. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11894. case $host_os in
  11895. cygwin* | mingw* | pw32*)
  11896. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11897. # When not using gcc, we currently assume that we are using
  11898. # Microsoft Visual C++.
  11899. if test "$GCC" != yes; then
  11900. with_gnu_ld=no
  11901. fi
  11902. ;;
  11903. openbsd*)
  11904. with_gnu_ld=no
  11905. ;;
  11906. esac
  11907. ld_shlibs_F77=yes
  11908. if test "$with_gnu_ld" = yes; then
  11909. # If archive_cmds runs LD, not CC, wlarc should be empty
  11910. wlarc='${wl}'
  11911. # Set some defaults for GNU ld with shared library support. These
  11912. # are reset later if shared libraries are not supported. Putting them
  11913. # here allows them to be overridden if necessary.
  11914. runpath_var=LD_RUN_PATH
  11915. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  11916. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  11917. # ancient GNU ld didn't support --whole-archive et. al.
  11918. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11919. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11920. else
  11921. whole_archive_flag_spec_F77=
  11922. fi
  11923. supports_anon_versioning=no
  11924. case `$LD -v 2>/dev/null` in
  11925. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11926. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11927. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11928. *\ 2.11.*) ;; # other 2.11 versions
  11929. *) supports_anon_versioning=yes ;;
  11930. esac
  11931. # See if GNU ld supports shared libraries.
  11932. case $host_os in
  11933. aix3* | aix4* | aix5*)
  11934. # On AIX/PPC, the GNU linker is very broken
  11935. if test "$host_cpu" != ia64; then
  11936. ld_shlibs_F77=no
  11937. cat <<EOF 1>&2
  11938. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11939. *** to be unable to reliably create shared libraries on AIX.
  11940. *** Therefore, libtool is disabling shared libraries support. If you
  11941. *** really care for shared libraries, you may want to modify your PATH
  11942. *** so that a non-GNU linker is found, and then restart.
  11943. EOF
  11944. fi
  11945. ;;
  11946. amigaos*)
  11947. archive_cmds_F77='$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)'
  11948. hardcode_libdir_flag_spec_F77='-L$libdir'
  11949. hardcode_minus_L_F77=yes
  11950. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11951. # that the semantics of dynamic libraries on AmigaOS, at least up
  11952. # to version 4, is to share data among multiple programs linked
  11953. # with the same dynamic library. Since this doesn't match the
  11954. # behavior of shared libraries on other platforms, we can't use
  11955. # them.
  11956. ld_shlibs_F77=no
  11957. ;;
  11958. beos*)
  11959. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11960. allow_undefined_flag_F77=unsupported
  11961. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11962. # support --undefined. This deserves some investigation. FIXME
  11963. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11964. else
  11965. ld_shlibs_F77=no
  11966. fi
  11967. ;;
  11968. cygwin* | mingw* | pw32*)
  11969. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  11970. # as there is no search path for DLLs.
  11971. hardcode_libdir_flag_spec_F77='-L$libdir'
  11972. allow_undefined_flag_F77=unsupported
  11973. always_export_symbols_F77=no
  11974. enable_shared_with_static_runtimes_F77=yes
  11975. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11976. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11977. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11978. # If the export-symbols file already is a .def file (1st line
  11979. # is EXPORTS), use it as is; otherwise, prepend...
  11980. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11981. cp $export_symbols $output_objdir/$soname.def;
  11982. else
  11983. echo EXPORTS > $output_objdir/$soname.def;
  11984. cat $export_symbols >> $output_objdir/$soname.def;
  11985. fi~
  11986. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11987. else
  11988. ld_shlibs_F77=no
  11989. fi
  11990. ;;
  11991. linux*)
  11992. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11993. tmp_addflag=
  11994. case $cc_basename,$host_cpu in
  11995. pgcc*) # Portland Group C compiler
  11996. whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11997. tmp_addflag=' $pic_flag'
  11998. ;;
  11999. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  12000. whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12001. tmp_addflag=' $pic_flag -Mnomain' ;;
  12002. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12003. tmp_addflag=' -i_dynamic' ;;
  12004. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12005. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12006. ifc* | ifort*) # Intel Fortran compiler
  12007. tmp_addflag=' -nofor_main' ;;
  12008. esac
  12009. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12010. if test $supports_anon_versioning = yes; then
  12011. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12012. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12013. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12014. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12015. fi
  12016. else
  12017. ld_shlibs_F77=no
  12018. fi
  12019. ;;
  12020. netbsd*)
  12021. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12022. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12023. wlarc=
  12024. else
  12025. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12026. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12027. fi
  12028. ;;
  12029. solaris* | sysv5*)
  12030. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12031. ld_shlibs_F77=no
  12032. cat <<EOF 1>&2
  12033. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12034. *** create shared libraries on Solaris systems. Therefore, libtool
  12035. *** is disabling shared libraries support. We urge you to upgrade GNU
  12036. *** binutils to release 2.9.1 or newer. Another option is to modify
  12037. *** your PATH or compiler configuration so that the native linker is
  12038. *** used, and then restart.
  12039. EOF
  12040. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12041. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12042. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12043. else
  12044. ld_shlibs_F77=no
  12045. fi
  12046. ;;
  12047. sunos4*)
  12048. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12049. wlarc=
  12050. hardcode_direct_F77=yes
  12051. hardcode_shlibpath_var_F77=no
  12052. ;;
  12053. *)
  12054. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12055. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12056. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12057. else
  12058. ld_shlibs_F77=no
  12059. fi
  12060. ;;
  12061. esac
  12062. if test "$ld_shlibs_F77" = no; then
  12063. runpath_var=
  12064. hardcode_libdir_flag_spec_F77=
  12065. export_dynamic_flag_spec_F77=
  12066. whole_archive_flag_spec_F77=
  12067. fi
  12068. else
  12069. # PORTME fill in a description of your system's linker (not GNU ld)
  12070. case $host_os in
  12071. aix3*)
  12072. allow_undefined_flag_F77=unsupported
  12073. always_export_symbols_F77=yes
  12074. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  12075. # Note: this linker hardcodes the directories in LIBPATH if there
  12076. # are no directories specified by -L.
  12077. hardcode_minus_L_F77=yes
  12078. if test "$GCC" = yes && test -z "$link_static_flag"; then
  12079. # Neither direct hardcoding nor static linking is supported with a
  12080. # broken collect2.
  12081. hardcode_direct_F77=unsupported
  12082. fi
  12083. ;;
  12084. aix4* | aix5*)
  12085. if test "$host_cpu" = ia64; then
  12086. # On IA64, the linker does run time linking by default, so we don't
  12087. # have to do anything special.
  12088. aix_use_runtimelinking=no
  12089. exp_sym_flag='-Bexport'
  12090. no_entry_flag=""
  12091. else
  12092. # If we're using GNU nm, then we don't want the "-C" option.
  12093. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12094. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12095. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12096. else
  12097. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12098. fi
  12099. aix_use_runtimelinking=no
  12100. # Test if we are trying to use run time linking or normal
  12101. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12102. # need to do runtime linking.
  12103. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12104. for ld_flag in $LDFLAGS; do
  12105. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12106. aix_use_runtimelinking=yes
  12107. break
  12108. fi
  12109. done
  12110. esac
  12111. exp_sym_flag='-bexport'
  12112. no_entry_flag='-bnoentry'
  12113. fi
  12114. # When large executables or shared objects are built, AIX ld can
  12115. # have problems creating the table of contents. If linking a library
  12116. # or program results in "error TOC overflow" add -mminimal-toc to
  12117. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12118. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12119. archive_cmds_F77=''
  12120. hardcode_direct_F77=yes
  12121. hardcode_libdir_separator_F77=':'
  12122. link_all_deplibs_F77=yes
  12123. if test "$GCC" = yes; then
  12124. case $host_os in aix4.[012]|aix4.[012].*)
  12125. # We only want to do this on AIX 4.2 and lower, the check
  12126. # below for broken collect2 doesn't work under 4.3+
  12127. collect2name=`${CC} -print-prog-name=collect2`
  12128. if test -f "$collect2name" && \
  12129. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12130. then
  12131. # We have reworked collect2
  12132. hardcode_direct_F77=yes
  12133. else
  12134. # We have old collect2
  12135. hardcode_direct_F77=unsupported
  12136. # It fails to find uninstalled libraries when the uninstalled
  12137. # path is not listed in the libpath. Setting hardcode_minus_L
  12138. # to unsupported forces relinking
  12139. hardcode_minus_L_F77=yes
  12140. hardcode_libdir_flag_spec_F77='-L$libdir'
  12141. hardcode_libdir_separator_F77=
  12142. fi
  12143. esac
  12144. shared_flag='-shared'
  12145. if test "$aix_use_runtimelinking" = yes; then
  12146. shared_flag="$shared_flag "'${wl}-G'
  12147. fi
  12148. else
  12149. # not using gcc
  12150. if test "$host_cpu" = ia64; then
  12151. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12152. # chokes on -Wl,-G. The following line is correct:
  12153. shared_flag='-G'
  12154. else
  12155. if test "$aix_use_runtimelinking" = yes; then
  12156. shared_flag='${wl}-G'
  12157. else
  12158. shared_flag='${wl}-bM:SRE'
  12159. fi
  12160. fi
  12161. fi
  12162. # It seems that -bexpall does not export symbols beginning with
  12163. # underscore (_), so it is better to generate a list of symbols to export.
  12164. always_export_symbols_F77=yes
  12165. if test "$aix_use_runtimelinking" = yes; then
  12166. # Warning - without using the other runtime loading flags (-brtl),
  12167. # -berok will link without error, but may produce a broken library.
  12168. allow_undefined_flag_F77='-berok'
  12169. # Determine the default libpath from the value encoded in an empty executable.
  12170. cat >conftest.$ac_ext <<_ACEOF
  12171. program main
  12172. end
  12173. _ACEOF
  12174. rm -f conftest.$ac_objext conftest$ac_exeext
  12175. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12176. (eval $ac_link) 2>conftest.er1
  12177. ac_status=$?
  12178. grep -v '^ *+' conftest.er1 >conftest.err
  12179. rm -f conftest.er1
  12180. cat conftest.err >&5
  12181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12182. (exit $ac_status); } &&
  12183. { ac_try='test -z "$ac_f77_werror_flag"
  12184. || test ! -s conftest.err'
  12185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12186. (eval $ac_try) 2>&5
  12187. ac_status=$?
  12188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12189. (exit $ac_status); }; } &&
  12190. { ac_try='test -s conftest$ac_exeext'
  12191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12192. (eval $ac_try) 2>&5
  12193. ac_status=$?
  12194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12195. (exit $ac_status); }; }; then
  12196. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12197. }'`
  12198. # Check for a 64-bit object if we didn't find anything.
  12199. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12200. }'`; fi
  12201. else
  12202. echo "$as_me: failed program was:" >&5
  12203. sed 's/^/| /' conftest.$ac_ext >&5
  12204. fi
  12205. rm -f conftest.err conftest.$ac_objext \
  12206. conftest$ac_exeext conftest.$ac_ext
  12207. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12208. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12209. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12210. else
  12211. if test "$host_cpu" = ia64; then
  12212. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12213. allow_undefined_flag_F77="-z nodefs"
  12214. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  12215. else
  12216. # Determine the default libpath from the value encoded in an empty executable.
  12217. cat >conftest.$ac_ext <<_ACEOF
  12218. program main
  12219. end
  12220. _ACEOF
  12221. rm -f conftest.$ac_objext conftest$ac_exeext
  12222. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12223. (eval $ac_link) 2>conftest.er1
  12224. ac_status=$?
  12225. grep -v '^ *+' conftest.er1 >conftest.err
  12226. rm -f conftest.er1
  12227. cat conftest.err >&5
  12228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12229. (exit $ac_status); } &&
  12230. { ac_try='test -z "$ac_f77_werror_flag"
  12231. || test ! -s conftest.err'
  12232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12233. (eval $ac_try) 2>&5
  12234. ac_status=$?
  12235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12236. (exit $ac_status); }; } &&
  12237. { ac_try='test -s conftest$ac_exeext'
  12238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12239. (eval $ac_try) 2>&5
  12240. ac_status=$?
  12241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12242. (exit $ac_status); }; }; then
  12243. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12244. }'`
  12245. # Check for a 64-bit object if we didn't find anything.
  12246. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12247. }'`; fi
  12248. else
  12249. echo "$as_me: failed program was:" >&5
  12250. sed 's/^/| /' conftest.$ac_ext >&5
  12251. fi
  12252. rm -f conftest.err conftest.$ac_objext \
  12253. conftest$ac_exeext conftest.$ac_ext
  12254. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12255. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12256. # Warning - without using the other run time loading flags,
  12257. # -berok will link without error, but may produce a broken library.
  12258. no_undefined_flag_F77=' ${wl}-bernotok'
  12259. allow_undefined_flag_F77=' ${wl}-berok'
  12260. # -bexpall does not export symbols beginning with underscore (_)
  12261. always_export_symbols_F77=yes
  12262. # Exported symbols can be pulled into shared objects from archives
  12263. whole_archive_flag_spec_F77=' '
  12264. archive_cmds_need_lc_F77=yes
  12265. # This is similar to how AIX traditionally builds it's shared libraries.
  12266. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12267. fi
  12268. fi
  12269. ;;
  12270. amigaos*)
  12271. archive_cmds_F77='$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)'
  12272. hardcode_libdir_flag_spec_F77='-L$libdir'
  12273. hardcode_minus_L_F77=yes
  12274. # see comment about different semantics on the GNU ld section
  12275. ld_shlibs_F77=no
  12276. ;;
  12277. bsdi[45]*)
  12278. export_dynamic_flag_spec_F77=-rdynamic
  12279. ;;
  12280. cygwin* | mingw* | pw32*)
  12281. # When not using gcc, we currently assume that we are using
  12282. # Microsoft Visual C++.
  12283. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12284. # no search path for DLLs.
  12285. hardcode_libdir_flag_spec_F77=' '
  12286. allow_undefined_flag_F77=unsupported
  12287. # Tell ltmain to make .lib files, not .a files.
  12288. libext=lib
  12289. # Tell ltmain to make .dll files, not .so files.
  12290. shrext_cmds=".dll"
  12291. # FIXME: Setting linknames here is a bad hack.
  12292. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12293. # The linker will automatically build a .lib file if we build a DLL.
  12294. old_archive_From_new_cmds_F77='true'
  12295. # FIXME: Should let the user specify the lib program.
  12296. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12297. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12298. enable_shared_with_static_runtimes_F77=yes
  12299. ;;
  12300. darwin* | rhapsody*)
  12301. case "$host_os" in
  12302. rhapsody* | darwin1.[012])
  12303. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12304. ;;
  12305. *) # Darwin 1.3 on
  12306. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12307. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12308. else
  12309. case ${MACOSX_DEPLOYMENT_TARGET} in
  12310. 10.[012])
  12311. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12312. ;;
  12313. 10.*)
  12314. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12315. ;;
  12316. esac
  12317. fi
  12318. ;;
  12319. esac
  12320. archive_cmds_need_lc_F77=no
  12321. hardcode_direct_F77=no
  12322. hardcode_automatic_F77=yes
  12323. hardcode_shlibpath_var_F77=unsupported
  12324. whole_archive_flag_spec_F77=''
  12325. link_all_deplibs_F77=yes
  12326. if test "$GCC" = yes ; then
  12327. output_verbose_link_cmd='echo'
  12328. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12329. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12330. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12331. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12332. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12333. else
  12334. case $cc_basename in
  12335. xlc*)
  12336. output_verbose_link_cmd='echo'
  12337. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12338. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12339. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12340. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12341. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12342. ;;
  12343. *)
  12344. ld_shlibs_F77=no
  12345. ;;
  12346. esac
  12347. fi
  12348. ;;
  12349. dgux*)
  12350. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12351. hardcode_libdir_flag_spec_F77='-L$libdir'
  12352. hardcode_shlibpath_var_F77=no
  12353. ;;
  12354. freebsd1*)
  12355. ld_shlibs_F77=no
  12356. ;;
  12357. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12358. # support. Future versions do this automatically, but an explicit c++rt0.o
  12359. # does not break anything, and helps significantly (at the cost of a little
  12360. # extra space).
  12361. freebsd2.2*)
  12362. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12363. hardcode_libdir_flag_spec_F77='-R$libdir'
  12364. hardcode_direct_F77=yes
  12365. hardcode_shlibpath_var_F77=no
  12366. ;;
  12367. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12368. freebsd2*)
  12369. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12370. hardcode_direct_F77=yes
  12371. hardcode_minus_L_F77=yes
  12372. hardcode_shlibpath_var_F77=no
  12373. ;;
  12374. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12375. freebsd* | kfreebsd*-gnu | dragonfly*)
  12376. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12377. hardcode_libdir_flag_spec_F77='-R$libdir'
  12378. hardcode_direct_F77=yes
  12379. hardcode_shlibpath_var_F77=no
  12380. ;;
  12381. hpux9*)
  12382. if test "$GCC" = yes; then
  12383. archive_cmds_F77='$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'
  12384. else
  12385. archive_cmds_F77='$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'
  12386. fi
  12387. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12388. hardcode_libdir_separator_F77=:
  12389. hardcode_direct_F77=yes
  12390. # hardcode_minus_L: Not really in the search PATH,
  12391. # but as the default location of the library.
  12392. hardcode_minus_L_F77=yes
  12393. export_dynamic_flag_spec_F77='${wl}-E'
  12394. ;;
  12395. hpux10* | hpux11*)
  12396. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12397. case "$host_cpu" in
  12398. hppa*64*|ia64*)
  12399. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12400. ;;
  12401. *)
  12402. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12403. ;;
  12404. esac
  12405. else
  12406. case "$host_cpu" in
  12407. hppa*64*|ia64*)
  12408. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  12409. ;;
  12410. *)
  12411. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12412. ;;
  12413. esac
  12414. fi
  12415. if test "$with_gnu_ld" = no; then
  12416. case "$host_cpu" in
  12417. hppa*64*)
  12418. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12419. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12420. hardcode_libdir_separator_F77=:
  12421. hardcode_direct_F77=no
  12422. hardcode_shlibpath_var_F77=no
  12423. ;;
  12424. ia64*)
  12425. hardcode_libdir_flag_spec_F77='-L$libdir'
  12426. hardcode_direct_F77=no
  12427. hardcode_shlibpath_var_F77=no
  12428. # hardcode_minus_L: Not really in the search PATH,
  12429. # but as the default location of the library.
  12430. hardcode_minus_L_F77=yes
  12431. ;;
  12432. *)
  12433. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12434. hardcode_libdir_separator_F77=:
  12435. hardcode_direct_F77=yes
  12436. export_dynamic_flag_spec_F77='${wl}-E'
  12437. # hardcode_minus_L: Not really in the search PATH,
  12438. # but as the default location of the library.
  12439. hardcode_minus_L_F77=yes
  12440. ;;
  12441. esac
  12442. fi
  12443. ;;
  12444. irix5* | irix6* | nonstopux*)
  12445. if test "$GCC" = yes; then
  12446. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12447. else
  12448. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12449. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12450. fi
  12451. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12452. hardcode_libdir_separator_F77=:
  12453. link_all_deplibs_F77=yes
  12454. ;;
  12455. netbsd*)
  12456. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12457. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12458. else
  12459. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12460. fi
  12461. hardcode_libdir_flag_spec_F77='-R$libdir'
  12462. hardcode_direct_F77=yes
  12463. hardcode_shlibpath_var_F77=no
  12464. ;;
  12465. newsos6)
  12466. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12467. hardcode_direct_F77=yes
  12468. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12469. hardcode_libdir_separator_F77=:
  12470. hardcode_shlibpath_var_F77=no
  12471. ;;
  12472. openbsd*)
  12473. hardcode_direct_F77=yes
  12474. hardcode_shlibpath_var_F77=no
  12475. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12476. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12477. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12478. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12479. export_dynamic_flag_spec_F77='${wl}-E'
  12480. else
  12481. case $host_os in
  12482. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12483. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12484. hardcode_libdir_flag_spec_F77='-R$libdir'
  12485. ;;
  12486. *)
  12487. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12488. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12489. ;;
  12490. esac
  12491. fi
  12492. ;;
  12493. os2*)
  12494. hardcode_libdir_flag_spec_F77='-L$libdir'
  12495. hardcode_minus_L_F77=yes
  12496. allow_undefined_flag_F77=unsupported
  12497. archive_cmds_F77='$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'
  12498. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12499. ;;
  12500. osf3*)
  12501. if test "$GCC" = yes; then
  12502. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12503. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12504. else
  12505. allow_undefined_flag_F77=' -expect_unresolved \*'
  12506. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12507. fi
  12508. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12509. hardcode_libdir_separator_F77=:
  12510. ;;
  12511. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12512. if test "$GCC" = yes; then
  12513. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12514. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12515. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12516. else
  12517. allow_undefined_flag_F77=' -expect_unresolved \*'
  12518. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12519. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  12520. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  12521. # Both c and cxx compiler support -rpath directly
  12522. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12523. fi
  12524. hardcode_libdir_separator_F77=:
  12525. ;;
  12526. sco3.2v5*)
  12527. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12528. hardcode_shlibpath_var_F77=no
  12529. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12530. runpath_var=LD_RUN_PATH
  12531. hardcode_runpath_var=yes
  12532. ;;
  12533. solaris*)
  12534. no_undefined_flag_F77=' -z text'
  12535. if test "$GCC" = yes; then
  12536. wlarc='${wl}'
  12537. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12538. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12539. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12540. else
  12541. wlarc=''
  12542. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12543. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12544. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12545. fi
  12546. hardcode_libdir_flag_spec_F77='-R$libdir'
  12547. hardcode_shlibpath_var_F77=no
  12548. case $host_os in
  12549. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12550. *)
  12551. # The compiler driver will combine linker options so we
  12552. # cannot just pass the convience library names through
  12553. # without $wl, iff we do not link with $LD.
  12554. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12555. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12556. case $wlarc in
  12557. '')
  12558. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12559. *)
  12560. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12561. esac ;;
  12562. esac
  12563. link_all_deplibs_F77=yes
  12564. ;;
  12565. sunos4*)
  12566. if test "x$host_vendor" = xsequent; then
  12567. # Use $CC to link under sequent, because it throws in some extra .o
  12568. # files that make .init and .fini sections work.
  12569. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12570. else
  12571. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12572. fi
  12573. hardcode_libdir_flag_spec_F77='-L$libdir'
  12574. hardcode_direct_F77=yes
  12575. hardcode_minus_L_F77=yes
  12576. hardcode_shlibpath_var_F77=no
  12577. ;;
  12578. sysv4)
  12579. case $host_vendor in
  12580. sni)
  12581. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12582. hardcode_direct_F77=yes # is this really true???
  12583. ;;
  12584. siemens)
  12585. ## LD is ld it makes a PLAMLIB
  12586. ## CC just makes a GrossModule.
  12587. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12588. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12589. hardcode_direct_F77=no
  12590. ;;
  12591. motorola)
  12592. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12593. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12594. ;;
  12595. esac
  12596. runpath_var='LD_RUN_PATH'
  12597. hardcode_shlibpath_var_F77=no
  12598. ;;
  12599. sysv4.3*)
  12600. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12601. hardcode_shlibpath_var_F77=no
  12602. export_dynamic_flag_spec_F77='-Bexport'
  12603. ;;
  12604. sysv4*MP*)
  12605. if test -d /usr/nec; then
  12606. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12607. hardcode_shlibpath_var_F77=no
  12608. runpath_var=LD_RUN_PATH
  12609. hardcode_runpath_var=yes
  12610. ld_shlibs_F77=yes
  12611. fi
  12612. ;;
  12613. sysv4.2uw2*)
  12614. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12615. hardcode_direct_F77=yes
  12616. hardcode_minus_L_F77=no
  12617. hardcode_shlibpath_var_F77=no
  12618. hardcode_runpath_var=yes
  12619. runpath_var=LD_RUN_PATH
  12620. ;;
  12621. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  12622. no_undefined_flag_F77='${wl}-z ${wl}text'
  12623. if test "$GCC" = yes; then
  12624. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12625. else
  12626. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12627. fi
  12628. runpath_var='LD_RUN_PATH'
  12629. hardcode_shlibpath_var_F77=no
  12630. ;;
  12631. sysv5*)
  12632. no_undefined_flag_F77=' -z text'
  12633. # $CC -shared without GNU ld will not create a library from C++
  12634. # object files and a static libstdc++, better avoid it by now
  12635. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12636. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12637. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12638. hardcode_libdir_flag_spec_F77=
  12639. hardcode_shlibpath_var_F77=no
  12640. runpath_var='LD_RUN_PATH'
  12641. ;;
  12642. uts4*)
  12643. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12644. hardcode_libdir_flag_spec_F77='-L$libdir'
  12645. hardcode_shlibpath_var_F77=no
  12646. ;;
  12647. *)
  12648. ld_shlibs_F77=no
  12649. ;;
  12650. esac
  12651. fi
  12652. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  12653. echo "${ECHO_T}$ld_shlibs_F77" >&6
  12654. test "$ld_shlibs_F77" = no && can_build_shared=no
  12655. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12656. if test "$GCC" = yes; then
  12657. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12658. fi
  12659. #
  12660. # Do we need to explicitly link libc?
  12661. #
  12662. case "x$archive_cmds_need_lc_F77" in
  12663. x|xyes)
  12664. # Assume -lc should be added
  12665. archive_cmds_need_lc_F77=yes
  12666. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12667. case $archive_cmds_F77 in
  12668. *'~'*)
  12669. # FIXME: we may have to deal with multi-command sequences.
  12670. ;;
  12671. '$CC '*)
  12672. # Test whether the compiler implicitly links with -lc since on some
  12673. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12674. # to ld, don't add -lc before -lgcc.
  12675. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12676. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  12677. $rm conftest*
  12678. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12679. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12680. (eval $ac_compile) 2>&5
  12681. ac_status=$?
  12682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12683. (exit $ac_status); } 2>conftest.err; then
  12684. soname=conftest
  12685. lib=conftest
  12686. libobjs=conftest.$ac_objext
  12687. deplibs=
  12688. wl=$lt_prog_compiler_wl_F77
  12689. compiler_flags=-v
  12690. linker_flags=-v
  12691. verstring=
  12692. output_objdir=.
  12693. libname=conftest
  12694. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  12695. allow_undefined_flag_F77=
  12696. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12697. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12698. ac_status=$?
  12699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12700. (exit $ac_status); }
  12701. then
  12702. archive_cmds_need_lc_F77=no
  12703. else
  12704. archive_cmds_need_lc_F77=yes
  12705. fi
  12706. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  12707. else
  12708. cat conftest.err 1>&5
  12709. fi
  12710. $rm conftest*
  12711. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  12712. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  12713. ;;
  12714. esac
  12715. fi
  12716. ;;
  12717. esac
  12718. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12719. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  12720. library_names_spec=
  12721. libname_spec='lib$name'
  12722. soname_spec=
  12723. shrext_cmds=".so"
  12724. postinstall_cmds=
  12725. postuninstall_cmds=
  12726. finish_cmds=
  12727. finish_eval=
  12728. shlibpath_var=
  12729. shlibpath_overrides_runpath=unknown
  12730. version_type=none
  12731. dynamic_linker="$host_os ld.so"
  12732. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12733. if test "$GCC" = yes; then
  12734. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12735. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  12736. # if the path contains ";" then we assume it to be the separator
  12737. # otherwise default to the standard path separator (i.e. ":") - it is
  12738. # assumed that no part of a normal pathname contains ";" but that should
  12739. # okay in the real world where ";" in dirpaths is itself problematic.
  12740. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12741. else
  12742. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12743. fi
  12744. else
  12745. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12746. fi
  12747. need_lib_prefix=unknown
  12748. hardcode_into_libs=no
  12749. # when you set need_version to no, make sure it does not cause -set_version
  12750. # flags to be left without arguments
  12751. need_version=unknown
  12752. case $host_os in
  12753. aix3*)
  12754. version_type=linux
  12755. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12756. shlibpath_var=LIBPATH
  12757. # AIX 3 has no versioning support, so we append a major version to the name.
  12758. soname_spec='${libname}${release}${shared_ext}$major'
  12759. ;;
  12760. aix4* | aix5*)
  12761. version_type=linux
  12762. need_lib_prefix=no
  12763. need_version=no
  12764. hardcode_into_libs=yes
  12765. if test "$host_cpu" = ia64; then
  12766. # AIX 5 supports IA64
  12767. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12768. shlibpath_var=LD_LIBRARY_PATH
  12769. else
  12770. # With GCC up to 2.95.x, collect2 would create an import file
  12771. # for dependence libraries. The import file would start with
  12772. # the line `#! .'. This would cause the generated library to
  12773. # depend on `.', always an invalid library. This was fixed in
  12774. # development snapshots of GCC prior to 3.0.
  12775. case $host_os in
  12776. aix4 | aix4.[01] | aix4.[01].*)
  12777. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12778. echo ' yes '
  12779. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12780. :
  12781. else
  12782. can_build_shared=no
  12783. fi
  12784. ;;
  12785. esac
  12786. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12787. # soname into executable. Probably we can add versioning support to
  12788. # collect2, so additional links can be useful in future.
  12789. if test "$aix_use_runtimelinking" = yes; then
  12790. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12791. # instead of lib<name>.a to let people know that these are not
  12792. # typical AIX shared libraries.
  12793. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12794. else
  12795. # We preserve .a as extension for shared libraries through AIX4.2
  12796. # and later when we are not doing run time linking.
  12797. library_names_spec='${libname}${release}.a $libname.a'
  12798. soname_spec='${libname}${release}${shared_ext}$major'
  12799. fi
  12800. shlibpath_var=LIBPATH
  12801. fi
  12802. ;;
  12803. amigaos*)
  12804. library_names_spec='$libname.ixlibrary $libname.a'
  12805. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12806. 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'
  12807. ;;
  12808. beos*)
  12809. library_names_spec='${libname}${shared_ext}'
  12810. dynamic_linker="$host_os ld.so"
  12811. shlibpath_var=LIBRARY_PATH
  12812. ;;
  12813. bsdi[45]*)
  12814. version_type=linux
  12815. need_version=no
  12816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12817. soname_spec='${libname}${release}${shared_ext}$major'
  12818. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12819. shlibpath_var=LD_LIBRARY_PATH
  12820. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12821. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12822. # the default ld.so.conf also contains /usr/contrib/lib and
  12823. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12824. # libtool to hard-code these into programs
  12825. ;;
  12826. cygwin* | mingw* | pw32*)
  12827. version_type=windows
  12828. shrext_cmds=".dll"
  12829. need_version=no
  12830. need_lib_prefix=no
  12831. case $GCC,$host_os in
  12832. yes,cygwin* | yes,mingw* | yes,pw32*)
  12833. library_names_spec='$libname.dll.a'
  12834. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12835. postinstall_cmds='base_file=`basename \${file}`~
  12836. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12837. dldir=$destdir/`dirname \$dlpath`~
  12838. test -d \$dldir || mkdir -p \$dldir~
  12839. $install_prog $dir/$dlname \$dldir/$dlname'
  12840. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12841. dlpath=$dir/\$dldll~
  12842. $rm \$dlpath'
  12843. shlibpath_overrides_runpath=yes
  12844. case $host_os in
  12845. cygwin*)
  12846. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12847. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12848. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12849. ;;
  12850. mingw*)
  12851. # MinGW DLLs use traditional 'lib' prefix
  12852. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12853. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12854. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12855. # It is most probably a Windows format PATH printed by
  12856. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12857. # path with ; separators, and with drive letters. We can handle the
  12858. # drive letters (cygwin fileutils understands them), so leave them,
  12859. # especially as we might pass files found there to a mingw objdump,
  12860. # which wouldn't understand a cygwinified path. Ahh.
  12861. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12862. else
  12863. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12864. fi
  12865. ;;
  12866. pw32*)
  12867. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12868. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12869. ;;
  12870. esac
  12871. ;;
  12872. *)
  12873. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12874. ;;
  12875. esac
  12876. dynamic_linker='Win32 ld.exe'
  12877. # FIXME: first we should search . and the directory the executable is in
  12878. shlibpath_var=PATH
  12879. ;;
  12880. darwin* | rhapsody*)
  12881. dynamic_linker="$host_os dyld"
  12882. version_type=darwin
  12883. need_lib_prefix=no
  12884. need_version=no
  12885. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12886. soname_spec='${libname}${release}${major}$shared_ext'
  12887. shlibpath_overrides_runpath=yes
  12888. shlibpath_var=DYLD_LIBRARY_PATH
  12889. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  12890. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  12891. if test "$GCC" = yes; then
  12892. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  12893. else
  12894. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  12895. fi
  12896. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12897. ;;
  12898. dgux*)
  12899. version_type=linux
  12900. need_lib_prefix=no
  12901. need_version=no
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12903. soname_spec='${libname}${release}${shared_ext}$major'
  12904. shlibpath_var=LD_LIBRARY_PATH
  12905. ;;
  12906. freebsd1*)
  12907. dynamic_linker=no
  12908. ;;
  12909. kfreebsd*-gnu)
  12910. version_type=linux
  12911. need_lib_prefix=no
  12912. need_version=no
  12913. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12914. soname_spec='${libname}${release}${shared_ext}$major'
  12915. shlibpath_var=LD_LIBRARY_PATH
  12916. shlibpath_overrides_runpath=no
  12917. hardcode_into_libs=yes
  12918. dynamic_linker='GNU ld.so'
  12919. ;;
  12920. freebsd* | dragonfly*)
  12921. # DragonFly does not have aout. When/if they implement a new
  12922. # versioning mechanism, adjust this.
  12923. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  12924. version_type=freebsd-$objformat
  12925. case $version_type in
  12926. freebsd-elf*)
  12927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12928. need_version=no
  12929. need_lib_prefix=no
  12930. ;;
  12931. freebsd-*)
  12932. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12933. need_version=yes
  12934. ;;
  12935. esac
  12936. shlibpath_var=LD_LIBRARY_PATH
  12937. case $host_os in
  12938. freebsd2*)
  12939. shlibpath_overrides_runpath=yes
  12940. ;;
  12941. freebsd3.[01]* | freebsdelf3.[01]*)
  12942. shlibpath_overrides_runpath=yes
  12943. hardcode_into_libs=yes
  12944. ;;
  12945. *) # from 3.2 on
  12946. shlibpath_overrides_runpath=no
  12947. hardcode_into_libs=yes
  12948. ;;
  12949. esac
  12950. ;;
  12951. gnu*)
  12952. version_type=linux
  12953. need_lib_prefix=no
  12954. need_version=no
  12955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12956. soname_spec='${libname}${release}${shared_ext}$major'
  12957. shlibpath_var=LD_LIBRARY_PATH
  12958. hardcode_into_libs=yes
  12959. ;;
  12960. hpux9* | hpux10* | hpux11*)
  12961. # Give a soname corresponding to the major version so that dld.sl refuses to
  12962. # link against other versions.
  12963. version_type=sunos
  12964. need_lib_prefix=no
  12965. need_version=no
  12966. case "$host_cpu" in
  12967. ia64*)
  12968. shrext_cmds='.so'
  12969. hardcode_into_libs=yes
  12970. dynamic_linker="$host_os dld.so"
  12971. shlibpath_var=LD_LIBRARY_PATH
  12972. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12974. soname_spec='${libname}${release}${shared_ext}$major'
  12975. if test "X$HPUX_IA64_MODE" = X32; then
  12976. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12977. else
  12978. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12979. fi
  12980. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12981. ;;
  12982. hppa*64*)
  12983. shrext_cmds='.sl'
  12984. hardcode_into_libs=yes
  12985. dynamic_linker="$host_os dld.sl"
  12986. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12987. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12989. soname_spec='${libname}${release}${shared_ext}$major'
  12990. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12991. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12992. ;;
  12993. *)
  12994. shrext_cmds='.sl'
  12995. dynamic_linker="$host_os dld.sl"
  12996. shlibpath_var=SHLIB_PATH
  12997. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12999. soname_spec='${libname}${release}${shared_ext}$major'
  13000. ;;
  13001. esac
  13002. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13003. postinstall_cmds='chmod 555 $lib'
  13004. ;;
  13005. irix5* | irix6* | nonstopux*)
  13006. case $host_os in
  13007. nonstopux*) version_type=nonstopux ;;
  13008. *)
  13009. if test "$lt_cv_prog_gnu_ld" = yes; then
  13010. version_type=linux
  13011. else
  13012. version_type=irix
  13013. fi ;;
  13014. esac
  13015. need_lib_prefix=no
  13016. need_version=no
  13017. soname_spec='${libname}${release}${shared_ext}$major'
  13018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13019. case $host_os in
  13020. irix5* | nonstopux*)
  13021. libsuff= shlibsuff=
  13022. ;;
  13023. *)
  13024. case $LD in # libtool.m4 will add one of these switches to LD
  13025. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13026. libsuff= shlibsuff= libmagic=32-bit;;
  13027. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13028. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13029. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13030. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13031. *) libsuff= shlibsuff= libmagic=never-match;;
  13032. esac
  13033. ;;
  13034. esac
  13035. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13036. shlibpath_overrides_runpath=no
  13037. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13038. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13039. hardcode_into_libs=yes
  13040. ;;
  13041. # No shared lib support for Linux oldld, aout, or coff.
  13042. linux*oldld* | linux*aout* | linux*coff*)
  13043. dynamic_linker=no
  13044. ;;
  13045. # This must be Linux ELF.
  13046. linux*)
  13047. version_type=linux
  13048. need_lib_prefix=no
  13049. need_version=no
  13050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13051. soname_spec='${libname}${release}${shared_ext}$major'
  13052. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13053. shlibpath_var=LD_LIBRARY_PATH
  13054. shlibpath_overrides_runpath=no
  13055. # This implies no fast_install, which is unacceptable.
  13056. # Some rework will be needed to allow for fast_install
  13057. # before this can be enabled.
  13058. hardcode_into_libs=yes
  13059. # Append ld.so.conf contents to the search path
  13060. if test -f /etc/ld.so.conf; then
  13061. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13062. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13063. fi
  13064. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13065. # powerpc, because MkLinux only supported shared libraries with the
  13066. # GNU dynamic linker. Since this was broken with cross compilers,
  13067. # most powerpc-linux boxes support dynamic linking these days and
  13068. # people can always --disable-shared, the test was removed, and we
  13069. # assume the GNU/Linux dynamic linker is in use.
  13070. dynamic_linker='GNU/Linux ld.so'
  13071. ;;
  13072. knetbsd*-gnu)
  13073. version_type=linux
  13074. need_lib_prefix=no
  13075. need_version=no
  13076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13077. soname_spec='${libname}${release}${shared_ext}$major'
  13078. shlibpath_var=LD_LIBRARY_PATH
  13079. shlibpath_overrides_runpath=no
  13080. hardcode_into_libs=yes
  13081. dynamic_linker='GNU ld.so'
  13082. ;;
  13083. netbsd*)
  13084. version_type=sunos
  13085. need_lib_prefix=no
  13086. need_version=no
  13087. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13089. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13090. dynamic_linker='NetBSD (a.out) ld.so'
  13091. else
  13092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13093. soname_spec='${libname}${release}${shared_ext}$major'
  13094. dynamic_linker='NetBSD ld.elf_so'
  13095. fi
  13096. shlibpath_var=LD_LIBRARY_PATH
  13097. shlibpath_overrides_runpath=yes
  13098. hardcode_into_libs=yes
  13099. ;;
  13100. newsos6)
  13101. version_type=linux
  13102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13103. shlibpath_var=LD_LIBRARY_PATH
  13104. shlibpath_overrides_runpath=yes
  13105. ;;
  13106. nto-qnx*)
  13107. version_type=linux
  13108. need_lib_prefix=no
  13109. need_version=no
  13110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13111. soname_spec='${libname}${release}${shared_ext}$major'
  13112. shlibpath_var=LD_LIBRARY_PATH
  13113. shlibpath_overrides_runpath=yes
  13114. ;;
  13115. openbsd*)
  13116. version_type=sunos
  13117. need_lib_prefix=no
  13118. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13119. case $host_os in
  13120. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13121. *) need_version=no ;;
  13122. esac
  13123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13124. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13125. shlibpath_var=LD_LIBRARY_PATH
  13126. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13127. case $host_os in
  13128. openbsd2.[89] | openbsd2.[89].*)
  13129. shlibpath_overrides_runpath=no
  13130. ;;
  13131. *)
  13132. shlibpath_overrides_runpath=yes
  13133. ;;
  13134. esac
  13135. else
  13136. shlibpath_overrides_runpath=yes
  13137. fi
  13138. ;;
  13139. os2*)
  13140. libname_spec='$name'
  13141. shrext_cmds=".dll"
  13142. need_lib_prefix=no
  13143. library_names_spec='$libname${shared_ext} $libname.a'
  13144. dynamic_linker='OS/2 ld.exe'
  13145. shlibpath_var=LIBPATH
  13146. ;;
  13147. osf3* | osf4* | osf5*)
  13148. version_type=osf
  13149. need_lib_prefix=no
  13150. need_version=no
  13151. soname_spec='${libname}${release}${shared_ext}$major'
  13152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13153. shlibpath_var=LD_LIBRARY_PATH
  13154. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13155. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13156. ;;
  13157. sco3.2v5*)
  13158. version_type=osf
  13159. soname_spec='${libname}${release}${shared_ext}$major'
  13160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. ;;
  13163. solaris*)
  13164. version_type=linux
  13165. need_lib_prefix=no
  13166. need_version=no
  13167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13168. soname_spec='${libname}${release}${shared_ext}$major'
  13169. shlibpath_var=LD_LIBRARY_PATH
  13170. shlibpath_overrides_runpath=yes
  13171. hardcode_into_libs=yes
  13172. # ldd complains unless libraries are executable
  13173. postinstall_cmds='chmod +x $lib'
  13174. ;;
  13175. sunos4*)
  13176. version_type=sunos
  13177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13178. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13179. shlibpath_var=LD_LIBRARY_PATH
  13180. shlibpath_overrides_runpath=yes
  13181. if test "$with_gnu_ld" = yes; then
  13182. need_lib_prefix=no
  13183. fi
  13184. need_version=yes
  13185. ;;
  13186. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13187. version_type=linux
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13189. soname_spec='${libname}${release}${shared_ext}$major'
  13190. shlibpath_var=LD_LIBRARY_PATH
  13191. case $host_vendor in
  13192. sni)
  13193. shlibpath_overrides_runpath=no
  13194. need_lib_prefix=no
  13195. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13196. runpath_var=LD_RUN_PATH
  13197. ;;
  13198. siemens)
  13199. need_lib_prefix=no
  13200. ;;
  13201. motorola)
  13202. need_lib_prefix=no
  13203. need_version=no
  13204. shlibpath_overrides_runpath=no
  13205. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13206. ;;
  13207. esac
  13208. ;;
  13209. sysv4*MP*)
  13210. if test -d /usr/nec ;then
  13211. version_type=linux
  13212. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13213. soname_spec='$libname${shared_ext}.$major'
  13214. shlibpath_var=LD_LIBRARY_PATH
  13215. fi
  13216. ;;
  13217. uts4*)
  13218. version_type=linux
  13219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13220. soname_spec='${libname}${release}${shared_ext}$major'
  13221. shlibpath_var=LD_LIBRARY_PATH
  13222. ;;
  13223. *)
  13224. dynamic_linker=no
  13225. ;;
  13226. esac
  13227. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13228. echo "${ECHO_T}$dynamic_linker" >&6
  13229. test "$dynamic_linker" = no && can_build_shared=no
  13230. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13231. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13232. hardcode_action_F77=
  13233. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13234. test -n "$runpath_var_F77" || \
  13235. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13236. # We can hardcode non-existant directories.
  13237. if test "$hardcode_direct_F77" != no &&
  13238. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13239. # have to relink, otherwise we might link with an installed library
  13240. # when we should be linking with a yet-to-be-installed one
  13241. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13242. test "$hardcode_minus_L_F77" != no; then
  13243. # Linking always hardcodes the temporary library directory.
  13244. hardcode_action_F77=relink
  13245. else
  13246. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13247. hardcode_action_F77=immediate
  13248. fi
  13249. else
  13250. # We cannot hardcode anything, or else we can only hardcode existing
  13251. # directories.
  13252. hardcode_action_F77=unsupported
  13253. fi
  13254. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13255. echo "${ECHO_T}$hardcode_action_F77" >&6
  13256. if test "$hardcode_action_F77" = relink; then
  13257. # Fast installation is not supported
  13258. enable_fast_install=no
  13259. elif test "$shlibpath_overrides_runpath" = yes ||
  13260. test "$enable_shared" = no; then
  13261. # Fast installation is not necessary
  13262. enable_fast_install=needless
  13263. fi
  13264. striplib=
  13265. old_striplib=
  13266. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  13267. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  13268. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  13269. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13270. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13271. echo "$as_me:$LINENO: result: yes" >&5
  13272. echo "${ECHO_T}yes" >&6
  13273. else
  13274. # FIXME - insert some real tests, host_os isn't really good enough
  13275. case $host_os in
  13276. darwin*)
  13277. if test -n "$STRIP" ; then
  13278. striplib="$STRIP -x"
  13279. echo "$as_me:$LINENO: result: yes" >&5
  13280. echo "${ECHO_T}yes" >&6
  13281. else
  13282. echo "$as_me:$LINENO: result: no" >&5
  13283. echo "${ECHO_T}no" >&6
  13284. fi
  13285. ;;
  13286. *)
  13287. echo "$as_me:$LINENO: result: no" >&5
  13288. echo "${ECHO_T}no" >&6
  13289. ;;
  13290. esac
  13291. fi
  13292. # The else clause should only fire when bootstrapping the
  13293. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13294. # with your package, and you will get complaints that there are
  13295. # no rules to generate ltmain.sh.
  13296. if test -f "$ltmain"; then
  13297. # See if we are running on zsh, and set the options which allow our commands through
  13298. # without removal of \ escapes.
  13299. if test -n "${ZSH_VERSION+set}" ; then
  13300. setopt NO_GLOB_SUBST
  13301. fi
  13302. # Now quote all the things that may contain metacharacters while being
  13303. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13304. # variables and quote the copies for generation of the libtool script.
  13305. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  13306. SED SHELL STRIP \
  13307. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13308. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13309. deplibs_check_method reload_flag reload_cmds need_locks \
  13310. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13311. lt_cv_sys_global_symbol_to_c_name_address \
  13312. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13313. old_postinstall_cmds old_postuninstall_cmds \
  13314. compiler_F77 \
  13315. CC_F77 \
  13316. LD_F77 \
  13317. lt_prog_compiler_wl_F77 \
  13318. lt_prog_compiler_pic_F77 \
  13319. lt_prog_compiler_static_F77 \
  13320. lt_prog_compiler_no_builtin_flag_F77 \
  13321. export_dynamic_flag_spec_F77 \
  13322. thread_safe_flag_spec_F77 \
  13323. whole_archive_flag_spec_F77 \
  13324. enable_shared_with_static_runtimes_F77 \
  13325. old_archive_cmds_F77 \
  13326. old_archive_from_new_cmds_F77 \
  13327. predep_objects_F77 \
  13328. postdep_objects_F77 \
  13329. predeps_F77 \
  13330. postdeps_F77 \
  13331. compiler_lib_search_path_F77 \
  13332. archive_cmds_F77 \
  13333. archive_expsym_cmds_F77 \
  13334. postinstall_cmds_F77 \
  13335. postuninstall_cmds_F77 \
  13336. old_archive_from_expsyms_cmds_F77 \
  13337. allow_undefined_flag_F77 \
  13338. no_undefined_flag_F77 \
  13339. export_symbols_cmds_F77 \
  13340. hardcode_libdir_flag_spec_F77 \
  13341. hardcode_libdir_flag_spec_ld_F77 \
  13342. hardcode_libdir_separator_F77 \
  13343. hardcode_automatic_F77 \
  13344. module_cmds_F77 \
  13345. module_expsym_cmds_F77 \
  13346. lt_cv_prog_compiler_c_o_F77 \
  13347. exclude_expsyms_F77 \
  13348. include_expsyms_F77; do
  13349. case $var in
  13350. old_archive_cmds_F77 | \
  13351. old_archive_from_new_cmds_F77 | \
  13352. archive_cmds_F77 | \
  13353. archive_expsym_cmds_F77 | \
  13354. module_cmds_F77 | \
  13355. module_expsym_cmds_F77 | \
  13356. old_archive_from_expsyms_cmds_F77 | \
  13357. export_symbols_cmds_F77 | \
  13358. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13359. postinstall_cmds | postuninstall_cmds | \
  13360. old_postinstall_cmds | old_postuninstall_cmds | \
  13361. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13362. # Double-quote double-evaled strings.
  13363. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13364. ;;
  13365. *)
  13366. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13367. ;;
  13368. esac
  13369. done
  13370. case $lt_echo in
  13371. *'\$0 --fallback-echo"')
  13372. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13373. ;;
  13374. esac
  13375. cfgfile="$ofile"
  13376. cat <<__EOF__ >> "$cfgfile"
  13377. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13378. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13379. # Shell to use when invoking shell scripts.
  13380. SHELL=$lt_SHELL
  13381. # Whether or not to build shared libraries.
  13382. build_libtool_libs=$enable_shared
  13383. # Whether or not to build static libraries.
  13384. build_old_libs=$enable_static
  13385. # Whether or not to add -lc for building shared libraries.
  13386. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13387. # Whether or not to disallow shared libs when runtime libs are static
  13388. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13389. # Whether or not to optimize for fast installation.
  13390. fast_install=$enable_fast_install
  13391. # The host system.
  13392. host_alias=$host_alias
  13393. host=$host
  13394. host_os=$host_os
  13395. # The build system.
  13396. build_alias=$build_alias
  13397. build=$build
  13398. build_os=$build_os
  13399. # An echo program that does not interpret backslashes.
  13400. echo=$lt_echo
  13401. # The archiver.
  13402. AR=$lt_AR
  13403. AR_FLAGS=$lt_AR_FLAGS
  13404. # A C compiler.
  13405. LTCC=$lt_LTCC
  13406. # A language-specific compiler.
  13407. CC=$lt_compiler_F77
  13408. # Is the compiler the GNU C compiler?
  13409. with_gcc=$GCC_F77
  13410. # An ERE matcher.
  13411. EGREP=$lt_EGREP
  13412. # The linker used to build libraries.
  13413. LD=$lt_LD_F77
  13414. # Whether we need hard or soft links.
  13415. LN_S=$lt_LN_S
  13416. # A BSD-compatible nm program.
  13417. NM=$lt_NM
  13418. # A symbol stripping program
  13419. STRIP=$lt_STRIP
  13420. # Used to examine libraries when file_magic_cmd begins "file"
  13421. MAGIC_CMD=$MAGIC_CMD
  13422. # Used on cygwin: DLL creation program.
  13423. DLLTOOL="$DLLTOOL"
  13424. # Used on cygwin: object dumper.
  13425. OBJDUMP="$OBJDUMP"
  13426. # Used on cygwin: assembler.
  13427. AS="$AS"
  13428. # The name of the directory that contains temporary libtool files.
  13429. objdir=$objdir
  13430. # How to create reloadable object files.
  13431. reload_flag=$lt_reload_flag
  13432. reload_cmds=$lt_reload_cmds
  13433. # How to pass a linker flag through the compiler.
  13434. wl=$lt_lt_prog_compiler_wl_F77
  13435. # Object file suffix (normally "o").
  13436. objext="$ac_objext"
  13437. # Old archive suffix (normally "a").
  13438. libext="$libext"
  13439. # Shared library suffix (normally ".so").
  13440. shrext_cmds='$shrext_cmds'
  13441. # Executable file suffix (normally "").
  13442. exeext="$exeext"
  13443. # Additional compiler flags for building library objects.
  13444. pic_flag=$lt_lt_prog_compiler_pic_F77
  13445. pic_mode=$pic_mode
  13446. # What is the maximum length of a command?
  13447. max_cmd_len=$lt_cv_sys_max_cmd_len
  13448. # Does compiler simultaneously support -c and -o options?
  13449. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13450. # Must we lock files when doing compilation?
  13451. need_locks=$lt_need_locks
  13452. # Do we need the lib prefix for modules?
  13453. need_lib_prefix=$need_lib_prefix
  13454. # Do we need a version for libraries?
  13455. need_version=$need_version
  13456. # Whether dlopen is supported.
  13457. dlopen_support=$enable_dlopen
  13458. # Whether dlopen of programs is supported.
  13459. dlopen_self=$enable_dlopen_self
  13460. # Whether dlopen of statically linked programs is supported.
  13461. dlopen_self_static=$enable_dlopen_self_static
  13462. # Compiler flag to prevent dynamic linking.
  13463. link_static_flag=$lt_lt_prog_compiler_static_F77
  13464. # Compiler flag to turn off builtin functions.
  13465. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13466. # Compiler flag to allow reflexive dlopens.
  13467. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13468. # Compiler flag to generate shared objects directly from archives.
  13469. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13470. # Compiler flag to generate thread-safe objects.
  13471. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13472. # Library versioning type.
  13473. version_type=$version_type
  13474. # Format of library name prefix.
  13475. libname_spec=$lt_libname_spec
  13476. # List of archive names. First name is the real one, the rest are links.
  13477. # The last name is the one that the linker finds with -lNAME.
  13478. library_names_spec=$lt_library_names_spec
  13479. # The coded name of the library, if different from the real name.
  13480. soname_spec=$lt_soname_spec
  13481. # Commands used to build and install an old-style archive.
  13482. RANLIB=$lt_RANLIB
  13483. old_archive_cmds=$lt_old_archive_cmds_F77
  13484. old_postinstall_cmds=$lt_old_postinstall_cmds
  13485. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13486. # Create an old-style archive from a shared archive.
  13487. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13488. # Create a temporary old-style archive to link instead of a shared archive.
  13489. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13490. # Commands used to build and install a shared archive.
  13491. archive_cmds=$lt_archive_cmds_F77
  13492. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13493. postinstall_cmds=$lt_postinstall_cmds
  13494. postuninstall_cmds=$lt_postuninstall_cmds
  13495. # Commands used to build a loadable module (assumed same as above if empty)
  13496. module_cmds=$lt_module_cmds_F77
  13497. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13498. # Commands to strip libraries.
  13499. old_striplib=$lt_old_striplib
  13500. striplib=$lt_striplib
  13501. # Dependencies to place before the objects being linked to create a
  13502. # shared library.
  13503. predep_objects=$lt_predep_objects_F77
  13504. # Dependencies to place after the objects being linked to create a
  13505. # shared library.
  13506. postdep_objects=$lt_postdep_objects_F77
  13507. # Dependencies to place before the objects being linked to create a
  13508. # shared library.
  13509. predeps=$lt_predeps_F77
  13510. # Dependencies to place after the objects being linked to create a
  13511. # shared library.
  13512. postdeps=$lt_postdeps_F77
  13513. # The library search path used internally by the compiler when linking
  13514. # a shared library.
  13515. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13516. # Method to check whether dependent libraries are shared objects.
  13517. deplibs_check_method=$lt_deplibs_check_method
  13518. # Command to use when deplibs_check_method == file_magic.
  13519. file_magic_cmd=$lt_file_magic_cmd
  13520. # Flag that allows shared libraries with undefined symbols to be built.
  13521. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13522. # Flag that forces no undefined symbols.
  13523. no_undefined_flag=$lt_no_undefined_flag_F77
  13524. # Commands used to finish a libtool library installation in a directory.
  13525. finish_cmds=$lt_finish_cmds
  13526. # Same as above, but a single script fragment to be evaled but not shown.
  13527. finish_eval=$lt_finish_eval
  13528. # Take the output of nm and produce a listing of raw symbols and C names.
  13529. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13530. # Transform the output of nm in a proper C declaration
  13531. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13532. # Transform the output of nm in a C name address pair
  13533. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13534. # This is the shared library runtime path variable.
  13535. runpath_var=$runpath_var
  13536. # This is the shared library path variable.
  13537. shlibpath_var=$shlibpath_var
  13538. # Is shlibpath searched before the hard-coded library search path?
  13539. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13540. # How to hardcode a shared library path into an executable.
  13541. hardcode_action=$hardcode_action_F77
  13542. # Whether we should hardcode library paths into libraries.
  13543. hardcode_into_libs=$hardcode_into_libs
  13544. # Flag to hardcode \$libdir into a binary during linking.
  13545. # This must work even if \$libdir does not exist.
  13546. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13547. # If ld is used when linking, flag to hardcode \$libdir into
  13548. # a binary during linking. This must work even if \$libdir does
  13549. # not exist.
  13550. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13551. # Whether we need a single -rpath flag with a separated argument.
  13552. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13553. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13554. # resulting binary.
  13555. hardcode_direct=$hardcode_direct_F77
  13556. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13557. # resulting binary.
  13558. hardcode_minus_L=$hardcode_minus_L_F77
  13559. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13560. # the resulting binary.
  13561. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13562. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13563. # and all subsequent libraries and executables linked against it.
  13564. hardcode_automatic=$hardcode_automatic_F77
  13565. # Variables whose values should be saved in libtool wrapper scripts and
  13566. # restored at relink time.
  13567. variables_saved_for_relink="$variables_saved_for_relink"
  13568. # Whether libtool must link a program against all its dependency libraries.
  13569. link_all_deplibs=$link_all_deplibs_F77
  13570. # Compile-time system search path for libraries
  13571. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13572. # Run-time system search path for libraries
  13573. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13574. # Fix the shell variable \$srcfile for the compiler.
  13575. fix_srcfile_path="$fix_srcfile_path_F77"
  13576. # Set to yes if exported symbols are required.
  13577. always_export_symbols=$always_export_symbols_F77
  13578. # The commands to list exported symbols.
  13579. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13580. # The commands to extract the exported symbol list from a shared archive.
  13581. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13582. # Symbols that should not be listed in the preloaded symbols.
  13583. exclude_expsyms=$lt_exclude_expsyms_F77
  13584. # Symbols that must always be exported.
  13585. include_expsyms=$lt_include_expsyms_F77
  13586. # ### END LIBTOOL TAG CONFIG: $tagname
  13587. __EOF__
  13588. else
  13589. # If there is no Makefile yet, we rely on a make rule to execute
  13590. # `config.status --recheck' to rerun these tests and create the
  13591. # libtool script then.
  13592. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13593. if test -f "$ltmain_in"; then
  13594. test -f Makefile && make "$ltmain"
  13595. fi
  13596. fi
  13597. ac_ext=c
  13598. ac_cpp='$CPP $CPPFLAGS'
  13599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13602. CC="$lt_save_CC"
  13603. else
  13604. tagname=""
  13605. fi
  13606. ;;
  13607. GCJ)
  13608. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13609. # Source file extension for Java test sources.
  13610. ac_ext=java
  13611. # Object file extension for compiled Java test sources.
  13612. objext=o
  13613. objext_GCJ=$objext
  13614. # Code to be used in simple compile tests
  13615. lt_simple_compile_test_code="class foo {}\n"
  13616. # Code to be used in simple link tests
  13617. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  13618. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13619. # If no C compiler was specified, use CC.
  13620. LTCC=${LTCC-"$CC"}
  13621. # Allow CC to be a program name with arguments.
  13622. compiler=$CC
  13623. # save warnings/boilerplate of simple test code
  13624. ac_outfile=conftest.$ac_objext
  13625. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13626. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  13627. _lt_compiler_boilerplate=`cat conftest.err`
  13628. $rm conftest*
  13629. ac_outfile=conftest.$ac_objext
  13630. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13631. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  13632. _lt_linker_boilerplate=`cat conftest.err`
  13633. $rm conftest*
  13634. # Allow CC to be a program name with arguments.
  13635. lt_save_CC="$CC"
  13636. CC=${GCJ-"gcj"}
  13637. compiler=$CC
  13638. compiler_GCJ=$CC
  13639. for cc_temp in $compiler""; do
  13640. case $cc_temp in
  13641. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13642. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13643. \-*) ;;
  13644. *) break;;
  13645. esac
  13646. done
  13647. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13648. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  13649. archive_cmds_need_lc_GCJ=no
  13650. old_archive_cmds_GCJ=$old_archive_cmds
  13651. lt_prog_compiler_no_builtin_flag_GCJ=
  13652. if test "$GCC" = yes; then
  13653. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  13654. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13655. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  13656. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13657. echo $ECHO_N "(cached) $ECHO_C" >&6
  13658. else
  13659. lt_cv_prog_compiler_rtti_exceptions=no
  13660. ac_outfile=conftest.$ac_objext
  13661. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13662. lt_compiler_flag="-fno-rtti -fno-exceptions"
  13663. # Insert the option either (1) after the last *FLAGS variable, or
  13664. # (2) before a word containing "conftest.", or (3) at the end.
  13665. # Note that $ac_compile itself does not contain backslashes and begins
  13666. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13667. # The option is referenced via a variable to avoid confusing sed.
  13668. lt_compile=`echo "$ac_compile" | $SED \
  13669. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13670. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13671. -e 's:$: $lt_compiler_flag:'`
  13672. (eval echo "\"\$as_me:15214: $lt_compile\"" >&5)
  13673. (eval "$lt_compile" 2>conftest.err)
  13674. ac_status=$?
  13675. cat conftest.err >&5
  13676. echo "$as_me:15218: \$? = $ac_status" >&5
  13677. if (exit $ac_status) && test -s "$ac_outfile"; then
  13678. # The compiler can only warn and ignore the option if not recognized
  13679. # So say no if there are warnings other than the usual output.
  13680. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  13681. $SED '/^$/d' conftest.err >conftest.er2
  13682. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  13683. lt_cv_prog_compiler_rtti_exceptions=yes
  13684. fi
  13685. fi
  13686. $rm conftest*
  13687. fi
  13688. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13689. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  13690. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13691. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  13692. else
  13693. :
  13694. fi
  13695. fi
  13696. lt_prog_compiler_wl_GCJ=
  13697. lt_prog_compiler_pic_GCJ=
  13698. lt_prog_compiler_static_GCJ=
  13699. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13700. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13701. if test "$GCC" = yes; then
  13702. lt_prog_compiler_wl_GCJ='-Wl,'
  13703. lt_prog_compiler_static_GCJ='-static'
  13704. case $host_os in
  13705. aix*)
  13706. # All AIX code is PIC.
  13707. if test "$host_cpu" = ia64; then
  13708. # AIX 5 now supports IA64 processor
  13709. lt_prog_compiler_static_GCJ='-Bstatic'
  13710. fi
  13711. ;;
  13712. amigaos*)
  13713. # FIXME: we need at least 68020 code to build shared libraries, but
  13714. # adding the `-m68020' flag to GCC prevents building anything better,
  13715. # like `-m68040'.
  13716. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  13717. ;;
  13718. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13719. # PIC is the default for these OSes.
  13720. ;;
  13721. mingw* | pw32* | os2*)
  13722. # This hack is so that the source file can tell whether it is being
  13723. # built for inclusion in a dll (and should export symbols for example).
  13724. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13725. ;;
  13726. darwin* | rhapsody*)
  13727. # PIC is the default on this platform
  13728. # Common symbols not allowed in MH_DYLIB files
  13729. lt_prog_compiler_pic_GCJ='-fno-common'
  13730. ;;
  13731. msdosdjgpp*)
  13732. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13733. # on systems that don't support them.
  13734. lt_prog_compiler_can_build_shared_GCJ=no
  13735. enable_shared=no
  13736. ;;
  13737. sysv4*MP*)
  13738. if test -d /usr/nec; then
  13739. lt_prog_compiler_pic_GCJ=-Kconform_pic
  13740. fi
  13741. ;;
  13742. hpux*)
  13743. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13744. # not for PA HP-UX.
  13745. case "$host_cpu" in
  13746. hppa*64*|ia64*)
  13747. # +Z the default
  13748. ;;
  13749. *)
  13750. lt_prog_compiler_pic_GCJ='-fPIC'
  13751. ;;
  13752. esac
  13753. ;;
  13754. *)
  13755. lt_prog_compiler_pic_GCJ='-fPIC'
  13756. ;;
  13757. esac
  13758. else
  13759. # PORTME Check for flag to pass linker flags through the system compiler.
  13760. case $host_os in
  13761. aix*)
  13762. lt_prog_compiler_wl_GCJ='-Wl,'
  13763. if test "$host_cpu" = ia64; then
  13764. # AIX 5 now supports IA64 processor
  13765. lt_prog_compiler_static_GCJ='-Bstatic'
  13766. else
  13767. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  13768. fi
  13769. ;;
  13770. darwin*)
  13771. # PIC is the default on this platform
  13772. # Common symbols not allowed in MH_DYLIB files
  13773. case $cc_basename in
  13774. xlc*)
  13775. lt_prog_compiler_pic_GCJ='-qnocommon'
  13776. lt_prog_compiler_wl_GCJ='-Wl,'
  13777. ;;
  13778. esac
  13779. ;;
  13780. mingw* | pw32* | os2*)
  13781. # This hack is so that the source file can tell whether it is being
  13782. # built for inclusion in a dll (and should export symbols for example).
  13783. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13784. ;;
  13785. hpux9* | hpux10* | hpux11*)
  13786. lt_prog_compiler_wl_GCJ='-Wl,'
  13787. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13788. # not for PA HP-UX.
  13789. case "$host_cpu" in
  13790. hppa*64*|ia64*)
  13791. # +Z the default
  13792. ;;
  13793. *)
  13794. lt_prog_compiler_pic_GCJ='+Z'
  13795. ;;
  13796. esac
  13797. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13798. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  13799. ;;
  13800. irix5* | irix6* | nonstopux*)
  13801. lt_prog_compiler_wl_GCJ='-Wl,'
  13802. # PIC (with -KPIC) is the default.
  13803. lt_prog_compiler_static_GCJ='-non_shared'
  13804. ;;
  13805. newsos6)
  13806. lt_prog_compiler_pic_GCJ='-KPIC'
  13807. lt_prog_compiler_static_GCJ='-Bstatic'
  13808. ;;
  13809. linux*)
  13810. case $cc_basename in
  13811. icc* | ecc*)
  13812. lt_prog_compiler_wl_GCJ='-Wl,'
  13813. lt_prog_compiler_pic_GCJ='-KPIC'
  13814. lt_prog_compiler_static_GCJ='-static'
  13815. ;;
  13816. pgcc* | pgf77* | pgf90*)
  13817. # Portland Group compilers (*not* the Pentium gcc compiler,
  13818. # which looks to be a dead project)
  13819. lt_prog_compiler_wl_GCJ='-Wl,'
  13820. lt_prog_compiler_pic_GCJ='-fpic'
  13821. lt_prog_compiler_static_GCJ='-static'
  13822. ;;
  13823. ccc*)
  13824. lt_prog_compiler_wl_GCJ='-Wl,'
  13825. # All Alpha code is PIC.
  13826. lt_prog_compiler_static_GCJ='-non_shared'
  13827. ;;
  13828. esac
  13829. ;;
  13830. osf3* | osf4* | osf5*)
  13831. lt_prog_compiler_wl_GCJ='-Wl,'
  13832. # All OSF/1 code is PIC.
  13833. lt_prog_compiler_static_GCJ='-non_shared'
  13834. ;;
  13835. sco3.2v5*)
  13836. lt_prog_compiler_pic_GCJ='-Kpic'
  13837. lt_prog_compiler_static_GCJ='-dn'
  13838. ;;
  13839. solaris*)
  13840. lt_prog_compiler_pic_GCJ='-KPIC'
  13841. lt_prog_compiler_static_GCJ='-Bstatic'
  13842. case $cc_basename in
  13843. f77* | f90* | f95*)
  13844. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  13845. *)
  13846. lt_prog_compiler_wl_GCJ='-Wl,';;
  13847. esac
  13848. ;;
  13849. sunos4*)
  13850. lt_prog_compiler_wl_GCJ='-Qoption ld '
  13851. lt_prog_compiler_pic_GCJ='-PIC'
  13852. lt_prog_compiler_static_GCJ='-Bstatic'
  13853. ;;
  13854. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13855. lt_prog_compiler_wl_GCJ='-Wl,'
  13856. lt_prog_compiler_pic_GCJ='-KPIC'
  13857. lt_prog_compiler_static_GCJ='-Bstatic'
  13858. ;;
  13859. sysv4*MP*)
  13860. if test -d /usr/nec ;then
  13861. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  13862. lt_prog_compiler_static_GCJ='-Bstatic'
  13863. fi
  13864. ;;
  13865. unicos*)
  13866. lt_prog_compiler_wl_GCJ='-Wl,'
  13867. lt_prog_compiler_can_build_shared_GCJ=no
  13868. ;;
  13869. uts4*)
  13870. lt_prog_compiler_pic_GCJ='-pic'
  13871. lt_prog_compiler_static_GCJ='-Bstatic'
  13872. ;;
  13873. *)
  13874. lt_prog_compiler_can_build_shared_GCJ=no
  13875. ;;
  13876. esac
  13877. fi
  13878. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  13879. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  13880. #
  13881. # Check to make sure the PIC flag actually works.
  13882. #
  13883. if test -n "$lt_prog_compiler_pic_GCJ"; then
  13884. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  13885. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  13886. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  13887. echo $ECHO_N "(cached) $ECHO_C" >&6
  13888. else
  13889. lt_prog_compiler_pic_works_GCJ=no
  13890. ac_outfile=conftest.$ac_objext
  13891. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13892. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  13893. # Insert the option either (1) after the last *FLAGS variable, or
  13894. # (2) before a word containing "conftest.", or (3) at the end.
  13895. # Note that $ac_compile itself does not contain backslashes and begins
  13896. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13897. # The option is referenced via a variable to avoid confusing sed.
  13898. lt_compile=`echo "$ac_compile" | $SED \
  13899. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13901. -e 's:$: $lt_compiler_flag:'`
  13902. (eval echo "\"\$as_me:15476: $lt_compile\"" >&5)
  13903. (eval "$lt_compile" 2>conftest.err)
  13904. ac_status=$?
  13905. cat conftest.err >&5
  13906. echo "$as_me:15480: \$? = $ac_status" >&5
  13907. if (exit $ac_status) && test -s "$ac_outfile"; then
  13908. # The compiler can only warn and ignore the option if not recognized
  13909. # So say no if there are warnings other than the usual output.
  13910. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  13911. $SED '/^$/d' conftest.err >conftest.er2
  13912. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  13913. lt_prog_compiler_pic_works_GCJ=yes
  13914. fi
  13915. fi
  13916. $rm conftest*
  13917. fi
  13918. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  13919. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  13920. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  13921. case $lt_prog_compiler_pic_GCJ in
  13922. "" | " "*) ;;
  13923. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  13924. esac
  13925. else
  13926. lt_prog_compiler_pic_GCJ=
  13927. lt_prog_compiler_can_build_shared_GCJ=no
  13928. fi
  13929. fi
  13930. case "$host_os" in
  13931. # For platforms which do not support PIC, -DPIC is meaningless:
  13932. *djgpp*)
  13933. lt_prog_compiler_pic_GCJ=
  13934. ;;
  13935. *)
  13936. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  13937. ;;
  13938. esac
  13939. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13940. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  13941. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  13942. echo $ECHO_N "(cached) $ECHO_C" >&6
  13943. else
  13944. lt_cv_prog_compiler_c_o_GCJ=no
  13945. $rm -r conftest 2>/dev/null
  13946. mkdir conftest
  13947. cd conftest
  13948. mkdir out
  13949. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13950. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13951. # Insert the option either (1) after the last *FLAGS variable, or
  13952. # (2) before a word containing "conftest.", or (3) at the end.
  13953. # Note that $ac_compile itself does not contain backslashes and begins
  13954. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13955. lt_compile=`echo "$ac_compile" | $SED \
  13956. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13957. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13958. -e 's:$: $lt_compiler_flag:'`
  13959. (eval echo "\"\$as_me:15538: $lt_compile\"" >&5)
  13960. (eval "$lt_compile" 2>out/conftest.err)
  13961. ac_status=$?
  13962. cat out/conftest.err >&5
  13963. echo "$as_me:15542: \$? = $ac_status" >&5
  13964. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13965. then
  13966. # The compiler can only warn and ignore the option if not recognized
  13967. # So say no if there are warnings
  13968. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  13969. $SED '/^$/d' out/conftest.err >out/conftest.er2
  13970. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13971. lt_cv_prog_compiler_c_o_GCJ=yes
  13972. fi
  13973. fi
  13974. chmod u+w .
  13975. $rm conftest*
  13976. # SGI C++ compiler will create directory out/ii_files/ for
  13977. # template instantiation
  13978. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13979. $rm out/* && rmdir out
  13980. cd ..
  13981. rmdir conftest
  13982. $rm conftest*
  13983. fi
  13984. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  13985. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  13986. hard_links="nottested"
  13987. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  13988. # do not overwrite the value of need_locks provided by the user
  13989. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13990. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  13991. hard_links=yes
  13992. $rm conftest*
  13993. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13994. touch conftest.a
  13995. ln conftest.a conftest.b 2>&5 || hard_links=no
  13996. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13997. echo "$as_me:$LINENO: result: $hard_links" >&5
  13998. echo "${ECHO_T}$hard_links" >&6
  13999. if test "$hard_links" = no; then
  14000. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14001. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14002. need_locks=warn
  14003. fi
  14004. else
  14005. need_locks=no
  14006. fi
  14007. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14008. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14009. runpath_var=
  14010. allow_undefined_flag_GCJ=
  14011. enable_shared_with_static_runtimes_GCJ=no
  14012. archive_cmds_GCJ=
  14013. archive_expsym_cmds_GCJ=
  14014. old_archive_From_new_cmds_GCJ=
  14015. old_archive_from_expsyms_cmds_GCJ=
  14016. export_dynamic_flag_spec_GCJ=
  14017. whole_archive_flag_spec_GCJ=
  14018. thread_safe_flag_spec_GCJ=
  14019. hardcode_libdir_flag_spec_GCJ=
  14020. hardcode_libdir_flag_spec_ld_GCJ=
  14021. hardcode_libdir_separator_GCJ=
  14022. hardcode_direct_GCJ=no
  14023. hardcode_minus_L_GCJ=no
  14024. hardcode_shlibpath_var_GCJ=unsupported
  14025. link_all_deplibs_GCJ=unknown
  14026. hardcode_automatic_GCJ=no
  14027. module_cmds_GCJ=
  14028. module_expsym_cmds_GCJ=
  14029. always_export_symbols_GCJ=no
  14030. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14031. # include_expsyms should be a list of space-separated symbols to be *always*
  14032. # included in the symbol list
  14033. include_expsyms_GCJ=
  14034. # exclude_expsyms can be an extended regexp of symbols to exclude
  14035. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14036. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14037. # as well as any symbol that contains `d'.
  14038. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14039. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14040. # platforms (ab)use it in PIC code, but their linkers get confused if
  14041. # the symbol is explicitly referenced. Since portable code cannot
  14042. # rely on this symbol name, it's probably fine to never include it in
  14043. # preloaded symbol tables.
  14044. extract_expsyms_cmds=
  14045. # Just being paranoid about ensuring that cc_basename is set.
  14046. for cc_temp in $compiler""; do
  14047. case $cc_temp in
  14048. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14049. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14050. \-*) ;;
  14051. *) break;;
  14052. esac
  14053. done
  14054. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14055. case $host_os in
  14056. cygwin* | mingw* | pw32*)
  14057. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14058. # When not using gcc, we currently assume that we are using
  14059. # Microsoft Visual C++.
  14060. if test "$GCC" != yes; then
  14061. with_gnu_ld=no
  14062. fi
  14063. ;;
  14064. openbsd*)
  14065. with_gnu_ld=no
  14066. ;;
  14067. esac
  14068. ld_shlibs_GCJ=yes
  14069. if test "$with_gnu_ld" = yes; then
  14070. # If archive_cmds runs LD, not CC, wlarc should be empty
  14071. wlarc='${wl}'
  14072. # Set some defaults for GNU ld with shared library support. These
  14073. # are reset later if shared libraries are not supported. Putting them
  14074. # here allows them to be overridden if necessary.
  14075. runpath_var=LD_RUN_PATH
  14076. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14077. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14078. # ancient GNU ld didn't support --whole-archive et. al.
  14079. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14080. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14081. else
  14082. whole_archive_flag_spec_GCJ=
  14083. fi
  14084. supports_anon_versioning=no
  14085. case `$LD -v 2>/dev/null` in
  14086. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14087. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14088. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14089. *\ 2.11.*) ;; # other 2.11 versions
  14090. *) supports_anon_versioning=yes ;;
  14091. esac
  14092. # See if GNU ld supports shared libraries.
  14093. case $host_os in
  14094. aix3* | aix4* | aix5*)
  14095. # On AIX/PPC, the GNU linker is very broken
  14096. if test "$host_cpu" != ia64; then
  14097. ld_shlibs_GCJ=no
  14098. cat <<EOF 1>&2
  14099. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14100. *** to be unable to reliably create shared libraries on AIX.
  14101. *** Therefore, libtool is disabling shared libraries support. If you
  14102. *** really care for shared libraries, you may want to modify your PATH
  14103. *** so that a non-GNU linker is found, and then restart.
  14104. EOF
  14105. fi
  14106. ;;
  14107. amigaos*)
  14108. archive_cmds_GCJ='$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)'
  14109. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14110. hardcode_minus_L_GCJ=yes
  14111. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14112. # that the semantics of dynamic libraries on AmigaOS, at least up
  14113. # to version 4, is to share data among multiple programs linked
  14114. # with the same dynamic library. Since this doesn't match the
  14115. # behavior of shared libraries on other platforms, we can't use
  14116. # them.
  14117. ld_shlibs_GCJ=no
  14118. ;;
  14119. beos*)
  14120. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14121. allow_undefined_flag_GCJ=unsupported
  14122. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14123. # support --undefined. This deserves some investigation. FIXME
  14124. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14125. else
  14126. ld_shlibs_GCJ=no
  14127. fi
  14128. ;;
  14129. cygwin* | mingw* | pw32*)
  14130. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14131. # as there is no search path for DLLs.
  14132. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14133. allow_undefined_flag_GCJ=unsupported
  14134. always_export_symbols_GCJ=no
  14135. enable_shared_with_static_runtimes_GCJ=yes
  14136. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14137. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14138. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14139. # If the export-symbols file already is a .def file (1st line
  14140. # is EXPORTS), use it as is; otherwise, prepend...
  14141. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14142. cp $export_symbols $output_objdir/$soname.def;
  14143. else
  14144. echo EXPORTS > $output_objdir/$soname.def;
  14145. cat $export_symbols >> $output_objdir/$soname.def;
  14146. fi~
  14147. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14148. else
  14149. ld_shlibs_GCJ=no
  14150. fi
  14151. ;;
  14152. linux*)
  14153. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14154. tmp_addflag=
  14155. case $cc_basename,$host_cpu in
  14156. pgcc*) # Portland Group C compiler
  14157. whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  14158. tmp_addflag=' $pic_flag'
  14159. ;;
  14160. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  14161. whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  14162. tmp_addflag=' $pic_flag -Mnomain' ;;
  14163. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14164. tmp_addflag=' -i_dynamic' ;;
  14165. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14166. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14167. ifc* | ifort*) # Intel Fortran compiler
  14168. tmp_addflag=' -nofor_main' ;;
  14169. esac
  14170. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14171. if test $supports_anon_versioning = yes; then
  14172. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14173. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14174. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14175. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14176. fi
  14177. else
  14178. ld_shlibs_GCJ=no
  14179. fi
  14180. ;;
  14181. netbsd*)
  14182. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14183. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14184. wlarc=
  14185. else
  14186. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14187. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14188. fi
  14189. ;;
  14190. solaris* | sysv5*)
  14191. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14192. ld_shlibs_GCJ=no
  14193. cat <<EOF 1>&2
  14194. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14195. *** create shared libraries on Solaris systems. Therefore, libtool
  14196. *** is disabling shared libraries support. We urge you to upgrade GNU
  14197. *** binutils to release 2.9.1 or newer. Another option is to modify
  14198. *** your PATH or compiler configuration so that the native linker is
  14199. *** used, and then restart.
  14200. EOF
  14201. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14202. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14203. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14204. else
  14205. ld_shlibs_GCJ=no
  14206. fi
  14207. ;;
  14208. sunos4*)
  14209. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14210. wlarc=
  14211. hardcode_direct_GCJ=yes
  14212. hardcode_shlibpath_var_GCJ=no
  14213. ;;
  14214. *)
  14215. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14216. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14217. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14218. else
  14219. ld_shlibs_GCJ=no
  14220. fi
  14221. ;;
  14222. esac
  14223. if test "$ld_shlibs_GCJ" = no; then
  14224. runpath_var=
  14225. hardcode_libdir_flag_spec_GCJ=
  14226. export_dynamic_flag_spec_GCJ=
  14227. whole_archive_flag_spec_GCJ=
  14228. fi
  14229. else
  14230. # PORTME fill in a description of your system's linker (not GNU ld)
  14231. case $host_os in
  14232. aix3*)
  14233. allow_undefined_flag_GCJ=unsupported
  14234. always_export_symbols_GCJ=yes
  14235. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  14236. # Note: this linker hardcodes the directories in LIBPATH if there
  14237. # are no directories specified by -L.
  14238. hardcode_minus_L_GCJ=yes
  14239. if test "$GCC" = yes && test -z "$link_static_flag"; then
  14240. # Neither direct hardcoding nor static linking is supported with a
  14241. # broken collect2.
  14242. hardcode_direct_GCJ=unsupported
  14243. fi
  14244. ;;
  14245. aix4* | aix5*)
  14246. if test "$host_cpu" = ia64; then
  14247. # On IA64, the linker does run time linking by default, so we don't
  14248. # have to do anything special.
  14249. aix_use_runtimelinking=no
  14250. exp_sym_flag='-Bexport'
  14251. no_entry_flag=""
  14252. else
  14253. # If we're using GNU nm, then we don't want the "-C" option.
  14254. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14255. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14256. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14257. else
  14258. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14259. fi
  14260. aix_use_runtimelinking=no
  14261. # Test if we are trying to use run time linking or normal
  14262. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14263. # need to do runtime linking.
  14264. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14265. for ld_flag in $LDFLAGS; do
  14266. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14267. aix_use_runtimelinking=yes
  14268. break
  14269. fi
  14270. done
  14271. esac
  14272. exp_sym_flag='-bexport'
  14273. no_entry_flag='-bnoentry'
  14274. fi
  14275. # When large executables or shared objects are built, AIX ld can
  14276. # have problems creating the table of contents. If linking a library
  14277. # or program results in "error TOC overflow" add -mminimal-toc to
  14278. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14279. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14280. archive_cmds_GCJ=''
  14281. hardcode_direct_GCJ=yes
  14282. hardcode_libdir_separator_GCJ=':'
  14283. link_all_deplibs_GCJ=yes
  14284. if test "$GCC" = yes; then
  14285. case $host_os in aix4.[012]|aix4.[012].*)
  14286. # We only want to do this on AIX 4.2 and lower, the check
  14287. # below for broken collect2 doesn't work under 4.3+
  14288. collect2name=`${CC} -print-prog-name=collect2`
  14289. if test -f "$collect2name" && \
  14290. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14291. then
  14292. # We have reworked collect2
  14293. hardcode_direct_GCJ=yes
  14294. else
  14295. # We have old collect2
  14296. hardcode_direct_GCJ=unsupported
  14297. # It fails to find uninstalled libraries when the uninstalled
  14298. # path is not listed in the libpath. Setting hardcode_minus_L
  14299. # to unsupported forces relinking
  14300. hardcode_minus_L_GCJ=yes
  14301. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14302. hardcode_libdir_separator_GCJ=
  14303. fi
  14304. esac
  14305. shared_flag='-shared'
  14306. if test "$aix_use_runtimelinking" = yes; then
  14307. shared_flag="$shared_flag "'${wl}-G'
  14308. fi
  14309. else
  14310. # not using gcc
  14311. if test "$host_cpu" = ia64; then
  14312. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14313. # chokes on -Wl,-G. The following line is correct:
  14314. shared_flag='-G'
  14315. else
  14316. if test "$aix_use_runtimelinking" = yes; then
  14317. shared_flag='${wl}-G'
  14318. else
  14319. shared_flag='${wl}-bM:SRE'
  14320. fi
  14321. fi
  14322. fi
  14323. # It seems that -bexpall does not export symbols beginning with
  14324. # underscore (_), so it is better to generate a list of symbols to export.
  14325. always_export_symbols_GCJ=yes
  14326. if test "$aix_use_runtimelinking" = yes; then
  14327. # Warning - without using the other runtime loading flags (-brtl),
  14328. # -berok will link without error, but may produce a broken library.
  14329. allow_undefined_flag_GCJ='-berok'
  14330. # Determine the default libpath from the value encoded in an empty executable.
  14331. cat >conftest.$ac_ext <<_ACEOF
  14332. /* confdefs.h. */
  14333. _ACEOF
  14334. cat confdefs.h >>conftest.$ac_ext
  14335. cat >>conftest.$ac_ext <<_ACEOF
  14336. /* end confdefs.h. */
  14337. int
  14338. main ()
  14339. {
  14340. ;
  14341. return 0;
  14342. }
  14343. _ACEOF
  14344. rm -f conftest.$ac_objext conftest$ac_exeext
  14345. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14346. (eval $ac_link) 2>conftest.er1
  14347. ac_status=$?
  14348. grep -v '^ *+' conftest.er1 >conftest.err
  14349. rm -f conftest.er1
  14350. cat conftest.err >&5
  14351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14352. (exit $ac_status); } &&
  14353. { ac_try='test -z "$ac_c_werror_flag"
  14354. || test ! -s conftest.err'
  14355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14356. (eval $ac_try) 2>&5
  14357. ac_status=$?
  14358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14359. (exit $ac_status); }; } &&
  14360. { ac_try='test -s conftest$ac_exeext'
  14361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14362. (eval $ac_try) 2>&5
  14363. ac_status=$?
  14364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14365. (exit $ac_status); }; }; then
  14366. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14367. }'`
  14368. # Check for a 64-bit object if we didn't find anything.
  14369. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14370. }'`; fi
  14371. else
  14372. echo "$as_me: failed program was:" >&5
  14373. sed 's/^/| /' conftest.$ac_ext >&5
  14374. fi
  14375. rm -f conftest.err conftest.$ac_objext \
  14376. conftest$ac_exeext conftest.$ac_ext
  14377. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14378. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14379. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14380. else
  14381. if test "$host_cpu" = ia64; then
  14382. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14383. allow_undefined_flag_GCJ="-z nodefs"
  14384. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  14385. else
  14386. # Determine the default libpath from the value encoded in an empty executable.
  14387. cat >conftest.$ac_ext <<_ACEOF
  14388. /* confdefs.h. */
  14389. _ACEOF
  14390. cat confdefs.h >>conftest.$ac_ext
  14391. cat >>conftest.$ac_ext <<_ACEOF
  14392. /* end confdefs.h. */
  14393. int
  14394. main ()
  14395. {
  14396. ;
  14397. return 0;
  14398. }
  14399. _ACEOF
  14400. rm -f conftest.$ac_objext conftest$ac_exeext
  14401. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14402. (eval $ac_link) 2>conftest.er1
  14403. ac_status=$?
  14404. grep -v '^ *+' conftest.er1 >conftest.err
  14405. rm -f conftest.er1
  14406. cat conftest.err >&5
  14407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14408. (exit $ac_status); } &&
  14409. { ac_try='test -z "$ac_c_werror_flag"
  14410. || test ! -s conftest.err'
  14411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14412. (eval $ac_try) 2>&5
  14413. ac_status=$?
  14414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14415. (exit $ac_status); }; } &&
  14416. { ac_try='test -s conftest$ac_exeext'
  14417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14418. (eval $ac_try) 2>&5
  14419. ac_status=$?
  14420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14421. (exit $ac_status); }; }; then
  14422. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14423. }'`
  14424. # Check for a 64-bit object if we didn't find anything.
  14425. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14426. }'`; fi
  14427. else
  14428. echo "$as_me: failed program was:" >&5
  14429. sed 's/^/| /' conftest.$ac_ext >&5
  14430. fi
  14431. rm -f conftest.err conftest.$ac_objext \
  14432. conftest$ac_exeext conftest.$ac_ext
  14433. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14434. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14435. # Warning - without using the other run time loading flags,
  14436. # -berok will link without error, but may produce a broken library.
  14437. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14438. allow_undefined_flag_GCJ=' ${wl}-berok'
  14439. # -bexpall does not export symbols beginning with underscore (_)
  14440. always_export_symbols_GCJ=yes
  14441. # Exported symbols can be pulled into shared objects from archives
  14442. whole_archive_flag_spec_GCJ=' '
  14443. archive_cmds_need_lc_GCJ=yes
  14444. # This is similar to how AIX traditionally builds it's shared libraries.
  14445. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  14446. fi
  14447. fi
  14448. ;;
  14449. amigaos*)
  14450. archive_cmds_GCJ='$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)'
  14451. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14452. hardcode_minus_L_GCJ=yes
  14453. # see comment about different semantics on the GNU ld section
  14454. ld_shlibs_GCJ=no
  14455. ;;
  14456. bsdi[45]*)
  14457. export_dynamic_flag_spec_GCJ=-rdynamic
  14458. ;;
  14459. cygwin* | mingw* | pw32*)
  14460. # When not using gcc, we currently assume that we are using
  14461. # Microsoft Visual C++.
  14462. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14463. # no search path for DLLs.
  14464. hardcode_libdir_flag_spec_GCJ=' '
  14465. allow_undefined_flag_GCJ=unsupported
  14466. # Tell ltmain to make .lib files, not .a files.
  14467. libext=lib
  14468. # Tell ltmain to make .dll files, not .so files.
  14469. shrext_cmds=".dll"
  14470. # FIXME: Setting linknames here is a bad hack.
  14471. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14472. # The linker will automatically build a .lib file if we build a DLL.
  14473. old_archive_From_new_cmds_GCJ='true'
  14474. # FIXME: Should let the user specify the lib program.
  14475. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14476. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14477. enable_shared_with_static_runtimes_GCJ=yes
  14478. ;;
  14479. darwin* | rhapsody*)
  14480. case "$host_os" in
  14481. rhapsody* | darwin1.[012])
  14482. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14483. ;;
  14484. *) # Darwin 1.3 on
  14485. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14486. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14487. else
  14488. case ${MACOSX_DEPLOYMENT_TARGET} in
  14489. 10.[012])
  14490. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14491. ;;
  14492. 10.*)
  14493. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14494. ;;
  14495. esac
  14496. fi
  14497. ;;
  14498. esac
  14499. archive_cmds_need_lc_GCJ=no
  14500. hardcode_direct_GCJ=no
  14501. hardcode_automatic_GCJ=yes
  14502. hardcode_shlibpath_var_GCJ=unsupported
  14503. whole_archive_flag_spec_GCJ=''
  14504. link_all_deplibs_GCJ=yes
  14505. if test "$GCC" = yes ; then
  14506. output_verbose_link_cmd='echo'
  14507. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14508. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14509. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  14510. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14511. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14512. else
  14513. case $cc_basename in
  14514. xlc*)
  14515. output_verbose_link_cmd='echo'
  14516. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14517. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14518. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  14519. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14520. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14521. ;;
  14522. *)
  14523. ld_shlibs_GCJ=no
  14524. ;;
  14525. esac
  14526. fi
  14527. ;;
  14528. dgux*)
  14529. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14530. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14531. hardcode_shlibpath_var_GCJ=no
  14532. ;;
  14533. freebsd1*)
  14534. ld_shlibs_GCJ=no
  14535. ;;
  14536. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14537. # support. Future versions do this automatically, but an explicit c++rt0.o
  14538. # does not break anything, and helps significantly (at the cost of a little
  14539. # extra space).
  14540. freebsd2.2*)
  14541. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14542. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14543. hardcode_direct_GCJ=yes
  14544. hardcode_shlibpath_var_GCJ=no
  14545. ;;
  14546. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14547. freebsd2*)
  14548. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14549. hardcode_direct_GCJ=yes
  14550. hardcode_minus_L_GCJ=yes
  14551. hardcode_shlibpath_var_GCJ=no
  14552. ;;
  14553. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14554. freebsd* | kfreebsd*-gnu | dragonfly*)
  14555. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14556. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14557. hardcode_direct_GCJ=yes
  14558. hardcode_shlibpath_var_GCJ=no
  14559. ;;
  14560. hpux9*)
  14561. if test "$GCC" = yes; then
  14562. archive_cmds_GCJ='$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'
  14563. else
  14564. archive_cmds_GCJ='$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'
  14565. fi
  14566. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14567. hardcode_libdir_separator_GCJ=:
  14568. hardcode_direct_GCJ=yes
  14569. # hardcode_minus_L: Not really in the search PATH,
  14570. # but as the default location of the library.
  14571. hardcode_minus_L_GCJ=yes
  14572. export_dynamic_flag_spec_GCJ='${wl}-E'
  14573. ;;
  14574. hpux10* | hpux11*)
  14575. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14576. case "$host_cpu" in
  14577. hppa*64*|ia64*)
  14578. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14579. ;;
  14580. *)
  14581. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14582. ;;
  14583. esac
  14584. else
  14585. case "$host_cpu" in
  14586. hppa*64*|ia64*)
  14587. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  14588. ;;
  14589. *)
  14590. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14591. ;;
  14592. esac
  14593. fi
  14594. if test "$with_gnu_ld" = no; then
  14595. case "$host_cpu" in
  14596. hppa*64*)
  14597. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14598. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  14599. hardcode_libdir_separator_GCJ=:
  14600. hardcode_direct_GCJ=no
  14601. hardcode_shlibpath_var_GCJ=no
  14602. ;;
  14603. ia64*)
  14604. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14605. hardcode_direct_GCJ=no
  14606. hardcode_shlibpath_var_GCJ=no
  14607. # hardcode_minus_L: Not really in the search PATH,
  14608. # but as the default location of the library.
  14609. hardcode_minus_L_GCJ=yes
  14610. ;;
  14611. *)
  14612. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14613. hardcode_libdir_separator_GCJ=:
  14614. hardcode_direct_GCJ=yes
  14615. export_dynamic_flag_spec_GCJ='${wl}-E'
  14616. # hardcode_minus_L: Not really in the search PATH,
  14617. # but as the default location of the library.
  14618. hardcode_minus_L_GCJ=yes
  14619. ;;
  14620. esac
  14621. fi
  14622. ;;
  14623. irix5* | irix6* | nonstopux*)
  14624. if test "$GCC" = yes; then
  14625. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14626. else
  14627. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14628. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  14629. fi
  14630. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14631. hardcode_libdir_separator_GCJ=:
  14632. link_all_deplibs_GCJ=yes
  14633. ;;
  14634. netbsd*)
  14635. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14636. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14637. else
  14638. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14639. fi
  14640. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14641. hardcode_direct_GCJ=yes
  14642. hardcode_shlibpath_var_GCJ=no
  14643. ;;
  14644. newsos6)
  14645. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14646. hardcode_direct_GCJ=yes
  14647. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14648. hardcode_libdir_separator_GCJ=:
  14649. hardcode_shlibpath_var_GCJ=no
  14650. ;;
  14651. openbsd*)
  14652. hardcode_direct_GCJ=yes
  14653. hardcode_shlibpath_var_GCJ=no
  14654. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14655. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14656. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14657. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14658. export_dynamic_flag_spec_GCJ='${wl}-E'
  14659. else
  14660. case $host_os in
  14661. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14662. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14663. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14664. ;;
  14665. *)
  14666. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14667. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14668. ;;
  14669. esac
  14670. fi
  14671. ;;
  14672. os2*)
  14673. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14674. hardcode_minus_L_GCJ=yes
  14675. allow_undefined_flag_GCJ=unsupported
  14676. archive_cmds_GCJ='$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'
  14677. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14678. ;;
  14679. osf3*)
  14680. if test "$GCC" = yes; then
  14681. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14682. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14683. else
  14684. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14685. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14686. fi
  14687. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14688. hardcode_libdir_separator_GCJ=:
  14689. ;;
  14690. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14691. if test "$GCC" = yes; then
  14692. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14693. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14694. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14695. else
  14696. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14697. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14698. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  14699. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  14700. # Both c and cxx compiler support -rpath directly
  14701. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  14702. fi
  14703. hardcode_libdir_separator_GCJ=:
  14704. ;;
  14705. sco3.2v5*)
  14706. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14707. hardcode_shlibpath_var_GCJ=no
  14708. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  14709. runpath_var=LD_RUN_PATH
  14710. hardcode_runpath_var=yes
  14711. ;;
  14712. solaris*)
  14713. no_undefined_flag_GCJ=' -z text'
  14714. if test "$GCC" = yes; then
  14715. wlarc='${wl}'
  14716. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14717. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14718. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14719. else
  14720. wlarc=''
  14721. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14722. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14723. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14724. fi
  14725. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14726. hardcode_shlibpath_var_GCJ=no
  14727. case $host_os in
  14728. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14729. *)
  14730. # The compiler driver will combine linker options so we
  14731. # cannot just pass the convience library names through
  14732. # without $wl, iff we do not link with $LD.
  14733. # Luckily, gcc supports the same syntax we need for Sun Studio.
  14734. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14735. case $wlarc in
  14736. '')
  14737. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  14738. *)
  14739. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  14740. esac ;;
  14741. esac
  14742. link_all_deplibs_GCJ=yes
  14743. ;;
  14744. sunos4*)
  14745. if test "x$host_vendor" = xsequent; then
  14746. # Use $CC to link under sequent, because it throws in some extra .o
  14747. # files that make .init and .fini sections work.
  14748. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14749. else
  14750. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14751. fi
  14752. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14753. hardcode_direct_GCJ=yes
  14754. hardcode_minus_L_GCJ=yes
  14755. hardcode_shlibpath_var_GCJ=no
  14756. ;;
  14757. sysv4)
  14758. case $host_vendor in
  14759. sni)
  14760. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14761. hardcode_direct_GCJ=yes # is this really true???
  14762. ;;
  14763. siemens)
  14764. ## LD is ld it makes a PLAMLIB
  14765. ## CC just makes a GrossModule.
  14766. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14767. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  14768. hardcode_direct_GCJ=no
  14769. ;;
  14770. motorola)
  14771. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14772. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  14773. ;;
  14774. esac
  14775. runpath_var='LD_RUN_PATH'
  14776. hardcode_shlibpath_var_GCJ=no
  14777. ;;
  14778. sysv4.3*)
  14779. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14780. hardcode_shlibpath_var_GCJ=no
  14781. export_dynamic_flag_spec_GCJ='-Bexport'
  14782. ;;
  14783. sysv4*MP*)
  14784. if test -d /usr/nec; then
  14785. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14786. hardcode_shlibpath_var_GCJ=no
  14787. runpath_var=LD_RUN_PATH
  14788. hardcode_runpath_var=yes
  14789. ld_shlibs_GCJ=yes
  14790. fi
  14791. ;;
  14792. sysv4.2uw2*)
  14793. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14794. hardcode_direct_GCJ=yes
  14795. hardcode_minus_L_GCJ=no
  14796. hardcode_shlibpath_var_GCJ=no
  14797. hardcode_runpath_var=yes
  14798. runpath_var=LD_RUN_PATH
  14799. ;;
  14800. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  14801. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  14802. if test "$GCC" = yes; then
  14803. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14804. else
  14805. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14806. fi
  14807. runpath_var='LD_RUN_PATH'
  14808. hardcode_shlibpath_var_GCJ=no
  14809. ;;
  14810. sysv5*)
  14811. no_undefined_flag_GCJ=' -z text'
  14812. # $CC -shared without GNU ld will not create a library from C++
  14813. # object files and a static libstdc++, better avoid it by now
  14814. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14815. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14816. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14817. hardcode_libdir_flag_spec_GCJ=
  14818. hardcode_shlibpath_var_GCJ=no
  14819. runpath_var='LD_RUN_PATH'
  14820. ;;
  14821. uts4*)
  14822. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14823. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14824. hardcode_shlibpath_var_GCJ=no
  14825. ;;
  14826. *)
  14827. ld_shlibs_GCJ=no
  14828. ;;
  14829. esac
  14830. fi
  14831. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  14832. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  14833. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  14834. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14835. if test "$GCC" = yes; then
  14836. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14837. fi
  14838. #
  14839. # Do we need to explicitly link libc?
  14840. #
  14841. case "x$archive_cmds_need_lc_GCJ" in
  14842. x|xyes)
  14843. # Assume -lc should be added
  14844. archive_cmds_need_lc_GCJ=yes
  14845. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14846. case $archive_cmds_GCJ in
  14847. *'~'*)
  14848. # FIXME: we may have to deal with multi-command sequences.
  14849. ;;
  14850. '$CC '*)
  14851. # Test whether the compiler implicitly links with -lc since on some
  14852. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14853. # to ld, don't add -lc before -lgcc.
  14854. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14855. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  14856. $rm conftest*
  14857. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14858. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14859. (eval $ac_compile) 2>&5
  14860. ac_status=$?
  14861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14862. (exit $ac_status); } 2>conftest.err; then
  14863. soname=conftest
  14864. lib=conftest
  14865. libobjs=conftest.$ac_objext
  14866. deplibs=
  14867. wl=$lt_prog_compiler_wl_GCJ
  14868. compiler_flags=-v
  14869. linker_flags=-v
  14870. verstring=
  14871. output_objdir=.
  14872. libname=conftest
  14873. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  14874. allow_undefined_flag_GCJ=
  14875. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14876. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14877. ac_status=$?
  14878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14879. (exit $ac_status); }
  14880. then
  14881. archive_cmds_need_lc_GCJ=no
  14882. else
  14883. archive_cmds_need_lc_GCJ=yes
  14884. fi
  14885. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  14886. else
  14887. cat conftest.err 1>&5
  14888. fi
  14889. $rm conftest*
  14890. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  14891. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  14892. ;;
  14893. esac
  14894. fi
  14895. ;;
  14896. esac
  14897. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14898. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  14899. library_names_spec=
  14900. libname_spec='lib$name'
  14901. soname_spec=
  14902. shrext_cmds=".so"
  14903. postinstall_cmds=
  14904. postuninstall_cmds=
  14905. finish_cmds=
  14906. finish_eval=
  14907. shlibpath_var=
  14908. shlibpath_overrides_runpath=unknown
  14909. version_type=none
  14910. dynamic_linker="$host_os ld.so"
  14911. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14912. if test "$GCC" = yes; then
  14913. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14914. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14915. # if the path contains ";" then we assume it to be the separator
  14916. # otherwise default to the standard path separator (i.e. ":") - it is
  14917. # assumed that no part of a normal pathname contains ";" but that should
  14918. # okay in the real world where ";" in dirpaths is itself problematic.
  14919. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14920. else
  14921. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14922. fi
  14923. else
  14924. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14925. fi
  14926. need_lib_prefix=unknown
  14927. hardcode_into_libs=no
  14928. # when you set need_version to no, make sure it does not cause -set_version
  14929. # flags to be left without arguments
  14930. need_version=unknown
  14931. case $host_os in
  14932. aix3*)
  14933. version_type=linux
  14934. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14935. shlibpath_var=LIBPATH
  14936. # AIX 3 has no versioning support, so we append a major version to the name.
  14937. soname_spec='${libname}${release}${shared_ext}$major'
  14938. ;;
  14939. aix4* | aix5*)
  14940. version_type=linux
  14941. need_lib_prefix=no
  14942. need_version=no
  14943. hardcode_into_libs=yes
  14944. if test "$host_cpu" = ia64; then
  14945. # AIX 5 supports IA64
  14946. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14947. shlibpath_var=LD_LIBRARY_PATH
  14948. else
  14949. # With GCC up to 2.95.x, collect2 would create an import file
  14950. # for dependence libraries. The import file would start with
  14951. # the line `#! .'. This would cause the generated library to
  14952. # depend on `.', always an invalid library. This was fixed in
  14953. # development snapshots of GCC prior to 3.0.
  14954. case $host_os in
  14955. aix4 | aix4.[01] | aix4.[01].*)
  14956. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14957. echo ' yes '
  14958. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14959. :
  14960. else
  14961. can_build_shared=no
  14962. fi
  14963. ;;
  14964. esac
  14965. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14966. # soname into executable. Probably we can add versioning support to
  14967. # collect2, so additional links can be useful in future.
  14968. if test "$aix_use_runtimelinking" = yes; then
  14969. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14970. # instead of lib<name>.a to let people know that these are not
  14971. # typical AIX shared libraries.
  14972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14973. else
  14974. # We preserve .a as extension for shared libraries through AIX4.2
  14975. # and later when we are not doing run time linking.
  14976. library_names_spec='${libname}${release}.a $libname.a'
  14977. soname_spec='${libname}${release}${shared_ext}$major'
  14978. fi
  14979. shlibpath_var=LIBPATH
  14980. fi
  14981. ;;
  14982. amigaos*)
  14983. library_names_spec='$libname.ixlibrary $libname.a'
  14984. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14985. 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'
  14986. ;;
  14987. beos*)
  14988. library_names_spec='${libname}${shared_ext}'
  14989. dynamic_linker="$host_os ld.so"
  14990. shlibpath_var=LIBRARY_PATH
  14991. ;;
  14992. bsdi[45]*)
  14993. version_type=linux
  14994. need_version=no
  14995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14996. soname_spec='${libname}${release}${shared_ext}$major'
  14997. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14998. shlibpath_var=LD_LIBRARY_PATH
  14999. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15000. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15001. # the default ld.so.conf also contains /usr/contrib/lib and
  15002. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15003. # libtool to hard-code these into programs
  15004. ;;
  15005. cygwin* | mingw* | pw32*)
  15006. version_type=windows
  15007. shrext_cmds=".dll"
  15008. need_version=no
  15009. need_lib_prefix=no
  15010. case $GCC,$host_os in
  15011. yes,cygwin* | yes,mingw* | yes,pw32*)
  15012. library_names_spec='$libname.dll.a'
  15013. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15014. postinstall_cmds='base_file=`basename \${file}`~
  15015. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15016. dldir=$destdir/`dirname \$dlpath`~
  15017. test -d \$dldir || mkdir -p \$dldir~
  15018. $install_prog $dir/$dlname \$dldir/$dlname'
  15019. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15020. dlpath=$dir/\$dldll~
  15021. $rm \$dlpath'
  15022. shlibpath_overrides_runpath=yes
  15023. case $host_os in
  15024. cygwin*)
  15025. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15026. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15027. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15028. ;;
  15029. mingw*)
  15030. # MinGW DLLs use traditional 'lib' prefix
  15031. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15032. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15033. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15034. # It is most probably a Windows format PATH printed by
  15035. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15036. # path with ; separators, and with drive letters. We can handle the
  15037. # drive letters (cygwin fileutils understands them), so leave them,
  15038. # especially as we might pass files found there to a mingw objdump,
  15039. # which wouldn't understand a cygwinified path. Ahh.
  15040. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15041. else
  15042. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15043. fi
  15044. ;;
  15045. pw32*)
  15046. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15047. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15048. ;;
  15049. esac
  15050. ;;
  15051. *)
  15052. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15053. ;;
  15054. esac
  15055. dynamic_linker='Win32 ld.exe'
  15056. # FIXME: first we should search . and the directory the executable is in
  15057. shlibpath_var=PATH
  15058. ;;
  15059. darwin* | rhapsody*)
  15060. dynamic_linker="$host_os dyld"
  15061. version_type=darwin
  15062. need_lib_prefix=no
  15063. need_version=no
  15064. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15065. soname_spec='${libname}${release}${major}$shared_ext'
  15066. shlibpath_overrides_runpath=yes
  15067. shlibpath_var=DYLD_LIBRARY_PATH
  15068. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  15069. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15070. if test "$GCC" = yes; then
  15071. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  15072. else
  15073. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15074. fi
  15075. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15076. ;;
  15077. dgux*)
  15078. version_type=linux
  15079. need_lib_prefix=no
  15080. need_version=no
  15081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15082. soname_spec='${libname}${release}${shared_ext}$major'
  15083. shlibpath_var=LD_LIBRARY_PATH
  15084. ;;
  15085. freebsd1*)
  15086. dynamic_linker=no
  15087. ;;
  15088. kfreebsd*-gnu)
  15089. version_type=linux
  15090. need_lib_prefix=no
  15091. need_version=no
  15092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15093. soname_spec='${libname}${release}${shared_ext}$major'
  15094. shlibpath_var=LD_LIBRARY_PATH
  15095. shlibpath_overrides_runpath=no
  15096. hardcode_into_libs=yes
  15097. dynamic_linker='GNU ld.so'
  15098. ;;
  15099. freebsd* | dragonfly*)
  15100. # DragonFly does not have aout. When/if they implement a new
  15101. # versioning mechanism, adjust this.
  15102. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  15103. version_type=freebsd-$objformat
  15104. case $version_type in
  15105. freebsd-elf*)
  15106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15107. need_version=no
  15108. need_lib_prefix=no
  15109. ;;
  15110. freebsd-*)
  15111. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15112. need_version=yes
  15113. ;;
  15114. esac
  15115. shlibpath_var=LD_LIBRARY_PATH
  15116. case $host_os in
  15117. freebsd2*)
  15118. shlibpath_overrides_runpath=yes
  15119. ;;
  15120. freebsd3.[01]* | freebsdelf3.[01]*)
  15121. shlibpath_overrides_runpath=yes
  15122. hardcode_into_libs=yes
  15123. ;;
  15124. *) # from 3.2 on
  15125. shlibpath_overrides_runpath=no
  15126. hardcode_into_libs=yes
  15127. ;;
  15128. esac
  15129. ;;
  15130. gnu*)
  15131. version_type=linux
  15132. need_lib_prefix=no
  15133. need_version=no
  15134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15135. soname_spec='${libname}${release}${shared_ext}$major'
  15136. shlibpath_var=LD_LIBRARY_PATH
  15137. hardcode_into_libs=yes
  15138. ;;
  15139. hpux9* | hpux10* | hpux11*)
  15140. # Give a soname corresponding to the major version so that dld.sl refuses to
  15141. # link against other versions.
  15142. version_type=sunos
  15143. need_lib_prefix=no
  15144. need_version=no
  15145. case "$host_cpu" in
  15146. ia64*)
  15147. shrext_cmds='.so'
  15148. hardcode_into_libs=yes
  15149. dynamic_linker="$host_os dld.so"
  15150. shlibpath_var=LD_LIBRARY_PATH
  15151. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15153. soname_spec='${libname}${release}${shared_ext}$major'
  15154. if test "X$HPUX_IA64_MODE" = X32; then
  15155. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15156. else
  15157. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15158. fi
  15159. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15160. ;;
  15161. hppa*64*)
  15162. shrext_cmds='.sl'
  15163. hardcode_into_libs=yes
  15164. dynamic_linker="$host_os dld.sl"
  15165. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15166. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15168. soname_spec='${libname}${release}${shared_ext}$major'
  15169. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15170. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15171. ;;
  15172. *)
  15173. shrext_cmds='.sl'
  15174. dynamic_linker="$host_os dld.sl"
  15175. shlibpath_var=SHLIB_PATH
  15176. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15178. soname_spec='${libname}${release}${shared_ext}$major'
  15179. ;;
  15180. esac
  15181. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15182. postinstall_cmds='chmod 555 $lib'
  15183. ;;
  15184. irix5* | irix6* | nonstopux*)
  15185. case $host_os in
  15186. nonstopux*) version_type=nonstopux ;;
  15187. *)
  15188. if test "$lt_cv_prog_gnu_ld" = yes; then
  15189. version_type=linux
  15190. else
  15191. version_type=irix
  15192. fi ;;
  15193. esac
  15194. need_lib_prefix=no
  15195. need_version=no
  15196. soname_spec='${libname}${release}${shared_ext}$major'
  15197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15198. case $host_os in
  15199. irix5* | nonstopux*)
  15200. libsuff= shlibsuff=
  15201. ;;
  15202. *)
  15203. case $LD in # libtool.m4 will add one of these switches to LD
  15204. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15205. libsuff= shlibsuff= libmagic=32-bit;;
  15206. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15207. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15208. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15209. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15210. *) libsuff= shlibsuff= libmagic=never-match;;
  15211. esac
  15212. ;;
  15213. esac
  15214. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15215. shlibpath_overrides_runpath=no
  15216. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15217. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15218. hardcode_into_libs=yes
  15219. ;;
  15220. # No shared lib support for Linux oldld, aout, or coff.
  15221. linux*oldld* | linux*aout* | linux*coff*)
  15222. dynamic_linker=no
  15223. ;;
  15224. # This must be Linux ELF.
  15225. linux*)
  15226. version_type=linux
  15227. need_lib_prefix=no
  15228. need_version=no
  15229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15230. soname_spec='${libname}${release}${shared_ext}$major'
  15231. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15232. shlibpath_var=LD_LIBRARY_PATH
  15233. shlibpath_overrides_runpath=no
  15234. # This implies no fast_install, which is unacceptable.
  15235. # Some rework will be needed to allow for fast_install
  15236. # before this can be enabled.
  15237. hardcode_into_libs=yes
  15238. # Append ld.so.conf contents to the search path
  15239. if test -f /etc/ld.so.conf; then
  15240. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15241. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15242. fi
  15243. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15244. # powerpc, because MkLinux only supported shared libraries with the
  15245. # GNU dynamic linker. Since this was broken with cross compilers,
  15246. # most powerpc-linux boxes support dynamic linking these days and
  15247. # people can always --disable-shared, the test was removed, and we
  15248. # assume the GNU/Linux dynamic linker is in use.
  15249. dynamic_linker='GNU/Linux ld.so'
  15250. ;;
  15251. knetbsd*-gnu)
  15252. version_type=linux
  15253. need_lib_prefix=no
  15254. need_version=no
  15255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15256. soname_spec='${libname}${release}${shared_ext}$major'
  15257. shlibpath_var=LD_LIBRARY_PATH
  15258. shlibpath_overrides_runpath=no
  15259. hardcode_into_libs=yes
  15260. dynamic_linker='GNU ld.so'
  15261. ;;
  15262. netbsd*)
  15263. version_type=sunos
  15264. need_lib_prefix=no
  15265. need_version=no
  15266. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15268. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15269. dynamic_linker='NetBSD (a.out) ld.so'
  15270. else
  15271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15272. soname_spec='${libname}${release}${shared_ext}$major'
  15273. dynamic_linker='NetBSD ld.elf_so'
  15274. fi
  15275. shlibpath_var=LD_LIBRARY_PATH
  15276. shlibpath_overrides_runpath=yes
  15277. hardcode_into_libs=yes
  15278. ;;
  15279. newsos6)
  15280. version_type=linux
  15281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15282. shlibpath_var=LD_LIBRARY_PATH
  15283. shlibpath_overrides_runpath=yes
  15284. ;;
  15285. nto-qnx*)
  15286. version_type=linux
  15287. need_lib_prefix=no
  15288. need_version=no
  15289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15290. soname_spec='${libname}${release}${shared_ext}$major'
  15291. shlibpath_var=LD_LIBRARY_PATH
  15292. shlibpath_overrides_runpath=yes
  15293. ;;
  15294. openbsd*)
  15295. version_type=sunos
  15296. need_lib_prefix=no
  15297. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15298. case $host_os in
  15299. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15300. *) need_version=no ;;
  15301. esac
  15302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15303. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15304. shlibpath_var=LD_LIBRARY_PATH
  15305. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15306. case $host_os in
  15307. openbsd2.[89] | openbsd2.[89].*)
  15308. shlibpath_overrides_runpath=no
  15309. ;;
  15310. *)
  15311. shlibpath_overrides_runpath=yes
  15312. ;;
  15313. esac
  15314. else
  15315. shlibpath_overrides_runpath=yes
  15316. fi
  15317. ;;
  15318. os2*)
  15319. libname_spec='$name'
  15320. shrext_cmds=".dll"
  15321. need_lib_prefix=no
  15322. library_names_spec='$libname${shared_ext} $libname.a'
  15323. dynamic_linker='OS/2 ld.exe'
  15324. shlibpath_var=LIBPATH
  15325. ;;
  15326. osf3* | osf4* | osf5*)
  15327. version_type=osf
  15328. need_lib_prefix=no
  15329. need_version=no
  15330. soname_spec='${libname}${release}${shared_ext}$major'
  15331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15332. shlibpath_var=LD_LIBRARY_PATH
  15333. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15334. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15335. ;;
  15336. sco3.2v5*)
  15337. version_type=osf
  15338. soname_spec='${libname}${release}${shared_ext}$major'
  15339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15340. shlibpath_var=LD_LIBRARY_PATH
  15341. ;;
  15342. solaris*)
  15343. version_type=linux
  15344. need_lib_prefix=no
  15345. need_version=no
  15346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15347. soname_spec='${libname}${release}${shared_ext}$major'
  15348. shlibpath_var=LD_LIBRARY_PATH
  15349. shlibpath_overrides_runpath=yes
  15350. hardcode_into_libs=yes
  15351. # ldd complains unless libraries are executable
  15352. postinstall_cmds='chmod +x $lib'
  15353. ;;
  15354. sunos4*)
  15355. version_type=sunos
  15356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15357. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15358. shlibpath_var=LD_LIBRARY_PATH
  15359. shlibpath_overrides_runpath=yes
  15360. if test "$with_gnu_ld" = yes; then
  15361. need_lib_prefix=no
  15362. fi
  15363. need_version=yes
  15364. ;;
  15365. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15366. version_type=linux
  15367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15368. soname_spec='${libname}${release}${shared_ext}$major'
  15369. shlibpath_var=LD_LIBRARY_PATH
  15370. case $host_vendor in
  15371. sni)
  15372. shlibpath_overrides_runpath=no
  15373. need_lib_prefix=no
  15374. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15375. runpath_var=LD_RUN_PATH
  15376. ;;
  15377. siemens)
  15378. need_lib_prefix=no
  15379. ;;
  15380. motorola)
  15381. need_lib_prefix=no
  15382. need_version=no
  15383. shlibpath_overrides_runpath=no
  15384. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15385. ;;
  15386. esac
  15387. ;;
  15388. sysv4*MP*)
  15389. if test -d /usr/nec ;then
  15390. version_type=linux
  15391. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15392. soname_spec='$libname${shared_ext}.$major'
  15393. shlibpath_var=LD_LIBRARY_PATH
  15394. fi
  15395. ;;
  15396. uts4*)
  15397. version_type=linux
  15398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15399. soname_spec='${libname}${release}${shared_ext}$major'
  15400. shlibpath_var=LD_LIBRARY_PATH
  15401. ;;
  15402. *)
  15403. dynamic_linker=no
  15404. ;;
  15405. esac
  15406. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15407. echo "${ECHO_T}$dynamic_linker" >&6
  15408. test "$dynamic_linker" = no && can_build_shared=no
  15409. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15410. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15411. hardcode_action_GCJ=
  15412. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15413. test -n "$runpath_var_GCJ" || \
  15414. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15415. # We can hardcode non-existant directories.
  15416. if test "$hardcode_direct_GCJ" != no &&
  15417. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15418. # have to relink, otherwise we might link with an installed library
  15419. # when we should be linking with a yet-to-be-installed one
  15420. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15421. test "$hardcode_minus_L_GCJ" != no; then
  15422. # Linking always hardcodes the temporary library directory.
  15423. hardcode_action_GCJ=relink
  15424. else
  15425. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15426. hardcode_action_GCJ=immediate
  15427. fi
  15428. else
  15429. # We cannot hardcode anything, or else we can only hardcode existing
  15430. # directories.
  15431. hardcode_action_GCJ=unsupported
  15432. fi
  15433. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15434. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15435. if test "$hardcode_action_GCJ" = relink; then
  15436. # Fast installation is not supported
  15437. enable_fast_install=no
  15438. elif test "$shlibpath_overrides_runpath" = yes ||
  15439. test "$enable_shared" = no; then
  15440. # Fast installation is not necessary
  15441. enable_fast_install=needless
  15442. fi
  15443. striplib=
  15444. old_striplib=
  15445. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  15446. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  15447. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15448. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15449. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15450. echo "$as_me:$LINENO: result: yes" >&5
  15451. echo "${ECHO_T}yes" >&6
  15452. else
  15453. # FIXME - insert some real tests, host_os isn't really good enough
  15454. case $host_os in
  15455. darwin*)
  15456. if test -n "$STRIP" ; then
  15457. striplib="$STRIP -x"
  15458. echo "$as_me:$LINENO: result: yes" >&5
  15459. echo "${ECHO_T}yes" >&6
  15460. else
  15461. echo "$as_me:$LINENO: result: no" >&5
  15462. echo "${ECHO_T}no" >&6
  15463. fi
  15464. ;;
  15465. *)
  15466. echo "$as_me:$LINENO: result: no" >&5
  15467. echo "${ECHO_T}no" >&6
  15468. ;;
  15469. esac
  15470. fi
  15471. if test "x$enable_dlopen" != xyes; then
  15472. enable_dlopen=unknown
  15473. enable_dlopen_self=unknown
  15474. enable_dlopen_self_static=unknown
  15475. else
  15476. lt_cv_dlopen=no
  15477. lt_cv_dlopen_libs=
  15478. case $host_os in
  15479. beos*)
  15480. lt_cv_dlopen="load_add_on"
  15481. lt_cv_dlopen_libs=
  15482. lt_cv_dlopen_self=yes
  15483. ;;
  15484. mingw* | pw32*)
  15485. lt_cv_dlopen="LoadLibrary"
  15486. lt_cv_dlopen_libs=
  15487. ;;
  15488. cygwin*)
  15489. lt_cv_dlopen="dlopen"
  15490. lt_cv_dlopen_libs=
  15491. ;;
  15492. darwin*)
  15493. # if libdl is installed we need to link against it
  15494. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15495. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  15496. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15497. echo $ECHO_N "(cached) $ECHO_C" >&6
  15498. else
  15499. ac_check_lib_save_LIBS=$LIBS
  15500. LIBS="-ldl $LIBS"
  15501. cat >conftest.$ac_ext <<_ACEOF
  15502. /* confdefs.h. */
  15503. _ACEOF
  15504. cat confdefs.h >>conftest.$ac_ext
  15505. cat >>conftest.$ac_ext <<_ACEOF
  15506. /* end confdefs.h. */
  15507. /* Override any gcc2 internal prototype to avoid an error. */
  15508. #ifdef __cplusplus
  15509. extern "C"
  15510. #endif
  15511. /* We use char because int might match the return type of a gcc2
  15512. builtin and then its argument prototype would still apply. */
  15513. char dlopen ();
  15514. int
  15515. main ()
  15516. {
  15517. dlopen ();
  15518. ;
  15519. return 0;
  15520. }
  15521. _ACEOF
  15522. rm -f conftest.$ac_objext conftest$ac_exeext
  15523. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15524. (eval $ac_link) 2>conftest.er1
  15525. ac_status=$?
  15526. grep -v '^ *+' conftest.er1 >conftest.err
  15527. rm -f conftest.er1
  15528. cat conftest.err >&5
  15529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15530. (exit $ac_status); } &&
  15531. { ac_try='test -z "$ac_c_werror_flag"
  15532. || test ! -s conftest.err'
  15533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15534. (eval $ac_try) 2>&5
  15535. ac_status=$?
  15536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15537. (exit $ac_status); }; } &&
  15538. { ac_try='test -s conftest$ac_exeext'
  15539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15540. (eval $ac_try) 2>&5
  15541. ac_status=$?
  15542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15543. (exit $ac_status); }; }; then
  15544. ac_cv_lib_dl_dlopen=yes
  15545. else
  15546. echo "$as_me: failed program was:" >&5
  15547. sed 's/^/| /' conftest.$ac_ext >&5
  15548. ac_cv_lib_dl_dlopen=no
  15549. fi
  15550. rm -f conftest.err conftest.$ac_objext \
  15551. conftest$ac_exeext conftest.$ac_ext
  15552. LIBS=$ac_check_lib_save_LIBS
  15553. fi
  15554. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15555. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  15556. if test $ac_cv_lib_dl_dlopen = yes; then
  15557. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15558. else
  15559. lt_cv_dlopen="dyld"
  15560. lt_cv_dlopen_libs=
  15561. lt_cv_dlopen_self=yes
  15562. fi
  15563. ;;
  15564. *)
  15565. echo "$as_me:$LINENO: checking for shl_load" >&5
  15566. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  15567. if test "${ac_cv_func_shl_load+set}" = set; then
  15568. echo $ECHO_N "(cached) $ECHO_C" >&6
  15569. else
  15570. cat >conftest.$ac_ext <<_ACEOF
  15571. /* confdefs.h. */
  15572. _ACEOF
  15573. cat confdefs.h >>conftest.$ac_ext
  15574. cat >>conftest.$ac_ext <<_ACEOF
  15575. /* end confdefs.h. */
  15576. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  15577. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15578. #define shl_load innocuous_shl_load
  15579. /* System header to define __stub macros and hopefully few prototypes,
  15580. which can conflict with char shl_load (); below.
  15581. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15582. <limits.h> exists even on freestanding compilers. */
  15583. #ifdef __STDC__
  15584. # include <limits.h>
  15585. #else
  15586. # include <assert.h>
  15587. #endif
  15588. #undef shl_load
  15589. /* Override any gcc2 internal prototype to avoid an error. */
  15590. #ifdef __cplusplus
  15591. extern "C"
  15592. {
  15593. #endif
  15594. /* We use char because int might match the return type of a gcc2
  15595. builtin and then its argument prototype would still apply. */
  15596. char shl_load ();
  15597. /* The GNU C library defines this for functions which it implements
  15598. to always fail with ENOSYS. Some functions are actually named
  15599. something starting with __ and the normal name is an alias. */
  15600. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  15601. choke me
  15602. #else
  15603. char (*f) () = shl_load;
  15604. #endif
  15605. #ifdef __cplusplus
  15606. }
  15607. #endif
  15608. int
  15609. main ()
  15610. {
  15611. return f != shl_load;
  15612. ;
  15613. return 0;
  15614. }
  15615. _ACEOF
  15616. rm -f conftest.$ac_objext conftest$ac_exeext
  15617. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15618. (eval $ac_link) 2>conftest.er1
  15619. ac_status=$?
  15620. grep -v '^ *+' conftest.er1 >conftest.err
  15621. rm -f conftest.er1
  15622. cat conftest.err >&5
  15623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15624. (exit $ac_status); } &&
  15625. { ac_try='test -z "$ac_c_werror_flag"
  15626. || test ! -s conftest.err'
  15627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15628. (eval $ac_try) 2>&5
  15629. ac_status=$?
  15630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15631. (exit $ac_status); }; } &&
  15632. { ac_try='test -s conftest$ac_exeext'
  15633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15634. (eval $ac_try) 2>&5
  15635. ac_status=$?
  15636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15637. (exit $ac_status); }; }; then
  15638. ac_cv_func_shl_load=yes
  15639. else
  15640. echo "$as_me: failed program was:" >&5
  15641. sed 's/^/| /' conftest.$ac_ext >&5
  15642. ac_cv_func_shl_load=no
  15643. fi
  15644. rm -f conftest.err conftest.$ac_objext \
  15645. conftest$ac_exeext conftest.$ac_ext
  15646. fi
  15647. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  15648. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  15649. if test $ac_cv_func_shl_load = yes; then
  15650. lt_cv_dlopen="shl_load"
  15651. else
  15652. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  15653. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  15654. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  15655. echo $ECHO_N "(cached) $ECHO_C" >&6
  15656. else
  15657. ac_check_lib_save_LIBS=$LIBS
  15658. LIBS="-ldld $LIBS"
  15659. cat >conftest.$ac_ext <<_ACEOF
  15660. /* confdefs.h. */
  15661. _ACEOF
  15662. cat confdefs.h >>conftest.$ac_ext
  15663. cat >>conftest.$ac_ext <<_ACEOF
  15664. /* end confdefs.h. */
  15665. /* Override any gcc2 internal prototype to avoid an error. */
  15666. #ifdef __cplusplus
  15667. extern "C"
  15668. #endif
  15669. /* We use char because int might match the return type of a gcc2
  15670. builtin and then its argument prototype would still apply. */
  15671. char shl_load ();
  15672. int
  15673. main ()
  15674. {
  15675. shl_load ();
  15676. ;
  15677. return 0;
  15678. }
  15679. _ACEOF
  15680. rm -f conftest.$ac_objext conftest$ac_exeext
  15681. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15682. (eval $ac_link) 2>conftest.er1
  15683. ac_status=$?
  15684. grep -v '^ *+' conftest.er1 >conftest.err
  15685. rm -f conftest.er1
  15686. cat conftest.err >&5
  15687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15688. (exit $ac_status); } &&
  15689. { ac_try='test -z "$ac_c_werror_flag"
  15690. || test ! -s conftest.err'
  15691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15692. (eval $ac_try) 2>&5
  15693. ac_status=$?
  15694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15695. (exit $ac_status); }; } &&
  15696. { ac_try='test -s conftest$ac_exeext'
  15697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15698. (eval $ac_try) 2>&5
  15699. ac_status=$?
  15700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15701. (exit $ac_status); }; }; then
  15702. ac_cv_lib_dld_shl_load=yes
  15703. else
  15704. echo "$as_me: failed program was:" >&5
  15705. sed 's/^/| /' conftest.$ac_ext >&5
  15706. ac_cv_lib_dld_shl_load=no
  15707. fi
  15708. rm -f conftest.err conftest.$ac_objext \
  15709. conftest$ac_exeext conftest.$ac_ext
  15710. LIBS=$ac_check_lib_save_LIBS
  15711. fi
  15712. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  15713. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  15714. if test $ac_cv_lib_dld_shl_load = yes; then
  15715. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  15716. else
  15717. echo "$as_me:$LINENO: checking for dlopen" >&5
  15718. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  15719. if test "${ac_cv_func_dlopen+set}" = set; then
  15720. echo $ECHO_N "(cached) $ECHO_C" >&6
  15721. else
  15722. cat >conftest.$ac_ext <<_ACEOF
  15723. /* confdefs.h. */
  15724. _ACEOF
  15725. cat confdefs.h >>conftest.$ac_ext
  15726. cat >>conftest.$ac_ext <<_ACEOF
  15727. /* end confdefs.h. */
  15728. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  15729. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15730. #define dlopen innocuous_dlopen
  15731. /* System header to define __stub macros and hopefully few prototypes,
  15732. which can conflict with char dlopen (); below.
  15733. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15734. <limits.h> exists even on freestanding compilers. */
  15735. #ifdef __STDC__
  15736. # include <limits.h>
  15737. #else
  15738. # include <assert.h>
  15739. #endif
  15740. #undef dlopen
  15741. /* Override any gcc2 internal prototype to avoid an error. */
  15742. #ifdef __cplusplus
  15743. extern "C"
  15744. {
  15745. #endif
  15746. /* We use char because int might match the return type of a gcc2
  15747. builtin and then its argument prototype would still apply. */
  15748. char dlopen ();
  15749. /* The GNU C library defines this for functions which it implements
  15750. to always fail with ENOSYS. Some functions are actually named
  15751. something starting with __ and the normal name is an alias. */
  15752. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  15753. choke me
  15754. #else
  15755. char (*f) () = dlopen;
  15756. #endif
  15757. #ifdef __cplusplus
  15758. }
  15759. #endif
  15760. int
  15761. main ()
  15762. {
  15763. return f != dlopen;
  15764. ;
  15765. return 0;
  15766. }
  15767. _ACEOF
  15768. rm -f conftest.$ac_objext conftest$ac_exeext
  15769. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15770. (eval $ac_link) 2>conftest.er1
  15771. ac_status=$?
  15772. grep -v '^ *+' conftest.er1 >conftest.err
  15773. rm -f conftest.er1
  15774. cat conftest.err >&5
  15775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15776. (exit $ac_status); } &&
  15777. { ac_try='test -z "$ac_c_werror_flag"
  15778. || test ! -s conftest.err'
  15779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15780. (eval $ac_try) 2>&5
  15781. ac_status=$?
  15782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15783. (exit $ac_status); }; } &&
  15784. { ac_try='test -s conftest$ac_exeext'
  15785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15786. (eval $ac_try) 2>&5
  15787. ac_status=$?
  15788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15789. (exit $ac_status); }; }; then
  15790. ac_cv_func_dlopen=yes
  15791. else
  15792. echo "$as_me: failed program was:" >&5
  15793. sed 's/^/| /' conftest.$ac_ext >&5
  15794. ac_cv_func_dlopen=no
  15795. fi
  15796. rm -f conftest.err conftest.$ac_objext \
  15797. conftest$ac_exeext conftest.$ac_ext
  15798. fi
  15799. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  15800. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  15801. if test $ac_cv_func_dlopen = yes; then
  15802. lt_cv_dlopen="dlopen"
  15803. else
  15804. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15805. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  15806. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15807. echo $ECHO_N "(cached) $ECHO_C" >&6
  15808. else
  15809. ac_check_lib_save_LIBS=$LIBS
  15810. LIBS="-ldl $LIBS"
  15811. cat >conftest.$ac_ext <<_ACEOF
  15812. /* confdefs.h. */
  15813. _ACEOF
  15814. cat confdefs.h >>conftest.$ac_ext
  15815. cat >>conftest.$ac_ext <<_ACEOF
  15816. /* end confdefs.h. */
  15817. /* Override any gcc2 internal prototype to avoid an error. */
  15818. #ifdef __cplusplus
  15819. extern "C"
  15820. #endif
  15821. /* We use char because int might match the return type of a gcc2
  15822. builtin and then its argument prototype would still apply. */
  15823. char dlopen ();
  15824. int
  15825. main ()
  15826. {
  15827. dlopen ();
  15828. ;
  15829. return 0;
  15830. }
  15831. _ACEOF
  15832. rm -f conftest.$ac_objext conftest$ac_exeext
  15833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15834. (eval $ac_link) 2>conftest.er1
  15835. ac_status=$?
  15836. grep -v '^ *+' conftest.er1 >conftest.err
  15837. rm -f conftest.er1
  15838. cat conftest.err >&5
  15839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15840. (exit $ac_status); } &&
  15841. { ac_try='test -z "$ac_c_werror_flag"
  15842. || test ! -s conftest.err'
  15843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15844. (eval $ac_try) 2>&5
  15845. ac_status=$?
  15846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15847. (exit $ac_status); }; } &&
  15848. { ac_try='test -s conftest$ac_exeext'
  15849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15850. (eval $ac_try) 2>&5
  15851. ac_status=$?
  15852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15853. (exit $ac_status); }; }; then
  15854. ac_cv_lib_dl_dlopen=yes
  15855. else
  15856. echo "$as_me: failed program was:" >&5
  15857. sed 's/^/| /' conftest.$ac_ext >&5
  15858. ac_cv_lib_dl_dlopen=no
  15859. fi
  15860. rm -f conftest.err conftest.$ac_objext \
  15861. conftest$ac_exeext conftest.$ac_ext
  15862. LIBS=$ac_check_lib_save_LIBS
  15863. fi
  15864. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15865. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  15866. if test $ac_cv_lib_dl_dlopen = yes; then
  15867. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15868. else
  15869. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  15870. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  15871. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  15872. echo $ECHO_N "(cached) $ECHO_C" >&6
  15873. else
  15874. ac_check_lib_save_LIBS=$LIBS
  15875. LIBS="-lsvld $LIBS"
  15876. cat >conftest.$ac_ext <<_ACEOF
  15877. /* confdefs.h. */
  15878. _ACEOF
  15879. cat confdefs.h >>conftest.$ac_ext
  15880. cat >>conftest.$ac_ext <<_ACEOF
  15881. /* end confdefs.h. */
  15882. /* Override any gcc2 internal prototype to avoid an error. */
  15883. #ifdef __cplusplus
  15884. extern "C"
  15885. #endif
  15886. /* We use char because int might match the return type of a gcc2
  15887. builtin and then its argument prototype would still apply. */
  15888. char dlopen ();
  15889. int
  15890. main ()
  15891. {
  15892. dlopen ();
  15893. ;
  15894. return 0;
  15895. }
  15896. _ACEOF
  15897. rm -f conftest.$ac_objext conftest$ac_exeext
  15898. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15899. (eval $ac_link) 2>conftest.er1
  15900. ac_status=$?
  15901. grep -v '^ *+' conftest.er1 >conftest.err
  15902. rm -f conftest.er1
  15903. cat conftest.err >&5
  15904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15905. (exit $ac_status); } &&
  15906. { ac_try='test -z "$ac_c_werror_flag"
  15907. || test ! -s conftest.err'
  15908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15909. (eval $ac_try) 2>&5
  15910. ac_status=$?
  15911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15912. (exit $ac_status); }; } &&
  15913. { ac_try='test -s conftest$ac_exeext'
  15914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15915. (eval $ac_try) 2>&5
  15916. ac_status=$?
  15917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15918. (exit $ac_status); }; }; then
  15919. ac_cv_lib_svld_dlopen=yes
  15920. else
  15921. echo "$as_me: failed program was:" >&5
  15922. sed 's/^/| /' conftest.$ac_ext >&5
  15923. ac_cv_lib_svld_dlopen=no
  15924. fi
  15925. rm -f conftest.err conftest.$ac_objext \
  15926. conftest$ac_exeext conftest.$ac_ext
  15927. LIBS=$ac_check_lib_save_LIBS
  15928. fi
  15929. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  15930. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  15931. if test $ac_cv_lib_svld_dlopen = yes; then
  15932. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  15933. else
  15934. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  15935. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  15936. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  15937. echo $ECHO_N "(cached) $ECHO_C" >&6
  15938. else
  15939. ac_check_lib_save_LIBS=$LIBS
  15940. LIBS="-ldld $LIBS"
  15941. cat >conftest.$ac_ext <<_ACEOF
  15942. /* confdefs.h. */
  15943. _ACEOF
  15944. cat confdefs.h >>conftest.$ac_ext
  15945. cat >>conftest.$ac_ext <<_ACEOF
  15946. /* end confdefs.h. */
  15947. /* Override any gcc2 internal prototype to avoid an error. */
  15948. #ifdef __cplusplus
  15949. extern "C"
  15950. #endif
  15951. /* We use char because int might match the return type of a gcc2
  15952. builtin and then its argument prototype would still apply. */
  15953. char dld_link ();
  15954. int
  15955. main ()
  15956. {
  15957. dld_link ();
  15958. ;
  15959. return 0;
  15960. }
  15961. _ACEOF
  15962. rm -f conftest.$ac_objext conftest$ac_exeext
  15963. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15964. (eval $ac_link) 2>conftest.er1
  15965. ac_status=$?
  15966. grep -v '^ *+' conftest.er1 >conftest.err
  15967. rm -f conftest.er1
  15968. cat conftest.err >&5
  15969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15970. (exit $ac_status); } &&
  15971. { ac_try='test -z "$ac_c_werror_flag"
  15972. || test ! -s conftest.err'
  15973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15974. (eval $ac_try) 2>&5
  15975. ac_status=$?
  15976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15977. (exit $ac_status); }; } &&
  15978. { ac_try='test -s conftest$ac_exeext'
  15979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15980. (eval $ac_try) 2>&5
  15981. ac_status=$?
  15982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15983. (exit $ac_status); }; }; then
  15984. ac_cv_lib_dld_dld_link=yes
  15985. else
  15986. echo "$as_me: failed program was:" >&5
  15987. sed 's/^/| /' conftest.$ac_ext >&5
  15988. ac_cv_lib_dld_dld_link=no
  15989. fi
  15990. rm -f conftest.err conftest.$ac_objext \
  15991. conftest$ac_exeext conftest.$ac_ext
  15992. LIBS=$ac_check_lib_save_LIBS
  15993. fi
  15994. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  15995. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  15996. if test $ac_cv_lib_dld_dld_link = yes; then
  15997. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  15998. fi
  15999. fi
  16000. fi
  16001. fi
  16002. fi
  16003. fi
  16004. ;;
  16005. esac
  16006. if test "x$lt_cv_dlopen" != xno; then
  16007. enable_dlopen=yes
  16008. else
  16009. enable_dlopen=no
  16010. fi
  16011. case $lt_cv_dlopen in
  16012. dlopen)
  16013. save_CPPFLAGS="$CPPFLAGS"
  16014. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  16015. save_LDFLAGS="$LDFLAGS"
  16016. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  16017. save_LIBS="$LIBS"
  16018. LIBS="$lt_cv_dlopen_libs $LIBS"
  16019. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  16020. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  16021. if test "${lt_cv_dlopen_self+set}" = set; then
  16022. echo $ECHO_N "(cached) $ECHO_C" >&6
  16023. else
  16024. if test "$cross_compiling" = yes; then :
  16025. lt_cv_dlopen_self=cross
  16026. else
  16027. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16028. lt_status=$lt_dlunknown
  16029. cat > conftest.$ac_ext <<EOF
  16030. #line 17778 "configure"
  16031. #include "confdefs.h"
  16032. #if HAVE_DLFCN_H
  16033. #include <dlfcn.h>
  16034. #endif
  16035. #include <stdio.h>
  16036. #ifdef RTLD_GLOBAL
  16037. # define LT_DLGLOBAL RTLD_GLOBAL
  16038. #else
  16039. # ifdef DL_GLOBAL
  16040. # define LT_DLGLOBAL DL_GLOBAL
  16041. # else
  16042. # define LT_DLGLOBAL 0
  16043. # endif
  16044. #endif
  16045. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16046. find out it does not work in some platform. */
  16047. #ifndef LT_DLLAZY_OR_NOW
  16048. # ifdef RTLD_LAZY
  16049. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16050. # else
  16051. # ifdef DL_LAZY
  16052. # define LT_DLLAZY_OR_NOW DL_LAZY
  16053. # else
  16054. # ifdef RTLD_NOW
  16055. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16056. # else
  16057. # ifdef DL_NOW
  16058. # define LT_DLLAZY_OR_NOW DL_NOW
  16059. # else
  16060. # define LT_DLLAZY_OR_NOW 0
  16061. # endif
  16062. # endif
  16063. # endif
  16064. # endif
  16065. #endif
  16066. #ifdef __cplusplus
  16067. extern "C" void exit (int);
  16068. #endif
  16069. void fnord() { int i=42;}
  16070. int main ()
  16071. {
  16072. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16073. int status = $lt_dlunknown;
  16074. if (self)
  16075. {
  16076. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16077. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16078. /* dlclose (self); */
  16079. }
  16080. exit (status);
  16081. }
  16082. EOF
  16083. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16084. (eval $ac_link) 2>&5
  16085. ac_status=$?
  16086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16087. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16088. (./conftest; exit; ) 2>/dev/null
  16089. lt_status=$?
  16090. case x$lt_status in
  16091. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  16092. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  16093. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  16094. esac
  16095. else :
  16096. # compilation failed
  16097. lt_cv_dlopen_self=no
  16098. fi
  16099. fi
  16100. rm -fr conftest*
  16101. fi
  16102. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  16103. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  16104. if test "x$lt_cv_dlopen_self" = xyes; then
  16105. LDFLAGS="$LDFLAGS $link_static_flag"
  16106. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  16107. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  16108. if test "${lt_cv_dlopen_self_static+set}" = set; then
  16109. echo $ECHO_N "(cached) $ECHO_C" >&6
  16110. else
  16111. if test "$cross_compiling" = yes; then :
  16112. lt_cv_dlopen_self_static=cross
  16113. else
  16114. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16115. lt_status=$lt_dlunknown
  16116. cat > conftest.$ac_ext <<EOF
  16117. #line 17876 "configure"
  16118. #include "confdefs.h"
  16119. #if HAVE_DLFCN_H
  16120. #include <dlfcn.h>
  16121. #endif
  16122. #include <stdio.h>
  16123. #ifdef RTLD_GLOBAL
  16124. # define LT_DLGLOBAL RTLD_GLOBAL
  16125. #else
  16126. # ifdef DL_GLOBAL
  16127. # define LT_DLGLOBAL DL_GLOBAL
  16128. # else
  16129. # define LT_DLGLOBAL 0
  16130. # endif
  16131. #endif
  16132. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16133. find out it does not work in some platform. */
  16134. #ifndef LT_DLLAZY_OR_NOW
  16135. # ifdef RTLD_LAZY
  16136. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16137. # else
  16138. # ifdef DL_LAZY
  16139. # define LT_DLLAZY_OR_NOW DL_LAZY
  16140. # else
  16141. # ifdef RTLD_NOW
  16142. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16143. # else
  16144. # ifdef DL_NOW
  16145. # define LT_DLLAZY_OR_NOW DL_NOW
  16146. # else
  16147. # define LT_DLLAZY_OR_NOW 0
  16148. # endif
  16149. # endif
  16150. # endif
  16151. # endif
  16152. #endif
  16153. #ifdef __cplusplus
  16154. extern "C" void exit (int);
  16155. #endif
  16156. void fnord() { int i=42;}
  16157. int main ()
  16158. {
  16159. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16160. int status = $lt_dlunknown;
  16161. if (self)
  16162. {
  16163. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16164. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16165. /* dlclose (self); */
  16166. }
  16167. exit (status);
  16168. }
  16169. EOF
  16170. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16171. (eval $ac_link) 2>&5
  16172. ac_status=$?
  16173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16174. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16175. (./conftest; exit; ) 2>/dev/null
  16176. lt_status=$?
  16177. case x$lt_status in
  16178. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  16179. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  16180. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  16181. esac
  16182. else :
  16183. # compilation failed
  16184. lt_cv_dlopen_self_static=no
  16185. fi
  16186. fi
  16187. rm -fr conftest*
  16188. fi
  16189. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  16190. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  16191. fi
  16192. CPPFLAGS="$save_CPPFLAGS"
  16193. LDFLAGS="$save_LDFLAGS"
  16194. LIBS="$save_LIBS"
  16195. ;;
  16196. esac
  16197. case $lt_cv_dlopen_self in
  16198. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  16199. *) enable_dlopen_self=unknown ;;
  16200. esac
  16201. case $lt_cv_dlopen_self_static in
  16202. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  16203. *) enable_dlopen_self_static=unknown ;;
  16204. esac
  16205. fi
  16206. # The else clause should only fire when bootstrapping the
  16207. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16208. # with your package, and you will get complaints that there are
  16209. # no rules to generate ltmain.sh.
  16210. if test -f "$ltmain"; then
  16211. # See if we are running on zsh, and set the options which allow our commands through
  16212. # without removal of \ escapes.
  16213. if test -n "${ZSH_VERSION+set}" ; then
  16214. setopt NO_GLOB_SUBST
  16215. fi
  16216. # Now quote all the things that may contain metacharacters while being
  16217. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16218. # variables and quote the copies for generation of the libtool script.
  16219. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16220. SED SHELL STRIP \
  16221. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16222. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16223. deplibs_check_method reload_flag reload_cmds need_locks \
  16224. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16225. lt_cv_sys_global_symbol_to_c_name_address \
  16226. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16227. old_postinstall_cmds old_postuninstall_cmds \
  16228. compiler_GCJ \
  16229. CC_GCJ \
  16230. LD_GCJ \
  16231. lt_prog_compiler_wl_GCJ \
  16232. lt_prog_compiler_pic_GCJ \
  16233. lt_prog_compiler_static_GCJ \
  16234. lt_prog_compiler_no_builtin_flag_GCJ \
  16235. export_dynamic_flag_spec_GCJ \
  16236. thread_safe_flag_spec_GCJ \
  16237. whole_archive_flag_spec_GCJ \
  16238. enable_shared_with_static_runtimes_GCJ \
  16239. old_archive_cmds_GCJ \
  16240. old_archive_from_new_cmds_GCJ \
  16241. predep_objects_GCJ \
  16242. postdep_objects_GCJ \
  16243. predeps_GCJ \
  16244. postdeps_GCJ \
  16245. compiler_lib_search_path_GCJ \
  16246. archive_cmds_GCJ \
  16247. archive_expsym_cmds_GCJ \
  16248. postinstall_cmds_GCJ \
  16249. postuninstall_cmds_GCJ \
  16250. old_archive_from_expsyms_cmds_GCJ \
  16251. allow_undefined_flag_GCJ \
  16252. no_undefined_flag_GCJ \
  16253. export_symbols_cmds_GCJ \
  16254. hardcode_libdir_flag_spec_GCJ \
  16255. hardcode_libdir_flag_spec_ld_GCJ \
  16256. hardcode_libdir_separator_GCJ \
  16257. hardcode_automatic_GCJ \
  16258. module_cmds_GCJ \
  16259. module_expsym_cmds_GCJ \
  16260. lt_cv_prog_compiler_c_o_GCJ \
  16261. exclude_expsyms_GCJ \
  16262. include_expsyms_GCJ; do
  16263. case $var in
  16264. old_archive_cmds_GCJ | \
  16265. old_archive_from_new_cmds_GCJ | \
  16266. archive_cmds_GCJ | \
  16267. archive_expsym_cmds_GCJ | \
  16268. module_cmds_GCJ | \
  16269. module_expsym_cmds_GCJ | \
  16270. old_archive_from_expsyms_cmds_GCJ | \
  16271. export_symbols_cmds_GCJ | \
  16272. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16273. postinstall_cmds | postuninstall_cmds | \
  16274. old_postinstall_cmds | old_postuninstall_cmds | \
  16275. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16276. # Double-quote double-evaled strings.
  16277. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16278. ;;
  16279. *)
  16280. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16281. ;;
  16282. esac
  16283. done
  16284. case $lt_echo in
  16285. *'\$0 --fallback-echo"')
  16286. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16287. ;;
  16288. esac
  16289. cfgfile="$ofile"
  16290. cat <<__EOF__ >> "$cfgfile"
  16291. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16292. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16293. # Shell to use when invoking shell scripts.
  16294. SHELL=$lt_SHELL
  16295. # Whether or not to build shared libraries.
  16296. build_libtool_libs=$enable_shared
  16297. # Whether or not to build static libraries.
  16298. build_old_libs=$enable_static
  16299. # Whether or not to add -lc for building shared libraries.
  16300. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16301. # Whether or not to disallow shared libs when runtime libs are static
  16302. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16303. # Whether or not to optimize for fast installation.
  16304. fast_install=$enable_fast_install
  16305. # The host system.
  16306. host_alias=$host_alias
  16307. host=$host
  16308. host_os=$host_os
  16309. # The build system.
  16310. build_alias=$build_alias
  16311. build=$build
  16312. build_os=$build_os
  16313. # An echo program that does not interpret backslashes.
  16314. echo=$lt_echo
  16315. # The archiver.
  16316. AR=$lt_AR
  16317. AR_FLAGS=$lt_AR_FLAGS
  16318. # A C compiler.
  16319. LTCC=$lt_LTCC
  16320. # A language-specific compiler.
  16321. CC=$lt_compiler_GCJ
  16322. # Is the compiler the GNU C compiler?
  16323. with_gcc=$GCC_GCJ
  16324. # An ERE matcher.
  16325. EGREP=$lt_EGREP
  16326. # The linker used to build libraries.
  16327. LD=$lt_LD_GCJ
  16328. # Whether we need hard or soft links.
  16329. LN_S=$lt_LN_S
  16330. # A BSD-compatible nm program.
  16331. NM=$lt_NM
  16332. # A symbol stripping program
  16333. STRIP=$lt_STRIP
  16334. # Used to examine libraries when file_magic_cmd begins "file"
  16335. MAGIC_CMD=$MAGIC_CMD
  16336. # Used on cygwin: DLL creation program.
  16337. DLLTOOL="$DLLTOOL"
  16338. # Used on cygwin: object dumper.
  16339. OBJDUMP="$OBJDUMP"
  16340. # Used on cygwin: assembler.
  16341. AS="$AS"
  16342. # The name of the directory that contains temporary libtool files.
  16343. objdir=$objdir
  16344. # How to create reloadable object files.
  16345. reload_flag=$lt_reload_flag
  16346. reload_cmds=$lt_reload_cmds
  16347. # How to pass a linker flag through the compiler.
  16348. wl=$lt_lt_prog_compiler_wl_GCJ
  16349. # Object file suffix (normally "o").
  16350. objext="$ac_objext"
  16351. # Old archive suffix (normally "a").
  16352. libext="$libext"
  16353. # Shared library suffix (normally ".so").
  16354. shrext_cmds='$shrext_cmds'
  16355. # Executable file suffix (normally "").
  16356. exeext="$exeext"
  16357. # Additional compiler flags for building library objects.
  16358. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16359. pic_mode=$pic_mode
  16360. # What is the maximum length of a command?
  16361. max_cmd_len=$lt_cv_sys_max_cmd_len
  16362. # Does compiler simultaneously support -c and -o options?
  16363. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16364. # Must we lock files when doing compilation?
  16365. need_locks=$lt_need_locks
  16366. # Do we need the lib prefix for modules?
  16367. need_lib_prefix=$need_lib_prefix
  16368. # Do we need a version for libraries?
  16369. need_version=$need_version
  16370. # Whether dlopen is supported.
  16371. dlopen_support=$enable_dlopen
  16372. # Whether dlopen of programs is supported.
  16373. dlopen_self=$enable_dlopen_self
  16374. # Whether dlopen of statically linked programs is supported.
  16375. dlopen_self_static=$enable_dlopen_self_static
  16376. # Compiler flag to prevent dynamic linking.
  16377. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16378. # Compiler flag to turn off builtin functions.
  16379. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16380. # Compiler flag to allow reflexive dlopens.
  16381. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16382. # Compiler flag to generate shared objects directly from archives.
  16383. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16384. # Compiler flag to generate thread-safe objects.
  16385. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16386. # Library versioning type.
  16387. version_type=$version_type
  16388. # Format of library name prefix.
  16389. libname_spec=$lt_libname_spec
  16390. # List of archive names. First name is the real one, the rest are links.
  16391. # The last name is the one that the linker finds with -lNAME.
  16392. library_names_spec=$lt_library_names_spec
  16393. # The coded name of the library, if different from the real name.
  16394. soname_spec=$lt_soname_spec
  16395. # Commands used to build and install an old-style archive.
  16396. RANLIB=$lt_RANLIB
  16397. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16398. old_postinstall_cmds=$lt_old_postinstall_cmds
  16399. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16400. # Create an old-style archive from a shared archive.
  16401. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16402. # Create a temporary old-style archive to link instead of a shared archive.
  16403. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16404. # Commands used to build and install a shared archive.
  16405. archive_cmds=$lt_archive_cmds_GCJ
  16406. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16407. postinstall_cmds=$lt_postinstall_cmds
  16408. postuninstall_cmds=$lt_postuninstall_cmds
  16409. # Commands used to build a loadable module (assumed same as above if empty)
  16410. module_cmds=$lt_module_cmds_GCJ
  16411. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16412. # Commands to strip libraries.
  16413. old_striplib=$lt_old_striplib
  16414. striplib=$lt_striplib
  16415. # Dependencies to place before the objects being linked to create a
  16416. # shared library.
  16417. predep_objects=$lt_predep_objects_GCJ
  16418. # Dependencies to place after the objects being linked to create a
  16419. # shared library.
  16420. postdep_objects=$lt_postdep_objects_GCJ
  16421. # Dependencies to place before the objects being linked to create a
  16422. # shared library.
  16423. predeps=$lt_predeps_GCJ
  16424. # Dependencies to place after the objects being linked to create a
  16425. # shared library.
  16426. postdeps=$lt_postdeps_GCJ
  16427. # The library search path used internally by the compiler when linking
  16428. # a shared library.
  16429. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16430. # Method to check whether dependent libraries are shared objects.
  16431. deplibs_check_method=$lt_deplibs_check_method
  16432. # Command to use when deplibs_check_method == file_magic.
  16433. file_magic_cmd=$lt_file_magic_cmd
  16434. # Flag that allows shared libraries with undefined symbols to be built.
  16435. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16436. # Flag that forces no undefined symbols.
  16437. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16438. # Commands used to finish a libtool library installation in a directory.
  16439. finish_cmds=$lt_finish_cmds
  16440. # Same as above, but a single script fragment to be evaled but not shown.
  16441. finish_eval=$lt_finish_eval
  16442. # Take the output of nm and produce a listing of raw symbols and C names.
  16443. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16444. # Transform the output of nm in a proper C declaration
  16445. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16446. # Transform the output of nm in a C name address pair
  16447. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16448. # This is the shared library runtime path variable.
  16449. runpath_var=$runpath_var
  16450. # This is the shared library path variable.
  16451. shlibpath_var=$shlibpath_var
  16452. # Is shlibpath searched before the hard-coded library search path?
  16453. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16454. # How to hardcode a shared library path into an executable.
  16455. hardcode_action=$hardcode_action_GCJ
  16456. # Whether we should hardcode library paths into libraries.
  16457. hardcode_into_libs=$hardcode_into_libs
  16458. # Flag to hardcode \$libdir into a binary during linking.
  16459. # This must work even if \$libdir does not exist.
  16460. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16461. # If ld is used when linking, flag to hardcode \$libdir into
  16462. # a binary during linking. This must work even if \$libdir does
  16463. # not exist.
  16464. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16465. # Whether we need a single -rpath flag with a separated argument.
  16466. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16467. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16468. # resulting binary.
  16469. hardcode_direct=$hardcode_direct_GCJ
  16470. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16471. # resulting binary.
  16472. hardcode_minus_L=$hardcode_minus_L_GCJ
  16473. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16474. # the resulting binary.
  16475. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16476. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16477. # and all subsequent libraries and executables linked against it.
  16478. hardcode_automatic=$hardcode_automatic_GCJ
  16479. # Variables whose values should be saved in libtool wrapper scripts and
  16480. # restored at relink time.
  16481. variables_saved_for_relink="$variables_saved_for_relink"
  16482. # Whether libtool must link a program against all its dependency libraries.
  16483. link_all_deplibs=$link_all_deplibs_GCJ
  16484. # Compile-time system search path for libraries
  16485. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16486. # Run-time system search path for libraries
  16487. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16488. # Fix the shell variable \$srcfile for the compiler.
  16489. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16490. # Set to yes if exported symbols are required.
  16491. always_export_symbols=$always_export_symbols_GCJ
  16492. # The commands to list exported symbols.
  16493. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16494. # The commands to extract the exported symbol list from a shared archive.
  16495. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16496. # Symbols that should not be listed in the preloaded symbols.
  16497. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16498. # Symbols that must always be exported.
  16499. include_expsyms=$lt_include_expsyms_GCJ
  16500. # ### END LIBTOOL TAG CONFIG: $tagname
  16501. __EOF__
  16502. else
  16503. # If there is no Makefile yet, we rely on a make rule to execute
  16504. # `config.status --recheck' to rerun these tests and create the
  16505. # libtool script then.
  16506. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16507. if test -f "$ltmain_in"; then
  16508. test -f Makefile && make "$ltmain"
  16509. fi
  16510. fi
  16511. ac_ext=c
  16512. ac_cpp='$CPP $CPPFLAGS'
  16513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16516. CC="$lt_save_CC"
  16517. else
  16518. tagname=""
  16519. fi
  16520. ;;
  16521. RC)
  16522. # Source file extension for RC test sources.
  16523. ac_ext=rc
  16524. # Object file extension for compiled RC test sources.
  16525. objext=o
  16526. objext_RC=$objext
  16527. # Code to be used in simple compile tests
  16528. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16529. # Code to be used in simple link tests
  16530. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16531. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16532. # If no C compiler was specified, use CC.
  16533. LTCC=${LTCC-"$CC"}
  16534. # Allow CC to be a program name with arguments.
  16535. compiler=$CC
  16536. # save warnings/boilerplate of simple test code
  16537. ac_outfile=conftest.$ac_objext
  16538. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16539. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  16540. _lt_compiler_boilerplate=`cat conftest.err`
  16541. $rm conftest*
  16542. ac_outfile=conftest.$ac_objext
  16543. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16544. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  16545. _lt_linker_boilerplate=`cat conftest.err`
  16546. $rm conftest*
  16547. # Allow CC to be a program name with arguments.
  16548. lt_save_CC="$CC"
  16549. CC=${RC-"windres"}
  16550. compiler=$CC
  16551. compiler_RC=$CC
  16552. for cc_temp in $compiler""; do
  16553. case $cc_temp in
  16554. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16555. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16556. \-*) ;;
  16557. *) break;;
  16558. esac
  16559. done
  16560. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16561. lt_cv_prog_compiler_c_o_RC=yes
  16562. # The else clause should only fire when bootstrapping the
  16563. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16564. # with your package, and you will get complaints that there are
  16565. # no rules to generate ltmain.sh.
  16566. if test -f "$ltmain"; then
  16567. # See if we are running on zsh, and set the options which allow our commands through
  16568. # without removal of \ escapes.
  16569. if test -n "${ZSH_VERSION+set}" ; then
  16570. setopt NO_GLOB_SUBST
  16571. fi
  16572. # Now quote all the things that may contain metacharacters while being
  16573. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16574. # variables and quote the copies for generation of the libtool script.
  16575. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16576. SED SHELL STRIP \
  16577. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16578. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16579. deplibs_check_method reload_flag reload_cmds need_locks \
  16580. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16581. lt_cv_sys_global_symbol_to_c_name_address \
  16582. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16583. old_postinstall_cmds old_postuninstall_cmds \
  16584. compiler_RC \
  16585. CC_RC \
  16586. LD_RC \
  16587. lt_prog_compiler_wl_RC \
  16588. lt_prog_compiler_pic_RC \
  16589. lt_prog_compiler_static_RC \
  16590. lt_prog_compiler_no_builtin_flag_RC \
  16591. export_dynamic_flag_spec_RC \
  16592. thread_safe_flag_spec_RC \
  16593. whole_archive_flag_spec_RC \
  16594. enable_shared_with_static_runtimes_RC \
  16595. old_archive_cmds_RC \
  16596. old_archive_from_new_cmds_RC \
  16597. predep_objects_RC \
  16598. postdep_objects_RC \
  16599. predeps_RC \
  16600. postdeps_RC \
  16601. compiler_lib_search_path_RC \
  16602. archive_cmds_RC \
  16603. archive_expsym_cmds_RC \
  16604. postinstall_cmds_RC \
  16605. postuninstall_cmds_RC \
  16606. old_archive_from_expsyms_cmds_RC \
  16607. allow_undefined_flag_RC \
  16608. no_undefined_flag_RC \
  16609. export_symbols_cmds_RC \
  16610. hardcode_libdir_flag_spec_RC \
  16611. hardcode_libdir_flag_spec_ld_RC \
  16612. hardcode_libdir_separator_RC \
  16613. hardcode_automatic_RC \
  16614. module_cmds_RC \
  16615. module_expsym_cmds_RC \
  16616. lt_cv_prog_compiler_c_o_RC \
  16617. exclude_expsyms_RC \
  16618. include_expsyms_RC; do
  16619. case $var in
  16620. old_archive_cmds_RC | \
  16621. old_archive_from_new_cmds_RC | \
  16622. archive_cmds_RC | \
  16623. archive_expsym_cmds_RC | \
  16624. module_cmds_RC | \
  16625. module_expsym_cmds_RC | \
  16626. old_archive_from_expsyms_cmds_RC | \
  16627. export_symbols_cmds_RC | \
  16628. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16629. postinstall_cmds | postuninstall_cmds | \
  16630. old_postinstall_cmds | old_postuninstall_cmds | \
  16631. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16632. # Double-quote double-evaled strings.
  16633. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16634. ;;
  16635. *)
  16636. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16637. ;;
  16638. esac
  16639. done
  16640. case $lt_echo in
  16641. *'\$0 --fallback-echo"')
  16642. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16643. ;;
  16644. esac
  16645. cfgfile="$ofile"
  16646. cat <<__EOF__ >> "$cfgfile"
  16647. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16648. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16649. # Shell to use when invoking shell scripts.
  16650. SHELL=$lt_SHELL
  16651. # Whether or not to build shared libraries.
  16652. build_libtool_libs=$enable_shared
  16653. # Whether or not to build static libraries.
  16654. build_old_libs=$enable_static
  16655. # Whether or not to add -lc for building shared libraries.
  16656. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16657. # Whether or not to disallow shared libs when runtime libs are static
  16658. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16659. # Whether or not to optimize for fast installation.
  16660. fast_install=$enable_fast_install
  16661. # The host system.
  16662. host_alias=$host_alias
  16663. host=$host
  16664. host_os=$host_os
  16665. # The build system.
  16666. build_alias=$build_alias
  16667. build=$build
  16668. build_os=$build_os
  16669. # An echo program that does not interpret backslashes.
  16670. echo=$lt_echo
  16671. # The archiver.
  16672. AR=$lt_AR
  16673. AR_FLAGS=$lt_AR_FLAGS
  16674. # A C compiler.
  16675. LTCC=$lt_LTCC
  16676. # A language-specific compiler.
  16677. CC=$lt_compiler_RC
  16678. # Is the compiler the GNU C compiler?
  16679. with_gcc=$GCC_RC
  16680. # An ERE matcher.
  16681. EGREP=$lt_EGREP
  16682. # The linker used to build libraries.
  16683. LD=$lt_LD_RC
  16684. # Whether we need hard or soft links.
  16685. LN_S=$lt_LN_S
  16686. # A BSD-compatible nm program.
  16687. NM=$lt_NM
  16688. # A symbol stripping program
  16689. STRIP=$lt_STRIP
  16690. # Used to examine libraries when file_magic_cmd begins "file"
  16691. MAGIC_CMD=$MAGIC_CMD
  16692. # Used on cygwin: DLL creation program.
  16693. DLLTOOL="$DLLTOOL"
  16694. # Used on cygwin: object dumper.
  16695. OBJDUMP="$OBJDUMP"
  16696. # Used on cygwin: assembler.
  16697. AS="$AS"
  16698. # The name of the directory that contains temporary libtool files.
  16699. objdir=$objdir
  16700. # How to create reloadable object files.
  16701. reload_flag=$lt_reload_flag
  16702. reload_cmds=$lt_reload_cmds
  16703. # How to pass a linker flag through the compiler.
  16704. wl=$lt_lt_prog_compiler_wl_RC
  16705. # Object file suffix (normally "o").
  16706. objext="$ac_objext"
  16707. # Old archive suffix (normally "a").
  16708. libext="$libext"
  16709. # Shared library suffix (normally ".so").
  16710. shrext_cmds='$shrext_cmds'
  16711. # Executable file suffix (normally "").
  16712. exeext="$exeext"
  16713. # Additional compiler flags for building library objects.
  16714. pic_flag=$lt_lt_prog_compiler_pic_RC
  16715. pic_mode=$pic_mode
  16716. # What is the maximum length of a command?
  16717. max_cmd_len=$lt_cv_sys_max_cmd_len
  16718. # Does compiler simultaneously support -c and -o options?
  16719. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16720. # Must we lock files when doing compilation?
  16721. need_locks=$lt_need_locks
  16722. # Do we need the lib prefix for modules?
  16723. need_lib_prefix=$need_lib_prefix
  16724. # Do we need a version for libraries?
  16725. need_version=$need_version
  16726. # Whether dlopen is supported.
  16727. dlopen_support=$enable_dlopen
  16728. # Whether dlopen of programs is supported.
  16729. dlopen_self=$enable_dlopen_self
  16730. # Whether dlopen of statically linked programs is supported.
  16731. dlopen_self_static=$enable_dlopen_self_static
  16732. # Compiler flag to prevent dynamic linking.
  16733. link_static_flag=$lt_lt_prog_compiler_static_RC
  16734. # Compiler flag to turn off builtin functions.
  16735. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16736. # Compiler flag to allow reflexive dlopens.
  16737. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16738. # Compiler flag to generate shared objects directly from archives.
  16739. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16740. # Compiler flag to generate thread-safe objects.
  16741. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16742. # Library versioning type.
  16743. version_type=$version_type
  16744. # Format of library name prefix.
  16745. libname_spec=$lt_libname_spec
  16746. # List of archive names. First name is the real one, the rest are links.
  16747. # The last name is the one that the linker finds with -lNAME.
  16748. library_names_spec=$lt_library_names_spec
  16749. # The coded name of the library, if different from the real name.
  16750. soname_spec=$lt_soname_spec
  16751. # Commands used to build and install an old-style archive.
  16752. RANLIB=$lt_RANLIB
  16753. old_archive_cmds=$lt_old_archive_cmds_RC
  16754. old_postinstall_cmds=$lt_old_postinstall_cmds
  16755. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16756. # Create an old-style archive from a shared archive.
  16757. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16758. # Create a temporary old-style archive to link instead of a shared archive.
  16759. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16760. # Commands used to build and install a shared archive.
  16761. archive_cmds=$lt_archive_cmds_RC
  16762. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16763. postinstall_cmds=$lt_postinstall_cmds
  16764. postuninstall_cmds=$lt_postuninstall_cmds
  16765. # Commands used to build a loadable module (assumed same as above if empty)
  16766. module_cmds=$lt_module_cmds_RC
  16767. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16768. # Commands to strip libraries.
  16769. old_striplib=$lt_old_striplib
  16770. striplib=$lt_striplib
  16771. # Dependencies to place before the objects being linked to create a
  16772. # shared library.
  16773. predep_objects=$lt_predep_objects_RC
  16774. # Dependencies to place after the objects being linked to create a
  16775. # shared library.
  16776. postdep_objects=$lt_postdep_objects_RC
  16777. # Dependencies to place before the objects being linked to create a
  16778. # shared library.
  16779. predeps=$lt_predeps_RC
  16780. # Dependencies to place after the objects being linked to create a
  16781. # shared library.
  16782. postdeps=$lt_postdeps_RC
  16783. # The library search path used internally by the compiler when linking
  16784. # a shared library.
  16785. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  16786. # Method to check whether dependent libraries are shared objects.
  16787. deplibs_check_method=$lt_deplibs_check_method
  16788. # Command to use when deplibs_check_method == file_magic.
  16789. file_magic_cmd=$lt_file_magic_cmd
  16790. # Flag that allows shared libraries with undefined symbols to be built.
  16791. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16792. # Flag that forces no undefined symbols.
  16793. no_undefined_flag=$lt_no_undefined_flag_RC
  16794. # Commands used to finish a libtool library installation in a directory.
  16795. finish_cmds=$lt_finish_cmds
  16796. # Same as above, but a single script fragment to be evaled but not shown.
  16797. finish_eval=$lt_finish_eval
  16798. # Take the output of nm and produce a listing of raw symbols and C names.
  16799. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16800. # Transform the output of nm in a proper C declaration
  16801. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16802. # Transform the output of nm in a C name address pair
  16803. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16804. # This is the shared library runtime path variable.
  16805. runpath_var=$runpath_var
  16806. # This is the shared library path variable.
  16807. shlibpath_var=$shlibpath_var
  16808. # Is shlibpath searched before the hard-coded library search path?
  16809. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16810. # How to hardcode a shared library path into an executable.
  16811. hardcode_action=$hardcode_action_RC
  16812. # Whether we should hardcode library paths into libraries.
  16813. hardcode_into_libs=$hardcode_into_libs
  16814. # Flag to hardcode \$libdir into a binary during linking.
  16815. # This must work even if \$libdir does not exist.
  16816. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16817. # If ld is used when linking, flag to hardcode \$libdir into
  16818. # a binary during linking. This must work even if \$libdir does
  16819. # not exist.
  16820. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16821. # Whether we need a single -rpath flag with a separated argument.
  16822. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16823. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16824. # resulting binary.
  16825. hardcode_direct=$hardcode_direct_RC
  16826. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16827. # resulting binary.
  16828. hardcode_minus_L=$hardcode_minus_L_RC
  16829. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16830. # the resulting binary.
  16831. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16832. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16833. # and all subsequent libraries and executables linked against it.
  16834. hardcode_automatic=$hardcode_automatic_RC
  16835. # Variables whose values should be saved in libtool wrapper scripts and
  16836. # restored at relink time.
  16837. variables_saved_for_relink="$variables_saved_for_relink"
  16838. # Whether libtool must link a program against all its dependency libraries.
  16839. link_all_deplibs=$link_all_deplibs_RC
  16840. # Compile-time system search path for libraries
  16841. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16842. # Run-time system search path for libraries
  16843. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16844. # Fix the shell variable \$srcfile for the compiler.
  16845. fix_srcfile_path="$fix_srcfile_path_RC"
  16846. # Set to yes if exported symbols are required.
  16847. always_export_symbols=$always_export_symbols_RC
  16848. # The commands to list exported symbols.
  16849. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16850. # The commands to extract the exported symbol list from a shared archive.
  16851. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16852. # Symbols that should not be listed in the preloaded symbols.
  16853. exclude_expsyms=$lt_exclude_expsyms_RC
  16854. # Symbols that must always be exported.
  16855. include_expsyms=$lt_include_expsyms_RC
  16856. # ### END LIBTOOL TAG CONFIG: $tagname
  16857. __EOF__
  16858. else
  16859. # If there is no Makefile yet, we rely on a make rule to execute
  16860. # `config.status --recheck' to rerun these tests and create the
  16861. # libtool script then.
  16862. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16863. if test -f "$ltmain_in"; then
  16864. test -f Makefile && make "$ltmain"
  16865. fi
  16866. fi
  16867. ac_ext=c
  16868. ac_cpp='$CPP $CPPFLAGS'
  16869. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16870. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16871. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16872. CC="$lt_save_CC"
  16873. ;;
  16874. *)
  16875. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16876. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16877. { (exit 1); exit 1; }; }
  16878. ;;
  16879. esac
  16880. # Append the new tag name to the list of available tags.
  16881. if test -n "$tagname" ; then
  16882. available_tags="$available_tags $tagname"
  16883. fi
  16884. fi
  16885. done
  16886. IFS="$lt_save_ifs"
  16887. # Now substitute the updated list of available tags.
  16888. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16889. mv "${ofile}T" "$ofile"
  16890. chmod +x "$ofile"
  16891. else
  16892. rm -f "${ofile}T"
  16893. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16894. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16895. { (exit 1); exit 1; }; }
  16896. fi
  16897. fi
  16898. # This can be used to rebuild libtool when needed
  16899. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16900. # Always use our own libtool.
  16901. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16902. # Prevent multiple expansion
  16903. MAJOR_VERSION=3
  16904. MINOR_VERSION=0
  16905. MICRO_VERSION=beta7
  16906. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  16907. TCPREPLAY_RELEASE=1
  16908. cat >>confdefs.h <<\_ACEOF
  16909. #define PACKAGE tcpreplay
  16910. _ACEOF
  16911. cat >>confdefs.h <<_ACEOF
  16912. #define VERSION "$TCPREPLAY_VERSION"
  16913. _ACEOF
  16914. CFLAGS="$CFLAGS -Wall -O2 -funroll-loops" # -std=c99 -Wno-variadic-macros"
  16915. echo "$as_me:$LINENO: checking target system type" >&5
  16916. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  16917. if test "${ac_cv_target+set}" = set; then
  16918. echo $ECHO_N "(cached) $ECHO_C" >&6
  16919. else
  16920. ac_cv_target_alias=$target_alias
  16921. test "x$ac_cv_target_alias" = "x" &&
  16922. ac_cv_target_alias=$ac_cv_host_alias
  16923. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  16924. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  16925. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  16926. { (exit 1); exit 1; }; }
  16927. fi
  16928. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  16929. echo "${ECHO_T}$ac_cv_target" >&6
  16930. target=$ac_cv_target
  16931. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  16932. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  16933. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  16934. # The aliases save the names the user supplied, while $host etc.
  16935. # will get canonicalized.
  16936. test -n "$target_alias" &&
  16937. test "$program_prefix$program_suffix$program_transform_name" = \
  16938. NONENONEs,x,x, &&
  16939. program_prefix=${target_alias}-
  16940. am__api_version="1.9"
  16941. # Find a good install program. We prefer a C program (faster),
  16942. # so one script is as good as another. But avoid the broken or
  16943. # incompatible versions:
  16944. # SysV /etc/install, /usr/sbin/install
  16945. # SunOS /usr/etc/install
  16946. # IRIX /sbin/install
  16947. # AIX /bin/install
  16948. # AmigaOS /C/install, which installs bootblocks on floppy discs
  16949. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  16950. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  16951. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  16952. # OS/2's system install, which has a completely different semantic
  16953. # ./install, which can be erroneously created by make from ./install.sh.
  16954. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  16955. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  16956. if test -z "$INSTALL"; then
  16957. if test "${ac_cv_path_install+set}" = set; then
  16958. echo $ECHO_N "(cached) $ECHO_C" >&6
  16959. else
  16960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16961. for as_dir in $PATH
  16962. do
  16963. IFS=$as_save_IFS
  16964. test -z "$as_dir" && as_dir=.
  16965. # Account for people who put trailing slashes in PATH elements.
  16966. case $as_dir/ in
  16967. ./ | .// | /cC/* | \
  16968. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  16969. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  16970. /usr/ucb/* ) ;;
  16971. *)
  16972. # OSF1 and SCO ODT 3.0 have their own names for install.
  16973. # Don't use installbsd from OSF since it installs stuff as root
  16974. # by default.
  16975. for ac_prog in ginstall scoinst install; do
  16976. for ac_exec_ext in '' $ac_executable_extensions; do
  16977. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  16978. if test $ac_prog = install &&
  16979. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16980. # AIX install. It has an incompatible calling convention.
  16981. :
  16982. elif test $ac_prog = install &&
  16983. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16984. # program-specific install script used by HP pwplus--don't use.
  16985. :
  16986. else
  16987. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  16988. break 3
  16989. fi
  16990. fi
  16991. done
  16992. done
  16993. ;;
  16994. esac
  16995. done
  16996. fi
  16997. if test "${ac_cv_path_install+set}" = set; then
  16998. INSTALL=$ac_cv_path_install
  16999. else
  17000. # As a last resort, use the slow shell script. We don't cache a
  17001. # path for INSTALL within a source directory, because that will
  17002. # break other packages using the cache if that directory is
  17003. # removed, or if the path is relative.
  17004. INSTALL=$ac_install_sh
  17005. fi
  17006. fi
  17007. echo "$as_me:$LINENO: result: $INSTALL" >&5
  17008. echo "${ECHO_T}$INSTALL" >&6
  17009. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17010. # It thinks the first close brace ends the variable substitution.
  17011. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  17012. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  17013. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17014. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  17015. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  17016. # Just in case
  17017. sleep 1
  17018. echo timestamp > conftest.file
  17019. # Do `set' in a subshell so we don't clobber the current shell's
  17020. # arguments. Must try -L first in case configure is actually a
  17021. # symlink; some systems play weird games with the mod time of symlinks
  17022. # (eg FreeBSD returns the mod time of the symlink's containing
  17023. # directory).
  17024. if (
  17025. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  17026. if test "$*" = "X"; then
  17027. # -L didn't work.
  17028. set X `ls -t $srcdir/configure conftest.file`
  17029. fi
  17030. rm -f conftest.file
  17031. if test "$*" != "X $srcdir/configure conftest.file" \
  17032. && test "$*" != "X conftest.file $srcdir/configure"; then
  17033. # If neither matched, then we have a broken ls. This can happen
  17034. # if, for instance, CONFIG_SHELL is bash and it inherits a
  17035. # broken ls alias from the environment. This has actually
  17036. # happened. Such a system could not be considered "sane".
  17037. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  17038. alias in your environment" >&5
  17039. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  17040. alias in your environment" >&2;}
  17041. { (exit 1); exit 1; }; }
  17042. fi
  17043. test "$2" = conftest.file
  17044. )
  17045. then
  17046. # Ok.
  17047. :
  17048. else
  17049. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  17050. Check your system clock" >&5
  17051. echo "$as_me: error: newly created file is older than distributed files!
  17052. Check your system clock" >&2;}
  17053. { (exit 1); exit 1; }; }
  17054. fi
  17055. echo "$as_me:$LINENO: result: yes" >&5
  17056. echo "${ECHO_T}yes" >&6
  17057. test "$program_prefix" != NONE &&
  17058. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  17059. # Use a double $ so make ignores it.
  17060. test "$program_suffix" != NONE &&
  17061. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  17062. # Double any \ or $. echo might interpret backslashes.
  17063. # By default was `s,x,x', remove it if useless.
  17064. cat <<\_ACEOF >conftest.sed
  17065. s/[\\$]/&&/g;s/;s,x,x,$//
  17066. _ACEOF
  17067. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  17068. rm conftest.sed
  17069. # expand $ac_aux_dir to an absolute path
  17070. am_aux_dir=`cd $ac_aux_dir && pwd`
  17071. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  17072. # Use eval to expand $SHELL
  17073. if eval "$MISSING --run true"; then
  17074. am_missing_run="$MISSING --run "
  17075. else
  17076. am_missing_run=
  17077. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  17078. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17079. fi
  17080. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  17081. # We used to keeping the `.' as first argument, in order to
  17082. # allow $(mkdir_p) to be used without argument. As in
  17083. # $(mkdir_p) $(somedir)
  17084. # where $(somedir) is conditionally defined. However this is wrong
  17085. # for two reasons:
  17086. # 1. if the package is installed by a user who cannot write `.'
  17087. # make install will fail,
  17088. # 2. the above comment should most certainly read
  17089. # $(mkdir_p) $(DESTDIR)$(somedir)
  17090. # so it does not work when $(somedir) is undefined and
  17091. # $(DESTDIR) is not.
  17092. # To support the latter case, we have to write
  17093. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  17094. # so the `.' trick is pointless.
  17095. mkdir_p='mkdir -p --'
  17096. else
  17097. # On NextStep and OpenStep, the `mkdir' command does not
  17098. # recognize any option. It will interpret all options as
  17099. # directories to create, and then abort because `.' already
  17100. # exists.
  17101. for d in ./-p ./--version;
  17102. do
  17103. test -d $d && rmdir $d
  17104. done
  17105. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  17106. if test -f "$ac_aux_dir/mkinstalldirs"; then
  17107. mkdir_p='$(mkinstalldirs)'
  17108. else
  17109. mkdir_p='$(install_sh) -d'
  17110. fi
  17111. fi
  17112. for ac_prog in gawk mawk nawk awk
  17113. do
  17114. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17115. set dummy $ac_prog; ac_word=$2
  17116. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17117. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17118. if test "${ac_cv_prog_AWK+set}" = set; then
  17119. echo $ECHO_N "(cached) $ECHO_C" >&6
  17120. else
  17121. if test -n "$AWK"; then
  17122. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17123. else
  17124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17125. for as_dir in $PATH
  17126. do
  17127. IFS=$as_save_IFS
  17128. test -z "$as_dir" && as_dir=.
  17129. for ac_exec_ext in '' $ac_executable_extensions; do
  17130. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17131. ac_cv_prog_AWK="$ac_prog"
  17132. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17133. break 2
  17134. fi
  17135. done
  17136. done
  17137. fi
  17138. fi
  17139. AWK=$ac_cv_prog_AWK
  17140. if test -n "$AWK"; then
  17141. echo "$as_me:$LINENO: result: $AWK" >&5
  17142. echo "${ECHO_T}$AWK" >&6
  17143. else
  17144. echo "$as_me:$LINENO: result: no" >&5
  17145. echo "${ECHO_T}no" >&6
  17146. fi
  17147. test -n "$AWK" && break
  17148. done
  17149. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17150. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  17151. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  17152. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  17153. echo $ECHO_N "(cached) $ECHO_C" >&6
  17154. else
  17155. cat >conftest.make <<\_ACEOF
  17156. all:
  17157. @echo 'ac_maketemp="$(MAKE)"'
  17158. _ACEOF
  17159. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  17160. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  17161. if test -n "$ac_maketemp"; then
  17162. eval ac_cv_prog_make_${ac_make}_set=yes
  17163. else
  17164. eval ac_cv_prog_make_${ac_make}_set=no
  17165. fi
  17166. rm -f conftest.make
  17167. fi
  17168. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  17169. echo "$as_me:$LINENO: result: yes" >&5
  17170. echo "${ECHO_T}yes" >&6
  17171. SET_MAKE=
  17172. else
  17173. echo "$as_me:$LINENO: result: no" >&5
  17174. echo "${ECHO_T}no" >&6
  17175. SET_MAKE="MAKE=${MAKE-make}"
  17176. fi
  17177. rm -rf .tst 2>/dev/null
  17178. mkdir .tst 2>/dev/null
  17179. if test -d .tst; then
  17180. am__leading_dot=.
  17181. else
  17182. am__leading_dot=_
  17183. fi
  17184. rmdir .tst 2>/dev/null
  17185. DEPDIR="${am__leading_dot}deps"
  17186. ac_config_commands="$ac_config_commands depfiles"
  17187. am_make=${MAKE-make}
  17188. cat > confinc << 'END'
  17189. am__doit:
  17190. @echo done
  17191. .PHONY: am__doit
  17192. END
  17193. # If we don't find an include directive, just comment out the code.
  17194. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  17195. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  17196. am__include="#"
  17197. am__quote=
  17198. _am_result=none
  17199. # First try GNU make style include.
  17200. echo "include confinc" > confmf
  17201. # We grep out `Entering directory' and `Leaving directory'
  17202. # messages which can occur if `w' ends up in MAKEFLAGS.
  17203. # In particular we don't look at `^make:' because GNU make might
  17204. # be invoked under some other name (usually "gmake"), in which
  17205. # case it prints its new name instead of `make'.
  17206. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  17207. am__include=include
  17208. am__quote=
  17209. _am_result=GNU
  17210. fi
  17211. # Now try BSD make style include.
  17212. if test "$am__include" = "#"; then
  17213. echo '.include "confinc"' > confmf
  17214. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  17215. am__include=.include
  17216. am__quote="\""
  17217. _am_result=BSD
  17218. fi
  17219. fi
  17220. echo "$as_me:$LINENO: result: $_am_result" >&5
  17221. echo "${ECHO_T}$_am_result" >&6
  17222. rm -f confinc confmf
  17223. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  17224. if test "${enable_dependency_tracking+set}" = set; then
  17225. enableval="$enable_dependency_tracking"
  17226. fi;
  17227. if test "x$enable_dependency_tracking" != xno; then
  17228. am_depcomp="$ac_aux_dir/depcomp"
  17229. AMDEPBACKSLASH='\'
  17230. fi
  17231. if test "x$enable_dependency_tracking" != xno; then
  17232. AMDEP_TRUE=
  17233. AMDEP_FALSE='#'
  17234. else
  17235. AMDEP_TRUE='#'
  17236. AMDEP_FALSE=
  17237. fi
  17238. # test to see if srcdir already configured
  17239. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  17240. test -f $srcdir/config.status; then
  17241. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  17242. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  17243. { (exit 1); exit 1; }; }
  17244. fi
  17245. # test whether we have cygpath
  17246. if test -z "$CYGPATH_W"; then
  17247. if (cygpath --version) >/dev/null 2>/dev/null; then
  17248. CYGPATH_W='cygpath -w'
  17249. else
  17250. CYGPATH_W=echo
  17251. fi
  17252. fi
  17253. # Define the identity of the package.
  17254. PACKAGE=tcpreplay
  17255. VERSION=$TCPREPLAY_VERSION
  17256. # Some tools Automake needs.
  17257. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  17258. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  17259. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  17260. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  17261. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  17262. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  17263. # Installed binaries are usually stripped using `strip' when the user
  17264. # run `make install-strip'. However `strip' might not be the right
  17265. # tool to use in cross-compilation environments, therefore Automake
  17266. # will honor the `STRIP' environment variable to overrule this program.
  17267. if test "$cross_compiling" != no; then
  17268. if test -n "$ac_tool_prefix"; then
  17269. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17270. set dummy ${ac_tool_prefix}strip; ac_word=$2
  17271. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17272. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17273. if test "${ac_cv_prog_STRIP+set}" = set; then
  17274. echo $ECHO_N "(cached) $ECHO_C" >&6
  17275. else
  17276. if test -n "$STRIP"; then
  17277. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17278. else
  17279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17280. for as_dir in $PATH
  17281. do
  17282. IFS=$as_save_IFS
  17283. test -z "$as_dir" && as_dir=.
  17284. for ac_exec_ext in '' $ac_executable_extensions; do
  17285. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17286. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17287. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17288. break 2
  17289. fi
  17290. done
  17291. done
  17292. fi
  17293. fi
  17294. STRIP=$ac_cv_prog_STRIP
  17295. if test -n "$STRIP"; then
  17296. echo "$as_me:$LINENO: result: $STRIP" >&5
  17297. echo "${ECHO_T}$STRIP" >&6
  17298. else
  17299. echo "$as_me:$LINENO: result: no" >&5
  17300. echo "${ECHO_T}no" >&6
  17301. fi
  17302. fi
  17303. if test -z "$ac_cv_prog_STRIP"; then
  17304. ac_ct_STRIP=$STRIP
  17305. # Extract the first word of "strip", so it can be a program name with args.
  17306. set dummy strip; ac_word=$2
  17307. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17308. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17309. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  17310. echo $ECHO_N "(cached) $ECHO_C" >&6
  17311. else
  17312. if test -n "$ac_ct_STRIP"; then
  17313. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17314. else
  17315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17316. for as_dir in $PATH
  17317. do
  17318. IFS=$as_save_IFS
  17319. test -z "$as_dir" && as_dir=.
  17320. for ac_exec_ext in '' $ac_executable_extensions; do
  17321. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17322. ac_cv_prog_ac_ct_STRIP="strip"
  17323. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17324. break 2
  17325. fi
  17326. done
  17327. done
  17328. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  17329. fi
  17330. fi
  17331. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17332. if test -n "$ac_ct_STRIP"; then
  17333. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17334. echo "${ECHO_T}$ac_ct_STRIP" >&6
  17335. else
  17336. echo "$as_me:$LINENO: result: no" >&5
  17337. echo "${ECHO_T}no" >&6
  17338. fi
  17339. STRIP=$ac_ct_STRIP
  17340. else
  17341. STRIP="$ac_cv_prog_STRIP"
  17342. fi
  17343. fi
  17344. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  17345. # We need awk for the "check" target. The system "awk" is bad on
  17346. # some platforms.
  17347. # Always define AMTAR for backward compatibility.
  17348. AMTAR=${AMTAR-"${am_missing_run}tar"}
  17349. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  17350. depcc="$CC" am_compiler_list=
  17351. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17352. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  17353. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  17354. echo $ECHO_N "(cached) $ECHO_C" >&6
  17355. else
  17356. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17357. # We make a subdir and do the tests there. Otherwise we can end up
  17358. # making bogus files that we don't know about and never remove. For
  17359. # instance it was reported that on HP-UX the gcc test will end up
  17360. # making a dummy file named `D' -- because `-MD' means `put the output
  17361. # in D'.
  17362. mkdir conftest.dir
  17363. # Copy depcomp to subdir because otherwise we won't find it if we're
  17364. # using a relative directory.
  17365. cp "$am_depcomp" conftest.dir
  17366. cd conftest.dir
  17367. # We will build objects and dependencies in a subdirectory because
  17368. # it helps to detect inapplicable dependency modes. For instance
  17369. # both Tru64's cc and ICC support -MD to output dependencies as a
  17370. # side effect of compilation, but ICC will put the dependencies in
  17371. # the current directory while Tru64 will put them in the object
  17372. # directory.
  17373. mkdir sub
  17374. am_cv_CC_dependencies_compiler_type=none
  17375. if test "$am_compiler_list" = ""; then
  17376. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17377. fi
  17378. for depmode in $am_compiler_list; do
  17379. # Setup a source with many dependencies, because some compilers
  17380. # like to wrap large dependency lists on column 80 (with \), and
  17381. # we should not choose a depcomp mode which is confused by this.
  17382. #
  17383. # We need to recreate these files for each test, as the compiler may
  17384. # overwrite some of them when testing with obscure command lines.
  17385. # This happens at least with the AIX C compiler.
  17386. : > sub/conftest.c
  17387. for i in 1 2 3 4 5 6; do
  17388. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17389. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17390. # Solaris 8's {/usr,}/bin/sh.
  17391. touch sub/conftst$i.h
  17392. done
  17393. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17394. case $depmode in
  17395. nosideeffect)
  17396. # after this tag, mechanisms are not by side-effect, so they'll
  17397. # only be used when explicitly requested
  17398. if test "x$enable_dependency_tracking" = xyes; then
  17399. continue
  17400. else
  17401. break
  17402. fi
  17403. ;;
  17404. none) break ;;
  17405. esac
  17406. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17407. # mode. It turns out that the SunPro C++ compiler does not properly
  17408. # handle `-M -o', and we need to detect this.
  17409. if depmode=$depmode \
  17410. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17411. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17412. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17413. >/dev/null 2>conftest.err &&
  17414. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17415. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17416. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17417. # icc doesn't choke on unknown options, it will just issue warnings
  17418. # or remarks (even with -Werror). So we grep stderr for any message
  17419. # that says an option was ignored or not supported.
  17420. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17421. # icc: Command line warning: ignoring option '-M'; no argument required
  17422. # The diagnosis changed in icc 8.0:
  17423. # icc: Command line remark: option '-MP' not supported
  17424. if (grep 'ignoring option' conftest.err ||
  17425. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17426. am_cv_CC_dependencies_compiler_type=$depmode
  17427. break
  17428. fi
  17429. fi
  17430. done
  17431. cd ..
  17432. rm -rf conftest.dir
  17433. else
  17434. am_cv_CC_dependencies_compiler_type=none
  17435. fi
  17436. fi
  17437. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  17438. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  17439. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  17440. if
  17441. test "x$enable_dependency_tracking" != xno \
  17442. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  17443. am__fastdepCC_TRUE=
  17444. am__fastdepCC_FALSE='#'
  17445. else
  17446. am__fastdepCC_TRUE='#'
  17447. am__fastdepCC_FALSE=
  17448. fi
  17449. depcc="$CXX" am_compiler_list=
  17450. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17451. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  17452. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  17453. echo $ECHO_N "(cached) $ECHO_C" >&6
  17454. else
  17455. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17456. # We make a subdir and do the tests there. Otherwise we can end up
  17457. # making bogus files that we don't know about and never remove. For
  17458. # instance it was reported that on HP-UX the gcc test will end up
  17459. # making a dummy file named `D' -- because `-MD' means `put the output
  17460. # in D'.
  17461. mkdir conftest.dir
  17462. # Copy depcomp to subdir because otherwise we won't find it if we're
  17463. # using a relative directory.
  17464. cp "$am_depcomp" conftest.dir
  17465. cd conftest.dir
  17466. # We will build objects and dependencies in a subdirectory because
  17467. # it helps to detect inapplicable dependency modes. For instance
  17468. # both Tru64's cc and ICC support -MD to output dependencies as a
  17469. # side effect of compilation, but ICC will put the dependencies in
  17470. # the current directory while Tru64 will put them in the object
  17471. # directory.
  17472. mkdir sub
  17473. am_cv_CXX_dependencies_compiler_type=none
  17474. if test "$am_compiler_list" = ""; then
  17475. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17476. fi
  17477. for depmode in $am_compiler_list; do
  17478. # Setup a source with many dependencies, because some compilers
  17479. # like to wrap large dependency lists on column 80 (with \), and
  17480. # we should not choose a depcomp mode which is confused by this.
  17481. #
  17482. # We need to recreate these files for each test, as the compiler may
  17483. # overwrite some of them when testing with obscure command lines.
  17484. # This happens at least with the AIX C compiler.
  17485. : > sub/conftest.c
  17486. for i in 1 2 3 4 5 6; do
  17487. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17488. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17489. # Solaris 8's {/usr,}/bin/sh.
  17490. touch sub/conftst$i.h
  17491. done
  17492. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17493. case $depmode in
  17494. nosideeffect)
  17495. # after this tag, mechanisms are not by side-effect, so they'll
  17496. # only be used when explicitly requested
  17497. if test "x$enable_dependency_tracking" = xyes; then
  17498. continue
  17499. else
  17500. break
  17501. fi
  17502. ;;
  17503. none) break ;;
  17504. esac
  17505. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17506. # mode. It turns out that the SunPro C++ compiler does not properly
  17507. # handle `-M -o', and we need to detect this.
  17508. if depmode=$depmode \
  17509. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17510. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17511. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17512. >/dev/null 2>conftest.err &&
  17513. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17514. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17515. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17516. # icc doesn't choke on unknown options, it will just issue warnings
  17517. # or remarks (even with -Werror). So we grep stderr for any message
  17518. # that says an option was ignored or not supported.
  17519. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17520. # icc: Command line warning: ignoring option '-M'; no argument required
  17521. # The diagnosis changed in icc 8.0:
  17522. # icc: Command line remark: option '-MP' not supported
  17523. if (grep 'ignoring option' conftest.err ||
  17524. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17525. am_cv_CXX_dependencies_compiler_type=$depmode
  17526. break
  17527. fi
  17528. fi
  17529. done
  17530. cd ..
  17531. rm -rf conftest.dir
  17532. else
  17533. am_cv_CXX_dependencies_compiler_type=none
  17534. fi
  17535. fi
  17536. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  17537. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  17538. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  17539. if
  17540. test "x$enable_dependency_tracking" != xno \
  17541. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  17542. am__fastdepCXX_TRUE=
  17543. am__fastdepCXX_FALSE='#'
  17544. else
  17545. am__fastdepCXX_TRUE='#'
  17546. am__fastdepCXX_FALSE=
  17547. fi
  17548. # Find a good install program. We prefer a C program (faster),
  17549. # so one script is as good as another. But avoid the broken or
  17550. # incompatible versions:
  17551. # SysV /etc/install, /usr/sbin/install
  17552. # SunOS /usr/etc/install
  17553. # IRIX /sbin/install
  17554. # AIX /bin/install
  17555. # AmigaOS /C/install, which installs bootblocks on floppy discs
  17556. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  17557. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  17558. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17559. # OS/2's system install, which has a completely different semantic
  17560. # ./install, which can be erroneously created by make from ./install.sh.
  17561. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17562. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  17563. if test -z "$INSTALL"; then
  17564. if test "${ac_cv_path_install+set}" = set; then
  17565. echo $ECHO_N "(cached) $ECHO_C" >&6
  17566. else
  17567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17568. for as_dir in $PATH
  17569. do
  17570. IFS=$as_save_IFS
  17571. test -z "$as_dir" && as_dir=.
  17572. # Account for people who put trailing slashes in PATH elements.
  17573. case $as_dir/ in
  17574. ./ | .// | /cC/* | \
  17575. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17576. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17577. /usr/ucb/* ) ;;
  17578. *)
  17579. # OSF1 and SCO ODT 3.0 have their own names for install.
  17580. # Don't use installbsd from OSF since it installs stuff as root
  17581. # by default.
  17582. for ac_prog in ginstall scoinst install; do
  17583. for ac_exec_ext in '' $ac_executable_extensions; do
  17584. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  17585. if test $ac_prog = install &&
  17586. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17587. # AIX install. It has an incompatible calling convention.
  17588. :
  17589. elif test $ac_prog = install &&
  17590. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17591. # program-specific install script used by HP pwplus--don't use.
  17592. :
  17593. else
  17594. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17595. break 3
  17596. fi
  17597. fi
  17598. done
  17599. done
  17600. ;;
  17601. esac
  17602. done
  17603. fi
  17604. if test "${ac_cv_path_install+set}" = set; then
  17605. INSTALL=$ac_cv_path_install
  17606. else
  17607. # As a last resort, use the slow shell script. We don't cache a
  17608. # path for INSTALL within a source directory, because that will
  17609. # break other packages using the cache if that directory is
  17610. # removed, or if the path is relative.
  17611. INSTALL=$ac_install_sh
  17612. fi
  17613. fi
  17614. echo "$as_me:$LINENO: result: $INSTALL" >&5
  17615. echo "${ECHO_T}$INSTALL" >&6
  17616. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17617. # It thinks the first close brace ends the variable substitution.
  17618. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  17619. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  17620. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17621. ac_ext=c
  17622. ac_cpp='$CPP $CPPFLAGS'
  17623. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17624. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17625. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17626. if test -n "$ac_tool_prefix"; then
  17627. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17628. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17629. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17630. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17631. if test "${ac_cv_prog_CC+set}" = set; then
  17632. echo $ECHO_N "(cached) $ECHO_C" >&6
  17633. else
  17634. if test -n "$CC"; then
  17635. ac_cv_prog_CC="$CC" # Let the user override the test.
  17636. else
  17637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17638. for as_dir in $PATH
  17639. do
  17640. IFS=$as_save_IFS
  17641. test -z "$as_dir" && as_dir=.
  17642. for ac_exec_ext in '' $ac_executable_extensions; do
  17643. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17644. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17645. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17646. break 2
  17647. fi
  17648. done
  17649. done
  17650. fi
  17651. fi
  17652. CC=$ac_cv_prog_CC
  17653. if test -n "$CC"; then
  17654. echo "$as_me:$LINENO: result: $CC" >&5
  17655. echo "${ECHO_T}$CC" >&6
  17656. else
  17657. echo "$as_me:$LINENO: result: no" >&5
  17658. echo "${ECHO_T}no" >&6
  17659. fi
  17660. fi
  17661. if test -z "$ac_cv_prog_CC"; then
  17662. ac_ct_CC=$CC
  17663. # Extract the first word of "gcc", so it can be a program name with args.
  17664. set dummy gcc; ac_word=$2
  17665. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17666. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17667. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17668. echo $ECHO_N "(cached) $ECHO_C" >&6
  17669. else
  17670. if test -n "$ac_ct_CC"; then
  17671. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17672. else
  17673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17674. for as_dir in $PATH
  17675. do
  17676. IFS=$as_save_IFS
  17677. test -z "$as_dir" && as_dir=.
  17678. for ac_exec_ext in '' $ac_executable_extensions; do
  17679. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17680. ac_cv_prog_ac_ct_CC="gcc"
  17681. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17682. break 2
  17683. fi
  17684. done
  17685. done
  17686. fi
  17687. fi
  17688. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17689. if test -n "$ac_ct_CC"; then
  17690. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17691. echo "${ECHO_T}$ac_ct_CC" >&6
  17692. else
  17693. echo "$as_me:$LINENO: result: no" >&5
  17694. echo "${ECHO_T}no" >&6
  17695. fi
  17696. CC=$ac_ct_CC
  17697. else
  17698. CC="$ac_cv_prog_CC"
  17699. fi
  17700. if test -z "$CC"; then
  17701. if test -n "$ac_tool_prefix"; then
  17702. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17703. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17704. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17705. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17706. if test "${ac_cv_prog_CC+set}" = set; then
  17707. echo $ECHO_N "(cached) $ECHO_C" >&6
  17708. else
  17709. if test -n "$CC"; then
  17710. ac_cv_prog_CC="$CC" # Let the user override the test.
  17711. else
  17712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17713. for as_dir in $PATH
  17714. do
  17715. IFS=$as_save_IFS
  17716. test -z "$as_dir" && as_dir=.
  17717. for ac_exec_ext in '' $ac_executable_extensions; do
  17718. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17719. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17720. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17721. break 2
  17722. fi
  17723. done
  17724. done
  17725. fi
  17726. fi
  17727. CC=$ac_cv_prog_CC
  17728. if test -n "$CC"; then
  17729. echo "$as_me:$LINENO: result: $CC" >&5
  17730. echo "${ECHO_T}$CC" >&6
  17731. else
  17732. echo "$as_me:$LINENO: result: no" >&5
  17733. echo "${ECHO_T}no" >&6
  17734. fi
  17735. fi
  17736. if test -z "$ac_cv_prog_CC"; then
  17737. ac_ct_CC=$CC
  17738. # Extract the first word of "cc", so it can be a program name with args.
  17739. set dummy cc; ac_word=$2
  17740. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17741. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17742. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17743. echo $ECHO_N "(cached) $ECHO_C" >&6
  17744. else
  17745. if test -n "$ac_ct_CC"; then
  17746. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17747. else
  17748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17749. for as_dir in $PATH
  17750. do
  17751. IFS=$as_save_IFS
  17752. test -z "$as_dir" && as_dir=.
  17753. for ac_exec_ext in '' $ac_executable_extensions; do
  17754. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17755. ac_cv_prog_ac_ct_CC="cc"
  17756. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17757. break 2
  17758. fi
  17759. done
  17760. done
  17761. fi
  17762. fi
  17763. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17764. if test -n "$ac_ct_CC"; then
  17765. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17766. echo "${ECHO_T}$ac_ct_CC" >&6
  17767. else
  17768. echo "$as_me:$LINENO: result: no" >&5
  17769. echo "${ECHO_T}no" >&6
  17770. fi
  17771. CC=$ac_ct_CC
  17772. else
  17773. CC="$ac_cv_prog_CC"
  17774. fi
  17775. fi
  17776. if test -z "$CC"; then
  17777. # Extract the first word of "cc", so it can be a program name with args.
  17778. set dummy cc; ac_word=$2
  17779. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17780. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17781. if test "${ac_cv_prog_CC+set}" = set; then
  17782. echo $ECHO_N "(cached) $ECHO_C" >&6
  17783. else
  17784. if test -n "$CC"; then
  17785. ac_cv_prog_CC="$CC" # Let the user override the test.
  17786. else
  17787. ac_prog_rejected=no
  17788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17789. for as_dir in $PATH
  17790. do
  17791. IFS=$as_save_IFS
  17792. test -z "$as_dir" && as_dir=.
  17793. for ac_exec_ext in '' $ac_executable_extensions; do
  17794. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17795. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17796. ac_prog_rejected=yes
  17797. continue
  17798. fi
  17799. ac_cv_prog_CC="cc"
  17800. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17801. break 2
  17802. fi
  17803. done
  17804. done
  17805. if test $ac_prog_rejected = yes; then
  17806. # We found a bogon in the path, so make sure we never use it.
  17807. set dummy $ac_cv_prog_CC
  17808. shift
  17809. if test $# != 0; then
  17810. # We chose a different compiler from the bogus one.
  17811. # However, it has the same basename, so the bogon will be chosen
  17812. # first if we set CC to just the basename; use the full file name.
  17813. shift
  17814. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  17815. fi
  17816. fi
  17817. fi
  17818. fi
  17819. CC=$ac_cv_prog_CC
  17820. if test -n "$CC"; then
  17821. echo "$as_me:$LINENO: result: $CC" >&5
  17822. echo "${ECHO_T}$CC" >&6
  17823. else
  17824. echo "$as_me:$LINENO: result: no" >&5
  17825. echo "${ECHO_T}no" >&6
  17826. fi
  17827. fi
  17828. if test -z "$CC"; then
  17829. if test -n "$ac_tool_prefix"; then
  17830. for ac_prog in cl
  17831. do
  17832. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17833. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17834. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17835. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17836. if test "${ac_cv_prog_CC+set}" = set; then
  17837. echo $ECHO_N "(cached) $ECHO_C" >&6
  17838. else
  17839. if test -n "$CC"; then
  17840. ac_cv_prog_CC="$CC" # Let the user override the test.
  17841. else
  17842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17843. for as_dir in $PATH
  17844. do
  17845. IFS=$as_save_IFS
  17846. test -z "$as_dir" && as_dir=.
  17847. for ac_exec_ext in '' $ac_executable_extensions; do
  17848. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17849. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17850. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17851. break 2
  17852. fi
  17853. done
  17854. done
  17855. fi
  17856. fi
  17857. CC=$ac_cv_prog_CC
  17858. if test -n "$CC"; then
  17859. echo "$as_me:$LINENO: result: $CC" >&5
  17860. echo "${ECHO_T}$CC" >&6
  17861. else
  17862. echo "$as_me:$LINENO: result: no" >&5
  17863. echo "${ECHO_T}no" >&6
  17864. fi
  17865. test -n "$CC" && break
  17866. done
  17867. fi
  17868. if test -z "$CC"; then
  17869. ac_ct_CC=$CC
  17870. for ac_prog in cl
  17871. do
  17872. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17873. set dummy $ac_prog; ac_word=$2
  17874. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17875. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17876. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17877. echo $ECHO_N "(cached) $ECHO_C" >&6
  17878. else
  17879. if test -n "$ac_ct_CC"; then
  17880. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17881. else
  17882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17883. for as_dir in $PATH
  17884. do
  17885. IFS=$as_save_IFS
  17886. test -z "$as_dir" && as_dir=.
  17887. for ac_exec_ext in '' $ac_executable_extensions; do
  17888. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17889. ac_cv_prog_ac_ct_CC="$ac_prog"
  17890. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17891. break 2
  17892. fi
  17893. done
  17894. done
  17895. fi
  17896. fi
  17897. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17898. if test -n "$ac_ct_CC"; then
  17899. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17900. echo "${ECHO_T}$ac_ct_CC" >&6
  17901. else
  17902. echo "$as_me:$LINENO: result: no" >&5
  17903. echo "${ECHO_T}no" >&6
  17904. fi
  17905. test -n "$ac_ct_CC" && break
  17906. done
  17907. CC=$ac_ct_CC
  17908. fi
  17909. fi
  17910. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17911. See \`config.log' for more details." >&5
  17912. echo "$as_me: error: no acceptable C compiler found in \$PATH
  17913. See \`config.log' for more details." >&2;}
  17914. { (exit 1); exit 1; }; }
  17915. # Provide some information about the compiler.
  17916. echo "$as_me:$LINENO:" \
  17917. "checking for C compiler version" >&5
  17918. ac_compiler=`set X $ac_compile; echo $2`
  17919. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  17920. (eval $ac_compiler --version </dev/null >&5) 2>&5
  17921. ac_status=$?
  17922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17923. (exit $ac_status); }
  17924. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  17925. (eval $ac_compiler -v </dev/null >&5) 2>&5
  17926. ac_status=$?
  17927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17928. (exit $ac_status); }
  17929. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  17930. (eval $ac_compiler -V </dev/null >&5) 2>&5
  17931. ac_status=$?
  17932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17933. (exit $ac_status); }
  17934. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  17935. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  17936. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  17937. echo $ECHO_N "(cached) $ECHO_C" >&6
  17938. else
  17939. cat >conftest.$ac_ext <<_ACEOF
  17940. /* confdefs.h. */
  17941. _ACEOF
  17942. cat confdefs.h >>conftest.$ac_ext
  17943. cat >>conftest.$ac_ext <<_ACEOF
  17944. /* end confdefs.h. */
  17945. int
  17946. main ()
  17947. {
  17948. #ifndef __GNUC__
  17949. choke me
  17950. #endif
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. rm -f conftest.$ac_objext
  17956. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17957. (eval $ac_compile) 2>conftest.er1
  17958. ac_status=$?
  17959. grep -v '^ *+' conftest.er1 >conftest.err
  17960. rm -f conftest.er1
  17961. cat conftest.err >&5
  17962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17963. (exit $ac_status); } &&
  17964. { ac_try='test -z "$ac_c_werror_flag"
  17965. || test ! -s conftest.err'
  17966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17967. (eval $ac_try) 2>&5
  17968. ac_status=$?
  17969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17970. (exit $ac_status); }; } &&
  17971. { ac_try='test -s conftest.$ac_objext'
  17972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17973. (eval $ac_try) 2>&5
  17974. ac_status=$?
  17975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17976. (exit $ac_status); }; }; then
  17977. ac_compiler_gnu=yes
  17978. else
  17979. echo "$as_me: failed program was:" >&5
  17980. sed 's/^/| /' conftest.$ac_ext >&5
  17981. ac_compiler_gnu=no
  17982. fi
  17983. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17984. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17985. fi
  17986. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17987. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  17988. GCC=`test $ac_compiler_gnu = yes && echo yes`
  17989. ac_test_CFLAGS=${CFLAGS+set}
  17990. ac_save_CFLAGS=$CFLAGS
  17991. CFLAGS="-g"
  17992. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17993. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  17994. if test "${ac_cv_prog_cc_g+set}" = set; then
  17995. echo $ECHO_N "(cached) $ECHO_C" >&6
  17996. else
  17997. cat >conftest.$ac_ext <<_ACEOF
  17998. /* confdefs.h. */
  17999. _ACEOF
  18000. cat confdefs.h >>conftest.$ac_ext
  18001. cat >>conftest.$ac_ext <<_ACEOF
  18002. /* end confdefs.h. */
  18003. int
  18004. main ()
  18005. {
  18006. ;
  18007. return 0;
  18008. }
  18009. _ACEOF
  18010. rm -f conftest.$ac_objext
  18011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18012. (eval $ac_compile) 2>conftest.er1
  18013. ac_status=$?
  18014. grep -v '^ *+' conftest.er1 >conftest.err
  18015. rm -f conftest.er1
  18016. cat conftest.err >&5
  18017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18018. (exit $ac_status); } &&
  18019. { ac_try='test -z "$ac_c_werror_flag"
  18020. || test ! -s conftest.err'
  18021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18022. (eval $ac_try) 2>&5
  18023. ac_status=$?
  18024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18025. (exit $ac_status); }; } &&
  18026. { ac_try='test -s conftest.$ac_objext'
  18027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18028. (eval $ac_try) 2>&5
  18029. ac_status=$?
  18030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18031. (exit $ac_status); }; }; then
  18032. ac_cv_prog_cc_g=yes
  18033. else
  18034. echo "$as_me: failed program was:" >&5
  18035. sed 's/^/| /' conftest.$ac_ext >&5
  18036. ac_cv_prog_cc_g=no
  18037. fi
  18038. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18039. fi
  18040. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  18041. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  18042. if test "$ac_test_CFLAGS" = set; then
  18043. CFLAGS=$ac_save_CFLAGS
  18044. elif test $ac_cv_prog_cc_g = yes; then
  18045. if test "$GCC" = yes; then
  18046. CFLAGS="-g -O2"
  18047. else
  18048. CFLAGS="-g"
  18049. fi
  18050. else
  18051. if test "$GCC" = yes; then
  18052. CFLAGS="-O2"
  18053. else
  18054. CFLAGS=
  18055. fi
  18056. fi
  18057. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  18058. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  18059. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  18060. echo $ECHO_N "(cached) $ECHO_C" >&6
  18061. else
  18062. ac_cv_prog_cc_stdc=no
  18063. ac_save_CC=$CC
  18064. cat >conftest.$ac_ext <<_ACEOF
  18065. /* confdefs.h. */
  18066. _ACEOF
  18067. cat confdefs.h >>conftest.$ac_ext
  18068. cat >>conftest.$ac_ext <<_ACEOF
  18069. /* end confdefs.h. */
  18070. #include <stdarg.h>
  18071. #include <stdio.h>
  18072. #include <sys/types.h>
  18073. #include <sys/stat.h>
  18074. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  18075. struct buf { int x; };
  18076. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  18077. static char *e (p, i)
  18078. char **p;
  18079. int i;
  18080. {
  18081. return p[i];
  18082. }
  18083. static char *f (char * (*g) (char **, int), char **p, ...)
  18084. {
  18085. char *s;
  18086. va_list v;
  18087. va_start (v,p);
  18088. s = g (p, va_arg (v,int));
  18089. va_end (v);
  18090. return s;
  18091. }
  18092. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  18093. function prototypes and stuff, but not '\xHH' hex character constants.
  18094. These don't provoke an error unfortunately, instead are silently treated
  18095. as 'x'. The following induces an error, until -std1 is added to get
  18096. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  18097. array size at least. It's necessary to write '\x00'==0 to get something
  18098. that's true only with -std1. */
  18099. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  18100. int test (int i, double x);
  18101. struct s1 {int (*f) (int a);};
  18102. struct s2 {int (*f) (double a);};
  18103. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  18104. int argc;
  18105. char **argv;
  18106. int
  18107. main ()
  18108. {
  18109. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  18110. ;
  18111. return 0;
  18112. }
  18113. _ACEOF
  18114. # Don't try gcc -ansi; that turns off useful extensions and
  18115. # breaks some systems' header files.
  18116. # AIX -qlanglvl=ansi
  18117. # Ultrix and OSF/1 -std1
  18118. # HP-UX 10.20 and later -Ae
  18119. # HP-UX older versions -Aa -D_HPUX_SOURCE
  18120. # SVR4 -Xc -D__EXTENSIONS__
  18121. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18122. do
  18123. CC="$ac_save_CC $ac_arg"
  18124. rm -f conftest.$ac_objext
  18125. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18126. (eval $ac_compile) 2>conftest.er1
  18127. ac_status=$?
  18128. grep -v '^ *+' conftest.er1 >conftest.err
  18129. rm -f conftest.er1
  18130. cat conftest.err >&5
  18131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18132. (exit $ac_status); } &&
  18133. { ac_try='test -z "$ac_c_werror_flag"
  18134. || test ! -s conftest.err'
  18135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18136. (eval $ac_try) 2>&5
  18137. ac_status=$?
  18138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18139. (exit $ac_status); }; } &&
  18140. { ac_try='test -s conftest.$ac_objext'
  18141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18142. (eval $ac_try) 2>&5
  18143. ac_status=$?
  18144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18145. (exit $ac_status); }; }; then
  18146. ac_cv_prog_cc_stdc=$ac_arg
  18147. break
  18148. else
  18149. echo "$as_me: failed program was:" >&5
  18150. sed 's/^/| /' conftest.$ac_ext >&5
  18151. fi
  18152. rm -f conftest.err conftest.$ac_objext
  18153. done
  18154. rm -f conftest.$ac_ext conftest.$ac_objext
  18155. CC=$ac_save_CC
  18156. fi
  18157. case "x$ac_cv_prog_cc_stdc" in
  18158. x|xno)
  18159. echo "$as_me:$LINENO: result: none needed" >&5
  18160. echo "${ECHO_T}none needed" >&6 ;;
  18161. *)
  18162. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  18163. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  18164. CC="$CC $ac_cv_prog_cc_stdc" ;;
  18165. esac
  18166. # Some people use a C++ compiler to compile C. Since we use `exit',
  18167. # in C++ we need to declare it. In case someone uses the same compiler
  18168. # for both compiling C and C++ we need to have the C++ compiler decide
  18169. # the declaration of exit, since it's the most demanding environment.
  18170. cat >conftest.$ac_ext <<_ACEOF
  18171. #ifndef __cplusplus
  18172. choke me
  18173. #endif
  18174. _ACEOF
  18175. rm -f conftest.$ac_objext
  18176. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18177. (eval $ac_compile) 2>conftest.er1
  18178. ac_status=$?
  18179. grep -v '^ *+' conftest.er1 >conftest.err
  18180. rm -f conftest.er1
  18181. cat conftest.err >&5
  18182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18183. (exit $ac_status); } &&
  18184. { ac_try='test -z "$ac_c_werror_flag"
  18185. || test ! -s conftest.err'
  18186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18187. (eval $ac_try) 2>&5
  18188. ac_status=$?
  18189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18190. (exit $ac_status); }; } &&
  18191. { ac_try='test -s conftest.$ac_objext'
  18192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18193. (eval $ac_try) 2>&5
  18194. ac_status=$?
  18195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18196. (exit $ac_status); }; }; then
  18197. for ac_declaration in \
  18198. '' \
  18199. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  18200. 'extern "C" void std::exit (int); using std::exit;' \
  18201. 'extern "C" void exit (int) throw ();' \
  18202. 'extern "C" void exit (int);' \
  18203. 'void exit (int);'
  18204. do
  18205. cat >conftest.$ac_ext <<_ACEOF
  18206. /* confdefs.h. */
  18207. _ACEOF
  18208. cat confdefs.h >>conftest.$ac_ext
  18209. cat >>conftest.$ac_ext <<_ACEOF
  18210. /* end confdefs.h. */
  18211. $ac_declaration
  18212. #include <stdlib.h>
  18213. int
  18214. main ()
  18215. {
  18216. exit (42);
  18217. ;
  18218. return 0;
  18219. }
  18220. _ACEOF
  18221. rm -f conftest.$ac_objext
  18222. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18223. (eval $ac_compile) 2>conftest.er1
  18224. ac_status=$?
  18225. grep -v '^ *+' conftest.er1 >conftest.err
  18226. rm -f conftest.er1
  18227. cat conftest.err >&5
  18228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18229. (exit $ac_status); } &&
  18230. { ac_try='test -z "$ac_c_werror_flag"
  18231. || test ! -s conftest.err'
  18232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18233. (eval $ac_try) 2>&5
  18234. ac_status=$?
  18235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18236. (exit $ac_status); }; } &&
  18237. { ac_try='test -s conftest.$ac_objext'
  18238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18239. (eval $ac_try) 2>&5
  18240. ac_status=$?
  18241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18242. (exit $ac_status); }; }; then
  18243. :
  18244. else
  18245. echo "$as_me: failed program was:" >&5
  18246. sed 's/^/| /' conftest.$ac_ext >&5
  18247. continue
  18248. fi
  18249. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18250. cat >conftest.$ac_ext <<_ACEOF
  18251. /* confdefs.h. */
  18252. _ACEOF
  18253. cat confdefs.h >>conftest.$ac_ext
  18254. cat >>conftest.$ac_ext <<_ACEOF
  18255. /* end confdefs.h. */
  18256. $ac_declaration
  18257. int
  18258. main ()
  18259. {
  18260. exit (42);
  18261. ;
  18262. return 0;
  18263. }
  18264. _ACEOF
  18265. rm -f conftest.$ac_objext
  18266. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18267. (eval $ac_compile) 2>conftest.er1
  18268. ac_status=$?
  18269. grep -v '^ *+' conftest.er1 >conftest.err
  18270. rm -f conftest.er1
  18271. cat conftest.err >&5
  18272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18273. (exit $ac_status); } &&
  18274. { ac_try='test -z "$ac_c_werror_flag"
  18275. || test ! -s conftest.err'
  18276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18277. (eval $ac_try) 2>&5
  18278. ac_status=$?
  18279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18280. (exit $ac_status); }; } &&
  18281. { ac_try='test -s conftest.$ac_objext'
  18282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18283. (eval $ac_try) 2>&5
  18284. ac_status=$?
  18285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18286. (exit $ac_status); }; }; then
  18287. break
  18288. else
  18289. echo "$as_me: failed program was:" >&5
  18290. sed 's/^/| /' conftest.$ac_ext >&5
  18291. fi
  18292. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18293. done
  18294. rm -f conftest*
  18295. if test -n "$ac_declaration"; then
  18296. echo '#ifdef __cplusplus' >>confdefs.h
  18297. echo $ac_declaration >>confdefs.h
  18298. echo '#endif' >>confdefs.h
  18299. fi
  18300. else
  18301. echo "$as_me: failed program was:" >&5
  18302. sed 's/^/| /' conftest.$ac_ext >&5
  18303. fi
  18304. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18305. ac_ext=c
  18306. ac_cpp='$CPP $CPPFLAGS'
  18307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18310. ac_ext=cc
  18311. ac_cpp='$CXXCPP $CPPFLAGS'
  18312. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18313. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18314. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18315. if test -n "$ac_tool_prefix"; then
  18316. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  18317. do
  18318. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18319. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18320. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18321. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18322. if test "${ac_cv_prog_CXX+set}" = set; then
  18323. echo $ECHO_N "(cached) $ECHO_C" >&6
  18324. else
  18325. if test -n "$CXX"; then
  18326. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18327. else
  18328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18329. for as_dir in $PATH
  18330. do
  18331. IFS=$as_save_IFS
  18332. test -z "$as_dir" && as_dir=.
  18333. for ac_exec_ext in '' $ac_executable_extensions; do
  18334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18335. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18336. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18337. break 2
  18338. fi
  18339. done
  18340. done
  18341. fi
  18342. fi
  18343. CXX=$ac_cv_prog_CXX
  18344. if test -n "$CXX"; then
  18345. echo "$as_me:$LINENO: result: $CXX" >&5
  18346. echo "${ECHO_T}$CXX" >&6
  18347. else
  18348. echo "$as_me:$LINENO: result: no" >&5
  18349. echo "${ECHO_T}no" >&6
  18350. fi
  18351. test -n "$CXX" && break
  18352. done
  18353. fi
  18354. if test -z "$CXX"; then
  18355. ac_ct_CXX=$CXX
  18356. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  18357. do
  18358. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18359. set dummy $ac_prog; ac_word=$2
  18360. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18361. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18362. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18363. echo $ECHO_N "(cached) $ECHO_C" >&6
  18364. else
  18365. if test -n "$ac_ct_CXX"; then
  18366. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18367. else
  18368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18369. for as_dir in $PATH
  18370. do
  18371. IFS=$as_save_IFS
  18372. test -z "$as_dir" && as_dir=.
  18373. for ac_exec_ext in '' $ac_executable_extensions; do
  18374. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18375. ac_cv_prog_ac_ct_CXX="$ac_prog"
  18376. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18377. break 2
  18378. fi
  18379. done
  18380. done
  18381. fi
  18382. fi
  18383. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18384. if test -n "$ac_ct_CXX"; then
  18385. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18386. echo "${ECHO_T}$ac_ct_CXX" >&6
  18387. else
  18388. echo "$as_me:$LINENO: result: no" >&5
  18389. echo "${ECHO_T}no" >&6
  18390. fi
  18391. test -n "$ac_ct_CXX" && break
  18392. done
  18393. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  18394. CXX=$ac_ct_CXX
  18395. fi
  18396. # Provide some information about the compiler.
  18397. echo "$as_me:$LINENO:" \
  18398. "checking for C++ compiler version" >&5
  18399. ac_compiler=`set X $ac_compile; echo $2`
  18400. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  18401. (eval $ac_compiler --version </dev/null >&5) 2>&5
  18402. ac_status=$?
  18403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18404. (exit $ac_status); }
  18405. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  18406. (eval $ac_compiler -v </dev/null >&5) 2>&5
  18407. ac_status=$?
  18408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18409. (exit $ac_status); }
  18410. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  18411. (eval $ac_compiler -V </dev/null >&5) 2>&5
  18412. ac_status=$?
  18413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18414. (exit $ac_status); }
  18415. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18416. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  18417. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18418. echo $ECHO_N "(cached) $ECHO_C" >&6
  18419. else
  18420. cat >conftest.$ac_ext <<_ACEOF
  18421. /* confdefs.h. */
  18422. _ACEOF
  18423. cat confdefs.h >>conftest.$ac_ext
  18424. cat >>conftest.$ac_ext <<_ACEOF
  18425. /* end confdefs.h. */
  18426. int
  18427. main ()
  18428. {
  18429. #ifndef __GNUC__
  18430. choke me
  18431. #endif
  18432. ;
  18433. return 0;
  18434. }
  18435. _ACEOF
  18436. rm -f conftest.$ac_objext
  18437. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18438. (eval $ac_compile) 2>conftest.er1
  18439. ac_status=$?
  18440. grep -v '^ *+' conftest.er1 >conftest.err
  18441. rm -f conftest.er1
  18442. cat conftest.err >&5
  18443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18444. (exit $ac_status); } &&
  18445. { ac_try='test -z "$ac_cxx_werror_flag"
  18446. || test ! -s conftest.err'
  18447. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18448. (eval $ac_try) 2>&5
  18449. ac_status=$?
  18450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18451. (exit $ac_status); }; } &&
  18452. { ac_try='test -s conftest.$ac_objext'
  18453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18454. (eval $ac_try) 2>&5
  18455. ac_status=$?
  18456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18457. (exit $ac_status); }; }; then
  18458. ac_compiler_gnu=yes
  18459. else
  18460. echo "$as_me: failed program was:" >&5
  18461. sed 's/^/| /' conftest.$ac_ext >&5
  18462. ac_compiler_gnu=no
  18463. fi
  18464. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18465. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18466. fi
  18467. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18468. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  18469. GXX=`test $ac_compiler_gnu = yes && echo yes`
  18470. ac_test_CXXFLAGS=${CXXFLAGS+set}
  18471. ac_save_CXXFLAGS=$CXXFLAGS
  18472. CXXFLAGS="-g"
  18473. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18474. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  18475. if test "${ac_cv_prog_cxx_g+set}" = set; then
  18476. echo $ECHO_N "(cached) $ECHO_C" >&6
  18477. else
  18478. cat >conftest.$ac_ext <<_ACEOF
  18479. /* confdefs.h. */
  18480. _ACEOF
  18481. cat confdefs.h >>conftest.$ac_ext
  18482. cat >>conftest.$ac_ext <<_ACEOF
  18483. /* end confdefs.h. */
  18484. int
  18485. main ()
  18486. {
  18487. ;
  18488. return 0;
  18489. }
  18490. _ACEOF
  18491. rm -f conftest.$ac_objext
  18492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18493. (eval $ac_compile) 2>conftest.er1
  18494. ac_status=$?
  18495. grep -v '^ *+' conftest.er1 >conftest.err
  18496. rm -f conftest.er1
  18497. cat conftest.err >&5
  18498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18499. (exit $ac_status); } &&
  18500. { ac_try='test -z "$ac_cxx_werror_flag"
  18501. || test ! -s conftest.err'
  18502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18503. (eval $ac_try) 2>&5
  18504. ac_status=$?
  18505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18506. (exit $ac_status); }; } &&
  18507. { ac_try='test -s conftest.$ac_objext'
  18508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18509. (eval $ac_try) 2>&5
  18510. ac_status=$?
  18511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18512. (exit $ac_status); }; }; then
  18513. ac_cv_prog_cxx_g=yes
  18514. else
  18515. echo "$as_me: failed program was:" >&5
  18516. sed 's/^/| /' conftest.$ac_ext >&5
  18517. ac_cv_prog_cxx_g=no
  18518. fi
  18519. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18520. fi
  18521. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18522. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  18523. if test "$ac_test_CXXFLAGS" = set; then
  18524. CXXFLAGS=$ac_save_CXXFLAGS
  18525. elif test $ac_cv_prog_cxx_g = yes; then
  18526. if test "$GXX" = yes; then
  18527. CXXFLAGS="-g -O2"
  18528. else
  18529. CXXFLAGS="-g"
  18530. fi
  18531. else
  18532. if test "$GXX" = yes; then
  18533. CXXFLAGS="-O2"
  18534. else
  18535. CXXFLAGS=
  18536. fi
  18537. fi
  18538. for ac_declaration in \
  18539. '' \
  18540. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  18541. 'extern "C" void std::exit (int); using std::exit;' \
  18542. 'extern "C" void exit (int) throw ();' \
  18543. 'extern "C" void exit (int);' \
  18544. 'void exit (int);'
  18545. do
  18546. cat >conftest.$ac_ext <<_ACEOF
  18547. /* confdefs.h. */
  18548. _ACEOF
  18549. cat confdefs.h >>conftest.$ac_ext
  18550. cat >>conftest.$ac_ext <<_ACEOF
  18551. /* end confdefs.h. */
  18552. $ac_declaration
  18553. #include <stdlib.h>
  18554. int
  18555. main ()
  18556. {
  18557. exit (42);
  18558. ;
  18559. return 0;
  18560. }
  18561. _ACEOF
  18562. rm -f conftest.$ac_objext
  18563. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18564. (eval $ac_compile) 2>conftest.er1
  18565. ac_status=$?
  18566. grep -v '^ *+' conftest.er1 >conftest.err
  18567. rm -f conftest.er1
  18568. cat conftest.err >&5
  18569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18570. (exit $ac_status); } &&
  18571. { ac_try='test -z "$ac_cxx_werror_flag"
  18572. || test ! -s conftest.err'
  18573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18574. (eval $ac_try) 2>&5
  18575. ac_status=$?
  18576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18577. (exit $ac_status); }; } &&
  18578. { ac_try='test -s conftest.$ac_objext'
  18579. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18580. (eval $ac_try) 2>&5
  18581. ac_status=$?
  18582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18583. (exit $ac_status); }; }; then
  18584. :
  18585. else
  18586. echo "$as_me: failed program was:" >&5
  18587. sed 's/^/| /' conftest.$ac_ext >&5
  18588. continue
  18589. fi
  18590. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18591. cat >conftest.$ac_ext <<_ACEOF
  18592. /* confdefs.h. */
  18593. _ACEOF
  18594. cat confdefs.h >>conftest.$ac_ext
  18595. cat >>conftest.$ac_ext <<_ACEOF
  18596. /* end confdefs.h. */
  18597. $ac_declaration
  18598. int
  18599. main ()
  18600. {
  18601. exit (42);
  18602. ;
  18603. return 0;
  18604. }
  18605. _ACEOF
  18606. rm -f conftest.$ac_objext
  18607. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18608. (eval $ac_compile) 2>conftest.er1
  18609. ac_status=$?
  18610. grep -v '^ *+' conftest.er1 >conftest.err
  18611. rm -f conftest.er1
  18612. cat conftest.err >&5
  18613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18614. (exit $ac_status); } &&
  18615. { ac_try='test -z "$ac_cxx_werror_flag"
  18616. || test ! -s conftest.err'
  18617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18618. (eval $ac_try) 2>&5
  18619. ac_status=$?
  18620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18621. (exit $ac_status); }; } &&
  18622. { ac_try='test -s conftest.$ac_objext'
  18623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18624. (eval $ac_try) 2>&5
  18625. ac_status=$?
  18626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18627. (exit $ac_status); }; }; then
  18628. break
  18629. else
  18630. echo "$as_me: failed program was:" >&5
  18631. sed 's/^/| /' conftest.$ac_ext >&5
  18632. fi
  18633. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18634. done
  18635. rm -f conftest*
  18636. if test -n "$ac_declaration"; then
  18637. echo '#ifdef __cplusplus' >>confdefs.h
  18638. echo $ac_declaration >>confdefs.h
  18639. echo '#endif' >>confdefs.h
  18640. fi
  18641. ac_ext=c
  18642. ac_cpp='$CPP $CPPFLAGS'
  18643. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18644. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18645. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18646. ac_ext=c
  18647. ac_cpp='$CPP $CPPFLAGS'
  18648. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18649. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18650. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18651. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18652. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  18653. # On Suns, sometimes $CPP names a directory.
  18654. if test -n "$CPP" && test -d "$CPP"; then
  18655. CPP=
  18656. fi
  18657. if test -z "$CPP"; then
  18658. if test "${ac_cv_prog_CPP+set}" = set; then
  18659. echo $ECHO_N "(cached) $ECHO_C" >&6
  18660. else
  18661. # Double quotes because CPP needs to be expanded
  18662. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18663. do
  18664. ac_preproc_ok=false
  18665. for ac_c_preproc_warn_flag in '' yes
  18666. do
  18667. # Use a header file that comes with gcc, so configuring glibc
  18668. # with a fresh cross-compiler works.
  18669. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18670. # <limits.h> exists even on freestanding compilers.
  18671. # On the NeXT, cc -E runs the code through the compiler's parser,
  18672. # not just through cpp. "Syntax error" is here to catch this case.
  18673. cat >conftest.$ac_ext <<_ACEOF
  18674. /* confdefs.h. */
  18675. _ACEOF
  18676. cat confdefs.h >>conftest.$ac_ext
  18677. cat >>conftest.$ac_ext <<_ACEOF
  18678. /* end confdefs.h. */
  18679. #ifdef __STDC__
  18680. # include <limits.h>
  18681. #else
  18682. # include <assert.h>
  18683. #endif
  18684. Syntax error
  18685. _ACEOF
  18686. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18687. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18688. ac_status=$?
  18689. grep -v '^ *+' conftest.er1 >conftest.err
  18690. rm -f conftest.er1
  18691. cat conftest.err >&5
  18692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18693. (exit $ac_status); } >/dev/null; then
  18694. if test -s conftest.err; then
  18695. ac_cpp_err=$ac_c_preproc_warn_flag
  18696. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18697. else
  18698. ac_cpp_err=
  18699. fi
  18700. else
  18701. ac_cpp_err=yes
  18702. fi
  18703. if test -z "$ac_cpp_err"; then
  18704. :
  18705. else
  18706. echo "$as_me: failed program was:" >&5
  18707. sed 's/^/| /' conftest.$ac_ext >&5
  18708. # Broken: fails on valid input.
  18709. continue
  18710. fi
  18711. rm -f conftest.err conftest.$ac_ext
  18712. # OK, works on sane cases. Now check whether non-existent headers
  18713. # can be detected and how.
  18714. cat >conftest.$ac_ext <<_ACEOF
  18715. /* confdefs.h. */
  18716. _ACEOF
  18717. cat confdefs.h >>conftest.$ac_ext
  18718. cat >>conftest.$ac_ext <<_ACEOF
  18719. /* end confdefs.h. */
  18720. #include <ac_nonexistent.h>
  18721. _ACEOF
  18722. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18723. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18724. ac_status=$?
  18725. grep -v '^ *+' conftest.er1 >conftest.err
  18726. rm -f conftest.er1
  18727. cat conftest.err >&5
  18728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18729. (exit $ac_status); } >/dev/null; then
  18730. if test -s conftest.err; then
  18731. ac_cpp_err=$ac_c_preproc_warn_flag
  18732. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18733. else
  18734. ac_cpp_err=
  18735. fi
  18736. else
  18737. ac_cpp_err=yes
  18738. fi
  18739. if test -z "$ac_cpp_err"; then
  18740. # Broken: success on invalid input.
  18741. continue
  18742. else
  18743. echo "$as_me: failed program was:" >&5
  18744. sed 's/^/| /' conftest.$ac_ext >&5
  18745. # Passes both tests.
  18746. ac_preproc_ok=:
  18747. break
  18748. fi
  18749. rm -f conftest.err conftest.$ac_ext
  18750. done
  18751. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18752. rm -f conftest.err conftest.$ac_ext
  18753. if $ac_preproc_ok; then
  18754. break
  18755. fi
  18756. done
  18757. ac_cv_prog_CPP=$CPP
  18758. fi
  18759. CPP=$ac_cv_prog_CPP
  18760. else
  18761. ac_cv_prog_CPP=$CPP
  18762. fi
  18763. echo "$as_me:$LINENO: result: $CPP" >&5
  18764. echo "${ECHO_T}$CPP" >&6
  18765. ac_preproc_ok=false
  18766. for ac_c_preproc_warn_flag in '' yes
  18767. do
  18768. # Use a header file that comes with gcc, so configuring glibc
  18769. # with a fresh cross-compiler works.
  18770. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18771. # <limits.h> exists even on freestanding compilers.
  18772. # On the NeXT, cc -E runs the code through the compiler's parser,
  18773. # not just through cpp. "Syntax error" is here to catch this case.
  18774. cat >conftest.$ac_ext <<_ACEOF
  18775. /* confdefs.h. */
  18776. _ACEOF
  18777. cat confdefs.h >>conftest.$ac_ext
  18778. cat >>conftest.$ac_ext <<_ACEOF
  18779. /* end confdefs.h. */
  18780. #ifdef __STDC__
  18781. # include <limits.h>
  18782. #else
  18783. # include <assert.h>
  18784. #endif
  18785. Syntax error
  18786. _ACEOF
  18787. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18788. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18789. ac_status=$?
  18790. grep -v '^ *+' conftest.er1 >conftest.err
  18791. rm -f conftest.er1
  18792. cat conftest.err >&5
  18793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18794. (exit $ac_status); } >/dev/null; then
  18795. if test -s conftest.err; then
  18796. ac_cpp_err=$ac_c_preproc_warn_flag
  18797. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18798. else
  18799. ac_cpp_err=
  18800. fi
  18801. else
  18802. ac_cpp_err=yes
  18803. fi
  18804. if test -z "$ac_cpp_err"; then
  18805. :
  18806. else
  18807. echo "$as_me: failed program was:" >&5
  18808. sed 's/^/| /' conftest.$ac_ext >&5
  18809. # Broken: fails on valid input.
  18810. continue
  18811. fi
  18812. rm -f conftest.err conftest.$ac_ext
  18813. # OK, works on sane cases. Now check whether non-existent headers
  18814. # can be detected and how.
  18815. cat >conftest.$ac_ext <<_ACEOF
  18816. /* confdefs.h. */
  18817. _ACEOF
  18818. cat confdefs.h >>conftest.$ac_ext
  18819. cat >>conftest.$ac_ext <<_ACEOF
  18820. /* end confdefs.h. */
  18821. #include <ac_nonexistent.h>
  18822. _ACEOF
  18823. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18824. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18825. ac_status=$?
  18826. grep -v '^ *+' conftest.er1 >conftest.err
  18827. rm -f conftest.er1
  18828. cat conftest.err >&5
  18829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18830. (exit $ac_status); } >/dev/null; then
  18831. if test -s conftest.err; then
  18832. ac_cpp_err=$ac_c_preproc_warn_flag
  18833. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18834. else
  18835. ac_cpp_err=
  18836. fi
  18837. else
  18838. ac_cpp_err=yes
  18839. fi
  18840. if test -z "$ac_cpp_err"; then
  18841. # Broken: success on invalid input.
  18842. continue
  18843. else
  18844. echo "$as_me: failed program was:" >&5
  18845. sed 's/^/| /' conftest.$ac_ext >&5
  18846. # Passes both tests.
  18847. ac_preproc_ok=:
  18848. break
  18849. fi
  18850. rm -f conftest.err conftest.$ac_ext
  18851. done
  18852. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18853. rm -f conftest.err conftest.$ac_ext
  18854. if $ac_preproc_ok; then
  18855. :
  18856. else
  18857. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  18858. See \`config.log' for more details." >&5
  18859. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  18860. See \`config.log' for more details." >&2;}
  18861. { (exit 1); exit 1; }; }
  18862. fi
  18863. ac_ext=c
  18864. ac_cpp='$CPP $CPPFLAGS'
  18865. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18866. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18867. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18868. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  18869. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  18870. LN_S=$as_ln_s
  18871. if test "$LN_S" = "ln -s"; then
  18872. echo "$as_me:$LINENO: result: yes" >&5
  18873. echo "${ECHO_T}yes" >&6
  18874. else
  18875. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  18876. echo "${ECHO_T}no, using $LN_S" >&6
  18877. fi
  18878. if test -n "$ac_tool_prefix"; then
  18879. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  18880. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  18881. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18882. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18883. if test "${ac_cv_prog_RANLIB+set}" = set; then
  18884. echo $ECHO_N "(cached) $ECHO_C" >&6
  18885. else
  18886. if test -n "$RANLIB"; then
  18887. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  18888. else
  18889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18890. for as_dir in $PATH
  18891. do
  18892. IFS=$as_save_IFS
  18893. test -z "$as_dir" && as_dir=.
  18894. for ac_exec_ext in '' $ac_executable_extensions; do
  18895. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18896. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  18897. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18898. break 2
  18899. fi
  18900. done
  18901. done
  18902. fi
  18903. fi
  18904. RANLIB=$ac_cv_prog_RANLIB
  18905. if test -n "$RANLIB"; then
  18906. echo "$as_me:$LINENO: result: $RANLIB" >&5
  18907. echo "${ECHO_T}$RANLIB" >&6
  18908. else
  18909. echo "$as_me:$LINENO: result: no" >&5
  18910. echo "${ECHO_T}no" >&6
  18911. fi
  18912. fi
  18913. if test -z "$ac_cv_prog_RANLIB"; then
  18914. ac_ct_RANLIB=$RANLIB
  18915. # Extract the first word of "ranlib", so it can be a program name with args.
  18916. set dummy ranlib; ac_word=$2
  18917. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18918. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18919. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  18920. echo $ECHO_N "(cached) $ECHO_C" >&6
  18921. else
  18922. if test -n "$ac_ct_RANLIB"; then
  18923. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  18924. else
  18925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18926. for as_dir in $PATH
  18927. do
  18928. IFS=$as_save_IFS
  18929. test -z "$as_dir" && as_dir=.
  18930. for ac_exec_ext in '' $ac_executable_extensions; do
  18931. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18932. ac_cv_prog_ac_ct_RANLIB="ranlib"
  18933. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18934. break 2
  18935. fi
  18936. done
  18937. done
  18938. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  18939. fi
  18940. fi
  18941. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  18942. if test -n "$ac_ct_RANLIB"; then
  18943. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  18944. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  18945. else
  18946. echo "$as_me:$LINENO: result: no" >&5
  18947. echo "${ECHO_T}no" >&6
  18948. fi
  18949. RANLIB=$ac_ct_RANLIB
  18950. else
  18951. RANLIB="$ac_cv_prog_RANLIB"
  18952. fi
  18953. for ac_prog in gawk mawk nawk awk
  18954. do
  18955. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18956. set dummy $ac_prog; ac_word=$2
  18957. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18958. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18959. if test "${ac_cv_prog_AWK+set}" = set; then
  18960. echo $ECHO_N "(cached) $ECHO_C" >&6
  18961. else
  18962. if test -n "$AWK"; then
  18963. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18964. else
  18965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18966. for as_dir in $PATH
  18967. do
  18968. IFS=$as_save_IFS
  18969. test -z "$as_dir" && as_dir=.
  18970. for ac_exec_ext in '' $ac_executable_extensions; do
  18971. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18972. ac_cv_prog_AWK="$ac_prog"
  18973. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18974. break 2
  18975. fi
  18976. done
  18977. done
  18978. fi
  18979. fi
  18980. AWK=$ac_cv_prog_AWK
  18981. if test -n "$AWK"; then
  18982. echo "$as_me:$LINENO: result: $AWK" >&5
  18983. echo "${ECHO_T}$AWK" >&6
  18984. else
  18985. echo "$as_me:$LINENO: result: no" >&5
  18986. echo "${ECHO_T}no" >&6
  18987. fi
  18988. test -n "$AWK" && break
  18989. done
  18990. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18991. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  18992. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  18993. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  18994. echo $ECHO_N "(cached) $ECHO_C" >&6
  18995. else
  18996. cat >conftest.make <<\_ACEOF
  18997. all:
  18998. @echo 'ac_maketemp="$(MAKE)"'
  18999. _ACEOF
  19000. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19001. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  19002. if test -n "$ac_maketemp"; then
  19003. eval ac_cv_prog_make_${ac_make}_set=yes
  19004. else
  19005. eval ac_cv_prog_make_${ac_make}_set=no
  19006. fi
  19007. rm -f conftest.make
  19008. fi
  19009. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  19010. echo "$as_me:$LINENO: result: yes" >&5
  19011. echo "${ECHO_T}yes" >&6
  19012. SET_MAKE=
  19013. else
  19014. echo "$as_me:$LINENO: result: no" >&5
  19015. echo "${ECHO_T}no" >&6
  19016. SET_MAKE="MAKE=${MAKE-make}"
  19017. fi
  19018. # Extract the first word of "printf", so it can be a program name with args.
  19019. set dummy printf; ac_word=$2
  19020. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19021. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19022. if test "${ac_cv_path_PRINTF+set}" = set; then
  19023. echo $ECHO_N "(cached) $ECHO_C" >&6
  19024. else
  19025. case $PRINTF in
  19026. [\\/]* | ?:[\\/]*)
  19027. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  19028. ;;
  19029. *)
  19030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19031. for as_dir in $PATH
  19032. do
  19033. IFS=$as_save_IFS
  19034. test -z "$as_dir" && as_dir=.
  19035. for ac_exec_ext in '' $ac_executable_extensions; do
  19036. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19037. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  19038. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19039. break 2
  19040. fi
  19041. done
  19042. done
  19043. ;;
  19044. esac
  19045. fi
  19046. PRINTF=$ac_cv_path_PRINTF
  19047. if test -n "$PRINTF"; then
  19048. echo "$as_me:$LINENO: result: $PRINTF" >&5
  19049. echo "${ECHO_T}$PRINTF" >&6
  19050. else
  19051. echo "$as_me:$LINENO: result: no" >&5
  19052. echo "${ECHO_T}no" >&6
  19053. fi
  19054. # Extract the first word of "fig2dev", so it can be a program name with args.
  19055. set dummy fig2dev; ac_word=$2
  19056. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19057. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19058. if test "${ac_cv_path_FIG2DEV+set}" = set; then
  19059. echo $ECHO_N "(cached) $ECHO_C" >&6
  19060. else
  19061. case $FIG2DEV in
  19062. [\\/]* | ?:[\\/]*)
  19063. ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
  19064. ;;
  19065. *)
  19066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19067. for as_dir in $PATH
  19068. do
  19069. IFS=$as_save_IFS
  19070. test -z "$as_dir" && as_dir=.
  19071. for ac_exec_ext in '' $ac_executable_extensions; do
  19072. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19073. ac_cv_path_FIG2DEV="$as_dir/$ac_word$ac_exec_ext"
  19074. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19075. break 2
  19076. fi
  19077. done
  19078. done
  19079. ;;
  19080. esac
  19081. fi
  19082. FIG2DEV=$ac_cv_path_FIG2DEV
  19083. if test -n "$FIG2DEV"; then
  19084. echo "$as_me:$LINENO: result: $FIG2DEV" >&5
  19085. echo "${ECHO_T}$FIG2DEV" >&6
  19086. else
  19087. echo "$as_me:$LINENO: result: no" >&5
  19088. echo "${ECHO_T}no" >&6
  19089. fi
  19090. # Check whether --with-lyx or --without-lyx was given.
  19091. if test "${with_lyx+set}" = set; then
  19092. withval="$with_lyx"
  19093. echo "$as_me:$LINENO: checking for lyx" >&5
  19094. echo $ECHO_N "checking for lyx... $ECHO_C" >&6
  19095. if test -x $withval ; then
  19096. td=$withval
  19097. echo "$as_me:$LINENO: result: $td" >&5
  19098. echo "${ECHO_T}$td" >&6
  19099. else
  19100. echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  19101. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6
  19102. fi
  19103. else
  19104. case $host in
  19105. powerpc-apple-darwin*)
  19106. lyx=/Applications/Lyx.app/Contents/MacOS/LyX
  19107. if test -x $lyx ; then
  19108. echo "$as_me:$LINENO: checking for lyx" >&5
  19109. echo $ECHO_N "checking for lyx... $ECHO_C" >&6
  19110. LYX=$lyx
  19111. echo "$as_me:$LINENO: result: $lyx" >&5
  19112. echo "${ECHO_T}$lyx" >&6
  19113. else
  19114. # Extract the first word of "lyx", so it can be a program name with args.
  19115. set dummy lyx; ac_word=$2
  19116. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19117. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19118. if test "${ac_cv_path_LYX+set}" = set; then
  19119. echo $ECHO_N "(cached) $ECHO_C" >&6
  19120. else
  19121. case $LYX in
  19122. [\\/]* | ?:[\\/]*)
  19123. ac_cv_path_LYX="$LYX" # Let the user override the test with a path.
  19124. ;;
  19125. *)
  19126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19127. for as_dir in $PATH
  19128. do
  19129. IFS=$as_save_IFS
  19130. test -z "$as_dir" && as_dir=.
  19131. for ac_exec_ext in '' $ac_executable_extensions; do
  19132. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19133. ac_cv_path_LYX="$as_dir/$ac_word$ac_exec_ext"
  19134. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19135. break 2
  19136. fi
  19137. done
  19138. done
  19139. ;;
  19140. esac
  19141. fi
  19142. LYX=$ac_cv_path_LYX
  19143. if test -n "$LYX"; then
  19144. echo "$as_me:$LINENO: result: $LYX" >&5
  19145. echo "${ECHO_T}$LYX" >&6
  19146. else
  19147. echo "$as_me:$LINENO: result: no" >&5
  19148. echo "${ECHO_T}no" >&6
  19149. fi
  19150. fi
  19151. ;;
  19152. *)
  19153. # Extract the first word of "lyx", so it can be a program name with args.
  19154. set dummy lyx; ac_word=$2
  19155. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19156. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19157. if test "${ac_cv_path_LYX+set}" = set; then
  19158. echo $ECHO_N "(cached) $ECHO_C" >&6
  19159. else
  19160. case $LYX in
  19161. [\\/]* | ?:[\\/]*)
  19162. ac_cv_path_LYX="$LYX" # Let the user override the test with a path.
  19163. ;;
  19164. *)
  19165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19166. for as_dir in $PATH
  19167. do
  19168. IFS=$as_save_IFS
  19169. test -z "$as_dir" && as_dir=.
  19170. for ac_exec_ext in '' $ac_executable_extensions; do
  19171. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19172. ac_cv_path_LYX="$as_dir/$ac_word$ac_exec_ext"
  19173. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19174. break 2
  19175. fi
  19176. done
  19177. done
  19178. ;;
  19179. esac
  19180. fi
  19181. LYX=$ac_cv_path_LYX
  19182. if test -n "$LYX"; then
  19183. echo "$as_me:$LINENO: result: $LYX" >&5
  19184. echo "${ECHO_T}$LYX" >&6
  19185. else
  19186. echo "$as_me:$LINENO: result: no" >&5
  19187. echo "${ECHO_T}no" >&6
  19188. fi
  19189. ;;
  19190. esac
  19191. fi;
  19192. # Extract the first word of "dvips", so it can be a program name with args.
  19193. set dummy dvips; ac_word=$2
  19194. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19195. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19196. if test "${ac_cv_path_DVIPS+set}" = set; then
  19197. echo $ECHO_N "(cached) $ECHO_C" >&6
  19198. else
  19199. case $DVIPS in
  19200. [\\/]* | ?:[\\/]*)
  19201. ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
  19202. ;;
  19203. *)
  19204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19205. for as_dir in $PATH
  19206. do
  19207. IFS=$as_save_IFS
  19208. test -z "$as_dir" && as_dir=.
  19209. for ac_exec_ext in '' $ac_executable_extensions; do
  19210. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19211. ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
  19212. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19213. break 2
  19214. fi
  19215. done
  19216. done
  19217. ;;
  19218. esac
  19219. fi
  19220. DVIPS=$ac_cv_path_DVIPS
  19221. if test -n "$DVIPS"; then
  19222. echo "$as_me:$LINENO: result: $DVIPS" >&5
  19223. echo "${ECHO_T}$DVIPS" >&6
  19224. else
  19225. echo "$as_me:$LINENO: result: no" >&5
  19226. echo "${ECHO_T}no" >&6
  19227. fi
  19228. # Extract the first word of "texi2dvi", so it can be a program name with args.
  19229. set dummy texi2dvi; ac_word=$2
  19230. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19231. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19232. if test "${ac_cv_path_TEXI2DVI+set}" = set; then
  19233. echo $ECHO_N "(cached) $ECHO_C" >&6
  19234. else
  19235. case $TEXI2DVI in
  19236. [\\/]* | ?:[\\/]*)
  19237. ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
  19238. ;;
  19239. *)
  19240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19241. for as_dir in $PATH
  19242. do
  19243. IFS=$as_save_IFS
  19244. test -z "$as_dir" && as_dir=.
  19245. for ac_exec_ext in '' $ac_executable_extensions; do
  19246. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19247. ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
  19248. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19249. break 2
  19250. fi
  19251. done
  19252. done
  19253. ;;
  19254. esac
  19255. fi
  19256. TEXI2DVI=$ac_cv_path_TEXI2DVI
  19257. if test -n "$TEXI2DVI"; then
  19258. echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
  19259. echo "${ECHO_T}$TEXI2DVI" >&6
  19260. else
  19261. echo "$as_me:$LINENO: result: no" >&5
  19262. echo "${ECHO_T}no" >&6
  19263. fi
  19264. # Extract the first word of "latex2html", so it can be a program name with args.
  19265. set dummy latex2html; ac_word=$2
  19266. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19267. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19268. if test "${ac_cv_path_LATEX2HTML+set}" = set; then
  19269. echo $ECHO_N "(cached) $ECHO_C" >&6
  19270. else
  19271. case $LATEX2HTML in
  19272. [\\/]* | ?:[\\/]*)
  19273. ac_cv_path_LATEX2HTML="$LATEX2HTML" # Let the user override the test with a path.
  19274. ;;
  19275. *)
  19276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19277. for as_dir in $PATH
  19278. do
  19279. IFS=$as_save_IFS
  19280. test -z "$as_dir" && as_dir=.
  19281. for ac_exec_ext in '' $ac_executable_extensions; do
  19282. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19283. ac_cv_path_LATEX2HTML="$as_dir/$ac_word$ac_exec_ext"
  19284. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19285. break 2
  19286. fi
  19287. done
  19288. done
  19289. ;;
  19290. esac
  19291. fi
  19292. LATEX2HTML=$ac_cv_path_LATEX2HTML
  19293. if test -n "$LATEX2HTML"; then
  19294. echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
  19295. echo "${ECHO_T}$LATEX2HTML" >&6
  19296. else
  19297. echo "$as_me:$LINENO: result: no" >&5
  19298. echo "${ECHO_T}no" >&6
  19299. fi
  19300. # Extract the first word of "dvipdfm", so it can be a program name with args.
  19301. set dummy dvipdfm; ac_word=$2
  19302. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19303. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19304. if test "${ac_cv_path_DVIPDFM+set}" = set; then
  19305. echo $ECHO_N "(cached) $ECHO_C" >&6
  19306. else
  19307. case $DVIPDFM in
  19308. [\\/]* | ?:[\\/]*)
  19309. ac_cv_path_DVIPDFM="$DVIPDFM" # Let the user override the test with a path.
  19310. ;;
  19311. *)
  19312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19313. for as_dir in $PATH
  19314. do
  19315. IFS=$as_save_IFS
  19316. test -z "$as_dir" && as_dir=.
  19317. for ac_exec_ext in '' $ac_executable_extensions; do
  19318. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19319. ac_cv_path_DVIPDFM="$as_dir/$ac_word$ac_exec_ext"
  19320. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19321. break 2
  19322. fi
  19323. done
  19324. done
  19325. ;;
  19326. esac
  19327. fi
  19328. DVIPDFM=$ac_cv_path_DVIPDFM
  19329. if test -n "$DVIPDFM"; then
  19330. echo "$as_me:$LINENO: result: $DVIPDFM" >&5
  19331. echo "${ECHO_T}$DVIPDFM" >&6
  19332. else
  19333. echo "$as_me:$LINENO: result: no" >&5
  19334. echo "${ECHO_T}no" >&6
  19335. fi
  19336. # Extract the first word of "autogen", so it can be a program name with args.
  19337. set dummy autogen; ac_word=$2
  19338. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19339. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19340. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  19341. echo $ECHO_N "(cached) $ECHO_C" >&6
  19342. else
  19343. case $AUTOGEN in
  19344. [\\/]* | ?:[\\/]*)
  19345. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  19346. ;;
  19347. *)
  19348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19349. for as_dir in $PATH
  19350. do
  19351. IFS=$as_save_IFS
  19352. test -z "$as_dir" && as_dir=.
  19353. for ac_exec_ext in '' $ac_executable_extensions; do
  19354. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19355. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  19356. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19357. break 2
  19358. fi
  19359. done
  19360. done
  19361. ;;
  19362. esac
  19363. fi
  19364. AUTOGEN=$ac_cv_path_AUTOGEN
  19365. if test -n "$AUTOGEN"; then
  19366. echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  19367. echo "${ECHO_T}$AUTOGEN" >&6
  19368. else
  19369. echo "$as_me:$LINENO: result: no" >&5
  19370. echo "${ECHO_T}no" >&6
  19371. fi
  19372. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19373. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  19374. if test "${ac_cv_header_stdc+set}" = set; then
  19375. echo $ECHO_N "(cached) $ECHO_C" >&6
  19376. else
  19377. cat >conftest.$ac_ext <<_ACEOF
  19378. /* confdefs.h. */
  19379. _ACEOF
  19380. cat confdefs.h >>conftest.$ac_ext
  19381. cat >>conftest.$ac_ext <<_ACEOF
  19382. /* end confdefs.h. */
  19383. #include <stdlib.h>
  19384. #include <stdarg.h>
  19385. #include <string.h>
  19386. #include <float.h>
  19387. int
  19388. main ()
  19389. {
  19390. ;
  19391. return 0;
  19392. }
  19393. _ACEOF
  19394. rm -f conftest.$ac_objext
  19395. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19396. (eval $ac_compile) 2>conftest.er1
  19397. ac_status=$?
  19398. grep -v '^ *+' conftest.er1 >conftest.err
  19399. rm -f conftest.er1
  19400. cat conftest.err >&5
  19401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19402. (exit $ac_status); } &&
  19403. { ac_try='test -z "$ac_c_werror_flag"
  19404. || test ! -s conftest.err'
  19405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19406. (eval $ac_try) 2>&5
  19407. ac_status=$?
  19408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19409. (exit $ac_status); }; } &&
  19410. { ac_try='test -s conftest.$ac_objext'
  19411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19412. (eval $ac_try) 2>&5
  19413. ac_status=$?
  19414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19415. (exit $ac_status); }; }; then
  19416. ac_cv_header_stdc=yes
  19417. else
  19418. echo "$as_me: failed program was:" >&5
  19419. sed 's/^/| /' conftest.$ac_ext >&5
  19420. ac_cv_header_stdc=no
  19421. fi
  19422. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19423. if test $ac_cv_header_stdc = yes; then
  19424. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19425. cat >conftest.$ac_ext <<_ACEOF
  19426. /* confdefs.h. */
  19427. _ACEOF
  19428. cat confdefs.h >>conftest.$ac_ext
  19429. cat >>conftest.$ac_ext <<_ACEOF
  19430. /* end confdefs.h. */
  19431. #include <string.h>
  19432. _ACEOF
  19433. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19434. $EGREP "memchr" >/dev/null 2>&1; then
  19435. :
  19436. else
  19437. ac_cv_header_stdc=no
  19438. fi
  19439. rm -f conftest*
  19440. fi
  19441. if test $ac_cv_header_stdc = yes; then
  19442. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19443. cat >conftest.$ac_ext <<_ACEOF
  19444. /* confdefs.h. */
  19445. _ACEOF
  19446. cat confdefs.h >>conftest.$ac_ext
  19447. cat >>conftest.$ac_ext <<_ACEOF
  19448. /* end confdefs.h. */
  19449. #include <stdlib.h>
  19450. _ACEOF
  19451. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19452. $EGREP "free" >/dev/null 2>&1; then
  19453. :
  19454. else
  19455. ac_cv_header_stdc=no
  19456. fi
  19457. rm -f conftest*
  19458. fi
  19459. if test $ac_cv_header_stdc = yes; then
  19460. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19461. if test "$cross_compiling" = yes; then
  19462. :
  19463. else
  19464. cat >conftest.$ac_ext <<_ACEOF
  19465. /* confdefs.h. */
  19466. _ACEOF
  19467. cat confdefs.h >>conftest.$ac_ext
  19468. cat >>conftest.$ac_ext <<_ACEOF
  19469. /* end confdefs.h. */
  19470. #include <ctype.h>
  19471. #if ((' ' & 0x0FF) == 0x020)
  19472. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19473. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19474. #else
  19475. # define ISLOWER(c) \
  19476. (('a' <= (c) && (c) <= 'i') \
  19477. || ('j' <= (c) && (c) <= 'r') \
  19478. || ('s' <= (c) && (c) <= 'z'))
  19479. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19480. #endif
  19481. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19482. int
  19483. main ()
  19484. {
  19485. int i;
  19486. for (i = 0; i < 256; i++)
  19487. if (XOR (islower (i), ISLOWER (i))
  19488. || toupper (i) != TOUPPER (i))
  19489. exit(2);
  19490. exit (0);
  19491. }
  19492. _ACEOF
  19493. rm -f conftest$ac_exeext
  19494. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19495. (eval $ac_link) 2>&5
  19496. ac_status=$?
  19497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19498. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19500. (eval $ac_try) 2>&5
  19501. ac_status=$?
  19502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19503. (exit $ac_status); }; }; then
  19504. :
  19505. else
  19506. echo "$as_me: program exited with status $ac_status" >&5
  19507. echo "$as_me: failed program was:" >&5
  19508. sed 's/^/| /' conftest.$ac_ext >&5
  19509. ( exit $ac_status )
  19510. ac_cv_header_stdc=no
  19511. fi
  19512. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19513. fi
  19514. fi
  19515. fi
  19516. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  19517. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  19518. if test $ac_cv_header_stdc = yes; then
  19519. cat >>confdefs.h <<\_ACEOF
  19520. #define STDC_HEADERS 1
  19521. _ACEOF
  19522. fi
  19523. echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  19524. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
  19525. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  19526. echo $ECHO_N "(cached) $ECHO_C" >&6
  19527. else
  19528. cat >conftest.$ac_ext <<_ACEOF
  19529. /* confdefs.h. */
  19530. _ACEOF
  19531. cat confdefs.h >>conftest.$ac_ext
  19532. cat >>conftest.$ac_ext <<_ACEOF
  19533. /* end confdefs.h. */
  19534. #include <sys/types.h>
  19535. int
  19536. main ()
  19537. {
  19538. return makedev(0, 0);
  19539. ;
  19540. return 0;
  19541. }
  19542. _ACEOF
  19543. rm -f conftest.$ac_objext conftest$ac_exeext
  19544. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19545. (eval $ac_link) 2>conftest.er1
  19546. ac_status=$?
  19547. grep -v '^ *+' conftest.er1 >conftest.err
  19548. rm -f conftest.er1
  19549. cat conftest.err >&5
  19550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19551. (exit $ac_status); } &&
  19552. { ac_try='test -z "$ac_c_werror_flag"
  19553. || test ! -s conftest.err'
  19554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19555. (eval $ac_try) 2>&5
  19556. ac_status=$?
  19557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19558. (exit $ac_status); }; } &&
  19559. { ac_try='test -s conftest$ac_exeext'
  19560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19561. (eval $ac_try) 2>&5
  19562. ac_status=$?
  19563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19564. (exit $ac_status); }; }; then
  19565. ac_cv_header_sys_types_h_makedev=yes
  19566. else
  19567. echo "$as_me: failed program was:" >&5
  19568. sed 's/^/| /' conftest.$ac_ext >&5
  19569. ac_cv_header_sys_types_h_makedev=no
  19570. fi
  19571. rm -f conftest.err conftest.$ac_objext \
  19572. conftest$ac_exeext conftest.$ac_ext
  19573. fi
  19574. echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  19575. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
  19576. if test $ac_cv_header_sys_types_h_makedev = no; then
  19577. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19578. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19579. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  19580. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19581. echo $ECHO_N "(cached) $ECHO_C" >&6
  19582. fi
  19583. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19584. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  19585. else
  19586. # Is the header compilable?
  19587. echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  19588. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
  19589. cat >conftest.$ac_ext <<_ACEOF
  19590. /* confdefs.h. */
  19591. _ACEOF
  19592. cat confdefs.h >>conftest.$ac_ext
  19593. cat >>conftest.$ac_ext <<_ACEOF
  19594. /* end confdefs.h. */
  19595. $ac_includes_default
  19596. #include <sys/mkdev.h>
  19597. _ACEOF
  19598. rm -f conftest.$ac_objext
  19599. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19600. (eval $ac_compile) 2>conftest.er1
  19601. ac_status=$?
  19602. grep -v '^ *+' conftest.er1 >conftest.err
  19603. rm -f conftest.er1
  19604. cat conftest.err >&5
  19605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19606. (exit $ac_status); } &&
  19607. { ac_try='test -z "$ac_c_werror_flag"
  19608. || test ! -s conftest.err'
  19609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19610. (eval $ac_try) 2>&5
  19611. ac_status=$?
  19612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19613. (exit $ac_status); }; } &&
  19614. { ac_try='test -s conftest.$ac_objext'
  19615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19616. (eval $ac_try) 2>&5
  19617. ac_status=$?
  19618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19619. (exit $ac_status); }; }; then
  19620. ac_header_compiler=yes
  19621. else
  19622. echo "$as_me: failed program was:" >&5
  19623. sed 's/^/| /' conftest.$ac_ext >&5
  19624. ac_header_compiler=no
  19625. fi
  19626. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19627. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19628. echo "${ECHO_T}$ac_header_compiler" >&6
  19629. # Is the header present?
  19630. echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  19631. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
  19632. cat >conftest.$ac_ext <<_ACEOF
  19633. /* confdefs.h. */
  19634. _ACEOF
  19635. cat confdefs.h >>conftest.$ac_ext
  19636. cat >>conftest.$ac_ext <<_ACEOF
  19637. /* end confdefs.h. */
  19638. #include <sys/mkdev.h>
  19639. _ACEOF
  19640. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19641. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19642. ac_status=$?
  19643. grep -v '^ *+' conftest.er1 >conftest.err
  19644. rm -f conftest.er1
  19645. cat conftest.err >&5
  19646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19647. (exit $ac_status); } >/dev/null; then
  19648. if test -s conftest.err; then
  19649. ac_cpp_err=$ac_c_preproc_warn_flag
  19650. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19651. else
  19652. ac_cpp_err=
  19653. fi
  19654. else
  19655. ac_cpp_err=yes
  19656. fi
  19657. if test -z "$ac_cpp_err"; then
  19658. ac_header_preproc=yes
  19659. else
  19660. echo "$as_me: failed program was:" >&5
  19661. sed 's/^/| /' conftest.$ac_ext >&5
  19662. ac_header_preproc=no
  19663. fi
  19664. rm -f conftest.err conftest.$ac_ext
  19665. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19666. echo "${ECHO_T}$ac_header_preproc" >&6
  19667. # So? What about this header?
  19668. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19669. yes:no: )
  19670. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19671. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19672. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  19673. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  19674. ac_header_preproc=yes
  19675. ;;
  19676. no:yes:* )
  19677. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  19678. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  19679. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  19680. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  19681. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  19682. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  19683. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  19684. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19685. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  19686. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  19687. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  19688. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  19689. (
  19690. cat <<\_ASBOX
  19691. ## ------------------------------------------ ##
  19692. ## Report this to the AC_PACKAGE_NAME lists. ##
  19693. ## ------------------------------------------ ##
  19694. _ASBOX
  19695. ) |
  19696. sed "s/^/$as_me: WARNING: /" >&2
  19697. ;;
  19698. esac
  19699. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19700. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  19701. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19702. echo $ECHO_N "(cached) $ECHO_C" >&6
  19703. else
  19704. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  19705. fi
  19706. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19707. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  19708. fi
  19709. if test $ac_cv_header_sys_mkdev_h = yes; then
  19710. cat >>confdefs.h <<\_ACEOF
  19711. #define MAJOR_IN_MKDEV 1
  19712. _ACEOF
  19713. fi
  19714. if test $ac_cv_header_sys_mkdev_h = no; then
  19715. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19716. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19717. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  19718. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19719. echo $ECHO_N "(cached) $ECHO_C" >&6
  19720. fi
  19721. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19722. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  19723. else
  19724. # Is the header compilable?
  19725. echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  19726. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
  19727. cat >conftest.$ac_ext <<_ACEOF
  19728. /* confdefs.h. */
  19729. _ACEOF
  19730. cat confdefs.h >>conftest.$ac_ext
  19731. cat >>conftest.$ac_ext <<_ACEOF
  19732. /* end confdefs.h. */
  19733. $ac_includes_default
  19734. #include <sys/sysmacros.h>
  19735. _ACEOF
  19736. rm -f conftest.$ac_objext
  19737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19738. (eval $ac_compile) 2>conftest.er1
  19739. ac_status=$?
  19740. grep -v '^ *+' conftest.er1 >conftest.err
  19741. rm -f conftest.er1
  19742. cat conftest.err >&5
  19743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19744. (exit $ac_status); } &&
  19745. { ac_try='test -z "$ac_c_werror_flag"
  19746. || test ! -s conftest.err'
  19747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19748. (eval $ac_try) 2>&5
  19749. ac_status=$?
  19750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19751. (exit $ac_status); }; } &&
  19752. { ac_try='test -s conftest.$ac_objext'
  19753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19754. (eval $ac_try) 2>&5
  19755. ac_status=$?
  19756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19757. (exit $ac_status); }; }; then
  19758. ac_header_compiler=yes
  19759. else
  19760. echo "$as_me: failed program was:" >&5
  19761. sed 's/^/| /' conftest.$ac_ext >&5
  19762. ac_header_compiler=no
  19763. fi
  19764. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19765. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19766. echo "${ECHO_T}$ac_header_compiler" >&6
  19767. # Is the header present?
  19768. echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  19769. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
  19770. cat >conftest.$ac_ext <<_ACEOF
  19771. /* confdefs.h. */
  19772. _ACEOF
  19773. cat confdefs.h >>conftest.$ac_ext
  19774. cat >>conftest.$ac_ext <<_ACEOF
  19775. /* end confdefs.h. */
  19776. #include <sys/sysmacros.h>
  19777. _ACEOF
  19778. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19779. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19780. ac_status=$?
  19781. grep -v '^ *+' conftest.er1 >conftest.err
  19782. rm -f conftest.er1
  19783. cat conftest.err >&5
  19784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19785. (exit $ac_status); } >/dev/null; then
  19786. if test -s conftest.err; then
  19787. ac_cpp_err=$ac_c_preproc_warn_flag
  19788. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19789. else
  19790. ac_cpp_err=
  19791. fi
  19792. else
  19793. ac_cpp_err=yes
  19794. fi
  19795. if test -z "$ac_cpp_err"; then
  19796. ac_header_preproc=yes
  19797. else
  19798. echo "$as_me: failed program was:" >&5
  19799. sed 's/^/| /' conftest.$ac_ext >&5
  19800. ac_header_preproc=no
  19801. fi
  19802. rm -f conftest.err conftest.$ac_ext
  19803. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19804. echo "${ECHO_T}$ac_header_preproc" >&6
  19805. # So? What about this header?
  19806. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19807. yes:no: )
  19808. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19809. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19810. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  19811. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  19812. ac_header_preproc=yes
  19813. ;;
  19814. no:yes:* )
  19815. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  19816. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  19817. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  19818. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  19819. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  19820. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  19821. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  19822. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19823. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  19824. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  19825. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  19826. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  19827. (
  19828. cat <<\_ASBOX
  19829. ## ------------------------------------------ ##
  19830. ## Report this to the AC_PACKAGE_NAME lists. ##
  19831. ## ------------------------------------------ ##
  19832. _ASBOX
  19833. ) |
  19834. sed "s/^/$as_me: WARNING: /" >&2
  19835. ;;
  19836. esac
  19837. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19838. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  19839. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19840. echo $ECHO_N "(cached) $ECHO_C" >&6
  19841. else
  19842. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  19843. fi
  19844. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19845. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  19846. fi
  19847. if test $ac_cv_header_sys_sysmacros_h = yes; then
  19848. cat >>confdefs.h <<\_ACEOF
  19849. #define MAJOR_IN_SYSMACROS 1
  19850. _ACEOF
  19851. fi
  19852. fi
  19853. fi
  19854. echo "$as_me:$LINENO: checking for size_t" >&5
  19855. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  19856. if test "${ac_cv_type_size_t+set}" = set; then
  19857. echo $ECHO_N "(cached) $ECHO_C" >&6
  19858. else
  19859. cat >conftest.$ac_ext <<_ACEOF
  19860. /* confdefs.h. */
  19861. _ACEOF
  19862. cat confdefs.h >>conftest.$ac_ext
  19863. cat >>conftest.$ac_ext <<_ACEOF
  19864. /* end confdefs.h. */
  19865. $ac_includes_default
  19866. int
  19867. main ()
  19868. {
  19869. if ((size_t *) 0)
  19870. return 0;
  19871. if (sizeof (size_t))
  19872. return 0;
  19873. ;
  19874. return 0;
  19875. }
  19876. _ACEOF
  19877. rm -f conftest.$ac_objext
  19878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19879. (eval $ac_compile) 2>conftest.er1
  19880. ac_status=$?
  19881. grep -v '^ *+' conftest.er1 >conftest.err
  19882. rm -f conftest.er1
  19883. cat conftest.err >&5
  19884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19885. (exit $ac_status); } &&
  19886. { ac_try='test -z "$ac_c_werror_flag"
  19887. || test ! -s conftest.err'
  19888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19889. (eval $ac_try) 2>&5
  19890. ac_status=$?
  19891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19892. (exit $ac_status); }; } &&
  19893. { ac_try='test -s conftest.$ac_objext'
  19894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19895. (eval $ac_try) 2>&5
  19896. ac_status=$?
  19897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19898. (exit $ac_status); }; }; then
  19899. ac_cv_type_size_t=yes
  19900. else
  19901. echo "$as_me: failed program was:" >&5
  19902. sed 's/^/| /' conftest.$ac_ext >&5
  19903. ac_cv_type_size_t=no
  19904. fi
  19905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19906. fi
  19907. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19908. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  19909. if test $ac_cv_type_size_t = yes; then
  19910. :
  19911. else
  19912. cat >>confdefs.h <<_ACEOF
  19913. #define size_t unsigned
  19914. _ACEOF
  19915. fi
  19916. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  19917. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  19918. if test "${ac_cv_header_time+set}" = set; then
  19919. echo $ECHO_N "(cached) $ECHO_C" >&6
  19920. else
  19921. cat >conftest.$ac_ext <<_ACEOF
  19922. /* confdefs.h. */
  19923. _ACEOF
  19924. cat confdefs.h >>conftest.$ac_ext
  19925. cat >>conftest.$ac_ext <<_ACEOF
  19926. /* end confdefs.h. */
  19927. #include <sys/types.h>
  19928. #include <sys/time.h>
  19929. #include <time.h>
  19930. int
  19931. main ()
  19932. {
  19933. if ((struct tm *) 0)
  19934. return 0;
  19935. ;
  19936. return 0;
  19937. }
  19938. _ACEOF
  19939. rm -f conftest.$ac_objext
  19940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19941. (eval $ac_compile) 2>conftest.er1
  19942. ac_status=$?
  19943. grep -v '^ *+' conftest.er1 >conftest.err
  19944. rm -f conftest.er1
  19945. cat conftest.err >&5
  19946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19947. (exit $ac_status); } &&
  19948. { ac_try='test -z "$ac_c_werror_flag"
  19949. || test ! -s conftest.err'
  19950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19951. (eval $ac_try) 2>&5
  19952. ac_status=$?
  19953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19954. (exit $ac_status); }; } &&
  19955. { ac_try='test -s conftest.$ac_objext'
  19956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19957. (eval $ac_try) 2>&5
  19958. ac_status=$?
  19959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19960. (exit $ac_status); }; }; then
  19961. ac_cv_header_time=yes
  19962. else
  19963. echo "$as_me: failed program was:" >&5
  19964. sed 's/^/| /' conftest.$ac_ext >&5
  19965. ac_cv_header_time=no
  19966. fi
  19967. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19968. fi
  19969. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19970. echo "${ECHO_T}$ac_cv_header_time" >&6
  19971. if test $ac_cv_header_time = yes; then
  19972. cat >>confdefs.h <<\_ACEOF
  19973. #define TIME_WITH_SYS_TIME 1
  19974. _ACEOF
  19975. fi
  19976. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19977. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  19978. if test "${ac_cv_c_const+set}" = set; then
  19979. echo $ECHO_N "(cached) $ECHO_C" >&6
  19980. else
  19981. cat >conftest.$ac_ext <<_ACEOF
  19982. /* confdefs.h. */
  19983. _ACEOF
  19984. cat confdefs.h >>conftest.$ac_ext
  19985. cat >>conftest.$ac_ext <<_ACEOF
  19986. /* end confdefs.h. */
  19987. int
  19988. main ()
  19989. {
  19990. /* FIXME: Include the comments suggested by Paul. */
  19991. #ifndef __cplusplus
  19992. /* Ultrix mips cc rejects this. */
  19993. typedef int charset[2];
  19994. const charset x;
  19995. /* SunOS 4.1.1 cc rejects this. */
  19996. char const *const *ccp;
  19997. char **p;
  19998. /* NEC SVR4.0.2 mips cc rejects this. */
  19999. struct point {int x, y;};
  20000. static struct point const zero = {0,0};
  20001. /* AIX XL C 1.02.0.0 rejects this.
  20002. It does not let you subtract one const X* pointer from another in
  20003. an arm of an if-expression whose if-part is not a constant
  20004. expression */
  20005. const char *g = "string";
  20006. ccp = &g + (g ? g-g : 0);
  20007. /* HPUX 7.0 cc rejects these. */
  20008. ++ccp;
  20009. p = (char**) ccp;
  20010. ccp = (char const *const *) p;
  20011. { /* SCO 3.2v4 cc rejects this. */
  20012. char *t;
  20013. char const *s = 0 ? (char *) 0 : (char const *) 0;
  20014. *t++ = 0;
  20015. }
  20016. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  20017. int x[] = {25, 17};
  20018. const int *foo = &x[0];
  20019. ++foo;
  20020. }
  20021. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  20022. typedef const int *iptr;
  20023. iptr p = 0;
  20024. ++p;
  20025. }
  20026. { /* AIX XL C 1.02.0.0 rejects this saying
  20027. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  20028. struct s { int j; const int *ap[3]; };
  20029. struct s *b; b->j = 5;
  20030. }
  20031. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  20032. const int foo = 10;
  20033. }
  20034. #endif
  20035. ;
  20036. return 0;
  20037. }
  20038. _ACEOF
  20039. rm -f conftest.$ac_objext
  20040. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20041. (eval $ac_compile) 2>conftest.er1
  20042. ac_status=$?
  20043. grep -v '^ *+' conftest.er1 >conftest.err
  20044. rm -f conftest.er1
  20045. cat conftest.err >&5
  20046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20047. (exit $ac_status); } &&
  20048. { ac_try='test -z "$ac_c_werror_flag"
  20049. || test ! -s conftest.err'
  20050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20051. (eval $ac_try) 2>&5
  20052. ac_status=$?
  20053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20054. (exit $ac_status); }; } &&
  20055. { ac_try='test -s conftest.$ac_objext'
  20056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20057. (eval $ac_try) 2>&5
  20058. ac_status=$?
  20059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20060. (exit $ac_status); }; }; then
  20061. ac_cv_c_const=yes
  20062. else
  20063. echo "$as_me: failed program was:" >&5
  20064. sed 's/^/| /' conftest.$ac_ext >&5
  20065. ac_cv_c_const=no
  20066. fi
  20067. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20068. fi
  20069. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  20070. echo "${ECHO_T}$ac_cv_c_const" >&6
  20071. if test $ac_cv_c_const = no; then
  20072. cat >>confdefs.h <<\_ACEOF
  20073. #define const
  20074. _ACEOF
  20075. fi
  20076. echo "$as_me:$LINENO: checking for inline" >&5
  20077. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  20078. if test "${ac_cv_c_inline+set}" = set; then
  20079. echo $ECHO_N "(cached) $ECHO_C" >&6
  20080. else
  20081. ac_cv_c_inline=no
  20082. for ac_kw in inline __inline__ __inline; do
  20083. cat >conftest.$ac_ext <<_ACEOF
  20084. /* confdefs.h. */
  20085. _ACEOF
  20086. cat confdefs.h >>conftest.$ac_ext
  20087. cat >>conftest.$ac_ext <<_ACEOF
  20088. /* end confdefs.h. */
  20089. #ifndef __cplusplus
  20090. typedef int foo_t;
  20091. static $ac_kw foo_t static_foo () {return 0; }
  20092. $ac_kw foo_t foo () {return 0; }
  20093. #endif
  20094. _ACEOF
  20095. rm -f conftest.$ac_objext
  20096. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20097. (eval $ac_compile) 2>conftest.er1
  20098. ac_status=$?
  20099. grep -v '^ *+' conftest.er1 >conftest.err
  20100. rm -f conftest.er1
  20101. cat conftest.err >&5
  20102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20103. (exit $ac_status); } &&
  20104. { ac_try='test -z "$ac_c_werror_flag"
  20105. || test ! -s conftest.err'
  20106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20107. (eval $ac_try) 2>&5
  20108. ac_status=$?
  20109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20110. (exit $ac_status); }; } &&
  20111. { ac_try='test -s conftest.$ac_objext'
  20112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20113. (eval $ac_try) 2>&5
  20114. ac_status=$?
  20115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20116. (exit $ac_status); }; }; then
  20117. ac_cv_c_inline=$ac_kw; break
  20118. else
  20119. echo "$as_me: failed program was:" >&5
  20120. sed 's/^/| /' conftest.$ac_ext >&5
  20121. fi
  20122. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20123. done
  20124. fi
  20125. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  20126. echo "${ECHO_T}$ac_cv_c_inline" >&6
  20127. case $ac_cv_c_inline in
  20128. inline | yes) ;;
  20129. *)
  20130. case $ac_cv_c_inline in
  20131. no) ac_val=;;
  20132. *) ac_val=$ac_cv_c_inline;;
  20133. esac
  20134. cat >>confdefs.h <<_ACEOF
  20135. #ifndef __cplusplus
  20136. #define inline $ac_val
  20137. #endif
  20138. _ACEOF
  20139. ;;
  20140. esac
  20141. # Check whether --enable-largefile or --disable-largefile was given.
  20142. if test "${enable_largefile+set}" = set; then
  20143. enableval="$enable_largefile"
  20144. fi;
  20145. if test "$enable_largefile" != no; then
  20146. echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  20147. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  20148. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  20149. echo $ECHO_N "(cached) $ECHO_C" >&6
  20150. else
  20151. ac_cv_sys_largefile_CC=no
  20152. if test "$GCC" != yes; then
  20153. ac_save_CC=$CC
  20154. while :; do
  20155. # IRIX 6.2 and later do not support large files by default,
  20156. # so use the C compiler's -n32 option if that helps.
  20157. cat >conftest.$ac_ext <<_ACEOF
  20158. /* confdefs.h. */
  20159. _ACEOF
  20160. cat confdefs.h >>conftest.$ac_ext
  20161. cat >>conftest.$ac_ext <<_ACEOF
  20162. /* end confdefs.h. */
  20163. #include <sys/types.h>
  20164. /* Check that off_t can represent 2**63 - 1 correctly.
  20165. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20166. since some C++ compilers masquerading as C compilers
  20167. incorrectly reject 9223372036854775807. */
  20168. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20169. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20170. && LARGE_OFF_T % 2147483647 == 1)
  20171. ? 1 : -1];
  20172. int
  20173. main ()
  20174. {
  20175. ;
  20176. return 0;
  20177. }
  20178. _ACEOF
  20179. rm -f conftest.$ac_objext
  20180. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20181. (eval $ac_compile) 2>conftest.er1
  20182. ac_status=$?
  20183. grep -v '^ *+' conftest.er1 >conftest.err
  20184. rm -f conftest.er1
  20185. cat conftest.err >&5
  20186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20187. (exit $ac_status); } &&
  20188. { ac_try='test -z "$ac_c_werror_flag"
  20189. || test ! -s conftest.err'
  20190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20191. (eval $ac_try) 2>&5
  20192. ac_status=$?
  20193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20194. (exit $ac_status); }; } &&
  20195. { ac_try='test -s conftest.$ac_objext'
  20196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20197. (eval $ac_try) 2>&5
  20198. ac_status=$?
  20199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20200. (exit $ac_status); }; }; then
  20201. break
  20202. else
  20203. echo "$as_me: failed program was:" >&5
  20204. sed 's/^/| /' conftest.$ac_ext >&5
  20205. fi
  20206. rm -f conftest.err conftest.$ac_objext
  20207. CC="$CC -n32"
  20208. rm -f conftest.$ac_objext
  20209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20210. (eval $ac_compile) 2>conftest.er1
  20211. ac_status=$?
  20212. grep -v '^ *+' conftest.er1 >conftest.err
  20213. rm -f conftest.er1
  20214. cat conftest.err >&5
  20215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20216. (exit $ac_status); } &&
  20217. { ac_try='test -z "$ac_c_werror_flag"
  20218. || test ! -s conftest.err'
  20219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20220. (eval $ac_try) 2>&5
  20221. ac_status=$?
  20222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20223. (exit $ac_status); }; } &&
  20224. { ac_try='test -s conftest.$ac_objext'
  20225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20226. (eval $ac_try) 2>&5
  20227. ac_status=$?
  20228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20229. (exit $ac_status); }; }; then
  20230. ac_cv_sys_largefile_CC=' -n32'; break
  20231. else
  20232. echo "$as_me: failed program was:" >&5
  20233. sed 's/^/| /' conftest.$ac_ext >&5
  20234. fi
  20235. rm -f conftest.err conftest.$ac_objext
  20236. break
  20237. done
  20238. CC=$ac_save_CC
  20239. rm -f conftest.$ac_ext
  20240. fi
  20241. fi
  20242. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20243. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  20244. if test "$ac_cv_sys_largefile_CC" != no; then
  20245. CC=$CC$ac_cv_sys_largefile_CC
  20246. fi
  20247. echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20248. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  20249. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20250. echo $ECHO_N "(cached) $ECHO_C" >&6
  20251. else
  20252. while :; do
  20253. ac_cv_sys_file_offset_bits=no
  20254. cat >conftest.$ac_ext <<_ACEOF
  20255. /* confdefs.h. */
  20256. _ACEOF
  20257. cat confdefs.h >>conftest.$ac_ext
  20258. cat >>conftest.$ac_ext <<_ACEOF
  20259. /* end confdefs.h. */
  20260. #include <sys/types.h>
  20261. /* Check that off_t can represent 2**63 - 1 correctly.
  20262. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20263. since some C++ compilers masquerading as C compilers
  20264. incorrectly reject 9223372036854775807. */
  20265. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20266. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20267. && LARGE_OFF_T % 2147483647 == 1)
  20268. ? 1 : -1];
  20269. int
  20270. main ()
  20271. {
  20272. ;
  20273. return 0;
  20274. }
  20275. _ACEOF
  20276. rm -f conftest.$ac_objext
  20277. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20278. (eval $ac_compile) 2>conftest.er1
  20279. ac_status=$?
  20280. grep -v '^ *+' conftest.er1 >conftest.err
  20281. rm -f conftest.er1
  20282. cat conftest.err >&5
  20283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20284. (exit $ac_status); } &&
  20285. { ac_try='test -z "$ac_c_werror_flag"
  20286. || test ! -s conftest.err'
  20287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20288. (eval $ac_try) 2>&5
  20289. ac_status=$?
  20290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20291. (exit $ac_status); }; } &&
  20292. { ac_try='test -s conftest.$ac_objext'
  20293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20294. (eval $ac_try) 2>&5
  20295. ac_status=$?
  20296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20297. (exit $ac_status); }; }; then
  20298. break
  20299. else
  20300. echo "$as_me: failed program was:" >&5
  20301. sed 's/^/| /' conftest.$ac_ext >&5
  20302. fi
  20303. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20304. cat >conftest.$ac_ext <<_ACEOF
  20305. /* confdefs.h. */
  20306. _ACEOF
  20307. cat confdefs.h >>conftest.$ac_ext
  20308. cat >>conftest.$ac_ext <<_ACEOF
  20309. /* end confdefs.h. */
  20310. #define _FILE_OFFSET_BITS 64
  20311. #include <sys/types.h>
  20312. /* Check that off_t can represent 2**63 - 1 correctly.
  20313. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20314. since some C++ compilers masquerading as C compilers
  20315. incorrectly reject 9223372036854775807. */
  20316. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20317. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20318. && LARGE_OFF_T % 2147483647 == 1)
  20319. ? 1 : -1];
  20320. int
  20321. main ()
  20322. {
  20323. ;
  20324. return 0;
  20325. }
  20326. _ACEOF
  20327. rm -f conftest.$ac_objext
  20328. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20329. (eval $ac_compile) 2>conftest.er1
  20330. ac_status=$?
  20331. grep -v '^ *+' conftest.er1 >conftest.err
  20332. rm -f conftest.er1
  20333. cat conftest.err >&5
  20334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20335. (exit $ac_status); } &&
  20336. { ac_try='test -z "$ac_c_werror_flag"
  20337. || test ! -s conftest.err'
  20338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20339. (eval $ac_try) 2>&5
  20340. ac_status=$?
  20341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20342. (exit $ac_status); }; } &&
  20343. { ac_try='test -s conftest.$ac_objext'
  20344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20345. (eval $ac_try) 2>&5
  20346. ac_status=$?
  20347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20348. (exit $ac_status); }; }; then
  20349. ac_cv_sys_file_offset_bits=64; break
  20350. else
  20351. echo "$as_me: failed program was:" >&5
  20352. sed 's/^/| /' conftest.$ac_ext >&5
  20353. fi
  20354. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20355. break
  20356. done
  20357. fi
  20358. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20359. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  20360. if test "$ac_cv_sys_file_offset_bits" != no; then
  20361. cat >>confdefs.h <<_ACEOF
  20362. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20363. _ACEOF
  20364. fi
  20365. rm -f conftest*
  20366. echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20367. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  20368. if test "${ac_cv_sys_large_files+set}" = set; then
  20369. echo $ECHO_N "(cached) $ECHO_C" >&6
  20370. else
  20371. while :; do
  20372. ac_cv_sys_large_files=no
  20373. cat >conftest.$ac_ext <<_ACEOF
  20374. /* confdefs.h. */
  20375. _ACEOF
  20376. cat confdefs.h >>conftest.$ac_ext
  20377. cat >>conftest.$ac_ext <<_ACEOF
  20378. /* end confdefs.h. */
  20379. #include <sys/types.h>
  20380. /* Check that off_t can represent 2**63 - 1 correctly.
  20381. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20382. since some C++ compilers masquerading as C compilers
  20383. incorrectly reject 9223372036854775807. */
  20384. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20385. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20386. && LARGE_OFF_T % 2147483647 == 1)
  20387. ? 1 : -1];
  20388. int
  20389. main ()
  20390. {
  20391. ;
  20392. return 0;
  20393. }
  20394. _ACEOF
  20395. rm -f conftest.$ac_objext
  20396. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20397. (eval $ac_compile) 2>conftest.er1
  20398. ac_status=$?
  20399. grep -v '^ *+' conftest.er1 >conftest.err
  20400. rm -f conftest.er1
  20401. cat conftest.err >&5
  20402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20403. (exit $ac_status); } &&
  20404. { ac_try='test -z "$ac_c_werror_flag"
  20405. || test ! -s conftest.err'
  20406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20407. (eval $ac_try) 2>&5
  20408. ac_status=$?
  20409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20410. (exit $ac_status); }; } &&
  20411. { ac_try='test -s conftest.$ac_objext'
  20412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20413. (eval $ac_try) 2>&5
  20414. ac_status=$?
  20415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20416. (exit $ac_status); }; }; then
  20417. break
  20418. else
  20419. echo "$as_me: failed program was:" >&5
  20420. sed 's/^/| /' conftest.$ac_ext >&5
  20421. fi
  20422. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20423. cat >conftest.$ac_ext <<_ACEOF
  20424. /* confdefs.h. */
  20425. _ACEOF
  20426. cat confdefs.h >>conftest.$ac_ext
  20427. cat >>conftest.$ac_ext <<_ACEOF
  20428. /* end confdefs.h. */
  20429. #define _LARGE_FILES 1
  20430. #include <sys/types.h>
  20431. /* Check that off_t can represent 2**63 - 1 correctly.
  20432. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20433. since some C++ compilers masquerading as C compilers
  20434. incorrectly reject 9223372036854775807. */
  20435. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20436. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20437. && LARGE_OFF_T % 2147483647 == 1)
  20438. ? 1 : -1];
  20439. int
  20440. main ()
  20441. {
  20442. ;
  20443. return 0;
  20444. }
  20445. _ACEOF
  20446. rm -f conftest.$ac_objext
  20447. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20448. (eval $ac_compile) 2>conftest.er1
  20449. ac_status=$?
  20450. grep -v '^ *+' conftest.er1 >conftest.err
  20451. rm -f conftest.er1
  20452. cat conftest.err >&5
  20453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20454. (exit $ac_status); } &&
  20455. { ac_try='test -z "$ac_c_werror_flag"
  20456. || test ! -s conftest.err'
  20457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20458. (eval $ac_try) 2>&5
  20459. ac_status=$?
  20460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20461. (exit $ac_status); }; } &&
  20462. { ac_try='test -s conftest.$ac_objext'
  20463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20464. (eval $ac_try) 2>&5
  20465. ac_status=$?
  20466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20467. (exit $ac_status); }; }; then
  20468. ac_cv_sys_large_files=1; break
  20469. else
  20470. echo "$as_me: failed program was:" >&5
  20471. sed 's/^/| /' conftest.$ac_ext >&5
  20472. fi
  20473. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20474. break
  20475. done
  20476. fi
  20477. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20478. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  20479. if test "$ac_cv_sys_large_files" != no; then
  20480. cat >>confdefs.h <<_ACEOF
  20481. #define _LARGE_FILES $ac_cv_sys_large_files
  20482. _ACEOF
  20483. fi
  20484. rm -f conftest*
  20485. fi
  20486. echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20487. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
  20488. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20489. echo $ECHO_N "(cached) $ECHO_C" >&6
  20490. else
  20491. while :; do
  20492. ac_cv_sys_largefile_source=no
  20493. cat >conftest.$ac_ext <<_ACEOF
  20494. /* confdefs.h. */
  20495. _ACEOF
  20496. cat confdefs.h >>conftest.$ac_ext
  20497. cat >>conftest.$ac_ext <<_ACEOF
  20498. /* end confdefs.h. */
  20499. #include <stdio.h>
  20500. int
  20501. main ()
  20502. {
  20503. return !fseeko;
  20504. ;
  20505. return 0;
  20506. }
  20507. _ACEOF
  20508. rm -f conftest.$ac_objext
  20509. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20510. (eval $ac_compile) 2>conftest.er1
  20511. ac_status=$?
  20512. grep -v '^ *+' conftest.er1 >conftest.err
  20513. rm -f conftest.er1
  20514. cat conftest.err >&5
  20515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20516. (exit $ac_status); } &&
  20517. { ac_try='test -z "$ac_c_werror_flag"
  20518. || test ! -s conftest.err'
  20519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20520. (eval $ac_try) 2>&5
  20521. ac_status=$?
  20522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20523. (exit $ac_status); }; } &&
  20524. { ac_try='test -s conftest.$ac_objext'
  20525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20526. (eval $ac_try) 2>&5
  20527. ac_status=$?
  20528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20529. (exit $ac_status); }; }; then
  20530. break
  20531. else
  20532. echo "$as_me: failed program was:" >&5
  20533. sed 's/^/| /' conftest.$ac_ext >&5
  20534. fi
  20535. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20536. cat >conftest.$ac_ext <<_ACEOF
  20537. /* confdefs.h. */
  20538. _ACEOF
  20539. cat confdefs.h >>conftest.$ac_ext
  20540. cat >>conftest.$ac_ext <<_ACEOF
  20541. /* end confdefs.h. */
  20542. #define _LARGEFILE_SOURCE 1
  20543. #include <stdio.h>
  20544. int
  20545. main ()
  20546. {
  20547. return !fseeko;
  20548. ;
  20549. return 0;
  20550. }
  20551. _ACEOF
  20552. rm -f conftest.$ac_objext
  20553. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20554. (eval $ac_compile) 2>conftest.er1
  20555. ac_status=$?
  20556. grep -v '^ *+' conftest.er1 >conftest.err
  20557. rm -f conftest.er1
  20558. cat conftest.err >&5
  20559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20560. (exit $ac_status); } &&
  20561. { ac_try='test -z "$ac_c_werror_flag"
  20562. || test ! -s conftest.err'
  20563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20564. (eval $ac_try) 2>&5
  20565. ac_status=$?
  20566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20567. (exit $ac_status); }; } &&
  20568. { ac_try='test -s conftest.$ac_objext'
  20569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20570. (eval $ac_try) 2>&5
  20571. ac_status=$?
  20572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20573. (exit $ac_status); }; }; then
  20574. ac_cv_sys_largefile_source=1; break
  20575. else
  20576. echo "$as_me: failed program was:" >&5
  20577. sed 's/^/| /' conftest.$ac_ext >&5
  20578. fi
  20579. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20580. break
  20581. done
  20582. fi
  20583. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20584. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
  20585. if test "$ac_cv_sys_largefile_source" != no; then
  20586. cat >>confdefs.h <<_ACEOF
  20587. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20588. _ACEOF
  20589. fi
  20590. rm -f conftest*
  20591. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20592. # in glibc 2.1.3, but that breaks too many other things.
  20593. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20594. echo "$as_me:$LINENO: checking for fseeko" >&5
  20595. echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
  20596. if test "${ac_cv_func_fseeko+set}" = set; then
  20597. echo $ECHO_N "(cached) $ECHO_C" >&6
  20598. else
  20599. cat >conftest.$ac_ext <<_ACEOF
  20600. /* confdefs.h. */
  20601. _ACEOF
  20602. cat confdefs.h >>conftest.$ac_ext
  20603. cat >>conftest.$ac_ext <<_ACEOF
  20604. /* end confdefs.h. */
  20605. #include <stdio.h>
  20606. int
  20607. main ()
  20608. {
  20609. return fseeko && fseeko (stdin, 0, 0);
  20610. ;
  20611. return 0;
  20612. }
  20613. _ACEOF
  20614. rm -f conftest.$ac_objext conftest$ac_exeext
  20615. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20616. (eval $ac_link) 2>conftest.er1
  20617. ac_status=$?
  20618. grep -v '^ *+' conftest.er1 >conftest.err
  20619. rm -f conftest.er1
  20620. cat conftest.err >&5
  20621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20622. (exit $ac_status); } &&
  20623. { ac_try='test -z "$ac_c_werror_flag"
  20624. || test ! -s conftest.err'
  20625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20626. (eval $ac_try) 2>&5
  20627. ac_status=$?
  20628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20629. (exit $ac_status); }; } &&
  20630. { ac_try='test -s conftest$ac_exeext'
  20631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20632. (eval $ac_try) 2>&5
  20633. ac_status=$?
  20634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20635. (exit $ac_status); }; }; then
  20636. ac_cv_func_fseeko=yes
  20637. else
  20638. echo "$as_me: failed program was:" >&5
  20639. sed 's/^/| /' conftest.$ac_ext >&5
  20640. ac_cv_func_fseeko=no
  20641. fi
  20642. rm -f conftest.err conftest.$ac_objext \
  20643. conftest$ac_exeext conftest.$ac_ext
  20644. fi
  20645. echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
  20646. echo "${ECHO_T}$ac_cv_func_fseeko" >&6
  20647. if test $ac_cv_func_fseeko = yes; then
  20648. cat >>confdefs.h <<\_ACEOF
  20649. #define HAVE_FSEEKO 1
  20650. _ACEOF
  20651. fi
  20652. echo "$as_me:$LINENO: checking for u_int8_t" >&5
  20653. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
  20654. if test "${ac_cv_type_u_int8_t+set}" = set; then
  20655. echo $ECHO_N "(cached) $ECHO_C" >&6
  20656. else
  20657. cat >conftest.$ac_ext <<_ACEOF
  20658. /* confdefs.h. */
  20659. _ACEOF
  20660. cat confdefs.h >>conftest.$ac_ext
  20661. cat >>conftest.$ac_ext <<_ACEOF
  20662. /* end confdefs.h. */
  20663. $ac_includes_default
  20664. int
  20665. main ()
  20666. {
  20667. if ((u_int8_t *) 0)
  20668. return 0;
  20669. if (sizeof (u_int8_t))
  20670. return 0;
  20671. ;
  20672. return 0;
  20673. }
  20674. _ACEOF
  20675. rm -f conftest.$ac_objext
  20676. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20677. (eval $ac_compile) 2>conftest.er1
  20678. ac_status=$?
  20679. grep -v '^ *+' conftest.er1 >conftest.err
  20680. rm -f conftest.er1
  20681. cat conftest.err >&5
  20682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20683. (exit $ac_status); } &&
  20684. { ac_try='test -z "$ac_c_werror_flag"
  20685. || test ! -s conftest.err'
  20686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20687. (eval $ac_try) 2>&5
  20688. ac_status=$?
  20689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20690. (exit $ac_status); }; } &&
  20691. { ac_try='test -s conftest.$ac_objext'
  20692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20693. (eval $ac_try) 2>&5
  20694. ac_status=$?
  20695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20696. (exit $ac_status); }; }; then
  20697. ac_cv_type_u_int8_t=yes
  20698. else
  20699. echo "$as_me: failed program was:" >&5
  20700. sed 's/^/| /' conftest.$ac_ext >&5
  20701. ac_cv_type_u_int8_t=no
  20702. fi
  20703. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20704. fi
  20705. echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  20706. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
  20707. if test $ac_cv_type_u_int8_t = yes; then
  20708. :
  20709. else
  20710. cat >>confdefs.h <<_ACEOF
  20711. #define u_int8_t uint8_t
  20712. _ACEOF
  20713. fi
  20714. echo "$as_me:$LINENO: checking for u_int16_t" >&5
  20715. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
  20716. if test "${ac_cv_type_u_int16_t+set}" = set; then
  20717. echo $ECHO_N "(cached) $ECHO_C" >&6
  20718. else
  20719. cat >conftest.$ac_ext <<_ACEOF
  20720. /* confdefs.h. */
  20721. _ACEOF
  20722. cat confdefs.h >>conftest.$ac_ext
  20723. cat >>conftest.$ac_ext <<_ACEOF
  20724. /* end confdefs.h. */
  20725. $ac_includes_default
  20726. int
  20727. main ()
  20728. {
  20729. if ((u_int16_t *) 0)
  20730. return 0;
  20731. if (sizeof (u_int16_t))
  20732. return 0;
  20733. ;
  20734. return 0;
  20735. }
  20736. _ACEOF
  20737. rm -f conftest.$ac_objext
  20738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20739. (eval $ac_compile) 2>conftest.er1
  20740. ac_status=$?
  20741. grep -v '^ *+' conftest.er1 >conftest.err
  20742. rm -f conftest.er1
  20743. cat conftest.err >&5
  20744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20745. (exit $ac_status); } &&
  20746. { ac_try='test -z "$ac_c_werror_flag"
  20747. || test ! -s conftest.err'
  20748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20749. (eval $ac_try) 2>&5
  20750. ac_status=$?
  20751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20752. (exit $ac_status); }; } &&
  20753. { ac_try='test -s conftest.$ac_objext'
  20754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20755. (eval $ac_try) 2>&5
  20756. ac_status=$?
  20757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20758. (exit $ac_status); }; }; then
  20759. ac_cv_type_u_int16_t=yes
  20760. else
  20761. echo "$as_me: failed program was:" >&5
  20762. sed 's/^/| /' conftest.$ac_ext >&5
  20763. ac_cv_type_u_int16_t=no
  20764. fi
  20765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20766. fi
  20767. echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  20768. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
  20769. if test $ac_cv_type_u_int16_t = yes; then
  20770. :
  20771. else
  20772. cat >>confdefs.h <<_ACEOF
  20773. #define u_int16_t uint16_t
  20774. _ACEOF
  20775. fi
  20776. echo "$as_me:$LINENO: checking for u_int32_t" >&5
  20777. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  20778. if test "${ac_cv_type_u_int32_t+set}" = set; then
  20779. echo $ECHO_N "(cached) $ECHO_C" >&6
  20780. else
  20781. cat >conftest.$ac_ext <<_ACEOF
  20782. /* confdefs.h. */
  20783. _ACEOF
  20784. cat confdefs.h >>conftest.$ac_ext
  20785. cat >>conftest.$ac_ext <<_ACEOF
  20786. /* end confdefs.h. */
  20787. $ac_includes_default
  20788. int
  20789. main ()
  20790. {
  20791. if ((u_int32_t *) 0)
  20792. return 0;
  20793. if (sizeof (u_int32_t))
  20794. return 0;
  20795. ;
  20796. return 0;
  20797. }
  20798. _ACEOF
  20799. rm -f conftest.$ac_objext
  20800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20801. (eval $ac_compile) 2>conftest.er1
  20802. ac_status=$?
  20803. grep -v '^ *+' conftest.er1 >conftest.err
  20804. rm -f conftest.er1
  20805. cat conftest.err >&5
  20806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20807. (exit $ac_status); } &&
  20808. { ac_try='test -z "$ac_c_werror_flag"
  20809. || test ! -s conftest.err'
  20810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20811. (eval $ac_try) 2>&5
  20812. ac_status=$?
  20813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20814. (exit $ac_status); }; } &&
  20815. { ac_try='test -s conftest.$ac_objext'
  20816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20817. (eval $ac_try) 2>&5
  20818. ac_status=$?
  20819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20820. (exit $ac_status); }; }; then
  20821. ac_cv_type_u_int32_t=yes
  20822. else
  20823. echo "$as_me: failed program was:" >&5
  20824. sed 's/^/| /' conftest.$ac_ext >&5
  20825. ac_cv_type_u_int32_t=no
  20826. fi
  20827. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20828. fi
  20829. echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  20830. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
  20831. if test $ac_cv_type_u_int32_t = yes; then
  20832. :
  20833. else
  20834. cat >>confdefs.h <<_ACEOF
  20835. #define u_int32_t uint32_t
  20836. _ACEOF
  20837. fi
  20838. echo "$as_me:$LINENO: checking for u_int64_t" >&5
  20839. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
  20840. if test "${ac_cv_type_u_int64_t+set}" = set; then
  20841. echo $ECHO_N "(cached) $ECHO_C" >&6
  20842. else
  20843. cat >conftest.$ac_ext <<_ACEOF
  20844. /* confdefs.h. */
  20845. _ACEOF
  20846. cat confdefs.h >>conftest.$ac_ext
  20847. cat >>conftest.$ac_ext <<_ACEOF
  20848. /* end confdefs.h. */
  20849. $ac_includes_default
  20850. int
  20851. main ()
  20852. {
  20853. if ((u_int64_t *) 0)
  20854. return 0;
  20855. if (sizeof (u_int64_t))
  20856. return 0;
  20857. ;
  20858. return 0;
  20859. }
  20860. _ACEOF
  20861. rm -f conftest.$ac_objext
  20862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20863. (eval $ac_compile) 2>conftest.er1
  20864. ac_status=$?
  20865. grep -v '^ *+' conftest.er1 >conftest.err
  20866. rm -f conftest.er1
  20867. cat conftest.err >&5
  20868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20869. (exit $ac_status); } &&
  20870. { ac_try='test -z "$ac_c_werror_flag"
  20871. || test ! -s conftest.err'
  20872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20873. (eval $ac_try) 2>&5
  20874. ac_status=$?
  20875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20876. (exit $ac_status); }; } &&
  20877. { ac_try='test -s conftest.$ac_objext'
  20878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20879. (eval $ac_try) 2>&5
  20880. ac_status=$?
  20881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20882. (exit $ac_status); }; }; then
  20883. ac_cv_type_u_int64_t=yes
  20884. else
  20885. echo "$as_me: failed program was:" >&5
  20886. sed 's/^/| /' conftest.$ac_ext >&5
  20887. ac_cv_type_u_int64_t=no
  20888. fi
  20889. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20890. fi
  20891. echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  20892. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
  20893. if test $ac_cv_type_u_int64_t = yes; then
  20894. :
  20895. else
  20896. cat >>confdefs.h <<_ACEOF
  20897. #define u_int64_t uint64_t
  20898. _ACEOF
  20899. fi
  20900. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h signal.h string.h strings.h sys/types.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h
  20901. do
  20902. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20903. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20904. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20905. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20906. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20907. echo $ECHO_N "(cached) $ECHO_C" >&6
  20908. fi
  20909. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20910. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20911. else
  20912. # Is the header compilable?
  20913. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20914. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20915. cat >conftest.$ac_ext <<_ACEOF
  20916. /* confdefs.h. */
  20917. _ACEOF
  20918. cat confdefs.h >>conftest.$ac_ext
  20919. cat >>conftest.$ac_ext <<_ACEOF
  20920. /* end confdefs.h. */
  20921. $ac_includes_default
  20922. #include <$ac_header>
  20923. _ACEOF
  20924. rm -f conftest.$ac_objext
  20925. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20926. (eval $ac_compile) 2>conftest.er1
  20927. ac_status=$?
  20928. grep -v '^ *+' conftest.er1 >conftest.err
  20929. rm -f conftest.er1
  20930. cat conftest.err >&5
  20931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20932. (exit $ac_status); } &&
  20933. { ac_try='test -z "$ac_c_werror_flag"
  20934. || test ! -s conftest.err'
  20935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20936. (eval $ac_try) 2>&5
  20937. ac_status=$?
  20938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20939. (exit $ac_status); }; } &&
  20940. { ac_try='test -s conftest.$ac_objext'
  20941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20942. (eval $ac_try) 2>&5
  20943. ac_status=$?
  20944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20945. (exit $ac_status); }; }; then
  20946. ac_header_compiler=yes
  20947. else
  20948. echo "$as_me: failed program was:" >&5
  20949. sed 's/^/| /' conftest.$ac_ext >&5
  20950. ac_header_compiler=no
  20951. fi
  20952. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20953. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20954. echo "${ECHO_T}$ac_header_compiler" >&6
  20955. # Is the header present?
  20956. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20957. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20958. cat >conftest.$ac_ext <<_ACEOF
  20959. /* confdefs.h. */
  20960. _ACEOF
  20961. cat confdefs.h >>conftest.$ac_ext
  20962. cat >>conftest.$ac_ext <<_ACEOF
  20963. /* end confdefs.h. */
  20964. #include <$ac_header>
  20965. _ACEOF
  20966. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20967. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20968. ac_status=$?
  20969. grep -v '^ *+' conftest.er1 >conftest.err
  20970. rm -f conftest.er1
  20971. cat conftest.err >&5
  20972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20973. (exit $ac_status); } >/dev/null; then
  20974. if test -s conftest.err; then
  20975. ac_cpp_err=$ac_c_preproc_warn_flag
  20976. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20977. else
  20978. ac_cpp_err=
  20979. fi
  20980. else
  20981. ac_cpp_err=yes
  20982. fi
  20983. if test -z "$ac_cpp_err"; then
  20984. ac_header_preproc=yes
  20985. else
  20986. echo "$as_me: failed program was:" >&5
  20987. sed 's/^/| /' conftest.$ac_ext >&5
  20988. ac_header_preproc=no
  20989. fi
  20990. rm -f conftest.err conftest.$ac_ext
  20991. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20992. echo "${ECHO_T}$ac_header_preproc" >&6
  20993. # So? What about this header?
  20994. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20995. yes:no: )
  20996. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20997. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20998. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20999. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21000. ac_header_preproc=yes
  21001. ;;
  21002. no:yes:* )
  21003. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21004. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21005. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21006. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21007. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21008. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21009. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21010. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21011. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21012. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21013. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21014. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21015. (
  21016. cat <<\_ASBOX
  21017. ## ------------------------------------------ ##
  21018. ## Report this to the AC_PACKAGE_NAME lists. ##
  21019. ## ------------------------------------------ ##
  21020. _ASBOX
  21021. ) |
  21022. sed "s/^/$as_me: WARNING: /" >&2
  21023. ;;
  21024. esac
  21025. echo "$as_me:$LINENO: checking for $ac_header" >&5
  21026. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21027. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21028. echo $ECHO_N "(cached) $ECHO_C" >&6
  21029. else
  21030. eval "$as_ac_Header=\$ac_header_preproc"
  21031. fi
  21032. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21033. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21034. fi
  21035. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21036. cat >>confdefs.h <<_ACEOF
  21037. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21038. _ACEOF
  21039. fi
  21040. done
  21041. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  21042. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  21043. if test "${ac_cv_lib_socket_socket+set}" = set; then
  21044. echo $ECHO_N "(cached) $ECHO_C" >&6
  21045. else
  21046. ac_check_lib_save_LIBS=$LIBS
  21047. LIBS="-lsocket $LIBS"
  21048. cat >conftest.$ac_ext <<_ACEOF
  21049. /* confdefs.h. */
  21050. _ACEOF
  21051. cat confdefs.h >>conftest.$ac_ext
  21052. cat >>conftest.$ac_ext <<_ACEOF
  21053. /* end confdefs.h. */
  21054. /* Override any gcc2 internal prototype to avoid an error. */
  21055. #ifdef __cplusplus
  21056. extern "C"
  21057. #endif
  21058. /* We use char because int might match the return type of a gcc2
  21059. builtin and then its argument prototype would still apply. */
  21060. char socket ();
  21061. int
  21062. main ()
  21063. {
  21064. socket ();
  21065. ;
  21066. return 0;
  21067. }
  21068. _ACEOF
  21069. rm -f conftest.$ac_objext conftest$ac_exeext
  21070. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21071. (eval $ac_link) 2>conftest.er1
  21072. ac_status=$?
  21073. grep -v '^ *+' conftest.er1 >conftest.err
  21074. rm -f conftest.er1
  21075. cat conftest.err >&5
  21076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21077. (exit $ac_status); } &&
  21078. { ac_try='test -z "$ac_c_werror_flag"
  21079. || test ! -s conftest.err'
  21080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21081. (eval $ac_try) 2>&5
  21082. ac_status=$?
  21083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21084. (exit $ac_status); }; } &&
  21085. { ac_try='test -s conftest$ac_exeext'
  21086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21087. (eval $ac_try) 2>&5
  21088. ac_status=$?
  21089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21090. (exit $ac_status); }; }; then
  21091. ac_cv_lib_socket_socket=yes
  21092. else
  21093. echo "$as_me: failed program was:" >&5
  21094. sed 's/^/| /' conftest.$ac_ext >&5
  21095. ac_cv_lib_socket_socket=no
  21096. fi
  21097. rm -f conftest.err conftest.$ac_objext \
  21098. conftest$ac_exeext conftest.$ac_ext
  21099. LIBS=$ac_check_lib_save_LIBS
  21100. fi
  21101. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  21102. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  21103. if test $ac_cv_lib_socket_socket = yes; then
  21104. cat >>confdefs.h <<_ACEOF
  21105. #define HAVE_LIBSOCKET 1
  21106. _ACEOF
  21107. LIBS="-lsocket $LIBS"
  21108. fi
  21109. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  21110. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  21111. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  21112. echo $ECHO_N "(cached) $ECHO_C" >&6
  21113. else
  21114. ac_check_lib_save_LIBS=$LIBS
  21115. LIBS="-lnsl $LIBS"
  21116. cat >conftest.$ac_ext <<_ACEOF
  21117. /* confdefs.h. */
  21118. _ACEOF
  21119. cat confdefs.h >>conftest.$ac_ext
  21120. cat >>conftest.$ac_ext <<_ACEOF
  21121. /* end confdefs.h. */
  21122. /* Override any gcc2 internal prototype to avoid an error. */
  21123. #ifdef __cplusplus
  21124. extern "C"
  21125. #endif
  21126. /* We use char because int might match the return type of a gcc2
  21127. builtin and then its argument prototype would still apply. */
  21128. char gethostbyname ();
  21129. int
  21130. main ()
  21131. {
  21132. gethostbyname ();
  21133. ;
  21134. return 0;
  21135. }
  21136. _ACEOF
  21137. rm -f conftest.$ac_objext conftest$ac_exeext
  21138. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21139. (eval $ac_link) 2>conftest.er1
  21140. ac_status=$?
  21141. grep -v '^ *+' conftest.er1 >conftest.err
  21142. rm -f conftest.er1
  21143. cat conftest.err >&5
  21144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21145. (exit $ac_status); } &&
  21146. { ac_try='test -z "$ac_c_werror_flag"
  21147. || test ! -s conftest.err'
  21148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21149. (eval $ac_try) 2>&5
  21150. ac_status=$?
  21151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21152. (exit $ac_status); }; } &&
  21153. { ac_try='test -s conftest$ac_exeext'
  21154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21155. (eval $ac_try) 2>&5
  21156. ac_status=$?
  21157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21158. (exit $ac_status); }; }; then
  21159. ac_cv_lib_nsl_gethostbyname=yes
  21160. else
  21161. echo "$as_me: failed program was:" >&5
  21162. sed 's/^/| /' conftest.$ac_ext >&5
  21163. ac_cv_lib_nsl_gethostbyname=no
  21164. fi
  21165. rm -f conftest.err conftest.$ac_objext \
  21166. conftest$ac_exeext conftest.$ac_ext
  21167. LIBS=$ac_check_lib_save_LIBS
  21168. fi
  21169. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21170. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  21171. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  21172. cat >>confdefs.h <<_ACEOF
  21173. #define HAVE_LIBNSL 1
  21174. _ACEOF
  21175. LIBS="-lnsl $LIBS"
  21176. fi
  21177. echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  21178. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
  21179. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  21180. echo $ECHO_N "(cached) $ECHO_C" >&6
  21181. else
  21182. ac_check_lib_save_LIBS=$LIBS
  21183. LIBS="-lrt $LIBS"
  21184. cat >conftest.$ac_ext <<_ACEOF
  21185. /* confdefs.h. */
  21186. _ACEOF
  21187. cat confdefs.h >>conftest.$ac_ext
  21188. cat >>conftest.$ac_ext <<_ACEOF
  21189. /* end confdefs.h. */
  21190. /* Override any gcc2 internal prototype to avoid an error. */
  21191. #ifdef __cplusplus
  21192. extern "C"
  21193. #endif
  21194. /* We use char because int might match the return type of a gcc2
  21195. builtin and then its argument prototype would still apply. */
  21196. char nanosleep ();
  21197. int
  21198. main ()
  21199. {
  21200. nanosleep ();
  21201. ;
  21202. return 0;
  21203. }
  21204. _ACEOF
  21205. rm -f conftest.$ac_objext conftest$ac_exeext
  21206. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21207. (eval $ac_link) 2>conftest.er1
  21208. ac_status=$?
  21209. grep -v '^ *+' conftest.er1 >conftest.err
  21210. rm -f conftest.er1
  21211. cat conftest.err >&5
  21212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21213. (exit $ac_status); } &&
  21214. { ac_try='test -z "$ac_c_werror_flag"
  21215. || test ! -s conftest.err'
  21216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21217. (eval $ac_try) 2>&5
  21218. ac_status=$?
  21219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21220. (exit $ac_status); }; } &&
  21221. { ac_try='test -s conftest$ac_exeext'
  21222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21223. (eval $ac_try) 2>&5
  21224. ac_status=$?
  21225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21226. (exit $ac_status); }; }; then
  21227. ac_cv_lib_rt_nanosleep=yes
  21228. else
  21229. echo "$as_me: failed program was:" >&5
  21230. sed 's/^/| /' conftest.$ac_ext >&5
  21231. ac_cv_lib_rt_nanosleep=no
  21232. fi
  21233. rm -f conftest.err conftest.$ac_objext \
  21234. conftest$ac_exeext conftest.$ac_ext
  21235. LIBS=$ac_check_lib_save_LIBS
  21236. fi
  21237. echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  21238. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
  21239. if test $ac_cv_lib_rt_nanosleep = yes; then
  21240. cat >>confdefs.h <<_ACEOF
  21241. #define HAVE_LIBRT 1
  21242. _ACEOF
  21243. LIBS="-lrt $LIBS"
  21244. fi
  21245. for ac_header in stdlib.h
  21246. do
  21247. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21248. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21249. echo "$as_me:$LINENO: checking for $ac_header" >&5
  21250. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21251. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21252. echo $ECHO_N "(cached) $ECHO_C" >&6
  21253. fi
  21254. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21255. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21256. else
  21257. # Is the header compilable?
  21258. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21259. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  21260. cat >conftest.$ac_ext <<_ACEOF
  21261. /* confdefs.h. */
  21262. _ACEOF
  21263. cat confdefs.h >>conftest.$ac_ext
  21264. cat >>conftest.$ac_ext <<_ACEOF
  21265. /* end confdefs.h. */
  21266. $ac_includes_default
  21267. #include <$ac_header>
  21268. _ACEOF
  21269. rm -f conftest.$ac_objext
  21270. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21271. (eval $ac_compile) 2>conftest.er1
  21272. ac_status=$?
  21273. grep -v '^ *+' conftest.er1 >conftest.err
  21274. rm -f conftest.er1
  21275. cat conftest.err >&5
  21276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21277. (exit $ac_status); } &&
  21278. { ac_try='test -z "$ac_c_werror_flag"
  21279. || test ! -s conftest.err'
  21280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21281. (eval $ac_try) 2>&5
  21282. ac_status=$?
  21283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21284. (exit $ac_status); }; } &&
  21285. { ac_try='test -s conftest.$ac_objext'
  21286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21287. (eval $ac_try) 2>&5
  21288. ac_status=$?
  21289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21290. (exit $ac_status); }; }; then
  21291. ac_header_compiler=yes
  21292. else
  21293. echo "$as_me: failed program was:" >&5
  21294. sed 's/^/| /' conftest.$ac_ext >&5
  21295. ac_header_compiler=no
  21296. fi
  21297. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21298. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21299. echo "${ECHO_T}$ac_header_compiler" >&6
  21300. # Is the header present?
  21301. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21302. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  21303. cat >conftest.$ac_ext <<_ACEOF
  21304. /* confdefs.h. */
  21305. _ACEOF
  21306. cat confdefs.h >>conftest.$ac_ext
  21307. cat >>conftest.$ac_ext <<_ACEOF
  21308. /* end confdefs.h. */
  21309. #include <$ac_header>
  21310. _ACEOF
  21311. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21312. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21313. ac_status=$?
  21314. grep -v '^ *+' conftest.er1 >conftest.err
  21315. rm -f conftest.er1
  21316. cat conftest.err >&5
  21317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21318. (exit $ac_status); } >/dev/null; then
  21319. if test -s conftest.err; then
  21320. ac_cpp_err=$ac_c_preproc_warn_flag
  21321. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21322. else
  21323. ac_cpp_err=
  21324. fi
  21325. else
  21326. ac_cpp_err=yes
  21327. fi
  21328. if test -z "$ac_cpp_err"; then
  21329. ac_header_preproc=yes
  21330. else
  21331. echo "$as_me: failed program was:" >&5
  21332. sed 's/^/| /' conftest.$ac_ext >&5
  21333. ac_header_preproc=no
  21334. fi
  21335. rm -f conftest.err conftest.$ac_ext
  21336. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21337. echo "${ECHO_T}$ac_header_preproc" >&6
  21338. # So? What about this header?
  21339. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21340. yes:no: )
  21341. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21342. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21343. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21344. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21345. ac_header_preproc=yes
  21346. ;;
  21347. no:yes:* )
  21348. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21349. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21350. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21351. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21352. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21353. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21354. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21355. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21356. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21357. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21358. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21359. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21360. (
  21361. cat <<\_ASBOX
  21362. ## ------------------------------------------ ##
  21363. ## Report this to the AC_PACKAGE_NAME lists. ##
  21364. ## ------------------------------------------ ##
  21365. _ASBOX
  21366. ) |
  21367. sed "s/^/$as_me: WARNING: /" >&2
  21368. ;;
  21369. esac
  21370. echo "$as_me:$LINENO: checking for $ac_header" >&5
  21371. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21372. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21373. echo $ECHO_N "(cached) $ECHO_C" >&6
  21374. else
  21375. eval "$as_ac_Header=\$ac_header_preproc"
  21376. fi
  21377. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21378. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21379. fi
  21380. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21381. cat >>confdefs.h <<_ACEOF
  21382. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21383. _ACEOF
  21384. fi
  21385. done
  21386. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  21387. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  21388. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  21389. echo $ECHO_N "(cached) $ECHO_C" >&6
  21390. else
  21391. if test "$cross_compiling" = yes; then
  21392. ac_cv_func_malloc_0_nonnull=no
  21393. else
  21394. cat >conftest.$ac_ext <<_ACEOF
  21395. /* confdefs.h. */
  21396. _ACEOF
  21397. cat confdefs.h >>conftest.$ac_ext
  21398. cat >>conftest.$ac_ext <<_ACEOF
  21399. /* end confdefs.h. */
  21400. #if STDC_HEADERS || HAVE_STDLIB_H
  21401. # include <stdlib.h>
  21402. #else
  21403. char *malloc ();
  21404. #endif
  21405. int
  21406. main ()
  21407. {
  21408. exit (malloc (0) ? 0 : 1);
  21409. ;
  21410. return 0;
  21411. }
  21412. _ACEOF
  21413. rm -f conftest$ac_exeext
  21414. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21415. (eval $ac_link) 2>&5
  21416. ac_status=$?
  21417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21418. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21420. (eval $ac_try) 2>&5
  21421. ac_status=$?
  21422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21423. (exit $ac_status); }; }; then
  21424. ac_cv_func_malloc_0_nonnull=yes
  21425. else
  21426. echo "$as_me: program exited with status $ac_status" >&5
  21427. echo "$as_me: failed program was:" >&5
  21428. sed 's/^/| /' conftest.$ac_ext >&5
  21429. ( exit $ac_status )
  21430. ac_cv_func_malloc_0_nonnull=no
  21431. fi
  21432. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21433. fi
  21434. fi
  21435. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  21436. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  21437. if test $ac_cv_func_malloc_0_nonnull = yes; then
  21438. cat >>confdefs.h <<\_ACEOF
  21439. #define HAVE_MALLOC 1
  21440. _ACEOF
  21441. else
  21442. cat >>confdefs.h <<\_ACEOF
  21443. #define HAVE_MALLOC 0
  21444. _ACEOF
  21445. case $LIBOBJS in
  21446. "malloc.$ac_objext" | \
  21447. *" malloc.$ac_objext" | \
  21448. "malloc.$ac_objext "* | \
  21449. *" malloc.$ac_objext "* ) ;;
  21450. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  21451. esac
  21452. cat >>confdefs.h <<\_ACEOF
  21453. #define malloc rpl_malloc
  21454. _ACEOF
  21455. fi
  21456. echo "$as_me:$LINENO: checking for working memcmp" >&5
  21457. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  21458. if test "${ac_cv_func_memcmp_working+set}" = set; then
  21459. echo $ECHO_N "(cached) $ECHO_C" >&6
  21460. else
  21461. if test "$cross_compiling" = yes; then
  21462. ac_cv_func_memcmp_working=no
  21463. else
  21464. cat >conftest.$ac_ext <<_ACEOF
  21465. /* confdefs.h. */
  21466. _ACEOF
  21467. cat confdefs.h >>conftest.$ac_ext
  21468. cat >>conftest.$ac_ext <<_ACEOF
  21469. /* end confdefs.h. */
  21470. $ac_includes_default
  21471. int
  21472. main ()
  21473. {
  21474. /* Some versions of memcmp are not 8-bit clean. */
  21475. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  21476. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  21477. exit (1);
  21478. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  21479. or more and with at least one buffer not starting on a 4-byte boundary.
  21480. William Lewis provided this test program. */
  21481. {
  21482. char foo[21];
  21483. char bar[21];
  21484. int i;
  21485. for (i = 0; i < 4; i++)
  21486. {
  21487. char *a = foo + i;
  21488. char *b = bar + i;
  21489. strcpy (a, "--------01111111");
  21490. strcpy (b, "--------10000000");
  21491. if (memcmp (a, b, 16) >= 0)
  21492. exit (1);
  21493. }
  21494. exit (0);
  21495. }
  21496. ;
  21497. return 0;
  21498. }
  21499. _ACEOF
  21500. rm -f conftest$ac_exeext
  21501. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21502. (eval $ac_link) 2>&5
  21503. ac_status=$?
  21504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21505. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21506. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21507. (eval $ac_try) 2>&5
  21508. ac_status=$?
  21509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21510. (exit $ac_status); }; }; then
  21511. ac_cv_func_memcmp_working=yes
  21512. else
  21513. echo "$as_me: program exited with status $ac_status" >&5
  21514. echo "$as_me: failed program was:" >&5
  21515. sed 's/^/| /' conftest.$ac_ext >&5
  21516. ( exit $ac_status )
  21517. ac_cv_func_memcmp_working=no
  21518. fi
  21519. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21520. fi
  21521. fi
  21522. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  21523. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  21524. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  21525. "memcmp.$ac_objext" | \
  21526. *" memcmp.$ac_objext" | \
  21527. "memcmp.$ac_objext "* | \
  21528. *" memcmp.$ac_objext "* ) ;;
  21529. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  21530. esac
  21531. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  21532. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  21533. if test "${ac_cv_type_signal+set}" = set; then
  21534. echo $ECHO_N "(cached) $ECHO_C" >&6
  21535. else
  21536. cat >conftest.$ac_ext <<_ACEOF
  21537. /* confdefs.h. */
  21538. _ACEOF
  21539. cat confdefs.h >>conftest.$ac_ext
  21540. cat >>conftest.$ac_ext <<_ACEOF
  21541. /* end confdefs.h. */
  21542. #include <sys/types.h>
  21543. #include <signal.h>
  21544. #ifdef signal
  21545. # undef signal
  21546. #endif
  21547. #ifdef __cplusplus
  21548. extern "C" void (*signal (int, void (*)(int)))(int);
  21549. #else
  21550. void (*signal ()) ();
  21551. #endif
  21552. int
  21553. main ()
  21554. {
  21555. int i;
  21556. ;
  21557. return 0;
  21558. }
  21559. _ACEOF
  21560. rm -f conftest.$ac_objext
  21561. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21562. (eval $ac_compile) 2>conftest.er1
  21563. ac_status=$?
  21564. grep -v '^ *+' conftest.er1 >conftest.err
  21565. rm -f conftest.er1
  21566. cat conftest.err >&5
  21567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21568. (exit $ac_status); } &&
  21569. { ac_try='test -z "$ac_c_werror_flag"
  21570. || test ! -s conftest.err'
  21571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21572. (eval $ac_try) 2>&5
  21573. ac_status=$?
  21574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21575. (exit $ac_status); }; } &&
  21576. { ac_try='test -s conftest.$ac_objext'
  21577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21578. (eval $ac_try) 2>&5
  21579. ac_status=$?
  21580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21581. (exit $ac_status); }; }; then
  21582. ac_cv_type_signal=void
  21583. else
  21584. echo "$as_me: failed program was:" >&5
  21585. sed 's/^/| /' conftest.$ac_ext >&5
  21586. ac_cv_type_signal=int
  21587. fi
  21588. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21589. fi
  21590. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  21591. echo "${ECHO_T}$ac_cv_type_signal" >&6
  21592. cat >>confdefs.h <<_ACEOF
  21593. #define RETSIGTYPE $ac_cv_type_signal
  21594. _ACEOF
  21595. for ac_func in vprintf
  21596. do
  21597. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21598. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21599. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21600. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21601. echo $ECHO_N "(cached) $ECHO_C" >&6
  21602. else
  21603. cat >conftest.$ac_ext <<_ACEOF
  21604. /* confdefs.h. */
  21605. _ACEOF
  21606. cat confdefs.h >>conftest.$ac_ext
  21607. cat >>conftest.$ac_ext <<_ACEOF
  21608. /* end confdefs.h. */
  21609. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21610. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21611. #define $ac_func innocuous_$ac_func
  21612. /* System header to define __stub macros and hopefully few prototypes,
  21613. which can conflict with char $ac_func (); below.
  21614. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21615. <limits.h> exists even on freestanding compilers. */
  21616. #ifdef __STDC__
  21617. # include <limits.h>
  21618. #else
  21619. # include <assert.h>
  21620. #endif
  21621. #undef $ac_func
  21622. /* Override any gcc2 internal prototype to avoid an error. */
  21623. #ifdef __cplusplus
  21624. extern "C"
  21625. {
  21626. #endif
  21627. /* We use char because int might match the return type of a gcc2
  21628. builtin and then its argument prototype would still apply. */
  21629. char $ac_func ();
  21630. /* The GNU C library defines this for functions which it implements
  21631. to always fail with ENOSYS. Some functions are actually named
  21632. something starting with __ and the normal name is an alias. */
  21633. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21634. choke me
  21635. #else
  21636. char (*f) () = $ac_func;
  21637. #endif
  21638. #ifdef __cplusplus
  21639. }
  21640. #endif
  21641. int
  21642. main ()
  21643. {
  21644. return f != $ac_func;
  21645. ;
  21646. return 0;
  21647. }
  21648. _ACEOF
  21649. rm -f conftest.$ac_objext conftest$ac_exeext
  21650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21651. (eval $ac_link) 2>conftest.er1
  21652. ac_status=$?
  21653. grep -v '^ *+' conftest.er1 >conftest.err
  21654. rm -f conftest.er1
  21655. cat conftest.err >&5
  21656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21657. (exit $ac_status); } &&
  21658. { ac_try='test -z "$ac_c_werror_flag"
  21659. || test ! -s conftest.err'
  21660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21661. (eval $ac_try) 2>&5
  21662. ac_status=$?
  21663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21664. (exit $ac_status); }; } &&
  21665. { ac_try='test -s conftest$ac_exeext'
  21666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21667. (eval $ac_try) 2>&5
  21668. ac_status=$?
  21669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21670. (exit $ac_status); }; }; then
  21671. eval "$as_ac_var=yes"
  21672. else
  21673. echo "$as_me: failed program was:" >&5
  21674. sed 's/^/| /' conftest.$ac_ext >&5
  21675. eval "$as_ac_var=no"
  21676. fi
  21677. rm -f conftest.err conftest.$ac_objext \
  21678. conftest$ac_exeext conftest.$ac_ext
  21679. fi
  21680. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21681. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21682. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21683. cat >>confdefs.h <<_ACEOF
  21684. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21685. _ACEOF
  21686. echo "$as_me:$LINENO: checking for _doprnt" >&5
  21687. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  21688. if test "${ac_cv_func__doprnt+set}" = set; then
  21689. echo $ECHO_N "(cached) $ECHO_C" >&6
  21690. else
  21691. cat >conftest.$ac_ext <<_ACEOF
  21692. /* confdefs.h. */
  21693. _ACEOF
  21694. cat confdefs.h >>conftest.$ac_ext
  21695. cat >>conftest.$ac_ext <<_ACEOF
  21696. /* end confdefs.h. */
  21697. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21698. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21699. #define _doprnt innocuous__doprnt
  21700. /* System header to define __stub macros and hopefully few prototypes,
  21701. which can conflict with char _doprnt (); below.
  21702. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21703. <limits.h> exists even on freestanding compilers. */
  21704. #ifdef __STDC__
  21705. # include <limits.h>
  21706. #else
  21707. # include <assert.h>
  21708. #endif
  21709. #undef _doprnt
  21710. /* Override any gcc2 internal prototype to avoid an error. */
  21711. #ifdef __cplusplus
  21712. extern "C"
  21713. {
  21714. #endif
  21715. /* We use char because int might match the return type of a gcc2
  21716. builtin and then its argument prototype would still apply. */
  21717. char _doprnt ();
  21718. /* The GNU C library defines this for functions which it implements
  21719. to always fail with ENOSYS. Some functions are actually named
  21720. something starting with __ and the normal name is an alias. */
  21721. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  21722. choke me
  21723. #else
  21724. char (*f) () = _doprnt;
  21725. #endif
  21726. #ifdef __cplusplus
  21727. }
  21728. #endif
  21729. int
  21730. main ()
  21731. {
  21732. return f != _doprnt;
  21733. ;
  21734. return 0;
  21735. }
  21736. _ACEOF
  21737. rm -f conftest.$ac_objext conftest$ac_exeext
  21738. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21739. (eval $ac_link) 2>conftest.er1
  21740. ac_status=$?
  21741. grep -v '^ *+' conftest.er1 >conftest.err
  21742. rm -f conftest.er1
  21743. cat conftest.err >&5
  21744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21745. (exit $ac_status); } &&
  21746. { ac_try='test -z "$ac_c_werror_flag"
  21747. || test ! -s conftest.err'
  21748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21749. (eval $ac_try) 2>&5
  21750. ac_status=$?
  21751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21752. (exit $ac_status); }; } &&
  21753. { ac_try='test -s conftest$ac_exeext'
  21754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21755. (eval $ac_try) 2>&5
  21756. ac_status=$?
  21757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21758. (exit $ac_status); }; }; then
  21759. ac_cv_func__doprnt=yes
  21760. else
  21761. echo "$as_me: failed program was:" >&5
  21762. sed 's/^/| /' conftest.$ac_ext >&5
  21763. ac_cv_func__doprnt=no
  21764. fi
  21765. rm -f conftest.err conftest.$ac_objext \
  21766. conftest$ac_exeext conftest.$ac_ext
  21767. fi
  21768. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21769. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  21770. if test $ac_cv_func__doprnt = yes; then
  21771. cat >>confdefs.h <<\_ACEOF
  21772. #define HAVE_DOPRNT 1
  21773. _ACEOF
  21774. fi
  21775. fi
  21776. done
  21777. for ac_func in gettimeofday ctime memset regcomp strdup strerror strtol strncpy strtoull poll ntohll mmap
  21778. do
  21779. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21780. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21781. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21782. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21783. echo $ECHO_N "(cached) $ECHO_C" >&6
  21784. else
  21785. cat >conftest.$ac_ext <<_ACEOF
  21786. /* confdefs.h. */
  21787. _ACEOF
  21788. cat confdefs.h >>conftest.$ac_ext
  21789. cat >>conftest.$ac_ext <<_ACEOF
  21790. /* end confdefs.h. */
  21791. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21792. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21793. #define $ac_func innocuous_$ac_func
  21794. /* System header to define __stub macros and hopefully few prototypes,
  21795. which can conflict with char $ac_func (); below.
  21796. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21797. <limits.h> exists even on freestanding compilers. */
  21798. #ifdef __STDC__
  21799. # include <limits.h>
  21800. #else
  21801. # include <assert.h>
  21802. #endif
  21803. #undef $ac_func
  21804. /* Override any gcc2 internal prototype to avoid an error. */
  21805. #ifdef __cplusplus
  21806. extern "C"
  21807. {
  21808. #endif
  21809. /* We use char because int might match the return type of a gcc2
  21810. builtin and then its argument prototype would still apply. */
  21811. char $ac_func ();
  21812. /* The GNU C library defines this for functions which it implements
  21813. to always fail with ENOSYS. Some functions are actually named
  21814. something starting with __ and the normal name is an alias. */
  21815. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21816. choke me
  21817. #else
  21818. char (*f) () = $ac_func;
  21819. #endif
  21820. #ifdef __cplusplus
  21821. }
  21822. #endif
  21823. int
  21824. main ()
  21825. {
  21826. return f != $ac_func;
  21827. ;
  21828. return 0;
  21829. }
  21830. _ACEOF
  21831. rm -f conftest.$ac_objext conftest$ac_exeext
  21832. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21833. (eval $ac_link) 2>conftest.er1
  21834. ac_status=$?
  21835. grep -v '^ *+' conftest.er1 >conftest.err
  21836. rm -f conftest.er1
  21837. cat conftest.err >&5
  21838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21839. (exit $ac_status); } &&
  21840. { ac_try='test -z "$ac_c_werror_flag"
  21841. || test ! -s conftest.err'
  21842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21843. (eval $ac_try) 2>&5
  21844. ac_status=$?
  21845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21846. (exit $ac_status); }; } &&
  21847. { ac_try='test -s conftest$ac_exeext'
  21848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21849. (eval $ac_try) 2>&5
  21850. ac_status=$?
  21851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21852. (exit $ac_status); }; }; then
  21853. eval "$as_ac_var=yes"
  21854. else
  21855. echo "$as_me: failed program was:" >&5
  21856. sed 's/^/| /' conftest.$ac_ext >&5
  21857. eval "$as_ac_var=no"
  21858. fi
  21859. rm -f conftest.err conftest.$ac_objext \
  21860. conftest$ac_exeext conftest.$ac_ext
  21861. fi
  21862. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21863. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21864. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21865. cat >>confdefs.h <<_ACEOF
  21866. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21867. _ACEOF
  21868. fi
  21869. done
  21870. for ac_func in strlcpy
  21871. do
  21872. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21873. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21874. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21875. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21876. echo $ECHO_N "(cached) $ECHO_C" >&6
  21877. else
  21878. cat >conftest.$ac_ext <<_ACEOF
  21879. /* confdefs.h. */
  21880. _ACEOF
  21881. cat confdefs.h >>conftest.$ac_ext
  21882. cat >>conftest.$ac_ext <<_ACEOF
  21883. /* end confdefs.h. */
  21884. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21885. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21886. #define $ac_func innocuous_$ac_func
  21887. /* System header to define __stub macros and hopefully few prototypes,
  21888. which can conflict with char $ac_func (); below.
  21889. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21890. <limits.h> exists even on freestanding compilers. */
  21891. #ifdef __STDC__
  21892. # include <limits.h>
  21893. #else
  21894. # include <assert.h>
  21895. #endif
  21896. #undef $ac_func
  21897. /* Override any gcc2 internal prototype to avoid an error. */
  21898. #ifdef __cplusplus
  21899. extern "C"
  21900. {
  21901. #endif
  21902. /* We use char because int might match the return type of a gcc2
  21903. builtin and then its argument prototype would still apply. */
  21904. char $ac_func ();
  21905. /* The GNU C library defines this for functions which it implements
  21906. to always fail with ENOSYS. Some functions are actually named
  21907. something starting with __ and the normal name is an alias. */
  21908. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21909. choke me
  21910. #else
  21911. char (*f) () = $ac_func;
  21912. #endif
  21913. #ifdef __cplusplus
  21914. }
  21915. #endif
  21916. int
  21917. main ()
  21918. {
  21919. return f != $ac_func;
  21920. ;
  21921. return 0;
  21922. }
  21923. _ACEOF
  21924. rm -f conftest.$ac_objext conftest$ac_exeext
  21925. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21926. (eval $ac_link) 2>conftest.er1
  21927. ac_status=$?
  21928. grep -v '^ *+' conftest.er1 >conftest.err
  21929. rm -f conftest.er1
  21930. cat conftest.err >&5
  21931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21932. (exit $ac_status); } &&
  21933. { ac_try='test -z "$ac_c_werror_flag"
  21934. || test ! -s conftest.err'
  21935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21936. (eval $ac_try) 2>&5
  21937. ac_status=$?
  21938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21939. (exit $ac_status); }; } &&
  21940. { ac_try='test -s conftest$ac_exeext'
  21941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21942. (eval $ac_try) 2>&5
  21943. ac_status=$?
  21944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21945. (exit $ac_status); }; }; then
  21946. eval "$as_ac_var=yes"
  21947. else
  21948. echo "$as_me: failed program was:" >&5
  21949. sed 's/^/| /' conftest.$ac_ext >&5
  21950. eval "$as_ac_var=no"
  21951. fi
  21952. rm -f conftest.err conftest.$ac_objext \
  21953. conftest$ac_exeext conftest.$ac_ext
  21954. fi
  21955. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21956. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21957. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21958. cat >>confdefs.h <<_ACEOF
  21959. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21960. _ACEOF
  21961. have_strlcpy=true
  21962. else
  21963. have_strlcpy=false
  21964. fi
  21965. done
  21966. if test x$have_strlcpy = xtrue; then
  21967. SYSTEM_STRLCPY_TRUE=
  21968. SYSTEM_STRLCPY_FALSE='#'
  21969. else
  21970. SYSTEM_STRLCPY_TRUE='#'
  21971. SYSTEM_STRLCPY_FALSE=
  21972. fi
  21973. echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  21974. echo $ECHO_N "checking for struct timeval.tv_sec... $ECHO_C" >&6
  21975. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  21976. echo $ECHO_N "(cached) $ECHO_C" >&6
  21977. else
  21978. cat >conftest.$ac_ext <<_ACEOF
  21979. /* confdefs.h. */
  21980. _ACEOF
  21981. cat confdefs.h >>conftest.$ac_ext
  21982. cat >>conftest.$ac_ext <<_ACEOF
  21983. /* end confdefs.h. */
  21984. $ac_includes_default
  21985. int
  21986. main ()
  21987. {
  21988. static struct timeval ac_aggr;
  21989. if (ac_aggr.tv_sec)
  21990. return 0;
  21991. ;
  21992. return 0;
  21993. }
  21994. _ACEOF
  21995. rm -f conftest.$ac_objext
  21996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21997. (eval $ac_compile) 2>conftest.er1
  21998. ac_status=$?
  21999. grep -v '^ *+' conftest.er1 >conftest.err
  22000. rm -f conftest.er1
  22001. cat conftest.err >&5
  22002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22003. (exit $ac_status); } &&
  22004. { ac_try='test -z "$ac_c_werror_flag"
  22005. || test ! -s conftest.err'
  22006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22007. (eval $ac_try) 2>&5
  22008. ac_status=$?
  22009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22010. (exit $ac_status); }; } &&
  22011. { ac_try='test -s conftest.$ac_objext'
  22012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22013. (eval $ac_try) 2>&5
  22014. ac_status=$?
  22015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22016. (exit $ac_status); }; }; then
  22017. ac_cv_member_struct_timeval_tv_sec=yes
  22018. else
  22019. echo "$as_me: failed program was:" >&5
  22020. sed 's/^/| /' conftest.$ac_ext >&5
  22021. cat >conftest.$ac_ext <<_ACEOF
  22022. /* confdefs.h. */
  22023. _ACEOF
  22024. cat confdefs.h >>conftest.$ac_ext
  22025. cat >>conftest.$ac_ext <<_ACEOF
  22026. /* end confdefs.h. */
  22027. $ac_includes_default
  22028. int
  22029. main ()
  22030. {
  22031. static struct timeval ac_aggr;
  22032. if (sizeof ac_aggr.tv_sec)
  22033. return 0;
  22034. ;
  22035. return 0;
  22036. }
  22037. _ACEOF
  22038. rm -f conftest.$ac_objext
  22039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22040. (eval $ac_compile) 2>conftest.er1
  22041. ac_status=$?
  22042. grep -v '^ *+' conftest.er1 >conftest.err
  22043. rm -f conftest.er1
  22044. cat conftest.err >&5
  22045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22046. (exit $ac_status); } &&
  22047. { ac_try='test -z "$ac_c_werror_flag"
  22048. || test ! -s conftest.err'
  22049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22050. (eval $ac_try) 2>&5
  22051. ac_status=$?
  22052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22053. (exit $ac_status); }; } &&
  22054. { ac_try='test -s conftest.$ac_objext'
  22055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22056. (eval $ac_try) 2>&5
  22057. ac_status=$?
  22058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22059. (exit $ac_status); }; }; then
  22060. ac_cv_member_struct_timeval_tv_sec=yes
  22061. else
  22062. echo "$as_me: failed program was:" >&5
  22063. sed 's/^/| /' conftest.$ac_ext >&5
  22064. ac_cv_member_struct_timeval_tv_sec=no
  22065. fi
  22066. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22067. fi
  22068. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22069. fi
  22070. echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  22071. echo "${ECHO_T}$ac_cv_member_struct_timeval_tv_sec" >&6
  22072. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  22073. cat >>confdefs.h <<_ACEOF
  22074. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  22075. _ACEOF
  22076. fi
  22077. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  22078. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  22079. if test "${ac_cv_c_bigendian+set}" = set; then
  22080. echo $ECHO_N "(cached) $ECHO_C" >&6
  22081. else
  22082. # See if sys/param.h defines the BYTE_ORDER macro.
  22083. cat >conftest.$ac_ext <<_ACEOF
  22084. /* confdefs.h. */
  22085. _ACEOF
  22086. cat confdefs.h >>conftest.$ac_ext
  22087. cat >>conftest.$ac_ext <<_ACEOF
  22088. /* end confdefs.h. */
  22089. #include <sys/types.h>
  22090. #include <sys/param.h>
  22091. int
  22092. main ()
  22093. {
  22094. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  22095. bogus endian macros
  22096. #endif
  22097. ;
  22098. return 0;
  22099. }
  22100. _ACEOF
  22101. rm -f conftest.$ac_objext
  22102. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22103. (eval $ac_compile) 2>conftest.er1
  22104. ac_status=$?
  22105. grep -v '^ *+' conftest.er1 >conftest.err
  22106. rm -f conftest.er1
  22107. cat conftest.err >&5
  22108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22109. (exit $ac_status); } &&
  22110. { ac_try='test -z "$ac_c_werror_flag"
  22111. || test ! -s conftest.err'
  22112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22113. (eval $ac_try) 2>&5
  22114. ac_status=$?
  22115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22116. (exit $ac_status); }; } &&
  22117. { ac_try='test -s conftest.$ac_objext'
  22118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22119. (eval $ac_try) 2>&5
  22120. ac_status=$?
  22121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22122. (exit $ac_status); }; }; then
  22123. # It does; now see whether it defined to BIG_ENDIAN or not.
  22124. cat >conftest.$ac_ext <<_ACEOF
  22125. /* confdefs.h. */
  22126. _ACEOF
  22127. cat confdefs.h >>conftest.$ac_ext
  22128. cat >>conftest.$ac_ext <<_ACEOF
  22129. /* end confdefs.h. */
  22130. #include <sys/types.h>
  22131. #include <sys/param.h>
  22132. int
  22133. main ()
  22134. {
  22135. #if BYTE_ORDER != BIG_ENDIAN
  22136. not big endian
  22137. #endif
  22138. ;
  22139. return 0;
  22140. }
  22141. _ACEOF
  22142. rm -f conftest.$ac_objext
  22143. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22144. (eval $ac_compile) 2>conftest.er1
  22145. ac_status=$?
  22146. grep -v '^ *+' conftest.er1 >conftest.err
  22147. rm -f conftest.er1
  22148. cat conftest.err >&5
  22149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22150. (exit $ac_status); } &&
  22151. { ac_try='test -z "$ac_c_werror_flag"
  22152. || test ! -s conftest.err'
  22153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22154. (eval $ac_try) 2>&5
  22155. ac_status=$?
  22156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22157. (exit $ac_status); }; } &&
  22158. { ac_try='test -s conftest.$ac_objext'
  22159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22160. (eval $ac_try) 2>&5
  22161. ac_status=$?
  22162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22163. (exit $ac_status); }; }; then
  22164. ac_cv_c_bigendian=yes
  22165. else
  22166. echo "$as_me: failed program was:" >&5
  22167. sed 's/^/| /' conftest.$ac_ext >&5
  22168. ac_cv_c_bigendian=no
  22169. fi
  22170. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22171. else
  22172. echo "$as_me: failed program was:" >&5
  22173. sed 's/^/| /' conftest.$ac_ext >&5
  22174. # It does not; compile a test program.
  22175. if test "$cross_compiling" = yes; then
  22176. # try to guess the endianness by grepping values into an object file
  22177. ac_cv_c_bigendian=unknown
  22178. cat >conftest.$ac_ext <<_ACEOF
  22179. /* confdefs.h. */
  22180. _ACEOF
  22181. cat confdefs.h >>conftest.$ac_ext
  22182. cat >>conftest.$ac_ext <<_ACEOF
  22183. /* end confdefs.h. */
  22184. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  22185. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  22186. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  22187. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  22188. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  22189. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  22190. int
  22191. main ()
  22192. {
  22193. _ascii (); _ebcdic ();
  22194. ;
  22195. return 0;
  22196. }
  22197. _ACEOF
  22198. rm -f conftest.$ac_objext
  22199. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22200. (eval $ac_compile) 2>conftest.er1
  22201. ac_status=$?
  22202. grep -v '^ *+' conftest.er1 >conftest.err
  22203. rm -f conftest.er1
  22204. cat conftest.err >&5
  22205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22206. (exit $ac_status); } &&
  22207. { ac_try='test -z "$ac_c_werror_flag"
  22208. || test ! -s conftest.err'
  22209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22210. (eval $ac_try) 2>&5
  22211. ac_status=$?
  22212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22213. (exit $ac_status); }; } &&
  22214. { ac_try='test -s conftest.$ac_objext'
  22215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22216. (eval $ac_try) 2>&5
  22217. ac_status=$?
  22218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22219. (exit $ac_status); }; }; then
  22220. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  22221. ac_cv_c_bigendian=yes
  22222. fi
  22223. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  22224. if test "$ac_cv_c_bigendian" = unknown; then
  22225. ac_cv_c_bigendian=no
  22226. else
  22227. # finding both strings is unlikely to happen, but who knows?
  22228. ac_cv_c_bigendian=unknown
  22229. fi
  22230. fi
  22231. else
  22232. echo "$as_me: failed program was:" >&5
  22233. sed 's/^/| /' conftest.$ac_ext >&5
  22234. fi
  22235. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22236. else
  22237. cat >conftest.$ac_ext <<_ACEOF
  22238. /* confdefs.h. */
  22239. _ACEOF
  22240. cat confdefs.h >>conftest.$ac_ext
  22241. cat >>conftest.$ac_ext <<_ACEOF
  22242. /* end confdefs.h. */
  22243. int
  22244. main ()
  22245. {
  22246. /* Are we little or big endian? From Harbison&Steele. */
  22247. union
  22248. {
  22249. long l;
  22250. char c[sizeof (long)];
  22251. } u;
  22252. u.l = 1;
  22253. exit (u.c[sizeof (long) - 1] == 1);
  22254. }
  22255. _ACEOF
  22256. rm -f conftest$ac_exeext
  22257. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22258. (eval $ac_link) 2>&5
  22259. ac_status=$?
  22260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22261. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22263. (eval $ac_try) 2>&5
  22264. ac_status=$?
  22265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22266. (exit $ac_status); }; }; then
  22267. ac_cv_c_bigendian=no
  22268. else
  22269. echo "$as_me: program exited with status $ac_status" >&5
  22270. echo "$as_me: failed program was:" >&5
  22271. sed 's/^/| /' conftest.$ac_ext >&5
  22272. ( exit $ac_status )
  22273. ac_cv_c_bigendian=yes
  22274. fi
  22275. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22276. fi
  22277. fi
  22278. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22279. fi
  22280. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  22281. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  22282. case $ac_cv_c_bigendian in
  22283. yes)
  22284. cat >>confdefs.h <<\_ACEOF
  22285. #define WORDS_BIGENDIAN 1
  22286. _ACEOF
  22287. ;;
  22288. no)
  22289. ;;
  22290. *)
  22291. { { echo "$as_me:$LINENO: error: unknown endianness
  22292. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  22293. echo "$as_me: error: unknown endianness
  22294. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  22295. { (exit 1); exit 1; }; } ;;
  22296. esac
  22297. doctools=no
  22298. if test -n "$FIG2DEV" -a -n "$LYX" -a -n "$DVIPS" -a -n "$TEXI2DVI" \
  22299. -a -n "$LATEX2HTML" -a -n "$DVIPDFM" ; then
  22300. doctools=yes
  22301. fi
  22302. if test $doctools = yes; then
  22303. HAVE_DOCTOOLS_TRUE=
  22304. HAVE_DOCTOOLS_FALSE='#'
  22305. else
  22306. HAVE_DOCTOOLS_TRUE='#'
  22307. HAVE_DOCTOOLS_FALSE=
  22308. fi
  22309. debug=no
  22310. # Check whether --enable-debug or --disable-debug was given.
  22311. if test "${enable_debug+set}" = set; then
  22312. enableval="$enable_debug"
  22313. if test x$enableval = xyes; then
  22314. debug=yes
  22315. CFLAGS="-ggdb -Wall -pedantic"
  22316. cat >>confdefs.h <<\_ACEOF
  22317. #define DEBUG
  22318. _ACEOF
  22319. fi
  22320. fi;
  22321. # Check whether --enable-efence or --disable-efence was given.
  22322. if test "${enable_efence+set}" = set; then
  22323. enableval="$enable_efence"
  22324. if test x$enableval = xyes; then
  22325. CFLAGS="$CFLAGS -lefence"
  22326. cat >>confdefs.h <<\_ACEOF
  22327. #define EFENCE
  22328. _ACEOF
  22329. fi
  22330. fi;
  22331. # Check whether --enable-gprof or --disable-gprof was given.
  22332. if test "${enable_gprof+set}" = set; then
  22333. enableval="$enable_gprof"
  22334. if test x$enableval = xyes; then
  22335. if test $debug = yes; then
  22336. CFLAGS="$CFLAGS -pg"
  22337. else
  22338. # GPROF requires gdb
  22339. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  22340. fi
  22341. cat >>confdefs.h <<\_ACEOF
  22342. #define GPROF
  22343. _ACEOF
  22344. fi
  22345. fi;
  22346. # Check whether --enable-64bits or --disable-64bits was given.
  22347. if test "${enable_64bits+set}" = set; then
  22348. enableval="$enable_64bits"
  22349. if test x$enableval = xyes; then
  22350. cat >>confdefs.h <<\_ACEOF
  22351. #define ENABLE_64BITS
  22352. _ACEOF
  22353. { echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  22354. echo "$as_me: Using u_int64_t for packet counters" >&6;}
  22355. else
  22356. { echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  22357. echo "$as_me: Using u_int32_t for packet counters" >&6;}
  22358. fi
  22359. fi;
  22360. dynamic_link=no
  22361. # Check whether --enable-dynamic-link or --disable-dynamic-link was given.
  22362. if test "${enable_dynamic_link+set}" = set; then
  22363. enableval="$enable_dynamic_link"
  22364. if test x$enableval = xyes; then
  22365. cat >>confdefs.h <<\_ACEOF
  22366. #define ENABLE_DYNAMIC_LINK
  22367. _ACEOF
  22368. dynamic_link=yes
  22369. fi
  22370. fi;
  22371. echo "$as_me:$LINENO: checking for inet_aton" >&5
  22372. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
  22373. if test "${ac_cv_func_inet_aton+set}" = set; then
  22374. echo $ECHO_N "(cached) $ECHO_C" >&6
  22375. else
  22376. cat >conftest.$ac_ext <<_ACEOF
  22377. /* confdefs.h. */
  22378. _ACEOF
  22379. cat confdefs.h >>conftest.$ac_ext
  22380. cat >>conftest.$ac_ext <<_ACEOF
  22381. /* end confdefs.h. */
  22382. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  22383. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22384. #define inet_aton innocuous_inet_aton
  22385. /* System header to define __stub macros and hopefully few prototypes,
  22386. which can conflict with char inet_aton (); below.
  22387. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22388. <limits.h> exists even on freestanding compilers. */
  22389. #ifdef __STDC__
  22390. # include <limits.h>
  22391. #else
  22392. # include <assert.h>
  22393. #endif
  22394. #undef inet_aton
  22395. /* Override any gcc2 internal prototype to avoid an error. */
  22396. #ifdef __cplusplus
  22397. extern "C"
  22398. {
  22399. #endif
  22400. /* We use char because int might match the return type of a gcc2
  22401. builtin and then its argument prototype would still apply. */
  22402. char inet_aton ();
  22403. /* The GNU C library defines this for functions which it implements
  22404. to always fail with ENOSYS. Some functions are actually named
  22405. something starting with __ and the normal name is an alias. */
  22406. #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
  22407. choke me
  22408. #else
  22409. char (*f) () = inet_aton;
  22410. #endif
  22411. #ifdef __cplusplus
  22412. }
  22413. #endif
  22414. int
  22415. main ()
  22416. {
  22417. return f != inet_aton;
  22418. ;
  22419. return 0;
  22420. }
  22421. _ACEOF
  22422. rm -f conftest.$ac_objext conftest$ac_exeext
  22423. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22424. (eval $ac_link) 2>conftest.er1
  22425. ac_status=$?
  22426. grep -v '^ *+' conftest.er1 >conftest.err
  22427. rm -f conftest.er1
  22428. cat conftest.err >&5
  22429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22430. (exit $ac_status); } &&
  22431. { ac_try='test -z "$ac_c_werror_flag"
  22432. || test ! -s conftest.err'
  22433. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22434. (eval $ac_try) 2>&5
  22435. ac_status=$?
  22436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22437. (exit $ac_status); }; } &&
  22438. { ac_try='test -s conftest$ac_exeext'
  22439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22440. (eval $ac_try) 2>&5
  22441. ac_status=$?
  22442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22443. (exit $ac_status); }; }; then
  22444. ac_cv_func_inet_aton=yes
  22445. else
  22446. echo "$as_me: failed program was:" >&5
  22447. sed 's/^/| /' conftest.$ac_ext >&5
  22448. ac_cv_func_inet_aton=no
  22449. fi
  22450. rm -f conftest.err conftest.$ac_objext \
  22451. conftest$ac_exeext conftest.$ac_ext
  22452. fi
  22453. echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  22454. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
  22455. if test $ac_cv_func_inet_aton = yes; then
  22456. cat >>confdefs.h <<\_ACEOF
  22457. #define INET_ATON
  22458. _ACEOF
  22459. inet_aton=yes
  22460. else
  22461. inet_aton=no
  22462. fi
  22463. echo "$as_me:$LINENO: checking for inet_addr" >&5
  22464. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
  22465. if test "${ac_cv_func_inet_addr+set}" = set; then
  22466. echo $ECHO_N "(cached) $ECHO_C" >&6
  22467. else
  22468. cat >conftest.$ac_ext <<_ACEOF
  22469. /* confdefs.h. */
  22470. _ACEOF
  22471. cat confdefs.h >>conftest.$ac_ext
  22472. cat >>conftest.$ac_ext <<_ACEOF
  22473. /* end confdefs.h. */
  22474. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  22475. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22476. #define inet_addr innocuous_inet_addr
  22477. /* System header to define __stub macros and hopefully few prototypes,
  22478. which can conflict with char inet_addr (); below.
  22479. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22480. <limits.h> exists even on freestanding compilers. */
  22481. #ifdef __STDC__
  22482. # include <limits.h>
  22483. #else
  22484. # include <assert.h>
  22485. #endif
  22486. #undef inet_addr
  22487. /* Override any gcc2 internal prototype to avoid an error. */
  22488. #ifdef __cplusplus
  22489. extern "C"
  22490. {
  22491. #endif
  22492. /* We use char because int might match the return type of a gcc2
  22493. builtin and then its argument prototype would still apply. */
  22494. char inet_addr ();
  22495. /* The GNU C library defines this for functions which it implements
  22496. to always fail with ENOSYS. Some functions are actually named
  22497. something starting with __ and the normal name is an alias. */
  22498. #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
  22499. choke me
  22500. #else
  22501. char (*f) () = inet_addr;
  22502. #endif
  22503. #ifdef __cplusplus
  22504. }
  22505. #endif
  22506. int
  22507. main ()
  22508. {
  22509. return f != inet_addr;
  22510. ;
  22511. return 0;
  22512. }
  22513. _ACEOF
  22514. rm -f conftest.$ac_objext conftest$ac_exeext
  22515. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22516. (eval $ac_link) 2>conftest.er1
  22517. ac_status=$?
  22518. grep -v '^ *+' conftest.er1 >conftest.err
  22519. rm -f conftest.er1
  22520. cat conftest.err >&5
  22521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22522. (exit $ac_status); } &&
  22523. { ac_try='test -z "$ac_c_werror_flag"
  22524. || test ! -s conftest.err'
  22525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22526. (eval $ac_try) 2>&5
  22527. ac_status=$?
  22528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22529. (exit $ac_status); }; } &&
  22530. { ac_try='test -s conftest$ac_exeext'
  22531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22532. (eval $ac_try) 2>&5
  22533. ac_status=$?
  22534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22535. (exit $ac_status); }; }; then
  22536. ac_cv_func_inet_addr=yes
  22537. else
  22538. echo "$as_me: failed program was:" >&5
  22539. sed 's/^/| /' conftest.$ac_ext >&5
  22540. ac_cv_func_inet_addr=no
  22541. fi
  22542. rm -f conftest.err conftest.$ac_objext \
  22543. conftest$ac_exeext conftest.$ac_ext
  22544. fi
  22545. echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  22546. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
  22547. if test $ac_cv_func_inet_addr = yes; then
  22548. cat >>confdefs.h <<\_ACEOF
  22549. #define INET_ADDR
  22550. _ACEOF
  22551. inet_addr=yes
  22552. else
  22553. inet_addr=no
  22554. fi
  22555. if test $inet_aton = no -a $inet_addr = no ; then
  22556. { { echo "$as_me:$LINENO: error: \"We need either inet_aton or inet_addr\"" >&5
  22557. echo "$as_me: error: \"We need either inet_aton or inet_addr\"" >&2;}
  22558. { (exit 1); exit 1; }; }
  22559. fi
  22560. foundnet=no
  22561. trynetdir=/usr/local
  22562. echo "$as_me:$LINENO: checking for libnet" >&5
  22563. echo $ECHO_N "checking for libnet... $ECHO_C" >&6
  22564. # Check whether --with-libnet or --without-libnet was given.
  22565. if test "${with_libnet+set}" = set; then
  22566. withval="$with_libnet"
  22567. trynetdir=$withval
  22568. fi;
  22569. for testdir in $trynetdir /usr/local /usr ; do
  22570. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  22571. LNETINC="${testdir}/include/libnet.h"
  22572. LNETINCDIR="$testdir/include"
  22573. if test $dynamic_link = yes; then
  22574. LNETLIB="-L${testdir}/lib -lnet"
  22575. elif test -f "${testdir}/lib64/libnet.a" ; then
  22576. LNETLIB="${testdir}/lib64/libnet.a"
  22577. else
  22578. LNETLIB="${testdir}/lib/libnet.a"
  22579. fi
  22580. foundnet=$testdir
  22581. fi
  22582. done
  22583. if test $foundnet = no ; then
  22584. echo "$as_me:$LINENO: result: no" >&5
  22585. echo "${ECHO_T}no" >&6
  22586. { { echo "$as_me:$LINENO: error: libnet not found" >&5
  22587. echo "$as_me: error: libnet not found" >&2;}
  22588. { (exit 1); exit 1; }; }
  22589. else
  22590. echo "$as_me:$LINENO: result: $foundnet" >&5
  22591. echo "${ECHO_T}$foundnet" >&6
  22592. fi
  22593. OLDLIBS="$LIBS"
  22594. OLDCFLAGS="$CFLAGS"
  22595. LIBS="$LNETLIB"
  22596. CFLAGS="$CFLAGS -I$LNETINCDIR"
  22597. echo "$as_me:$LINENO: checking for libnet version" >&5
  22598. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6
  22599. if test "$cross_compiling" = yes; then
  22600. libnet_ver_10=no
  22601. else
  22602. cat >conftest.$ac_ext <<_ACEOF
  22603. /* confdefs.h. */
  22604. _ACEOF
  22605. cat confdefs.h >>conftest.$ac_ext
  22606. cat >>conftest.$ac_ext <<_ACEOF
  22607. /* end confdefs.h. */
  22608. #include <string.h>
  22609. #define LIBNET_LIL_ENDIAN 1
  22610. #include "$LNETINC"
  22611. #define LIB_TEST "1.0"
  22612. /*
  22613. * simple proggy to test the version of libnet
  22614. * returns zero if it's 1.0.x
  22615. * or one otherwise
  22616. */
  22617. int
  22618. main (int argc, char *argv[])
  22619. {
  22620. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22621. exit(0);
  22622. exit(1);
  22623. }
  22624. _ACEOF
  22625. rm -f conftest$ac_exeext
  22626. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22627. (eval $ac_link) 2>&5
  22628. ac_status=$?
  22629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22630. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22632. (eval $ac_try) 2>&5
  22633. ac_status=$?
  22634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22635. (exit $ac_status); }; }; then
  22636. libnet_ver_10=yes
  22637. echo "$as_me:$LINENO: result: 1.0.x" >&5
  22638. echo "${ECHO_T}1.0.x" >&6
  22639. else
  22640. echo "$as_me: program exited with status $ac_status" >&5
  22641. echo "$as_me: failed program was:" >&5
  22642. sed 's/^/| /' conftest.$ac_ext >&5
  22643. ( exit $ac_status )
  22644. libnet_ver_10=no
  22645. fi
  22646. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22647. fi
  22648. if test "$cross_compiling" = yes; then
  22649. libnet_ver_11=no
  22650. else
  22651. cat >conftest.$ac_ext <<_ACEOF
  22652. /* confdefs.h. */
  22653. _ACEOF
  22654. cat confdefs.h >>conftest.$ac_ext
  22655. cat >>conftest.$ac_ext <<_ACEOF
  22656. /* end confdefs.h. */
  22657. #include <string.h>
  22658. #include "$LNETINC"
  22659. #define LIB_TEST "1.1"
  22660. /*
  22661. * simple proggy to test the version of libnet
  22662. * returns zero if it's 1.0.x
  22663. * or one otherwise
  22664. */
  22665. int
  22666. main (int argc, char *argv[])
  22667. {
  22668. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22669. exit(0);
  22670. exit(1);
  22671. }
  22672. _ACEOF
  22673. rm -f conftest$ac_exeext
  22674. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22675. (eval $ac_link) 2>&5
  22676. ac_status=$?
  22677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22678. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22680. (eval $ac_try) 2>&5
  22681. ac_status=$?
  22682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22683. (exit $ac_status); }; }; then
  22684. libnet_ver_11=yes
  22685. echo "$as_me:$LINENO: result: 1.1.x" >&5
  22686. echo "${ECHO_T}1.1.x" >&6
  22687. else
  22688. echo "$as_me: program exited with status $ac_status" >&5
  22689. echo "$as_me: failed program was:" >&5
  22690. sed 's/^/| /' conftest.$ac_ext >&5
  22691. ( exit $ac_status )
  22692. libnet_ver_11=no
  22693. fi
  22694. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22695. fi
  22696. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  22697. echo "$as_me:$LINENO: result: unknown" >&5
  22698. echo "${ECHO_T}unknown" >&6
  22699. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  22700. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  22701. { (exit 1); exit 1; }; }
  22702. fi
  22703. if test $libnet_ver_10 = yes ; then
  22704. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  22705. Please upgrade to 1.1.0 or better" >&5
  22706. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  22707. Please upgrade to 1.1.0 or better" >&2;}
  22708. { (exit 1); exit 1; }; }
  22709. fi
  22710. echo "$as_me:$LINENO: checking for working libnet_checksum()" >&5
  22711. echo $ECHO_N "checking for working libnet_checksum()... $ECHO_C" >&6
  22712. if test "$cross_compiling" = yes; then
  22713. libnet_ver_113=no
  22714. else
  22715. cat >conftest.$ac_ext <<_ACEOF
  22716. /* confdefs.h. */
  22717. _ACEOF
  22718. cat confdefs.h >>conftest.$ac_ext
  22719. cat >>conftest.$ac_ext <<_ACEOF
  22720. /* end confdefs.h. */
  22721. #include <string.h>
  22722. #include "$LNETINC"
  22723. #define LIB_TEST "1.1.3"
  22724. /*
  22725. * simple proggy to test the version of libnet
  22726. * returns zero if it's < 1.1.3 which has the checksum fix
  22727. * or one otherwise
  22728. */
  22729. int
  22730. main (int argc, char *argv[])
  22731. {
  22732. if (strncmp(LIB_TEST, LIBNET_VERSION, 5) <= 0)
  22733. exit(0);
  22734. exit(1);
  22735. }
  22736. _ACEOF
  22737. rm -f conftest$ac_exeext
  22738. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22739. (eval $ac_link) 2>&5
  22740. ac_status=$?
  22741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22742. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22744. (eval $ac_try) 2>&5
  22745. ac_status=$?
  22746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22747. (exit $ac_status); }; }; then
  22748. libnet_ver_113=yes
  22749. else
  22750. echo "$as_me: program exited with status $ac_status" >&5
  22751. echo "$as_me: failed program was:" >&5
  22752. sed 's/^/| /' conftest.$ac_ext >&5
  22753. ( exit $ac_status )
  22754. libnet_ver_113=no
  22755. fi
  22756. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22757. fi
  22758. if test $libnet_ver_113 = no ; then
  22759. echo "$as_me:$LINENO: result: no" >&5
  22760. echo "${ECHO_T}no" >&6
  22761. { echo "$as_me:$LINENO: WARNING: You should upgrade to libnet 1.1.3 or better if you
  22762. want to modify packets" >&5
  22763. echo "$as_me: WARNING: You should upgrade to libnet 1.1.3 or better if you
  22764. want to modify packets" >&2;}
  22765. else
  22766. echo "$as_me:$LINENO: result: yes" >&5
  22767. echo "${ECHO_T}yes" >&6
  22768. fi
  22769. LIBS="$OLDLIBS"
  22770. CFLAGS="$OLDCFLAGS"
  22771. foundpcap=no
  22772. trypcapdir=/usr/local
  22773. echo "$as_me:$LINENO: checking for libpcap" >&5
  22774. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6
  22775. # Check whether --with-libpcap or --without-libpcap was given.
  22776. if test "${with_libpcap+set}" = set; then
  22777. withval="$with_libpcap"
  22778. trypcapdir=$withval
  22779. fi;
  22780. for testdir in $trypcapdir /usr/local /usr ; do
  22781. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  22782. LPCAPINC="${testdir}/include/pcap.h"
  22783. LPCAPINCDIR="${testdir}/include"
  22784. if test $dynamic_link = yes; then
  22785. LPCAPLIB="-L${testdir}/lib -lpcap"
  22786. elif test -f "${testdir}/lib64/libpcap.a" ; then
  22787. LPCAPLIB="${testdir}/lib64/libpcap.a"
  22788. else
  22789. LPCAPLIB="${testdir}/lib/libpcap.a"
  22790. fi
  22791. foundpcap=$testdir
  22792. fi
  22793. done
  22794. if test $foundpcap = no ; then
  22795. echo "$as_me:$LINENO: result: no" >&5
  22796. echo "${ECHO_T}no" >&6
  22797. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  22798. echo "$as_me: error: libpcap not found" >&2;}
  22799. { (exit 1); exit 1; }; }
  22800. else
  22801. echo "$as_me:$LINENO: result: $foundpcap" >&5
  22802. echo "${ECHO_T}$foundpcap" >&6
  22803. fi
  22804. OLDLIBS="$LIBS"
  22805. OLDCFLAGS="$CFLAGS"
  22806. LIBS="$LPCAPLIB"
  22807. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  22808. echo "$as_me:$LINENO: checking for libpcap version" >&5
  22809. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6
  22810. if test "$cross_compiling" = yes; then
  22811. libpcap_ver=no
  22812. else
  22813. cat >conftest.$ac_ext <<_ACEOF
  22814. /* confdefs.h. */
  22815. _ACEOF
  22816. cat confdefs.h >>conftest.$ac_ext
  22817. cat >>conftest.$ac_ext <<_ACEOF
  22818. /* end confdefs.h. */
  22819. #include <string.h>
  22820. #include <stdlib.h>
  22821. #include <stdio.h>
  22822. #include "$LPCAPINC"
  22823. #define PCAP_TEST "0.5"
  22824. /*
  22825. * simple proggy to test the version of libpcap
  22826. * returns zero if version >= 0.5
  22827. * or one otherwise
  22828. */
  22829. extern char pcap_version[];
  22830. int
  22831. main (int argc, char *argv[])
  22832. {
  22833. if (strncmp(pcap_version, PCAP_TEST, 3) >= 0)
  22834. exit(0);
  22835. exit(1);
  22836. }
  22837. _ACEOF
  22838. rm -f conftest$ac_exeext
  22839. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22840. (eval $ac_link) 2>&5
  22841. ac_status=$?
  22842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22843. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22845. (eval $ac_try) 2>&5
  22846. ac_status=$?
  22847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22848. (exit $ac_status); }; }; then
  22849. libpcap_ver=yes
  22850. echo "$as_me:$LINENO: result: >= 0.5" >&5
  22851. echo "${ECHO_T}>= 0.5" >&6
  22852. else
  22853. echo "$as_me: program exited with status $ac_status" >&5
  22854. echo "$as_me: failed program was:" >&5
  22855. sed 's/^/| /' conftest.$ac_ext >&5
  22856. ( exit $ac_status )
  22857. libpcap_ver=no
  22858. echo "$as_me:$LINENO: result: < 0.5" >&5
  22859. echo "${ECHO_T}< 0.5" >&6
  22860. fi
  22861. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22862. fi
  22863. if test $libpcap_ver = no ; then
  22864. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.5 are not supported.
  22865. Please upgrade to version 0.5 or better" >&5
  22866. echo "$as_me: error: Libpcap versions < 0.5 are not supported.
  22867. Please upgrade to version 0.5 or better" >&2;}
  22868. { (exit 1); exit 1; }; }
  22869. fi
  22870. echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  22871. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
  22872. if test "$cross_compiling" = yes; then
  22873. have_dlt_to_desc=no
  22874. else
  22875. cat >conftest.$ac_ext <<_ACEOF
  22876. /* confdefs.h. */
  22877. _ACEOF
  22878. cat confdefs.h >>conftest.$ac_ext
  22879. cat >>conftest.$ac_ext <<_ACEOF
  22880. /* end confdefs.h. */
  22881. #include <stdio.h>
  22882. #include <stdlib.h>
  22883. #include <string.h>
  22884. #include "$LPCAPINC"
  22885. int
  22886. main(int argc, char *argv[]) {
  22887. pcap_datalink_val_to_description(1);
  22888. exit(0);
  22889. }
  22890. _ACEOF
  22891. rm -f conftest$ac_exeext
  22892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22893. (eval $ac_link) 2>&5
  22894. ac_status=$?
  22895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22896. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22898. (eval $ac_try) 2>&5
  22899. ac_status=$?
  22900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22901. (exit $ac_status); }; }; then
  22902. have_dlt_to_desc=yes
  22903. echo "$as_me:$LINENO: result: yes" >&5
  22904. echo "${ECHO_T}yes" >&6
  22905. else
  22906. echo "$as_me: program exited with status $ac_status" >&5
  22907. echo "$as_me: failed program was:" >&5
  22908. sed 's/^/| /' conftest.$ac_ext >&5
  22909. ( exit $ac_status )
  22910. have_dlt_to_desc=no
  22911. echo "$as_me:$LINENO: result: no" >&5
  22912. echo "${ECHO_T}no" >&6
  22913. fi
  22914. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22915. fi
  22916. if test $have_dlt_to_desc = yes ; then
  22917. cat >>confdefs.h <<\_ACEOF
  22918. #define HAVE_DLT_VAL_TO_DESC
  22919. _ACEOF
  22920. fi
  22921. echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  22922. echo $ECHO_N "checking for DLT_LINUX_SLL in libpcap... $ECHO_C" >&6
  22923. cat >conftest.$ac_ext <<_ACEOF
  22924. /* confdefs.h. */
  22925. _ACEOF
  22926. cat confdefs.h >>conftest.$ac_ext
  22927. cat >>conftest.$ac_ext <<_ACEOF
  22928. /* end confdefs.h. */
  22929. #include "$LPCAPINC"
  22930. int
  22931. main ()
  22932. {
  22933. int foo;
  22934. foo = DLT_LINUX_SLL
  22935. ;
  22936. return 0;
  22937. }
  22938. _ACEOF
  22939. rm -f conftest.$ac_objext
  22940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22941. (eval $ac_compile) 2>conftest.er1
  22942. ac_status=$?
  22943. grep -v '^ *+' conftest.er1 >conftest.err
  22944. rm -f conftest.er1
  22945. cat conftest.err >&5
  22946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22947. (exit $ac_status); } &&
  22948. { ac_try='test -z "$ac_c_werror_flag"
  22949. || test ! -s conftest.err'
  22950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22951. (eval $ac_try) 2>&5
  22952. ac_status=$?
  22953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22954. (exit $ac_status); }; } &&
  22955. { ac_try='test -s conftest.$ac_objext'
  22956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22957. (eval $ac_try) 2>&5
  22958. ac_status=$?
  22959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22960. (exit $ac_status); }; }; then
  22961. cat >>confdefs.h <<\_ACEOF
  22962. #define HAVE_DLT_LINUX_SLL
  22963. _ACEOF
  22964. echo "$as_me:$LINENO: result: yes" >&5
  22965. echo "${ECHO_T}yes" >&6
  22966. else
  22967. echo "$as_me: failed program was:" >&5
  22968. sed 's/^/| /' conftest.$ac_ext >&5
  22969. echo "$as_me:$LINENO: result: no" >&5
  22970. echo "${ECHO_T}no" >&6
  22971. fi
  22972. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22973. echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  22974. echo $ECHO_N "checking for DLT_C_HDLC in libpcap... $ECHO_C" >&6
  22975. cat >conftest.$ac_ext <<_ACEOF
  22976. /* confdefs.h. */
  22977. _ACEOF
  22978. cat confdefs.h >>conftest.$ac_ext
  22979. cat >>conftest.$ac_ext <<_ACEOF
  22980. /* end confdefs.h. */
  22981. #include "$LPCAPINC"
  22982. int
  22983. main ()
  22984. {
  22985. int foo;
  22986. foo = DLT_C_HDLC
  22987. ;
  22988. return 0;
  22989. }
  22990. _ACEOF
  22991. rm -f conftest.$ac_objext
  22992. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22993. (eval $ac_compile) 2>conftest.er1
  22994. ac_status=$?
  22995. grep -v '^ *+' conftest.er1 >conftest.err
  22996. rm -f conftest.er1
  22997. cat conftest.err >&5
  22998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22999. (exit $ac_status); } &&
  23000. { ac_try='test -z "$ac_c_werror_flag"
  23001. || test ! -s conftest.err'
  23002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23003. (eval $ac_try) 2>&5
  23004. ac_status=$?
  23005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23006. (exit $ac_status); }; } &&
  23007. { ac_try='test -s conftest.$ac_objext'
  23008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23009. (eval $ac_try) 2>&5
  23010. ac_status=$?
  23011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23012. (exit $ac_status); }; }; then
  23013. cat >>confdefs.h <<\_ACEOF
  23014. #define HAVE_DLT_C_HDLC
  23015. _ACEOF
  23016. echo "$as_me:$LINENO: result: yes" >&5
  23017. echo "${ECHO_T}yes" >&6
  23018. else
  23019. echo "$as_me: failed program was:" >&5
  23020. sed 's/^/| /' conftest.$ac_ext >&5
  23021. echo "$as_me:$LINENO: result: no" >&5
  23022. echo "${ECHO_T}no" >&6
  23023. fi
  23024. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23025. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  23026. echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  23027. echo $ECHO_N "checking for $PCAP_BPF_H_FILE... $ECHO_C" >&6
  23028. cat >conftest.$ac_ext <<_ACEOF
  23029. /* confdefs.h. */
  23030. _ACEOF
  23031. cat confdefs.h >>conftest.$ac_ext
  23032. cat >>conftest.$ac_ext <<_ACEOF
  23033. /* end confdefs.h. */
  23034. #include <sys/types.h>
  23035. #include <sys/time.h>
  23036. #include "$PCAP_BPF_H_FILE"
  23037. int
  23038. main ()
  23039. {
  23040. int foo;
  23041. foo = BPF_MAJOR_VERSION;
  23042. ;
  23043. return 0;
  23044. }
  23045. _ACEOF
  23046. rm -f conftest.$ac_objext
  23047. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23048. (eval $ac_compile) 2>conftest.er1
  23049. ac_status=$?
  23050. grep -v '^ *+' conftest.er1 >conftest.err
  23051. rm -f conftest.er1
  23052. cat conftest.err >&5
  23053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23054. (exit $ac_status); } &&
  23055. { ac_try='test -z "$ac_c_werror_flag"
  23056. || test ! -s conftest.err'
  23057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23058. (eval $ac_try) 2>&5
  23059. ac_status=$?
  23060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23061. (exit $ac_status); }; } &&
  23062. { ac_try='test -s conftest.$ac_objext'
  23063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23064. (eval $ac_try) 2>&5
  23065. ac_status=$?
  23066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23067. (exit $ac_status); }; }; then
  23068. cat >>confdefs.h <<\_ACEOF
  23069. #define INCLUDE_PCAP_BPF_HEADER
  23070. _ACEOF
  23071. echo "$as_me:$LINENO: result: yes" >&5
  23072. echo "${ECHO_T}yes" >&6
  23073. else
  23074. echo "$as_me: failed program was:" >&5
  23075. sed 's/^/| /' conftest.$ac_ext >&5
  23076. echo "$as_me:$LINENO: result: no" >&5
  23077. echo "${ECHO_T}no" >&6
  23078. fi
  23079. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23080. LIBS="$OLDLIBS"
  23081. CFLAGS="$OLDCFLAGS"
  23082. pcapnav_ver=no
  23083. pcncfg=no
  23084. # Check whether --with-pcapnav-config or --without-pcapnav-config was given.
  23085. if test "${with_pcapnav_config+set}" = set; then
  23086. withval="$with_pcapnav_config"
  23087. echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  23088. echo $ECHO_N "checking for pcapnav-config... $ECHO_C" >&6
  23089. if test -x $withval ; then
  23090. pcncfg=$withval
  23091. echo "$as_me:$LINENO: result: $pcncfg" >&5
  23092. echo "${ECHO_T}$pcncfg" >&6
  23093. else
  23094. echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  23095. echo "${ECHO_T}Can't find pcapnav-config: disabling offset jump feature" >&6
  23096. fi
  23097. else
  23098. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  23099. set dummy pcapnav-config; ac_word=$2
  23100. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23101. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23102. if test "${ac_cv_path_pcncfg+set}" = set; then
  23103. echo $ECHO_N "(cached) $ECHO_C" >&6
  23104. else
  23105. case $pcncfg in
  23106. [\\/]* | ?:[\\/]*)
  23107. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  23108. ;;
  23109. *)
  23110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23111. for as_dir in $PATH
  23112. do
  23113. IFS=$as_save_IFS
  23114. test -z "$as_dir" && as_dir=.
  23115. for ac_exec_ext in '' $ac_executable_extensions; do
  23116. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23117. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  23118. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23119. break 2
  23120. fi
  23121. done
  23122. done
  23123. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  23124. ;;
  23125. esac
  23126. fi
  23127. pcncfg=$ac_cv_path_pcncfg
  23128. if test -n "$pcncfg"; then
  23129. echo "$as_me:$LINENO: result: $pcncfg" >&5
  23130. echo "${ECHO_T}$pcncfg" >&6
  23131. else
  23132. echo "$as_me:$LINENO: result: no" >&5
  23133. echo "${ECHO_T}no" >&6
  23134. fi
  23135. fi;
  23136. if test $pcncfg != no ; then
  23137. LNAVLIB=`$pcncfg --libs`
  23138. LNAV_CFLAGS=`$pcncfg --cflags`
  23139. PCAPNAV_VERSION=`$pcncfg --version`
  23140. cat >>confdefs.h <<_ACEOF
  23141. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  23142. _ACEOF
  23143. echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  23144. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6
  23145. if test "$cross_compiling" = yes; then
  23146. libpcapnav_ver=no
  23147. else
  23148. cat >conftest.$ac_ext <<_ACEOF
  23149. /* confdefs.h. */
  23150. _ACEOF
  23151. cat confdefs.h >>conftest.$ac_ext
  23152. cat >>conftest.$ac_ext <<_ACEOF
  23153. /* end confdefs.h. */
  23154. #include <string.h>
  23155. #define PCAPNAV_TEST "0.4"
  23156. /*
  23157. * simple proggy to test the version of libpcapnav
  23158. * returns zero if version >= 0.4
  23159. * or one otherwise
  23160. */
  23161. int
  23162. main (int argc, char *argv[])
  23163. {
  23164. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  23165. exit(0);
  23166. exit(1);
  23167. }
  23168. _ACEOF
  23169. rm -f conftest$ac_exeext
  23170. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23171. (eval $ac_link) 2>&5
  23172. ac_status=$?
  23173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23174. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23176. (eval $ac_try) 2>&5
  23177. ac_status=$?
  23178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23179. (exit $ac_status); }; }; then
  23180. libpcapnav_ver=yes
  23181. echo "$as_me:$LINENO: result: >= 0.4" >&5
  23182. echo "${ECHO_T}>= 0.4" >&6
  23183. else
  23184. echo "$as_me: program exited with status $ac_status" >&5
  23185. echo "$as_me: failed program was:" >&5
  23186. sed 's/^/| /' conftest.$ac_ext >&5
  23187. ( exit $ac_status )
  23188. libpcapnav_ver=no
  23189. echo "$as_me:$LINENO: result: < 0.4" >&5
  23190. echo "${ECHO_T}< 0.4" >&6
  23191. fi
  23192. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23193. fi
  23194. if test x$libpcapnav_ver = xno ; then
  23195. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  23196. Please upgrade to version 0.4 or better.
  23197. Disabling offset jump feature." >&5
  23198. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  23199. Please upgrade to version 0.4 or better.
  23200. Disabling offset jump feature." >&2;}
  23201. else
  23202. cat >>confdefs.h <<\_ACEOF
  23203. #define HAVE_PCAPNAV
  23204. _ACEOF
  23205. fi
  23206. fi # checking pcapnav version
  23207. foundnids=no
  23208. trynidsdir=/usr/local
  23209. echo "$as_me:$LINENO: checking for libnids" >&5
  23210. echo $ECHO_N "checking for libnids... $ECHO_C" >&6
  23211. # Check whether --with-libnids or --without-libnids was given.
  23212. if test "${with_libnids+set}" = set; then
  23213. withval="$with_libnids"
  23214. trynidsdir=$withval
  23215. fi;
  23216. for testdir in $trynidsdir /usr/local /usr ; do
  23217. if test -f "${testdir}/include/nids.h" -a $foundnids = no ; then
  23218. LNIDSINC="${testdir}/include/nids.h"
  23219. LNIDSINCDIR="${testdir}/include"
  23220. LNIDSLIB="${testdir}/lib/libnids.a"
  23221. foundnids=$testdir
  23222. fi
  23223. done
  23224. if test $foundnids = no ; then
  23225. echo "$as_me:$LINENO: result: no" >&5
  23226. echo "${ECHO_T}no" >&6
  23227. { echo "$as_me:$LINENO: WARNING: libnids not found. We won't build flowreplay." >&5
  23228. echo "$as_me: WARNING: libnids not found. We won't build flowreplay." >&2;}
  23229. else
  23230. echo "$as_me:$LINENO: result: $foundnids" >&5
  23231. echo "${ECHO_T}$foundnids" >&6
  23232. cat >>confdefs.h <<\_ACEOF
  23233. #define HAVE_LIBNIDS
  23234. _ACEOF
  23235. fi
  23236. if test ${foundnids} != no ; then
  23237. HAVE_LIBNIDS_TRUE=
  23238. HAVE_LIBNIDS_FALSE='#'
  23239. else
  23240. HAVE_LIBNIDS_TRUE='#'
  23241. HAVE_LIBNIDS_FALSE=
  23242. fi
  23243. echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  23244. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6
  23245. if test "${unaligned_fail+set}" = set; then
  23246. echo $ECHO_N "(cached) $ECHO_C" >&6
  23247. else
  23248. case "$host_cpu" in
  23249. # XXX: should also check that they don't do weird things (like on arm)
  23250. alpha*|arm*|hp*|mips*|sparc*|ia64)
  23251. unaligned_fail=yes
  23252. ;;
  23253. *)
  23254. cat >conftest.c <<EOF
  23255. #include <sys/types.h>
  23256. #include <sys/wait.h>
  23257. #include <stdio.h>
  23258. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  23259. main() {
  23260. unsigned int i;
  23261. pid_t pid;
  23262. int status;
  23263. /* avoid "core dumped" message */
  23264. pid = fork();
  23265. if (pid < 0)
  23266. exit(2);
  23267. if (pid > 0) {
  23268. /* parent */
  23269. pid = waitpid(pid, &status, 0);
  23270. if (pid < 0)
  23271. exit(3);
  23272. exit(!WIFEXITED(status));
  23273. }
  23274. /* child */
  23275. i = *(unsigned int *)&a[1];
  23276. printf("%d\n", i);
  23277. exit(0);
  23278. }
  23279. EOF
  23280. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  23281. conftest.c $LIBS >/dev/null 2>&1
  23282. if test ! -x conftest ; then
  23283. unaligned_fail=yes
  23284. else
  23285. ./conftest >conftest.out
  23286. if test ! -s conftest.out ; then
  23287. unaligned_fail=yes
  23288. else
  23289. unaligned_fail=no
  23290. fi
  23291. fi
  23292. rm -f conftest* core core.conftest
  23293. ;;
  23294. esac
  23295. fi
  23296. echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  23297. echo "${ECHO_T}$unaligned_fail" >&6
  23298. if test $unaligned_fail = yes ; then
  23299. cat >>confdefs.h <<\_ACEOF
  23300. #define FORCE_ALIGN 1
  23301. _ACEOF
  23302. fi
  23303. td=no
  23304. # Check whether --with-tcpdump or --without-tcpdump was given.
  23305. if test "${with_tcpdump+set}" = set; then
  23306. withval="$with_tcpdump"
  23307. if test -x $withval ; then
  23308. td=$withval
  23309. echo "$as_me:$LINENO: result: Using tcpdump in $td" >&5
  23310. echo "${ECHO_T}Using tcpdump in $td" >&6
  23311. else
  23312. echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  23313. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6
  23314. fi
  23315. else
  23316. # Extract the first word of "tcpdump", so it can be a program name with args.
  23317. set dummy tcpdump; ac_word=$2
  23318. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23319. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23320. if test "${ac_cv_path_td+set}" = set; then
  23321. echo $ECHO_N "(cached) $ECHO_C" >&6
  23322. else
  23323. case $td in
  23324. [\\/]* | ?:[\\/]*)
  23325. ac_cv_path_td="$td" # Let the user override the test with a path.
  23326. ;;
  23327. *)
  23328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23329. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  23330. for as_dir in $as_dummy
  23331. do
  23332. IFS=$as_save_IFS
  23333. test -z "$as_dir" && as_dir=.
  23334. for ac_exec_ext in '' $ac_executable_extensions; do
  23335. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23336. ac_cv_path_td="$as_dir/$ac_word$ac_exec_ext"
  23337. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23338. break 2
  23339. fi
  23340. done
  23341. done
  23342. test -z "$ac_cv_path_td" && ac_cv_path_td=""no""
  23343. ;;
  23344. esac
  23345. fi
  23346. td=$ac_cv_path_td
  23347. if test -n "$td"; then
  23348. echo "$as_me:$LINENO: result: $td" >&5
  23349. echo "${ECHO_T}$td" >&6
  23350. else
  23351. echo "$as_me:$LINENO: result: no" >&5
  23352. echo "${ECHO_T}no" >&6
  23353. fi
  23354. fi;
  23355. if test "$td" = "no"; then
  23356. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  23357. Disabling verbose reporting." >&5
  23358. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  23359. Disabling verbose reporting." >&2;}
  23360. else
  23361. cat >>confdefs.h <<\_ACEOF
  23362. #define HAVE_TCPDUMP
  23363. _ACEOF
  23364. cat >>confdefs.h <<_ACEOF
  23365. #define TCPDUMP_BINARY "$td"
  23366. _ACEOF
  23367. fi
  23368. echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  23369. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6
  23370. if test "$host" != "$build" ; then
  23371. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  23372. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  23373. fi
  23374. # Check whether --with-testnic or --without-testnic was given.
  23375. if test "${with_testnic+set}" = set; then
  23376. withval="$with_testnic"
  23377. nic1=$withval
  23378. nic2=$withval
  23379. echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  23380. echo "${ECHO_T}Using --with-testnic=$withval" >&6
  23381. else
  23382. case $host in
  23383. *-*-linux*)
  23384. nic1=eth0
  23385. nic2=eth0
  23386. echo "$as_me:$LINENO: result: Linux" >&5
  23387. echo "${ECHO_T}Linux" >&6
  23388. ;;
  23389. *-*-solaris*)
  23390. nic1=hme0
  23391. nic2=hme0
  23392. echo "$as_me:$LINENO: result: Solaris" >&5
  23393. echo "${ECHO_T}Solaris" >&6
  23394. ;;
  23395. *-*-sunos*)
  23396. nic1=hme0
  23397. nic2=hme0
  23398. echo "$as_me:$LINENO: result: SunOS" >&5
  23399. echo "${ECHO_T}SunOS" >&6
  23400. ;;
  23401. powerpc-apple-darwin*)
  23402. nic1=en0
  23403. nic2=en0
  23404. echo "$as_me:$LINENO: result: Apple OS X" >&5
  23405. echo "${ECHO_T}Apple OS X" >&6
  23406. ;;
  23407. *-*-openbsd*)
  23408. nic1=xl0
  23409. nic2=xl0
  23410. echo "$as_me:$LINENO: result: OpenBSD" >&5
  23411. echo "${ECHO_T}OpenBSD" >&6
  23412. ;;
  23413. *)
  23414. echo "$as_me:$LINENO: result: $host is unknown!
  23415. Please use --with-nictest to select an interface for 'make test'" >&5
  23416. echo "${ECHO_T}$host is unknown!
  23417. Please use --with-nictest to select an interface for 'make test'" >&6
  23418. ;;
  23419. esac
  23420. fi;
  23421. # Check whether --with-testnic2 or --without-testnic2 was given.
  23422. if test "${with_testnic2+set}" = set; then
  23423. withval="$with_testnic2"
  23424. nic2=$withval
  23425. fi;
  23426. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  23427. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  23428. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  23429. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  23430. # Check whether --enable-local-libopts or --disable-local-libopts was given.
  23431. if test "${enable_local_libopts+set}" = set; then
  23432. enableval="$enable_local_libopts"
  23433. if test x$enableval = xyes ; then
  23434. { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  23435. echo "$as_me: Using supplied libopts tearoff" >&6;}
  23436. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  23437. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  23438. # Check to see if a reg expr header is specified.
  23439. # Check whether --with-regex-header or --without-regex-header was given.
  23440. if test "${with_regex_header+set}" = set; then
  23441. withval="$with_regex_header"
  23442. libopts_cv_with_regex_header=${with_regex_header}
  23443. else
  23444. echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  23445. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
  23446. if test "${libopts_cv_with_regex_header+set}" = set; then
  23447. echo $ECHO_N "(cached) $ECHO_C" >&6
  23448. else
  23449. libopts_cv_with_regex_header=no
  23450. fi
  23451. echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  23452. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
  23453. fi; # end of AC_ARG_WITH
  23454. if test "X${libopts_cv_with_regex_header}" != Xno
  23455. then
  23456. cat >>confdefs.h <<_ACEOF
  23457. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  23458. _ACEOF
  23459. else
  23460. cat >>confdefs.h <<\_ACEOF
  23461. #define REGEX_HEADER <regex.h>
  23462. _ACEOF
  23463. fi
  23464. # Check to see if a working libregex can be found.
  23465. # Check whether --with-libregex or --without-libregex was given.
  23466. if test "${with_libregex+set}" = set; then
  23467. withval="$with_libregex"
  23468. libopts_cv_with_libregex_root=${with_libregex}
  23469. else
  23470. echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  23471. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
  23472. if test "${libopts_cv_with_libregex_root+set}" = set; then
  23473. echo $ECHO_N "(cached) $ECHO_C" >&6
  23474. else
  23475. libopts_cv_with_libregex_root=no
  23476. fi
  23477. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  23478. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
  23479. fi; # end of AC_ARG_WITH libregex
  23480. if test "${with_libguile+set}" = set && \
  23481. test "${withval}" = no
  23482. then ## disabled by request
  23483. libopts_cv_with_libregex_root=no
  23484. libopts_cv_with_libregex_cflags=no
  23485. libopts_cv_with_libregex_libs=no
  23486. else
  23487. # Check whether --with-libregex-cflags or --without-libregex-cflags was given.
  23488. if test "${with_libregex_cflags+set}" = set; then
  23489. withval="$with_libregex_cflags"
  23490. libopts_cv_with_libregex_cflags=${with_regex_cflags}
  23491. else
  23492. echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  23493. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
  23494. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  23495. echo $ECHO_N "(cached) $ECHO_C" >&6
  23496. else
  23497. libopts_cv_with_libregex_cflags=no
  23498. fi
  23499. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  23500. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
  23501. fi; # end of AC_ARG_WITH libregex-cflags
  23502. # Check whether --with-libregex-libs or --without-libregex-libs was given.
  23503. if test "${with_libregex_libs+set}" = set; then
  23504. withval="$with_libregex_libs"
  23505. libopts_cv_with_libregex_libs=${with_regex_libs}
  23506. else
  23507. echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  23508. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
  23509. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  23510. echo $ECHO_N "(cached) $ECHO_C" >&6
  23511. else
  23512. libopts_cv_with_libregex_libs=no
  23513. fi
  23514. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  23515. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
  23516. fi; # end of AC_ARG_WITH libregex-libs
  23517. case "X${libopts_cv_with_libregex_cflags}" in
  23518. Xyes|Xno|X )
  23519. case "X${libopts_cv_with_libregex_root}" in
  23520. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  23521. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  23522. esac
  23523. esac
  23524. case "X${libopts_cv_with_libregex_libs}" in
  23525. Xyes|Xno|X )
  23526. case "X${libopts_cv_with_libregex_root}" in
  23527. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  23528. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  23529. esac
  23530. esac
  23531. libopts_save_CPPFLAGS="${CPPFLAGS}"
  23532. libopts_save_LIBS="${LIBS}"
  23533. fi ## disabled by request
  23534. case "X${libopts_cv_with_libregex_cflags}" in
  23535. Xyes|Xno|X )
  23536. libopts_cv_with_libregex_cflags="" ;;
  23537. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  23538. esac
  23539. case "X${libopts_cv_with_libregex_libs}" in
  23540. Xyes|Xno|X )
  23541. libopts_cv_with_libregex_libs="" ;;
  23542. * )
  23543. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  23544. esac
  23545. LIBREGEX_CFLAGS=""
  23546. LIBREGEX_LIBS=""
  23547. echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  23548. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
  23549. if test "${libopts_cv_with_libregex+set}" = set; then
  23550. echo $ECHO_N "(cached) $ECHO_C" >&6
  23551. else
  23552. if test "$cross_compiling" = yes; then
  23553. libopts_cv_with_libregex=no
  23554. else
  23555. cat >conftest.$ac_ext <<_ACEOF
  23556. /* confdefs.h. */
  23557. _ACEOF
  23558. cat confdefs.h >>conftest.$ac_ext
  23559. cat >>conftest.$ac_ext <<_ACEOF
  23560. /* end confdefs.h. */
  23561. #include <stdio.h>
  23562. #include <stdlib.h>
  23563. #include <sys/types.h>
  23564. #include REGEX_HEADER
  23565. static regex_t re;
  23566. void comp_re( const char* pzPat ) {
  23567. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  23568. if (res == 0) return;
  23569. exit( res ); }
  23570. int main() {
  23571. regmatch_t m[2];
  23572. comp_re( "^.*\$" );
  23573. comp_re( "()|no.*" );
  23574. comp_re( "." );
  23575. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  23576. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  23577. fputs( "error: regex -->.<-- did not match\n", stderr );
  23578. return 1;
  23579. }
  23580. return 0; }
  23581. _ACEOF
  23582. rm -f conftest$ac_exeext
  23583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23584. (eval $ac_link) 2>&5
  23585. ac_status=$?
  23586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23587. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23589. (eval $ac_try) 2>&5
  23590. ac_status=$?
  23591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23592. (exit $ac_status); }; }; then
  23593. libopts_cv_with_libregex=yes
  23594. else
  23595. echo "$as_me: program exited with status $ac_status" >&5
  23596. echo "$as_me: failed program was:" >&5
  23597. sed 's/^/| /' conftest.$ac_ext >&5
  23598. ( exit $ac_status )
  23599. libopts_cv_with_libregex=no
  23600. fi
  23601. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23602. fi # end of AC_TRY_RUN
  23603. fi
  23604. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  23605. echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  23606. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
  23607. if test "X${libopts_cv_with_libregex}" = Xno
  23608. then
  23609. CPPFLAGS="${libopts_save_CPPFLAGS}"
  23610. LIBS="${libopts_save_LIBS}"
  23611. cat >&2 <<'_EOF_'
  23612. I cannot detect POSIX compliant regcomp/regexec routines.
  23613. These are required for AutoGen to work correctly. If you have
  23614. such a library present on your system, you must specify it by
  23615. setting the LIBS environment variable, e.g., "LIBS='-lregex'".
  23616. If you do not have such a library on your system, then you should
  23617. download and install, for example, the one from:
  23618. ftp://ftp.gnu.org/gnu/rx/
  23619. _EOF_
  23620. { { echo "$as_me:$LINENO: error: Cannot find working POSIX regex library" >&5
  23621. echo "$as_me: error: Cannot find working POSIX regex library" >&2;}
  23622. { (exit 1); exit 1; }; }
  23623. fi
  23624. # Check to see if pathfind(3) works.
  23625. echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  23626. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
  23627. if test "${libopts_cv_run_pathfind+set}" = set; then
  23628. echo $ECHO_N "(cached) $ECHO_C" >&6
  23629. else
  23630. if test "$cross_compiling" = yes; then
  23631. libopts_cv_run_pathfind=no
  23632. else
  23633. cat >conftest.$ac_ext <<_ACEOF
  23634. /* confdefs.h. */
  23635. _ACEOF
  23636. cat confdefs.h >>conftest.$ac_ext
  23637. cat >>conftest.$ac_ext <<_ACEOF
  23638. /* end confdefs.h. */
  23639. #include <string.h>
  23640. #include <stdlib.h>
  23641. int main (int argc, char** argv) {
  23642. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  23643. return (pz == 0) ? 1 : 0;
  23644. }
  23645. _ACEOF
  23646. rm -f conftest$ac_exeext
  23647. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23648. (eval $ac_link) 2>&5
  23649. ac_status=$?
  23650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23651. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23653. (eval $ac_try) 2>&5
  23654. ac_status=$?
  23655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23656. (exit $ac_status); }; }; then
  23657. libopts_cv_run_pathfind=yes
  23658. else
  23659. echo "$as_me: program exited with status $ac_status" >&5
  23660. echo "$as_me: failed program was:" >&5
  23661. sed 's/^/| /' conftest.$ac_ext >&5
  23662. ( exit $ac_status )
  23663. libopts_cv_run_pathfind=no
  23664. fi
  23665. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23666. fi # end of TRY_RUN
  23667. fi
  23668. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  23669. echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  23670. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
  23671. if test "X${libopts_cv_run_pathfind}" != Xno
  23672. then
  23673. cat >>confdefs.h <<\_ACEOF
  23674. #define HAVE_PATHFIND 1
  23675. _ACEOF
  23676. fi
  23677. # Check to see if strftime() works.
  23678. echo "$as_me:$LINENO: checking whether strftime() works" >&5
  23679. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
  23680. if test "${libopts_cv_run_strftime+set}" = set; then
  23681. echo $ECHO_N "(cached) $ECHO_C" >&6
  23682. else
  23683. if test "$cross_compiling" = yes; then
  23684. libopts_cv_run_strftime=no
  23685. else
  23686. cat >conftest.$ac_ext <<_ACEOF
  23687. /* confdefs.h. */
  23688. _ACEOF
  23689. cat confdefs.h >>conftest.$ac_ext
  23690. cat >>conftest.$ac_ext <<_ACEOF
  23691. /* end confdefs.h. */
  23692. #include <time.h>
  23693. #include <string.h>
  23694. char t_buf[ 64 ];
  23695. int main() {
  23696. static const char z[] = "Thursday Aug 28 240";
  23697. struct tm tm;
  23698. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  23699. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  23700. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  23701. tm.tm_mday = 28; /* day of the month [1, 31] */
  23702. tm.tm_mon = 7; /* months since January [0, 11] */
  23703. tm.tm_year = 86; /* years since 1900 */
  23704. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  23705. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  23706. tm.tm_isdst = 1; /* flag for daylight savings time */
  23707. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  23708. return (strcmp( t_buf, z ) != 0); }
  23709. _ACEOF
  23710. rm -f conftest$ac_exeext
  23711. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23712. (eval $ac_link) 2>&5
  23713. ac_status=$?
  23714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23715. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23717. (eval $ac_try) 2>&5
  23718. ac_status=$?
  23719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23720. (exit $ac_status); }; }; then
  23721. libopts_cv_run_strftime=yes
  23722. else
  23723. echo "$as_me: program exited with status $ac_status" >&5
  23724. echo "$as_me: failed program was:" >&5
  23725. sed 's/^/| /' conftest.$ac_ext >&5
  23726. ( exit $ac_status )
  23727. libopts_cv_run_strftime=no
  23728. fi
  23729. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23730. fi # end of TRY_RUN
  23731. fi
  23732. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  23733. echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  23734. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
  23735. if test "X${libopts_cv_run_strftime}" != Xno
  23736. then
  23737. cat >>confdefs.h <<\_ACEOF
  23738. #define HAVE_STRFTIME 1
  23739. _ACEOF
  23740. fi
  23741. # Check to see if fopen accepts "b" mode.
  23742. echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  23743. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
  23744. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  23745. echo $ECHO_N "(cached) $ECHO_C" >&6
  23746. else
  23747. if test "$cross_compiling" = yes; then
  23748. libopts_cv_run_fopen_binary=no
  23749. else
  23750. cat >conftest.$ac_ext <<_ACEOF
  23751. /* confdefs.h. */
  23752. _ACEOF
  23753. cat confdefs.h >>conftest.$ac_ext
  23754. cat >>conftest.$ac_ext <<_ACEOF
  23755. /* end confdefs.h. */
  23756. #include <stdio.h>
  23757. int main (int argc, char** argv) {
  23758. FILE* fp = fopen("conftest.$ac_ext", "rb");
  23759. return (fp == NULL) ? 1 : fclose(fp); }
  23760. _ACEOF
  23761. rm -f conftest$ac_exeext
  23762. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23763. (eval $ac_link) 2>&5
  23764. ac_status=$?
  23765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23766. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23768. (eval $ac_try) 2>&5
  23769. ac_status=$?
  23770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23771. (exit $ac_status); }; }; then
  23772. libopts_cv_run_fopen_binary=yes
  23773. else
  23774. echo "$as_me: program exited with status $ac_status" >&5
  23775. echo "$as_me: failed program was:" >&5
  23776. sed 's/^/| /' conftest.$ac_ext >&5
  23777. ( exit $ac_status )
  23778. libopts_cv_run_fopen_binary=no
  23779. fi
  23780. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23781. fi # end of TRY_RUN
  23782. fi
  23783. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  23784. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  23785. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
  23786. if test "X${libopts_cv_run_fopen_binary}" != Xno
  23787. then
  23788. cat >>confdefs.h <<\_ACEOF
  23789. #define FOPEN_BINARY_FLAG "b"
  23790. _ACEOF
  23791. else
  23792. cat >>confdefs.h <<\_ACEOF
  23793. #define FOPEN_BINARY_FLAG ""
  23794. _ACEOF
  23795. fi
  23796. # Check to see if fopen accepts "t" mode.
  23797. echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  23798. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
  23799. if test "${libopts_cv_run_fopen_text+set}" = set; then
  23800. echo $ECHO_N "(cached) $ECHO_C" >&6
  23801. else
  23802. if test "$cross_compiling" = yes; then
  23803. libopts_cv_run_fopen_text=no
  23804. else
  23805. cat >conftest.$ac_ext <<_ACEOF
  23806. /* confdefs.h. */
  23807. _ACEOF
  23808. cat confdefs.h >>conftest.$ac_ext
  23809. cat >>conftest.$ac_ext <<_ACEOF
  23810. /* end confdefs.h. */
  23811. #include <stdio.h>
  23812. int main (int argc, char** argv) {
  23813. FILE* fp = fopen("conftest.$ac_ext", "rt");
  23814. return (fp == NULL) ? 1 : fclose(fp); }
  23815. _ACEOF
  23816. rm -f conftest$ac_exeext
  23817. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23818. (eval $ac_link) 2>&5
  23819. ac_status=$?
  23820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23821. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23823. (eval $ac_try) 2>&5
  23824. ac_status=$?
  23825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23826. (exit $ac_status); }; }; then
  23827. libopts_cv_run_fopen_text=yes
  23828. else
  23829. echo "$as_me: program exited with status $ac_status" >&5
  23830. echo "$as_me: failed program was:" >&5
  23831. sed 's/^/| /' conftest.$ac_ext >&5
  23832. ( exit $ac_status )
  23833. libopts_cv_run_fopen_text=no
  23834. fi
  23835. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23836. fi # end of TRY_RUN
  23837. fi
  23838. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  23839. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  23840. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
  23841. if test "X${libopts_cv_run_fopen_text}" != Xno
  23842. then
  23843. cat >>confdefs.h <<\_ACEOF
  23844. #define FOPEN_TEXT_FLAG "t"
  23845. _ACEOF
  23846. else
  23847. cat >>confdefs.h <<\_ACEOF
  23848. #define FOPEN_TEXT_FLAG ""
  23849. _ACEOF
  23850. fi
  23851. # ----------------------------------------------------------------------
  23852. # Check for standard headers.
  23853. # ----------------------------------------------------------------------
  23854. # =================
  23855. # AC_HEADER_STDC
  23856. # =================
  23857. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  23858. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  23859. if test "${ac_cv_header_stdc+set}" = set; then
  23860. echo $ECHO_N "(cached) $ECHO_C" >&6
  23861. else
  23862. cat >conftest.$ac_ext <<_ACEOF
  23863. /* confdefs.h. */
  23864. _ACEOF
  23865. cat confdefs.h >>conftest.$ac_ext
  23866. cat >>conftest.$ac_ext <<_ACEOF
  23867. /* end confdefs.h. */
  23868. #include <stdlib.h>
  23869. #include <stdarg.h>
  23870. #include <string.h>
  23871. #include <float.h>
  23872. int
  23873. main ()
  23874. {
  23875. ;
  23876. return 0;
  23877. }
  23878. _ACEOF
  23879. rm -f conftest.$ac_objext
  23880. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23881. (eval $ac_compile) 2>conftest.er1
  23882. ac_status=$?
  23883. grep -v '^ *+' conftest.er1 >conftest.err
  23884. rm -f conftest.er1
  23885. cat conftest.err >&5
  23886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23887. (exit $ac_status); } &&
  23888. { ac_try='test -z "$ac_c_werror_flag"
  23889. || test ! -s conftest.err'
  23890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23891. (eval $ac_try) 2>&5
  23892. ac_status=$?
  23893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23894. (exit $ac_status); }; } &&
  23895. { ac_try='test -s conftest.$ac_objext'
  23896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23897. (eval $ac_try) 2>&5
  23898. ac_status=$?
  23899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23900. (exit $ac_status); }; }; then
  23901. ac_cv_header_stdc=yes
  23902. else
  23903. echo "$as_me: failed program was:" >&5
  23904. sed 's/^/| /' conftest.$ac_ext >&5
  23905. ac_cv_header_stdc=no
  23906. fi
  23907. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23908. if test $ac_cv_header_stdc = yes; then
  23909. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  23910. cat >conftest.$ac_ext <<_ACEOF
  23911. /* confdefs.h. */
  23912. _ACEOF
  23913. cat confdefs.h >>conftest.$ac_ext
  23914. cat >>conftest.$ac_ext <<_ACEOF
  23915. /* end confdefs.h. */
  23916. #include <string.h>
  23917. _ACEOF
  23918. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23919. $EGREP "memchr" >/dev/null 2>&1; then
  23920. :
  23921. else
  23922. ac_cv_header_stdc=no
  23923. fi
  23924. rm -f conftest*
  23925. fi
  23926. if test $ac_cv_header_stdc = yes; then
  23927. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  23928. cat >conftest.$ac_ext <<_ACEOF
  23929. /* confdefs.h. */
  23930. _ACEOF
  23931. cat confdefs.h >>conftest.$ac_ext
  23932. cat >>conftest.$ac_ext <<_ACEOF
  23933. /* end confdefs.h. */
  23934. #include <stdlib.h>
  23935. _ACEOF
  23936. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23937. $EGREP "free" >/dev/null 2>&1; then
  23938. :
  23939. else
  23940. ac_cv_header_stdc=no
  23941. fi
  23942. rm -f conftest*
  23943. fi
  23944. if test $ac_cv_header_stdc = yes; then
  23945. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  23946. if test "$cross_compiling" = yes; then
  23947. :
  23948. else
  23949. cat >conftest.$ac_ext <<_ACEOF
  23950. /* confdefs.h. */
  23951. _ACEOF
  23952. cat confdefs.h >>conftest.$ac_ext
  23953. cat >>conftest.$ac_ext <<_ACEOF
  23954. /* end confdefs.h. */
  23955. #include <ctype.h>
  23956. #if ((' ' & 0x0FF) == 0x020)
  23957. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  23958. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  23959. #else
  23960. # define ISLOWER(c) \
  23961. (('a' <= (c) && (c) <= 'i') \
  23962. || ('j' <= (c) && (c) <= 'r') \
  23963. || ('s' <= (c) && (c) <= 'z'))
  23964. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  23965. #endif
  23966. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  23967. int
  23968. main ()
  23969. {
  23970. int i;
  23971. for (i = 0; i < 256; i++)
  23972. if (XOR (islower (i), ISLOWER (i))
  23973. || toupper (i) != TOUPPER (i))
  23974. exit(2);
  23975. exit (0);
  23976. }
  23977. _ACEOF
  23978. rm -f conftest$ac_exeext
  23979. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23980. (eval $ac_link) 2>&5
  23981. ac_status=$?
  23982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23983. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23985. (eval $ac_try) 2>&5
  23986. ac_status=$?
  23987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23988. (exit $ac_status); }; }; then
  23989. :
  23990. else
  23991. echo "$as_me: program exited with status $ac_status" >&5
  23992. echo "$as_me: failed program was:" >&5
  23993. sed 's/^/| /' conftest.$ac_ext >&5
  23994. ( exit $ac_status )
  23995. ac_cv_header_stdc=no
  23996. fi
  23997. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23998. fi
  23999. fi
  24000. fi
  24001. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24002. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  24003. if test $ac_cv_header_stdc = yes; then
  24004. cat >>confdefs.h <<\_ACEOF
  24005. #define STDC_HEADERS 1
  24006. _ACEOF
  24007. fi
  24008. # =================
  24009. # AC_HEADER_DIRENT
  24010. # =================
  24011. ac_header_dirent=no
  24012. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24013. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  24014. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  24015. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  24016. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24017. echo $ECHO_N "(cached) $ECHO_C" >&6
  24018. else
  24019. cat >conftest.$ac_ext <<_ACEOF
  24020. /* confdefs.h. */
  24021. _ACEOF
  24022. cat confdefs.h >>conftest.$ac_ext
  24023. cat >>conftest.$ac_ext <<_ACEOF
  24024. /* end confdefs.h. */
  24025. #include <sys/types.h>
  24026. #include <$ac_hdr>
  24027. int
  24028. main ()
  24029. {
  24030. if ((DIR *) 0)
  24031. return 0;
  24032. ;
  24033. return 0;
  24034. }
  24035. _ACEOF
  24036. rm -f conftest.$ac_objext
  24037. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24038. (eval $ac_compile) 2>conftest.er1
  24039. ac_status=$?
  24040. grep -v '^ *+' conftest.er1 >conftest.err
  24041. rm -f conftest.er1
  24042. cat conftest.err >&5
  24043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24044. (exit $ac_status); } &&
  24045. { ac_try='test -z "$ac_c_werror_flag"
  24046. || test ! -s conftest.err'
  24047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24048. (eval $ac_try) 2>&5
  24049. ac_status=$?
  24050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24051. (exit $ac_status); }; } &&
  24052. { ac_try='test -s conftest.$ac_objext'
  24053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24054. (eval $ac_try) 2>&5
  24055. ac_status=$?
  24056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24057. (exit $ac_status); }; }; then
  24058. eval "$as_ac_Header=yes"
  24059. else
  24060. echo "$as_me: failed program was:" >&5
  24061. sed 's/^/| /' conftest.$ac_ext >&5
  24062. eval "$as_ac_Header=no"
  24063. fi
  24064. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24065. fi
  24066. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24067. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24068. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24069. cat >>confdefs.h <<_ACEOF
  24070. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  24071. _ACEOF
  24072. ac_header_dirent=$ac_hdr; break
  24073. fi
  24074. done
  24075. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24076. if test $ac_header_dirent = dirent.h; then
  24077. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24078. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  24079. if test "${ac_cv_search_opendir+set}" = set; then
  24080. echo $ECHO_N "(cached) $ECHO_C" >&6
  24081. else
  24082. ac_func_search_save_LIBS=$LIBS
  24083. ac_cv_search_opendir=no
  24084. cat >conftest.$ac_ext <<_ACEOF
  24085. /* confdefs.h. */
  24086. _ACEOF
  24087. cat confdefs.h >>conftest.$ac_ext
  24088. cat >>conftest.$ac_ext <<_ACEOF
  24089. /* end confdefs.h. */
  24090. /* Override any gcc2 internal prototype to avoid an error. */
  24091. #ifdef __cplusplus
  24092. extern "C"
  24093. #endif
  24094. /* We use char because int might match the return type of a gcc2
  24095. builtin and then its argument prototype would still apply. */
  24096. char opendir ();
  24097. int
  24098. main ()
  24099. {
  24100. opendir ();
  24101. ;
  24102. return 0;
  24103. }
  24104. _ACEOF
  24105. rm -f conftest.$ac_objext conftest$ac_exeext
  24106. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24107. (eval $ac_link) 2>conftest.er1
  24108. ac_status=$?
  24109. grep -v '^ *+' conftest.er1 >conftest.err
  24110. rm -f conftest.er1
  24111. cat conftest.err >&5
  24112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24113. (exit $ac_status); } &&
  24114. { ac_try='test -z "$ac_c_werror_flag"
  24115. || test ! -s conftest.err'
  24116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24117. (eval $ac_try) 2>&5
  24118. ac_status=$?
  24119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24120. (exit $ac_status); }; } &&
  24121. { ac_try='test -s conftest$ac_exeext'
  24122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24123. (eval $ac_try) 2>&5
  24124. ac_status=$?
  24125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24126. (exit $ac_status); }; }; then
  24127. ac_cv_search_opendir="none required"
  24128. else
  24129. echo "$as_me: failed program was:" >&5
  24130. sed 's/^/| /' conftest.$ac_ext >&5
  24131. fi
  24132. rm -f conftest.err conftest.$ac_objext \
  24133. conftest$ac_exeext conftest.$ac_ext
  24134. if test "$ac_cv_search_opendir" = no; then
  24135. for ac_lib in dir; do
  24136. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24137. cat >conftest.$ac_ext <<_ACEOF
  24138. /* confdefs.h. */
  24139. _ACEOF
  24140. cat confdefs.h >>conftest.$ac_ext
  24141. cat >>conftest.$ac_ext <<_ACEOF
  24142. /* end confdefs.h. */
  24143. /* Override any gcc2 internal prototype to avoid an error. */
  24144. #ifdef __cplusplus
  24145. extern "C"
  24146. #endif
  24147. /* We use char because int might match the return type of a gcc2
  24148. builtin and then its argument prototype would still apply. */
  24149. char opendir ();
  24150. int
  24151. main ()
  24152. {
  24153. opendir ();
  24154. ;
  24155. return 0;
  24156. }
  24157. _ACEOF
  24158. rm -f conftest.$ac_objext conftest$ac_exeext
  24159. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24160. (eval $ac_link) 2>conftest.er1
  24161. ac_status=$?
  24162. grep -v '^ *+' conftest.er1 >conftest.err
  24163. rm -f conftest.er1
  24164. cat conftest.err >&5
  24165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24166. (exit $ac_status); } &&
  24167. { ac_try='test -z "$ac_c_werror_flag"
  24168. || test ! -s conftest.err'
  24169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24170. (eval $ac_try) 2>&5
  24171. ac_status=$?
  24172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24173. (exit $ac_status); }; } &&
  24174. { ac_try='test -s conftest$ac_exeext'
  24175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24176. (eval $ac_try) 2>&5
  24177. ac_status=$?
  24178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24179. (exit $ac_status); }; }; then
  24180. ac_cv_search_opendir="-l$ac_lib"
  24181. break
  24182. else
  24183. echo "$as_me: failed program was:" >&5
  24184. sed 's/^/| /' conftest.$ac_ext >&5
  24185. fi
  24186. rm -f conftest.err conftest.$ac_objext \
  24187. conftest$ac_exeext conftest.$ac_ext
  24188. done
  24189. fi
  24190. LIBS=$ac_func_search_save_LIBS
  24191. fi
  24192. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24193. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  24194. if test "$ac_cv_search_opendir" != no; then
  24195. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  24196. fi
  24197. else
  24198. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24199. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  24200. if test "${ac_cv_search_opendir+set}" = set; then
  24201. echo $ECHO_N "(cached) $ECHO_C" >&6
  24202. else
  24203. ac_func_search_save_LIBS=$LIBS
  24204. ac_cv_search_opendir=no
  24205. cat >conftest.$ac_ext <<_ACEOF
  24206. /* confdefs.h. */
  24207. _ACEOF
  24208. cat confdefs.h >>conftest.$ac_ext
  24209. cat >>conftest.$ac_ext <<_ACEOF
  24210. /* end confdefs.h. */
  24211. /* Override any gcc2 internal prototype to avoid an error. */
  24212. #ifdef __cplusplus
  24213. extern "C"
  24214. #endif
  24215. /* We use char because int might match the return type of a gcc2
  24216. builtin and then its argument prototype would still apply. */
  24217. char opendir ();
  24218. int
  24219. main ()
  24220. {
  24221. opendir ();
  24222. ;
  24223. return 0;
  24224. }
  24225. _ACEOF
  24226. rm -f conftest.$ac_objext conftest$ac_exeext
  24227. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24228. (eval $ac_link) 2>conftest.er1
  24229. ac_status=$?
  24230. grep -v '^ *+' conftest.er1 >conftest.err
  24231. rm -f conftest.er1
  24232. cat conftest.err >&5
  24233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24234. (exit $ac_status); } &&
  24235. { ac_try='test -z "$ac_c_werror_flag"
  24236. || test ! -s conftest.err'
  24237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24238. (eval $ac_try) 2>&5
  24239. ac_status=$?
  24240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24241. (exit $ac_status); }; } &&
  24242. { ac_try='test -s conftest$ac_exeext'
  24243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24244. (eval $ac_try) 2>&5
  24245. ac_status=$?
  24246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24247. (exit $ac_status); }; }; then
  24248. ac_cv_search_opendir="none required"
  24249. else
  24250. echo "$as_me: failed program was:" >&5
  24251. sed 's/^/| /' conftest.$ac_ext >&5
  24252. fi
  24253. rm -f conftest.err conftest.$ac_objext \
  24254. conftest$ac_exeext conftest.$ac_ext
  24255. if test "$ac_cv_search_opendir" = no; then
  24256. for ac_lib in x; do
  24257. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24258. cat >conftest.$ac_ext <<_ACEOF
  24259. /* confdefs.h. */
  24260. _ACEOF
  24261. cat confdefs.h >>conftest.$ac_ext
  24262. cat >>conftest.$ac_ext <<_ACEOF
  24263. /* end confdefs.h. */
  24264. /* Override any gcc2 internal prototype to avoid an error. */
  24265. #ifdef __cplusplus
  24266. extern "C"
  24267. #endif
  24268. /* We use char because int might match the return type of a gcc2
  24269. builtin and then its argument prototype would still apply. */
  24270. char opendir ();
  24271. int
  24272. main ()
  24273. {
  24274. opendir ();
  24275. ;
  24276. return 0;
  24277. }
  24278. _ACEOF
  24279. rm -f conftest.$ac_objext conftest$ac_exeext
  24280. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24281. (eval $ac_link) 2>conftest.er1
  24282. ac_status=$?
  24283. grep -v '^ *+' conftest.er1 >conftest.err
  24284. rm -f conftest.er1
  24285. cat conftest.err >&5
  24286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24287. (exit $ac_status); } &&
  24288. { ac_try='test -z "$ac_c_werror_flag"
  24289. || test ! -s conftest.err'
  24290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24291. (eval $ac_try) 2>&5
  24292. ac_status=$?
  24293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24294. (exit $ac_status); }; } &&
  24295. { ac_try='test -s conftest$ac_exeext'
  24296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24297. (eval $ac_try) 2>&5
  24298. ac_status=$?
  24299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24300. (exit $ac_status); }; }; then
  24301. ac_cv_search_opendir="-l$ac_lib"
  24302. break
  24303. else
  24304. echo "$as_me: failed program was:" >&5
  24305. sed 's/^/| /' conftest.$ac_ext >&5
  24306. fi
  24307. rm -f conftest.err conftest.$ac_objext \
  24308. conftest$ac_exeext conftest.$ac_ext
  24309. done
  24310. fi
  24311. LIBS=$ac_func_search_save_LIBS
  24312. fi
  24313. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24314. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  24315. if test "$ac_cv_search_opendir" != no; then
  24316. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  24317. fi
  24318. fi
  24319. # ----------------------------------------------------------------------
  24320. # AC_CHECK_HEADERS Check for list of headers.
  24321. # ----------------------------------------------------------------------
  24322. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  24323. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  24324. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h
  24325. do
  24326. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24327. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24328. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24329. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24330. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24331. echo $ECHO_N "(cached) $ECHO_C" >&6
  24332. fi
  24333. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24334. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24335. else
  24336. # Is the header compilable?
  24337. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24338. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24339. cat >conftest.$ac_ext <<_ACEOF
  24340. /* confdefs.h. */
  24341. _ACEOF
  24342. cat confdefs.h >>conftest.$ac_ext
  24343. cat >>conftest.$ac_ext <<_ACEOF
  24344. /* end confdefs.h. */
  24345. $ac_includes_default
  24346. #include <$ac_header>
  24347. _ACEOF
  24348. rm -f conftest.$ac_objext
  24349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24350. (eval $ac_compile) 2>conftest.er1
  24351. ac_status=$?
  24352. grep -v '^ *+' conftest.er1 >conftest.err
  24353. rm -f conftest.er1
  24354. cat conftest.err >&5
  24355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24356. (exit $ac_status); } &&
  24357. { ac_try='test -z "$ac_c_werror_flag"
  24358. || test ! -s conftest.err'
  24359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24360. (eval $ac_try) 2>&5
  24361. ac_status=$?
  24362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24363. (exit $ac_status); }; } &&
  24364. { ac_try='test -s conftest.$ac_objext'
  24365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24366. (eval $ac_try) 2>&5
  24367. ac_status=$?
  24368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24369. (exit $ac_status); }; }; then
  24370. ac_header_compiler=yes
  24371. else
  24372. echo "$as_me: failed program was:" >&5
  24373. sed 's/^/| /' conftest.$ac_ext >&5
  24374. ac_header_compiler=no
  24375. fi
  24376. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24377. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24378. echo "${ECHO_T}$ac_header_compiler" >&6
  24379. # Is the header present?
  24380. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24381. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24382. cat >conftest.$ac_ext <<_ACEOF
  24383. /* confdefs.h. */
  24384. _ACEOF
  24385. cat confdefs.h >>conftest.$ac_ext
  24386. cat >>conftest.$ac_ext <<_ACEOF
  24387. /* end confdefs.h. */
  24388. #include <$ac_header>
  24389. _ACEOF
  24390. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24391. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24392. ac_status=$?
  24393. grep -v '^ *+' conftest.er1 >conftest.err
  24394. rm -f conftest.er1
  24395. cat conftest.err >&5
  24396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24397. (exit $ac_status); } >/dev/null; then
  24398. if test -s conftest.err; then
  24399. ac_cpp_err=$ac_c_preproc_warn_flag
  24400. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24401. else
  24402. ac_cpp_err=
  24403. fi
  24404. else
  24405. ac_cpp_err=yes
  24406. fi
  24407. if test -z "$ac_cpp_err"; then
  24408. ac_header_preproc=yes
  24409. else
  24410. echo "$as_me: failed program was:" >&5
  24411. sed 's/^/| /' conftest.$ac_ext >&5
  24412. ac_header_preproc=no
  24413. fi
  24414. rm -f conftest.err conftest.$ac_ext
  24415. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24416. echo "${ECHO_T}$ac_header_preproc" >&6
  24417. # So? What about this header?
  24418. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24419. yes:no: )
  24420. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24421. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24422. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24423. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24424. ac_header_preproc=yes
  24425. ;;
  24426. no:yes:* )
  24427. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24428. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24429. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24430. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24431. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24432. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24433. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24434. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24435. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24436. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24437. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24438. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24439. (
  24440. cat <<\_ASBOX
  24441. ## ------------------------------------------ ##
  24442. ## Report this to the AC_PACKAGE_NAME lists. ##
  24443. ## ------------------------------------------ ##
  24444. _ASBOX
  24445. ) |
  24446. sed "s/^/$as_me: WARNING: /" >&2
  24447. ;;
  24448. esac
  24449. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24450. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24451. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24452. echo $ECHO_N "(cached) $ECHO_C" >&6
  24453. else
  24454. eval "$as_ac_Header=\$ac_header_preproc"
  24455. fi
  24456. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24457. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24458. fi
  24459. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24460. cat >>confdefs.h <<_ACEOF
  24461. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24462. _ACEOF
  24463. fi
  24464. done
  24465. # --------------------------------------------
  24466. # Verify certain entries from AC_CHECK_HEADERS
  24467. # --------------------------------------------
  24468. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  24469. string errno stdlib memory setjmp
  24470. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  24471. test "${as_ac_var}" = set || \
  24472. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  24473. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  24474. { (exit 1); exit 1; }; }
  24475. done
  24476. # =================
  24477. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  24478. # if varargs.h is present define HAVE_VARARGS_H.
  24479. # =================
  24480. for ac_header in stdarg.h varargs.h
  24481. do
  24482. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24483. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24484. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24485. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24486. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24487. echo $ECHO_N "(cached) $ECHO_C" >&6
  24488. fi
  24489. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24490. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24491. else
  24492. # Is the header compilable?
  24493. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24494. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24495. cat >conftest.$ac_ext <<_ACEOF
  24496. /* confdefs.h. */
  24497. _ACEOF
  24498. cat confdefs.h >>conftest.$ac_ext
  24499. cat >>conftest.$ac_ext <<_ACEOF
  24500. /* end confdefs.h. */
  24501. $ac_includes_default
  24502. #include <$ac_header>
  24503. _ACEOF
  24504. rm -f conftest.$ac_objext
  24505. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24506. (eval $ac_compile) 2>conftest.er1
  24507. ac_status=$?
  24508. grep -v '^ *+' conftest.er1 >conftest.err
  24509. rm -f conftest.er1
  24510. cat conftest.err >&5
  24511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24512. (exit $ac_status); } &&
  24513. { ac_try='test -z "$ac_c_werror_flag"
  24514. || test ! -s conftest.err'
  24515. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24516. (eval $ac_try) 2>&5
  24517. ac_status=$?
  24518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24519. (exit $ac_status); }; } &&
  24520. { ac_try='test -s conftest.$ac_objext'
  24521. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24522. (eval $ac_try) 2>&5
  24523. ac_status=$?
  24524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24525. (exit $ac_status); }; }; then
  24526. ac_header_compiler=yes
  24527. else
  24528. echo "$as_me: failed program was:" >&5
  24529. sed 's/^/| /' conftest.$ac_ext >&5
  24530. ac_header_compiler=no
  24531. fi
  24532. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24533. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24534. echo "${ECHO_T}$ac_header_compiler" >&6
  24535. # Is the header present?
  24536. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24537. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24538. cat >conftest.$ac_ext <<_ACEOF
  24539. /* confdefs.h. */
  24540. _ACEOF
  24541. cat confdefs.h >>conftest.$ac_ext
  24542. cat >>conftest.$ac_ext <<_ACEOF
  24543. /* end confdefs.h. */
  24544. #include <$ac_header>
  24545. _ACEOF
  24546. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24547. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24548. ac_status=$?
  24549. grep -v '^ *+' conftest.er1 >conftest.err
  24550. rm -f conftest.er1
  24551. cat conftest.err >&5
  24552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24553. (exit $ac_status); } >/dev/null; then
  24554. if test -s conftest.err; then
  24555. ac_cpp_err=$ac_c_preproc_warn_flag
  24556. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24557. else
  24558. ac_cpp_err=
  24559. fi
  24560. else
  24561. ac_cpp_err=yes
  24562. fi
  24563. if test -z "$ac_cpp_err"; then
  24564. ac_header_preproc=yes
  24565. else
  24566. echo "$as_me: failed program was:" >&5
  24567. sed 's/^/| /' conftest.$ac_ext >&5
  24568. ac_header_preproc=no
  24569. fi
  24570. rm -f conftest.err conftest.$ac_ext
  24571. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24572. echo "${ECHO_T}$ac_header_preproc" >&6
  24573. # So? What about this header?
  24574. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24575. yes:no: )
  24576. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24577. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24578. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24579. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24580. ac_header_preproc=yes
  24581. ;;
  24582. no:yes:* )
  24583. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24584. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24585. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24586. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24587. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24588. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24589. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24590. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24591. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24592. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24593. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24594. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24595. (
  24596. cat <<\_ASBOX
  24597. ## ------------------------------------------ ##
  24598. ## Report this to the AC_PACKAGE_NAME lists. ##
  24599. ## ------------------------------------------ ##
  24600. _ASBOX
  24601. ) |
  24602. sed "s/^/$as_me: WARNING: /" >&2
  24603. ;;
  24604. esac
  24605. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24606. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24607. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24608. echo $ECHO_N "(cached) $ECHO_C" >&6
  24609. else
  24610. eval "$as_ac_Header=\$ac_header_preproc"
  24611. fi
  24612. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24613. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24614. fi
  24615. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24616. cat >>confdefs.h <<_ACEOF
  24617. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24618. _ACEOF
  24619. break
  24620. fi
  24621. done
  24622. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24623. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  24624. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  24625. { (exit 1); exit 1; }; }
  24626. fi
  24627. # =================
  24628. # Similarly for the string.h and strings.h headers
  24629. # =================
  24630. for ac_header in string.h strings.h
  24631. do
  24632. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24633. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24634. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24635. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24636. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24637. echo $ECHO_N "(cached) $ECHO_C" >&6
  24638. fi
  24639. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24640. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24641. else
  24642. # Is the header compilable?
  24643. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24644. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24645. cat >conftest.$ac_ext <<_ACEOF
  24646. /* confdefs.h. */
  24647. _ACEOF
  24648. cat confdefs.h >>conftest.$ac_ext
  24649. cat >>conftest.$ac_ext <<_ACEOF
  24650. /* end confdefs.h. */
  24651. $ac_includes_default
  24652. #include <$ac_header>
  24653. _ACEOF
  24654. rm -f conftest.$ac_objext
  24655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24656. (eval $ac_compile) 2>conftest.er1
  24657. ac_status=$?
  24658. grep -v '^ *+' conftest.er1 >conftest.err
  24659. rm -f conftest.er1
  24660. cat conftest.err >&5
  24661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24662. (exit $ac_status); } &&
  24663. { ac_try='test -z "$ac_c_werror_flag"
  24664. || test ! -s conftest.err'
  24665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24666. (eval $ac_try) 2>&5
  24667. ac_status=$?
  24668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24669. (exit $ac_status); }; } &&
  24670. { ac_try='test -s conftest.$ac_objext'
  24671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24672. (eval $ac_try) 2>&5
  24673. ac_status=$?
  24674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24675. (exit $ac_status); }; }; then
  24676. ac_header_compiler=yes
  24677. else
  24678. echo "$as_me: failed program was:" >&5
  24679. sed 's/^/| /' conftest.$ac_ext >&5
  24680. ac_header_compiler=no
  24681. fi
  24682. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24683. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24684. echo "${ECHO_T}$ac_header_compiler" >&6
  24685. # Is the header present?
  24686. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24687. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24688. cat >conftest.$ac_ext <<_ACEOF
  24689. /* confdefs.h. */
  24690. _ACEOF
  24691. cat confdefs.h >>conftest.$ac_ext
  24692. cat >>conftest.$ac_ext <<_ACEOF
  24693. /* end confdefs.h. */
  24694. #include <$ac_header>
  24695. _ACEOF
  24696. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24697. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24698. ac_status=$?
  24699. grep -v '^ *+' conftest.er1 >conftest.err
  24700. rm -f conftest.er1
  24701. cat conftest.err >&5
  24702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24703. (exit $ac_status); } >/dev/null; then
  24704. if test -s conftest.err; then
  24705. ac_cpp_err=$ac_c_preproc_warn_flag
  24706. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24707. else
  24708. ac_cpp_err=
  24709. fi
  24710. else
  24711. ac_cpp_err=yes
  24712. fi
  24713. if test -z "$ac_cpp_err"; then
  24714. ac_header_preproc=yes
  24715. else
  24716. echo "$as_me: failed program was:" >&5
  24717. sed 's/^/| /' conftest.$ac_ext >&5
  24718. ac_header_preproc=no
  24719. fi
  24720. rm -f conftest.err conftest.$ac_ext
  24721. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24722. echo "${ECHO_T}$ac_header_preproc" >&6
  24723. # So? What about this header?
  24724. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24725. yes:no: )
  24726. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24727. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24728. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24729. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24730. ac_header_preproc=yes
  24731. ;;
  24732. no:yes:* )
  24733. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24734. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24735. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24736. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24737. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24738. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24739. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24740. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24741. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24742. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24743. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24744. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24745. (
  24746. cat <<\_ASBOX
  24747. ## ------------------------------------------ ##
  24748. ## Report this to the AC_PACKAGE_NAME lists. ##
  24749. ## ------------------------------------------ ##
  24750. _ASBOX
  24751. ) |
  24752. sed "s/^/$as_me: WARNING: /" >&2
  24753. ;;
  24754. esac
  24755. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24756. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24757. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24758. echo $ECHO_N "(cached) $ECHO_C" >&6
  24759. else
  24760. eval "$as_ac_Header=\$ac_header_preproc"
  24761. fi
  24762. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24763. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24764. fi
  24765. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24766. cat >>confdefs.h <<_ACEOF
  24767. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24768. _ACEOF
  24769. break
  24770. fi
  24771. done
  24772. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24773. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  24774. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  24775. { (exit 1); exit 1; }; }
  24776. fi
  24777. # =================
  24778. # ...and limits headers
  24779. # =================
  24780. for ac_header in limits.h sys/limits.h values.h
  24781. do
  24782. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24783. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24784. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24785. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24786. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24787. echo $ECHO_N "(cached) $ECHO_C" >&6
  24788. fi
  24789. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24790. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24791. else
  24792. # Is the header compilable?
  24793. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24794. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24795. cat >conftest.$ac_ext <<_ACEOF
  24796. /* confdefs.h. */
  24797. _ACEOF
  24798. cat confdefs.h >>conftest.$ac_ext
  24799. cat >>conftest.$ac_ext <<_ACEOF
  24800. /* end confdefs.h. */
  24801. $ac_includes_default
  24802. #include <$ac_header>
  24803. _ACEOF
  24804. rm -f conftest.$ac_objext
  24805. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24806. (eval $ac_compile) 2>conftest.er1
  24807. ac_status=$?
  24808. grep -v '^ *+' conftest.er1 >conftest.err
  24809. rm -f conftest.er1
  24810. cat conftest.err >&5
  24811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24812. (exit $ac_status); } &&
  24813. { ac_try='test -z "$ac_c_werror_flag"
  24814. || test ! -s conftest.err'
  24815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24816. (eval $ac_try) 2>&5
  24817. ac_status=$?
  24818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24819. (exit $ac_status); }; } &&
  24820. { ac_try='test -s conftest.$ac_objext'
  24821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24822. (eval $ac_try) 2>&5
  24823. ac_status=$?
  24824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24825. (exit $ac_status); }; }; then
  24826. ac_header_compiler=yes
  24827. else
  24828. echo "$as_me: failed program was:" >&5
  24829. sed 's/^/| /' conftest.$ac_ext >&5
  24830. ac_header_compiler=no
  24831. fi
  24832. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24833. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24834. echo "${ECHO_T}$ac_header_compiler" >&6
  24835. # Is the header present?
  24836. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24837. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24838. cat >conftest.$ac_ext <<_ACEOF
  24839. /* confdefs.h. */
  24840. _ACEOF
  24841. cat confdefs.h >>conftest.$ac_ext
  24842. cat >>conftest.$ac_ext <<_ACEOF
  24843. /* end confdefs.h. */
  24844. #include <$ac_header>
  24845. _ACEOF
  24846. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24847. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24848. ac_status=$?
  24849. grep -v '^ *+' conftest.er1 >conftest.err
  24850. rm -f conftest.er1
  24851. cat conftest.err >&5
  24852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24853. (exit $ac_status); } >/dev/null; then
  24854. if test -s conftest.err; then
  24855. ac_cpp_err=$ac_c_preproc_warn_flag
  24856. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24857. else
  24858. ac_cpp_err=
  24859. fi
  24860. else
  24861. ac_cpp_err=yes
  24862. fi
  24863. if test -z "$ac_cpp_err"; then
  24864. ac_header_preproc=yes
  24865. else
  24866. echo "$as_me: failed program was:" >&5
  24867. sed 's/^/| /' conftest.$ac_ext >&5
  24868. ac_header_preproc=no
  24869. fi
  24870. rm -f conftest.err conftest.$ac_ext
  24871. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24872. echo "${ECHO_T}$ac_header_preproc" >&6
  24873. # So? What about this header?
  24874. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24875. yes:no: )
  24876. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24877. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24878. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24879. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24880. ac_header_preproc=yes
  24881. ;;
  24882. no:yes:* )
  24883. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24884. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24885. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24886. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24887. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24888. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24889. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24890. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24891. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24892. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24893. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24894. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24895. (
  24896. cat <<\_ASBOX
  24897. ## ------------------------------------------ ##
  24898. ## Report this to the AC_PACKAGE_NAME lists. ##
  24899. ## ------------------------------------------ ##
  24900. _ASBOX
  24901. ) |
  24902. sed "s/^/$as_me: WARNING: /" >&2
  24903. ;;
  24904. esac
  24905. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24906. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24907. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24908. echo $ECHO_N "(cached) $ECHO_C" >&6
  24909. else
  24910. eval "$as_ac_Header=\$ac_header_preproc"
  24911. fi
  24912. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24913. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24914. fi
  24915. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24916. cat >>confdefs.h <<_ACEOF
  24917. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24918. _ACEOF
  24919. break
  24920. fi
  24921. done
  24922. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24923. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  24924. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  24925. { (exit 1); exit 1; }; }
  24926. fi
  24927. # =================
  24928. # ...and int types headers
  24929. # =================
  24930. for ac_header in stdint.h inttypes.h
  24931. do
  24932. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24933. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24934. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24935. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24936. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24937. echo $ECHO_N "(cached) $ECHO_C" >&6
  24938. fi
  24939. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24940. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24941. else
  24942. # Is the header compilable?
  24943. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24944. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24945. cat >conftest.$ac_ext <<_ACEOF
  24946. /* confdefs.h. */
  24947. _ACEOF
  24948. cat confdefs.h >>conftest.$ac_ext
  24949. cat >>conftest.$ac_ext <<_ACEOF
  24950. /* end confdefs.h. */
  24951. $ac_includes_default
  24952. #include <$ac_header>
  24953. _ACEOF
  24954. rm -f conftest.$ac_objext
  24955. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24956. (eval $ac_compile) 2>conftest.er1
  24957. ac_status=$?
  24958. grep -v '^ *+' conftest.er1 >conftest.err
  24959. rm -f conftest.er1
  24960. cat conftest.err >&5
  24961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24962. (exit $ac_status); } &&
  24963. { ac_try='test -z "$ac_c_werror_flag"
  24964. || test ! -s conftest.err'
  24965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24966. (eval $ac_try) 2>&5
  24967. ac_status=$?
  24968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24969. (exit $ac_status); }; } &&
  24970. { ac_try='test -s conftest.$ac_objext'
  24971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24972. (eval $ac_try) 2>&5
  24973. ac_status=$?
  24974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24975. (exit $ac_status); }; }; then
  24976. ac_header_compiler=yes
  24977. else
  24978. echo "$as_me: failed program was:" >&5
  24979. sed 's/^/| /' conftest.$ac_ext >&5
  24980. ac_header_compiler=no
  24981. fi
  24982. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24983. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24984. echo "${ECHO_T}$ac_header_compiler" >&6
  24985. # Is the header present?
  24986. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24987. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24988. cat >conftest.$ac_ext <<_ACEOF
  24989. /* confdefs.h. */
  24990. _ACEOF
  24991. cat confdefs.h >>conftest.$ac_ext
  24992. cat >>conftest.$ac_ext <<_ACEOF
  24993. /* end confdefs.h. */
  24994. #include <$ac_header>
  24995. _ACEOF
  24996. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24997. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24998. ac_status=$?
  24999. grep -v '^ *+' conftest.er1 >conftest.err
  25000. rm -f conftest.er1
  25001. cat conftest.err >&5
  25002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25003. (exit $ac_status); } >/dev/null; then
  25004. if test -s conftest.err; then
  25005. ac_cpp_err=$ac_c_preproc_warn_flag
  25006. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  25007. else
  25008. ac_cpp_err=
  25009. fi
  25010. else
  25011. ac_cpp_err=yes
  25012. fi
  25013. if test -z "$ac_cpp_err"; then
  25014. ac_header_preproc=yes
  25015. else
  25016. echo "$as_me: failed program was:" >&5
  25017. sed 's/^/| /' conftest.$ac_ext >&5
  25018. ac_header_preproc=no
  25019. fi
  25020. rm -f conftest.err conftest.$ac_ext
  25021. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25022. echo "${ECHO_T}$ac_header_preproc" >&6
  25023. # So? What about this header?
  25024. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25025. yes:no: )
  25026. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25027. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25028. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25029. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25030. ac_header_preproc=yes
  25031. ;;
  25032. no:yes:* )
  25033. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25034. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25035. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25036. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25037. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25038. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25039. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25040. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25041. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25042. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25043. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25044. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25045. (
  25046. cat <<\_ASBOX
  25047. ## ------------------------------------------ ##
  25048. ## Report this to the AC_PACKAGE_NAME lists. ##
  25049. ## ------------------------------------------ ##
  25050. _ASBOX
  25051. ) |
  25052. sed "s/^/$as_me: WARNING: /" >&2
  25053. ;;
  25054. esac
  25055. echo "$as_me:$LINENO: checking for $ac_header" >&5
  25056. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  25057. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25058. echo $ECHO_N "(cached) $ECHO_C" >&6
  25059. else
  25060. eval "$as_ac_Header=\$ac_header_preproc"
  25061. fi
  25062. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  25063. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  25064. fi
  25065. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25066. cat >>confdefs.h <<_ACEOF
  25067. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25068. _ACEOF
  25069. break
  25070. fi
  25071. done
  25072. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25073. { { echo "$as_me:$LINENO: error: You must have stdint.h or inttypes.h on your system" >&5
  25074. echo "$as_me: error: You must have stdint.h or inttypes.h on your system" >&2;}
  25075. { (exit 1); exit 1; }; }
  25076. fi
  25077. # =================
  25078. # ...and directory read headers
  25079. # =================
  25080. for ac_header in dirent.h ndir.h sys/ndir.h
  25081. do
  25082. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25083. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25084. echo "$as_me:$LINENO: checking for $ac_header" >&5
  25085. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  25086. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25087. echo $ECHO_N "(cached) $ECHO_C" >&6
  25088. fi
  25089. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  25090. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  25091. else
  25092. # Is the header compilable?
  25093. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25094. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  25095. cat >conftest.$ac_ext <<_ACEOF
  25096. /* confdefs.h. */
  25097. _ACEOF
  25098. cat confdefs.h >>conftest.$ac_ext
  25099. cat >>conftest.$ac_ext <<_ACEOF
  25100. /* end confdefs.h. */
  25101. $ac_includes_default
  25102. #include <$ac_header>
  25103. _ACEOF
  25104. rm -f conftest.$ac_objext
  25105. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25106. (eval $ac_compile) 2>conftest.er1
  25107. ac_status=$?
  25108. grep -v '^ *+' conftest.er1 >conftest.err
  25109. rm -f conftest.er1
  25110. cat conftest.err >&5
  25111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25112. (exit $ac_status); } &&
  25113. { ac_try='test -z "$ac_c_werror_flag"
  25114. || test ! -s conftest.err'
  25115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25116. (eval $ac_try) 2>&5
  25117. ac_status=$?
  25118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25119. (exit $ac_status); }; } &&
  25120. { ac_try='test -s conftest.$ac_objext'
  25121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25122. (eval $ac_try) 2>&5
  25123. ac_status=$?
  25124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25125. (exit $ac_status); }; }; then
  25126. ac_header_compiler=yes
  25127. else
  25128. echo "$as_me: failed program was:" >&5
  25129. sed 's/^/| /' conftest.$ac_ext >&5
  25130. ac_header_compiler=no
  25131. fi
  25132. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25133. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25134. echo "${ECHO_T}$ac_header_compiler" >&6
  25135. # Is the header present?
  25136. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25137. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  25138. cat >conftest.$ac_ext <<_ACEOF
  25139. /* confdefs.h. */
  25140. _ACEOF
  25141. cat confdefs.h >>conftest.$ac_ext
  25142. cat >>conftest.$ac_ext <<_ACEOF
  25143. /* end confdefs.h. */
  25144. #include <$ac_header>
  25145. _ACEOF
  25146. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  25147. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  25148. ac_status=$?
  25149. grep -v '^ *+' conftest.er1 >conftest.err
  25150. rm -f conftest.er1
  25151. cat conftest.err >&5
  25152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25153. (exit $ac_status); } >/dev/null; then
  25154. if test -s conftest.err; then
  25155. ac_cpp_err=$ac_c_preproc_warn_flag
  25156. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  25157. else
  25158. ac_cpp_err=
  25159. fi
  25160. else
  25161. ac_cpp_err=yes
  25162. fi
  25163. if test -z "$ac_cpp_err"; then
  25164. ac_header_preproc=yes
  25165. else
  25166. echo "$as_me: failed program was:" >&5
  25167. sed 's/^/| /' conftest.$ac_ext >&5
  25168. ac_header_preproc=no
  25169. fi
  25170. rm -f conftest.err conftest.$ac_ext
  25171. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25172. echo "${ECHO_T}$ac_header_preproc" >&6
  25173. # So? What about this header?
  25174. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25175. yes:no: )
  25176. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25177. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25178. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25179. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25180. ac_header_preproc=yes
  25181. ;;
  25182. no:yes:* )
  25183. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25184. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25185. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25186. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25187. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25188. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25189. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25190. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25191. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25192. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25193. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25194. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25195. (
  25196. cat <<\_ASBOX
  25197. ## ------------------------------------------ ##
  25198. ## Report this to the AC_PACKAGE_NAME lists. ##
  25199. ## ------------------------------------------ ##
  25200. _ASBOX
  25201. ) |
  25202. sed "s/^/$as_me: WARNING: /" >&2
  25203. ;;
  25204. esac
  25205. echo "$as_me:$LINENO: checking for $ac_header" >&5
  25206. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  25207. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25208. echo $ECHO_N "(cached) $ECHO_C" >&6
  25209. else
  25210. eval "$as_ac_Header=\$ac_header_preproc"
  25211. fi
  25212. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  25213. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  25214. fi
  25215. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25216. cat >>confdefs.h <<_ACEOF
  25217. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25218. _ACEOF
  25219. break
  25220. fi
  25221. done
  25222. # ----------------------------------------------------------------------
  25223. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  25224. # ----------------------------------------------------------------------
  25225. echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  25226. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
  25227. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  25228. echo $ECHO_N "(cached) $ECHO_C" >&6
  25229. else
  25230. ac_check_lib_save_LIBS=$LIBS
  25231. LIBS="-lgen $LIBS"
  25232. cat >conftest.$ac_ext <<_ACEOF
  25233. /* confdefs.h. */
  25234. _ACEOF
  25235. cat confdefs.h >>conftest.$ac_ext
  25236. cat >>conftest.$ac_ext <<_ACEOF
  25237. /* end confdefs.h. */
  25238. /* Override any gcc2 internal prototype to avoid an error. */
  25239. #ifdef __cplusplus
  25240. extern "C"
  25241. #endif
  25242. /* We use char because int might match the return type of a gcc2
  25243. builtin and then its argument prototype would still apply. */
  25244. char pathfind ();
  25245. int
  25246. main ()
  25247. {
  25248. pathfind ();
  25249. ;
  25250. return 0;
  25251. }
  25252. _ACEOF
  25253. rm -f conftest.$ac_objext conftest$ac_exeext
  25254. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25255. (eval $ac_link) 2>conftest.er1
  25256. ac_status=$?
  25257. grep -v '^ *+' conftest.er1 >conftest.err
  25258. rm -f conftest.er1
  25259. cat conftest.err >&5
  25260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25261. (exit $ac_status); } &&
  25262. { ac_try='test -z "$ac_c_werror_flag"
  25263. || test ! -s conftest.err'
  25264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25265. (eval $ac_try) 2>&5
  25266. ac_status=$?
  25267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25268. (exit $ac_status); }; } &&
  25269. { ac_try='test -s conftest$ac_exeext'
  25270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25271. (eval $ac_try) 2>&5
  25272. ac_status=$?
  25273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25274. (exit $ac_status); }; }; then
  25275. ac_cv_lib_gen_pathfind=yes
  25276. else
  25277. echo "$as_me: failed program was:" >&5
  25278. sed 's/^/| /' conftest.$ac_ext >&5
  25279. ac_cv_lib_gen_pathfind=no
  25280. fi
  25281. rm -f conftest.err conftest.$ac_objext \
  25282. conftest$ac_exeext conftest.$ac_ext
  25283. LIBS=$ac_check_lib_save_LIBS
  25284. fi
  25285. echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  25286. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
  25287. if test $ac_cv_lib_gen_pathfind = yes; then
  25288. cat >>confdefs.h <<_ACEOF
  25289. #define HAVE_LIBGEN 1
  25290. _ACEOF
  25291. LIBS="-lgen $LIBS"
  25292. fi
  25293. for ac_func in mmap
  25294. do
  25295. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  25296. echo "$as_me:$LINENO: checking for $ac_func" >&5
  25297. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  25298. if eval "test \"\${$as_ac_var+set}\" = set"; then
  25299. echo $ECHO_N "(cached) $ECHO_C" >&6
  25300. else
  25301. cat >conftest.$ac_ext <<_ACEOF
  25302. /* confdefs.h. */
  25303. _ACEOF
  25304. cat confdefs.h >>conftest.$ac_ext
  25305. cat >>conftest.$ac_ext <<_ACEOF
  25306. /* end confdefs.h. */
  25307. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  25308. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25309. #define $ac_func innocuous_$ac_func
  25310. /* System header to define __stub macros and hopefully few prototypes,
  25311. which can conflict with char $ac_func (); below.
  25312. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25313. <limits.h> exists even on freestanding compilers. */
  25314. #ifdef __STDC__
  25315. # include <limits.h>
  25316. #else
  25317. # include <assert.h>
  25318. #endif
  25319. #undef $ac_func
  25320. /* Override any gcc2 internal prototype to avoid an error. */
  25321. #ifdef __cplusplus
  25322. extern "C"
  25323. {
  25324. #endif
  25325. /* We use char because int might match the return type of a gcc2
  25326. builtin and then its argument prototype would still apply. */
  25327. char $ac_func ();
  25328. /* The GNU C library defines this for functions which it implements
  25329. to always fail with ENOSYS. Some functions are actually named
  25330. something starting with __ and the normal name is an alias. */
  25331. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  25332. choke me
  25333. #else
  25334. char (*f) () = $ac_func;
  25335. #endif
  25336. #ifdef __cplusplus
  25337. }
  25338. #endif
  25339. int
  25340. main ()
  25341. {
  25342. return f != $ac_func;
  25343. ;
  25344. return 0;
  25345. }
  25346. _ACEOF
  25347. rm -f conftest.$ac_objext conftest$ac_exeext
  25348. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25349. (eval $ac_link) 2>conftest.er1
  25350. ac_status=$?
  25351. grep -v '^ *+' conftest.er1 >conftest.err
  25352. rm -f conftest.er1
  25353. cat conftest.err >&5
  25354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25355. (exit $ac_status); } &&
  25356. { ac_try='test -z "$ac_c_werror_flag"
  25357. || test ! -s conftest.err'
  25358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25359. (eval $ac_try) 2>&5
  25360. ac_status=$?
  25361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25362. (exit $ac_status); }; } &&
  25363. { ac_try='test -s conftest$ac_exeext'
  25364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25365. (eval $ac_try) 2>&5
  25366. ac_status=$?
  25367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25368. (exit $ac_status); }; }; then
  25369. eval "$as_ac_var=yes"
  25370. else
  25371. echo "$as_me: failed program was:" >&5
  25372. sed 's/^/| /' conftest.$ac_ext >&5
  25373. eval "$as_ac_var=no"
  25374. fi
  25375. rm -f conftest.err conftest.$ac_objext \
  25376. conftest$ac_exeext conftest.$ac_ext
  25377. fi
  25378. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  25379. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  25380. if test `eval echo '${'$as_ac_var'}'` = yes; then
  25381. cat >>confdefs.h <<_ACEOF
  25382. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25383. _ACEOF
  25384. fi
  25385. done
  25386. NEED_LIBOPTS_DIR=true
  25387. fi
  25388. fi;
  25389. if test -z "${NEED_LIBOPTS_DIR}" ; then
  25390. echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  25391. echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6
  25392. # Check whether --with-autoopts-config or --without-autoopts-config was given.
  25393. if test "${with_autoopts_config+set}" = set; then
  25394. withval="$with_autoopts_config"
  25395. lo_cv_with_autoopts_config=${with_autoopts_config}
  25396. else
  25397. echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  25398. echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6
  25399. if test "${lo_cv_with_autoopts_config+set}" = set; then
  25400. echo $ECHO_N "(cached) $ECHO_C" >&6
  25401. else
  25402. lo_cv_with_autoopts_config=autoopts-config
  25403. fi
  25404. echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  25405. echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6
  25406. fi; # end of AC_ARG_WITH
  25407. if test "${lo_cv_test_autoopts+set}" = set; then
  25408. echo $ECHO_N "(cached) $ECHO_C" >&6
  25409. else
  25410. aoconfig=${lo_cv_with_autoopts_config}
  25411. lo_cv_test_autoopts=`${aoconfig} --libs` 2> /dev/null
  25412. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  25413. then lo_cv_test_autoopts=no ; fi
  25414. fi
  25415. # end of CACHE_VAL
  25416. echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  25417. echo "${ECHO_T}${lo_cv_test_autoopts}" >&6
  25418. if test "X${lo_cv_test_autoopts}" != Xno
  25419. then
  25420. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  25421. LIBOPTS_CFLAGS="`${aoconfig} --cflags`"
  25422. else
  25423. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  25424. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  25425. # Check to see if a reg expr header is specified.
  25426. # Check whether --with-regex-header or --without-regex-header was given.
  25427. if test "${with_regex_header+set}" = set; then
  25428. withval="$with_regex_header"
  25429. libopts_cv_with_regex_header=${with_regex_header}
  25430. else
  25431. echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  25432. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
  25433. if test "${libopts_cv_with_regex_header+set}" = set; then
  25434. echo $ECHO_N "(cached) $ECHO_C" >&6
  25435. else
  25436. libopts_cv_with_regex_header=no
  25437. fi
  25438. echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  25439. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
  25440. fi; # end of AC_ARG_WITH
  25441. if test "X${libopts_cv_with_regex_header}" != Xno
  25442. then
  25443. cat >>confdefs.h <<_ACEOF
  25444. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  25445. _ACEOF
  25446. else
  25447. cat >>confdefs.h <<\_ACEOF
  25448. #define REGEX_HEADER <regex.h>
  25449. _ACEOF
  25450. fi
  25451. # Check to see if a working libregex can be found.
  25452. # Check whether --with-libregex or --without-libregex was given.
  25453. if test "${with_libregex+set}" = set; then
  25454. withval="$with_libregex"
  25455. libopts_cv_with_libregex_root=${with_libregex}
  25456. else
  25457. echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  25458. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
  25459. if test "${libopts_cv_with_libregex_root+set}" = set; then
  25460. echo $ECHO_N "(cached) $ECHO_C" >&6
  25461. else
  25462. libopts_cv_with_libregex_root=no
  25463. fi
  25464. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  25465. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
  25466. fi; # end of AC_ARG_WITH libregex
  25467. if test "${with_libguile+set}" = set && \
  25468. test "${withval}" = no
  25469. then ## disabled by request
  25470. libopts_cv_with_libregex_root=no
  25471. libopts_cv_with_libregex_cflags=no
  25472. libopts_cv_with_libregex_libs=no
  25473. else
  25474. # Check whether --with-libregex-cflags or --without-libregex-cflags was given.
  25475. if test "${with_libregex_cflags+set}" = set; then
  25476. withval="$with_libregex_cflags"
  25477. libopts_cv_with_libregex_cflags=${with_regex_cflags}
  25478. else
  25479. echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  25480. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
  25481. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  25482. echo $ECHO_N "(cached) $ECHO_C" >&6
  25483. else
  25484. libopts_cv_with_libregex_cflags=no
  25485. fi
  25486. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  25487. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
  25488. fi; # end of AC_ARG_WITH libregex-cflags
  25489. # Check whether --with-libregex-libs or --without-libregex-libs was given.
  25490. if test "${with_libregex_libs+set}" = set; then
  25491. withval="$with_libregex_libs"
  25492. libopts_cv_with_libregex_libs=${with_regex_libs}
  25493. else
  25494. echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  25495. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
  25496. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  25497. echo $ECHO_N "(cached) $ECHO_C" >&6
  25498. else
  25499. libopts_cv_with_libregex_libs=no
  25500. fi
  25501. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  25502. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
  25503. fi; # end of AC_ARG_WITH libregex-libs
  25504. case "X${libopts_cv_with_libregex_cflags}" in
  25505. Xyes|Xno|X )
  25506. case "X${libopts_cv_with_libregex_root}" in
  25507. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  25508. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  25509. esac
  25510. esac
  25511. case "X${libopts_cv_with_libregex_libs}" in
  25512. Xyes|Xno|X )
  25513. case "X${libopts_cv_with_libregex_root}" in
  25514. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  25515. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  25516. esac
  25517. esac
  25518. libopts_save_CPPFLAGS="${CPPFLAGS}"
  25519. libopts_save_LIBS="${LIBS}"
  25520. fi ## disabled by request
  25521. case "X${libopts_cv_with_libregex_cflags}" in
  25522. Xyes|Xno|X )
  25523. libopts_cv_with_libregex_cflags="" ;;
  25524. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  25525. esac
  25526. case "X${libopts_cv_with_libregex_libs}" in
  25527. Xyes|Xno|X )
  25528. libopts_cv_with_libregex_libs="" ;;
  25529. * )
  25530. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  25531. esac
  25532. LIBREGEX_CFLAGS=""
  25533. LIBREGEX_LIBS=""
  25534. echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  25535. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
  25536. if test "${libopts_cv_with_libregex+set}" = set; then
  25537. echo $ECHO_N "(cached) $ECHO_C" >&6
  25538. else
  25539. if test "$cross_compiling" = yes; then
  25540. libopts_cv_with_libregex=no
  25541. else
  25542. cat >conftest.$ac_ext <<_ACEOF
  25543. /* confdefs.h. */
  25544. _ACEOF
  25545. cat confdefs.h >>conftest.$ac_ext
  25546. cat >>conftest.$ac_ext <<_ACEOF
  25547. /* end confdefs.h. */
  25548. #include <stdio.h>
  25549. #include <stdlib.h>
  25550. #include <sys/types.h>
  25551. #include REGEX_HEADER
  25552. static regex_t re;
  25553. void comp_re( const char* pzPat ) {
  25554. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  25555. if (res == 0) return;
  25556. exit( res ); }
  25557. int main() {
  25558. regmatch_t m[2];
  25559. comp_re( "^.*\$" );
  25560. comp_re( "()|no.*" );
  25561. comp_re( "." );
  25562. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  25563. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  25564. fputs( "error: regex -->.<-- did not match\n", stderr );
  25565. return 1;
  25566. }
  25567. return 0; }
  25568. _ACEOF
  25569. rm -f conftest$ac_exeext
  25570. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25571. (eval $ac_link) 2>&5
  25572. ac_status=$?
  25573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25574. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25576. (eval $ac_try) 2>&5
  25577. ac_status=$?
  25578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25579. (exit $ac_status); }; }; then
  25580. libopts_cv_with_libregex=yes
  25581. else
  25582. echo "$as_me: program exited with status $ac_status" >&5
  25583. echo "$as_me: failed program was:" >&5
  25584. sed 's/^/| /' conftest.$ac_ext >&5
  25585. ( exit $ac_status )
  25586. libopts_cv_with_libregex=no
  25587. fi
  25588. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25589. fi # end of AC_TRY_RUN
  25590. fi
  25591. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  25592. echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  25593. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
  25594. if test "X${libopts_cv_with_libregex}" = Xno
  25595. then
  25596. CPPFLAGS="${libopts_save_CPPFLAGS}"
  25597. LIBS="${libopts_save_LIBS}"
  25598. cat >&2 <<'_EOF_'
  25599. I cannot detect POSIX compliant regcomp/regexec routines.
  25600. These are required for AutoGen to work correctly. If you have
  25601. such a library present on your system, you must specify it by
  25602. setting the LIBS environment variable, e.g., "LIBS='-lregex'".
  25603. If you do not have such a library on your system, then you should
  25604. download and install, for example, the one from:
  25605. ftp://ftp.gnu.org/gnu/rx/
  25606. _EOF_
  25607. { { echo "$as_me:$LINENO: error: Cannot find working POSIX regex library" >&5
  25608. echo "$as_me: error: Cannot find working POSIX regex library" >&2;}
  25609. { (exit 1); exit 1; }; }
  25610. fi
  25611. # Check to see if pathfind(3) works.
  25612. echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  25613. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
  25614. if test "${libopts_cv_run_pathfind+set}" = set; then
  25615. echo $ECHO_N "(cached) $ECHO_C" >&6
  25616. else
  25617. if test "$cross_compiling" = yes; then
  25618. libopts_cv_run_pathfind=no
  25619. else
  25620. cat >conftest.$ac_ext <<_ACEOF
  25621. /* confdefs.h. */
  25622. _ACEOF
  25623. cat confdefs.h >>conftest.$ac_ext
  25624. cat >>conftest.$ac_ext <<_ACEOF
  25625. /* end confdefs.h. */
  25626. #include <string.h>
  25627. #include <stdlib.h>
  25628. int main (int argc, char** argv) {
  25629. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  25630. return (pz == 0) ? 1 : 0;
  25631. }
  25632. _ACEOF
  25633. rm -f conftest$ac_exeext
  25634. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25635. (eval $ac_link) 2>&5
  25636. ac_status=$?
  25637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25638. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25640. (eval $ac_try) 2>&5
  25641. ac_status=$?
  25642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25643. (exit $ac_status); }; }; then
  25644. libopts_cv_run_pathfind=yes
  25645. else
  25646. echo "$as_me: program exited with status $ac_status" >&5
  25647. echo "$as_me: failed program was:" >&5
  25648. sed 's/^/| /' conftest.$ac_ext >&5
  25649. ( exit $ac_status )
  25650. libopts_cv_run_pathfind=no
  25651. fi
  25652. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25653. fi # end of TRY_RUN
  25654. fi
  25655. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  25656. echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  25657. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
  25658. if test "X${libopts_cv_run_pathfind}" != Xno
  25659. then
  25660. cat >>confdefs.h <<\_ACEOF
  25661. #define HAVE_PATHFIND 1
  25662. _ACEOF
  25663. fi
  25664. # Check to see if strftime() works.
  25665. echo "$as_me:$LINENO: checking whether strftime() works" >&5
  25666. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
  25667. if test "${libopts_cv_run_strftime+set}" = set; then
  25668. echo $ECHO_N "(cached) $ECHO_C" >&6
  25669. else
  25670. if test "$cross_compiling" = yes; then
  25671. libopts_cv_run_strftime=no
  25672. else
  25673. cat >conftest.$ac_ext <<_ACEOF
  25674. /* confdefs.h. */
  25675. _ACEOF
  25676. cat confdefs.h >>conftest.$ac_ext
  25677. cat >>conftest.$ac_ext <<_ACEOF
  25678. /* end confdefs.h. */
  25679. #include <time.h>
  25680. #include <string.h>
  25681. char t_buf[ 64 ];
  25682. int main() {
  25683. static const char z[] = "Thursday Aug 28 240";
  25684. struct tm tm;
  25685. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  25686. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  25687. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  25688. tm.tm_mday = 28; /* day of the month [1, 31] */
  25689. tm.tm_mon = 7; /* months since January [0, 11] */
  25690. tm.tm_year = 86; /* years since 1900 */
  25691. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  25692. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  25693. tm.tm_isdst = 1; /* flag for daylight savings time */
  25694. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  25695. return (strcmp( t_buf, z ) != 0); }
  25696. _ACEOF
  25697. rm -f conftest$ac_exeext
  25698. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25699. (eval $ac_link) 2>&5
  25700. ac_status=$?
  25701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25702. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25704. (eval $ac_try) 2>&5
  25705. ac_status=$?
  25706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25707. (exit $ac_status); }; }; then
  25708. libopts_cv_run_strftime=yes
  25709. else
  25710. echo "$as_me: program exited with status $ac_status" >&5
  25711. echo "$as_me: failed program was:" >&5
  25712. sed 's/^/| /' conftest.$ac_ext >&5
  25713. ( exit $ac_status )
  25714. libopts_cv_run_strftime=no
  25715. fi
  25716. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25717. fi # end of TRY_RUN
  25718. fi
  25719. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  25720. echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  25721. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
  25722. if test "X${libopts_cv_run_strftime}" != Xno
  25723. then
  25724. cat >>confdefs.h <<\_ACEOF
  25725. #define HAVE_STRFTIME 1
  25726. _ACEOF
  25727. fi
  25728. # Check to see if fopen accepts "b" mode.
  25729. echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  25730. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
  25731. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  25732. echo $ECHO_N "(cached) $ECHO_C" >&6
  25733. else
  25734. if test "$cross_compiling" = yes; then
  25735. libopts_cv_run_fopen_binary=no
  25736. else
  25737. cat >conftest.$ac_ext <<_ACEOF
  25738. /* confdefs.h. */
  25739. _ACEOF
  25740. cat confdefs.h >>conftest.$ac_ext
  25741. cat >>conftest.$ac_ext <<_ACEOF
  25742. /* end confdefs.h. */
  25743. #include <stdio.h>
  25744. int main (int argc, char** argv) {
  25745. FILE* fp = fopen("conftest.$ac_ext", "rb");
  25746. return (fp == NULL) ? 1 : fclose(fp); }
  25747. _ACEOF
  25748. rm -f conftest$ac_exeext
  25749. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25750. (eval $ac_link) 2>&5
  25751. ac_status=$?
  25752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25753. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25755. (eval $ac_try) 2>&5
  25756. ac_status=$?
  25757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25758. (exit $ac_status); }; }; then
  25759. libopts_cv_run_fopen_binary=yes
  25760. else
  25761. echo "$as_me: program exited with status $ac_status" >&5
  25762. echo "$as_me: failed program was:" >&5
  25763. sed 's/^/| /' conftest.$ac_ext >&5
  25764. ( exit $ac_status )
  25765. libopts_cv_run_fopen_binary=no
  25766. fi
  25767. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25768. fi # end of TRY_RUN
  25769. fi
  25770. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  25771. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  25772. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
  25773. if test "X${libopts_cv_run_fopen_binary}" != Xno
  25774. then
  25775. cat >>confdefs.h <<\_ACEOF
  25776. #define FOPEN_BINARY_FLAG "b"
  25777. _ACEOF
  25778. else
  25779. cat >>confdefs.h <<\_ACEOF
  25780. #define FOPEN_BINARY_FLAG ""
  25781. _ACEOF
  25782. fi
  25783. # Check to see if fopen accepts "t" mode.
  25784. echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  25785. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
  25786. if test "${libopts_cv_run_fopen_text+set}" = set; then
  25787. echo $ECHO_N "(cached) $ECHO_C" >&6
  25788. else
  25789. if test "$cross_compiling" = yes; then
  25790. libopts_cv_run_fopen_text=no
  25791. else
  25792. cat >conftest.$ac_ext <<_ACEOF
  25793. /* confdefs.h. */
  25794. _ACEOF
  25795. cat confdefs.h >>conftest.$ac_ext
  25796. cat >>conftest.$ac_ext <<_ACEOF
  25797. /* end confdefs.h. */
  25798. #include <stdio.h>
  25799. int main (int argc, char** argv) {
  25800. FILE* fp = fopen("conftest.$ac_ext", "rt");
  25801. return (fp == NULL) ? 1 : fclose(fp); }
  25802. _ACEOF
  25803. rm -f conftest$ac_exeext
  25804. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25805. (eval $ac_link) 2>&5
  25806. ac_status=$?
  25807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25808. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25810. (eval $ac_try) 2>&5
  25811. ac_status=$?
  25812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25813. (exit $ac_status); }; }; then
  25814. libopts_cv_run_fopen_text=yes
  25815. else
  25816. echo "$as_me: program exited with status $ac_status" >&5
  25817. echo "$as_me: failed program was:" >&5
  25818. sed 's/^/| /' conftest.$ac_ext >&5
  25819. ( exit $ac_status )
  25820. libopts_cv_run_fopen_text=no
  25821. fi
  25822. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25823. fi # end of TRY_RUN
  25824. fi
  25825. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  25826. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  25827. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
  25828. if test "X${libopts_cv_run_fopen_text}" != Xno
  25829. then
  25830. cat >>confdefs.h <<\_ACEOF
  25831. #define FOPEN_TEXT_FLAG "t"
  25832. _ACEOF
  25833. else
  25834. cat >>confdefs.h <<\_ACEOF
  25835. #define FOPEN_TEXT_FLAG ""
  25836. _ACEOF
  25837. fi
  25838. # ----------------------------------------------------------------------
  25839. # Check for standard headers.
  25840. # ----------------------------------------------------------------------
  25841. # =================
  25842. # AC_HEADER_STDC
  25843. # =================
  25844. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  25845. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  25846. if test "${ac_cv_header_stdc+set}" = set; then
  25847. echo $ECHO_N "(cached) $ECHO_C" >&6
  25848. else
  25849. cat >conftest.$ac_ext <<_ACEOF
  25850. /* confdefs.h. */
  25851. _ACEOF
  25852. cat confdefs.h >>conftest.$ac_ext
  25853. cat >>conftest.$ac_ext <<_ACEOF
  25854. /* end confdefs.h. */
  25855. #include <stdlib.h>
  25856. #include <stdarg.h>
  25857. #include <string.h>
  25858. #include <float.h>
  25859. int
  25860. main ()
  25861. {
  25862. ;
  25863. return 0;
  25864. }
  25865. _ACEOF
  25866. rm -f conftest.$ac_objext
  25867. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25868. (eval $ac_compile) 2>conftest.er1
  25869. ac_status=$?
  25870. grep -v '^ *+' conftest.er1 >conftest.err
  25871. rm -f conftest.er1
  25872. cat conftest.err >&5
  25873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25874. (exit $ac_status); } &&
  25875. { ac_try='test -z "$ac_c_werror_flag"
  25876. || test ! -s conftest.err'
  25877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25878. (eval $ac_try) 2>&5
  25879. ac_status=$?
  25880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25881. (exit $ac_status); }; } &&
  25882. { ac_try='test -s conftest.$ac_objext'
  25883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25884. (eval $ac_try) 2>&5
  25885. ac_status=$?
  25886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25887. (exit $ac_status); }; }; then
  25888. ac_cv_header_stdc=yes
  25889. else
  25890. echo "$as_me: failed program was:" >&5
  25891. sed 's/^/| /' conftest.$ac_ext >&5
  25892. ac_cv_header_stdc=no
  25893. fi
  25894. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25895. if test $ac_cv_header_stdc = yes; then
  25896. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  25897. cat >conftest.$ac_ext <<_ACEOF
  25898. /* confdefs.h. */
  25899. _ACEOF
  25900. cat confdefs.h >>conftest.$ac_ext
  25901. cat >>conftest.$ac_ext <<_ACEOF
  25902. /* end confdefs.h. */
  25903. #include <string.h>
  25904. _ACEOF
  25905. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25906. $EGREP "memchr" >/dev/null 2>&1; then
  25907. :
  25908. else
  25909. ac_cv_header_stdc=no
  25910. fi
  25911. rm -f conftest*
  25912. fi
  25913. if test $ac_cv_header_stdc = yes; then
  25914. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  25915. cat >conftest.$ac_ext <<_ACEOF
  25916. /* confdefs.h. */
  25917. _ACEOF
  25918. cat confdefs.h >>conftest.$ac_ext
  25919. cat >>conftest.$ac_ext <<_ACEOF
  25920. /* end confdefs.h. */
  25921. #include <stdlib.h>
  25922. _ACEOF
  25923. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25924. $EGREP "free" >/dev/null 2>&1; then
  25925. :
  25926. else
  25927. ac_cv_header_stdc=no
  25928. fi
  25929. rm -f conftest*
  25930. fi
  25931. if test $ac_cv_header_stdc = yes; then
  25932. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  25933. if test "$cross_compiling" = yes; then
  25934. :
  25935. else
  25936. cat >conftest.$ac_ext <<_ACEOF
  25937. /* confdefs.h. */
  25938. _ACEOF
  25939. cat confdefs.h >>conftest.$ac_ext
  25940. cat >>conftest.$ac_ext <<_ACEOF
  25941. /* end confdefs.h. */
  25942. #include <ctype.h>
  25943. #if ((' ' & 0x0FF) == 0x020)
  25944. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  25945. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  25946. #else
  25947. # define ISLOWER(c) \
  25948. (('a' <= (c) && (c) <= 'i') \
  25949. || ('j' <= (c) && (c) <= 'r') \
  25950. || ('s' <= (c) && (c) <= 'z'))
  25951. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  25952. #endif
  25953. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  25954. int
  25955. main ()
  25956. {
  25957. int i;
  25958. for (i = 0; i < 256; i++)
  25959. if (XOR (islower (i), ISLOWER (i))
  25960. || toupper (i) != TOUPPER (i))
  25961. exit(2);
  25962. exit (0);
  25963. }
  25964. _ACEOF
  25965. rm -f conftest$ac_exeext
  25966. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25967. (eval $ac_link) 2>&5
  25968. ac_status=$?
  25969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25970. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25972. (eval $ac_try) 2>&5
  25973. ac_status=$?
  25974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25975. (exit $ac_status); }; }; then
  25976. :
  25977. else
  25978. echo "$as_me: program exited with status $ac_status" >&5
  25979. echo "$as_me: failed program was:" >&5
  25980. sed 's/^/| /' conftest.$ac_ext >&5
  25981. ( exit $ac_status )
  25982. ac_cv_header_stdc=no
  25983. fi
  25984. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25985. fi
  25986. fi
  25987. fi
  25988. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  25989. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  25990. if test $ac_cv_header_stdc = yes; then
  25991. cat >>confdefs.h <<\_ACEOF
  25992. #define STDC_HEADERS 1
  25993. _ACEOF
  25994. fi
  25995. # =================
  25996. # AC_HEADER_DIRENT
  25997. # =================
  25998. ac_header_dirent=no
  25999. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  26000. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  26001. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  26002. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  26003. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26004. echo $ECHO_N "(cached) $ECHO_C" >&6
  26005. else
  26006. cat >conftest.$ac_ext <<_ACEOF
  26007. /* confdefs.h. */
  26008. _ACEOF
  26009. cat confdefs.h >>conftest.$ac_ext
  26010. cat >>conftest.$ac_ext <<_ACEOF
  26011. /* end confdefs.h. */
  26012. #include <sys/types.h>
  26013. #include <$ac_hdr>
  26014. int
  26015. main ()
  26016. {
  26017. if ((DIR *) 0)
  26018. return 0;
  26019. ;
  26020. return 0;
  26021. }
  26022. _ACEOF
  26023. rm -f conftest.$ac_objext
  26024. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26025. (eval $ac_compile) 2>conftest.er1
  26026. ac_status=$?
  26027. grep -v '^ *+' conftest.er1 >conftest.err
  26028. rm -f conftest.er1
  26029. cat conftest.err >&5
  26030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26031. (exit $ac_status); } &&
  26032. { ac_try='test -z "$ac_c_werror_flag"
  26033. || test ! -s conftest.err'
  26034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26035. (eval $ac_try) 2>&5
  26036. ac_status=$?
  26037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26038. (exit $ac_status); }; } &&
  26039. { ac_try='test -s conftest.$ac_objext'
  26040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26041. (eval $ac_try) 2>&5
  26042. ac_status=$?
  26043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26044. (exit $ac_status); }; }; then
  26045. eval "$as_ac_Header=yes"
  26046. else
  26047. echo "$as_me: failed program was:" >&5
  26048. sed 's/^/| /' conftest.$ac_ext >&5
  26049. eval "$as_ac_Header=no"
  26050. fi
  26051. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26052. fi
  26053. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26054. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26055. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26056. cat >>confdefs.h <<_ACEOF
  26057. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  26058. _ACEOF
  26059. ac_header_dirent=$ac_hdr; break
  26060. fi
  26061. done
  26062. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  26063. if test $ac_header_dirent = dirent.h; then
  26064. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  26065. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  26066. if test "${ac_cv_search_opendir+set}" = set; then
  26067. echo $ECHO_N "(cached) $ECHO_C" >&6
  26068. else
  26069. ac_func_search_save_LIBS=$LIBS
  26070. ac_cv_search_opendir=no
  26071. cat >conftest.$ac_ext <<_ACEOF
  26072. /* confdefs.h. */
  26073. _ACEOF
  26074. cat confdefs.h >>conftest.$ac_ext
  26075. cat >>conftest.$ac_ext <<_ACEOF
  26076. /* end confdefs.h. */
  26077. /* Override any gcc2 internal prototype to avoid an error. */
  26078. #ifdef __cplusplus
  26079. extern "C"
  26080. #endif
  26081. /* We use char because int might match the return type of a gcc2
  26082. builtin and then its argument prototype would still apply. */
  26083. char opendir ();
  26084. int
  26085. main ()
  26086. {
  26087. opendir ();
  26088. ;
  26089. return 0;
  26090. }
  26091. _ACEOF
  26092. rm -f conftest.$ac_objext conftest$ac_exeext
  26093. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26094. (eval $ac_link) 2>conftest.er1
  26095. ac_status=$?
  26096. grep -v '^ *+' conftest.er1 >conftest.err
  26097. rm -f conftest.er1
  26098. cat conftest.err >&5
  26099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26100. (exit $ac_status); } &&
  26101. { ac_try='test -z "$ac_c_werror_flag"
  26102. || test ! -s conftest.err'
  26103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26104. (eval $ac_try) 2>&5
  26105. ac_status=$?
  26106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26107. (exit $ac_status); }; } &&
  26108. { ac_try='test -s conftest$ac_exeext'
  26109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26110. (eval $ac_try) 2>&5
  26111. ac_status=$?
  26112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26113. (exit $ac_status); }; }; then
  26114. ac_cv_search_opendir="none required"
  26115. else
  26116. echo "$as_me: failed program was:" >&5
  26117. sed 's/^/| /' conftest.$ac_ext >&5
  26118. fi
  26119. rm -f conftest.err conftest.$ac_objext \
  26120. conftest$ac_exeext conftest.$ac_ext
  26121. if test "$ac_cv_search_opendir" = no; then
  26122. for ac_lib in dir; do
  26123. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  26124. cat >conftest.$ac_ext <<_ACEOF
  26125. /* confdefs.h. */
  26126. _ACEOF
  26127. cat confdefs.h >>conftest.$ac_ext
  26128. cat >>conftest.$ac_ext <<_ACEOF
  26129. /* end confdefs.h. */
  26130. /* Override any gcc2 internal prototype to avoid an error. */
  26131. #ifdef __cplusplus
  26132. extern "C"
  26133. #endif
  26134. /* We use char because int might match the return type of a gcc2
  26135. builtin and then its argument prototype would still apply. */
  26136. char opendir ();
  26137. int
  26138. main ()
  26139. {
  26140. opendir ();
  26141. ;
  26142. return 0;
  26143. }
  26144. _ACEOF
  26145. rm -f conftest.$ac_objext conftest$ac_exeext
  26146. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26147. (eval $ac_link) 2>conftest.er1
  26148. ac_status=$?
  26149. grep -v '^ *+' conftest.er1 >conftest.err
  26150. rm -f conftest.er1
  26151. cat conftest.err >&5
  26152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26153. (exit $ac_status); } &&
  26154. { ac_try='test -z "$ac_c_werror_flag"
  26155. || test ! -s conftest.err'
  26156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26157. (eval $ac_try) 2>&5
  26158. ac_status=$?
  26159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26160. (exit $ac_status); }; } &&
  26161. { ac_try='test -s conftest$ac_exeext'
  26162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26163. (eval $ac_try) 2>&5
  26164. ac_status=$?
  26165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26166. (exit $ac_status); }; }; then
  26167. ac_cv_search_opendir="-l$ac_lib"
  26168. break
  26169. else
  26170. echo "$as_me: failed program was:" >&5
  26171. sed 's/^/| /' conftest.$ac_ext >&5
  26172. fi
  26173. rm -f conftest.err conftest.$ac_objext \
  26174. conftest$ac_exeext conftest.$ac_ext
  26175. done
  26176. fi
  26177. LIBS=$ac_func_search_save_LIBS
  26178. fi
  26179. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  26180. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  26181. if test "$ac_cv_search_opendir" != no; then
  26182. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  26183. fi
  26184. else
  26185. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  26186. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  26187. if test "${ac_cv_search_opendir+set}" = set; then
  26188. echo $ECHO_N "(cached) $ECHO_C" >&6
  26189. else
  26190. ac_func_search_save_LIBS=$LIBS
  26191. ac_cv_search_opendir=no
  26192. cat >conftest.$ac_ext <<_ACEOF
  26193. /* confdefs.h. */
  26194. _ACEOF
  26195. cat confdefs.h >>conftest.$ac_ext
  26196. cat >>conftest.$ac_ext <<_ACEOF
  26197. /* end confdefs.h. */
  26198. /* Override any gcc2 internal prototype to avoid an error. */
  26199. #ifdef __cplusplus
  26200. extern "C"
  26201. #endif
  26202. /* We use char because int might match the return type of a gcc2
  26203. builtin and then its argument prototype would still apply. */
  26204. char opendir ();
  26205. int
  26206. main ()
  26207. {
  26208. opendir ();
  26209. ;
  26210. return 0;
  26211. }
  26212. _ACEOF
  26213. rm -f conftest.$ac_objext conftest$ac_exeext
  26214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26215. (eval $ac_link) 2>conftest.er1
  26216. ac_status=$?
  26217. grep -v '^ *+' conftest.er1 >conftest.err
  26218. rm -f conftest.er1
  26219. cat conftest.err >&5
  26220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26221. (exit $ac_status); } &&
  26222. { ac_try='test -z "$ac_c_werror_flag"
  26223. || test ! -s conftest.err'
  26224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26225. (eval $ac_try) 2>&5
  26226. ac_status=$?
  26227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26228. (exit $ac_status); }; } &&
  26229. { ac_try='test -s conftest$ac_exeext'
  26230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26231. (eval $ac_try) 2>&5
  26232. ac_status=$?
  26233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26234. (exit $ac_status); }; }; then
  26235. ac_cv_search_opendir="none required"
  26236. else
  26237. echo "$as_me: failed program was:" >&5
  26238. sed 's/^/| /' conftest.$ac_ext >&5
  26239. fi
  26240. rm -f conftest.err conftest.$ac_objext \
  26241. conftest$ac_exeext conftest.$ac_ext
  26242. if test "$ac_cv_search_opendir" = no; then
  26243. for ac_lib in x; do
  26244. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  26245. cat >conftest.$ac_ext <<_ACEOF
  26246. /* confdefs.h. */
  26247. _ACEOF
  26248. cat confdefs.h >>conftest.$ac_ext
  26249. cat >>conftest.$ac_ext <<_ACEOF
  26250. /* end confdefs.h. */
  26251. /* Override any gcc2 internal prototype to avoid an error. */
  26252. #ifdef __cplusplus
  26253. extern "C"
  26254. #endif
  26255. /* We use char because int might match the return type of a gcc2
  26256. builtin and then its argument prototype would still apply. */
  26257. char opendir ();
  26258. int
  26259. main ()
  26260. {
  26261. opendir ();
  26262. ;
  26263. return 0;
  26264. }
  26265. _ACEOF
  26266. rm -f conftest.$ac_objext conftest$ac_exeext
  26267. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26268. (eval $ac_link) 2>conftest.er1
  26269. ac_status=$?
  26270. grep -v '^ *+' conftest.er1 >conftest.err
  26271. rm -f conftest.er1
  26272. cat conftest.err >&5
  26273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26274. (exit $ac_status); } &&
  26275. { ac_try='test -z "$ac_c_werror_flag"
  26276. || test ! -s conftest.err'
  26277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26278. (eval $ac_try) 2>&5
  26279. ac_status=$?
  26280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26281. (exit $ac_status); }; } &&
  26282. { ac_try='test -s conftest$ac_exeext'
  26283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26284. (eval $ac_try) 2>&5
  26285. ac_status=$?
  26286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26287. (exit $ac_status); }; }; then
  26288. ac_cv_search_opendir="-l$ac_lib"
  26289. break
  26290. else
  26291. echo "$as_me: failed program was:" >&5
  26292. sed 's/^/| /' conftest.$ac_ext >&5
  26293. fi
  26294. rm -f conftest.err conftest.$ac_objext \
  26295. conftest$ac_exeext conftest.$ac_ext
  26296. done
  26297. fi
  26298. LIBS=$ac_func_search_save_LIBS
  26299. fi
  26300. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  26301. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  26302. if test "$ac_cv_search_opendir" != no; then
  26303. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  26304. fi
  26305. fi
  26306. # ----------------------------------------------------------------------
  26307. # AC_CHECK_HEADERS Check for list of headers.
  26308. # ----------------------------------------------------------------------
  26309. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  26310. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  26311. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h
  26312. do
  26313. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26314. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26315. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26316. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26317. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26318. echo $ECHO_N "(cached) $ECHO_C" >&6
  26319. fi
  26320. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26321. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26322. else
  26323. # Is the header compilable?
  26324. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26325. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26326. cat >conftest.$ac_ext <<_ACEOF
  26327. /* confdefs.h. */
  26328. _ACEOF
  26329. cat confdefs.h >>conftest.$ac_ext
  26330. cat >>conftest.$ac_ext <<_ACEOF
  26331. /* end confdefs.h. */
  26332. $ac_includes_default
  26333. #include <$ac_header>
  26334. _ACEOF
  26335. rm -f conftest.$ac_objext
  26336. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26337. (eval $ac_compile) 2>conftest.er1
  26338. ac_status=$?
  26339. grep -v '^ *+' conftest.er1 >conftest.err
  26340. rm -f conftest.er1
  26341. cat conftest.err >&5
  26342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26343. (exit $ac_status); } &&
  26344. { ac_try='test -z "$ac_c_werror_flag"
  26345. || test ! -s conftest.err'
  26346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26347. (eval $ac_try) 2>&5
  26348. ac_status=$?
  26349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26350. (exit $ac_status); }; } &&
  26351. { ac_try='test -s conftest.$ac_objext'
  26352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26353. (eval $ac_try) 2>&5
  26354. ac_status=$?
  26355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26356. (exit $ac_status); }; }; then
  26357. ac_header_compiler=yes
  26358. else
  26359. echo "$as_me: failed program was:" >&5
  26360. sed 's/^/| /' conftest.$ac_ext >&5
  26361. ac_header_compiler=no
  26362. fi
  26363. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26364. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26365. echo "${ECHO_T}$ac_header_compiler" >&6
  26366. # Is the header present?
  26367. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26368. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26369. cat >conftest.$ac_ext <<_ACEOF
  26370. /* confdefs.h. */
  26371. _ACEOF
  26372. cat confdefs.h >>conftest.$ac_ext
  26373. cat >>conftest.$ac_ext <<_ACEOF
  26374. /* end confdefs.h. */
  26375. #include <$ac_header>
  26376. _ACEOF
  26377. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26378. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26379. ac_status=$?
  26380. grep -v '^ *+' conftest.er1 >conftest.err
  26381. rm -f conftest.er1
  26382. cat conftest.err >&5
  26383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26384. (exit $ac_status); } >/dev/null; then
  26385. if test -s conftest.err; then
  26386. ac_cpp_err=$ac_c_preproc_warn_flag
  26387. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26388. else
  26389. ac_cpp_err=
  26390. fi
  26391. else
  26392. ac_cpp_err=yes
  26393. fi
  26394. if test -z "$ac_cpp_err"; then
  26395. ac_header_preproc=yes
  26396. else
  26397. echo "$as_me: failed program was:" >&5
  26398. sed 's/^/| /' conftest.$ac_ext >&5
  26399. ac_header_preproc=no
  26400. fi
  26401. rm -f conftest.err conftest.$ac_ext
  26402. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26403. echo "${ECHO_T}$ac_header_preproc" >&6
  26404. # So? What about this header?
  26405. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26406. yes:no: )
  26407. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26408. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26409. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26410. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26411. ac_header_preproc=yes
  26412. ;;
  26413. no:yes:* )
  26414. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26415. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26416. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26417. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26418. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26419. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26420. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26421. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26422. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26423. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26424. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26425. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26426. (
  26427. cat <<\_ASBOX
  26428. ## ------------------------------------------ ##
  26429. ## Report this to the AC_PACKAGE_NAME lists. ##
  26430. ## ------------------------------------------ ##
  26431. _ASBOX
  26432. ) |
  26433. sed "s/^/$as_me: WARNING: /" >&2
  26434. ;;
  26435. esac
  26436. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26437. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26438. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26439. echo $ECHO_N "(cached) $ECHO_C" >&6
  26440. else
  26441. eval "$as_ac_Header=\$ac_header_preproc"
  26442. fi
  26443. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26444. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26445. fi
  26446. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26447. cat >>confdefs.h <<_ACEOF
  26448. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26449. _ACEOF
  26450. fi
  26451. done
  26452. # --------------------------------------------
  26453. # Verify certain entries from AC_CHECK_HEADERS
  26454. # --------------------------------------------
  26455. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  26456. string errno stdlib memory setjmp
  26457. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  26458. test "${as_ac_var}" = set || \
  26459. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  26460. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  26461. { (exit 1); exit 1; }; }
  26462. done
  26463. # =================
  26464. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  26465. # if varargs.h is present define HAVE_VARARGS_H.
  26466. # =================
  26467. for ac_header in stdarg.h varargs.h
  26468. do
  26469. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26470. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26471. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26472. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26473. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26474. echo $ECHO_N "(cached) $ECHO_C" >&6
  26475. fi
  26476. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26477. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26478. else
  26479. # Is the header compilable?
  26480. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26481. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26482. cat >conftest.$ac_ext <<_ACEOF
  26483. /* confdefs.h. */
  26484. _ACEOF
  26485. cat confdefs.h >>conftest.$ac_ext
  26486. cat >>conftest.$ac_ext <<_ACEOF
  26487. /* end confdefs.h. */
  26488. $ac_includes_default
  26489. #include <$ac_header>
  26490. _ACEOF
  26491. rm -f conftest.$ac_objext
  26492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26493. (eval $ac_compile) 2>conftest.er1
  26494. ac_status=$?
  26495. grep -v '^ *+' conftest.er1 >conftest.err
  26496. rm -f conftest.er1
  26497. cat conftest.err >&5
  26498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26499. (exit $ac_status); } &&
  26500. { ac_try='test -z "$ac_c_werror_flag"
  26501. || test ! -s conftest.err'
  26502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26503. (eval $ac_try) 2>&5
  26504. ac_status=$?
  26505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26506. (exit $ac_status); }; } &&
  26507. { ac_try='test -s conftest.$ac_objext'
  26508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26509. (eval $ac_try) 2>&5
  26510. ac_status=$?
  26511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26512. (exit $ac_status); }; }; then
  26513. ac_header_compiler=yes
  26514. else
  26515. echo "$as_me: failed program was:" >&5
  26516. sed 's/^/| /' conftest.$ac_ext >&5
  26517. ac_header_compiler=no
  26518. fi
  26519. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26520. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26521. echo "${ECHO_T}$ac_header_compiler" >&6
  26522. # Is the header present?
  26523. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26524. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26525. cat >conftest.$ac_ext <<_ACEOF
  26526. /* confdefs.h. */
  26527. _ACEOF
  26528. cat confdefs.h >>conftest.$ac_ext
  26529. cat >>conftest.$ac_ext <<_ACEOF
  26530. /* end confdefs.h. */
  26531. #include <$ac_header>
  26532. _ACEOF
  26533. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26534. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26535. ac_status=$?
  26536. grep -v '^ *+' conftest.er1 >conftest.err
  26537. rm -f conftest.er1
  26538. cat conftest.err >&5
  26539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26540. (exit $ac_status); } >/dev/null; then
  26541. if test -s conftest.err; then
  26542. ac_cpp_err=$ac_c_preproc_warn_flag
  26543. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26544. else
  26545. ac_cpp_err=
  26546. fi
  26547. else
  26548. ac_cpp_err=yes
  26549. fi
  26550. if test -z "$ac_cpp_err"; then
  26551. ac_header_preproc=yes
  26552. else
  26553. echo "$as_me: failed program was:" >&5
  26554. sed 's/^/| /' conftest.$ac_ext >&5
  26555. ac_header_preproc=no
  26556. fi
  26557. rm -f conftest.err conftest.$ac_ext
  26558. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26559. echo "${ECHO_T}$ac_header_preproc" >&6
  26560. # So? What about this header?
  26561. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26562. yes:no: )
  26563. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26564. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26565. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26566. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26567. ac_header_preproc=yes
  26568. ;;
  26569. no:yes:* )
  26570. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26571. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26572. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26573. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26574. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26575. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26576. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26577. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26578. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26579. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26580. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26581. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26582. (
  26583. cat <<\_ASBOX
  26584. ## ------------------------------------------ ##
  26585. ## Report this to the AC_PACKAGE_NAME lists. ##
  26586. ## ------------------------------------------ ##
  26587. _ASBOX
  26588. ) |
  26589. sed "s/^/$as_me: WARNING: /" >&2
  26590. ;;
  26591. esac
  26592. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26593. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26594. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26595. echo $ECHO_N "(cached) $ECHO_C" >&6
  26596. else
  26597. eval "$as_ac_Header=\$ac_header_preproc"
  26598. fi
  26599. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26600. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26601. fi
  26602. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26603. cat >>confdefs.h <<_ACEOF
  26604. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26605. _ACEOF
  26606. break
  26607. fi
  26608. done
  26609. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  26610. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  26611. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  26612. { (exit 1); exit 1; }; }
  26613. fi
  26614. # =================
  26615. # Similarly for the string.h and strings.h headers
  26616. # =================
  26617. for ac_header in string.h strings.h
  26618. do
  26619. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26620. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26621. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26622. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26623. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26624. echo $ECHO_N "(cached) $ECHO_C" >&6
  26625. fi
  26626. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26627. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26628. else
  26629. # Is the header compilable?
  26630. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26631. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26632. cat >conftest.$ac_ext <<_ACEOF
  26633. /* confdefs.h. */
  26634. _ACEOF
  26635. cat confdefs.h >>conftest.$ac_ext
  26636. cat >>conftest.$ac_ext <<_ACEOF
  26637. /* end confdefs.h. */
  26638. $ac_includes_default
  26639. #include <$ac_header>
  26640. _ACEOF
  26641. rm -f conftest.$ac_objext
  26642. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26643. (eval $ac_compile) 2>conftest.er1
  26644. ac_status=$?
  26645. grep -v '^ *+' conftest.er1 >conftest.err
  26646. rm -f conftest.er1
  26647. cat conftest.err >&5
  26648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26649. (exit $ac_status); } &&
  26650. { ac_try='test -z "$ac_c_werror_flag"
  26651. || test ! -s conftest.err'
  26652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26653. (eval $ac_try) 2>&5
  26654. ac_status=$?
  26655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26656. (exit $ac_status); }; } &&
  26657. { ac_try='test -s conftest.$ac_objext'
  26658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26659. (eval $ac_try) 2>&5
  26660. ac_status=$?
  26661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26662. (exit $ac_status); }; }; then
  26663. ac_header_compiler=yes
  26664. else
  26665. echo "$as_me: failed program was:" >&5
  26666. sed 's/^/| /' conftest.$ac_ext >&5
  26667. ac_header_compiler=no
  26668. fi
  26669. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26670. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26671. echo "${ECHO_T}$ac_header_compiler" >&6
  26672. # Is the header present?
  26673. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26674. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26675. cat >conftest.$ac_ext <<_ACEOF
  26676. /* confdefs.h. */
  26677. _ACEOF
  26678. cat confdefs.h >>conftest.$ac_ext
  26679. cat >>conftest.$ac_ext <<_ACEOF
  26680. /* end confdefs.h. */
  26681. #include <$ac_header>
  26682. _ACEOF
  26683. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26684. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26685. ac_status=$?
  26686. grep -v '^ *+' conftest.er1 >conftest.err
  26687. rm -f conftest.er1
  26688. cat conftest.err >&5
  26689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26690. (exit $ac_status); } >/dev/null; then
  26691. if test -s conftest.err; then
  26692. ac_cpp_err=$ac_c_preproc_warn_flag
  26693. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26694. else
  26695. ac_cpp_err=
  26696. fi
  26697. else
  26698. ac_cpp_err=yes
  26699. fi
  26700. if test -z "$ac_cpp_err"; then
  26701. ac_header_preproc=yes
  26702. else
  26703. echo "$as_me: failed program was:" >&5
  26704. sed 's/^/| /' conftest.$ac_ext >&5
  26705. ac_header_preproc=no
  26706. fi
  26707. rm -f conftest.err conftest.$ac_ext
  26708. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26709. echo "${ECHO_T}$ac_header_preproc" >&6
  26710. # So? What about this header?
  26711. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26712. yes:no: )
  26713. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26714. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26715. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26716. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26717. ac_header_preproc=yes
  26718. ;;
  26719. no:yes:* )
  26720. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26721. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26722. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26723. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26724. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26725. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26726. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26727. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26728. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26729. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26730. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26731. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26732. (
  26733. cat <<\_ASBOX
  26734. ## ------------------------------------------ ##
  26735. ## Report this to the AC_PACKAGE_NAME lists. ##
  26736. ## ------------------------------------------ ##
  26737. _ASBOX
  26738. ) |
  26739. sed "s/^/$as_me: WARNING: /" >&2
  26740. ;;
  26741. esac
  26742. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26743. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26744. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26745. echo $ECHO_N "(cached) $ECHO_C" >&6
  26746. else
  26747. eval "$as_ac_Header=\$ac_header_preproc"
  26748. fi
  26749. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26750. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26751. fi
  26752. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26753. cat >>confdefs.h <<_ACEOF
  26754. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26755. _ACEOF
  26756. break
  26757. fi
  26758. done
  26759. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  26760. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  26761. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  26762. { (exit 1); exit 1; }; }
  26763. fi
  26764. # =================
  26765. # ...and limits headers
  26766. # =================
  26767. for ac_header in limits.h sys/limits.h values.h
  26768. do
  26769. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26770. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26771. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26772. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26773. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26774. echo $ECHO_N "(cached) $ECHO_C" >&6
  26775. fi
  26776. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26777. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26778. else
  26779. # Is the header compilable?
  26780. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26781. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26782. cat >conftest.$ac_ext <<_ACEOF
  26783. /* confdefs.h. */
  26784. _ACEOF
  26785. cat confdefs.h >>conftest.$ac_ext
  26786. cat >>conftest.$ac_ext <<_ACEOF
  26787. /* end confdefs.h. */
  26788. $ac_includes_default
  26789. #include <$ac_header>
  26790. _ACEOF
  26791. rm -f conftest.$ac_objext
  26792. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26793. (eval $ac_compile) 2>conftest.er1
  26794. ac_status=$?
  26795. grep -v '^ *+' conftest.er1 >conftest.err
  26796. rm -f conftest.er1
  26797. cat conftest.err >&5
  26798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26799. (exit $ac_status); } &&
  26800. { ac_try='test -z "$ac_c_werror_flag"
  26801. || test ! -s conftest.err'
  26802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26803. (eval $ac_try) 2>&5
  26804. ac_status=$?
  26805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26806. (exit $ac_status); }; } &&
  26807. { ac_try='test -s conftest.$ac_objext'
  26808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26809. (eval $ac_try) 2>&5
  26810. ac_status=$?
  26811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26812. (exit $ac_status); }; }; then
  26813. ac_header_compiler=yes
  26814. else
  26815. echo "$as_me: failed program was:" >&5
  26816. sed 's/^/| /' conftest.$ac_ext >&5
  26817. ac_header_compiler=no
  26818. fi
  26819. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26820. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26821. echo "${ECHO_T}$ac_header_compiler" >&6
  26822. # Is the header present?
  26823. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26824. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26825. cat >conftest.$ac_ext <<_ACEOF
  26826. /* confdefs.h. */
  26827. _ACEOF
  26828. cat confdefs.h >>conftest.$ac_ext
  26829. cat >>conftest.$ac_ext <<_ACEOF
  26830. /* end confdefs.h. */
  26831. #include <$ac_header>
  26832. _ACEOF
  26833. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26834. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26835. ac_status=$?
  26836. grep -v '^ *+' conftest.er1 >conftest.err
  26837. rm -f conftest.er1
  26838. cat conftest.err >&5
  26839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26840. (exit $ac_status); } >/dev/null; then
  26841. if test -s conftest.err; then
  26842. ac_cpp_err=$ac_c_preproc_warn_flag
  26843. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26844. else
  26845. ac_cpp_err=
  26846. fi
  26847. else
  26848. ac_cpp_err=yes
  26849. fi
  26850. if test -z "$ac_cpp_err"; then
  26851. ac_header_preproc=yes
  26852. else
  26853. echo "$as_me: failed program was:" >&5
  26854. sed 's/^/| /' conftest.$ac_ext >&5
  26855. ac_header_preproc=no
  26856. fi
  26857. rm -f conftest.err conftest.$ac_ext
  26858. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26859. echo "${ECHO_T}$ac_header_preproc" >&6
  26860. # So? What about this header?
  26861. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26862. yes:no: )
  26863. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26864. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26865. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26866. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26867. ac_header_preproc=yes
  26868. ;;
  26869. no:yes:* )
  26870. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26871. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26872. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26873. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26874. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26875. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26876. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26877. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26878. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26879. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26880. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26881. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26882. (
  26883. cat <<\_ASBOX
  26884. ## ------------------------------------------ ##
  26885. ## Report this to the AC_PACKAGE_NAME lists. ##
  26886. ## ------------------------------------------ ##
  26887. _ASBOX
  26888. ) |
  26889. sed "s/^/$as_me: WARNING: /" >&2
  26890. ;;
  26891. esac
  26892. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26893. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26894. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26895. echo $ECHO_N "(cached) $ECHO_C" >&6
  26896. else
  26897. eval "$as_ac_Header=\$ac_header_preproc"
  26898. fi
  26899. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26900. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26901. fi
  26902. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26903. cat >>confdefs.h <<_ACEOF
  26904. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26905. _ACEOF
  26906. break
  26907. fi
  26908. done
  26909. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  26910. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  26911. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  26912. { (exit 1); exit 1; }; }
  26913. fi
  26914. # =================
  26915. # ...and int types headers
  26916. # =================
  26917. for ac_header in stdint.h inttypes.h
  26918. do
  26919. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26920. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26921. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26922. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26923. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26924. echo $ECHO_N "(cached) $ECHO_C" >&6
  26925. fi
  26926. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26927. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26928. else
  26929. # Is the header compilable?
  26930. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26931. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26932. cat >conftest.$ac_ext <<_ACEOF
  26933. /* confdefs.h. */
  26934. _ACEOF
  26935. cat confdefs.h >>conftest.$ac_ext
  26936. cat >>conftest.$ac_ext <<_ACEOF
  26937. /* end confdefs.h. */
  26938. $ac_includes_default
  26939. #include <$ac_header>
  26940. _ACEOF
  26941. rm -f conftest.$ac_objext
  26942. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26943. (eval $ac_compile) 2>conftest.er1
  26944. ac_status=$?
  26945. grep -v '^ *+' conftest.er1 >conftest.err
  26946. rm -f conftest.er1
  26947. cat conftest.err >&5
  26948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26949. (exit $ac_status); } &&
  26950. { ac_try='test -z "$ac_c_werror_flag"
  26951. || test ! -s conftest.err'
  26952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26953. (eval $ac_try) 2>&5
  26954. ac_status=$?
  26955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26956. (exit $ac_status); }; } &&
  26957. { ac_try='test -s conftest.$ac_objext'
  26958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26959. (eval $ac_try) 2>&5
  26960. ac_status=$?
  26961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26962. (exit $ac_status); }; }; then
  26963. ac_header_compiler=yes
  26964. else
  26965. echo "$as_me: failed program was:" >&5
  26966. sed 's/^/| /' conftest.$ac_ext >&5
  26967. ac_header_compiler=no
  26968. fi
  26969. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26970. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26971. echo "${ECHO_T}$ac_header_compiler" >&6
  26972. # Is the header present?
  26973. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26974. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26975. cat >conftest.$ac_ext <<_ACEOF
  26976. /* confdefs.h. */
  26977. _ACEOF
  26978. cat confdefs.h >>conftest.$ac_ext
  26979. cat >>conftest.$ac_ext <<_ACEOF
  26980. /* end confdefs.h. */
  26981. #include <$ac_header>
  26982. _ACEOF
  26983. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26984. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26985. ac_status=$?
  26986. grep -v '^ *+' conftest.er1 >conftest.err
  26987. rm -f conftest.er1
  26988. cat conftest.err >&5
  26989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26990. (exit $ac_status); } >/dev/null; then
  26991. if test -s conftest.err; then
  26992. ac_cpp_err=$ac_c_preproc_warn_flag
  26993. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26994. else
  26995. ac_cpp_err=
  26996. fi
  26997. else
  26998. ac_cpp_err=yes
  26999. fi
  27000. if test -z "$ac_cpp_err"; then
  27001. ac_header_preproc=yes
  27002. else
  27003. echo "$as_me: failed program was:" >&5
  27004. sed 's/^/| /' conftest.$ac_ext >&5
  27005. ac_header_preproc=no
  27006. fi
  27007. rm -f conftest.err conftest.$ac_ext
  27008. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27009. echo "${ECHO_T}$ac_header_preproc" >&6
  27010. # So? What about this header?
  27011. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27012. yes:no: )
  27013. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27014. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27015. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27016. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27017. ac_header_preproc=yes
  27018. ;;
  27019. no:yes:* )
  27020. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27021. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27022. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27023. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27024. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27025. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27026. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27027. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27028. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27029. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27030. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27031. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27032. (
  27033. cat <<\_ASBOX
  27034. ## ------------------------------------------ ##
  27035. ## Report this to the AC_PACKAGE_NAME lists. ##
  27036. ## ------------------------------------------ ##
  27037. _ASBOX
  27038. ) |
  27039. sed "s/^/$as_me: WARNING: /" >&2
  27040. ;;
  27041. esac
  27042. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27043. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27044. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27045. echo $ECHO_N "(cached) $ECHO_C" >&6
  27046. else
  27047. eval "$as_ac_Header=\$ac_header_preproc"
  27048. fi
  27049. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27050. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27051. fi
  27052. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27053. cat >>confdefs.h <<_ACEOF
  27054. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27055. _ACEOF
  27056. break
  27057. fi
  27058. done
  27059. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  27060. { { echo "$as_me:$LINENO: error: You must have stdint.h or inttypes.h on your system" >&5
  27061. echo "$as_me: error: You must have stdint.h or inttypes.h on your system" >&2;}
  27062. { (exit 1); exit 1; }; }
  27063. fi
  27064. # =================
  27065. # ...and directory read headers
  27066. # =================
  27067. for ac_header in dirent.h ndir.h sys/ndir.h
  27068. do
  27069. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27070. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27071. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27072. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27073. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27074. echo $ECHO_N "(cached) $ECHO_C" >&6
  27075. fi
  27076. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27077. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27078. else
  27079. # Is the header compilable?
  27080. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27081. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  27082. cat >conftest.$ac_ext <<_ACEOF
  27083. /* confdefs.h. */
  27084. _ACEOF
  27085. cat confdefs.h >>conftest.$ac_ext
  27086. cat >>conftest.$ac_ext <<_ACEOF
  27087. /* end confdefs.h. */
  27088. $ac_includes_default
  27089. #include <$ac_header>
  27090. _ACEOF
  27091. rm -f conftest.$ac_objext
  27092. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27093. (eval $ac_compile) 2>conftest.er1
  27094. ac_status=$?
  27095. grep -v '^ *+' conftest.er1 >conftest.err
  27096. rm -f conftest.er1
  27097. cat conftest.err >&5
  27098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27099. (exit $ac_status); } &&
  27100. { ac_try='test -z "$ac_c_werror_flag"
  27101. || test ! -s conftest.err'
  27102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27103. (eval $ac_try) 2>&5
  27104. ac_status=$?
  27105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27106. (exit $ac_status); }; } &&
  27107. { ac_try='test -s conftest.$ac_objext'
  27108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27109. (eval $ac_try) 2>&5
  27110. ac_status=$?
  27111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27112. (exit $ac_status); }; }; then
  27113. ac_header_compiler=yes
  27114. else
  27115. echo "$as_me: failed program was:" >&5
  27116. sed 's/^/| /' conftest.$ac_ext >&5
  27117. ac_header_compiler=no
  27118. fi
  27119. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27120. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27121. echo "${ECHO_T}$ac_header_compiler" >&6
  27122. # Is the header present?
  27123. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27124. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  27125. cat >conftest.$ac_ext <<_ACEOF
  27126. /* confdefs.h. */
  27127. _ACEOF
  27128. cat confdefs.h >>conftest.$ac_ext
  27129. cat >>conftest.$ac_ext <<_ACEOF
  27130. /* end confdefs.h. */
  27131. #include <$ac_header>
  27132. _ACEOF
  27133. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27134. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27135. ac_status=$?
  27136. grep -v '^ *+' conftest.er1 >conftest.err
  27137. rm -f conftest.er1
  27138. cat conftest.err >&5
  27139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27140. (exit $ac_status); } >/dev/null; then
  27141. if test -s conftest.err; then
  27142. ac_cpp_err=$ac_c_preproc_warn_flag
  27143. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27144. else
  27145. ac_cpp_err=
  27146. fi
  27147. else
  27148. ac_cpp_err=yes
  27149. fi
  27150. if test -z "$ac_cpp_err"; then
  27151. ac_header_preproc=yes
  27152. else
  27153. echo "$as_me: failed program was:" >&5
  27154. sed 's/^/| /' conftest.$ac_ext >&5
  27155. ac_header_preproc=no
  27156. fi
  27157. rm -f conftest.err conftest.$ac_ext
  27158. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27159. echo "${ECHO_T}$ac_header_preproc" >&6
  27160. # So? What about this header?
  27161. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27162. yes:no: )
  27163. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27164. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27165. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27166. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27167. ac_header_preproc=yes
  27168. ;;
  27169. no:yes:* )
  27170. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27171. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27172. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27173. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27174. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27175. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27176. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27177. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27178. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27179. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27180. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27181. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27182. (
  27183. cat <<\_ASBOX
  27184. ## ------------------------------------------ ##
  27185. ## Report this to the AC_PACKAGE_NAME lists. ##
  27186. ## ------------------------------------------ ##
  27187. _ASBOX
  27188. ) |
  27189. sed "s/^/$as_me: WARNING: /" >&2
  27190. ;;
  27191. esac
  27192. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27193. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27194. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27195. echo $ECHO_N "(cached) $ECHO_C" >&6
  27196. else
  27197. eval "$as_ac_Header=\$ac_header_preproc"
  27198. fi
  27199. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27200. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27201. fi
  27202. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27203. cat >>confdefs.h <<_ACEOF
  27204. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27205. _ACEOF
  27206. break
  27207. fi
  27208. done
  27209. # ----------------------------------------------------------------------
  27210. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  27211. # ----------------------------------------------------------------------
  27212. echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  27213. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
  27214. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  27215. echo $ECHO_N "(cached) $ECHO_C" >&6
  27216. else
  27217. ac_check_lib_save_LIBS=$LIBS
  27218. LIBS="-lgen $LIBS"
  27219. cat >conftest.$ac_ext <<_ACEOF
  27220. /* confdefs.h. */
  27221. _ACEOF
  27222. cat confdefs.h >>conftest.$ac_ext
  27223. cat >>conftest.$ac_ext <<_ACEOF
  27224. /* end confdefs.h. */
  27225. /* Override any gcc2 internal prototype to avoid an error. */
  27226. #ifdef __cplusplus
  27227. extern "C"
  27228. #endif
  27229. /* We use char because int might match the return type of a gcc2
  27230. builtin and then its argument prototype would still apply. */
  27231. char pathfind ();
  27232. int
  27233. main ()
  27234. {
  27235. pathfind ();
  27236. ;
  27237. return 0;
  27238. }
  27239. _ACEOF
  27240. rm -f conftest.$ac_objext conftest$ac_exeext
  27241. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27242. (eval $ac_link) 2>conftest.er1
  27243. ac_status=$?
  27244. grep -v '^ *+' conftest.er1 >conftest.err
  27245. rm -f conftest.er1
  27246. cat conftest.err >&5
  27247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27248. (exit $ac_status); } &&
  27249. { ac_try='test -z "$ac_c_werror_flag"
  27250. || test ! -s conftest.err'
  27251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27252. (eval $ac_try) 2>&5
  27253. ac_status=$?
  27254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27255. (exit $ac_status); }; } &&
  27256. { ac_try='test -s conftest$ac_exeext'
  27257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27258. (eval $ac_try) 2>&5
  27259. ac_status=$?
  27260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27261. (exit $ac_status); }; }; then
  27262. ac_cv_lib_gen_pathfind=yes
  27263. else
  27264. echo "$as_me: failed program was:" >&5
  27265. sed 's/^/| /' conftest.$ac_ext >&5
  27266. ac_cv_lib_gen_pathfind=no
  27267. fi
  27268. rm -f conftest.err conftest.$ac_objext \
  27269. conftest$ac_exeext conftest.$ac_ext
  27270. LIBS=$ac_check_lib_save_LIBS
  27271. fi
  27272. echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  27273. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
  27274. if test $ac_cv_lib_gen_pathfind = yes; then
  27275. cat >>confdefs.h <<_ACEOF
  27276. #define HAVE_LIBGEN 1
  27277. _ACEOF
  27278. LIBS="-lgen $LIBS"
  27279. fi
  27280. for ac_func in mmap
  27281. do
  27282. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27283. echo "$as_me:$LINENO: checking for $ac_func" >&5
  27284. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  27285. if eval "test \"\${$as_ac_var+set}\" = set"; then
  27286. echo $ECHO_N "(cached) $ECHO_C" >&6
  27287. else
  27288. cat >conftest.$ac_ext <<_ACEOF
  27289. /* confdefs.h. */
  27290. _ACEOF
  27291. cat confdefs.h >>conftest.$ac_ext
  27292. cat >>conftest.$ac_ext <<_ACEOF
  27293. /* end confdefs.h. */
  27294. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27295. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27296. #define $ac_func innocuous_$ac_func
  27297. /* System header to define __stub macros and hopefully few prototypes,
  27298. which can conflict with char $ac_func (); below.
  27299. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27300. <limits.h> exists even on freestanding compilers. */
  27301. #ifdef __STDC__
  27302. # include <limits.h>
  27303. #else
  27304. # include <assert.h>
  27305. #endif
  27306. #undef $ac_func
  27307. /* Override any gcc2 internal prototype to avoid an error. */
  27308. #ifdef __cplusplus
  27309. extern "C"
  27310. {
  27311. #endif
  27312. /* We use char because int might match the return type of a gcc2
  27313. builtin and then its argument prototype would still apply. */
  27314. char $ac_func ();
  27315. /* The GNU C library defines this for functions which it implements
  27316. to always fail with ENOSYS. Some functions are actually named
  27317. something starting with __ and the normal name is an alias. */
  27318. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  27319. choke me
  27320. #else
  27321. char (*f) () = $ac_func;
  27322. #endif
  27323. #ifdef __cplusplus
  27324. }
  27325. #endif
  27326. int
  27327. main ()
  27328. {
  27329. return f != $ac_func;
  27330. ;
  27331. return 0;
  27332. }
  27333. _ACEOF
  27334. rm -f conftest.$ac_objext conftest$ac_exeext
  27335. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27336. (eval $ac_link) 2>conftest.er1
  27337. ac_status=$?
  27338. grep -v '^ *+' conftest.er1 >conftest.err
  27339. rm -f conftest.er1
  27340. cat conftest.err >&5
  27341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27342. (exit $ac_status); } &&
  27343. { ac_try='test -z "$ac_c_werror_flag"
  27344. || test ! -s conftest.err'
  27345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27346. (eval $ac_try) 2>&5
  27347. ac_status=$?
  27348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27349. (exit $ac_status); }; } &&
  27350. { ac_try='test -s conftest$ac_exeext'
  27351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27352. (eval $ac_try) 2>&5
  27353. ac_status=$?
  27354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27355. (exit $ac_status); }; }; then
  27356. eval "$as_ac_var=yes"
  27357. else
  27358. echo "$as_me: failed program was:" >&5
  27359. sed 's/^/| /' conftest.$ac_ext >&5
  27360. eval "$as_ac_var=no"
  27361. fi
  27362. rm -f conftest.err conftest.$ac_objext \
  27363. conftest$ac_exeext conftest.$ac_ext
  27364. fi
  27365. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  27366. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  27367. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27368. cat >>confdefs.h <<_ACEOF
  27369. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27370. _ACEOF
  27371. fi
  27372. done
  27373. NEED_LIBOPTS_DIR=true
  27374. fi
  27375. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  27376. if test -n "${NEED_LIBOPTS_DIR}"; then
  27377. NEED_LIBOPTS_TRUE=
  27378. NEED_LIBOPTS_FALSE='#'
  27379. else
  27380. NEED_LIBOPTS_TRUE='#'
  27381. NEED_LIBOPTS_FALSE=
  27382. fi
  27383. ac_config_files="$ac_config_files libopts/Makefile"
  27384. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/defines.h test/Makefile test/config scripts/Makefile tcpreplay.spec"
  27385. cat >confcache <<\_ACEOF
  27386. # This file is a shell script that caches the results of configure
  27387. # tests run on this system so they can be shared between configure
  27388. # scripts and configure runs, see configure's option --config-cache.
  27389. # It is not useful on other systems. If it contains results you don't
  27390. # want to keep, you may remove or edit it.
  27391. #
  27392. # config.status only pays attention to the cache file if you give it
  27393. # the --recheck option to rerun configure.
  27394. #
  27395. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  27396. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  27397. # following values.
  27398. _ACEOF
  27399. # The following way of writing the cache mishandles newlines in values,
  27400. # but we know of no workaround that is simple, portable, and efficient.
  27401. # So, don't put newlines in cache variables' values.
  27402. # Ultrix sh set writes to stderr and can't be redirected directly,
  27403. # and sets the high bit in the cache file unless we assign to the vars.
  27404. {
  27405. (set) 2>&1 |
  27406. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  27407. *ac_space=\ *)
  27408. # `set' does not quote correctly, so add quotes (double-quote
  27409. # substitution turns \\\\ into \\, and sed turns \\ into \).
  27410. sed -n \
  27411. "s/'/'\\\\''/g;
  27412. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  27413. ;;
  27414. *)
  27415. # `set' quotes correctly as required by POSIX, so do not add quotes.
  27416. sed -n \
  27417. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  27418. ;;
  27419. esac;
  27420. } |
  27421. sed '
  27422. t clear
  27423. : clear
  27424. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  27425. t end
  27426. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  27427. : end' >>confcache
  27428. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  27429. if test -w $cache_file; then
  27430. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  27431. cat confcache >$cache_file
  27432. else
  27433. echo "not updating unwritable cache $cache_file"
  27434. fi
  27435. fi
  27436. rm -f confcache
  27437. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  27438. # Let make expand exec_prefix.
  27439. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  27440. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  27441. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  27442. # trailing colons and then remove the whole line if VPATH becomes empty
  27443. # (actually we leave an empty line to preserve line numbers).
  27444. if test "x$srcdir" = x.; then
  27445. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  27446. s/:*\$(srcdir):*/:/;
  27447. s/:*\${srcdir}:*/:/;
  27448. s/:*@srcdir@:*/:/;
  27449. s/^\([^=]*=[ ]*\):*/\1/;
  27450. s/:*$//;
  27451. s/^[^=]*=[ ]*$//;
  27452. }'
  27453. fi
  27454. DEFS=-DHAVE_CONFIG_H
  27455. ac_libobjs=
  27456. ac_ltlibobjs=
  27457. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  27458. # 1. Remove the extension, and $U if already installed.
  27459. ac_i=`echo "$ac_i" |
  27460. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  27461. # 2. Add them.
  27462. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  27463. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  27464. done
  27465. LIBOBJS=$ac_libobjs
  27466. LTLIBOBJS=$ac_ltlibobjs
  27467. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  27468. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  27469. Usually this means the macro was only invoked conditionally." >&5
  27470. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  27471. Usually this means the macro was only invoked conditionally." >&2;}
  27472. { (exit 1); exit 1; }; }
  27473. fi
  27474. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  27475. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  27476. Usually this means the macro was only invoked conditionally." >&5
  27477. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  27478. Usually this means the macro was only invoked conditionally." >&2;}
  27479. { (exit 1); exit 1; }; }
  27480. fi
  27481. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  27482. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  27483. Usually this means the macro was only invoked conditionally." >&5
  27484. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  27485. Usually this means the macro was only invoked conditionally." >&2;}
  27486. { (exit 1); exit 1; }; }
  27487. fi
  27488. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  27489. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  27490. Usually this means the macro was only invoked conditionally." >&5
  27491. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  27492. Usually this means the macro was only invoked conditionally." >&2;}
  27493. { (exit 1); exit 1; }; }
  27494. fi
  27495. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  27496. { { echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  27497. Usually this means the macro was only invoked conditionally." >&5
  27498. echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  27499. Usually this means the macro was only invoked conditionally." >&2;}
  27500. { (exit 1); exit 1; }; }
  27501. fi
  27502. if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
  27503. { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCTOOLS\" was never defined.
  27504. Usually this means the macro was only invoked conditionally." >&5
  27505. echo "$as_me: error: conditional \"HAVE_DOCTOOLS\" was never defined.
  27506. Usually this means the macro was only invoked conditionally." >&2;}
  27507. { (exit 1); exit 1; }; }
  27508. fi
  27509. if test -z "${HAVE_LIBNIDS_TRUE}" && test -z "${HAVE_LIBNIDS_FALSE}"; then
  27510. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBNIDS\" was never defined.
  27511. Usually this means the macro was only invoked conditionally." >&5
  27512. echo "$as_me: error: conditional \"HAVE_LIBNIDS\" was never defined.
  27513. Usually this means the macro was only invoked conditionally." >&2;}
  27514. { (exit 1); exit 1; }; }
  27515. fi
  27516. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  27517. { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  27518. Usually this means the macro was only invoked conditionally." >&5
  27519. echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  27520. Usually this means the macro was only invoked conditionally." >&2;}
  27521. { (exit 1); exit 1; }; }
  27522. fi
  27523. : ${CONFIG_STATUS=./config.status}
  27524. ac_clean_files_save=$ac_clean_files
  27525. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  27526. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  27527. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  27528. cat >$CONFIG_STATUS <<_ACEOF
  27529. #! $SHELL
  27530. # Generated by $as_me.
  27531. # Run this file to recreate the current configuration.
  27532. # Compiler output produced by configure, useful for debugging
  27533. # configure, is in config.log if it exists.
  27534. debug=false
  27535. ac_cs_recheck=false
  27536. ac_cs_silent=false
  27537. SHELL=\${CONFIG_SHELL-$SHELL}
  27538. _ACEOF
  27539. cat >>$CONFIG_STATUS <<\_ACEOF
  27540. ## --------------------- ##
  27541. ## M4sh Initialization. ##
  27542. ## --------------------- ##
  27543. # Be Bourne compatible
  27544. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  27545. emulate sh
  27546. NULLCMD=:
  27547. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  27548. # is contrary to our usage. Disable this feature.
  27549. alias -g '${1+"$@"}'='"$@"'
  27550. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  27551. set -o posix
  27552. fi
  27553. DUALCASE=1; export DUALCASE # for MKS sh
  27554. # Support unset when possible.
  27555. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27556. as_unset=unset
  27557. else
  27558. as_unset=false
  27559. fi
  27560. # Work around bugs in pre-3.0 UWIN ksh.
  27561. $as_unset ENV MAIL MAILPATH
  27562. PS1='$ '
  27563. PS2='> '
  27564. PS4='+ '
  27565. # NLS nuisances.
  27566. for as_var in \
  27567. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  27568. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  27569. LC_TELEPHONE LC_TIME
  27570. do
  27571. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  27572. eval $as_var=C; export $as_var
  27573. else
  27574. $as_unset $as_var
  27575. fi
  27576. done
  27577. # Required to use basename.
  27578. if expr a : '\(a\)' >/dev/null 2>&1; then
  27579. as_expr=expr
  27580. else
  27581. as_expr=false
  27582. fi
  27583. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  27584. as_basename=basename
  27585. else
  27586. as_basename=false
  27587. fi
  27588. # Name of the executable.
  27589. as_me=`$as_basename "$0" ||
  27590. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  27591. X"$0" : 'X\(//\)$' \| \
  27592. X"$0" : 'X\(/\)$' \| \
  27593. . : '\(.\)' 2>/dev/null ||
  27594. echo X/"$0" |
  27595. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  27596. /^X\/\(\/\/\)$/{ s//\1/; q; }
  27597. /^X\/\(\/\).*/{ s//\1/; q; }
  27598. s/.*/./; q'`
  27599. # PATH needs CR, and LINENO needs CR and PATH.
  27600. # Avoid depending upon Character Ranges.
  27601. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  27602. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  27603. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  27604. as_cr_digits='0123456789'
  27605. as_cr_alnum=$as_cr_Letters$as_cr_digits
  27606. # The user is always right.
  27607. if test "${PATH_SEPARATOR+set}" != set; then
  27608. echo "#! /bin/sh" >conf$$.sh
  27609. echo "exit 0" >>conf$$.sh
  27610. chmod +x conf$$.sh
  27611. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  27612. PATH_SEPARATOR=';'
  27613. else
  27614. PATH_SEPARATOR=:
  27615. fi
  27616. rm -f conf$$.sh
  27617. fi
  27618. as_lineno_1=$LINENO
  27619. as_lineno_2=$LINENO
  27620. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  27621. test "x$as_lineno_1" != "x$as_lineno_2" &&
  27622. test "x$as_lineno_3" = "x$as_lineno_2" || {
  27623. # Find who we are. Look in the path if we contain no path at all
  27624. # relative or not.
  27625. case $0 in
  27626. *[\\/]* ) as_myself=$0 ;;
  27627. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27628. for as_dir in $PATH
  27629. do
  27630. IFS=$as_save_IFS
  27631. test -z "$as_dir" && as_dir=.
  27632. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  27633. done
  27634. ;;
  27635. esac
  27636. # We did not find ourselves, most probably we were run as `sh COMMAND'
  27637. # in which case we are not to be found in the path.
  27638. if test "x$as_myself" = x; then
  27639. as_myself=$0
  27640. fi
  27641. if test ! -f "$as_myself"; then
  27642. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  27643. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  27644. { (exit 1); exit 1; }; }
  27645. fi
  27646. case $CONFIG_SHELL in
  27647. '')
  27648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27649. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  27650. do
  27651. IFS=$as_save_IFS
  27652. test -z "$as_dir" && as_dir=.
  27653. for as_base in sh bash ksh sh5; do
  27654. case $as_dir in
  27655. /*)
  27656. if ("$as_dir/$as_base" -c '
  27657. as_lineno_1=$LINENO
  27658. as_lineno_2=$LINENO
  27659. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  27660. test "x$as_lineno_1" != "x$as_lineno_2" &&
  27661. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  27662. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  27663. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  27664. CONFIG_SHELL=$as_dir/$as_base
  27665. export CONFIG_SHELL
  27666. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  27667. fi;;
  27668. esac
  27669. done
  27670. done
  27671. ;;
  27672. esac
  27673. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  27674. # uniformly replaced by the line number. The first 'sed' inserts a
  27675. # line-number line before each line; the second 'sed' does the real
  27676. # work. The second script uses 'N' to pair each line-number line
  27677. # with the numbered line, and appends trailing '-' during
  27678. # substitution so that $LINENO is not a special case at line end.
  27679. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  27680. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  27681. sed '=' <$as_myself |
  27682. sed '
  27683. N
  27684. s,$,-,
  27685. : loop
  27686. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  27687. t loop
  27688. s,-$,,
  27689. s,^['$as_cr_digits']*\n,,
  27690. ' >$as_me.lineno &&
  27691. chmod +x $as_me.lineno ||
  27692. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  27693. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  27694. { (exit 1); exit 1; }; }
  27695. # Don't try to exec as it changes $[0], causing all sort of problems
  27696. # (the dirname of $[0] is not the place where we might find the
  27697. # original and so on. Autoconf is especially sensible to this).
  27698. . ./$as_me.lineno
  27699. # Exit status is that of the last command.
  27700. exit
  27701. }
  27702. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  27703. *c*,-n*) ECHO_N= ECHO_C='
  27704. ' ECHO_T=' ' ;;
  27705. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  27706. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  27707. esac
  27708. if expr a : '\(a\)' >/dev/null 2>&1; then
  27709. as_expr=expr
  27710. else
  27711. as_expr=false
  27712. fi
  27713. rm -f conf$$ conf$$.exe conf$$.file
  27714. echo >conf$$.file
  27715. if ln -s conf$$.file conf$$ 2>/dev/null; then
  27716. # We could just check for DJGPP; but this test a) works b) is more generic
  27717. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  27718. if test -f conf$$.exe; then
  27719. # Don't use ln at all; we don't have any links
  27720. as_ln_s='cp -p'
  27721. else
  27722. as_ln_s='ln -s'
  27723. fi
  27724. elif ln conf$$.file conf$$ 2>/dev/null; then
  27725. as_ln_s=ln
  27726. else
  27727. as_ln_s='cp -p'
  27728. fi
  27729. rm -f conf$$ conf$$.exe conf$$.file
  27730. if mkdir -p . 2>/dev/null; then
  27731. as_mkdir_p=:
  27732. else
  27733. test -d ./-p && rmdir ./-p
  27734. as_mkdir_p=false
  27735. fi
  27736. as_executable_p="test -f"
  27737. # Sed expression to map a string onto a valid CPP name.
  27738. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  27739. # Sed expression to map a string onto a valid variable name.
  27740. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  27741. # IFS
  27742. # We need space, tab and new line, in precisely that order.
  27743. as_nl='
  27744. '
  27745. IFS=" $as_nl"
  27746. # CDPATH.
  27747. $as_unset CDPATH
  27748. exec 6>&1
  27749. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  27750. # report actual input values of CONFIG_FILES etc. instead of their
  27751. # values after options handling. Logging --version etc. is OK.
  27752. exec 5>>config.log
  27753. {
  27754. echo
  27755. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  27756. ## Running $as_me. ##
  27757. _ASBOX
  27758. } >&5
  27759. cat >&5 <<_CSEOF
  27760. This file was extended by $as_me, which was
  27761. generated by GNU Autoconf 2.59. Invocation command line was
  27762. CONFIG_FILES = $CONFIG_FILES
  27763. CONFIG_HEADERS = $CONFIG_HEADERS
  27764. CONFIG_LINKS = $CONFIG_LINKS
  27765. CONFIG_COMMANDS = $CONFIG_COMMANDS
  27766. $ $0 $@
  27767. _CSEOF
  27768. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  27769. echo >&5
  27770. _ACEOF
  27771. # Files that config.status was made for.
  27772. if test -n "$ac_config_files"; then
  27773. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  27774. fi
  27775. if test -n "$ac_config_headers"; then
  27776. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  27777. fi
  27778. if test -n "$ac_config_links"; then
  27779. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  27780. fi
  27781. if test -n "$ac_config_commands"; then
  27782. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  27783. fi
  27784. cat >>$CONFIG_STATUS <<\_ACEOF
  27785. ac_cs_usage="\
  27786. \`$as_me' instantiates files from templates according to the
  27787. current configuration.
  27788. Usage: $0 [OPTIONS] [FILE]...
  27789. -h, --help print this help, then exit
  27790. -V, --version print version number, then exit
  27791. -q, --quiet do not print progress messages
  27792. -d, --debug don't remove temporary files
  27793. --recheck update $as_me by reconfiguring in the same conditions
  27794. --file=FILE[:TEMPLATE]
  27795. instantiate the configuration file FILE
  27796. --header=FILE[:TEMPLATE]
  27797. instantiate the configuration header FILE
  27798. Configuration files:
  27799. $config_files
  27800. Configuration headers:
  27801. $config_headers
  27802. Configuration commands:
  27803. $config_commands
  27804. Report bugs to <bug-autoconf@gnu.org>."
  27805. _ACEOF
  27806. cat >>$CONFIG_STATUS <<_ACEOF
  27807. ac_cs_version="\\
  27808. config.status
  27809. configured by $0, generated by GNU Autoconf 2.59,
  27810. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  27811. Copyright (C) 2003 Free Software Foundation, Inc.
  27812. This config.status script is free software; the Free Software Foundation
  27813. gives unlimited permission to copy, distribute and modify it."
  27814. srcdir=$srcdir
  27815. INSTALL="$INSTALL"
  27816. _ACEOF
  27817. cat >>$CONFIG_STATUS <<\_ACEOF
  27818. # If no file are specified by the user, then we need to provide default
  27819. # value. By we need to know if files were specified by the user.
  27820. ac_need_defaults=:
  27821. while test $# != 0
  27822. do
  27823. case $1 in
  27824. --*=*)
  27825. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  27826. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  27827. ac_shift=:
  27828. ;;
  27829. -*)
  27830. ac_option=$1
  27831. ac_optarg=$2
  27832. ac_shift=shift
  27833. ;;
  27834. *) # This is not an option, so the user has probably given explicit
  27835. # arguments.
  27836. ac_option=$1
  27837. ac_need_defaults=false;;
  27838. esac
  27839. case $ac_option in
  27840. # Handling of the options.
  27841. _ACEOF
  27842. cat >>$CONFIG_STATUS <<\_ACEOF
  27843. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  27844. ac_cs_recheck=: ;;
  27845. --version | --vers* | -V )
  27846. echo "$ac_cs_version"; exit 0 ;;
  27847. --he | --h)
  27848. # Conflict between --help and --header
  27849. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  27850. Try \`$0 --help' for more information." >&5
  27851. echo "$as_me: error: ambiguous option: $1
  27852. Try \`$0 --help' for more information." >&2;}
  27853. { (exit 1); exit 1; }; };;
  27854. --help | --hel | -h )
  27855. echo "$ac_cs_usage"; exit 0 ;;
  27856. --debug | --d* | -d )
  27857. debug=: ;;
  27858. --file | --fil | --fi | --f )
  27859. $ac_shift
  27860. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  27861. ac_need_defaults=false;;
  27862. --header | --heade | --head | --hea )
  27863. $ac_shift
  27864. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  27865. ac_need_defaults=false;;
  27866. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  27867. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  27868. ac_cs_silent=: ;;
  27869. # This is an error.
  27870. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  27871. Try \`$0 --help' for more information." >&5
  27872. echo "$as_me: error: unrecognized option: $1
  27873. Try \`$0 --help' for more information." >&2;}
  27874. { (exit 1); exit 1; }; } ;;
  27875. *) ac_config_targets="$ac_config_targets $1" ;;
  27876. esac
  27877. shift
  27878. done
  27879. ac_configure_extra_args=
  27880. if $ac_cs_silent; then
  27881. exec 6>/dev/null
  27882. ac_configure_extra_args="$ac_configure_extra_args --silent"
  27883. fi
  27884. _ACEOF
  27885. cat >>$CONFIG_STATUS <<_ACEOF
  27886. if \$ac_cs_recheck; then
  27887. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  27888. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  27889. fi
  27890. _ACEOF
  27891. cat >>$CONFIG_STATUS <<_ACEOF
  27892. #
  27893. # INIT-COMMANDS section.
  27894. #
  27895. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  27896. _ACEOF
  27897. cat >>$CONFIG_STATUS <<\_ACEOF
  27898. for ac_config_target in $ac_config_targets
  27899. do
  27900. case "$ac_config_target" in
  27901. # Handling of arguments.
  27902. "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  27903. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  27904. "doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  27905. "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  27906. "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  27907. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  27908. "src/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  27909. "src/defines.h" ) CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  27910. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  27911. "test/config" ) CONFIG_FILES="$CONFIG_FILES test/config" ;;
  27912. "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  27913. "tcpreplay.spec" ) CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  27914. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  27915. "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  27916. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  27917. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  27918. { (exit 1); exit 1; }; };;
  27919. esac
  27920. done
  27921. # If the user did not use the arguments to specify the items to instantiate,
  27922. # then the envvar interface is used. Set only those that are not.
  27923. # We use the long form for the default assignment because of an extremely
  27924. # bizarre bug on SunOS 4.1.3.
  27925. if $ac_need_defaults; then
  27926. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  27927. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  27928. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  27929. fi
  27930. # Have a temporary directory for convenience. Make it in the build tree
  27931. # simply because there is no reason to put it here, and in addition,
  27932. # creating and moving files from /tmp can sometimes cause problems.
  27933. # Create a temporary directory, and hook for its removal unless debugging.
  27934. $debug ||
  27935. {
  27936. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  27937. trap '{ (exit 1); exit 1; }' 1 2 13 15
  27938. }
  27939. # Create a (secure) tmp directory for tmp files.
  27940. {
  27941. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  27942. test -n "$tmp" && test -d "$tmp"
  27943. } ||
  27944. {
  27945. tmp=./confstat$$-$RANDOM
  27946. (umask 077 && mkdir $tmp)
  27947. } ||
  27948. {
  27949. echo "$me: cannot create a temporary directory in ." >&2
  27950. { (exit 1); exit 1; }
  27951. }
  27952. _ACEOF
  27953. cat >>$CONFIG_STATUS <<_ACEOF
  27954. #
  27955. # CONFIG_FILES section.
  27956. #
  27957. # No need to generate the scripts if there are no CONFIG_FILES.
  27958. # This happens for instance when ./config.status config.h
  27959. if test -n "\$CONFIG_FILES"; then
  27960. # Protect against being on the right side of a sed subst in config.status.
  27961. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  27962. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  27963. s,@SHELL@,$SHELL,;t t
  27964. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  27965. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  27966. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  27967. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  27968. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  27969. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  27970. s,@exec_prefix@,$exec_prefix,;t t
  27971. s,@prefix@,$prefix,;t t
  27972. s,@program_transform_name@,$program_transform_name,;t t
  27973. s,@bindir@,$bindir,;t t
  27974. s,@sbindir@,$sbindir,;t t
  27975. s,@libexecdir@,$libexecdir,;t t
  27976. s,@datadir@,$datadir,;t t
  27977. s,@sysconfdir@,$sysconfdir,;t t
  27978. s,@sharedstatedir@,$sharedstatedir,;t t
  27979. s,@localstatedir@,$localstatedir,;t t
  27980. s,@libdir@,$libdir,;t t
  27981. s,@includedir@,$includedir,;t t
  27982. s,@oldincludedir@,$oldincludedir,;t t
  27983. s,@infodir@,$infodir,;t t
  27984. s,@mandir@,$mandir,;t t
  27985. s,@build_alias@,$build_alias,;t t
  27986. s,@host_alias@,$host_alias,;t t
  27987. s,@target_alias@,$target_alias,;t t
  27988. s,@DEFS@,$DEFS,;t t
  27989. s,@ECHO_C@,$ECHO_C,;t t
  27990. s,@ECHO_N@,$ECHO_N,;t t
  27991. s,@ECHO_T@,$ECHO_T,;t t
  27992. s,@LIBS@,$LIBS,;t t
  27993. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  27994. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  27995. s,@MAINT@,$MAINT,;t t
  27996. s,@build@,$build,;t t
  27997. s,@build_cpu@,$build_cpu,;t t
  27998. s,@build_vendor@,$build_vendor,;t t
  27999. s,@build_os@,$build_os,;t t
  28000. s,@host@,$host,;t t
  28001. s,@host_cpu@,$host_cpu,;t t
  28002. s,@host_vendor@,$host_vendor,;t t
  28003. s,@host_os@,$host_os,;t t
  28004. s,@CC@,$CC,;t t
  28005. s,@CFLAGS@,$CFLAGS,;t t
  28006. s,@LDFLAGS@,$LDFLAGS,;t t
  28007. s,@CPPFLAGS@,$CPPFLAGS,;t t
  28008. s,@ac_ct_CC@,$ac_ct_CC,;t t
  28009. s,@EXEEXT@,$EXEEXT,;t t
  28010. s,@OBJEXT@,$OBJEXT,;t t
  28011. s,@EGREP@,$EGREP,;t t
  28012. s,@LN_S@,$LN_S,;t t
  28013. s,@ECHO@,$ECHO,;t t
  28014. s,@AR@,$AR,;t t
  28015. s,@ac_ct_AR@,$ac_ct_AR,;t t
  28016. s,@RANLIB@,$RANLIB,;t t
  28017. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  28018. s,@STRIP@,$STRIP,;t t
  28019. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  28020. s,@CPP@,$CPP,;t t
  28021. s,@CXX@,$CXX,;t t
  28022. s,@CXXFLAGS@,$CXXFLAGS,;t t
  28023. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  28024. s,@CXXCPP@,$CXXCPP,;t t
  28025. s,@F77@,$F77,;t t
  28026. s,@FFLAGS@,$FFLAGS,;t t
  28027. s,@ac_ct_F77@,$ac_ct_F77,;t t
  28028. s,@LIBTOOL@,$LIBTOOL,;t t
  28029. s,@TCPREPLAY_VERSION@,$TCPREPLAY_VERSION,;t t
  28030. s,@TCPREPLAY_RELEASE@,$TCPREPLAY_RELEASE,;t t
  28031. s,@target@,$target,;t t
  28032. s,@target_cpu@,$target_cpu,;t t
  28033. s,@target_vendor@,$target_vendor,;t t
  28034. s,@target_os@,$target_os,;t t
  28035. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  28036. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  28037. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  28038. s,@CYGPATH_W@,$CYGPATH_W,;t t
  28039. s,@PACKAGE@,$PACKAGE,;t t
  28040. s,@VERSION@,$VERSION,;t t
  28041. s,@ACLOCAL@,$ACLOCAL,;t t
  28042. s,@AUTOCONF@,$AUTOCONF,;t t
  28043. s,@AUTOMAKE@,$AUTOMAKE,;t t
  28044. s,@AUTOHEADER@,$AUTOHEADER,;t t
  28045. s,@MAKEINFO@,$MAKEINFO,;t t
  28046. s,@install_sh@,$install_sh,;t t
  28047. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  28048. s,@mkdir_p@,$mkdir_p,;t t
  28049. s,@AWK@,$AWK,;t t
  28050. s,@SET_MAKE@,$SET_MAKE,;t t
  28051. s,@am__leading_dot@,$am__leading_dot,;t t
  28052. s,@AMTAR@,$AMTAR,;t t
  28053. s,@am__tar@,$am__tar,;t t
  28054. s,@am__untar@,$am__untar,;t t
  28055. s,@DEPDIR@,$DEPDIR,;t t
  28056. s,@am__include@,$am__include,;t t
  28057. s,@am__quote@,$am__quote,;t t
  28058. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  28059. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  28060. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  28061. s,@CCDEPMODE@,$CCDEPMODE,;t t
  28062. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  28063. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  28064. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  28065. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  28066. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  28067. s,@PRINTF@,$PRINTF,;t t
  28068. s,@FIG2DEV@,$FIG2DEV,;t t
  28069. s,@LYX@,$LYX,;t t
  28070. s,@DVIPS@,$DVIPS,;t t
  28071. s,@TEXI2DVI@,$TEXI2DVI,;t t
  28072. s,@LATEX2HTML@,$LATEX2HTML,;t t
  28073. s,@DVIPDFM@,$DVIPDFM,;t t
  28074. s,@AUTOGEN@,$AUTOGEN,;t t
  28075. s,@LIBOBJS@,$LIBOBJS,;t t
  28076. s,@SYSTEM_STRLCPY_TRUE@,$SYSTEM_STRLCPY_TRUE,;t t
  28077. s,@SYSTEM_STRLCPY_FALSE@,$SYSTEM_STRLCPY_FALSE,;t t
  28078. s,@HAVE_DOCTOOLS_TRUE@,$HAVE_DOCTOOLS_TRUE,;t t
  28079. s,@HAVE_DOCTOOLS_FALSE@,$HAVE_DOCTOOLS_FALSE,;t t
  28080. s,@debug_flag@,$debug_flag,;t t
  28081. s,@LNETINC@,$LNETINC,;t t
  28082. s,@LNETLIB@,$LNETLIB,;t t
  28083. s,@LPCAPINC@,$LPCAPINC,;t t
  28084. s,@LPCAPLIB@,$LPCAPLIB,;t t
  28085. s,@PCAP_BPF_H_FILE@,$PCAP_BPF_H_FILE,;t t
  28086. s,@pcncfg@,$pcncfg,;t t
  28087. s,@LNAVLIB@,$LNAVLIB,;t t
  28088. s,@LNAV_CFLAGS@,$LNAV_CFLAGS,;t t
  28089. s,@LNIDSINC@,$LNIDSINC,;t t
  28090. s,@LNIDSLIB@,$LNIDSLIB,;t t
  28091. s,@HAVE_LIBNIDS_TRUE@,$HAVE_LIBNIDS_TRUE,;t t
  28092. s,@HAVE_LIBNIDS_FALSE@,$HAVE_LIBNIDS_FALSE,;t t
  28093. s,@td@,$td,;t t
  28094. s,@nic1@,$nic1,;t t
  28095. s,@nic2@,$nic2,;t t
  28096. s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t
  28097. s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t
  28098. s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t
  28099. s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t
  28100. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  28101. CEOF
  28102. _ACEOF
  28103. cat >>$CONFIG_STATUS <<\_ACEOF
  28104. # Split the substitutions into bite-sized pieces for seds with
  28105. # small command number limits, like on Digital OSF/1 and HP-UX.
  28106. ac_max_sed_lines=48
  28107. ac_sed_frag=1 # Number of current file.
  28108. ac_beg=1 # First line for current file.
  28109. ac_end=$ac_max_sed_lines # Line after last line for current file.
  28110. ac_more_lines=:
  28111. ac_sed_cmds=
  28112. while $ac_more_lines; do
  28113. if test $ac_beg -gt 1; then
  28114. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  28115. else
  28116. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  28117. fi
  28118. if test ! -s $tmp/subs.frag; then
  28119. ac_more_lines=false
  28120. else
  28121. # The purpose of the label and of the branching condition is to
  28122. # speed up the sed processing (if there are no `@' at all, there
  28123. # is no need to browse any of the substitutions).
  28124. # These are the two extra sed commands mentioned above.
  28125. (echo ':t
  28126. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  28127. if test -z "$ac_sed_cmds"; then
  28128. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  28129. else
  28130. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  28131. fi
  28132. ac_sed_frag=`expr $ac_sed_frag + 1`
  28133. ac_beg=$ac_end
  28134. ac_end=`expr $ac_end + $ac_max_sed_lines`
  28135. fi
  28136. done
  28137. if test -z "$ac_sed_cmds"; then
  28138. ac_sed_cmds=cat
  28139. fi
  28140. fi # test -n "$CONFIG_FILES"
  28141. _ACEOF
  28142. cat >>$CONFIG_STATUS <<\_ACEOF
  28143. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  28144. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  28145. case $ac_file in
  28146. - | *:- | *:-:* ) # input from stdin
  28147. cat >$tmp/stdin
  28148. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  28149. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  28150. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  28151. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  28152. * ) ac_file_in=$ac_file.in ;;
  28153. esac
  28154. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  28155. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  28156. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28157. X"$ac_file" : 'X\(//\)[^/]' \| \
  28158. X"$ac_file" : 'X\(//\)$' \| \
  28159. X"$ac_file" : 'X\(/\)' \| \
  28160. . : '\(.\)' 2>/dev/null ||
  28161. echo X"$ac_file" |
  28162. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28163. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28164. /^X\(\/\/\)$/{ s//\1/; q; }
  28165. /^X\(\/\).*/{ s//\1/; q; }
  28166. s/.*/./; q'`
  28167. { if $as_mkdir_p; then
  28168. mkdir -p "$ac_dir"
  28169. else
  28170. as_dir="$ac_dir"
  28171. as_dirs=
  28172. while test ! -d "$as_dir"; do
  28173. as_dirs="$as_dir $as_dirs"
  28174. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  28175. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28176. X"$as_dir" : 'X\(//\)[^/]' \| \
  28177. X"$as_dir" : 'X\(//\)$' \| \
  28178. X"$as_dir" : 'X\(/\)' \| \
  28179. . : '\(.\)' 2>/dev/null ||
  28180. echo X"$as_dir" |
  28181. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28182. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28183. /^X\(\/\/\)$/{ s//\1/; q; }
  28184. /^X\(\/\).*/{ s//\1/; q; }
  28185. s/.*/./; q'`
  28186. done
  28187. test ! -n "$as_dirs" || mkdir $as_dirs
  28188. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  28189. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  28190. { (exit 1); exit 1; }; }; }
  28191. ac_builddir=.
  28192. if test "$ac_dir" != .; then
  28193. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  28194. # A "../" for each directory in $ac_dir_suffix.
  28195. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  28196. else
  28197. ac_dir_suffix= ac_top_builddir=
  28198. fi
  28199. case $srcdir in
  28200. .) # No --srcdir option. We are building in place.
  28201. ac_srcdir=.
  28202. if test -z "$ac_top_builddir"; then
  28203. ac_top_srcdir=.
  28204. else
  28205. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  28206. fi ;;
  28207. [\\/]* | ?:[\\/]* ) # Absolute path.
  28208. ac_srcdir=$srcdir$ac_dir_suffix;
  28209. ac_top_srcdir=$srcdir ;;
  28210. *) # Relative path.
  28211. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  28212. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  28213. esac
  28214. # Do not use `cd foo && pwd` to compute absolute paths, because
  28215. # the directories may not exist.
  28216. case `pwd` in
  28217. .) ac_abs_builddir="$ac_dir";;
  28218. *)
  28219. case "$ac_dir" in
  28220. .) ac_abs_builddir=`pwd`;;
  28221. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  28222. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  28223. esac;;
  28224. esac
  28225. case $ac_abs_builddir in
  28226. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  28227. *)
  28228. case ${ac_top_builddir}. in
  28229. .) ac_abs_top_builddir=$ac_abs_builddir;;
  28230. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  28231. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  28232. esac;;
  28233. esac
  28234. case $ac_abs_builddir in
  28235. .) ac_abs_srcdir=$ac_srcdir;;
  28236. *)
  28237. case $ac_srcdir in
  28238. .) ac_abs_srcdir=$ac_abs_builddir;;
  28239. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  28240. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  28241. esac;;
  28242. esac
  28243. case $ac_abs_builddir in
  28244. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  28245. *)
  28246. case $ac_top_srcdir in
  28247. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  28248. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  28249. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  28250. esac;;
  28251. esac
  28252. case $INSTALL in
  28253. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  28254. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  28255. esac
  28256. if test x"$ac_file" != x-; then
  28257. { echo "$as_me:$LINENO: creating $ac_file" >&5
  28258. echo "$as_me: creating $ac_file" >&6;}
  28259. rm -f "$ac_file"
  28260. fi
  28261. # Let's still pretend it is `configure' which instantiates (i.e., don't
  28262. # use $as_me), people would be surprised to read:
  28263. # /* config.h. Generated by config.status. */
  28264. if test x"$ac_file" = x-; then
  28265. configure_input=
  28266. else
  28267. configure_input="$ac_file. "
  28268. fi
  28269. configure_input=$configure_input"Generated from `echo $ac_file_in |
  28270. sed 's,.*/,,'` by configure."
  28271. # First look for the input files in the build tree, otherwise in the
  28272. # src tree.
  28273. ac_file_inputs=`IFS=:
  28274. for f in $ac_file_in; do
  28275. case $f in
  28276. -) echo $tmp/stdin ;;
  28277. [\\/$]*)
  28278. # Absolute (can't be DOS-style, as IFS=:)
  28279. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  28280. echo "$as_me: error: cannot find input file: $f" >&2;}
  28281. { (exit 1); exit 1; }; }
  28282. echo "$f";;
  28283. *) # Relative
  28284. if test -f "$f"; then
  28285. # Build tree
  28286. echo "$f"
  28287. elif test -f "$srcdir/$f"; then
  28288. # Source tree
  28289. echo "$srcdir/$f"
  28290. else
  28291. # /dev/null tree
  28292. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  28293. echo "$as_me: error: cannot find input file: $f" >&2;}
  28294. { (exit 1); exit 1; }; }
  28295. fi;;
  28296. esac
  28297. done` || { (exit 1); exit 1; }
  28298. _ACEOF
  28299. cat >>$CONFIG_STATUS <<_ACEOF
  28300. sed "$ac_vpsub
  28301. $extrasub
  28302. _ACEOF
  28303. cat >>$CONFIG_STATUS <<\_ACEOF
  28304. :t
  28305. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  28306. s,@configure_input@,$configure_input,;t t
  28307. s,@srcdir@,$ac_srcdir,;t t
  28308. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  28309. s,@top_srcdir@,$ac_top_srcdir,;t t
  28310. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  28311. s,@builddir@,$ac_builddir,;t t
  28312. s,@abs_builddir@,$ac_abs_builddir,;t t
  28313. s,@top_builddir@,$ac_top_builddir,;t t
  28314. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  28315. s,@INSTALL@,$ac_INSTALL,;t t
  28316. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  28317. rm -f $tmp/stdin
  28318. if test x"$ac_file" != x-; then
  28319. mv $tmp/out $ac_file
  28320. else
  28321. cat $tmp/out
  28322. rm -f $tmp/out
  28323. fi
  28324. done
  28325. _ACEOF
  28326. cat >>$CONFIG_STATUS <<\_ACEOF
  28327. #
  28328. # CONFIG_HEADER section.
  28329. #
  28330. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  28331. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  28332. #
  28333. # ac_d sets the value in "#define NAME VALUE" lines.
  28334. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  28335. ac_dB='[ ].*$,\1#\2'
  28336. ac_dC=' '
  28337. ac_dD=',;t'
  28338. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  28339. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  28340. ac_uB='$,\1#\2define\3'
  28341. ac_uC=' '
  28342. ac_uD=',;t'
  28343. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  28344. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  28345. case $ac_file in
  28346. - | *:- | *:-:* ) # input from stdin
  28347. cat >$tmp/stdin
  28348. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  28349. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  28350. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  28351. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  28352. * ) ac_file_in=$ac_file.in ;;
  28353. esac
  28354. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  28355. echo "$as_me: creating $ac_file" >&6;}
  28356. # First look for the input files in the build tree, otherwise in the
  28357. # src tree.
  28358. ac_file_inputs=`IFS=:
  28359. for f in $ac_file_in; do
  28360. case $f in
  28361. -) echo $tmp/stdin ;;
  28362. [\\/$]*)
  28363. # Absolute (can't be DOS-style, as IFS=:)
  28364. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  28365. echo "$as_me: error: cannot find input file: $f" >&2;}
  28366. { (exit 1); exit 1; }; }
  28367. # Do quote $f, to prevent DOS paths from being IFS'd.
  28368. echo "$f";;
  28369. *) # Relative
  28370. if test -f "$f"; then
  28371. # Build tree
  28372. echo "$f"
  28373. elif test -f "$srcdir/$f"; then
  28374. # Source tree
  28375. echo "$srcdir/$f"
  28376. else
  28377. # /dev/null tree
  28378. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  28379. echo "$as_me: error: cannot find input file: $f" >&2;}
  28380. { (exit 1); exit 1; }; }
  28381. fi;;
  28382. esac
  28383. done` || { (exit 1); exit 1; }
  28384. # Remove the trailing spaces.
  28385. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  28386. _ACEOF
  28387. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  28388. # `conftest.undefs', that substitutes the proper values into
  28389. # config.h.in to produce config.h. The first handles `#define'
  28390. # templates, and the second `#undef' templates.
  28391. # And first: Protect against being on the right side of a sed subst in
  28392. # config.status. Protect against being in an unquoted here document
  28393. # in config.status.
  28394. rm -f conftest.defines conftest.undefs
  28395. # Using a here document instead of a string reduces the quoting nightmare.
  28396. # Putting comments in sed scripts is not portable.
  28397. #
  28398. # `end' is used to avoid that the second main sed command (meant for
  28399. # 0-ary CPP macros) applies to n-ary macro definitions.
  28400. # See the Autoconf documentation for `clear'.
  28401. cat >confdef2sed.sed <<\_ACEOF
  28402. s/[\\&,]/\\&/g
  28403. s,[\\$`],\\&,g
  28404. t clear
  28405. : clear
  28406. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  28407. t end
  28408. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  28409. : end
  28410. _ACEOF
  28411. # If some macros were called several times there might be several times
  28412. # the same #defines, which is useless. Nevertheless, we may not want to
  28413. # sort them, since we want the *last* AC-DEFINE to be honored.
  28414. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  28415. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  28416. rm -f confdef2sed.sed
  28417. # This sed command replaces #undef with comments. This is necessary, for
  28418. # example, in the case of _POSIX_SOURCE, which is predefined and required
  28419. # on some systems where configure will not decide to define it.
  28420. cat >>conftest.undefs <<\_ACEOF
  28421. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  28422. _ACEOF
  28423. # Break up conftest.defines because some shells have a limit on the size
  28424. # of here documents, and old seds have small limits too (100 cmds).
  28425. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  28426. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  28427. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  28428. echo ' :' >>$CONFIG_STATUS
  28429. rm -f conftest.tail
  28430. while grep . conftest.defines >/dev/null
  28431. do
  28432. # Write a limited-size here document to $tmp/defines.sed.
  28433. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  28434. # Speed up: don't consider the non `#define' lines.
  28435. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  28436. # Work around the forget-to-reset-the-flag bug.
  28437. echo 't clr' >>$CONFIG_STATUS
  28438. echo ': clr' >>$CONFIG_STATUS
  28439. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  28440. echo 'CEOF
  28441. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  28442. rm -f $tmp/in
  28443. mv $tmp/out $tmp/in
  28444. ' >>$CONFIG_STATUS
  28445. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  28446. rm -f conftest.defines
  28447. mv conftest.tail conftest.defines
  28448. done
  28449. rm -f conftest.defines
  28450. echo ' fi # grep' >>$CONFIG_STATUS
  28451. echo >>$CONFIG_STATUS
  28452. # Break up conftest.undefs because some shells have a limit on the size
  28453. # of here documents, and old seds have small limits too (100 cmds).
  28454. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  28455. rm -f conftest.tail
  28456. while grep . conftest.undefs >/dev/null
  28457. do
  28458. # Write a limited-size here document to $tmp/undefs.sed.
  28459. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  28460. # Speed up: don't consider the non `#undef'
  28461. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  28462. # Work around the forget-to-reset-the-flag bug.
  28463. echo 't clr' >>$CONFIG_STATUS
  28464. echo ': clr' >>$CONFIG_STATUS
  28465. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  28466. echo 'CEOF
  28467. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  28468. rm -f $tmp/in
  28469. mv $tmp/out $tmp/in
  28470. ' >>$CONFIG_STATUS
  28471. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  28472. rm -f conftest.undefs
  28473. mv conftest.tail conftest.undefs
  28474. done
  28475. rm -f conftest.undefs
  28476. cat >>$CONFIG_STATUS <<\_ACEOF
  28477. # Let's still pretend it is `configure' which instantiates (i.e., don't
  28478. # use $as_me), people would be surprised to read:
  28479. # /* config.h. Generated by config.status. */
  28480. if test x"$ac_file" = x-; then
  28481. echo "/* Generated by configure. */" >$tmp/config.h
  28482. else
  28483. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  28484. fi
  28485. cat $tmp/in >>$tmp/config.h
  28486. rm -f $tmp/in
  28487. if test x"$ac_file" != x-; then
  28488. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  28489. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  28490. echo "$as_me: $ac_file is unchanged" >&6;}
  28491. else
  28492. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  28493. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28494. X"$ac_file" : 'X\(//\)[^/]' \| \
  28495. X"$ac_file" : 'X\(//\)$' \| \
  28496. X"$ac_file" : 'X\(/\)' \| \
  28497. . : '\(.\)' 2>/dev/null ||
  28498. echo X"$ac_file" |
  28499. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28500. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28501. /^X\(\/\/\)$/{ s//\1/; q; }
  28502. /^X\(\/\).*/{ s//\1/; q; }
  28503. s/.*/./; q'`
  28504. { if $as_mkdir_p; then
  28505. mkdir -p "$ac_dir"
  28506. else
  28507. as_dir="$ac_dir"
  28508. as_dirs=
  28509. while test ! -d "$as_dir"; do
  28510. as_dirs="$as_dir $as_dirs"
  28511. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  28512. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28513. X"$as_dir" : 'X\(//\)[^/]' \| \
  28514. X"$as_dir" : 'X\(//\)$' \| \
  28515. X"$as_dir" : 'X\(/\)' \| \
  28516. . : '\(.\)' 2>/dev/null ||
  28517. echo X"$as_dir" |
  28518. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28519. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28520. /^X\(\/\/\)$/{ s//\1/; q; }
  28521. /^X\(\/\).*/{ s//\1/; q; }
  28522. s/.*/./; q'`
  28523. done
  28524. test ! -n "$as_dirs" || mkdir $as_dirs
  28525. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  28526. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  28527. { (exit 1); exit 1; }; }; }
  28528. rm -f $ac_file
  28529. mv $tmp/config.h $ac_file
  28530. fi
  28531. else
  28532. cat $tmp/config.h
  28533. rm -f $tmp/config.h
  28534. fi
  28535. # Compute $ac_file's index in $config_headers.
  28536. _am_stamp_count=1
  28537. for _am_header in $config_headers :; do
  28538. case $_am_header in
  28539. $ac_file | $ac_file:* )
  28540. break ;;
  28541. * )
  28542. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  28543. esac
  28544. done
  28545. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  28546. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28547. X$ac_file : 'X\(//\)[^/]' \| \
  28548. X$ac_file : 'X\(//\)$' \| \
  28549. X$ac_file : 'X\(/\)' \| \
  28550. . : '\(.\)' 2>/dev/null ||
  28551. echo X$ac_file |
  28552. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28553. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28554. /^X\(\/\/\)$/{ s//\1/; q; }
  28555. /^X\(\/\).*/{ s//\1/; q; }
  28556. s/.*/./; q'`/stamp-h$_am_stamp_count
  28557. done
  28558. _ACEOF
  28559. cat >>$CONFIG_STATUS <<\_ACEOF
  28560. #
  28561. # CONFIG_COMMANDS section.
  28562. #
  28563. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  28564. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  28565. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  28566. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  28567. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28568. X"$ac_dest" : 'X\(//\)[^/]' \| \
  28569. X"$ac_dest" : 'X\(//\)$' \| \
  28570. X"$ac_dest" : 'X\(/\)' \| \
  28571. . : '\(.\)' 2>/dev/null ||
  28572. echo X"$ac_dest" |
  28573. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28574. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28575. /^X\(\/\/\)$/{ s//\1/; q; }
  28576. /^X\(\/\).*/{ s//\1/; q; }
  28577. s/.*/./; q'`
  28578. { if $as_mkdir_p; then
  28579. mkdir -p "$ac_dir"
  28580. else
  28581. as_dir="$ac_dir"
  28582. as_dirs=
  28583. while test ! -d "$as_dir"; do
  28584. as_dirs="$as_dir $as_dirs"
  28585. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  28586. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28587. X"$as_dir" : 'X\(//\)[^/]' \| \
  28588. X"$as_dir" : 'X\(//\)$' \| \
  28589. X"$as_dir" : 'X\(/\)' \| \
  28590. . : '\(.\)' 2>/dev/null ||
  28591. echo X"$as_dir" |
  28592. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28593. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28594. /^X\(\/\/\)$/{ s//\1/; q; }
  28595. /^X\(\/\).*/{ s//\1/; q; }
  28596. s/.*/./; q'`
  28597. done
  28598. test ! -n "$as_dirs" || mkdir $as_dirs
  28599. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  28600. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  28601. { (exit 1); exit 1; }; }; }
  28602. ac_builddir=.
  28603. if test "$ac_dir" != .; then
  28604. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  28605. # A "../" for each directory in $ac_dir_suffix.
  28606. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  28607. else
  28608. ac_dir_suffix= ac_top_builddir=
  28609. fi
  28610. case $srcdir in
  28611. .) # No --srcdir option. We are building in place.
  28612. ac_srcdir=.
  28613. if test -z "$ac_top_builddir"; then
  28614. ac_top_srcdir=.
  28615. else
  28616. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  28617. fi ;;
  28618. [\\/]* | ?:[\\/]* ) # Absolute path.
  28619. ac_srcdir=$srcdir$ac_dir_suffix;
  28620. ac_top_srcdir=$srcdir ;;
  28621. *) # Relative path.
  28622. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  28623. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  28624. esac
  28625. # Do not use `cd foo && pwd` to compute absolute paths, because
  28626. # the directories may not exist.
  28627. case `pwd` in
  28628. .) ac_abs_builddir="$ac_dir";;
  28629. *)
  28630. case "$ac_dir" in
  28631. .) ac_abs_builddir=`pwd`;;
  28632. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  28633. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  28634. esac;;
  28635. esac
  28636. case $ac_abs_builddir in
  28637. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  28638. *)
  28639. case ${ac_top_builddir}. in
  28640. .) ac_abs_top_builddir=$ac_abs_builddir;;
  28641. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  28642. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  28643. esac;;
  28644. esac
  28645. case $ac_abs_builddir in
  28646. .) ac_abs_srcdir=$ac_srcdir;;
  28647. *)
  28648. case $ac_srcdir in
  28649. .) ac_abs_srcdir=$ac_abs_builddir;;
  28650. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  28651. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  28652. esac;;
  28653. esac
  28654. case $ac_abs_builddir in
  28655. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  28656. *)
  28657. case $ac_top_srcdir in
  28658. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  28659. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  28660. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  28661. esac;;
  28662. esac
  28663. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  28664. echo "$as_me: executing $ac_dest commands" >&6;}
  28665. case $ac_dest in
  28666. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  28667. # Strip MF so we end up with the name of the file.
  28668. mf=`echo "$mf" | sed -e 's/:.*$//'`
  28669. # Check whether this is an Automake generated Makefile or not.
  28670. # We used to match only the files named `Makefile.in', but
  28671. # some people rename them; so instead we look at the file content.
  28672. # Grep'ing the first line is not enough: some people post-process
  28673. # each Makefile.in and add a new line on top of each file to say so.
  28674. # So let's grep whole file.
  28675. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  28676. dirpart=`(dirname "$mf") 2>/dev/null ||
  28677. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28678. X"$mf" : 'X\(//\)[^/]' \| \
  28679. X"$mf" : 'X\(//\)$' \| \
  28680. X"$mf" : 'X\(/\)' \| \
  28681. . : '\(.\)' 2>/dev/null ||
  28682. echo X"$mf" |
  28683. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28684. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28685. /^X\(\/\/\)$/{ s//\1/; q; }
  28686. /^X\(\/\).*/{ s//\1/; q; }
  28687. s/.*/./; q'`
  28688. else
  28689. continue
  28690. fi
  28691. # Extract the definition of DEPDIR, am__include, and am__quote
  28692. # from the Makefile without running `make'.
  28693. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  28694. test -z "$DEPDIR" && continue
  28695. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  28696. test -z "am__include" && continue
  28697. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  28698. # When using ansi2knr, U may be empty or an underscore; expand it
  28699. U=`sed -n 's/^U = //p' < "$mf"`
  28700. # Find all dependency output files, they are included files with
  28701. # $(DEPDIR) in their names. We invoke sed twice because it is the
  28702. # simplest approach to changing $(DEPDIR) to its actual value in the
  28703. # expansion.
  28704. for file in `sed -n "
  28705. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  28706. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  28707. # Make sure the directory exists.
  28708. test -f "$dirpart/$file" && continue
  28709. fdir=`(dirname "$file") 2>/dev/null ||
  28710. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28711. X"$file" : 'X\(//\)[^/]' \| \
  28712. X"$file" : 'X\(//\)$' \| \
  28713. X"$file" : 'X\(/\)' \| \
  28714. . : '\(.\)' 2>/dev/null ||
  28715. echo X"$file" |
  28716. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28717. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28718. /^X\(\/\/\)$/{ s//\1/; q; }
  28719. /^X\(\/\).*/{ s//\1/; q; }
  28720. s/.*/./; q'`
  28721. { if $as_mkdir_p; then
  28722. mkdir -p $dirpart/$fdir
  28723. else
  28724. as_dir=$dirpart/$fdir
  28725. as_dirs=
  28726. while test ! -d "$as_dir"; do
  28727. as_dirs="$as_dir $as_dirs"
  28728. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  28729. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28730. X"$as_dir" : 'X\(//\)[^/]' \| \
  28731. X"$as_dir" : 'X\(//\)$' \| \
  28732. X"$as_dir" : 'X\(/\)' \| \
  28733. . : '\(.\)' 2>/dev/null ||
  28734. echo X"$as_dir" |
  28735. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28736. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28737. /^X\(\/\/\)$/{ s//\1/; q; }
  28738. /^X\(\/\).*/{ s//\1/; q; }
  28739. s/.*/./; q'`
  28740. done
  28741. test ! -n "$as_dirs" || mkdir $as_dirs
  28742. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  28743. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  28744. { (exit 1); exit 1; }; }; }
  28745. # echo "creating $dirpart/$file"
  28746. echo '# dummy' > "$dirpart/$file"
  28747. done
  28748. done
  28749. ;;
  28750. esac
  28751. done
  28752. _ACEOF
  28753. cat >>$CONFIG_STATUS <<\_ACEOF
  28754. { (exit 0); exit 0; }
  28755. _ACEOF
  28756. chmod +x $CONFIG_STATUS
  28757. ac_clean_files=$ac_clean_files_save
  28758. # configure is writing to config.log, and then calls config.status.
  28759. # config.status does its own redirection, appending to config.log.
  28760. # Unfortunately, on DOS this fails, as config.log is still kept open
  28761. # by configure, so config.status won't be able to write to it; its
  28762. # output is simply discarded. So we exec the FD to /dev/null,
  28763. # effectively closing config.log, so it can be properly (re)opened and
  28764. # appended to by config.status. When coming back to configure, we
  28765. # need to make the FD available again.
  28766. if test "$no_create" != yes; then
  28767. ac_cs_success=:
  28768. ac_config_status_args=
  28769. test "$silent" = yes &&
  28770. ac_config_status_args="$ac_config_status_args --quiet"
  28771. exec 5>/dev/null
  28772. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28773. exec 5>>config.log
  28774. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28775. # would make configure fail if this is the last instruction.
  28776. $ac_cs_success || { (exit 1); exit 1; }
  28777. fi