patch-configure 493 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413
  1. --- Libnet-1.0.2a.orig/configure 2001-01-17 21:59:33.000000000 +0100
  2. +++ Libnet-1.0.2a/configure 2009-08-23 00:39:54.725395446 +0200
  3. @@ -1,31 +1,941 @@
  4. #! /bin/sh
  5. -
  6. # Guess values for system-dependent variables and create Makefiles.
  7. -# Generated automatically using autoconf version 2.13
  8. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  9. +# Generated by GNU Autoconf 2.63.
  10. #
  11. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  12. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. +## --------------------- ##
  16. +## M4sh Initialization. ##
  17. +## --------------------- ##
  18. -# Defaults:
  19. -ac_help=
  20. +# Be more Bourne compatible
  21. +DUALCASE=1; export DUALCASE # for MKS sh
  22. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  23. + emulate sh
  24. + NULLCMD=:
  25. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26. + # is contrary to our usage. Disable this feature.
  27. + alias -g '${1+"$@"}'='"$@"'
  28. + setopt NO_GLOB_SUBST
  29. +else
  30. + case `(set -o) 2>/dev/null` in
  31. + *posix*) set -o posix ;;
  32. +esac
  33. +
  34. +fi
  35. +
  36. +
  37. +
  38. +
  39. +# PATH needs CR
  40. +# Avoid depending upon Character Ranges.
  41. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  42. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  43. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  44. +as_cr_digits='0123456789'
  45. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  46. +
  47. +as_nl='
  48. +'
  49. +export as_nl
  50. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  51. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  52. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  53. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  54. +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  55. + as_echo='printf %s\n'
  56. + as_echo_n='printf %s'
  57. +else
  58. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  59. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  60. + as_echo_n='/usr/ucb/echo -n'
  61. + else
  62. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  63. + as_echo_n_body='eval
  64. + arg=$1;
  65. + case $arg in
  66. + *"$as_nl"*)
  67. + expr "X$arg" : "X\\(.*\\)$as_nl";
  68. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  69. + esac;
  70. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  71. + '
  72. + export as_echo_n_body
  73. + as_echo_n='sh -c $as_echo_n_body as_echo'
  74. + fi
  75. + export as_echo_body
  76. + as_echo='sh -c $as_echo_body as_echo'
  77. +fi
  78. +
  79. +# The user is always right.
  80. +if test "${PATH_SEPARATOR+set}" != set; then
  81. + PATH_SEPARATOR=:
  82. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  83. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  84. + PATH_SEPARATOR=';'
  85. + }
  86. +fi
  87. +
  88. +# Support unset when possible.
  89. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  90. + as_unset=unset
  91. +else
  92. + as_unset=false
  93. +fi
  94. +
  95. +
  96. +# IFS
  97. +# We need space, tab and new line, in precisely that order. Quoting is
  98. +# there to prevent editors from complaining about space-tab.
  99. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  100. +# splitting by setting IFS to empty value.)
  101. +IFS=" "" $as_nl"
  102. +
  103. +# Find who we are. Look in the path if we contain no directory separator.
  104. +case $0 in
  105. + *[\\/]* ) as_myself=$0 ;;
  106. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  107. +for as_dir in $PATH
  108. +do
  109. + IFS=$as_save_IFS
  110. + test -z "$as_dir" && as_dir=.
  111. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  112. +done
  113. +IFS=$as_save_IFS
  114. +
  115. + ;;
  116. +esac
  117. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  118. +# in which case we are not to be found in the path.
  119. +if test "x$as_myself" = x; then
  120. + as_myself=$0
  121. +fi
  122. +if test ! -f "$as_myself"; then
  123. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  124. + { (exit 1); exit 1; }
  125. +fi
  126. +
  127. +# Work around bugs in pre-3.0 UWIN ksh.
  128. +for as_var in ENV MAIL MAILPATH
  129. +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  130. +done
  131. +PS1='$ '
  132. +PS2='> '
  133. +PS4='+ '
  134. +
  135. +# NLS nuisances.
  136. +LC_ALL=C
  137. +export LC_ALL
  138. +LANGUAGE=C
  139. +export LANGUAGE
  140. +
  141. +# Required to use basename.
  142. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  143. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  144. + as_expr=expr
  145. +else
  146. + as_expr=false
  147. +fi
  148. +
  149. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  150. + as_basename=basename
  151. +else
  152. + as_basename=false
  153. +fi
  154. +
  155. +
  156. +# Name of the executable.
  157. +as_me=`$as_basename -- "$0" ||
  158. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  159. + X"$0" : 'X\(//\)$' \| \
  160. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  161. +$as_echo X/"$0" |
  162. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  163. + s//\1/
  164. + q
  165. + }
  166. + /^X\/\(\/\/\)$/{
  167. + s//\1/
  168. + q
  169. + }
  170. + /^X\/\(\/\).*/{
  171. + s//\1/
  172. + q
  173. + }
  174. + s/.*/./; q'`
  175. +
  176. +# CDPATH.
  177. +$as_unset CDPATH
  178. +
  179. +
  180. +if test "x$CONFIG_SHELL" = x; then
  181. + if (eval ":") 2>/dev/null; then
  182. + as_have_required=yes
  183. +else
  184. + as_have_required=no
  185. +fi
  186. +
  187. + if test $as_have_required = yes && (eval ":
  188. +(as_func_return () {
  189. + (exit \$1)
  190. +}
  191. +as_func_success () {
  192. + as_func_return 0
  193. +}
  194. +as_func_failure () {
  195. + as_func_return 1
  196. +}
  197. +as_func_ret_success () {
  198. + return 0
  199. +}
  200. +as_func_ret_failure () {
  201. + return 1
  202. +}
  203. +
  204. +exitcode=0
  205. +if as_func_success; then
  206. + :
  207. +else
  208. + exitcode=1
  209. + echo as_func_success failed.
  210. +fi
  211. +
  212. +if as_func_failure; then
  213. + exitcode=1
  214. + echo as_func_failure succeeded.
  215. +fi
  216. +
  217. +if as_func_ret_success; then
  218. + :
  219. +else
  220. + exitcode=1
  221. + echo as_func_ret_success failed.
  222. +fi
  223. +
  224. +if as_func_ret_failure; then
  225. + exitcode=1
  226. + echo as_func_ret_failure succeeded.
  227. +fi
  228. +
  229. +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  230. + :
  231. +else
  232. + exitcode=1
  233. + echo positional parameters were not saved.
  234. +fi
  235. +
  236. +test \$exitcode = 0) || { (exit 1); exit 1; }
  237. +
  238. +(
  239. + as_lineno_1=\$LINENO
  240. + as_lineno_2=\$LINENO
  241. + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  242. + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  243. +") 2> /dev/null; then
  244. + :
  245. +else
  246. + as_candidate_shells=
  247. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  248. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  249. +do
  250. + IFS=$as_save_IFS
  251. + test -z "$as_dir" && as_dir=.
  252. + case $as_dir in
  253. + /*)
  254. + for as_base in sh bash ksh sh5; do
  255. + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  256. + done;;
  257. + esac
  258. +done
  259. +IFS=$as_save_IFS
  260. +
  261. +
  262. + for as_shell in $as_candidate_shells $SHELL; do
  263. + # Try only shells that exist, to save several forks.
  264. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  265. + { ("$as_shell") 2> /dev/null <<\_ASEOF
  266. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  267. + emulate sh
  268. + NULLCMD=:
  269. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  270. + # is contrary to our usage. Disable this feature.
  271. + alias -g '${1+"$@"}'='"$@"'
  272. + setopt NO_GLOB_SUBST
  273. +else
  274. + case `(set -o) 2>/dev/null` in
  275. + *posix*) set -o posix ;;
  276. +esac
  277. +
  278. +fi
  279. +
  280. +
  281. +:
  282. +_ASEOF
  283. +}; then
  284. + CONFIG_SHELL=$as_shell
  285. + as_have_required=yes
  286. + if { "$as_shell" 2> /dev/null <<\_ASEOF
  287. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  288. + emulate sh
  289. + NULLCMD=:
  290. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  291. + # is contrary to our usage. Disable this feature.
  292. + alias -g '${1+"$@"}'='"$@"'
  293. + setopt NO_GLOB_SUBST
  294. +else
  295. + case `(set -o) 2>/dev/null` in
  296. + *posix*) set -o posix ;;
  297. +esac
  298. +
  299. +fi
  300. +
  301. +
  302. +:
  303. +(as_func_return () {
  304. + (exit $1)
  305. +}
  306. +as_func_success () {
  307. + as_func_return 0
  308. +}
  309. +as_func_failure () {
  310. + as_func_return 1
  311. +}
  312. +as_func_ret_success () {
  313. + return 0
  314. +}
  315. +as_func_ret_failure () {
  316. + return 1
  317. +}
  318. +
  319. +exitcode=0
  320. +if as_func_success; then
  321. + :
  322. +else
  323. + exitcode=1
  324. + echo as_func_success failed.
  325. +fi
  326. +
  327. +if as_func_failure; then
  328. + exitcode=1
  329. + echo as_func_failure succeeded.
  330. +fi
  331. +
  332. +if as_func_ret_success; then
  333. + :
  334. +else
  335. + exitcode=1
  336. + echo as_func_ret_success failed.
  337. +fi
  338. +
  339. +if as_func_ret_failure; then
  340. + exitcode=1
  341. + echo as_func_ret_failure succeeded.
  342. +fi
  343. +
  344. +if ( set x; as_func_ret_success y && test x = "$1" ); then
  345. + :
  346. +else
  347. + exitcode=1
  348. + echo positional parameters were not saved.
  349. +fi
  350. +
  351. +test $exitcode = 0) || { (exit 1); exit 1; }
  352. +
  353. +(
  354. + as_lineno_1=$LINENO
  355. + as_lineno_2=$LINENO
  356. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  357. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  358. +
  359. +_ASEOF
  360. +}; then
  361. + break
  362. +fi
  363. +
  364. +fi
  365. +
  366. + done
  367. +
  368. + if test "x$CONFIG_SHELL" != x; then
  369. + for as_var in BASH_ENV ENV
  370. + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  371. + done
  372. + export CONFIG_SHELL
  373. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  374. +fi
  375. +
  376. +
  377. + if test $as_have_required = no; then
  378. + echo This script requires a shell more modern than all the
  379. + echo shells that I found on your system. Please install a
  380. + echo modern shell, or manually run the script under such a
  381. + echo shell if you do have one.
  382. + { (exit 1); exit 1; }
  383. +fi
  384. +
  385. +
  386. +fi
  387. +
  388. +fi
  389. +
  390. +
  391. +
  392. +(eval "as_func_return () {
  393. + (exit \$1)
  394. +}
  395. +as_func_success () {
  396. + as_func_return 0
  397. +}
  398. +as_func_failure () {
  399. + as_func_return 1
  400. +}
  401. +as_func_ret_success () {
  402. + return 0
  403. +}
  404. +as_func_ret_failure () {
  405. + return 1
  406. +}
  407. +
  408. +exitcode=0
  409. +if as_func_success; then
  410. + :
  411. +else
  412. + exitcode=1
  413. + echo as_func_success failed.
  414. +fi
  415. +
  416. +if as_func_failure; then
  417. + exitcode=1
  418. + echo as_func_failure succeeded.
  419. +fi
  420. +
  421. +if as_func_ret_success; then
  422. + :
  423. +else
  424. + exitcode=1
  425. + echo as_func_ret_success failed.
  426. +fi
  427. +
  428. +if as_func_ret_failure; then
  429. + exitcode=1
  430. + echo as_func_ret_failure succeeded.
  431. +fi
  432. +
  433. +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  434. + :
  435. +else
  436. + exitcode=1
  437. + echo positional parameters were not saved.
  438. +fi
  439. +
  440. +test \$exitcode = 0") || {
  441. + echo No shell found that supports shell functions.
  442. + echo Please tell bug-autoconf@gnu.org about your system,
  443. + echo including any error possibly output before this message.
  444. + echo This can help us improve future autoconf versions.
  445. + echo Configuration will now proceed without shell functions.
  446. +}
  447. +
  448. +
  449. +
  450. + as_lineno_1=$LINENO
  451. + as_lineno_2=$LINENO
  452. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  453. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  454. +
  455. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  456. + # uniformly replaced by the line number. The first 'sed' inserts a
  457. + # line-number line after each line using $LINENO; the second 'sed'
  458. + # does the real work. The second script uses 'N' to pair each
  459. + # line-number line with the line containing $LINENO, and appends
  460. + # trailing '-' during substitution so that $LINENO is not a special
  461. + # case at line end.
  462. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  463. + # scripts with optimization help from Paolo Bonzini. Blame Lee
  464. + # E. McMahon (1931-1989) for sed's syntax. :-)
  465. + sed -n '
  466. + p
  467. + /[$]LINENO/=
  468. + ' <$as_myself |
  469. + sed '
  470. + s/[$]LINENO.*/&-/
  471. + t lineno
  472. + b
  473. + :lineno
  474. + N
  475. + :loop
  476. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  477. + t loop
  478. + s/-\n.*//
  479. + ' >$as_me.lineno &&
  480. + chmod +x "$as_me.lineno" ||
  481. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  482. + { (exit 1); exit 1; }; }
  483. +
  484. + # Don't try to exec as it changes $[0], causing all sort of problems
  485. + # (the dirname of $[0] is not the place where we might find the
  486. + # original and so on. Autoconf is especially sensitive to this).
  487. + . "./$as_me.lineno"
  488. + # Exit status is that of the last command.
  489. + exit
  490. +}
  491. +
  492. +
  493. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  494. + as_dirname=dirname
  495. +else
  496. + as_dirname=false
  497. +fi
  498. +
  499. +ECHO_C= ECHO_N= ECHO_T=
  500. +case `echo -n x` in
  501. +-n*)
  502. + case `echo 'x\c'` in
  503. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  504. + *) ECHO_C='\c';;
  505. + esac;;
  506. +*)
  507. + ECHO_N='-n';;
  508. +esac
  509. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  510. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  511. + as_expr=expr
  512. +else
  513. + as_expr=false
  514. +fi
  515. +
  516. +rm -f conf$$ conf$$.exe conf$$.file
  517. +if test -d conf$$.dir; then
  518. + rm -f conf$$.dir/conf$$.file
  519. +else
  520. + rm -f conf$$.dir
  521. + mkdir conf$$.dir 2>/dev/null
  522. +fi
  523. +if (echo >conf$$.file) 2>/dev/null; then
  524. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  525. + as_ln_s='ln -s'
  526. + # ... but there are two gotchas:
  527. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  528. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  529. + # In both cases, we have to default to `cp -p'.
  530. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  531. + as_ln_s='cp -p'
  532. + elif ln conf$$.file conf$$ 2>/dev/null; then
  533. + as_ln_s=ln
  534. + else
  535. + as_ln_s='cp -p'
  536. + fi
  537. +else
  538. + as_ln_s='cp -p'
  539. +fi
  540. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  541. +rmdir conf$$.dir 2>/dev/null
  542. +
  543. +if mkdir -p . 2>/dev/null; then
  544. + as_mkdir_p=:
  545. +else
  546. + test -d ./-p && rmdir ./-p
  547. + as_mkdir_p=false
  548. +fi
  549. +
  550. +if test -x / >/dev/null 2>&1; then
  551. + as_test_x='test -x'
  552. +else
  553. + if ls -dL / >/dev/null 2>&1; then
  554. + as_ls_L_option=L
  555. + else
  556. + as_ls_L_option=
  557. + fi
  558. + as_test_x='
  559. + eval sh -c '\''
  560. + if test -d "$1"; then
  561. + test -d "$1/.";
  562. + else
  563. + case $1 in
  564. + -*)set "./$1";;
  565. + esac;
  566. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  567. + ???[sx]*):;;*)false;;esac;fi
  568. + '\'' sh
  569. + '
  570. +fi
  571. +as_executable_p=$as_test_x
  572. +
  573. +# Sed expression to map a string onto a valid CPP name.
  574. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  575. +
  576. +# Sed expression to map a string onto a valid variable name.
  577. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  578. +
  579. +
  580. +
  581. +
  582. +# Check that we are running under the correct shell.
  583. +SHELL=${CONFIG_SHELL-/bin/sh}
  584. +
  585. +case X$lt_ECHO in
  586. +X*--fallback-echo)
  587. + # Remove one level of quotation (which was required for Make).
  588. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  589. + ;;
  590. +esac
  591. +
  592. +ECHO=${lt_ECHO-echo}
  593. +if test "X$1" = X--no-reexec; then
  594. + # Discard the --no-reexec flag, and continue.
  595. + shift
  596. +elif test "X$1" = X--fallback-echo; then
  597. + # Avoid inline document here, it may be left over
  598. + :
  599. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  600. + # Yippee, $ECHO works!
  601. + :
  602. +else
  603. + # Restart under the correct shell.
  604. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  605. +fi
  606. +
  607. +if test "X$1" = X--fallback-echo; then
  608. + # used as fallback echo
  609. + shift
  610. + cat <<_LT_EOF
  611. +$*
  612. +_LT_EOF
  613. + exit 0
  614. +fi
  615. +
  616. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  617. +# if CDPATH is set.
  618. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  619. +
  620. +if test -z "$lt_ECHO"; then
  621. + if test "X${echo_test_string+set}" != Xset; then
  622. + # find a string as large as possible, as long as the shell can cope with it
  623. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  624. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  625. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  626. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  627. + then
  628. + break
  629. + fi
  630. + done
  631. + fi
  632. +
  633. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  634. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  635. + test "X$echo_testing_string" = "X$echo_test_string"; then
  636. + :
  637. + else
  638. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  639. + # backslashes. This makes it impossible to quote backslashes using
  640. + # echo "$something" | sed 's/\\/\\\\/g'
  641. + #
  642. + # So, first we look for a working echo in the user's PATH.
  643. +
  644. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  645. + for dir in $PATH /usr/ucb; do
  646. + IFS="$lt_save_ifs"
  647. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  648. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  649. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  650. + test "X$echo_testing_string" = "X$echo_test_string"; then
  651. + ECHO="$dir/echo"
  652. + break
  653. + fi
  654. + done
  655. + IFS="$lt_save_ifs"
  656. +
  657. + if test "X$ECHO" = Xecho; then
  658. + # We didn't find a better echo, so look for alternatives.
  659. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  660. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  661. + test "X$echo_testing_string" = "X$echo_test_string"; then
  662. + # This shell has a builtin print -r that does the trick.
  663. + ECHO='print -r'
  664. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  665. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  666. + # If we have ksh, try running configure again with it.
  667. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  668. + export ORIGINAL_CONFIG_SHELL
  669. + CONFIG_SHELL=/bin/ksh
  670. + export CONFIG_SHELL
  671. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  672. + else
  673. + # Try using printf.
  674. + ECHO='printf %s\n'
  675. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  676. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  677. + test "X$echo_testing_string" = "X$echo_test_string"; then
  678. + # Cool, printf works
  679. + :
  680. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  681. + test "X$echo_testing_string" = 'X\t' &&
  682. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  683. + test "X$echo_testing_string" = "X$echo_test_string"; then
  684. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  685. + export CONFIG_SHELL
  686. + SHELL="$CONFIG_SHELL"
  687. + export SHELL
  688. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  689. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  690. + test "X$echo_testing_string" = 'X\t' &&
  691. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  692. + test "X$echo_testing_string" = "X$echo_test_string"; then
  693. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  694. + else
  695. + # maybe with a smaller string...
  696. + prev=:
  697. +
  698. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  699. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  700. + then
  701. + break
  702. + fi
  703. + prev="$cmd"
  704. + done
  705. +
  706. + if test "$prev" != 'sed 50q "$0"'; then
  707. + echo_test_string=`eval $prev`
  708. + export echo_test_string
  709. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  710. + else
  711. + # Oops. We lost completely, so just stick with echo.
  712. + ECHO=echo
  713. + fi
  714. + fi
  715. + fi
  716. + fi
  717. + fi
  718. +fi
  719. +
  720. +# Copy echo and quote the copy suitably for passing to libtool from
  721. +# the Makefile, instead of quoting the original, which is used later.
  722. +lt_ECHO=$ECHO
  723. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  724. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  725. +fi
  726. +
  727. +
  728. +
  729. +
  730. +exec 7<&0 </dev/null 6>&1
  731. +
  732. +# Name of the host.
  733. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  734. +# so uname gets run too.
  735. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  736. +
  737. +#
  738. +# Initializations.
  739. +#
  740. ac_default_prefix=/usr/local
  741. -# Any additions from configure.in:
  742. +ac_clean_files=
  743. +ac_config_libobj_dir=.
  744. +LIBOBJS=
  745. +cross_compiling=no
  746. +subdirs=
  747. +MFLAGS=
  748. +MAKEFLAGS=
  749. +SHELL=${CONFIG_SHELL-/bin/sh}
  750. +
  751. +# Identity of this package.
  752. +PACKAGE_NAME=
  753. +PACKAGE_TARNAME=
  754. +PACKAGE_VERSION=
  755. +PACKAGE_STRING=
  756. +PACKAGE_BUGREPORT=
  757. +
  758. +ac_unique_file="src/libnet_build_ip.c"
  759. ac_default_prefix=/usr
  760. -ac_help="$ac_help
  761. - --with-pf_packet=[yes,no] override defaults"
  762. -ac_help="$ac_help
  763. - --with-fast_x86_check=[yes,no] override defaults"
  764. +# Factoring default headers for most tests.
  765. +ac_includes_default="\
  766. +#include <stdio.h>
  767. +#ifdef HAVE_SYS_TYPES_H
  768. +# include <sys/types.h>
  769. +#endif
  770. +#ifdef HAVE_SYS_STAT_H
  771. +# include <sys/stat.h>
  772. +#endif
  773. +#ifdef STDC_HEADERS
  774. +# include <stdlib.h>
  775. +# include <stddef.h>
  776. +#else
  777. +# ifdef HAVE_STDLIB_H
  778. +# include <stdlib.h>
  779. +# endif
  780. +#endif
  781. +#ifdef HAVE_STRING_H
  782. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  783. +# include <memory.h>
  784. +# endif
  785. +# include <string.h>
  786. +#endif
  787. +#ifdef HAVE_STRINGS_H
  788. +# include <strings.h>
  789. +#endif
  790. +#ifdef HAVE_INTTYPES_H
  791. +# include <inttypes.h>
  792. +#endif
  793. +#ifdef HAVE_STDINT_H
  794. +# include <stdint.h>
  795. +#endif
  796. +#ifdef HAVE_UNISTD_H
  797. +# include <unistd.h>
  798. +#endif"
  799. +
  800. +ac_subst_vars='LTLIBOBJS
  801. +LIBOBJS
  802. +CPP
  803. +OTOOL64
  804. +OTOOL
  805. +LIPO
  806. +NMEDIT
  807. +DSYMUTIL
  808. +lt_ECHO
  809. +OBJDUMP
  810. +LN_S
  811. +NM
  812. +ac_ct_DUMPBIN
  813. +DUMPBIN
  814. +LD
  815. +FGREP
  816. +EGREP
  817. +GREP
  818. +SED
  819. +LIBTOOL
  820. +am__fastdepCC_FALSE
  821. +am__fastdepCC_TRUE
  822. +CCDEPMODE
  823. +AMDEPBACKSLASH
  824. +AMDEP_FALSE
  825. +AMDEP_TRUE
  826. +am__quote
  827. +am__include
  828. +DEPDIR
  829. +OBJEXT
  830. +EXEEXT
  831. +ac_ct_CC
  832. +CPPFLAGS
  833. +LDFLAGS
  834. +CFLAGS
  835. +CC
  836. +LIBNET_CONFIG_CFLAGS
  837. +LIBNET_CONFIG_LIBS
  838. +LIBNET_CONFIG_DEFINES
  839. +ADDITIONAL_LIBS
  840. +LN
  841. +AR
  842. +RANLIB
  843. +BIN_PREFIX
  844. +MAN_PREFIX
  845. +INC_PREFIX
  846. +LIB_PREFIX
  847. +LL_INT_TYPE
  848. +LL_INT_TYPE_UC
  849. +am__leading_dot
  850. +SET_MAKE
  851. +AWK
  852. +mkdir_p
  853. +INSTALL_STRIP_PROGRAM
  854. +STRIP
  855. +install_sh
  856. +AMTAR
  857. +MAKEINFO
  858. +AUTOHEADER
  859. +AUTOMAKE
  860. +AUTOCONF
  861. +ACLOCAL
  862. +VERSION
  863. +PACKAGE
  864. +CYGPATH_W
  865. +INSTALL_DATA
  866. +INSTALL_SCRIPT
  867. +INSTALL_PROGRAM
  868. +target_os
  869. +target_vendor
  870. +target_cpu
  871. +target
  872. +host_os
  873. +host_vendor
  874. +host_cpu
  875. +host
  876. +build_os
  877. +build_vendor
  878. +build_cpu
  879. +build
  880. +target_alias
  881. +host_alias
  882. +build_alias
  883. +LIBS
  884. +ECHO_T
  885. +ECHO_N
  886. +ECHO_C
  887. +DEFS
  888. +mandir
  889. +localedir
  890. +libdir
  891. +psdir
  892. +pdfdir
  893. +dvidir
  894. +htmldir
  895. +infodir
  896. +docdir
  897. +oldincludedir
  898. +includedir
  899. +localstatedir
  900. +sharedstatedir
  901. +sysconfdir
  902. +datadir
  903. +datarootdir
  904. +libexecdir
  905. +sbindir
  906. +bindir
  907. +program_transform_name
  908. +prefix
  909. +exec_prefix
  910. +PACKAGE_BUGREPORT
  911. +PACKAGE_STRING
  912. +PACKAGE_VERSION
  913. +PACKAGE_TARNAME
  914. +PACKAGE_NAME
  915. +PATH_SEPARATOR
  916. +SHELL'
  917. +ac_subst_files=''
  918. +ac_user_opts='
  919. +enable_option_checking
  920. +enable_dependency_tracking
  921. +with_pf_packet
  922. +with_fast_x86_check
  923. +enable_shared
  924. +enable_static
  925. +with_pic
  926. +enable_fast_install
  927. +with_gnu_ld
  928. +enable_libtool_lock
  929. +'
  930. + ac_precious_vars='build_alias
  931. +host_alias
  932. +target_alias
  933. +CC
  934. +CFLAGS
  935. +LDFLAGS
  936. +LIBS
  937. +CPPFLAGS
  938. +CPP'
  939. +
  940. # Initialize some variables set by options.
  941. +ac_init_help=
  942. +ac_init_version=false
  943. +ac_unrecognized_opts=
  944. +ac_unrecognized_sep=
  945. # The variables have the same names as the options, with
  946. # dashes changed to underlines.
  947. -build=NONE
  948. -cache_file=./config.cache
  949. +cache_file=/dev/null
  950. exec_prefix=NONE
  951. -host=NONE
  952. no_create=
  953. -nonopt=NONE
  954. no_recursion=
  955. prefix=NONE
  956. program_prefix=NONE
  957. @@ -34,94 +944,133 @@ program_transform_name=s,x,x,
  958. silent=
  959. site=
  960. srcdir=
  961. -target=NONE
  962. verbose=
  963. x_includes=NONE
  964. x_libraries=NONE
  965. +
  966. +# Installation directory options.
  967. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  968. +# and all the variables that are supposed to be based on exec_prefix
  969. +# by default will actually change.
  970. +# Use braces instead of parens because sh, perl, etc. also accept them.
  971. +# (The list follows the same order as the GNU Coding Standards.)
  972. bindir='${exec_prefix}/bin'
  973. sbindir='${exec_prefix}/sbin'
  974. libexecdir='${exec_prefix}/libexec'
  975. -datadir='${prefix}/share'
  976. +datarootdir='${prefix}/share'
  977. +datadir='${datarootdir}'
  978. sysconfdir='${prefix}/etc'
  979. sharedstatedir='${prefix}/com'
  980. localstatedir='${prefix}/var'
  981. -libdir='${exec_prefix}/lib'
  982. includedir='${prefix}/include'
  983. oldincludedir='/usr/include'
  984. -infodir='${prefix}/info'
  985. -mandir='${prefix}/man'
  986. -
  987. -# Initialize some other variables.
  988. -subdirs=
  989. -MFLAGS= MAKEFLAGS=
  990. -SHELL=${CONFIG_SHELL-/bin/sh}
  991. -# Maximum number of lines to put in a shell here document.
  992. -ac_max_here_lines=12
  993. +docdir='${datarootdir}/doc/${PACKAGE}'
  994. +infodir='${datarootdir}/info'
  995. +htmldir='${docdir}'
  996. +dvidir='${docdir}'
  997. +pdfdir='${docdir}'
  998. +psdir='${docdir}'
  999. +libdir='${exec_prefix}/lib'
  1000. +localedir='${datarootdir}/locale'
  1001. +mandir='${datarootdir}/man'
  1002. ac_prev=
  1003. +ac_dashdash=
  1004. for ac_option
  1005. do
  1006. -
  1007. # If the previous option needs an argument, assign it.
  1008. if test -n "$ac_prev"; then
  1009. - eval "$ac_prev=\$ac_option"
  1010. + eval $ac_prev=\$ac_option
  1011. ac_prev=
  1012. continue
  1013. fi
  1014. - case "$ac_option" in
  1015. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  1016. - *) ac_optarg= ;;
  1017. + case $ac_option in
  1018. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1019. + *) ac_optarg=yes ;;
  1020. esac
  1021. # Accept the important Cygnus configure options, so we can diagnose typos.
  1022. - case "$ac_option" in
  1023. + case $ac_dashdash$ac_option in
  1024. + --)
  1025. + ac_dashdash=yes ;;
  1026. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1027. ac_prev=bindir ;;
  1028. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1029. - bindir="$ac_optarg" ;;
  1030. + bindir=$ac_optarg ;;
  1031. -build | --build | --buil | --bui | --bu)
  1032. - ac_prev=build ;;
  1033. + ac_prev=build_alias ;;
  1034. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1035. - build="$ac_optarg" ;;
  1036. + build_alias=$ac_optarg ;;
  1037. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1038. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1039. ac_prev=cache_file ;;
  1040. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1041. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1042. - cache_file="$ac_optarg" ;;
  1043. + cache_file=$ac_optarg ;;
  1044. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  1045. + --config-cache | -C)
  1046. + cache_file=config.cache ;;
  1047. +
  1048. + -datadir | --datadir | --datadi | --datad)
  1049. ac_prev=datadir ;;
  1050. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  1051. - | --da=*)
  1052. - datadir="$ac_optarg" ;;
  1053. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1054. + datadir=$ac_optarg ;;
  1055. +
  1056. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1057. + | --dataroo | --dataro | --datar)
  1058. + ac_prev=datarootdir ;;
  1059. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1060. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1061. + datarootdir=$ac_optarg ;;
  1062. -disable-* | --disable-*)
  1063. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  1064. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1065. # Reject names that are not valid shell variable names.
  1066. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  1067. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  1068. - fi
  1069. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  1070. - eval "enable_${ac_feature}=no" ;;
  1071. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1072. + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1073. + { (exit 1); exit 1; }; }
  1074. + ac_useropt_orig=$ac_useropt
  1075. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1076. + case $ac_user_opts in
  1077. + *"
  1078. +"enable_$ac_useropt"
  1079. +"*) ;;
  1080. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1081. + ac_unrecognized_sep=', ';;
  1082. + esac
  1083. + eval enable_$ac_useropt=no ;;
  1084. +
  1085. + -docdir | --docdir | --docdi | --doc | --do)
  1086. + ac_prev=docdir ;;
  1087. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1088. + docdir=$ac_optarg ;;
  1089. +
  1090. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1091. + ac_prev=dvidir ;;
  1092. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1093. + dvidir=$ac_optarg ;;
  1094. -enable-* | --enable-*)
  1095. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  1096. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1097. # Reject names that are not valid shell variable names.
  1098. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  1099. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  1100. - fi
  1101. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  1102. - case "$ac_option" in
  1103. - *=*) ;;
  1104. - *) ac_optarg=yes ;;
  1105. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1106. + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1107. + { (exit 1); exit 1; }; }
  1108. + ac_useropt_orig=$ac_useropt
  1109. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1110. + case $ac_user_opts in
  1111. + *"
  1112. +"enable_$ac_useropt"
  1113. +"*) ;;
  1114. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1115. + ac_unrecognized_sep=', ';;
  1116. esac
  1117. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  1118. + eval enable_$ac_useropt=\$ac_optarg ;;
  1119. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1120. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1121. @@ -130,116 +1079,77 @@ do
  1122. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1123. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1124. | --exec=* | --exe=* | --ex=*)
  1125. - exec_prefix="$ac_optarg" ;;
  1126. + exec_prefix=$ac_optarg ;;
  1127. -gas | --gas | --ga | --g)
  1128. # Obsolete; use --with-gas.
  1129. with_gas=yes ;;
  1130. - -help | --help | --hel | --he)
  1131. - # Omit some internal or obsolete options to make the list less imposing.
  1132. - # This message is too long to be a string in the A/UX 3.1 sh.
  1133. - cat << EOF
  1134. -Usage: configure [options] [host]
  1135. -Options: [defaults in brackets after descriptions]
  1136. -Configuration:
  1137. - --cache-file=FILE cache test results in FILE
  1138. - --help print this message
  1139. - --no-create do not create output files
  1140. - --quiet, --silent do not print \`checking...' messages
  1141. - --version print the version of autoconf that created configure
  1142. -Directory and file names:
  1143. - --prefix=PREFIX install architecture-independent files in PREFIX
  1144. - [$ac_default_prefix]
  1145. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1146. - [same as prefix]
  1147. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  1148. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  1149. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  1150. - --datadir=DIR read-only architecture-independent data in DIR
  1151. - [PREFIX/share]
  1152. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  1153. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  1154. - [PREFIX/com]
  1155. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  1156. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  1157. - --includedir=DIR C header files in DIR [PREFIX/include]
  1158. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  1159. - --infodir=DIR info documentation in DIR [PREFIX/info]
  1160. - --mandir=DIR man documentation in DIR [PREFIX/man]
  1161. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  1162. - --program-prefix=PREFIX prepend PREFIX to installed program names
  1163. - --program-suffix=SUFFIX append SUFFIX to installed program names
  1164. - --program-transform-name=PROGRAM
  1165. - run sed PROGRAM on installed program names
  1166. -EOF
  1167. - cat << EOF
  1168. -Host type:
  1169. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  1170. - --host=HOST configure for HOST [guessed]
  1171. - --target=TARGET configure for TARGET [TARGET=HOST]
  1172. -Features and packages:
  1173. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1174. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1175. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1176. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1177. - --x-includes=DIR X include files are in DIR
  1178. - --x-libraries=DIR X library files are in DIR
  1179. -EOF
  1180. - if test -n "$ac_help"; then
  1181. - echo "--enable and --with options recognized:$ac_help"
  1182. - fi
  1183. - exit 0 ;;
  1184. + -help | --help | --hel | --he | -h)
  1185. + ac_init_help=long ;;
  1186. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1187. + ac_init_help=recursive ;;
  1188. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1189. + ac_init_help=short ;;
  1190. -host | --host | --hos | --ho)
  1191. - ac_prev=host ;;
  1192. + ac_prev=host_alias ;;
  1193. -host=* | --host=* | --hos=* | --ho=*)
  1194. - host="$ac_optarg" ;;
  1195. + host_alias=$ac_optarg ;;
  1196. +
  1197. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1198. + ac_prev=htmldir ;;
  1199. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1200. + | --ht=*)
  1201. + htmldir=$ac_optarg ;;
  1202. -includedir | --includedir | --includedi | --included | --include \
  1203. | --includ | --inclu | --incl | --inc)
  1204. ac_prev=includedir ;;
  1205. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1206. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1207. - includedir="$ac_optarg" ;;
  1208. + includedir=$ac_optarg ;;
  1209. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1210. ac_prev=infodir ;;
  1211. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1212. - infodir="$ac_optarg" ;;
  1213. + infodir=$ac_optarg ;;
  1214. -libdir | --libdir | --libdi | --libd)
  1215. ac_prev=libdir ;;
  1216. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1217. - libdir="$ac_optarg" ;;
  1218. + libdir=$ac_optarg ;;
  1219. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1220. | --libexe | --libex | --libe)
  1221. ac_prev=libexecdir ;;
  1222. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1223. | --libexe=* | --libex=* | --libe=*)
  1224. - libexecdir="$ac_optarg" ;;
  1225. + libexecdir=$ac_optarg ;;
  1226. +
  1227. + -localedir | --localedir | --localedi | --localed | --locale)
  1228. + ac_prev=localedir ;;
  1229. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1230. + localedir=$ac_optarg ;;
  1231. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1232. - | --localstate | --localstat | --localsta | --localst \
  1233. - | --locals | --local | --loca | --loc | --lo)
  1234. + | --localstate | --localstat | --localsta | --localst | --locals)
  1235. ac_prev=localstatedir ;;
  1236. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1237. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  1238. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  1239. - localstatedir="$ac_optarg" ;;
  1240. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1241. + localstatedir=$ac_optarg ;;
  1242. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1243. ac_prev=mandir ;;
  1244. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1245. - mandir="$ac_optarg" ;;
  1246. + mandir=$ac_optarg ;;
  1247. -nfp | --nfp | --nf)
  1248. # Obsolete; use --without-fp.
  1249. with_fp=no ;;
  1250. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1251. - | --no-cr | --no-c)
  1252. + | --no-cr | --no-c | -n)
  1253. no_create=yes ;;
  1254. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1255. @@ -253,26 +1163,26 @@ EOF
  1256. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1257. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1258. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1259. - oldincludedir="$ac_optarg" ;;
  1260. + oldincludedir=$ac_optarg ;;
  1261. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1262. ac_prev=prefix ;;
  1263. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1264. - prefix="$ac_optarg" ;;
  1265. + prefix=$ac_optarg ;;
  1266. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1267. | --program-pre | --program-pr | --program-p)
  1268. ac_prev=program_prefix ;;
  1269. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1270. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1271. - program_prefix="$ac_optarg" ;;
  1272. + program_prefix=$ac_optarg ;;
  1273. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1274. | --program-suf | --program-su | --program-s)
  1275. ac_prev=program_suffix ;;
  1276. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1277. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1278. - program_suffix="$ac_optarg" ;;
  1279. + program_suffix=$ac_optarg ;;
  1280. -program-transform-name | --program-transform-name \
  1281. | --program-transform-nam | --program-transform-na \
  1282. @@ -289,7 +1199,17 @@ EOF
  1283. | --program-transfo=* | --program-transf=* \
  1284. | --program-trans=* | --program-tran=* \
  1285. | --progr-tra=* | --program-tr=* | --program-t=*)
  1286. - program_transform_name="$ac_optarg" ;;
  1287. + program_transform_name=$ac_optarg ;;
  1288. +
  1289. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1290. + ac_prev=pdfdir ;;
  1291. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1292. + pdfdir=$ac_optarg ;;
  1293. +
  1294. + -psdir | --psdir | --psdi | --psd | --ps)
  1295. + ac_prev=psdir ;;
  1296. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1297. + psdir=$ac_optarg ;;
  1298. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1299. | -silent | --silent | --silen | --sile | --sil)
  1300. @@ -299,7 +1219,7 @@ EOF
  1301. ac_prev=sbindir ;;
  1302. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1303. | --sbi=* | --sb=*)
  1304. - sbindir="$ac_optarg" ;;
  1305. + sbindir=$ac_optarg ;;
  1306. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1307. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1308. @@ -310,58 +1230,69 @@ EOF
  1309. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1310. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1311. | --sha=* | --sh=*)
  1312. - sharedstatedir="$ac_optarg" ;;
  1313. + sharedstatedir=$ac_optarg ;;
  1314. -site | --site | --sit)
  1315. ac_prev=site ;;
  1316. -site=* | --site=* | --sit=*)
  1317. - site="$ac_optarg" ;;
  1318. + site=$ac_optarg ;;
  1319. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1320. ac_prev=srcdir ;;
  1321. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1322. - srcdir="$ac_optarg" ;;
  1323. + srcdir=$ac_optarg ;;
  1324. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1325. | --syscon | --sysco | --sysc | --sys | --sy)
  1326. ac_prev=sysconfdir ;;
  1327. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1328. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1329. - sysconfdir="$ac_optarg" ;;
  1330. + sysconfdir=$ac_optarg ;;
  1331. -target | --target | --targe | --targ | --tar | --ta | --t)
  1332. - ac_prev=target ;;
  1333. + ac_prev=target_alias ;;
  1334. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1335. - target="$ac_optarg" ;;
  1336. + target_alias=$ac_optarg ;;
  1337. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1338. verbose=yes ;;
  1339. - -version | --version | --versio | --versi | --vers)
  1340. - echo "configure generated by autoconf version 2.13"
  1341. - exit 0 ;;
  1342. + -version | --version | --versio | --versi | --vers | -V)
  1343. + ac_init_version=: ;;
  1344. -with-* | --with-*)
  1345. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  1346. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1347. # Reject names that are not valid shell variable names.
  1348. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  1349. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  1350. - fi
  1351. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  1352. - case "$ac_option" in
  1353. - *=*) ;;
  1354. - *) ac_optarg=yes ;;
  1355. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1356. + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1357. + { (exit 1); exit 1; }; }
  1358. + ac_useropt_orig=$ac_useropt
  1359. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1360. + case $ac_user_opts in
  1361. + *"
  1362. +"with_$ac_useropt"
  1363. +"*) ;;
  1364. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1365. + ac_unrecognized_sep=', ';;
  1366. esac
  1367. - eval "with_${ac_package}='$ac_optarg'" ;;
  1368. + eval with_$ac_useropt=\$ac_optarg ;;
  1369. -without-* | --without-*)
  1370. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  1371. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1372. # Reject names that are not valid shell variable names.
  1373. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  1374. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  1375. - fi
  1376. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  1377. - eval "with_${ac_package}=no" ;;
  1378. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1379. + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1380. + { (exit 1); exit 1; }; }
  1381. + ac_useropt_orig=$ac_useropt
  1382. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1383. + case $ac_user_opts in
  1384. + *"
  1385. +"with_$ac_useropt"
  1386. +"*) ;;
  1387. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1388. + ac_unrecognized_sep=', ';;
  1389. + esac
  1390. + eval with_$ac_useropt=no ;;
  1391. --x)
  1392. # Obsolete; use --with-x.
  1393. @@ -372,163 +1303,701 @@ EOF
  1394. ac_prev=x_includes ;;
  1395. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1396. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1397. - x_includes="$ac_optarg" ;;
  1398. + x_includes=$ac_optarg ;;
  1399. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1400. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1401. ac_prev=x_libraries ;;
  1402. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1403. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1404. - x_libraries="$ac_optarg" ;;
  1405. + x_libraries=$ac_optarg ;;
  1406. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  1407. + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1408. +Try \`$0 --help' for more information." >&2
  1409. + { (exit 1); exit 1; }; }
  1410. ;;
  1411. + *=*)
  1412. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1413. + # Reject names that are not valid shell variable names.
  1414. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1415. + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1416. + { (exit 1); exit 1; }; }
  1417. + eval $ac_envvar=\$ac_optarg
  1418. + export $ac_envvar ;;
  1419. +
  1420. *)
  1421. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  1422. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  1423. - fi
  1424. - if test "x$nonopt" != xNONE; then
  1425. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  1426. - fi
  1427. - nonopt="$ac_option"
  1428. + # FIXME: should be removed in autoconf 3.0.
  1429. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1430. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1431. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1432. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1433. ;;
  1434. esac
  1435. done
  1436. if test -n "$ac_prev"; then
  1437. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  1438. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1439. + { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1440. + { (exit 1); exit 1; }; }
  1441. fi
  1442. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1443. -
  1444. -# File descriptor usage:
  1445. -# 0 standard input
  1446. -# 1 file creation
  1447. -# 2 errors and warnings
  1448. -# 3 some systems may open it to /dev/tty
  1449. -# 4 used on the Kubota Titan
  1450. -# 6 checking for... messages and results
  1451. -# 5 compiler messages saved in config.log
  1452. -if test "$silent" = yes; then
  1453. - exec 6>/dev/null
  1454. -else
  1455. - exec 6>&1
  1456. +if test -n "$ac_unrecognized_opts"; then
  1457. + case $enable_option_checking in
  1458. + no) ;;
  1459. + fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1460. + { (exit 1); exit 1; }; } ;;
  1461. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1462. + esac
  1463. fi
  1464. -exec 5>./config.log
  1465. -
  1466. -echo "\
  1467. -This file contains any messages produced by compilers while
  1468. -running configure, to aid debugging if configure makes a mistake.
  1469. -" 1>&5
  1470. -# Strip out --no-create and --no-recursion so they do not pile up.
  1471. -# Also quote any args containing shell metacharacters.
  1472. -ac_configure_args=
  1473. -for ac_arg
  1474. +# Check all directory arguments for consistency.
  1475. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1476. + datadir sysconfdir sharedstatedir localstatedir includedir \
  1477. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1478. + libdir localedir mandir
  1479. do
  1480. - case "$ac_arg" in
  1481. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1482. - | --no-cr | --no-c) ;;
  1483. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1484. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  1485. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  1486. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1487. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  1488. + eval ac_val=\$$ac_var
  1489. + # Remove trailing slashes.
  1490. + case $ac_val in
  1491. + */ )
  1492. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1493. + eval $ac_var=\$ac_val;;
  1494. + esac
  1495. + # Be sure to have absolute directory names.
  1496. + case $ac_val in
  1497. + [\\/$]* | ?:[\\/]* ) continue;;
  1498. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1499. esac
  1500. + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1501. + { (exit 1); exit 1; }; }
  1502. done
  1503. -# NLS nuisances.
  1504. -# Only set these to C if already set. These must not be set unconditionally
  1505. -# because not all systems understand e.g. LANG=C (notably SCO).
  1506. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  1507. -# Non-C LC_CTYPE values break the ctype check.
  1508. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  1509. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  1510. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  1511. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  1512. +# There might be people who depend on the old broken behavior: `$host'
  1513. +# used to hold the argument of --host etc.
  1514. +# FIXME: To remove some day.
  1515. +build=$build_alias
  1516. +host=$host_alias
  1517. +target=$target_alias
  1518. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1519. -rm -rf conftest* confdefs.h
  1520. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1521. -echo > confdefs.h
  1522. +# FIXME: To remove some day.
  1523. +if test "x$host_alias" != x; then
  1524. + if test "x$build_alias" = x; then
  1525. + cross_compiling=maybe
  1526. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1527. + If a cross compiler is detected then cross compile mode will be used." >&2
  1528. + elif test "x$build_alias" != "x$host_alias"; then
  1529. + cross_compiling=yes
  1530. + fi
  1531. +fi
  1532. +
  1533. +ac_tool_prefix=
  1534. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1535. +
  1536. +test "$silent" = yes && exec 6>/dev/null
  1537. +
  1538. +
  1539. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1540. +ac_ls_di=`ls -di .` &&
  1541. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1542. + { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1543. + { (exit 1); exit 1; }; }
  1544. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1545. + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1546. + { (exit 1); exit 1; }; }
  1547. -# A filename unique to this package, relative to the directory that
  1548. -# configure is in, which we can look for to find out if srcdir is correct.
  1549. -ac_unique_file=src/libnet_build_ip.c
  1550. # Find the source files, if location was not specified.
  1551. if test -z "$srcdir"; then
  1552. ac_srcdir_defaulted=yes
  1553. - # Try the directory containing this script, then its parent.
  1554. - ac_prog=$0
  1555. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  1556. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  1557. + # Try the directory containing this script, then the parent directory.
  1558. + ac_confdir=`$as_dirname -- "$as_myself" ||
  1559. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1560. + X"$as_myself" : 'X\(//\)[^/]' \| \
  1561. + X"$as_myself" : 'X\(//\)$' \| \
  1562. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1563. +$as_echo X"$as_myself" |
  1564. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1565. + s//\1/
  1566. + q
  1567. + }
  1568. + /^X\(\/\/\)[^/].*/{
  1569. + s//\1/
  1570. + q
  1571. + }
  1572. + /^X\(\/\/\)$/{
  1573. + s//\1/
  1574. + q
  1575. + }
  1576. + /^X\(\/\).*/{
  1577. + s//\1/
  1578. + q
  1579. + }
  1580. + s/.*/./; q'`
  1581. srcdir=$ac_confdir
  1582. - if test ! -r $srcdir/$ac_unique_file; then
  1583. + if test ! -r "$srcdir/$ac_unique_file"; then
  1584. srcdir=..
  1585. fi
  1586. else
  1587. ac_srcdir_defaulted=no
  1588. fi
  1589. -if test ! -r $srcdir/$ac_unique_file; then
  1590. - if test "$ac_srcdir_defaulted" = yes; then
  1591. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  1592. - else
  1593. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  1594. - fi
  1595. +if test ! -r "$srcdir/$ac_unique_file"; then
  1596. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1597. + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1598. + { (exit 1); exit 1; }; }
  1599. fi
  1600. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  1601. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1602. +ac_abs_confdir=`(
  1603. + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1604. + { (exit 1); exit 1; }; }
  1605. + pwd)`
  1606. +# When building in place, set srcdir=.
  1607. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  1608. + srcdir=.
  1609. +fi
  1610. +# Remove unnecessary trailing slashes from srcdir.
  1611. +# Double slashes in file names in object file debugging info
  1612. +# mess up M-x gdb in Emacs.
  1613. +case $srcdir in
  1614. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1615. +esac
  1616. +for ac_var in $ac_precious_vars; do
  1617. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1618. + eval ac_env_${ac_var}_value=\$${ac_var}
  1619. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1620. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1621. +done
  1622. -# Prefer explicitly selected file to automatically selected ones.
  1623. -if test -z "$CONFIG_SITE"; then
  1624. - if test "x$prefix" != xNONE; then
  1625. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1626. - else
  1627. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1628. - fi
  1629. +#
  1630. +# Report the --help message.
  1631. +#
  1632. +if test "$ac_init_help" = "long"; then
  1633. + # Omit some internal or obsolete options to make the list less imposing.
  1634. + # This message is too long to be a string in the A/UX 3.1 sh.
  1635. + cat <<_ACEOF
  1636. +\`configure' configures this package to adapt to many kinds of systems.
  1637. +
  1638. +Usage: $0 [OPTION]... [VAR=VALUE]...
  1639. +
  1640. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1641. +VAR=VALUE. See below for descriptions of some of the useful variables.
  1642. +
  1643. +Defaults for the options are specified in brackets.
  1644. +
  1645. +Configuration:
  1646. + -h, --help display this help and exit
  1647. + --help=short display options specific to this package
  1648. + --help=recursive display the short help of all the included packages
  1649. + -V, --version display version information and exit
  1650. + -q, --quiet, --silent do not print \`checking...' messages
  1651. + --cache-file=FILE cache test results in FILE [disabled]
  1652. + -C, --config-cache alias for \`--cache-file=config.cache'
  1653. + -n, --no-create do not create output files
  1654. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1655. +
  1656. +Installation directories:
  1657. + --prefix=PREFIX install architecture-independent files in PREFIX
  1658. + [$ac_default_prefix]
  1659. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1660. + [PREFIX]
  1661. +
  1662. +By default, \`make install' will install all the files in
  1663. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1664. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1665. +for instance \`--prefix=\$HOME'.
  1666. +
  1667. +For better control, use the options below.
  1668. +
  1669. +Fine tuning of the installation directories:
  1670. + --bindir=DIR user executables [EPREFIX/bin]
  1671. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  1672. + --libexecdir=DIR program executables [EPREFIX/libexec]
  1673. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1674. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1675. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1676. + --libdir=DIR object code libraries [EPREFIX/lib]
  1677. + --includedir=DIR C header files [PREFIX/include]
  1678. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1679. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1680. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1681. + --infodir=DIR info documentation [DATAROOTDIR/info]
  1682. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1683. + --mandir=DIR man documentation [DATAROOTDIR/man]
  1684. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1685. + --htmldir=DIR html documentation [DOCDIR]
  1686. + --dvidir=DIR dvi documentation [DOCDIR]
  1687. + --pdfdir=DIR pdf documentation [DOCDIR]
  1688. + --psdir=DIR ps documentation [DOCDIR]
  1689. +_ACEOF
  1690. +
  1691. + cat <<\_ACEOF
  1692. +
  1693. +Program names:
  1694. + --program-prefix=PREFIX prepend PREFIX to installed program names
  1695. + --program-suffix=SUFFIX append SUFFIX to installed program names
  1696. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1697. +
  1698. +System types:
  1699. + --build=BUILD configure for building on BUILD [guessed]
  1700. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1701. + --target=TARGET configure for building compilers for TARGET [HOST]
  1702. +_ACEOF
  1703. fi
  1704. -for ac_site_file in $CONFIG_SITE; do
  1705. +
  1706. +if test -n "$ac_init_help"; then
  1707. +
  1708. + cat <<\_ACEOF
  1709. +
  1710. +Optional Features:
  1711. + --disable-option-checking ignore unrecognized --enable/--with options
  1712. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1713. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1714. + --disable-dependency-tracking speeds up one-time build
  1715. + --enable-dependency-tracking do not reject slow dependency extractors
  1716. + --enable-shared[=PKGS] build shared libraries [default=yes]
  1717. + --enable-static[=PKGS] build static libraries [default=yes]
  1718. + --enable-fast-install[=PKGS]
  1719. + optimize for fast installation [default=yes]
  1720. + --disable-libtool-lock avoid locking (might break parallel builds)
  1721. +
  1722. +Optional Packages:
  1723. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1724. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1725. + --with-pf_packet=yes,no override defaults
  1726. + --with-fast_x86_check=yes,no override defaults
  1727. + --with-pic try to use only PIC/non-PIC objects [default=use
  1728. + both]
  1729. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1730. +
  1731. +Some influential environment variables:
  1732. + CC C compiler command
  1733. + CFLAGS C compiler flags
  1734. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1735. + nonstandard directory <lib dir>
  1736. + LIBS libraries to pass to the linker, e.g. -l<library>
  1737. + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1738. + you have headers in a nonstandard directory <include dir>
  1739. + CPP C preprocessor
  1740. +
  1741. +Use these variables to override the choices made by `configure' or to help
  1742. +it to find libraries and programs with nonstandard names/locations.
  1743. +
  1744. +_ACEOF
  1745. +ac_status=$?
  1746. +fi
  1747. +
  1748. +if test "$ac_init_help" = "recursive"; then
  1749. + # If there are subdirs, report their specific --help.
  1750. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1751. + test -d "$ac_dir" ||
  1752. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1753. + continue
  1754. + ac_builddir=.
  1755. +
  1756. +case "$ac_dir" in
  1757. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1758. +*)
  1759. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1760. + # A ".." for each directory in $ac_dir_suffix.
  1761. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1762. + case $ac_top_builddir_sub in
  1763. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1764. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1765. + esac ;;
  1766. +esac
  1767. +ac_abs_top_builddir=$ac_pwd
  1768. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1769. +# for backward compatibility:
  1770. +ac_top_builddir=$ac_top_build_prefix
  1771. +
  1772. +case $srcdir in
  1773. + .) # We are building in place.
  1774. + ac_srcdir=.
  1775. + ac_top_srcdir=$ac_top_builddir_sub
  1776. + ac_abs_top_srcdir=$ac_pwd ;;
  1777. + [\\/]* | ?:[\\/]* ) # Absolute name.
  1778. + ac_srcdir=$srcdir$ac_dir_suffix;
  1779. + ac_top_srcdir=$srcdir
  1780. + ac_abs_top_srcdir=$srcdir ;;
  1781. + *) # Relative name.
  1782. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1783. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  1784. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1785. +esac
  1786. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1787. +
  1788. + cd "$ac_dir" || { ac_status=$?; continue; }
  1789. + # Check for guested configure.
  1790. + if test -f "$ac_srcdir/configure.gnu"; then
  1791. + echo &&
  1792. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1793. + elif test -f "$ac_srcdir/configure"; then
  1794. + echo &&
  1795. + $SHELL "$ac_srcdir/configure" --help=recursive
  1796. + else
  1797. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1798. + fi || ac_status=$?
  1799. + cd "$ac_pwd" || { ac_status=$?; break; }
  1800. + done
  1801. +fi
  1802. +
  1803. +test -n "$ac_init_help" && exit $ac_status
  1804. +if $ac_init_version; then
  1805. + cat <<\_ACEOF
  1806. +configure
  1807. +generated by GNU Autoconf 2.63
  1808. +
  1809. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1810. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1811. +This configure script is free software; the Free Software Foundation
  1812. +gives unlimited permission to copy, distribute and modify it.
  1813. +_ACEOF
  1814. + exit
  1815. +fi
  1816. +cat >config.log <<_ACEOF
  1817. +This file contains any messages produced by compilers while
  1818. +running configure, to aid debugging if configure makes a mistake.
  1819. +
  1820. +It was created by $as_me, which was
  1821. +generated by GNU Autoconf 2.63. Invocation command line was
  1822. +
  1823. + $ $0 $@
  1824. +
  1825. +_ACEOF
  1826. +exec 5>>config.log
  1827. +{
  1828. +cat <<_ASUNAME
  1829. +## --------- ##
  1830. +## Platform. ##
  1831. +## --------- ##
  1832. +
  1833. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1834. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1835. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1836. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1837. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1838. +
  1839. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1840. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1841. +
  1842. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1843. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1844. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1845. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1846. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1847. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1848. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1849. +
  1850. +_ASUNAME
  1851. +
  1852. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1853. +for as_dir in $PATH
  1854. +do
  1855. + IFS=$as_save_IFS
  1856. + test -z "$as_dir" && as_dir=.
  1857. + $as_echo "PATH: $as_dir"
  1858. +done
  1859. +IFS=$as_save_IFS
  1860. +
  1861. +} >&5
  1862. +
  1863. +cat >&5 <<_ACEOF
  1864. +
  1865. +
  1866. +## ----------- ##
  1867. +## Core tests. ##
  1868. +## ----------- ##
  1869. +
  1870. +_ACEOF
  1871. +
  1872. +
  1873. +# Keep a trace of the command line.
  1874. +# Strip out --no-create and --no-recursion so they do not pile up.
  1875. +# Strip out --silent because we don't want to record it for future runs.
  1876. +# Also quote any args containing shell meta-characters.
  1877. +# Make two passes to allow for proper duplicate-argument suppression.
  1878. +ac_configure_args=
  1879. +ac_configure_args0=
  1880. +ac_configure_args1=
  1881. +ac_must_keep_next=false
  1882. +for ac_pass in 1 2
  1883. +do
  1884. + for ac_arg
  1885. + do
  1886. + case $ac_arg in
  1887. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1888. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1889. + | -silent | --silent | --silen | --sile | --sil)
  1890. + continue ;;
  1891. + *\'*)
  1892. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1893. + esac
  1894. + case $ac_pass in
  1895. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1896. + 2)
  1897. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1898. + if test $ac_must_keep_next = true; then
  1899. + ac_must_keep_next=false # Got value, back to normal.
  1900. + else
  1901. + case $ac_arg in
  1902. + *=* | --config-cache | -C | -disable-* | --disable-* \
  1903. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1904. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1905. + | -with-* | --with-* | -without-* | --without-* | --x)
  1906. + case "$ac_configure_args0 " in
  1907. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1908. + esac
  1909. + ;;
  1910. + -* ) ac_must_keep_next=true ;;
  1911. + esac
  1912. + fi
  1913. + ac_configure_args="$ac_configure_args '$ac_arg'"
  1914. + ;;
  1915. + esac
  1916. + done
  1917. +done
  1918. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1919. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1920. +
  1921. +# When interrupted or exit'd, cleanup temporary files, and complete
  1922. +# config.log. We remove comments because anyway the quotes in there
  1923. +# would cause problems or look ugly.
  1924. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  1925. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1926. +trap 'exit_status=$?
  1927. + # Save into config.log some information that might help in debugging.
  1928. + {
  1929. + echo
  1930. +
  1931. + cat <<\_ASBOX
  1932. +## ---------------- ##
  1933. +## Cache variables. ##
  1934. +## ---------------- ##
  1935. +_ASBOX
  1936. + echo
  1937. + # The following way of writing the cache mishandles newlines in values,
  1938. +(
  1939. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1940. + eval ac_val=\$$ac_var
  1941. + case $ac_val in #(
  1942. + *${as_nl}*)
  1943. + case $ac_var in #(
  1944. + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1945. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1946. + esac
  1947. + case $ac_var in #(
  1948. + _ | IFS | as_nl) ;; #(
  1949. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1950. + *) $as_unset $ac_var ;;
  1951. + esac ;;
  1952. + esac
  1953. + done
  1954. + (set) 2>&1 |
  1955. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1956. + *${as_nl}ac_space=\ *)
  1957. + sed -n \
  1958. + "s/'\''/'\''\\\\'\'''\''/g;
  1959. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1960. + ;; #(
  1961. + *)
  1962. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1963. + ;;
  1964. + esac |
  1965. + sort
  1966. +)
  1967. + echo
  1968. +
  1969. + cat <<\_ASBOX
  1970. +## ----------------- ##
  1971. +## Output variables. ##
  1972. +## ----------------- ##
  1973. +_ASBOX
  1974. + echo
  1975. + for ac_var in $ac_subst_vars
  1976. + do
  1977. + eval ac_val=\$$ac_var
  1978. + case $ac_val in
  1979. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1980. + esac
  1981. + $as_echo "$ac_var='\''$ac_val'\''"
  1982. + done | sort
  1983. + echo
  1984. +
  1985. + if test -n "$ac_subst_files"; then
  1986. + cat <<\_ASBOX
  1987. +## ------------------- ##
  1988. +## File substitutions. ##
  1989. +## ------------------- ##
  1990. +_ASBOX
  1991. + echo
  1992. + for ac_var in $ac_subst_files
  1993. + do
  1994. + eval ac_val=\$$ac_var
  1995. + case $ac_val in
  1996. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1997. + esac
  1998. + $as_echo "$ac_var='\''$ac_val'\''"
  1999. + done | sort
  2000. + echo
  2001. + fi
  2002. +
  2003. + if test -s confdefs.h; then
  2004. + cat <<\_ASBOX
  2005. +## ----------- ##
  2006. +## confdefs.h. ##
  2007. +## ----------- ##
  2008. +_ASBOX
  2009. + echo
  2010. + cat confdefs.h
  2011. + echo
  2012. + fi
  2013. + test "$ac_signal" != 0 &&
  2014. + $as_echo "$as_me: caught signal $ac_signal"
  2015. + $as_echo "$as_me: exit $exit_status"
  2016. + } >&5
  2017. + rm -f core *.core core.conftest.* &&
  2018. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2019. + exit $exit_status
  2020. +' 0
  2021. +for ac_signal in 1 2 13 15; do
  2022. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  2023. +done
  2024. +ac_signal=0
  2025. +
  2026. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  2027. +rm -f -r conftest* confdefs.h
  2028. +
  2029. +# Predefined preprocessor variables.
  2030. +
  2031. +cat >>confdefs.h <<_ACEOF
  2032. +#define PACKAGE_NAME "$PACKAGE_NAME"
  2033. +_ACEOF
  2034. +
  2035. +
  2036. +cat >>confdefs.h <<_ACEOF
  2037. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2038. +_ACEOF
  2039. +
  2040. +
  2041. +cat >>confdefs.h <<_ACEOF
  2042. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  2043. +_ACEOF
  2044. +
  2045. +
  2046. +cat >>confdefs.h <<_ACEOF
  2047. +#define PACKAGE_STRING "$PACKAGE_STRING"
  2048. +_ACEOF
  2049. +
  2050. +
  2051. +cat >>confdefs.h <<_ACEOF
  2052. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2053. +_ACEOF
  2054. +
  2055. +
  2056. +# Let the site file select an alternate cache file if it wants to.
  2057. +# Prefer an explicitly selected file to automatically selected ones.
  2058. +ac_site_file1=NONE
  2059. +ac_site_file2=NONE
  2060. +if test -n "$CONFIG_SITE"; then
  2061. + ac_site_file1=$CONFIG_SITE
  2062. +elif test "x$prefix" != xNONE; then
  2063. + ac_site_file1=$prefix/share/config.site
  2064. + ac_site_file2=$prefix/etc/config.site
  2065. +else
  2066. + ac_site_file1=$ac_default_prefix/share/config.site
  2067. + ac_site_file2=$ac_default_prefix/etc/config.site
  2068. +fi
  2069. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2070. +do
  2071. + test "x$ac_site_file" = xNONE && continue
  2072. if test -r "$ac_site_file"; then
  2073. - echo "loading site script $ac_site_file"
  2074. + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  2075. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2076. + sed 's/^/| /' "$ac_site_file" >&5
  2077. . "$ac_site_file"
  2078. fi
  2079. done
  2080. if test -r "$cache_file"; then
  2081. - echo "loading cache $cache_file"
  2082. - . $cache_file
  2083. + # Some versions of bash will fail to source /dev/null (special
  2084. + # files actually), so we avoid doing that.
  2085. + if test -f "$cache_file"; then
  2086. + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  2087. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  2088. + case $cache_file in
  2089. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2090. + *) . "./$cache_file";;
  2091. + esac
  2092. + fi
  2093. else
  2094. - echo "creating cache $cache_file"
  2095. - > $cache_file
  2096. + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  2097. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  2098. + >$cache_file
  2099. fi
  2100. -ac_ext=c
  2101. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2102. -ac_cpp='$CPP $CPPFLAGS'
  2103. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2104. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2105. -cross_compiling=$ac_cv_prog_cc_cross
  2106. -
  2107. -ac_exeext=
  2108. -ac_objext=o
  2109. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  2110. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  2111. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  2112. - ac_n= ac_c='
  2113. -' ac_t=' '
  2114. - else
  2115. - ac_n=-n ac_c= ac_t=
  2116. +# Check that the precious variables saved in the cache have kept the same
  2117. +# value.
  2118. +ac_cache_corrupted=false
  2119. +for ac_var in $ac_precious_vars; do
  2120. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2121. + eval ac_new_set=\$ac_env_${ac_var}_set
  2122. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2123. + eval ac_new_val=\$ac_env_${ac_var}_value
  2124. + case $ac_old_set,$ac_new_set in
  2125. + set,)
  2126. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2127. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2128. + ac_cache_corrupted=: ;;
  2129. + ,set)
  2130. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  2131. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2132. + ac_cache_corrupted=: ;;
  2133. + ,);;
  2134. + *)
  2135. + if test "x$ac_old_val" != "x$ac_new_val"; then
  2136. + # differences in whitespace do not lead to failure.
  2137. + ac_old_val_w=`echo x $ac_old_val`
  2138. + ac_new_val_w=`echo x $ac_new_val`
  2139. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2140. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  2141. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2142. + ac_cache_corrupted=:
  2143. + else
  2144. + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2145. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2146. + eval $ac_var=\$ac_old_val
  2147. + fi
  2148. + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  2149. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2150. + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  2151. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2152. + fi;;
  2153. + esac
  2154. + # Pass precious variables to config.status.
  2155. + if test "$ac_new_set" = set; then
  2156. + case $ac_new_val in
  2157. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2158. + *) ac_arg=$ac_var=$ac_new_val ;;
  2159. + esac
  2160. + case " $ac_configure_args " in
  2161. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2162. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2163. + esac
  2164. fi
  2165. -else
  2166. - ac_n= ac_c='\c' ac_t=
  2167. +done
  2168. +if $ac_cache_corrupted; then
  2169. + { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2170. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2171. + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2172. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2173. + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2174. +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2175. + { (exit 1); exit 1; }; }
  2176. fi
  2177. -VER=`cat VERSION`
  2178. -echo "$ac_t""Beginning autoconfiguration process for libnet-$VER..." 1>&6
  2179. @@ -543,114 +2012,616 @@ echo "$ac_t""Beginning autoconfiguration
  2180. +ac_ext=c
  2181. +ac_cpp='$CPP $CPPFLAGS'
  2182. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2183. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2184. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2185. +
  2186. +
  2187. ac_aux_dir=
  2188. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  2189. - if test -f $ac_dir/install-sh; then
  2190. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2191. + if test -f "$ac_dir/install-sh"; then
  2192. ac_aux_dir=$ac_dir
  2193. ac_install_sh="$ac_aux_dir/install-sh -c"
  2194. break
  2195. - elif test -f $ac_dir/install.sh; then
  2196. + elif test -f "$ac_dir/install.sh"; then
  2197. ac_aux_dir=$ac_dir
  2198. ac_install_sh="$ac_aux_dir/install.sh -c"
  2199. break
  2200. + elif test -f "$ac_dir/shtool"; then
  2201. + ac_aux_dir=$ac_dir
  2202. + ac_install_sh="$ac_aux_dir/shtool install -c"
  2203. + break
  2204. fi
  2205. done
  2206. if test -z "$ac_aux_dir"; then
  2207. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  2208. + { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2209. +$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2210. + { (exit 1); exit 1; }; }
  2211. fi
  2212. -ac_config_guess=$ac_aux_dir/config.guess
  2213. -ac_config_sub=$ac_aux_dir/config.sub
  2214. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  2215. +# These three variables are undocumented and unsupported,
  2216. +# and are intended to be withdrawn in a future Autoconf release.
  2217. +# They can cause serious problems if a builder's source tree is in a directory
  2218. +# whose full name contains unusual characters.
  2219. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2220. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2221. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2222. +
  2223. +
  2224. +# Make sure we can run config.sub.
  2225. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2226. + { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2227. +$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2228. + { (exit 1); exit 1; }; }
  2229. +
  2230. +{ $as_echo "$as_me:$LINENO: checking build system type" >&5
  2231. +$as_echo_n "checking build system type... " >&6; }
  2232. +if test "${ac_cv_build+set}" = set; then
  2233. + $as_echo_n "(cached) " >&6
  2234. +else
  2235. + ac_build_alias=$build_alias
  2236. +test "x$ac_build_alias" = x &&
  2237. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2238. +test "x$ac_build_alias" = x &&
  2239. + { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2240. +$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2241. + { (exit 1); exit 1; }; }
  2242. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2243. + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2244. +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2245. + { (exit 1); exit 1; }; }
  2246. +
  2247. +fi
  2248. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2249. +$as_echo "$ac_cv_build" >&6; }
  2250. +case $ac_cv_build in
  2251. +*-*-*) ;;
  2252. +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2253. +$as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2254. + { (exit 1); exit 1; }; };;
  2255. +esac
  2256. +build=$ac_cv_build
  2257. +ac_save_IFS=$IFS; IFS='-'
  2258. +set x $ac_cv_build
  2259. +shift
  2260. +build_cpu=$1
  2261. +build_vendor=$2
  2262. +shift; shift
  2263. +# Remember, the first character of IFS is used to create $*,
  2264. +# except with old shells:
  2265. +build_os=$*
  2266. +IFS=$ac_save_IFS
  2267. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2268. +
  2269. +
  2270. +{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  2271. +$as_echo_n "checking host system type... " >&6; }
  2272. +if test "${ac_cv_host+set}" = set; then
  2273. + $as_echo_n "(cached) " >&6
  2274. +else
  2275. + if test "x$host_alias" = x; then
  2276. + ac_cv_host=$ac_cv_build
  2277. +else
  2278. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2279. + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2280. +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2281. + { (exit 1); exit 1; }; }
  2282. +fi
  2283. +
  2284. +fi
  2285. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2286. +$as_echo "$ac_cv_host" >&6; }
  2287. +case $ac_cv_host in
  2288. +*-*-*) ;;
  2289. +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2290. +$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2291. + { (exit 1); exit 1; }; };;
  2292. +esac
  2293. +host=$ac_cv_host
  2294. +ac_save_IFS=$IFS; IFS='-'
  2295. +set x $ac_cv_host
  2296. +shift
  2297. +host_cpu=$1
  2298. +host_vendor=$2
  2299. +shift; shift
  2300. +# Remember, the first character of IFS is used to create $*,
  2301. +# except with old shells:
  2302. +host_os=$*
  2303. +IFS=$ac_save_IFS
  2304. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2305. +
  2306. +
  2307. +{ $as_echo "$as_me:$LINENO: checking target system type" >&5
  2308. +$as_echo_n "checking target system type... " >&6; }
  2309. +if test "${ac_cv_target+set}" = set; then
  2310. + $as_echo_n "(cached) " >&6
  2311. +else
  2312. + if test "x$target_alias" = x; then
  2313. + ac_cv_target=$ac_cv_host
  2314. +else
  2315. + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2316. + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  2317. +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  2318. + { (exit 1); exit 1; }; }
  2319. +fi
  2320. +
  2321. +fi
  2322. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  2323. +$as_echo "$ac_cv_target" >&6; }
  2324. +case $ac_cv_target in
  2325. +*-*-*) ;;
  2326. +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  2327. +$as_echo "$as_me: error: invalid value of canonical target" >&2;}
  2328. + { (exit 1); exit 1; }; };;
  2329. +esac
  2330. +target=$ac_cv_target
  2331. +ac_save_IFS=$IFS; IFS='-'
  2332. +set x $ac_cv_target
  2333. +shift
  2334. +target_cpu=$1
  2335. +target_vendor=$2
  2336. +shift; shift
  2337. +# Remember, the first character of IFS is used to create $*,
  2338. +# except with old shells:
  2339. +target_os=$*
  2340. +IFS=$ac_save_IFS
  2341. +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2342. -# Do some error checking and defaulting for the host and target type.
  2343. -# The inputs are:
  2344. -# configure --host=HOST --target=TARGET --build=BUILD NONOPT
  2345. -#
  2346. -# The rules are:
  2347. -# 1. You are not allowed to specify --host, --target, and nonopt at the
  2348. -# same time.
  2349. -# 2. Host defaults to nonopt.
  2350. -# 3. If nonopt is not specified, then host defaults to the current host,
  2351. -# as determined by config.guess.
  2352. -# 4. Target and build default to nonopt.
  2353. -# 5. If nonopt is not specified, then target and build default to host.
  2354. # The aliases save the names the user supplied, while $host etc.
  2355. # will get canonicalized.
  2356. -case $host---$target---$nonopt in
  2357. -NONE---*---* | *---NONE---* | *---*---NONE) ;;
  2358. -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  2359. +test -n "$target_alias" &&
  2360. + test "$program_prefix$program_suffix$program_transform_name" = \
  2361. + NONENONEs,x,x, &&
  2362. + program_prefix=${target_alias}-
  2363. +
  2364. +
  2365. +am__api_version="1.8"
  2366. +# Find a good install program. We prefer a C program (faster),
  2367. +# so one script is as good as another. But avoid the broken or
  2368. +# incompatible versions:
  2369. +# SysV /etc/install, /usr/sbin/install
  2370. +# SunOS /usr/etc/install
  2371. +# IRIX /sbin/install
  2372. +# AIX /bin/install
  2373. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  2374. +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2375. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2376. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2377. +# OS/2's system install, which has a completely different semantic
  2378. +# ./install, which can be erroneously created by make from ./install.sh.
  2379. +# Reject install programs that cannot install multiple files.
  2380. +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2381. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  2382. +if test -z "$INSTALL"; then
  2383. +if test "${ac_cv_path_install+set}" = set; then
  2384. + $as_echo_n "(cached) " >&6
  2385. +else
  2386. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2387. +for as_dir in $PATH
  2388. +do
  2389. + IFS=$as_save_IFS
  2390. + test -z "$as_dir" && as_dir=.
  2391. + # Account for people who put trailing slashes in PATH elements.
  2392. +case $as_dir/ in
  2393. + ./ | .// | /cC/* | \
  2394. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2395. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2396. + /usr/ucb/* ) ;;
  2397. + *)
  2398. + # OSF1 and SCO ODT 3.0 have their own names for install.
  2399. + # Don't use installbsd from OSF since it installs stuff as root
  2400. + # by default.
  2401. + for ac_prog in ginstall scoinst install; do
  2402. + for ac_exec_ext in '' $ac_executable_extensions; do
  2403. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2404. + if test $ac_prog = install &&
  2405. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2406. + # AIX install. It has an incompatible calling convention.
  2407. + :
  2408. + elif test $ac_prog = install &&
  2409. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2410. + # program-specific install script used by HP pwplus--don't use.
  2411. + :
  2412. + else
  2413. + rm -rf conftest.one conftest.two conftest.dir
  2414. + echo one > conftest.one
  2415. + echo two > conftest.two
  2416. + mkdir conftest.dir
  2417. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2418. + test -s conftest.one && test -s conftest.two &&
  2419. + test -s conftest.dir/conftest.one &&
  2420. + test -s conftest.dir/conftest.two
  2421. + then
  2422. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2423. + break 3
  2424. + fi
  2425. + fi
  2426. + fi
  2427. + done
  2428. + done
  2429. + ;;
  2430. esac
  2431. +done
  2432. +IFS=$as_save_IFS
  2433. -# Make sure we can run config.sub.
  2434. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  2435. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  2436. +rm -rf conftest.one conftest.two conftest.dir
  2437. +
  2438. +fi
  2439. + if test "${ac_cv_path_install+set}" = set; then
  2440. + INSTALL=$ac_cv_path_install
  2441. + else
  2442. + # As a last resort, use the slow shell script. Don't cache a
  2443. + # value for INSTALL within a source directory, because that will
  2444. + # break other packages using the cache if that directory is
  2445. + # removed, or if the value is a relative name.
  2446. + INSTALL=$ac_install_sh
  2447. + fi
  2448. fi
  2449. +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2450. +$as_echo "$INSTALL" >&6; }
  2451. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  2452. -echo "configure:595: checking host system type" >&5
  2453. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2454. +# It thinks the first close brace ends the variable substitution.
  2455. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2456. -host_alias=$host
  2457. -case "$host_alias" in
  2458. -NONE)
  2459. - case $nonopt in
  2460. - NONE)
  2461. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  2462. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  2463. - fi ;;
  2464. - *) host_alias=$nonopt ;;
  2465. - esac ;;
  2466. -esac
  2467. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2468. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  2469. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2470. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2471. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2472. -echo "$ac_t""$host" 1>&6
  2473. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2474. -echo $ac_n "checking target system type""... $ac_c" 1>&6
  2475. -echo "configure:616: checking target system type" >&5
  2476. +{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2477. +$as_echo_n "checking whether build environment is sane... " >&6; }
  2478. +# Just in case
  2479. +sleep 1
  2480. +echo timestamp > conftest.file
  2481. +# Do `set' in a subshell so we don't clobber the current shell's
  2482. +# arguments. Must try -L first in case configure is actually a
  2483. +# symlink; some systems play weird games with the mod time of symlinks
  2484. +# (eg FreeBSD returns the mod time of the symlink's containing
  2485. +# directory).
  2486. +if (
  2487. + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2488. + if test "$*" = "X"; then
  2489. + # -L didn't work.
  2490. + set X `ls -t $srcdir/configure conftest.file`
  2491. + fi
  2492. + rm -f conftest.file
  2493. + if test "$*" != "X $srcdir/configure conftest.file" \
  2494. + && test "$*" != "X conftest.file $srcdir/configure"; then
  2495. -target_alias=$target
  2496. -case "$target_alias" in
  2497. -NONE)
  2498. - case $nonopt in
  2499. - NONE) target_alias=$host_alias ;;
  2500. - *) target_alias=$nonopt ;;
  2501. - esac ;;
  2502. + # If neither matched, then we have a broken ls. This can happen
  2503. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  2504. + # broken ls alias from the environment. This has actually
  2505. + # happened. Such a system could not be considered "sane".
  2506. + { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2507. +alias in your environment" >&5
  2508. +$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2509. +alias in your environment" >&2;}
  2510. + { (exit 1); exit 1; }; }
  2511. + fi
  2512. +
  2513. + test "$2" = conftest.file
  2514. + )
  2515. +then
  2516. + # Ok.
  2517. + :
  2518. +else
  2519. + { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2520. +Check your system clock" >&5
  2521. +$as_echo "$as_me: error: newly created file is older than distributed files!
  2522. +Check your system clock" >&2;}
  2523. + { (exit 1); exit 1; }; }
  2524. +fi
  2525. +{ $as_echo "$as_me:$LINENO: result: yes" >&5
  2526. +$as_echo "yes" >&6; }
  2527. +test "$program_prefix" != NONE &&
  2528. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2529. +# Use a double $ so make ignores it.
  2530. +test "$program_suffix" != NONE &&
  2531. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2532. +# Double any \ or $.
  2533. +# By default was `s,x,x', remove it if useless.
  2534. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2535. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2536. +
  2537. +# expand $ac_aux_dir to an absolute path
  2538. +am_aux_dir=`cd $ac_aux_dir && pwd`
  2539. +
  2540. +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2541. +# Use eval to expand $SHELL
  2542. +if eval "$MISSING --run true"; then
  2543. + am_missing_run="$MISSING --run "
  2544. +else
  2545. + am_missing_run=
  2546. + { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2547. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2548. +fi
  2549. +
  2550. +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2551. + # Keeping the `.' argument allows $(mkdir_p) to be used without
  2552. + # argument. Indeed, we sometimes output rules like
  2553. + # $(mkdir_p) $(somedir)
  2554. + # where $(somedir) is conditionally defined.
  2555. + # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  2556. + # expensive solution, as it forces Make to start a sub-shell.)
  2557. + mkdir_p='mkdir -p -- .'
  2558. +else
  2559. + # On NextStep and OpenStep, the `mkdir' command does not
  2560. + # recognize any option. It will interpret all options as
  2561. + # directories to create, and then abort because `.' already
  2562. + # exists.
  2563. + for d in ./-p ./--version;
  2564. + do
  2565. + test -d $d && rmdir $d
  2566. + done
  2567. + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2568. + if test -f "$ac_aux_dir/mkinstalldirs"; then
  2569. + mkdir_p='$(mkinstalldirs)'
  2570. + else
  2571. + mkdir_p='$(install_sh) -d'
  2572. + fi
  2573. +fi
  2574. +
  2575. +for ac_prog in gawk mawk nawk awk
  2576. +do
  2577. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2578. +set dummy $ac_prog; ac_word=$2
  2579. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2580. +$as_echo_n "checking for $ac_word... " >&6; }
  2581. +if test "${ac_cv_prog_AWK+set}" = set; then
  2582. + $as_echo_n "(cached) " >&6
  2583. +else
  2584. + if test -n "$AWK"; then
  2585. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2586. +else
  2587. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2588. +for as_dir in $PATH
  2589. +do
  2590. + IFS=$as_save_IFS
  2591. + test -z "$as_dir" && as_dir=.
  2592. + for ac_exec_ext in '' $ac_executable_extensions; do
  2593. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2594. + ac_cv_prog_AWK="$ac_prog"
  2595. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2596. + break 2
  2597. + fi
  2598. +done
  2599. +done
  2600. +IFS=$as_save_IFS
  2601. +
  2602. +fi
  2603. +fi
  2604. +AWK=$ac_cv_prog_AWK
  2605. +if test -n "$AWK"; then
  2606. + { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2607. +$as_echo "$AWK" >&6; }
  2608. +else
  2609. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2610. +$as_echo "no" >&6; }
  2611. +fi
  2612. +
  2613. +
  2614. + test -n "$AWK" && break
  2615. +done
  2616. +
  2617. +{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2618. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2619. +set x ${MAKE-make}
  2620. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2621. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2622. + $as_echo_n "(cached) " >&6
  2623. +else
  2624. + cat >conftest.make <<\_ACEOF
  2625. +SHELL = /bin/sh
  2626. +all:
  2627. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  2628. +_ACEOF
  2629. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2630. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2631. + *@@@%%%=?*=@@@%%%*)
  2632. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  2633. + *)
  2634. + eval ac_cv_prog_make_${ac_make}_set=no;;
  2635. esac
  2636. +rm -f conftest.make
  2637. +fi
  2638. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2639. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  2640. +$as_echo "yes" >&6; }
  2641. + SET_MAKE=
  2642. +else
  2643. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2644. +$as_echo "no" >&6; }
  2645. + SET_MAKE="MAKE=${MAKE-make}"
  2646. +fi
  2647. -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  2648. -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2649. -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2650. -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2651. -echo "$ac_t""$target" 1>&6
  2652. +rm -rf .tst 2>/dev/null
  2653. +mkdir .tst 2>/dev/null
  2654. +if test -d .tst; then
  2655. + am__leading_dot=.
  2656. +else
  2657. + am__leading_dot=_
  2658. +fi
  2659. +rmdir .tst 2>/dev/null
  2660. -echo $ac_n "checking build system type""... $ac_c" 1>&6
  2661. -echo "configure:634: checking build system type" >&5
  2662. +# test to see if srcdir already configured
  2663. +if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2664. + test -f $srcdir/config.status; then
  2665. + { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2666. +$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2667. + { (exit 1); exit 1; }; }
  2668. +fi
  2669. -build_alias=$build
  2670. -case "$build_alias" in
  2671. -NONE)
  2672. - case $nonopt in
  2673. - NONE) build_alias=$host_alias ;;
  2674. - *) build_alias=$nonopt ;;
  2675. - esac ;;
  2676. +# test whether we have cygpath
  2677. +if test -z "$CYGPATH_W"; then
  2678. + if (cygpath --version) >/dev/null 2>/dev/null; then
  2679. + CYGPATH_W='cygpath -w'
  2680. + else
  2681. + CYGPATH_W=echo
  2682. + fi
  2683. +fi
  2684. +
  2685. +
  2686. +# Define the identity of the package.
  2687. + PACKAGE=libnet
  2688. + VERSION=1.0.2a
  2689. +
  2690. +
  2691. +cat >>confdefs.h <<_ACEOF
  2692. +#define PACKAGE "$PACKAGE"
  2693. +_ACEOF
  2694. +
  2695. +
  2696. +cat >>confdefs.h <<_ACEOF
  2697. +#define VERSION "$VERSION"
  2698. +_ACEOF
  2699. +
  2700. +# Some tools Automake needs.
  2701. +
  2702. +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2703. +
  2704. +
  2705. +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2706. +
  2707. +
  2708. +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2709. +
  2710. +
  2711. +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2712. +
  2713. +
  2714. +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2715. +
  2716. +
  2717. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  2718. +
  2719. +install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2720. +
  2721. +# Installed binaries are usually stripped using `strip' when the user
  2722. +# run `make install-strip'. However `strip' might not be the right
  2723. +# tool to use in cross-compilation environments, therefore Automake
  2724. +# will honor the `STRIP' environment variable to overrule this program.
  2725. +if test "$cross_compiling" != no; then
  2726. + if test -n "$ac_tool_prefix"; then
  2727. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2728. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  2729. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2730. +$as_echo_n "checking for $ac_word... " >&6; }
  2731. +if test "${ac_cv_prog_STRIP+set}" = set; then
  2732. + $as_echo_n "(cached) " >&6
  2733. +else
  2734. + if test -n "$STRIP"; then
  2735. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2736. +else
  2737. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2738. +for as_dir in $PATH
  2739. +do
  2740. + IFS=$as_save_IFS
  2741. + test -z "$as_dir" && as_dir=.
  2742. + for ac_exec_ext in '' $ac_executable_extensions; do
  2743. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2744. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2745. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2746. + break 2
  2747. + fi
  2748. +done
  2749. +done
  2750. +IFS=$as_save_IFS
  2751. +
  2752. +fi
  2753. +fi
  2754. +STRIP=$ac_cv_prog_STRIP
  2755. +if test -n "$STRIP"; then
  2756. + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2757. +$as_echo "$STRIP" >&6; }
  2758. +else
  2759. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2760. +$as_echo "no" >&6; }
  2761. +fi
  2762. +
  2763. +
  2764. +fi
  2765. +if test -z "$ac_cv_prog_STRIP"; then
  2766. + ac_ct_STRIP=$STRIP
  2767. + # Extract the first word of "strip", so it can be a program name with args.
  2768. +set dummy strip; ac_word=$2
  2769. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2770. +$as_echo_n "checking for $ac_word... " >&6; }
  2771. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2772. + $as_echo_n "(cached) " >&6
  2773. +else
  2774. + if test -n "$ac_ct_STRIP"; then
  2775. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2776. +else
  2777. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. +for as_dir in $PATH
  2779. +do
  2780. + IFS=$as_save_IFS
  2781. + test -z "$as_dir" && as_dir=.
  2782. + for ac_exec_ext in '' $ac_executable_extensions; do
  2783. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2784. + ac_cv_prog_ac_ct_STRIP="strip"
  2785. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2786. + break 2
  2787. + fi
  2788. +done
  2789. +done
  2790. +IFS=$as_save_IFS
  2791. +
  2792. +fi
  2793. +fi
  2794. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2795. +if test -n "$ac_ct_STRIP"; then
  2796. + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2797. +$as_echo "$ac_ct_STRIP" >&6; }
  2798. +else
  2799. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2800. +$as_echo "no" >&6; }
  2801. +fi
  2802. +
  2803. + if test "x$ac_ct_STRIP" = x; then
  2804. + STRIP=":"
  2805. + else
  2806. + case $cross_compiling:$ac_tool_warned in
  2807. +yes:)
  2808. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2809. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2810. +ac_tool_warned=yes ;;
  2811. esac
  2812. + STRIP=$ac_ct_STRIP
  2813. + fi
  2814. +else
  2815. + STRIP="$ac_cv_prog_STRIP"
  2816. +fi
  2817. +
  2818. +fi
  2819. +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2820. +
  2821. +# We need awk for the "check" target. The system "awk" is bad on
  2822. +# some platforms.
  2823. +
  2824. +
  2825. +
  2826. +
  2827. +VER=`cat VERSION`
  2828. +{ $as_echo "$as_me:$LINENO: result: Beginning autoconfiguration process for libnet-$VER..." >&5
  2829. +$as_echo "Beginning autoconfiguration process for libnet-$VER..." >&6; }
  2830. +
  2831. +
  2832. +
  2833. +
  2834. +
  2835. +
  2836. +
  2837. +
  2838. +
  2839. +
  2840. -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  2841. -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2842. -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2843. -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2844. -echo "$ac_t""$build" 1>&6
  2845. -test "$host_alias" != "$target_alias" &&
  2846. - test "$program_prefix$program_suffix$program_transform_name" = \
  2847. - NONENONEs,x,x, &&
  2848. - program_prefix=${target_alias}-
  2849. @@ -658,214 +2629,808 @@ if test "$prefix" = "NONE"; then
  2850. prefix="/usr"
  2851. fi
  2852. -# Extract the first word of "gcc", so it can be a program name with args.
  2853. +if test "$mandir" = "NONE"; then
  2854. + mandir="$prefix/man"
  2855. +fi
  2856. +
  2857. +ac_ext=c
  2858. +ac_cpp='$CPP $CPPFLAGS'
  2859. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2860. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2861. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2862. +if test -n "$ac_tool_prefix"; then
  2863. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2864. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2865. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2866. +$as_echo_n "checking for $ac_word... " >&6; }
  2867. +if test "${ac_cv_prog_CC+set}" = set; then
  2868. + $as_echo_n "(cached) " >&6
  2869. +else
  2870. + if test -n "$CC"; then
  2871. + ac_cv_prog_CC="$CC" # Let the user override the test.
  2872. +else
  2873. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2874. +for as_dir in $PATH
  2875. +do
  2876. + IFS=$as_save_IFS
  2877. + test -z "$as_dir" && as_dir=.
  2878. + for ac_exec_ext in '' $ac_executable_extensions; do
  2879. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2880. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2881. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2882. + break 2
  2883. + fi
  2884. +done
  2885. +done
  2886. +IFS=$as_save_IFS
  2887. +
  2888. +fi
  2889. +fi
  2890. +CC=$ac_cv_prog_CC
  2891. +if test -n "$CC"; then
  2892. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2893. +$as_echo "$CC" >&6; }
  2894. +else
  2895. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2896. +$as_echo "no" >&6; }
  2897. +fi
  2898. +
  2899. +
  2900. +fi
  2901. +if test -z "$ac_cv_prog_CC"; then
  2902. + ac_ct_CC=$CC
  2903. + # Extract the first word of "gcc", so it can be a program name with args.
  2904. set dummy gcc; ac_word=$2
  2905. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2906. -echo "configure:665: checking for $ac_word" >&5
  2907. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2908. - echo $ac_n "(cached) $ac_c" 1>&6
  2909. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2910. +$as_echo_n "checking for $ac_word... " >&6; }
  2911. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2912. + $as_echo_n "(cached) " >&6
  2913. +else
  2914. + if test -n "$ac_ct_CC"; then
  2915. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2916. +else
  2917. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2918. +for as_dir in $PATH
  2919. +do
  2920. + IFS=$as_save_IFS
  2921. + test -z "$as_dir" && as_dir=.
  2922. + for ac_exec_ext in '' $ac_executable_extensions; do
  2923. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2924. + ac_cv_prog_ac_ct_CC="gcc"
  2925. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2926. + break 2
  2927. + fi
  2928. +done
  2929. +done
  2930. +IFS=$as_save_IFS
  2931. +
  2932. +fi
  2933. +fi
  2934. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2935. +if test -n "$ac_ct_CC"; then
  2936. + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2937. +$as_echo "$ac_ct_CC" >&6; }
  2938. +else
  2939. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2940. +$as_echo "no" >&6; }
  2941. +fi
  2942. +
  2943. + if test "x$ac_ct_CC" = x; then
  2944. + CC=""
  2945. + else
  2946. + case $cross_compiling:$ac_tool_warned in
  2947. +yes:)
  2948. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2949. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2950. +ac_tool_warned=yes ;;
  2951. +esac
  2952. + CC=$ac_ct_CC
  2953. + fi
  2954. +else
  2955. + CC="$ac_cv_prog_CC"
  2956. +fi
  2957. +
  2958. +if test -z "$CC"; then
  2959. + if test -n "$ac_tool_prefix"; then
  2960. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2961. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  2962. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2963. +$as_echo_n "checking for $ac_word... " >&6; }
  2964. +if test "${ac_cv_prog_CC+set}" = set; then
  2965. + $as_echo_n "(cached) " >&6
  2966. else
  2967. if test -n "$CC"; then
  2968. ac_cv_prog_CC="$CC" # Let the user override the test.
  2969. else
  2970. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2971. - ac_dummy="$PATH"
  2972. - for ac_dir in $ac_dummy; do
  2973. - test -z "$ac_dir" && ac_dir=.
  2974. - if test -f $ac_dir/$ac_word; then
  2975. - ac_cv_prog_CC="gcc"
  2976. - break
  2977. - fi
  2978. - done
  2979. - IFS="$ac_save_ifs"
  2980. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2981. +for as_dir in $PATH
  2982. +do
  2983. + IFS=$as_save_IFS
  2984. + test -z "$as_dir" && as_dir=.
  2985. + for ac_exec_ext in '' $ac_executable_extensions; do
  2986. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2987. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  2988. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2989. + break 2
  2990. + fi
  2991. +done
  2992. +done
  2993. +IFS=$as_save_IFS
  2994. +
  2995. fi
  2996. fi
  2997. -CC="$ac_cv_prog_CC"
  2998. +CC=$ac_cv_prog_CC
  2999. if test -n "$CC"; then
  3000. - echo "$ac_t""$CC" 1>&6
  3001. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3002. +$as_echo "$CC" >&6; }
  3003. else
  3004. - echo "$ac_t""no" 1>&6
  3005. + { $as_echo "$as_me:$LINENO: result: no" >&5
  3006. +$as_echo "no" >&6; }
  3007. fi
  3008. +
  3009. + fi
  3010. +fi
  3011. if test -z "$CC"; then
  3012. # Extract the first word of "cc", so it can be a program name with args.
  3013. set dummy cc; ac_word=$2
  3014. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3015. -echo "configure:695: checking for $ac_word" >&5
  3016. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  3017. - echo $ac_n "(cached) $ac_c" 1>&6
  3018. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3019. +$as_echo_n "checking for $ac_word... " >&6; }
  3020. +if test "${ac_cv_prog_CC+set}" = set; then
  3021. + $as_echo_n "(cached) " >&6
  3022. else
  3023. if test -n "$CC"; then
  3024. ac_cv_prog_CC="$CC" # Let the user override the test.
  3025. else
  3026. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3027. ac_prog_rejected=no
  3028. - ac_dummy="$PATH"
  3029. - for ac_dir in $ac_dummy; do
  3030. - test -z "$ac_dir" && ac_dir=.
  3031. - if test -f $ac_dir/$ac_word; then
  3032. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  3033. - ac_prog_rejected=yes
  3034. - continue
  3035. - fi
  3036. - ac_cv_prog_CC="cc"
  3037. - break
  3038. - fi
  3039. - done
  3040. - IFS="$ac_save_ifs"
  3041. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3042. +for as_dir in $PATH
  3043. +do
  3044. + IFS=$as_save_IFS
  3045. + test -z "$as_dir" && as_dir=.
  3046. + for ac_exec_ext in '' $ac_executable_extensions; do
  3047. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3048. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3049. + ac_prog_rejected=yes
  3050. + continue
  3051. + fi
  3052. + ac_cv_prog_CC="cc"
  3053. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3054. + break 2
  3055. + fi
  3056. +done
  3057. +done
  3058. +IFS=$as_save_IFS
  3059. +
  3060. if test $ac_prog_rejected = yes; then
  3061. # We found a bogon in the path, so make sure we never use it.
  3062. set dummy $ac_cv_prog_CC
  3063. shift
  3064. - if test $# -gt 0; then
  3065. + if test $# != 0; then
  3066. # We chose a different compiler from the bogus one.
  3067. # However, it has the same basename, so the bogon will be chosen
  3068. # first if we set CC to just the basename; use the full file name.
  3069. shift
  3070. - set dummy "$ac_dir/$ac_word" "$@"
  3071. - shift
  3072. - ac_cv_prog_CC="$@"
  3073. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3074. fi
  3075. fi
  3076. fi
  3077. fi
  3078. -CC="$ac_cv_prog_CC"
  3079. +CC=$ac_cv_prog_CC
  3080. if test -n "$CC"; then
  3081. - echo "$ac_t""$CC" 1>&6
  3082. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3083. +$as_echo "$CC" >&6; }
  3084. else
  3085. - echo "$ac_t""no" 1>&6
  3086. + { $as_echo "$as_me:$LINENO: result: no" >&5
  3087. +$as_echo "no" >&6; }
  3088. fi
  3089. - if test -z "$CC"; then
  3090. - case "`uname -s`" in
  3091. - *win32* | *WIN32*)
  3092. - # Extract the first word of "cl", so it can be a program name with args.
  3093. -set dummy cl; ac_word=$2
  3094. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3095. -echo "configure:746: checking for $ac_word" >&5
  3096. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  3097. - echo $ac_n "(cached) $ac_c" 1>&6
  3098. +
  3099. +fi
  3100. +if test -z "$CC"; then
  3101. + if test -n "$ac_tool_prefix"; then
  3102. + for ac_prog in cl.exe
  3103. + do
  3104. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3105. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3106. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3107. +$as_echo_n "checking for $ac_word... " >&6; }
  3108. +if test "${ac_cv_prog_CC+set}" = set; then
  3109. + $as_echo_n "(cached) " >&6
  3110. else
  3111. if test -n "$CC"; then
  3112. ac_cv_prog_CC="$CC" # Let the user override the test.
  3113. else
  3114. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3115. - ac_dummy="$PATH"
  3116. - for ac_dir in $ac_dummy; do
  3117. - test -z "$ac_dir" && ac_dir=.
  3118. - if test -f $ac_dir/$ac_word; then
  3119. - ac_cv_prog_CC="cl"
  3120. - break
  3121. - fi
  3122. - done
  3123. - IFS="$ac_save_ifs"
  3124. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3125. +for as_dir in $PATH
  3126. +do
  3127. + IFS=$as_save_IFS
  3128. + test -z "$as_dir" && as_dir=.
  3129. + for ac_exec_ext in '' $ac_executable_extensions; do
  3130. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3131. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3132. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3133. + break 2
  3134. + fi
  3135. +done
  3136. +done
  3137. +IFS=$as_save_IFS
  3138. +
  3139. fi
  3140. fi
  3141. -CC="$ac_cv_prog_CC"
  3142. +CC=$ac_cv_prog_CC
  3143. if test -n "$CC"; then
  3144. - echo "$ac_t""$CC" 1>&6
  3145. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3146. +$as_echo "$CC" >&6; }
  3147. else
  3148. - echo "$ac_t""no" 1>&6
  3149. + { $as_echo "$as_me:$LINENO: result: no" >&5
  3150. +$as_echo "no" >&6; }
  3151. fi
  3152. - ;;
  3153. - esac
  3154. +
  3155. +
  3156. + test -n "$CC" && break
  3157. + done
  3158. +fi
  3159. +if test -z "$CC"; then
  3160. + ac_ct_CC=$CC
  3161. + for ac_prog in cl.exe
  3162. +do
  3163. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  3164. +set dummy $ac_prog; ac_word=$2
  3165. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3166. +$as_echo_n "checking for $ac_word... " >&6; }
  3167. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3168. + $as_echo_n "(cached) " >&6
  3169. +else
  3170. + if test -n "$ac_ct_CC"; then
  3171. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3172. +else
  3173. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3174. +for as_dir in $PATH
  3175. +do
  3176. + IFS=$as_save_IFS
  3177. + test -z "$as_dir" && as_dir=.
  3178. + for ac_exec_ext in '' $ac_executable_extensions; do
  3179. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3180. + ac_cv_prog_ac_ct_CC="$ac_prog"
  3181. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3182. + break 2
  3183. fi
  3184. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  3185. +done
  3186. +done
  3187. +IFS=$as_save_IFS
  3188. +
  3189. +fi
  3190. +fi
  3191. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3192. +if test -n "$ac_ct_CC"; then
  3193. + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3194. +$as_echo "$ac_ct_CC" >&6; }
  3195. +else
  3196. + { $as_echo "$as_me:$LINENO: result: no" >&5
  3197. +$as_echo "no" >&6; }
  3198. fi
  3199. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  3200. -echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  3201. -ac_ext=c
  3202. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3203. -ac_cpp='$CPP $CPPFLAGS'
  3204. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3205. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3206. -cross_compiling=$ac_cv_prog_cc_cross
  3207. + test -n "$ac_ct_CC" && break
  3208. +done
  3209. -cat > conftest.$ac_ext << EOF
  3210. + if test "x$ac_ct_CC" = x; then
  3211. + CC=""
  3212. + else
  3213. + case $cross_compiling:$ac_tool_warned in
  3214. +yes:)
  3215. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3216. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3217. +ac_tool_warned=yes ;;
  3218. +esac
  3219. + CC=$ac_ct_CC
  3220. + fi
  3221. +fi
  3222. -#line 789 "configure"
  3223. -#include "confdefs.h"
  3224. +fi
  3225. -main(){return(0);}
  3226. -EOF
  3227. -if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3228. - ac_cv_prog_cc_works=yes
  3229. - # If we can't run a trivial program, we are probably using a cross compiler.
  3230. - if (./conftest; exit) 2>/dev/null; then
  3231. - ac_cv_prog_cc_cross=no
  3232. +
  3233. +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3234. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3235. +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3236. +See \`config.log' for more details." >&5
  3237. +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3238. +See \`config.log' for more details." >&2;}
  3239. + { (exit 1); exit 1; }; }; }
  3240. +
  3241. +# Provide some information about the compiler.
  3242. +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3243. +set X $ac_compile
  3244. +ac_compiler=$2
  3245. +{ (ac_try="$ac_compiler --version >&5"
  3246. +case "(($ac_try" in
  3247. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3248. + *) ac_try_echo=$ac_try;;
  3249. +esac
  3250. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3251. +$as_echo "$ac_try_echo") >&5
  3252. + (eval "$ac_compiler --version >&5") 2>&5
  3253. + ac_status=$?
  3254. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3255. + (exit $ac_status); }
  3256. +{ (ac_try="$ac_compiler -v >&5"
  3257. +case "(($ac_try" in
  3258. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3259. + *) ac_try_echo=$ac_try;;
  3260. +esac
  3261. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3262. +$as_echo "$ac_try_echo") >&5
  3263. + (eval "$ac_compiler -v >&5") 2>&5
  3264. + ac_status=$?
  3265. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3266. + (exit $ac_status); }
  3267. +{ (ac_try="$ac_compiler -V >&5"
  3268. +case "(($ac_try" in
  3269. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3270. + *) ac_try_echo=$ac_try;;
  3271. +esac
  3272. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3273. +$as_echo "$ac_try_echo") >&5
  3274. + (eval "$ac_compiler -V >&5") 2>&5
  3275. + ac_status=$?
  3276. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3277. + (exit $ac_status); }
  3278. +
  3279. +cat >conftest.$ac_ext <<_ACEOF
  3280. +/* confdefs.h. */
  3281. +_ACEOF
  3282. +cat confdefs.h >>conftest.$ac_ext
  3283. +cat >>conftest.$ac_ext <<_ACEOF
  3284. +/* end confdefs.h. */
  3285. +
  3286. +int
  3287. +main ()
  3288. +{
  3289. +
  3290. + ;
  3291. + return 0;
  3292. +}
  3293. +_ACEOF
  3294. +ac_clean_files_save=$ac_clean_files
  3295. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3296. +# Try to create an executable without -o first, disregard a.out.
  3297. +# It will help us diagnose broken compilers, and finding out an intuition
  3298. +# of exeext.
  3299. +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3300. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  3301. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3302. +
  3303. +# The possible output files:
  3304. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3305. +
  3306. +ac_rmfiles=
  3307. +for ac_file in $ac_files
  3308. +do
  3309. + case $ac_file in
  3310. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3311. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3312. + esac
  3313. +done
  3314. +rm -f $ac_rmfiles
  3315. +
  3316. +if { (ac_try="$ac_link_default"
  3317. +case "(($ac_try" in
  3318. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3319. + *) ac_try_echo=$ac_try;;
  3320. +esac
  3321. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3322. +$as_echo "$ac_try_echo") >&5
  3323. + (eval "$ac_link_default") 2>&5
  3324. + ac_status=$?
  3325. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3326. + (exit $ac_status); }; then
  3327. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3328. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3329. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  3330. +# so that the user can short-circuit this test for compilers unknown to
  3331. +# Autoconf.
  3332. +for ac_file in $ac_files ''
  3333. +do
  3334. + test -f "$ac_file" || continue
  3335. + case $ac_file in
  3336. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3337. + ;;
  3338. + [ab].out )
  3339. + # We found the default executable, but exeext='' is most
  3340. + # certainly right.
  3341. + break;;
  3342. + *.* )
  3343. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3344. + then :; else
  3345. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3346. + fi
  3347. + # We set ac_cv_exeext here because the later test for it is not
  3348. + # safe: cross compilers may not add the suffix if given an `-o'
  3349. + # argument, so we may need to know it at that point already.
  3350. + # Even if this section looks crufty: it has the advantage of
  3351. + # actually working.
  3352. + break;;
  3353. + * )
  3354. + break;;
  3355. + esac
  3356. +done
  3357. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  3358. +
  3359. +else
  3360. + ac_file=''
  3361. +fi
  3362. +
  3363. +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  3364. +$as_echo "$ac_file" >&6; }
  3365. +if test -z "$ac_file"; then
  3366. + $as_echo "$as_me: failed program was:" >&5
  3367. +sed 's/^/| /' conftest.$ac_ext >&5
  3368. +
  3369. +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3370. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3371. +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  3372. +See \`config.log' for more details." >&5
  3373. +$as_echo "$as_me: error: C compiler cannot create executables
  3374. +See \`config.log' for more details." >&2;}
  3375. + { (exit 77); exit 77; }; }; }
  3376. +fi
  3377. +
  3378. +ac_exeext=$ac_cv_exeext
  3379. +
  3380. +# Check that the compiler produces executables we can run. If not, either
  3381. +# the compiler is broken, or we cross compile.
  3382. +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3383. +$as_echo_n "checking whether the C compiler works... " >&6; }
  3384. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3385. +# If not cross compiling, check that we can run a simple program.
  3386. +if test "$cross_compiling" != yes; then
  3387. + if { ac_try='./$ac_file'
  3388. + { (case "(($ac_try" in
  3389. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3390. + *) ac_try_echo=$ac_try;;
  3391. +esac
  3392. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3393. +$as_echo "$ac_try_echo") >&5
  3394. + (eval "$ac_try") 2>&5
  3395. + ac_status=$?
  3396. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3397. + (exit $ac_status); }; }; then
  3398. + cross_compiling=no
  3399. else
  3400. - ac_cv_prog_cc_cross=yes
  3401. + if test "$cross_compiling" = maybe; then
  3402. + cross_compiling=yes
  3403. + else
  3404. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3405. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3406. +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3407. +If you meant to cross compile, use \`--host'.
  3408. +See \`config.log' for more details." >&5
  3409. +$as_echo "$as_me: error: cannot run C compiled programs.
  3410. +If you meant to cross compile, use \`--host'.
  3411. +See \`config.log' for more details." >&2;}
  3412. + { (exit 1); exit 1; }; }; }
  3413. + fi
  3414. fi
  3415. +fi
  3416. +{ $as_echo "$as_me:$LINENO: result: yes" >&5
  3417. +$as_echo "yes" >&6; }
  3418. +
  3419. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3420. +ac_clean_files=$ac_clean_files_save
  3421. +# Check that the compiler produces executables we can run. If not, either
  3422. +# the compiler is broken, or we cross compile.
  3423. +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3424. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  3425. +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3426. +$as_echo "$cross_compiling" >&6; }
  3427. +
  3428. +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3429. +$as_echo_n "checking for suffix of executables... " >&6; }
  3430. +if { (ac_try="$ac_link"
  3431. +case "(($ac_try" in
  3432. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. + *) ac_try_echo=$ac_try;;
  3434. +esac
  3435. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3436. +$as_echo "$ac_try_echo") >&5
  3437. + (eval "$ac_link") 2>&5
  3438. + ac_status=$?
  3439. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3440. + (exit $ac_status); }; then
  3441. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3442. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3443. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  3444. +# `rm'.
  3445. +for ac_file in conftest.exe conftest conftest.*; do
  3446. + test -f "$ac_file" || continue
  3447. + case $ac_file in
  3448. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3449. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3450. + break;;
  3451. + * ) break;;
  3452. + esac
  3453. +done
  3454. else
  3455. - echo "configure: failed program was:" >&5
  3456. - cat conftest.$ac_ext >&5
  3457. - ac_cv_prog_cc_works=no
  3458. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3459. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3460. +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3461. +See \`config.log' for more details." >&5
  3462. +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3463. +See \`config.log' for more details." >&2;}
  3464. + { (exit 1); exit 1; }; }; }
  3465. fi
  3466. -rm -fr conftest*
  3467. -ac_ext=c
  3468. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3469. -ac_cpp='$CPP $CPPFLAGS'
  3470. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3471. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3472. -cross_compiling=$ac_cv_prog_cc_cross
  3473. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  3474. -if test $ac_cv_prog_cc_works = no; then
  3475. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  3476. +rm -f conftest$ac_cv_exeext
  3477. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3478. +$as_echo "$ac_cv_exeext" >&6; }
  3479. +
  3480. +rm -f conftest.$ac_ext
  3481. +EXEEXT=$ac_cv_exeext
  3482. +ac_exeext=$EXEEXT
  3483. +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3484. +$as_echo_n "checking for suffix of object files... " >&6; }
  3485. +if test "${ac_cv_objext+set}" = set; then
  3486. + $as_echo_n "(cached) " >&6
  3487. +else
  3488. + cat >conftest.$ac_ext <<_ACEOF
  3489. +/* confdefs.h. */
  3490. +_ACEOF
  3491. +cat confdefs.h >>conftest.$ac_ext
  3492. +cat >>conftest.$ac_ext <<_ACEOF
  3493. +/* end confdefs.h. */
  3494. +
  3495. +int
  3496. +main ()
  3497. +{
  3498. +
  3499. + ;
  3500. + return 0;
  3501. +}
  3502. +_ACEOF
  3503. +rm -f conftest.o conftest.obj
  3504. +if { (ac_try="$ac_compile"
  3505. +case "(($ac_try" in
  3506. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3507. + *) ac_try_echo=$ac_try;;
  3508. +esac
  3509. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3510. +$as_echo "$ac_try_echo") >&5
  3511. + (eval "$ac_compile") 2>&5
  3512. + ac_status=$?
  3513. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3514. + (exit $ac_status); }; then
  3515. + for ac_file in conftest.o conftest.obj conftest.*; do
  3516. + test -f "$ac_file" || continue;
  3517. + case $ac_file in
  3518. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3519. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3520. + break;;
  3521. + esac
  3522. +done
  3523. +else
  3524. + $as_echo "$as_me: failed program was:" >&5
  3525. +sed 's/^/| /' conftest.$ac_ext >&5
  3526. +
  3527. +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3528. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3529. +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3530. +See \`config.log' for more details." >&5
  3531. +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3532. +See \`config.log' for more details." >&2;}
  3533. + { (exit 1); exit 1; }; }; }
  3534. fi
  3535. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  3536. -echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  3537. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  3538. -cross_compiling=$ac_cv_prog_cc_cross
  3539. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  3540. -echo "configure:825: checking whether we are using GNU C" >&5
  3541. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  3542. - echo $ac_n "(cached) $ac_c" 1>&6
  3543. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3544. +fi
  3545. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3546. +$as_echo "$ac_cv_objext" >&6; }
  3547. +OBJEXT=$ac_cv_objext
  3548. +ac_objext=$OBJEXT
  3549. +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3550. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3551. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3552. + $as_echo_n "(cached) " >&6
  3553. else
  3554. - cat > conftest.c <<EOF
  3555. -#ifdef __GNUC__
  3556. - yes;
  3557. + cat >conftest.$ac_ext <<_ACEOF
  3558. +/* confdefs.h. */
  3559. +_ACEOF
  3560. +cat confdefs.h >>conftest.$ac_ext
  3561. +cat >>conftest.$ac_ext <<_ACEOF
  3562. +/* end confdefs.h. */
  3563. +
  3564. +int
  3565. +main ()
  3566. +{
  3567. +#ifndef __GNUC__
  3568. + choke me
  3569. #endif
  3570. -EOF
  3571. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  3572. - ac_cv_prog_gcc=yes
  3573. +
  3574. + ;
  3575. + return 0;
  3576. +}
  3577. +_ACEOF
  3578. +rm -f conftest.$ac_objext
  3579. +if { (ac_try="$ac_compile"
  3580. +case "(($ac_try" in
  3581. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3582. + *) ac_try_echo=$ac_try;;
  3583. +esac
  3584. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3585. +$as_echo "$ac_try_echo") >&5
  3586. + (eval "$ac_compile") 2>conftest.er1
  3587. + ac_status=$?
  3588. + grep -v '^ *+' conftest.er1 >conftest.err
  3589. + rm -f conftest.er1
  3590. + cat conftest.err >&5
  3591. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3592. + (exit $ac_status); } && {
  3593. + test -z "$ac_c_werror_flag" ||
  3594. + test ! -s conftest.err
  3595. + } && test -s conftest.$ac_objext; then
  3596. + ac_compiler_gnu=yes
  3597. else
  3598. - ac_cv_prog_gcc=no
  3599. -fi
  3600. + $as_echo "$as_me: failed program was:" >&5
  3601. +sed 's/^/| /' conftest.$ac_ext >&5
  3602. +
  3603. + ac_compiler_gnu=no
  3604. fi
  3605. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  3606. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3607. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3608. -if test $ac_cv_prog_gcc = yes; then
  3609. +fi
  3610. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3611. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3612. +if test $ac_compiler_gnu = yes; then
  3613. GCC=yes
  3614. else
  3615. GCC=
  3616. fi
  3617. +ac_test_CFLAGS=${CFLAGS+set}
  3618. +ac_save_CFLAGS=$CFLAGS
  3619. +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3620. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  3621. +if test "${ac_cv_prog_cc_g+set}" = set; then
  3622. + $as_echo_n "(cached) " >&6
  3623. +else
  3624. + ac_save_c_werror_flag=$ac_c_werror_flag
  3625. + ac_c_werror_flag=yes
  3626. + ac_cv_prog_cc_g=no
  3627. + CFLAGS="-g"
  3628. + cat >conftest.$ac_ext <<_ACEOF
  3629. +/* confdefs.h. */
  3630. +_ACEOF
  3631. +cat confdefs.h >>conftest.$ac_ext
  3632. +cat >>conftest.$ac_ext <<_ACEOF
  3633. +/* end confdefs.h. */
  3634. -ac_test_CFLAGS="${CFLAGS+set}"
  3635. -ac_save_CFLAGS="$CFLAGS"
  3636. -CFLAGS=
  3637. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  3638. -echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
  3639. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  3640. - echo $ac_n "(cached) $ac_c" 1>&6
  3641. +int
  3642. +main ()
  3643. +{
  3644. +
  3645. + ;
  3646. + return 0;
  3647. +}
  3648. +_ACEOF
  3649. +rm -f conftest.$ac_objext
  3650. +if { (ac_try="$ac_compile"
  3651. +case "(($ac_try" in
  3652. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3653. + *) ac_try_echo=$ac_try;;
  3654. +esac
  3655. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3656. +$as_echo "$ac_try_echo") >&5
  3657. + (eval "$ac_compile") 2>conftest.er1
  3658. + ac_status=$?
  3659. + grep -v '^ *+' conftest.er1 >conftest.err
  3660. + rm -f conftest.er1
  3661. + cat conftest.err >&5
  3662. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3663. + (exit $ac_status); } && {
  3664. + test -z "$ac_c_werror_flag" ||
  3665. + test ! -s conftest.err
  3666. + } && test -s conftest.$ac_objext; then
  3667. + ac_cv_prog_cc_g=yes
  3668. else
  3669. - echo 'void f(){}' > conftest.c
  3670. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  3671. + $as_echo "$as_me: failed program was:" >&5
  3672. +sed 's/^/| /' conftest.$ac_ext >&5
  3673. +
  3674. + CFLAGS=""
  3675. + cat >conftest.$ac_ext <<_ACEOF
  3676. +/* confdefs.h. */
  3677. +_ACEOF
  3678. +cat confdefs.h >>conftest.$ac_ext
  3679. +cat >>conftest.$ac_ext <<_ACEOF
  3680. +/* end confdefs.h. */
  3681. +
  3682. +int
  3683. +main ()
  3684. +{
  3685. +
  3686. + ;
  3687. + return 0;
  3688. +}
  3689. +_ACEOF
  3690. +rm -f conftest.$ac_objext
  3691. +if { (ac_try="$ac_compile"
  3692. +case "(($ac_try" in
  3693. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3694. + *) ac_try_echo=$ac_try;;
  3695. +esac
  3696. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3697. +$as_echo "$ac_try_echo") >&5
  3698. + (eval "$ac_compile") 2>conftest.er1
  3699. + ac_status=$?
  3700. + grep -v '^ *+' conftest.er1 >conftest.err
  3701. + rm -f conftest.er1
  3702. + cat conftest.err >&5
  3703. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3704. + (exit $ac_status); } && {
  3705. + test -z "$ac_c_werror_flag" ||
  3706. + test ! -s conftest.err
  3707. + } && test -s conftest.$ac_objext; then
  3708. + :
  3709. +else
  3710. + $as_echo "$as_me: failed program was:" >&5
  3711. +sed 's/^/| /' conftest.$ac_ext >&5
  3712. +
  3713. + ac_c_werror_flag=$ac_save_c_werror_flag
  3714. + CFLAGS="-g"
  3715. + cat >conftest.$ac_ext <<_ACEOF
  3716. +/* confdefs.h. */
  3717. +_ACEOF
  3718. +cat confdefs.h >>conftest.$ac_ext
  3719. +cat >>conftest.$ac_ext <<_ACEOF
  3720. +/* end confdefs.h. */
  3721. +
  3722. +int
  3723. +main ()
  3724. +{
  3725. +
  3726. + ;
  3727. + return 0;
  3728. +}
  3729. +_ACEOF
  3730. +rm -f conftest.$ac_objext
  3731. +if { (ac_try="$ac_compile"
  3732. +case "(($ac_try" in
  3733. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3734. + *) ac_try_echo=$ac_try;;
  3735. +esac
  3736. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3737. +$as_echo "$ac_try_echo") >&5
  3738. + (eval "$ac_compile") 2>conftest.er1
  3739. + ac_status=$?
  3740. + grep -v '^ *+' conftest.er1 >conftest.err
  3741. + rm -f conftest.er1
  3742. + cat conftest.err >&5
  3743. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3744. + (exit $ac_status); } && {
  3745. + test -z "$ac_c_werror_flag" ||
  3746. + test ! -s conftest.err
  3747. + } && test -s conftest.$ac_objext; then
  3748. ac_cv_prog_cc_g=yes
  3749. else
  3750. - ac_cv_prog_cc_g=no
  3751. + $as_echo "$as_me: failed program was:" >&5
  3752. +sed 's/^/| /' conftest.$ac_ext >&5
  3753. +
  3754. +
  3755. fi
  3756. -rm -f conftest*
  3757. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3758. fi
  3759. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  3760. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3761. +fi
  3762. +
  3763. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3764. + ac_c_werror_flag=$ac_save_c_werror_flag
  3765. +fi
  3766. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3767. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  3768. if test "$ac_test_CFLAGS" = set; then
  3769. - CFLAGS="$ac_save_CFLAGS"
  3770. + CFLAGS=$ac_save_CFLAGS
  3771. elif test $ac_cv_prog_cc_g = yes; then
  3772. if test "$GCC" = yes; then
  3773. CFLAGS="-g -O2"
  3774. @@ -879,107 +3444,435 @@ else
  3775. CFLAGS=
  3776. fi
  3777. fi
  3778. +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3779. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3780. +if test "${ac_cv_prog_cc_c89+set}" = set; then
  3781. + $as_echo_n "(cached) " >&6
  3782. +else
  3783. + ac_cv_prog_cc_c89=no
  3784. +ac_save_CC=$CC
  3785. +cat >conftest.$ac_ext <<_ACEOF
  3786. +/* confdefs.h. */
  3787. +_ACEOF
  3788. +cat confdefs.h >>conftest.$ac_ext
  3789. +cat >>conftest.$ac_ext <<_ACEOF
  3790. +/* end confdefs.h. */
  3791. +#include <stdarg.h>
  3792. +#include <stdio.h>
  3793. +#include <sys/types.h>
  3794. +#include <sys/stat.h>
  3795. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3796. +struct buf { int x; };
  3797. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3798. +static char *e (p, i)
  3799. + char **p;
  3800. + int i;
  3801. +{
  3802. + return p[i];
  3803. +}
  3804. +static char *f (char * (*g) (char **, int), char **p, ...)
  3805. +{
  3806. + char *s;
  3807. + va_list v;
  3808. + va_start (v,p);
  3809. + s = g (p, va_arg (v,int));
  3810. + va_end (v);
  3811. + return s;
  3812. +}
  3813. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3814. + function prototypes and stuff, but not '\xHH' hex character constants.
  3815. + These don't provoke an error unfortunately, instead are silently treated
  3816. + as 'x'. The following induces an error, until -std is added to get
  3817. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3818. + array size at least. It's necessary to write '\x00'==0 to get something
  3819. + that's true only with -std. */
  3820. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3821. -echo $ac_n "checking for working const""... $ac_c" 1>&6
  3822. -echo "configure:886: checking for working const" >&5
  3823. -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  3824. - echo $ac_n "(cached) $ac_c" 1>&6
  3825. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3826. + inside strings and character constants. */
  3827. +#define FOO(x) 'x'
  3828. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3829. +
  3830. +int test (int i, double x);
  3831. +struct s1 {int (*f) (int a);};
  3832. +struct s2 {int (*f) (double a);};
  3833. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3834. +int argc;
  3835. +char **argv;
  3836. +int
  3837. +main ()
  3838. +{
  3839. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3840. + ;
  3841. + return 0;
  3842. +}
  3843. +_ACEOF
  3844. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3845. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3846. +do
  3847. + CC="$ac_save_CC $ac_arg"
  3848. + rm -f conftest.$ac_objext
  3849. +if { (ac_try="$ac_compile"
  3850. +case "(($ac_try" in
  3851. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3852. + *) ac_try_echo=$ac_try;;
  3853. +esac
  3854. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3855. +$as_echo "$ac_try_echo") >&5
  3856. + (eval "$ac_compile") 2>conftest.er1
  3857. + ac_status=$?
  3858. + grep -v '^ *+' conftest.er1 >conftest.err
  3859. + rm -f conftest.er1
  3860. + cat conftest.err >&5
  3861. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3862. + (exit $ac_status); } && {
  3863. + test -z "$ac_c_werror_flag" ||
  3864. + test ! -s conftest.err
  3865. + } && test -s conftest.$ac_objext; then
  3866. + ac_cv_prog_cc_c89=$ac_arg
  3867. else
  3868. - cat > conftest.$ac_ext <<EOF
  3869. -#line 891 "configure"
  3870. -#include "confdefs.h"
  3871. + $as_echo "$as_me: failed program was:" >&5
  3872. +sed 's/^/| /' conftest.$ac_ext >&5
  3873. -int main() {
  3874. -/* Ultrix mips cc rejects this. */
  3875. -typedef int charset[2]; const charset x;
  3876. -/* SunOS 4.1.1 cc rejects this. */
  3877. -char const *const *ccp;
  3878. -char **p;
  3879. -/* NEC SVR4.0.2 mips cc rejects this. */
  3880. -struct point {int x, y;};
  3881. -static struct point const zero = {0,0};
  3882. -/* AIX XL C 1.02.0.0 rejects this.
  3883. - It does not let you subtract one const X* pointer from another in an arm
  3884. - of an if-expression whose if-part is not a constant expression */
  3885. -const char *g = "string";
  3886. -ccp = &g + (g ? g-g : 0);
  3887. -/* HPUX 7.0 cc rejects these. */
  3888. -++ccp;
  3889. -p = (char**) ccp;
  3890. -ccp = (char const *const *) p;
  3891. -{ /* SCO 3.2v4 cc rejects this. */
  3892. - char *t;
  3893. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  3894. +fi
  3895. - *t++ = 0;
  3896. -}
  3897. -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3898. - int x[] = {25, 17};
  3899. - const int *foo = &x[0];
  3900. - ++foo;
  3901. -}
  3902. -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3903. - typedef const int *iptr;
  3904. - iptr p = 0;
  3905. - ++p;
  3906. -}
  3907. -{ /* AIX XL C 1.02.0.0 rejects this saying
  3908. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3909. - struct s { int j; const int *ap[3]; };
  3910. - struct s *b; b->j = 5;
  3911. -}
  3912. -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3913. - const int foo = 10;
  3914. -}
  3915. +rm -f core conftest.err conftest.$ac_objext
  3916. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  3917. +done
  3918. +rm -f conftest.$ac_ext
  3919. +CC=$ac_save_CC
  3920. -; return 0; }
  3921. -EOF
  3922. -if { (eval echo configure:940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3923. - rm -rf conftest*
  3924. - ac_cv_c_const=yes
  3925. +fi
  3926. +# AC_CACHE_VAL
  3927. +case "x$ac_cv_prog_cc_c89" in
  3928. + x)
  3929. + { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3930. +$as_echo "none needed" >&6; } ;;
  3931. + xno)
  3932. + { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3933. +$as_echo "unsupported" >&6; } ;;
  3934. + *)
  3935. + CC="$CC $ac_cv_prog_cc_c89"
  3936. + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3937. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3938. +esac
  3939. +
  3940. +
  3941. +ac_ext=c
  3942. +ac_cpp='$CPP $CPPFLAGS'
  3943. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3944. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3945. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3946. +DEPDIR="${am__leading_dot}deps"
  3947. +
  3948. +ac_config_commands="$ac_config_commands depfiles"
  3949. +
  3950. +
  3951. +am_make=${MAKE-make}
  3952. +cat > confinc << 'END'
  3953. +am__doit:
  3954. + @echo done
  3955. +.PHONY: am__doit
  3956. +END
  3957. +# If we don't find an include directive, just comment out the code.
  3958. +{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3959. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  3960. +am__include="#"
  3961. +am__quote=
  3962. +_am_result=none
  3963. +# First try GNU make style include.
  3964. +echo "include confinc" > confmf
  3965. +# We grep out `Entering directory' and `Leaving directory'
  3966. +# messages which can occur if `w' ends up in MAKEFLAGS.
  3967. +# In particular we don't look at `^make:' because GNU make might
  3968. +# be invoked under some other name (usually "gmake"), in which
  3969. +# case it prints its new name instead of `make'.
  3970. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3971. + am__include=include
  3972. + am__quote=
  3973. + _am_result=GNU
  3974. +fi
  3975. +# Now try BSD make style include.
  3976. +if test "$am__include" = "#"; then
  3977. + echo '.include "confinc"' > confmf
  3978. + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3979. + am__include=.include
  3980. + am__quote="\""
  3981. + _am_result=BSD
  3982. + fi
  3983. +fi
  3984. +
  3985. +
  3986. +{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3987. +$as_echo "$_am_result" >&6; }
  3988. +rm -f confinc confmf
  3989. +
  3990. +# Check whether --enable-dependency-tracking was given.
  3991. +if test "${enable_dependency_tracking+set}" = set; then
  3992. + enableval=$enable_dependency_tracking;
  3993. +fi
  3994. +
  3995. +if test "x$enable_dependency_tracking" != xno; then
  3996. + am_depcomp="$ac_aux_dir/depcomp"
  3997. + AMDEPBACKSLASH='\'
  3998. +fi
  3999. +
  4000. +
  4001. +if test "x$enable_dependency_tracking" != xno; then
  4002. + AMDEP_TRUE=
  4003. + AMDEP_FALSE='#'
  4004. else
  4005. - echo "configure: failed program was:" >&5
  4006. - cat conftest.$ac_ext >&5
  4007. - rm -rf conftest*
  4008. - ac_cv_c_const=no
  4009. + AMDEP_TRUE='#'
  4010. + AMDEP_FALSE=
  4011. fi
  4012. -rm -f conftest*
  4013. +
  4014. +
  4015. +
  4016. +
  4017. +depcc="$CC" am_compiler_list=
  4018. +
  4019. +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4020. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  4021. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4022. + $as_echo_n "(cached) " >&6
  4023. +else
  4024. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4025. + # We make a subdir and do the tests there. Otherwise we can end up
  4026. + # making bogus files that we don't know about and never remove. For
  4027. + # instance it was reported that on HP-UX the gcc test will end up
  4028. + # making a dummy file named `D' -- because `-MD' means `put the output
  4029. + # in D'.
  4030. + mkdir conftest.dir
  4031. + # Copy depcomp to subdir because otherwise we won't find it if we're
  4032. + # using a relative directory.
  4033. + cp "$am_depcomp" conftest.dir
  4034. + cd conftest.dir
  4035. + # We will build objects and dependencies in a subdirectory because
  4036. + # it helps to detect inapplicable dependency modes. For instance
  4037. + # both Tru64's cc and ICC support -MD to output dependencies as a
  4038. + # side effect of compilation, but ICC will put the dependencies in
  4039. + # the current directory while Tru64 will put them in the object
  4040. + # directory.
  4041. + mkdir sub
  4042. +
  4043. + am_cv_CC_dependencies_compiler_type=none
  4044. + if test "$am_compiler_list" = ""; then
  4045. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4046. + fi
  4047. + for depmode in $am_compiler_list; do
  4048. + # Setup a source with many dependencies, because some compilers
  4049. + # like to wrap large dependency lists on column 80 (with \), and
  4050. + # we should not choose a depcomp mode which is confused by this.
  4051. + #
  4052. + # We need to recreate these files for each test, as the compiler may
  4053. + # overwrite some of them when testing with obscure command lines.
  4054. + # This happens at least with the AIX C compiler.
  4055. + : > sub/conftest.c
  4056. + for i in 1 2 3 4 5 6; do
  4057. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4058. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4059. + # Solaris 8's {/usr,}/bin/sh.
  4060. + touch sub/conftst$i.h
  4061. + done
  4062. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4063. +
  4064. + case $depmode in
  4065. + nosideeffect)
  4066. + # after this tag, mechanisms are not by side-effect, so they'll
  4067. + # only be used when explicitly requested
  4068. + if test "x$enable_dependency_tracking" = xyes; then
  4069. + continue
  4070. + else
  4071. + break
  4072. + fi
  4073. + ;;
  4074. + none) break ;;
  4075. + esac
  4076. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4077. + # mode. It turns out that the SunPro C++ compiler does not properly
  4078. + # handle `-M -o', and we need to detect this.
  4079. + if depmode=$depmode \
  4080. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4081. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4082. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4083. + >/dev/null 2>conftest.err &&
  4084. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4085. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4086. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4087. + # icc doesn't choke on unknown options, it will just issue warnings
  4088. + # or remarks (even with -Werror). So we grep stderr for any message
  4089. + # that says an option was ignored or not supported.
  4090. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  4091. + # icc: Command line warning: ignoring option '-M'; no argument required
  4092. + # The diagnosis changed in icc 8.0:
  4093. + # icc: Command line remark: option '-MP' not supported
  4094. + if (grep 'ignoring option' conftest.err ||
  4095. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4096. + am_cv_CC_dependencies_compiler_type=$depmode
  4097. + break
  4098. + fi
  4099. + fi
  4100. + done
  4101. +
  4102. + cd ..
  4103. + rm -rf conftest.dir
  4104. +else
  4105. + am_cv_CC_dependencies_compiler_type=none
  4106. fi
  4107. -echo "$ac_t""$ac_cv_c_const" 1>&6
  4108. +fi
  4109. +{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4110. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4111. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4112. +
  4113. +
  4114. +
  4115. +if
  4116. + test "x$enable_dependency_tracking" != xno \
  4117. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4118. + am__fastdepCC_TRUE=
  4119. + am__fastdepCC_FALSE='#'
  4120. +else
  4121. + am__fastdepCC_TRUE='#'
  4122. + am__fastdepCC_FALSE=
  4123. +fi
  4124. +
  4125. +
  4126. +
  4127. +
  4128. +{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4129. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4130. +if test "${ac_cv_c_const+set}" = set; then
  4131. + $as_echo_n "(cached) " >&6
  4132. +else
  4133. + cat >conftest.$ac_ext <<_ACEOF
  4134. +/* confdefs.h. */
  4135. +_ACEOF
  4136. +cat confdefs.h >>conftest.$ac_ext
  4137. +cat >>conftest.$ac_ext <<_ACEOF
  4138. +/* end confdefs.h. */
  4139. +
  4140. +int
  4141. +main ()
  4142. +{
  4143. +/* FIXME: Include the comments suggested by Paul. */
  4144. +#ifndef __cplusplus
  4145. + /* Ultrix mips cc rejects this. */
  4146. + typedef int charset[2];
  4147. + const charset cs;
  4148. + /* SunOS 4.1.1 cc rejects this. */
  4149. + char const *const *pcpcc;
  4150. + char **ppc;
  4151. + /* NEC SVR4.0.2 mips cc rejects this. */
  4152. + struct point {int x, y;};
  4153. + static struct point const zero = {0,0};
  4154. + /* AIX XL C 1.02.0.0 rejects this.
  4155. + It does not let you subtract one const X* pointer from another in
  4156. + an arm of an if-expression whose if-part is not a constant
  4157. + expression */
  4158. + const char *g = "string";
  4159. + pcpcc = &g + (g ? g-g : 0);
  4160. + /* HPUX 7.0 cc rejects these. */
  4161. + ++pcpcc;
  4162. + ppc = (char**) pcpcc;
  4163. + pcpcc = (char const *const *) ppc;
  4164. + { /* SCO 3.2v4 cc rejects this. */
  4165. + char *t;
  4166. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  4167. +
  4168. + *t++ = 0;
  4169. + if (s) return 0;
  4170. + }
  4171. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4172. + int x[] = {25, 17};
  4173. + const int *foo = &x[0];
  4174. + ++foo;
  4175. + }
  4176. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4177. + typedef const int *iptr;
  4178. + iptr p = 0;
  4179. + ++p;
  4180. + }
  4181. + { /* AIX XL C 1.02.0.0 rejects this saying
  4182. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4183. + struct s { int j; const int *ap[3]; };
  4184. + struct s *b; b->j = 5;
  4185. + }
  4186. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4187. + const int foo = 10;
  4188. + if (!foo) return 0;
  4189. + }
  4190. + return !cs[0] && !zero.x;
  4191. +#endif
  4192. +
  4193. + ;
  4194. + return 0;
  4195. +}
  4196. +_ACEOF
  4197. +rm -f conftest.$ac_objext
  4198. +if { (ac_try="$ac_compile"
  4199. +case "(($ac_try" in
  4200. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4201. + *) ac_try_echo=$ac_try;;
  4202. +esac
  4203. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4204. +$as_echo "$ac_try_echo") >&5
  4205. + (eval "$ac_compile") 2>conftest.er1
  4206. + ac_status=$?
  4207. + grep -v '^ *+' conftest.er1 >conftest.err
  4208. + rm -f conftest.er1
  4209. + cat conftest.err >&5
  4210. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4211. + (exit $ac_status); } && {
  4212. + test -z "$ac_c_werror_flag" ||
  4213. + test ! -s conftest.err
  4214. + } && test -s conftest.$ac_objext; then
  4215. + ac_cv_c_const=yes
  4216. +else
  4217. + $as_echo "$as_me: failed program was:" >&5
  4218. +sed 's/^/| /' conftest.$ac_ext >&5
  4219. +
  4220. + ac_cv_c_const=no
  4221. +fi
  4222. +
  4223. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4224. +fi
  4225. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  4226. +$as_echo "$ac_cv_c_const" >&6; }
  4227. if test $ac_cv_c_const = no; then
  4228. - cat >> confdefs.h <<\EOF
  4229. -#define const
  4230. -EOF
  4231. +
  4232. +cat >>confdefs.h <<\_ACEOF
  4233. +#define const /**/
  4234. +_ACEOF
  4235. fi
  4236. -if test $ac_cv_prog_gcc = yes; then
  4237. +if test $ac_cv_c_compiler_gnu = yes; then
  4238. CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
  4239. CFLAGS="$CCOPTS"
  4240. fi
  4241. -# Check whether --with-pf_packet or --without-pf_packet was given.
  4242. +
  4243. +# Check whether --with-pf_packet was given.
  4244. if test "${with_pf_packet+set}" = set; then
  4245. - withval="$with_pf_packet"
  4246. - \
  4247. + withval=$with_pf_packet; \
  4248. with_pf_packet=yes
  4249. else
  4250. with_pf_packet=no
  4251. fi
  4252. -# Check whether --with-fast_x86_check or --without-fast_x86_check was given.
  4253. +
  4254. +# Check whether --with-fast_x86_check was given.
  4255. if test "${with_fast_x86_check+set}" = set; then
  4256. - withval="$with_fast_x86_check"
  4257. - \
  4258. - cat >> confdefs.h <<\EOF
  4259. + withval=$with_fast_x86_check; \
  4260. + cat >>confdefs.h <<\_ACEOF
  4261. #define LIBNET_FAST_X86_CHECK 1
  4262. -EOF
  4263. +_ACEOF
  4264. fi
  4265. @@ -991,330 +3884,7788 @@ fi
  4266. # SunOS /usr/etc/install
  4267. # IRIX /sbin/install
  4268. # AIX /bin/install
  4269. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  4270. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4271. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4272. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4273. +# OS/2's system install, which has a completely different semantic
  4274. # ./install, which can be erroneously created by make from ./install.sh.
  4275. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  4276. -echo "configure:1000: checking for a BSD compatible install" >&5
  4277. +# Reject install programs that cannot install multiple files.
  4278. +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4279. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  4280. if test -z "$INSTALL"; then
  4281. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  4282. - echo $ac_n "(cached) $ac_c" 1>&6
  4283. +if test "${ac_cv_path_install+set}" = set; then
  4284. + $as_echo_n "(cached) " >&6
  4285. else
  4286. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  4287. - for ac_dir in $PATH; do
  4288. - # Account for people who put trailing slashes in PATH elements.
  4289. - case "$ac_dir/" in
  4290. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  4291. - *)
  4292. - # OSF1 and SCO ODT 3.0 have their own names for install.
  4293. - # Don't use installbsd from OSF since it installs stuff as root
  4294. - # by default.
  4295. - for ac_prog in ginstall scoinst install; do
  4296. - if test -f $ac_dir/$ac_prog; then
  4297. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4298. +for as_dir in $PATH
  4299. +do
  4300. + IFS=$as_save_IFS
  4301. + test -z "$as_dir" && as_dir=.
  4302. + # Account for people who put trailing slashes in PATH elements.
  4303. +case $as_dir/ in
  4304. + ./ | .// | /cC/* | \
  4305. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4306. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4307. + /usr/ucb/* ) ;;
  4308. + *)
  4309. + # OSF1 and SCO ODT 3.0 have their own names for install.
  4310. + # Don't use installbsd from OSF since it installs stuff as root
  4311. + # by default.
  4312. + for ac_prog in ginstall scoinst install; do
  4313. + for ac_exec_ext in '' $ac_executable_extensions; do
  4314. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4315. if test $ac_prog = install &&
  4316. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  4317. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4318. # AIX install. It has an incompatible calling convention.
  4319. :
  4320. + elif test $ac_prog = install &&
  4321. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4322. + # program-specific install script used by HP pwplus--don't use.
  4323. + :
  4324. else
  4325. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  4326. - break 2
  4327. + rm -rf conftest.one conftest.two conftest.dir
  4328. + echo one > conftest.one
  4329. + echo two > conftest.two
  4330. + mkdir conftest.dir
  4331. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4332. + test -s conftest.one && test -s conftest.two &&
  4333. + test -s conftest.dir/conftest.one &&
  4334. + test -s conftest.dir/conftest.two
  4335. + then
  4336. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4337. + break 3
  4338. + fi
  4339. fi
  4340. fi
  4341. done
  4342. - ;;
  4343. - esac
  4344. - done
  4345. - IFS="$ac_save_IFS"
  4346. + done
  4347. + ;;
  4348. +esac
  4349. +
  4350. +done
  4351. +IFS=$as_save_IFS
  4352. +
  4353. +rm -rf conftest.one conftest.two conftest.dir
  4354. fi
  4355. if test "${ac_cv_path_install+set}" = set; then
  4356. - INSTALL="$ac_cv_path_install"
  4357. + INSTALL=$ac_cv_path_install
  4358. else
  4359. - # As a last resort, use the slow shell script. We don't cache a
  4360. - # path for INSTALL within a source directory, because that will
  4361. + # As a last resort, use the slow shell script. Don't cache a
  4362. + # value for INSTALL within a source directory, because that will
  4363. # break other packages using the cache if that directory is
  4364. - # removed, or if the path is relative.
  4365. - INSTALL="$ac_install_sh"
  4366. + # removed, or if the value is a relative name.
  4367. + INSTALL=$ac_install_sh
  4368. fi
  4369. fi
  4370. -echo "$ac_t""$INSTALL" 1>&6
  4371. +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  4372. +$as_echo "$INSTALL" >&6; }
  4373. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4374. # It thinks the first close brace ends the variable substitution.
  4375. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4376. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  4377. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4378. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4379. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  4380. -echo "configure:1053: checking whether ${MAKE-make} sets \${MAKE}" >&5
  4381. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  4382. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  4383. - echo $ac_n "(cached) $ac_c" 1>&6
  4384. +{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4385. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4386. +set x ${MAKE-make}
  4387. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4388. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  4389. + $as_echo_n "(cached) " >&6
  4390. else
  4391. - cat > conftestmake <<\EOF
  4392. + cat >conftest.make <<\_ACEOF
  4393. +SHELL = /bin/sh
  4394. all:
  4395. - @echo 'ac_maketemp="${MAKE}"'
  4396. -EOF
  4397. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  4398. +_ACEOF
  4399. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4400. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  4401. -if test -n "$ac_maketemp"; then
  4402. - eval ac_cv_prog_make_${ac_make}_set=yes
  4403. -else
  4404. - eval ac_cv_prog_make_${ac_make}_set=no
  4405. -fi
  4406. -rm -f conftestmake
  4407. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4408. + *@@@%%%=?*=@@@%%%*)
  4409. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  4410. + *)
  4411. + eval ac_cv_prog_make_${ac_make}_set=no;;
  4412. +esac
  4413. +rm -f conftest.make
  4414. fi
  4415. -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  4416. - echo "$ac_t""yes" 1>&6
  4417. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4418. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  4419. +$as_echo "yes" >&6; }
  4420. SET_MAKE=
  4421. else
  4422. - echo "$ac_t""no" 1>&6
  4423. + { $as_echo "$as_me:$LINENO: result: no" >&5
  4424. +$as_echo "no" >&6; }
  4425. SET_MAKE="MAKE=${MAKE-make}"
  4426. fi
  4427. for ac_prog in ranlib
  4428. do
  4429. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  4430. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  4431. set dummy $ac_prog; ac_word=$2
  4432. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4433. -echo "configure:1084: checking for $ac_word" >&5
  4434. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  4435. - echo $ac_n "(cached) $ac_c" 1>&6
  4436. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4437. +$as_echo_n "checking for $ac_word... " >&6; }
  4438. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  4439. + $as_echo_n "(cached) " >&6
  4440. else
  4441. if test -n "$RANLIB"; then
  4442. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4443. else
  4444. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4445. - ac_dummy="$PATH"
  4446. - for ac_dir in $ac_dummy; do
  4447. - test -z "$ac_dir" && ac_dir=.
  4448. - if test -f $ac_dir/$ac_word; then
  4449. - ac_cv_prog_RANLIB="$ac_prog"
  4450. - break
  4451. - fi
  4452. - done
  4453. - IFS="$ac_save_ifs"
  4454. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4455. +for as_dir in $PATH
  4456. +do
  4457. + IFS=$as_save_IFS
  4458. + test -z "$as_dir" && as_dir=.
  4459. + for ac_exec_ext in '' $ac_executable_extensions; do
  4460. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4461. + ac_cv_prog_RANLIB="$ac_prog"
  4462. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4463. + break 2
  4464. + fi
  4465. +done
  4466. +done
  4467. +IFS=$as_save_IFS
  4468. +
  4469. fi
  4470. fi
  4471. -RANLIB="$ac_cv_prog_RANLIB"
  4472. +RANLIB=$ac_cv_prog_RANLIB
  4473. if test -n "$RANLIB"; then
  4474. - echo "$ac_t""$RANLIB" 1>&6
  4475. + { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4476. +$as_echo "$RANLIB" >&6; }
  4477. else
  4478. - echo "$ac_t""no" 1>&6
  4479. + { $as_echo "$as_me:$LINENO: result: no" >&5
  4480. +$as_echo "no" >&6; }
  4481. fi
  4482. -test -n "$RANLIB" && break
  4483. +
  4484. + test -n "$RANLIB" && break
  4485. done
  4486. test -n "$RANLIB" || RANLIB="@true"
  4487. for ac_prog in ar
  4488. do
  4489. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  4490. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  4491. set dummy $ac_prog; ac_word=$2
  4492. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4493. -echo "configure:1119: checking for $ac_word" >&5
  4494. -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  4495. - echo $ac_n "(cached) $ac_c" 1>&6
  4496. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4497. +$as_echo_n "checking for $ac_word... " >&6; }
  4498. +if test "${ac_cv_prog_AR+set}" = set; then
  4499. + $as_echo_n "(cached) " >&6
  4500. else
  4501. if test -n "$AR"; then
  4502. ac_cv_prog_AR="$AR" # Let the user override the test.
  4503. else
  4504. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4505. - ac_dummy="$PATH"
  4506. - for ac_dir in $ac_dummy; do
  4507. - test -z "$ac_dir" && ac_dir=.
  4508. - if test -f $ac_dir/$ac_word; then
  4509. - ac_cv_prog_AR="$ac_prog"
  4510. - break
  4511. - fi
  4512. - done
  4513. - IFS="$ac_save_ifs"
  4514. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4515. +for as_dir in $PATH
  4516. +do
  4517. + IFS=$as_save_IFS
  4518. + test -z "$as_dir" && as_dir=.
  4519. + for ac_exec_ext in '' $ac_executable_extensions; do
  4520. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4521. + ac_cv_prog_AR="$ac_prog"
  4522. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4523. + break 2
  4524. + fi
  4525. +done
  4526. +done
  4527. +IFS=$as_save_IFS
  4528. +
  4529. fi
  4530. fi
  4531. -AR="$ac_cv_prog_AR"
  4532. +AR=$ac_cv_prog_AR
  4533. if test -n "$AR"; then
  4534. - echo "$ac_t""$AR" 1>&6
  4535. + { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4536. +$as_echo "$AR" >&6; }
  4537. else
  4538. - echo "$ac_t""no" 1>&6
  4539. + { $as_echo "$as_me:$LINENO: result: no" >&5
  4540. +$as_echo "no" >&6; }
  4541. fi
  4542. -test -n "$AR" && break
  4543. +
  4544. + test -n "$AR" && break
  4545. done
  4546. test -n "$AR" || AR="@true"
  4547. for ac_prog in ln
  4548. do
  4549. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  4550. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  4551. set dummy $ac_prog; ac_word=$2
  4552. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4553. -echo "configure:1154: checking for $ac_word" >&5
  4554. -if eval "test \"`echo '$''{'ac_cv_prog_LN'+set}'`\" = set"; then
  4555. - echo $ac_n "(cached) $ac_c" 1>&6
  4556. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4557. +$as_echo_n "checking for $ac_word... " >&6; }
  4558. +if test "${ac_cv_prog_LN+set}" = set; then
  4559. + $as_echo_n "(cached) " >&6
  4560. else
  4561. if test -n "$LN"; then
  4562. ac_cv_prog_LN="$LN" # Let the user override the test.
  4563. else
  4564. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4565. - ac_dummy="$PATH"
  4566. - for ac_dir in $ac_dummy; do
  4567. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4568. +for as_dir in $PATH
  4569. +do
  4570. + IFS=$as_save_IFS
  4571. + test -z "$as_dir" && as_dir=.
  4572. + for ac_exec_ext in '' $ac_executable_extensions; do
  4573. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4574. + ac_cv_prog_LN="$ac_prog"
  4575. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4576. + break 2
  4577. + fi
  4578. +done
  4579. +done
  4580. +IFS=$as_save_IFS
  4581. +
  4582. +fi
  4583. +fi
  4584. +LN=$ac_cv_prog_LN
  4585. +if test -n "$LN"; then
  4586. + { $as_echo "$as_me:$LINENO: result: $LN" >&5
  4587. +$as_echo "$LN" >&6; }
  4588. +else
  4589. + { $as_echo "$as_me:$LINENO: result: no" >&5
  4590. +$as_echo "no" >&6; }
  4591. +fi
  4592. +
  4593. +
  4594. + test -n "$LN" && break
  4595. +done
  4596. +test -n "$LN" || LN="@true"
  4597. +
  4598. +
  4599. +case `pwd` in
  4600. + *\ * | *\ *)
  4601. + { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4602. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4603. +esac
  4604. +
  4605. +
  4606. +
  4607. +macro_version='2.2.6'
  4608. +macro_revision='1.3012'
  4609. +
  4610. +
  4611. +
  4612. +
  4613. +
  4614. +
  4615. +
  4616. +
  4617. +
  4618. +
  4619. +
  4620. +
  4621. +
  4622. +ltmain="$ac_aux_dir/ltmain.sh"
  4623. +
  4624. +{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4625. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4626. +if test "${ac_cv_path_SED+set}" = set; then
  4627. + $as_echo_n "(cached) " >&6
  4628. +else
  4629. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4630. + for ac_i in 1 2 3 4 5 6 7; do
  4631. + ac_script="$ac_script$as_nl$ac_script"
  4632. + done
  4633. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4634. + $as_unset ac_script || ac_script=
  4635. + if test -z "$SED"; then
  4636. + ac_path_SED_found=false
  4637. + # Loop through the user's path and test for each of PROGNAME-LIST
  4638. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4639. +for as_dir in $PATH
  4640. +do
  4641. + IFS=$as_save_IFS
  4642. + test -z "$as_dir" && as_dir=.
  4643. + for ac_prog in sed gsed; do
  4644. + for ac_exec_ext in '' $ac_executable_extensions; do
  4645. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4646. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4647. +# Check for GNU ac_path_SED and select it if it is found.
  4648. + # Check for GNU $ac_path_SED
  4649. +case `"$ac_path_SED" --version 2>&1` in
  4650. +*GNU*)
  4651. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4652. +*)
  4653. + ac_count=0
  4654. + $as_echo_n 0123456789 >"conftest.in"
  4655. + while :
  4656. + do
  4657. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4658. + mv "conftest.tmp" "conftest.in"
  4659. + cp "conftest.in" "conftest.nl"
  4660. + $as_echo '' >> "conftest.nl"
  4661. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4662. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4663. + ac_count=`expr $ac_count + 1`
  4664. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  4665. + # Best one so far, save it but keep looking for a better one
  4666. + ac_cv_path_SED="$ac_path_SED"
  4667. + ac_path_SED_max=$ac_count
  4668. + fi
  4669. + # 10*(2^10) chars as input seems more than enough
  4670. + test $ac_count -gt 10 && break
  4671. + done
  4672. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4673. +esac
  4674. +
  4675. + $ac_path_SED_found && break 3
  4676. + done
  4677. + done
  4678. +done
  4679. +IFS=$as_save_IFS
  4680. + if test -z "$ac_cv_path_SED"; then
  4681. + { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  4682. +$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  4683. + { (exit 1); exit 1; }; }
  4684. + fi
  4685. +else
  4686. + ac_cv_path_SED=$SED
  4687. +fi
  4688. +
  4689. +fi
  4690. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  4691. +$as_echo "$ac_cv_path_SED" >&6; }
  4692. + SED="$ac_cv_path_SED"
  4693. + rm -f conftest.sed
  4694. +
  4695. +test -z "$SED" && SED=sed
  4696. +Xsed="$SED -e 1s/^X//"
  4697. +
  4698. +
  4699. +
  4700. +
  4701. +
  4702. +
  4703. +
  4704. +
  4705. +
  4706. +
  4707. +
  4708. +{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4709. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4710. +if test "${ac_cv_path_GREP+set}" = set; then
  4711. + $as_echo_n "(cached) " >&6
  4712. +else
  4713. + if test -z "$GREP"; then
  4714. + ac_path_GREP_found=false
  4715. + # Loop through the user's path and test for each of PROGNAME-LIST
  4716. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4717. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4718. +do
  4719. + IFS=$as_save_IFS
  4720. + test -z "$as_dir" && as_dir=.
  4721. + for ac_prog in grep ggrep; do
  4722. + for ac_exec_ext in '' $ac_executable_extensions; do
  4723. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4724. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4725. +# Check for GNU ac_path_GREP and select it if it is found.
  4726. + # Check for GNU $ac_path_GREP
  4727. +case `"$ac_path_GREP" --version 2>&1` in
  4728. +*GNU*)
  4729. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4730. +*)
  4731. + ac_count=0
  4732. + $as_echo_n 0123456789 >"conftest.in"
  4733. + while :
  4734. + do
  4735. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4736. + mv "conftest.tmp" "conftest.in"
  4737. + cp "conftest.in" "conftest.nl"
  4738. + $as_echo 'GREP' >> "conftest.nl"
  4739. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4740. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4741. + ac_count=`expr $ac_count + 1`
  4742. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4743. + # Best one so far, save it but keep looking for a better one
  4744. + ac_cv_path_GREP="$ac_path_GREP"
  4745. + ac_path_GREP_max=$ac_count
  4746. + fi
  4747. + # 10*(2^10) chars as input seems more than enough
  4748. + test $ac_count -gt 10 && break
  4749. + done
  4750. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4751. +esac
  4752. +
  4753. + $ac_path_GREP_found && break 3
  4754. + done
  4755. + done
  4756. +done
  4757. +IFS=$as_save_IFS
  4758. + if test -z "$ac_cv_path_GREP"; then
  4759. + { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4760. +$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4761. + { (exit 1); exit 1; }; }
  4762. + fi
  4763. +else
  4764. + ac_cv_path_GREP=$GREP
  4765. +fi
  4766. +
  4767. +fi
  4768. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4769. +$as_echo "$ac_cv_path_GREP" >&6; }
  4770. + GREP="$ac_cv_path_GREP"
  4771. +
  4772. +
  4773. +{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4774. +$as_echo_n "checking for egrep... " >&6; }
  4775. +if test "${ac_cv_path_EGREP+set}" = set; then
  4776. + $as_echo_n "(cached) " >&6
  4777. +else
  4778. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4779. + then ac_cv_path_EGREP="$GREP -E"
  4780. + else
  4781. + if test -z "$EGREP"; then
  4782. + ac_path_EGREP_found=false
  4783. + # Loop through the user's path and test for each of PROGNAME-LIST
  4784. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4785. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4786. +do
  4787. + IFS=$as_save_IFS
  4788. + test -z "$as_dir" && as_dir=.
  4789. + for ac_prog in egrep; do
  4790. + for ac_exec_ext in '' $ac_executable_extensions; do
  4791. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4792. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4793. +# Check for GNU ac_path_EGREP and select it if it is found.
  4794. + # Check for GNU $ac_path_EGREP
  4795. +case `"$ac_path_EGREP" --version 2>&1` in
  4796. +*GNU*)
  4797. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4798. +*)
  4799. + ac_count=0
  4800. + $as_echo_n 0123456789 >"conftest.in"
  4801. + while :
  4802. + do
  4803. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4804. + mv "conftest.tmp" "conftest.in"
  4805. + cp "conftest.in" "conftest.nl"
  4806. + $as_echo 'EGREP' >> "conftest.nl"
  4807. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4808. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4809. + ac_count=`expr $ac_count + 1`
  4810. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4811. + # Best one so far, save it but keep looking for a better one
  4812. + ac_cv_path_EGREP="$ac_path_EGREP"
  4813. + ac_path_EGREP_max=$ac_count
  4814. + fi
  4815. + # 10*(2^10) chars as input seems more than enough
  4816. + test $ac_count -gt 10 && break
  4817. + done
  4818. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4819. +esac
  4820. +
  4821. + $ac_path_EGREP_found && break 3
  4822. + done
  4823. + done
  4824. +done
  4825. +IFS=$as_save_IFS
  4826. + if test -z "$ac_cv_path_EGREP"; then
  4827. + { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4828. +$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4829. + { (exit 1); exit 1; }; }
  4830. + fi
  4831. +else
  4832. + ac_cv_path_EGREP=$EGREP
  4833. +fi
  4834. +
  4835. + fi
  4836. +fi
  4837. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4838. +$as_echo "$ac_cv_path_EGREP" >&6; }
  4839. + EGREP="$ac_cv_path_EGREP"
  4840. +
  4841. +
  4842. +{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4843. +$as_echo_n "checking for fgrep... " >&6; }
  4844. +if test "${ac_cv_path_FGREP+set}" = set; then
  4845. + $as_echo_n "(cached) " >&6
  4846. +else
  4847. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4848. + then ac_cv_path_FGREP="$GREP -F"
  4849. + else
  4850. + if test -z "$FGREP"; then
  4851. + ac_path_FGREP_found=false
  4852. + # Loop through the user's path and test for each of PROGNAME-LIST
  4853. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4855. +do
  4856. + IFS=$as_save_IFS
  4857. + test -z "$as_dir" && as_dir=.
  4858. + for ac_prog in fgrep; do
  4859. + for ac_exec_ext in '' $ac_executable_extensions; do
  4860. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4861. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4862. +# Check for GNU ac_path_FGREP and select it if it is found.
  4863. + # Check for GNU $ac_path_FGREP
  4864. +case `"$ac_path_FGREP" --version 2>&1` in
  4865. +*GNU*)
  4866. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4867. +*)
  4868. + ac_count=0
  4869. + $as_echo_n 0123456789 >"conftest.in"
  4870. + while :
  4871. + do
  4872. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4873. + mv "conftest.tmp" "conftest.in"
  4874. + cp "conftest.in" "conftest.nl"
  4875. + $as_echo 'FGREP' >> "conftest.nl"
  4876. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4877. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4878. + ac_count=`expr $ac_count + 1`
  4879. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4880. + # Best one so far, save it but keep looking for a better one
  4881. + ac_cv_path_FGREP="$ac_path_FGREP"
  4882. + ac_path_FGREP_max=$ac_count
  4883. + fi
  4884. + # 10*(2^10) chars as input seems more than enough
  4885. + test $ac_count -gt 10 && break
  4886. + done
  4887. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4888. +esac
  4889. +
  4890. + $ac_path_FGREP_found && break 3
  4891. + done
  4892. + done
  4893. +done
  4894. +IFS=$as_save_IFS
  4895. + if test -z "$ac_cv_path_FGREP"; then
  4896. + { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4897. +$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4898. + { (exit 1); exit 1; }; }
  4899. + fi
  4900. +else
  4901. + ac_cv_path_FGREP=$FGREP
  4902. +fi
  4903. +
  4904. + fi
  4905. +fi
  4906. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4907. +$as_echo "$ac_cv_path_FGREP" >&6; }
  4908. + FGREP="$ac_cv_path_FGREP"
  4909. +
  4910. +
  4911. +test -z "$GREP" && GREP=grep
  4912. +
  4913. +
  4914. +
  4915. +
  4916. +
  4917. +
  4918. +
  4919. +
  4920. +
  4921. +
  4922. +
  4923. +
  4924. +
  4925. +
  4926. +
  4927. +
  4928. +
  4929. +
  4930. +
  4931. +# Check whether --with-gnu-ld was given.
  4932. +if test "${with_gnu_ld+set}" = set; then
  4933. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4934. +else
  4935. + with_gnu_ld=no
  4936. +fi
  4937. +
  4938. +ac_prog=ld
  4939. +if test "$GCC" = yes; then
  4940. + # Check if gcc -print-prog-name=ld gives a path.
  4941. + { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4942. +$as_echo_n "checking for ld used by $CC... " >&6; }
  4943. + case $host in
  4944. + *-*-mingw*)
  4945. + # gcc leaves a trailing carriage return which upsets mingw
  4946. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4947. + *)
  4948. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4949. + esac
  4950. + case $ac_prog in
  4951. + # Accept absolute paths.
  4952. + [\\/]* | ?:[\\/]*)
  4953. + re_direlt='/[^/][^/]*/\.\./'
  4954. + # Canonicalize the pathname of ld
  4955. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4956. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4957. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4958. + done
  4959. + test -z "$LD" && LD="$ac_prog"
  4960. + ;;
  4961. + "")
  4962. + # If it fails, then pretend we aren't using GCC.
  4963. + ac_prog=ld
  4964. + ;;
  4965. + *)
  4966. + # If it is relative, then search for the first ld in PATH.
  4967. + with_gnu_ld=unknown
  4968. + ;;
  4969. + esac
  4970. +elif test "$with_gnu_ld" = yes; then
  4971. + { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4972. +$as_echo_n "checking for GNU ld... " >&6; }
  4973. +else
  4974. + { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4975. +$as_echo_n "checking for non-GNU ld... " >&6; }
  4976. +fi
  4977. +if test "${lt_cv_path_LD+set}" = set; then
  4978. + $as_echo_n "(cached) " >&6
  4979. +else
  4980. + if test -z "$LD"; then
  4981. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4982. + for ac_dir in $PATH; do
  4983. + IFS="$lt_save_ifs"
  4984. test -z "$ac_dir" && ac_dir=.
  4985. - if test -f $ac_dir/$ac_word; then
  4986. - ac_cv_prog_LN="$ac_prog"
  4987. - break
  4988. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4989. + lt_cv_path_LD="$ac_dir/$ac_prog"
  4990. + # Check to see if the program is GNU ld. I'd rather use --version,
  4991. + # but apparently some variants of GNU ld only accept -v.
  4992. + # Break only if it was the GNU/non-GNU ld that we prefer.
  4993. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4994. + *GNU* | *'with BFD'*)
  4995. + test "$with_gnu_ld" != no && break
  4996. + ;;
  4997. + *)
  4998. + test "$with_gnu_ld" != yes && break
  4999. + ;;
  5000. + esac
  5001. fi
  5002. done
  5003. - IFS="$ac_save_ifs"
  5004. + IFS="$lt_save_ifs"
  5005. +else
  5006. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5007. fi
  5008. fi
  5009. -LN="$ac_cv_prog_LN"
  5010. -if test -n "$LN"; then
  5011. - echo "$ac_t""$LN" 1>&6
  5012. +
  5013. +LD="$lt_cv_path_LD"
  5014. +if test -n "$LD"; then
  5015. + { $as_echo "$as_me:$LINENO: result: $LD" >&5
  5016. +$as_echo "$LD" >&6; }
  5017. else
  5018. - echo "$ac_t""no" 1>&6
  5019. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5020. +$as_echo "no" >&6; }
  5021. +fi
  5022. +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  5023. +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  5024. + { (exit 1); exit 1; }; }
  5025. +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  5026. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5027. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  5028. + $as_echo_n "(cached) " >&6
  5029. +else
  5030. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5031. +case `$LD -v 2>&1 </dev/null` in
  5032. +*GNU* | *'with BFD'*)
  5033. + lt_cv_prog_gnu_ld=yes
  5034. + ;;
  5035. +*)
  5036. + lt_cv_prog_gnu_ld=no
  5037. + ;;
  5038. +esac
  5039. fi
  5040. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  5041. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5042. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5043. -test -n "$LN" && break
  5044. +
  5045. +
  5046. +
  5047. +
  5048. +
  5049. +
  5050. +
  5051. +
  5052. +{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  5053. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5054. +if test "${lt_cv_path_NM+set}" = set; then
  5055. + $as_echo_n "(cached) " >&6
  5056. +else
  5057. + if test -n "$NM"; then
  5058. + # Let the user override the test.
  5059. + lt_cv_path_NM="$NM"
  5060. +else
  5061. + lt_nm_to_check="${ac_tool_prefix}nm"
  5062. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5063. + lt_nm_to_check="$lt_nm_to_check nm"
  5064. + fi
  5065. + for lt_tmp_nm in $lt_nm_to_check; do
  5066. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5067. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5068. + IFS="$lt_save_ifs"
  5069. + test -z "$ac_dir" && ac_dir=.
  5070. + tmp_nm="$ac_dir/$lt_tmp_nm"
  5071. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5072. + # Check to see if the nm accepts a BSD-compat flag.
  5073. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5074. + # nm: unknown option "B" ignored
  5075. + # Tru64's nm complains that /dev/null is an invalid object file
  5076. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5077. + */dev/null* | *'Invalid file or object type'*)
  5078. + lt_cv_path_NM="$tmp_nm -B"
  5079. + break
  5080. + ;;
  5081. + *)
  5082. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5083. + */dev/null*)
  5084. + lt_cv_path_NM="$tmp_nm -p"
  5085. + break
  5086. + ;;
  5087. + *)
  5088. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5089. + continue # so that we can try to find one that supports BSD flags
  5090. + ;;
  5091. + esac
  5092. + ;;
  5093. + esac
  5094. + fi
  5095. + done
  5096. + IFS="$lt_save_ifs"
  5097. + done
  5098. + : ${lt_cv_path_NM=no}
  5099. +fi
  5100. +fi
  5101. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  5102. +$as_echo "$lt_cv_path_NM" >&6; }
  5103. +if test "$lt_cv_path_NM" != "no"; then
  5104. + NM="$lt_cv_path_NM"
  5105. +else
  5106. + # Didn't find any BSD compatible name lister, look for dumpbin.
  5107. + if test -n "$ac_tool_prefix"; then
  5108. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5109. + do
  5110. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5111. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5112. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5113. +$as_echo_n "checking for $ac_word... " >&6; }
  5114. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  5115. + $as_echo_n "(cached) " >&6
  5116. +else
  5117. + if test -n "$DUMPBIN"; then
  5118. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5119. +else
  5120. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5121. +for as_dir in $PATH
  5122. +do
  5123. + IFS=$as_save_IFS
  5124. + test -z "$as_dir" && as_dir=.
  5125. + for ac_exec_ext in '' $ac_executable_extensions; do
  5126. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5127. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5128. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5129. + break 2
  5130. + fi
  5131. done
  5132. -test -n "$LN" || LN="@true"
  5133. +done
  5134. +IFS=$as_save_IFS
  5135. +fi
  5136. +fi
  5137. +DUMPBIN=$ac_cv_prog_DUMPBIN
  5138. +if test -n "$DUMPBIN"; then
  5139. + { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  5140. +$as_echo "$DUMPBIN" >&6; }
  5141. +else
  5142. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5143. +$as_echo "no" >&6; }
  5144. +fi
  5145. -for ac_func in strerror
  5146. +
  5147. + test -n "$DUMPBIN" && break
  5148. + done
  5149. +fi
  5150. +if test -z "$DUMPBIN"; then
  5151. + ac_ct_DUMPBIN=$DUMPBIN
  5152. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5153. do
  5154. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5155. -echo "configure:1188: checking for $ac_func" >&5
  5156. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5157. - echo $ac_n "(cached) $ac_c" 1>&6
  5158. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  5159. +set dummy $ac_prog; ac_word=$2
  5160. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5161. +$as_echo_n "checking for $ac_word... " >&6; }
  5162. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  5163. + $as_echo_n "(cached) " >&6
  5164. else
  5165. - cat > conftest.$ac_ext <<EOF
  5166. -#line 1193 "configure"
  5167. -#include "confdefs.h"
  5168. + if test -n "$ac_ct_DUMPBIN"; then
  5169. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5170. +else
  5171. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5172. +for as_dir in $PATH
  5173. +do
  5174. + IFS=$as_save_IFS
  5175. + test -z "$as_dir" && as_dir=.
  5176. + for ac_exec_ext in '' $ac_executable_extensions; do
  5177. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5178. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5179. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5180. + break 2
  5181. + fi
  5182. +done
  5183. +done
  5184. +IFS=$as_save_IFS
  5185. +
  5186. +fi
  5187. +fi
  5188. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5189. +if test -n "$ac_ct_DUMPBIN"; then
  5190. + { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  5191. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  5192. +else
  5193. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5194. +$as_echo "no" >&6; }
  5195. +fi
  5196. +
  5197. +
  5198. + test -n "$ac_ct_DUMPBIN" && break
  5199. +done
  5200. +
  5201. + if test "x$ac_ct_DUMPBIN" = x; then
  5202. + DUMPBIN=":"
  5203. + else
  5204. + case $cross_compiling:$ac_tool_warned in
  5205. +yes:)
  5206. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5207. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5208. +ac_tool_warned=yes ;;
  5209. +esac
  5210. + DUMPBIN=$ac_ct_DUMPBIN
  5211. + fi
  5212. +fi
  5213. +
  5214. +
  5215. + if test "$DUMPBIN" != ":"; then
  5216. + NM="$DUMPBIN"
  5217. + fi
  5218. +fi
  5219. +test -z "$NM" && NM=nm
  5220. +
  5221. +
  5222. +
  5223. +
  5224. +
  5225. +
  5226. +{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  5227. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5228. +if test "${lt_cv_nm_interface+set}" = set; then
  5229. + $as_echo_n "(cached) " >&6
  5230. +else
  5231. + lt_cv_nm_interface="BSD nm"
  5232. + echo "int some_variable = 0;" > conftest.$ac_ext
  5233. + (eval echo "\"\$as_me:4753: $ac_compile\"" >&5)
  5234. + (eval "$ac_compile" 2>conftest.err)
  5235. + cat conftest.err >&5
  5236. + (eval echo "\"\$as_me:4756: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5237. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5238. + cat conftest.err >&5
  5239. + (eval echo "\"\$as_me:4759: output\"" >&5)
  5240. + cat conftest.out >&5
  5241. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5242. + lt_cv_nm_interface="MS dumpbin"
  5243. + fi
  5244. + rm -f conftest*
  5245. +fi
  5246. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  5247. +$as_echo "$lt_cv_nm_interface" >&6; }
  5248. +
  5249. +{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5250. +$as_echo_n "checking whether ln -s works... " >&6; }
  5251. +LN_S=$as_ln_s
  5252. +if test "$LN_S" = "ln -s"; then
  5253. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  5254. +$as_echo "yes" >&6; }
  5255. +else
  5256. + { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5257. +$as_echo "no, using $LN_S" >&6; }
  5258. +fi
  5259. +
  5260. +# find the maximum length of command line arguments
  5261. +{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5262. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5263. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5264. + $as_echo_n "(cached) " >&6
  5265. +else
  5266. + i=0
  5267. + teststring="ABCD"
  5268. +
  5269. + case $build_os in
  5270. + msdosdjgpp*)
  5271. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  5272. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  5273. + # during glob expansion). Even if it were fixed, the result of this
  5274. + # check would be larger than it should be.
  5275. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5276. + ;;
  5277. +
  5278. + gnu*)
  5279. + # Under GNU Hurd, this test is not required because there is
  5280. + # no limit to the length of command line arguments.
  5281. + # Libtool will interpret -1 as no limit whatsoever
  5282. + lt_cv_sys_max_cmd_len=-1;
  5283. + ;;
  5284. +
  5285. + cygwin* | mingw* | cegcc*)
  5286. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  5287. + # about 5 minutes as the teststring grows exponentially.
  5288. + # Worse, since 9x/ME are not pre-emptively multitasking,
  5289. + # you end up with a "frozen" computer, even though with patience
  5290. + # the test eventually succeeds (with a max line length of 256k).
  5291. + # Instead, let's just punt: use the minimum linelength reported by
  5292. + # all of the supported platforms: 8192 (on NT/2K/XP).
  5293. + lt_cv_sys_max_cmd_len=8192;
  5294. + ;;
  5295. +
  5296. + amigaos*)
  5297. + # On AmigaOS with pdksh, this test takes hours, literally.
  5298. + # So we just punt and use a minimum line length of 8192.
  5299. + lt_cv_sys_max_cmd_len=8192;
  5300. + ;;
  5301. +
  5302. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5303. + # This has been around since 386BSD, at least. Likely further.
  5304. + if test -x /sbin/sysctl; then
  5305. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5306. + elif test -x /usr/sbin/sysctl; then
  5307. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5308. + else
  5309. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5310. + fi
  5311. + # And add a safety zone
  5312. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5313. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5314. + ;;
  5315. +
  5316. + interix*)
  5317. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5318. + lt_cv_sys_max_cmd_len=196608
  5319. + ;;
  5320. +
  5321. + osf*)
  5322. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5323. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5324. + # nice to cause kernel panics so lets avoid the loop below.
  5325. + # First set a reasonable default.
  5326. + lt_cv_sys_max_cmd_len=16384
  5327. + #
  5328. + if test -x /sbin/sysconfig; then
  5329. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5330. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5331. + esac
  5332. + fi
  5333. + ;;
  5334. + sco3.2v5*)
  5335. + lt_cv_sys_max_cmd_len=102400
  5336. + ;;
  5337. + sysv5* | sco5v6* | sysv4.2uw2*)
  5338. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5339. + if test -n "$kargmax"; then
  5340. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5341. + else
  5342. + lt_cv_sys_max_cmd_len=32768
  5343. + fi
  5344. + ;;
  5345. + *)
  5346. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5347. + if test -n "$lt_cv_sys_max_cmd_len"; then
  5348. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5349. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5350. + else
  5351. + # Make teststring a little bigger before we do anything with it.
  5352. + # a 1K string should be a reasonable start.
  5353. + for i in 1 2 3 4 5 6 7 8 ; do
  5354. + teststring=$teststring$teststring
  5355. + done
  5356. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5357. + # If test is not a shell built-in, we'll probably end up computing a
  5358. + # maximum length that is only half of the actual maximum length, but
  5359. + # we can't tell.
  5360. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5361. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5362. + test $i != 17 # 1/2 MB should be enough
  5363. + do
  5364. + i=`expr $i + 1`
  5365. + teststring=$teststring$teststring
  5366. + done
  5367. + # Only check the string length outside the loop.
  5368. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5369. + teststring=
  5370. + # Add a significant safety factor because C++ compilers can tack on
  5371. + # massive amounts of additional arguments before passing them to the
  5372. + # linker. It appears as though 1/2 is a usable value.
  5373. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5374. + fi
  5375. + ;;
  5376. + esac
  5377. +
  5378. +fi
  5379. +
  5380. +if test -n $lt_cv_sys_max_cmd_len ; then
  5381. + { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5382. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5383. +else
  5384. + { $as_echo "$as_me:$LINENO: result: none" >&5
  5385. +$as_echo "none" >&6; }
  5386. +fi
  5387. +max_cmd_len=$lt_cv_sys_max_cmd_len
  5388. +
  5389. +
  5390. +
  5391. +
  5392. +
  5393. +
  5394. +: ${CP="cp -f"}
  5395. +: ${MV="mv -f"}
  5396. +: ${RM="rm -f"}
  5397. +
  5398. +{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  5399. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5400. +# Try some XSI features
  5401. +xsi_shell=no
  5402. +( _lt_dummy="a/b/c"
  5403. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5404. + = c,a/b,, \
  5405. + && eval 'test $(( 1 + 1 )) -eq 2 \
  5406. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5407. + && xsi_shell=yes
  5408. +{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  5409. +$as_echo "$xsi_shell" >&6; }
  5410. +
  5411. +
  5412. +{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  5413. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5414. +lt_shell_append=no
  5415. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5416. + >/dev/null 2>&1 \
  5417. + && lt_shell_append=yes
  5418. +{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  5419. +$as_echo "$lt_shell_append" >&6; }
  5420. +
  5421. +
  5422. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5423. + lt_unset=unset
  5424. +else
  5425. + lt_unset=false
  5426. +fi
  5427. +
  5428. +
  5429. +
  5430. +
  5431. +
  5432. +# test EBCDIC or ASCII
  5433. +case `echo X|tr X '\101'` in
  5434. + A) # ASCII based system
  5435. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5436. + lt_SP2NL='tr \040 \012'
  5437. + lt_NL2SP='tr \015\012 \040\040'
  5438. + ;;
  5439. + *) # EBCDIC based system
  5440. + lt_SP2NL='tr \100 \n'
  5441. + lt_NL2SP='tr \r\n \100\100'
  5442. + ;;
  5443. +esac
  5444. +
  5445. +
  5446. +
  5447. +
  5448. +
  5449. +
  5450. +
  5451. +
  5452. +
  5453. +{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5454. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  5455. +if test "${lt_cv_ld_reload_flag+set}" = set; then
  5456. + $as_echo_n "(cached) " >&6
  5457. +else
  5458. + lt_cv_ld_reload_flag='-r'
  5459. +fi
  5460. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5461. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  5462. +reload_flag=$lt_cv_ld_reload_flag
  5463. +case $reload_flag in
  5464. +"" | " "*) ;;
  5465. +*) reload_flag=" $reload_flag" ;;
  5466. +esac
  5467. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5468. +case $host_os in
  5469. + darwin*)
  5470. + if test "$GCC" = yes; then
  5471. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5472. + else
  5473. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5474. + fi
  5475. + ;;
  5476. +esac
  5477. +
  5478. +
  5479. +
  5480. +
  5481. +
  5482. +
  5483. +
  5484. +
  5485. +
  5486. +if test -n "$ac_tool_prefix"; then
  5487. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5488. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5489. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5490. +$as_echo_n "checking for $ac_word... " >&6; }
  5491. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5492. + $as_echo_n "(cached) " >&6
  5493. +else
  5494. + if test -n "$OBJDUMP"; then
  5495. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5496. +else
  5497. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5498. +for as_dir in $PATH
  5499. +do
  5500. + IFS=$as_save_IFS
  5501. + test -z "$as_dir" && as_dir=.
  5502. + for ac_exec_ext in '' $ac_executable_extensions; do
  5503. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5504. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5505. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5506. + break 2
  5507. + fi
  5508. +done
  5509. +done
  5510. +IFS=$as_save_IFS
  5511. +
  5512. +fi
  5513. +fi
  5514. +OBJDUMP=$ac_cv_prog_OBJDUMP
  5515. +if test -n "$OBJDUMP"; then
  5516. + { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5517. +$as_echo "$OBJDUMP" >&6; }
  5518. +else
  5519. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5520. +$as_echo "no" >&6; }
  5521. +fi
  5522. +
  5523. +
  5524. +fi
  5525. +if test -z "$ac_cv_prog_OBJDUMP"; then
  5526. + ac_ct_OBJDUMP=$OBJDUMP
  5527. + # Extract the first word of "objdump", so it can be a program name with args.
  5528. +set dummy objdump; ac_word=$2
  5529. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5530. +$as_echo_n "checking for $ac_word... " >&6; }
  5531. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5532. + $as_echo_n "(cached) " >&6
  5533. +else
  5534. + if test -n "$ac_ct_OBJDUMP"; then
  5535. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5536. +else
  5537. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5538. +for as_dir in $PATH
  5539. +do
  5540. + IFS=$as_save_IFS
  5541. + test -z "$as_dir" && as_dir=.
  5542. + for ac_exec_ext in '' $ac_executable_extensions; do
  5543. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5544. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5545. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5546. + break 2
  5547. + fi
  5548. +done
  5549. +done
  5550. +IFS=$as_save_IFS
  5551. +
  5552. +fi
  5553. +fi
  5554. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5555. +if test -n "$ac_ct_OBJDUMP"; then
  5556. + { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5557. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  5558. +else
  5559. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5560. +$as_echo "no" >&6; }
  5561. +fi
  5562. +
  5563. + if test "x$ac_ct_OBJDUMP" = x; then
  5564. + OBJDUMP="false"
  5565. + else
  5566. + case $cross_compiling:$ac_tool_warned in
  5567. +yes:)
  5568. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5569. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5570. +ac_tool_warned=yes ;;
  5571. +esac
  5572. + OBJDUMP=$ac_ct_OBJDUMP
  5573. + fi
  5574. +else
  5575. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  5576. +fi
  5577. +
  5578. +test -z "$OBJDUMP" && OBJDUMP=objdump
  5579. +
  5580. +
  5581. +
  5582. +
  5583. +
  5584. +
  5585. +
  5586. +
  5587. +
  5588. +{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  5589. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5590. +if test "${lt_cv_deplibs_check_method+set}" = set; then
  5591. + $as_echo_n "(cached) " >&6
  5592. +else
  5593. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  5594. +lt_cv_file_magic_test_file=
  5595. +lt_cv_deplibs_check_method='unknown'
  5596. +# Need to set the preceding variable on all platforms that support
  5597. +# interlibrary dependencies.
  5598. +# 'none' -- dependencies not supported.
  5599. +# `unknown' -- same as none, but documents that we really don't know.
  5600. +# 'pass_all' -- all dependencies passed with no checks.
  5601. +# 'test_compile' -- check by making test program.
  5602. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5603. +# which responds to the $file_magic_cmd with a given extended regex.
  5604. +# If you have `file' or equivalent on your system and you're not sure
  5605. +# whether `pass_all' will *always* work, you probably want this one.
  5606. +
  5607. +case $host_os in
  5608. +aix[4-9]*)
  5609. + lt_cv_deplibs_check_method=pass_all
  5610. + ;;
  5611. +
  5612. +beos*)
  5613. + lt_cv_deplibs_check_method=pass_all
  5614. + ;;
  5615. +
  5616. +bsdi[45]*)
  5617. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5618. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5619. + lt_cv_file_magic_test_file=/shlib/libc.so
  5620. + ;;
  5621. +
  5622. +cygwin*)
  5623. + # func_win32_libid is a shell function defined in ltmain.sh
  5624. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5625. + lt_cv_file_magic_cmd='func_win32_libid'
  5626. + ;;
  5627. +
  5628. +mingw* | pw32*)
  5629. + # Base MSYS/MinGW do not provide the 'file' command needed by
  5630. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5631. + # unless we find 'file', for example because we are cross-compiling.
  5632. + if ( file / ) >/dev/null 2>&1; then
  5633. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5634. + lt_cv_file_magic_cmd='func_win32_libid'
  5635. + else
  5636. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5637. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5638. + fi
  5639. + ;;
  5640. +
  5641. +cegcc)
  5642. + # use the weaker test based on 'objdump'. See mingw*.
  5643. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5644. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5645. + ;;
  5646. +
  5647. +darwin* | rhapsody*)
  5648. + lt_cv_deplibs_check_method=pass_all
  5649. + ;;
  5650. +
  5651. +freebsd* | dragonfly*)
  5652. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5653. + case $host_cpu in
  5654. + i*86 )
  5655. + # Not sure whether the presence of OpenBSD here was a mistake.
  5656. + # Let's accept both of them until this is cleared up.
  5657. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5658. + lt_cv_file_magic_cmd=/usr/bin/file
  5659. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5660. + ;;
  5661. + esac
  5662. + else
  5663. + lt_cv_deplibs_check_method=pass_all
  5664. + fi
  5665. + ;;
  5666. +
  5667. +gnu*)
  5668. + lt_cv_deplibs_check_method=pass_all
  5669. + ;;
  5670. +
  5671. +hpux10.20* | hpux11*)
  5672. + lt_cv_file_magic_cmd=/usr/bin/file
  5673. + case $host_cpu in
  5674. + ia64*)
  5675. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5676. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5677. + ;;
  5678. + hppa*64*)
  5679. + 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]'
  5680. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5681. + ;;
  5682. + *)
  5683. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5684. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5685. + ;;
  5686. + esac
  5687. + ;;
  5688. +
  5689. +interix[3-9]*)
  5690. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5691. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5692. + ;;
  5693. +
  5694. +irix5* | irix6* | nonstopux*)
  5695. + case $LD in
  5696. + *-32|*"-32 ") libmagic=32-bit;;
  5697. + *-n32|*"-n32 ") libmagic=N32;;
  5698. + *-64|*"-64 ") libmagic=64-bit;;
  5699. + *) libmagic=never-match;;
  5700. + esac
  5701. + lt_cv_deplibs_check_method=pass_all
  5702. + ;;
  5703. +
  5704. +# This must be Linux ELF.
  5705. +linux* | k*bsd*-gnu)
  5706. + lt_cv_deplibs_check_method=pass_all
  5707. + ;;
  5708. +
  5709. +netbsd*)
  5710. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5711. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5712. + else
  5713. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5714. + fi
  5715. + ;;
  5716. +
  5717. +newos6*)
  5718. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5719. + lt_cv_file_magic_cmd=/usr/bin/file
  5720. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5721. + ;;
  5722. +
  5723. +*nto* | *qnx*)
  5724. + lt_cv_deplibs_check_method=pass_all
  5725. + ;;
  5726. +
  5727. +openbsd*)
  5728. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5729. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5730. + else
  5731. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5732. + fi
  5733. + ;;
  5734. +
  5735. +osf3* | osf4* | osf5*)
  5736. + lt_cv_deplibs_check_method=pass_all
  5737. + ;;
  5738. +
  5739. +rdos*)
  5740. + lt_cv_deplibs_check_method=pass_all
  5741. + ;;
  5742. +
  5743. +solaris*)
  5744. + lt_cv_deplibs_check_method=pass_all
  5745. + ;;
  5746. +
  5747. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5748. + lt_cv_deplibs_check_method=pass_all
  5749. + ;;
  5750. +
  5751. +sysv4 | sysv4.3*)
  5752. + case $host_vendor in
  5753. + motorola)
  5754. + 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]'
  5755. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5756. + ;;
  5757. + ncr)
  5758. + lt_cv_deplibs_check_method=pass_all
  5759. + ;;
  5760. + sequent)
  5761. + lt_cv_file_magic_cmd='/bin/file'
  5762. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5763. + ;;
  5764. + sni)
  5765. + lt_cv_file_magic_cmd='/bin/file'
  5766. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5767. + lt_cv_file_magic_test_file=/lib/libc.so
  5768. + ;;
  5769. + siemens)
  5770. + lt_cv_deplibs_check_method=pass_all
  5771. + ;;
  5772. + pc)
  5773. + lt_cv_deplibs_check_method=pass_all
  5774. + ;;
  5775. + esac
  5776. + ;;
  5777. +
  5778. +tpf*)
  5779. + lt_cv_deplibs_check_method=pass_all
  5780. + ;;
  5781. +esac
  5782. +
  5783. +fi
  5784. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5785. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  5786. +file_magic_cmd=$lt_cv_file_magic_cmd
  5787. +deplibs_check_method=$lt_cv_deplibs_check_method
  5788. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5789. +
  5790. +
  5791. +
  5792. +
  5793. +
  5794. +
  5795. +
  5796. +
  5797. +
  5798. +
  5799. +
  5800. +
  5801. +if test -n "$ac_tool_prefix"; then
  5802. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5803. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  5804. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5805. +$as_echo_n "checking for $ac_word... " >&6; }
  5806. +if test "${ac_cv_prog_AR+set}" = set; then
  5807. + $as_echo_n "(cached) " >&6
  5808. +else
  5809. + if test -n "$AR"; then
  5810. + ac_cv_prog_AR="$AR" # Let the user override the test.
  5811. +else
  5812. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5813. +for as_dir in $PATH
  5814. +do
  5815. + IFS=$as_save_IFS
  5816. + test -z "$as_dir" && as_dir=.
  5817. + for ac_exec_ext in '' $ac_executable_extensions; do
  5818. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5819. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  5820. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5821. + break 2
  5822. + fi
  5823. +done
  5824. +done
  5825. +IFS=$as_save_IFS
  5826. +
  5827. +fi
  5828. +fi
  5829. +AR=$ac_cv_prog_AR
  5830. +if test -n "$AR"; then
  5831. + { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5832. +$as_echo "$AR" >&6; }
  5833. +else
  5834. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5835. +$as_echo "no" >&6; }
  5836. +fi
  5837. +
  5838. +
  5839. +fi
  5840. +if test -z "$ac_cv_prog_AR"; then
  5841. + ac_ct_AR=$AR
  5842. + # Extract the first word of "ar", so it can be a program name with args.
  5843. +set dummy ar; ac_word=$2
  5844. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5845. +$as_echo_n "checking for $ac_word... " >&6; }
  5846. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5847. + $as_echo_n "(cached) " >&6
  5848. +else
  5849. + if test -n "$ac_ct_AR"; then
  5850. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5851. +else
  5852. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5853. +for as_dir in $PATH
  5854. +do
  5855. + IFS=$as_save_IFS
  5856. + test -z "$as_dir" && as_dir=.
  5857. + for ac_exec_ext in '' $ac_executable_extensions; do
  5858. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5859. + ac_cv_prog_ac_ct_AR="ar"
  5860. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5861. + break 2
  5862. + fi
  5863. +done
  5864. +done
  5865. +IFS=$as_save_IFS
  5866. +
  5867. +fi
  5868. +fi
  5869. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5870. +if test -n "$ac_ct_AR"; then
  5871. + { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5872. +$as_echo "$ac_ct_AR" >&6; }
  5873. +else
  5874. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5875. +$as_echo "no" >&6; }
  5876. +fi
  5877. +
  5878. + if test "x$ac_ct_AR" = x; then
  5879. + AR="false"
  5880. + else
  5881. + case $cross_compiling:$ac_tool_warned in
  5882. +yes:)
  5883. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5884. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5885. +ac_tool_warned=yes ;;
  5886. +esac
  5887. + AR=$ac_ct_AR
  5888. + fi
  5889. +else
  5890. + AR="$ac_cv_prog_AR"
  5891. +fi
  5892. +
  5893. +test -z "$AR" && AR=ar
  5894. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  5895. +
  5896. +
  5897. +
  5898. +
  5899. +
  5900. +
  5901. +
  5902. +
  5903. +
  5904. +
  5905. +
  5906. +if test -n "$ac_tool_prefix"; then
  5907. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5908. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  5909. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5910. +$as_echo_n "checking for $ac_word... " >&6; }
  5911. +if test "${ac_cv_prog_STRIP+set}" = set; then
  5912. + $as_echo_n "(cached) " >&6
  5913. +else
  5914. + if test -n "$STRIP"; then
  5915. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5916. +else
  5917. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5918. +for as_dir in $PATH
  5919. +do
  5920. + IFS=$as_save_IFS
  5921. + test -z "$as_dir" && as_dir=.
  5922. + for ac_exec_ext in '' $ac_executable_extensions; do
  5923. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5924. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5925. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5926. + break 2
  5927. + fi
  5928. +done
  5929. +done
  5930. +IFS=$as_save_IFS
  5931. +
  5932. +fi
  5933. +fi
  5934. +STRIP=$ac_cv_prog_STRIP
  5935. +if test -n "$STRIP"; then
  5936. + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5937. +$as_echo "$STRIP" >&6; }
  5938. +else
  5939. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5940. +$as_echo "no" >&6; }
  5941. +fi
  5942. +
  5943. +
  5944. +fi
  5945. +if test -z "$ac_cv_prog_STRIP"; then
  5946. + ac_ct_STRIP=$STRIP
  5947. + # Extract the first word of "strip", so it can be a program name with args.
  5948. +set dummy strip; ac_word=$2
  5949. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5950. +$as_echo_n "checking for $ac_word... " >&6; }
  5951. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5952. + $as_echo_n "(cached) " >&6
  5953. +else
  5954. + if test -n "$ac_ct_STRIP"; then
  5955. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5956. +else
  5957. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5958. +for as_dir in $PATH
  5959. +do
  5960. + IFS=$as_save_IFS
  5961. + test -z "$as_dir" && as_dir=.
  5962. + for ac_exec_ext in '' $ac_executable_extensions; do
  5963. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5964. + ac_cv_prog_ac_ct_STRIP="strip"
  5965. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5966. + break 2
  5967. + fi
  5968. +done
  5969. +done
  5970. +IFS=$as_save_IFS
  5971. +
  5972. +fi
  5973. +fi
  5974. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5975. +if test -n "$ac_ct_STRIP"; then
  5976. + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5977. +$as_echo "$ac_ct_STRIP" >&6; }
  5978. +else
  5979. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5980. +$as_echo "no" >&6; }
  5981. +fi
  5982. +
  5983. + if test "x$ac_ct_STRIP" = x; then
  5984. + STRIP=":"
  5985. + else
  5986. + case $cross_compiling:$ac_tool_warned in
  5987. +yes:)
  5988. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5989. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5990. +ac_tool_warned=yes ;;
  5991. +esac
  5992. + STRIP=$ac_ct_STRIP
  5993. + fi
  5994. +else
  5995. + STRIP="$ac_cv_prog_STRIP"
  5996. +fi
  5997. +
  5998. +test -z "$STRIP" && STRIP=:
  5999. +
  6000. +
  6001. +
  6002. +
  6003. +
  6004. +
  6005. +if test -n "$ac_tool_prefix"; then
  6006. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6007. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6008. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6009. +$as_echo_n "checking for $ac_word... " >&6; }
  6010. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  6011. + $as_echo_n "(cached) " >&6
  6012. +else
  6013. + if test -n "$RANLIB"; then
  6014. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6015. +else
  6016. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6017. +for as_dir in $PATH
  6018. +do
  6019. + IFS=$as_save_IFS
  6020. + test -z "$as_dir" && as_dir=.
  6021. + for ac_exec_ext in '' $ac_executable_extensions; do
  6022. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6023. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6024. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6025. + break 2
  6026. + fi
  6027. +done
  6028. +done
  6029. +IFS=$as_save_IFS
  6030. +
  6031. +fi
  6032. +fi
  6033. +RANLIB=$ac_cv_prog_RANLIB
  6034. +if test -n "$RANLIB"; then
  6035. + { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  6036. +$as_echo "$RANLIB" >&6; }
  6037. +else
  6038. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6039. +$as_echo "no" >&6; }
  6040. +fi
  6041. +
  6042. +
  6043. +fi
  6044. +if test -z "$ac_cv_prog_RANLIB"; then
  6045. + ac_ct_RANLIB=$RANLIB
  6046. + # Extract the first word of "ranlib", so it can be a program name with args.
  6047. +set dummy ranlib; ac_word=$2
  6048. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6049. +$as_echo_n "checking for $ac_word... " >&6; }
  6050. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6051. + $as_echo_n "(cached) " >&6
  6052. +else
  6053. + if test -n "$ac_ct_RANLIB"; then
  6054. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6055. +else
  6056. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6057. +for as_dir in $PATH
  6058. +do
  6059. + IFS=$as_save_IFS
  6060. + test -z "$as_dir" && as_dir=.
  6061. + for ac_exec_ext in '' $ac_executable_extensions; do
  6062. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6063. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  6064. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6065. + break 2
  6066. + fi
  6067. +done
  6068. +done
  6069. +IFS=$as_save_IFS
  6070. +
  6071. +fi
  6072. +fi
  6073. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6074. +if test -n "$ac_ct_RANLIB"; then
  6075. + { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6076. +$as_echo "$ac_ct_RANLIB" >&6; }
  6077. +else
  6078. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6079. +$as_echo "no" >&6; }
  6080. +fi
  6081. +
  6082. + if test "x$ac_ct_RANLIB" = x; then
  6083. + RANLIB=":"
  6084. + else
  6085. + case $cross_compiling:$ac_tool_warned in
  6086. +yes:)
  6087. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6088. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6089. +ac_tool_warned=yes ;;
  6090. +esac
  6091. + RANLIB=$ac_ct_RANLIB
  6092. + fi
  6093. +else
  6094. + RANLIB="$ac_cv_prog_RANLIB"
  6095. +fi
  6096. +
  6097. +test -z "$RANLIB" && RANLIB=:
  6098. +
  6099. +
  6100. +
  6101. +
  6102. +
  6103. +
  6104. +# Determine commands to create old-style static archives.
  6105. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6106. +old_postinstall_cmds='chmod 644 $oldlib'
  6107. +old_postuninstall_cmds=
  6108. +
  6109. +if test -n "$RANLIB"; then
  6110. + case $host_os in
  6111. + openbsd*)
  6112. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6113. + ;;
  6114. + *)
  6115. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6116. + ;;
  6117. + esac
  6118. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6119. +fi
  6120. +
  6121. +
  6122. +
  6123. +
  6124. +
  6125. +
  6126. +
  6127. +
  6128. +
  6129. +
  6130. +
  6131. +
  6132. +
  6133. +
  6134. +
  6135. +
  6136. +
  6137. +
  6138. +
  6139. +
  6140. +
  6141. +
  6142. +
  6143. +
  6144. +
  6145. +
  6146. +
  6147. +
  6148. +
  6149. +
  6150. +
  6151. +
  6152. +
  6153. +
  6154. +# If no C compiler was specified, use CC.
  6155. +LTCC=${LTCC-"$CC"}
  6156. +
  6157. +# If no C compiler flags were specified, use CFLAGS.
  6158. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6159. +
  6160. +# Allow CC to be a program name with arguments.
  6161. +compiler=$CC
  6162. +
  6163. +
  6164. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6165. +{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6166. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6167. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6168. + $as_echo_n "(cached) " >&6
  6169. +else
  6170. +
  6171. +# These are sane defaults that work on at least a few old systems.
  6172. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6173. +
  6174. +# Character class describing NM global symbol codes.
  6175. +symcode='[BCDEGRST]'
  6176. +
  6177. +# Regexp to match symbols that can be accessed directly from C.
  6178. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6179. +
  6180. +# Define system-specific variables.
  6181. +case $host_os in
  6182. +aix*)
  6183. + symcode='[BCDT]'
  6184. + ;;
  6185. +cygwin* | mingw* | pw32* | cegcc*)
  6186. + symcode='[ABCDGISTW]'
  6187. + ;;
  6188. +hpux*)
  6189. + if test "$host_cpu" = ia64; then
  6190. + symcode='[ABCDEGRST]'
  6191. + fi
  6192. + ;;
  6193. +irix* | nonstopux*)
  6194. + symcode='[BCDEGRST]'
  6195. + ;;
  6196. +osf*)
  6197. + symcode='[BCDEGQRST]'
  6198. + ;;
  6199. +solaris*)
  6200. + symcode='[BDRT]'
  6201. + ;;
  6202. +sco3.2v5*)
  6203. + symcode='[DT]'
  6204. + ;;
  6205. +sysv4.2uw2*)
  6206. + symcode='[DT]'
  6207. + ;;
  6208. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6209. + symcode='[ABDT]'
  6210. + ;;
  6211. +sysv4)
  6212. + symcode='[DFNSTU]'
  6213. + ;;
  6214. +esac
  6215. +
  6216. +# If we're using GNU nm, then use its standard symbol codes.
  6217. +case `$NM -V 2>&1` in
  6218. +*GNU* | *'with BFD'*)
  6219. + symcode='[ABCDGIRSTW]' ;;
  6220. +esac
  6221. +
  6222. +# Transform an extracted symbol line into a proper C declaration.
  6223. +# Some systems (esp. on ia64) link data and code symbols differently,
  6224. +# so use this general approach.
  6225. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6226. +
  6227. +# Transform an extracted symbol line into symbol name and symbol address
  6228. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6229. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6230. +
  6231. +# Handle CRLF in mingw tool chain
  6232. +opt_cr=
  6233. +case $build_os in
  6234. +mingw*)
  6235. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6236. + ;;
  6237. +esac
  6238. +
  6239. +# Try without a prefix underscore, then with it.
  6240. +for ac_symprfx in "" "_"; do
  6241. +
  6242. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6243. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  6244. +
  6245. + # Write the raw and C identifiers.
  6246. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6247. + # Fake it for dumpbin and say T for any non-static function
  6248. + # and D for any global variable.
  6249. + # Also find C++ and __fastcall symbols from MSVC++,
  6250. + # which start with @ or ?.
  6251. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  6252. +" {last_section=section; section=\$ 3};"\
  6253. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6254. +" \$ 0!~/External *\|/{next};"\
  6255. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6256. +" {if(hide[section]) next};"\
  6257. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6258. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6259. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6260. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6261. +" ' prfx=^$ac_symprfx"
  6262. + else
  6263. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6264. + fi
  6265. +
  6266. + # Check to see that the pipe works correctly.
  6267. + pipe_works=no
  6268. +
  6269. + rm -f conftest*
  6270. + cat > conftest.$ac_ext <<_LT_EOF
  6271. +#ifdef __cplusplus
  6272. +extern "C" {
  6273. +#endif
  6274. +char nm_test_var;
  6275. +void nm_test_func(void);
  6276. +void nm_test_func(void){}
  6277. +#ifdef __cplusplus
  6278. +}
  6279. +#endif
  6280. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6281. +_LT_EOF
  6282. +
  6283. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6284. + (eval $ac_compile) 2>&5
  6285. + ac_status=$?
  6286. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6287. + (exit $ac_status); }; then
  6288. + # Now try to grab the symbols.
  6289. + nlist=conftest.nm
  6290. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6291. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6292. + ac_status=$?
  6293. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6294. + (exit $ac_status); } && test -s "$nlist"; then
  6295. + # Try sorting and uniquifying the output.
  6296. + if sort "$nlist" | uniq > "$nlist"T; then
  6297. + mv -f "$nlist"T "$nlist"
  6298. + else
  6299. + rm -f "$nlist"T
  6300. + fi
  6301. +
  6302. + # Make sure that we snagged all the symbols we need.
  6303. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6304. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6305. + cat <<_LT_EOF > conftest.$ac_ext
  6306. +#ifdef __cplusplus
  6307. +extern "C" {
  6308. +#endif
  6309. +
  6310. +_LT_EOF
  6311. + # Now generate the symbol file.
  6312. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6313. +
  6314. + cat <<_LT_EOF >> conftest.$ac_ext
  6315. +
  6316. +/* The mapping between symbol names and symbols. */
  6317. +const struct {
  6318. + const char *name;
  6319. + void *address;
  6320. +}
  6321. +lt__PROGRAM__LTX_preloaded_symbols[] =
  6322. +{
  6323. + { "@PROGRAM@", (void *) 0 },
  6324. +_LT_EOF
  6325. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6326. + cat <<\_LT_EOF >> conftest.$ac_ext
  6327. + {0, (void *) 0}
  6328. +};
  6329. +
  6330. +/* This works around a problem in FreeBSD linker */
  6331. +#ifdef FREEBSD_WORKAROUND
  6332. +static const void *lt_preloaded_setup() {
  6333. + return lt__PROGRAM__LTX_preloaded_symbols;
  6334. +}
  6335. +#endif
  6336. +
  6337. +#ifdef __cplusplus
  6338. +}
  6339. +#endif
  6340. +_LT_EOF
  6341. + # Now try linking the two files.
  6342. + mv conftest.$ac_objext conftstm.$ac_objext
  6343. + lt_save_LIBS="$LIBS"
  6344. + lt_save_CFLAGS="$CFLAGS"
  6345. + LIBS="conftstm.$ac_objext"
  6346. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6347. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6348. + (eval $ac_link) 2>&5
  6349. + ac_status=$?
  6350. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6351. + (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6352. + pipe_works=yes
  6353. + fi
  6354. + LIBS="$lt_save_LIBS"
  6355. + CFLAGS="$lt_save_CFLAGS"
  6356. + else
  6357. + echo "cannot find nm_test_func in $nlist" >&5
  6358. + fi
  6359. + else
  6360. + echo "cannot find nm_test_var in $nlist" >&5
  6361. + fi
  6362. + else
  6363. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6364. + fi
  6365. + else
  6366. + echo "$progname: failed program was:" >&5
  6367. + cat conftest.$ac_ext >&5
  6368. + fi
  6369. + rm -rf conftest* conftst*
  6370. +
  6371. + # Do not use the global_symbol_pipe unless it works.
  6372. + if test "$pipe_works" = yes; then
  6373. + break
  6374. + else
  6375. + lt_cv_sys_global_symbol_pipe=
  6376. + fi
  6377. +done
  6378. +
  6379. +fi
  6380. +
  6381. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6382. + lt_cv_sys_global_symbol_to_cdecl=
  6383. +fi
  6384. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6385. + { $as_echo "$as_me:$LINENO: result: failed" >&5
  6386. +$as_echo "failed" >&6; }
  6387. +else
  6388. + { $as_echo "$as_me:$LINENO: result: ok" >&5
  6389. +$as_echo "ok" >&6; }
  6390. +fi
  6391. +
  6392. +
  6393. +
  6394. +
  6395. +
  6396. +
  6397. +
  6398. +
  6399. +
  6400. +
  6401. +
  6402. +
  6403. +
  6404. +
  6405. +
  6406. +
  6407. +
  6408. +
  6409. +
  6410. +
  6411. +
  6412. +
  6413. +# Check whether --enable-libtool-lock was given.
  6414. +if test "${enable_libtool_lock+set}" = set; then
  6415. + enableval=$enable_libtool_lock;
  6416. +fi
  6417. +
  6418. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6419. +
  6420. +# Some flags need to be propagated to the compiler or linker for good
  6421. +# libtool support.
  6422. +case $host in
  6423. +ia64-*-hpux*)
  6424. + # Find out which ABI we are using.
  6425. + echo 'int i;' > conftest.$ac_ext
  6426. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6427. + (eval $ac_compile) 2>&5
  6428. + ac_status=$?
  6429. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6430. + (exit $ac_status); }; then
  6431. + case `/usr/bin/file conftest.$ac_objext` in
  6432. + *ELF-32*)
  6433. + HPUX_IA64_MODE="32"
  6434. + ;;
  6435. + *ELF-64*)
  6436. + HPUX_IA64_MODE="64"
  6437. + ;;
  6438. + esac
  6439. + fi
  6440. + rm -rf conftest*
  6441. + ;;
  6442. +*-*-irix6*)
  6443. + # Find out which ABI we are using.
  6444. + echo '#line 5964 "configure"' > conftest.$ac_ext
  6445. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6446. + (eval $ac_compile) 2>&5
  6447. + ac_status=$?
  6448. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6449. + (exit $ac_status); }; then
  6450. + if test "$lt_cv_prog_gnu_ld" = yes; then
  6451. + case `/usr/bin/file conftest.$ac_objext` in
  6452. + *32-bit*)
  6453. + LD="${LD-ld} -melf32bsmip"
  6454. + ;;
  6455. + *N32*)
  6456. + LD="${LD-ld} -melf32bmipn32"
  6457. + ;;
  6458. + *64-bit*)
  6459. + LD="${LD-ld} -melf64bmip"
  6460. + ;;
  6461. + esac
  6462. + else
  6463. + case `/usr/bin/file conftest.$ac_objext` in
  6464. + *32-bit*)
  6465. + LD="${LD-ld} -32"
  6466. + ;;
  6467. + *N32*)
  6468. + LD="${LD-ld} -n32"
  6469. + ;;
  6470. + *64-bit*)
  6471. + LD="${LD-ld} -64"
  6472. + ;;
  6473. + esac
  6474. + fi
  6475. + fi
  6476. + rm -rf conftest*
  6477. + ;;
  6478. +
  6479. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6480. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6481. + # Find out which ABI we are using.
  6482. + echo 'int i;' > conftest.$ac_ext
  6483. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6484. + (eval $ac_compile) 2>&5
  6485. + ac_status=$?
  6486. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6487. + (exit $ac_status); }; then
  6488. + case `/usr/bin/file conftest.o` in
  6489. + *32-bit*)
  6490. + case $host in
  6491. + x86_64-*kfreebsd*-gnu)
  6492. + LD="${LD-ld} -m elf_i386_fbsd"
  6493. + ;;
  6494. + x86_64-*linux*)
  6495. + LD="${LD-ld} -m elf_i386"
  6496. + ;;
  6497. + ppc64-*linux*|powerpc64-*linux*)
  6498. + LD="${LD-ld} -m elf32ppclinux"
  6499. + ;;
  6500. + s390x-*linux*)
  6501. + LD="${LD-ld} -m elf_s390"
  6502. + ;;
  6503. + sparc64-*linux*)
  6504. + LD="${LD-ld} -m elf32_sparc"
  6505. + ;;
  6506. + esac
  6507. + ;;
  6508. + *64-bit*)
  6509. + case $host in
  6510. + x86_64-*kfreebsd*-gnu)
  6511. + LD="${LD-ld} -m elf_x86_64_fbsd"
  6512. + ;;
  6513. + x86_64-*linux*)
  6514. + LD="${LD-ld} -m elf_x86_64"
  6515. + ;;
  6516. + ppc*-*linux*|powerpc*-*linux*)
  6517. + LD="${LD-ld} -m elf64ppc"
  6518. + ;;
  6519. + s390*-*linux*|s390*-*tpf*)
  6520. + LD="${LD-ld} -m elf64_s390"
  6521. + ;;
  6522. + sparc*-*linux*)
  6523. + LD="${LD-ld} -m elf64_sparc"
  6524. + ;;
  6525. + esac
  6526. + ;;
  6527. + esac
  6528. + fi
  6529. + rm -rf conftest*
  6530. + ;;
  6531. +
  6532. +*-*-sco3.2v5*)
  6533. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6534. + SAVE_CFLAGS="$CFLAGS"
  6535. + CFLAGS="$CFLAGS -belf"
  6536. + { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6537. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6538. +if test "${lt_cv_cc_needs_belf+set}" = set; then
  6539. + $as_echo_n "(cached) " >&6
  6540. +else
  6541. + ac_ext=c
  6542. +ac_cpp='$CPP $CPPFLAGS'
  6543. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6544. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6545. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6546. +
  6547. + cat >conftest.$ac_ext <<_ACEOF
  6548. +/* confdefs.h. */
  6549. +_ACEOF
  6550. +cat confdefs.h >>conftest.$ac_ext
  6551. +cat >>conftest.$ac_ext <<_ACEOF
  6552. +/* end confdefs.h. */
  6553. +
  6554. +int
  6555. +main ()
  6556. +{
  6557. +
  6558. + ;
  6559. + return 0;
  6560. +}
  6561. +_ACEOF
  6562. +rm -f conftest.$ac_objext conftest$ac_exeext
  6563. +if { (ac_try="$ac_link"
  6564. +case "(($ac_try" in
  6565. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6566. + *) ac_try_echo=$ac_try;;
  6567. +esac
  6568. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6569. +$as_echo "$ac_try_echo") >&5
  6570. + (eval "$ac_link") 2>conftest.er1
  6571. + ac_status=$?
  6572. + grep -v '^ *+' conftest.er1 >conftest.err
  6573. + rm -f conftest.er1
  6574. + cat conftest.err >&5
  6575. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6576. + (exit $ac_status); } && {
  6577. + test -z "$ac_c_werror_flag" ||
  6578. + test ! -s conftest.err
  6579. + } && test -s conftest$ac_exeext && {
  6580. + test "$cross_compiling" = yes ||
  6581. + $as_test_x conftest$ac_exeext
  6582. + }; then
  6583. + lt_cv_cc_needs_belf=yes
  6584. +else
  6585. + $as_echo "$as_me: failed program was:" >&5
  6586. +sed 's/^/| /' conftest.$ac_ext >&5
  6587. +
  6588. + lt_cv_cc_needs_belf=no
  6589. +fi
  6590. +
  6591. +rm -rf conftest.dSYM
  6592. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6593. + conftest$ac_exeext conftest.$ac_ext
  6594. + ac_ext=c
  6595. +ac_cpp='$CPP $CPPFLAGS'
  6596. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6597. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6598. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6599. +
  6600. +fi
  6601. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6602. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  6603. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6604. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6605. + CFLAGS="$SAVE_CFLAGS"
  6606. + fi
  6607. + ;;
  6608. +sparc*-*solaris*)
  6609. + # Find out which ABI we are using.
  6610. + echo 'int i;' > conftest.$ac_ext
  6611. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6612. + (eval $ac_compile) 2>&5
  6613. + ac_status=$?
  6614. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6615. + (exit $ac_status); }; then
  6616. + case `/usr/bin/file conftest.o` in
  6617. + *64-bit*)
  6618. + case $lt_cv_prog_gnu_ld in
  6619. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6620. + *)
  6621. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6622. + LD="${LD-ld} -64"
  6623. + fi
  6624. + ;;
  6625. + esac
  6626. + ;;
  6627. + esac
  6628. + fi
  6629. + rm -rf conftest*
  6630. + ;;
  6631. +esac
  6632. +
  6633. +need_locks="$enable_libtool_lock"
  6634. +
  6635. +
  6636. + case $host_os in
  6637. + rhapsody* | darwin*)
  6638. + if test -n "$ac_tool_prefix"; then
  6639. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6640. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6641. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6642. +$as_echo_n "checking for $ac_word... " >&6; }
  6643. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6644. + $as_echo_n "(cached) " >&6
  6645. +else
  6646. + if test -n "$DSYMUTIL"; then
  6647. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6648. +else
  6649. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6650. +for as_dir in $PATH
  6651. +do
  6652. + IFS=$as_save_IFS
  6653. + test -z "$as_dir" && as_dir=.
  6654. + for ac_exec_ext in '' $ac_executable_extensions; do
  6655. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6656. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6657. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6658. + break 2
  6659. + fi
  6660. +done
  6661. +done
  6662. +IFS=$as_save_IFS
  6663. +
  6664. +fi
  6665. +fi
  6666. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6667. +if test -n "$DSYMUTIL"; then
  6668. + { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6669. +$as_echo "$DSYMUTIL" >&6; }
  6670. +else
  6671. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6672. +$as_echo "no" >&6; }
  6673. +fi
  6674. +
  6675. +
  6676. +fi
  6677. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  6678. + ac_ct_DSYMUTIL=$DSYMUTIL
  6679. + # Extract the first word of "dsymutil", so it can be a program name with args.
  6680. +set dummy dsymutil; ac_word=$2
  6681. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6682. +$as_echo_n "checking for $ac_word... " >&6; }
  6683. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6684. + $as_echo_n "(cached) " >&6
  6685. +else
  6686. + if test -n "$ac_ct_DSYMUTIL"; then
  6687. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6688. +else
  6689. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6690. +for as_dir in $PATH
  6691. +do
  6692. + IFS=$as_save_IFS
  6693. + test -z "$as_dir" && as_dir=.
  6694. + for ac_exec_ext in '' $ac_executable_extensions; do
  6695. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6696. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6697. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6698. + break 2
  6699. + fi
  6700. +done
  6701. +done
  6702. +IFS=$as_save_IFS
  6703. +
  6704. +fi
  6705. +fi
  6706. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6707. +if test -n "$ac_ct_DSYMUTIL"; then
  6708. + { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6709. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  6710. +else
  6711. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6712. +$as_echo "no" >&6; }
  6713. +fi
  6714. +
  6715. + if test "x$ac_ct_DSYMUTIL" = x; then
  6716. + DSYMUTIL=":"
  6717. + else
  6718. + case $cross_compiling:$ac_tool_warned in
  6719. +yes:)
  6720. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6721. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6722. +ac_tool_warned=yes ;;
  6723. +esac
  6724. + DSYMUTIL=$ac_ct_DSYMUTIL
  6725. + fi
  6726. +else
  6727. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6728. +fi
  6729. +
  6730. + if test -n "$ac_tool_prefix"; then
  6731. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6732. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6733. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6734. +$as_echo_n "checking for $ac_word... " >&6; }
  6735. +if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6736. + $as_echo_n "(cached) " >&6
  6737. +else
  6738. + if test -n "$NMEDIT"; then
  6739. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6740. +else
  6741. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6742. +for as_dir in $PATH
  6743. +do
  6744. + IFS=$as_save_IFS
  6745. + test -z "$as_dir" && as_dir=.
  6746. + for ac_exec_ext in '' $ac_executable_extensions; do
  6747. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6748. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6749. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6750. + break 2
  6751. + fi
  6752. +done
  6753. +done
  6754. +IFS=$as_save_IFS
  6755. +
  6756. +fi
  6757. +fi
  6758. +NMEDIT=$ac_cv_prog_NMEDIT
  6759. +if test -n "$NMEDIT"; then
  6760. + { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6761. +$as_echo "$NMEDIT" >&6; }
  6762. +else
  6763. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6764. +$as_echo "no" >&6; }
  6765. +fi
  6766. +
  6767. +
  6768. +fi
  6769. +if test -z "$ac_cv_prog_NMEDIT"; then
  6770. + ac_ct_NMEDIT=$NMEDIT
  6771. + # Extract the first word of "nmedit", so it can be a program name with args.
  6772. +set dummy nmedit; ac_word=$2
  6773. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6774. +$as_echo_n "checking for $ac_word... " >&6; }
  6775. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6776. + $as_echo_n "(cached) " >&6
  6777. +else
  6778. + if test -n "$ac_ct_NMEDIT"; then
  6779. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6780. +else
  6781. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6782. +for as_dir in $PATH
  6783. +do
  6784. + IFS=$as_save_IFS
  6785. + test -z "$as_dir" && as_dir=.
  6786. + for ac_exec_ext in '' $ac_executable_extensions; do
  6787. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6788. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6789. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6790. + break 2
  6791. + fi
  6792. +done
  6793. +done
  6794. +IFS=$as_save_IFS
  6795. +
  6796. +fi
  6797. +fi
  6798. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6799. +if test -n "$ac_ct_NMEDIT"; then
  6800. + { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6801. +$as_echo "$ac_ct_NMEDIT" >&6; }
  6802. +else
  6803. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6804. +$as_echo "no" >&6; }
  6805. +fi
  6806. +
  6807. + if test "x$ac_ct_NMEDIT" = x; then
  6808. + NMEDIT=":"
  6809. + else
  6810. + case $cross_compiling:$ac_tool_warned in
  6811. +yes:)
  6812. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6813. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6814. +ac_tool_warned=yes ;;
  6815. +esac
  6816. + NMEDIT=$ac_ct_NMEDIT
  6817. + fi
  6818. +else
  6819. + NMEDIT="$ac_cv_prog_NMEDIT"
  6820. +fi
  6821. +
  6822. + if test -n "$ac_tool_prefix"; then
  6823. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6824. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6825. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6826. +$as_echo_n "checking for $ac_word... " >&6; }
  6827. +if test "${ac_cv_prog_LIPO+set}" = set; then
  6828. + $as_echo_n "(cached) " >&6
  6829. +else
  6830. + if test -n "$LIPO"; then
  6831. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6832. +else
  6833. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6834. +for as_dir in $PATH
  6835. +do
  6836. + IFS=$as_save_IFS
  6837. + test -z "$as_dir" && as_dir=.
  6838. + for ac_exec_ext in '' $ac_executable_extensions; do
  6839. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6840. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6841. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6842. + break 2
  6843. + fi
  6844. +done
  6845. +done
  6846. +IFS=$as_save_IFS
  6847. +
  6848. +fi
  6849. +fi
  6850. +LIPO=$ac_cv_prog_LIPO
  6851. +if test -n "$LIPO"; then
  6852. + { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  6853. +$as_echo "$LIPO" >&6; }
  6854. +else
  6855. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6856. +$as_echo "no" >&6; }
  6857. +fi
  6858. +
  6859. +
  6860. +fi
  6861. +if test -z "$ac_cv_prog_LIPO"; then
  6862. + ac_ct_LIPO=$LIPO
  6863. + # Extract the first word of "lipo", so it can be a program name with args.
  6864. +set dummy lipo; ac_word=$2
  6865. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6866. +$as_echo_n "checking for $ac_word... " >&6; }
  6867. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  6868. + $as_echo_n "(cached) " >&6
  6869. +else
  6870. + if test -n "$ac_ct_LIPO"; then
  6871. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6872. +else
  6873. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6874. +for as_dir in $PATH
  6875. +do
  6876. + IFS=$as_save_IFS
  6877. + test -z "$as_dir" && as_dir=.
  6878. + for ac_exec_ext in '' $ac_executable_extensions; do
  6879. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6880. + ac_cv_prog_ac_ct_LIPO="lipo"
  6881. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6882. + break 2
  6883. + fi
  6884. +done
  6885. +done
  6886. +IFS=$as_save_IFS
  6887. +
  6888. +fi
  6889. +fi
  6890. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6891. +if test -n "$ac_ct_LIPO"; then
  6892. + { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  6893. +$as_echo "$ac_ct_LIPO" >&6; }
  6894. +else
  6895. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6896. +$as_echo "no" >&6; }
  6897. +fi
  6898. +
  6899. + if test "x$ac_ct_LIPO" = x; then
  6900. + LIPO=":"
  6901. + else
  6902. + case $cross_compiling:$ac_tool_warned in
  6903. +yes:)
  6904. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6905. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6906. +ac_tool_warned=yes ;;
  6907. +esac
  6908. + LIPO=$ac_ct_LIPO
  6909. + fi
  6910. +else
  6911. + LIPO="$ac_cv_prog_LIPO"
  6912. +fi
  6913. +
  6914. + if test -n "$ac_tool_prefix"; then
  6915. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6916. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  6917. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6918. +$as_echo_n "checking for $ac_word... " >&6; }
  6919. +if test "${ac_cv_prog_OTOOL+set}" = set; then
  6920. + $as_echo_n "(cached) " >&6
  6921. +else
  6922. + if test -n "$OTOOL"; then
  6923. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6924. +else
  6925. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6926. +for as_dir in $PATH
  6927. +do
  6928. + IFS=$as_save_IFS
  6929. + test -z "$as_dir" && as_dir=.
  6930. + for ac_exec_ext in '' $ac_executable_extensions; do
  6931. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6932. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6933. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6934. + break 2
  6935. + fi
  6936. +done
  6937. +done
  6938. +IFS=$as_save_IFS
  6939. +
  6940. +fi
  6941. +fi
  6942. +OTOOL=$ac_cv_prog_OTOOL
  6943. +if test -n "$OTOOL"; then
  6944. + { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  6945. +$as_echo "$OTOOL" >&6; }
  6946. +else
  6947. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6948. +$as_echo "no" >&6; }
  6949. +fi
  6950. +
  6951. +
  6952. +fi
  6953. +if test -z "$ac_cv_prog_OTOOL"; then
  6954. + ac_ct_OTOOL=$OTOOL
  6955. + # Extract the first word of "otool", so it can be a program name with args.
  6956. +set dummy otool; ac_word=$2
  6957. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6958. +$as_echo_n "checking for $ac_word... " >&6; }
  6959. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  6960. + $as_echo_n "(cached) " >&6
  6961. +else
  6962. + if test -n "$ac_ct_OTOOL"; then
  6963. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6964. +else
  6965. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6966. +for as_dir in $PATH
  6967. +do
  6968. + IFS=$as_save_IFS
  6969. + test -z "$as_dir" && as_dir=.
  6970. + for ac_exec_ext in '' $ac_executable_extensions; do
  6971. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6972. + ac_cv_prog_ac_ct_OTOOL="otool"
  6973. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6974. + break 2
  6975. + fi
  6976. +done
  6977. +done
  6978. +IFS=$as_save_IFS
  6979. +
  6980. +fi
  6981. +fi
  6982. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6983. +if test -n "$ac_ct_OTOOL"; then
  6984. + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  6985. +$as_echo "$ac_ct_OTOOL" >&6; }
  6986. +else
  6987. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6988. +$as_echo "no" >&6; }
  6989. +fi
  6990. +
  6991. + if test "x$ac_ct_OTOOL" = x; then
  6992. + OTOOL=":"
  6993. + else
  6994. + case $cross_compiling:$ac_tool_warned in
  6995. +yes:)
  6996. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6997. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6998. +ac_tool_warned=yes ;;
  6999. +esac
  7000. + OTOOL=$ac_ct_OTOOL
  7001. + fi
  7002. +else
  7003. + OTOOL="$ac_cv_prog_OTOOL"
  7004. +fi
  7005. +
  7006. + if test -n "$ac_tool_prefix"; then
  7007. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7008. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7009. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7010. +$as_echo_n "checking for $ac_word... " >&6; }
  7011. +if test "${ac_cv_prog_OTOOL64+set}" = set; then
  7012. + $as_echo_n "(cached) " >&6
  7013. +else
  7014. + if test -n "$OTOOL64"; then
  7015. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7016. +else
  7017. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7018. +for as_dir in $PATH
  7019. +do
  7020. + IFS=$as_save_IFS
  7021. + test -z "$as_dir" && as_dir=.
  7022. + for ac_exec_ext in '' $ac_executable_extensions; do
  7023. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7024. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7025. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7026. + break 2
  7027. + fi
  7028. +done
  7029. +done
  7030. +IFS=$as_save_IFS
  7031. +
  7032. +fi
  7033. +fi
  7034. +OTOOL64=$ac_cv_prog_OTOOL64
  7035. +if test -n "$OTOOL64"; then
  7036. + { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  7037. +$as_echo "$OTOOL64" >&6; }
  7038. +else
  7039. + { $as_echo "$as_me:$LINENO: result: no" >&5
  7040. +$as_echo "no" >&6; }
  7041. +fi
  7042. +
  7043. +
  7044. +fi
  7045. +if test -z "$ac_cv_prog_OTOOL64"; then
  7046. + ac_ct_OTOOL64=$OTOOL64
  7047. + # Extract the first word of "otool64", so it can be a program name with args.
  7048. +set dummy otool64; ac_word=$2
  7049. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7050. +$as_echo_n "checking for $ac_word... " >&6; }
  7051. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  7052. + $as_echo_n "(cached) " >&6
  7053. +else
  7054. + if test -n "$ac_ct_OTOOL64"; then
  7055. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7056. +else
  7057. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7058. +for as_dir in $PATH
  7059. +do
  7060. + IFS=$as_save_IFS
  7061. + test -z "$as_dir" && as_dir=.
  7062. + for ac_exec_ext in '' $ac_executable_extensions; do
  7063. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7064. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  7065. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7066. + break 2
  7067. + fi
  7068. +done
  7069. +done
  7070. +IFS=$as_save_IFS
  7071. +
  7072. +fi
  7073. +fi
  7074. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7075. +if test -n "$ac_ct_OTOOL64"; then
  7076. + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  7077. +$as_echo "$ac_ct_OTOOL64" >&6; }
  7078. +else
  7079. + { $as_echo "$as_me:$LINENO: result: no" >&5
  7080. +$as_echo "no" >&6; }
  7081. +fi
  7082. +
  7083. + if test "x$ac_ct_OTOOL64" = x; then
  7084. + OTOOL64=":"
  7085. + else
  7086. + case $cross_compiling:$ac_tool_warned in
  7087. +yes:)
  7088. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7089. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7090. +ac_tool_warned=yes ;;
  7091. +esac
  7092. + OTOOL64=$ac_ct_OTOOL64
  7093. + fi
  7094. +else
  7095. + OTOOL64="$ac_cv_prog_OTOOL64"
  7096. +fi
  7097. +
  7098. +
  7099. +
  7100. +
  7101. +
  7102. +
  7103. +
  7104. +
  7105. +
  7106. +
  7107. +
  7108. +
  7109. +
  7110. +
  7111. +
  7112. +
  7113. +
  7114. +
  7115. +
  7116. +
  7117. +
  7118. +
  7119. +
  7120. +
  7121. +
  7122. +
  7123. +
  7124. + { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  7125. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  7126. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  7127. + $as_echo_n "(cached) " >&6
  7128. +else
  7129. + lt_cv_apple_cc_single_mod=no
  7130. + if test -z "${LT_MULTI_MODULE}"; then
  7131. + # By default we will add the -single_module flag. You can override
  7132. + # by either setting the environment variable LT_MULTI_MODULE
  7133. + # non-empty at configure time, or by adding -multi_module to the
  7134. + # link flags.
  7135. + rm -rf libconftest.dylib*
  7136. + echo "int foo(void){return 1;}" > conftest.c
  7137. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7138. +-dynamiclib -Wl,-single_module conftest.c" >&5
  7139. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7140. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7141. + _lt_result=$?
  7142. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7143. + lt_cv_apple_cc_single_mod=yes
  7144. + else
  7145. + cat conftest.err >&5
  7146. + fi
  7147. + rm -rf libconftest.dylib*
  7148. + rm -f conftest.*
  7149. + fi
  7150. +fi
  7151. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  7152. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7153. + { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  7154. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7155. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  7156. + $as_echo_n "(cached) " >&6
  7157. +else
  7158. + lt_cv_ld_exported_symbols_list=no
  7159. + save_LDFLAGS=$LDFLAGS
  7160. + echo "_main" > conftest.sym
  7161. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7162. + cat >conftest.$ac_ext <<_ACEOF
  7163. +/* confdefs.h. */
  7164. +_ACEOF
  7165. +cat confdefs.h >>conftest.$ac_ext
  7166. +cat >>conftest.$ac_ext <<_ACEOF
  7167. +/* end confdefs.h. */
  7168. +
  7169. +int
  7170. +main ()
  7171. +{
  7172. +
  7173. + ;
  7174. + return 0;
  7175. +}
  7176. +_ACEOF
  7177. +rm -f conftest.$ac_objext conftest$ac_exeext
  7178. +if { (ac_try="$ac_link"
  7179. +case "(($ac_try" in
  7180. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7181. + *) ac_try_echo=$ac_try;;
  7182. +esac
  7183. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7184. +$as_echo "$ac_try_echo") >&5
  7185. + (eval "$ac_link") 2>conftest.er1
  7186. + ac_status=$?
  7187. + grep -v '^ *+' conftest.er1 >conftest.err
  7188. + rm -f conftest.er1
  7189. + cat conftest.err >&5
  7190. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7191. + (exit $ac_status); } && {
  7192. + test -z "$ac_c_werror_flag" ||
  7193. + test ! -s conftest.err
  7194. + } && test -s conftest$ac_exeext && {
  7195. + test "$cross_compiling" = yes ||
  7196. + $as_test_x conftest$ac_exeext
  7197. + }; then
  7198. + lt_cv_ld_exported_symbols_list=yes
  7199. +else
  7200. + $as_echo "$as_me: failed program was:" >&5
  7201. +sed 's/^/| /' conftest.$ac_ext >&5
  7202. +
  7203. + lt_cv_ld_exported_symbols_list=no
  7204. +fi
  7205. +
  7206. +rm -rf conftest.dSYM
  7207. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7208. + conftest$ac_exeext conftest.$ac_ext
  7209. + LDFLAGS="$save_LDFLAGS"
  7210. +
  7211. +fi
  7212. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  7213. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7214. + case $host_os in
  7215. + rhapsody* | darwin1.[012])
  7216. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7217. + darwin1.*)
  7218. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7219. + darwin*) # darwin 5.x on
  7220. + # if running on 10.5 or later, the deployment target defaults
  7221. + # to the OS version, if on x86, and 10.4, the deployment
  7222. + # target defaults to 10.4. Don't you love it?
  7223. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7224. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7225. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7226. + 10.[012]*)
  7227. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7228. + 10.*)
  7229. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7230. + esac
  7231. + ;;
  7232. + esac
  7233. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7234. + _lt_dar_single_mod='$single_module'
  7235. + fi
  7236. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7237. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7238. + else
  7239. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7240. + fi
  7241. + if test "$DSYMUTIL" != ":"; then
  7242. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  7243. + else
  7244. + _lt_dsymutil=
  7245. + fi
  7246. + ;;
  7247. + esac
  7248. +
  7249. +ac_ext=c
  7250. +ac_cpp='$CPP $CPPFLAGS'
  7251. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7252. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7253. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7254. +{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  7255. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  7256. +# On Suns, sometimes $CPP names a directory.
  7257. +if test -n "$CPP" && test -d "$CPP"; then
  7258. + CPP=
  7259. +fi
  7260. +if test -z "$CPP"; then
  7261. + if test "${ac_cv_prog_CPP+set}" = set; then
  7262. + $as_echo_n "(cached) " >&6
  7263. +else
  7264. + # Double quotes because CPP needs to be expanded
  7265. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7266. + do
  7267. + ac_preproc_ok=false
  7268. +for ac_c_preproc_warn_flag in '' yes
  7269. +do
  7270. + # Use a header file that comes with gcc, so configuring glibc
  7271. + # with a fresh cross-compiler works.
  7272. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7273. + # <limits.h> exists even on freestanding compilers.
  7274. + # On the NeXT, cc -E runs the code through the compiler's parser,
  7275. + # not just through cpp. "Syntax error" is here to catch this case.
  7276. + cat >conftest.$ac_ext <<_ACEOF
  7277. +/* confdefs.h. */
  7278. +_ACEOF
  7279. +cat confdefs.h >>conftest.$ac_ext
  7280. +cat >>conftest.$ac_ext <<_ACEOF
  7281. +/* end confdefs.h. */
  7282. +#ifdef __STDC__
  7283. +# include <limits.h>
  7284. +#else
  7285. +# include <assert.h>
  7286. +#endif
  7287. + Syntax error
  7288. +_ACEOF
  7289. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  7290. +case "(($ac_try" in
  7291. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7292. + *) ac_try_echo=$ac_try;;
  7293. +esac
  7294. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7295. +$as_echo "$ac_try_echo") >&5
  7296. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7297. + ac_status=$?
  7298. + grep -v '^ *+' conftest.er1 >conftest.err
  7299. + rm -f conftest.er1
  7300. + cat conftest.err >&5
  7301. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7302. + (exit $ac_status); } >/dev/null && {
  7303. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7304. + test ! -s conftest.err
  7305. + }; then
  7306. + :
  7307. +else
  7308. + $as_echo "$as_me: failed program was:" >&5
  7309. +sed 's/^/| /' conftest.$ac_ext >&5
  7310. +
  7311. + # Broken: fails on valid input.
  7312. +continue
  7313. +fi
  7314. +
  7315. +rm -f conftest.err conftest.$ac_ext
  7316. +
  7317. + # OK, works on sane cases. Now check whether nonexistent headers
  7318. + # can be detected and how.
  7319. + cat >conftest.$ac_ext <<_ACEOF
  7320. +/* confdefs.h. */
  7321. +_ACEOF
  7322. +cat confdefs.h >>conftest.$ac_ext
  7323. +cat >>conftest.$ac_ext <<_ACEOF
  7324. +/* end confdefs.h. */
  7325. +#include <ac_nonexistent.h>
  7326. +_ACEOF
  7327. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  7328. +case "(($ac_try" in
  7329. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7330. + *) ac_try_echo=$ac_try;;
  7331. +esac
  7332. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7333. +$as_echo "$ac_try_echo") >&5
  7334. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7335. + ac_status=$?
  7336. + grep -v '^ *+' conftest.er1 >conftest.err
  7337. + rm -f conftest.er1
  7338. + cat conftest.err >&5
  7339. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7340. + (exit $ac_status); } >/dev/null && {
  7341. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7342. + test ! -s conftest.err
  7343. + }; then
  7344. + # Broken: success on invalid input.
  7345. +continue
  7346. +else
  7347. + $as_echo "$as_me: failed program was:" >&5
  7348. +sed 's/^/| /' conftest.$ac_ext >&5
  7349. +
  7350. + # Passes both tests.
  7351. +ac_preproc_ok=:
  7352. +break
  7353. +fi
  7354. +
  7355. +rm -f conftest.err conftest.$ac_ext
  7356. +
  7357. +done
  7358. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7359. +rm -f conftest.err conftest.$ac_ext
  7360. +if $ac_preproc_ok; then
  7361. + break
  7362. +fi
  7363. +
  7364. + done
  7365. + ac_cv_prog_CPP=$CPP
  7366. +
  7367. +fi
  7368. + CPP=$ac_cv_prog_CPP
  7369. +else
  7370. + ac_cv_prog_CPP=$CPP
  7371. +fi
  7372. +{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
  7373. +$as_echo "$CPP" >&6; }
  7374. +ac_preproc_ok=false
  7375. +for ac_c_preproc_warn_flag in '' yes
  7376. +do
  7377. + # Use a header file that comes with gcc, so configuring glibc
  7378. + # with a fresh cross-compiler works.
  7379. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7380. + # <limits.h> exists even on freestanding compilers.
  7381. + # On the NeXT, cc -E runs the code through the compiler's parser,
  7382. + # not just through cpp. "Syntax error" is here to catch this case.
  7383. + cat >conftest.$ac_ext <<_ACEOF
  7384. +/* confdefs.h. */
  7385. +_ACEOF
  7386. +cat confdefs.h >>conftest.$ac_ext
  7387. +cat >>conftest.$ac_ext <<_ACEOF
  7388. +/* end confdefs.h. */
  7389. +#ifdef __STDC__
  7390. +# include <limits.h>
  7391. +#else
  7392. +# include <assert.h>
  7393. +#endif
  7394. + Syntax error
  7395. +_ACEOF
  7396. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  7397. +case "(($ac_try" in
  7398. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7399. + *) ac_try_echo=$ac_try;;
  7400. +esac
  7401. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7402. +$as_echo "$ac_try_echo") >&5
  7403. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7404. + ac_status=$?
  7405. + grep -v '^ *+' conftest.er1 >conftest.err
  7406. + rm -f conftest.er1
  7407. + cat conftest.err >&5
  7408. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7409. + (exit $ac_status); } >/dev/null && {
  7410. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7411. + test ! -s conftest.err
  7412. + }; then
  7413. + :
  7414. +else
  7415. + $as_echo "$as_me: failed program was:" >&5
  7416. +sed 's/^/| /' conftest.$ac_ext >&5
  7417. +
  7418. + # Broken: fails on valid input.
  7419. +continue
  7420. +fi
  7421. +
  7422. +rm -f conftest.err conftest.$ac_ext
  7423. +
  7424. + # OK, works on sane cases. Now check whether nonexistent headers
  7425. + # can be detected and how.
  7426. + cat >conftest.$ac_ext <<_ACEOF
  7427. +/* confdefs.h. */
  7428. +_ACEOF
  7429. +cat confdefs.h >>conftest.$ac_ext
  7430. +cat >>conftest.$ac_ext <<_ACEOF
  7431. +/* end confdefs.h. */
  7432. +#include <ac_nonexistent.h>
  7433. +_ACEOF
  7434. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  7435. +case "(($ac_try" in
  7436. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7437. + *) ac_try_echo=$ac_try;;
  7438. +esac
  7439. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7440. +$as_echo "$ac_try_echo") >&5
  7441. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7442. + ac_status=$?
  7443. + grep -v '^ *+' conftest.er1 >conftest.err
  7444. + rm -f conftest.er1
  7445. + cat conftest.err >&5
  7446. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7447. + (exit $ac_status); } >/dev/null && {
  7448. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7449. + test ! -s conftest.err
  7450. + }; then
  7451. + # Broken: success on invalid input.
  7452. +continue
  7453. +else
  7454. + $as_echo "$as_me: failed program was:" >&5
  7455. +sed 's/^/| /' conftest.$ac_ext >&5
  7456. +
  7457. + # Passes both tests.
  7458. +ac_preproc_ok=:
  7459. +break
  7460. +fi
  7461. +
  7462. +rm -f conftest.err conftest.$ac_ext
  7463. +
  7464. +done
  7465. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7466. +rm -f conftest.err conftest.$ac_ext
  7467. +if $ac_preproc_ok; then
  7468. + :
  7469. +else
  7470. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7471. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7472. +{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  7473. +See \`config.log' for more details." >&5
  7474. +$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  7475. +See \`config.log' for more details." >&2;}
  7476. + { (exit 1); exit 1; }; }; }
  7477. +fi
  7478. +
  7479. +ac_ext=c
  7480. +ac_cpp='$CPP $CPPFLAGS'
  7481. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7482. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7483. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7484. +
  7485. +
  7486. +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7487. +$as_echo_n "checking for ANSI C header files... " >&6; }
  7488. +if test "${ac_cv_header_stdc+set}" = set; then
  7489. + $as_echo_n "(cached) " >&6
  7490. +else
  7491. + cat >conftest.$ac_ext <<_ACEOF
  7492. +/* confdefs.h. */
  7493. +_ACEOF
  7494. +cat confdefs.h >>conftest.$ac_ext
  7495. +cat >>conftest.$ac_ext <<_ACEOF
  7496. +/* end confdefs.h. */
  7497. +#include <stdlib.h>
  7498. +#include <stdarg.h>
  7499. +#include <string.h>
  7500. +#include <float.h>
  7501. +
  7502. +int
  7503. +main ()
  7504. +{
  7505. +
  7506. + ;
  7507. + return 0;
  7508. +}
  7509. +_ACEOF
  7510. +rm -f conftest.$ac_objext
  7511. +if { (ac_try="$ac_compile"
  7512. +case "(($ac_try" in
  7513. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7514. + *) ac_try_echo=$ac_try;;
  7515. +esac
  7516. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7517. +$as_echo "$ac_try_echo") >&5
  7518. + (eval "$ac_compile") 2>conftest.er1
  7519. + ac_status=$?
  7520. + grep -v '^ *+' conftest.er1 >conftest.err
  7521. + rm -f conftest.er1
  7522. + cat conftest.err >&5
  7523. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7524. + (exit $ac_status); } && {
  7525. + test -z "$ac_c_werror_flag" ||
  7526. + test ! -s conftest.err
  7527. + } && test -s conftest.$ac_objext; then
  7528. + ac_cv_header_stdc=yes
  7529. +else
  7530. + $as_echo "$as_me: failed program was:" >&5
  7531. +sed 's/^/| /' conftest.$ac_ext >&5
  7532. +
  7533. + ac_cv_header_stdc=no
  7534. +fi
  7535. +
  7536. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7537. +
  7538. +if test $ac_cv_header_stdc = yes; then
  7539. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7540. + cat >conftest.$ac_ext <<_ACEOF
  7541. +/* confdefs.h. */
  7542. +_ACEOF
  7543. +cat confdefs.h >>conftest.$ac_ext
  7544. +cat >>conftest.$ac_ext <<_ACEOF
  7545. +/* end confdefs.h. */
  7546. +#include <string.h>
  7547. +
  7548. +_ACEOF
  7549. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7550. + $EGREP "memchr" >/dev/null 2>&1; then
  7551. + :
  7552. +else
  7553. + ac_cv_header_stdc=no
  7554. +fi
  7555. +rm -f conftest*
  7556. +
  7557. +fi
  7558. +
  7559. +if test $ac_cv_header_stdc = yes; then
  7560. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7561. + cat >conftest.$ac_ext <<_ACEOF
  7562. +/* confdefs.h. */
  7563. +_ACEOF
  7564. +cat confdefs.h >>conftest.$ac_ext
  7565. +cat >>conftest.$ac_ext <<_ACEOF
  7566. +/* end confdefs.h. */
  7567. +#include <stdlib.h>
  7568. +
  7569. +_ACEOF
  7570. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7571. + $EGREP "free" >/dev/null 2>&1; then
  7572. + :
  7573. +else
  7574. + ac_cv_header_stdc=no
  7575. +fi
  7576. +rm -f conftest*
  7577. +
  7578. +fi
  7579. +
  7580. +if test $ac_cv_header_stdc = yes; then
  7581. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7582. + if test "$cross_compiling" = yes; then
  7583. + :
  7584. +else
  7585. + cat >conftest.$ac_ext <<_ACEOF
  7586. +/* confdefs.h. */
  7587. +_ACEOF
  7588. +cat confdefs.h >>conftest.$ac_ext
  7589. +cat >>conftest.$ac_ext <<_ACEOF
  7590. +/* end confdefs.h. */
  7591. +#include <ctype.h>
  7592. +#include <stdlib.h>
  7593. +#if ((' ' & 0x0FF) == 0x020)
  7594. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7595. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7596. +#else
  7597. +# define ISLOWER(c) \
  7598. + (('a' <= (c) && (c) <= 'i') \
  7599. + || ('j' <= (c) && (c) <= 'r') \
  7600. + || ('s' <= (c) && (c) <= 'z'))
  7601. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7602. +#endif
  7603. +
  7604. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7605. +int
  7606. +main ()
  7607. +{
  7608. + int i;
  7609. + for (i = 0; i < 256; i++)
  7610. + if (XOR (islower (i), ISLOWER (i))
  7611. + || toupper (i) != TOUPPER (i))
  7612. + return 2;
  7613. + return 0;
  7614. +}
  7615. +_ACEOF
  7616. +rm -f conftest$ac_exeext
  7617. +if { (ac_try="$ac_link"
  7618. +case "(($ac_try" in
  7619. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7620. + *) ac_try_echo=$ac_try;;
  7621. +esac
  7622. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7623. +$as_echo "$ac_try_echo") >&5
  7624. + (eval "$ac_link") 2>&5
  7625. + ac_status=$?
  7626. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7627. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7628. + { (case "(($ac_try" in
  7629. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7630. + *) ac_try_echo=$ac_try;;
  7631. +esac
  7632. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7633. +$as_echo "$ac_try_echo") >&5
  7634. + (eval "$ac_try") 2>&5
  7635. + ac_status=$?
  7636. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7637. + (exit $ac_status); }; }; then
  7638. + :
  7639. +else
  7640. + $as_echo "$as_me: program exited with status $ac_status" >&5
  7641. +$as_echo "$as_me: failed program was:" >&5
  7642. +sed 's/^/| /' conftest.$ac_ext >&5
  7643. +
  7644. +( exit $ac_status )
  7645. +ac_cv_header_stdc=no
  7646. +fi
  7647. +rm -rf conftest.dSYM
  7648. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7649. +fi
  7650. +
  7651. +
  7652. +fi
  7653. +fi
  7654. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7655. +$as_echo "$ac_cv_header_stdc" >&6; }
  7656. +if test $ac_cv_header_stdc = yes; then
  7657. +
  7658. +cat >>confdefs.h <<\_ACEOF
  7659. +#define STDC_HEADERS 1
  7660. +_ACEOF
  7661. +
  7662. +fi
  7663. +
  7664. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7665. +
  7666. +
  7667. +
  7668. +
  7669. +
  7670. +
  7671. +
  7672. +
  7673. +
  7674. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7675. + inttypes.h stdint.h unistd.h
  7676. +do
  7677. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7678. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7679. +$as_echo_n "checking for $ac_header... " >&6; }
  7680. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7681. + $as_echo_n "(cached) " >&6
  7682. +else
  7683. + cat >conftest.$ac_ext <<_ACEOF
  7684. +/* confdefs.h. */
  7685. +_ACEOF
  7686. +cat confdefs.h >>conftest.$ac_ext
  7687. +cat >>conftest.$ac_ext <<_ACEOF
  7688. +/* end confdefs.h. */
  7689. +$ac_includes_default
  7690. +
  7691. +#include <$ac_header>
  7692. +_ACEOF
  7693. +rm -f conftest.$ac_objext
  7694. +if { (ac_try="$ac_compile"
  7695. +case "(($ac_try" in
  7696. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7697. + *) ac_try_echo=$ac_try;;
  7698. +esac
  7699. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7700. +$as_echo "$ac_try_echo") >&5
  7701. + (eval "$ac_compile") 2>conftest.er1
  7702. + ac_status=$?
  7703. + grep -v '^ *+' conftest.er1 >conftest.err
  7704. + rm -f conftest.er1
  7705. + cat conftest.err >&5
  7706. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7707. + (exit $ac_status); } && {
  7708. + test -z "$ac_c_werror_flag" ||
  7709. + test ! -s conftest.err
  7710. + } && test -s conftest.$ac_objext; then
  7711. + eval "$as_ac_Header=yes"
  7712. +else
  7713. + $as_echo "$as_me: failed program was:" >&5
  7714. +sed 's/^/| /' conftest.$ac_ext >&5
  7715. +
  7716. + eval "$as_ac_Header=no"
  7717. +fi
  7718. +
  7719. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7720. +fi
  7721. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  7722. + $as_echo "$as_val"'`
  7723. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7724. +$as_echo "$ac_res" >&6; }
  7725. +as_val=`eval 'as_val=${'$as_ac_Header'}
  7726. + $as_echo "$as_val"'`
  7727. + if test "x$as_val" = x""yes; then
  7728. + cat >>confdefs.h <<_ACEOF
  7729. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7730. +_ACEOF
  7731. +
  7732. +fi
  7733. +
  7734. +done
  7735. +
  7736. +
  7737. +
  7738. +for ac_header in dlfcn.h
  7739. +do
  7740. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7741. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7742. +$as_echo_n "checking for $ac_header... " >&6; }
  7743. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7744. + $as_echo_n "(cached) " >&6
  7745. +else
  7746. + cat >conftest.$ac_ext <<_ACEOF
  7747. +/* confdefs.h. */
  7748. +_ACEOF
  7749. +cat confdefs.h >>conftest.$ac_ext
  7750. +cat >>conftest.$ac_ext <<_ACEOF
  7751. +/* end confdefs.h. */
  7752. +$ac_includes_default
  7753. +
  7754. +#include <$ac_header>
  7755. +_ACEOF
  7756. +rm -f conftest.$ac_objext
  7757. +if { (ac_try="$ac_compile"
  7758. +case "(($ac_try" in
  7759. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7760. + *) ac_try_echo=$ac_try;;
  7761. +esac
  7762. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7763. +$as_echo "$ac_try_echo") >&5
  7764. + (eval "$ac_compile") 2>conftest.er1
  7765. + ac_status=$?
  7766. + grep -v '^ *+' conftest.er1 >conftest.err
  7767. + rm -f conftest.er1
  7768. + cat conftest.err >&5
  7769. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7770. + (exit $ac_status); } && {
  7771. + test -z "$ac_c_werror_flag" ||
  7772. + test ! -s conftest.err
  7773. + } && test -s conftest.$ac_objext; then
  7774. + eval "$as_ac_Header=yes"
  7775. +else
  7776. + $as_echo "$as_me: failed program was:" >&5
  7777. +sed 's/^/| /' conftest.$ac_ext >&5
  7778. +
  7779. + eval "$as_ac_Header=no"
  7780. +fi
  7781. +
  7782. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7783. +fi
  7784. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  7785. + $as_echo "$as_val"'`
  7786. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7787. +$as_echo "$ac_res" >&6; }
  7788. +as_val=`eval 'as_val=${'$as_ac_Header'}
  7789. + $as_echo "$as_val"'`
  7790. + if test "x$as_val" = x""yes; then
  7791. + cat >>confdefs.h <<_ACEOF
  7792. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7793. +_ACEOF
  7794. +
  7795. +fi
  7796. +
  7797. +done
  7798. +
  7799. +
  7800. +
  7801. +# Set options
  7802. +
  7803. +
  7804. +
  7805. + enable_dlopen=no
  7806. +
  7807. +
  7808. + enable_win32_dll=no
  7809. +
  7810. +
  7811. + # Check whether --enable-shared was given.
  7812. +if test "${enable_shared+set}" = set; then
  7813. + enableval=$enable_shared; p=${PACKAGE-default}
  7814. + case $enableval in
  7815. + yes) enable_shared=yes ;;
  7816. + no) enable_shared=no ;;
  7817. + *)
  7818. + enable_shared=no
  7819. + # Look at the argument we got. We use all the common list separators.
  7820. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7821. + for pkg in $enableval; do
  7822. + IFS="$lt_save_ifs"
  7823. + if test "X$pkg" = "X$p"; then
  7824. + enable_shared=yes
  7825. + fi
  7826. + done
  7827. + IFS="$lt_save_ifs"
  7828. + ;;
  7829. + esac
  7830. +else
  7831. + enable_shared=yes
  7832. +fi
  7833. +
  7834. +
  7835. +
  7836. +
  7837. +
  7838. +
  7839. +
  7840. +
  7841. +
  7842. + # Check whether --enable-static was given.
  7843. +if test "${enable_static+set}" = set; then
  7844. + enableval=$enable_static; p=${PACKAGE-default}
  7845. + case $enableval in
  7846. + yes) enable_static=yes ;;
  7847. + no) enable_static=no ;;
  7848. + *)
  7849. + enable_static=no
  7850. + # Look at the argument we got. We use all the common list separators.
  7851. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7852. + for pkg in $enableval; do
  7853. + IFS="$lt_save_ifs"
  7854. + if test "X$pkg" = "X$p"; then
  7855. + enable_static=yes
  7856. + fi
  7857. + done
  7858. + IFS="$lt_save_ifs"
  7859. + ;;
  7860. + esac
  7861. +else
  7862. + enable_static=yes
  7863. +fi
  7864. +
  7865. +
  7866. +
  7867. +
  7868. +
  7869. +
  7870. +
  7871. +
  7872. +
  7873. +
  7874. +# Check whether --with-pic was given.
  7875. +if test "${with_pic+set}" = set; then
  7876. + withval=$with_pic; pic_mode="$withval"
  7877. +else
  7878. + pic_mode=default
  7879. +fi
  7880. +
  7881. +
  7882. +test -z "$pic_mode" && pic_mode=default
  7883. +
  7884. +
  7885. +
  7886. +
  7887. +
  7888. +
  7889. +
  7890. + # Check whether --enable-fast-install was given.
  7891. +if test "${enable_fast_install+set}" = set; then
  7892. + enableval=$enable_fast_install; p=${PACKAGE-default}
  7893. + case $enableval in
  7894. + yes) enable_fast_install=yes ;;
  7895. + no) enable_fast_install=no ;;
  7896. + *)
  7897. + enable_fast_install=no
  7898. + # Look at the argument we got. We use all the common list separators.
  7899. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7900. + for pkg in $enableval; do
  7901. + IFS="$lt_save_ifs"
  7902. + if test "X$pkg" = "X$p"; then
  7903. + enable_fast_install=yes
  7904. + fi
  7905. + done
  7906. + IFS="$lt_save_ifs"
  7907. + ;;
  7908. + esac
  7909. +else
  7910. + enable_fast_install=yes
  7911. +fi
  7912. +
  7913. +
  7914. +
  7915. +
  7916. +
  7917. +
  7918. +
  7919. +
  7920. +
  7921. +
  7922. +
  7923. +# This can be used to rebuild libtool when needed
  7924. +LIBTOOL_DEPS="$ltmain"
  7925. +
  7926. +# Always use our own libtool.
  7927. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7928. +
  7929. +
  7930. +
  7931. +
  7932. +
  7933. +
  7934. +
  7935. +
  7936. +
  7937. +
  7938. +
  7939. +
  7940. +
  7941. +
  7942. +
  7943. +
  7944. +
  7945. +
  7946. +
  7947. +
  7948. +
  7949. +
  7950. +
  7951. +
  7952. +
  7953. +test -z "$LN_S" && LN_S="ln -s"
  7954. +
  7955. +
  7956. +
  7957. +
  7958. +
  7959. +
  7960. +
  7961. +
  7962. +
  7963. +
  7964. +
  7965. +
  7966. +
  7967. +
  7968. +if test -n "${ZSH_VERSION+set}" ; then
  7969. + setopt NO_GLOB_SUBST
  7970. +fi
  7971. +
  7972. +{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7973. +$as_echo_n "checking for objdir... " >&6; }
  7974. +if test "${lt_cv_objdir+set}" = set; then
  7975. + $as_echo_n "(cached) " >&6
  7976. +else
  7977. + rm -f .libs 2>/dev/null
  7978. +mkdir .libs 2>/dev/null
  7979. +if test -d .libs; then
  7980. + lt_cv_objdir=.libs
  7981. +else
  7982. + # MS-DOS does not allow filenames that begin with a dot.
  7983. + lt_cv_objdir=_libs
  7984. +fi
  7985. +rmdir .libs 2>/dev/null
  7986. +fi
  7987. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7988. +$as_echo "$lt_cv_objdir" >&6; }
  7989. +objdir=$lt_cv_objdir
  7990. +
  7991. +
  7992. +
  7993. +
  7994. +
  7995. +cat >>confdefs.h <<_ACEOF
  7996. +#define LT_OBJDIR "$lt_cv_objdir/"
  7997. +_ACEOF
  7998. +
  7999. +
  8000. +
  8001. +
  8002. +
  8003. +
  8004. +
  8005. +
  8006. +
  8007. +
  8008. +
  8009. +
  8010. +
  8011. +
  8012. +
  8013. +
  8014. +
  8015. +case $host_os in
  8016. +aix3*)
  8017. + # AIX sometimes has problems with the GCC collect2 program. For some
  8018. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  8019. + # vanish in a puff of smoke.
  8020. + if test "X${COLLECT_NAMES+set}" != Xset; then
  8021. + COLLECT_NAMES=
  8022. + export COLLECT_NAMES
  8023. + fi
  8024. + ;;
  8025. +esac
  8026. +
  8027. +# Sed substitution that helps us do robust quoting. It backslashifies
  8028. +# metacharacters that are still active within double-quoted strings.
  8029. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  8030. +
  8031. +# Same as above, but do not quote variable references.
  8032. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  8033. +
  8034. +# Sed substitution to delay expansion of an escaped shell variable in a
  8035. +# double_quote_subst'ed string.
  8036. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  8037. +
  8038. +# Sed substitution to delay expansion of an escaped single quote.
  8039. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  8040. +
  8041. +# Sed substitution to avoid accidental globbing in evaled expressions
  8042. +no_glob_subst='s/\*/\\\*/g'
  8043. +
  8044. +# Global variables:
  8045. +ofile=libtool
  8046. +can_build_shared=yes
  8047. +
  8048. +# All known linkers require a `.a' archive for static linking (except MSVC,
  8049. +# which needs '.lib').
  8050. +libext=a
  8051. +
  8052. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  8053. +
  8054. +old_CC="$CC"
  8055. +old_CFLAGS="$CFLAGS"
  8056. +
  8057. +# Set sane defaults for various variables
  8058. +test -z "$CC" && CC=cc
  8059. +test -z "$LTCC" && LTCC=$CC
  8060. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8061. +test -z "$LD" && LD=ld
  8062. +test -z "$ac_objext" && ac_objext=o
  8063. +
  8064. +for cc_temp in $compiler""; do
  8065. + case $cc_temp in
  8066. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8067. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8068. + \-*) ;;
  8069. + *) break;;
  8070. + esac
  8071. +done
  8072. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8073. +
  8074. +
  8075. +# Only perform the check for file, if the check method requires it
  8076. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8077. +case $deplibs_check_method in
  8078. +file_magic*)
  8079. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8080. + { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  8081. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8082. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8083. + $as_echo_n "(cached) " >&6
  8084. +else
  8085. + case $MAGIC_CMD in
  8086. +[\\/*] | ?:[\\/]*)
  8087. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8088. + ;;
  8089. +*)
  8090. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  8091. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8092. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8093. + for ac_dir in $ac_dummy; do
  8094. + IFS="$lt_save_ifs"
  8095. + test -z "$ac_dir" && ac_dir=.
  8096. + if test -f $ac_dir/${ac_tool_prefix}file; then
  8097. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8098. + if test -n "$file_magic_test_file"; then
  8099. + case $deplibs_check_method in
  8100. + "file_magic "*)
  8101. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8102. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8103. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8104. + $EGREP "$file_magic_regex" > /dev/null; then
  8105. + :
  8106. + else
  8107. + cat <<_LT_EOF 1>&2
  8108. +
  8109. +*** Warning: the command libtool uses to detect shared libraries,
  8110. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  8111. +*** The result is that libtool may fail to recognize shared libraries
  8112. +*** as such. This will affect the creation of libtool libraries that
  8113. +*** depend on shared libraries, but programs linked with such libtool
  8114. +*** libraries will work regardless of this problem. Nevertheless, you
  8115. +*** may want to report the problem to your system manager and/or to
  8116. +*** bug-libtool@gnu.org
  8117. +
  8118. +_LT_EOF
  8119. + fi ;;
  8120. + esac
  8121. + fi
  8122. + break
  8123. + fi
  8124. + done
  8125. + IFS="$lt_save_ifs"
  8126. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  8127. + ;;
  8128. +esac
  8129. +fi
  8130. +
  8131. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8132. +if test -n "$MAGIC_CMD"; then
  8133. + { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8134. +$as_echo "$MAGIC_CMD" >&6; }
  8135. +else
  8136. + { $as_echo "$as_me:$LINENO: result: no" >&5
  8137. +$as_echo "no" >&6; }
  8138. +fi
  8139. +
  8140. +
  8141. +
  8142. +
  8143. +
  8144. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  8145. + if test -n "$ac_tool_prefix"; then
  8146. + { $as_echo "$as_me:$LINENO: checking for file" >&5
  8147. +$as_echo_n "checking for file... " >&6; }
  8148. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8149. + $as_echo_n "(cached) " >&6
  8150. +else
  8151. + case $MAGIC_CMD in
  8152. +[\\/*] | ?:[\\/]*)
  8153. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8154. + ;;
  8155. +*)
  8156. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  8157. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8158. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8159. + for ac_dir in $ac_dummy; do
  8160. + IFS="$lt_save_ifs"
  8161. + test -z "$ac_dir" && ac_dir=.
  8162. + if test -f $ac_dir/file; then
  8163. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8164. + if test -n "$file_magic_test_file"; then
  8165. + case $deplibs_check_method in
  8166. + "file_magic "*)
  8167. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8168. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8169. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8170. + $EGREP "$file_magic_regex" > /dev/null; then
  8171. + :
  8172. + else
  8173. + cat <<_LT_EOF 1>&2
  8174. +
  8175. +*** Warning: the command libtool uses to detect shared libraries,
  8176. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  8177. +*** The result is that libtool may fail to recognize shared libraries
  8178. +*** as such. This will affect the creation of libtool libraries that
  8179. +*** depend on shared libraries, but programs linked with such libtool
  8180. +*** libraries will work regardless of this problem. Nevertheless, you
  8181. +*** may want to report the problem to your system manager and/or to
  8182. +*** bug-libtool@gnu.org
  8183. +
  8184. +_LT_EOF
  8185. + fi ;;
  8186. + esac
  8187. + fi
  8188. + break
  8189. + fi
  8190. + done
  8191. + IFS="$lt_save_ifs"
  8192. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  8193. + ;;
  8194. +esac
  8195. +fi
  8196. +
  8197. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8198. +if test -n "$MAGIC_CMD"; then
  8199. + { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8200. +$as_echo "$MAGIC_CMD" >&6; }
  8201. +else
  8202. + { $as_echo "$as_me:$LINENO: result: no" >&5
  8203. +$as_echo "no" >&6; }
  8204. +fi
  8205. +
  8206. +
  8207. + else
  8208. + MAGIC_CMD=:
  8209. + fi
  8210. +fi
  8211. +
  8212. + fi
  8213. + ;;
  8214. +esac
  8215. +
  8216. +# Use C for the default configuration in the libtool script
  8217. +
  8218. +lt_save_CC="$CC"
  8219. +ac_ext=c
  8220. +ac_cpp='$CPP $CPPFLAGS'
  8221. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8222. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8223. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8224. +
  8225. +
  8226. +# Source file extension for C test sources.
  8227. +ac_ext=c
  8228. +
  8229. +# Object file extension for compiled C test sources.
  8230. +objext=o
  8231. +objext=$objext
  8232. +
  8233. +# Code to be used in simple compile tests
  8234. +lt_simple_compile_test_code="int some_variable = 0;"
  8235. +
  8236. +# Code to be used in simple link tests
  8237. +lt_simple_link_test_code='int main(){return(0);}'
  8238. +
  8239. +
  8240. +
  8241. +
  8242. +
  8243. +
  8244. +
  8245. +# If no C compiler was specified, use CC.
  8246. +LTCC=${LTCC-"$CC"}
  8247. +
  8248. +# If no C compiler flags were specified, use CFLAGS.
  8249. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8250. +
  8251. +# Allow CC to be a program name with arguments.
  8252. +compiler=$CC
  8253. +
  8254. +# Save the default compiler, since it gets overwritten when the other
  8255. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8256. +compiler_DEFAULT=$CC
  8257. +
  8258. +# save warnings/boilerplate of simple test code
  8259. +ac_outfile=conftest.$ac_objext
  8260. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8261. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8262. +_lt_compiler_boilerplate=`cat conftest.err`
  8263. +$RM conftest*
  8264. +
  8265. +ac_outfile=conftest.$ac_objext
  8266. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8267. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8268. +_lt_linker_boilerplate=`cat conftest.err`
  8269. +$RM -r conftest*
  8270. +
  8271. +
  8272. +if test -n "$compiler"; then
  8273. +
  8274. +lt_prog_compiler_no_builtin_flag=
  8275. +
  8276. +if test "$GCC" = yes; then
  8277. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8278. +
  8279. + { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8280. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8281. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  8282. + $as_echo_n "(cached) " >&6
  8283. +else
  8284. + lt_cv_prog_compiler_rtti_exceptions=no
  8285. + ac_outfile=conftest.$ac_objext
  8286. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8287. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  8288. + # Insert the option either (1) after the last *FLAGS variable, or
  8289. + # (2) before a word containing "conftest.", or (3) at the end.
  8290. + # Note that $ac_compile itself does not contain backslashes and begins
  8291. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  8292. + # The option is referenced via a variable to avoid confusing sed.
  8293. + lt_compile=`echo "$ac_compile" | $SED \
  8294. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8295. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8296. + -e 's:$: $lt_compiler_flag:'`
  8297. + (eval echo "\"\$as_me:7817: $lt_compile\"" >&5)
  8298. + (eval "$lt_compile" 2>conftest.err)
  8299. + ac_status=$?
  8300. + cat conftest.err >&5
  8301. + echo "$as_me:7821: \$? = $ac_status" >&5
  8302. + if (exit $ac_status) && test -s "$ac_outfile"; then
  8303. + # The compiler can only warn and ignore the option if not recognized
  8304. + # So say no if there are warnings other than the usual output.
  8305. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8306. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8307. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8308. + lt_cv_prog_compiler_rtti_exceptions=yes
  8309. + fi
  8310. + fi
  8311. + $RM conftest*
  8312. +
  8313. +fi
  8314. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8315. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8316. +
  8317. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8318. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8319. +else
  8320. + :
  8321. +fi
  8322. +
  8323. +fi
  8324. +
  8325. +
  8326. +
  8327. +
  8328. +
  8329. +
  8330. + lt_prog_compiler_wl=
  8331. +lt_prog_compiler_pic=
  8332. +lt_prog_compiler_static=
  8333. +
  8334. +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8335. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8336. +
  8337. + if test "$GCC" = yes; then
  8338. + lt_prog_compiler_wl='-Wl,'
  8339. + lt_prog_compiler_static='-static'
  8340. +
  8341. + case $host_os in
  8342. + aix*)
  8343. + # All AIX code is PIC.
  8344. + if test "$host_cpu" = ia64; then
  8345. + # AIX 5 now supports IA64 processor
  8346. + lt_prog_compiler_static='-Bstatic'
  8347. + fi
  8348. + ;;
  8349. +
  8350. + amigaos*)
  8351. + case $host_cpu in
  8352. + powerpc)
  8353. + # see comment about AmigaOS4 .so support
  8354. + lt_prog_compiler_pic='-fPIC'
  8355. + ;;
  8356. + m68k)
  8357. + # FIXME: we need at least 68020 code to build shared libraries, but
  8358. + # adding the `-m68020' flag to GCC prevents building anything better,
  8359. + # like `-m68040'.
  8360. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8361. + ;;
  8362. + esac
  8363. + ;;
  8364. +
  8365. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8366. + # PIC is the default for these OSes.
  8367. + ;;
  8368. +
  8369. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  8370. + # This hack is so that the source file can tell whether it is being
  8371. + # built for inclusion in a dll (and should export symbols for example).
  8372. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8373. + # (--disable-auto-import) libraries
  8374. + lt_prog_compiler_pic='-DDLL_EXPORT'
  8375. + ;;
  8376. +
  8377. + darwin* | rhapsody*)
  8378. + # PIC is the default on this platform
  8379. + # Common symbols not allowed in MH_DYLIB files
  8380. + lt_prog_compiler_pic='-fno-common'
  8381. + ;;
  8382. +
  8383. + hpux*)
  8384. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8385. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8386. + # sets the default TLS model and affects inlining.
  8387. + case $host_cpu in
  8388. + hppa*64*)
  8389. + # +Z the default
  8390. + ;;
  8391. + *)
  8392. + lt_prog_compiler_pic='-fPIC'
  8393. + ;;
  8394. + esac
  8395. + ;;
  8396. +
  8397. + interix[3-9]*)
  8398. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8399. + # Instead, we relocate shared libraries at runtime.
  8400. + ;;
  8401. +
  8402. + msdosdjgpp*)
  8403. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  8404. + # on systems that don't support them.
  8405. + lt_prog_compiler_can_build_shared=no
  8406. + enable_shared=no
  8407. + ;;
  8408. +
  8409. + *nto* | *qnx*)
  8410. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  8411. + # it will coredump.
  8412. + lt_prog_compiler_pic='-fPIC -shared'
  8413. + ;;
  8414. +
  8415. + sysv4*MP*)
  8416. + if test -d /usr/nec; then
  8417. + lt_prog_compiler_pic=-Kconform_pic
  8418. + fi
  8419. + ;;
  8420. +
  8421. + *)
  8422. + lt_prog_compiler_pic='-fPIC'
  8423. + ;;
  8424. + esac
  8425. + else
  8426. + # PORTME Check for flag to pass linker flags through the system compiler.
  8427. + case $host_os in
  8428. + aix*)
  8429. + lt_prog_compiler_wl='-Wl,'
  8430. + if test "$host_cpu" = ia64; then
  8431. + # AIX 5 now supports IA64 processor
  8432. + lt_prog_compiler_static='-Bstatic'
  8433. + else
  8434. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8435. + fi
  8436. + ;;
  8437. +
  8438. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  8439. + # This hack is so that the source file can tell whether it is being
  8440. + # built for inclusion in a dll (and should export symbols for example).
  8441. + lt_prog_compiler_pic='-DDLL_EXPORT'
  8442. + ;;
  8443. +
  8444. + hpux9* | hpux10* | hpux11*)
  8445. + lt_prog_compiler_wl='-Wl,'
  8446. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8447. + # not for PA HP-UX.
  8448. + case $host_cpu in
  8449. + hppa*64*|ia64*)
  8450. + # +Z the default
  8451. + ;;
  8452. + *)
  8453. + lt_prog_compiler_pic='+Z'
  8454. + ;;
  8455. + esac
  8456. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8457. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  8458. + ;;
  8459. +
  8460. + irix5* | irix6* | nonstopux*)
  8461. + lt_prog_compiler_wl='-Wl,'
  8462. + # PIC (with -KPIC) is the default.
  8463. + lt_prog_compiler_static='-non_shared'
  8464. + ;;
  8465. +
  8466. + linux* | k*bsd*-gnu)
  8467. + case $cc_basename in
  8468. + # old Intel for x86_64 which still supported -KPIC.
  8469. + ecc*)
  8470. + lt_prog_compiler_wl='-Wl,'
  8471. + lt_prog_compiler_pic='-KPIC'
  8472. + lt_prog_compiler_static='-static'
  8473. + ;;
  8474. + # icc used to be incompatible with GCC.
  8475. + # ICC 10 doesn't accept -KPIC any more.
  8476. + icc* | ifort*)
  8477. + lt_prog_compiler_wl='-Wl,'
  8478. + lt_prog_compiler_pic='-fPIC'
  8479. + lt_prog_compiler_static='-static'
  8480. + ;;
  8481. + # Lahey Fortran 8.1.
  8482. + lf95*)
  8483. + lt_prog_compiler_wl='-Wl,'
  8484. + lt_prog_compiler_pic='--shared'
  8485. + lt_prog_compiler_static='--static'
  8486. + ;;
  8487. + pgcc* | pgf77* | pgf90* | pgf95*)
  8488. + # Portland Group compilers (*not* the Pentium gcc compiler,
  8489. + # which looks to be a dead project)
  8490. + lt_prog_compiler_wl='-Wl,'
  8491. + lt_prog_compiler_pic='-fpic'
  8492. + lt_prog_compiler_static='-Bstatic'
  8493. + ;;
  8494. + ccc*)
  8495. + lt_prog_compiler_wl='-Wl,'
  8496. + # All Alpha code is PIC.
  8497. + lt_prog_compiler_static='-non_shared'
  8498. + ;;
  8499. + xl*)
  8500. + # IBM XL C 8.0/Fortran 10.1 on PPC
  8501. + lt_prog_compiler_wl='-Wl,'
  8502. + lt_prog_compiler_pic='-qpic'
  8503. + lt_prog_compiler_static='-qstaticlink'
  8504. + ;;
  8505. + *)
  8506. + case `$CC -V 2>&1 | sed 5q` in
  8507. + *Sun\ C*)
  8508. + # Sun C 5.9
  8509. + lt_prog_compiler_pic='-KPIC'
  8510. + lt_prog_compiler_static='-Bstatic'
  8511. + lt_prog_compiler_wl='-Wl,'
  8512. + ;;
  8513. + *Sun\ F*)
  8514. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8515. + lt_prog_compiler_pic='-KPIC'
  8516. + lt_prog_compiler_static='-Bstatic'
  8517. + lt_prog_compiler_wl=''
  8518. + ;;
  8519. + esac
  8520. + ;;
  8521. + esac
  8522. + ;;
  8523. +
  8524. + newsos6)
  8525. + lt_prog_compiler_pic='-KPIC'
  8526. + lt_prog_compiler_static='-Bstatic'
  8527. + ;;
  8528. +
  8529. + *nto* | *qnx*)
  8530. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  8531. + # it will coredump.
  8532. + lt_prog_compiler_pic='-fPIC -shared'
  8533. + ;;
  8534. +
  8535. + osf3* | osf4* | osf5*)
  8536. + lt_prog_compiler_wl='-Wl,'
  8537. + # All OSF/1 code is PIC.
  8538. + lt_prog_compiler_static='-non_shared'
  8539. + ;;
  8540. +
  8541. + rdos*)
  8542. + lt_prog_compiler_static='-non_shared'
  8543. + ;;
  8544. +
  8545. + solaris*)
  8546. + lt_prog_compiler_pic='-KPIC'
  8547. + lt_prog_compiler_static='-Bstatic'
  8548. + case $cc_basename in
  8549. + f77* | f90* | f95*)
  8550. + lt_prog_compiler_wl='-Qoption ld ';;
  8551. + *)
  8552. + lt_prog_compiler_wl='-Wl,';;
  8553. + esac
  8554. + ;;
  8555. +
  8556. + sunos4*)
  8557. + lt_prog_compiler_wl='-Qoption ld '
  8558. + lt_prog_compiler_pic='-PIC'
  8559. + lt_prog_compiler_static='-Bstatic'
  8560. + ;;
  8561. +
  8562. + sysv4 | sysv4.2uw2* | sysv4.3*)
  8563. + lt_prog_compiler_wl='-Wl,'
  8564. + lt_prog_compiler_pic='-KPIC'
  8565. + lt_prog_compiler_static='-Bstatic'
  8566. + ;;
  8567. +
  8568. + sysv4*MP*)
  8569. + if test -d /usr/nec ;then
  8570. + lt_prog_compiler_pic='-Kconform_pic'
  8571. + lt_prog_compiler_static='-Bstatic'
  8572. + fi
  8573. + ;;
  8574. +
  8575. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8576. + lt_prog_compiler_wl='-Wl,'
  8577. + lt_prog_compiler_pic='-KPIC'
  8578. + lt_prog_compiler_static='-Bstatic'
  8579. + ;;
  8580. +
  8581. + unicos*)
  8582. + lt_prog_compiler_wl='-Wl,'
  8583. + lt_prog_compiler_can_build_shared=no
  8584. + ;;
  8585. +
  8586. + uts4*)
  8587. + lt_prog_compiler_pic='-pic'
  8588. + lt_prog_compiler_static='-Bstatic'
  8589. + ;;
  8590. +
  8591. + *)
  8592. + lt_prog_compiler_can_build_shared=no
  8593. + ;;
  8594. + esac
  8595. + fi
  8596. +
  8597. +case $host_os in
  8598. + # For platforms which do not support PIC, -DPIC is meaningless:
  8599. + *djgpp*)
  8600. + lt_prog_compiler_pic=
  8601. + ;;
  8602. + *)
  8603. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8604. + ;;
  8605. +esac
  8606. +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8607. +$as_echo "$lt_prog_compiler_pic" >&6; }
  8608. +
  8609. +
  8610. +
  8611. +
  8612. +
  8613. +
  8614. +#
  8615. +# Check to make sure the PIC flag actually works.
  8616. +#
  8617. +if test -n "$lt_prog_compiler_pic"; then
  8618. + { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8619. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8620. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  8621. + $as_echo_n "(cached) " >&6
  8622. +else
  8623. + lt_cv_prog_compiler_pic_works=no
  8624. + ac_outfile=conftest.$ac_objext
  8625. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8626. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8627. + # Insert the option either (1) after the last *FLAGS variable, or
  8628. + # (2) before a word containing "conftest.", or (3) at the end.
  8629. + # Note that $ac_compile itself does not contain backslashes and begins
  8630. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  8631. + # The option is referenced via a variable to avoid confusing sed.
  8632. + lt_compile=`echo "$ac_compile" | $SED \
  8633. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8634. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8635. + -e 's:$: $lt_compiler_flag:'`
  8636. + (eval echo "\"\$as_me:8156: $lt_compile\"" >&5)
  8637. + (eval "$lt_compile" 2>conftest.err)
  8638. + ac_status=$?
  8639. + cat conftest.err >&5
  8640. + echo "$as_me:8160: \$? = $ac_status" >&5
  8641. + if (exit $ac_status) && test -s "$ac_outfile"; then
  8642. + # The compiler can only warn and ignore the option if not recognized
  8643. + # So say no if there are warnings other than the usual output.
  8644. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8645. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8646. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8647. + lt_cv_prog_compiler_pic_works=yes
  8648. + fi
  8649. + fi
  8650. + $RM conftest*
  8651. +
  8652. +fi
  8653. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  8654. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8655. +
  8656. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8657. + case $lt_prog_compiler_pic in
  8658. + "" | " "*) ;;
  8659. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8660. + esac
  8661. +else
  8662. + lt_prog_compiler_pic=
  8663. + lt_prog_compiler_can_build_shared=no
  8664. +fi
  8665. +
  8666. +fi
  8667. +
  8668. +
  8669. +
  8670. +
  8671. +
  8672. +
  8673. +#
  8674. +# Check to make sure the static flag actually works.
  8675. +#
  8676. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8677. +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8678. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8679. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  8680. + $as_echo_n "(cached) " >&6
  8681. +else
  8682. + lt_cv_prog_compiler_static_works=no
  8683. + save_LDFLAGS="$LDFLAGS"
  8684. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8685. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8686. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8687. + # The linker can only warn and ignore the option if not recognized
  8688. + # So say no if there are warnings
  8689. + if test -s conftest.err; then
  8690. + # Append any errors to the config.log.
  8691. + cat conftest.err 1>&5
  8692. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8693. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8694. + if diff conftest.exp conftest.er2 >/dev/null; then
  8695. + lt_cv_prog_compiler_static_works=yes
  8696. + fi
  8697. + else
  8698. + lt_cv_prog_compiler_static_works=yes
  8699. + fi
  8700. + fi
  8701. + $RM -r conftest*
  8702. + LDFLAGS="$save_LDFLAGS"
  8703. +
  8704. +fi
  8705. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  8706. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8707. +
  8708. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8709. + :
  8710. +else
  8711. + lt_prog_compiler_static=
  8712. +fi
  8713. +
  8714. +
  8715. +
  8716. +
  8717. +
  8718. +
  8719. +
  8720. + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8721. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8722. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8723. + $as_echo_n "(cached) " >&6
  8724. +else
  8725. + lt_cv_prog_compiler_c_o=no
  8726. + $RM -r conftest 2>/dev/null
  8727. + mkdir conftest
  8728. + cd conftest
  8729. + mkdir out
  8730. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8731. +
  8732. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  8733. + # Insert the option either (1) after the last *FLAGS variable, or
  8734. + # (2) before a word containing "conftest.", or (3) at the end.
  8735. + # Note that $ac_compile itself does not contain backslashes and begins
  8736. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  8737. + lt_compile=`echo "$ac_compile" | $SED \
  8738. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8739. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8740. + -e 's:$: $lt_compiler_flag:'`
  8741. + (eval echo "\"\$as_me:8261: $lt_compile\"" >&5)
  8742. + (eval "$lt_compile" 2>out/conftest.err)
  8743. + ac_status=$?
  8744. + cat out/conftest.err >&5
  8745. + echo "$as_me:8265: \$? = $ac_status" >&5
  8746. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8747. + then
  8748. + # The compiler can only warn and ignore the option if not recognized
  8749. + # So say no if there are warnings
  8750. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8751. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8752. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8753. + lt_cv_prog_compiler_c_o=yes
  8754. + fi
  8755. + fi
  8756. + chmod u+w . 2>&5
  8757. + $RM conftest*
  8758. + # SGI C++ compiler will create directory out/ii_files/ for
  8759. + # template instantiation
  8760. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8761. + $RM out/* && rmdir out
  8762. + cd ..
  8763. + $RM -r conftest
  8764. + $RM conftest*
  8765. +
  8766. +fi
  8767. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8768. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8769. +
  8770. +
  8771. +
  8772. +
  8773. +
  8774. +
  8775. + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8776. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8777. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8778. + $as_echo_n "(cached) " >&6
  8779. +else
  8780. + lt_cv_prog_compiler_c_o=no
  8781. + $RM -r conftest 2>/dev/null
  8782. + mkdir conftest
  8783. + cd conftest
  8784. + mkdir out
  8785. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8786. +
  8787. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  8788. + # Insert the option either (1) after the last *FLAGS variable, or
  8789. + # (2) before a word containing "conftest.", or (3) at the end.
  8790. + # Note that $ac_compile itself does not contain backslashes and begins
  8791. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  8792. + lt_compile=`echo "$ac_compile" | $SED \
  8793. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8794. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8795. + -e 's:$: $lt_compiler_flag:'`
  8796. + (eval echo "\"\$as_me:8316: $lt_compile\"" >&5)
  8797. + (eval "$lt_compile" 2>out/conftest.err)
  8798. + ac_status=$?
  8799. + cat out/conftest.err >&5
  8800. + echo "$as_me:8320: \$? = $ac_status" >&5
  8801. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8802. + then
  8803. + # The compiler can only warn and ignore the option if not recognized
  8804. + # So say no if there are warnings
  8805. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8806. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8807. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8808. + lt_cv_prog_compiler_c_o=yes
  8809. + fi
  8810. + fi
  8811. + chmod u+w . 2>&5
  8812. + $RM conftest*
  8813. + # SGI C++ compiler will create directory out/ii_files/ for
  8814. + # template instantiation
  8815. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8816. + $RM out/* && rmdir out
  8817. + cd ..
  8818. + $RM -r conftest
  8819. + $RM conftest*
  8820. +
  8821. +fi
  8822. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8823. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8824. +
  8825. +
  8826. +
  8827. +
  8828. +hard_links="nottested"
  8829. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8830. + # do not overwrite the value of need_locks provided by the user
  8831. + { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8832. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  8833. + hard_links=yes
  8834. + $RM conftest*
  8835. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8836. + touch conftest.a
  8837. + ln conftest.a conftest.b 2>&5 || hard_links=no
  8838. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8839. + { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8840. +$as_echo "$hard_links" >&6; }
  8841. + if test "$hard_links" = no; then
  8842. + { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8843. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8844. + need_locks=warn
  8845. + fi
  8846. +else
  8847. + need_locks=no
  8848. +fi
  8849. +
  8850. +
  8851. +
  8852. +
  8853. +
  8854. +
  8855. + { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8856. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8857. +
  8858. + runpath_var=
  8859. + allow_undefined_flag=
  8860. + always_export_symbols=no
  8861. + archive_cmds=
  8862. + archive_expsym_cmds=
  8863. + compiler_needs_object=no
  8864. + enable_shared_with_static_runtimes=no
  8865. + export_dynamic_flag_spec=
  8866. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8867. + hardcode_automatic=no
  8868. + hardcode_direct=no
  8869. + hardcode_direct_absolute=no
  8870. + hardcode_libdir_flag_spec=
  8871. + hardcode_libdir_flag_spec_ld=
  8872. + hardcode_libdir_separator=
  8873. + hardcode_minus_L=no
  8874. + hardcode_shlibpath_var=unsupported
  8875. + inherit_rpath=no
  8876. + link_all_deplibs=unknown
  8877. + module_cmds=
  8878. + module_expsym_cmds=
  8879. + old_archive_from_new_cmds=
  8880. + old_archive_from_expsyms_cmds=
  8881. + thread_safe_flag_spec=
  8882. + whole_archive_flag_spec=
  8883. + # include_expsyms should be a list of space-separated symbols to be *always*
  8884. + # included in the symbol list
  8885. + include_expsyms=
  8886. + # exclude_expsyms can be an extended regexp of symbols to exclude
  8887. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8888. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8889. + # as well as any symbol that contains `d'.
  8890. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8891. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8892. + # platforms (ab)use it in PIC code, but their linkers get confused if
  8893. + # the symbol is explicitly referenced. Since portable code cannot
  8894. + # rely on this symbol name, it's probably fine to never include it in
  8895. + # preloaded symbol tables.
  8896. + # Exclude shared library initialization/finalization symbols.
  8897. + extract_expsyms_cmds=
  8898. +
  8899. + case $host_os in
  8900. + cygwin* | mingw* | pw32* | cegcc*)
  8901. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8902. + # When not using gcc, we currently assume that we are using
  8903. + # Microsoft Visual C++.
  8904. + if test "$GCC" != yes; then
  8905. + with_gnu_ld=no
  8906. + fi
  8907. + ;;
  8908. + interix*)
  8909. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  8910. + with_gnu_ld=yes
  8911. + ;;
  8912. + openbsd*)
  8913. + with_gnu_ld=no
  8914. + ;;
  8915. + esac
  8916. +
  8917. + ld_shlibs=yes
  8918. + if test "$with_gnu_ld" = yes; then
  8919. + # If archive_cmds runs LD, not CC, wlarc should be empty
  8920. + wlarc='${wl}'
  8921. +
  8922. + # Set some defaults for GNU ld with shared library support. These
  8923. + # are reset later if shared libraries are not supported. Putting them
  8924. + # here allows them to be overridden if necessary.
  8925. + runpath_var=LD_RUN_PATH
  8926. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8927. + export_dynamic_flag_spec='${wl}--export-dynamic'
  8928. + # ancient GNU ld didn't support --whole-archive et. al.
  8929. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8930. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8931. + else
  8932. + whole_archive_flag_spec=
  8933. + fi
  8934. + supports_anon_versioning=no
  8935. + case `$LD -v 2>&1` in
  8936. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8937. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8938. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8939. + *\ 2.11.*) ;; # other 2.11 versions
  8940. + *) supports_anon_versioning=yes ;;
  8941. + esac
  8942. +
  8943. + # See if GNU ld supports shared libraries.
  8944. + case $host_os in
  8945. + aix[3-9]*)
  8946. + # On AIX/PPC, the GNU linker is very broken
  8947. + if test "$host_cpu" != ia64; then
  8948. + ld_shlibs=no
  8949. + cat <<_LT_EOF 1>&2
  8950. +
  8951. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8952. +*** to be unable to reliably create shared libraries on AIX.
  8953. +*** Therefore, libtool is disabling shared libraries support. If you
  8954. +*** really care for shared libraries, you may want to modify your PATH
  8955. +*** so that a non-GNU linker is found, and then restart.
  8956. +
  8957. +_LT_EOF
  8958. + fi
  8959. + ;;
  8960. +
  8961. + amigaos*)
  8962. + case $host_cpu in
  8963. + powerpc)
  8964. + # see comment about AmigaOS4 .so support
  8965. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8966. + archive_expsym_cmds=''
  8967. + ;;
  8968. + m68k)
  8969. + 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)'
  8970. + hardcode_libdir_flag_spec='-L$libdir'
  8971. + hardcode_minus_L=yes
  8972. + ;;
  8973. + esac
  8974. + ;;
  8975. +
  8976. + beos*)
  8977. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8978. + allow_undefined_flag=unsupported
  8979. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8980. + # support --undefined. This deserves some investigation. FIXME
  8981. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8982. + else
  8983. + ld_shlibs=no
  8984. + fi
  8985. + ;;
  8986. +
  8987. + cygwin* | mingw* | pw32* | cegcc*)
  8988. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8989. + # as there is no search path for DLLs.
  8990. + hardcode_libdir_flag_spec='-L$libdir'
  8991. + allow_undefined_flag=unsupported
  8992. + always_export_symbols=no
  8993. + enable_shared_with_static_runtimes=yes
  8994. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8995. +
  8996. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8997. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8998. + # If the export-symbols file already is a .def file (1st line
  8999. + # is EXPORTS), use it as is; otherwise, prepend...
  9000. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9001. + cp $export_symbols $output_objdir/$soname.def;
  9002. + else
  9003. + echo EXPORTS > $output_objdir/$soname.def;
  9004. + cat $export_symbols >> $output_objdir/$soname.def;
  9005. + fi~
  9006. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9007. + else
  9008. + ld_shlibs=no
  9009. + fi
  9010. + ;;
  9011. +
  9012. + interix[3-9]*)
  9013. + hardcode_direct=no
  9014. + hardcode_shlibpath_var=no
  9015. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9016. + export_dynamic_flag_spec='${wl}-E'
  9017. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9018. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9019. + # default) and relocated if they conflict, which is a slow very memory
  9020. + # consuming and fragmenting process. To avoid this, we pick a random,
  9021. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9022. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9023. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9024. + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9025. + ;;
  9026. +
  9027. + gnu* | linux* | tpf* | k*bsd*-gnu)
  9028. + tmp_diet=no
  9029. + if test "$host_os" = linux-dietlibc; then
  9030. + case $cc_basename in
  9031. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9032. + esac
  9033. + fi
  9034. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9035. + && test "$tmp_diet" = no
  9036. + then
  9037. + tmp_addflag=
  9038. + tmp_sharedflag='-shared'
  9039. + case $cc_basename,$host_cpu in
  9040. + pgcc*) # Portland Group C compiler
  9041. + 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'
  9042. + tmp_addflag=' $pic_flag'
  9043. + ;;
  9044. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  9045. + 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'
  9046. + tmp_addflag=' $pic_flag -Mnomain' ;;
  9047. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9048. + tmp_addflag=' -i_dynamic' ;;
  9049. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9050. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  9051. + ifc* | ifort*) # Intel Fortran compiler
  9052. + tmp_addflag=' -nofor_main' ;;
  9053. + lf95*) # Lahey Fortran 8.1
  9054. + whole_archive_flag_spec=
  9055. + tmp_sharedflag='--shared' ;;
  9056. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9057. + tmp_sharedflag='-qmkshrobj'
  9058. + tmp_addflag= ;;
  9059. + esac
  9060. + case `$CC -V 2>&1 | sed 5q` in
  9061. + *Sun\ C*) # Sun C 5.9
  9062. + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  9063. + compiler_needs_object=yes
  9064. + tmp_sharedflag='-G' ;;
  9065. + *Sun\ F*) # Sun Fortran 8.3
  9066. + tmp_sharedflag='-G' ;;
  9067. + esac
  9068. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9069. +
  9070. + if test "x$supports_anon_versioning" = xyes; then
  9071. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9072. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9073. + echo "local: *; };" >> $output_objdir/$libname.ver~
  9074. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9075. + fi
  9076. +
  9077. + case $cc_basename in
  9078. + xlf*)
  9079. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9080. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9081. + hardcode_libdir_flag_spec=
  9082. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  9083. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  9084. + if test "x$supports_anon_versioning" = xyes; then
  9085. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9086. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9087. + echo "local: *; };" >> $output_objdir/$libname.ver~
  9088. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9089. + fi
  9090. + ;;
  9091. + esac
  9092. + else
  9093. + ld_shlibs=no
  9094. + fi
  9095. + ;;
  9096. +
  9097. + netbsd*)
  9098. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9099. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9100. + wlarc=
  9101. + else
  9102. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9103. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9104. + fi
  9105. + ;;
  9106. +
  9107. + solaris*)
  9108. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9109. + ld_shlibs=no
  9110. + cat <<_LT_EOF 1>&2
  9111. +
  9112. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9113. +*** create shared libraries on Solaris systems. Therefore, libtool
  9114. +*** is disabling shared libraries support. We urge you to upgrade GNU
  9115. +*** binutils to release 2.9.1 or newer. Another option is to modify
  9116. +*** your PATH or compiler configuration so that the native linker is
  9117. +*** used, and then restart.
  9118. +
  9119. +_LT_EOF
  9120. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9121. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9122. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9123. + else
  9124. + ld_shlibs=no
  9125. + fi
  9126. + ;;
  9127. +
  9128. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9129. + case `$LD -v 2>&1` in
  9130. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9131. + ld_shlibs=no
  9132. + cat <<_LT_EOF 1>&2
  9133. +
  9134. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9135. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  9136. +*** is disabling shared libraries support. We urge you to upgrade GNU
  9137. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9138. +*** your PATH or compiler configuration so that the native linker is
  9139. +*** used, and then restart.
  9140. +
  9141. +_LT_EOF
  9142. + ;;
  9143. + *)
  9144. + # For security reasons, it is highly recommended that you always
  9145. + # use absolute paths for naming shared libraries, and exclude the
  9146. + # DT_RUNPATH tag from executables and libraries. But doing so
  9147. + # requires that you compile everything twice, which is a pain.
  9148. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9149. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9150. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9151. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9152. + else
  9153. + ld_shlibs=no
  9154. + fi
  9155. + ;;
  9156. + esac
  9157. + ;;
  9158. +
  9159. + sunos4*)
  9160. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9161. + wlarc=
  9162. + hardcode_direct=yes
  9163. + hardcode_shlibpath_var=no
  9164. + ;;
  9165. +
  9166. + *)
  9167. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9168. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9169. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9170. + else
  9171. + ld_shlibs=no
  9172. + fi
  9173. + ;;
  9174. + esac
  9175. +
  9176. + if test "$ld_shlibs" = no; then
  9177. + runpath_var=
  9178. + hardcode_libdir_flag_spec=
  9179. + export_dynamic_flag_spec=
  9180. + whole_archive_flag_spec=
  9181. + fi
  9182. + else
  9183. + # PORTME fill in a description of your system's linker (not GNU ld)
  9184. + case $host_os in
  9185. + aix3*)
  9186. + allow_undefined_flag=unsupported
  9187. + always_export_symbols=yes
  9188. + 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'
  9189. + # Note: this linker hardcodes the directories in LIBPATH if there
  9190. + # are no directories specified by -L.
  9191. + hardcode_minus_L=yes
  9192. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9193. + # Neither direct hardcoding nor static linking is supported with a
  9194. + # broken collect2.
  9195. + hardcode_direct=unsupported
  9196. + fi
  9197. + ;;
  9198. +
  9199. + aix[4-9]*)
  9200. + if test "$host_cpu" = ia64; then
  9201. + # On IA64, the linker does run time linking by default, so we don't
  9202. + # have to do anything special.
  9203. + aix_use_runtimelinking=no
  9204. + exp_sym_flag='-Bexport'
  9205. + no_entry_flag=""
  9206. + else
  9207. + # If we're using GNU nm, then we don't want the "-C" option.
  9208. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9209. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9210. + 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'
  9211. + else
  9212. + 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'
  9213. + fi
  9214. + aix_use_runtimelinking=no
  9215. +
  9216. + # Test if we are trying to use run time linking or normal
  9217. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9218. + # need to do runtime linking.
  9219. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9220. + for ld_flag in $LDFLAGS; do
  9221. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9222. + aix_use_runtimelinking=yes
  9223. + break
  9224. + fi
  9225. + done
  9226. + ;;
  9227. + esac
  9228. +
  9229. + exp_sym_flag='-bexport'
  9230. + no_entry_flag='-bnoentry'
  9231. + fi
  9232. +
  9233. + # When large executables or shared objects are built, AIX ld can
  9234. + # have problems creating the table of contents. If linking a library
  9235. + # or program results in "error TOC overflow" add -mminimal-toc to
  9236. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9237. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9238. +
  9239. + archive_cmds=''
  9240. + hardcode_direct=yes
  9241. + hardcode_direct_absolute=yes
  9242. + hardcode_libdir_separator=':'
  9243. + link_all_deplibs=yes
  9244. + file_list_spec='${wl}-f,'
  9245. +
  9246. + if test "$GCC" = yes; then
  9247. + case $host_os in aix4.[012]|aix4.[012].*)
  9248. + # We only want to do this on AIX 4.2 and lower, the check
  9249. + # below for broken collect2 doesn't work under 4.3+
  9250. + collect2name=`${CC} -print-prog-name=collect2`
  9251. + if test -f "$collect2name" &&
  9252. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9253. + then
  9254. + # We have reworked collect2
  9255. + :
  9256. + else
  9257. + # We have old collect2
  9258. + hardcode_direct=unsupported
  9259. + # It fails to find uninstalled libraries when the uninstalled
  9260. + # path is not listed in the libpath. Setting hardcode_minus_L
  9261. + # to unsupported forces relinking
  9262. + hardcode_minus_L=yes
  9263. + hardcode_libdir_flag_spec='-L$libdir'
  9264. + hardcode_libdir_separator=
  9265. + fi
  9266. + ;;
  9267. + esac
  9268. + shared_flag='-shared'
  9269. + if test "$aix_use_runtimelinking" = yes; then
  9270. + shared_flag="$shared_flag "'${wl}-G'
  9271. + fi
  9272. + else
  9273. + # not using gcc
  9274. + if test "$host_cpu" = ia64; then
  9275. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9276. + # chokes on -Wl,-G. The following line is correct:
  9277. + shared_flag='-G'
  9278. + else
  9279. + if test "$aix_use_runtimelinking" = yes; then
  9280. + shared_flag='${wl}-G'
  9281. + else
  9282. + shared_flag='${wl}-bM:SRE'
  9283. + fi
  9284. + fi
  9285. + fi
  9286. +
  9287. + export_dynamic_flag_spec='${wl}-bexpall'
  9288. + # It seems that -bexpall does not export symbols beginning with
  9289. + # underscore (_), so it is better to generate a list of symbols to export.
  9290. + always_export_symbols=yes
  9291. + if test "$aix_use_runtimelinking" = yes; then
  9292. + # Warning - without using the other runtime loading flags (-brtl),
  9293. + # -berok will link without error, but may produce a broken library.
  9294. + allow_undefined_flag='-berok'
  9295. + # Determine the default libpath from the value encoded in an
  9296. + # empty executable.
  9297. + cat >conftest.$ac_ext <<_ACEOF
  9298. +/* confdefs.h. */
  9299. +_ACEOF
  9300. +cat confdefs.h >>conftest.$ac_ext
  9301. +cat >>conftest.$ac_ext <<_ACEOF
  9302. +/* end confdefs.h. */
  9303. +
  9304. +int
  9305. +main ()
  9306. +{
  9307. +
  9308. + ;
  9309. + return 0;
  9310. +}
  9311. +_ACEOF
  9312. +rm -f conftest.$ac_objext conftest$ac_exeext
  9313. +if { (ac_try="$ac_link"
  9314. +case "(($ac_try" in
  9315. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9316. + *) ac_try_echo=$ac_try;;
  9317. +esac
  9318. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9319. +$as_echo "$ac_try_echo") >&5
  9320. + (eval "$ac_link") 2>conftest.er1
  9321. + ac_status=$?
  9322. + grep -v '^ *+' conftest.er1 >conftest.err
  9323. + rm -f conftest.er1
  9324. + cat conftest.err >&5
  9325. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9326. + (exit $ac_status); } && {
  9327. + test -z "$ac_c_werror_flag" ||
  9328. + test ! -s conftest.err
  9329. + } && test -s conftest$ac_exeext && {
  9330. + test "$cross_compiling" = yes ||
  9331. + $as_test_x conftest$ac_exeext
  9332. + }; then
  9333. +
  9334. +lt_aix_libpath_sed='
  9335. + /Import File Strings/,/^$/ {
  9336. + /^0/ {
  9337. + s/^0 *\(.*\)$/\1/
  9338. + p
  9339. + }
  9340. + }'
  9341. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9342. +# Check for a 64-bit object if we didn't find anything.
  9343. +if test -z "$aix_libpath"; then
  9344. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9345. +fi
  9346. +else
  9347. + $as_echo "$as_me: failed program was:" >&5
  9348. +sed 's/^/| /' conftest.$ac_ext >&5
  9349. +
  9350. +
  9351. +fi
  9352. +
  9353. +rm -rf conftest.dSYM
  9354. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9355. + conftest$ac_exeext conftest.$ac_ext
  9356. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9357. +
  9358. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9359. + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9360. + else
  9361. + if test "$host_cpu" = ia64; then
  9362. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9363. + allow_undefined_flag="-z nodefs"
  9364. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9365. + else
  9366. + # Determine the default libpath from the value encoded in an
  9367. + # empty executable.
  9368. + cat >conftest.$ac_ext <<_ACEOF
  9369. +/* confdefs.h. */
  9370. +_ACEOF
  9371. +cat confdefs.h >>conftest.$ac_ext
  9372. +cat >>conftest.$ac_ext <<_ACEOF
  9373. +/* end confdefs.h. */
  9374. +
  9375. +int
  9376. +main ()
  9377. +{
  9378. +
  9379. + ;
  9380. + return 0;
  9381. +}
  9382. +_ACEOF
  9383. +rm -f conftest.$ac_objext conftest$ac_exeext
  9384. +if { (ac_try="$ac_link"
  9385. +case "(($ac_try" in
  9386. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9387. + *) ac_try_echo=$ac_try;;
  9388. +esac
  9389. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9390. +$as_echo "$ac_try_echo") >&5
  9391. + (eval "$ac_link") 2>conftest.er1
  9392. + ac_status=$?
  9393. + grep -v '^ *+' conftest.er1 >conftest.err
  9394. + rm -f conftest.er1
  9395. + cat conftest.err >&5
  9396. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9397. + (exit $ac_status); } && {
  9398. + test -z "$ac_c_werror_flag" ||
  9399. + test ! -s conftest.err
  9400. + } && test -s conftest$ac_exeext && {
  9401. + test "$cross_compiling" = yes ||
  9402. + $as_test_x conftest$ac_exeext
  9403. + }; then
  9404. +
  9405. +lt_aix_libpath_sed='
  9406. + /Import File Strings/,/^$/ {
  9407. + /^0/ {
  9408. + s/^0 *\(.*\)$/\1/
  9409. + p
  9410. + }
  9411. + }'
  9412. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9413. +# Check for a 64-bit object if we didn't find anything.
  9414. +if test -z "$aix_libpath"; then
  9415. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9416. +fi
  9417. +else
  9418. + $as_echo "$as_me: failed program was:" >&5
  9419. +sed 's/^/| /' conftest.$ac_ext >&5
  9420. +
  9421. +
  9422. +fi
  9423. +
  9424. +rm -rf conftest.dSYM
  9425. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9426. + conftest$ac_exeext conftest.$ac_ext
  9427. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9428. +
  9429. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9430. + # Warning - without using the other run time loading flags,
  9431. + # -berok will link without error, but may produce a broken library.
  9432. + no_undefined_flag=' ${wl}-bernotok'
  9433. + allow_undefined_flag=' ${wl}-berok'
  9434. + # Exported symbols can be pulled into shared objects from archives
  9435. + whole_archive_flag_spec='$convenience'
  9436. + archive_cmds_need_lc=yes
  9437. + # This is similar to how AIX traditionally builds its shared libraries.
  9438. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9439. + fi
  9440. + fi
  9441. + ;;
  9442. +
  9443. + amigaos*)
  9444. + case $host_cpu in
  9445. + powerpc)
  9446. + # see comment about AmigaOS4 .so support
  9447. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9448. + archive_expsym_cmds=''
  9449. + ;;
  9450. + m68k)
  9451. + 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)'
  9452. + hardcode_libdir_flag_spec='-L$libdir'
  9453. + hardcode_minus_L=yes
  9454. + ;;
  9455. + esac
  9456. + ;;
  9457. +
  9458. + bsdi[45]*)
  9459. + export_dynamic_flag_spec=-rdynamic
  9460. + ;;
  9461. +
  9462. + cygwin* | mingw* | pw32* | cegcc*)
  9463. + # When not using gcc, we currently assume that we are using
  9464. + # Microsoft Visual C++.
  9465. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  9466. + # no search path for DLLs.
  9467. + hardcode_libdir_flag_spec=' '
  9468. + allow_undefined_flag=unsupported
  9469. + # Tell ltmain to make .lib files, not .a files.
  9470. + libext=lib
  9471. + # Tell ltmain to make .dll files, not .so files.
  9472. + shrext_cmds=".dll"
  9473. + # FIXME: Setting linknames here is a bad hack.
  9474. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9475. + # The linker will automatically build a .lib file if we build a DLL.
  9476. + old_archive_from_new_cmds='true'
  9477. + # FIXME: Should let the user specify the lib program.
  9478. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9479. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  9480. + enable_shared_with_static_runtimes=yes
  9481. + ;;
  9482. +
  9483. + darwin* | rhapsody*)
  9484. +
  9485. +
  9486. + archive_cmds_need_lc=no
  9487. + hardcode_direct=no
  9488. + hardcode_automatic=yes
  9489. + hardcode_shlibpath_var=unsupported
  9490. + whole_archive_flag_spec=''
  9491. + link_all_deplibs=yes
  9492. + allow_undefined_flag="$_lt_dar_allow_undefined"
  9493. + case $cc_basename in
  9494. + ifort*) _lt_dar_can_shared=yes ;;
  9495. + *) _lt_dar_can_shared=$GCC ;;
  9496. + esac
  9497. + if test "$_lt_dar_can_shared" = "yes"; then
  9498. + output_verbose_link_cmd=echo
  9499. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9500. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9501. + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  9502. + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  9503. +
  9504. + else
  9505. + ld_shlibs=no
  9506. + fi
  9507. +
  9508. + ;;
  9509. +
  9510. + dgux*)
  9511. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9512. + hardcode_libdir_flag_spec='-L$libdir'
  9513. + hardcode_shlibpath_var=no
  9514. + ;;
  9515. +
  9516. + freebsd1*)
  9517. + ld_shlibs=no
  9518. + ;;
  9519. +
  9520. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9521. + # support. Future versions do this automatically, but an explicit c++rt0.o
  9522. + # does not break anything, and helps significantly (at the cost of a little
  9523. + # extra space).
  9524. + freebsd2.2*)
  9525. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9526. + hardcode_libdir_flag_spec='-R$libdir'
  9527. + hardcode_direct=yes
  9528. + hardcode_shlibpath_var=no
  9529. + ;;
  9530. +
  9531. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9532. + freebsd2*)
  9533. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9534. + hardcode_direct=yes
  9535. + hardcode_minus_L=yes
  9536. + hardcode_shlibpath_var=no
  9537. + ;;
  9538. +
  9539. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9540. + freebsd* | dragonfly*)
  9541. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9542. + hardcode_libdir_flag_spec='-R$libdir'
  9543. + hardcode_direct=yes
  9544. + hardcode_shlibpath_var=no
  9545. + ;;
  9546. +
  9547. + hpux9*)
  9548. + if test "$GCC" = yes; then
  9549. + 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'
  9550. + else
  9551. + 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'
  9552. + fi
  9553. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9554. + hardcode_libdir_separator=:
  9555. + hardcode_direct=yes
  9556. +
  9557. + # hardcode_minus_L: Not really in the search PATH,
  9558. + # but as the default location of the library.
  9559. + hardcode_minus_L=yes
  9560. + export_dynamic_flag_spec='${wl}-E'
  9561. + ;;
  9562. +
  9563. + hpux10*)
  9564. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9565. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9566. + else
  9567. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9568. + fi
  9569. + if test "$with_gnu_ld" = no; then
  9570. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9571. + hardcode_libdir_flag_spec_ld='+b $libdir'
  9572. + hardcode_libdir_separator=:
  9573. + hardcode_direct=yes
  9574. + hardcode_direct_absolute=yes
  9575. + export_dynamic_flag_spec='${wl}-E'
  9576. + # hardcode_minus_L: Not really in the search PATH,
  9577. + # but as the default location of the library.
  9578. + hardcode_minus_L=yes
  9579. + fi
  9580. + ;;
  9581. +
  9582. + hpux11*)
  9583. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9584. + case $host_cpu in
  9585. + hppa*64*)
  9586. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9587. + ;;
  9588. + ia64*)
  9589. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9590. + ;;
  9591. + *)
  9592. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9593. + ;;
  9594. + esac
  9595. + else
  9596. + case $host_cpu in
  9597. + hppa*64*)
  9598. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9599. + ;;
  9600. + ia64*)
  9601. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9602. + ;;
  9603. + *)
  9604. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9605. + ;;
  9606. + esac
  9607. + fi
  9608. + if test "$with_gnu_ld" = no; then
  9609. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9610. + hardcode_libdir_separator=:
  9611. +
  9612. + case $host_cpu in
  9613. + hppa*64*|ia64*)
  9614. + hardcode_direct=no
  9615. + hardcode_shlibpath_var=no
  9616. + ;;
  9617. + *)
  9618. + hardcode_direct=yes
  9619. + hardcode_direct_absolute=yes
  9620. + export_dynamic_flag_spec='${wl}-E'
  9621. +
  9622. + # hardcode_minus_L: Not really in the search PATH,
  9623. + # but as the default location of the library.
  9624. + hardcode_minus_L=yes
  9625. + ;;
  9626. + esac
  9627. + fi
  9628. + ;;
  9629. +
  9630. + irix5* | irix6* | nonstopux*)
  9631. + if test "$GCC" = yes; then
  9632. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9633. + # Try to use the -exported_symbol ld option, if it does not
  9634. + # work, assume that -exports_file does not work either and
  9635. + # implicitly export all symbols.
  9636. + save_LDFLAGS="$LDFLAGS"
  9637. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9638. + cat >conftest.$ac_ext <<_ACEOF
  9639. +int foo(void) {}
  9640. +_ACEOF
  9641. +rm -f conftest.$ac_objext conftest$ac_exeext
  9642. +if { (ac_try="$ac_link"
  9643. +case "(($ac_try" in
  9644. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9645. + *) ac_try_echo=$ac_try;;
  9646. +esac
  9647. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9648. +$as_echo "$ac_try_echo") >&5
  9649. + (eval "$ac_link") 2>conftest.er1
  9650. + ac_status=$?
  9651. + grep -v '^ *+' conftest.er1 >conftest.err
  9652. + rm -f conftest.er1
  9653. + cat conftest.err >&5
  9654. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9655. + (exit $ac_status); } && {
  9656. + test -z "$ac_c_werror_flag" ||
  9657. + test ! -s conftest.err
  9658. + } && test -s conftest$ac_exeext && {
  9659. + test "$cross_compiling" = yes ||
  9660. + $as_test_x conftest$ac_exeext
  9661. + }; then
  9662. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9663. +
  9664. +else
  9665. + $as_echo "$as_me: failed program was:" >&5
  9666. +sed 's/^/| /' conftest.$ac_ext >&5
  9667. +
  9668. +
  9669. +fi
  9670. +
  9671. +rm -rf conftest.dSYM
  9672. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9673. + conftest$ac_exeext conftest.$ac_ext
  9674. + LDFLAGS="$save_LDFLAGS"
  9675. + else
  9676. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9677. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9678. + fi
  9679. + archive_cmds_need_lc='no'
  9680. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9681. + hardcode_libdir_separator=:
  9682. + inherit_rpath=yes
  9683. + link_all_deplibs=yes
  9684. + ;;
  9685. +
  9686. + netbsd*)
  9687. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9688. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9689. + else
  9690. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9691. + fi
  9692. + hardcode_libdir_flag_spec='-R$libdir'
  9693. + hardcode_direct=yes
  9694. + hardcode_shlibpath_var=no
  9695. + ;;
  9696. +
  9697. + newsos6)
  9698. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9699. + hardcode_direct=yes
  9700. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9701. + hardcode_libdir_separator=:
  9702. + hardcode_shlibpath_var=no
  9703. + ;;
  9704. +
  9705. + *nto* | *qnx*)
  9706. + ;;
  9707. +
  9708. + openbsd*)
  9709. + if test -f /usr/libexec/ld.so; then
  9710. + hardcode_direct=yes
  9711. + hardcode_shlibpath_var=no
  9712. + hardcode_direct_absolute=yes
  9713. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9714. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9715. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9716. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9717. + export_dynamic_flag_spec='${wl}-E'
  9718. + else
  9719. + case $host_os in
  9720. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9721. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9722. + hardcode_libdir_flag_spec='-R$libdir'
  9723. + ;;
  9724. + *)
  9725. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9726. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9727. + ;;
  9728. + esac
  9729. + fi
  9730. + else
  9731. + ld_shlibs=no
  9732. + fi
  9733. + ;;
  9734. +
  9735. + os2*)
  9736. + hardcode_libdir_flag_spec='-L$libdir'
  9737. + hardcode_minus_L=yes
  9738. + allow_undefined_flag=unsupported
  9739. + 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'
  9740. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9741. + ;;
  9742. +
  9743. + osf3*)
  9744. + if test "$GCC" = yes; then
  9745. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9746. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9747. + else
  9748. + allow_undefined_flag=' -expect_unresolved \*'
  9749. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9750. + fi
  9751. + archive_cmds_need_lc='no'
  9752. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9753. + hardcode_libdir_separator=:
  9754. + ;;
  9755. +
  9756. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  9757. + if test "$GCC" = yes; then
  9758. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9759. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9760. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9761. + else
  9762. + allow_undefined_flag=' -expect_unresolved \*'
  9763. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9764. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9765. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9766. +
  9767. + # Both c and cxx compiler support -rpath directly
  9768. + hardcode_libdir_flag_spec='-rpath $libdir'
  9769. + fi
  9770. + archive_cmds_need_lc='no'
  9771. + hardcode_libdir_separator=:
  9772. + ;;
  9773. +
  9774. + solaris*)
  9775. + no_undefined_flag=' -z defs'
  9776. + if test "$GCC" = yes; then
  9777. + wlarc='${wl}'
  9778. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9779. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9780. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9781. + else
  9782. + case `$CC -V 2>&1` in
  9783. + *"Compilers 5.0"*)
  9784. + wlarc=''
  9785. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9786. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9787. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9788. + ;;
  9789. + *)
  9790. + wlarc='${wl}'
  9791. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9792. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9793. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9794. + ;;
  9795. + esac
  9796. + fi
  9797. + hardcode_libdir_flag_spec='-R$libdir'
  9798. + hardcode_shlibpath_var=no
  9799. + case $host_os in
  9800. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  9801. + *)
  9802. + # The compiler driver will combine and reorder linker options,
  9803. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  9804. + # but is careful enough not to reorder.
  9805. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  9806. + if test "$GCC" = yes; then
  9807. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9808. + else
  9809. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9810. + fi
  9811. + ;;
  9812. + esac
  9813. + link_all_deplibs=yes
  9814. + ;;
  9815. +
  9816. + sunos4*)
  9817. + if test "x$host_vendor" = xsequent; then
  9818. + # Use $CC to link under sequent, because it throws in some extra .o
  9819. + # files that make .init and .fini sections work.
  9820. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9821. + else
  9822. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9823. + fi
  9824. + hardcode_libdir_flag_spec='-L$libdir'
  9825. + hardcode_direct=yes
  9826. + hardcode_minus_L=yes
  9827. + hardcode_shlibpath_var=no
  9828. + ;;
  9829. +
  9830. + sysv4)
  9831. + case $host_vendor in
  9832. + sni)
  9833. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9834. + hardcode_direct=yes # is this really true???
  9835. + ;;
  9836. + siemens)
  9837. + ## LD is ld it makes a PLAMLIB
  9838. + ## CC just makes a GrossModule.
  9839. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9840. + reload_cmds='$CC -r -o $output$reload_objs'
  9841. + hardcode_direct=no
  9842. + ;;
  9843. + motorola)
  9844. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9845. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9846. + ;;
  9847. + esac
  9848. + runpath_var='LD_RUN_PATH'
  9849. + hardcode_shlibpath_var=no
  9850. + ;;
  9851. +
  9852. + sysv4.3*)
  9853. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9854. + hardcode_shlibpath_var=no
  9855. + export_dynamic_flag_spec='-Bexport'
  9856. + ;;
  9857. +
  9858. + sysv4*MP*)
  9859. + if test -d /usr/nec; then
  9860. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9861. + hardcode_shlibpath_var=no
  9862. + runpath_var=LD_RUN_PATH
  9863. + hardcode_runpath_var=yes
  9864. + ld_shlibs=yes
  9865. + fi
  9866. + ;;
  9867. +
  9868. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9869. + no_undefined_flag='${wl}-z,text'
  9870. + archive_cmds_need_lc=no
  9871. + hardcode_shlibpath_var=no
  9872. + runpath_var='LD_RUN_PATH'
  9873. +
  9874. + if test "$GCC" = yes; then
  9875. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9876. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9877. + else
  9878. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9879. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9880. + fi
  9881. + ;;
  9882. +
  9883. + sysv5* | sco3.2v5* | sco5v6*)
  9884. + # Note: We can NOT use -z defs as we might desire, because we do not
  9885. + # link with -lc, and that would cause any symbols used from libc to
  9886. + # always be unresolved, which means just about no library would
  9887. + # ever link correctly. If we're not using GNU ld we use -z text
  9888. + # though, which does catch some bad symbols but isn't as heavy-handed
  9889. + # as -z defs.
  9890. + no_undefined_flag='${wl}-z,text'
  9891. + allow_undefined_flag='${wl}-z,nodefs'
  9892. + archive_cmds_need_lc=no
  9893. + hardcode_shlibpath_var=no
  9894. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9895. + hardcode_libdir_separator=':'
  9896. + link_all_deplibs=yes
  9897. + export_dynamic_flag_spec='${wl}-Bexport'
  9898. + runpath_var='LD_RUN_PATH'
  9899. +
  9900. + if test "$GCC" = yes; then
  9901. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9902. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9903. + else
  9904. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9905. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9906. + fi
  9907. + ;;
  9908. +
  9909. + uts4*)
  9910. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9911. + hardcode_libdir_flag_spec='-L$libdir'
  9912. + hardcode_shlibpath_var=no
  9913. + ;;
  9914. +
  9915. + *)
  9916. + ld_shlibs=no
  9917. + ;;
  9918. + esac
  9919. +
  9920. + if test x$host_vendor = xsni; then
  9921. + case $host in
  9922. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9923. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  9924. + ;;
  9925. + esac
  9926. + fi
  9927. + fi
  9928. +
  9929. +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9930. +$as_echo "$ld_shlibs" >&6; }
  9931. +test "$ld_shlibs" = no && can_build_shared=no
  9932. +
  9933. +with_gnu_ld=$with_gnu_ld
  9934. +
  9935. +
  9936. +
  9937. +
  9938. +
  9939. +
  9940. +
  9941. +
  9942. +
  9943. +
  9944. +
  9945. +
  9946. +
  9947. +
  9948. +
  9949. +#
  9950. +# Do we need to explicitly link libc?
  9951. +#
  9952. +case "x$archive_cmds_need_lc" in
  9953. +x|xyes)
  9954. + # Assume -lc should be added
  9955. + archive_cmds_need_lc=yes
  9956. +
  9957. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  9958. + case $archive_cmds in
  9959. + *'~'*)
  9960. + # FIXME: we may have to deal with multi-command sequences.
  9961. + ;;
  9962. + '$CC '*)
  9963. + # Test whether the compiler implicitly links with -lc since on some
  9964. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9965. + # to ld, don't add -lc before -lgcc.
  9966. + { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9967. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9968. + $RM conftest*
  9969. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9970. +
  9971. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9972. + (eval $ac_compile) 2>&5
  9973. + ac_status=$?
  9974. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9975. + (exit $ac_status); } 2>conftest.err; then
  9976. + soname=conftest
  9977. + lib=conftest
  9978. + libobjs=conftest.$ac_objext
  9979. + deplibs=
  9980. + wl=$lt_prog_compiler_wl
  9981. + pic_flag=$lt_prog_compiler_pic
  9982. + compiler_flags=-v
  9983. + linker_flags=-v
  9984. + verstring=
  9985. + output_objdir=.
  9986. + libname=conftest
  9987. + lt_save_allow_undefined_flag=$allow_undefined_flag
  9988. + allow_undefined_flag=
  9989. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9990. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9991. + ac_status=$?
  9992. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9993. + (exit $ac_status); }
  9994. + then
  9995. + archive_cmds_need_lc=no
  9996. + else
  9997. + archive_cmds_need_lc=yes
  9998. + fi
  9999. + allow_undefined_flag=$lt_save_allow_undefined_flag
  10000. + else
  10001. + cat conftest.err 1>&5
  10002. + fi
  10003. + $RM conftest*
  10004. + { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  10005. +$as_echo "$archive_cmds_need_lc" >&6; }
  10006. + ;;
  10007. + esac
  10008. + fi
  10009. + ;;
  10010. +esac
  10011. +
  10012. +
  10013. +
  10014. +
  10015. +
  10016. +
  10017. +
  10018. +
  10019. +
  10020. +
  10021. +
  10022. +
  10023. +
  10024. +
  10025. +
  10026. +
  10027. +
  10028. +
  10029. +
  10030. +
  10031. +
  10032. +
  10033. +
  10034. +
  10035. +
  10036. +
  10037. +
  10038. +
  10039. +
  10040. +
  10041. +
  10042. +
  10043. +
  10044. +
  10045. +
  10046. +
  10047. +
  10048. +
  10049. +
  10050. +
  10051. +
  10052. +
  10053. +
  10054. +
  10055. +
  10056. +
  10057. +
  10058. +
  10059. +
  10060. +
  10061. +
  10062. +
  10063. +
  10064. +
  10065. +
  10066. +
  10067. +
  10068. +
  10069. +
  10070. +
  10071. +
  10072. +
  10073. +
  10074. +
  10075. +
  10076. +
  10077. +
  10078. +
  10079. +
  10080. +
  10081. +
  10082. +
  10083. +
  10084. +
  10085. +
  10086. +
  10087. +
  10088. +
  10089. +
  10090. +
  10091. +
  10092. +
  10093. +
  10094. +
  10095. +
  10096. +
  10097. +
  10098. +
  10099. +
  10100. +
  10101. +
  10102. +
  10103. +
  10104. +
  10105. +
  10106. +
  10107. +
  10108. +
  10109. +
  10110. +
  10111. +
  10112. +
  10113. +
  10114. +
  10115. +
  10116. +
  10117. +
  10118. +
  10119. +
  10120. +
  10121. +
  10122. +
  10123. +
  10124. +
  10125. +
  10126. +
  10127. +
  10128. +
  10129. +
  10130. +
  10131. +
  10132. +
  10133. +
  10134. +
  10135. +
  10136. +
  10137. +
  10138. +
  10139. +
  10140. +
  10141. +
  10142. +
  10143. +
  10144. +
  10145. +
  10146. +
  10147. +
  10148. +
  10149. +
  10150. +
  10151. +
  10152. +
  10153. +
  10154. +
  10155. +
  10156. +
  10157. +
  10158. +
  10159. +
  10160. +
  10161. +
  10162. +
  10163. +
  10164. +
  10165. +
  10166. +
  10167. +
  10168. + { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10169. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  10170. +
  10171. +if test "$GCC" = yes; then
  10172. + case $host_os in
  10173. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10174. + *) lt_awk_arg="/^libraries:/" ;;
  10175. + esac
  10176. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10177. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  10178. + # if the path contains ";" then we assume it to be the separator
  10179. + # otherwise default to the standard path separator (i.e. ":") - it is
  10180. + # assumed that no part of a normal pathname contains ";" but that should
  10181. + # okay in the real world where ";" in dirpaths is itself problematic.
  10182. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  10183. + else
  10184. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10185. + fi
  10186. + # Ok, now we have the path, separated by spaces, we can step through it
  10187. + # and add multilib dir if necessary.
  10188. + lt_tmp_lt_search_path_spec=
  10189. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10190. + for lt_sys_path in $lt_search_path_spec; do
  10191. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10192. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10193. + else
  10194. + test -d "$lt_sys_path" && \
  10195. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10196. + fi
  10197. + done
  10198. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  10199. +BEGIN {RS=" "; FS="/|\n";} {
  10200. + lt_foo="";
  10201. + lt_count=0;
  10202. + for (lt_i = NF; lt_i > 0; lt_i--) {
  10203. + if ($lt_i != "" && $lt_i != ".") {
  10204. + if ($lt_i == "..") {
  10205. + lt_count++;
  10206. + } else {
  10207. + if (lt_count == 0) {
  10208. + lt_foo="/" $lt_i lt_foo;
  10209. + } else {
  10210. + lt_count--;
  10211. + }
  10212. + }
  10213. + }
  10214. + }
  10215. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  10216. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10217. +}'`
  10218. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  10219. +else
  10220. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10221. +fi
  10222. +library_names_spec=
  10223. +libname_spec='lib$name'
  10224. +soname_spec=
  10225. +shrext_cmds=".so"
  10226. +postinstall_cmds=
  10227. +postuninstall_cmds=
  10228. +finish_cmds=
  10229. +finish_eval=
  10230. +shlibpath_var=
  10231. +shlibpath_overrides_runpath=unknown
  10232. +version_type=none
  10233. +dynamic_linker="$host_os ld.so"
  10234. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10235. +need_lib_prefix=unknown
  10236. +hardcode_into_libs=no
  10237. +
  10238. +# when you set need_version to no, make sure it does not cause -set_version
  10239. +# flags to be left without arguments
  10240. +need_version=unknown
  10241. +
  10242. +case $host_os in
  10243. +aix3*)
  10244. + version_type=linux
  10245. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10246. + shlibpath_var=LIBPATH
  10247. +
  10248. + # AIX 3 has no versioning support, so we append a major version to the name.
  10249. + soname_spec='${libname}${release}${shared_ext}$major'
  10250. + ;;
  10251. +
  10252. +aix[4-9]*)
  10253. + version_type=linux
  10254. + need_lib_prefix=no
  10255. + need_version=no
  10256. + hardcode_into_libs=yes
  10257. + if test "$host_cpu" = ia64; then
  10258. + # AIX 5 supports IA64
  10259. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10260. + shlibpath_var=LD_LIBRARY_PATH
  10261. + else
  10262. + # With GCC up to 2.95.x, collect2 would create an import file
  10263. + # for dependence libraries. The import file would start with
  10264. + # the line `#! .'. This would cause the generated library to
  10265. + # depend on `.', always an invalid library. This was fixed in
  10266. + # development snapshots of GCC prior to 3.0.
  10267. + case $host_os in
  10268. + aix4 | aix4.[01] | aix4.[01].*)
  10269. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10270. + echo ' yes '
  10271. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10272. + :
  10273. + else
  10274. + can_build_shared=no
  10275. + fi
  10276. + ;;
  10277. + esac
  10278. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10279. + # soname into executable. Probably we can add versioning support to
  10280. + # collect2, so additional links can be useful in future.
  10281. + if test "$aix_use_runtimelinking" = yes; then
  10282. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10283. + # instead of lib<name>.a to let people know that these are not
  10284. + # typical AIX shared libraries.
  10285. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10286. + else
  10287. + # We preserve .a as extension for shared libraries through AIX4.2
  10288. + # and later when we are not doing run time linking.
  10289. + library_names_spec='${libname}${release}.a $libname.a'
  10290. + soname_spec='${libname}${release}${shared_ext}$major'
  10291. + fi
  10292. + shlibpath_var=LIBPATH
  10293. + fi
  10294. + ;;
  10295. +
  10296. +amigaos*)
  10297. + case $host_cpu in
  10298. + powerpc)
  10299. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  10300. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10301. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10302. + ;;
  10303. + m68k)
  10304. + library_names_spec='$libname.ixlibrary $libname.a'
  10305. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10306. + 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'
  10307. + ;;
  10308. + esac
  10309. + ;;
  10310. +
  10311. +beos*)
  10312. + library_names_spec='${libname}${shared_ext}'
  10313. + dynamic_linker="$host_os ld.so"
  10314. + shlibpath_var=LIBRARY_PATH
  10315. + ;;
  10316. +
  10317. +bsdi[45]*)
  10318. + version_type=linux
  10319. + need_version=no
  10320. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10321. + soname_spec='${libname}${release}${shared_ext}$major'
  10322. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10323. + shlibpath_var=LD_LIBRARY_PATH
  10324. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10325. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10326. + # the default ld.so.conf also contains /usr/contrib/lib and
  10327. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10328. + # libtool to hard-code these into programs
  10329. + ;;
  10330. +
  10331. +cygwin* | mingw* | pw32* | cegcc*)
  10332. + version_type=windows
  10333. + shrext_cmds=".dll"
  10334. + need_version=no
  10335. + need_lib_prefix=no
  10336. +
  10337. + case $GCC,$host_os in
  10338. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  10339. + library_names_spec='$libname.dll.a'
  10340. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10341. + postinstall_cmds='base_file=`basename \${file}`~
  10342. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10343. + dldir=$destdir/`dirname \$dlpath`~
  10344. + test -d \$dldir || mkdir -p \$dldir~
  10345. + $install_prog $dir/$dlname \$dldir/$dlname~
  10346. + chmod a+x \$dldir/$dlname~
  10347. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10348. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10349. + fi'
  10350. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10351. + dlpath=$dir/\$dldll~
  10352. + $RM \$dlpath'
  10353. + shlibpath_overrides_runpath=yes
  10354. +
  10355. + case $host_os in
  10356. + cygwin*)
  10357. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10358. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10359. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10360. + ;;
  10361. + mingw* | cegcc*)
  10362. + # MinGW DLLs use traditional 'lib' prefix
  10363. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10364. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10365. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10366. + # It is most probably a Windows format PATH printed by
  10367. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10368. + # path with ; separators, and with drive letters. We can handle the
  10369. + # drive letters (cygwin fileutils understands them), so leave them,
  10370. + # especially as we might pass files found there to a mingw objdump,
  10371. + # which wouldn't understand a cygwinified path. Ahh.
  10372. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10373. + else
  10374. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10375. + fi
  10376. + ;;
  10377. + pw32*)
  10378. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  10379. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10380. + ;;
  10381. + esac
  10382. + ;;
  10383. +
  10384. + *)
  10385. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10386. + ;;
  10387. + esac
  10388. + dynamic_linker='Win32 ld.exe'
  10389. + # FIXME: first we should search . and the directory the executable is in
  10390. + shlibpath_var=PATH
  10391. + ;;
  10392. +
  10393. +darwin* | rhapsody*)
  10394. + dynamic_linker="$host_os dyld"
  10395. + version_type=darwin
  10396. + need_lib_prefix=no
  10397. + need_version=no
  10398. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10399. + soname_spec='${libname}${release}${major}$shared_ext'
  10400. + shlibpath_overrides_runpath=yes
  10401. + shlibpath_var=DYLD_LIBRARY_PATH
  10402. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10403. +
  10404. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10405. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10406. + ;;
  10407. +
  10408. +dgux*)
  10409. + version_type=linux
  10410. + need_lib_prefix=no
  10411. + need_version=no
  10412. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10413. + soname_spec='${libname}${release}${shared_ext}$major'
  10414. + shlibpath_var=LD_LIBRARY_PATH
  10415. + ;;
  10416. +
  10417. +freebsd1*)
  10418. + dynamic_linker=no
  10419. + ;;
  10420. +
  10421. +freebsd* | dragonfly*)
  10422. + # DragonFly does not have aout. When/if they implement a new
  10423. + # versioning mechanism, adjust this.
  10424. + if test -x /usr/bin/objformat; then
  10425. + objformat=`/usr/bin/objformat`
  10426. + else
  10427. + case $host_os in
  10428. + freebsd[123]*) objformat=aout ;;
  10429. + *) objformat=elf ;;
  10430. + esac
  10431. + fi
  10432. + # Handle Gentoo/FreeBSD as it was Linux
  10433. + case $host_vendor in
  10434. + gentoo)
  10435. + version_type=linux ;;
  10436. + *)
  10437. + version_type=freebsd-$objformat ;;
  10438. + esac
  10439. +
  10440. + case $version_type in
  10441. + freebsd-elf*)
  10442. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10443. + need_version=no
  10444. + need_lib_prefix=no
  10445. + ;;
  10446. + freebsd-*)
  10447. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10448. + need_version=yes
  10449. + ;;
  10450. + linux)
  10451. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10452. + soname_spec='${libname}${release}${shared_ext}$major'
  10453. + need_lib_prefix=no
  10454. + need_version=no
  10455. + ;;
  10456. + esac
  10457. + shlibpath_var=LD_LIBRARY_PATH
  10458. + case $host_os in
  10459. + freebsd2*)
  10460. + shlibpath_overrides_runpath=yes
  10461. + ;;
  10462. + freebsd3.[01]* | freebsdelf3.[01]*)
  10463. + shlibpath_overrides_runpath=yes
  10464. + hardcode_into_libs=yes
  10465. + ;;
  10466. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10467. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10468. + shlibpath_overrides_runpath=no
  10469. + hardcode_into_libs=yes
  10470. + ;;
  10471. + *) # from 4.6 on, and DragonFly
  10472. + shlibpath_overrides_runpath=yes
  10473. + hardcode_into_libs=yes
  10474. + ;;
  10475. + esac
  10476. + ;;
  10477. +
  10478. +gnu*)
  10479. + version_type=linux
  10480. + need_lib_prefix=no
  10481. + need_version=no
  10482. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10483. + soname_spec='${libname}${release}${shared_ext}$major'
  10484. + shlibpath_var=LD_LIBRARY_PATH
  10485. + hardcode_into_libs=yes
  10486. + ;;
  10487. +
  10488. +hpux9* | hpux10* | hpux11*)
  10489. + # Give a soname corresponding to the major version so that dld.sl refuses to
  10490. + # link against other versions.
  10491. + version_type=sunos
  10492. + need_lib_prefix=no
  10493. + need_version=no
  10494. + case $host_cpu in
  10495. + ia64*)
  10496. + shrext_cmds='.so'
  10497. + hardcode_into_libs=yes
  10498. + dynamic_linker="$host_os dld.so"
  10499. + shlibpath_var=LD_LIBRARY_PATH
  10500. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10501. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10502. + soname_spec='${libname}${release}${shared_ext}$major'
  10503. + if test "X$HPUX_IA64_MODE" = X32; then
  10504. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10505. + else
  10506. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10507. + fi
  10508. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10509. + ;;
  10510. + hppa*64*)
  10511. + shrext_cmds='.sl'
  10512. + hardcode_into_libs=yes
  10513. + dynamic_linker="$host_os dld.sl"
  10514. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10515. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10516. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10517. + soname_spec='${libname}${release}${shared_ext}$major'
  10518. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10519. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10520. + ;;
  10521. + *)
  10522. + shrext_cmds='.sl'
  10523. + dynamic_linker="$host_os dld.sl"
  10524. + shlibpath_var=SHLIB_PATH
  10525. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10526. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10527. + soname_spec='${libname}${release}${shared_ext}$major'
  10528. + ;;
  10529. + esac
  10530. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10531. + postinstall_cmds='chmod 555 $lib'
  10532. + ;;
  10533. +
  10534. +interix[3-9]*)
  10535. + version_type=linux
  10536. + need_lib_prefix=no
  10537. + need_version=no
  10538. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10539. + soname_spec='${libname}${release}${shared_ext}$major'
  10540. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10541. + shlibpath_var=LD_LIBRARY_PATH
  10542. + shlibpath_overrides_runpath=no
  10543. + hardcode_into_libs=yes
  10544. + ;;
  10545. +
  10546. +irix5* | irix6* | nonstopux*)
  10547. + case $host_os in
  10548. + nonstopux*) version_type=nonstopux ;;
  10549. + *)
  10550. + if test "$lt_cv_prog_gnu_ld" = yes; then
  10551. + version_type=linux
  10552. + else
  10553. + version_type=irix
  10554. + fi ;;
  10555. + esac
  10556. + need_lib_prefix=no
  10557. + need_version=no
  10558. + soname_spec='${libname}${release}${shared_ext}$major'
  10559. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10560. + case $host_os in
  10561. + irix5* | nonstopux*)
  10562. + libsuff= shlibsuff=
  10563. + ;;
  10564. + *)
  10565. + case $LD in # libtool.m4 will add one of these switches to LD
  10566. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10567. + libsuff= shlibsuff= libmagic=32-bit;;
  10568. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10569. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  10570. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10571. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10572. + *) libsuff= shlibsuff= libmagic=never-match;;
  10573. + esac
  10574. + ;;
  10575. + esac
  10576. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10577. + shlibpath_overrides_runpath=no
  10578. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10579. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10580. + hardcode_into_libs=yes
  10581. + ;;
  10582. +
  10583. +# No shared lib support for Linux oldld, aout, or coff.
  10584. +linux*oldld* | linux*aout* | linux*coff*)
  10585. + dynamic_linker=no
  10586. + ;;
  10587. +
  10588. +# This must be Linux ELF.
  10589. +linux* | k*bsd*-gnu)
  10590. + version_type=linux
  10591. + need_lib_prefix=no
  10592. + need_version=no
  10593. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10594. + soname_spec='${libname}${release}${shared_ext}$major'
  10595. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10596. + shlibpath_var=LD_LIBRARY_PATH
  10597. + shlibpath_overrides_runpath=no
  10598. + # Some binutils ld are patched to set DT_RUNPATH
  10599. + save_LDFLAGS=$LDFLAGS
  10600. + save_libdir=$libdir
  10601. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10602. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10603. + cat >conftest.$ac_ext <<_ACEOF
  10604. +/* confdefs.h. */
  10605. +_ACEOF
  10606. +cat confdefs.h >>conftest.$ac_ext
  10607. +cat >>conftest.$ac_ext <<_ACEOF
  10608. +/* end confdefs.h. */
  10609. +
  10610. +int
  10611. +main ()
  10612. +{
  10613. +
  10614. + ;
  10615. + return 0;
  10616. +}
  10617. +_ACEOF
  10618. +rm -f conftest.$ac_objext conftest$ac_exeext
  10619. +if { (ac_try="$ac_link"
  10620. +case "(($ac_try" in
  10621. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10622. + *) ac_try_echo=$ac_try;;
  10623. +esac
  10624. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10625. +$as_echo "$ac_try_echo") >&5
  10626. + (eval "$ac_link") 2>conftest.er1
  10627. + ac_status=$?
  10628. + grep -v '^ *+' conftest.er1 >conftest.err
  10629. + rm -f conftest.er1
  10630. + cat conftest.err >&5
  10631. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10632. + (exit $ac_status); } && {
  10633. + test -z "$ac_c_werror_flag" ||
  10634. + test ! -s conftest.err
  10635. + } && test -s conftest$ac_exeext && {
  10636. + test "$cross_compiling" = yes ||
  10637. + $as_test_x conftest$ac_exeext
  10638. + }; then
  10639. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  10640. + shlibpath_overrides_runpath=yes
  10641. +fi
  10642. +
  10643. +else
  10644. + $as_echo "$as_me: failed program was:" >&5
  10645. +sed 's/^/| /' conftest.$ac_ext >&5
  10646. +
  10647. +
  10648. +fi
  10649. +
  10650. +rm -rf conftest.dSYM
  10651. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10652. + conftest$ac_exeext conftest.$ac_ext
  10653. + LDFLAGS=$save_LDFLAGS
  10654. + libdir=$save_libdir
  10655. +
  10656. + # This implies no fast_install, which is unacceptable.
  10657. + # Some rework will be needed to allow for fast_install
  10658. + # before this can be enabled.
  10659. + hardcode_into_libs=yes
  10660. +
  10661. + # Append ld.so.conf contents to the search path
  10662. + if test -f /etc/ld.so.conf; then
  10663. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10664. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10665. + fi
  10666. +
  10667. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  10668. + # powerpc, because MkLinux only supported shared libraries with the
  10669. + # GNU dynamic linker. Since this was broken with cross compilers,
  10670. + # most powerpc-linux boxes support dynamic linking these days and
  10671. + # people can always --disable-shared, the test was removed, and we
  10672. + # assume the GNU/Linux dynamic linker is in use.
  10673. + dynamic_linker='GNU/Linux ld.so'
  10674. + ;;
  10675. +
  10676. +netbsd*)
  10677. + version_type=sunos
  10678. + need_lib_prefix=no
  10679. + need_version=no
  10680. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10681. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10682. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10683. + dynamic_linker='NetBSD (a.out) ld.so'
  10684. + else
  10685. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10686. + soname_spec='${libname}${release}${shared_ext}$major'
  10687. + dynamic_linker='NetBSD ld.elf_so'
  10688. + fi
  10689. + shlibpath_var=LD_LIBRARY_PATH
  10690. + shlibpath_overrides_runpath=yes
  10691. + hardcode_into_libs=yes
  10692. + ;;
  10693. +
  10694. +newsos6)
  10695. + version_type=linux
  10696. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10697. + shlibpath_var=LD_LIBRARY_PATH
  10698. + shlibpath_overrides_runpath=yes
  10699. + ;;
  10700. +
  10701. +*nto* | *qnx*)
  10702. + version_type=qnx
  10703. + need_lib_prefix=no
  10704. + need_version=no
  10705. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10706. + soname_spec='${libname}${release}${shared_ext}$major'
  10707. + shlibpath_var=LD_LIBRARY_PATH
  10708. + shlibpath_overrides_runpath=no
  10709. + hardcode_into_libs=yes
  10710. + dynamic_linker='ldqnx.so'
  10711. + ;;
  10712. +
  10713. +openbsd*)
  10714. + version_type=sunos
  10715. + sys_lib_dlsearch_path_spec="/usr/lib"
  10716. + need_lib_prefix=no
  10717. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10718. + case $host_os in
  10719. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10720. + *) need_version=no ;;
  10721. + esac
  10722. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10723. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10724. + shlibpath_var=LD_LIBRARY_PATH
  10725. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10726. + case $host_os in
  10727. + openbsd2.[89] | openbsd2.[89].*)
  10728. + shlibpath_overrides_runpath=no
  10729. + ;;
  10730. + *)
  10731. + shlibpath_overrides_runpath=yes
  10732. + ;;
  10733. + esac
  10734. + else
  10735. + shlibpath_overrides_runpath=yes
  10736. + fi
  10737. + ;;
  10738. +
  10739. +os2*)
  10740. + libname_spec='$name'
  10741. + shrext_cmds=".dll"
  10742. + need_lib_prefix=no
  10743. + library_names_spec='$libname${shared_ext} $libname.a'
  10744. + dynamic_linker='OS/2 ld.exe'
  10745. + shlibpath_var=LIBPATH
  10746. + ;;
  10747. +
  10748. +osf3* | osf4* | osf5*)
  10749. + version_type=osf
  10750. + need_lib_prefix=no
  10751. + need_version=no
  10752. + soname_spec='${libname}${release}${shared_ext}$major'
  10753. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10754. + shlibpath_var=LD_LIBRARY_PATH
  10755. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10756. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10757. + ;;
  10758. +
  10759. +rdos*)
  10760. + dynamic_linker=no
  10761. + ;;
  10762. +
  10763. +solaris*)
  10764. + version_type=linux
  10765. + need_lib_prefix=no
  10766. + need_version=no
  10767. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10768. + soname_spec='${libname}${release}${shared_ext}$major'
  10769. + shlibpath_var=LD_LIBRARY_PATH
  10770. + shlibpath_overrides_runpath=yes
  10771. + hardcode_into_libs=yes
  10772. + # ldd complains unless libraries are executable
  10773. + postinstall_cmds='chmod +x $lib'
  10774. + ;;
  10775. +
  10776. +sunos4*)
  10777. + version_type=sunos
  10778. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10779. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10780. + shlibpath_var=LD_LIBRARY_PATH
  10781. + shlibpath_overrides_runpath=yes
  10782. + if test "$with_gnu_ld" = yes; then
  10783. + need_lib_prefix=no
  10784. + fi
  10785. + need_version=yes
  10786. + ;;
  10787. +
  10788. +sysv4 | sysv4.3*)
  10789. + version_type=linux
  10790. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10791. + soname_spec='${libname}${release}${shared_ext}$major'
  10792. + shlibpath_var=LD_LIBRARY_PATH
  10793. + case $host_vendor in
  10794. + sni)
  10795. + shlibpath_overrides_runpath=no
  10796. + need_lib_prefix=no
  10797. + runpath_var=LD_RUN_PATH
  10798. + ;;
  10799. + siemens)
  10800. + need_lib_prefix=no
  10801. + ;;
  10802. + motorola)
  10803. + need_lib_prefix=no
  10804. + need_version=no
  10805. + shlibpath_overrides_runpath=no
  10806. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10807. + ;;
  10808. + esac
  10809. + ;;
  10810. +
  10811. +sysv4*MP*)
  10812. + if test -d /usr/nec ;then
  10813. + version_type=linux
  10814. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10815. + soname_spec='$libname${shared_ext}.$major'
  10816. + shlibpath_var=LD_LIBRARY_PATH
  10817. + fi
  10818. + ;;
  10819. +
  10820. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10821. + version_type=freebsd-elf
  10822. + need_lib_prefix=no
  10823. + need_version=no
  10824. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10825. + soname_spec='${libname}${release}${shared_ext}$major'
  10826. + shlibpath_var=LD_LIBRARY_PATH
  10827. + shlibpath_overrides_runpath=yes
  10828. + hardcode_into_libs=yes
  10829. + if test "$with_gnu_ld" = yes; then
  10830. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10831. + else
  10832. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10833. + case $host_os in
  10834. + sco3.2v5*)
  10835. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10836. + ;;
  10837. + esac
  10838. + fi
  10839. + sys_lib_dlsearch_path_spec='/usr/lib'
  10840. + ;;
  10841. +
  10842. +tpf*)
  10843. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10844. + version_type=linux
  10845. + need_lib_prefix=no
  10846. + need_version=no
  10847. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10848. + shlibpath_var=LD_LIBRARY_PATH
  10849. + shlibpath_overrides_runpath=no
  10850. + hardcode_into_libs=yes
  10851. + ;;
  10852. +
  10853. +uts4*)
  10854. + version_type=linux
  10855. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10856. + soname_spec='${libname}${release}${shared_ext}$major'
  10857. + shlibpath_var=LD_LIBRARY_PATH
  10858. + ;;
  10859. +
  10860. +*)
  10861. + dynamic_linker=no
  10862. + ;;
  10863. +esac
  10864. +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10865. +$as_echo "$dynamic_linker" >&6; }
  10866. +test "$dynamic_linker" = no && can_build_shared=no
  10867. +
  10868. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10869. +if test "$GCC" = yes; then
  10870. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10871. +fi
  10872. +
  10873. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10874. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10875. +fi
  10876. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10877. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10878. +fi
  10879. +
  10880. +
  10881. +
  10882. +
  10883. +
  10884. +
  10885. +
  10886. +
  10887. +
  10888. +
  10889. +
  10890. +
  10891. +
  10892. +
  10893. +
  10894. +
  10895. +
  10896. +
  10897. +
  10898. +
  10899. +
  10900. +
  10901. +
  10902. +
  10903. +
  10904. +
  10905. +
  10906. +
  10907. +
  10908. +
  10909. +
  10910. +
  10911. +
  10912. +
  10913. +
  10914. +
  10915. +
  10916. +
  10917. +
  10918. +
  10919. +
  10920. +
  10921. +
  10922. +
  10923. +
  10924. +
  10925. +
  10926. +
  10927. +
  10928. +
  10929. +
  10930. +
  10931. +
  10932. +
  10933. +
  10934. +
  10935. +
  10936. +
  10937. +
  10938. +
  10939. +
  10940. +
  10941. +
  10942. +
  10943. +
  10944. +
  10945. +
  10946. +
  10947. +
  10948. +
  10949. +
  10950. +
  10951. +
  10952. +
  10953. +
  10954. +
  10955. +
  10956. +
  10957. +
  10958. +
  10959. +
  10960. +
  10961. +
  10962. +
  10963. +
  10964. +
  10965. +
  10966. + { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10967. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10968. +hardcode_action=
  10969. +if test -n "$hardcode_libdir_flag_spec" ||
  10970. + test -n "$runpath_var" ||
  10971. + test "X$hardcode_automatic" = "Xyes" ; then
  10972. +
  10973. + # We can hardcode non-existent directories.
  10974. + if test "$hardcode_direct" != no &&
  10975. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10976. + # have to relink, otherwise we might link with an installed library
  10977. + # when we should be linking with a yet-to-be-installed one
  10978. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10979. + test "$hardcode_minus_L" != no; then
  10980. + # Linking always hardcodes the temporary library directory.
  10981. + hardcode_action=relink
  10982. + else
  10983. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10984. + hardcode_action=immediate
  10985. + fi
  10986. +else
  10987. + # We cannot hardcode anything, or else we can only hardcode existing
  10988. + # directories.
  10989. + hardcode_action=unsupported
  10990. +fi
  10991. +{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  10992. +$as_echo "$hardcode_action" >&6; }
  10993. +
  10994. +if test "$hardcode_action" = relink ||
  10995. + test "$inherit_rpath" = yes; then
  10996. + # Fast installation is not supported
  10997. + enable_fast_install=no
  10998. +elif test "$shlibpath_overrides_runpath" = yes ||
  10999. + test "$enable_shared" = no; then
  11000. + # Fast installation is not necessary
  11001. + enable_fast_install=needless
  11002. +fi
  11003. +
  11004. +
  11005. +
  11006. +
  11007. +
  11008. +
  11009. + if test "x$enable_dlopen" != xyes; then
  11010. + enable_dlopen=unknown
  11011. + enable_dlopen_self=unknown
  11012. + enable_dlopen_self_static=unknown
  11013. +else
  11014. + lt_cv_dlopen=no
  11015. + lt_cv_dlopen_libs=
  11016. +
  11017. + case $host_os in
  11018. + beos*)
  11019. + lt_cv_dlopen="load_add_on"
  11020. + lt_cv_dlopen_libs=
  11021. + lt_cv_dlopen_self=yes
  11022. + ;;
  11023. +
  11024. + mingw* | pw32* | cegcc*)
  11025. + lt_cv_dlopen="LoadLibrary"
  11026. + lt_cv_dlopen_libs=
  11027. + ;;
  11028. +
  11029. + cygwin*)
  11030. + lt_cv_dlopen="dlopen"
  11031. + lt_cv_dlopen_libs=
  11032. + ;;
  11033. +
  11034. + darwin*)
  11035. + # if libdl is installed we need to link against it
  11036. + { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11037. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  11038. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11039. + $as_echo_n "(cached) " >&6
  11040. +else
  11041. + ac_check_lib_save_LIBS=$LIBS
  11042. +LIBS="-ldl $LIBS"
  11043. +cat >conftest.$ac_ext <<_ACEOF
  11044. +/* confdefs.h. */
  11045. +_ACEOF
  11046. +cat confdefs.h >>conftest.$ac_ext
  11047. +cat >>conftest.$ac_ext <<_ACEOF
  11048. +/* end confdefs.h. */
  11049. +
  11050. +/* Override any GCC internal prototype to avoid an error.
  11051. + Use char because int might match the return type of a GCC
  11052. + builtin and then its argument prototype would still apply. */
  11053. +#ifdef __cplusplus
  11054. +extern "C"
  11055. +#endif
  11056. +char dlopen ();
  11057. +int
  11058. +main ()
  11059. +{
  11060. +return dlopen ();
  11061. + ;
  11062. + return 0;
  11063. +}
  11064. +_ACEOF
  11065. +rm -f conftest.$ac_objext conftest$ac_exeext
  11066. +if { (ac_try="$ac_link"
  11067. +case "(($ac_try" in
  11068. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11069. + *) ac_try_echo=$ac_try;;
  11070. +esac
  11071. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11072. +$as_echo "$ac_try_echo") >&5
  11073. + (eval "$ac_link") 2>conftest.er1
  11074. + ac_status=$?
  11075. + grep -v '^ *+' conftest.er1 >conftest.err
  11076. + rm -f conftest.er1
  11077. + cat conftest.err >&5
  11078. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11079. + (exit $ac_status); } && {
  11080. + test -z "$ac_c_werror_flag" ||
  11081. + test ! -s conftest.err
  11082. + } && test -s conftest$ac_exeext && {
  11083. + test "$cross_compiling" = yes ||
  11084. + $as_test_x conftest$ac_exeext
  11085. + }; then
  11086. + ac_cv_lib_dl_dlopen=yes
  11087. +else
  11088. + $as_echo "$as_me: failed program was:" >&5
  11089. +sed 's/^/| /' conftest.$ac_ext >&5
  11090. +
  11091. + ac_cv_lib_dl_dlopen=no
  11092. +fi
  11093. +
  11094. +rm -rf conftest.dSYM
  11095. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11096. + conftest$ac_exeext conftest.$ac_ext
  11097. +LIBS=$ac_check_lib_save_LIBS
  11098. +fi
  11099. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11100. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11101. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  11102. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11103. +else
  11104. +
  11105. + lt_cv_dlopen="dyld"
  11106. + lt_cv_dlopen_libs=
  11107. + lt_cv_dlopen_self=yes
  11108. +
  11109. +fi
  11110. +
  11111. + ;;
  11112. +
  11113. + *)
  11114. + { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  11115. +$as_echo_n "checking for shl_load... " >&6; }
  11116. +if test "${ac_cv_func_shl_load+set}" = set; then
  11117. + $as_echo_n "(cached) " >&6
  11118. +else
  11119. + cat >conftest.$ac_ext <<_ACEOF
  11120. +/* confdefs.h. */
  11121. +_ACEOF
  11122. +cat confdefs.h >>conftest.$ac_ext
  11123. +cat >>conftest.$ac_ext <<_ACEOF
  11124. +/* end confdefs.h. */
  11125. +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11126. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11127. +#define shl_load innocuous_shl_load
  11128. +
  11129. /* System header to define __stub macros and hopefully few prototypes,
  11130. - which can conflict with char $ac_func(); below. */
  11131. -#include <assert.h>
  11132. -/* Override any gcc2 internal prototype to avoid an error. */
  11133. -/* We use char because int might match the return type of a gcc2
  11134. - builtin and then its argument prototype would still apply. */
  11135. -char $ac_func();
  11136. + which can conflict with char shl_load (); below.
  11137. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11138. + <limits.h> exists even on freestanding compilers. */
  11139. -int main() {
  11140. +#ifdef __STDC__
  11141. +# include <limits.h>
  11142. +#else
  11143. +# include <assert.h>
  11144. +#endif
  11145. +
  11146. +#undef shl_load
  11147. +/* Override any GCC internal prototype to avoid an error.
  11148. + Use char because int might match the return type of a GCC
  11149. + builtin and then its argument prototype would still apply. */
  11150. +#ifdef __cplusplus
  11151. +extern "C"
  11152. +#endif
  11153. +char shl_load ();
  11154. /* The GNU C library defines this for functions which it implements
  11155. to always fail with ENOSYS. Some functions are actually named
  11156. something starting with __ and the normal name is an alias. */
  11157. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11158. +#if defined __stub_shl_load || defined __stub___shl_load
  11159. choke me
  11160. +#endif
  11161. +
  11162. +int
  11163. +main ()
  11164. +{
  11165. +return shl_load ();
  11166. + ;
  11167. + return 0;
  11168. +}
  11169. +_ACEOF
  11170. +rm -f conftest.$ac_objext conftest$ac_exeext
  11171. +if { (ac_try="$ac_link"
  11172. +case "(($ac_try" in
  11173. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11174. + *) ac_try_echo=$ac_try;;
  11175. +esac
  11176. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11177. +$as_echo "$ac_try_echo") >&5
  11178. + (eval "$ac_link") 2>conftest.er1
  11179. + ac_status=$?
  11180. + grep -v '^ *+' conftest.er1 >conftest.err
  11181. + rm -f conftest.er1
  11182. + cat conftest.err >&5
  11183. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11184. + (exit $ac_status); } && {
  11185. + test -z "$ac_c_werror_flag" ||
  11186. + test ! -s conftest.err
  11187. + } && test -s conftest$ac_exeext && {
  11188. + test "$cross_compiling" = yes ||
  11189. + $as_test_x conftest$ac_exeext
  11190. + }; then
  11191. + ac_cv_func_shl_load=yes
  11192. +else
  11193. + $as_echo "$as_me: failed program was:" >&5
  11194. +sed 's/^/| /' conftest.$ac_ext >&5
  11195. +
  11196. + ac_cv_func_shl_load=no
  11197. +fi
  11198. +
  11199. +rm -rf conftest.dSYM
  11200. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11201. + conftest$ac_exeext conftest.$ac_ext
  11202. +fi
  11203. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  11204. +$as_echo "$ac_cv_func_shl_load" >&6; }
  11205. +if test "x$ac_cv_func_shl_load" = x""yes; then
  11206. + lt_cv_dlopen="shl_load"
  11207. +else
  11208. + { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  11209. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  11210. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  11211. + $as_echo_n "(cached) " >&6
  11212. +else
  11213. + ac_check_lib_save_LIBS=$LIBS
  11214. +LIBS="-ldld $LIBS"
  11215. +cat >conftest.$ac_ext <<_ACEOF
  11216. +/* confdefs.h. */
  11217. +_ACEOF
  11218. +cat confdefs.h >>conftest.$ac_ext
  11219. +cat >>conftest.$ac_ext <<_ACEOF
  11220. +/* end confdefs.h. */
  11221. +
  11222. +/* Override any GCC internal prototype to avoid an error.
  11223. + Use char because int might match the return type of a GCC
  11224. + builtin and then its argument prototype would still apply. */
  11225. +#ifdef __cplusplus
  11226. +extern "C"
  11227. +#endif
  11228. +char shl_load ();
  11229. +int
  11230. +main ()
  11231. +{
  11232. +return shl_load ();
  11233. + ;
  11234. + return 0;
  11235. +}
  11236. +_ACEOF
  11237. +rm -f conftest.$ac_objext conftest$ac_exeext
  11238. +if { (ac_try="$ac_link"
  11239. +case "(($ac_try" in
  11240. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11241. + *) ac_try_echo=$ac_try;;
  11242. +esac
  11243. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11244. +$as_echo "$ac_try_echo") >&5
  11245. + (eval "$ac_link") 2>conftest.er1
  11246. + ac_status=$?
  11247. + grep -v '^ *+' conftest.er1 >conftest.err
  11248. + rm -f conftest.er1
  11249. + cat conftest.err >&5
  11250. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11251. + (exit $ac_status); } && {
  11252. + test -z "$ac_c_werror_flag" ||
  11253. + test ! -s conftest.err
  11254. + } && test -s conftest$ac_exeext && {
  11255. + test "$cross_compiling" = yes ||
  11256. + $as_test_x conftest$ac_exeext
  11257. + }; then
  11258. + ac_cv_lib_dld_shl_load=yes
  11259. +else
  11260. + $as_echo "$as_me: failed program was:" >&5
  11261. +sed 's/^/| /' conftest.$ac_ext >&5
  11262. +
  11263. + ac_cv_lib_dld_shl_load=no
  11264. +fi
  11265. +
  11266. +rm -rf conftest.dSYM
  11267. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11268. + conftest$ac_exeext conftest.$ac_ext
  11269. +LIBS=$ac_check_lib_save_LIBS
  11270. +fi
  11271. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  11272. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11273. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  11274. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11275. +else
  11276. + { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  11277. +$as_echo_n "checking for dlopen... " >&6; }
  11278. +if test "${ac_cv_func_dlopen+set}" = set; then
  11279. + $as_echo_n "(cached) " >&6
  11280. +else
  11281. + cat >conftest.$ac_ext <<_ACEOF
  11282. +/* confdefs.h. */
  11283. +_ACEOF
  11284. +cat confdefs.h >>conftest.$ac_ext
  11285. +cat >>conftest.$ac_ext <<_ACEOF
  11286. +/* end confdefs.h. */
  11287. +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  11288. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11289. +#define dlopen innocuous_dlopen
  11290. +
  11291. +/* System header to define __stub macros and hopefully few prototypes,
  11292. + which can conflict with char dlopen (); below.
  11293. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11294. + <limits.h> exists even on freestanding compilers. */
  11295. +
  11296. +#ifdef __STDC__
  11297. +# include <limits.h>
  11298. #else
  11299. -$ac_func();
  11300. +# include <assert.h>
  11301. #endif
  11302. -; return 0; }
  11303. -EOF
  11304. -if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11305. - rm -rf conftest*
  11306. - eval "ac_cv_func_$ac_func=yes"
  11307. +#undef dlopen
  11308. +
  11309. +/* Override any GCC internal prototype to avoid an error.
  11310. + Use char because int might match the return type of a GCC
  11311. + builtin and then its argument prototype would still apply. */
  11312. +#ifdef __cplusplus
  11313. +extern "C"
  11314. +#endif
  11315. +char dlopen ();
  11316. +/* The GNU C library defines this for functions which it implements
  11317. + to always fail with ENOSYS. Some functions are actually named
  11318. + something starting with __ and the normal name is an alias. */
  11319. +#if defined __stub_dlopen || defined __stub___dlopen
  11320. +choke me
  11321. +#endif
  11322. +
  11323. +int
  11324. +main ()
  11325. +{
  11326. +return dlopen ();
  11327. + ;
  11328. + return 0;
  11329. +}
  11330. +_ACEOF
  11331. +rm -f conftest.$ac_objext conftest$ac_exeext
  11332. +if { (ac_try="$ac_link"
  11333. +case "(($ac_try" in
  11334. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11335. + *) ac_try_echo=$ac_try;;
  11336. +esac
  11337. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11338. +$as_echo "$ac_try_echo") >&5
  11339. + (eval "$ac_link") 2>conftest.er1
  11340. + ac_status=$?
  11341. + grep -v '^ *+' conftest.er1 >conftest.err
  11342. + rm -f conftest.er1
  11343. + cat conftest.err >&5
  11344. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11345. + (exit $ac_status); } && {
  11346. + test -z "$ac_c_werror_flag" ||
  11347. + test ! -s conftest.err
  11348. + } && test -s conftest$ac_exeext && {
  11349. + test "$cross_compiling" = yes ||
  11350. + $as_test_x conftest$ac_exeext
  11351. + }; then
  11352. + ac_cv_func_dlopen=yes
  11353. else
  11354. - echo "configure: failed program was:" >&5
  11355. - cat conftest.$ac_ext >&5
  11356. - rm -rf conftest*
  11357. - eval "ac_cv_func_$ac_func=no"
  11358. + $as_echo "$as_me: failed program was:" >&5
  11359. +sed 's/^/| /' conftest.$ac_ext >&5
  11360. +
  11361. + ac_cv_func_dlopen=no
  11362. fi
  11363. -rm -f conftest*
  11364. +
  11365. +rm -rf conftest.dSYM
  11366. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11367. + conftest$ac_exeext conftest.$ac_ext
  11368. fi
  11369. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  11370. +$as_echo "$ac_cv_func_dlopen" >&6; }
  11371. +if test "x$ac_cv_func_dlopen" = x""yes; then
  11372. + lt_cv_dlopen="dlopen"
  11373. +else
  11374. + { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11375. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  11376. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11377. + $as_echo_n "(cached) " >&6
  11378. +else
  11379. + ac_check_lib_save_LIBS=$LIBS
  11380. +LIBS="-ldl $LIBS"
  11381. +cat >conftest.$ac_ext <<_ACEOF
  11382. +/* confdefs.h. */
  11383. +_ACEOF
  11384. +cat confdefs.h >>conftest.$ac_ext
  11385. +cat >>conftest.$ac_ext <<_ACEOF
  11386. +/* end confdefs.h. */
  11387. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  11388. - echo "$ac_t""yes" 1>&6
  11389. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  11390. - cat >> confdefs.h <<EOF
  11391. -#define $ac_tr_func 1
  11392. -EOF
  11393. -
  11394. +/* Override any GCC internal prototype to avoid an error.
  11395. + Use char because int might match the return type of a GCC
  11396. + builtin and then its argument prototype would still apply. */
  11397. +#ifdef __cplusplus
  11398. +extern "C"
  11399. +#endif
  11400. +char dlopen ();
  11401. +int
  11402. +main ()
  11403. +{
  11404. +return dlopen ();
  11405. + ;
  11406. + return 0;
  11407. +}
  11408. +_ACEOF
  11409. +rm -f conftest.$ac_objext conftest$ac_exeext
  11410. +if { (ac_try="$ac_link"
  11411. +case "(($ac_try" in
  11412. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11413. + *) ac_try_echo=$ac_try;;
  11414. +esac
  11415. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11416. +$as_echo "$ac_try_echo") >&5
  11417. + (eval "$ac_link") 2>conftest.er1
  11418. + ac_status=$?
  11419. + grep -v '^ *+' conftest.er1 >conftest.err
  11420. + rm -f conftest.er1
  11421. + cat conftest.err >&5
  11422. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11423. + (exit $ac_status); } && {
  11424. + test -z "$ac_c_werror_flag" ||
  11425. + test ! -s conftest.err
  11426. + } && test -s conftest$ac_exeext && {
  11427. + test "$cross_compiling" = yes ||
  11428. + $as_test_x conftest$ac_exeext
  11429. + }; then
  11430. + ac_cv_lib_dl_dlopen=yes
  11431. else
  11432. - echo "$ac_t""no" 1>&6
  11433. + $as_echo "$as_me: failed program was:" >&5
  11434. +sed 's/^/| /' conftest.$ac_ext >&5
  11435. +
  11436. + ac_cv_lib_dl_dlopen=no
  11437. +fi
  11438. +
  11439. +rm -rf conftest.dSYM
  11440. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11441. + conftest$ac_exeext conftest.$ac_ext
  11442. +LIBS=$ac_check_lib_save_LIBS
  11443. +fi
  11444. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11445. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11446. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  11447. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11448. +else
  11449. + { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  11450. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11451. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  11452. + $as_echo_n "(cached) " >&6
  11453. +else
  11454. + ac_check_lib_save_LIBS=$LIBS
  11455. +LIBS="-lsvld $LIBS"
  11456. +cat >conftest.$ac_ext <<_ACEOF
  11457. +/* confdefs.h. */
  11458. +_ACEOF
  11459. +cat confdefs.h >>conftest.$ac_ext
  11460. +cat >>conftest.$ac_ext <<_ACEOF
  11461. +/* end confdefs.h. */
  11462. +
  11463. +/* Override any GCC internal prototype to avoid an error.
  11464. + Use char because int might match the return type of a GCC
  11465. + builtin and then its argument prototype would still apply. */
  11466. +#ifdef __cplusplus
  11467. +extern "C"
  11468. +#endif
  11469. +char dlopen ();
  11470. +int
  11471. +main ()
  11472. +{
  11473. +return dlopen ();
  11474. + ;
  11475. + return 0;
  11476. +}
  11477. +_ACEOF
  11478. +rm -f conftest.$ac_objext conftest$ac_exeext
  11479. +if { (ac_try="$ac_link"
  11480. +case "(($ac_try" in
  11481. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11482. + *) ac_try_echo=$ac_try;;
  11483. +esac
  11484. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11485. +$as_echo "$ac_try_echo") >&5
  11486. + (eval "$ac_link") 2>conftest.er1
  11487. + ac_status=$?
  11488. + grep -v '^ *+' conftest.er1 >conftest.err
  11489. + rm -f conftest.er1
  11490. + cat conftest.err >&5
  11491. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11492. + (exit $ac_status); } && {
  11493. + test -z "$ac_c_werror_flag" ||
  11494. + test ! -s conftest.err
  11495. + } && test -s conftest$ac_exeext && {
  11496. + test "$cross_compiling" = yes ||
  11497. + $as_test_x conftest$ac_exeext
  11498. + }; then
  11499. + ac_cv_lib_svld_dlopen=yes
  11500. +else
  11501. + $as_echo "$as_me: failed program was:" >&5
  11502. +sed 's/^/| /' conftest.$ac_ext >&5
  11503. +
  11504. + ac_cv_lib_svld_dlopen=no
  11505. +fi
  11506. +
  11507. +rm -rf conftest.dSYM
  11508. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11509. + conftest$ac_exeext conftest.$ac_ext
  11510. +LIBS=$ac_check_lib_save_LIBS
  11511. +fi
  11512. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  11513. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11514. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  11515. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11516. +else
  11517. + { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  11518. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  11519. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  11520. + $as_echo_n "(cached) " >&6
  11521. +else
  11522. + ac_check_lib_save_LIBS=$LIBS
  11523. +LIBS="-ldld $LIBS"
  11524. +cat >conftest.$ac_ext <<_ACEOF
  11525. +/* confdefs.h. */
  11526. +_ACEOF
  11527. +cat confdefs.h >>conftest.$ac_ext
  11528. +cat >>conftest.$ac_ext <<_ACEOF
  11529. +/* end confdefs.h. */
  11530. +
  11531. +/* Override any GCC internal prototype to avoid an error.
  11532. + Use char because int might match the return type of a GCC
  11533. + builtin and then its argument prototype would still apply. */
  11534. +#ifdef __cplusplus
  11535. +extern "C"
  11536. +#endif
  11537. +char dld_link ();
  11538. +int
  11539. +main ()
  11540. +{
  11541. +return dld_link ();
  11542. + ;
  11543. + return 0;
  11544. +}
  11545. +_ACEOF
  11546. +rm -f conftest.$ac_objext conftest$ac_exeext
  11547. +if { (ac_try="$ac_link"
  11548. +case "(($ac_try" in
  11549. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11550. + *) ac_try_echo=$ac_try;;
  11551. +esac
  11552. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11553. +$as_echo "$ac_try_echo") >&5
  11554. + (eval "$ac_link") 2>conftest.er1
  11555. + ac_status=$?
  11556. + grep -v '^ *+' conftest.er1 >conftest.err
  11557. + rm -f conftest.er1
  11558. + cat conftest.err >&5
  11559. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11560. + (exit $ac_status); } && {
  11561. + test -z "$ac_c_werror_flag" ||
  11562. + test ! -s conftest.err
  11563. + } && test -s conftest$ac_exeext && {
  11564. + test "$cross_compiling" = yes ||
  11565. + $as_test_x conftest$ac_exeext
  11566. + }; then
  11567. + ac_cv_lib_dld_dld_link=yes
  11568. +else
  11569. + $as_echo "$as_me: failed program was:" >&5
  11570. +sed 's/^/| /' conftest.$ac_ext >&5
  11571. +
  11572. + ac_cv_lib_dld_dld_link=no
  11573. +fi
  11574. +
  11575. +rm -rf conftest.dSYM
  11576. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11577. + conftest$ac_exeext conftest.$ac_ext
  11578. +LIBS=$ac_check_lib_save_LIBS
  11579. +fi
  11580. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  11581. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11582. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  11583. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11584. +fi
  11585. +
  11586. +
  11587. +fi
  11588. +
  11589. +
  11590. +fi
  11591. +
  11592. +
  11593. +fi
  11594. +
  11595. +
  11596. +fi
  11597. +
  11598. +
  11599. +fi
  11600. +
  11601. + ;;
  11602. + esac
  11603. +
  11604. + if test "x$lt_cv_dlopen" != xno; then
  11605. + enable_dlopen=yes
  11606. + else
  11607. + enable_dlopen=no
  11608. + fi
  11609. +
  11610. + case $lt_cv_dlopen in
  11611. + dlopen)
  11612. + save_CPPFLAGS="$CPPFLAGS"
  11613. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11614. +
  11615. + save_LDFLAGS="$LDFLAGS"
  11616. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11617. +
  11618. + save_LIBS="$LIBS"
  11619. + LIBS="$lt_cv_dlopen_libs $LIBS"
  11620. +
  11621. + { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  11622. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11623. +if test "${lt_cv_dlopen_self+set}" = set; then
  11624. + $as_echo_n "(cached) " >&6
  11625. +else
  11626. + if test "$cross_compiling" = yes; then :
  11627. + lt_cv_dlopen_self=cross
  11628. +else
  11629. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11630. + lt_status=$lt_dlunknown
  11631. + cat > conftest.$ac_ext <<_LT_EOF
  11632. +#line 11129 "configure"
  11633. +#include "confdefs.h"
  11634. +
  11635. +#if HAVE_DLFCN_H
  11636. +#include <dlfcn.h>
  11637. +#endif
  11638. +
  11639. +#include <stdio.h>
  11640. +
  11641. +#ifdef RTLD_GLOBAL
  11642. +# define LT_DLGLOBAL RTLD_GLOBAL
  11643. +#else
  11644. +# ifdef DL_GLOBAL
  11645. +# define LT_DLGLOBAL DL_GLOBAL
  11646. +# else
  11647. +# define LT_DLGLOBAL 0
  11648. +# endif
  11649. +#endif
  11650. +
  11651. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11652. + find out it does not work in some platform. */
  11653. +#ifndef LT_DLLAZY_OR_NOW
  11654. +# ifdef RTLD_LAZY
  11655. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  11656. +# else
  11657. +# ifdef DL_LAZY
  11658. +# define LT_DLLAZY_OR_NOW DL_LAZY
  11659. +# else
  11660. +# ifdef RTLD_NOW
  11661. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  11662. +# else
  11663. +# ifdef DL_NOW
  11664. +# define LT_DLLAZY_OR_NOW DL_NOW
  11665. +# else
  11666. +# define LT_DLLAZY_OR_NOW 0
  11667. +# endif
  11668. +# endif
  11669. +# endif
  11670. +# endif
  11671. +#endif
  11672. +
  11673. +void fnord() { int i=42;}
  11674. +int main ()
  11675. +{
  11676. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11677. + int status = $lt_dlunknown;
  11678. +
  11679. + if (self)
  11680. + {
  11681. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11682. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11683. + /* dlclose (self); */
  11684. + }
  11685. + else
  11686. + puts (dlerror ());
  11687. +
  11688. + return status;
  11689. +}
  11690. +_LT_EOF
  11691. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11692. + (eval $ac_link) 2>&5
  11693. + ac_status=$?
  11694. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11695. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11696. + (./conftest; exit; ) >&5 2>/dev/null
  11697. + lt_status=$?
  11698. + case x$lt_status in
  11699. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11700. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11701. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11702. + esac
  11703. + else :
  11704. + # compilation failed
  11705. + lt_cv_dlopen_self=no
  11706. + fi
  11707. +fi
  11708. +rm -fr conftest*
  11709. +
  11710. +
  11711. +fi
  11712. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  11713. +$as_echo "$lt_cv_dlopen_self" >&6; }
  11714. +
  11715. + if test "x$lt_cv_dlopen_self" = xyes; then
  11716. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11717. + { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  11718. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11719. +if test "${lt_cv_dlopen_self_static+set}" = set; then
  11720. + $as_echo_n "(cached) " >&6
  11721. +else
  11722. + if test "$cross_compiling" = yes; then :
  11723. + lt_cv_dlopen_self_static=cross
  11724. +else
  11725. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11726. + lt_status=$lt_dlunknown
  11727. + cat > conftest.$ac_ext <<_LT_EOF
  11728. +#line 11225 "configure"
  11729. +#include "confdefs.h"
  11730. +
  11731. +#if HAVE_DLFCN_H
  11732. +#include <dlfcn.h>
  11733. +#endif
  11734. +
  11735. +#include <stdio.h>
  11736. +
  11737. +#ifdef RTLD_GLOBAL
  11738. +# define LT_DLGLOBAL RTLD_GLOBAL
  11739. +#else
  11740. +# ifdef DL_GLOBAL
  11741. +# define LT_DLGLOBAL DL_GLOBAL
  11742. +# else
  11743. +# define LT_DLGLOBAL 0
  11744. +# endif
  11745. +#endif
  11746. +
  11747. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11748. + find out it does not work in some platform. */
  11749. +#ifndef LT_DLLAZY_OR_NOW
  11750. +# ifdef RTLD_LAZY
  11751. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  11752. +# else
  11753. +# ifdef DL_LAZY
  11754. +# define LT_DLLAZY_OR_NOW DL_LAZY
  11755. +# else
  11756. +# ifdef RTLD_NOW
  11757. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  11758. +# else
  11759. +# ifdef DL_NOW
  11760. +# define LT_DLLAZY_OR_NOW DL_NOW
  11761. +# else
  11762. +# define LT_DLLAZY_OR_NOW 0
  11763. +# endif
  11764. +# endif
  11765. +# endif
  11766. +# endif
  11767. +#endif
  11768. +
  11769. +void fnord() { int i=42;}
  11770. +int main ()
  11771. +{
  11772. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11773. + int status = $lt_dlunknown;
  11774. +
  11775. + if (self)
  11776. + {
  11777. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11778. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11779. + /* dlclose (self); */
  11780. + }
  11781. + else
  11782. + puts (dlerror ());
  11783. +
  11784. + return status;
  11785. +}
  11786. +_LT_EOF
  11787. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11788. + (eval $ac_link) 2>&5
  11789. + ac_status=$?
  11790. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11791. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11792. + (./conftest; exit; ) >&5 2>/dev/null
  11793. + lt_status=$?
  11794. + case x$lt_status in
  11795. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11796. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11797. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11798. + esac
  11799. + else :
  11800. + # compilation failed
  11801. + lt_cv_dlopen_self_static=no
  11802. + fi
  11803. +fi
  11804. +rm -fr conftest*
  11805. +
  11806. +
  11807. +fi
  11808. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11809. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  11810. + fi
  11811. +
  11812. + CPPFLAGS="$save_CPPFLAGS"
  11813. + LDFLAGS="$save_LDFLAGS"
  11814. + LIBS="$save_LIBS"
  11815. + ;;
  11816. + esac
  11817. +
  11818. + case $lt_cv_dlopen_self in
  11819. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11820. + *) enable_dlopen_self=unknown ;;
  11821. + esac
  11822. +
  11823. + case $lt_cv_dlopen_self_static in
  11824. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11825. + *) enable_dlopen_self_static=unknown ;;
  11826. + esac
  11827. +fi
  11828. +
  11829. +
  11830. +
  11831. +
  11832. +
  11833. +
  11834. +
  11835. +
  11836. +
  11837. +
  11838. +
  11839. +
  11840. +
  11841. +
  11842. +
  11843. +
  11844. +
  11845. +striplib=
  11846. +old_striplib=
  11847. +{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11848. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11849. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11850. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11851. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11852. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  11853. +$as_echo "yes" >&6; }
  11854. +else
  11855. +# FIXME - insert some real tests, host_os isn't really good enough
  11856. + case $host_os in
  11857. + darwin*)
  11858. + if test -n "$STRIP" ; then
  11859. + striplib="$STRIP -x"
  11860. + old_striplib="$STRIP -S"
  11861. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  11862. +$as_echo "yes" >&6; }
  11863. + else
  11864. + { $as_echo "$as_me:$LINENO: result: no" >&5
  11865. +$as_echo "no" >&6; }
  11866. + fi
  11867. + ;;
  11868. + *)
  11869. + { $as_echo "$as_me:$LINENO: result: no" >&5
  11870. +$as_echo "no" >&6; }
  11871. + ;;
  11872. + esac
  11873. +fi
  11874. +
  11875. +
  11876. +
  11877. +
  11878. +
  11879. +
  11880. +
  11881. +
  11882. +
  11883. +
  11884. +
  11885. +
  11886. + # Report which library types will actually be built
  11887. + { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11888. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11889. + { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11890. +$as_echo "$can_build_shared" >&6; }
  11891. +
  11892. + { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11893. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  11894. + test "$can_build_shared" = "no" && enable_shared=no
  11895. +
  11896. + # On AIX, shared libraries and static libraries use the same namespace, and
  11897. + # are all built from PIC.
  11898. + case $host_os in
  11899. + aix3*)
  11900. + test "$enable_shared" = yes && enable_static=no
  11901. + if test -n "$RANLIB"; then
  11902. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11903. + postinstall_cmds='$RANLIB $lib'
  11904. + fi
  11905. + ;;
  11906. +
  11907. + aix[4-9]*)
  11908. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11909. + test "$enable_shared" = yes && enable_static=no
  11910. + fi
  11911. + ;;
  11912. + esac
  11913. + { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  11914. +$as_echo "$enable_shared" >&6; }
  11915. +
  11916. + { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11917. +$as_echo_n "checking whether to build static libraries... " >&6; }
  11918. + # Make sure either enable_shared or enable_static is yes.
  11919. + test "$enable_shared" = yes || enable_static=yes
  11920. + { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  11921. +$as_echo "$enable_static" >&6; }
  11922. +
  11923. +
  11924. +
  11925. +
  11926. +fi
  11927. +ac_ext=c
  11928. +ac_cpp='$CPP $CPPFLAGS'
  11929. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11930. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11931. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11932. +
  11933. +CC="$lt_save_CC"
  11934. +
  11935. +
  11936. +
  11937. +
  11938. +
  11939. +
  11940. +
  11941. +
  11942. +
  11943. +
  11944. +
  11945. +
  11946. +
  11947. + ac_config_commands="$ac_config_commands libtool"
  11948. +
  11949. +
  11950. +
  11951. +
  11952. +# Only expand once:
  11953. +
  11954. +
  11955. +
  11956. +
  11957. +for ac_func in strerror
  11958. +do
  11959. +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11960. +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11961. +$as_echo_n "checking for $ac_func... " >&6; }
  11962. +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11963. + $as_echo_n "(cached) " >&6
  11964. +else
  11965. + cat >conftest.$ac_ext <<_ACEOF
  11966. +/* confdefs.h. */
  11967. +_ACEOF
  11968. +cat confdefs.h >>conftest.$ac_ext
  11969. +cat >>conftest.$ac_ext <<_ACEOF
  11970. +/* end confdefs.h. */
  11971. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11972. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11973. +#define $ac_func innocuous_$ac_func
  11974. +
  11975. +/* System header to define __stub macros and hopefully few prototypes,
  11976. + which can conflict with char $ac_func (); below.
  11977. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11978. + <limits.h> exists even on freestanding compilers. */
  11979. +
  11980. +#ifdef __STDC__
  11981. +# include <limits.h>
  11982. +#else
  11983. +# include <assert.h>
  11984. +#endif
  11985. +
  11986. +#undef $ac_func
  11987. +
  11988. +/* Override any GCC internal prototype to avoid an error.
  11989. + Use char because int might match the return type of a GCC
  11990. + builtin and then its argument prototype would still apply. */
  11991. +#ifdef __cplusplus
  11992. +extern "C"
  11993. +#endif
  11994. +char $ac_func ();
  11995. +/* The GNU C library defines this for functions which it implements
  11996. + to always fail with ENOSYS. Some functions are actually named
  11997. + something starting with __ and the normal name is an alias. */
  11998. +#if defined __stub_$ac_func || defined __stub___$ac_func
  11999. +choke me
  12000. +#endif
  12001. +
  12002. +int
  12003. +main ()
  12004. +{
  12005. +return $ac_func ();
  12006. + ;
  12007. + return 0;
  12008. +}
  12009. +_ACEOF
  12010. +rm -f conftest.$ac_objext conftest$ac_exeext
  12011. +if { (ac_try="$ac_link"
  12012. +case "(($ac_try" in
  12013. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12014. + *) ac_try_echo=$ac_try;;
  12015. +esac
  12016. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12017. +$as_echo "$ac_try_echo") >&5
  12018. + (eval "$ac_link") 2>conftest.er1
  12019. + ac_status=$?
  12020. + grep -v '^ *+' conftest.er1 >conftest.err
  12021. + rm -f conftest.er1
  12022. + cat conftest.err >&5
  12023. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12024. + (exit $ac_status); } && {
  12025. + test -z "$ac_c_werror_flag" ||
  12026. + test ! -s conftest.err
  12027. + } && test -s conftest$ac_exeext && {
  12028. + test "$cross_compiling" = yes ||
  12029. + $as_test_x conftest$ac_exeext
  12030. + }; then
  12031. + eval "$as_ac_var=yes"
  12032. +else
  12033. + $as_echo "$as_me: failed program was:" >&5
  12034. +sed 's/^/| /' conftest.$ac_ext >&5
  12035. +
  12036. + eval "$as_ac_var=no"
  12037. +fi
  12038. +
  12039. +rm -rf conftest.dSYM
  12040. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12041. + conftest$ac_exeext conftest.$ac_ext
  12042. +fi
  12043. +ac_res=`eval 'as_val=${'$as_ac_var'}
  12044. + $as_echo "$as_val"'`
  12045. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12046. +$as_echo "$ac_res" >&6; }
  12047. +as_val=`eval 'as_val=${'$as_ac_var'}
  12048. + $as_echo "$as_val"'`
  12049. + if test "x$as_val" = x""yes; then
  12050. + cat >>confdefs.h <<_ACEOF
  12051. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12052. +_ACEOF
  12053. +
  12054. fi
  12055. done
  12056. -echo $ac_n "checking for pcap_open_live in -lpcap""... $ac_c" 1>&6
  12057. -echo "configure:1242: checking for pcap_open_live in -lpcap" >&5
  12058. -ac_lib_var=`echo pcap'_'pcap_open_live | sed 'y%./+-%__p_%'`
  12059. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12060. - echo $ac_n "(cached) $ac_c" 1>&6
  12061. +{ $as_echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
  12062. +$as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
  12063. +if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
  12064. + $as_echo_n "(cached) " >&6
  12065. else
  12066. - ac_save_LIBS="$LIBS"
  12067. + ac_check_lib_save_LIBS=$LIBS
  12068. LIBS="-lpcap $LIBS"
  12069. -cat > conftest.$ac_ext <<EOF
  12070. -#line 1250 "configure"
  12071. -#include "confdefs.h"
  12072. -/* Override any gcc2 internal prototype to avoid an error. */
  12073. -/* We use char because int might match the return type of a gcc2
  12074. - builtin and then its argument prototype would still apply. */
  12075. -char pcap_open_live();
  12076. +cat >conftest.$ac_ext <<_ACEOF
  12077. +/* confdefs.h. */
  12078. +_ACEOF
  12079. +cat confdefs.h >>conftest.$ac_ext
  12080. +cat >>conftest.$ac_ext <<_ACEOF
  12081. +/* end confdefs.h. */
  12082. -int main() {
  12083. -pcap_open_live()
  12084. -; return 0; }
  12085. -EOF
  12086. -if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12087. - rm -rf conftest*
  12088. - eval "ac_cv_lib_$ac_lib_var=yes"
  12089. +/* Override any GCC internal prototype to avoid an error.
  12090. + Use char because int might match the return type of a GCC
  12091. + builtin and then its argument prototype would still apply. */
  12092. +#ifdef __cplusplus
  12093. +extern "C"
  12094. +#endif
  12095. +char pcap_open_live ();
  12096. +int
  12097. +main ()
  12098. +{
  12099. +return pcap_open_live ();
  12100. + ;
  12101. + return 0;
  12102. +}
  12103. +_ACEOF
  12104. +rm -f conftest.$ac_objext conftest$ac_exeext
  12105. +if { (ac_try="$ac_link"
  12106. +case "(($ac_try" in
  12107. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12108. + *) ac_try_echo=$ac_try;;
  12109. +esac
  12110. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12111. +$as_echo "$ac_try_echo") >&5
  12112. + (eval "$ac_link") 2>conftest.er1
  12113. + ac_status=$?
  12114. + grep -v '^ *+' conftest.er1 >conftest.err
  12115. + rm -f conftest.er1
  12116. + cat conftest.err >&5
  12117. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12118. + (exit $ac_status); } && {
  12119. + test -z "$ac_c_werror_flag" ||
  12120. + test ! -s conftest.err
  12121. + } && test -s conftest$ac_exeext && {
  12122. + test "$cross_compiling" = yes ||
  12123. + $as_test_x conftest$ac_exeext
  12124. + }; then
  12125. + ac_cv_lib_pcap_pcap_open_live=yes
  12126. else
  12127. - echo "configure: failed program was:" >&5
  12128. - cat conftest.$ac_ext >&5
  12129. - rm -rf conftest*
  12130. - eval "ac_cv_lib_$ac_lib_var=no"
  12131. + $as_echo "$as_me: failed program was:" >&5
  12132. +sed 's/^/| /' conftest.$ac_ext >&5
  12133. +
  12134. + ac_cv_lib_pcap_pcap_open_live=no
  12135. fi
  12136. -rm -f conftest*
  12137. -LIBS="$ac_save_LIBS"
  12138. +rm -rf conftest.dSYM
  12139. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12140. + conftest$ac_exeext conftest.$ac_ext
  12141. +LIBS=$ac_check_lib_save_LIBS
  12142. fi
  12143. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  12144. - echo "$ac_t""yes" 1>&6
  12145. - cat >> confdefs.h <<\EOF
  12146. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
  12147. +$as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
  12148. +if test "x$ac_cv_lib_pcap_pcap_open_live" = x""yes; then
  12149. + cat >>confdefs.h <<\_ACEOF
  12150. #define HAVE_LIB_PCAP 1
  12151. -EOF
  12152. +_ACEOF
  12153. -else
  12154. - echo "$ac_t""no" 1>&6
  12155. fi
  12156. -echo $ac_n "checking low-level packet interface type""... $ac_c" 1>&6
  12157. -echo "configure:1286: checking low-level packet interface type" >&5
  12158. +{ $as_echo "$as_me:$LINENO: checking low-level packet interface type" >&5
  12159. +$as_echo_n "checking low-level packet interface type... " >&6; }
  12160. if test -r /dev/bpf0 ; then
  12161. LL_INT_TYPE=bpf
  12162. - echo "$ac_t""found bpf" 1>&6
  12163. + { $as_echo "$as_me:$LINENO: result: found bpf" >&5
  12164. +$as_echo "found bpf" >&6; }
  12165. elif test -r /usr/include/net/pfilt.h ; then
  12166. LL_INT_TYPE=pf
  12167. - echo "$ac_t""found pf" 1>&6
  12168. + { $as_echo "$as_me:$LINENO: result: found pf" >&5
  12169. +$as_echo "found pf" >&6; }
  12170. elif test -r /dev/nit ; then
  12171. LL_INT_TYPE=snit
  12172. - echo "$ac_t""found snit" 1>&6
  12173. + { $as_echo "$as_me:$LINENO: result: found snit" >&5
  12174. +$as_echo "found snit" >&6; }
  12175. elif test -r /usr/include/sys/net/nit.h ; then
  12176. LL_INT_TYPE=nit
  12177. - echo "$ac_t""found nit" 1>&6
  12178. + { $as_echo "$as_me:$LINENO: result: found nit" >&5
  12179. +$as_echo "found nit" >&6; }
  12180. elif test -r /usr/include/net/raw.h ; then
  12181. LL_INT_TYPE=snoop
  12182. - echo "$ac_t""found snoop" 1>&6
  12183. + { $as_echo "$as_me:$LINENO: result: found snoop" >&5
  12184. +$as_echo "found snoop" >&6; }
  12185. elif test -r /usr/include/sys/dlpi.h ; then
  12186. LL_INT_TYPE=dlpi
  12187. - echo "$ac_t""found dlpi" 1>&6
  12188. - cat >> confdefs.h <<\EOF
  12189. + { $as_echo "$as_me:$LINENO: result: found dlpi" >&5
  12190. +$as_echo "found dlpi" >&6; }
  12191. + cat >>confdefs.h <<\_ACEOF
  12192. #define HAVE_DLPI 1
  12193. -EOF
  12194. +_ACEOF
  12195. elif test -r /usr/include/linux/socket.h ; then
  12196. LL_INT_TYPE=sockpacket
  12197. - echo "$ac_t""found SOCK_PACKET" 1>&6
  12198. + { $as_echo "$as_me:$LINENO: result: found linux primitives" >&5
  12199. +$as_echo "found linux primitives" >&6; }
  12200. if test $with_pf_packet = yes; then
  12201. -
  12202. - echo $ac_n "checking for PF_PACKET""... $ac_c" 1>&6
  12203. -echo "configure:1316: checking for PF_PACKET" >&5
  12204. - if eval "test \"`echo '$''{'ac_libnet_have_pf_packet'+set}'`\" = set"; then
  12205. - echo $ac_n "(cached) $ac_c" 1>&6
  12206. +
  12207. + { $as_echo "$as_me:$LINENO: checking for PF_PACKET" >&5
  12208. +$as_echo_n "checking for PF_PACKET... " >&6; }
  12209. + if test "${ac_libnet_have_pf_packet+set}" = set; then
  12210. + $as_echo_n "(cached) " >&6
  12211. else
  12212. case "$target_os" in
  12213. @@ -1324,66 +11675,43 @@ else
  12214. *)
  12215. cat > pf_packet-test.c << EOF
  12216. -#include <net/if.h>
  12217. -#if (__GLIBC__)
  12218. -#include <netinet/if_ether.h>
  12219. -#include <net/if_arp.h>
  12220. +#include <stdio.h>
  12221. +#include <errno.h>
  12222. +#include <stdlib.h>
  12223. +#include <netinet/in.h>
  12224. +#include <sys/socket.h>
  12225. +#include <features.h> /* for the glibc version number */
  12226. +#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
  12227. +#include <netpacket/packet.h>
  12228. +#include <net/ethernet.h> /* the L2 protocols */
  12229. #else
  12230. -#include <linux/if_arp.h>
  12231. -#include <linux/if_ether.h>
  12232. +#include <asm/types.h>
  12233. +#include <linux/if_packet.h>
  12234. +#include <linux/if_ether.h> /* The L2 protocols */
  12235. #endif
  12236. -#if (PF_PACKET)
  12237. +
  12238. #ifndef SOL_PACKET
  12239. #define SOL_PACKET 263
  12240. #endif /* SOL_PACKET */
  12241. -#include <linux/if_packet.h>
  12242. -#endif
  12243. -#include <stdlib.h>
  12244. -#include <linux/sockios.h>
  12245. int
  12246. main()
  12247. {
  12248. -#if (PF_PACKET)
  12249. int fd;
  12250. - struct sockaddr_ll sa;
  12251. - struct ifreq ifr;
  12252. - struct packet_mreq mr;
  12253. - char *device ="lo";
  12254. fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  12255. if (fd == -1)
  12256. {
  12257. - printf("choked");
  12258. - exit (EXIT_FAILURE);
  12259. - }
  12260. -
  12261. - memset(&sa, 0, sizeof(sa));
  12262. - strcpy(ifr.ifr_name, device);
  12263. - if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
  12264. - {
  12265. - printf("choked");
  12266. - exit (EXIT_FAILURE);
  12267. - }
  12268. - sa.sll_family = AF_PACKET;
  12269. - sa.sll_ifindex = ifr.ifr_ifindex;
  12270. - sa.sll_protocol = htons(ETH_P_ALL);
  12271. -
  12272. - memset(&mr, 0, sizeof (mr));
  12273. - mr.mr_ifindex = sa.sll_ifindex;
  12274. - mr.mr_type = PACKET_MR_ALLMULTI;
  12275. -
  12276. - if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
  12277. - sizeof (mr)) < 0)
  12278. - {
  12279. - printf("choked\n");
  12280. + if (errno == EPERM)
  12281. + {
  12282. + /* user's UID != 0 */
  12283. + printf("probably");
  12284. + exit (EXIT_FAILURE);
  12285. + }
  12286. + printf("no");
  12287. exit (EXIT_FAILURE);
  12288. }
  12289. - /* yay. we made it and it workz! */
  12290. printf("yes");
  12291. -#else /* PF_PACKET */
  12292. - printf("no");
  12293. -#endif
  12294. exit (EXIT_SUCCESS);
  12295. }
  12296. EOF
  12297. @@ -1397,38 +11725,52 @@ EOF
  12298. fi
  12299. if test $ac_libnet_have_pf_packet = choked; then
  12300. - echo "$ac_t""test program choked... assuming no" 1>&6
  12301. + { $as_echo "$as_me:$LINENO: result: test program choked... assuming no" >&5
  12302. +$as_echo "test program choked... assuming no" >&6; }
  12303. elif test $ac_libnet_have_pf_packet = yes; then
  12304. - cat >> confdefs.h <<\EOF
  12305. -#define HAVE_PF_PACKET 1
  12306. -EOF
  12307. -
  12308. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  12309. +$as_echo "yes" >&6; }
  12310. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
  12311. + elif test $ac_libnet_have_pf_packet = probably; then
  12312. + { $as_echo "$as_me:$LINENO: result: test program got EPERM... assuming yes" >&5
  12313. +$as_echo "test program got EPERM... assuming yes" >&6; }
  12314. + elif test $ac_libnet_have_pf_packet = no; then
  12315. + { $as_echo "$as_me:$LINENO: result: no" >&5
  12316. +$as_echo "no" >&6; }
  12317. fi
  12318. - if test $ac_libnet_have_pf_packet != choked; then
  12319. - echo "$ac_t""$ac_libnet_have_pf_packet" 1>&6
  12320. - fi
  12321. rm -f pf_packet-test* core core.pf_packet-test
  12322. ;;
  12323. esac
  12324. fi
  12325. + if test $ac_libnet_have_pf_packet = yes -o $ac_libnet_have_pf_packet = probably; then
  12326. + cat >>confdefs.h <<\_ACEOF
  12327. +#define HAVE_PF_PACKET 1
  12328. +_ACEOF
  12329. +
  12330. + fi
  12331. +
  12332. fi
  12333. elif test -c /dev/bpf0 ; then # check again in case not readable
  12334. LL_INT_TYPE=bpf
  12335. - echo "$ac_t""found bpf" 1>&6
  12336. + { $as_echo "$as_me:$LINENO: result: found bpf" >&5
  12337. +$as_echo "found bpf" >&6; }
  12338. elif test -c /dev/enet ; then # check again in case not readable
  12339. LL_INT_TYPE=enet
  12340. - echo "$ac_t""found enet" 1>&6
  12341. + { $as_echo "$as_me:$LINENO: result: found enet" >&5
  12342. +$as_echo "found enet" >&6; }
  12343. elif test -c /dev/nit ; then # check again in case not readable
  12344. LL_INT_TYPE=snit
  12345. - echo "$ac_t""found snit" 1>&6
  12346. + { $as_echo "$as_me:$LINENO: result: found snit" >&5
  12347. +$as_echo "found snit" >&6; }
  12348. else
  12349. LL_INT_TYPE=null
  12350. - echo "configure: warning: could not find a low level packet interface" 1>&2
  12351. - echo "configure: warning: low level packet creation API will not be added to the library" 1>&2
  12352. + { $as_echo "$as_me:$LINENO: WARNING: could not find a low level packet interface" >&5
  12353. +$as_echo "$as_me: WARNING: could not find a low level packet interface" >&2;}
  12354. + { $as_echo "$as_me:$LINENO: WARNING: low level packet creation API will not be added to the library" >&5
  12355. +$as_echo "$as_me: WARNING: low level packet creation API will not be added to the library" >&2;}
  12356. fi
  12357. LL_INT_TYPE_UC=`echo $LL_INT_TYPE | tr a-z A-Z`
  12358. @@ -1437,158 +11779,184 @@ LL_INT_TYPE_UC=`echo $LL_INT_TYPE | tr a
  12359. case "$target_os" in
  12360. *linux*)
  12361. - cat >> confdefs.h <<\EOF
  12362. + cat >>confdefs.h <<\_ACEOF
  12363. #define _BSD_SOURCE 1
  12364. -EOF
  12365. +_ACEOF
  12366. - cat >> confdefs.h <<\EOF
  12367. + cat >>confdefs.h <<\_ACEOF
  12368. #define __BSD_SOURCE 1
  12369. -EOF
  12370. +_ACEOF
  12371. - cat >> confdefs.h <<\EOF
  12372. + cat >>confdefs.h <<\_ACEOF
  12373. #define __FAVOR_BSD 1
  12374. -EOF
  12375. +_ACEOF
  12376. LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
  12377. - echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  12378. -echo "configure:1455: checking how to run the C preprocessor" >&5
  12379. -# On Suns, sometimes $CPP names a directory.
  12380. -if test -n "$CPP" && test -d "$CPP"; then
  12381. - CPP=
  12382. +
  12383. +for ac_header in net/ethernet.h
  12384. +do
  12385. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12386. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12387. + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  12388. +$as_echo_n "checking for $ac_header... " >&6; }
  12389. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12390. + $as_echo_n "(cached) " >&6
  12391. fi
  12392. -if test -z "$CPP"; then
  12393. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  12394. - echo $ac_n "(cached) $ac_c" 1>&6
  12395. -else
  12396. - # This must be in double quotes, not single quotes, because CPP may get
  12397. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  12398. - CPP="${CC-cc} -E"
  12399. - # On the NeXT, cc -E runs the code through the compiler's parser,
  12400. - # not just through cpp.
  12401. - cat > conftest.$ac_ext <<EOF
  12402. -#line 1470 "configure"
  12403. -#include "confdefs.h"
  12404. -#include <assert.h>
  12405. -Syntax Error
  12406. -EOF
  12407. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12408. -{ (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12409. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12410. -if test -z "$ac_err"; then
  12411. - :
  12412. -else
  12413. - echo "$ac_err" >&5
  12414. - echo "configure: failed program was:" >&5
  12415. - cat conftest.$ac_ext >&5
  12416. - rm -rf conftest*
  12417. - CPP="${CC-cc} -E -traditional-cpp"
  12418. - cat > conftest.$ac_ext <<EOF
  12419. -#line 1487 "configure"
  12420. -#include "confdefs.h"
  12421. -#include <assert.h>
  12422. -Syntax Error
  12423. -EOF
  12424. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12425. -{ (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12426. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12427. -if test -z "$ac_err"; then
  12428. - :
  12429. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  12430. + $as_echo "$as_val"'`
  12431. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12432. +$as_echo "$ac_res" >&6; }
  12433. else
  12434. - echo "$ac_err" >&5
  12435. - echo "configure: failed program was:" >&5
  12436. - cat conftest.$ac_ext >&5
  12437. - rm -rf conftest*
  12438. - CPP="${CC-cc} -nologo -E"
  12439. - cat > conftest.$ac_ext <<EOF
  12440. -#line 1504 "configure"
  12441. -#include "confdefs.h"
  12442. -#include <assert.h>
  12443. -Syntax Error
  12444. -EOF
  12445. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12446. -{ (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12447. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12448. -if test -z "$ac_err"; then
  12449. - :
  12450. + # Is the header compilable?
  12451. +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12452. +$as_echo_n "checking $ac_header usability... " >&6; }
  12453. +cat >conftest.$ac_ext <<_ACEOF
  12454. +/* confdefs.h. */
  12455. +_ACEOF
  12456. +cat confdefs.h >>conftest.$ac_ext
  12457. +cat >>conftest.$ac_ext <<_ACEOF
  12458. +/* end confdefs.h. */
  12459. +$ac_includes_default
  12460. +#include <$ac_header>
  12461. +_ACEOF
  12462. +rm -f conftest.$ac_objext
  12463. +if { (ac_try="$ac_compile"
  12464. +case "(($ac_try" in
  12465. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12466. + *) ac_try_echo=$ac_try;;
  12467. +esac
  12468. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12469. +$as_echo "$ac_try_echo") >&5
  12470. + (eval "$ac_compile") 2>conftest.er1
  12471. + ac_status=$?
  12472. + grep -v '^ *+' conftest.er1 >conftest.err
  12473. + rm -f conftest.er1
  12474. + cat conftest.err >&5
  12475. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12476. + (exit $ac_status); } && {
  12477. + test -z "$ac_c_werror_flag" ||
  12478. + test ! -s conftest.err
  12479. + } && test -s conftest.$ac_objext; then
  12480. + ac_header_compiler=yes
  12481. else
  12482. - echo "$ac_err" >&5
  12483. - echo "configure: failed program was:" >&5
  12484. - cat conftest.$ac_ext >&5
  12485. - rm -rf conftest*
  12486. - CPP=/lib/cpp
  12487. -fi
  12488. -rm -f conftest*
  12489. -fi
  12490. -rm -f conftest*
  12491. -fi
  12492. -rm -f conftest*
  12493. - ac_cv_prog_CPP="$CPP"
  12494. + $as_echo "$as_me: failed program was:" >&5
  12495. +sed 's/^/| /' conftest.$ac_ext >&5
  12496. +
  12497. + ac_header_compiler=no
  12498. fi
  12499. - CPP="$ac_cv_prog_CPP"
  12500. +
  12501. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12502. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12503. +$as_echo "$ac_header_compiler" >&6; }
  12504. +
  12505. +# Is the header present?
  12506. +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12507. +$as_echo_n "checking $ac_header presence... " >&6; }
  12508. +cat >conftest.$ac_ext <<_ACEOF
  12509. +/* confdefs.h. */
  12510. +_ACEOF
  12511. +cat confdefs.h >>conftest.$ac_ext
  12512. +cat >>conftest.$ac_ext <<_ACEOF
  12513. +/* end confdefs.h. */
  12514. +#include <$ac_header>
  12515. +_ACEOF
  12516. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  12517. +case "(($ac_try" in
  12518. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12519. + *) ac_try_echo=$ac_try;;
  12520. +esac
  12521. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12522. +$as_echo "$ac_try_echo") >&5
  12523. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12524. + ac_status=$?
  12525. + grep -v '^ *+' conftest.er1 >conftest.err
  12526. + rm -f conftest.er1
  12527. + cat conftest.err >&5
  12528. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12529. + (exit $ac_status); } >/dev/null && {
  12530. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  12531. + test ! -s conftest.err
  12532. + }; then
  12533. + ac_header_preproc=yes
  12534. else
  12535. - ac_cv_prog_CPP="$CPP"
  12536. + $as_echo "$as_me: failed program was:" >&5
  12537. +sed 's/^/| /' conftest.$ac_ext >&5
  12538. +
  12539. + ac_header_preproc=no
  12540. fi
  12541. -echo "$ac_t""$CPP" 1>&6
  12542. -for ac_hdr in net/ethernet.h
  12543. -do
  12544. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  12545. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  12546. -echo "configure:1538: checking for $ac_hdr" >&5
  12547. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12548. - echo $ac_n "(cached) $ac_c" 1>&6
  12549. -else
  12550. - cat > conftest.$ac_ext <<EOF
  12551. -#line 1543 "configure"
  12552. -#include "confdefs.h"
  12553. -#include <$ac_hdr>
  12554. -EOF
  12555. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12556. -{ (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12557. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12558. -if test -z "$ac_err"; then
  12559. - rm -rf conftest*
  12560. - eval "ac_cv_header_$ac_safe=yes"
  12561. +rm -f conftest.err conftest.$ac_ext
  12562. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12563. +$as_echo "$ac_header_preproc" >&6; }
  12564. +
  12565. +# So? What about this header?
  12566. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  12567. + yes:no: )
  12568. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12569. +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12570. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12571. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12572. + ac_header_preproc=yes
  12573. + ;;
  12574. + no:yes:* )
  12575. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12576. +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12577. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12578. +$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12579. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12580. +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12581. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12582. +$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12583. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12584. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12585. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12586. +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12587. +
  12588. + ;;
  12589. +esac
  12590. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  12591. +$as_echo_n "checking for $ac_header... " >&6; }
  12592. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12593. + $as_echo_n "(cached) " >&6
  12594. else
  12595. - echo "$ac_err" >&5
  12596. - echo "configure: failed program was:" >&5
  12597. - cat conftest.$ac_ext >&5
  12598. - rm -rf conftest*
  12599. - eval "ac_cv_header_$ac_safe=no"
  12600. + eval "$as_ac_Header=\$ac_header_preproc"
  12601. fi
  12602. -rm -f conftest*
  12603. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  12604. + $as_echo "$as_val"'`
  12605. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12606. +$as_echo "$ac_res" >&6; }
  12607. +
  12608. fi
  12609. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  12610. - echo "$ac_t""yes" 1>&6
  12611. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  12612. - cat >> confdefs.h <<EOF
  12613. -#define $ac_tr_hdr 1
  12614. -EOF
  12615. +as_val=`eval 'as_val=${'$as_ac_Header'}
  12616. + $as_echo "$as_val"'`
  12617. + if test "x$as_val" = x""yes; then
  12618. + cat >>confdefs.h <<_ACEOF
  12619. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12620. +_ACEOF
  12621. \
  12622. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H"
  12623. -else
  12624. - echo "$ac_t""no" 1>&6
  12625. fi
  12626. +
  12627. done
  12628. - MAN_PREFIX="$prefix/man/man3/"
  12629. + MAN_PREFIX="$mandir/man3/"
  12630. LIB_PREFIX="$prefix/lib/"
  12631. INC_PREFIX="$prefix/include/"
  12632. BIN_PREFIX="$prefix/bin/"
  12633. ;;
  12634. *freebsd*)
  12635. - cat >> confdefs.h <<\EOF
  12636. + cat >>confdefs.h <<\_ACEOF
  12637. #define LIBNET_BSDISH_OS 1
  12638. -EOF
  12639. +_ACEOF
  12640. - cat >> confdefs.h <<\EOF
  12641. + cat >>confdefs.h <<\_ACEOF
  12642. #define LIBNET_BSD_BYTE_SWAP 1
  12643. -EOF
  12644. +_ACEOF
  12645. - cat >> confdefs.h <<\EOF
  12646. + cat >>confdefs.h <<\_ACEOF
  12647. #define HAVE_SOCKADDR_SA_LEN 1
  12648. -EOF
  12649. +_ACEOF
  12650. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP \
  12651. -DHAVE_SOCKADDR_SA_LEN"
  12652. @@ -1596,19 +11964,21 @@ EOF
  12653. LIB_PREFIX="$prefix/lib/aout"
  12654. INC_PREFIX="$prefix/include/"
  12655. BIN_PREFIX="$prefix/bin/"
  12656. - echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm source \
  12657. -required to spoof ethernet frames" 1>&6
  12658. + { $as_echo "$as_me:$LINENO: result: Note: support/bpf-lkm/etherspoof contains the lkm source \
  12659. +required to spoof ethernet frames" >&5
  12660. +$as_echo "Note: support/bpf-lkm/etherspoof contains the lkm source \
  12661. +required to spoof ethernet frames" >&6; }
  12662. ln -sf FreeBSD support/bpf-lkm/etherspoof
  12663. ;;
  12664. *netbsd*)
  12665. - cat >> confdefs.h <<\EOF
  12666. + cat >>confdefs.h <<\_ACEOF
  12667. #define LIBNET_BSDISH_OS 1
  12668. -EOF
  12669. +_ACEOF
  12670. - cat >> confdefs.h <<\EOF
  12671. + cat >>confdefs.h <<\_ACEOF
  12672. #define LIBNET_BSD_BYTE_SWAP 1
  12673. -EOF
  12674. +_ACEOF
  12675. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
  12676. MAN_PREFIX="$prefix/man/man3/"
  12677. @@ -1618,32 +11988,34 @@ EOF
  12678. ;;
  12679. *openbsd*)
  12680. - cat >> confdefs.h <<\EOF
  12681. + cat >>confdefs.h <<\_ACEOF
  12682. #define LIBNET_BSDISH_OS 1
  12683. -EOF
  12684. +_ACEOF
  12685. - cat >> confdefs.h <<\EOF
  12686. + cat >>confdefs.h <<\_ACEOF
  12687. #define HAVE_SOCKADDR_SA_LEN 1
  12688. -EOF
  12689. +_ACEOF
  12690. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS"
  12691. MAN_PREFIX="$prefix/man/man3/"
  12692. LIB_PREFIX="$prefix/lib/"
  12693. INC_PREFIX="$prefix/include/"
  12694. BIN_PREFIX="$prefix/bin/"
  12695. - echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm required \
  12696. -to spoof ethernet frames" 1>&6
  12697. + { $as_echo "$as_me:$LINENO: result: Note: support/bpf-lkm/etherspoof contains the lkm required \
  12698. +to spoof ethernet frames" >&5
  12699. +$as_echo "Note: support/bpf-lkm/etherspoof contains the lkm required \
  12700. +to spoof ethernet frames" >&6; }
  12701. ln -sf OpenBSD support/bpf-lkm/etherspoof
  12702. ;;
  12703. *bsdi*)
  12704. - cat >> confdefs.h <<\EOF
  12705. + cat >>confdefs.h <<\_ACEOF
  12706. #define LIBNET_BSDISH_OS 1
  12707. -EOF
  12708. +_ACEOF
  12709. - cat >> confdefs.h <<\EOF
  12710. + cat >>confdefs.h <<\_ACEOF
  12711. #define LIBNET_BSD_BYTE_SWAP 1
  12712. -EOF
  12713. +_ACEOF
  12714. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
  12715. MAN_PREFIX="$prefix/man/man3/"
  12716. @@ -1653,181 +12025,354 @@ EOF
  12717. ;;
  12718. *solaris*)
  12719. - cat >> confdefs.h <<\EOF
  12720. + cat >>confdefs.h <<\_ACEOF
  12721. #define HAVE_SOLARIS 1
  12722. -EOF
  12723. +_ACEOF
  12724. - for ac_hdr in sys/bufmod.h sys/dlpi_ext.h
  12725. +
  12726. +
  12727. +for ac_header in sys/bufmod.h sys/dlpi_ext.h
  12728. do
  12729. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  12730. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  12731. -echo "configure:1665: checking for $ac_hdr" >&5
  12732. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12733. - echo $ac_n "(cached) $ac_c" 1>&6
  12734. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12735. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12736. + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  12737. +$as_echo_n "checking for $ac_header... " >&6; }
  12738. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12739. + $as_echo_n "(cached) " >&6
  12740. +fi
  12741. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  12742. + $as_echo "$as_val"'`
  12743. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12744. +$as_echo "$ac_res" >&6; }
  12745. else
  12746. - cat > conftest.$ac_ext <<EOF
  12747. -#line 1670 "configure"
  12748. -#include "confdefs.h"
  12749. -#include <$ac_hdr>
  12750. -EOF
  12751. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12752. -{ (eval echo configure:1675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12753. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12754. -if test -z "$ac_err"; then
  12755. - rm -rf conftest*
  12756. - eval "ac_cv_header_$ac_safe=yes"
  12757. + # Is the header compilable?
  12758. +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12759. +$as_echo_n "checking $ac_header usability... " >&6; }
  12760. +cat >conftest.$ac_ext <<_ACEOF
  12761. +/* confdefs.h. */
  12762. +_ACEOF
  12763. +cat confdefs.h >>conftest.$ac_ext
  12764. +cat >>conftest.$ac_ext <<_ACEOF
  12765. +/* end confdefs.h. */
  12766. +$ac_includes_default
  12767. +#include <$ac_header>
  12768. +_ACEOF
  12769. +rm -f conftest.$ac_objext
  12770. +if { (ac_try="$ac_compile"
  12771. +case "(($ac_try" in
  12772. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12773. + *) ac_try_echo=$ac_try;;
  12774. +esac
  12775. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12776. +$as_echo "$ac_try_echo") >&5
  12777. + (eval "$ac_compile") 2>conftest.er1
  12778. + ac_status=$?
  12779. + grep -v '^ *+' conftest.er1 >conftest.err
  12780. + rm -f conftest.er1
  12781. + cat conftest.err >&5
  12782. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12783. + (exit $ac_status); } && {
  12784. + test -z "$ac_c_werror_flag" ||
  12785. + test ! -s conftest.err
  12786. + } && test -s conftest.$ac_objext; then
  12787. + ac_header_compiler=yes
  12788. else
  12789. - echo "$ac_err" >&5
  12790. - echo "configure: failed program was:" >&5
  12791. - cat conftest.$ac_ext >&5
  12792. - rm -rf conftest*
  12793. - eval "ac_cv_header_$ac_safe=no"
  12794. + $as_echo "$as_me: failed program was:" >&5
  12795. +sed 's/^/| /' conftest.$ac_ext >&5
  12796. +
  12797. + ac_header_compiler=no
  12798. fi
  12799. -rm -f conftest*
  12800. +
  12801. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12802. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12803. +$as_echo "$ac_header_compiler" >&6; }
  12804. +
  12805. +# Is the header present?
  12806. +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12807. +$as_echo_n "checking $ac_header presence... " >&6; }
  12808. +cat >conftest.$ac_ext <<_ACEOF
  12809. +/* confdefs.h. */
  12810. +_ACEOF
  12811. +cat confdefs.h >>conftest.$ac_ext
  12812. +cat >>conftest.$ac_ext <<_ACEOF
  12813. +/* end confdefs.h. */
  12814. +#include <$ac_header>
  12815. +_ACEOF
  12816. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  12817. +case "(($ac_try" in
  12818. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12819. + *) ac_try_echo=$ac_try;;
  12820. +esac
  12821. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12822. +$as_echo "$ac_try_echo") >&5
  12823. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12824. + ac_status=$?
  12825. + grep -v '^ *+' conftest.er1 >conftest.err
  12826. + rm -f conftest.er1
  12827. + cat conftest.err >&5
  12828. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12829. + (exit $ac_status); } >/dev/null && {
  12830. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  12831. + test ! -s conftest.err
  12832. + }; then
  12833. + ac_header_preproc=yes
  12834. +else
  12835. + $as_echo "$as_me: failed program was:" >&5
  12836. +sed 's/^/| /' conftest.$ac_ext >&5
  12837. +
  12838. + ac_header_preproc=no
  12839. fi
  12840. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  12841. - echo "$ac_t""yes" 1>&6
  12842. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  12843. - cat >> confdefs.h <<EOF
  12844. -#define $ac_tr_hdr 1
  12845. -EOF
  12846. -
  12847. +
  12848. +rm -f conftest.err conftest.$ac_ext
  12849. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12850. +$as_echo "$ac_header_preproc" >&6; }
  12851. +
  12852. +# So? What about this header?
  12853. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  12854. + yes:no: )
  12855. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12856. +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12857. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12858. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12859. + ac_header_preproc=yes
  12860. + ;;
  12861. + no:yes:* )
  12862. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12863. +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12864. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12865. +$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12866. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12867. +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12868. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12869. +$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12870. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12871. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12872. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12873. +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12874. +
  12875. + ;;
  12876. +esac
  12877. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  12878. +$as_echo_n "checking for $ac_header... " >&6; }
  12879. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12880. + $as_echo_n "(cached) " >&6
  12881. else
  12882. - echo "$ac_t""no" 1>&6
  12883. + eval "$as_ac_Header=\$ac_header_preproc"
  12884. +fi
  12885. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  12886. + $as_echo "$as_val"'`
  12887. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12888. +$as_echo "$ac_res" >&6; }
  12889. +
  12890. fi
  12891. +as_val=`eval 'as_val=${'$as_ac_Header'}
  12892. + $as_echo "$as_val"'`
  12893. + if test "x$as_val" = x""yes; then
  12894. + cat >>confdefs.h <<_ACEOF
  12895. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12896. +_ACEOF
  12897. +
  12898. +fi
  12899. +
  12900. done
  12901. - echo $ac_n "checking for /dev/dlpi device""... $ac_c" 1>&6
  12902. -echo "configure:1702: checking for /dev/dlpi device" >&5
  12903. + { $as_echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
  12904. +$as_echo_n "checking for /dev/dlpi device... " >&6; }
  12905. if test -c /dev/dlpi; then
  12906. - echo "$ac_t""yes" 1>&6
  12907. - cat >> confdefs.h <<\EOF
  12908. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  12909. +$as_echo "yes" >&6; }
  12910. + cat >>confdefs.h <<\_ACEOF
  12911. #define HAVE_DEV_DLPI 1
  12912. -EOF
  12913. +_ACEOF
  12914. else
  12915. - echo "$ac_t""no" 1>&6
  12916. + { $as_echo "$as_me:$LINENO: result: no" >&5
  12917. +$as_echo "no" >&6; }
  12918. dir="/dev/dlpi"
  12919. - echo $ac_n "checking for $dir directory""... $ac_c" 1>&6
  12920. -echo "configure:1713: checking for $dir directory" >&5
  12921. + { $as_echo "$as_me:$LINENO: checking for $dir directory" >&5
  12922. +$as_echo_n "checking for $dir directory... " >&6; }
  12923. if test -d $dir ; then
  12924. - echo "$ac_t""yes" 1>&6
  12925. - cat >> confdefs.h <<EOF
  12926. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  12927. +$as_echo "yes" >&6; }
  12928. + cat >>confdefs.h <<_ACEOF
  12929. #define DLPI_DEV_PREFIX "$dir"
  12930. -EOF
  12931. +_ACEOF
  12932. else
  12933. - echo "$ac_t""no" 1>&6
  12934. + { $as_echo "$as_me:$LINENO: result: no" >&5
  12935. +$as_echo "no" >&6; }
  12936. fi
  12937. fi
  12938. - echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  12939. -echo "configure:1725: checking for socket in -lsocket" >&5
  12940. -ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  12941. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12942. - echo $ac_n "(cached) $ac_c" 1>&6
  12943. +
  12944. +{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  12945. +$as_echo_n "checking for socket in -lsocket... " >&6; }
  12946. +if test "${ac_cv_lib_socket_socket+set}" = set; then
  12947. + $as_echo_n "(cached) " >&6
  12948. else
  12949. - ac_save_LIBS="$LIBS"
  12950. + ac_check_lib_save_LIBS=$LIBS
  12951. LIBS="-lsocket $LIBS"
  12952. -cat > conftest.$ac_ext <<EOF
  12953. -#line 1733 "configure"
  12954. -#include "confdefs.h"
  12955. -/* Override any gcc2 internal prototype to avoid an error. */
  12956. -/* We use char because int might match the return type of a gcc2
  12957. - builtin and then its argument prototype would still apply. */
  12958. -char socket();
  12959. +cat >conftest.$ac_ext <<_ACEOF
  12960. +/* confdefs.h. */
  12961. +_ACEOF
  12962. +cat confdefs.h >>conftest.$ac_ext
  12963. +cat >>conftest.$ac_ext <<_ACEOF
  12964. +/* end confdefs.h. */
  12965. -int main() {
  12966. -socket()
  12967. -; return 0; }
  12968. -EOF
  12969. -if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12970. - rm -rf conftest*
  12971. - eval "ac_cv_lib_$ac_lib_var=yes"
  12972. +/* Override any GCC internal prototype to avoid an error.
  12973. + Use char because int might match the return type of a GCC
  12974. + builtin and then its argument prototype would still apply. */
  12975. +#ifdef __cplusplus
  12976. +extern "C"
  12977. +#endif
  12978. +char socket ();
  12979. +int
  12980. +main ()
  12981. +{
  12982. +return socket ();
  12983. + ;
  12984. + return 0;
  12985. +}
  12986. +_ACEOF
  12987. +rm -f conftest.$ac_objext conftest$ac_exeext
  12988. +if { (ac_try="$ac_link"
  12989. +case "(($ac_try" in
  12990. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12991. + *) ac_try_echo=$ac_try;;
  12992. +esac
  12993. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12994. +$as_echo "$ac_try_echo") >&5
  12995. + (eval "$ac_link") 2>conftest.er1
  12996. + ac_status=$?
  12997. + grep -v '^ *+' conftest.er1 >conftest.err
  12998. + rm -f conftest.er1
  12999. + cat conftest.err >&5
  13000. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13001. + (exit $ac_status); } && {
  13002. + test -z "$ac_c_werror_flag" ||
  13003. + test ! -s conftest.err
  13004. + } && test -s conftest$ac_exeext && {
  13005. + test "$cross_compiling" = yes ||
  13006. + $as_test_x conftest$ac_exeext
  13007. + }; then
  13008. + ac_cv_lib_socket_socket=yes
  13009. else
  13010. - echo "configure: failed program was:" >&5
  13011. - cat conftest.$ac_ext >&5
  13012. - rm -rf conftest*
  13013. - eval "ac_cv_lib_$ac_lib_var=no"
  13014. + $as_echo "$as_me: failed program was:" >&5
  13015. +sed 's/^/| /' conftest.$ac_ext >&5
  13016. +
  13017. + ac_cv_lib_socket_socket=no
  13018. fi
  13019. -rm -f conftest*
  13020. -LIBS="$ac_save_LIBS"
  13021. +rm -rf conftest.dSYM
  13022. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13023. + conftest$ac_exeext conftest.$ac_ext
  13024. +LIBS=$ac_check_lib_save_LIBS
  13025. fi
  13026. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13027. - echo "$ac_t""yes" 1>&6
  13028. - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  13029. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  13030. - cat >> confdefs.h <<EOF
  13031. -#define $ac_tr_lib 1
  13032. -EOF
  13033. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  13034. +$as_echo "$ac_cv_lib_socket_socket" >&6; }
  13035. +if test "x$ac_cv_lib_socket_socket" = x""yes; then
  13036. + cat >>confdefs.h <<_ACEOF
  13037. +#define HAVE_LIBSOCKET 1
  13038. +_ACEOF
  13039. LIBS="-lsocket $LIBS"
  13040. else
  13041. - echo "$ac_t""no" 1>&6
  13042. -{ echo "configure: error: libsocket not found." 1>&2; exit 1; }
  13043. + { { $as_echo "$as_me:$LINENO: error: libsocket not found." >&5
  13044. +$as_echo "$as_me: error: libsocket not found." >&2;}
  13045. + { (exit 1); exit 1; }; }
  13046. fi
  13047. - echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  13048. -echo "configure:1773: checking for gethostbyname in -lnsl" >&5
  13049. -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  13050. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13051. - echo $ac_n "(cached) $ac_c" 1>&6
  13052. +
  13053. +{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  13054. +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  13055. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  13056. + $as_echo_n "(cached) " >&6
  13057. else
  13058. - ac_save_LIBS="$LIBS"
  13059. + ac_check_lib_save_LIBS=$LIBS
  13060. LIBS="-lnsl $LIBS"
  13061. -cat > conftest.$ac_ext <<EOF
  13062. -#line 1781 "configure"
  13063. -#include "confdefs.h"
  13064. -/* Override any gcc2 internal prototype to avoid an error. */
  13065. -/* We use char because int might match the return type of a gcc2
  13066. - builtin and then its argument prototype would still apply. */
  13067. -char gethostbyname();
  13068. +cat >conftest.$ac_ext <<_ACEOF
  13069. +/* confdefs.h. */
  13070. +_ACEOF
  13071. +cat confdefs.h >>conftest.$ac_ext
  13072. +cat >>conftest.$ac_ext <<_ACEOF
  13073. +/* end confdefs.h. */
  13074. -int main() {
  13075. -gethostbyname()
  13076. -; return 0; }
  13077. -EOF
  13078. -if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13079. - rm -rf conftest*
  13080. - eval "ac_cv_lib_$ac_lib_var=yes"
  13081. +/* Override any GCC internal prototype to avoid an error.
  13082. + Use char because int might match the return type of a GCC
  13083. + builtin and then its argument prototype would still apply. */
  13084. +#ifdef __cplusplus
  13085. +extern "C"
  13086. +#endif
  13087. +char gethostbyname ();
  13088. +int
  13089. +main ()
  13090. +{
  13091. +return gethostbyname ();
  13092. + ;
  13093. + return 0;
  13094. +}
  13095. +_ACEOF
  13096. +rm -f conftest.$ac_objext conftest$ac_exeext
  13097. +if { (ac_try="$ac_link"
  13098. +case "(($ac_try" in
  13099. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13100. + *) ac_try_echo=$ac_try;;
  13101. +esac
  13102. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13103. +$as_echo "$ac_try_echo") >&5
  13104. + (eval "$ac_link") 2>conftest.er1
  13105. + ac_status=$?
  13106. + grep -v '^ *+' conftest.er1 >conftest.err
  13107. + rm -f conftest.er1
  13108. + cat conftest.err >&5
  13109. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13110. + (exit $ac_status); } && {
  13111. + test -z "$ac_c_werror_flag" ||
  13112. + test ! -s conftest.err
  13113. + } && test -s conftest$ac_exeext && {
  13114. + test "$cross_compiling" = yes ||
  13115. + $as_test_x conftest$ac_exeext
  13116. + }; then
  13117. + ac_cv_lib_nsl_gethostbyname=yes
  13118. else
  13119. - echo "configure: failed program was:" >&5
  13120. - cat conftest.$ac_ext >&5
  13121. - rm -rf conftest*
  13122. - eval "ac_cv_lib_$ac_lib_var=no"
  13123. + $as_echo "$as_me: failed program was:" >&5
  13124. +sed 's/^/| /' conftest.$ac_ext >&5
  13125. +
  13126. + ac_cv_lib_nsl_gethostbyname=no
  13127. fi
  13128. -rm -f conftest*
  13129. -LIBS="$ac_save_LIBS"
  13130. +rm -rf conftest.dSYM
  13131. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13132. + conftest$ac_exeext conftest.$ac_ext
  13133. +LIBS=$ac_check_lib_save_LIBS
  13134. fi
  13135. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13136. - echo "$ac_t""yes" 1>&6
  13137. - ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  13138. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  13139. - cat >> confdefs.h <<EOF
  13140. -#define $ac_tr_lib 1
  13141. -EOF
  13142. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  13143. +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  13144. +if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
  13145. + cat >>confdefs.h <<_ACEOF
  13146. +#define HAVE_LIBNSL 1
  13147. +_ACEOF
  13148. LIBS="-lnsl $LIBS"
  13149. else
  13150. - echo "$ac_t""no" 1>&6
  13151. -{ echo "configure: error: libnsl not found." 1>&2; exit 1; }
  13152. + { { $as_echo "$as_me:$LINENO: error: libnsl not found." >&5
  13153. +$as_echo "$as_me: error: libnsl not found." >&2;}
  13154. + { (exit 1); exit 1; }; }
  13155. fi
  13156. case "`uname -r`" in
  13157. 5.4)
  13158. - cat >> confdefs.h <<\EOF
  13159. + cat >>confdefs.h <<\_ACEOF
  13160. #define STUPID_SOLARIS_CHECKSUM_BUG 1
  13161. -EOF
  13162. +_ACEOF
  13163. ;;
  13164. 5.5*)
  13165. - cat >> confdefs.h <<\EOF
  13166. + cat >>confdefs.h <<\_ACEOF
  13167. #define STUPID_SOLARIS_CHECKSUM_BUG 1
  13168. -EOF
  13169. +_ACEOF
  13170. ;;
  13171. @@ -1842,73 +12387,114 @@ EOF
  13172. ;;
  13173. *)
  13174. - echo "configure: warning: apparently your OS is not officially supported yet" 1>&2
  13175. - echo "configure: warning: this may not work" 1>&2
  13176. - echo "$ac_t""you'll have to edit the makefile by hand" 1>&6
  13177. - echo "$ac_t""please send diffs to mike@infonexus.com" 1>&6
  13178. + { $as_echo "$as_me:$LINENO: WARNING: apparently your OS is not officially supported yet" >&5
  13179. +$as_echo "$as_me: WARNING: apparently your OS is not officially supported yet" >&2;}
  13180. + { $as_echo "$as_me:$LINENO: WARNING: this may not work" >&5
  13181. +$as_echo "$as_me: WARNING: this may not work" >&2;}
  13182. + { $as_echo "$as_me:$LINENO: result: you'll have to edit the makefile by hand" >&5
  13183. +$as_echo "you'll have to edit the makefile by hand" >&6; }
  13184. + { $as_echo "$as_me:$LINENO: result: please send diffs to mike@infonexus.com" >&5
  13185. +$as_echo "please send diffs to mike@infonexus.com" >&6; }
  13186. ;;
  13187. esac
  13188. - echo $ac_n "checking for libnet_build_ip in -lnet""... $ac_c" 1>&6
  13189. -echo "configure:1856: checking for libnet_build_ip in -lnet" >&5
  13190. -ac_lib_var=`echo net'_'libnet_build_ip | sed 'y%./+-%__p_%'`
  13191. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13192. - echo $ac_n "(cached) $ac_c" 1>&6
  13193. + { $as_echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5
  13194. +$as_echo_n "checking for libnet_build_ip in -lnet... " >&6; }
  13195. +if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then
  13196. + $as_echo_n "(cached) " >&6
  13197. else
  13198. - ac_save_LIBS="$LIBS"
  13199. + ac_check_lib_save_LIBS=$LIBS
  13200. LIBS="-lnet $LIBS"
  13201. -cat > conftest.$ac_ext <<EOF
  13202. -#line 1864 "configure"
  13203. -#include "confdefs.h"
  13204. -/* Override any gcc2 internal prototype to avoid an error. */
  13205. -/* We use char because int might match the return type of a gcc2
  13206. - builtin and then its argument prototype would still apply. */
  13207. -char libnet_build_ip();
  13208. +cat >conftest.$ac_ext <<_ACEOF
  13209. +/* confdefs.h. */
  13210. +_ACEOF
  13211. +cat confdefs.h >>conftest.$ac_ext
  13212. +cat >>conftest.$ac_ext <<_ACEOF
  13213. +/* end confdefs.h. */
  13214. -int main() {
  13215. -libnet_build_ip()
  13216. -; return 0; }
  13217. -EOF
  13218. -if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13219. - rm -rf conftest*
  13220. - eval "ac_cv_lib_$ac_lib_var=yes"
  13221. +/* Override any GCC internal prototype to avoid an error.
  13222. + Use char because int might match the return type of a GCC
  13223. + builtin and then its argument prototype would still apply. */
  13224. +#ifdef __cplusplus
  13225. +extern "C"
  13226. +#endif
  13227. +char libnet_build_ip ();
  13228. +int
  13229. +main ()
  13230. +{
  13231. +return libnet_build_ip ();
  13232. + ;
  13233. + return 0;
  13234. +}
  13235. +_ACEOF
  13236. +rm -f conftest.$ac_objext conftest$ac_exeext
  13237. +if { (ac_try="$ac_link"
  13238. +case "(($ac_try" in
  13239. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13240. + *) ac_try_echo=$ac_try;;
  13241. +esac
  13242. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13243. +$as_echo "$ac_try_echo") >&5
  13244. + (eval "$ac_link") 2>conftest.er1
  13245. + ac_status=$?
  13246. + grep -v '^ *+' conftest.er1 >conftest.err
  13247. + rm -f conftest.er1
  13248. + cat conftest.err >&5
  13249. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13250. + (exit $ac_status); } && {
  13251. + test -z "$ac_c_werror_flag" ||
  13252. + test ! -s conftest.err
  13253. + } && test -s conftest$ac_exeext && {
  13254. + test "$cross_compiling" = yes ||
  13255. + $as_test_x conftest$ac_exeext
  13256. + }; then
  13257. + ac_cv_lib_net_libnet_build_ip=yes
  13258. else
  13259. - echo "configure: failed program was:" >&5
  13260. - cat conftest.$ac_ext >&5
  13261. - rm -rf conftest*
  13262. - eval "ac_cv_lib_$ac_lib_var=no"
  13263. + $as_echo "$as_me: failed program was:" >&5
  13264. +sed 's/^/| /' conftest.$ac_ext >&5
  13265. +
  13266. + ac_cv_lib_net_libnet_build_ip=no
  13267. fi
  13268. -rm -f conftest*
  13269. -LIBS="$ac_save_LIBS"
  13270. +rm -rf conftest.dSYM
  13271. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13272. + conftest$ac_exeext conftest.$ac_ext
  13273. +LIBS=$ac_check_lib_save_LIBS
  13274. fi
  13275. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13276. - echo "$ac_t""yes" 1>&6
  13277. - echo $ac_n "checking version""... $ac_c" 1>&6
  13278. -echo "configure:1891: checking version" >&5 \
  13279. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_net_libnet_build_ip" >&5
  13280. +$as_echo "$ac_cv_lib_net_libnet_build_ip" >&6; }
  13281. +if test "x$ac_cv_lib_net_libnet_build_ip" = x""yes; then
  13282. + { $as_echo "$as_me:$LINENO: checking version" >&5
  13283. +$as_echo_n "checking version... " >&6; } \
  13284. if [ ! -f $LIB_PREFIX/libnet.a ] ; then
  13285. - echo "$ac_t""$LIB_PREFIX/libnet.a doesn't exist" 1>&6
  13286. - echo "$ac_t""previous libnet install lives elsewhere" 1>&6
  13287. + { $as_echo "$as_me:$LINENO: result: $LIB_PREFIX/libnet.a doesn't exist" >&5
  13288. +$as_echo "$LIB_PREFIX/libnet.a doesn't exist" >&6; }
  13289. + { $as_echo "$as_me:$LINENO: result: previous libnet install lives elsewhere" >&5
  13290. +$as_echo "previous libnet install lives elsewhere" >&6; }
  13291. else
  13292. __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
  13293. | cut -f3 -d" "`;\
  13294. if test -z "$__LIBNET_VERSION"; then
  13295. - echo "$ac_t""<0.8" 1>&6
  13296. + { $as_echo "$as_me:$LINENO: result: <0.8" >&5
  13297. +$as_echo "<0.8" >&6; }
  13298. else
  13299. - echo "$ac_t""$__LIBNET_VERSION" 1>&6
  13300. + { $as_echo "$as_me:$LINENO: result: $__LIBNET_VERSION" >&5
  13301. +$as_echo "$__LIBNET_VERSION" >&6; }
  13302. fi
  13303. fi\
  13304. -
  13305. -else
  13306. - echo "$ac_t""no" 1>&6
  13307. +
  13308. fi
  13309. -echo $ac_n "checking machine endianess""... $ac_c" 1>&6
  13310. -echo "configure:1912: checking machine endianess" >&5
  13311. +{ $as_echo "$as_me:$LINENO: checking machine endianess" >&5
  13312. +$as_echo_n "checking machine endianess... " >&6; }
  13313. + if test "${ac_cv_libnet_endianess+set}" = set; then
  13314. + $as_echo_n "(cached) " >&6
  13315. +else
  13316. +
  13317. cat > conftest.c << EOF
  13318. # include <stdio.h>
  13319. @@ -1957,30 +12543,34 @@ EOF
  13320. ac_cv_libnet_endianess=lil
  13321. else
  13322. ac_cv_libnet_endianess=unknown
  13323. - fi
  13324. + fi
  13325. fi
  13326. rm -f conftest* core core.conftest
  13327. - echo "$ac_t""$ac_cv_libnet_endianess" 1>&6
  13328. +
  13329. +fi
  13330. +
  13331. + { $as_echo "$as_me:$LINENO: result: $ac_cv_libnet_endianess" >&5
  13332. +$as_echo "$ac_cv_libnet_endianess" >&6; }
  13333. if test $ac_cv_libnet_endianess = big ; then
  13334. - cat >> confdefs.h <<\EOF
  13335. + cat >>confdefs.h <<\_ACEOF
  13336. #define LIBNET_BIG_ENDIAN 1
  13337. -EOF
  13338. +_ACEOF
  13339. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
  13340. elif test $ac_cv_libnet_endianess = lil ; then
  13341. - cat >> confdefs.h <<\EOF
  13342. + cat >>confdefs.h <<\_ACEOF
  13343. #define LIBNET_LIL_ENDIAN 1
  13344. -EOF
  13345. +_ACEOF
  13346. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
  13347. fi
  13348. -
  13349. -echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
  13350. -echo "configure:1982: checking if unaligned accesses fail" >&5
  13351. - if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
  13352. - echo $ac_n "(cached) $ac_c" 1>&6
  13353. +
  13354. +{ $as_echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
  13355. +$as_echo_n "checking if unaligned accesses fail... " >&6; }
  13356. + if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
  13357. + $as_echo_n "(cached) " >&6
  13358. else
  13359. case "$target_cpu" in
  13360. @@ -2039,446 +12629,2497 @@ EOF
  13361. esac
  13362. fi
  13363. - echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
  13364. + { $as_echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
  13365. +$as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
  13366. if test $ac_cv_lbl_unaligned_fail = yes ; then
  13367. - cat >> confdefs.h <<\EOF
  13368. + cat >>confdefs.h <<\_ACEOF
  13369. #define LBL_ALIGN 1
  13370. -EOF
  13371. +_ACEOF
  13372. fi
  13373. -for ac_hdr in sys/sockio.h
  13374. +
  13375. +for ac_header in sys/sockio.h
  13376. do
  13377. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  13378. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  13379. -echo "configure:2056: checking for $ac_hdr" >&5
  13380. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  13381. - echo $ac_n "(cached) $ac_c" 1>&6
  13382. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13383. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13384. + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13385. +$as_echo_n "checking for $ac_header... " >&6; }
  13386. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13387. + $as_echo_n "(cached) " >&6
  13388. +fi
  13389. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  13390. + $as_echo "$as_val"'`
  13391. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13392. +$as_echo "$ac_res" >&6; }
  13393. else
  13394. - cat > conftest.$ac_ext <<EOF
  13395. -#line 2061 "configure"
  13396. -#include "confdefs.h"
  13397. -#include <$ac_hdr>
  13398. -EOF
  13399. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  13400. -{ (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  13401. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  13402. -if test -z "$ac_err"; then
  13403. - rm -rf conftest*
  13404. - eval "ac_cv_header_$ac_safe=yes"
  13405. + # Is the header compilable?
  13406. +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13407. +$as_echo_n "checking $ac_header usability... " >&6; }
  13408. +cat >conftest.$ac_ext <<_ACEOF
  13409. +/* confdefs.h. */
  13410. +_ACEOF
  13411. +cat confdefs.h >>conftest.$ac_ext
  13412. +cat >>conftest.$ac_ext <<_ACEOF
  13413. +/* end confdefs.h. */
  13414. +$ac_includes_default
  13415. +#include <$ac_header>
  13416. +_ACEOF
  13417. +rm -f conftest.$ac_objext
  13418. +if { (ac_try="$ac_compile"
  13419. +case "(($ac_try" in
  13420. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13421. + *) ac_try_echo=$ac_try;;
  13422. +esac
  13423. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13424. +$as_echo "$ac_try_echo") >&5
  13425. + (eval "$ac_compile") 2>conftest.er1
  13426. + ac_status=$?
  13427. + grep -v '^ *+' conftest.er1 >conftest.err
  13428. + rm -f conftest.er1
  13429. + cat conftest.err >&5
  13430. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13431. + (exit $ac_status); } && {
  13432. + test -z "$ac_c_werror_flag" ||
  13433. + test ! -s conftest.err
  13434. + } && test -s conftest.$ac_objext; then
  13435. + ac_header_compiler=yes
  13436. else
  13437. - echo "$ac_err" >&5
  13438. - echo "configure: failed program was:" >&5
  13439. - cat conftest.$ac_ext >&5
  13440. - rm -rf conftest*
  13441. - eval "ac_cv_header_$ac_safe=no"
  13442. + $as_echo "$as_me: failed program was:" >&5
  13443. +sed 's/^/| /' conftest.$ac_ext >&5
  13444. +
  13445. + ac_header_compiler=no
  13446. fi
  13447. -rm -f conftest*
  13448. +
  13449. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13450. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13451. +$as_echo "$ac_header_compiler" >&6; }
  13452. +
  13453. +# Is the header present?
  13454. +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13455. +$as_echo_n "checking $ac_header presence... " >&6; }
  13456. +cat >conftest.$ac_ext <<_ACEOF
  13457. +/* confdefs.h. */
  13458. +_ACEOF
  13459. +cat confdefs.h >>conftest.$ac_ext
  13460. +cat >>conftest.$ac_ext <<_ACEOF
  13461. +/* end confdefs.h. */
  13462. +#include <$ac_header>
  13463. +_ACEOF
  13464. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  13465. +case "(($ac_try" in
  13466. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13467. + *) ac_try_echo=$ac_try;;
  13468. +esac
  13469. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13470. +$as_echo "$ac_try_echo") >&5
  13471. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13472. + ac_status=$?
  13473. + grep -v '^ *+' conftest.er1 >conftest.err
  13474. + rm -f conftest.er1
  13475. + cat conftest.err >&5
  13476. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13477. + (exit $ac_status); } >/dev/null && {
  13478. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13479. + test ! -s conftest.err
  13480. + }; then
  13481. + ac_header_preproc=yes
  13482. +else
  13483. + $as_echo "$as_me: failed program was:" >&5
  13484. +sed 's/^/| /' conftest.$ac_ext >&5
  13485. +
  13486. + ac_header_preproc=no
  13487. fi
  13488. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  13489. - echo "$ac_t""yes" 1>&6
  13490. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  13491. - cat >> confdefs.h <<EOF
  13492. -#define $ac_tr_hdr 1
  13493. -EOF
  13494. -
  13495. +
  13496. +rm -f conftest.err conftest.$ac_ext
  13497. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13498. +$as_echo "$ac_header_preproc" >&6; }
  13499. +
  13500. +# So? What about this header?
  13501. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  13502. + yes:no: )
  13503. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13504. +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13505. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13506. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13507. + ac_header_preproc=yes
  13508. + ;;
  13509. + no:yes:* )
  13510. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13511. +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13512. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13513. +$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13514. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13515. +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13516. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13517. +$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13518. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13519. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13520. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13521. +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13522. +
  13523. + ;;
  13524. +esac
  13525. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13526. +$as_echo_n "checking for $ac_header... " >&6; }
  13527. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13528. + $as_echo_n "(cached) " >&6
  13529. else
  13530. - echo "$ac_t""no" 1>&6
  13531. + eval "$as_ac_Header=\$ac_header_preproc"
  13532. +fi
  13533. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  13534. + $as_echo "$as_val"'`
  13535. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13536. +$as_echo "$ac_res" >&6; }
  13537. +
  13538. +fi
  13539. +as_val=`eval 'as_val=${'$as_ac_Header'}
  13540. + $as_echo "$as_val"'`
  13541. + if test "x$as_val" = x""yes; then
  13542. + cat >>confdefs.h <<_ACEOF
  13543. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13544. +_ACEOF
  13545. +
  13546. fi
  13547. +
  13548. done
  13549. +ac_config_headers="$ac_config_headers include/config.h"
  13550. -trap '' 1 2 15
  13551. -cat > confcache <<\EOF
  13552. +ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile include/libnet/Makefile libnet-config"
  13553. +
  13554. +cat >confcache <<\_ACEOF
  13555. # This file is a shell script that caches the results of configure
  13556. # tests run on this system so they can be shared between configure
  13557. -# scripts and configure runs. It is not useful on other systems.
  13558. -# If it contains results you don't want to keep, you may remove or edit it.
  13559. +# scripts and configure runs, see configure's option --config-cache.
  13560. +# It is not useful on other systems. If it contains results you don't
  13561. +# want to keep, you may remove or edit it.
  13562. #
  13563. -# By default, configure uses ./config.cache as the cache file,
  13564. -# creating it if it does not exist already. You can give configure
  13565. -# the --cache-file=FILE option to use a different cache file; that is
  13566. -# what configure does when it calls configure scripts in
  13567. -# subdirectories, so they share the cache.
  13568. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  13569. -# config.status only pays attention to the cache file if you give it the
  13570. -# --recheck option to rerun configure.
  13571. +# config.status only pays attention to the cache file if you give it
  13572. +# the --recheck option to rerun configure.
  13573. #
  13574. -EOF
  13575. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  13576. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  13577. +# following values.
  13578. +
  13579. +_ACEOF
  13580. +
  13581. # The following way of writing the cache mishandles newlines in values,
  13582. # but we know of no workaround that is simple, portable, and efficient.
  13583. -# So, don't put newlines in cache variables' values.
  13584. +# So, we kill variables containing newlines.
  13585. # Ultrix sh set writes to stderr and can't be redirected directly,
  13586. # and sets the high bit in the cache file unless we assign to the vars.
  13587. -(set) 2>&1 |
  13588. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  13589. - *ac_space=\ *)
  13590. - # `set' does not quote correctly, so add quotes (double-quote substitution
  13591. - # turns \\\\ into \\, and sed turns \\ into \).
  13592. - sed -n \
  13593. - -e "s/'/'\\\\''/g" \
  13594. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  13595. - ;;
  13596. - *)
  13597. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  13598. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  13599. - ;;
  13600. - esac >> confcache
  13601. -if cmp -s $cache_file confcache; then
  13602. - :
  13603. -else
  13604. - if test -w $cache_file; then
  13605. - echo "updating cache $cache_file"
  13606. - cat confcache > $cache_file
  13607. +(
  13608. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13609. + eval ac_val=\$$ac_var
  13610. + case $ac_val in #(
  13611. + *${as_nl}*)
  13612. + case $ac_var in #(
  13613. + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  13614. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13615. + esac
  13616. + case $ac_var in #(
  13617. + _ | IFS | as_nl) ;; #(
  13618. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13619. + *) $as_unset $ac_var ;;
  13620. + esac ;;
  13621. + esac
  13622. + done
  13623. +
  13624. + (set) 2>&1 |
  13625. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13626. + *${as_nl}ac_space=\ *)
  13627. + # `set' does not quote correctly, so add quotes (double-quote
  13628. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  13629. + sed -n \
  13630. + "s/'/'\\\\''/g;
  13631. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13632. + ;; #(
  13633. + *)
  13634. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  13635. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13636. + ;;
  13637. + esac |
  13638. + sort
  13639. +) |
  13640. + sed '
  13641. + /^ac_cv_env_/b end
  13642. + t clear
  13643. + :clear
  13644. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13645. + t end
  13646. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13647. + :end' >>confcache
  13648. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13649. + if test -w "$cache_file"; then
  13650. + test "x$cache_file" != "x/dev/null" &&
  13651. + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  13652. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  13653. + cat confcache >$cache_file
  13654. else
  13655. - echo "not updating unwritable cache $cache_file"
  13656. + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  13657. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13658. fi
  13659. fi
  13660. rm -f confcache
  13661. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  13662. -
  13663. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13664. # Let make expand exec_prefix.
  13665. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13666. -# Any assignment to VPATH causes Sun make to only execute
  13667. -# the first set of double-colon rules, so remove it if not needed.
  13668. -# If there is a colon in the path, we need to keep it.
  13669. -if test "x$srcdir" = x.; then
  13670. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  13671. -fi
  13672. +DEFS=-DHAVE_CONFIG_H
  13673. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  13674. +ac_libobjs=
  13675. +ac_ltlibobjs=
  13676. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13677. + # 1. Remove the extension, and $U if already installed.
  13678. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13679. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13680. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13681. + # will be set to the directory where LIBOBJS objects are built.
  13682. + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13683. + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  13684. +done
  13685. +LIBOBJS=$ac_libobjs
  13686. -DEFS=-DHAVE_CONFIG_H
  13687. +LTLIBOBJS=$ac_ltlibobjs
  13688. -# Without the "./", some shells look in PATH for config.status.
  13689. -: ${CONFIG_STATUS=./config.status}
  13690. -echo creating $CONFIG_STATUS
  13691. -rm -f $CONFIG_STATUS
  13692. -cat > $CONFIG_STATUS <<EOF
  13693. -#! /bin/sh
  13694. -# Generated automatically by configure.
  13695. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13696. + { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  13697. +Usually this means the macro was only invoked conditionally." >&5
  13698. +$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  13699. +Usually this means the macro was only invoked conditionally." >&2;}
  13700. + { (exit 1); exit 1; }; }
  13701. +fi
  13702. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13703. + { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  13704. +Usually this means the macro was only invoked conditionally." >&5
  13705. +$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  13706. +Usually this means the macro was only invoked conditionally." >&2;}
  13707. + { (exit 1); exit 1; }; }
  13708. +fi
  13709. +
  13710. +: ${CONFIG_STATUS=./config.status}
  13711. +ac_write_fail=0
  13712. +ac_clean_files_save=$ac_clean_files
  13713. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13714. +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  13715. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13716. +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13717. +#! $SHELL
  13718. +# Generated by $as_me.
  13719. # Run this file to recreate the current configuration.
  13720. -# This directory was configured as follows,
  13721. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13722. -#
  13723. -# $0 $ac_configure_args
  13724. -#
  13725. # Compiler output produced by configure, useful for debugging
  13726. -# configure, is in ./config.log if it exists.
  13727. +# configure, is in config.log if it exists.
  13728. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  13729. -for ac_option
  13730. +debug=false
  13731. +ac_cs_recheck=false
  13732. +ac_cs_silent=false
  13733. +SHELL=\${CONFIG_SHELL-$SHELL}
  13734. +_ACEOF
  13735. +
  13736. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13737. +## --------------------- ##
  13738. +## M4sh Initialization. ##
  13739. +## --------------------- ##
  13740. +
  13741. +# Be more Bourne compatible
  13742. +DUALCASE=1; export DUALCASE # for MKS sh
  13743. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13744. + emulate sh
  13745. + NULLCMD=:
  13746. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13747. + # is contrary to our usage. Disable this feature.
  13748. + alias -g '${1+"$@"}'='"$@"'
  13749. + setopt NO_GLOB_SUBST
  13750. +else
  13751. + case `(set -o) 2>/dev/null` in
  13752. + *posix*) set -o posix ;;
  13753. +esac
  13754. +
  13755. +fi
  13756. +
  13757. +
  13758. +
  13759. +
  13760. +# PATH needs CR
  13761. +# Avoid depending upon Character Ranges.
  13762. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13763. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13764. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13765. +as_cr_digits='0123456789'
  13766. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  13767. +
  13768. +as_nl='
  13769. +'
  13770. +export as_nl
  13771. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  13772. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13773. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13774. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13775. +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13776. + as_echo='printf %s\n'
  13777. + as_echo_n='printf %s'
  13778. +else
  13779. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13780. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13781. + as_echo_n='/usr/ucb/echo -n'
  13782. + else
  13783. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13784. + as_echo_n_body='eval
  13785. + arg=$1;
  13786. + case $arg in
  13787. + *"$as_nl"*)
  13788. + expr "X$arg" : "X\\(.*\\)$as_nl";
  13789. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13790. + esac;
  13791. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13792. + '
  13793. + export as_echo_n_body
  13794. + as_echo_n='sh -c $as_echo_n_body as_echo'
  13795. + fi
  13796. + export as_echo_body
  13797. + as_echo='sh -c $as_echo_body as_echo'
  13798. +fi
  13799. +
  13800. +# The user is always right.
  13801. +if test "${PATH_SEPARATOR+set}" != set; then
  13802. + PATH_SEPARATOR=:
  13803. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13804. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13805. + PATH_SEPARATOR=';'
  13806. + }
  13807. +fi
  13808. +
  13809. +# Support unset when possible.
  13810. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  13811. + as_unset=unset
  13812. +else
  13813. + as_unset=false
  13814. +fi
  13815. +
  13816. +
  13817. +# IFS
  13818. +# We need space, tab and new line, in precisely that order. Quoting is
  13819. +# there to prevent editors from complaining about space-tab.
  13820. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13821. +# splitting by setting IFS to empty value.)
  13822. +IFS=" "" $as_nl"
  13823. +
  13824. +# Find who we are. Look in the path if we contain no directory separator.
  13825. +case $0 in
  13826. + *[\\/]* ) as_myself=$0 ;;
  13827. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13828. +for as_dir in $PATH
  13829. do
  13830. - case "\$ac_option" in
  13831. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13832. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  13833. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  13834. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  13835. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  13836. - exit 0 ;;
  13837. - -help | --help | --hel | --he | --h)
  13838. - echo "\$ac_cs_usage"; exit 0 ;;
  13839. - *) echo "\$ac_cs_usage"; exit 1 ;;
  13840. - esac
  13841. + IFS=$as_save_IFS
  13842. + test -z "$as_dir" && as_dir=.
  13843. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13844. done
  13845. +IFS=$as_save_IFS
  13846. -ac_given_srcdir=$srcdir
  13847. -ac_given_INSTALL="$INSTALL"
  13848. + ;;
  13849. +esac
  13850. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  13851. +# in which case we are not to be found in the path.
  13852. +if test "x$as_myself" = x; then
  13853. + as_myself=$0
  13854. +fi
  13855. +if test ! -f "$as_myself"; then
  13856. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13857. + { (exit 1); exit 1; }
  13858. +fi
  13859. -trap 'rm -fr `echo "Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
  13860. - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
  13861. - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
  13862. - libnet-config include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  13863. -EOF
  13864. -cat >> $CONFIG_STATUS <<EOF
  13865. +# Work around bugs in pre-3.0 UWIN ksh.
  13866. +for as_var in ENV MAIL MAILPATH
  13867. +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  13868. +done
  13869. +PS1='$ '
  13870. +PS2='> '
  13871. +PS4='+ '
  13872. -# Protect against being on the right side of a sed subst in config.status.
  13873. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  13874. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  13875. -$ac_vpsub
  13876. -$extrasub
  13877. -s%@SHELL@%$SHELL%g
  13878. -s%@CFLAGS@%$CFLAGS%g
  13879. -s%@CPPFLAGS@%$CPPFLAGS%g
  13880. -s%@CXXFLAGS@%$CXXFLAGS%g
  13881. -s%@FFLAGS@%$FFLAGS%g
  13882. -s%@DEFS@%$DEFS%g
  13883. -s%@LDFLAGS@%$LDFLAGS%g
  13884. -s%@LIBS@%$LIBS%g
  13885. -s%@exec_prefix@%$exec_prefix%g
  13886. -s%@prefix@%$prefix%g
  13887. -s%@program_transform_name@%$program_transform_name%g
  13888. -s%@bindir@%$bindir%g
  13889. -s%@sbindir@%$sbindir%g
  13890. -s%@libexecdir@%$libexecdir%g
  13891. -s%@datadir@%$datadir%g
  13892. -s%@sysconfdir@%$sysconfdir%g
  13893. -s%@sharedstatedir@%$sharedstatedir%g
  13894. -s%@localstatedir@%$localstatedir%g
  13895. -s%@libdir@%$libdir%g
  13896. -s%@includedir@%$includedir%g
  13897. -s%@oldincludedir@%$oldincludedir%g
  13898. -s%@infodir@%$infodir%g
  13899. -s%@mandir@%$mandir%g
  13900. -s%@LL_INT_TYPE_UC@%$LL_INT_TYPE_UC%g
  13901. -s%@LL_INT_TYPE@%$LL_INT_TYPE%g
  13902. -s%@LIB_PREFIX@%$LIB_PREFIX%g
  13903. -s%@INC_PREFIX@%$INC_PREFIX%g
  13904. -s%@MAN_PREFIX@%$MAN_PREFIX%g
  13905. -s%@BIN_PREFIX@%$BIN_PREFIX%g
  13906. -s%@RANLIB@%$RANLIB%g
  13907. -s%@AR@%$AR%g
  13908. -s%@LN@%$LN%g
  13909. -s%@ADDITIONAL_LIBS@%$ADDITIONAL_LIBS%g
  13910. -s%@LIBNET_CONFIG_DEFINES@%$LIBNET_CONFIG_DEFINES%g
  13911. -s%@LIBNET_CONFIG_LIBS@%$LIBNET_CONFIG_LIBS%g
  13912. -s%@LIBNET_CONFIG_CFLAGS@%$LIBNET_CONFIG_CFLAGS%g
  13913. -s%@host@%$host%g
  13914. -s%@host_alias@%$host_alias%g
  13915. -s%@host_cpu@%$host_cpu%g
  13916. -s%@host_vendor@%$host_vendor%g
  13917. -s%@host_os@%$host_os%g
  13918. -s%@target@%$target%g
  13919. -s%@target_alias@%$target_alias%g
  13920. -s%@target_cpu@%$target_cpu%g
  13921. -s%@target_vendor@%$target_vendor%g
  13922. -s%@target_os@%$target_os%g
  13923. -s%@build@%$build%g
  13924. -s%@build_alias@%$build_alias%g
  13925. -s%@build_cpu@%$build_cpu%g
  13926. -s%@build_vendor@%$build_vendor%g
  13927. -s%@build_os@%$build_os%g
  13928. -s%@CC@%$CC%g
  13929. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  13930. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  13931. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  13932. -s%@SET_MAKE@%$SET_MAKE%g
  13933. -s%@CPP@%$CPP%g
  13934. +# NLS nuisances.
  13935. +LC_ALL=C
  13936. +export LC_ALL
  13937. +LANGUAGE=C
  13938. +export LANGUAGE
  13939. -CEOF
  13940. -EOF
  13941. +# Required to use basename.
  13942. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  13943. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13944. + as_expr=expr
  13945. +else
  13946. + as_expr=false
  13947. +fi
  13948. -cat >> $CONFIG_STATUS <<\EOF
  13949. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13950. + as_basename=basename
  13951. +else
  13952. + as_basename=false
  13953. +fi
  13954. -# Split the substitutions into bite-sized pieces for seds with
  13955. -# small command number limits, like on Digital OSF/1 and HP-UX.
  13956. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  13957. -ac_file=1 # Number of current file.
  13958. -ac_beg=1 # First line for current file.
  13959. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  13960. -ac_more_lines=:
  13961. -ac_sed_cmds=""
  13962. -while $ac_more_lines; do
  13963. - if test $ac_beg -gt 1; then
  13964. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  13965. +
  13966. +# Name of the executable.
  13967. +as_me=`$as_basename -- "$0" ||
  13968. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13969. + X"$0" : 'X\(//\)$' \| \
  13970. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13971. +$as_echo X/"$0" |
  13972. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  13973. + s//\1/
  13974. + q
  13975. + }
  13976. + /^X\/\(\/\/\)$/{
  13977. + s//\1/
  13978. + q
  13979. + }
  13980. + /^X\/\(\/\).*/{
  13981. + s//\1/
  13982. + q
  13983. + }
  13984. + s/.*/./; q'`
  13985. +
  13986. +# CDPATH.
  13987. +$as_unset CDPATH
  13988. +
  13989. +
  13990. +
  13991. + as_lineno_1=$LINENO
  13992. + as_lineno_2=$LINENO
  13993. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  13994. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  13995. +
  13996. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  13997. + # uniformly replaced by the line number. The first 'sed' inserts a
  13998. + # line-number line after each line using $LINENO; the second 'sed'
  13999. + # does the real work. The second script uses 'N' to pair each
  14000. + # line-number line with the line containing $LINENO, and appends
  14001. + # trailing '-' during substitution so that $LINENO is not a special
  14002. + # case at line end.
  14003. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  14004. + # scripts with optimization help from Paolo Bonzini. Blame Lee
  14005. + # E. McMahon (1931-1989) for sed's syntax. :-)
  14006. + sed -n '
  14007. + p
  14008. + /[$]LINENO/=
  14009. + ' <$as_myself |
  14010. + sed '
  14011. + s/[$]LINENO.*/&-/
  14012. + t lineno
  14013. + b
  14014. + :lineno
  14015. + N
  14016. + :loop
  14017. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  14018. + t loop
  14019. + s/-\n.*//
  14020. + ' >$as_me.lineno &&
  14021. + chmod +x "$as_me.lineno" ||
  14022. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  14023. + { (exit 1); exit 1; }; }
  14024. +
  14025. + # Don't try to exec as it changes $[0], causing all sort of problems
  14026. + # (the dirname of $[0] is not the place where we might find the
  14027. + # original and so on. Autoconf is especially sensitive to this).
  14028. + . "./$as_me.lineno"
  14029. + # Exit status is that of the last command.
  14030. + exit
  14031. +}
  14032. +
  14033. +
  14034. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14035. + as_dirname=dirname
  14036. +else
  14037. + as_dirname=false
  14038. +fi
  14039. +
  14040. +ECHO_C= ECHO_N= ECHO_T=
  14041. +case `echo -n x` in
  14042. +-n*)
  14043. + case `echo 'x\c'` in
  14044. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14045. + *) ECHO_C='\c';;
  14046. + esac;;
  14047. +*)
  14048. + ECHO_N='-n';;
  14049. +esac
  14050. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  14051. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14052. + as_expr=expr
  14053. +else
  14054. + as_expr=false
  14055. +fi
  14056. +
  14057. +rm -f conf$$ conf$$.exe conf$$.file
  14058. +if test -d conf$$.dir; then
  14059. + rm -f conf$$.dir/conf$$.file
  14060. +else
  14061. + rm -f conf$$.dir
  14062. + mkdir conf$$.dir 2>/dev/null
  14063. +fi
  14064. +if (echo >conf$$.file) 2>/dev/null; then
  14065. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  14066. + as_ln_s='ln -s'
  14067. + # ... but there are two gotchas:
  14068. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14069. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14070. + # In both cases, we have to default to `cp -p'.
  14071. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14072. + as_ln_s='cp -p'
  14073. + elif ln conf$$.file conf$$ 2>/dev/null; then
  14074. + as_ln_s=ln
  14075. else
  14076. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  14077. + as_ln_s='cp -p'
  14078. fi
  14079. - if test ! -s conftest.s$ac_file; then
  14080. - ac_more_lines=false
  14081. - rm -f conftest.s$ac_file
  14082. +else
  14083. + as_ln_s='cp -p'
  14084. +fi
  14085. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14086. +rmdir conf$$.dir 2>/dev/null
  14087. +
  14088. +if mkdir -p . 2>/dev/null; then
  14089. + as_mkdir_p=:
  14090. +else
  14091. + test -d ./-p && rmdir ./-p
  14092. + as_mkdir_p=false
  14093. +fi
  14094. +
  14095. +if test -x / >/dev/null 2>&1; then
  14096. + as_test_x='test -x'
  14097. +else
  14098. + if ls -dL / >/dev/null 2>&1; then
  14099. + as_ls_L_option=L
  14100. else
  14101. - if test -z "$ac_sed_cmds"; then
  14102. - ac_sed_cmds="sed -f conftest.s$ac_file"
  14103. - else
  14104. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  14105. - fi
  14106. - ac_file=`expr $ac_file + 1`
  14107. - ac_beg=$ac_end
  14108. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  14109. + as_ls_L_option=
  14110. fi
  14111. + as_test_x='
  14112. + eval sh -c '\''
  14113. + if test -d "$1"; then
  14114. + test -d "$1/.";
  14115. + else
  14116. + case $1 in
  14117. + -*)set "./$1";;
  14118. + esac;
  14119. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  14120. + ???[sx]*):;;*)false;;esac;fi
  14121. + '\'' sh
  14122. + '
  14123. +fi
  14124. +as_executable_p=$as_test_x
  14125. +
  14126. +# Sed expression to map a string onto a valid CPP name.
  14127. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14128. +
  14129. +# Sed expression to map a string onto a valid variable name.
  14130. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14131. +
  14132. +
  14133. +exec 6>&1
  14134. +
  14135. +# Save the log message, to keep $[0] and so on meaningful, and to
  14136. +# report actual input values of CONFIG_FILES etc. instead of their
  14137. +# values after options handling.
  14138. +ac_log="
  14139. +This file was extended by $as_me, which was
  14140. +generated by GNU Autoconf 2.63. Invocation command line was
  14141. +
  14142. + CONFIG_FILES = $CONFIG_FILES
  14143. + CONFIG_HEADERS = $CONFIG_HEADERS
  14144. + CONFIG_LINKS = $CONFIG_LINKS
  14145. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  14146. + $ $0 $@
  14147. +
  14148. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14149. +"
  14150. +
  14151. +_ACEOF
  14152. +
  14153. +case $ac_config_files in *"
  14154. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  14155. +esac
  14156. +
  14157. +case $ac_config_headers in *"
  14158. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14159. +esac
  14160. +
  14161. +
  14162. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14163. +# Files that config.status was made for.
  14164. +config_files="$ac_config_files"
  14165. +config_headers="$ac_config_headers"
  14166. +config_commands="$ac_config_commands"
  14167. +
  14168. +_ACEOF
  14169. +
  14170. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14171. +ac_cs_usage="\
  14172. +\`$as_me' instantiates files from templates according to the
  14173. +current configuration.
  14174. +
  14175. +Usage: $0 [OPTION]... [FILE]...
  14176. +
  14177. + -h, --help print this help, then exit
  14178. + -V, --version print version number and configuration settings, then exit
  14179. + -q, --quiet, --silent
  14180. + do not print progress messages
  14181. + -d, --debug don't remove temporary files
  14182. + --recheck update $as_me by reconfiguring in the same conditions
  14183. + --file=FILE[:TEMPLATE]
  14184. + instantiate the configuration file FILE
  14185. + --header=FILE[:TEMPLATE]
  14186. + instantiate the configuration header FILE
  14187. +
  14188. +Configuration files:
  14189. +$config_files
  14190. +
  14191. +Configuration headers:
  14192. +$config_headers
  14193. +
  14194. +Configuration commands:
  14195. +$config_commands
  14196. +
  14197. +Report bugs to <bug-autoconf@gnu.org>."
  14198. +
  14199. +_ACEOF
  14200. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14201. +ac_cs_version="\\
  14202. +config.status
  14203. +configured by $0, generated by GNU Autoconf 2.63,
  14204. + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  14205. +
  14206. +Copyright (C) 2008 Free Software Foundation, Inc.
  14207. +This config.status script is free software; the Free Software Foundation
  14208. +gives unlimited permission to copy, distribute and modify it."
  14209. +
  14210. +ac_pwd='$ac_pwd'
  14211. +srcdir='$srcdir'
  14212. +INSTALL='$INSTALL'
  14213. +AWK='$AWK'
  14214. +test -n "\$AWK" || AWK=awk
  14215. +_ACEOF
  14216. +
  14217. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14218. +# The default lists apply if the user does not specify any file.
  14219. +ac_need_defaults=:
  14220. +while test $# != 0
  14221. +do
  14222. + case $1 in
  14223. + --*=*)
  14224. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14225. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14226. + ac_shift=:
  14227. + ;;
  14228. + *)
  14229. + ac_option=$1
  14230. + ac_optarg=$2
  14231. + ac_shift=shift
  14232. + ;;
  14233. + esac
  14234. +
  14235. + case $ac_option in
  14236. + # Handling of the options.
  14237. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14238. + ac_cs_recheck=: ;;
  14239. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14240. + $as_echo "$ac_cs_version"; exit ;;
  14241. + --debug | --debu | --deb | --de | --d | -d )
  14242. + debug=: ;;
  14243. + --file | --fil | --fi | --f )
  14244. + $ac_shift
  14245. + case $ac_optarg in
  14246. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14247. + esac
  14248. + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  14249. + ac_need_defaults=false;;
  14250. + --header | --heade | --head | --hea )
  14251. + $ac_shift
  14252. + case $ac_optarg in
  14253. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14254. + esac
  14255. + CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  14256. + ac_need_defaults=false;;
  14257. + --he | --h)
  14258. + # Conflict between --help and --header
  14259. + { $as_echo "$as_me: error: ambiguous option: $1
  14260. +Try \`$0 --help' for more information." >&2
  14261. + { (exit 1); exit 1; }; };;
  14262. + --help | --hel | -h )
  14263. + $as_echo "$ac_cs_usage"; exit ;;
  14264. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14265. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14266. + ac_cs_silent=: ;;
  14267. +
  14268. + # This is an error.
  14269. + -*) { $as_echo "$as_me: error: unrecognized option: $1
  14270. +Try \`$0 --help' for more information." >&2
  14271. + { (exit 1); exit 1; }; } ;;
  14272. +
  14273. + *) ac_config_targets="$ac_config_targets $1"
  14274. + ac_need_defaults=false ;;
  14275. +
  14276. + esac
  14277. + shift
  14278. done
  14279. -if test -z "$ac_sed_cmds"; then
  14280. - ac_sed_cmds=cat
  14281. +
  14282. +ac_configure_extra_args=
  14283. +
  14284. +if $ac_cs_silent; then
  14285. + exec 6>/dev/null
  14286. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  14287. fi
  14288. -EOF
  14289. -cat >> $CONFIG_STATUS <<EOF
  14290. +_ACEOF
  14291. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14292. +if \$ac_cs_recheck; then
  14293. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14294. + shift
  14295. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14296. + CONFIG_SHELL='$SHELL'
  14297. + export CONFIG_SHELL
  14298. + exec "\$@"
  14299. +fi
  14300. -CONFIG_FILES=\${CONFIG_FILES-"Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
  14301. - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
  14302. - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
  14303. - libnet-config"}
  14304. -EOF
  14305. -cat >> $CONFIG_STATUS <<\EOF
  14306. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  14307. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  14308. - case "$ac_file" in
  14309. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  14310. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14311. - *) ac_file_in="${ac_file}.in" ;;
  14312. +_ACEOF
  14313. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14314. +exec 5>>config.log
  14315. +{
  14316. + echo
  14317. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14318. +## Running $as_me. ##
  14319. +_ASBOX
  14320. + $as_echo "$ac_log"
  14321. +} >&5
  14322. +
  14323. +_ACEOF
  14324. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14325. +#
  14326. +# INIT-COMMANDS
  14327. +#
  14328. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14329. +
  14330. +
  14331. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  14332. +# if CDPATH is set.
  14333. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14334. +
  14335. +sed_quote_subst='$sed_quote_subst'
  14336. +double_quote_subst='$double_quote_subst'
  14337. +delay_variable_subst='$delay_variable_subst'
  14338. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  14339. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  14340. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  14341. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  14342. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  14343. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  14344. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14345. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  14346. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  14347. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14348. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  14349. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  14350. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  14351. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  14352. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  14353. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14354. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14355. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  14356. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  14357. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  14358. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  14359. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  14360. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  14361. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  14362. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  14363. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  14364. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14365. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14366. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  14367. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  14368. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  14369. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  14370. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14371. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  14372. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  14373. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14374. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14375. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14376. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  14377. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14378. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  14379. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  14380. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  14381. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  14382. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  14383. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14384. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  14385. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  14386. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  14387. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  14388. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14389. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  14390. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  14391. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  14392. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  14393. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  14394. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  14395. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  14396. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  14397. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  14398. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  14399. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  14400. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14401. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14402. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  14403. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  14404. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14405. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14406. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  14407. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14408. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14409. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14410. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14411. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14412. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14413. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14414. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14415. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14416. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14417. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14418. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  14419. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  14420. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  14421. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  14422. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14423. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  14424. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  14425. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  14426. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  14427. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  14428. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14429. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14430. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14431. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14432. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14433. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  14434. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14435. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  14436. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  14437. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14438. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14439. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  14440. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14441. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14442. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14443. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14444. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14445. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14446. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  14447. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  14448. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14449. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14450. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  14451. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  14452. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  14453. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  14454. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14455. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14456. +
  14457. +LTCC='$LTCC'
  14458. +LTCFLAGS='$LTCFLAGS'
  14459. +compiler='$compiler_DEFAULT'
  14460. +
  14461. +# Quote evaled strings.
  14462. +for var in SED \
  14463. +GREP \
  14464. +EGREP \
  14465. +FGREP \
  14466. +LD \
  14467. +NM \
  14468. +LN_S \
  14469. +lt_SP2NL \
  14470. +lt_NL2SP \
  14471. +reload_flag \
  14472. +OBJDUMP \
  14473. +deplibs_check_method \
  14474. +file_magic_cmd \
  14475. +AR \
  14476. +AR_FLAGS \
  14477. +STRIP \
  14478. +RANLIB \
  14479. +CC \
  14480. +CFLAGS \
  14481. +compiler \
  14482. +lt_cv_sys_global_symbol_pipe \
  14483. +lt_cv_sys_global_symbol_to_cdecl \
  14484. +lt_cv_sys_global_symbol_to_c_name_address \
  14485. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14486. +SHELL \
  14487. +ECHO \
  14488. +lt_prog_compiler_no_builtin_flag \
  14489. +lt_prog_compiler_wl \
  14490. +lt_prog_compiler_pic \
  14491. +lt_prog_compiler_static \
  14492. +lt_cv_prog_compiler_c_o \
  14493. +need_locks \
  14494. +DSYMUTIL \
  14495. +NMEDIT \
  14496. +LIPO \
  14497. +OTOOL \
  14498. +OTOOL64 \
  14499. +shrext_cmds \
  14500. +export_dynamic_flag_spec \
  14501. +whole_archive_flag_spec \
  14502. +compiler_needs_object \
  14503. +with_gnu_ld \
  14504. +allow_undefined_flag \
  14505. +no_undefined_flag \
  14506. +hardcode_libdir_flag_spec \
  14507. +hardcode_libdir_flag_spec_ld \
  14508. +hardcode_libdir_separator \
  14509. +fix_srcfile_path \
  14510. +exclude_expsyms \
  14511. +include_expsyms \
  14512. +file_list_spec \
  14513. +variables_saved_for_relink \
  14514. +libname_spec \
  14515. +library_names_spec \
  14516. +soname_spec \
  14517. +finish_eval \
  14518. +old_striplib \
  14519. +striplib; do
  14520. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14521. + *[\\\\\\\`\\"\\\$]*)
  14522. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14523. + ;;
  14524. + *)
  14525. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14526. + ;;
  14527. + esac
  14528. +done
  14529. +
  14530. +# Double-quote double-evaled strings.
  14531. +for var in reload_cmds \
  14532. +old_postinstall_cmds \
  14533. +old_postuninstall_cmds \
  14534. +old_archive_cmds \
  14535. +extract_expsyms_cmds \
  14536. +old_archive_from_new_cmds \
  14537. +old_archive_from_expsyms_cmds \
  14538. +archive_cmds \
  14539. +archive_expsym_cmds \
  14540. +module_cmds \
  14541. +module_expsym_cmds \
  14542. +export_symbols_cmds \
  14543. +prelink_cmds \
  14544. +postinstall_cmds \
  14545. +postuninstall_cmds \
  14546. +finish_cmds \
  14547. +sys_lib_search_path_spec \
  14548. +sys_lib_dlsearch_path_spec; do
  14549. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14550. + *[\\\\\\\`\\"\\\$]*)
  14551. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14552. + ;;
  14553. + *)
  14554. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14555. + ;;
  14556. + esac
  14557. +done
  14558. +
  14559. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  14560. +case \$lt_ECHO in
  14561. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14562. + ;;
  14563. +esac
  14564. +
  14565. +ac_aux_dir='$ac_aux_dir'
  14566. +xsi_shell='$xsi_shell'
  14567. +lt_shell_append='$lt_shell_append'
  14568. +
  14569. +# See if we are running on zsh, and set the options which allow our
  14570. +# commands through without removal of \ escapes INIT.
  14571. +if test -n "\${ZSH_VERSION+set}" ; then
  14572. + setopt NO_GLOB_SUBST
  14573. +fi
  14574. +
  14575. +
  14576. + PACKAGE='$PACKAGE'
  14577. + VERSION='$VERSION'
  14578. + TIMESTAMP='$TIMESTAMP'
  14579. + RM='$RM'
  14580. + ofile='$ofile'
  14581. +
  14582. +
  14583. +
  14584. +
  14585. +_ACEOF
  14586. +
  14587. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14588. +
  14589. +# Handling of arguments.
  14590. +for ac_config_target in $ac_config_targets
  14591. +do
  14592. + case $ac_config_target in
  14593. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14594. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14595. + "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  14596. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14597. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14598. + "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  14599. + "include/libnet/Makefile") CONFIG_FILES="$CONFIG_FILES include/libnet/Makefile" ;;
  14600. + "libnet-config") CONFIG_FILES="$CONFIG_FILES libnet-config" ;;
  14601. +
  14602. + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  14603. +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  14604. + { (exit 1); exit 1; }; };;
  14605. esac
  14606. +done
  14607. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  14608. - # Remove last slash and all that follows it. Not all systems have dirname.
  14609. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  14610. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  14611. - # The file is in a subdirectory.
  14612. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  14613. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  14614. - # A "../" for each directory in $ac_dir_suffix.
  14615. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  14616. +# If the user did not use the arguments to specify the items to instantiate,
  14617. +# then the envvar interface is used. Set only those that are not.
  14618. +# We use the long form for the default assignment because of an extremely
  14619. +# bizarre bug on SunOS 4.1.3.
  14620. +if $ac_need_defaults; then
  14621. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14622. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14623. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14624. +fi
  14625. +
  14626. +# Have a temporary directory for convenience. Make it in the build tree
  14627. +# simply because there is no reason against having it here, and in addition,
  14628. +# creating and moving files from /tmp can sometimes cause problems.
  14629. +# Hook for its removal unless debugging.
  14630. +# Note that there is a small window in which the directory will not be cleaned:
  14631. +# after its creation but before its name has been assigned to `$tmp'.
  14632. +$debug ||
  14633. +{
  14634. + tmp=
  14635. + trap 'exit_status=$?
  14636. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14637. +' 0
  14638. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  14639. +}
  14640. +# Create a (secure) tmp directory for tmp files.
  14641. +
  14642. +{
  14643. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14644. + test -n "$tmp" && test -d "$tmp"
  14645. +} ||
  14646. +{
  14647. + tmp=./conf$$-$RANDOM
  14648. + (umask 077 && mkdir "$tmp")
  14649. +} ||
  14650. +{
  14651. + $as_echo "$as_me: cannot create a temporary directory in ." >&2
  14652. + { (exit 1); exit 1; }
  14653. +}
  14654. +
  14655. +# Set up the scripts for CONFIG_FILES section.
  14656. +# No need to generate them if there are no CONFIG_FILES.
  14657. +# This happens for instance with `./config.status config.h'.
  14658. +if test -n "$CONFIG_FILES"; then
  14659. +
  14660. +
  14661. +ac_cr=' '
  14662. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14663. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14664. + ac_cs_awk_cr='\\r'
  14665. +else
  14666. + ac_cs_awk_cr=$ac_cr
  14667. +fi
  14668. +
  14669. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14670. +_ACEOF
  14671. +
  14672. +
  14673. +{
  14674. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  14675. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14676. + echo "_ACEOF"
  14677. +} >conf$$subs.sh ||
  14678. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  14679. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  14680. + { (exit 1); exit 1; }; }
  14681. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14682. +ac_delim='%!_!# '
  14683. +for ac_last_try in false false false false false :; do
  14684. + . ./conf$$subs.sh ||
  14685. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  14686. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  14687. + { (exit 1); exit 1; }; }
  14688. +
  14689. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14690. + if test $ac_delim_n = $ac_delim_num; then
  14691. + break
  14692. + elif $ac_last_try; then
  14693. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  14694. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  14695. + { (exit 1); exit 1; }; }
  14696. else
  14697. - ac_dir_suffix= ac_dots=
  14698. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14699. fi
  14700. +done
  14701. +rm -f conf$$subs.sh
  14702. - case "$ac_given_srcdir" in
  14703. - .) srcdir=.
  14704. - if test -z "$ac_dots"; then top_srcdir=.
  14705. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  14706. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  14707. - *) # Relative path.
  14708. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  14709. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14710. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14711. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14712. +_ACEOF
  14713. +sed -n '
  14714. +h
  14715. +s/^/S["/; s/!.*/"]=/
  14716. +p
  14717. +g
  14718. +s/^[^!]*!//
  14719. +:repl
  14720. +t repl
  14721. +s/'"$ac_delim"'$//
  14722. +t delim
  14723. +:nl
  14724. +h
  14725. +s/\(.\{148\}\).*/\1/
  14726. +t more1
  14727. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14728. +p
  14729. +n
  14730. +b repl
  14731. +:more1
  14732. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14733. +p
  14734. +g
  14735. +s/.\{148\}//
  14736. +t nl
  14737. +:delim
  14738. +h
  14739. +s/\(.\{148\}\).*/\1/
  14740. +t more2
  14741. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  14742. +p
  14743. +b
  14744. +:more2
  14745. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14746. +p
  14747. +g
  14748. +s/.\{148\}//
  14749. +t delim
  14750. +' <conf$$subs.awk | sed '
  14751. +/^[^""]/{
  14752. + N
  14753. + s/\n//
  14754. +}
  14755. +' >>$CONFIG_STATUS || ac_write_fail=1
  14756. +rm -f conf$$subs.awk
  14757. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14758. +_ACAWK
  14759. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14760. + for (key in S) S_is_set[key] = 1
  14761. + FS = ""
  14762. +
  14763. +}
  14764. +{
  14765. + line = $ 0
  14766. + nfields = split(line, field, "@")
  14767. + substed = 0
  14768. + len = length(field[1])
  14769. + for (i = 2; i < nfields; i++) {
  14770. + key = field[i]
  14771. + keylen = length(key)
  14772. + if (S_is_set[key]) {
  14773. + value = S[key]
  14774. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14775. + len += length(value) + length(field[++i])
  14776. + substed = 1
  14777. + } else
  14778. + len += 1 + keylen
  14779. + }
  14780. +
  14781. + print line
  14782. +}
  14783. +
  14784. +_ACAWK
  14785. +_ACEOF
  14786. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14787. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14788. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14789. +else
  14790. + cat
  14791. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14792. + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  14793. +$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  14794. + { (exit 1); exit 1; }; }
  14795. +_ACEOF
  14796. +
  14797. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  14798. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14799. +# trailing colons and then remove the whole line if VPATH becomes empty
  14800. +# (actually we leave an empty line to preserve line numbers).
  14801. +if test "x$srcdir" = x.; then
  14802. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14803. +s/:*\$(srcdir):*/:/
  14804. +s/:*\${srcdir}:*/:/
  14805. +s/:*@srcdir@:*/:/
  14806. +s/^\([^=]*=[ ]*\):*/\1/
  14807. +s/:*$//
  14808. +s/^[^=]*=[ ]*$//
  14809. +}'
  14810. +fi
  14811. +
  14812. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14813. +fi # test -n "$CONFIG_FILES"
  14814. +
  14815. +# Set up the scripts for CONFIG_HEADERS section.
  14816. +# No need to generate them if there are no CONFIG_HEADERS.
  14817. +# This happens for instance with `./config.status Makefile'.
  14818. +if test -n "$CONFIG_HEADERS"; then
  14819. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  14820. +BEGIN {
  14821. +_ACEOF
  14822. +
  14823. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  14824. +# here-document in config.status, that substitutes the proper values into
  14825. +# config.h.in to produce config.h.
  14826. +
  14827. +# Create a delimiter string that does not exist in confdefs.h, to ease
  14828. +# handling of long lines.
  14829. +ac_delim='%!_!# '
  14830. +for ac_last_try in false false :; do
  14831. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14832. + if test -z "$ac_t"; then
  14833. + break
  14834. + elif $ac_last_try; then
  14835. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  14836. +$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  14837. + { (exit 1); exit 1; }; }
  14838. + else
  14839. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14840. + fi
  14841. +done
  14842. +
  14843. +# For the awk script, D is an array of macro values keyed by name,
  14844. +# likewise P contains macro parameters if any. Preserve backslash
  14845. +# newline sequences.
  14846. +
  14847. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14848. +sed -n '
  14849. +s/.\{148\}/&'"$ac_delim"'/g
  14850. +t rset
  14851. +:rset
  14852. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  14853. +t def
  14854. +d
  14855. +:def
  14856. +s/\\$//
  14857. +t bsnl
  14858. +s/["\\]/\\&/g
  14859. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14860. +D["\1"]=" \3"/p
  14861. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14862. +d
  14863. +:bsnl
  14864. +s/["\\]/\\&/g
  14865. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14866. +D["\1"]=" \3\\\\\\n"\\/p
  14867. +t cont
  14868. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14869. +t cont
  14870. +d
  14871. +:cont
  14872. +n
  14873. +s/.\{148\}/&'"$ac_delim"'/g
  14874. +t clear
  14875. +:clear
  14876. +s/\\$//
  14877. +t bsnlc
  14878. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14879. +d
  14880. +:bsnlc
  14881. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14882. +b cont
  14883. +' <confdefs.h | sed '
  14884. +s/'"$ac_delim"'/"\\\
  14885. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  14886. +
  14887. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14888. + for (key in D) D_is_set[key] = 1
  14889. + FS = ""
  14890. +}
  14891. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14892. + line = \$ 0
  14893. + split(line, arg, " ")
  14894. + if (arg[1] == "#") {
  14895. + defundef = arg[2]
  14896. + mac1 = arg[3]
  14897. + } else {
  14898. + defundef = substr(arg[1], 2)
  14899. + mac1 = arg[2]
  14900. + }
  14901. + split(mac1, mac2, "(") #)
  14902. + macro = mac2[1]
  14903. + prefix = substr(line, 1, index(line, defundef) - 1)
  14904. + if (D_is_set[macro]) {
  14905. + # Preserve the white space surrounding the "#".
  14906. + print prefix "define", macro P[macro] D[macro]
  14907. + next
  14908. + } else {
  14909. + # Replace #undef with comments. This is necessary, for example,
  14910. + # in the case of _POSIX_SOURCE, which is predefined and required
  14911. + # on some systems where configure will not decide to define it.
  14912. + if (defundef == "undef") {
  14913. + print "/*", prefix defundef, macro, "*/"
  14914. + next
  14915. + }
  14916. + }
  14917. +}
  14918. +{ print }
  14919. +_ACAWK
  14920. +_ACEOF
  14921. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14922. + { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  14923. +$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  14924. + { (exit 1); exit 1; }; }
  14925. +fi # test -n "$CONFIG_HEADERS"
  14926. +
  14927. +
  14928. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14929. +shift
  14930. +for ac_tag
  14931. +do
  14932. + case $ac_tag in
  14933. + :[FHLC]) ac_mode=$ac_tag; continue;;
  14934. + esac
  14935. + case $ac_mode$ac_tag in
  14936. + :[FHL]*:*);;
  14937. + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  14938. +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  14939. + { (exit 1); exit 1; }; };;
  14940. + :[FH]-) ac_tag=-:-;;
  14941. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14942. esac
  14943. + ac_save_IFS=$IFS
  14944. + IFS=:
  14945. + set x $ac_tag
  14946. + IFS=$ac_save_IFS
  14947. + shift
  14948. + ac_file=$1
  14949. + shift
  14950. - case "$ac_given_INSTALL" in
  14951. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  14952. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  14953. + case $ac_mode in
  14954. + :L) ac_source=$1;;
  14955. + :[FH])
  14956. + ac_file_inputs=
  14957. + for ac_f
  14958. + do
  14959. + case $ac_f in
  14960. + -) ac_f="$tmp/stdin";;
  14961. + *) # Look for the file first in the build tree, then in the source tree
  14962. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  14963. + # because $ac_f cannot contain `:'.
  14964. + test -f "$ac_f" ||
  14965. + case $ac_f in
  14966. + [\\/$]*) false;;
  14967. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14968. + esac ||
  14969. + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  14970. +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  14971. + { (exit 1); exit 1; }; };;
  14972. + esac
  14973. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14974. + ac_file_inputs="$ac_file_inputs '$ac_f'"
  14975. + done
  14976. +
  14977. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  14978. + # use $as_me), people would be surprised to read:
  14979. + # /* config.h. Generated by config.status. */
  14980. + configure_input='Generated from '`
  14981. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14982. + `' by configure.'
  14983. + if test x"$ac_file" != x-; then
  14984. + configure_input="$ac_file. $configure_input"
  14985. + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  14986. +$as_echo "$as_me: creating $ac_file" >&6;}
  14987. + fi
  14988. + # Neutralize special characters interpreted by sed in replacement strings.
  14989. + case $configure_input in #(
  14990. + *\&* | *\|* | *\\* )
  14991. + ac_sed_conf_input=`$as_echo "$configure_input" |
  14992. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14993. + *) ac_sed_conf_input=$configure_input;;
  14994. + esac
  14995. +
  14996. + case $ac_tag in
  14997. + *:-:* | *:-) cat >"$tmp/stdin" \
  14998. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  14999. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  15000. + { (exit 1); exit 1; }; } ;;
  15001. + esac
  15002. + ;;
  15003. esac
  15004. - echo creating "$ac_file"
  15005. - rm -f "$ac_file"
  15006. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  15007. - case "$ac_file" in
  15008. - *Makefile*) ac_comsub="1i\\
  15009. -# $configure_input" ;;
  15010. - *) ac_comsub= ;;
  15011. + ac_dir=`$as_dirname -- "$ac_file" ||
  15012. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15013. + X"$ac_file" : 'X\(//\)[^/]' \| \
  15014. + X"$ac_file" : 'X\(//\)$' \| \
  15015. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15016. +$as_echo X"$ac_file" |
  15017. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15018. + s//\1/
  15019. + q
  15020. + }
  15021. + /^X\(\/\/\)[^/].*/{
  15022. + s//\1/
  15023. + q
  15024. + }
  15025. + /^X\(\/\/\)$/{
  15026. + s//\1/
  15027. + q
  15028. + }
  15029. + /^X\(\/\).*/{
  15030. + s//\1/
  15031. + q
  15032. + }
  15033. + s/.*/./; q'`
  15034. + { as_dir="$ac_dir"
  15035. + case $as_dir in #(
  15036. + -*) as_dir=./$as_dir;;
  15037. + esac
  15038. + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  15039. + as_dirs=
  15040. + while :; do
  15041. + case $as_dir in #(
  15042. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15043. + *) as_qdir=$as_dir;;
  15044. + esac
  15045. + as_dirs="'$as_qdir' $as_dirs"
  15046. + as_dir=`$as_dirname -- "$as_dir" ||
  15047. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15048. + X"$as_dir" : 'X\(//\)[^/]' \| \
  15049. + X"$as_dir" : 'X\(//\)$' \| \
  15050. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15051. +$as_echo X"$as_dir" |
  15052. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15053. + s//\1/
  15054. + q
  15055. + }
  15056. + /^X\(\/\/\)[^/].*/{
  15057. + s//\1/
  15058. + q
  15059. + }
  15060. + /^X\(\/\/\)$/{
  15061. + s//\1/
  15062. + q
  15063. + }
  15064. + /^X\(\/\).*/{
  15065. + s//\1/
  15066. + q
  15067. + }
  15068. + s/.*/./; q'`
  15069. + test -d "$as_dir" && break
  15070. + done
  15071. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  15072. + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  15073. +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  15074. + { (exit 1); exit 1; }; }; }
  15075. + ac_builddir=.
  15076. +
  15077. +case "$ac_dir" in
  15078. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15079. +*)
  15080. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15081. + # A ".." for each directory in $ac_dir_suffix.
  15082. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15083. + case $ac_top_builddir_sub in
  15084. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15085. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15086. + esac ;;
  15087. +esac
  15088. +ac_abs_top_builddir=$ac_pwd
  15089. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15090. +# for backward compatibility:
  15091. +ac_top_builddir=$ac_top_build_prefix
  15092. +
  15093. +case $srcdir in
  15094. + .) # We are building in place.
  15095. + ac_srcdir=.
  15096. + ac_top_srcdir=$ac_top_builddir_sub
  15097. + ac_abs_top_srcdir=$ac_pwd ;;
  15098. + [\\/]* | ?:[\\/]* ) # Absolute name.
  15099. + ac_srcdir=$srcdir$ac_dir_suffix;
  15100. + ac_top_srcdir=$srcdir
  15101. + ac_abs_top_srcdir=$srcdir ;;
  15102. + *) # Relative name.
  15103. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15104. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  15105. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15106. +esac
  15107. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15108. +
  15109. +
  15110. + case $ac_mode in
  15111. + :F)
  15112. + #
  15113. + # CONFIG_FILE
  15114. + #
  15115. +
  15116. + case $INSTALL in
  15117. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15118. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15119. esac
  15120. +_ACEOF
  15121. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  15122. - sed -e "$ac_comsub
  15123. -s%@configure_input@%$configure_input%g
  15124. -s%@srcdir@%$srcdir%g
  15125. -s%@top_srcdir@%$top_srcdir%g
  15126. -s%@INSTALL@%$INSTALL%g
  15127. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  15128. -fi; done
  15129. -rm -f conftest.s*
  15130. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15131. +# If the template does not know about datarootdir, expand it.
  15132. +# FIXME: This hack should be removed a few years after 2.60.
  15133. +ac_datarootdir_hack=; ac_datarootdir_seen=
  15134. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  15135. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  15136. +ac_sed_dataroot='
  15137. +/datarootdir/ {
  15138. + p
  15139. + q
  15140. +}
  15141. +/@datadir@/p
  15142. +/@docdir@/p
  15143. +/@infodir@/p
  15144. +/@localedir@/p
  15145. +/@mandir@/p
  15146. +'
  15147. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15148. +*datarootdir*) ac_datarootdir_seen=yes;;
  15149. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15150. + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15151. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15152. +_ACEOF
  15153. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15154. + ac_datarootdir_hack='
  15155. + s&@datadir@&$datadir&g
  15156. + s&@docdir@&$docdir&g
  15157. + s&@infodir@&$infodir&g
  15158. + s&@localedir@&$localedir&g
  15159. + s&@mandir@&$mandir&g
  15160. + s&\\\${datarootdir}&$datarootdir&g' ;;
  15161. +esac
  15162. +_ACEOF
  15163. +
  15164. +# Neutralize VPATH when `$srcdir' = `.'.
  15165. +# Shell code in configure.ac might set extrasub.
  15166. +# FIXME: do we really want to maintain this feature?
  15167. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15168. +ac_sed_extra="$ac_vpsub
  15169. +$extrasub
  15170. +_ACEOF
  15171. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15172. +:t
  15173. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15174. +s|@configure_input@|$ac_sed_conf_input|;t t
  15175. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  15176. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15177. +s&@srcdir@&$ac_srcdir&;t t
  15178. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15179. +s&@top_srcdir@&$ac_top_srcdir&;t t
  15180. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15181. +s&@builddir@&$ac_builddir&;t t
  15182. +s&@abs_builddir@&$ac_abs_builddir&;t t
  15183. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15184. +s&@INSTALL@&$ac_INSTALL&;t t
  15185. +$ac_datarootdir_hack
  15186. +"
  15187. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15188. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15189. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  15190. + { (exit 1); exit 1; }; }
  15191. +
  15192. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15193. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15194. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15195. + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15196. +which seems to be undefined. Please make sure it is defined." >&5
  15197. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15198. +which seems to be undefined. Please make sure it is defined." >&2;}
  15199. +
  15200. + rm -f "$tmp/stdin"
  15201. + case $ac_file in
  15202. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  15203. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15204. + esac \
  15205. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15206. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  15207. + { (exit 1); exit 1; }; }
  15208. + ;;
  15209. + :H)
  15210. + #
  15211. + # CONFIG_HEADER
  15212. + #
  15213. + if test x"$ac_file" != x-; then
  15214. + {
  15215. + $as_echo "/* $configure_input */" \
  15216. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  15217. + } >"$tmp/config.h" \
  15218. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15219. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  15220. + { (exit 1); exit 1; }; }
  15221. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  15222. + { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  15223. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  15224. + else
  15225. + rm -f "$ac_file"
  15226. + mv "$tmp/config.h" "$ac_file" \
  15227. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15228. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  15229. + { (exit 1); exit 1; }; }
  15230. + fi
  15231. + else
  15232. + $as_echo "/* $configure_input */" \
  15233. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  15234. + || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  15235. +$as_echo "$as_me: error: could not create -" >&2;}
  15236. + { (exit 1); exit 1; }; }
  15237. + fi
  15238. +# Compute "$ac_file"'s index in $config_headers.
  15239. +_am_stamp_count=1
  15240. +for _am_header in $config_headers :; do
  15241. + case $_am_header in
  15242. + "$ac_file" | "$ac_file":* )
  15243. + break ;;
  15244. + * )
  15245. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15246. + esac
  15247. +done
  15248. +echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
  15249. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15250. + X"$ac_file" : 'X\(//\)[^/]' \| \
  15251. + X"$ac_file" : 'X\(//\)$' \| \
  15252. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15253. +$as_echo X"$ac_file" |
  15254. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15255. + s//\1/
  15256. + q
  15257. + }
  15258. + /^X\(\/\/\)[^/].*/{
  15259. + s//\1/
  15260. + q
  15261. + }
  15262. + /^X\(\/\/\)$/{
  15263. + s//\1/
  15264. + q
  15265. + }
  15266. + /^X\(\/\).*/{
  15267. + s//\1/
  15268. + q
  15269. + }
  15270. + s/.*/./; q'`/stamp-h$_am_stamp_count
  15271. + ;;
  15272. +
  15273. + :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  15274. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  15275. + ;;
  15276. + esac
  15277. +
  15278. +
  15279. + case $ac_file$ac_mode in
  15280. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  15281. + # Strip MF so we end up with the name of the file.
  15282. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  15283. + # Check whether this is an Automake generated Makefile or not.
  15284. + # We used to match only the files named `Makefile.in', but
  15285. + # some people rename them; so instead we look at the file content.
  15286. + # Grep'ing the first line is not enough: some people post-process
  15287. + # each Makefile.in and add a new line on top of each file to say so.
  15288. + # So let's grep whole file.
  15289. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  15290. + dirpart=`$as_dirname -- "$mf" ||
  15291. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15292. + X"$mf" : 'X\(//\)[^/]' \| \
  15293. + X"$mf" : 'X\(//\)$' \| \
  15294. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15295. +$as_echo X"$mf" |
  15296. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15297. + s//\1/
  15298. + q
  15299. + }
  15300. + /^X\(\/\/\)[^/].*/{
  15301. + s//\1/
  15302. + q
  15303. + }
  15304. + /^X\(\/\/\)$/{
  15305. + s//\1/
  15306. + q
  15307. + }
  15308. + /^X\(\/\).*/{
  15309. + s//\1/
  15310. + q
  15311. + }
  15312. + s/.*/./; q'`
  15313. + else
  15314. + continue
  15315. + fi
  15316. + grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  15317. + # Extract the definition of DEP_FILES from the Makefile without
  15318. + # running `make'.
  15319. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15320. + test -z "$DEPDIR" && continue
  15321. + # When using ansi2knr, U may be empty or an underscore; expand it
  15322. + U=`sed -n 's/^U = //p' < "$mf"`
  15323. + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  15324. + # We invoke sed twice because it is the simplest approach to
  15325. + # changing $(DEPDIR) to its actual value in the expansion.
  15326. + for file in `sed -n '
  15327. + /^DEP_FILES = .*\\\\$/ {
  15328. + s/^DEP_FILES = //
  15329. + :loop
  15330. + s/\\\\$//
  15331. + p
  15332. + n
  15333. + /\\\\$/ b loop
  15334. + p
  15335. + }
  15336. + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  15337. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15338. + # Make sure the directory exists.
  15339. + test -f "$dirpart/$file" && continue
  15340. + fdir=`$as_dirname -- "$file" ||
  15341. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15342. + X"$file" : 'X\(//\)[^/]' \| \
  15343. + X"$file" : 'X\(//\)$' \| \
  15344. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15345. +$as_echo X"$file" |
  15346. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15347. + s//\1/
  15348. + q
  15349. + }
  15350. + /^X\(\/\/\)[^/].*/{
  15351. + s//\1/
  15352. + q
  15353. + }
  15354. + /^X\(\/\/\)$/{
  15355. + s//\1/
  15356. + q
  15357. + }
  15358. + /^X\(\/\).*/{
  15359. + s//\1/
  15360. + q
  15361. + }
  15362. + s/.*/./; q'`
  15363. + { as_dir=$dirpart/$fdir
  15364. + case $as_dir in #(
  15365. + -*) as_dir=./$as_dir;;
  15366. + esac
  15367. + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  15368. + as_dirs=
  15369. + while :; do
  15370. + case $as_dir in #(
  15371. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15372. + *) as_qdir=$as_dir;;
  15373. + esac
  15374. + as_dirs="'$as_qdir' $as_dirs"
  15375. + as_dir=`$as_dirname -- "$as_dir" ||
  15376. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15377. + X"$as_dir" : 'X\(//\)[^/]' \| \
  15378. + X"$as_dir" : 'X\(//\)$' \| \
  15379. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15380. +$as_echo X"$as_dir" |
  15381. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15382. + s//\1/
  15383. + q
  15384. + }
  15385. + /^X\(\/\/\)[^/].*/{
  15386. + s//\1/
  15387. + q
  15388. + }
  15389. + /^X\(\/\/\)$/{
  15390. + s//\1/
  15391. + q
  15392. + }
  15393. + /^X\(\/\).*/{
  15394. + s//\1/
  15395. + q
  15396. + }
  15397. + s/.*/./; q'`
  15398. + test -d "$as_dir" && break
  15399. + done
  15400. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  15401. + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  15402. +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  15403. + { (exit 1); exit 1; }; }; }
  15404. + # echo "creating $dirpart/$file"
  15405. + echo '# dummy' > "$dirpart/$file"
  15406. + done
  15407. +done
  15408. + ;;
  15409. + "libtool":C)
  15410. +
  15411. + # See if we are running on zsh, and set the options which allow our
  15412. + # commands through without removal of \ escapes.
  15413. + if test -n "${ZSH_VERSION+set}" ; then
  15414. + setopt NO_GLOB_SUBST
  15415. + fi
  15416. +
  15417. + cfgfile="${ofile}T"
  15418. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15419. + $RM "$cfgfile"
  15420. +
  15421. + cat <<_LT_EOF >> "$cfgfile"
  15422. +#! $SHELL
  15423. +
  15424. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15425. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15426. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15427. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15428. #
  15429. -# ac_d sets the value in "#define NAME VALUE" lines.
  15430. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  15431. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  15432. -ac_dC='\3'
  15433. -ac_dD='%g'
  15434. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  15435. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  15436. -ac_uB='\([ ]\)%\1#\2define\3'
  15437. -ac_uC=' '
  15438. -ac_uD='\4%g'
  15439. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  15440. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  15441. -ac_eB='$%\1#\2define\3'
  15442. -ac_eC=' '
  15443. -ac_eD='%g'
  15444. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15445. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  15446. +# Written by Gordon Matzigkeit, 1996
  15447. +#
  15448. +# This file is part of GNU Libtool.
  15449. +#
  15450. +# GNU Libtool is free software; you can redistribute it and/or
  15451. +# modify it under the terms of the GNU General Public License as
  15452. +# published by the Free Software Foundation; either version 2 of
  15453. +# the License, or (at your option) any later version.
  15454. +#
  15455. +# As a special exception to the GNU General Public License,
  15456. +# if you distribute this file as part of a program or library that
  15457. +# is built using GNU Libtool, you may include this file under the
  15458. +# same distribution terms that you use for the rest of that program.
  15459. +#
  15460. +# GNU Libtool is distributed in the hope that it will be useful,
  15461. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  15462. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15463. +# GNU General Public License for more details.
  15464. +#
  15465. +# You should have received a copy of the GNU General Public License
  15466. +# along with GNU Libtool; see the file COPYING. If not, a copy
  15467. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15468. +# obtained by writing to the Free Software Foundation, Inc.,
  15469. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15470. -if test "${CONFIG_HEADERS+set}" != set; then
  15471. -EOF
  15472. -cat >> $CONFIG_STATUS <<EOF
  15473. - CONFIG_HEADERS="include/config.h"
  15474. -EOF
  15475. -cat >> $CONFIG_STATUS <<\EOF
  15476. +
  15477. +# The names of the tagged configurations supported by this script.
  15478. +available_tags=""
  15479. +
  15480. +# ### BEGIN LIBTOOL CONFIG
  15481. +
  15482. +# Which release of libtool.m4 was used?
  15483. +macro_version=$macro_version
  15484. +macro_revision=$macro_revision
  15485. +
  15486. +# Whether or not to build shared libraries.
  15487. +build_libtool_libs=$enable_shared
  15488. +
  15489. +# Whether or not to build static libraries.
  15490. +build_old_libs=$enable_static
  15491. +
  15492. +# What type of objects to build.
  15493. +pic_mode=$pic_mode
  15494. +
  15495. +# Whether or not to optimize for fast installation.
  15496. +fast_install=$enable_fast_install
  15497. +
  15498. +# The host system.
  15499. +host_alias=$host_alias
  15500. +host=$host
  15501. +host_os=$host_os
  15502. +
  15503. +# The build system.
  15504. +build_alias=$build_alias
  15505. +build=$build
  15506. +build_os=$build_os
  15507. +
  15508. +# A sed program that does not truncate output.
  15509. +SED=$lt_SED
  15510. +
  15511. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15512. +Xsed="\$SED -e 1s/^X//"
  15513. +
  15514. +# A grep program that handles long lines.
  15515. +GREP=$lt_GREP
  15516. +
  15517. +# An ERE matcher.
  15518. +EGREP=$lt_EGREP
  15519. +
  15520. +# A literal string matcher.
  15521. +FGREP=$lt_FGREP
  15522. +
  15523. +# A BSD- or MS-compatible name lister.
  15524. +NM=$lt_NM
  15525. +
  15526. +# Whether we need soft or hard links.
  15527. +LN_S=$lt_LN_S
  15528. +
  15529. +# What is the maximum length of a command?
  15530. +max_cmd_len=$max_cmd_len
  15531. +
  15532. +# Object file suffix (normally "o").
  15533. +objext=$ac_objext
  15534. +
  15535. +# Executable file suffix (normally "").
  15536. +exeext=$exeext
  15537. +
  15538. +# whether the shell understands "unset".
  15539. +lt_unset=$lt_unset
  15540. +
  15541. +# turn spaces into newlines.
  15542. +SP2NL=$lt_lt_SP2NL
  15543. +
  15544. +# turn newlines into spaces.
  15545. +NL2SP=$lt_lt_NL2SP
  15546. +
  15547. +# How to create reloadable object files.
  15548. +reload_flag=$lt_reload_flag
  15549. +reload_cmds=$lt_reload_cmds
  15550. +
  15551. +# An object symbol dumper.
  15552. +OBJDUMP=$lt_OBJDUMP
  15553. +
  15554. +# Method to check whether dependent libraries are shared objects.
  15555. +deplibs_check_method=$lt_deplibs_check_method
  15556. +
  15557. +# Command to use when deplibs_check_method == "file_magic".
  15558. +file_magic_cmd=$lt_file_magic_cmd
  15559. +
  15560. +# The archiver.
  15561. +AR=$lt_AR
  15562. +AR_FLAGS=$lt_AR_FLAGS
  15563. +
  15564. +# A symbol stripping program.
  15565. +STRIP=$lt_STRIP
  15566. +
  15567. +# Commands used to install an old-style archive.
  15568. +RANLIB=$lt_RANLIB
  15569. +old_postinstall_cmds=$lt_old_postinstall_cmds
  15570. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15571. +
  15572. +# A C compiler.
  15573. +LTCC=$lt_CC
  15574. +
  15575. +# LTCC compiler flags.
  15576. +LTCFLAGS=$lt_CFLAGS
  15577. +
  15578. +# Take the output of nm and produce a listing of raw symbols and C names.
  15579. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15580. +
  15581. +# Transform the output of nm in a proper C declaration.
  15582. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15583. +
  15584. +# Transform the output of nm in a C name address pair.
  15585. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15586. +
  15587. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  15588. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15589. +
  15590. +# The name of the directory that contains temporary libtool files.
  15591. +objdir=$objdir
  15592. +
  15593. +# Shell to use when invoking shell scripts.
  15594. +SHELL=$lt_SHELL
  15595. +
  15596. +# An echo program that does not interpret backslashes.
  15597. +ECHO=$lt_ECHO
  15598. +
  15599. +# Used to examine libraries when file_magic_cmd begins with "file".
  15600. +MAGIC_CMD=$MAGIC_CMD
  15601. +
  15602. +# Must we lock files when doing compilation?
  15603. +need_locks=$lt_need_locks
  15604. +
  15605. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15606. +DSYMUTIL=$lt_DSYMUTIL
  15607. +
  15608. +# Tool to change global to local symbols on Mac OS X.
  15609. +NMEDIT=$lt_NMEDIT
  15610. +
  15611. +# Tool to manipulate fat objects and archives on Mac OS X.
  15612. +LIPO=$lt_LIPO
  15613. +
  15614. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15615. +OTOOL=$lt_OTOOL
  15616. +
  15617. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15618. +OTOOL64=$lt_OTOOL64
  15619. +
  15620. +# Old archive suffix (normally "a").
  15621. +libext=$libext
  15622. +
  15623. +# Shared library suffix (normally ".so").
  15624. +shrext_cmds=$lt_shrext_cmds
  15625. +
  15626. +# The commands to extract the exported symbol list from a shared archive.
  15627. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15628. +
  15629. +# Variables whose values should be saved in libtool wrapper scripts and
  15630. +# restored at link time.
  15631. +variables_saved_for_relink=$lt_variables_saved_for_relink
  15632. +
  15633. +# Do we need the "lib" prefix for modules?
  15634. +need_lib_prefix=$need_lib_prefix
  15635. +
  15636. +# Do we need a version for libraries?
  15637. +need_version=$need_version
  15638. +
  15639. +# Library versioning type.
  15640. +version_type=$version_type
  15641. +
  15642. +# Shared library runtime path variable.
  15643. +runpath_var=$runpath_var
  15644. +
  15645. +# Shared library path variable.
  15646. +shlibpath_var=$shlibpath_var
  15647. +
  15648. +# Is shlibpath searched before the hard-coded library search path?
  15649. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15650. +
  15651. +# Format of library name prefix.
  15652. +libname_spec=$lt_libname_spec
  15653. +
  15654. +# List of archive names. First name is the real one, the rest are links.
  15655. +# The last name is the one that the linker finds with -lNAME
  15656. +library_names_spec=$lt_library_names_spec
  15657. +
  15658. +# The coded name of the library, if different from the real name.
  15659. +soname_spec=$lt_soname_spec
  15660. +
  15661. +# Command to use after installation of a shared archive.
  15662. +postinstall_cmds=$lt_postinstall_cmds
  15663. +
  15664. +# Command to use after uninstallation of a shared archive.
  15665. +postuninstall_cmds=$lt_postuninstall_cmds
  15666. +
  15667. +# Commands used to finish a libtool library installation in a directory.
  15668. +finish_cmds=$lt_finish_cmds
  15669. +
  15670. +# As "finish_cmds", except a single script fragment to be evaled but
  15671. +# not shown.
  15672. +finish_eval=$lt_finish_eval
  15673. +
  15674. +# Whether we should hardcode library paths into libraries.
  15675. +hardcode_into_libs=$hardcode_into_libs
  15676. +
  15677. +# Compile-time system search path for libraries.
  15678. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15679. +
  15680. +# Run-time system search path for libraries.
  15681. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15682. +
  15683. +# Whether dlopen is supported.
  15684. +dlopen_support=$enable_dlopen
  15685. +
  15686. +# Whether dlopen of programs is supported.
  15687. +dlopen_self=$enable_dlopen_self
  15688. +
  15689. +# Whether dlopen of statically linked programs is supported.
  15690. +dlopen_self_static=$enable_dlopen_self_static
  15691. +
  15692. +# Commands to strip libraries.
  15693. +old_striplib=$lt_old_striplib
  15694. +striplib=$lt_striplib
  15695. +
  15696. +
  15697. +# The linker used to build libraries.
  15698. +LD=$lt_LD
  15699. +
  15700. +# Commands used to build an old-style archive.
  15701. +old_archive_cmds=$lt_old_archive_cmds
  15702. +
  15703. +# A language specific compiler.
  15704. +CC=$lt_compiler
  15705. +
  15706. +# Is the compiler the GNU compiler?
  15707. +with_gcc=$GCC
  15708. +
  15709. +# Compiler flag to turn off builtin functions.
  15710. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15711. +
  15712. +# How to pass a linker flag through the compiler.
  15713. +wl=$lt_lt_prog_compiler_wl
  15714. +
  15715. +# Additional compiler flags for building library objects.
  15716. +pic_flag=$lt_lt_prog_compiler_pic
  15717. +
  15718. +# Compiler flag to prevent dynamic linking.
  15719. +link_static_flag=$lt_lt_prog_compiler_static
  15720. +
  15721. +# Does compiler simultaneously support -c and -o options?
  15722. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15723. +
  15724. +# Whether or not to add -lc for building shared libraries.
  15725. +build_libtool_need_lc=$archive_cmds_need_lc
  15726. +
  15727. +# Whether or not to disallow shared libs when runtime libs are static.
  15728. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15729. +
  15730. +# Compiler flag to allow reflexive dlopens.
  15731. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15732. +
  15733. +# Compiler flag to generate shared objects directly from archives.
  15734. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15735. +
  15736. +# Whether the compiler copes with passing no objects directly.
  15737. +compiler_needs_object=$lt_compiler_needs_object
  15738. +
  15739. +# Create an old-style archive from a shared archive.
  15740. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15741. +
  15742. +# Create a temporary old-style archive to link instead of a shared archive.
  15743. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15744. +
  15745. +# Commands used to build a shared archive.
  15746. +archive_cmds=$lt_archive_cmds
  15747. +archive_expsym_cmds=$lt_archive_expsym_cmds
  15748. +
  15749. +# Commands used to build a loadable module if different from building
  15750. +# a shared archive.
  15751. +module_cmds=$lt_module_cmds
  15752. +module_expsym_cmds=$lt_module_expsym_cmds
  15753. +
  15754. +# Whether we are building with GNU ld or not.
  15755. +with_gnu_ld=$lt_with_gnu_ld
  15756. +
  15757. +# Flag that allows shared libraries with undefined symbols to be built.
  15758. +allow_undefined_flag=$lt_allow_undefined_flag
  15759. +
  15760. +# Flag that enforces no undefined symbols.
  15761. +no_undefined_flag=$lt_no_undefined_flag
  15762. +
  15763. +# Flag to hardcode \$libdir into a binary during linking.
  15764. +# This must work even if \$libdir does not exist
  15765. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15766. +
  15767. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  15768. +# during linking. This must work even if \$libdir does not exist.
  15769. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15770. +
  15771. +# Whether we need a single "-rpath" flag with a separated argument.
  15772. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15773. +
  15774. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15775. +# DIR into the resulting binary.
  15776. +hardcode_direct=$hardcode_direct
  15777. +
  15778. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15779. +# DIR into the resulting binary and the resulting library dependency is
  15780. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15781. +# library is relocated.
  15782. +hardcode_direct_absolute=$hardcode_direct_absolute
  15783. +
  15784. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15785. +# into the resulting binary.
  15786. +hardcode_minus_L=$hardcode_minus_L
  15787. +
  15788. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15789. +# into the resulting binary.
  15790. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  15791. +
  15792. +# Set to "yes" if building a shared library automatically hardcodes DIR
  15793. +# into the library and all subsequent libraries and executables linked
  15794. +# against it.
  15795. +hardcode_automatic=$hardcode_automatic
  15796. +
  15797. +# Set to yes if linker adds runtime paths of dependent libraries
  15798. +# to runtime path list.
  15799. +inherit_rpath=$inherit_rpath
  15800. +
  15801. +# Whether libtool must link a program against all its dependency libraries.
  15802. +link_all_deplibs=$link_all_deplibs
  15803. +
  15804. +# Fix the shell variable \$srcfile for the compiler.
  15805. +fix_srcfile_path=$lt_fix_srcfile_path
  15806. +
  15807. +# Set to "yes" if exported symbols are required.
  15808. +always_export_symbols=$always_export_symbols
  15809. +
  15810. +# The commands to list exported symbols.
  15811. +export_symbols_cmds=$lt_export_symbols_cmds
  15812. +
  15813. +# Symbols that should not be listed in the preloaded symbols.
  15814. +exclude_expsyms=$lt_exclude_expsyms
  15815. +
  15816. +# Symbols that must always be exported.
  15817. +include_expsyms=$lt_include_expsyms
  15818. +
  15819. +# Commands necessary for linking programs (against libraries) with templates.
  15820. +prelink_cmds=$lt_prelink_cmds
  15821. +
  15822. +# Specify filename containing input files.
  15823. +file_list_spec=$lt_file_list_spec
  15824. +
  15825. +# How to hardcode a shared library path into an executable.
  15826. +hardcode_action=$hardcode_action
  15827. +
  15828. +# ### END LIBTOOL CONFIG
  15829. +
  15830. +_LT_EOF
  15831. +
  15832. + case $host_os in
  15833. + aix3*)
  15834. + cat <<\_LT_EOF >> "$cfgfile"
  15835. +# AIX sometimes has problems with the GCC collect2 program. For some
  15836. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  15837. +# vanish in a puff of smoke.
  15838. +if test "X${COLLECT_NAMES+set}" != Xset; then
  15839. + COLLECT_NAMES=
  15840. + export COLLECT_NAMES
  15841. fi
  15842. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  15843. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  15844. - case "$ac_file" in
  15845. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  15846. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  15847. - *) ac_file_in="${ac_file}.in" ;;
  15848. +_LT_EOF
  15849. + ;;
  15850. esac
  15851. - echo creating $ac_file
  15852. - rm -f conftest.frag conftest.in conftest.out
  15853. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  15854. - cat $ac_file_inputs > conftest.in
  15855. +ltmain="$ac_aux_dir/ltmain.sh"
  15856. -EOF
  15857. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  15858. -# the proper values into config.h.in to produce config.h. And first:
  15859. -# Protect against being on the right side of a sed subst in config.status.
  15860. -# Protect against being in an unquoted here document in config.status.
  15861. -rm -f conftest.vals
  15862. -cat > conftest.hdr <<\EOF
  15863. -s/[\\&%]/\\&/g
  15864. -s%[\\$`]%\\&%g
  15865. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  15866. -s%ac_d%ac_u%gp
  15867. -s%ac_u%ac_e%gp
  15868. -EOF
  15869. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  15870. -rm -f conftest.hdr
  15871. + # We use sed instead of cat because bash on DJGPP gets confused if
  15872. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15873. + # text mode, it properly converts lines to CR/LF. This bash problem
  15874. + # is reportedly fixed, but why not run on old versions too?
  15875. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15876. + || (rm -f "$cfgfile"; exit 1)
  15877. -# This sed command replaces #undef with comments. This is necessary, for
  15878. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  15879. -# on some systems where configure will not decide to define it.
  15880. -cat >> conftest.vals <<\EOF
  15881. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  15882. -EOF
  15883. + case $xsi_shell in
  15884. + yes)
  15885. + cat << \_LT_EOF >> "$cfgfile"
  15886. -# Break up conftest.vals because some shells have a limit on
  15887. -# the size of here documents, and old seds have small limits too.
  15888. +# func_dirname file append nondir_replacement
  15889. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15890. +# otherwise set result to NONDIR_REPLACEMENT.
  15891. +func_dirname ()
  15892. +{
  15893. + case ${1} in
  15894. + */*) func_dirname_result="${1%/*}${2}" ;;
  15895. + * ) func_dirname_result="${3}" ;;
  15896. + esac
  15897. +}
  15898. -rm -f conftest.tail
  15899. -while :
  15900. -do
  15901. - ac_lines=`grep -c . conftest.vals`
  15902. - # grep -c gives empty output for an empty file on some AIX systems.
  15903. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  15904. - # Write a limited-size here document to conftest.frag.
  15905. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  15906. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  15907. - echo 'CEOF
  15908. - sed -f conftest.frag conftest.in > conftest.out
  15909. - rm -f conftest.in
  15910. - mv conftest.out conftest.in
  15911. -' >> $CONFIG_STATUS
  15912. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  15913. - rm -f conftest.vals
  15914. - mv conftest.tail conftest.vals
  15915. -done
  15916. -rm -f conftest.vals
  15917. +# func_basename file
  15918. +func_basename ()
  15919. +{
  15920. + func_basename_result="${1##*/}"
  15921. +}
  15922. -cat >> $CONFIG_STATUS <<\EOF
  15923. - rm -f conftest.frag conftest.h
  15924. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  15925. - cat conftest.in >> conftest.h
  15926. - rm -f conftest.in
  15927. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  15928. - echo "$ac_file is unchanged"
  15929. - rm -f conftest.h
  15930. +# func_dirname_and_basename file append nondir_replacement
  15931. +# perform func_basename and func_dirname in a single function
  15932. +# call:
  15933. +# dirname: Compute the dirname of FILE. If nonempty,
  15934. +# add APPEND to the result, otherwise set result
  15935. +# to NONDIR_REPLACEMENT.
  15936. +# value returned in "$func_dirname_result"
  15937. +# basename: Compute filename of FILE.
  15938. +# value retuned in "$func_basename_result"
  15939. +# Implementation must be kept synchronized with func_dirname
  15940. +# and func_basename. For efficiency, we do not delegate to
  15941. +# those functions but instead duplicate the functionality here.
  15942. +func_dirname_and_basename ()
  15943. +{
  15944. + case ${1} in
  15945. + */*) func_dirname_result="${1%/*}${2}" ;;
  15946. + * ) func_dirname_result="${3}" ;;
  15947. + esac
  15948. + func_basename_result="${1##*/}"
  15949. +}
  15950. +
  15951. +# func_stripname prefix suffix name
  15952. +# strip PREFIX and SUFFIX off of NAME.
  15953. +# PREFIX and SUFFIX must not contain globbing or regex special
  15954. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  15955. +# dot (in which case that matches only a dot).
  15956. +func_stripname ()
  15957. +{
  15958. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15959. + # positional parameters, so assign one to ordinary parameter first.
  15960. + func_stripname_result=${3}
  15961. + func_stripname_result=${func_stripname_result#"${1}"}
  15962. + func_stripname_result=${func_stripname_result%"${2}"}
  15963. +}
  15964. +
  15965. +# func_opt_split
  15966. +func_opt_split ()
  15967. +{
  15968. + func_opt_split_opt=${1%%=*}
  15969. + func_opt_split_arg=${1#*=}
  15970. +}
  15971. +
  15972. +# func_lo2o object
  15973. +func_lo2o ()
  15974. +{
  15975. + case ${1} in
  15976. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15977. + *) func_lo2o_result=${1} ;;
  15978. + esac
  15979. +}
  15980. +
  15981. +# func_xform libobj-or-source
  15982. +func_xform ()
  15983. +{
  15984. + func_xform_result=${1%.*}.lo
  15985. +}
  15986. +
  15987. +# func_arith arithmetic-term...
  15988. +func_arith ()
  15989. +{
  15990. + func_arith_result=$(( $* ))
  15991. +}
  15992. +
  15993. +# func_len string
  15994. +# STRING may not start with a hyphen.
  15995. +func_len ()
  15996. +{
  15997. + func_len_result=${#1}
  15998. +}
  15999. +
  16000. +_LT_EOF
  16001. + ;;
  16002. + *) # Bourne compatible functions.
  16003. + cat << \_LT_EOF >> "$cfgfile"
  16004. +
  16005. +# func_dirname file append nondir_replacement
  16006. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16007. +# otherwise set result to NONDIR_REPLACEMENT.
  16008. +func_dirname ()
  16009. +{
  16010. + # Extract subdirectory from the argument.
  16011. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  16012. + if test "X$func_dirname_result" = "X${1}"; then
  16013. + func_dirname_result="${3}"
  16014. else
  16015. - # Remove last slash and all that follows it. Not all systems have dirname.
  16016. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  16017. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  16018. - # The file is in a subdirectory.
  16019. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  16020. - fi
  16021. - rm -f $ac_file
  16022. - mv conftest.h $ac_file
  16023. + func_dirname_result="$func_dirname_result${2}"
  16024. fi
  16025. -fi; done
  16026. +}
  16027. -EOF
  16028. -cat >> $CONFIG_STATUS <<EOF
  16029. +# func_basename file
  16030. +func_basename ()
  16031. +{
  16032. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  16033. +}
  16034. -EOF
  16035. -cat >> $CONFIG_STATUS <<\EOF
  16036. -chmod +x libnet-config
  16037. -exit 0
  16038. -EOF
  16039. +
  16040. +# func_stripname prefix suffix name
  16041. +# strip PREFIX and SUFFIX off of NAME.
  16042. +# PREFIX and SUFFIX must not contain globbing or regex special
  16043. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  16044. +# dot (in which case that matches only a dot).
  16045. +# func_strip_suffix prefix name
  16046. +func_stripname ()
  16047. +{
  16048. + case ${2} in
  16049. + .*) func_stripname_result=`$ECHO "X${3}" \
  16050. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  16051. + *) func_stripname_result=`$ECHO "X${3}" \
  16052. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  16053. + esac
  16054. +}
  16055. +
  16056. +# sed scripts:
  16057. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16058. +my_sed_long_arg='1s/^-[^=]*=//'
  16059. +
  16060. +# func_opt_split
  16061. +func_opt_split ()
  16062. +{
  16063. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  16064. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  16065. +}
  16066. +
  16067. +# func_lo2o object
  16068. +func_lo2o ()
  16069. +{
  16070. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  16071. +}
  16072. +
  16073. +# func_xform libobj-or-source
  16074. +func_xform ()
  16075. +{
  16076. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  16077. +}
  16078. +
  16079. +# func_arith arithmetic-term...
  16080. +func_arith ()
  16081. +{
  16082. + func_arith_result=`expr "$@"`
  16083. +}
  16084. +
  16085. +# func_len string
  16086. +# STRING may not start with a hyphen.
  16087. +func_len ()
  16088. +{
  16089. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16090. +}
  16091. +
  16092. +_LT_EOF
  16093. +esac
  16094. +
  16095. +case $lt_shell_append in
  16096. + yes)
  16097. + cat << \_LT_EOF >> "$cfgfile"
  16098. +
  16099. +# func_append var value
  16100. +# Append VALUE to the end of shell variable VAR.
  16101. +func_append ()
  16102. +{
  16103. + eval "$1+=\$2"
  16104. +}
  16105. +_LT_EOF
  16106. + ;;
  16107. + *)
  16108. + cat << \_LT_EOF >> "$cfgfile"
  16109. +
  16110. +# func_append var value
  16111. +# Append VALUE to the end of shell variable VAR.
  16112. +func_append ()
  16113. +{
  16114. + eval "$1=\$$1\$2"
  16115. +}
  16116. +
  16117. +_LT_EOF
  16118. + ;;
  16119. + esac
  16120. +
  16121. +
  16122. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16123. + || (rm -f "$cfgfile"; exit 1)
  16124. +
  16125. + mv -f "$cfgfile" "$ofile" ||
  16126. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16127. + chmod +x "$ofile"
  16128. +
  16129. + ;;
  16130. +
  16131. + esac
  16132. +done # for ac_tag
  16133. +
  16134. +
  16135. +{ (exit 0); exit 0; }
  16136. +_ACEOF
  16137. chmod +x $CONFIG_STATUS
  16138. -rm -fr confdefs* $ac_clean_files
  16139. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  16140. +ac_clean_files=$ac_clean_files_save
  16141. +
  16142. +test $ac_write_fail = 0 ||
  16143. + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  16144. +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  16145. + { (exit 1); exit 1; }; }
  16146. +
  16147. +
  16148. +# configure is writing to config.log, and then calls config.status.
  16149. +# config.status does its own redirection, appending to config.log.
  16150. +# Unfortunately, on DOS this fails, as config.log is still kept open
  16151. +# by configure, so config.status won't be able to write to it; its
  16152. +# output is simply discarded. So we exec the FD to /dev/null,
  16153. +# effectively closing config.log, so it can be properly (re)opened and
  16154. +# appended to by config.status. When coming back to configure, we
  16155. +# need to make the FD available again.
  16156. +if test "$no_create" != yes; then
  16157. + ac_cs_success=:
  16158. + ac_config_status_args=
  16159. + test "$silent" = yes &&
  16160. + ac_config_status_args="$ac_config_status_args --quiet"
  16161. + exec 5>/dev/null
  16162. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16163. + exec 5>>config.log
  16164. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16165. + # would make configure fail if this is the last instruction.
  16166. + $ac_cs_success || { (exit 1); exit 1; }
  16167. +fi
  16168. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16169. + { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16170. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16171. +fi