configure 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. # Check that we are running under the correct shell.
  474. SHELL=${CONFIG_SHELL-/bin/sh}
  475. case X$ECHO in
  476. X*--fallback-echo)
  477. # Remove one level of quotation (which was required for Make).
  478. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  479. ;;
  480. esac
  481. echo=${ECHO-echo}
  482. if test "X$1" = X--no-reexec; then
  483. # Discard the --no-reexec flag, and continue.
  484. shift
  485. elif test "X$1" = X--fallback-echo; then
  486. # Avoid inline document here, it may be left over
  487. :
  488. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  489. # Yippee, $echo works!
  490. :
  491. else
  492. # Restart under the correct shell.
  493. exec $SHELL "$0" --no-reexec ${1+"$@"}
  494. fi
  495. if test "X$1" = X--fallback-echo; then
  496. # used as fallback echo
  497. shift
  498. cat <<EOF
  499. $*
  500. EOF
  501. exit 0
  502. fi
  503. # The HP-UX ksh and POSIX shell print the target directory to stdout
  504. # if CDPATH is set.
  505. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  506. if test -z "$ECHO"; then
  507. if test "X${echo_test_string+set}" != Xset; then
  508. # find a string as large as possible, as long as the shell can cope with it
  509. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  510. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  511. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  512. echo_test_string=`eval $cmd` &&
  513. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  514. then
  515. break
  516. fi
  517. done
  518. fi
  519. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  520. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  521. test "X$echo_testing_string" = "X$echo_test_string"; then
  522. :
  523. else
  524. # The Solaris, AIX, and Digital Unix default echo programs unquote
  525. # backslashes. This makes it impossible to quote backslashes using
  526. # echo "$something" | sed 's/\\/\\\\/g'
  527. #
  528. # So, first we look for a working echo in the user's PATH.
  529. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  530. for dir in $PATH /usr/ucb; do
  531. IFS="$lt_save_ifs"
  532. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  533. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. echo="$dir/echo"
  537. break
  538. fi
  539. done
  540. IFS="$lt_save_ifs"
  541. if test "X$echo" = Xecho; then
  542. # We didn't find a better echo, so look for alternatives.
  543. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  544. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  545. test "X$echo_testing_string" = "X$echo_test_string"; then
  546. # This shell has a builtin print -r that does the trick.
  547. echo='print -r'
  548. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  549. test "X$CONFIG_SHELL" != X/bin/ksh; then
  550. # If we have ksh, try running configure again with it.
  551. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  552. export ORIGINAL_CONFIG_SHELL
  553. CONFIG_SHELL=/bin/ksh
  554. export CONFIG_SHELL
  555. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  556. else
  557. # Try using printf.
  558. echo='printf %s\n'
  559. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  560. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  561. test "X$echo_testing_string" = "X$echo_test_string"; then
  562. # Cool, printf works
  563. :
  564. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  565. test "X$echo_testing_string" = 'X\t' &&
  566. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  569. export CONFIG_SHELL
  570. SHELL="$CONFIG_SHELL"
  571. export SHELL
  572. echo="$CONFIG_SHELL $0 --fallback-echo"
  573. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  574. test "X$echo_testing_string" = 'X\t' &&
  575. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. echo="$CONFIG_SHELL $0 --fallback-echo"
  578. else
  579. # maybe with a smaller string...
  580. prev=:
  581. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  582. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  583. then
  584. break
  585. fi
  586. prev="$cmd"
  587. done
  588. if test "$prev" != 'sed 50q "$0"'; then
  589. echo_test_string=`eval $prev`
  590. export echo_test_string
  591. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  592. else
  593. # Oops. We lost completely, so just stick with echo.
  594. echo=echo
  595. fi
  596. fi
  597. fi
  598. fi
  599. fi
  600. fi
  601. # Copy echo and quote the copy suitably for passing to libtool from
  602. # the Makefile, instead of quoting the original, which is used later.
  603. ECHO=$echo
  604. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  605. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  606. fi
  607. tagnames=${tagnames+${tagnames},}CXX
  608. tagnames=${tagnames+${tagnames},}F77
  609. exec 7<&0 </dev/null 6>&1
  610. # Name of the host.
  611. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  612. # so uname gets run too.
  613. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  614. #
  615. # Initializations.
  616. #
  617. ac_default_prefix=/usr/local
  618. ac_clean_files=
  619. ac_config_libobj_dir=.
  620. LIBOBJS=
  621. cross_compiling=no
  622. subdirs=
  623. MFLAGS=
  624. MAKEFLAGS=
  625. SHELL=${CONFIG_SHELL-/bin/sh}
  626. # Identity of this package.
  627. PACKAGE_NAME=
  628. PACKAGE_TARNAME=
  629. PACKAGE_VERSION=
  630. PACKAGE_STRING=
  631. PACKAGE_BUGREPORT=
  632. ac_unique_file="tcpreplay"
  633. ac_unique_file="src/tcpreplay.c"
  634. # Factoring default headers for most tests.
  635. ac_includes_default="\
  636. #include <stdio.h>
  637. #ifdef HAVE_SYS_TYPES_H
  638. # include <sys/types.h>
  639. #endif
  640. #ifdef HAVE_SYS_STAT_H
  641. # include <sys/stat.h>
  642. #endif
  643. #ifdef STDC_HEADERS
  644. # include <stdlib.h>
  645. # include <stddef.h>
  646. #else
  647. # ifdef HAVE_STDLIB_H
  648. # include <stdlib.h>
  649. # endif
  650. #endif
  651. #ifdef HAVE_STRING_H
  652. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  653. # include <memory.h>
  654. # endif
  655. # include <string.h>
  656. #endif
  657. #ifdef HAVE_STRINGS_H
  658. # include <strings.h>
  659. #endif
  660. #ifdef HAVE_INTTYPES_H
  661. # include <inttypes.h>
  662. #endif
  663. #ifdef HAVE_STDINT_H
  664. # include <stdint.h>
  665. #endif
  666. #ifdef HAVE_UNISTD_H
  667. # include <unistd.h>
  668. #endif"
  669. ac_subst_vars='SHELL
  670. PATH_SEPARATOR
  671. PACKAGE_NAME
  672. PACKAGE_TARNAME
  673. PACKAGE_VERSION
  674. PACKAGE_STRING
  675. PACKAGE_BUGREPORT
  676. exec_prefix
  677. prefix
  678. program_transform_name
  679. bindir
  680. sbindir
  681. libexecdir
  682. datarootdir
  683. datadir
  684. sysconfdir
  685. sharedstatedir
  686. localstatedir
  687. includedir
  688. oldincludedir
  689. docdir
  690. infodir
  691. htmldir
  692. dvidir
  693. pdfdir
  694. psdir
  695. libdir
  696. localedir
  697. mandir
  698. DEFS
  699. ECHO_C
  700. ECHO_N
  701. ECHO_T
  702. LIBS
  703. build_alias
  704. host_alias
  705. target_alias
  706. MAINTAINER_MODE_TRUE
  707. MAINTAINER_MODE_FALSE
  708. MAINT
  709. TCPREPLAY_VERSION
  710. TCPREPLAY_RELEASE
  711. build
  712. build_cpu
  713. build_vendor
  714. build_os
  715. host
  716. host_cpu
  717. host_vendor
  718. host_os
  719. target
  720. target_cpu
  721. target_vendor
  722. target_os
  723. INSTALL_PROGRAM
  724. INSTALL_SCRIPT
  725. INSTALL_DATA
  726. am__isrc
  727. CYGPATH_W
  728. PACKAGE
  729. VERSION
  730. ACLOCAL
  731. AUTOCONF
  732. AUTOMAKE
  733. AUTOHEADER
  734. MAKEINFO
  735. install_sh
  736. STRIP
  737. INSTALL_STRIP_PROGRAM
  738. mkdir_p
  739. AWK
  740. SET_MAKE
  741. am__leading_dot
  742. AMTAR
  743. am__tar
  744. am__untar
  745. CC
  746. CFLAGS
  747. LDFLAGS
  748. CPPFLAGS
  749. ac_ct_CC
  750. EXEEXT
  751. OBJEXT
  752. DEPDIR
  753. am__include
  754. am__quote
  755. AMDEP_TRUE
  756. AMDEP_FALSE
  757. AMDEPBACKSLASH
  758. CCDEPMODE
  759. am__fastdepCC_TRUE
  760. am__fastdepCC_FALSE
  761. SED
  762. GREP
  763. EGREP
  764. LN_S
  765. ECHO
  766. AR
  767. RANLIB
  768. CPP
  769. CXX
  770. CXXFLAGS
  771. ac_ct_CXX
  772. CXXDEPMODE
  773. am__fastdepCXX_TRUE
  774. am__fastdepCXX_FALSE
  775. CXXCPP
  776. F77
  777. FFLAGS
  778. ac_ct_F77
  779. LIBTOOL
  780. PRINTF
  781. AUTOGEN
  782. LIBOBJS
  783. SYSTEM_STRLCPY_TRUE
  784. SYSTEM_STRLCPY_FALSE
  785. WORDS_BIGENDIAN_TRUE
  786. WORDS_BIGENDIAN_FALSE
  787. debug_flag
  788. ENABLE_TCPREPLAY_EDIT_TRUE
  789. ENABLE_TCPREPLAY_EDIT_FALSE
  790. ENABLE_FLOWREPLAY_TRUE
  791. ENABLE_FLOWREPLAY_FALSE
  792. LNETINC
  793. LNETLIB
  794. LPCAPINC
  795. LPCAPLIB
  796. PCAP_BPF_H_FILE
  797. pcncfg
  798. LNAVLIB
  799. LNAV_CFLAGS
  800. tcpdump_path
  801. ENABLE_TCPDUMP_TRUE
  802. ENABLE_TCPDUMP_FALSE
  803. nic1
  804. nic2
  805. LIBOPTS_DIR
  806. INSTALL_LIBOPTS_TRUE
  807. INSTALL_LIBOPTS_FALSE
  808. NEED_LIBOPTS_TRUE
  809. NEED_LIBOPTS_FALSE
  810. LIBOPTS_LDADD
  811. LIBOPTS_CFLAGS
  812. LTLIBOBJS'
  813. ac_subst_files=''
  814. ac_precious_vars='build_alias
  815. host_alias
  816. target_alias
  817. CC
  818. CFLAGS
  819. LDFLAGS
  820. LIBS
  821. CPPFLAGS
  822. CPP
  823. CXX
  824. CXXFLAGS
  825. CCC
  826. CXXCPP
  827. F77
  828. FFLAGS'
  829. # Initialize some variables set by options.
  830. ac_init_help=
  831. ac_init_version=false
  832. # The variables have the same names as the options, with
  833. # dashes changed to underlines.
  834. cache_file=/dev/null
  835. exec_prefix=NONE
  836. no_create=
  837. no_recursion=
  838. prefix=NONE
  839. program_prefix=NONE
  840. program_suffix=NONE
  841. program_transform_name=s,x,x,
  842. silent=
  843. site=
  844. srcdir=
  845. verbose=
  846. x_includes=NONE
  847. x_libraries=NONE
  848. # Installation directory options.
  849. # These are left unexpanded so users can "make install exec_prefix=/foo"
  850. # and all the variables that are supposed to be based on exec_prefix
  851. # by default will actually change.
  852. # Use braces instead of parens because sh, perl, etc. also accept them.
  853. # (The list follows the same order as the GNU Coding Standards.)
  854. bindir='${exec_prefix}/bin'
  855. sbindir='${exec_prefix}/sbin'
  856. libexecdir='${exec_prefix}/libexec'
  857. datarootdir='${prefix}/share'
  858. datadir='${datarootdir}'
  859. sysconfdir='${prefix}/etc'
  860. sharedstatedir='${prefix}/com'
  861. localstatedir='${prefix}/var'
  862. includedir='${prefix}/include'
  863. oldincludedir='/usr/include'
  864. docdir='${datarootdir}/doc/${PACKAGE}'
  865. infodir='${datarootdir}/info'
  866. htmldir='${docdir}'
  867. dvidir='${docdir}'
  868. pdfdir='${docdir}'
  869. psdir='${docdir}'
  870. libdir='${exec_prefix}/lib'
  871. localedir='${datarootdir}/locale'
  872. mandir='${datarootdir}/man'
  873. ac_prev=
  874. ac_dashdash=
  875. for ac_option
  876. do
  877. # If the previous option needs an argument, assign it.
  878. if test -n "$ac_prev"; then
  879. eval $ac_prev=\$ac_option
  880. ac_prev=
  881. continue
  882. fi
  883. case $ac_option in
  884. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  885. *) ac_optarg=yes ;;
  886. esac
  887. # Accept the important Cygnus configure options, so we can diagnose typos.
  888. case $ac_dashdash$ac_option in
  889. --)
  890. ac_dashdash=yes ;;
  891. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  892. ac_prev=bindir ;;
  893. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  894. bindir=$ac_optarg ;;
  895. -build | --build | --buil | --bui | --bu)
  896. ac_prev=build_alias ;;
  897. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  898. build_alias=$ac_optarg ;;
  899. -cache-file | --cache-file | --cache-fil | --cache-fi \
  900. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  901. ac_prev=cache_file ;;
  902. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  903. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  904. cache_file=$ac_optarg ;;
  905. --config-cache | -C)
  906. cache_file=config.cache ;;
  907. -datadir | --datadir | --datadi | --datad)
  908. ac_prev=datadir ;;
  909. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  910. datadir=$ac_optarg ;;
  911. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  912. | --dataroo | --dataro | --datar)
  913. ac_prev=datarootdir ;;
  914. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  915. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  916. datarootdir=$ac_optarg ;;
  917. -disable-* | --disable-*)
  918. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  919. # Reject names that are not valid shell variable names.
  920. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  921. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  922. { (exit 1); exit 1; }; }
  923. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  924. eval enable_$ac_feature=no ;;
  925. -docdir | --docdir | --docdi | --doc | --do)
  926. ac_prev=docdir ;;
  927. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  928. docdir=$ac_optarg ;;
  929. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  930. ac_prev=dvidir ;;
  931. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  932. dvidir=$ac_optarg ;;
  933. -enable-* | --enable-*)
  934. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  935. # Reject names that are not valid shell variable names.
  936. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  937. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  938. { (exit 1); exit 1; }; }
  939. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  940. eval enable_$ac_feature=\$ac_optarg ;;
  941. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  942. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  943. | --exec | --exe | --ex)
  944. ac_prev=exec_prefix ;;
  945. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  946. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  947. | --exec=* | --exe=* | --ex=*)
  948. exec_prefix=$ac_optarg ;;
  949. -gas | --gas | --ga | --g)
  950. # Obsolete; use --with-gas.
  951. with_gas=yes ;;
  952. -help | --help | --hel | --he | -h)
  953. ac_init_help=long ;;
  954. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  955. ac_init_help=recursive ;;
  956. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  957. ac_init_help=short ;;
  958. -host | --host | --hos | --ho)
  959. ac_prev=host_alias ;;
  960. -host=* | --host=* | --hos=* | --ho=*)
  961. host_alias=$ac_optarg ;;
  962. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  963. ac_prev=htmldir ;;
  964. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  965. | --ht=*)
  966. htmldir=$ac_optarg ;;
  967. -includedir | --includedir | --includedi | --included | --include \
  968. | --includ | --inclu | --incl | --inc)
  969. ac_prev=includedir ;;
  970. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  971. | --includ=* | --inclu=* | --incl=* | --inc=*)
  972. includedir=$ac_optarg ;;
  973. -infodir | --infodir | --infodi | --infod | --info | --inf)
  974. ac_prev=infodir ;;
  975. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  976. infodir=$ac_optarg ;;
  977. -libdir | --libdir | --libdi | --libd)
  978. ac_prev=libdir ;;
  979. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  980. libdir=$ac_optarg ;;
  981. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  982. | --libexe | --libex | --libe)
  983. ac_prev=libexecdir ;;
  984. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  985. | --libexe=* | --libex=* | --libe=*)
  986. libexecdir=$ac_optarg ;;
  987. -localedir | --localedir | --localedi | --localed | --locale)
  988. ac_prev=localedir ;;
  989. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  990. localedir=$ac_optarg ;;
  991. -localstatedir | --localstatedir | --localstatedi | --localstated \
  992. | --localstate | --localstat | --localsta | --localst | --locals)
  993. ac_prev=localstatedir ;;
  994. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  995. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  996. localstatedir=$ac_optarg ;;
  997. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  998. ac_prev=mandir ;;
  999. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1000. mandir=$ac_optarg ;;
  1001. -nfp | --nfp | --nf)
  1002. # Obsolete; use --without-fp.
  1003. with_fp=no ;;
  1004. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1005. | --no-cr | --no-c | -n)
  1006. no_create=yes ;;
  1007. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1008. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1009. no_recursion=yes ;;
  1010. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1011. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1012. | --oldin | --oldi | --old | --ol | --o)
  1013. ac_prev=oldincludedir ;;
  1014. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1015. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1016. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1017. oldincludedir=$ac_optarg ;;
  1018. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1019. ac_prev=prefix ;;
  1020. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1021. prefix=$ac_optarg ;;
  1022. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1023. | --program-pre | --program-pr | --program-p)
  1024. ac_prev=program_prefix ;;
  1025. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1026. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1027. program_prefix=$ac_optarg ;;
  1028. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1029. | --program-suf | --program-su | --program-s)
  1030. ac_prev=program_suffix ;;
  1031. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1032. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1033. program_suffix=$ac_optarg ;;
  1034. -program-transform-name | --program-transform-name \
  1035. | --program-transform-nam | --program-transform-na \
  1036. | --program-transform-n | --program-transform- \
  1037. | --program-transform | --program-transfor \
  1038. | --program-transfo | --program-transf \
  1039. | --program-trans | --program-tran \
  1040. | --progr-tra | --program-tr | --program-t)
  1041. ac_prev=program_transform_name ;;
  1042. -program-transform-name=* | --program-transform-name=* \
  1043. | --program-transform-nam=* | --program-transform-na=* \
  1044. | --program-transform-n=* | --program-transform-=* \
  1045. | --program-transform=* | --program-transfor=* \
  1046. | --program-transfo=* | --program-transf=* \
  1047. | --program-trans=* | --program-tran=* \
  1048. | --progr-tra=* | --program-tr=* | --program-t=*)
  1049. program_transform_name=$ac_optarg ;;
  1050. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1051. ac_prev=pdfdir ;;
  1052. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1053. pdfdir=$ac_optarg ;;
  1054. -psdir | --psdir | --psdi | --psd | --ps)
  1055. ac_prev=psdir ;;
  1056. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1057. psdir=$ac_optarg ;;
  1058. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1059. | -silent | --silent | --silen | --sile | --sil)
  1060. silent=yes ;;
  1061. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1062. ac_prev=sbindir ;;
  1063. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1064. | --sbi=* | --sb=*)
  1065. sbindir=$ac_optarg ;;
  1066. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1067. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1068. | --sharedst | --shareds | --shared | --share | --shar \
  1069. | --sha | --sh)
  1070. ac_prev=sharedstatedir ;;
  1071. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1072. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1073. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1074. | --sha=* | --sh=*)
  1075. sharedstatedir=$ac_optarg ;;
  1076. -site | --site | --sit)
  1077. ac_prev=site ;;
  1078. -site=* | --site=* | --sit=*)
  1079. site=$ac_optarg ;;
  1080. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1081. ac_prev=srcdir ;;
  1082. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1083. srcdir=$ac_optarg ;;
  1084. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1085. | --syscon | --sysco | --sysc | --sys | --sy)
  1086. ac_prev=sysconfdir ;;
  1087. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1088. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1089. sysconfdir=$ac_optarg ;;
  1090. -target | --target | --targe | --targ | --tar | --ta | --t)
  1091. ac_prev=target_alias ;;
  1092. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1093. target_alias=$ac_optarg ;;
  1094. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1095. verbose=yes ;;
  1096. -version | --version | --versio | --versi | --vers | -V)
  1097. ac_init_version=: ;;
  1098. -with-* | --with-*)
  1099. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1102. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1103. { (exit 1); exit 1; }; }
  1104. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1105. eval with_$ac_package=\$ac_optarg ;;
  1106. -without-* | --without-*)
  1107. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1110. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1111. { (exit 1); exit 1; }; }
  1112. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1113. eval with_$ac_package=no ;;
  1114. --x)
  1115. # Obsolete; use --with-x.
  1116. with_x=yes ;;
  1117. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1118. | --x-incl | --x-inc | --x-in | --x-i)
  1119. ac_prev=x_includes ;;
  1120. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1121. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1122. x_includes=$ac_optarg ;;
  1123. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1124. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1125. ac_prev=x_libraries ;;
  1126. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1127. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1128. x_libraries=$ac_optarg ;;
  1129. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1130. Try \`$0 --help' for more information." >&2
  1131. { (exit 1); exit 1; }; }
  1132. ;;
  1133. *=*)
  1134. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1135. # Reject names that are not valid shell variable names.
  1136. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1137. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1138. { (exit 1); exit 1; }; }
  1139. eval $ac_envvar=\$ac_optarg
  1140. export $ac_envvar ;;
  1141. *)
  1142. # FIXME: should be removed in autoconf 3.0.
  1143. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1144. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1145. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1146. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1147. ;;
  1148. esac
  1149. done
  1150. if test -n "$ac_prev"; then
  1151. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1152. { echo "$as_me: error: missing argument to $ac_option" >&2
  1153. { (exit 1); exit 1; }; }
  1154. fi
  1155. # Be sure to have absolute directory names.
  1156. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1157. datadir sysconfdir sharedstatedir localstatedir includedir \
  1158. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1159. libdir localedir mandir
  1160. do
  1161. eval ac_val=\$$ac_var
  1162. case $ac_val in
  1163. [\\/$]* | ?:[\\/]* ) continue;;
  1164. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1165. esac
  1166. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1167. { (exit 1); exit 1; }; }
  1168. done
  1169. # There might be people who depend on the old broken behavior: `$host'
  1170. # used to hold the argument of --host etc.
  1171. # FIXME: To remove some day.
  1172. build=$build_alias
  1173. host=$host_alias
  1174. target=$target_alias
  1175. # FIXME: To remove some day.
  1176. if test "x$host_alias" != x; then
  1177. if test "x$build_alias" = x; then
  1178. cross_compiling=maybe
  1179. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1180. If a cross compiler is detected then cross compile mode will be used." >&2
  1181. elif test "x$build_alias" != "x$host_alias"; then
  1182. cross_compiling=yes
  1183. fi
  1184. fi
  1185. ac_tool_prefix=
  1186. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1187. test "$silent" = yes && exec 6>/dev/null
  1188. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1189. ac_ls_di=`ls -di .` &&
  1190. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1191. { echo "$as_me: error: Working directory cannot be determined" >&2
  1192. { (exit 1); exit 1; }; }
  1193. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1194. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1195. { (exit 1); exit 1; }; }
  1196. # Find the source files, if location was not specified.
  1197. if test -z "$srcdir"; then
  1198. ac_srcdir_defaulted=yes
  1199. # Try the directory containing this script, then the parent directory.
  1200. ac_confdir=`$as_dirname -- "$0" ||
  1201. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1202. X"$0" : 'X\(//\)[^/]' \| \
  1203. X"$0" : 'X\(//\)$' \| \
  1204. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1205. echo X"$0" |
  1206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1207. s//\1/
  1208. q
  1209. }
  1210. /^X\(\/\/\)[^/].*/{
  1211. s//\1/
  1212. q
  1213. }
  1214. /^X\(\/\/\)$/{
  1215. s//\1/
  1216. q
  1217. }
  1218. /^X\(\/\).*/{
  1219. s//\1/
  1220. q
  1221. }
  1222. s/.*/./; q'`
  1223. srcdir=$ac_confdir
  1224. if test ! -r "$srcdir/$ac_unique_file"; then
  1225. srcdir=..
  1226. fi
  1227. else
  1228. ac_srcdir_defaulted=no
  1229. fi
  1230. if test ! -r "$srcdir/$ac_unique_file"; then
  1231. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1232. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1233. { (exit 1); exit 1; }; }
  1234. fi
  1235. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1236. ac_abs_confdir=`(
  1237. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1238. { (exit 1); exit 1; }; }
  1239. pwd)`
  1240. # When building in place, set srcdir=.
  1241. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1242. srcdir=.
  1243. fi
  1244. # Remove unnecessary trailing slashes from srcdir.
  1245. # Double slashes in file names in object file debugging info
  1246. # mess up M-x gdb in Emacs.
  1247. case $srcdir in
  1248. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1249. esac
  1250. for ac_var in $ac_precious_vars; do
  1251. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1252. eval ac_env_${ac_var}_value=\$${ac_var}
  1253. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1254. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1255. done
  1256. #
  1257. # Report the --help message.
  1258. #
  1259. if test "$ac_init_help" = "long"; then
  1260. # Omit some internal or obsolete options to make the list less imposing.
  1261. # This message is too long to be a string in the A/UX 3.1 sh.
  1262. cat <<_ACEOF
  1263. \`configure' configures this package to adapt to many kinds of systems.
  1264. Usage: $0 [OPTION]... [VAR=VALUE]...
  1265. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1266. VAR=VALUE. See below for descriptions of some of the useful variables.
  1267. Defaults for the options are specified in brackets.
  1268. Configuration:
  1269. -h, --help display this help and exit
  1270. --help=short display options specific to this package
  1271. --help=recursive display the short help of all the included packages
  1272. -V, --version display version information and exit
  1273. -q, --quiet, --silent do not print \`checking...' messages
  1274. --cache-file=FILE cache test results in FILE [disabled]
  1275. -C, --config-cache alias for \`--cache-file=config.cache'
  1276. -n, --no-create do not create output files
  1277. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1278. Installation directories:
  1279. --prefix=PREFIX install architecture-independent files in PREFIX
  1280. [$ac_default_prefix]
  1281. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1282. [PREFIX]
  1283. By default, \`make install' will install all the files in
  1284. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1285. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1286. for instance \`--prefix=\$HOME'.
  1287. For better control, use the options below.
  1288. Fine tuning of the installation directories:
  1289. --bindir=DIR user executables [EPREFIX/bin]
  1290. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1291. --libexecdir=DIR program executables [EPREFIX/libexec]
  1292. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1293. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1294. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1295. --libdir=DIR object code libraries [EPREFIX/lib]
  1296. --includedir=DIR C header files [PREFIX/include]
  1297. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1298. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1299. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1300. --infodir=DIR info documentation [DATAROOTDIR/info]
  1301. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1302. --mandir=DIR man documentation [DATAROOTDIR/man]
  1303. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1304. --htmldir=DIR html documentation [DOCDIR]
  1305. --dvidir=DIR dvi documentation [DOCDIR]
  1306. --pdfdir=DIR pdf documentation [DOCDIR]
  1307. --psdir=DIR ps documentation [DOCDIR]
  1308. _ACEOF
  1309. cat <<\_ACEOF
  1310. Program names:
  1311. --program-prefix=PREFIX prepend PREFIX to installed program names
  1312. --program-suffix=SUFFIX append SUFFIX to installed program names
  1313. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1314. System types:
  1315. --build=BUILD configure for building on BUILD [guessed]
  1316. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1317. --target=TARGET configure for building compilers for TARGET [HOST]
  1318. _ACEOF
  1319. fi
  1320. if test -n "$ac_init_help"; then
  1321. cat <<\_ACEOF
  1322. Optional Features:
  1323. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1324. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1325. --enable-maintainer-mode enable make rules and dependencies not useful
  1326. (and sometimes confusing) to the casual installer
  1327. --enable-shared[=PKGS] build shared libraries [default=yes]
  1328. --enable-static[=PKGS] build static libraries [default=yes]
  1329. --enable-fast-install[=PKGS]
  1330. optimize for fast installation [default=yes]
  1331. --disable-dependency-tracking speeds up one-time build
  1332. --enable-dependency-tracking do not reject slow dependency extractors
  1333. --disable-libtool-lock avoid locking (might break parallel builds)
  1334. --disable-largefile omit support for large files
  1335. --enable-debug Enable debugging code and support for the -d option
  1336. --enable-pedantic Enable gcc's -pedantic option
  1337. --enable-efence Enable Electric Fence memory debugger
  1338. --enable-gprof Enable GNU Profiler
  1339. --enable-64bits Use 64bit packet counters
  1340. --enable-force-bpf Force using BPF for sending packets
  1341. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1342. --enable-force-libnet Force using libnet for sending packets
  1343. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1344. packets
  1345. --enable-force-sendpacket
  1346. Force using libpcap's pcap_sendpacket() for sending
  1347. packets
  1348. --enable-tcpreplay-edit Link packet editing code with tcpreplay
  1349. --enable-dynamic-link Dynamically link libraries
  1350. --enable-flowreplay Enable building flowreplay (alpha)
  1351. --enable-libnet Enable using the libnet 1.1.x library (deprecated)
  1352. --enable-local-libopts Force using the supplied libopts tearoff code
  1353. --disable-libopts-install
  1354. Do not install libopts with client installation
  1355. --disable-optional-args not wanting optional option args
  1356. Optional Packages:
  1357. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1358. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1359. --with-dmalloc use dmalloc, as in
  1360. http://www.dmalloc.com/dmalloc.tar.gz
  1361. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1362. --with-pic try to use only PIC/non-PIC objects [default=use
  1363. both]
  1364. --with-tags[=TAGS] include additional configurations [automatic]
  1365. --with-libnet=DIR Use libnet in DIR
  1366. --with-libpcap=DIR Use libpcap in DIR
  1367. --with-pcapnav-config=FILE
  1368. Use given pcapnav-config
  1369. --with-tcpdump=FILE Path to tcpdump binary
  1370. --with-testnic=NIC Select which network card to use for testing
  1371. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1372. testing
  1373. --with-autoopts-config specify the config-info script
  1374. --with-regex-header a reg expr header is specified
  1375. --with-libregex libregex installation prefix
  1376. --with-libregex-cflags libregex compile flags
  1377. --with-libregex-libs libregex link command arguments
  1378. Some influential environment variables:
  1379. CC C compiler command
  1380. CFLAGS C compiler flags
  1381. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1382. nonstandard directory <lib dir>
  1383. LIBS libraries to pass to the linker, e.g. -l<library>
  1384. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1385. you have headers in a nonstandard directory <include dir>
  1386. CPP C preprocessor
  1387. CXX C++ compiler command
  1388. CXXFLAGS C++ compiler flags
  1389. CXXCPP C++ preprocessor
  1390. F77 Fortran 77 compiler command
  1391. FFLAGS Fortran 77 compiler flags
  1392. Use these variables to override the choices made by `configure' or to help
  1393. it to find libraries and programs with nonstandard names/locations.
  1394. _ACEOF
  1395. ac_status=$?
  1396. fi
  1397. if test "$ac_init_help" = "recursive"; then
  1398. # If there are subdirs, report their specific --help.
  1399. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1400. test -d "$ac_dir" || continue
  1401. ac_builddir=.
  1402. case "$ac_dir" in
  1403. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404. *)
  1405. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1406. # A ".." for each directory in $ac_dir_suffix.
  1407. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1408. case $ac_top_builddir_sub in
  1409. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1410. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1411. esac ;;
  1412. esac
  1413. ac_abs_top_builddir=$ac_pwd
  1414. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1415. # for backward compatibility:
  1416. ac_top_builddir=$ac_top_build_prefix
  1417. case $srcdir in
  1418. .) # We are building in place.
  1419. ac_srcdir=.
  1420. ac_top_srcdir=$ac_top_builddir_sub
  1421. ac_abs_top_srcdir=$ac_pwd ;;
  1422. [\\/]* | ?:[\\/]* ) # Absolute name.
  1423. ac_srcdir=$srcdir$ac_dir_suffix;
  1424. ac_top_srcdir=$srcdir
  1425. ac_abs_top_srcdir=$srcdir ;;
  1426. *) # Relative name.
  1427. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1428. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1429. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1430. esac
  1431. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1432. cd "$ac_dir" || { ac_status=$?; continue; }
  1433. # Check for guested configure.
  1434. if test -f "$ac_srcdir/configure.gnu"; then
  1435. echo &&
  1436. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1437. elif test -f "$ac_srcdir/configure"; then
  1438. echo &&
  1439. $SHELL "$ac_srcdir/configure" --help=recursive
  1440. else
  1441. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1442. fi || ac_status=$?
  1443. cd "$ac_pwd" || { ac_status=$?; break; }
  1444. done
  1445. fi
  1446. test -n "$ac_init_help" && exit $ac_status
  1447. if $ac_init_version; then
  1448. cat <<\_ACEOF
  1449. configure
  1450. generated by GNU Autoconf 2.61
  1451. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1452. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1453. This configure script is free software; the Free Software Foundation
  1454. gives unlimited permission to copy, distribute and modify it.
  1455. _ACEOF
  1456. exit
  1457. fi
  1458. cat >config.log <<_ACEOF
  1459. This file contains any messages produced by compilers while
  1460. running configure, to aid debugging if configure makes a mistake.
  1461. It was created by $as_me, which was
  1462. generated by GNU Autoconf 2.61. Invocation command line was
  1463. $ $0 $@
  1464. _ACEOF
  1465. exec 5>>config.log
  1466. {
  1467. cat <<_ASUNAME
  1468. ## --------- ##
  1469. ## Platform. ##
  1470. ## --------- ##
  1471. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1472. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1473. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1474. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1475. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1476. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1477. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1478. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1479. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1480. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1481. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1482. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1483. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1484. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1485. _ASUNAME
  1486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1487. for as_dir in $PATH
  1488. do
  1489. IFS=$as_save_IFS
  1490. test -z "$as_dir" && as_dir=.
  1491. echo "PATH: $as_dir"
  1492. done
  1493. IFS=$as_save_IFS
  1494. } >&5
  1495. cat >&5 <<_ACEOF
  1496. ## ----------- ##
  1497. ## Core tests. ##
  1498. ## ----------- ##
  1499. _ACEOF
  1500. # Keep a trace of the command line.
  1501. # Strip out --no-create and --no-recursion so they do not pile up.
  1502. # Strip out --silent because we don't want to record it for future runs.
  1503. # Also quote any args containing shell meta-characters.
  1504. # Make two passes to allow for proper duplicate-argument suppression.
  1505. ac_configure_args=
  1506. ac_configure_args0=
  1507. ac_configure_args1=
  1508. ac_must_keep_next=false
  1509. for ac_pass in 1 2
  1510. do
  1511. for ac_arg
  1512. do
  1513. case $ac_arg in
  1514. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1515. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1516. | -silent | --silent | --silen | --sile | --sil)
  1517. continue ;;
  1518. *\'*)
  1519. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1520. esac
  1521. case $ac_pass in
  1522. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1523. 2)
  1524. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1525. if test $ac_must_keep_next = true; then
  1526. ac_must_keep_next=false # Got value, back to normal.
  1527. else
  1528. case $ac_arg in
  1529. *=* | --config-cache | -C | -disable-* | --disable-* \
  1530. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1531. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1532. | -with-* | --with-* | -without-* | --without-* | --x)
  1533. case "$ac_configure_args0 " in
  1534. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1535. esac
  1536. ;;
  1537. -* ) ac_must_keep_next=true ;;
  1538. esac
  1539. fi
  1540. ac_configure_args="$ac_configure_args '$ac_arg'"
  1541. ;;
  1542. esac
  1543. done
  1544. done
  1545. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1546. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1547. # When interrupted or exit'd, cleanup temporary files, and complete
  1548. # config.log. We remove comments because anyway the quotes in there
  1549. # would cause problems or look ugly.
  1550. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1551. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1552. trap 'exit_status=$?
  1553. # Save into config.log some information that might help in debugging.
  1554. {
  1555. echo
  1556. cat <<\_ASBOX
  1557. ## ---------------- ##
  1558. ## Cache variables. ##
  1559. ## ---------------- ##
  1560. _ASBOX
  1561. echo
  1562. # The following way of writing the cache mishandles newlines in values,
  1563. (
  1564. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1565. eval ac_val=\$$ac_var
  1566. case $ac_val in #(
  1567. *${as_nl}*)
  1568. case $ac_var in #(
  1569. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1570. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1571. esac
  1572. case $ac_var in #(
  1573. _ | IFS | as_nl) ;; #(
  1574. *) $as_unset $ac_var ;;
  1575. esac ;;
  1576. esac
  1577. done
  1578. (set) 2>&1 |
  1579. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1580. *${as_nl}ac_space=\ *)
  1581. sed -n \
  1582. "s/'\''/'\''\\\\'\'''\''/g;
  1583. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1584. ;; #(
  1585. *)
  1586. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1587. ;;
  1588. esac |
  1589. sort
  1590. )
  1591. echo
  1592. cat <<\_ASBOX
  1593. ## ----------------- ##
  1594. ## Output variables. ##
  1595. ## ----------------- ##
  1596. _ASBOX
  1597. echo
  1598. for ac_var in $ac_subst_vars
  1599. do
  1600. eval ac_val=\$$ac_var
  1601. case $ac_val in
  1602. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1603. esac
  1604. echo "$ac_var='\''$ac_val'\''"
  1605. done | sort
  1606. echo
  1607. if test -n "$ac_subst_files"; then
  1608. cat <<\_ASBOX
  1609. ## ------------------- ##
  1610. ## File substitutions. ##
  1611. ## ------------------- ##
  1612. _ASBOX
  1613. echo
  1614. for ac_var in $ac_subst_files
  1615. do
  1616. eval ac_val=\$$ac_var
  1617. case $ac_val in
  1618. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1619. esac
  1620. echo "$ac_var='\''$ac_val'\''"
  1621. done | sort
  1622. echo
  1623. fi
  1624. if test -s confdefs.h; then
  1625. cat <<\_ASBOX
  1626. ## ----------- ##
  1627. ## confdefs.h. ##
  1628. ## ----------- ##
  1629. _ASBOX
  1630. echo
  1631. cat confdefs.h
  1632. echo
  1633. fi
  1634. test "$ac_signal" != 0 &&
  1635. echo "$as_me: caught signal $ac_signal"
  1636. echo "$as_me: exit $exit_status"
  1637. } >&5
  1638. rm -f core *.core core.conftest.* &&
  1639. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1640. exit $exit_status
  1641. ' 0
  1642. for ac_signal in 1 2 13 15; do
  1643. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1644. done
  1645. ac_signal=0
  1646. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1647. rm -f -r conftest* confdefs.h
  1648. # Predefined preprocessor variables.
  1649. cat >>confdefs.h <<_ACEOF
  1650. #define PACKAGE_NAME "$PACKAGE_NAME"
  1651. _ACEOF
  1652. cat >>confdefs.h <<_ACEOF
  1653. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1654. _ACEOF
  1655. cat >>confdefs.h <<_ACEOF
  1656. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1657. _ACEOF
  1658. cat >>confdefs.h <<_ACEOF
  1659. #define PACKAGE_STRING "$PACKAGE_STRING"
  1660. _ACEOF
  1661. cat >>confdefs.h <<_ACEOF
  1662. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1663. _ACEOF
  1664. # Let the site file select an alternate cache file if it wants to.
  1665. # Prefer explicitly selected file to automatically selected ones.
  1666. if test -n "$CONFIG_SITE"; then
  1667. set x "$CONFIG_SITE"
  1668. elif test "x$prefix" != xNONE; then
  1669. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1670. else
  1671. set x "$ac_default_prefix/share/config.site" \
  1672. "$ac_default_prefix/etc/config.site"
  1673. fi
  1674. shift
  1675. for ac_site_file
  1676. do
  1677. if test -r "$ac_site_file"; then
  1678. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1679. echo "$as_me: loading site script $ac_site_file" >&6;}
  1680. sed 's/^/| /' "$ac_site_file" >&5
  1681. . "$ac_site_file"
  1682. fi
  1683. done
  1684. if test -r "$cache_file"; then
  1685. # Some versions of bash will fail to source /dev/null (special
  1686. # files actually), so we avoid doing that.
  1687. if test -f "$cache_file"; then
  1688. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1689. echo "$as_me: loading cache $cache_file" >&6;}
  1690. case $cache_file in
  1691. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1692. *) . "./$cache_file";;
  1693. esac
  1694. fi
  1695. else
  1696. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1697. echo "$as_me: creating cache $cache_file" >&6;}
  1698. >$cache_file
  1699. fi
  1700. # Check that the precious variables saved in the cache have kept the same
  1701. # value.
  1702. ac_cache_corrupted=false
  1703. for ac_var in $ac_precious_vars; do
  1704. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1705. eval ac_new_set=\$ac_env_${ac_var}_set
  1706. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1707. eval ac_new_val=\$ac_env_${ac_var}_value
  1708. case $ac_old_set,$ac_new_set in
  1709. set,)
  1710. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1711. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1712. ac_cache_corrupted=: ;;
  1713. ,set)
  1714. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1715. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1716. ac_cache_corrupted=: ;;
  1717. ,);;
  1718. *)
  1719. if test "x$ac_old_val" != "x$ac_new_val"; then
  1720. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1721. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1722. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1723. echo "$as_me: former value: $ac_old_val" >&2;}
  1724. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1725. echo "$as_me: current value: $ac_new_val" >&2;}
  1726. ac_cache_corrupted=:
  1727. fi;;
  1728. esac
  1729. # Pass precious variables to config.status.
  1730. if test "$ac_new_set" = set; then
  1731. case $ac_new_val in
  1732. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1733. *) ac_arg=$ac_var=$ac_new_val ;;
  1734. esac
  1735. case " $ac_configure_args " in
  1736. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1737. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1738. esac
  1739. fi
  1740. done
  1741. if $ac_cache_corrupted; then
  1742. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1743. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1744. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1745. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1746. { (exit 1); exit 1; }; }
  1747. fi
  1748. ac_ext=c
  1749. ac_cpp='$CPP $CPPFLAGS'
  1750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1753. ac_config_headers="$ac_config_headers src/config.h"
  1754. ac_aux_dir=
  1755. for ac_dir in config "$srcdir"/config; do
  1756. if test -f "$ac_dir/install-sh"; then
  1757. ac_aux_dir=$ac_dir
  1758. ac_install_sh="$ac_aux_dir/install-sh -c"
  1759. break
  1760. elif test -f "$ac_dir/install.sh"; then
  1761. ac_aux_dir=$ac_dir
  1762. ac_install_sh="$ac_aux_dir/install.sh -c"
  1763. break
  1764. elif test -f "$ac_dir/shtool"; then
  1765. ac_aux_dir=$ac_dir
  1766. ac_install_sh="$ac_aux_dir/shtool install -c"
  1767. break
  1768. fi
  1769. done
  1770. if test -z "$ac_aux_dir"; then
  1771. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1772. echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1773. { (exit 1); exit 1; }; }
  1774. fi
  1775. # These three variables are undocumented and unsupported,
  1776. # and are intended to be withdrawn in a future Autoconf release.
  1777. # They can cause serious problems if a builder's source tree is in a directory
  1778. # whose full name contains unusual characters.
  1779. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1780. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1781. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1782. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1783. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  1784. # Check whether --enable-maintainer-mode was given.
  1785. if test "${enable_maintainer_mode+set}" = set; then
  1786. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  1787. else
  1788. USE_MAINTAINER_MODE=no
  1789. fi
  1790. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1791. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  1792. if test $USE_MAINTAINER_MODE = yes; then
  1793. MAINTAINER_MODE_TRUE=
  1794. MAINTAINER_MODE_FALSE='#'
  1795. else
  1796. MAINTAINER_MODE_TRUE='#'
  1797. MAINTAINER_MODE_FALSE=
  1798. fi
  1799. MAINT=$MAINTAINER_MODE_TRUE
  1800. { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1801. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
  1802. # Check whether --with-dmalloc was given.
  1803. if test "${with_dmalloc+set}" = set; then
  1804. withval=$with_dmalloc; if test "$withval" = yes; then
  1805. { echo "$as_me:$LINENO: result: yes" >&5
  1806. echo "${ECHO_T}yes" >&6; }
  1807. cat >>confdefs.h <<\_ACEOF
  1808. #define WITH_DMALLOC 1
  1809. _ACEOF
  1810. LIBS="$LIBS -ldmalloc"
  1811. LDFLAGS="$LDFLAGS -g"
  1812. else
  1813. { echo "$as_me:$LINENO: result: no" >&5
  1814. echo "${ECHO_T}no" >&6; }
  1815. fi
  1816. else
  1817. { echo "$as_me:$LINENO: result: no" >&5
  1818. echo "${ECHO_T}no" >&6; }
  1819. fi
  1820. MAJOR_VERSION=3
  1821. MINOR_VERSION=1
  1822. MICRO_VERSION=1
  1823. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  1824. TCPREPLAY_RELEASE=1
  1825. cat >>confdefs.h <<\_ACEOF
  1826. #define PACKAGE tcpreplay
  1827. _ACEOF
  1828. cat >>confdefs.h <<_ACEOF
  1829. #define VERSION "$TCPREPLAY_VERSION"
  1830. _ACEOF
  1831. USER_CFLAGS=$CFLAGS
  1832. CFLAGS="${CFLAGS} -Wall -O3 -std=gnu99"
  1833. # Make sure we can run config.sub.
  1834. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1835. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1836. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1837. { (exit 1); exit 1; }; }
  1838. { echo "$as_me:$LINENO: checking build system type" >&5
  1839. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1840. if test "${ac_cv_build+set}" = set; then
  1841. echo $ECHO_N "(cached) $ECHO_C" >&6
  1842. else
  1843. ac_build_alias=$build_alias
  1844. test "x$ac_build_alias" = x &&
  1845. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1846. test "x$ac_build_alias" = x &&
  1847. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1848. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1849. { (exit 1); exit 1; }; }
  1850. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1851. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1852. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1853. { (exit 1); exit 1; }; }
  1854. fi
  1855. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1856. echo "${ECHO_T}$ac_cv_build" >&6; }
  1857. case $ac_cv_build in
  1858. *-*-*) ;;
  1859. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1860. echo "$as_me: error: invalid value of canonical build" >&2;}
  1861. { (exit 1); exit 1; }; };;
  1862. esac
  1863. build=$ac_cv_build
  1864. ac_save_IFS=$IFS; IFS='-'
  1865. set x $ac_cv_build
  1866. shift
  1867. build_cpu=$1
  1868. build_vendor=$2
  1869. shift; shift
  1870. # Remember, the first character of IFS is used to create $*,
  1871. # except with old shells:
  1872. build_os=$*
  1873. IFS=$ac_save_IFS
  1874. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1875. { echo "$as_me:$LINENO: checking host system type" >&5
  1876. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1877. if test "${ac_cv_host+set}" = set; then
  1878. echo $ECHO_N "(cached) $ECHO_C" >&6
  1879. else
  1880. if test "x$host_alias" = x; then
  1881. ac_cv_host=$ac_cv_build
  1882. else
  1883. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1884. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1885. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1886. { (exit 1); exit 1; }; }
  1887. fi
  1888. fi
  1889. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1890. echo "${ECHO_T}$ac_cv_host" >&6; }
  1891. case $ac_cv_host in
  1892. *-*-*) ;;
  1893. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1894. echo "$as_me: error: invalid value of canonical host" >&2;}
  1895. { (exit 1); exit 1; }; };;
  1896. esac
  1897. host=$ac_cv_host
  1898. ac_save_IFS=$IFS; IFS='-'
  1899. set x $ac_cv_host
  1900. shift
  1901. host_cpu=$1
  1902. host_vendor=$2
  1903. shift; shift
  1904. # Remember, the first character of IFS is used to create $*,
  1905. # except with old shells:
  1906. host_os=$*
  1907. IFS=$ac_save_IFS
  1908. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1909. { echo "$as_me:$LINENO: checking target system type" >&5
  1910. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1911. if test "${ac_cv_target+set}" = set; then
  1912. echo $ECHO_N "(cached) $ECHO_C" >&6
  1913. else
  1914. if test "x$target_alias" = x; then
  1915. ac_cv_target=$ac_cv_host
  1916. else
  1917. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1918. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1919. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1920. { (exit 1); exit 1; }; }
  1921. fi
  1922. fi
  1923. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1924. echo "${ECHO_T}$ac_cv_target" >&6; }
  1925. case $ac_cv_target in
  1926. *-*-*) ;;
  1927. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1928. echo "$as_me: error: invalid value of canonical target" >&2;}
  1929. { (exit 1); exit 1; }; };;
  1930. esac
  1931. target=$ac_cv_target
  1932. ac_save_IFS=$IFS; IFS='-'
  1933. set x $ac_cv_target
  1934. shift
  1935. target_cpu=$1
  1936. target_vendor=$2
  1937. shift; shift
  1938. # Remember, the first character of IFS is used to create $*,
  1939. # except with old shells:
  1940. target_os=$*
  1941. IFS=$ac_save_IFS
  1942. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1943. # The aliases save the names the user supplied, while $host etc.
  1944. # will get canonicalized.
  1945. test -n "$target_alias" &&
  1946. test "$program_prefix$program_suffix$program_transform_name" = \
  1947. NONENONEs,x,x, &&
  1948. program_prefix=${target_alias}-
  1949. { echo "$as_me:$LINENO: checking for cygwin development environment" >&5
  1950. echo $ECHO_N "checking for cygwin development environment... $ECHO_C" >&6; }
  1951. if test `echo $target | grep -c cygwin` -gt 0 ; then
  1952. cat >>confdefs.h <<\_ACEOF
  1953. #define HAVE_WIN32 1
  1954. _ACEOF
  1955. { echo "$as_me:$LINENO: result: yes" >&5
  1956. echo "${ECHO_T}yes" >&6; }
  1957. else
  1958. { echo "$as_me:$LINENO: result: no" >&5
  1959. echo "${ECHO_T}no" >&6; }
  1960. fi
  1961. am__api_version='1.10'
  1962. # Find a good install program. We prefer a C program (faster),
  1963. # so one script is as good as another. But avoid the broken or
  1964. # incompatible versions:
  1965. # SysV /etc/install, /usr/sbin/install
  1966. # SunOS /usr/etc/install
  1967. # IRIX /sbin/install
  1968. # AIX /bin/install
  1969. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1970. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1971. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1972. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1973. # OS/2's system install, which has a completely different semantic
  1974. # ./install, which can be erroneously created by make from ./install.sh.
  1975. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1976. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1977. if test -z "$INSTALL"; then
  1978. if test "${ac_cv_path_install+set}" = set; then
  1979. echo $ECHO_N "(cached) $ECHO_C" >&6
  1980. else
  1981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1982. for as_dir in $PATH
  1983. do
  1984. IFS=$as_save_IFS
  1985. test -z "$as_dir" && as_dir=.
  1986. # Account for people who put trailing slashes in PATH elements.
  1987. case $as_dir/ in
  1988. ./ | .// | /cC/* | \
  1989. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1990. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1991. /usr/ucb/* ) ;;
  1992. *)
  1993. # OSF1 and SCO ODT 3.0 have their own names for install.
  1994. # Don't use installbsd from OSF since it installs stuff as root
  1995. # by default.
  1996. for ac_prog in ginstall scoinst install; do
  1997. for ac_exec_ext in '' $ac_executable_extensions; do
  1998. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1999. if test $ac_prog = install &&
  2000. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2001. # AIX install. It has an incompatible calling convention.
  2002. :
  2003. elif test $ac_prog = install &&
  2004. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2005. # program-specific install script used by HP pwplus--don't use.
  2006. :
  2007. else
  2008. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2009. break 3
  2010. fi
  2011. fi
  2012. done
  2013. done
  2014. ;;
  2015. esac
  2016. done
  2017. IFS=$as_save_IFS
  2018. fi
  2019. if test "${ac_cv_path_install+set}" = set; then
  2020. INSTALL=$ac_cv_path_install
  2021. else
  2022. # As a last resort, use the slow shell script. Don't cache a
  2023. # value for INSTALL within a source directory, because that will
  2024. # break other packages using the cache if that directory is
  2025. # removed, or if the value is a relative name.
  2026. INSTALL=$ac_install_sh
  2027. fi
  2028. fi
  2029. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2030. echo "${ECHO_T}$INSTALL" >&6; }
  2031. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2032. # It thinks the first close brace ends the variable substitution.
  2033. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2034. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2035. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2036. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2037. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2038. # Just in case
  2039. sleep 1
  2040. echo timestamp > conftest.file
  2041. # Do `set' in a subshell so we don't clobber the current shell's
  2042. # arguments. Must try -L first in case configure is actually a
  2043. # symlink; some systems play weird games with the mod time of symlinks
  2044. # (eg FreeBSD returns the mod time of the symlink's containing
  2045. # directory).
  2046. if (
  2047. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2048. if test "$*" = "X"; then
  2049. # -L didn't work.
  2050. set X `ls -t $srcdir/configure conftest.file`
  2051. fi
  2052. rm -f conftest.file
  2053. if test "$*" != "X $srcdir/configure conftest.file" \
  2054. && test "$*" != "X conftest.file $srcdir/configure"; then
  2055. # If neither matched, then we have a broken ls. This can happen
  2056. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2057. # broken ls alias from the environment. This has actually
  2058. # happened. Such a system could not be considered "sane".
  2059. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2060. alias in your environment" >&5
  2061. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2062. alias in your environment" >&2;}
  2063. { (exit 1); exit 1; }; }
  2064. fi
  2065. test "$2" = conftest.file
  2066. )
  2067. then
  2068. # Ok.
  2069. :
  2070. else
  2071. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2072. Check your system clock" >&5
  2073. echo "$as_me: error: newly created file is older than distributed files!
  2074. Check your system clock" >&2;}
  2075. { (exit 1); exit 1; }; }
  2076. fi
  2077. { echo "$as_me:$LINENO: result: yes" >&5
  2078. echo "${ECHO_T}yes" >&6; }
  2079. test "$program_prefix" != NONE &&
  2080. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2081. # Use a double $ so make ignores it.
  2082. test "$program_suffix" != NONE &&
  2083. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2084. # Double any \ or $. echo might interpret backslashes.
  2085. # By default was `s,x,x', remove it if useless.
  2086. cat <<\_ACEOF >conftest.sed
  2087. s/[\\$]/&&/g;s/;s,x,x,$//
  2088. _ACEOF
  2089. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2090. rm -f conftest.sed
  2091. # expand $ac_aux_dir to an absolute path
  2092. am_aux_dir=`cd $ac_aux_dir && pwd`
  2093. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2094. # Use eval to expand $SHELL
  2095. if eval "$MISSING --run true"; then
  2096. am_missing_run="$MISSING --run "
  2097. else
  2098. am_missing_run=
  2099. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2100. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2101. fi
  2102. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2103. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  2104. if test -z "$MKDIR_P"; then
  2105. if test "${ac_cv_path_mkdir+set}" = set; then
  2106. echo $ECHO_N "(cached) $ECHO_C" >&6
  2107. else
  2108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2109. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2110. do
  2111. IFS=$as_save_IFS
  2112. test -z "$as_dir" && as_dir=.
  2113. for ac_prog in mkdir gmkdir; do
  2114. for ac_exec_ext in '' $ac_executable_extensions; do
  2115. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2116. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2117. 'mkdir (GNU coreutils) '* | \
  2118. 'mkdir (coreutils) '* | \
  2119. 'mkdir (fileutils) '4.1*)
  2120. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2121. break 3;;
  2122. esac
  2123. done
  2124. done
  2125. done
  2126. IFS=$as_save_IFS
  2127. fi
  2128. if test "${ac_cv_path_mkdir+set}" = set; then
  2129. MKDIR_P="$ac_cv_path_mkdir -p"
  2130. else
  2131. # As a last resort, use the slow shell script. Don't cache a
  2132. # value for MKDIR_P within a source directory, because that will
  2133. # break other packages using the cache if that directory is
  2134. # removed, or if the value is a relative name.
  2135. test -d ./--version && rmdir ./--version
  2136. MKDIR_P="$ac_install_sh -d"
  2137. fi
  2138. fi
  2139. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2140. echo "${ECHO_T}$MKDIR_P" >&6; }
  2141. mkdir_p="$MKDIR_P"
  2142. case $mkdir_p in
  2143. [\\/$]* | ?:[\\/]*) ;;
  2144. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2145. esac
  2146. for ac_prog in gawk mawk nawk awk
  2147. do
  2148. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2149. set dummy $ac_prog; ac_word=$2
  2150. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2151. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2152. if test "${ac_cv_prog_AWK+set}" = set; then
  2153. echo $ECHO_N "(cached) $ECHO_C" >&6
  2154. else
  2155. if test -n "$AWK"; then
  2156. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2157. else
  2158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2159. for as_dir in $PATH
  2160. do
  2161. IFS=$as_save_IFS
  2162. test -z "$as_dir" && as_dir=.
  2163. for ac_exec_ext in '' $ac_executable_extensions; do
  2164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2165. ac_cv_prog_AWK="$ac_prog"
  2166. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2167. break 2
  2168. fi
  2169. done
  2170. done
  2171. IFS=$as_save_IFS
  2172. fi
  2173. fi
  2174. AWK=$ac_cv_prog_AWK
  2175. if test -n "$AWK"; then
  2176. { echo "$as_me:$LINENO: result: $AWK" >&5
  2177. echo "${ECHO_T}$AWK" >&6; }
  2178. else
  2179. { echo "$as_me:$LINENO: result: no" >&5
  2180. echo "${ECHO_T}no" >&6; }
  2181. fi
  2182. test -n "$AWK" && break
  2183. done
  2184. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2185. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2186. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2187. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2188. echo $ECHO_N "(cached) $ECHO_C" >&6
  2189. else
  2190. cat >conftest.make <<\_ACEOF
  2191. SHELL = /bin/sh
  2192. all:
  2193. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2194. _ACEOF
  2195. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2196. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2197. *@@@%%%=?*=@@@%%%*)
  2198. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2199. *)
  2200. eval ac_cv_prog_make_${ac_make}_set=no;;
  2201. esac
  2202. rm -f conftest.make
  2203. fi
  2204. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2205. { echo "$as_me:$LINENO: result: yes" >&5
  2206. echo "${ECHO_T}yes" >&6; }
  2207. SET_MAKE=
  2208. else
  2209. { echo "$as_me:$LINENO: result: no" >&5
  2210. echo "${ECHO_T}no" >&6; }
  2211. SET_MAKE="MAKE=${MAKE-make}"
  2212. fi
  2213. rm -rf .tst 2>/dev/null
  2214. mkdir .tst 2>/dev/null
  2215. if test -d .tst; then
  2216. am__leading_dot=.
  2217. else
  2218. am__leading_dot=_
  2219. fi
  2220. rmdir .tst 2>/dev/null
  2221. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2222. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2223. # is not polluted with repeated "-I."
  2224. am__isrc=' -I$(srcdir)'
  2225. # test to see if srcdir already configured
  2226. if test -f $srcdir/config.status; then
  2227. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2228. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2229. { (exit 1); exit 1; }; }
  2230. fi
  2231. fi
  2232. # test whether we have cygpath
  2233. if test -z "$CYGPATH_W"; then
  2234. if (cygpath --version) >/dev/null 2>/dev/null; then
  2235. CYGPATH_W='cygpath -w'
  2236. else
  2237. CYGPATH_W=echo
  2238. fi
  2239. fi
  2240. # Define the identity of the package.
  2241. PACKAGE=tcpreplay
  2242. VERSION=$TCPREPLAY_VERSION
  2243. # Some tools Automake needs.
  2244. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2245. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2246. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2247. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2248. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2249. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2250. # Installed binaries are usually stripped using `strip' when the user
  2251. # run `make install-strip'. However `strip' might not be the right
  2252. # tool to use in cross-compilation environments, therefore Automake
  2253. # will honor the `STRIP' environment variable to overrule this program.
  2254. if test "$cross_compiling" != no; then
  2255. if test -n "$ac_tool_prefix"; then
  2256. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2257. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2258. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2259. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2260. if test "${ac_cv_prog_STRIP+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if test -n "$STRIP"; then
  2264. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2265. else
  2266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2267. for as_dir in $PATH
  2268. do
  2269. IFS=$as_save_IFS
  2270. test -z "$as_dir" && as_dir=.
  2271. for ac_exec_ext in '' $ac_executable_extensions; do
  2272. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2273. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2274. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2275. break 2
  2276. fi
  2277. done
  2278. done
  2279. IFS=$as_save_IFS
  2280. fi
  2281. fi
  2282. STRIP=$ac_cv_prog_STRIP
  2283. if test -n "$STRIP"; then
  2284. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2285. echo "${ECHO_T}$STRIP" >&6; }
  2286. else
  2287. { echo "$as_me:$LINENO: result: no" >&5
  2288. echo "${ECHO_T}no" >&6; }
  2289. fi
  2290. fi
  2291. if test -z "$ac_cv_prog_STRIP"; then
  2292. ac_ct_STRIP=$STRIP
  2293. # Extract the first word of "strip", so it can be a program name with args.
  2294. set dummy strip; ac_word=$2
  2295. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2296. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2297. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. if test -n "$ac_ct_STRIP"; then
  2301. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2302. else
  2303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304. for as_dir in $PATH
  2305. do
  2306. IFS=$as_save_IFS
  2307. test -z "$as_dir" && as_dir=.
  2308. for ac_exec_ext in '' $ac_executable_extensions; do
  2309. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2310. ac_cv_prog_ac_ct_STRIP="strip"
  2311. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2312. break 2
  2313. fi
  2314. done
  2315. done
  2316. IFS=$as_save_IFS
  2317. fi
  2318. fi
  2319. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2320. if test -n "$ac_ct_STRIP"; then
  2321. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2322. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2323. else
  2324. { echo "$as_me:$LINENO: result: no" >&5
  2325. echo "${ECHO_T}no" >&6; }
  2326. fi
  2327. if test "x$ac_ct_STRIP" = x; then
  2328. STRIP=":"
  2329. else
  2330. case $cross_compiling:$ac_tool_warned in
  2331. yes:)
  2332. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2333. whose name does not start with the host triplet. If you think this
  2334. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2335. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2336. whose name does not start with the host triplet. If you think this
  2337. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2338. ac_tool_warned=yes ;;
  2339. esac
  2340. STRIP=$ac_ct_STRIP
  2341. fi
  2342. else
  2343. STRIP="$ac_cv_prog_STRIP"
  2344. fi
  2345. fi
  2346. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2347. # We need awk for the "check" target. The system "awk" is bad on
  2348. # some platforms.
  2349. # Always define AMTAR for backward compatibility.
  2350. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2351. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2352. # Find a good install program. We prefer a C program (faster),
  2353. # so one script is as good as another. But avoid the broken or
  2354. # incompatible versions:
  2355. # SysV /etc/install, /usr/sbin/install
  2356. # SunOS /usr/etc/install
  2357. # IRIX /sbin/install
  2358. # AIX /bin/install
  2359. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2360. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2361. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2362. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2363. # OS/2's system install, which has a completely different semantic
  2364. # ./install, which can be erroneously created by make from ./install.sh.
  2365. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2366. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  2367. if test -z "$INSTALL"; then
  2368. if test "${ac_cv_path_install+set}" = set; then
  2369. echo $ECHO_N "(cached) $ECHO_C" >&6
  2370. else
  2371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2372. for as_dir in $PATH
  2373. do
  2374. IFS=$as_save_IFS
  2375. test -z "$as_dir" && as_dir=.
  2376. # Account for people who put trailing slashes in PATH elements.
  2377. case $as_dir/ in
  2378. ./ | .// | /cC/* | \
  2379. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2380. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2381. /usr/ucb/* ) ;;
  2382. *)
  2383. # OSF1 and SCO ODT 3.0 have their own names for install.
  2384. # Don't use installbsd from OSF since it installs stuff as root
  2385. # by default.
  2386. for ac_prog in ginstall scoinst install; do
  2387. for ac_exec_ext in '' $ac_executable_extensions; do
  2388. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2389. if test $ac_prog = install &&
  2390. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2391. # AIX install. It has an incompatible calling convention.
  2392. :
  2393. elif test $ac_prog = install &&
  2394. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2395. # program-specific install script used by HP pwplus--don't use.
  2396. :
  2397. else
  2398. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2399. break 3
  2400. fi
  2401. fi
  2402. done
  2403. done
  2404. ;;
  2405. esac
  2406. done
  2407. IFS=$as_save_IFS
  2408. fi
  2409. if test "${ac_cv_path_install+set}" = set; then
  2410. INSTALL=$ac_cv_path_install
  2411. else
  2412. # As a last resort, use the slow shell script. Don't cache a
  2413. # value for INSTALL within a source directory, because that will
  2414. # break other packages using the cache if that directory is
  2415. # removed, or if the value is a relative name.
  2416. INSTALL=$ac_install_sh
  2417. fi
  2418. fi
  2419. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2420. echo "${ECHO_T}$INSTALL" >&6; }
  2421. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2422. # It thinks the first close brace ends the variable substitution.
  2423. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2424. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2425. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2426. # Check whether --enable-shared was given.
  2427. if test "${enable_shared+set}" = set; then
  2428. enableval=$enable_shared; p=${PACKAGE-default}
  2429. case $enableval in
  2430. yes) enable_shared=yes ;;
  2431. no) enable_shared=no ;;
  2432. *)
  2433. enable_shared=no
  2434. # Look at the argument we got. We use all the common list separators.
  2435. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2436. for pkg in $enableval; do
  2437. IFS="$lt_save_ifs"
  2438. if test "X$pkg" = "X$p"; then
  2439. enable_shared=yes
  2440. fi
  2441. done
  2442. IFS="$lt_save_ifs"
  2443. ;;
  2444. esac
  2445. else
  2446. enable_shared=yes
  2447. fi
  2448. # Check whether --enable-static was given.
  2449. if test "${enable_static+set}" = set; then
  2450. enableval=$enable_static; p=${PACKAGE-default}
  2451. case $enableval in
  2452. yes) enable_static=yes ;;
  2453. no) enable_static=no ;;
  2454. *)
  2455. enable_static=no
  2456. # Look at the argument we got. We use all the common list separators.
  2457. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2458. for pkg in $enableval; do
  2459. IFS="$lt_save_ifs"
  2460. if test "X$pkg" = "X$p"; then
  2461. enable_static=yes
  2462. fi
  2463. done
  2464. IFS="$lt_save_ifs"
  2465. ;;
  2466. esac
  2467. else
  2468. enable_static=yes
  2469. fi
  2470. # Check whether --enable-fast-install was given.
  2471. if test "${enable_fast_install+set}" = set; then
  2472. enableval=$enable_fast_install; p=${PACKAGE-default}
  2473. case $enableval in
  2474. yes) enable_fast_install=yes ;;
  2475. no) enable_fast_install=no ;;
  2476. *)
  2477. enable_fast_install=no
  2478. # Look at the argument we got. We use all the common list separators.
  2479. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2480. for pkg in $enableval; do
  2481. IFS="$lt_save_ifs"
  2482. if test "X$pkg" = "X$p"; then
  2483. enable_fast_install=yes
  2484. fi
  2485. done
  2486. IFS="$lt_save_ifs"
  2487. ;;
  2488. esac
  2489. else
  2490. enable_fast_install=yes
  2491. fi
  2492. DEPDIR="${am__leading_dot}deps"
  2493. ac_config_commands="$ac_config_commands depfiles"
  2494. am_make=${MAKE-make}
  2495. cat > confinc << 'END'
  2496. am__doit:
  2497. @echo done
  2498. .PHONY: am__doit
  2499. END
  2500. # If we don't find an include directive, just comment out the code.
  2501. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2502. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2503. am__include="#"
  2504. am__quote=
  2505. _am_result=none
  2506. # First try GNU make style include.
  2507. echo "include confinc" > confmf
  2508. # We grep out `Entering directory' and `Leaving directory'
  2509. # messages which can occur if `w' ends up in MAKEFLAGS.
  2510. # In particular we don't look at `^make:' because GNU make might
  2511. # be invoked under some other name (usually "gmake"), in which
  2512. # case it prints its new name instead of `make'.
  2513. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2514. am__include=include
  2515. am__quote=
  2516. _am_result=GNU
  2517. fi
  2518. # Now try BSD make style include.
  2519. if test "$am__include" = "#"; then
  2520. echo '.include "confinc"' > confmf
  2521. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2522. am__include=.include
  2523. am__quote="\""
  2524. _am_result=BSD
  2525. fi
  2526. fi
  2527. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2528. echo "${ECHO_T}$_am_result" >&6; }
  2529. rm -f confinc confmf
  2530. # Check whether --enable-dependency-tracking was given.
  2531. if test "${enable_dependency_tracking+set}" = set; then
  2532. enableval=$enable_dependency_tracking;
  2533. fi
  2534. if test "x$enable_dependency_tracking" != xno; then
  2535. am_depcomp="$ac_aux_dir/depcomp"
  2536. AMDEPBACKSLASH='\'
  2537. fi
  2538. if test "x$enable_dependency_tracking" != xno; then
  2539. AMDEP_TRUE=
  2540. AMDEP_FALSE='#'
  2541. else
  2542. AMDEP_TRUE='#'
  2543. AMDEP_FALSE=
  2544. fi
  2545. ac_ext=c
  2546. ac_cpp='$CPP $CPPFLAGS'
  2547. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2548. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2549. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2550. if test -n "$ac_tool_prefix"; then
  2551. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2552. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2553. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2554. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2555. if test "${ac_cv_prog_CC+set}" = set; then
  2556. echo $ECHO_N "(cached) $ECHO_C" >&6
  2557. else
  2558. if test -n "$CC"; then
  2559. ac_cv_prog_CC="$CC" # Let the user override the test.
  2560. else
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2568. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2569. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2570. break 2
  2571. fi
  2572. done
  2573. done
  2574. IFS=$as_save_IFS
  2575. fi
  2576. fi
  2577. CC=$ac_cv_prog_CC
  2578. if test -n "$CC"; then
  2579. { echo "$as_me:$LINENO: result: $CC" >&5
  2580. echo "${ECHO_T}$CC" >&6; }
  2581. else
  2582. { echo "$as_me:$LINENO: result: no" >&5
  2583. echo "${ECHO_T}no" >&6; }
  2584. fi
  2585. fi
  2586. if test -z "$ac_cv_prog_CC"; then
  2587. ac_ct_CC=$CC
  2588. # Extract the first word of "gcc", so it can be a program name with args.
  2589. set dummy gcc; ac_word=$2
  2590. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2591. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2592. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2593. echo $ECHO_N "(cached) $ECHO_C" >&6
  2594. else
  2595. if test -n "$ac_ct_CC"; then
  2596. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2597. else
  2598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2599. for as_dir in $PATH
  2600. do
  2601. IFS=$as_save_IFS
  2602. test -z "$as_dir" && as_dir=.
  2603. for ac_exec_ext in '' $ac_executable_extensions; do
  2604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2605. ac_cv_prog_ac_ct_CC="gcc"
  2606. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2607. break 2
  2608. fi
  2609. done
  2610. done
  2611. IFS=$as_save_IFS
  2612. fi
  2613. fi
  2614. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2615. if test -n "$ac_ct_CC"; then
  2616. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2617. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2618. else
  2619. { echo "$as_me:$LINENO: result: no" >&5
  2620. echo "${ECHO_T}no" >&6; }
  2621. fi
  2622. if test "x$ac_ct_CC" = x; then
  2623. CC=""
  2624. else
  2625. case $cross_compiling:$ac_tool_warned in
  2626. yes:)
  2627. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2628. whose name does not start with the host triplet. If you think this
  2629. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2630. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2631. whose name does not start with the host triplet. If you think this
  2632. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2633. ac_tool_warned=yes ;;
  2634. esac
  2635. CC=$ac_ct_CC
  2636. fi
  2637. else
  2638. CC="$ac_cv_prog_CC"
  2639. fi
  2640. if test -z "$CC"; then
  2641. if test -n "$ac_tool_prefix"; then
  2642. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2643. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2644. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2645. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2646. if test "${ac_cv_prog_CC+set}" = set; then
  2647. echo $ECHO_N "(cached) $ECHO_C" >&6
  2648. else
  2649. if test -n "$CC"; then
  2650. ac_cv_prog_CC="$CC" # Let the user override the test.
  2651. else
  2652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2653. for as_dir in $PATH
  2654. do
  2655. IFS=$as_save_IFS
  2656. test -z "$as_dir" && as_dir=.
  2657. for ac_exec_ext in '' $ac_executable_extensions; do
  2658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2659. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2660. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2661. break 2
  2662. fi
  2663. done
  2664. done
  2665. IFS=$as_save_IFS
  2666. fi
  2667. fi
  2668. CC=$ac_cv_prog_CC
  2669. if test -n "$CC"; then
  2670. { echo "$as_me:$LINENO: result: $CC" >&5
  2671. echo "${ECHO_T}$CC" >&6; }
  2672. else
  2673. { echo "$as_me:$LINENO: result: no" >&5
  2674. echo "${ECHO_T}no" >&6; }
  2675. fi
  2676. fi
  2677. fi
  2678. if test -z "$CC"; then
  2679. # Extract the first word of "cc", so it can be a program name with args.
  2680. set dummy cc; ac_word=$2
  2681. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2682. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2683. if test "${ac_cv_prog_CC+set}" = set; then
  2684. echo $ECHO_N "(cached) $ECHO_C" >&6
  2685. else
  2686. if test -n "$CC"; then
  2687. ac_cv_prog_CC="$CC" # Let the user override the test.
  2688. else
  2689. ac_prog_rejected=no
  2690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2691. for as_dir in $PATH
  2692. do
  2693. IFS=$as_save_IFS
  2694. test -z "$as_dir" && as_dir=.
  2695. for ac_exec_ext in '' $ac_executable_extensions; do
  2696. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2697. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2698. ac_prog_rejected=yes
  2699. continue
  2700. fi
  2701. ac_cv_prog_CC="cc"
  2702. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2703. break 2
  2704. fi
  2705. done
  2706. done
  2707. IFS=$as_save_IFS
  2708. if test $ac_prog_rejected = yes; then
  2709. # We found a bogon in the path, so make sure we never use it.
  2710. set dummy $ac_cv_prog_CC
  2711. shift
  2712. if test $# != 0; then
  2713. # We chose a different compiler from the bogus one.
  2714. # However, it has the same basename, so the bogon will be chosen
  2715. # first if we set CC to just the basename; use the full file name.
  2716. shift
  2717. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2718. fi
  2719. fi
  2720. fi
  2721. fi
  2722. CC=$ac_cv_prog_CC
  2723. if test -n "$CC"; then
  2724. { echo "$as_me:$LINENO: result: $CC" >&5
  2725. echo "${ECHO_T}$CC" >&6; }
  2726. else
  2727. { echo "$as_me:$LINENO: result: no" >&5
  2728. echo "${ECHO_T}no" >&6; }
  2729. fi
  2730. fi
  2731. if test -z "$CC"; then
  2732. if test -n "$ac_tool_prefix"; then
  2733. for ac_prog in cl.exe
  2734. do
  2735. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2736. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2737. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2738. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2739. if test "${ac_cv_prog_CC+set}" = set; then
  2740. echo $ECHO_N "(cached) $ECHO_C" >&6
  2741. else
  2742. if test -n "$CC"; then
  2743. ac_cv_prog_CC="$CC" # Let the user override the test.
  2744. else
  2745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2746. for as_dir in $PATH
  2747. do
  2748. IFS=$as_save_IFS
  2749. test -z "$as_dir" && as_dir=.
  2750. for ac_exec_ext in '' $ac_executable_extensions; do
  2751. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2752. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2753. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2754. break 2
  2755. fi
  2756. done
  2757. done
  2758. IFS=$as_save_IFS
  2759. fi
  2760. fi
  2761. CC=$ac_cv_prog_CC
  2762. if test -n "$CC"; then
  2763. { echo "$as_me:$LINENO: result: $CC" >&5
  2764. echo "${ECHO_T}$CC" >&6; }
  2765. else
  2766. { echo "$as_me:$LINENO: result: no" >&5
  2767. echo "${ECHO_T}no" >&6; }
  2768. fi
  2769. test -n "$CC" && break
  2770. done
  2771. fi
  2772. if test -z "$CC"; then
  2773. ac_ct_CC=$CC
  2774. for ac_prog in cl.exe
  2775. do
  2776. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2777. set dummy $ac_prog; ac_word=$2
  2778. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2779. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2780. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2781. echo $ECHO_N "(cached) $ECHO_C" >&6
  2782. else
  2783. if test -n "$ac_ct_CC"; then
  2784. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2785. else
  2786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2787. for as_dir in $PATH
  2788. do
  2789. IFS=$as_save_IFS
  2790. test -z "$as_dir" && as_dir=.
  2791. for ac_exec_ext in '' $ac_executable_extensions; do
  2792. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2793. ac_cv_prog_ac_ct_CC="$ac_prog"
  2794. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2795. break 2
  2796. fi
  2797. done
  2798. done
  2799. IFS=$as_save_IFS
  2800. fi
  2801. fi
  2802. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2803. if test -n "$ac_ct_CC"; then
  2804. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2805. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2806. else
  2807. { echo "$as_me:$LINENO: result: no" >&5
  2808. echo "${ECHO_T}no" >&6; }
  2809. fi
  2810. test -n "$ac_ct_CC" && break
  2811. done
  2812. if test "x$ac_ct_CC" = x; then
  2813. CC=""
  2814. else
  2815. case $cross_compiling:$ac_tool_warned in
  2816. yes:)
  2817. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2818. whose name does not start with the host triplet. If you think this
  2819. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2820. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2821. whose name does not start with the host triplet. If you think this
  2822. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2823. ac_tool_warned=yes ;;
  2824. esac
  2825. CC=$ac_ct_CC
  2826. fi
  2827. fi
  2828. fi
  2829. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2830. See \`config.log' for more details." >&5
  2831. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2832. See \`config.log' for more details." >&2;}
  2833. { (exit 1); exit 1; }; }
  2834. # Provide some information about the compiler.
  2835. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2836. ac_compiler=`set X $ac_compile; echo $2`
  2837. { (ac_try="$ac_compiler --version >&5"
  2838. case "(($ac_try" in
  2839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2840. *) ac_try_echo=$ac_try;;
  2841. esac
  2842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2843. (eval "$ac_compiler --version >&5") 2>&5
  2844. ac_status=$?
  2845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2846. (exit $ac_status); }
  2847. { (ac_try="$ac_compiler -v >&5"
  2848. case "(($ac_try" in
  2849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2850. *) ac_try_echo=$ac_try;;
  2851. esac
  2852. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2853. (eval "$ac_compiler -v >&5") 2>&5
  2854. ac_status=$?
  2855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2856. (exit $ac_status); }
  2857. { (ac_try="$ac_compiler -V >&5"
  2858. case "(($ac_try" in
  2859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2860. *) ac_try_echo=$ac_try;;
  2861. esac
  2862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2863. (eval "$ac_compiler -V >&5") 2>&5
  2864. ac_status=$?
  2865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866. (exit $ac_status); }
  2867. cat >conftest.$ac_ext <<_ACEOF
  2868. /* confdefs.h. */
  2869. _ACEOF
  2870. cat confdefs.h >>conftest.$ac_ext
  2871. cat >>conftest.$ac_ext <<_ACEOF
  2872. /* end confdefs.h. */
  2873. int
  2874. main ()
  2875. {
  2876. ;
  2877. return 0;
  2878. }
  2879. _ACEOF
  2880. ac_clean_files_save=$ac_clean_files
  2881. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2882. # Try to create an executable without -o first, disregard a.out.
  2883. # It will help us diagnose broken compilers, and finding out an intuition
  2884. # of exeext.
  2885. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2886. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2887. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2888. #
  2889. # List of possible output files, starting from the most likely.
  2890. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2891. # only as a last resort. b.out is created by i960 compilers.
  2892. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2893. #
  2894. # The IRIX 6 linker writes into existing files which may not be
  2895. # executable, retaining their permissions. Remove them first so a
  2896. # subsequent execution test works.
  2897. ac_rmfiles=
  2898. for ac_file in $ac_files
  2899. do
  2900. case $ac_file in
  2901. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2902. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2903. esac
  2904. done
  2905. rm -f $ac_rmfiles
  2906. if { (ac_try="$ac_link_default"
  2907. case "(($ac_try" in
  2908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2909. *) ac_try_echo=$ac_try;;
  2910. esac
  2911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2912. (eval "$ac_link_default") 2>&5
  2913. ac_status=$?
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); }; then
  2916. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2917. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2918. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2919. # so that the user can short-circuit this test for compilers unknown to
  2920. # Autoconf.
  2921. for ac_file in $ac_files ''
  2922. do
  2923. test -f "$ac_file" || continue
  2924. case $ac_file in
  2925. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2926. ;;
  2927. [ab].out )
  2928. # We found the default executable, but exeext='' is most
  2929. # certainly right.
  2930. break;;
  2931. *.* )
  2932. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2933. then :; else
  2934. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2935. fi
  2936. # We set ac_cv_exeext here because the later test for it is not
  2937. # safe: cross compilers may not add the suffix if given an `-o'
  2938. # argument, so we may need to know it at that point already.
  2939. # Even if this section looks crufty: it has the advantage of
  2940. # actually working.
  2941. break;;
  2942. * )
  2943. break;;
  2944. esac
  2945. done
  2946. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2947. else
  2948. ac_file=''
  2949. fi
  2950. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2951. echo "${ECHO_T}$ac_file" >&6; }
  2952. if test -z "$ac_file"; then
  2953. echo "$as_me: failed program was:" >&5
  2954. sed 's/^/| /' conftest.$ac_ext >&5
  2955. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2956. See \`config.log' for more details." >&5
  2957. echo "$as_me: error: C compiler cannot create executables
  2958. See \`config.log' for more details." >&2;}
  2959. { (exit 77); exit 77; }; }
  2960. fi
  2961. ac_exeext=$ac_cv_exeext
  2962. # Check that the compiler produces executables we can run. If not, either
  2963. # the compiler is broken, or we cross compile.
  2964. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2965. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2966. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2967. # If not cross compiling, check that we can run a simple program.
  2968. if test "$cross_compiling" != yes; then
  2969. if { ac_try='./$ac_file'
  2970. { (case "(($ac_try" in
  2971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2972. *) ac_try_echo=$ac_try;;
  2973. esac
  2974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2975. (eval "$ac_try") 2>&5
  2976. ac_status=$?
  2977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2978. (exit $ac_status); }; }; then
  2979. cross_compiling=no
  2980. else
  2981. if test "$cross_compiling" = maybe; then
  2982. cross_compiling=yes
  2983. else
  2984. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2985. If you meant to cross compile, use \`--host'.
  2986. See \`config.log' for more details." >&5
  2987. echo "$as_me: error: cannot run C compiled programs.
  2988. If you meant to cross compile, use \`--host'.
  2989. See \`config.log' for more details." >&2;}
  2990. { (exit 1); exit 1; }; }
  2991. fi
  2992. fi
  2993. fi
  2994. { echo "$as_me:$LINENO: result: yes" >&5
  2995. echo "${ECHO_T}yes" >&6; }
  2996. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2997. ac_clean_files=$ac_clean_files_save
  2998. # Check that the compiler produces executables we can run. If not, either
  2999. # the compiler is broken, or we cross compile.
  3000. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3001. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3002. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3003. echo "${ECHO_T}$cross_compiling" >&6; }
  3004. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3005. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3006. if { (ac_try="$ac_link"
  3007. case "(($ac_try" in
  3008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3009. *) ac_try_echo=$ac_try;;
  3010. esac
  3011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3012. (eval "$ac_link") 2>&5
  3013. ac_status=$?
  3014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015. (exit $ac_status); }; then
  3016. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3017. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3018. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3019. # `rm'.
  3020. for ac_file in conftest.exe conftest conftest.*; do
  3021. test -f "$ac_file" || continue
  3022. case $ac_file in
  3023. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3024. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3025. break;;
  3026. * ) break;;
  3027. esac
  3028. done
  3029. else
  3030. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3031. See \`config.log' for more details." >&5
  3032. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3033. See \`config.log' for more details." >&2;}
  3034. { (exit 1); exit 1; }; }
  3035. fi
  3036. rm -f conftest$ac_cv_exeext
  3037. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3038. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3039. rm -f conftest.$ac_ext
  3040. EXEEXT=$ac_cv_exeext
  3041. ac_exeext=$EXEEXT
  3042. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3043. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3044. if test "${ac_cv_objext+set}" = set; then
  3045. echo $ECHO_N "(cached) $ECHO_C" >&6
  3046. else
  3047. cat >conftest.$ac_ext <<_ACEOF
  3048. /* confdefs.h. */
  3049. _ACEOF
  3050. cat confdefs.h >>conftest.$ac_ext
  3051. cat >>conftest.$ac_ext <<_ACEOF
  3052. /* end confdefs.h. */
  3053. int
  3054. main ()
  3055. {
  3056. ;
  3057. return 0;
  3058. }
  3059. _ACEOF
  3060. rm -f conftest.o conftest.obj
  3061. if { (ac_try="$ac_compile"
  3062. case "(($ac_try" in
  3063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3064. *) ac_try_echo=$ac_try;;
  3065. esac
  3066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3067. (eval "$ac_compile") 2>&5
  3068. ac_status=$?
  3069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3070. (exit $ac_status); }; then
  3071. for ac_file in conftest.o conftest.obj conftest.*; do
  3072. test -f "$ac_file" || continue;
  3073. case $ac_file in
  3074. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3075. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3076. break;;
  3077. esac
  3078. done
  3079. else
  3080. echo "$as_me: failed program was:" >&5
  3081. sed 's/^/| /' conftest.$ac_ext >&5
  3082. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3083. See \`config.log' for more details." >&5
  3084. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3085. See \`config.log' for more details." >&2;}
  3086. { (exit 1); exit 1; }; }
  3087. fi
  3088. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3089. fi
  3090. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3091. echo "${ECHO_T}$ac_cv_objext" >&6; }
  3092. OBJEXT=$ac_cv_objext
  3093. ac_objext=$OBJEXT
  3094. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3095. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3096. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3097. echo $ECHO_N "(cached) $ECHO_C" >&6
  3098. else
  3099. cat >conftest.$ac_ext <<_ACEOF
  3100. /* confdefs.h. */
  3101. _ACEOF
  3102. cat confdefs.h >>conftest.$ac_ext
  3103. cat >>conftest.$ac_ext <<_ACEOF
  3104. /* end confdefs.h. */
  3105. int
  3106. main ()
  3107. {
  3108. #ifndef __GNUC__
  3109. choke me
  3110. #endif
  3111. ;
  3112. return 0;
  3113. }
  3114. _ACEOF
  3115. rm -f conftest.$ac_objext
  3116. if { (ac_try="$ac_compile"
  3117. case "(($ac_try" in
  3118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3119. *) ac_try_echo=$ac_try;;
  3120. esac
  3121. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3122. (eval "$ac_compile") 2>conftest.er1
  3123. ac_status=$?
  3124. grep -v '^ *+' conftest.er1 >conftest.err
  3125. rm -f conftest.er1
  3126. cat conftest.err >&5
  3127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3128. (exit $ac_status); } && {
  3129. test -z "$ac_c_werror_flag" ||
  3130. test ! -s conftest.err
  3131. } && test -s conftest.$ac_objext; then
  3132. ac_compiler_gnu=yes
  3133. else
  3134. echo "$as_me: failed program was:" >&5
  3135. sed 's/^/| /' conftest.$ac_ext >&5
  3136. ac_compiler_gnu=no
  3137. fi
  3138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3139. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3140. fi
  3141. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3142. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3143. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3144. ac_test_CFLAGS=${CFLAGS+set}
  3145. ac_save_CFLAGS=$CFLAGS
  3146. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3147. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3148. if test "${ac_cv_prog_cc_g+set}" = set; then
  3149. echo $ECHO_N "(cached) $ECHO_C" >&6
  3150. else
  3151. ac_save_c_werror_flag=$ac_c_werror_flag
  3152. ac_c_werror_flag=yes
  3153. ac_cv_prog_cc_g=no
  3154. CFLAGS="-g"
  3155. cat >conftest.$ac_ext <<_ACEOF
  3156. /* confdefs.h. */
  3157. _ACEOF
  3158. cat confdefs.h >>conftest.$ac_ext
  3159. cat >>conftest.$ac_ext <<_ACEOF
  3160. /* end confdefs.h. */
  3161. int
  3162. main ()
  3163. {
  3164. ;
  3165. return 0;
  3166. }
  3167. _ACEOF
  3168. rm -f conftest.$ac_objext
  3169. if { (ac_try="$ac_compile"
  3170. case "(($ac_try" in
  3171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3172. *) ac_try_echo=$ac_try;;
  3173. esac
  3174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3175. (eval "$ac_compile") 2>conftest.er1
  3176. ac_status=$?
  3177. grep -v '^ *+' conftest.er1 >conftest.err
  3178. rm -f conftest.er1
  3179. cat conftest.err >&5
  3180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3181. (exit $ac_status); } && {
  3182. test -z "$ac_c_werror_flag" ||
  3183. test ! -s conftest.err
  3184. } && test -s conftest.$ac_objext; then
  3185. ac_cv_prog_cc_g=yes
  3186. else
  3187. echo "$as_me: failed program was:" >&5
  3188. sed 's/^/| /' conftest.$ac_ext >&5
  3189. CFLAGS=""
  3190. cat >conftest.$ac_ext <<_ACEOF
  3191. /* confdefs.h. */
  3192. _ACEOF
  3193. cat confdefs.h >>conftest.$ac_ext
  3194. cat >>conftest.$ac_ext <<_ACEOF
  3195. /* end confdefs.h. */
  3196. int
  3197. main ()
  3198. {
  3199. ;
  3200. return 0;
  3201. }
  3202. _ACEOF
  3203. rm -f conftest.$ac_objext
  3204. if { (ac_try="$ac_compile"
  3205. case "(($ac_try" in
  3206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3207. *) ac_try_echo=$ac_try;;
  3208. esac
  3209. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3210. (eval "$ac_compile") 2>conftest.er1
  3211. ac_status=$?
  3212. grep -v '^ *+' conftest.er1 >conftest.err
  3213. rm -f conftest.er1
  3214. cat conftest.err >&5
  3215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3216. (exit $ac_status); } && {
  3217. test -z "$ac_c_werror_flag" ||
  3218. test ! -s conftest.err
  3219. } && test -s conftest.$ac_objext; then
  3220. :
  3221. else
  3222. echo "$as_me: failed program was:" >&5
  3223. sed 's/^/| /' conftest.$ac_ext >&5
  3224. ac_c_werror_flag=$ac_save_c_werror_flag
  3225. CFLAGS="-g"
  3226. cat >conftest.$ac_ext <<_ACEOF
  3227. /* confdefs.h. */
  3228. _ACEOF
  3229. cat confdefs.h >>conftest.$ac_ext
  3230. cat >>conftest.$ac_ext <<_ACEOF
  3231. /* end confdefs.h. */
  3232. int
  3233. main ()
  3234. {
  3235. ;
  3236. return 0;
  3237. }
  3238. _ACEOF
  3239. rm -f conftest.$ac_objext
  3240. if { (ac_try="$ac_compile"
  3241. case "(($ac_try" in
  3242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3243. *) ac_try_echo=$ac_try;;
  3244. esac
  3245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3246. (eval "$ac_compile") 2>conftest.er1
  3247. ac_status=$?
  3248. grep -v '^ *+' conftest.er1 >conftest.err
  3249. rm -f conftest.er1
  3250. cat conftest.err >&5
  3251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3252. (exit $ac_status); } && {
  3253. test -z "$ac_c_werror_flag" ||
  3254. test ! -s conftest.err
  3255. } && test -s conftest.$ac_objext; then
  3256. ac_cv_prog_cc_g=yes
  3257. else
  3258. echo "$as_me: failed program was:" >&5
  3259. sed 's/^/| /' conftest.$ac_ext >&5
  3260. fi
  3261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3262. fi
  3263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3264. fi
  3265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3266. ac_c_werror_flag=$ac_save_c_werror_flag
  3267. fi
  3268. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3269. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3270. if test "$ac_test_CFLAGS" = set; then
  3271. CFLAGS=$ac_save_CFLAGS
  3272. elif test $ac_cv_prog_cc_g = yes; then
  3273. if test "$GCC" = yes; then
  3274. CFLAGS="-g -O2"
  3275. else
  3276. CFLAGS="-g"
  3277. fi
  3278. else
  3279. if test "$GCC" = yes; then
  3280. CFLAGS="-O2"
  3281. else
  3282. CFLAGS=
  3283. fi
  3284. fi
  3285. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3286. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3287. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3288. echo $ECHO_N "(cached) $ECHO_C" >&6
  3289. else
  3290. ac_cv_prog_cc_c89=no
  3291. ac_save_CC=$CC
  3292. cat >conftest.$ac_ext <<_ACEOF
  3293. /* confdefs.h. */
  3294. _ACEOF
  3295. cat confdefs.h >>conftest.$ac_ext
  3296. cat >>conftest.$ac_ext <<_ACEOF
  3297. /* end confdefs.h. */
  3298. #include <stdarg.h>
  3299. #include <stdio.h>
  3300. #include <sys/types.h>
  3301. #include <sys/stat.h>
  3302. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3303. struct buf { int x; };
  3304. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3305. static char *e (p, i)
  3306. char **p;
  3307. int i;
  3308. {
  3309. return p[i];
  3310. }
  3311. static char *f (char * (*g) (char **, int), char **p, ...)
  3312. {
  3313. char *s;
  3314. va_list v;
  3315. va_start (v,p);
  3316. s = g (p, va_arg (v,int));
  3317. va_end (v);
  3318. return s;
  3319. }
  3320. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3321. function prototypes and stuff, but not '\xHH' hex character constants.
  3322. These don't provoke an error unfortunately, instead are silently treated
  3323. as 'x'. The following induces an error, until -std is added to get
  3324. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3325. array size at least. It's necessary to write '\x00'==0 to get something
  3326. that's true only with -std. */
  3327. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3328. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3329. inside strings and character constants. */
  3330. #define FOO(x) 'x'
  3331. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3332. int test (int i, double x);
  3333. struct s1 {int (*f) (int a);};
  3334. struct s2 {int (*f) (double a);};
  3335. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3336. int argc;
  3337. char **argv;
  3338. int
  3339. main ()
  3340. {
  3341. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3342. ;
  3343. return 0;
  3344. }
  3345. _ACEOF
  3346. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3347. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3348. do
  3349. CC="$ac_save_CC $ac_arg"
  3350. rm -f conftest.$ac_objext
  3351. if { (ac_try="$ac_compile"
  3352. case "(($ac_try" in
  3353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3354. *) ac_try_echo=$ac_try;;
  3355. esac
  3356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3357. (eval "$ac_compile") 2>conftest.er1
  3358. ac_status=$?
  3359. grep -v '^ *+' conftest.er1 >conftest.err
  3360. rm -f conftest.er1
  3361. cat conftest.err >&5
  3362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3363. (exit $ac_status); } && {
  3364. test -z "$ac_c_werror_flag" ||
  3365. test ! -s conftest.err
  3366. } && test -s conftest.$ac_objext; then
  3367. ac_cv_prog_cc_c89=$ac_arg
  3368. else
  3369. echo "$as_me: failed program was:" >&5
  3370. sed 's/^/| /' conftest.$ac_ext >&5
  3371. fi
  3372. rm -f core conftest.err conftest.$ac_objext
  3373. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3374. done
  3375. rm -f conftest.$ac_ext
  3376. CC=$ac_save_CC
  3377. fi
  3378. # AC_CACHE_VAL
  3379. case "x$ac_cv_prog_cc_c89" in
  3380. x)
  3381. { echo "$as_me:$LINENO: result: none needed" >&5
  3382. echo "${ECHO_T}none needed" >&6; } ;;
  3383. xno)
  3384. { echo "$as_me:$LINENO: result: unsupported" >&5
  3385. echo "${ECHO_T}unsupported" >&6; } ;;
  3386. *)
  3387. CC="$CC $ac_cv_prog_cc_c89"
  3388. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3389. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3390. esac
  3391. ac_ext=c
  3392. ac_cpp='$CPP $CPPFLAGS'
  3393. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3394. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3395. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3396. depcc="$CC" am_compiler_list=
  3397. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3398. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3399. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3400. echo $ECHO_N "(cached) $ECHO_C" >&6
  3401. else
  3402. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3403. # We make a subdir and do the tests there. Otherwise we can end up
  3404. # making bogus files that we don't know about and never remove. For
  3405. # instance it was reported that on HP-UX the gcc test will end up
  3406. # making a dummy file named `D' -- because `-MD' means `put the output
  3407. # in D'.
  3408. mkdir conftest.dir
  3409. # Copy depcomp to subdir because otherwise we won't find it if we're
  3410. # using a relative directory.
  3411. cp "$am_depcomp" conftest.dir
  3412. cd conftest.dir
  3413. # We will build objects and dependencies in a subdirectory because
  3414. # it helps to detect inapplicable dependency modes. For instance
  3415. # both Tru64's cc and ICC support -MD to output dependencies as a
  3416. # side effect of compilation, but ICC will put the dependencies in
  3417. # the current directory while Tru64 will put them in the object
  3418. # directory.
  3419. mkdir sub
  3420. am_cv_CC_dependencies_compiler_type=none
  3421. if test "$am_compiler_list" = ""; then
  3422. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3423. fi
  3424. for depmode in $am_compiler_list; do
  3425. # Setup a source with many dependencies, because some compilers
  3426. # like to wrap large dependency lists on column 80 (with \), and
  3427. # we should not choose a depcomp mode which is confused by this.
  3428. #
  3429. # We need to recreate these files for each test, as the compiler may
  3430. # overwrite some of them when testing with obscure command lines.
  3431. # This happens at least with the AIX C compiler.
  3432. : > sub/conftest.c
  3433. for i in 1 2 3 4 5 6; do
  3434. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3435. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3436. # Solaris 8's {/usr,}/bin/sh.
  3437. touch sub/conftst$i.h
  3438. done
  3439. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3440. case $depmode in
  3441. nosideeffect)
  3442. # after this tag, mechanisms are not by side-effect, so they'll
  3443. # only be used when explicitly requested
  3444. if test "x$enable_dependency_tracking" = xyes; then
  3445. continue
  3446. else
  3447. break
  3448. fi
  3449. ;;
  3450. none) break ;;
  3451. esac
  3452. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3453. # mode. It turns out that the SunPro C++ compiler does not properly
  3454. # handle `-M -o', and we need to detect this.
  3455. if depmode=$depmode \
  3456. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3457. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3458. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3459. >/dev/null 2>conftest.err &&
  3460. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3461. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3462. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3463. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3464. # icc doesn't choke on unknown options, it will just issue warnings
  3465. # or remarks (even with -Werror). So we grep stderr for any message
  3466. # that says an option was ignored or not supported.
  3467. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3468. # icc: Command line warning: ignoring option '-M'; no argument required
  3469. # The diagnosis changed in icc 8.0:
  3470. # icc: Command line remark: option '-MP' not supported
  3471. if (grep 'ignoring option' conftest.err ||
  3472. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3473. am_cv_CC_dependencies_compiler_type=$depmode
  3474. break
  3475. fi
  3476. fi
  3477. done
  3478. cd ..
  3479. rm -rf conftest.dir
  3480. else
  3481. am_cv_CC_dependencies_compiler_type=none
  3482. fi
  3483. fi
  3484. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3485. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3486. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3487. if
  3488. test "x$enable_dependency_tracking" != xno \
  3489. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3490. am__fastdepCC_TRUE=
  3491. am__fastdepCC_FALSE='#'
  3492. else
  3493. am__fastdepCC_TRUE='#'
  3494. am__fastdepCC_FALSE=
  3495. fi
  3496. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3497. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3498. if test "${lt_cv_path_SED+set}" = set; then
  3499. echo $ECHO_N "(cached) $ECHO_C" >&6
  3500. else
  3501. # Loop through the user's path and test for sed and gsed.
  3502. # Then use that list of sed's as ones to test for truncation.
  3503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3504. for as_dir in $PATH
  3505. do
  3506. IFS=$as_save_IFS
  3507. test -z "$as_dir" && as_dir=.
  3508. for lt_ac_prog in sed gsed; do
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3511. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3512. fi
  3513. done
  3514. done
  3515. done
  3516. IFS=$as_save_IFS
  3517. lt_ac_max=0
  3518. lt_ac_count=0
  3519. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3520. # along with /bin/sed that truncates output.
  3521. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3522. test ! -f $lt_ac_sed && continue
  3523. cat /dev/null > conftest.in
  3524. lt_ac_count=0
  3525. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3526. # Check for GNU sed and select it if it is found.
  3527. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3528. lt_cv_path_SED=$lt_ac_sed
  3529. break
  3530. fi
  3531. while true; do
  3532. cat conftest.in conftest.in >conftest.tmp
  3533. mv conftest.tmp conftest.in
  3534. cp conftest.in conftest.nl
  3535. echo >>conftest.nl
  3536. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3537. cmp -s conftest.out conftest.nl || break
  3538. # 10000 chars as input seems more than enough
  3539. test $lt_ac_count -gt 10 && break
  3540. lt_ac_count=`expr $lt_ac_count + 1`
  3541. if test $lt_ac_count -gt $lt_ac_max; then
  3542. lt_ac_max=$lt_ac_count
  3543. lt_cv_path_SED=$lt_ac_sed
  3544. fi
  3545. done
  3546. done
  3547. fi
  3548. SED=$lt_cv_path_SED
  3549. { echo "$as_me:$LINENO: result: $SED" >&5
  3550. echo "${ECHO_T}$SED" >&6; }
  3551. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3552. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3553. if test "${ac_cv_path_GREP+set}" = set; then
  3554. echo $ECHO_N "(cached) $ECHO_C" >&6
  3555. else
  3556. # Extract the first word of "grep ggrep" to use in msg output
  3557. if test -z "$GREP"; then
  3558. set dummy grep ggrep; ac_prog_name=$2
  3559. if test "${ac_cv_path_GREP+set}" = set; then
  3560. echo $ECHO_N "(cached) $ECHO_C" >&6
  3561. else
  3562. ac_path_GREP_found=false
  3563. # Loop through the user's path and test for each of PROGNAME-LIST
  3564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3565. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3566. do
  3567. IFS=$as_save_IFS
  3568. test -z "$as_dir" && as_dir=.
  3569. for ac_prog in grep ggrep; do
  3570. for ac_exec_ext in '' $ac_executable_extensions; do
  3571. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3572. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3573. # Check for GNU ac_path_GREP and select it if it is found.
  3574. # Check for GNU $ac_path_GREP
  3575. case `"$ac_path_GREP" --version 2>&1` in
  3576. *GNU*)
  3577. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3578. *)
  3579. ac_count=0
  3580. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3581. while :
  3582. do
  3583. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3584. mv "conftest.tmp" "conftest.in"
  3585. cp "conftest.in" "conftest.nl"
  3586. echo 'GREP' >> "conftest.nl"
  3587. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3588. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3589. ac_count=`expr $ac_count + 1`
  3590. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3591. # Best one so far, save it but keep looking for a better one
  3592. ac_cv_path_GREP="$ac_path_GREP"
  3593. ac_path_GREP_max=$ac_count
  3594. fi
  3595. # 10*(2^10) chars as input seems more than enough
  3596. test $ac_count -gt 10 && break
  3597. done
  3598. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3599. esac
  3600. $ac_path_GREP_found && break 3
  3601. done
  3602. done
  3603. done
  3604. IFS=$as_save_IFS
  3605. fi
  3606. GREP="$ac_cv_path_GREP"
  3607. if test -z "$GREP"; then
  3608. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3609. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3610. { (exit 1); exit 1; }; }
  3611. fi
  3612. else
  3613. ac_cv_path_GREP=$GREP
  3614. fi
  3615. fi
  3616. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3617. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3618. GREP="$ac_cv_path_GREP"
  3619. { echo "$as_me:$LINENO: checking for egrep" >&5
  3620. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3621. if test "${ac_cv_path_EGREP+set}" = set; then
  3622. echo $ECHO_N "(cached) $ECHO_C" >&6
  3623. else
  3624. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3625. then ac_cv_path_EGREP="$GREP -E"
  3626. else
  3627. # Extract the first word of "egrep" to use in msg output
  3628. if test -z "$EGREP"; then
  3629. set dummy egrep; ac_prog_name=$2
  3630. if test "${ac_cv_path_EGREP+set}" = set; then
  3631. echo $ECHO_N "(cached) $ECHO_C" >&6
  3632. else
  3633. ac_path_EGREP_found=false
  3634. # Loop through the user's path and test for each of PROGNAME-LIST
  3635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3636. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3637. do
  3638. IFS=$as_save_IFS
  3639. test -z "$as_dir" && as_dir=.
  3640. for ac_prog in egrep; do
  3641. for ac_exec_ext in '' $ac_executable_extensions; do
  3642. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3643. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3644. # Check for GNU ac_path_EGREP and select it if it is found.
  3645. # Check for GNU $ac_path_EGREP
  3646. case `"$ac_path_EGREP" --version 2>&1` in
  3647. *GNU*)
  3648. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3649. *)
  3650. ac_count=0
  3651. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3652. while :
  3653. do
  3654. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3655. mv "conftest.tmp" "conftest.in"
  3656. cp "conftest.in" "conftest.nl"
  3657. echo 'EGREP' >> "conftest.nl"
  3658. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3659. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3660. ac_count=`expr $ac_count + 1`
  3661. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3662. # Best one so far, save it but keep looking for a better one
  3663. ac_cv_path_EGREP="$ac_path_EGREP"
  3664. ac_path_EGREP_max=$ac_count
  3665. fi
  3666. # 10*(2^10) chars as input seems more than enough
  3667. test $ac_count -gt 10 && break
  3668. done
  3669. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3670. esac
  3671. $ac_path_EGREP_found && break 3
  3672. done
  3673. done
  3674. done
  3675. IFS=$as_save_IFS
  3676. fi
  3677. EGREP="$ac_cv_path_EGREP"
  3678. if test -z "$EGREP"; then
  3679. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3680. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3681. { (exit 1); exit 1; }; }
  3682. fi
  3683. else
  3684. ac_cv_path_EGREP=$EGREP
  3685. fi
  3686. fi
  3687. fi
  3688. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3689. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3690. EGREP="$ac_cv_path_EGREP"
  3691. # Check whether --with-gnu-ld was given.
  3692. if test "${with_gnu_ld+set}" = set; then
  3693. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3694. else
  3695. with_gnu_ld=no
  3696. fi
  3697. ac_prog=ld
  3698. if test "$GCC" = yes; then
  3699. # Check if gcc -print-prog-name=ld gives a path.
  3700. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3701. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3702. case $host in
  3703. *-*-mingw*)
  3704. # gcc leaves a trailing carriage return which upsets mingw
  3705. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3706. *)
  3707. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3708. esac
  3709. case $ac_prog in
  3710. # Accept absolute paths.
  3711. [\\/]* | ?:[\\/]*)
  3712. re_direlt='/[^/][^/]*/\.\./'
  3713. # Canonicalize the pathname of ld
  3714. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3715. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3716. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3717. done
  3718. test -z "$LD" && LD="$ac_prog"
  3719. ;;
  3720. "")
  3721. # If it fails, then pretend we aren't using GCC.
  3722. ac_prog=ld
  3723. ;;
  3724. *)
  3725. # If it is relative, then search for the first ld in PATH.
  3726. with_gnu_ld=unknown
  3727. ;;
  3728. esac
  3729. elif test "$with_gnu_ld" = yes; then
  3730. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3731. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3732. else
  3733. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3734. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3735. fi
  3736. if test "${lt_cv_path_LD+set}" = set; then
  3737. echo $ECHO_N "(cached) $ECHO_C" >&6
  3738. else
  3739. if test -z "$LD"; then
  3740. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3741. for ac_dir in $PATH; do
  3742. IFS="$lt_save_ifs"
  3743. test -z "$ac_dir" && ac_dir=.
  3744. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3745. lt_cv_path_LD="$ac_dir/$ac_prog"
  3746. # Check to see if the program is GNU ld. I'd rather use --version,
  3747. # but apparently some variants of GNU ld only accept -v.
  3748. # Break only if it was the GNU/non-GNU ld that we prefer.
  3749. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3750. *GNU* | *'with BFD'*)
  3751. test "$with_gnu_ld" != no && break
  3752. ;;
  3753. *)
  3754. test "$with_gnu_ld" != yes && break
  3755. ;;
  3756. esac
  3757. fi
  3758. done
  3759. IFS="$lt_save_ifs"
  3760. else
  3761. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3762. fi
  3763. fi
  3764. LD="$lt_cv_path_LD"
  3765. if test -n "$LD"; then
  3766. { echo "$as_me:$LINENO: result: $LD" >&5
  3767. echo "${ECHO_T}$LD" >&6; }
  3768. else
  3769. { echo "$as_me:$LINENO: result: no" >&5
  3770. echo "${ECHO_T}no" >&6; }
  3771. fi
  3772. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3773. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3774. { (exit 1); exit 1; }; }
  3775. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3776. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3777. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3778. echo $ECHO_N "(cached) $ECHO_C" >&6
  3779. else
  3780. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3781. case `$LD -v 2>&1 </dev/null` in
  3782. *GNU* | *'with BFD'*)
  3783. lt_cv_prog_gnu_ld=yes
  3784. ;;
  3785. *)
  3786. lt_cv_prog_gnu_ld=no
  3787. ;;
  3788. esac
  3789. fi
  3790. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3791. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3792. with_gnu_ld=$lt_cv_prog_gnu_ld
  3793. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3794. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3795. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3796. echo $ECHO_N "(cached) $ECHO_C" >&6
  3797. else
  3798. lt_cv_ld_reload_flag='-r'
  3799. fi
  3800. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3801. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3802. reload_flag=$lt_cv_ld_reload_flag
  3803. case $reload_flag in
  3804. "" | " "*) ;;
  3805. *) reload_flag=" $reload_flag" ;;
  3806. esac
  3807. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3808. case $host_os in
  3809. darwin*)
  3810. if test "$GCC" = yes; then
  3811. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3812. else
  3813. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3814. fi
  3815. ;;
  3816. esac
  3817. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3818. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3819. if test "${lt_cv_path_NM+set}" = set; then
  3820. echo $ECHO_N "(cached) $ECHO_C" >&6
  3821. else
  3822. if test -n "$NM"; then
  3823. # Let the user override the test.
  3824. lt_cv_path_NM="$NM"
  3825. else
  3826. lt_nm_to_check="${ac_tool_prefix}nm"
  3827. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3828. lt_nm_to_check="$lt_nm_to_check nm"
  3829. fi
  3830. for lt_tmp_nm in $lt_nm_to_check; do
  3831. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3832. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3833. IFS="$lt_save_ifs"
  3834. test -z "$ac_dir" && ac_dir=.
  3835. tmp_nm="$ac_dir/$lt_tmp_nm"
  3836. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3837. # Check to see if the nm accepts a BSD-compat flag.
  3838. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3839. # nm: unknown option "B" ignored
  3840. # Tru64's nm complains that /dev/null is an invalid object file
  3841. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3842. */dev/null* | *'Invalid file or object type'*)
  3843. lt_cv_path_NM="$tmp_nm -B"
  3844. break
  3845. ;;
  3846. *)
  3847. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3848. */dev/null*)
  3849. lt_cv_path_NM="$tmp_nm -p"
  3850. break
  3851. ;;
  3852. *)
  3853. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3854. continue # so that we can try to find one that supports BSD flags
  3855. ;;
  3856. esac
  3857. ;;
  3858. esac
  3859. fi
  3860. done
  3861. IFS="$lt_save_ifs"
  3862. done
  3863. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3864. fi
  3865. fi
  3866. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3867. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3868. NM="$lt_cv_path_NM"
  3869. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3870. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3871. LN_S=$as_ln_s
  3872. if test "$LN_S" = "ln -s"; then
  3873. { echo "$as_me:$LINENO: result: yes" >&5
  3874. echo "${ECHO_T}yes" >&6; }
  3875. else
  3876. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3877. echo "${ECHO_T}no, using $LN_S" >&6; }
  3878. fi
  3879. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3880. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  3881. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3882. echo $ECHO_N "(cached) $ECHO_C" >&6
  3883. else
  3884. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3885. lt_cv_file_magic_test_file=
  3886. lt_cv_deplibs_check_method='unknown'
  3887. # Need to set the preceding variable on all platforms that support
  3888. # interlibrary dependencies.
  3889. # 'none' -- dependencies not supported.
  3890. # `unknown' -- same as none, but documents that we really don't know.
  3891. # 'pass_all' -- all dependencies passed with no checks.
  3892. # 'test_compile' -- check by making test program.
  3893. # 'file_magic [[regex]]' -- check by looking for files in library path
  3894. # which responds to the $file_magic_cmd with a given extended regex.
  3895. # If you have `file' or equivalent on your system and you're not sure
  3896. # whether `pass_all' will *always* work, you probably want this one.
  3897. case $host_os in
  3898. aix4* | aix5*)
  3899. lt_cv_deplibs_check_method=pass_all
  3900. ;;
  3901. beos*)
  3902. lt_cv_deplibs_check_method=pass_all
  3903. ;;
  3904. bsdi[45]*)
  3905. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3906. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3907. lt_cv_file_magic_test_file=/shlib/libc.so
  3908. ;;
  3909. cygwin*)
  3910. # func_win32_libid is a shell function defined in ltmain.sh
  3911. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3912. lt_cv_file_magic_cmd='func_win32_libid'
  3913. ;;
  3914. mingw* | pw32*)
  3915. # Base MSYS/MinGW do not provide the 'file' command needed by
  3916. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3917. # unless we find 'file', for example because we are cross-compiling.
  3918. if ( file / ) >/dev/null 2>&1; then
  3919. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3920. lt_cv_file_magic_cmd='func_win32_libid'
  3921. else
  3922. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3923. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3924. fi
  3925. ;;
  3926. darwin* | rhapsody*)
  3927. lt_cv_deplibs_check_method=pass_all
  3928. ;;
  3929. freebsd* | dragonfly*)
  3930. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3931. case $host_cpu in
  3932. i*86 )
  3933. # Not sure whether the presence of OpenBSD here was a mistake.
  3934. # Let's accept both of them until this is cleared up.
  3935. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3936. lt_cv_file_magic_cmd=/usr/bin/file
  3937. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3938. ;;
  3939. esac
  3940. else
  3941. lt_cv_deplibs_check_method=pass_all
  3942. fi
  3943. ;;
  3944. gnu*)
  3945. lt_cv_deplibs_check_method=pass_all
  3946. ;;
  3947. hpux10.20* | hpux11*)
  3948. lt_cv_file_magic_cmd=/usr/bin/file
  3949. case $host_cpu in
  3950. ia64*)
  3951. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3952. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3953. ;;
  3954. hppa*64*)
  3955. 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]'
  3956. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3957. ;;
  3958. *)
  3959. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3960. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3961. ;;
  3962. esac
  3963. ;;
  3964. interix[3-9]*)
  3965. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3966. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3967. ;;
  3968. irix5* | irix6* | nonstopux*)
  3969. case $LD in
  3970. *-32|*"-32 ") libmagic=32-bit;;
  3971. *-n32|*"-n32 ") libmagic=N32;;
  3972. *-64|*"-64 ") libmagic=64-bit;;
  3973. *) libmagic=never-match;;
  3974. esac
  3975. lt_cv_deplibs_check_method=pass_all
  3976. ;;
  3977. # This must be Linux ELF.
  3978. linux* | k*bsd*-gnu)
  3979. lt_cv_deplibs_check_method=pass_all
  3980. ;;
  3981. netbsd*)
  3982. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3983. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3984. else
  3985. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3986. fi
  3987. ;;
  3988. newos6*)
  3989. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3990. lt_cv_file_magic_cmd=/usr/bin/file
  3991. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3992. ;;
  3993. nto-qnx*)
  3994. lt_cv_deplibs_check_method=unknown
  3995. ;;
  3996. openbsd*)
  3997. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3998. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3999. else
  4000. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4001. fi
  4002. ;;
  4003. osf3* | osf4* | osf5*)
  4004. lt_cv_deplibs_check_method=pass_all
  4005. ;;
  4006. rdos*)
  4007. lt_cv_deplibs_check_method=pass_all
  4008. ;;
  4009. solaris*)
  4010. lt_cv_deplibs_check_method=pass_all
  4011. ;;
  4012. sysv4 | sysv4.3*)
  4013. case $host_vendor in
  4014. motorola)
  4015. 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]'
  4016. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4017. ;;
  4018. ncr)
  4019. lt_cv_deplibs_check_method=pass_all
  4020. ;;
  4021. sequent)
  4022. lt_cv_file_magic_cmd='/bin/file'
  4023. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4024. ;;
  4025. sni)
  4026. lt_cv_file_magic_cmd='/bin/file'
  4027. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4028. lt_cv_file_magic_test_file=/lib/libc.so
  4029. ;;
  4030. siemens)
  4031. lt_cv_deplibs_check_method=pass_all
  4032. ;;
  4033. pc)
  4034. lt_cv_deplibs_check_method=pass_all
  4035. ;;
  4036. esac
  4037. ;;
  4038. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4039. lt_cv_deplibs_check_method=pass_all
  4040. ;;
  4041. esac
  4042. fi
  4043. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4044. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4045. file_magic_cmd=$lt_cv_file_magic_cmd
  4046. deplibs_check_method=$lt_cv_deplibs_check_method
  4047. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4048. # If no C compiler was specified, use CC.
  4049. LTCC=${LTCC-"$CC"}
  4050. # If no C compiler flags were specified, use CFLAGS.
  4051. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4052. # Allow CC to be a program name with arguments.
  4053. compiler=$CC
  4054. # Check whether --enable-libtool-lock was given.
  4055. if test "${enable_libtool_lock+set}" = set; then
  4056. enableval=$enable_libtool_lock;
  4057. fi
  4058. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4059. # Some flags need to be propagated to the compiler or linker for good
  4060. # libtool support.
  4061. case $host in
  4062. ia64-*-hpux*)
  4063. # Find out which ABI we are using.
  4064. echo 'int i;' > conftest.$ac_ext
  4065. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4066. (eval $ac_compile) 2>&5
  4067. ac_status=$?
  4068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4069. (exit $ac_status); }; then
  4070. case `/usr/bin/file conftest.$ac_objext` in
  4071. *ELF-32*)
  4072. HPUX_IA64_MODE="32"
  4073. ;;
  4074. *ELF-64*)
  4075. HPUX_IA64_MODE="64"
  4076. ;;
  4077. esac
  4078. fi
  4079. rm -rf conftest*
  4080. ;;
  4081. *-*-irix6*)
  4082. # Find out which ABI we are using.
  4083. echo '#line 4590 "configure"' > conftest.$ac_ext
  4084. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4085. (eval $ac_compile) 2>&5
  4086. ac_status=$?
  4087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4088. (exit $ac_status); }; then
  4089. if test "$lt_cv_prog_gnu_ld" = yes; then
  4090. case `/usr/bin/file conftest.$ac_objext` in
  4091. *32-bit*)
  4092. LD="${LD-ld} -melf32bsmip"
  4093. ;;
  4094. *N32*)
  4095. LD="${LD-ld} -melf32bmipn32"
  4096. ;;
  4097. *64-bit*)
  4098. LD="${LD-ld} -melf64bmip"
  4099. ;;
  4100. esac
  4101. else
  4102. case `/usr/bin/file conftest.$ac_objext` in
  4103. *32-bit*)
  4104. LD="${LD-ld} -32"
  4105. ;;
  4106. *N32*)
  4107. LD="${LD-ld} -n32"
  4108. ;;
  4109. *64-bit*)
  4110. LD="${LD-ld} -64"
  4111. ;;
  4112. esac
  4113. fi
  4114. fi
  4115. rm -rf conftest*
  4116. ;;
  4117. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4118. s390*-*linux*|sparc*-*linux*)
  4119. # Find out which ABI we are using.
  4120. echo 'int i;' > conftest.$ac_ext
  4121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4122. (eval $ac_compile) 2>&5
  4123. ac_status=$?
  4124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4125. (exit $ac_status); }; then
  4126. case `/usr/bin/file conftest.o` in
  4127. *32-bit*)
  4128. case $host in
  4129. x86_64-*kfreebsd*-gnu)
  4130. LD="${LD-ld} -m elf_i386_fbsd"
  4131. ;;
  4132. x86_64-*linux*)
  4133. LD="${LD-ld} -m elf_i386"
  4134. ;;
  4135. ppc64-*linux*|powerpc64-*linux*)
  4136. LD="${LD-ld} -m elf32ppclinux"
  4137. ;;
  4138. s390x-*linux*)
  4139. LD="${LD-ld} -m elf_s390"
  4140. ;;
  4141. sparc64-*linux*)
  4142. LD="${LD-ld} -m elf32_sparc"
  4143. ;;
  4144. esac
  4145. ;;
  4146. *64-bit*)
  4147. case $host in
  4148. x86_64-*kfreebsd*-gnu)
  4149. LD="${LD-ld} -m elf_x86_64_fbsd"
  4150. ;;
  4151. x86_64-*linux*)
  4152. LD="${LD-ld} -m elf_x86_64"
  4153. ;;
  4154. ppc*-*linux*|powerpc*-*linux*)
  4155. LD="${LD-ld} -m elf64ppc"
  4156. ;;
  4157. s390*-*linux*)
  4158. LD="${LD-ld} -m elf64_s390"
  4159. ;;
  4160. sparc*-*linux*)
  4161. LD="${LD-ld} -m elf64_sparc"
  4162. ;;
  4163. esac
  4164. ;;
  4165. esac
  4166. fi
  4167. rm -rf conftest*
  4168. ;;
  4169. *-*-sco3.2v5*)
  4170. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4171. SAVE_CFLAGS="$CFLAGS"
  4172. CFLAGS="$CFLAGS -belf"
  4173. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4174. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4175. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4176. echo $ECHO_N "(cached) $ECHO_C" >&6
  4177. else
  4178. ac_ext=c
  4179. ac_cpp='$CPP $CPPFLAGS'
  4180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4183. cat >conftest.$ac_ext <<_ACEOF
  4184. /* confdefs.h. */
  4185. _ACEOF
  4186. cat confdefs.h >>conftest.$ac_ext
  4187. cat >>conftest.$ac_ext <<_ACEOF
  4188. /* end confdefs.h. */
  4189. int
  4190. main ()
  4191. {
  4192. ;
  4193. return 0;
  4194. }
  4195. _ACEOF
  4196. rm -f conftest.$ac_objext conftest$ac_exeext
  4197. if { (ac_try="$ac_link"
  4198. case "(($ac_try" in
  4199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4200. *) ac_try_echo=$ac_try;;
  4201. esac
  4202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4203. (eval "$ac_link") 2>conftest.er1
  4204. ac_status=$?
  4205. grep -v '^ *+' conftest.er1 >conftest.err
  4206. rm -f conftest.er1
  4207. cat conftest.err >&5
  4208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4209. (exit $ac_status); } && {
  4210. test -z "$ac_c_werror_flag" ||
  4211. test ! -s conftest.err
  4212. } && test -s conftest$ac_exeext &&
  4213. $as_test_x conftest$ac_exeext; then
  4214. lt_cv_cc_needs_belf=yes
  4215. else
  4216. echo "$as_me: failed program was:" >&5
  4217. sed 's/^/| /' conftest.$ac_ext >&5
  4218. lt_cv_cc_needs_belf=no
  4219. fi
  4220. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4221. conftest$ac_exeext conftest.$ac_ext
  4222. ac_ext=c
  4223. ac_cpp='$CPP $CPPFLAGS'
  4224. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4225. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4226. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4227. fi
  4228. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4229. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4230. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4231. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4232. CFLAGS="$SAVE_CFLAGS"
  4233. fi
  4234. ;;
  4235. sparc*-*solaris*)
  4236. # Find out which ABI we are using.
  4237. echo 'int i;' > conftest.$ac_ext
  4238. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4239. (eval $ac_compile) 2>&5
  4240. ac_status=$?
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); }; then
  4243. case `/usr/bin/file conftest.o` in
  4244. *64-bit*)
  4245. case $lt_cv_prog_gnu_ld in
  4246. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4247. *) LD="${LD-ld} -64" ;;
  4248. esac
  4249. ;;
  4250. esac
  4251. fi
  4252. rm -rf conftest*
  4253. ;;
  4254. esac
  4255. need_locks="$enable_libtool_lock"
  4256. ac_ext=c
  4257. ac_cpp='$CPP $CPPFLAGS'
  4258. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4259. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4260. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4261. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4262. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4263. # On Suns, sometimes $CPP names a directory.
  4264. if test -n "$CPP" && test -d "$CPP"; then
  4265. CPP=
  4266. fi
  4267. if test -z "$CPP"; then
  4268. if test "${ac_cv_prog_CPP+set}" = set; then
  4269. echo $ECHO_N "(cached) $ECHO_C" >&6
  4270. else
  4271. # Double quotes because CPP needs to be expanded
  4272. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4273. do
  4274. ac_preproc_ok=false
  4275. for ac_c_preproc_warn_flag in '' yes
  4276. do
  4277. # Use a header file that comes with gcc, so configuring glibc
  4278. # with a fresh cross-compiler works.
  4279. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4280. # <limits.h> exists even on freestanding compilers.
  4281. # On the NeXT, cc -E runs the code through the compiler's parser,
  4282. # not just through cpp. "Syntax error" is here to catch this case.
  4283. cat >conftest.$ac_ext <<_ACEOF
  4284. /* confdefs.h. */
  4285. _ACEOF
  4286. cat confdefs.h >>conftest.$ac_ext
  4287. cat >>conftest.$ac_ext <<_ACEOF
  4288. /* end confdefs.h. */
  4289. #ifdef __STDC__
  4290. # include <limits.h>
  4291. #else
  4292. # include <assert.h>
  4293. #endif
  4294. Syntax error
  4295. _ACEOF
  4296. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4297. case "(($ac_try" in
  4298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4299. *) ac_try_echo=$ac_try;;
  4300. esac
  4301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4302. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4303. ac_status=$?
  4304. grep -v '^ *+' conftest.er1 >conftest.err
  4305. rm -f conftest.er1
  4306. cat conftest.err >&5
  4307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. (exit $ac_status); } >/dev/null && {
  4309. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4310. test ! -s conftest.err
  4311. }; then
  4312. :
  4313. else
  4314. echo "$as_me: failed program was:" >&5
  4315. sed 's/^/| /' conftest.$ac_ext >&5
  4316. # Broken: fails on valid input.
  4317. continue
  4318. fi
  4319. rm -f conftest.err conftest.$ac_ext
  4320. # OK, works on sane cases. Now check whether nonexistent headers
  4321. # can be detected and how.
  4322. cat >conftest.$ac_ext <<_ACEOF
  4323. /* confdefs.h. */
  4324. _ACEOF
  4325. cat confdefs.h >>conftest.$ac_ext
  4326. cat >>conftest.$ac_ext <<_ACEOF
  4327. /* end confdefs.h. */
  4328. #include <ac_nonexistent.h>
  4329. _ACEOF
  4330. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4331. case "(($ac_try" in
  4332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4333. *) ac_try_echo=$ac_try;;
  4334. esac
  4335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4336. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4337. ac_status=$?
  4338. grep -v '^ *+' conftest.er1 >conftest.err
  4339. rm -f conftest.er1
  4340. cat conftest.err >&5
  4341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4342. (exit $ac_status); } >/dev/null && {
  4343. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4344. test ! -s conftest.err
  4345. }; then
  4346. # Broken: success on invalid input.
  4347. continue
  4348. else
  4349. echo "$as_me: failed program was:" >&5
  4350. sed 's/^/| /' conftest.$ac_ext >&5
  4351. # Passes both tests.
  4352. ac_preproc_ok=:
  4353. break
  4354. fi
  4355. rm -f conftest.err conftest.$ac_ext
  4356. done
  4357. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4358. rm -f conftest.err conftest.$ac_ext
  4359. if $ac_preproc_ok; then
  4360. break
  4361. fi
  4362. done
  4363. ac_cv_prog_CPP=$CPP
  4364. fi
  4365. CPP=$ac_cv_prog_CPP
  4366. else
  4367. ac_cv_prog_CPP=$CPP
  4368. fi
  4369. { echo "$as_me:$LINENO: result: $CPP" >&5
  4370. echo "${ECHO_T}$CPP" >&6; }
  4371. ac_preproc_ok=false
  4372. for ac_c_preproc_warn_flag in '' yes
  4373. do
  4374. # Use a header file that comes with gcc, so configuring glibc
  4375. # with a fresh cross-compiler works.
  4376. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4377. # <limits.h> exists even on freestanding compilers.
  4378. # On the NeXT, cc -E runs the code through the compiler's parser,
  4379. # not just through cpp. "Syntax error" is here to catch this case.
  4380. cat >conftest.$ac_ext <<_ACEOF
  4381. /* confdefs.h. */
  4382. _ACEOF
  4383. cat confdefs.h >>conftest.$ac_ext
  4384. cat >>conftest.$ac_ext <<_ACEOF
  4385. /* end confdefs.h. */
  4386. #ifdef __STDC__
  4387. # include <limits.h>
  4388. #else
  4389. # include <assert.h>
  4390. #endif
  4391. Syntax error
  4392. _ACEOF
  4393. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4394. case "(($ac_try" in
  4395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4396. *) ac_try_echo=$ac_try;;
  4397. esac
  4398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4399. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4400. ac_status=$?
  4401. grep -v '^ *+' conftest.er1 >conftest.err
  4402. rm -f conftest.er1
  4403. cat conftest.err >&5
  4404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4405. (exit $ac_status); } >/dev/null && {
  4406. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4407. test ! -s conftest.err
  4408. }; then
  4409. :
  4410. else
  4411. echo "$as_me: failed program was:" >&5
  4412. sed 's/^/| /' conftest.$ac_ext >&5
  4413. # Broken: fails on valid input.
  4414. continue
  4415. fi
  4416. rm -f conftest.err conftest.$ac_ext
  4417. # OK, works on sane cases. Now check whether nonexistent headers
  4418. # can be detected and how.
  4419. cat >conftest.$ac_ext <<_ACEOF
  4420. /* confdefs.h. */
  4421. _ACEOF
  4422. cat confdefs.h >>conftest.$ac_ext
  4423. cat >>conftest.$ac_ext <<_ACEOF
  4424. /* end confdefs.h. */
  4425. #include <ac_nonexistent.h>
  4426. _ACEOF
  4427. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4428. case "(($ac_try" in
  4429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4430. *) ac_try_echo=$ac_try;;
  4431. esac
  4432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4433. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4434. ac_status=$?
  4435. grep -v '^ *+' conftest.er1 >conftest.err
  4436. rm -f conftest.er1
  4437. cat conftest.err >&5
  4438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4439. (exit $ac_status); } >/dev/null && {
  4440. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4441. test ! -s conftest.err
  4442. }; then
  4443. # Broken: success on invalid input.
  4444. continue
  4445. else
  4446. echo "$as_me: failed program was:" >&5
  4447. sed 's/^/| /' conftest.$ac_ext >&5
  4448. # Passes both tests.
  4449. ac_preproc_ok=:
  4450. break
  4451. fi
  4452. rm -f conftest.err conftest.$ac_ext
  4453. done
  4454. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4455. rm -f conftest.err conftest.$ac_ext
  4456. if $ac_preproc_ok; then
  4457. :
  4458. else
  4459. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4460. See \`config.log' for more details." >&5
  4461. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4462. See \`config.log' for more details." >&2;}
  4463. { (exit 1); exit 1; }; }
  4464. fi
  4465. ac_ext=c
  4466. ac_cpp='$CPP $CPPFLAGS'
  4467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4470. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4471. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4472. if test "${ac_cv_header_stdc+set}" = set; then
  4473. echo $ECHO_N "(cached) $ECHO_C" >&6
  4474. else
  4475. cat >conftest.$ac_ext <<_ACEOF
  4476. /* confdefs.h. */
  4477. _ACEOF
  4478. cat confdefs.h >>conftest.$ac_ext
  4479. cat >>conftest.$ac_ext <<_ACEOF
  4480. /* end confdefs.h. */
  4481. #include <stdlib.h>
  4482. #include <stdarg.h>
  4483. #include <string.h>
  4484. #include <float.h>
  4485. int
  4486. main ()
  4487. {
  4488. ;
  4489. return 0;
  4490. }
  4491. _ACEOF
  4492. rm -f conftest.$ac_objext
  4493. if { (ac_try="$ac_compile"
  4494. case "(($ac_try" in
  4495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4496. *) ac_try_echo=$ac_try;;
  4497. esac
  4498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4499. (eval "$ac_compile") 2>conftest.er1
  4500. ac_status=$?
  4501. grep -v '^ *+' conftest.er1 >conftest.err
  4502. rm -f conftest.er1
  4503. cat conftest.err >&5
  4504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4505. (exit $ac_status); } && {
  4506. test -z "$ac_c_werror_flag" ||
  4507. test ! -s conftest.err
  4508. } && test -s conftest.$ac_objext; then
  4509. ac_cv_header_stdc=yes
  4510. else
  4511. echo "$as_me: failed program was:" >&5
  4512. sed 's/^/| /' conftest.$ac_ext >&5
  4513. ac_cv_header_stdc=no
  4514. fi
  4515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4516. if test $ac_cv_header_stdc = yes; then
  4517. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4518. cat >conftest.$ac_ext <<_ACEOF
  4519. /* confdefs.h. */
  4520. _ACEOF
  4521. cat confdefs.h >>conftest.$ac_ext
  4522. cat >>conftest.$ac_ext <<_ACEOF
  4523. /* end confdefs.h. */
  4524. #include <string.h>
  4525. _ACEOF
  4526. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4527. $EGREP "memchr" >/dev/null 2>&1; then
  4528. :
  4529. else
  4530. ac_cv_header_stdc=no
  4531. fi
  4532. rm -f conftest*
  4533. fi
  4534. if test $ac_cv_header_stdc = yes; then
  4535. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4536. cat >conftest.$ac_ext <<_ACEOF
  4537. /* confdefs.h. */
  4538. _ACEOF
  4539. cat confdefs.h >>conftest.$ac_ext
  4540. cat >>conftest.$ac_ext <<_ACEOF
  4541. /* end confdefs.h. */
  4542. #include <stdlib.h>
  4543. _ACEOF
  4544. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4545. $EGREP "free" >/dev/null 2>&1; then
  4546. :
  4547. else
  4548. ac_cv_header_stdc=no
  4549. fi
  4550. rm -f conftest*
  4551. fi
  4552. if test $ac_cv_header_stdc = yes; then
  4553. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4554. if test "$cross_compiling" = yes; then
  4555. :
  4556. else
  4557. cat >conftest.$ac_ext <<_ACEOF
  4558. /* confdefs.h. */
  4559. _ACEOF
  4560. cat confdefs.h >>conftest.$ac_ext
  4561. cat >>conftest.$ac_ext <<_ACEOF
  4562. /* end confdefs.h. */
  4563. #include <ctype.h>
  4564. #include <stdlib.h>
  4565. #if ((' ' & 0x0FF) == 0x020)
  4566. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4567. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4568. #else
  4569. # define ISLOWER(c) \
  4570. (('a' <= (c) && (c) <= 'i') \
  4571. || ('j' <= (c) && (c) <= 'r') \
  4572. || ('s' <= (c) && (c) <= 'z'))
  4573. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4574. #endif
  4575. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4576. int
  4577. main ()
  4578. {
  4579. int i;
  4580. for (i = 0; i < 256; i++)
  4581. if (XOR (islower (i), ISLOWER (i))
  4582. || toupper (i) != TOUPPER (i))
  4583. return 2;
  4584. return 0;
  4585. }
  4586. _ACEOF
  4587. rm -f conftest$ac_exeext
  4588. if { (ac_try="$ac_link"
  4589. case "(($ac_try" in
  4590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4591. *) ac_try_echo=$ac_try;;
  4592. esac
  4593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4594. (eval "$ac_link") 2>&5
  4595. ac_status=$?
  4596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4597. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4598. { (case "(($ac_try" in
  4599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4600. *) ac_try_echo=$ac_try;;
  4601. esac
  4602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4603. (eval "$ac_try") 2>&5
  4604. ac_status=$?
  4605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4606. (exit $ac_status); }; }; then
  4607. :
  4608. else
  4609. echo "$as_me: program exited with status $ac_status" >&5
  4610. echo "$as_me: failed program was:" >&5
  4611. sed 's/^/| /' conftest.$ac_ext >&5
  4612. ( exit $ac_status )
  4613. ac_cv_header_stdc=no
  4614. fi
  4615. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4616. fi
  4617. fi
  4618. fi
  4619. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4620. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4621. if test $ac_cv_header_stdc = yes; then
  4622. cat >>confdefs.h <<\_ACEOF
  4623. #define STDC_HEADERS 1
  4624. _ACEOF
  4625. fi
  4626. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4627. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4628. inttypes.h stdint.h unistd.h
  4629. do
  4630. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4631. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4632. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4633. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4634. echo $ECHO_N "(cached) $ECHO_C" >&6
  4635. else
  4636. cat >conftest.$ac_ext <<_ACEOF
  4637. /* confdefs.h. */
  4638. _ACEOF
  4639. cat confdefs.h >>conftest.$ac_ext
  4640. cat >>conftest.$ac_ext <<_ACEOF
  4641. /* end confdefs.h. */
  4642. $ac_includes_default
  4643. #include <$ac_header>
  4644. _ACEOF
  4645. rm -f conftest.$ac_objext
  4646. if { (ac_try="$ac_compile"
  4647. case "(($ac_try" in
  4648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4649. *) ac_try_echo=$ac_try;;
  4650. esac
  4651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4652. (eval "$ac_compile") 2>conftest.er1
  4653. ac_status=$?
  4654. grep -v '^ *+' conftest.er1 >conftest.err
  4655. rm -f conftest.er1
  4656. cat conftest.err >&5
  4657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4658. (exit $ac_status); } && {
  4659. test -z "$ac_c_werror_flag" ||
  4660. test ! -s conftest.err
  4661. } && test -s conftest.$ac_objext; then
  4662. eval "$as_ac_Header=yes"
  4663. else
  4664. echo "$as_me: failed program was:" >&5
  4665. sed 's/^/| /' conftest.$ac_ext >&5
  4666. eval "$as_ac_Header=no"
  4667. fi
  4668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4669. fi
  4670. ac_res=`eval echo '${'$as_ac_Header'}'`
  4671. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4672. echo "${ECHO_T}$ac_res" >&6; }
  4673. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4674. cat >>confdefs.h <<_ACEOF
  4675. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4676. _ACEOF
  4677. fi
  4678. done
  4679. for ac_header in dlfcn.h
  4680. do
  4681. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4682. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4683. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4684. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4685. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4686. echo $ECHO_N "(cached) $ECHO_C" >&6
  4687. fi
  4688. ac_res=`eval echo '${'$as_ac_Header'}'`
  4689. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4690. echo "${ECHO_T}$ac_res" >&6; }
  4691. else
  4692. # Is the header compilable?
  4693. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4694. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4695. cat >conftest.$ac_ext <<_ACEOF
  4696. /* confdefs.h. */
  4697. _ACEOF
  4698. cat confdefs.h >>conftest.$ac_ext
  4699. cat >>conftest.$ac_ext <<_ACEOF
  4700. /* end confdefs.h. */
  4701. $ac_includes_default
  4702. #include <$ac_header>
  4703. _ACEOF
  4704. rm -f conftest.$ac_objext
  4705. if { (ac_try="$ac_compile"
  4706. case "(($ac_try" in
  4707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4708. *) ac_try_echo=$ac_try;;
  4709. esac
  4710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4711. (eval "$ac_compile") 2>conftest.er1
  4712. ac_status=$?
  4713. grep -v '^ *+' conftest.er1 >conftest.err
  4714. rm -f conftest.er1
  4715. cat conftest.err >&5
  4716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4717. (exit $ac_status); } && {
  4718. test -z "$ac_c_werror_flag" ||
  4719. test ! -s conftest.err
  4720. } && test -s conftest.$ac_objext; then
  4721. ac_header_compiler=yes
  4722. else
  4723. echo "$as_me: failed program was:" >&5
  4724. sed 's/^/| /' conftest.$ac_ext >&5
  4725. ac_header_compiler=no
  4726. fi
  4727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4728. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4729. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4730. # Is the header present?
  4731. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4732. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4733. cat >conftest.$ac_ext <<_ACEOF
  4734. /* confdefs.h. */
  4735. _ACEOF
  4736. cat confdefs.h >>conftest.$ac_ext
  4737. cat >>conftest.$ac_ext <<_ACEOF
  4738. /* end confdefs.h. */
  4739. #include <$ac_header>
  4740. _ACEOF
  4741. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4742. case "(($ac_try" in
  4743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4744. *) ac_try_echo=$ac_try;;
  4745. esac
  4746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4747. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4748. ac_status=$?
  4749. grep -v '^ *+' conftest.er1 >conftest.err
  4750. rm -f conftest.er1
  4751. cat conftest.err >&5
  4752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4753. (exit $ac_status); } >/dev/null && {
  4754. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4755. test ! -s conftest.err
  4756. }; then
  4757. ac_header_preproc=yes
  4758. else
  4759. echo "$as_me: failed program was:" >&5
  4760. sed 's/^/| /' conftest.$ac_ext >&5
  4761. ac_header_preproc=no
  4762. fi
  4763. rm -f conftest.err conftest.$ac_ext
  4764. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4765. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4766. # So? What about this header?
  4767. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4768. yes:no: )
  4769. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4770. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4771. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4772. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4773. ac_header_preproc=yes
  4774. ;;
  4775. no:yes:* )
  4776. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4777. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4778. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4779. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4780. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4781. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4782. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4783. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4784. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4785. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4786. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4787. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4788. ;;
  4789. esac
  4790. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4791. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4792. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4793. echo $ECHO_N "(cached) $ECHO_C" >&6
  4794. else
  4795. eval "$as_ac_Header=\$ac_header_preproc"
  4796. fi
  4797. ac_res=`eval echo '${'$as_ac_Header'}'`
  4798. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4799. echo "${ECHO_T}$ac_res" >&6; }
  4800. fi
  4801. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4802. cat >>confdefs.h <<_ACEOF
  4803. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4804. _ACEOF
  4805. fi
  4806. done
  4807. ac_ext=cpp
  4808. ac_cpp='$CXXCPP $CPPFLAGS'
  4809. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4810. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4811. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4812. if test -z "$CXX"; then
  4813. if test -n "$CCC"; then
  4814. CXX=$CCC
  4815. else
  4816. if test -n "$ac_tool_prefix"; then
  4817. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4818. do
  4819. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4820. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4821. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4822. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4823. if test "${ac_cv_prog_CXX+set}" = set; then
  4824. echo $ECHO_N "(cached) $ECHO_C" >&6
  4825. else
  4826. if test -n "$CXX"; then
  4827. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4828. else
  4829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4830. for as_dir in $PATH
  4831. do
  4832. IFS=$as_save_IFS
  4833. test -z "$as_dir" && as_dir=.
  4834. for ac_exec_ext in '' $ac_executable_extensions; do
  4835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4836. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4837. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4838. break 2
  4839. fi
  4840. done
  4841. done
  4842. IFS=$as_save_IFS
  4843. fi
  4844. fi
  4845. CXX=$ac_cv_prog_CXX
  4846. if test -n "$CXX"; then
  4847. { echo "$as_me:$LINENO: result: $CXX" >&5
  4848. echo "${ECHO_T}$CXX" >&6; }
  4849. else
  4850. { echo "$as_me:$LINENO: result: no" >&5
  4851. echo "${ECHO_T}no" >&6; }
  4852. fi
  4853. test -n "$CXX" && break
  4854. done
  4855. fi
  4856. if test -z "$CXX"; then
  4857. ac_ct_CXX=$CXX
  4858. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4859. do
  4860. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4861. set dummy $ac_prog; ac_word=$2
  4862. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4863. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4864. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4865. echo $ECHO_N "(cached) $ECHO_C" >&6
  4866. else
  4867. if test -n "$ac_ct_CXX"; then
  4868. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4869. else
  4870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4871. for as_dir in $PATH
  4872. do
  4873. IFS=$as_save_IFS
  4874. test -z "$as_dir" && as_dir=.
  4875. for ac_exec_ext in '' $ac_executable_extensions; do
  4876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4877. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4878. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4879. break 2
  4880. fi
  4881. done
  4882. done
  4883. IFS=$as_save_IFS
  4884. fi
  4885. fi
  4886. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4887. if test -n "$ac_ct_CXX"; then
  4888. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4889. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4890. else
  4891. { echo "$as_me:$LINENO: result: no" >&5
  4892. echo "${ECHO_T}no" >&6; }
  4893. fi
  4894. test -n "$ac_ct_CXX" && break
  4895. done
  4896. if test "x$ac_ct_CXX" = x; then
  4897. CXX="g++"
  4898. else
  4899. case $cross_compiling:$ac_tool_warned in
  4900. yes:)
  4901. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4902. whose name does not start with the host triplet. If you think this
  4903. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4904. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4905. whose name does not start with the host triplet. If you think this
  4906. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4907. ac_tool_warned=yes ;;
  4908. esac
  4909. CXX=$ac_ct_CXX
  4910. fi
  4911. fi
  4912. fi
  4913. fi
  4914. # Provide some information about the compiler.
  4915. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4916. ac_compiler=`set X $ac_compile; echo $2`
  4917. { (ac_try="$ac_compiler --version >&5"
  4918. case "(($ac_try" in
  4919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4920. *) ac_try_echo=$ac_try;;
  4921. esac
  4922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4923. (eval "$ac_compiler --version >&5") 2>&5
  4924. ac_status=$?
  4925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4926. (exit $ac_status); }
  4927. { (ac_try="$ac_compiler -v >&5"
  4928. case "(($ac_try" in
  4929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4930. *) ac_try_echo=$ac_try;;
  4931. esac
  4932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4933. (eval "$ac_compiler -v >&5") 2>&5
  4934. ac_status=$?
  4935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4936. (exit $ac_status); }
  4937. { (ac_try="$ac_compiler -V >&5"
  4938. case "(($ac_try" in
  4939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4940. *) ac_try_echo=$ac_try;;
  4941. esac
  4942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4943. (eval "$ac_compiler -V >&5") 2>&5
  4944. ac_status=$?
  4945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); }
  4947. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4948. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4949. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4950. echo $ECHO_N "(cached) $ECHO_C" >&6
  4951. else
  4952. cat >conftest.$ac_ext <<_ACEOF
  4953. /* confdefs.h. */
  4954. _ACEOF
  4955. cat confdefs.h >>conftest.$ac_ext
  4956. cat >>conftest.$ac_ext <<_ACEOF
  4957. /* end confdefs.h. */
  4958. int
  4959. main ()
  4960. {
  4961. #ifndef __GNUC__
  4962. choke me
  4963. #endif
  4964. ;
  4965. return 0;
  4966. }
  4967. _ACEOF
  4968. rm -f conftest.$ac_objext
  4969. if { (ac_try="$ac_compile"
  4970. case "(($ac_try" in
  4971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4972. *) ac_try_echo=$ac_try;;
  4973. esac
  4974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4975. (eval "$ac_compile") 2>conftest.er1
  4976. ac_status=$?
  4977. grep -v '^ *+' conftest.er1 >conftest.err
  4978. rm -f conftest.er1
  4979. cat conftest.err >&5
  4980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4981. (exit $ac_status); } && {
  4982. test -z "$ac_cxx_werror_flag" ||
  4983. test ! -s conftest.err
  4984. } && test -s conftest.$ac_objext; then
  4985. ac_compiler_gnu=yes
  4986. else
  4987. echo "$as_me: failed program was:" >&5
  4988. sed 's/^/| /' conftest.$ac_ext >&5
  4989. ac_compiler_gnu=no
  4990. fi
  4991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4992. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4993. fi
  4994. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4995. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4996. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4997. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4998. ac_save_CXXFLAGS=$CXXFLAGS
  4999. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5000. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  5001. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5002. echo $ECHO_N "(cached) $ECHO_C" >&6
  5003. else
  5004. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5005. ac_cxx_werror_flag=yes
  5006. ac_cv_prog_cxx_g=no
  5007. CXXFLAGS="-g"
  5008. cat >conftest.$ac_ext <<_ACEOF
  5009. /* confdefs.h. */
  5010. _ACEOF
  5011. cat confdefs.h >>conftest.$ac_ext
  5012. cat >>conftest.$ac_ext <<_ACEOF
  5013. /* end confdefs.h. */
  5014. int
  5015. main ()
  5016. {
  5017. ;
  5018. return 0;
  5019. }
  5020. _ACEOF
  5021. rm -f conftest.$ac_objext
  5022. if { (ac_try="$ac_compile"
  5023. case "(($ac_try" in
  5024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5025. *) ac_try_echo=$ac_try;;
  5026. esac
  5027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5028. (eval "$ac_compile") 2>conftest.er1
  5029. ac_status=$?
  5030. grep -v '^ *+' conftest.er1 >conftest.err
  5031. rm -f conftest.er1
  5032. cat conftest.err >&5
  5033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5034. (exit $ac_status); } && {
  5035. test -z "$ac_cxx_werror_flag" ||
  5036. test ! -s conftest.err
  5037. } && test -s conftest.$ac_objext; then
  5038. ac_cv_prog_cxx_g=yes
  5039. else
  5040. echo "$as_me: failed program was:" >&5
  5041. sed 's/^/| /' conftest.$ac_ext >&5
  5042. CXXFLAGS=""
  5043. cat >conftest.$ac_ext <<_ACEOF
  5044. /* confdefs.h. */
  5045. _ACEOF
  5046. cat confdefs.h >>conftest.$ac_ext
  5047. cat >>conftest.$ac_ext <<_ACEOF
  5048. /* end confdefs.h. */
  5049. int
  5050. main ()
  5051. {
  5052. ;
  5053. return 0;
  5054. }
  5055. _ACEOF
  5056. rm -f conftest.$ac_objext
  5057. if { (ac_try="$ac_compile"
  5058. case "(($ac_try" in
  5059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5060. *) ac_try_echo=$ac_try;;
  5061. esac
  5062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5063. (eval "$ac_compile") 2>conftest.er1
  5064. ac_status=$?
  5065. grep -v '^ *+' conftest.er1 >conftest.err
  5066. rm -f conftest.er1
  5067. cat conftest.err >&5
  5068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5069. (exit $ac_status); } && {
  5070. test -z "$ac_cxx_werror_flag" ||
  5071. test ! -s conftest.err
  5072. } && test -s conftest.$ac_objext; then
  5073. :
  5074. else
  5075. echo "$as_me: failed program was:" >&5
  5076. sed 's/^/| /' conftest.$ac_ext >&5
  5077. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5078. CXXFLAGS="-g"
  5079. cat >conftest.$ac_ext <<_ACEOF
  5080. /* confdefs.h. */
  5081. _ACEOF
  5082. cat confdefs.h >>conftest.$ac_ext
  5083. cat >>conftest.$ac_ext <<_ACEOF
  5084. /* end confdefs.h. */
  5085. int
  5086. main ()
  5087. {
  5088. ;
  5089. return 0;
  5090. }
  5091. _ACEOF
  5092. rm -f conftest.$ac_objext
  5093. if { (ac_try="$ac_compile"
  5094. case "(($ac_try" in
  5095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5096. *) ac_try_echo=$ac_try;;
  5097. esac
  5098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5099. (eval "$ac_compile") 2>conftest.er1
  5100. ac_status=$?
  5101. grep -v '^ *+' conftest.er1 >conftest.err
  5102. rm -f conftest.er1
  5103. cat conftest.err >&5
  5104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5105. (exit $ac_status); } && {
  5106. test -z "$ac_cxx_werror_flag" ||
  5107. test ! -s conftest.err
  5108. } && test -s conftest.$ac_objext; then
  5109. ac_cv_prog_cxx_g=yes
  5110. else
  5111. echo "$as_me: failed program was:" >&5
  5112. sed 's/^/| /' conftest.$ac_ext >&5
  5113. fi
  5114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5115. fi
  5116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5117. fi
  5118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5119. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5120. fi
  5121. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5122. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5123. if test "$ac_test_CXXFLAGS" = set; then
  5124. CXXFLAGS=$ac_save_CXXFLAGS
  5125. elif test $ac_cv_prog_cxx_g = yes; then
  5126. if test "$GXX" = yes; then
  5127. CXXFLAGS="-g -O2"
  5128. else
  5129. CXXFLAGS="-g"
  5130. fi
  5131. else
  5132. if test "$GXX" = yes; then
  5133. CXXFLAGS="-O2"
  5134. else
  5135. CXXFLAGS=
  5136. fi
  5137. fi
  5138. ac_ext=cpp
  5139. ac_cpp='$CXXCPP $CPPFLAGS'
  5140. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5141. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5142. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5143. depcc="$CXX" am_compiler_list=
  5144. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5145. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5146. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5147. echo $ECHO_N "(cached) $ECHO_C" >&6
  5148. else
  5149. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5150. # We make a subdir and do the tests there. Otherwise we can end up
  5151. # making bogus files that we don't know about and never remove. For
  5152. # instance it was reported that on HP-UX the gcc test will end up
  5153. # making a dummy file named `D' -- because `-MD' means `put the output
  5154. # in D'.
  5155. mkdir conftest.dir
  5156. # Copy depcomp to subdir because otherwise we won't find it if we're
  5157. # using a relative directory.
  5158. cp "$am_depcomp" conftest.dir
  5159. cd conftest.dir
  5160. # We will build objects and dependencies in a subdirectory because
  5161. # it helps to detect inapplicable dependency modes. For instance
  5162. # both Tru64's cc and ICC support -MD to output dependencies as a
  5163. # side effect of compilation, but ICC will put the dependencies in
  5164. # the current directory while Tru64 will put them in the object
  5165. # directory.
  5166. mkdir sub
  5167. am_cv_CXX_dependencies_compiler_type=none
  5168. if test "$am_compiler_list" = ""; then
  5169. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5170. fi
  5171. for depmode in $am_compiler_list; do
  5172. # Setup a source with many dependencies, because some compilers
  5173. # like to wrap large dependency lists on column 80 (with \), and
  5174. # we should not choose a depcomp mode which is confused by this.
  5175. #
  5176. # We need to recreate these files for each test, as the compiler may
  5177. # overwrite some of them when testing with obscure command lines.
  5178. # This happens at least with the AIX C compiler.
  5179. : > sub/conftest.c
  5180. for i in 1 2 3 4 5 6; do
  5181. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5182. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5183. # Solaris 8's {/usr,}/bin/sh.
  5184. touch sub/conftst$i.h
  5185. done
  5186. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5187. case $depmode in
  5188. nosideeffect)
  5189. # after this tag, mechanisms are not by side-effect, so they'll
  5190. # only be used when explicitly requested
  5191. if test "x$enable_dependency_tracking" = xyes; then
  5192. continue
  5193. else
  5194. break
  5195. fi
  5196. ;;
  5197. none) break ;;
  5198. esac
  5199. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5200. # mode. It turns out that the SunPro C++ compiler does not properly
  5201. # handle `-M -o', and we need to detect this.
  5202. if depmode=$depmode \
  5203. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5204. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5205. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5206. >/dev/null 2>conftest.err &&
  5207. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5208. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5209. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5210. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5211. # icc doesn't choke on unknown options, it will just issue warnings
  5212. # or remarks (even with -Werror). So we grep stderr for any message
  5213. # that says an option was ignored or not supported.
  5214. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5215. # icc: Command line warning: ignoring option '-M'; no argument required
  5216. # The diagnosis changed in icc 8.0:
  5217. # icc: Command line remark: option '-MP' not supported
  5218. if (grep 'ignoring option' conftest.err ||
  5219. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5220. am_cv_CXX_dependencies_compiler_type=$depmode
  5221. break
  5222. fi
  5223. fi
  5224. done
  5225. cd ..
  5226. rm -rf conftest.dir
  5227. else
  5228. am_cv_CXX_dependencies_compiler_type=none
  5229. fi
  5230. fi
  5231. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5232. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5233. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5234. if
  5235. test "x$enable_dependency_tracking" != xno \
  5236. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5237. am__fastdepCXX_TRUE=
  5238. am__fastdepCXX_FALSE='#'
  5239. else
  5240. am__fastdepCXX_TRUE='#'
  5241. am__fastdepCXX_FALSE=
  5242. fi
  5243. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5244. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5245. (test "X$CXX" != "Xg++"))) ; then
  5246. ac_ext=cpp
  5247. ac_cpp='$CXXCPP $CPPFLAGS'
  5248. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5249. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5250. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5251. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5252. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5253. if test -z "$CXXCPP"; then
  5254. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5255. echo $ECHO_N "(cached) $ECHO_C" >&6
  5256. else
  5257. # Double quotes because CXXCPP needs to be expanded
  5258. for CXXCPP in "$CXX -E" "/lib/cpp"
  5259. do
  5260. ac_preproc_ok=false
  5261. for ac_cxx_preproc_warn_flag in '' yes
  5262. do
  5263. # Use a header file that comes with gcc, so configuring glibc
  5264. # with a fresh cross-compiler works.
  5265. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5266. # <limits.h> exists even on freestanding compilers.
  5267. # On the NeXT, cc -E runs the code through the compiler's parser,
  5268. # not just through cpp. "Syntax error" is here to catch this case.
  5269. cat >conftest.$ac_ext <<_ACEOF
  5270. /* confdefs.h. */
  5271. _ACEOF
  5272. cat confdefs.h >>conftest.$ac_ext
  5273. cat >>conftest.$ac_ext <<_ACEOF
  5274. /* end confdefs.h. */
  5275. #ifdef __STDC__
  5276. # include <limits.h>
  5277. #else
  5278. # include <assert.h>
  5279. #endif
  5280. Syntax error
  5281. _ACEOF
  5282. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5283. case "(($ac_try" in
  5284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5285. *) ac_try_echo=$ac_try;;
  5286. esac
  5287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5288. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5289. ac_status=$?
  5290. grep -v '^ *+' conftest.er1 >conftest.err
  5291. rm -f conftest.er1
  5292. cat conftest.err >&5
  5293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5294. (exit $ac_status); } >/dev/null && {
  5295. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5296. test ! -s conftest.err
  5297. }; then
  5298. :
  5299. else
  5300. echo "$as_me: failed program was:" >&5
  5301. sed 's/^/| /' conftest.$ac_ext >&5
  5302. # Broken: fails on valid input.
  5303. continue
  5304. fi
  5305. rm -f conftest.err conftest.$ac_ext
  5306. # OK, works on sane cases. Now check whether nonexistent headers
  5307. # can be detected and how.
  5308. cat >conftest.$ac_ext <<_ACEOF
  5309. /* confdefs.h. */
  5310. _ACEOF
  5311. cat confdefs.h >>conftest.$ac_ext
  5312. cat >>conftest.$ac_ext <<_ACEOF
  5313. /* end confdefs.h. */
  5314. #include <ac_nonexistent.h>
  5315. _ACEOF
  5316. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5317. case "(($ac_try" in
  5318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5319. *) ac_try_echo=$ac_try;;
  5320. esac
  5321. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5322. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5323. ac_status=$?
  5324. grep -v '^ *+' conftest.er1 >conftest.err
  5325. rm -f conftest.er1
  5326. cat conftest.err >&5
  5327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5328. (exit $ac_status); } >/dev/null && {
  5329. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5330. test ! -s conftest.err
  5331. }; then
  5332. # Broken: success on invalid input.
  5333. continue
  5334. else
  5335. echo "$as_me: failed program was:" >&5
  5336. sed 's/^/| /' conftest.$ac_ext >&5
  5337. # Passes both tests.
  5338. ac_preproc_ok=:
  5339. break
  5340. fi
  5341. rm -f conftest.err conftest.$ac_ext
  5342. done
  5343. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5344. rm -f conftest.err conftest.$ac_ext
  5345. if $ac_preproc_ok; then
  5346. break
  5347. fi
  5348. done
  5349. ac_cv_prog_CXXCPP=$CXXCPP
  5350. fi
  5351. CXXCPP=$ac_cv_prog_CXXCPP
  5352. else
  5353. ac_cv_prog_CXXCPP=$CXXCPP
  5354. fi
  5355. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5356. echo "${ECHO_T}$CXXCPP" >&6; }
  5357. ac_preproc_ok=false
  5358. for ac_cxx_preproc_warn_flag in '' yes
  5359. do
  5360. # Use a header file that comes with gcc, so configuring glibc
  5361. # with a fresh cross-compiler works.
  5362. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5363. # <limits.h> exists even on freestanding compilers.
  5364. # On the NeXT, cc -E runs the code through the compiler's parser,
  5365. # not just through cpp. "Syntax error" is here to catch this case.
  5366. cat >conftest.$ac_ext <<_ACEOF
  5367. /* confdefs.h. */
  5368. _ACEOF
  5369. cat confdefs.h >>conftest.$ac_ext
  5370. cat >>conftest.$ac_ext <<_ACEOF
  5371. /* end confdefs.h. */
  5372. #ifdef __STDC__
  5373. # include <limits.h>
  5374. #else
  5375. # include <assert.h>
  5376. #endif
  5377. Syntax error
  5378. _ACEOF
  5379. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5380. case "(($ac_try" in
  5381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5382. *) ac_try_echo=$ac_try;;
  5383. esac
  5384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5385. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5386. ac_status=$?
  5387. grep -v '^ *+' conftest.er1 >conftest.err
  5388. rm -f conftest.er1
  5389. cat conftest.err >&5
  5390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5391. (exit $ac_status); } >/dev/null && {
  5392. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5393. test ! -s conftest.err
  5394. }; then
  5395. :
  5396. else
  5397. echo "$as_me: failed program was:" >&5
  5398. sed 's/^/| /' conftest.$ac_ext >&5
  5399. # Broken: fails on valid input.
  5400. continue
  5401. fi
  5402. rm -f conftest.err conftest.$ac_ext
  5403. # OK, works on sane cases. Now check whether nonexistent headers
  5404. # can be detected and how.
  5405. cat >conftest.$ac_ext <<_ACEOF
  5406. /* confdefs.h. */
  5407. _ACEOF
  5408. cat confdefs.h >>conftest.$ac_ext
  5409. cat >>conftest.$ac_ext <<_ACEOF
  5410. /* end confdefs.h. */
  5411. #include <ac_nonexistent.h>
  5412. _ACEOF
  5413. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5414. case "(($ac_try" in
  5415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5416. *) ac_try_echo=$ac_try;;
  5417. esac
  5418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5419. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5420. ac_status=$?
  5421. grep -v '^ *+' conftest.er1 >conftest.err
  5422. rm -f conftest.er1
  5423. cat conftest.err >&5
  5424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5425. (exit $ac_status); } >/dev/null && {
  5426. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5427. test ! -s conftest.err
  5428. }; then
  5429. # Broken: success on invalid input.
  5430. continue
  5431. else
  5432. echo "$as_me: failed program was:" >&5
  5433. sed 's/^/| /' conftest.$ac_ext >&5
  5434. # Passes both tests.
  5435. ac_preproc_ok=:
  5436. break
  5437. fi
  5438. rm -f conftest.err conftest.$ac_ext
  5439. done
  5440. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5441. rm -f conftest.err conftest.$ac_ext
  5442. if $ac_preproc_ok; then
  5443. :
  5444. else
  5445. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5446. See \`config.log' for more details." >&5
  5447. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5448. See \`config.log' for more details." >&2;}
  5449. { (exit 1); exit 1; }; }
  5450. fi
  5451. ac_ext=cpp
  5452. ac_cpp='$CXXCPP $CPPFLAGS'
  5453. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5454. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5455. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5456. fi
  5457. ac_ext=f
  5458. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5459. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5460. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5461. if test -n "$ac_tool_prefix"; then
  5462. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5463. do
  5464. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5465. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5466. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5467. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5468. if test "${ac_cv_prog_F77+set}" = set; then
  5469. echo $ECHO_N "(cached) $ECHO_C" >&6
  5470. else
  5471. if test -n "$F77"; then
  5472. ac_cv_prog_F77="$F77" # Let the user override the test.
  5473. else
  5474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5475. for as_dir in $PATH
  5476. do
  5477. IFS=$as_save_IFS
  5478. test -z "$as_dir" && as_dir=.
  5479. for ac_exec_ext in '' $ac_executable_extensions; do
  5480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5481. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5482. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5483. break 2
  5484. fi
  5485. done
  5486. done
  5487. IFS=$as_save_IFS
  5488. fi
  5489. fi
  5490. F77=$ac_cv_prog_F77
  5491. if test -n "$F77"; then
  5492. { echo "$as_me:$LINENO: result: $F77" >&5
  5493. echo "${ECHO_T}$F77" >&6; }
  5494. else
  5495. { echo "$as_me:$LINENO: result: no" >&5
  5496. echo "${ECHO_T}no" >&6; }
  5497. fi
  5498. test -n "$F77" && break
  5499. done
  5500. fi
  5501. if test -z "$F77"; then
  5502. ac_ct_F77=$F77
  5503. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5504. do
  5505. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5506. set dummy $ac_prog; ac_word=$2
  5507. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5508. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5509. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5510. echo $ECHO_N "(cached) $ECHO_C" >&6
  5511. else
  5512. if test -n "$ac_ct_F77"; then
  5513. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5514. else
  5515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5516. for as_dir in $PATH
  5517. do
  5518. IFS=$as_save_IFS
  5519. test -z "$as_dir" && as_dir=.
  5520. for ac_exec_ext in '' $ac_executable_extensions; do
  5521. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5522. ac_cv_prog_ac_ct_F77="$ac_prog"
  5523. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5524. break 2
  5525. fi
  5526. done
  5527. done
  5528. IFS=$as_save_IFS
  5529. fi
  5530. fi
  5531. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5532. if test -n "$ac_ct_F77"; then
  5533. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5534. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5535. else
  5536. { echo "$as_me:$LINENO: result: no" >&5
  5537. echo "${ECHO_T}no" >&6; }
  5538. fi
  5539. test -n "$ac_ct_F77" && break
  5540. done
  5541. if test "x$ac_ct_F77" = x; then
  5542. F77=""
  5543. else
  5544. case $cross_compiling:$ac_tool_warned in
  5545. yes:)
  5546. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5547. whose name does not start with the host triplet. If you think this
  5548. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5549. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5550. whose name does not start with the host triplet. If you think this
  5551. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5552. ac_tool_warned=yes ;;
  5553. esac
  5554. F77=$ac_ct_F77
  5555. fi
  5556. fi
  5557. # Provide some information about the compiler.
  5558. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5559. ac_compiler=`set X $ac_compile; echo $2`
  5560. { (ac_try="$ac_compiler --version >&5"
  5561. case "(($ac_try" in
  5562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5563. *) ac_try_echo=$ac_try;;
  5564. esac
  5565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5566. (eval "$ac_compiler --version >&5") 2>&5
  5567. ac_status=$?
  5568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5569. (exit $ac_status); }
  5570. { (ac_try="$ac_compiler -v >&5"
  5571. case "(($ac_try" in
  5572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5573. *) ac_try_echo=$ac_try;;
  5574. esac
  5575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5576. (eval "$ac_compiler -v >&5") 2>&5
  5577. ac_status=$?
  5578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5579. (exit $ac_status); }
  5580. { (ac_try="$ac_compiler -V >&5"
  5581. case "(($ac_try" in
  5582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5583. *) ac_try_echo=$ac_try;;
  5584. esac
  5585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5586. (eval "$ac_compiler -V >&5") 2>&5
  5587. ac_status=$?
  5588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5589. (exit $ac_status); }
  5590. rm -f a.out
  5591. # If we don't use `.F' as extension, the preprocessor is not run on the
  5592. # input file. (Note that this only needs to work for GNU compilers.)
  5593. ac_save_ext=$ac_ext
  5594. ac_ext=F
  5595. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5596. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5597. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5598. echo $ECHO_N "(cached) $ECHO_C" >&6
  5599. else
  5600. cat >conftest.$ac_ext <<_ACEOF
  5601. program main
  5602. #ifndef __GNUC__
  5603. choke me
  5604. #endif
  5605. end
  5606. _ACEOF
  5607. rm -f conftest.$ac_objext
  5608. if { (ac_try="$ac_compile"
  5609. case "(($ac_try" in
  5610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5611. *) ac_try_echo=$ac_try;;
  5612. esac
  5613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5614. (eval "$ac_compile") 2>conftest.er1
  5615. ac_status=$?
  5616. grep -v '^ *+' conftest.er1 >conftest.err
  5617. rm -f conftest.er1
  5618. cat conftest.err >&5
  5619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5620. (exit $ac_status); } && {
  5621. test -z "$ac_f77_werror_flag" ||
  5622. test ! -s conftest.err
  5623. } && test -s conftest.$ac_objext; then
  5624. ac_compiler_gnu=yes
  5625. else
  5626. echo "$as_me: failed program was:" >&5
  5627. sed 's/^/| /' conftest.$ac_ext >&5
  5628. ac_compiler_gnu=no
  5629. fi
  5630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5631. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5632. fi
  5633. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5634. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5635. ac_ext=$ac_save_ext
  5636. ac_test_FFLAGS=${FFLAGS+set}
  5637. ac_save_FFLAGS=$FFLAGS
  5638. FFLAGS=
  5639. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5640. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5641. if test "${ac_cv_prog_f77_g+set}" = set; then
  5642. echo $ECHO_N "(cached) $ECHO_C" >&6
  5643. else
  5644. FFLAGS=-g
  5645. cat >conftest.$ac_ext <<_ACEOF
  5646. program main
  5647. end
  5648. _ACEOF
  5649. rm -f conftest.$ac_objext
  5650. if { (ac_try="$ac_compile"
  5651. case "(($ac_try" in
  5652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5653. *) ac_try_echo=$ac_try;;
  5654. esac
  5655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5656. (eval "$ac_compile") 2>conftest.er1
  5657. ac_status=$?
  5658. grep -v '^ *+' conftest.er1 >conftest.err
  5659. rm -f conftest.er1
  5660. cat conftest.err >&5
  5661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5662. (exit $ac_status); } && {
  5663. test -z "$ac_f77_werror_flag" ||
  5664. test ! -s conftest.err
  5665. } && test -s conftest.$ac_objext; then
  5666. ac_cv_prog_f77_g=yes
  5667. else
  5668. echo "$as_me: failed program was:" >&5
  5669. sed 's/^/| /' conftest.$ac_ext >&5
  5670. ac_cv_prog_f77_g=no
  5671. fi
  5672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5673. fi
  5674. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5675. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5676. if test "$ac_test_FFLAGS" = set; then
  5677. FFLAGS=$ac_save_FFLAGS
  5678. elif test $ac_cv_prog_f77_g = yes; then
  5679. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5680. FFLAGS="-g -O2"
  5681. else
  5682. FFLAGS="-g"
  5683. fi
  5684. else
  5685. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5686. FFLAGS="-O2"
  5687. else
  5688. FFLAGS=
  5689. fi
  5690. fi
  5691. G77=`test $ac_compiler_gnu = yes && echo yes`
  5692. ac_ext=c
  5693. ac_cpp='$CPP $CPPFLAGS'
  5694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5695. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5696. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5697. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5698. # find the maximum length of command line arguments
  5699. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5700. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5701. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5702. echo $ECHO_N "(cached) $ECHO_C" >&6
  5703. else
  5704. i=0
  5705. teststring="ABCD"
  5706. case $build_os in
  5707. msdosdjgpp*)
  5708. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5709. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5710. # during glob expansion). Even if it were fixed, the result of this
  5711. # check would be larger than it should be.
  5712. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5713. ;;
  5714. gnu*)
  5715. # Under GNU Hurd, this test is not required because there is
  5716. # no limit to the length of command line arguments.
  5717. # Libtool will interpret -1 as no limit whatsoever
  5718. lt_cv_sys_max_cmd_len=-1;
  5719. ;;
  5720. cygwin* | mingw*)
  5721. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5722. # about 5 minutes as the teststring grows exponentially.
  5723. # Worse, since 9x/ME are not pre-emptively multitasking,
  5724. # you end up with a "frozen" computer, even though with patience
  5725. # the test eventually succeeds (with a max line length of 256k).
  5726. # Instead, let's just punt: use the minimum linelength reported by
  5727. # all of the supported platforms: 8192 (on NT/2K/XP).
  5728. lt_cv_sys_max_cmd_len=8192;
  5729. ;;
  5730. amigaos*)
  5731. # On AmigaOS with pdksh, this test takes hours, literally.
  5732. # So we just punt and use a minimum line length of 8192.
  5733. lt_cv_sys_max_cmd_len=8192;
  5734. ;;
  5735. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5736. # This has been around since 386BSD, at least. Likely further.
  5737. if test -x /sbin/sysctl; then
  5738. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5739. elif test -x /usr/sbin/sysctl; then
  5740. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5741. else
  5742. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5743. fi
  5744. # And add a safety zone
  5745. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5746. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5747. ;;
  5748. interix*)
  5749. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5750. lt_cv_sys_max_cmd_len=196608
  5751. ;;
  5752. osf*)
  5753. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5754. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5755. # nice to cause kernel panics so lets avoid the loop below.
  5756. # First set a reasonable default.
  5757. lt_cv_sys_max_cmd_len=16384
  5758. #
  5759. if test -x /sbin/sysconfig; then
  5760. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5761. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5762. esac
  5763. fi
  5764. ;;
  5765. sco3.2v5*)
  5766. lt_cv_sys_max_cmd_len=102400
  5767. ;;
  5768. sysv5* | sco5v6* | sysv4.2uw2*)
  5769. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5770. if test -n "$kargmax"; then
  5771. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5772. else
  5773. lt_cv_sys_max_cmd_len=32768
  5774. fi
  5775. ;;
  5776. *)
  5777. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5778. if test -n "$lt_cv_sys_max_cmd_len"; then
  5779. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5780. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5781. else
  5782. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5783. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5784. = "XX$teststring") >/dev/null 2>&1 &&
  5785. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5786. lt_cv_sys_max_cmd_len=$new_result &&
  5787. test $i != 17 # 1/2 MB should be enough
  5788. do
  5789. i=`expr $i + 1`
  5790. teststring=$teststring$teststring
  5791. done
  5792. teststring=
  5793. # Add a significant safety factor because C++ compilers can tack on massive
  5794. # amounts of additional arguments before passing them to the linker.
  5795. # It appears as though 1/2 is a usable value.
  5796. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5797. fi
  5798. ;;
  5799. esac
  5800. fi
  5801. if test -n $lt_cv_sys_max_cmd_len ; then
  5802. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5803. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5804. else
  5805. { echo "$as_me:$LINENO: result: none" >&5
  5806. echo "${ECHO_T}none" >&6; }
  5807. fi
  5808. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5809. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5810. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5811. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5812. echo $ECHO_N "(cached) $ECHO_C" >&6
  5813. else
  5814. # These are sane defaults that work on at least a few old systems.
  5815. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5816. # Character class describing NM global symbol codes.
  5817. symcode='[BCDEGRST]'
  5818. # Regexp to match symbols that can be accessed directly from C.
  5819. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5820. # Transform an extracted symbol line into a proper C declaration
  5821. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5822. # Transform an extracted symbol line into symbol name and symbol address
  5823. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5824. # Define system-specific variables.
  5825. case $host_os in
  5826. aix*)
  5827. symcode='[BCDT]'
  5828. ;;
  5829. cygwin* | mingw* | pw32*)
  5830. symcode='[ABCDGISTW]'
  5831. ;;
  5832. hpux*) # Its linker distinguishes data from code symbols
  5833. if test "$host_cpu" = ia64; then
  5834. symcode='[ABCDEGRST]'
  5835. fi
  5836. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5837. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5838. ;;
  5839. linux* | k*bsd*-gnu)
  5840. if test "$host_cpu" = ia64; then
  5841. symcode='[ABCDGIRSTW]'
  5842. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5843. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5844. fi
  5845. ;;
  5846. irix* | nonstopux*)
  5847. symcode='[BCDEGRST]'
  5848. ;;
  5849. osf*)
  5850. symcode='[BCDEGQRST]'
  5851. ;;
  5852. solaris*)
  5853. symcode='[BDRT]'
  5854. ;;
  5855. sco3.2v5*)
  5856. symcode='[DT]'
  5857. ;;
  5858. sysv4.2uw2*)
  5859. symcode='[DT]'
  5860. ;;
  5861. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5862. symcode='[ABDT]'
  5863. ;;
  5864. sysv4)
  5865. symcode='[DFNSTU]'
  5866. ;;
  5867. esac
  5868. # Handle CRLF in mingw tool chain
  5869. opt_cr=
  5870. case $build_os in
  5871. mingw*)
  5872. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5873. ;;
  5874. esac
  5875. # If we're using GNU nm, then use its standard symbol codes.
  5876. case `$NM -V 2>&1` in
  5877. *GNU* | *'with BFD'*)
  5878. symcode='[ABCDGIRSTW]' ;;
  5879. esac
  5880. # Try without a prefix undercore, then with it.
  5881. for ac_symprfx in "" "_"; do
  5882. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5883. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5884. # Write the raw and C identifiers.
  5885. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5886. # Check to see that the pipe works correctly.
  5887. pipe_works=no
  5888. rm -f conftest*
  5889. cat > conftest.$ac_ext <<EOF
  5890. #ifdef __cplusplus
  5891. extern "C" {
  5892. #endif
  5893. char nm_test_var;
  5894. void nm_test_func(){}
  5895. #ifdef __cplusplus
  5896. }
  5897. #endif
  5898. int main(){nm_test_var='a';nm_test_func();return(0);}
  5899. EOF
  5900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5901. (eval $ac_compile) 2>&5
  5902. ac_status=$?
  5903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904. (exit $ac_status); }; then
  5905. # Now try to grab the symbols.
  5906. nlist=conftest.nm
  5907. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5908. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5909. ac_status=$?
  5910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5911. (exit $ac_status); } && test -s "$nlist"; then
  5912. # Try sorting and uniquifying the output.
  5913. if sort "$nlist" | uniq > "$nlist"T; then
  5914. mv -f "$nlist"T "$nlist"
  5915. else
  5916. rm -f "$nlist"T
  5917. fi
  5918. # Make sure that we snagged all the symbols we need.
  5919. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5920. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5921. cat <<EOF > conftest.$ac_ext
  5922. #ifdef __cplusplus
  5923. extern "C" {
  5924. #endif
  5925. EOF
  5926. # Now generate the symbol file.
  5927. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5928. cat <<EOF >> conftest.$ac_ext
  5929. #if defined (__STDC__) && __STDC__
  5930. # define lt_ptr_t void *
  5931. #else
  5932. # define lt_ptr_t char *
  5933. # define const
  5934. #endif
  5935. /* The mapping between symbol names and symbols. */
  5936. const struct {
  5937. const char *name;
  5938. lt_ptr_t address;
  5939. }
  5940. lt_preloaded_symbols[] =
  5941. {
  5942. EOF
  5943. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5944. cat <<\EOF >> conftest.$ac_ext
  5945. {0, (lt_ptr_t) 0}
  5946. };
  5947. #ifdef __cplusplus
  5948. }
  5949. #endif
  5950. EOF
  5951. # Now try linking the two files.
  5952. mv conftest.$ac_objext conftstm.$ac_objext
  5953. lt_save_LIBS="$LIBS"
  5954. lt_save_CFLAGS="$CFLAGS"
  5955. LIBS="conftstm.$ac_objext"
  5956. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5957. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5958. (eval $ac_link) 2>&5
  5959. ac_status=$?
  5960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5961. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5962. pipe_works=yes
  5963. fi
  5964. LIBS="$lt_save_LIBS"
  5965. CFLAGS="$lt_save_CFLAGS"
  5966. else
  5967. echo "cannot find nm_test_func in $nlist" >&5
  5968. fi
  5969. else
  5970. echo "cannot find nm_test_var in $nlist" >&5
  5971. fi
  5972. else
  5973. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5974. fi
  5975. else
  5976. echo "$progname: failed program was:" >&5
  5977. cat conftest.$ac_ext >&5
  5978. fi
  5979. rm -f conftest* conftst*
  5980. # Do not use the global_symbol_pipe unless it works.
  5981. if test "$pipe_works" = yes; then
  5982. break
  5983. else
  5984. lt_cv_sys_global_symbol_pipe=
  5985. fi
  5986. done
  5987. fi
  5988. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5989. lt_cv_sys_global_symbol_to_cdecl=
  5990. fi
  5991. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5992. { echo "$as_me:$LINENO: result: failed" >&5
  5993. echo "${ECHO_T}failed" >&6; }
  5994. else
  5995. { echo "$as_me:$LINENO: result: ok" >&5
  5996. echo "${ECHO_T}ok" >&6; }
  5997. fi
  5998. { echo "$as_me:$LINENO: checking for objdir" >&5
  5999. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  6000. if test "${lt_cv_objdir+set}" = set; then
  6001. echo $ECHO_N "(cached) $ECHO_C" >&6
  6002. else
  6003. rm -f .libs 2>/dev/null
  6004. mkdir .libs 2>/dev/null
  6005. if test -d .libs; then
  6006. lt_cv_objdir=.libs
  6007. else
  6008. # MS-DOS does not allow filenames that begin with a dot.
  6009. lt_cv_objdir=_libs
  6010. fi
  6011. rmdir .libs 2>/dev/null
  6012. fi
  6013. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6014. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6015. objdir=$lt_cv_objdir
  6016. case $host_os in
  6017. aix3*)
  6018. # AIX sometimes has problems with the GCC collect2 program. For some
  6019. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6020. # vanish in a puff of smoke.
  6021. if test "X${COLLECT_NAMES+set}" != Xset; then
  6022. COLLECT_NAMES=
  6023. export COLLECT_NAMES
  6024. fi
  6025. ;;
  6026. esac
  6027. # Sed substitution that helps us do robust quoting. It backslashifies
  6028. # metacharacters that are still active within double-quoted strings.
  6029. Xsed='sed -e 1s/^X//'
  6030. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6031. # Same as above, but do not quote variable references.
  6032. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6033. # Sed substitution to delay expansion of an escaped shell variable in a
  6034. # double_quote_subst'ed string.
  6035. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6036. # Sed substitution to avoid accidental globbing in evaled expressions
  6037. no_glob_subst='s/\*/\\\*/g'
  6038. # Constants:
  6039. rm="rm -f"
  6040. # Global variables:
  6041. default_ofile=libtool
  6042. can_build_shared=yes
  6043. # All known linkers require a `.a' archive for static linking (except MSVC,
  6044. # which needs '.lib').
  6045. libext=a
  6046. ltmain="$ac_aux_dir/ltmain.sh"
  6047. ofile="$default_ofile"
  6048. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6049. if test -n "$ac_tool_prefix"; then
  6050. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6051. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6052. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6053. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6054. if test "${ac_cv_prog_AR+set}" = set; then
  6055. echo $ECHO_N "(cached) $ECHO_C" >&6
  6056. else
  6057. if test -n "$AR"; then
  6058. ac_cv_prog_AR="$AR" # Let the user override the test.
  6059. else
  6060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6061. for as_dir in $PATH
  6062. do
  6063. IFS=$as_save_IFS
  6064. test -z "$as_dir" && as_dir=.
  6065. for ac_exec_ext in '' $ac_executable_extensions; do
  6066. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6067. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6068. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6069. break 2
  6070. fi
  6071. done
  6072. done
  6073. IFS=$as_save_IFS
  6074. fi
  6075. fi
  6076. AR=$ac_cv_prog_AR
  6077. if test -n "$AR"; then
  6078. { echo "$as_me:$LINENO: result: $AR" >&5
  6079. echo "${ECHO_T}$AR" >&6; }
  6080. else
  6081. { echo "$as_me:$LINENO: result: no" >&5
  6082. echo "${ECHO_T}no" >&6; }
  6083. fi
  6084. fi
  6085. if test -z "$ac_cv_prog_AR"; then
  6086. ac_ct_AR=$AR
  6087. # Extract the first word of "ar", so it can be a program name with args.
  6088. set dummy ar; ac_word=$2
  6089. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6090. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6091. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6092. echo $ECHO_N "(cached) $ECHO_C" >&6
  6093. else
  6094. if test -n "$ac_ct_AR"; then
  6095. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6096. else
  6097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6098. for as_dir in $PATH
  6099. do
  6100. IFS=$as_save_IFS
  6101. test -z "$as_dir" && as_dir=.
  6102. for ac_exec_ext in '' $ac_executable_extensions; do
  6103. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6104. ac_cv_prog_ac_ct_AR="ar"
  6105. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6106. break 2
  6107. fi
  6108. done
  6109. done
  6110. IFS=$as_save_IFS
  6111. fi
  6112. fi
  6113. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6114. if test -n "$ac_ct_AR"; then
  6115. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6116. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6117. else
  6118. { echo "$as_me:$LINENO: result: no" >&5
  6119. echo "${ECHO_T}no" >&6; }
  6120. fi
  6121. if test "x$ac_ct_AR" = x; then
  6122. AR="false"
  6123. else
  6124. case $cross_compiling:$ac_tool_warned in
  6125. yes:)
  6126. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6127. whose name does not start with the host triplet. If you think this
  6128. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6129. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6130. whose name does not start with the host triplet. If you think this
  6131. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6132. ac_tool_warned=yes ;;
  6133. esac
  6134. AR=$ac_ct_AR
  6135. fi
  6136. else
  6137. AR="$ac_cv_prog_AR"
  6138. fi
  6139. if test -n "$ac_tool_prefix"; then
  6140. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6141. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6142. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6143. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6144. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6145. echo $ECHO_N "(cached) $ECHO_C" >&6
  6146. else
  6147. if test -n "$RANLIB"; then
  6148. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6149. else
  6150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6151. for as_dir in $PATH
  6152. do
  6153. IFS=$as_save_IFS
  6154. test -z "$as_dir" && as_dir=.
  6155. for ac_exec_ext in '' $ac_executable_extensions; do
  6156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6157. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6158. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6159. break 2
  6160. fi
  6161. done
  6162. done
  6163. IFS=$as_save_IFS
  6164. fi
  6165. fi
  6166. RANLIB=$ac_cv_prog_RANLIB
  6167. if test -n "$RANLIB"; then
  6168. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6169. echo "${ECHO_T}$RANLIB" >&6; }
  6170. else
  6171. { echo "$as_me:$LINENO: result: no" >&5
  6172. echo "${ECHO_T}no" >&6; }
  6173. fi
  6174. fi
  6175. if test -z "$ac_cv_prog_RANLIB"; then
  6176. ac_ct_RANLIB=$RANLIB
  6177. # Extract the first word of "ranlib", so it can be a program name with args.
  6178. set dummy ranlib; ac_word=$2
  6179. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6180. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6181. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6182. echo $ECHO_N "(cached) $ECHO_C" >&6
  6183. else
  6184. if test -n "$ac_ct_RANLIB"; then
  6185. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6186. else
  6187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6188. for as_dir in $PATH
  6189. do
  6190. IFS=$as_save_IFS
  6191. test -z "$as_dir" && as_dir=.
  6192. for ac_exec_ext in '' $ac_executable_extensions; do
  6193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6194. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6195. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6196. break 2
  6197. fi
  6198. done
  6199. done
  6200. IFS=$as_save_IFS
  6201. fi
  6202. fi
  6203. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6204. if test -n "$ac_ct_RANLIB"; then
  6205. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6206. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6207. else
  6208. { echo "$as_me:$LINENO: result: no" >&5
  6209. echo "${ECHO_T}no" >&6; }
  6210. fi
  6211. if test "x$ac_ct_RANLIB" = x; then
  6212. RANLIB=":"
  6213. else
  6214. case $cross_compiling:$ac_tool_warned in
  6215. yes:)
  6216. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6217. whose name does not start with the host triplet. If you think this
  6218. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6219. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6220. whose name does not start with the host triplet. If you think this
  6221. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6222. ac_tool_warned=yes ;;
  6223. esac
  6224. RANLIB=$ac_ct_RANLIB
  6225. fi
  6226. else
  6227. RANLIB="$ac_cv_prog_RANLIB"
  6228. fi
  6229. if test -n "$ac_tool_prefix"; then
  6230. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6231. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6232. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6233. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6234. if test "${ac_cv_prog_STRIP+set}" = set; then
  6235. echo $ECHO_N "(cached) $ECHO_C" >&6
  6236. else
  6237. if test -n "$STRIP"; then
  6238. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6239. else
  6240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6241. for as_dir in $PATH
  6242. do
  6243. IFS=$as_save_IFS
  6244. test -z "$as_dir" && as_dir=.
  6245. for ac_exec_ext in '' $ac_executable_extensions; do
  6246. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6247. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6248. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6249. break 2
  6250. fi
  6251. done
  6252. done
  6253. IFS=$as_save_IFS
  6254. fi
  6255. fi
  6256. STRIP=$ac_cv_prog_STRIP
  6257. if test -n "$STRIP"; then
  6258. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6259. echo "${ECHO_T}$STRIP" >&6; }
  6260. else
  6261. { echo "$as_me:$LINENO: result: no" >&5
  6262. echo "${ECHO_T}no" >&6; }
  6263. fi
  6264. fi
  6265. if test -z "$ac_cv_prog_STRIP"; then
  6266. ac_ct_STRIP=$STRIP
  6267. # Extract the first word of "strip", so it can be a program name with args.
  6268. set dummy strip; ac_word=$2
  6269. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6270. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6271. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6272. echo $ECHO_N "(cached) $ECHO_C" >&6
  6273. else
  6274. if test -n "$ac_ct_STRIP"; then
  6275. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6276. else
  6277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6278. for as_dir in $PATH
  6279. do
  6280. IFS=$as_save_IFS
  6281. test -z "$as_dir" && as_dir=.
  6282. for ac_exec_ext in '' $ac_executable_extensions; do
  6283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6284. ac_cv_prog_ac_ct_STRIP="strip"
  6285. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6286. break 2
  6287. fi
  6288. done
  6289. done
  6290. IFS=$as_save_IFS
  6291. fi
  6292. fi
  6293. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6294. if test -n "$ac_ct_STRIP"; then
  6295. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6296. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6297. else
  6298. { echo "$as_me:$LINENO: result: no" >&5
  6299. echo "${ECHO_T}no" >&6; }
  6300. fi
  6301. if test "x$ac_ct_STRIP" = x; then
  6302. STRIP=":"
  6303. else
  6304. case $cross_compiling:$ac_tool_warned in
  6305. yes:)
  6306. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6307. whose name does not start with the host triplet. If you think this
  6308. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6309. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6310. whose name does not start with the host triplet. If you think this
  6311. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6312. ac_tool_warned=yes ;;
  6313. esac
  6314. STRIP=$ac_ct_STRIP
  6315. fi
  6316. else
  6317. STRIP="$ac_cv_prog_STRIP"
  6318. fi
  6319. old_CC="$CC"
  6320. old_CFLAGS="$CFLAGS"
  6321. # Set sane defaults for various variables
  6322. test -z "$AR" && AR=ar
  6323. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6324. test -z "$AS" && AS=as
  6325. test -z "$CC" && CC=cc
  6326. test -z "$LTCC" && LTCC=$CC
  6327. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6328. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6329. test -z "$LD" && LD=ld
  6330. test -z "$LN_S" && LN_S="ln -s"
  6331. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6332. test -z "$NM" && NM=nm
  6333. test -z "$SED" && SED=sed
  6334. test -z "$OBJDUMP" && OBJDUMP=objdump
  6335. test -z "$RANLIB" && RANLIB=:
  6336. test -z "$STRIP" && STRIP=:
  6337. test -z "$ac_objext" && ac_objext=o
  6338. # Determine commands to create old-style static archives.
  6339. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6340. old_postinstall_cmds='chmod 644 $oldlib'
  6341. old_postuninstall_cmds=
  6342. if test -n "$RANLIB"; then
  6343. case $host_os in
  6344. openbsd*)
  6345. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6346. ;;
  6347. *)
  6348. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6349. ;;
  6350. esac
  6351. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6352. fi
  6353. for cc_temp in $compiler""; do
  6354. case $cc_temp in
  6355. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6356. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6357. \-*) ;;
  6358. *) break;;
  6359. esac
  6360. done
  6361. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6362. # Only perform the check for file, if the check method requires it
  6363. case $deplibs_check_method in
  6364. file_magic*)
  6365. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6366. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6367. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6368. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6369. echo $ECHO_N "(cached) $ECHO_C" >&6
  6370. else
  6371. case $MAGIC_CMD in
  6372. [\\/*] | ?:[\\/]*)
  6373. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6374. ;;
  6375. *)
  6376. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6377. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6378. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6379. for ac_dir in $ac_dummy; do
  6380. IFS="$lt_save_ifs"
  6381. test -z "$ac_dir" && ac_dir=.
  6382. if test -f $ac_dir/${ac_tool_prefix}file; then
  6383. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6384. if test -n "$file_magic_test_file"; then
  6385. case $deplibs_check_method in
  6386. "file_magic "*)
  6387. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6388. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6389. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6390. $EGREP "$file_magic_regex" > /dev/null; then
  6391. :
  6392. else
  6393. cat <<EOF 1>&2
  6394. *** Warning: the command libtool uses to detect shared libraries,
  6395. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6396. *** The result is that libtool may fail to recognize shared libraries
  6397. *** as such. This will affect the creation of libtool libraries that
  6398. *** depend on shared libraries, but programs linked with such libtool
  6399. *** libraries will work regardless of this problem. Nevertheless, you
  6400. *** may want to report the problem to your system manager and/or to
  6401. *** bug-libtool@gnu.org
  6402. EOF
  6403. fi ;;
  6404. esac
  6405. fi
  6406. break
  6407. fi
  6408. done
  6409. IFS="$lt_save_ifs"
  6410. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6411. ;;
  6412. esac
  6413. fi
  6414. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6415. if test -n "$MAGIC_CMD"; then
  6416. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6417. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6418. else
  6419. { echo "$as_me:$LINENO: result: no" >&5
  6420. echo "${ECHO_T}no" >&6; }
  6421. fi
  6422. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6423. if test -n "$ac_tool_prefix"; then
  6424. { echo "$as_me:$LINENO: checking for file" >&5
  6425. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6426. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6427. echo $ECHO_N "(cached) $ECHO_C" >&6
  6428. else
  6429. case $MAGIC_CMD in
  6430. [\\/*] | ?:[\\/]*)
  6431. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6432. ;;
  6433. *)
  6434. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6435. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6436. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6437. for ac_dir in $ac_dummy; do
  6438. IFS="$lt_save_ifs"
  6439. test -z "$ac_dir" && ac_dir=.
  6440. if test -f $ac_dir/file; then
  6441. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6442. if test -n "$file_magic_test_file"; then
  6443. case $deplibs_check_method in
  6444. "file_magic "*)
  6445. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6446. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6447. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6448. $EGREP "$file_magic_regex" > /dev/null; then
  6449. :
  6450. else
  6451. cat <<EOF 1>&2
  6452. *** Warning: the command libtool uses to detect shared libraries,
  6453. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6454. *** The result is that libtool may fail to recognize shared libraries
  6455. *** as such. This will affect the creation of libtool libraries that
  6456. *** depend on shared libraries, but programs linked with such libtool
  6457. *** libraries will work regardless of this problem. Nevertheless, you
  6458. *** may want to report the problem to your system manager and/or to
  6459. *** bug-libtool@gnu.org
  6460. EOF
  6461. fi ;;
  6462. esac
  6463. fi
  6464. break
  6465. fi
  6466. done
  6467. IFS="$lt_save_ifs"
  6468. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6469. ;;
  6470. esac
  6471. fi
  6472. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6473. if test -n "$MAGIC_CMD"; then
  6474. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6475. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6476. else
  6477. { echo "$as_me:$LINENO: result: no" >&5
  6478. echo "${ECHO_T}no" >&6; }
  6479. fi
  6480. else
  6481. MAGIC_CMD=:
  6482. fi
  6483. fi
  6484. fi
  6485. ;;
  6486. esac
  6487. enable_dlopen=no
  6488. enable_win32_dll=no
  6489. # Check whether --enable-libtool-lock was given.
  6490. if test "${enable_libtool_lock+set}" = set; then
  6491. enableval=$enable_libtool_lock;
  6492. fi
  6493. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6494. # Check whether --with-pic was given.
  6495. if test "${with_pic+set}" = set; then
  6496. withval=$with_pic; pic_mode="$withval"
  6497. else
  6498. pic_mode=default
  6499. fi
  6500. test -z "$pic_mode" && pic_mode=default
  6501. # Use C for the default configuration in the libtool script
  6502. tagname=
  6503. lt_save_CC="$CC"
  6504. ac_ext=c
  6505. ac_cpp='$CPP $CPPFLAGS'
  6506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6509. # Source file extension for C test sources.
  6510. ac_ext=c
  6511. # Object file extension for compiled C test sources.
  6512. objext=o
  6513. objext=$objext
  6514. # Code to be used in simple compile tests
  6515. lt_simple_compile_test_code="int some_variable = 0;"
  6516. # Code to be used in simple link tests
  6517. lt_simple_link_test_code='int main(){return(0);}'
  6518. # If no C compiler was specified, use CC.
  6519. LTCC=${LTCC-"$CC"}
  6520. # If no C compiler flags were specified, use CFLAGS.
  6521. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6522. # Allow CC to be a program name with arguments.
  6523. compiler=$CC
  6524. # save warnings/boilerplate of simple test code
  6525. ac_outfile=conftest.$ac_objext
  6526. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6527. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6528. _lt_compiler_boilerplate=`cat conftest.err`
  6529. $rm conftest*
  6530. ac_outfile=conftest.$ac_objext
  6531. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6532. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6533. _lt_linker_boilerplate=`cat conftest.err`
  6534. $rm conftest*
  6535. lt_prog_compiler_no_builtin_flag=
  6536. if test "$GCC" = yes; then
  6537. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6538. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6539. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6540. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6541. echo $ECHO_N "(cached) $ECHO_C" >&6
  6542. else
  6543. lt_cv_prog_compiler_rtti_exceptions=no
  6544. ac_outfile=conftest.$ac_objext
  6545. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6546. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6547. # Insert the option either (1) after the last *FLAGS variable, or
  6548. # (2) before a word containing "conftest.", or (3) at the end.
  6549. # Note that $ac_compile itself does not contain backslashes and begins
  6550. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6551. # The option is referenced via a variable to avoid confusing sed.
  6552. lt_compile=`echo "$ac_compile" | $SED \
  6553. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6554. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6555. -e 's:$: $lt_compiler_flag:'`
  6556. (eval echo "\"\$as_me:7327: $lt_compile\"" >&5)
  6557. (eval "$lt_compile" 2>conftest.err)
  6558. ac_status=$?
  6559. cat conftest.err >&5
  6560. echo "$as_me:7331: \$? = $ac_status" >&5
  6561. if (exit $ac_status) && test -s "$ac_outfile"; then
  6562. # The compiler can only warn and ignore the option if not recognized
  6563. # So say no if there are warnings other than the usual output.
  6564. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6565. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6566. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6567. lt_cv_prog_compiler_rtti_exceptions=yes
  6568. fi
  6569. fi
  6570. $rm conftest*
  6571. fi
  6572. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6573. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6574. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6575. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6576. else
  6577. :
  6578. fi
  6579. fi
  6580. lt_prog_compiler_wl=
  6581. lt_prog_compiler_pic=
  6582. lt_prog_compiler_static=
  6583. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6584. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6585. if test "$GCC" = yes; then
  6586. lt_prog_compiler_wl='-Wl,'
  6587. lt_prog_compiler_static='-static'
  6588. case $host_os in
  6589. aix*)
  6590. # All AIX code is PIC.
  6591. if test "$host_cpu" = ia64; then
  6592. # AIX 5 now supports IA64 processor
  6593. lt_prog_compiler_static='-Bstatic'
  6594. fi
  6595. ;;
  6596. amigaos*)
  6597. # FIXME: we need at least 68020 code to build shared libraries, but
  6598. # adding the `-m68020' flag to GCC prevents building anything better,
  6599. # like `-m68040'.
  6600. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6601. ;;
  6602. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6603. # PIC is the default for these OSes.
  6604. ;;
  6605. mingw* | cygwin* | pw32* | os2*)
  6606. # This hack is so that the source file can tell whether it is being
  6607. # built for inclusion in a dll (and should export symbols for example).
  6608. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6609. # (--disable-auto-import) libraries
  6610. lt_prog_compiler_pic='-DDLL_EXPORT'
  6611. ;;
  6612. darwin* | rhapsody*)
  6613. # PIC is the default on this platform
  6614. # Common symbols not allowed in MH_DYLIB files
  6615. lt_prog_compiler_pic='-fno-common'
  6616. ;;
  6617. interix[3-9]*)
  6618. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6619. # Instead, we relocate shared libraries at runtime.
  6620. ;;
  6621. msdosdjgpp*)
  6622. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6623. # on systems that don't support them.
  6624. lt_prog_compiler_can_build_shared=no
  6625. enable_shared=no
  6626. ;;
  6627. sysv4*MP*)
  6628. if test -d /usr/nec; then
  6629. lt_prog_compiler_pic=-Kconform_pic
  6630. fi
  6631. ;;
  6632. hpux*)
  6633. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6634. # not for PA HP-UX.
  6635. case $host_cpu in
  6636. hppa*64*|ia64*)
  6637. # +Z the default
  6638. ;;
  6639. *)
  6640. lt_prog_compiler_pic='-fPIC'
  6641. ;;
  6642. esac
  6643. ;;
  6644. *)
  6645. lt_prog_compiler_pic='-fPIC'
  6646. ;;
  6647. esac
  6648. else
  6649. # PORTME Check for flag to pass linker flags through the system compiler.
  6650. case $host_os in
  6651. aix*)
  6652. lt_prog_compiler_wl='-Wl,'
  6653. if test "$host_cpu" = ia64; then
  6654. # AIX 5 now supports IA64 processor
  6655. lt_prog_compiler_static='-Bstatic'
  6656. else
  6657. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6658. fi
  6659. ;;
  6660. darwin*)
  6661. # PIC is the default on this platform
  6662. # Common symbols not allowed in MH_DYLIB files
  6663. case $cc_basename in
  6664. xlc*)
  6665. lt_prog_compiler_pic='-qnocommon'
  6666. lt_prog_compiler_wl='-Wl,'
  6667. ;;
  6668. esac
  6669. ;;
  6670. mingw* | cygwin* | pw32* | os2*)
  6671. # This hack is so that the source file can tell whether it is being
  6672. # built for inclusion in a dll (and should export symbols for example).
  6673. lt_prog_compiler_pic='-DDLL_EXPORT'
  6674. ;;
  6675. hpux9* | hpux10* | hpux11*)
  6676. lt_prog_compiler_wl='-Wl,'
  6677. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6678. # not for PA HP-UX.
  6679. case $host_cpu in
  6680. hppa*64*|ia64*)
  6681. # +Z the default
  6682. ;;
  6683. *)
  6684. lt_prog_compiler_pic='+Z'
  6685. ;;
  6686. esac
  6687. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6688. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6689. ;;
  6690. irix5* | irix6* | nonstopux*)
  6691. lt_prog_compiler_wl='-Wl,'
  6692. # PIC (with -KPIC) is the default.
  6693. lt_prog_compiler_static='-non_shared'
  6694. ;;
  6695. newsos6)
  6696. lt_prog_compiler_pic='-KPIC'
  6697. lt_prog_compiler_static='-Bstatic'
  6698. ;;
  6699. linux* | k*bsd*-gnu)
  6700. case $cc_basename in
  6701. icc* | ecc*)
  6702. lt_prog_compiler_wl='-Wl,'
  6703. lt_prog_compiler_pic='-KPIC'
  6704. lt_prog_compiler_static='-static'
  6705. ;;
  6706. pgcc* | pgf77* | pgf90* | pgf95*)
  6707. # Portland Group compilers (*not* the Pentium gcc compiler,
  6708. # which looks to be a dead project)
  6709. lt_prog_compiler_wl='-Wl,'
  6710. lt_prog_compiler_pic='-fpic'
  6711. lt_prog_compiler_static='-Bstatic'
  6712. ;;
  6713. ccc*)
  6714. lt_prog_compiler_wl='-Wl,'
  6715. # All Alpha code is PIC.
  6716. lt_prog_compiler_static='-non_shared'
  6717. ;;
  6718. *)
  6719. case `$CC -V 2>&1 | sed 5q` in
  6720. *Sun\ C*)
  6721. # Sun C 5.9
  6722. lt_prog_compiler_pic='-KPIC'
  6723. lt_prog_compiler_static='-Bstatic'
  6724. lt_prog_compiler_wl='-Wl,'
  6725. ;;
  6726. *Sun\ F*)
  6727. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6728. lt_prog_compiler_pic='-KPIC'
  6729. lt_prog_compiler_static='-Bstatic'
  6730. lt_prog_compiler_wl=''
  6731. ;;
  6732. esac
  6733. ;;
  6734. esac
  6735. ;;
  6736. osf3* | osf4* | osf5*)
  6737. lt_prog_compiler_wl='-Wl,'
  6738. # All OSF/1 code is PIC.
  6739. lt_prog_compiler_static='-non_shared'
  6740. ;;
  6741. rdos*)
  6742. lt_prog_compiler_static='-non_shared'
  6743. ;;
  6744. solaris*)
  6745. lt_prog_compiler_pic='-KPIC'
  6746. lt_prog_compiler_static='-Bstatic'
  6747. case $cc_basename in
  6748. f77* | f90* | f95*)
  6749. lt_prog_compiler_wl='-Qoption ld ';;
  6750. *)
  6751. lt_prog_compiler_wl='-Wl,';;
  6752. esac
  6753. ;;
  6754. sunos4*)
  6755. lt_prog_compiler_wl='-Qoption ld '
  6756. lt_prog_compiler_pic='-PIC'
  6757. lt_prog_compiler_static='-Bstatic'
  6758. ;;
  6759. sysv4 | sysv4.2uw2* | sysv4.3*)
  6760. lt_prog_compiler_wl='-Wl,'
  6761. lt_prog_compiler_pic='-KPIC'
  6762. lt_prog_compiler_static='-Bstatic'
  6763. ;;
  6764. sysv4*MP*)
  6765. if test -d /usr/nec ;then
  6766. lt_prog_compiler_pic='-Kconform_pic'
  6767. lt_prog_compiler_static='-Bstatic'
  6768. fi
  6769. ;;
  6770. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6771. lt_prog_compiler_wl='-Wl,'
  6772. lt_prog_compiler_pic='-KPIC'
  6773. lt_prog_compiler_static='-Bstatic'
  6774. ;;
  6775. unicos*)
  6776. lt_prog_compiler_wl='-Wl,'
  6777. lt_prog_compiler_can_build_shared=no
  6778. ;;
  6779. uts4*)
  6780. lt_prog_compiler_pic='-pic'
  6781. lt_prog_compiler_static='-Bstatic'
  6782. ;;
  6783. *)
  6784. lt_prog_compiler_can_build_shared=no
  6785. ;;
  6786. esac
  6787. fi
  6788. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6789. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6790. #
  6791. # Check to make sure the PIC flag actually works.
  6792. #
  6793. if test -n "$lt_prog_compiler_pic"; then
  6794. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6795. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6796. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6797. echo $ECHO_N "(cached) $ECHO_C" >&6
  6798. else
  6799. lt_prog_compiler_pic_works=no
  6800. ac_outfile=conftest.$ac_objext
  6801. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6802. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6803. # Insert the option either (1) after the last *FLAGS variable, or
  6804. # (2) before a word containing "conftest.", or (3) at the end.
  6805. # Note that $ac_compile itself does not contain backslashes and begins
  6806. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6807. # The option is referenced via a variable to avoid confusing sed.
  6808. lt_compile=`echo "$ac_compile" | $SED \
  6809. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6810. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6811. -e 's:$: $lt_compiler_flag:'`
  6812. (eval echo "\"\$as_me:7617: $lt_compile\"" >&5)
  6813. (eval "$lt_compile" 2>conftest.err)
  6814. ac_status=$?
  6815. cat conftest.err >&5
  6816. echo "$as_me:7621: \$? = $ac_status" >&5
  6817. if (exit $ac_status) && test -s "$ac_outfile"; then
  6818. # The compiler can only warn and ignore the option if not recognized
  6819. # So say no if there are warnings other than the usual output.
  6820. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6821. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6822. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6823. lt_prog_compiler_pic_works=yes
  6824. fi
  6825. fi
  6826. $rm conftest*
  6827. fi
  6828. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6829. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6830. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6831. case $lt_prog_compiler_pic in
  6832. "" | " "*) ;;
  6833. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6834. esac
  6835. else
  6836. lt_prog_compiler_pic=
  6837. lt_prog_compiler_can_build_shared=no
  6838. fi
  6839. fi
  6840. case $host_os in
  6841. # For platforms which do not support PIC, -DPIC is meaningless:
  6842. *djgpp*)
  6843. lt_prog_compiler_pic=
  6844. ;;
  6845. *)
  6846. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6847. ;;
  6848. esac
  6849. #
  6850. # Check to make sure the static flag actually works.
  6851. #
  6852. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6853. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6854. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6855. if test "${lt_prog_compiler_static_works+set}" = set; then
  6856. echo $ECHO_N "(cached) $ECHO_C" >&6
  6857. else
  6858. lt_prog_compiler_static_works=no
  6859. save_LDFLAGS="$LDFLAGS"
  6860. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6861. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6862. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6863. # The linker can only warn and ignore the option if not recognized
  6864. # So say no if there are warnings
  6865. if test -s conftest.err; then
  6866. # Append any errors to the config.log.
  6867. cat conftest.err 1>&5
  6868. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6869. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6870. if diff conftest.exp conftest.er2 >/dev/null; then
  6871. lt_prog_compiler_static_works=yes
  6872. fi
  6873. else
  6874. lt_prog_compiler_static_works=yes
  6875. fi
  6876. fi
  6877. $rm conftest*
  6878. LDFLAGS="$save_LDFLAGS"
  6879. fi
  6880. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6881. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6882. if test x"$lt_prog_compiler_static_works" = xyes; then
  6883. :
  6884. else
  6885. lt_prog_compiler_static=
  6886. fi
  6887. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6888. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6889. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6890. echo $ECHO_N "(cached) $ECHO_C" >&6
  6891. else
  6892. lt_cv_prog_compiler_c_o=no
  6893. $rm -r conftest 2>/dev/null
  6894. mkdir conftest
  6895. cd conftest
  6896. mkdir out
  6897. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6898. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6899. # Insert the option either (1) after the last *FLAGS variable, or
  6900. # (2) before a word containing "conftest.", or (3) at the end.
  6901. # Note that $ac_compile itself does not contain backslashes and begins
  6902. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6903. lt_compile=`echo "$ac_compile" | $SED \
  6904. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6905. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6906. -e 's:$: $lt_compiler_flag:'`
  6907. (eval echo "\"\$as_me:7721: $lt_compile\"" >&5)
  6908. (eval "$lt_compile" 2>out/conftest.err)
  6909. ac_status=$?
  6910. cat out/conftest.err >&5
  6911. echo "$as_me:7725: \$? = $ac_status" >&5
  6912. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6913. then
  6914. # The compiler can only warn and ignore the option if not recognized
  6915. # So say no if there are warnings
  6916. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6917. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6918. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6919. lt_cv_prog_compiler_c_o=yes
  6920. fi
  6921. fi
  6922. chmod u+w . 2>&5
  6923. $rm conftest*
  6924. # SGI C++ compiler will create directory out/ii_files/ for
  6925. # template instantiation
  6926. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6927. $rm out/* && rmdir out
  6928. cd ..
  6929. rmdir conftest
  6930. $rm conftest*
  6931. fi
  6932. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6933. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6934. hard_links="nottested"
  6935. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6936. # do not overwrite the value of need_locks provided by the user
  6937. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6938. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6939. hard_links=yes
  6940. $rm conftest*
  6941. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6942. touch conftest.a
  6943. ln conftest.a conftest.b 2>&5 || hard_links=no
  6944. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6945. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6946. echo "${ECHO_T}$hard_links" >&6; }
  6947. if test "$hard_links" = no; then
  6948. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6949. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6950. need_locks=warn
  6951. fi
  6952. else
  6953. need_locks=no
  6954. fi
  6955. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6956. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6957. runpath_var=
  6958. allow_undefined_flag=
  6959. enable_shared_with_static_runtimes=no
  6960. archive_cmds=
  6961. archive_expsym_cmds=
  6962. old_archive_From_new_cmds=
  6963. old_archive_from_expsyms_cmds=
  6964. export_dynamic_flag_spec=
  6965. whole_archive_flag_spec=
  6966. thread_safe_flag_spec=
  6967. hardcode_libdir_flag_spec=
  6968. hardcode_libdir_flag_spec_ld=
  6969. hardcode_libdir_separator=
  6970. hardcode_direct=no
  6971. hardcode_minus_L=no
  6972. hardcode_shlibpath_var=unsupported
  6973. link_all_deplibs=unknown
  6974. hardcode_automatic=no
  6975. module_cmds=
  6976. module_expsym_cmds=
  6977. always_export_symbols=no
  6978. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6979. # include_expsyms should be a list of space-separated symbols to be *always*
  6980. # included in the symbol list
  6981. include_expsyms=
  6982. # exclude_expsyms can be an extended regexp of symbols to exclude
  6983. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6984. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6985. # as well as any symbol that contains `d'.
  6986. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6987. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6988. # platforms (ab)use it in PIC code, but their linkers get confused if
  6989. # the symbol is explicitly referenced. Since portable code cannot
  6990. # rely on this symbol name, it's probably fine to never include it in
  6991. # preloaded symbol tables.
  6992. extract_expsyms_cmds=
  6993. # Just being paranoid about ensuring that cc_basename is set.
  6994. for cc_temp in $compiler""; do
  6995. case $cc_temp in
  6996. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6997. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6998. \-*) ;;
  6999. *) break;;
  7000. esac
  7001. done
  7002. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7003. case $host_os in
  7004. cygwin* | mingw* | pw32*)
  7005. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7006. # When not using gcc, we currently assume that we are using
  7007. # Microsoft Visual C++.
  7008. if test "$GCC" != yes; then
  7009. with_gnu_ld=no
  7010. fi
  7011. ;;
  7012. interix*)
  7013. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7014. with_gnu_ld=yes
  7015. ;;
  7016. openbsd*)
  7017. with_gnu_ld=no
  7018. ;;
  7019. esac
  7020. ld_shlibs=yes
  7021. if test "$with_gnu_ld" = yes; then
  7022. # If archive_cmds runs LD, not CC, wlarc should be empty
  7023. wlarc='${wl}'
  7024. # Set some defaults for GNU ld with shared library support. These
  7025. # are reset later if shared libraries are not supported. Putting them
  7026. # here allows them to be overridden if necessary.
  7027. runpath_var=LD_RUN_PATH
  7028. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7029. export_dynamic_flag_spec='${wl}--export-dynamic'
  7030. # ancient GNU ld didn't support --whole-archive et. al.
  7031. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7032. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7033. else
  7034. whole_archive_flag_spec=
  7035. fi
  7036. supports_anon_versioning=no
  7037. case `$LD -v 2>/dev/null` in
  7038. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7039. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7040. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7041. *\ 2.11.*) ;; # other 2.11 versions
  7042. *) supports_anon_versioning=yes ;;
  7043. esac
  7044. # See if GNU ld supports shared libraries.
  7045. case $host_os in
  7046. aix3* | aix4* | aix5*)
  7047. # On AIX/PPC, the GNU linker is very broken
  7048. if test "$host_cpu" != ia64; then
  7049. ld_shlibs=no
  7050. cat <<EOF 1>&2
  7051. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7052. *** to be unable to reliably create shared libraries on AIX.
  7053. *** Therefore, libtool is disabling shared libraries support. If you
  7054. *** really care for shared libraries, you may want to modify your PATH
  7055. *** so that a non-GNU linker is found, and then restart.
  7056. EOF
  7057. fi
  7058. ;;
  7059. amigaos*)
  7060. 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)'
  7061. hardcode_libdir_flag_spec='-L$libdir'
  7062. hardcode_minus_L=yes
  7063. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7064. # that the semantics of dynamic libraries on AmigaOS, at least up
  7065. # to version 4, is to share data among multiple programs linked
  7066. # with the same dynamic library. Since this doesn't match the
  7067. # behavior of shared libraries on other platforms, we can't use
  7068. # them.
  7069. ld_shlibs=no
  7070. ;;
  7071. beos*)
  7072. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7073. allow_undefined_flag=unsupported
  7074. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7075. # support --undefined. This deserves some investigation. FIXME
  7076. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7077. else
  7078. ld_shlibs=no
  7079. fi
  7080. ;;
  7081. cygwin* | mingw* | pw32*)
  7082. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7083. # as there is no search path for DLLs.
  7084. hardcode_libdir_flag_spec='-L$libdir'
  7085. allow_undefined_flag=unsupported
  7086. always_export_symbols=no
  7087. enable_shared_with_static_runtimes=yes
  7088. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7089. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7090. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7091. # If the export-symbols file already is a .def file (1st line
  7092. # is EXPORTS), use it as is; otherwise, prepend...
  7093. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7094. cp $export_symbols $output_objdir/$soname.def;
  7095. else
  7096. echo EXPORTS > $output_objdir/$soname.def;
  7097. cat $export_symbols >> $output_objdir/$soname.def;
  7098. fi~
  7099. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7100. else
  7101. ld_shlibs=no
  7102. fi
  7103. ;;
  7104. interix[3-9]*)
  7105. hardcode_direct=no
  7106. hardcode_shlibpath_var=no
  7107. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7108. export_dynamic_flag_spec='${wl}-E'
  7109. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7110. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7111. # default) and relocated if they conflict, which is a slow very memory
  7112. # consuming and fragmenting process. To avoid this, we pick a random,
  7113. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7114. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7115. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7116. 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'
  7117. ;;
  7118. gnu* | linux* | k*bsd*-gnu)
  7119. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7120. tmp_addflag=
  7121. case $cc_basename,$host_cpu in
  7122. pgcc*) # Portland Group C compiler
  7123. 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'
  7124. tmp_addflag=' $pic_flag'
  7125. ;;
  7126. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7127. 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'
  7128. tmp_addflag=' $pic_flag -Mnomain' ;;
  7129. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7130. tmp_addflag=' -i_dynamic' ;;
  7131. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7132. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7133. ifc* | ifort*) # Intel Fortran compiler
  7134. tmp_addflag=' -nofor_main' ;;
  7135. esac
  7136. case `$CC -V 2>&1 | sed 5q` in
  7137. *Sun\ C*) # Sun C 5.9
  7138. 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'
  7139. tmp_sharedflag='-G' ;;
  7140. *Sun\ F*) # Sun Fortran 8.3
  7141. tmp_sharedflag='-G' ;;
  7142. *)
  7143. tmp_sharedflag='-shared' ;;
  7144. esac
  7145. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7146. if test $supports_anon_versioning = yes; then
  7147. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7148. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7149. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7150. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7151. fi
  7152. else
  7153. ld_shlibs=no
  7154. fi
  7155. ;;
  7156. netbsd*)
  7157. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7158. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7159. wlarc=
  7160. else
  7161. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7162. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7163. fi
  7164. ;;
  7165. solaris*)
  7166. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7167. ld_shlibs=no
  7168. cat <<EOF 1>&2
  7169. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7170. *** create shared libraries on Solaris systems. Therefore, libtool
  7171. *** is disabling shared libraries support. We urge you to upgrade GNU
  7172. *** binutils to release 2.9.1 or newer. Another option is to modify
  7173. *** your PATH or compiler configuration so that the native linker is
  7174. *** used, and then restart.
  7175. EOF
  7176. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7177. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7178. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7179. else
  7180. ld_shlibs=no
  7181. fi
  7182. ;;
  7183. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7184. case `$LD -v 2>&1` in
  7185. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7186. ld_shlibs=no
  7187. cat <<_LT_EOF 1>&2
  7188. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7189. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7190. *** is disabling shared libraries support. We urge you to upgrade GNU
  7191. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7192. *** your PATH or compiler configuration so that the native linker is
  7193. *** used, and then restart.
  7194. _LT_EOF
  7195. ;;
  7196. *)
  7197. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7198. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7199. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7200. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7201. else
  7202. ld_shlibs=no
  7203. fi
  7204. ;;
  7205. esac
  7206. ;;
  7207. sunos4*)
  7208. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7209. wlarc=
  7210. hardcode_direct=yes
  7211. hardcode_shlibpath_var=no
  7212. ;;
  7213. *)
  7214. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7215. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7216. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7217. else
  7218. ld_shlibs=no
  7219. fi
  7220. ;;
  7221. esac
  7222. if test "$ld_shlibs" = no; then
  7223. runpath_var=
  7224. hardcode_libdir_flag_spec=
  7225. export_dynamic_flag_spec=
  7226. whole_archive_flag_spec=
  7227. fi
  7228. else
  7229. # PORTME fill in a description of your system's linker (not GNU ld)
  7230. case $host_os in
  7231. aix3*)
  7232. allow_undefined_flag=unsupported
  7233. always_export_symbols=yes
  7234. 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'
  7235. # Note: this linker hardcodes the directories in LIBPATH if there
  7236. # are no directories specified by -L.
  7237. hardcode_minus_L=yes
  7238. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7239. # Neither direct hardcoding nor static linking is supported with a
  7240. # broken collect2.
  7241. hardcode_direct=unsupported
  7242. fi
  7243. ;;
  7244. aix4* | aix5*)
  7245. if test "$host_cpu" = ia64; then
  7246. # On IA64, the linker does run time linking by default, so we don't
  7247. # have to do anything special.
  7248. aix_use_runtimelinking=no
  7249. exp_sym_flag='-Bexport'
  7250. no_entry_flag=""
  7251. else
  7252. # If we're using GNU nm, then we don't want the "-C" option.
  7253. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7254. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7255. 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'
  7256. else
  7257. 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'
  7258. fi
  7259. aix_use_runtimelinking=no
  7260. # Test if we are trying to use run time linking or normal
  7261. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7262. # need to do runtime linking.
  7263. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7264. for ld_flag in $LDFLAGS; do
  7265. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7266. aix_use_runtimelinking=yes
  7267. break
  7268. fi
  7269. done
  7270. ;;
  7271. esac
  7272. exp_sym_flag='-bexport'
  7273. no_entry_flag='-bnoentry'
  7274. fi
  7275. # When large executables or shared objects are built, AIX ld can
  7276. # have problems creating the table of contents. If linking a library
  7277. # or program results in "error TOC overflow" add -mminimal-toc to
  7278. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7279. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7280. archive_cmds=''
  7281. hardcode_direct=yes
  7282. hardcode_libdir_separator=':'
  7283. link_all_deplibs=yes
  7284. if test "$GCC" = yes; then
  7285. case $host_os in aix4.[012]|aix4.[012].*)
  7286. # We only want to do this on AIX 4.2 and lower, the check
  7287. # below for broken collect2 doesn't work under 4.3+
  7288. collect2name=`${CC} -print-prog-name=collect2`
  7289. if test -f "$collect2name" && \
  7290. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7291. then
  7292. # We have reworked collect2
  7293. :
  7294. else
  7295. # We have old collect2
  7296. hardcode_direct=unsupported
  7297. # It fails to find uninstalled libraries when the uninstalled
  7298. # path is not listed in the libpath. Setting hardcode_minus_L
  7299. # to unsupported forces relinking
  7300. hardcode_minus_L=yes
  7301. hardcode_libdir_flag_spec='-L$libdir'
  7302. hardcode_libdir_separator=
  7303. fi
  7304. ;;
  7305. esac
  7306. shared_flag='-shared'
  7307. if test "$aix_use_runtimelinking" = yes; then
  7308. shared_flag="$shared_flag "'${wl}-G'
  7309. fi
  7310. else
  7311. # not using gcc
  7312. if test "$host_cpu" = ia64; then
  7313. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7314. # chokes on -Wl,-G. The following line is correct:
  7315. shared_flag='-G'
  7316. else
  7317. if test "$aix_use_runtimelinking" = yes; then
  7318. shared_flag='${wl}-G'
  7319. else
  7320. shared_flag='${wl}-bM:SRE'
  7321. fi
  7322. fi
  7323. fi
  7324. # It seems that -bexpall does not export symbols beginning with
  7325. # underscore (_), so it is better to generate a list of symbols to export.
  7326. always_export_symbols=yes
  7327. if test "$aix_use_runtimelinking" = yes; then
  7328. # Warning - without using the other runtime loading flags (-brtl),
  7329. # -berok will link without error, but may produce a broken library.
  7330. allow_undefined_flag='-berok'
  7331. # Determine the default libpath from the value encoded in an empty executable.
  7332. cat >conftest.$ac_ext <<_ACEOF
  7333. /* confdefs.h. */
  7334. _ACEOF
  7335. cat confdefs.h >>conftest.$ac_ext
  7336. cat >>conftest.$ac_ext <<_ACEOF
  7337. /* end confdefs.h. */
  7338. int
  7339. main ()
  7340. {
  7341. ;
  7342. return 0;
  7343. }
  7344. _ACEOF
  7345. rm -f conftest.$ac_objext conftest$ac_exeext
  7346. if { (ac_try="$ac_link"
  7347. case "(($ac_try" in
  7348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7349. *) ac_try_echo=$ac_try;;
  7350. esac
  7351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7352. (eval "$ac_link") 2>conftest.er1
  7353. ac_status=$?
  7354. grep -v '^ *+' conftest.er1 >conftest.err
  7355. rm -f conftest.er1
  7356. cat conftest.err >&5
  7357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7358. (exit $ac_status); } && {
  7359. test -z "$ac_c_werror_flag" ||
  7360. test ! -s conftest.err
  7361. } && test -s conftest$ac_exeext &&
  7362. $as_test_x conftest$ac_exeext; then
  7363. lt_aix_libpath_sed='
  7364. /Import File Strings/,/^$/ {
  7365. /^0/ {
  7366. s/^0 *\(.*\)$/\1/
  7367. p
  7368. }
  7369. }'
  7370. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7371. # Check for a 64-bit object if we didn't find anything.
  7372. if test -z "$aix_libpath"; then
  7373. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7374. fi
  7375. else
  7376. echo "$as_me: failed program was:" >&5
  7377. sed 's/^/| /' conftest.$ac_ext >&5
  7378. fi
  7379. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7380. conftest$ac_exeext conftest.$ac_ext
  7381. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7382. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7383. 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7384. else
  7385. if test "$host_cpu" = ia64; then
  7386. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7387. allow_undefined_flag="-z nodefs"
  7388. 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"
  7389. else
  7390. # Determine the default libpath from the value encoded in an empty executable.
  7391. cat >conftest.$ac_ext <<_ACEOF
  7392. /* confdefs.h. */
  7393. _ACEOF
  7394. cat confdefs.h >>conftest.$ac_ext
  7395. cat >>conftest.$ac_ext <<_ACEOF
  7396. /* end confdefs.h. */
  7397. int
  7398. main ()
  7399. {
  7400. ;
  7401. return 0;
  7402. }
  7403. _ACEOF
  7404. rm -f conftest.$ac_objext conftest$ac_exeext
  7405. if { (ac_try="$ac_link"
  7406. case "(($ac_try" in
  7407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7408. *) ac_try_echo=$ac_try;;
  7409. esac
  7410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7411. (eval "$ac_link") 2>conftest.er1
  7412. ac_status=$?
  7413. grep -v '^ *+' conftest.er1 >conftest.err
  7414. rm -f conftest.er1
  7415. cat conftest.err >&5
  7416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7417. (exit $ac_status); } && {
  7418. test -z "$ac_c_werror_flag" ||
  7419. test ! -s conftest.err
  7420. } && test -s conftest$ac_exeext &&
  7421. $as_test_x conftest$ac_exeext; then
  7422. lt_aix_libpath_sed='
  7423. /Import File Strings/,/^$/ {
  7424. /^0/ {
  7425. s/^0 *\(.*\)$/\1/
  7426. p
  7427. }
  7428. }'
  7429. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7430. # Check for a 64-bit object if we didn't find anything.
  7431. if test -z "$aix_libpath"; then
  7432. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7433. fi
  7434. else
  7435. echo "$as_me: failed program was:" >&5
  7436. sed 's/^/| /' conftest.$ac_ext >&5
  7437. fi
  7438. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7439. conftest$ac_exeext conftest.$ac_ext
  7440. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7441. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7442. # Warning - without using the other run time loading flags,
  7443. # -berok will link without error, but may produce a broken library.
  7444. no_undefined_flag=' ${wl}-bernotok'
  7445. allow_undefined_flag=' ${wl}-berok'
  7446. # Exported symbols can be pulled into shared objects from archives
  7447. whole_archive_flag_spec='$convenience'
  7448. archive_cmds_need_lc=yes
  7449. # This is similar to how AIX traditionally builds its shared libraries.
  7450. 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'
  7451. fi
  7452. fi
  7453. ;;
  7454. amigaos*)
  7455. 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)'
  7456. hardcode_libdir_flag_spec='-L$libdir'
  7457. hardcode_minus_L=yes
  7458. # see comment about different semantics on the GNU ld section
  7459. ld_shlibs=no
  7460. ;;
  7461. bsdi[45]*)
  7462. export_dynamic_flag_spec=-rdynamic
  7463. ;;
  7464. cygwin* | mingw* | pw32*)
  7465. # When not using gcc, we currently assume that we are using
  7466. # Microsoft Visual C++.
  7467. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7468. # no search path for DLLs.
  7469. hardcode_libdir_flag_spec=' '
  7470. allow_undefined_flag=unsupported
  7471. # Tell ltmain to make .lib files, not .a files.
  7472. libext=lib
  7473. # Tell ltmain to make .dll files, not .so files.
  7474. shrext_cmds=".dll"
  7475. # FIXME: Setting linknames here is a bad hack.
  7476. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7477. # The linker will automatically build a .lib file if we build a DLL.
  7478. old_archive_From_new_cmds='true'
  7479. # FIXME: Should let the user specify the lib program.
  7480. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7481. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7482. enable_shared_with_static_runtimes=yes
  7483. ;;
  7484. darwin* | rhapsody*)
  7485. case $host_os in
  7486. rhapsody* | darwin1.[012])
  7487. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7488. ;;
  7489. *) # Darwin 1.3 on
  7490. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7491. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7492. else
  7493. case ${MACOSX_DEPLOYMENT_TARGET} in
  7494. 10.[012])
  7495. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7496. ;;
  7497. 10.*)
  7498. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7499. ;;
  7500. esac
  7501. fi
  7502. ;;
  7503. esac
  7504. archive_cmds_need_lc=no
  7505. hardcode_direct=no
  7506. hardcode_automatic=yes
  7507. hardcode_shlibpath_var=unsupported
  7508. whole_archive_flag_spec=''
  7509. link_all_deplibs=yes
  7510. if test "$GCC" = yes ; then
  7511. output_verbose_link_cmd='echo'
  7512. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7513. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7514. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7515. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7516. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7517. else
  7518. case $cc_basename in
  7519. xlc*)
  7520. output_verbose_link_cmd='echo'
  7521. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7522. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7523. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7524. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7525. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7526. ;;
  7527. *)
  7528. ld_shlibs=no
  7529. ;;
  7530. esac
  7531. fi
  7532. ;;
  7533. dgux*)
  7534. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7535. hardcode_libdir_flag_spec='-L$libdir'
  7536. hardcode_shlibpath_var=no
  7537. ;;
  7538. freebsd1*)
  7539. ld_shlibs=no
  7540. ;;
  7541. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7542. # support. Future versions do this automatically, but an explicit c++rt0.o
  7543. # does not break anything, and helps significantly (at the cost of a little
  7544. # extra space).
  7545. freebsd2.2*)
  7546. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7547. hardcode_libdir_flag_spec='-R$libdir'
  7548. hardcode_direct=yes
  7549. hardcode_shlibpath_var=no
  7550. ;;
  7551. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7552. freebsd2*)
  7553. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7554. hardcode_direct=yes
  7555. hardcode_minus_L=yes
  7556. hardcode_shlibpath_var=no
  7557. ;;
  7558. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7559. freebsd* | dragonfly*)
  7560. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7561. hardcode_libdir_flag_spec='-R$libdir'
  7562. hardcode_direct=yes
  7563. hardcode_shlibpath_var=no
  7564. ;;
  7565. hpux9*)
  7566. if test "$GCC" = yes; then
  7567. 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'
  7568. else
  7569. 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'
  7570. fi
  7571. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7572. hardcode_libdir_separator=:
  7573. hardcode_direct=yes
  7574. # hardcode_minus_L: Not really in the search PATH,
  7575. # but as the default location of the library.
  7576. hardcode_minus_L=yes
  7577. export_dynamic_flag_spec='${wl}-E'
  7578. ;;
  7579. hpux10*)
  7580. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7581. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7582. else
  7583. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7584. fi
  7585. if test "$with_gnu_ld" = no; then
  7586. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7587. hardcode_libdir_separator=:
  7588. hardcode_direct=yes
  7589. export_dynamic_flag_spec='${wl}-E'
  7590. # hardcode_minus_L: Not really in the search PATH,
  7591. # but as the default location of the library.
  7592. hardcode_minus_L=yes
  7593. fi
  7594. ;;
  7595. hpux11*)
  7596. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7597. case $host_cpu in
  7598. hppa*64*)
  7599. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7600. ;;
  7601. ia64*)
  7602. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7603. ;;
  7604. *)
  7605. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7606. ;;
  7607. esac
  7608. else
  7609. case $host_cpu in
  7610. hppa*64*)
  7611. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7612. ;;
  7613. ia64*)
  7614. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7615. ;;
  7616. *)
  7617. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7618. ;;
  7619. esac
  7620. fi
  7621. if test "$with_gnu_ld" = no; then
  7622. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7623. hardcode_libdir_separator=:
  7624. case $host_cpu in
  7625. hppa*64*|ia64*)
  7626. hardcode_libdir_flag_spec_ld='+b $libdir'
  7627. hardcode_direct=no
  7628. hardcode_shlibpath_var=no
  7629. ;;
  7630. *)
  7631. hardcode_direct=yes
  7632. export_dynamic_flag_spec='${wl}-E'
  7633. # hardcode_minus_L: Not really in the search PATH,
  7634. # but as the default location of the library.
  7635. hardcode_minus_L=yes
  7636. ;;
  7637. esac
  7638. fi
  7639. ;;
  7640. irix5* | irix6* | nonstopux*)
  7641. if test "$GCC" = yes; then
  7642. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7643. else
  7644. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7645. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7646. fi
  7647. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7648. hardcode_libdir_separator=:
  7649. link_all_deplibs=yes
  7650. ;;
  7651. netbsd*)
  7652. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7653. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7654. else
  7655. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7656. fi
  7657. hardcode_libdir_flag_spec='-R$libdir'
  7658. hardcode_direct=yes
  7659. hardcode_shlibpath_var=no
  7660. ;;
  7661. newsos6)
  7662. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7663. hardcode_direct=yes
  7664. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7665. hardcode_libdir_separator=:
  7666. hardcode_shlibpath_var=no
  7667. ;;
  7668. openbsd*)
  7669. if test -f /usr/libexec/ld.so; then
  7670. hardcode_direct=yes
  7671. hardcode_shlibpath_var=no
  7672. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7673. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7674. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7675. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7676. export_dynamic_flag_spec='${wl}-E'
  7677. else
  7678. case $host_os in
  7679. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7680. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7681. hardcode_libdir_flag_spec='-R$libdir'
  7682. ;;
  7683. *)
  7684. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7685. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7686. ;;
  7687. esac
  7688. fi
  7689. else
  7690. ld_shlibs=no
  7691. fi
  7692. ;;
  7693. os2*)
  7694. hardcode_libdir_flag_spec='-L$libdir'
  7695. hardcode_minus_L=yes
  7696. allow_undefined_flag=unsupported
  7697. 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'
  7698. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7699. ;;
  7700. osf3*)
  7701. if test "$GCC" = yes; then
  7702. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7703. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7704. else
  7705. allow_undefined_flag=' -expect_unresolved \*'
  7706. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7707. fi
  7708. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7709. hardcode_libdir_separator=:
  7710. ;;
  7711. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7712. if test "$GCC" = yes; then
  7713. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7714. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7715. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7716. else
  7717. allow_undefined_flag=' -expect_unresolved \*'
  7718. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7719. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7720. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  7721. # Both c and cxx compiler support -rpath directly
  7722. hardcode_libdir_flag_spec='-rpath $libdir'
  7723. fi
  7724. hardcode_libdir_separator=:
  7725. ;;
  7726. solaris*)
  7727. no_undefined_flag=' -z text'
  7728. if test "$GCC" = yes; then
  7729. wlarc='${wl}'
  7730. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7731. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7732. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7733. else
  7734. wlarc=''
  7735. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7736. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7737. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7738. fi
  7739. hardcode_libdir_flag_spec='-R$libdir'
  7740. hardcode_shlibpath_var=no
  7741. case $host_os in
  7742. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7743. *)
  7744. # The compiler driver will combine and reorder linker options,
  7745. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7746. # but is careful enough not to reorder.
  7747. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7748. if test "$GCC" = yes; then
  7749. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7750. else
  7751. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7752. fi
  7753. ;;
  7754. esac
  7755. link_all_deplibs=yes
  7756. ;;
  7757. sunos4*)
  7758. if test "x$host_vendor" = xsequent; then
  7759. # Use $CC to link under sequent, because it throws in some extra .o
  7760. # files that make .init and .fini sections work.
  7761. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7762. else
  7763. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7764. fi
  7765. hardcode_libdir_flag_spec='-L$libdir'
  7766. hardcode_direct=yes
  7767. hardcode_minus_L=yes
  7768. hardcode_shlibpath_var=no
  7769. ;;
  7770. sysv4)
  7771. case $host_vendor in
  7772. sni)
  7773. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7774. hardcode_direct=yes # is this really true???
  7775. ;;
  7776. siemens)
  7777. ## LD is ld it makes a PLAMLIB
  7778. ## CC just makes a GrossModule.
  7779. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7780. reload_cmds='$CC -r -o $output$reload_objs'
  7781. hardcode_direct=no
  7782. ;;
  7783. motorola)
  7784. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7785. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7786. ;;
  7787. esac
  7788. runpath_var='LD_RUN_PATH'
  7789. hardcode_shlibpath_var=no
  7790. ;;
  7791. sysv4.3*)
  7792. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7793. hardcode_shlibpath_var=no
  7794. export_dynamic_flag_spec='-Bexport'
  7795. ;;
  7796. sysv4*MP*)
  7797. if test -d /usr/nec; then
  7798. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7799. hardcode_shlibpath_var=no
  7800. runpath_var=LD_RUN_PATH
  7801. hardcode_runpath_var=yes
  7802. ld_shlibs=yes
  7803. fi
  7804. ;;
  7805. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7806. no_undefined_flag='${wl}-z,text'
  7807. archive_cmds_need_lc=no
  7808. hardcode_shlibpath_var=no
  7809. runpath_var='LD_RUN_PATH'
  7810. if test "$GCC" = yes; then
  7811. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7812. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7813. else
  7814. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7815. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7816. fi
  7817. ;;
  7818. sysv5* | sco3.2v5* | sco5v6*)
  7819. # Note: We can NOT use -z defs as we might desire, because we do not
  7820. # link with -lc, and that would cause any symbols used from libc to
  7821. # always be unresolved, which means just about no library would
  7822. # ever link correctly. If we're not using GNU ld we use -z text
  7823. # though, which does catch some bad symbols but isn't as heavy-handed
  7824. # as -z defs.
  7825. no_undefined_flag='${wl}-z,text'
  7826. allow_undefined_flag='${wl}-z,nodefs'
  7827. archive_cmds_need_lc=no
  7828. hardcode_shlibpath_var=no
  7829. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7830. hardcode_libdir_separator=':'
  7831. link_all_deplibs=yes
  7832. export_dynamic_flag_spec='${wl}-Bexport'
  7833. runpath_var='LD_RUN_PATH'
  7834. if test "$GCC" = yes; then
  7835. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7836. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7837. else
  7838. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7839. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7840. fi
  7841. ;;
  7842. uts4*)
  7843. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7844. hardcode_libdir_flag_spec='-L$libdir'
  7845. hardcode_shlibpath_var=no
  7846. ;;
  7847. *)
  7848. ld_shlibs=no
  7849. ;;
  7850. esac
  7851. fi
  7852. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7853. echo "${ECHO_T}$ld_shlibs" >&6; }
  7854. test "$ld_shlibs" = no && can_build_shared=no
  7855. #
  7856. # Do we need to explicitly link libc?
  7857. #
  7858. case "x$archive_cmds_need_lc" in
  7859. x|xyes)
  7860. # Assume -lc should be added
  7861. archive_cmds_need_lc=yes
  7862. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7863. case $archive_cmds in
  7864. *'~'*)
  7865. # FIXME: we may have to deal with multi-command sequences.
  7866. ;;
  7867. '$CC '*)
  7868. # Test whether the compiler implicitly links with -lc since on some
  7869. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7870. # to ld, don't add -lc before -lgcc.
  7871. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7872. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7873. $rm conftest*
  7874. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7875. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7876. (eval $ac_compile) 2>&5
  7877. ac_status=$?
  7878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7879. (exit $ac_status); } 2>conftest.err; then
  7880. soname=conftest
  7881. lib=conftest
  7882. libobjs=conftest.$ac_objext
  7883. deplibs=
  7884. wl=$lt_prog_compiler_wl
  7885. pic_flag=$lt_prog_compiler_pic
  7886. compiler_flags=-v
  7887. linker_flags=-v
  7888. verstring=
  7889. output_objdir=.
  7890. libname=conftest
  7891. lt_save_allow_undefined_flag=$allow_undefined_flag
  7892. allow_undefined_flag=
  7893. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7894. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7895. ac_status=$?
  7896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7897. (exit $ac_status); }
  7898. then
  7899. archive_cmds_need_lc=no
  7900. else
  7901. archive_cmds_need_lc=yes
  7902. fi
  7903. allow_undefined_flag=$lt_save_allow_undefined_flag
  7904. else
  7905. cat conftest.err 1>&5
  7906. fi
  7907. $rm conftest*
  7908. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7909. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7910. ;;
  7911. esac
  7912. fi
  7913. ;;
  7914. esac
  7915. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7916. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7917. library_names_spec=
  7918. libname_spec='lib$name'
  7919. soname_spec=
  7920. shrext_cmds=".so"
  7921. postinstall_cmds=
  7922. postuninstall_cmds=
  7923. finish_cmds=
  7924. finish_eval=
  7925. shlibpath_var=
  7926. shlibpath_overrides_runpath=unknown
  7927. version_type=none
  7928. dynamic_linker="$host_os ld.so"
  7929. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7930. if test "$GCC" = yes; then
  7931. case $host_os in
  7932. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7933. *) lt_awk_arg="/^libraries:/" ;;
  7934. esac
  7935. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7936. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  7937. # if the path contains ";" then we assume it to be the separator
  7938. # otherwise default to the standard path separator (i.e. ":") - it is
  7939. # assumed that no part of a normal pathname contains ";" but that should
  7940. # okay in the real world where ";" in dirpaths is itself problematic.
  7941. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7942. else
  7943. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7944. fi
  7945. # Ok, now we have the path, separated by spaces, we can step through it
  7946. # and add multilib dir if necessary.
  7947. lt_tmp_lt_search_path_spec=
  7948. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7949. for lt_sys_path in $lt_search_path_spec; do
  7950. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7951. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7952. else
  7953. test -d "$lt_sys_path" && \
  7954. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7955. fi
  7956. done
  7957. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  7958. BEGIN {RS=" "; FS="/|\n";} {
  7959. lt_foo="";
  7960. lt_count=0;
  7961. for (lt_i = NF; lt_i > 0; lt_i--) {
  7962. if ($lt_i != "" && $lt_i != ".") {
  7963. if ($lt_i == "..") {
  7964. lt_count++;
  7965. } else {
  7966. if (lt_count == 0) {
  7967. lt_foo="/" $lt_i lt_foo;
  7968. } else {
  7969. lt_count--;
  7970. }
  7971. }
  7972. }
  7973. }
  7974. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7975. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7976. }'`
  7977. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  7978. else
  7979. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7980. fi
  7981. need_lib_prefix=unknown
  7982. hardcode_into_libs=no
  7983. # when you set need_version to no, make sure it does not cause -set_version
  7984. # flags to be left without arguments
  7985. need_version=unknown
  7986. case $host_os in
  7987. aix3*)
  7988. version_type=linux
  7989. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7990. shlibpath_var=LIBPATH
  7991. # AIX 3 has no versioning support, so we append a major version to the name.
  7992. soname_spec='${libname}${release}${shared_ext}$major'
  7993. ;;
  7994. aix4* | aix5*)
  7995. version_type=linux
  7996. need_lib_prefix=no
  7997. need_version=no
  7998. hardcode_into_libs=yes
  7999. if test "$host_cpu" = ia64; then
  8000. # AIX 5 supports IA64
  8001. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8002. shlibpath_var=LD_LIBRARY_PATH
  8003. else
  8004. # With GCC up to 2.95.x, collect2 would create an import file
  8005. # for dependence libraries. The import file would start with
  8006. # the line `#! .'. This would cause the generated library to
  8007. # depend on `.', always an invalid library. This was fixed in
  8008. # development snapshots of GCC prior to 3.0.
  8009. case $host_os in
  8010. aix4 | aix4.[01] | aix4.[01].*)
  8011. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8012. echo ' yes '
  8013. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8014. :
  8015. else
  8016. can_build_shared=no
  8017. fi
  8018. ;;
  8019. esac
  8020. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8021. # soname into executable. Probably we can add versioning support to
  8022. # collect2, so additional links can be useful in future.
  8023. if test "$aix_use_runtimelinking" = yes; then
  8024. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8025. # instead of lib<name>.a to let people know that these are not
  8026. # typical AIX shared libraries.
  8027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8028. else
  8029. # We preserve .a as extension for shared libraries through AIX4.2
  8030. # and later when we are not doing run time linking.
  8031. library_names_spec='${libname}${release}.a $libname.a'
  8032. soname_spec='${libname}${release}${shared_ext}$major'
  8033. fi
  8034. shlibpath_var=LIBPATH
  8035. fi
  8036. ;;
  8037. amigaos*)
  8038. library_names_spec='$libname.ixlibrary $libname.a'
  8039. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8040. 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'
  8041. ;;
  8042. beos*)
  8043. library_names_spec='${libname}${shared_ext}'
  8044. dynamic_linker="$host_os ld.so"
  8045. shlibpath_var=LIBRARY_PATH
  8046. ;;
  8047. bsdi[45]*)
  8048. version_type=linux
  8049. need_version=no
  8050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8051. soname_spec='${libname}${release}${shared_ext}$major'
  8052. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8053. shlibpath_var=LD_LIBRARY_PATH
  8054. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8055. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8056. # the default ld.so.conf also contains /usr/contrib/lib and
  8057. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8058. # libtool to hard-code these into programs
  8059. ;;
  8060. cygwin* | mingw* | pw32*)
  8061. version_type=windows
  8062. shrext_cmds=".dll"
  8063. need_version=no
  8064. need_lib_prefix=no
  8065. case $GCC,$host_os in
  8066. yes,cygwin* | yes,mingw* | yes,pw32*)
  8067. library_names_spec='$libname.dll.a'
  8068. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8069. postinstall_cmds='base_file=`basename \${file}`~
  8070. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8071. dldir=$destdir/`dirname \$dlpath`~
  8072. test -d \$dldir || mkdir -p \$dldir~
  8073. $install_prog $dir/$dlname \$dldir/$dlname~
  8074. chmod a+x \$dldir/$dlname'
  8075. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8076. dlpath=$dir/\$dldll~
  8077. $rm \$dlpath'
  8078. shlibpath_overrides_runpath=yes
  8079. case $host_os in
  8080. cygwin*)
  8081. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8082. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8083. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8084. ;;
  8085. mingw*)
  8086. # MinGW DLLs use traditional 'lib' prefix
  8087. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8088. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8089. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8090. # It is most probably a Windows format PATH printed by
  8091. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8092. # path with ; separators, and with drive letters. We can handle the
  8093. # drive letters (cygwin fileutils understands them), so leave them,
  8094. # especially as we might pass files found there to a mingw objdump,
  8095. # which wouldn't understand a cygwinified path. Ahh.
  8096. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8097. else
  8098. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8099. fi
  8100. ;;
  8101. pw32*)
  8102. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8103. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8104. ;;
  8105. esac
  8106. ;;
  8107. *)
  8108. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8109. ;;
  8110. esac
  8111. dynamic_linker='Win32 ld.exe'
  8112. # FIXME: first we should search . and the directory the executable is in
  8113. shlibpath_var=PATH
  8114. ;;
  8115. darwin* | rhapsody*)
  8116. dynamic_linker="$host_os dyld"
  8117. version_type=darwin
  8118. need_lib_prefix=no
  8119. need_version=no
  8120. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8121. soname_spec='${libname}${release}${major}$shared_ext'
  8122. shlibpath_overrides_runpath=yes
  8123. shlibpath_var=DYLD_LIBRARY_PATH
  8124. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8125. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8126. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8127. ;;
  8128. dgux*)
  8129. version_type=linux
  8130. need_lib_prefix=no
  8131. need_version=no
  8132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8133. soname_spec='${libname}${release}${shared_ext}$major'
  8134. shlibpath_var=LD_LIBRARY_PATH
  8135. ;;
  8136. freebsd1*)
  8137. dynamic_linker=no
  8138. ;;
  8139. freebsd* | dragonfly*)
  8140. # DragonFly does not have aout. When/if they implement a new
  8141. # versioning mechanism, adjust this.
  8142. if test -x /usr/bin/objformat; then
  8143. objformat=`/usr/bin/objformat`
  8144. else
  8145. case $host_os in
  8146. freebsd[123]*) objformat=aout ;;
  8147. *) objformat=elf ;;
  8148. esac
  8149. fi
  8150. version_type=freebsd-$objformat
  8151. case $version_type in
  8152. freebsd-elf*)
  8153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8154. need_version=no
  8155. need_lib_prefix=no
  8156. ;;
  8157. freebsd-*)
  8158. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8159. need_version=yes
  8160. ;;
  8161. esac
  8162. shlibpath_var=LD_LIBRARY_PATH
  8163. case $host_os in
  8164. freebsd2*)
  8165. shlibpath_overrides_runpath=yes
  8166. ;;
  8167. freebsd3.[01]* | freebsdelf3.[01]*)
  8168. shlibpath_overrides_runpath=yes
  8169. hardcode_into_libs=yes
  8170. ;;
  8171. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8172. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8173. shlibpath_overrides_runpath=no
  8174. hardcode_into_libs=yes
  8175. ;;
  8176. *) # from 4.6 on, and DragonFly
  8177. shlibpath_overrides_runpath=yes
  8178. hardcode_into_libs=yes
  8179. ;;
  8180. esac
  8181. ;;
  8182. gnu*)
  8183. version_type=linux
  8184. need_lib_prefix=no
  8185. need_version=no
  8186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8187. soname_spec='${libname}${release}${shared_ext}$major'
  8188. shlibpath_var=LD_LIBRARY_PATH
  8189. hardcode_into_libs=yes
  8190. ;;
  8191. hpux9* | hpux10* | hpux11*)
  8192. # Give a soname corresponding to the major version so that dld.sl refuses to
  8193. # link against other versions.
  8194. version_type=sunos
  8195. need_lib_prefix=no
  8196. need_version=no
  8197. case $host_cpu in
  8198. ia64*)
  8199. shrext_cmds='.so'
  8200. hardcode_into_libs=yes
  8201. dynamic_linker="$host_os dld.so"
  8202. shlibpath_var=LD_LIBRARY_PATH
  8203. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8205. soname_spec='${libname}${release}${shared_ext}$major'
  8206. if test "X$HPUX_IA64_MODE" = X32; then
  8207. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8208. else
  8209. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8210. fi
  8211. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8212. ;;
  8213. hppa*64*)
  8214. shrext_cmds='.sl'
  8215. hardcode_into_libs=yes
  8216. dynamic_linker="$host_os dld.sl"
  8217. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8218. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8220. soname_spec='${libname}${release}${shared_ext}$major'
  8221. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8222. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8223. ;;
  8224. *)
  8225. shrext_cmds='.sl'
  8226. dynamic_linker="$host_os dld.sl"
  8227. shlibpath_var=SHLIB_PATH
  8228. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8230. soname_spec='${libname}${release}${shared_ext}$major'
  8231. ;;
  8232. esac
  8233. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8234. postinstall_cmds='chmod 555 $lib'
  8235. ;;
  8236. interix[3-9]*)
  8237. version_type=linux
  8238. need_lib_prefix=no
  8239. need_version=no
  8240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8241. soname_spec='${libname}${release}${shared_ext}$major'
  8242. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8243. shlibpath_var=LD_LIBRARY_PATH
  8244. shlibpath_overrides_runpath=no
  8245. hardcode_into_libs=yes
  8246. ;;
  8247. irix5* | irix6* | nonstopux*)
  8248. case $host_os in
  8249. nonstopux*) version_type=nonstopux ;;
  8250. *)
  8251. if test "$lt_cv_prog_gnu_ld" = yes; then
  8252. version_type=linux
  8253. else
  8254. version_type=irix
  8255. fi ;;
  8256. esac
  8257. need_lib_prefix=no
  8258. need_version=no
  8259. soname_spec='${libname}${release}${shared_ext}$major'
  8260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8261. case $host_os in
  8262. irix5* | nonstopux*)
  8263. libsuff= shlibsuff=
  8264. ;;
  8265. *)
  8266. case $LD in # libtool.m4 will add one of these switches to LD
  8267. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8268. libsuff= shlibsuff= libmagic=32-bit;;
  8269. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8270. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8271. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8272. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8273. *) libsuff= shlibsuff= libmagic=never-match;;
  8274. esac
  8275. ;;
  8276. esac
  8277. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8278. shlibpath_overrides_runpath=no
  8279. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8280. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8281. hardcode_into_libs=yes
  8282. ;;
  8283. # No shared lib support for Linux oldld, aout, or coff.
  8284. linux*oldld* | linux*aout* | linux*coff*)
  8285. dynamic_linker=no
  8286. ;;
  8287. # This must be Linux ELF.
  8288. linux* | k*bsd*-gnu)
  8289. version_type=linux
  8290. need_lib_prefix=no
  8291. need_version=no
  8292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8293. soname_spec='${libname}${release}${shared_ext}$major'
  8294. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8295. shlibpath_var=LD_LIBRARY_PATH
  8296. shlibpath_overrides_runpath=no
  8297. # This implies no fast_install, which is unacceptable.
  8298. # Some rework will be needed to allow for fast_install
  8299. # before this can be enabled.
  8300. hardcode_into_libs=yes
  8301. # Append ld.so.conf contents to the search path
  8302. if test -f /etc/ld.so.conf; then
  8303. 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' ' '`
  8304. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8305. fi
  8306. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8307. # powerpc, because MkLinux only supported shared libraries with the
  8308. # GNU dynamic linker. Since this was broken with cross compilers,
  8309. # most powerpc-linux boxes support dynamic linking these days and
  8310. # people can always --disable-shared, the test was removed, and we
  8311. # assume the GNU/Linux dynamic linker is in use.
  8312. dynamic_linker='GNU/Linux ld.so'
  8313. ;;
  8314. netbsd*)
  8315. version_type=sunos
  8316. need_lib_prefix=no
  8317. need_version=no
  8318. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8320. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8321. dynamic_linker='NetBSD (a.out) ld.so'
  8322. else
  8323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8324. soname_spec='${libname}${release}${shared_ext}$major'
  8325. dynamic_linker='NetBSD ld.elf_so'
  8326. fi
  8327. shlibpath_var=LD_LIBRARY_PATH
  8328. shlibpath_overrides_runpath=yes
  8329. hardcode_into_libs=yes
  8330. ;;
  8331. newsos6)
  8332. version_type=linux
  8333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8334. shlibpath_var=LD_LIBRARY_PATH
  8335. shlibpath_overrides_runpath=yes
  8336. ;;
  8337. nto-qnx*)
  8338. version_type=linux
  8339. need_lib_prefix=no
  8340. need_version=no
  8341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8342. soname_spec='${libname}${release}${shared_ext}$major'
  8343. shlibpath_var=LD_LIBRARY_PATH
  8344. shlibpath_overrides_runpath=yes
  8345. ;;
  8346. openbsd*)
  8347. version_type=sunos
  8348. sys_lib_dlsearch_path_spec="/usr/lib"
  8349. need_lib_prefix=no
  8350. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8351. case $host_os in
  8352. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8353. *) need_version=no ;;
  8354. esac
  8355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8356. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8357. shlibpath_var=LD_LIBRARY_PATH
  8358. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8359. case $host_os in
  8360. openbsd2.[89] | openbsd2.[89].*)
  8361. shlibpath_overrides_runpath=no
  8362. ;;
  8363. *)
  8364. shlibpath_overrides_runpath=yes
  8365. ;;
  8366. esac
  8367. else
  8368. shlibpath_overrides_runpath=yes
  8369. fi
  8370. ;;
  8371. os2*)
  8372. libname_spec='$name'
  8373. shrext_cmds=".dll"
  8374. need_lib_prefix=no
  8375. library_names_spec='$libname${shared_ext} $libname.a'
  8376. dynamic_linker='OS/2 ld.exe'
  8377. shlibpath_var=LIBPATH
  8378. ;;
  8379. osf3* | osf4* | osf5*)
  8380. version_type=osf
  8381. need_lib_prefix=no
  8382. need_version=no
  8383. soname_spec='${libname}${release}${shared_ext}$major'
  8384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8385. shlibpath_var=LD_LIBRARY_PATH
  8386. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8387. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8388. ;;
  8389. rdos*)
  8390. dynamic_linker=no
  8391. ;;
  8392. solaris*)
  8393. version_type=linux
  8394. need_lib_prefix=no
  8395. need_version=no
  8396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8397. soname_spec='${libname}${release}${shared_ext}$major'
  8398. shlibpath_var=LD_LIBRARY_PATH
  8399. shlibpath_overrides_runpath=yes
  8400. hardcode_into_libs=yes
  8401. # ldd complains unless libraries are executable
  8402. postinstall_cmds='chmod +x $lib'
  8403. ;;
  8404. sunos4*)
  8405. version_type=sunos
  8406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8407. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8408. shlibpath_var=LD_LIBRARY_PATH
  8409. shlibpath_overrides_runpath=yes
  8410. if test "$with_gnu_ld" = yes; then
  8411. need_lib_prefix=no
  8412. fi
  8413. need_version=yes
  8414. ;;
  8415. sysv4 | sysv4.3*)
  8416. version_type=linux
  8417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8418. soname_spec='${libname}${release}${shared_ext}$major'
  8419. shlibpath_var=LD_LIBRARY_PATH
  8420. case $host_vendor in
  8421. sni)
  8422. shlibpath_overrides_runpath=no
  8423. need_lib_prefix=no
  8424. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8425. runpath_var=LD_RUN_PATH
  8426. ;;
  8427. siemens)
  8428. need_lib_prefix=no
  8429. ;;
  8430. motorola)
  8431. need_lib_prefix=no
  8432. need_version=no
  8433. shlibpath_overrides_runpath=no
  8434. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8435. ;;
  8436. esac
  8437. ;;
  8438. sysv4*MP*)
  8439. if test -d /usr/nec ;then
  8440. version_type=linux
  8441. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8442. soname_spec='$libname${shared_ext}.$major'
  8443. shlibpath_var=LD_LIBRARY_PATH
  8444. fi
  8445. ;;
  8446. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8447. version_type=freebsd-elf
  8448. need_lib_prefix=no
  8449. need_version=no
  8450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8451. soname_spec='${libname}${release}${shared_ext}$major'
  8452. shlibpath_var=LD_LIBRARY_PATH
  8453. hardcode_into_libs=yes
  8454. if test "$with_gnu_ld" = yes; then
  8455. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8456. shlibpath_overrides_runpath=no
  8457. else
  8458. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8459. shlibpath_overrides_runpath=yes
  8460. case $host_os in
  8461. sco3.2v5*)
  8462. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8463. ;;
  8464. esac
  8465. fi
  8466. sys_lib_dlsearch_path_spec='/usr/lib'
  8467. ;;
  8468. uts4*)
  8469. version_type=linux
  8470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8471. soname_spec='${libname}${release}${shared_ext}$major'
  8472. shlibpath_var=LD_LIBRARY_PATH
  8473. ;;
  8474. *)
  8475. dynamic_linker=no
  8476. ;;
  8477. esac
  8478. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8479. echo "${ECHO_T}$dynamic_linker" >&6; }
  8480. test "$dynamic_linker" = no && can_build_shared=no
  8481. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8482. if test "$GCC" = yes; then
  8483. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8484. fi
  8485. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8486. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8487. hardcode_action=
  8488. if test -n "$hardcode_libdir_flag_spec" || \
  8489. test -n "$runpath_var" || \
  8490. test "X$hardcode_automatic" = "Xyes" ; then
  8491. # We can hardcode non-existant directories.
  8492. if test "$hardcode_direct" != no &&
  8493. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8494. # have to relink, otherwise we might link with an installed library
  8495. # when we should be linking with a yet-to-be-installed one
  8496. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8497. test "$hardcode_minus_L" != no; then
  8498. # Linking always hardcodes the temporary library directory.
  8499. hardcode_action=relink
  8500. else
  8501. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8502. hardcode_action=immediate
  8503. fi
  8504. else
  8505. # We cannot hardcode anything, or else we can only hardcode existing
  8506. # directories.
  8507. hardcode_action=unsupported
  8508. fi
  8509. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8510. echo "${ECHO_T}$hardcode_action" >&6; }
  8511. if test "$hardcode_action" = relink; then
  8512. # Fast installation is not supported
  8513. enable_fast_install=no
  8514. elif test "$shlibpath_overrides_runpath" = yes ||
  8515. test "$enable_shared" = no; then
  8516. # Fast installation is not necessary
  8517. enable_fast_install=needless
  8518. fi
  8519. striplib=
  8520. old_striplib=
  8521. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8522. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8523. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8524. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8525. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8526. { echo "$as_me:$LINENO: result: yes" >&5
  8527. echo "${ECHO_T}yes" >&6; }
  8528. else
  8529. # FIXME - insert some real tests, host_os isn't really good enough
  8530. case $host_os in
  8531. darwin*)
  8532. if test -n "$STRIP" ; then
  8533. striplib="$STRIP -x"
  8534. old_striplib="$STRIP -S"
  8535. { echo "$as_me:$LINENO: result: yes" >&5
  8536. echo "${ECHO_T}yes" >&6; }
  8537. else
  8538. { echo "$as_me:$LINENO: result: no" >&5
  8539. echo "${ECHO_T}no" >&6; }
  8540. fi
  8541. ;;
  8542. *)
  8543. { echo "$as_me:$LINENO: result: no" >&5
  8544. echo "${ECHO_T}no" >&6; }
  8545. ;;
  8546. esac
  8547. fi
  8548. if test "x$enable_dlopen" != xyes; then
  8549. enable_dlopen=unknown
  8550. enable_dlopen_self=unknown
  8551. enable_dlopen_self_static=unknown
  8552. else
  8553. lt_cv_dlopen=no
  8554. lt_cv_dlopen_libs=
  8555. case $host_os in
  8556. beos*)
  8557. lt_cv_dlopen="load_add_on"
  8558. lt_cv_dlopen_libs=
  8559. lt_cv_dlopen_self=yes
  8560. ;;
  8561. mingw* | pw32*)
  8562. lt_cv_dlopen="LoadLibrary"
  8563. lt_cv_dlopen_libs=
  8564. ;;
  8565. cygwin*)
  8566. lt_cv_dlopen="dlopen"
  8567. lt_cv_dlopen_libs=
  8568. ;;
  8569. darwin*)
  8570. # if libdl is installed we need to link against it
  8571. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8572. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8573. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8574. echo $ECHO_N "(cached) $ECHO_C" >&6
  8575. else
  8576. ac_check_lib_save_LIBS=$LIBS
  8577. LIBS="-ldl $LIBS"
  8578. cat >conftest.$ac_ext <<_ACEOF
  8579. /* confdefs.h. */
  8580. _ACEOF
  8581. cat confdefs.h >>conftest.$ac_ext
  8582. cat >>conftest.$ac_ext <<_ACEOF
  8583. /* end confdefs.h. */
  8584. /* Override any GCC internal prototype to avoid an error.
  8585. Use char because int might match the return type of a GCC
  8586. builtin and then its argument prototype would still apply. */
  8587. #ifdef __cplusplus
  8588. extern "C"
  8589. #endif
  8590. char dlopen ();
  8591. int
  8592. main ()
  8593. {
  8594. return dlopen ();
  8595. ;
  8596. return 0;
  8597. }
  8598. _ACEOF
  8599. rm -f conftest.$ac_objext conftest$ac_exeext
  8600. if { (ac_try="$ac_link"
  8601. case "(($ac_try" in
  8602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8603. *) ac_try_echo=$ac_try;;
  8604. esac
  8605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8606. (eval "$ac_link") 2>conftest.er1
  8607. ac_status=$?
  8608. grep -v '^ *+' conftest.er1 >conftest.err
  8609. rm -f conftest.er1
  8610. cat conftest.err >&5
  8611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8612. (exit $ac_status); } && {
  8613. test -z "$ac_c_werror_flag" ||
  8614. test ! -s conftest.err
  8615. } && test -s conftest$ac_exeext &&
  8616. $as_test_x conftest$ac_exeext; then
  8617. ac_cv_lib_dl_dlopen=yes
  8618. else
  8619. echo "$as_me: failed program was:" >&5
  8620. sed 's/^/| /' conftest.$ac_ext >&5
  8621. ac_cv_lib_dl_dlopen=no
  8622. fi
  8623. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8624. conftest$ac_exeext conftest.$ac_ext
  8625. LIBS=$ac_check_lib_save_LIBS
  8626. fi
  8627. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8628. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8629. if test $ac_cv_lib_dl_dlopen = yes; then
  8630. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8631. else
  8632. lt_cv_dlopen="dyld"
  8633. lt_cv_dlopen_libs=
  8634. lt_cv_dlopen_self=yes
  8635. fi
  8636. ;;
  8637. *)
  8638. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8639. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8640. if test "${ac_cv_func_shl_load+set}" = set; then
  8641. echo $ECHO_N "(cached) $ECHO_C" >&6
  8642. else
  8643. cat >conftest.$ac_ext <<_ACEOF
  8644. /* confdefs.h. */
  8645. _ACEOF
  8646. cat confdefs.h >>conftest.$ac_ext
  8647. cat >>conftest.$ac_ext <<_ACEOF
  8648. /* end confdefs.h. */
  8649. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8650. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8651. #define shl_load innocuous_shl_load
  8652. /* System header to define __stub macros and hopefully few prototypes,
  8653. which can conflict with char shl_load (); below.
  8654. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8655. <limits.h> exists even on freestanding compilers. */
  8656. #ifdef __STDC__
  8657. # include <limits.h>
  8658. #else
  8659. # include <assert.h>
  8660. #endif
  8661. #undef shl_load
  8662. /* Override any GCC internal prototype to avoid an error.
  8663. Use char because int might match the return type of a GCC
  8664. builtin and then its argument prototype would still apply. */
  8665. #ifdef __cplusplus
  8666. extern "C"
  8667. #endif
  8668. char shl_load ();
  8669. /* The GNU C library defines this for functions which it implements
  8670. to always fail with ENOSYS. Some functions are actually named
  8671. something starting with __ and the normal name is an alias. */
  8672. #if defined __stub_shl_load || defined __stub___shl_load
  8673. choke me
  8674. #endif
  8675. int
  8676. main ()
  8677. {
  8678. return shl_load ();
  8679. ;
  8680. return 0;
  8681. }
  8682. _ACEOF
  8683. rm -f conftest.$ac_objext conftest$ac_exeext
  8684. if { (ac_try="$ac_link"
  8685. case "(($ac_try" in
  8686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8687. *) ac_try_echo=$ac_try;;
  8688. esac
  8689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8690. (eval "$ac_link") 2>conftest.er1
  8691. ac_status=$?
  8692. grep -v '^ *+' conftest.er1 >conftest.err
  8693. rm -f conftest.er1
  8694. cat conftest.err >&5
  8695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8696. (exit $ac_status); } && {
  8697. test -z "$ac_c_werror_flag" ||
  8698. test ! -s conftest.err
  8699. } && test -s conftest$ac_exeext &&
  8700. $as_test_x conftest$ac_exeext; then
  8701. ac_cv_func_shl_load=yes
  8702. else
  8703. echo "$as_me: failed program was:" >&5
  8704. sed 's/^/| /' conftest.$ac_ext >&5
  8705. ac_cv_func_shl_load=no
  8706. fi
  8707. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8708. conftest$ac_exeext conftest.$ac_ext
  8709. fi
  8710. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8711. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8712. if test $ac_cv_func_shl_load = yes; then
  8713. lt_cv_dlopen="shl_load"
  8714. else
  8715. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8716. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8717. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8718. echo $ECHO_N "(cached) $ECHO_C" >&6
  8719. else
  8720. ac_check_lib_save_LIBS=$LIBS
  8721. LIBS="-ldld $LIBS"
  8722. cat >conftest.$ac_ext <<_ACEOF
  8723. /* confdefs.h. */
  8724. _ACEOF
  8725. cat confdefs.h >>conftest.$ac_ext
  8726. cat >>conftest.$ac_ext <<_ACEOF
  8727. /* end confdefs.h. */
  8728. /* Override any GCC internal prototype to avoid an error.
  8729. Use char because int might match the return type of a GCC
  8730. builtin and then its argument prototype would still apply. */
  8731. #ifdef __cplusplus
  8732. extern "C"
  8733. #endif
  8734. char shl_load ();
  8735. int
  8736. main ()
  8737. {
  8738. return shl_load ();
  8739. ;
  8740. return 0;
  8741. }
  8742. _ACEOF
  8743. rm -f conftest.$ac_objext conftest$ac_exeext
  8744. if { (ac_try="$ac_link"
  8745. case "(($ac_try" in
  8746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8747. *) ac_try_echo=$ac_try;;
  8748. esac
  8749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8750. (eval "$ac_link") 2>conftest.er1
  8751. ac_status=$?
  8752. grep -v '^ *+' conftest.er1 >conftest.err
  8753. rm -f conftest.er1
  8754. cat conftest.err >&5
  8755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8756. (exit $ac_status); } && {
  8757. test -z "$ac_c_werror_flag" ||
  8758. test ! -s conftest.err
  8759. } && test -s conftest$ac_exeext &&
  8760. $as_test_x conftest$ac_exeext; then
  8761. ac_cv_lib_dld_shl_load=yes
  8762. else
  8763. echo "$as_me: failed program was:" >&5
  8764. sed 's/^/| /' conftest.$ac_ext >&5
  8765. ac_cv_lib_dld_shl_load=no
  8766. fi
  8767. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8768. conftest$ac_exeext conftest.$ac_ext
  8769. LIBS=$ac_check_lib_save_LIBS
  8770. fi
  8771. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8772. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8773. if test $ac_cv_lib_dld_shl_load = yes; then
  8774. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8775. else
  8776. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8777. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8778. if test "${ac_cv_func_dlopen+set}" = set; then
  8779. echo $ECHO_N "(cached) $ECHO_C" >&6
  8780. else
  8781. cat >conftest.$ac_ext <<_ACEOF
  8782. /* confdefs.h. */
  8783. _ACEOF
  8784. cat confdefs.h >>conftest.$ac_ext
  8785. cat >>conftest.$ac_ext <<_ACEOF
  8786. /* end confdefs.h. */
  8787. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8788. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8789. #define dlopen innocuous_dlopen
  8790. /* System header to define __stub macros and hopefully few prototypes,
  8791. which can conflict with char dlopen (); below.
  8792. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8793. <limits.h> exists even on freestanding compilers. */
  8794. #ifdef __STDC__
  8795. # include <limits.h>
  8796. #else
  8797. # include <assert.h>
  8798. #endif
  8799. #undef dlopen
  8800. /* Override any GCC internal prototype to avoid an error.
  8801. Use char because int might match the return type of a GCC
  8802. builtin and then its argument prototype would still apply. */
  8803. #ifdef __cplusplus
  8804. extern "C"
  8805. #endif
  8806. char dlopen ();
  8807. /* The GNU C library defines this for functions which it implements
  8808. to always fail with ENOSYS. Some functions are actually named
  8809. something starting with __ and the normal name is an alias. */
  8810. #if defined __stub_dlopen || defined __stub___dlopen
  8811. choke me
  8812. #endif
  8813. int
  8814. main ()
  8815. {
  8816. return dlopen ();
  8817. ;
  8818. return 0;
  8819. }
  8820. _ACEOF
  8821. rm -f conftest.$ac_objext conftest$ac_exeext
  8822. if { (ac_try="$ac_link"
  8823. case "(($ac_try" in
  8824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8825. *) ac_try_echo=$ac_try;;
  8826. esac
  8827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8828. (eval "$ac_link") 2>conftest.er1
  8829. ac_status=$?
  8830. grep -v '^ *+' conftest.er1 >conftest.err
  8831. rm -f conftest.er1
  8832. cat conftest.err >&5
  8833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8834. (exit $ac_status); } && {
  8835. test -z "$ac_c_werror_flag" ||
  8836. test ! -s conftest.err
  8837. } && test -s conftest$ac_exeext &&
  8838. $as_test_x conftest$ac_exeext; then
  8839. ac_cv_func_dlopen=yes
  8840. else
  8841. echo "$as_me: failed program was:" >&5
  8842. sed 's/^/| /' conftest.$ac_ext >&5
  8843. ac_cv_func_dlopen=no
  8844. fi
  8845. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8846. conftest$ac_exeext conftest.$ac_ext
  8847. fi
  8848. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8849. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8850. if test $ac_cv_func_dlopen = yes; then
  8851. lt_cv_dlopen="dlopen"
  8852. else
  8853. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8854. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8855. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8856. echo $ECHO_N "(cached) $ECHO_C" >&6
  8857. else
  8858. ac_check_lib_save_LIBS=$LIBS
  8859. LIBS="-ldl $LIBS"
  8860. cat >conftest.$ac_ext <<_ACEOF
  8861. /* confdefs.h. */
  8862. _ACEOF
  8863. cat confdefs.h >>conftest.$ac_ext
  8864. cat >>conftest.$ac_ext <<_ACEOF
  8865. /* end confdefs.h. */
  8866. /* Override any GCC internal prototype to avoid an error.
  8867. Use char because int might match the return type of a GCC
  8868. builtin and then its argument prototype would still apply. */
  8869. #ifdef __cplusplus
  8870. extern "C"
  8871. #endif
  8872. char dlopen ();
  8873. int
  8874. main ()
  8875. {
  8876. return dlopen ();
  8877. ;
  8878. return 0;
  8879. }
  8880. _ACEOF
  8881. rm -f conftest.$ac_objext conftest$ac_exeext
  8882. if { (ac_try="$ac_link"
  8883. case "(($ac_try" in
  8884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8885. *) ac_try_echo=$ac_try;;
  8886. esac
  8887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8888. (eval "$ac_link") 2>conftest.er1
  8889. ac_status=$?
  8890. grep -v '^ *+' conftest.er1 >conftest.err
  8891. rm -f conftest.er1
  8892. cat conftest.err >&5
  8893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8894. (exit $ac_status); } && {
  8895. test -z "$ac_c_werror_flag" ||
  8896. test ! -s conftest.err
  8897. } && test -s conftest$ac_exeext &&
  8898. $as_test_x conftest$ac_exeext; then
  8899. ac_cv_lib_dl_dlopen=yes
  8900. else
  8901. echo "$as_me: failed program was:" >&5
  8902. sed 's/^/| /' conftest.$ac_ext >&5
  8903. ac_cv_lib_dl_dlopen=no
  8904. fi
  8905. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8906. conftest$ac_exeext conftest.$ac_ext
  8907. LIBS=$ac_check_lib_save_LIBS
  8908. fi
  8909. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8910. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8911. if test $ac_cv_lib_dl_dlopen = yes; then
  8912. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8913. else
  8914. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8915. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8916. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8917. echo $ECHO_N "(cached) $ECHO_C" >&6
  8918. else
  8919. ac_check_lib_save_LIBS=$LIBS
  8920. LIBS="-lsvld $LIBS"
  8921. cat >conftest.$ac_ext <<_ACEOF
  8922. /* confdefs.h. */
  8923. _ACEOF
  8924. cat confdefs.h >>conftest.$ac_ext
  8925. cat >>conftest.$ac_ext <<_ACEOF
  8926. /* end confdefs.h. */
  8927. /* Override any GCC internal prototype to avoid an error.
  8928. Use char because int might match the return type of a GCC
  8929. builtin and then its argument prototype would still apply. */
  8930. #ifdef __cplusplus
  8931. extern "C"
  8932. #endif
  8933. char dlopen ();
  8934. int
  8935. main ()
  8936. {
  8937. return dlopen ();
  8938. ;
  8939. return 0;
  8940. }
  8941. _ACEOF
  8942. rm -f conftest.$ac_objext conftest$ac_exeext
  8943. if { (ac_try="$ac_link"
  8944. case "(($ac_try" in
  8945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8946. *) ac_try_echo=$ac_try;;
  8947. esac
  8948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8949. (eval "$ac_link") 2>conftest.er1
  8950. ac_status=$?
  8951. grep -v '^ *+' conftest.er1 >conftest.err
  8952. rm -f conftest.er1
  8953. cat conftest.err >&5
  8954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8955. (exit $ac_status); } && {
  8956. test -z "$ac_c_werror_flag" ||
  8957. test ! -s conftest.err
  8958. } && test -s conftest$ac_exeext &&
  8959. $as_test_x conftest$ac_exeext; then
  8960. ac_cv_lib_svld_dlopen=yes
  8961. else
  8962. echo "$as_me: failed program was:" >&5
  8963. sed 's/^/| /' conftest.$ac_ext >&5
  8964. ac_cv_lib_svld_dlopen=no
  8965. fi
  8966. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8967. conftest$ac_exeext conftest.$ac_ext
  8968. LIBS=$ac_check_lib_save_LIBS
  8969. fi
  8970. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8971. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8972. if test $ac_cv_lib_svld_dlopen = yes; then
  8973. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8974. else
  8975. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8976. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8977. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8978. echo $ECHO_N "(cached) $ECHO_C" >&6
  8979. else
  8980. ac_check_lib_save_LIBS=$LIBS
  8981. LIBS="-ldld $LIBS"
  8982. cat >conftest.$ac_ext <<_ACEOF
  8983. /* confdefs.h. */
  8984. _ACEOF
  8985. cat confdefs.h >>conftest.$ac_ext
  8986. cat >>conftest.$ac_ext <<_ACEOF
  8987. /* end confdefs.h. */
  8988. /* Override any GCC internal prototype to avoid an error.
  8989. Use char because int might match the return type of a GCC
  8990. builtin and then its argument prototype would still apply. */
  8991. #ifdef __cplusplus
  8992. extern "C"
  8993. #endif
  8994. char dld_link ();
  8995. int
  8996. main ()
  8997. {
  8998. return dld_link ();
  8999. ;
  9000. return 0;
  9001. }
  9002. _ACEOF
  9003. rm -f conftest.$ac_objext conftest$ac_exeext
  9004. if { (ac_try="$ac_link"
  9005. case "(($ac_try" in
  9006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9007. *) ac_try_echo=$ac_try;;
  9008. esac
  9009. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9010. (eval "$ac_link") 2>conftest.er1
  9011. ac_status=$?
  9012. grep -v '^ *+' conftest.er1 >conftest.err
  9013. rm -f conftest.er1
  9014. cat conftest.err >&5
  9015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9016. (exit $ac_status); } && {
  9017. test -z "$ac_c_werror_flag" ||
  9018. test ! -s conftest.err
  9019. } && test -s conftest$ac_exeext &&
  9020. $as_test_x conftest$ac_exeext; then
  9021. ac_cv_lib_dld_dld_link=yes
  9022. else
  9023. echo "$as_me: failed program was:" >&5
  9024. sed 's/^/| /' conftest.$ac_ext >&5
  9025. ac_cv_lib_dld_dld_link=no
  9026. fi
  9027. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9028. conftest$ac_exeext conftest.$ac_ext
  9029. LIBS=$ac_check_lib_save_LIBS
  9030. fi
  9031. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9032. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9033. if test $ac_cv_lib_dld_dld_link = yes; then
  9034. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9035. fi
  9036. fi
  9037. fi
  9038. fi
  9039. fi
  9040. fi
  9041. ;;
  9042. esac
  9043. if test "x$lt_cv_dlopen" != xno; then
  9044. enable_dlopen=yes
  9045. else
  9046. enable_dlopen=no
  9047. fi
  9048. case $lt_cv_dlopen in
  9049. dlopen)
  9050. save_CPPFLAGS="$CPPFLAGS"
  9051. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9052. save_LDFLAGS="$LDFLAGS"
  9053. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9054. save_LIBS="$LIBS"
  9055. LIBS="$lt_cv_dlopen_libs $LIBS"
  9056. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9057. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9058. if test "${lt_cv_dlopen_self+set}" = set; then
  9059. echo $ECHO_N "(cached) $ECHO_C" >&6
  9060. else
  9061. if test "$cross_compiling" = yes; then :
  9062. lt_cv_dlopen_self=cross
  9063. else
  9064. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9065. lt_status=$lt_dlunknown
  9066. cat > conftest.$ac_ext <<EOF
  9067. #line 10070 "configure"
  9068. #include "confdefs.h"
  9069. #if HAVE_DLFCN_H
  9070. #include <dlfcn.h>
  9071. #endif
  9072. #include <stdio.h>
  9073. #ifdef RTLD_GLOBAL
  9074. # define LT_DLGLOBAL RTLD_GLOBAL
  9075. #else
  9076. # ifdef DL_GLOBAL
  9077. # define LT_DLGLOBAL DL_GLOBAL
  9078. # else
  9079. # define LT_DLGLOBAL 0
  9080. # endif
  9081. #endif
  9082. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9083. find out it does not work in some platform. */
  9084. #ifndef LT_DLLAZY_OR_NOW
  9085. # ifdef RTLD_LAZY
  9086. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9087. # else
  9088. # ifdef DL_LAZY
  9089. # define LT_DLLAZY_OR_NOW DL_LAZY
  9090. # else
  9091. # ifdef RTLD_NOW
  9092. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9093. # else
  9094. # ifdef DL_NOW
  9095. # define LT_DLLAZY_OR_NOW DL_NOW
  9096. # else
  9097. # define LT_DLLAZY_OR_NOW 0
  9098. # endif
  9099. # endif
  9100. # endif
  9101. # endif
  9102. #endif
  9103. #ifdef __cplusplus
  9104. extern "C" void exit (int);
  9105. #endif
  9106. void fnord() { int i=42;}
  9107. int main ()
  9108. {
  9109. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9110. int status = $lt_dlunknown;
  9111. if (self)
  9112. {
  9113. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9114. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9115. /* dlclose (self); */
  9116. }
  9117. else
  9118. puts (dlerror ());
  9119. exit (status);
  9120. }
  9121. EOF
  9122. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9123. (eval $ac_link) 2>&5
  9124. ac_status=$?
  9125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9126. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9127. (./conftest; exit; ) >&5 2>/dev/null
  9128. lt_status=$?
  9129. case x$lt_status in
  9130. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9131. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9132. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9133. esac
  9134. else :
  9135. # compilation failed
  9136. lt_cv_dlopen_self=no
  9137. fi
  9138. fi
  9139. rm -fr conftest*
  9140. fi
  9141. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9142. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9143. if test "x$lt_cv_dlopen_self" = xyes; then
  9144. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9145. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9146. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9147. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9148. echo $ECHO_N "(cached) $ECHO_C" >&6
  9149. else
  9150. if test "$cross_compiling" = yes; then :
  9151. lt_cv_dlopen_self_static=cross
  9152. else
  9153. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9154. lt_status=$lt_dlunknown
  9155. cat > conftest.$ac_ext <<EOF
  9156. #line 10170 "configure"
  9157. #include "confdefs.h"
  9158. #if HAVE_DLFCN_H
  9159. #include <dlfcn.h>
  9160. #endif
  9161. #include <stdio.h>
  9162. #ifdef RTLD_GLOBAL
  9163. # define LT_DLGLOBAL RTLD_GLOBAL
  9164. #else
  9165. # ifdef DL_GLOBAL
  9166. # define LT_DLGLOBAL DL_GLOBAL
  9167. # else
  9168. # define LT_DLGLOBAL 0
  9169. # endif
  9170. #endif
  9171. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9172. find out it does not work in some platform. */
  9173. #ifndef LT_DLLAZY_OR_NOW
  9174. # ifdef RTLD_LAZY
  9175. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9176. # else
  9177. # ifdef DL_LAZY
  9178. # define LT_DLLAZY_OR_NOW DL_LAZY
  9179. # else
  9180. # ifdef RTLD_NOW
  9181. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9182. # else
  9183. # ifdef DL_NOW
  9184. # define LT_DLLAZY_OR_NOW DL_NOW
  9185. # else
  9186. # define LT_DLLAZY_OR_NOW 0
  9187. # endif
  9188. # endif
  9189. # endif
  9190. # endif
  9191. #endif
  9192. #ifdef __cplusplus
  9193. extern "C" void exit (int);
  9194. #endif
  9195. void fnord() { int i=42;}
  9196. int main ()
  9197. {
  9198. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9199. int status = $lt_dlunknown;
  9200. if (self)
  9201. {
  9202. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9203. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9204. /* dlclose (self); */
  9205. }
  9206. else
  9207. puts (dlerror ());
  9208. exit (status);
  9209. }
  9210. EOF
  9211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9212. (eval $ac_link) 2>&5
  9213. ac_status=$?
  9214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9215. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9216. (./conftest; exit; ) >&5 2>/dev/null
  9217. lt_status=$?
  9218. case x$lt_status in
  9219. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9220. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9221. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9222. esac
  9223. else :
  9224. # compilation failed
  9225. lt_cv_dlopen_self_static=no
  9226. fi
  9227. fi
  9228. rm -fr conftest*
  9229. fi
  9230. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9231. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9232. fi
  9233. CPPFLAGS="$save_CPPFLAGS"
  9234. LDFLAGS="$save_LDFLAGS"
  9235. LIBS="$save_LIBS"
  9236. ;;
  9237. esac
  9238. case $lt_cv_dlopen_self in
  9239. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9240. *) enable_dlopen_self=unknown ;;
  9241. esac
  9242. case $lt_cv_dlopen_self_static in
  9243. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9244. *) enable_dlopen_self_static=unknown ;;
  9245. esac
  9246. fi
  9247. # Report which library types will actually be built
  9248. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9249. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9250. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9251. echo "${ECHO_T}$can_build_shared" >&6; }
  9252. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9253. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9254. test "$can_build_shared" = "no" && enable_shared=no
  9255. # On AIX, shared libraries and static libraries use the same namespace, and
  9256. # are all built from PIC.
  9257. case $host_os in
  9258. aix3*)
  9259. test "$enable_shared" = yes && enable_static=no
  9260. if test -n "$RANLIB"; then
  9261. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9262. postinstall_cmds='$RANLIB $lib'
  9263. fi
  9264. ;;
  9265. aix4* | aix5*)
  9266. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9267. test "$enable_shared" = yes && enable_static=no
  9268. fi
  9269. ;;
  9270. esac
  9271. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9272. echo "${ECHO_T}$enable_shared" >&6; }
  9273. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9274. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9275. # Make sure either enable_shared or enable_static is yes.
  9276. test "$enable_shared" = yes || enable_static=yes
  9277. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9278. echo "${ECHO_T}$enable_static" >&6; }
  9279. # The else clause should only fire when bootstrapping the
  9280. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9281. # with your package, and you will get complaints that there are
  9282. # no rules to generate ltmain.sh.
  9283. if test -f "$ltmain"; then
  9284. # See if we are running on zsh, and set the options which allow our commands through
  9285. # without removal of \ escapes.
  9286. if test -n "${ZSH_VERSION+set}" ; then
  9287. setopt NO_GLOB_SUBST
  9288. fi
  9289. # Now quote all the things that may contain metacharacters while being
  9290. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9291. # variables and quote the copies for generation of the libtool script.
  9292. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9293. SED SHELL STRIP \
  9294. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9295. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9296. deplibs_check_method reload_flag reload_cmds need_locks \
  9297. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9298. lt_cv_sys_global_symbol_to_c_name_address \
  9299. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9300. old_postinstall_cmds old_postuninstall_cmds \
  9301. compiler \
  9302. CC \
  9303. LD \
  9304. lt_prog_compiler_wl \
  9305. lt_prog_compiler_pic \
  9306. lt_prog_compiler_static \
  9307. lt_prog_compiler_no_builtin_flag \
  9308. export_dynamic_flag_spec \
  9309. thread_safe_flag_spec \
  9310. whole_archive_flag_spec \
  9311. enable_shared_with_static_runtimes \
  9312. old_archive_cmds \
  9313. old_archive_from_new_cmds \
  9314. predep_objects \
  9315. postdep_objects \
  9316. predeps \
  9317. postdeps \
  9318. compiler_lib_search_path \
  9319. archive_cmds \
  9320. archive_expsym_cmds \
  9321. postinstall_cmds \
  9322. postuninstall_cmds \
  9323. old_archive_from_expsyms_cmds \
  9324. allow_undefined_flag \
  9325. no_undefined_flag \
  9326. export_symbols_cmds \
  9327. hardcode_libdir_flag_spec \
  9328. hardcode_libdir_flag_spec_ld \
  9329. hardcode_libdir_separator \
  9330. hardcode_automatic \
  9331. module_cmds \
  9332. module_expsym_cmds \
  9333. lt_cv_prog_compiler_c_o \
  9334. fix_srcfile_path \
  9335. exclude_expsyms \
  9336. include_expsyms; do
  9337. case $var in
  9338. old_archive_cmds | \
  9339. old_archive_from_new_cmds | \
  9340. archive_cmds | \
  9341. archive_expsym_cmds | \
  9342. module_cmds | \
  9343. module_expsym_cmds | \
  9344. old_archive_from_expsyms_cmds | \
  9345. export_symbols_cmds | \
  9346. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9347. postinstall_cmds | postuninstall_cmds | \
  9348. old_postinstall_cmds | old_postuninstall_cmds | \
  9349. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9350. # Double-quote double-evaled strings.
  9351. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9352. ;;
  9353. *)
  9354. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9355. ;;
  9356. esac
  9357. done
  9358. case $lt_echo in
  9359. *'\$0 --fallback-echo"')
  9360. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9361. ;;
  9362. esac
  9363. cfgfile="${ofile}T"
  9364. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9365. $rm -f "$cfgfile"
  9366. { echo "$as_me:$LINENO: creating $ofile" >&5
  9367. echo "$as_me: creating $ofile" >&6;}
  9368. cat <<__EOF__ >> "$cfgfile"
  9369. #! $SHELL
  9370. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9371. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9372. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9373. #
  9374. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  9375. # Free Software Foundation, Inc.
  9376. #
  9377. # This file is part of GNU Libtool:
  9378. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9379. #
  9380. # This program is free software; you can redistribute it and/or modify
  9381. # it under the terms of the GNU General Public License as published by
  9382. # the Free Software Foundation; either version 2 of the License, or
  9383. # (at your option) any later version.
  9384. #
  9385. # This program is distributed in the hope that it will be useful, but
  9386. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9387. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9388. # General Public License for more details.
  9389. #
  9390. # You should have received a copy of the GNU General Public License
  9391. # along with this program; if not, write to the Free Software
  9392. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9393. #
  9394. # As a special exception to the GNU General Public License, if you
  9395. # distribute this file as part of a program that contains a
  9396. # configuration script generated by Autoconf, you may include it under
  9397. # the same distribution terms that you use for the rest of that program.
  9398. # A sed program that does not truncate output.
  9399. SED=$lt_SED
  9400. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9401. Xsed="$SED -e 1s/^X//"
  9402. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9403. # if CDPATH is set.
  9404. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9405. # The names of the tagged configurations supported by this script.
  9406. available_tags=
  9407. # ### BEGIN LIBTOOL CONFIG
  9408. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9409. # Shell to use when invoking shell scripts.
  9410. SHELL=$lt_SHELL
  9411. # Whether or not to build shared libraries.
  9412. build_libtool_libs=$enable_shared
  9413. # Whether or not to build static libraries.
  9414. build_old_libs=$enable_static
  9415. # Whether or not to add -lc for building shared libraries.
  9416. build_libtool_need_lc=$archive_cmds_need_lc
  9417. # Whether or not to disallow shared libs when runtime libs are static
  9418. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9419. # Whether or not to optimize for fast installation.
  9420. fast_install=$enable_fast_install
  9421. # The host system.
  9422. host_alias=$host_alias
  9423. host=$host
  9424. host_os=$host_os
  9425. # The build system.
  9426. build_alias=$build_alias
  9427. build=$build
  9428. build_os=$build_os
  9429. # An echo program that does not interpret backslashes.
  9430. echo=$lt_echo
  9431. # The archiver.
  9432. AR=$lt_AR
  9433. AR_FLAGS=$lt_AR_FLAGS
  9434. # A C compiler.
  9435. LTCC=$lt_LTCC
  9436. # LTCC compiler flags.
  9437. LTCFLAGS=$lt_LTCFLAGS
  9438. # A language-specific compiler.
  9439. CC=$lt_compiler
  9440. # Is the compiler the GNU C compiler?
  9441. with_gcc=$GCC
  9442. # An ERE matcher.
  9443. EGREP=$lt_EGREP
  9444. # The linker used to build libraries.
  9445. LD=$lt_LD
  9446. # Whether we need hard or soft links.
  9447. LN_S=$lt_LN_S
  9448. # A BSD-compatible nm program.
  9449. NM=$lt_NM
  9450. # A symbol stripping program
  9451. STRIP=$lt_STRIP
  9452. # Used to examine libraries when file_magic_cmd begins "file"
  9453. MAGIC_CMD=$MAGIC_CMD
  9454. # Used on cygwin: DLL creation program.
  9455. DLLTOOL="$DLLTOOL"
  9456. # Used on cygwin: object dumper.
  9457. OBJDUMP="$OBJDUMP"
  9458. # Used on cygwin: assembler.
  9459. AS="$AS"
  9460. # The name of the directory that contains temporary libtool files.
  9461. objdir=$objdir
  9462. # How to create reloadable object files.
  9463. reload_flag=$lt_reload_flag
  9464. reload_cmds=$lt_reload_cmds
  9465. # How to pass a linker flag through the compiler.
  9466. wl=$lt_lt_prog_compiler_wl
  9467. # Object file suffix (normally "o").
  9468. objext="$ac_objext"
  9469. # Old archive suffix (normally "a").
  9470. libext="$libext"
  9471. # Shared library suffix (normally ".so").
  9472. shrext_cmds='$shrext_cmds'
  9473. # Executable file suffix (normally "").
  9474. exeext="$exeext"
  9475. # Additional compiler flags for building library objects.
  9476. pic_flag=$lt_lt_prog_compiler_pic
  9477. pic_mode=$pic_mode
  9478. # What is the maximum length of a command?
  9479. max_cmd_len=$lt_cv_sys_max_cmd_len
  9480. # Does compiler simultaneously support -c and -o options?
  9481. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9482. # Must we lock files when doing compilation?
  9483. need_locks=$lt_need_locks
  9484. # Do we need the lib prefix for modules?
  9485. need_lib_prefix=$need_lib_prefix
  9486. # Do we need a version for libraries?
  9487. need_version=$need_version
  9488. # Whether dlopen is supported.
  9489. dlopen_support=$enable_dlopen
  9490. # Whether dlopen of programs is supported.
  9491. dlopen_self=$enable_dlopen_self
  9492. # Whether dlopen of statically linked programs is supported.
  9493. dlopen_self_static=$enable_dlopen_self_static
  9494. # Compiler flag to prevent dynamic linking.
  9495. link_static_flag=$lt_lt_prog_compiler_static
  9496. # Compiler flag to turn off builtin functions.
  9497. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9498. # Compiler flag to allow reflexive dlopens.
  9499. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9500. # Compiler flag to generate shared objects directly from archives.
  9501. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9502. # Compiler flag to generate thread-safe objects.
  9503. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9504. # Library versioning type.
  9505. version_type=$version_type
  9506. # Format of library name prefix.
  9507. libname_spec=$lt_libname_spec
  9508. # List of archive names. First name is the real one, the rest are links.
  9509. # The last name is the one that the linker finds with -lNAME.
  9510. library_names_spec=$lt_library_names_spec
  9511. # The coded name of the library, if different from the real name.
  9512. soname_spec=$lt_soname_spec
  9513. # Commands used to build and install an old-style archive.
  9514. RANLIB=$lt_RANLIB
  9515. old_archive_cmds=$lt_old_archive_cmds
  9516. old_postinstall_cmds=$lt_old_postinstall_cmds
  9517. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9518. # Create an old-style archive from a shared archive.
  9519. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9520. # Create a temporary old-style archive to link instead of a shared archive.
  9521. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9522. # Commands used to build and install a shared archive.
  9523. archive_cmds=$lt_archive_cmds
  9524. archive_expsym_cmds=$lt_archive_expsym_cmds
  9525. postinstall_cmds=$lt_postinstall_cmds
  9526. postuninstall_cmds=$lt_postuninstall_cmds
  9527. # Commands used to build a loadable module (assumed same as above if empty)
  9528. module_cmds=$lt_module_cmds
  9529. module_expsym_cmds=$lt_module_expsym_cmds
  9530. # Commands to strip libraries.
  9531. old_striplib=$lt_old_striplib
  9532. striplib=$lt_striplib
  9533. # Dependencies to place before the objects being linked to create a
  9534. # shared library.
  9535. predep_objects=$lt_predep_objects
  9536. # Dependencies to place after the objects being linked to create a
  9537. # shared library.
  9538. postdep_objects=$lt_postdep_objects
  9539. # Dependencies to place before the objects being linked to create a
  9540. # shared library.
  9541. predeps=$lt_predeps
  9542. # Dependencies to place after the objects being linked to create a
  9543. # shared library.
  9544. postdeps=$lt_postdeps
  9545. # The library search path used internally by the compiler when linking
  9546. # a shared library.
  9547. compiler_lib_search_path=$lt_compiler_lib_search_path
  9548. # Method to check whether dependent libraries are shared objects.
  9549. deplibs_check_method=$lt_deplibs_check_method
  9550. # Command to use when deplibs_check_method == file_magic.
  9551. file_magic_cmd=$lt_file_magic_cmd
  9552. # Flag that allows shared libraries with undefined symbols to be built.
  9553. allow_undefined_flag=$lt_allow_undefined_flag
  9554. # Flag that forces no undefined symbols.
  9555. no_undefined_flag=$lt_no_undefined_flag
  9556. # Commands used to finish a libtool library installation in a directory.
  9557. finish_cmds=$lt_finish_cmds
  9558. # Same as above, but a single script fragment to be evaled but not shown.
  9559. finish_eval=$lt_finish_eval
  9560. # Take the output of nm and produce a listing of raw symbols and C names.
  9561. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9562. # Transform the output of nm in a proper C declaration
  9563. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9564. # Transform the output of nm in a C name address pair
  9565. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9566. # This is the shared library runtime path variable.
  9567. runpath_var=$runpath_var
  9568. # This is the shared library path variable.
  9569. shlibpath_var=$shlibpath_var
  9570. # Is shlibpath searched before the hard-coded library search path?
  9571. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9572. # How to hardcode a shared library path into an executable.
  9573. hardcode_action=$hardcode_action
  9574. # Whether we should hardcode library paths into libraries.
  9575. hardcode_into_libs=$hardcode_into_libs
  9576. # Flag to hardcode \$libdir into a binary during linking.
  9577. # This must work even if \$libdir does not exist.
  9578. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9579. # If ld is used when linking, flag to hardcode \$libdir into
  9580. # a binary during linking. This must work even if \$libdir does
  9581. # not exist.
  9582. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9583. # Whether we need a single -rpath flag with a separated argument.
  9584. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9585. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9586. # resulting binary.
  9587. hardcode_direct=$hardcode_direct
  9588. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9589. # resulting binary.
  9590. hardcode_minus_L=$hardcode_minus_L
  9591. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9592. # the resulting binary.
  9593. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9594. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9595. # and all subsequent libraries and executables linked against it.
  9596. hardcode_automatic=$hardcode_automatic
  9597. # Variables whose values should be saved in libtool wrapper scripts and
  9598. # restored at relink time.
  9599. variables_saved_for_relink="$variables_saved_for_relink"
  9600. # Whether libtool must link a program against all its dependency libraries.
  9601. link_all_deplibs=$link_all_deplibs
  9602. # Compile-time system search path for libraries
  9603. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9604. # Run-time system search path for libraries
  9605. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9606. # Fix the shell variable \$srcfile for the compiler.
  9607. fix_srcfile_path=$lt_fix_srcfile_path
  9608. # Set to yes if exported symbols are required.
  9609. always_export_symbols=$always_export_symbols
  9610. # The commands to list exported symbols.
  9611. export_symbols_cmds=$lt_export_symbols_cmds
  9612. # The commands to extract the exported symbol list from a shared archive.
  9613. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9614. # Symbols that should not be listed in the preloaded symbols.
  9615. exclude_expsyms=$lt_exclude_expsyms
  9616. # Symbols that must always be exported.
  9617. include_expsyms=$lt_include_expsyms
  9618. # ### END LIBTOOL CONFIG
  9619. __EOF__
  9620. case $host_os in
  9621. aix3*)
  9622. cat <<\EOF >> "$cfgfile"
  9623. # AIX sometimes has problems with the GCC collect2 program. For some
  9624. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9625. # vanish in a puff of smoke.
  9626. if test "X${COLLECT_NAMES+set}" != Xset; then
  9627. COLLECT_NAMES=
  9628. export COLLECT_NAMES
  9629. fi
  9630. EOF
  9631. ;;
  9632. esac
  9633. # We use sed instead of cat because bash on DJGPP gets confused if
  9634. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9635. # text mode, it properly converts lines to CR/LF. This bash problem
  9636. # is reportedly fixed, but why not run on old versions too?
  9637. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9638. mv -f "$cfgfile" "$ofile" || \
  9639. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9640. chmod +x "$ofile"
  9641. else
  9642. # If there is no Makefile yet, we rely on a make rule to execute
  9643. # `config.status --recheck' to rerun these tests and create the
  9644. # libtool script then.
  9645. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9646. if test -f "$ltmain_in"; then
  9647. test -f Makefile && make "$ltmain"
  9648. fi
  9649. fi
  9650. ac_ext=c
  9651. ac_cpp='$CPP $CPPFLAGS'
  9652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9655. CC="$lt_save_CC"
  9656. # Check whether --with-tags was given.
  9657. if test "${with_tags+set}" = set; then
  9658. withval=$with_tags; tagnames="$withval"
  9659. fi
  9660. if test -f "$ltmain" && test -n "$tagnames"; then
  9661. if test ! -f "${ofile}"; then
  9662. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9663. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9664. fi
  9665. if test -z "$LTCC"; then
  9666. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9667. if test -z "$LTCC"; then
  9668. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9669. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9670. else
  9671. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9672. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9673. fi
  9674. fi
  9675. if test -z "$LTCFLAGS"; then
  9676. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9677. fi
  9678. # Extract list of available tagged configurations in $ofile.
  9679. # Note that this assumes the entire list is on one line.
  9680. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9681. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9682. for tagname in $tagnames; do
  9683. IFS="$lt_save_ifs"
  9684. # Check whether tagname contains only valid characters
  9685. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9686. "") ;;
  9687. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9688. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9689. { (exit 1); exit 1; }; }
  9690. ;;
  9691. esac
  9692. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9693. then
  9694. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9695. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9696. { (exit 1); exit 1; }; }
  9697. fi
  9698. # Update the list of available tags.
  9699. if test -n "$tagname"; then
  9700. echo appending configuration tag \"$tagname\" to $ofile
  9701. case $tagname in
  9702. CXX)
  9703. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9704. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9705. (test "X$CXX" != "Xg++"))) ; then
  9706. ac_ext=cpp
  9707. ac_cpp='$CXXCPP $CPPFLAGS'
  9708. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9709. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9710. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9711. archive_cmds_need_lc_CXX=no
  9712. allow_undefined_flag_CXX=
  9713. always_export_symbols_CXX=no
  9714. archive_expsym_cmds_CXX=
  9715. export_dynamic_flag_spec_CXX=
  9716. hardcode_direct_CXX=no
  9717. hardcode_libdir_flag_spec_CXX=
  9718. hardcode_libdir_flag_spec_ld_CXX=
  9719. hardcode_libdir_separator_CXX=
  9720. hardcode_minus_L_CXX=no
  9721. hardcode_shlibpath_var_CXX=unsupported
  9722. hardcode_automatic_CXX=no
  9723. module_cmds_CXX=
  9724. module_expsym_cmds_CXX=
  9725. link_all_deplibs_CXX=unknown
  9726. old_archive_cmds_CXX=$old_archive_cmds
  9727. no_undefined_flag_CXX=
  9728. whole_archive_flag_spec_CXX=
  9729. enable_shared_with_static_runtimes_CXX=no
  9730. # Dependencies to place before and after the object being linked:
  9731. predep_objects_CXX=
  9732. postdep_objects_CXX=
  9733. predeps_CXX=
  9734. postdeps_CXX=
  9735. compiler_lib_search_path_CXX=
  9736. # Source file extension for C++ test sources.
  9737. ac_ext=cpp
  9738. # Object file extension for compiled C++ test sources.
  9739. objext=o
  9740. objext_CXX=$objext
  9741. # Code to be used in simple compile tests
  9742. lt_simple_compile_test_code="int some_variable = 0;"
  9743. # Code to be used in simple link tests
  9744. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9745. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9746. # If no C compiler was specified, use CC.
  9747. LTCC=${LTCC-"$CC"}
  9748. # If no C compiler flags were specified, use CFLAGS.
  9749. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9750. # Allow CC to be a program name with arguments.
  9751. compiler=$CC
  9752. # save warnings/boilerplate of simple test code
  9753. ac_outfile=conftest.$ac_objext
  9754. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9755. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9756. _lt_compiler_boilerplate=`cat conftest.err`
  9757. $rm conftest*
  9758. ac_outfile=conftest.$ac_objext
  9759. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9760. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9761. _lt_linker_boilerplate=`cat conftest.err`
  9762. $rm conftest*
  9763. # Allow CC to be a program name with arguments.
  9764. lt_save_CC=$CC
  9765. lt_save_LD=$LD
  9766. lt_save_GCC=$GCC
  9767. GCC=$GXX
  9768. lt_save_with_gnu_ld=$with_gnu_ld
  9769. lt_save_path_LD=$lt_cv_path_LD
  9770. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9771. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9772. else
  9773. $as_unset lt_cv_prog_gnu_ld
  9774. fi
  9775. if test -n "${lt_cv_path_LDCXX+set}"; then
  9776. lt_cv_path_LD=$lt_cv_path_LDCXX
  9777. else
  9778. $as_unset lt_cv_path_LD
  9779. fi
  9780. test -z "${LDCXX+set}" || LD=$LDCXX
  9781. CC=${CXX-"c++"}
  9782. compiler=$CC
  9783. compiler_CXX=$CC
  9784. for cc_temp in $compiler""; do
  9785. case $cc_temp in
  9786. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9787. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9788. \-*) ;;
  9789. *) break;;
  9790. esac
  9791. done
  9792. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9793. # We don't want -fno-exception wen compiling C++ code, so set the
  9794. # no_builtin_flag separately
  9795. if test "$GXX" = yes; then
  9796. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9797. else
  9798. lt_prog_compiler_no_builtin_flag_CXX=
  9799. fi
  9800. if test "$GXX" = yes; then
  9801. # Set up default GNU C++ configuration
  9802. # Check whether --with-gnu-ld was given.
  9803. if test "${with_gnu_ld+set}" = set; then
  9804. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9805. else
  9806. with_gnu_ld=no
  9807. fi
  9808. ac_prog=ld
  9809. if test "$GCC" = yes; then
  9810. # Check if gcc -print-prog-name=ld gives a path.
  9811. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9812. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9813. case $host in
  9814. *-*-mingw*)
  9815. # gcc leaves a trailing carriage return which upsets mingw
  9816. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9817. *)
  9818. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9819. esac
  9820. case $ac_prog in
  9821. # Accept absolute paths.
  9822. [\\/]* | ?:[\\/]*)
  9823. re_direlt='/[^/][^/]*/\.\./'
  9824. # Canonicalize the pathname of ld
  9825. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9826. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9827. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9828. done
  9829. test -z "$LD" && LD="$ac_prog"
  9830. ;;
  9831. "")
  9832. # If it fails, then pretend we aren't using GCC.
  9833. ac_prog=ld
  9834. ;;
  9835. *)
  9836. # If it is relative, then search for the first ld in PATH.
  9837. with_gnu_ld=unknown
  9838. ;;
  9839. esac
  9840. elif test "$with_gnu_ld" = yes; then
  9841. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9842. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9843. else
  9844. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9845. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9846. fi
  9847. if test "${lt_cv_path_LD+set}" = set; then
  9848. echo $ECHO_N "(cached) $ECHO_C" >&6
  9849. else
  9850. if test -z "$LD"; then
  9851. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9852. for ac_dir in $PATH; do
  9853. IFS="$lt_save_ifs"
  9854. test -z "$ac_dir" && ac_dir=.
  9855. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9856. lt_cv_path_LD="$ac_dir/$ac_prog"
  9857. # Check to see if the program is GNU ld. I'd rather use --version,
  9858. # but apparently some variants of GNU ld only accept -v.
  9859. # Break only if it was the GNU/non-GNU ld that we prefer.
  9860. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9861. *GNU* | *'with BFD'*)
  9862. test "$with_gnu_ld" != no && break
  9863. ;;
  9864. *)
  9865. test "$with_gnu_ld" != yes && break
  9866. ;;
  9867. esac
  9868. fi
  9869. done
  9870. IFS="$lt_save_ifs"
  9871. else
  9872. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9873. fi
  9874. fi
  9875. LD="$lt_cv_path_LD"
  9876. if test -n "$LD"; then
  9877. { echo "$as_me:$LINENO: result: $LD" >&5
  9878. echo "${ECHO_T}$LD" >&6; }
  9879. else
  9880. { echo "$as_me:$LINENO: result: no" >&5
  9881. echo "${ECHO_T}no" >&6; }
  9882. fi
  9883. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9884. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9885. { (exit 1); exit 1; }; }
  9886. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9887. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9888. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9889. echo $ECHO_N "(cached) $ECHO_C" >&6
  9890. else
  9891. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9892. case `$LD -v 2>&1 </dev/null` in
  9893. *GNU* | *'with BFD'*)
  9894. lt_cv_prog_gnu_ld=yes
  9895. ;;
  9896. *)
  9897. lt_cv_prog_gnu_ld=no
  9898. ;;
  9899. esac
  9900. fi
  9901. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9902. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9903. with_gnu_ld=$lt_cv_prog_gnu_ld
  9904. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9905. # archiving commands below assume that GNU ld is being used.
  9906. if test "$with_gnu_ld" = yes; then
  9907. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9908. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9909. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9910. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9911. # If archive_cmds runs LD, not CC, wlarc should be empty
  9912. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9913. # investigate it a little bit more. (MM)
  9914. wlarc='${wl}'
  9915. # ancient GNU ld didn't support --whole-archive et. al.
  9916. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9917. grep 'no-whole-archive' > /dev/null; then
  9918. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9919. else
  9920. whole_archive_flag_spec_CXX=
  9921. fi
  9922. else
  9923. with_gnu_ld=no
  9924. wlarc=
  9925. # A generic and very simple default shared library creation
  9926. # command for GNU C++ for the case where it uses the native
  9927. # linker, instead of GNU ld. If possible, this setting should
  9928. # overridden to take advantage of the native linker features on
  9929. # the platform it is being used on.
  9930. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9931. fi
  9932. # Commands to make compiler produce verbose output that lists
  9933. # what "hidden" libraries, object files and flags are used when
  9934. # linking a shared library.
  9935. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9936. else
  9937. GXX=no
  9938. with_gnu_ld=no
  9939. wlarc=
  9940. fi
  9941. # PORTME: fill in a description of your system's C++ link characteristics
  9942. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9943. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9944. ld_shlibs_CXX=yes
  9945. case $host_os in
  9946. aix3*)
  9947. # FIXME: insert proper C++ library support
  9948. ld_shlibs_CXX=no
  9949. ;;
  9950. aix4* | aix5*)
  9951. if test "$host_cpu" = ia64; then
  9952. # On IA64, the linker does run time linking by default, so we don't
  9953. # have to do anything special.
  9954. aix_use_runtimelinking=no
  9955. exp_sym_flag='-Bexport'
  9956. no_entry_flag=""
  9957. else
  9958. aix_use_runtimelinking=no
  9959. # Test if we are trying to use run time linking or normal
  9960. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9961. # need to do runtime linking.
  9962. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9963. for ld_flag in $LDFLAGS; do
  9964. case $ld_flag in
  9965. *-brtl*)
  9966. aix_use_runtimelinking=yes
  9967. break
  9968. ;;
  9969. esac
  9970. done
  9971. ;;
  9972. esac
  9973. exp_sym_flag='-bexport'
  9974. no_entry_flag='-bnoentry'
  9975. fi
  9976. # When large executables or shared objects are built, AIX ld can
  9977. # have problems creating the table of contents. If linking a library
  9978. # or program results in "error TOC overflow" add -mminimal-toc to
  9979. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9980. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9981. archive_cmds_CXX=''
  9982. hardcode_direct_CXX=yes
  9983. hardcode_libdir_separator_CXX=':'
  9984. link_all_deplibs_CXX=yes
  9985. if test "$GXX" = yes; then
  9986. case $host_os in aix4.[012]|aix4.[012].*)
  9987. # We only want to do this on AIX 4.2 and lower, the check
  9988. # below for broken collect2 doesn't work under 4.3+
  9989. collect2name=`${CC} -print-prog-name=collect2`
  9990. if test -f "$collect2name" && \
  9991. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9992. then
  9993. # We have reworked collect2
  9994. :
  9995. else
  9996. # We have old collect2
  9997. hardcode_direct_CXX=unsupported
  9998. # It fails to find uninstalled libraries when the uninstalled
  9999. # path is not listed in the libpath. Setting hardcode_minus_L
  10000. # to unsupported forces relinking
  10001. hardcode_minus_L_CXX=yes
  10002. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10003. hardcode_libdir_separator_CXX=
  10004. fi
  10005. ;;
  10006. esac
  10007. shared_flag='-shared'
  10008. if test "$aix_use_runtimelinking" = yes; then
  10009. shared_flag="$shared_flag "'${wl}-G'
  10010. fi
  10011. else
  10012. # not using gcc
  10013. if test "$host_cpu" = ia64; then
  10014. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10015. # chokes on -Wl,-G. The following line is correct:
  10016. shared_flag='-G'
  10017. else
  10018. if test "$aix_use_runtimelinking" = yes; then
  10019. shared_flag='${wl}-G'
  10020. else
  10021. shared_flag='${wl}-bM:SRE'
  10022. fi
  10023. fi
  10024. fi
  10025. # It seems that -bexpall does not export symbols beginning with
  10026. # underscore (_), so it is better to generate a list of symbols to export.
  10027. always_export_symbols_CXX=yes
  10028. if test "$aix_use_runtimelinking" = yes; then
  10029. # Warning - without using the other runtime loading flags (-brtl),
  10030. # -berok will link without error, but may produce a broken library.
  10031. allow_undefined_flag_CXX='-berok'
  10032. # Determine the default libpath from the value encoded in an empty executable.
  10033. cat >conftest.$ac_ext <<_ACEOF
  10034. /* confdefs.h. */
  10035. _ACEOF
  10036. cat confdefs.h >>conftest.$ac_ext
  10037. cat >>conftest.$ac_ext <<_ACEOF
  10038. /* end confdefs.h. */
  10039. int
  10040. main ()
  10041. {
  10042. ;
  10043. return 0;
  10044. }
  10045. _ACEOF
  10046. rm -f conftest.$ac_objext conftest$ac_exeext
  10047. if { (ac_try="$ac_link"
  10048. case "(($ac_try" in
  10049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10050. *) ac_try_echo=$ac_try;;
  10051. esac
  10052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10053. (eval "$ac_link") 2>conftest.er1
  10054. ac_status=$?
  10055. grep -v '^ *+' conftest.er1 >conftest.err
  10056. rm -f conftest.er1
  10057. cat conftest.err >&5
  10058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10059. (exit $ac_status); } && {
  10060. test -z "$ac_cxx_werror_flag" ||
  10061. test ! -s conftest.err
  10062. } && test -s conftest$ac_exeext &&
  10063. $as_test_x conftest$ac_exeext; then
  10064. lt_aix_libpath_sed='
  10065. /Import File Strings/,/^$/ {
  10066. /^0/ {
  10067. s/^0 *\(.*\)$/\1/
  10068. p
  10069. }
  10070. }'
  10071. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10072. # Check for a 64-bit object if we didn't find anything.
  10073. if test -z "$aix_libpath"; then
  10074. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10075. fi
  10076. else
  10077. echo "$as_me: failed program was:" >&5
  10078. sed 's/^/| /' conftest.$ac_ext >&5
  10079. fi
  10080. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10081. conftest$ac_exeext conftest.$ac_ext
  10082. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10083. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10084. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10085. else
  10086. if test "$host_cpu" = ia64; then
  10087. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10088. allow_undefined_flag_CXX="-z nodefs"
  10089. archive_expsym_cmds_CXX="\$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"
  10090. else
  10091. # Determine the default libpath from the value encoded in an empty executable.
  10092. cat >conftest.$ac_ext <<_ACEOF
  10093. /* confdefs.h. */
  10094. _ACEOF
  10095. cat confdefs.h >>conftest.$ac_ext
  10096. cat >>conftest.$ac_ext <<_ACEOF
  10097. /* end confdefs.h. */
  10098. int
  10099. main ()
  10100. {
  10101. ;
  10102. return 0;
  10103. }
  10104. _ACEOF
  10105. rm -f conftest.$ac_objext conftest$ac_exeext
  10106. if { (ac_try="$ac_link"
  10107. case "(($ac_try" in
  10108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10109. *) ac_try_echo=$ac_try;;
  10110. esac
  10111. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10112. (eval "$ac_link") 2>conftest.er1
  10113. ac_status=$?
  10114. grep -v '^ *+' conftest.er1 >conftest.err
  10115. rm -f conftest.er1
  10116. cat conftest.err >&5
  10117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10118. (exit $ac_status); } && {
  10119. test -z "$ac_cxx_werror_flag" ||
  10120. test ! -s conftest.err
  10121. } && test -s conftest$ac_exeext &&
  10122. $as_test_x conftest$ac_exeext; then
  10123. lt_aix_libpath_sed='
  10124. /Import File Strings/,/^$/ {
  10125. /^0/ {
  10126. s/^0 *\(.*\)$/\1/
  10127. p
  10128. }
  10129. }'
  10130. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10131. # Check for a 64-bit object if we didn't find anything.
  10132. if test -z "$aix_libpath"; then
  10133. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10134. fi
  10135. else
  10136. echo "$as_me: failed program was:" >&5
  10137. sed 's/^/| /' conftest.$ac_ext >&5
  10138. fi
  10139. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10140. conftest$ac_exeext conftest.$ac_ext
  10141. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10142. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10143. # Warning - without using the other run time loading flags,
  10144. # -berok will link without error, but may produce a broken library.
  10145. no_undefined_flag_CXX=' ${wl}-bernotok'
  10146. allow_undefined_flag_CXX=' ${wl}-berok'
  10147. # Exported symbols can be pulled into shared objects from archives
  10148. whole_archive_flag_spec_CXX='$convenience'
  10149. archive_cmds_need_lc_CXX=yes
  10150. # This is similar to how AIX traditionally builds its shared libraries.
  10151. archive_expsym_cmds_CXX="\$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'
  10152. fi
  10153. fi
  10154. ;;
  10155. beos*)
  10156. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10157. allow_undefined_flag_CXX=unsupported
  10158. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10159. # support --undefined. This deserves some investigation. FIXME
  10160. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10161. else
  10162. ld_shlibs_CXX=no
  10163. fi
  10164. ;;
  10165. chorus*)
  10166. case $cc_basename in
  10167. *)
  10168. # FIXME: insert proper C++ library support
  10169. ld_shlibs_CXX=no
  10170. ;;
  10171. esac
  10172. ;;
  10173. cygwin* | mingw* | pw32*)
  10174. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10175. # as there is no search path for DLLs.
  10176. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10177. allow_undefined_flag_CXX=unsupported
  10178. always_export_symbols_CXX=no
  10179. enable_shared_with_static_runtimes_CXX=yes
  10180. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10181. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10182. # If the export-symbols file already is a .def file (1st line
  10183. # is EXPORTS), use it as is; otherwise, prepend...
  10184. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10185. cp $export_symbols $output_objdir/$soname.def;
  10186. else
  10187. echo EXPORTS > $output_objdir/$soname.def;
  10188. cat $export_symbols >> $output_objdir/$soname.def;
  10189. fi~
  10190. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10191. else
  10192. ld_shlibs_CXX=no
  10193. fi
  10194. ;;
  10195. darwin* | rhapsody*)
  10196. case $host_os in
  10197. rhapsody* | darwin1.[012])
  10198. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10199. ;;
  10200. *) # Darwin 1.3 on
  10201. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10202. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10203. else
  10204. case ${MACOSX_DEPLOYMENT_TARGET} in
  10205. 10.[012])
  10206. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10207. ;;
  10208. 10.*)
  10209. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10210. ;;
  10211. esac
  10212. fi
  10213. ;;
  10214. esac
  10215. archive_cmds_need_lc_CXX=no
  10216. hardcode_direct_CXX=no
  10217. hardcode_automatic_CXX=yes
  10218. hardcode_shlibpath_var_CXX=unsupported
  10219. whole_archive_flag_spec_CXX=''
  10220. link_all_deplibs_CXX=yes
  10221. if test "$GXX" = yes ; then
  10222. lt_int_apple_cc_single_mod=no
  10223. output_verbose_link_cmd='echo'
  10224. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10225. lt_int_apple_cc_single_mod=yes
  10226. fi
  10227. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10228. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10229. else
  10230. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10231. fi
  10232. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10233. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10234. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10235. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10236. else
  10237. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10238. fi
  10239. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10240. else
  10241. case $cc_basename in
  10242. xlc*)
  10243. output_verbose_link_cmd='echo'
  10244. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10245. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10246. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10247. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10248. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10249. ;;
  10250. *)
  10251. ld_shlibs_CXX=no
  10252. ;;
  10253. esac
  10254. fi
  10255. ;;
  10256. dgux*)
  10257. case $cc_basename in
  10258. ec++*)
  10259. # FIXME: insert proper C++ library support
  10260. ld_shlibs_CXX=no
  10261. ;;
  10262. ghcx*)
  10263. # Green Hills C++ Compiler
  10264. # FIXME: insert proper C++ library support
  10265. ld_shlibs_CXX=no
  10266. ;;
  10267. *)
  10268. # FIXME: insert proper C++ library support
  10269. ld_shlibs_CXX=no
  10270. ;;
  10271. esac
  10272. ;;
  10273. freebsd[12]*)
  10274. # C++ shared libraries reported to be fairly broken before switch to ELF
  10275. ld_shlibs_CXX=no
  10276. ;;
  10277. freebsd-elf*)
  10278. archive_cmds_need_lc_CXX=no
  10279. ;;
  10280. freebsd* | dragonfly*)
  10281. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10282. # conventions
  10283. ld_shlibs_CXX=yes
  10284. ;;
  10285. gnu*)
  10286. ;;
  10287. hpux9*)
  10288. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10289. hardcode_libdir_separator_CXX=:
  10290. export_dynamic_flag_spec_CXX='${wl}-E'
  10291. hardcode_direct_CXX=yes
  10292. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10293. # but as the default
  10294. # location of the library.
  10295. case $cc_basename in
  10296. CC*)
  10297. # FIXME: insert proper C++ library support
  10298. ld_shlibs_CXX=no
  10299. ;;
  10300. aCC*)
  10301. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10302. # Commands to make compiler produce verbose output that lists
  10303. # what "hidden" libraries, object files and flags are used when
  10304. # linking a shared library.
  10305. #
  10306. # There doesn't appear to be a way to prevent this compiler from
  10307. # explicitly linking system object files so we need to strip them
  10308. # from the output so that they don't get included in the library
  10309. # dependencies.
  10310. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10311. ;;
  10312. *)
  10313. if test "$GXX" = yes; then
  10314. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10315. else
  10316. # FIXME: insert proper C++ library support
  10317. ld_shlibs_CXX=no
  10318. fi
  10319. ;;
  10320. esac
  10321. ;;
  10322. hpux10*|hpux11*)
  10323. if test $with_gnu_ld = no; then
  10324. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10325. hardcode_libdir_separator_CXX=:
  10326. case $host_cpu in
  10327. hppa*64*|ia64*) ;;
  10328. *)
  10329. export_dynamic_flag_spec_CXX='${wl}-E'
  10330. ;;
  10331. esac
  10332. fi
  10333. case $host_cpu in
  10334. hppa*64*|ia64*)
  10335. hardcode_direct_CXX=no
  10336. hardcode_shlibpath_var_CXX=no
  10337. ;;
  10338. *)
  10339. hardcode_direct_CXX=yes
  10340. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10341. # but as the default
  10342. # location of the library.
  10343. ;;
  10344. esac
  10345. case $cc_basename in
  10346. CC*)
  10347. # FIXME: insert proper C++ library support
  10348. ld_shlibs_CXX=no
  10349. ;;
  10350. aCC*)
  10351. case $host_cpu in
  10352. hppa*64*)
  10353. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10354. ;;
  10355. ia64*)
  10356. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10357. ;;
  10358. *)
  10359. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10360. ;;
  10361. esac
  10362. # Commands to make compiler produce verbose output that lists
  10363. # what "hidden" libraries, object files and flags are used when
  10364. # linking a shared library.
  10365. #
  10366. # There doesn't appear to be a way to prevent this compiler from
  10367. # explicitly linking system object files so we need to strip them
  10368. # from the output so that they don't get included in the library
  10369. # dependencies.
  10370. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10371. ;;
  10372. *)
  10373. if test "$GXX" = yes; then
  10374. if test $with_gnu_ld = no; then
  10375. case $host_cpu in
  10376. hppa*64*)
  10377. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10378. ;;
  10379. ia64*)
  10380. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10381. ;;
  10382. *)
  10383. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10384. ;;
  10385. esac
  10386. fi
  10387. else
  10388. # FIXME: insert proper C++ library support
  10389. ld_shlibs_CXX=no
  10390. fi
  10391. ;;
  10392. esac
  10393. ;;
  10394. interix[3-9]*)
  10395. hardcode_direct_CXX=no
  10396. hardcode_shlibpath_var_CXX=no
  10397. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10398. export_dynamic_flag_spec_CXX='${wl}-E'
  10399. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10400. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10401. # default) and relocated if they conflict, which is a slow very memory
  10402. # consuming and fragmenting process. To avoid this, we pick a random,
  10403. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10404. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10405. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10406. archive_expsym_cmds_CXX='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'
  10407. ;;
  10408. irix5* | irix6*)
  10409. case $cc_basename in
  10410. CC*)
  10411. # SGI C++
  10412. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10413. # Archives containing C++ object files must be created using
  10414. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10415. # necessary to make sure instantiated templates are included
  10416. # in the archive.
  10417. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10418. ;;
  10419. *)
  10420. if test "$GXX" = yes; then
  10421. if test "$with_gnu_ld" = no; then
  10422. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10423. else
  10424. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  10425. fi
  10426. fi
  10427. link_all_deplibs_CXX=yes
  10428. ;;
  10429. esac
  10430. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10431. hardcode_libdir_separator_CXX=:
  10432. ;;
  10433. linux* | k*bsd*-gnu)
  10434. case $cc_basename in
  10435. KCC*)
  10436. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10437. # KCC will only create a shared library if the output file
  10438. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10439. # to its proper name (with version) after linking.
  10440. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10441. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10442. # Commands to make compiler produce verbose output that lists
  10443. # what "hidden" libraries, object files and flags are used when
  10444. # linking a shared library.
  10445. #
  10446. # There doesn't appear to be a way to prevent this compiler from
  10447. # explicitly linking system object files so we need to strip them
  10448. # from the output so that they don't get included in the library
  10449. # dependencies.
  10450. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10451. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10452. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10453. # Archives containing C++ object files must be created using
  10454. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10455. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10456. ;;
  10457. icpc*)
  10458. # Intel C++
  10459. with_gnu_ld=yes
  10460. # version 8.0 and above of icpc choke on multiply defined symbols
  10461. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10462. # earlier do not add the objects themselves.
  10463. case `$CC -V 2>&1` in
  10464. *"Version 7."*)
  10465. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10466. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10467. ;;
  10468. *) # Version 8.0 or newer
  10469. tmp_idyn=
  10470. case $host_cpu in
  10471. ia64*) tmp_idyn=' -i_dynamic';;
  10472. esac
  10473. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10474. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10475. ;;
  10476. esac
  10477. archive_cmds_need_lc_CXX=no
  10478. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10479. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10480. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10481. ;;
  10482. pgCC*)
  10483. # Portland Group C++ compiler
  10484. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10485. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10486. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10487. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10488. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10489. ;;
  10490. cxx*)
  10491. # Compaq C++
  10492. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10493. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10494. runpath_var=LD_RUN_PATH
  10495. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10496. hardcode_libdir_separator_CXX=:
  10497. # Commands to make compiler produce verbose output that lists
  10498. # what "hidden" libraries, object files and flags are used when
  10499. # linking a shared library.
  10500. #
  10501. # There doesn't appear to be a way to prevent this compiler from
  10502. # explicitly linking system object files so we need to strip them
  10503. # from the output so that they don't get included in the library
  10504. # dependencies.
  10505. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10506. ;;
  10507. *)
  10508. case `$CC -V 2>&1 | sed 5q` in
  10509. *Sun\ C*)
  10510. # Sun C++ 5.9
  10511. no_undefined_flag_CXX=' -zdefs'
  10512. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10513. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10514. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10515. whole_archive_flag_spec_CXX='${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'
  10516. # Not sure whether something based on
  10517. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10518. # would be better.
  10519. output_verbose_link_cmd='echo'
  10520. # Archives containing C++ object files must be created using
  10521. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10522. # necessary to make sure instantiated templates are included
  10523. # in the archive.
  10524. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10525. ;;
  10526. esac
  10527. ;;
  10528. esac
  10529. ;;
  10530. lynxos*)
  10531. # FIXME: insert proper C++ library support
  10532. ld_shlibs_CXX=no
  10533. ;;
  10534. m88k*)
  10535. # FIXME: insert proper C++ library support
  10536. ld_shlibs_CXX=no
  10537. ;;
  10538. mvs*)
  10539. case $cc_basename in
  10540. cxx*)
  10541. # FIXME: insert proper C++ library support
  10542. ld_shlibs_CXX=no
  10543. ;;
  10544. *)
  10545. # FIXME: insert proper C++ library support
  10546. ld_shlibs_CXX=no
  10547. ;;
  10548. esac
  10549. ;;
  10550. netbsd*)
  10551. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10552. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10553. wlarc=
  10554. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10555. hardcode_direct_CXX=yes
  10556. hardcode_shlibpath_var_CXX=no
  10557. fi
  10558. # Workaround some broken pre-1.5 toolchains
  10559. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10560. ;;
  10561. openbsd2*)
  10562. # C++ shared libraries are fairly broken
  10563. ld_shlibs_CXX=no
  10564. ;;
  10565. openbsd*)
  10566. if test -f /usr/libexec/ld.so; then
  10567. hardcode_direct_CXX=yes
  10568. hardcode_shlibpath_var_CXX=no
  10569. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10570. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10571. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10572. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10573. export_dynamic_flag_spec_CXX='${wl}-E'
  10574. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10575. fi
  10576. output_verbose_link_cmd='echo'
  10577. else
  10578. ld_shlibs_CXX=no
  10579. fi
  10580. ;;
  10581. osf3*)
  10582. case $cc_basename in
  10583. KCC*)
  10584. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10585. # KCC will only create a shared library if the output file
  10586. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10587. # to its proper name (with version) after linking.
  10588. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10589. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10590. hardcode_libdir_separator_CXX=:
  10591. # Archives containing C++ object files must be created using
  10592. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10593. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10594. ;;
  10595. RCC*)
  10596. # Rational C++ 2.4.1
  10597. # FIXME: insert proper C++ library support
  10598. ld_shlibs_CXX=no
  10599. ;;
  10600. cxx*)
  10601. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10602. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10603. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10604. hardcode_libdir_separator_CXX=:
  10605. # Commands to make compiler produce verbose output that lists
  10606. # what "hidden" libraries, object files and flags are used when
  10607. # linking a shared library.
  10608. #
  10609. # There doesn't appear to be a way to prevent this compiler from
  10610. # explicitly linking system object files so we need to strip them
  10611. # from the output so that they don't get included in the library
  10612. # dependencies.
  10613. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10614. ;;
  10615. *)
  10616. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10617. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10618. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10619. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10620. hardcode_libdir_separator_CXX=:
  10621. # Commands to make compiler produce verbose output that lists
  10622. # what "hidden" libraries, object files and flags are used when
  10623. # linking a shared library.
  10624. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10625. else
  10626. # FIXME: insert proper C++ library support
  10627. ld_shlibs_CXX=no
  10628. fi
  10629. ;;
  10630. esac
  10631. ;;
  10632. osf4* | osf5*)
  10633. case $cc_basename in
  10634. KCC*)
  10635. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10636. # KCC will only create a shared library if the output file
  10637. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10638. # to its proper name (with version) after linking.
  10639. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10640. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10641. hardcode_libdir_separator_CXX=:
  10642. # Archives containing C++ object files must be created using
  10643. # the KAI C++ compiler.
  10644. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10645. ;;
  10646. RCC*)
  10647. # Rational C++ 2.4.1
  10648. # FIXME: insert proper C++ library support
  10649. ld_shlibs_CXX=no
  10650. ;;
  10651. cxx*)
  10652. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10653. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10654. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10655. echo "-hidden">> $lib.exp~
  10656. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  10657. $rm $lib.exp'
  10658. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10659. hardcode_libdir_separator_CXX=:
  10660. # Commands to make compiler produce verbose output that lists
  10661. # what "hidden" libraries, object files and flags are used when
  10662. # linking a shared library.
  10663. #
  10664. # There doesn't appear to be a way to prevent this compiler from
  10665. # explicitly linking system object files so we need to strip them
  10666. # from the output so that they don't get included in the library
  10667. # dependencies.
  10668. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10669. ;;
  10670. *)
  10671. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10672. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10673. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10674. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10675. hardcode_libdir_separator_CXX=:
  10676. # Commands to make compiler produce verbose output that lists
  10677. # what "hidden" libraries, object files and flags are used when
  10678. # linking a shared library.
  10679. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10680. else
  10681. # FIXME: insert proper C++ library support
  10682. ld_shlibs_CXX=no
  10683. fi
  10684. ;;
  10685. esac
  10686. ;;
  10687. psos*)
  10688. # FIXME: insert proper C++ library support
  10689. ld_shlibs_CXX=no
  10690. ;;
  10691. sunos4*)
  10692. case $cc_basename in
  10693. CC*)
  10694. # Sun C++ 4.x
  10695. # FIXME: insert proper C++ library support
  10696. ld_shlibs_CXX=no
  10697. ;;
  10698. lcc*)
  10699. # Lucid
  10700. # FIXME: insert proper C++ library support
  10701. ld_shlibs_CXX=no
  10702. ;;
  10703. *)
  10704. # FIXME: insert proper C++ library support
  10705. ld_shlibs_CXX=no
  10706. ;;
  10707. esac
  10708. ;;
  10709. solaris*)
  10710. case $cc_basename in
  10711. CC*)
  10712. # Sun C++ 4.2, 5.x and Centerline C++
  10713. archive_cmds_need_lc_CXX=yes
  10714. no_undefined_flag_CXX=' -zdefs'
  10715. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10716. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10717. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10718. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10719. hardcode_shlibpath_var_CXX=no
  10720. case $host_os in
  10721. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10722. *)
  10723. # The compiler driver will combine and reorder linker options,
  10724. # but understands `-z linker_flag'.
  10725. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10726. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10727. ;;
  10728. esac
  10729. link_all_deplibs_CXX=yes
  10730. output_verbose_link_cmd='echo'
  10731. # Archives containing C++ object files must be created using
  10732. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10733. # necessary to make sure instantiated templates are included
  10734. # in the archive.
  10735. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10736. ;;
  10737. gcx*)
  10738. # Green Hills C++ Compiler
  10739. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10740. # The C++ compiler must be used to create the archive.
  10741. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10742. ;;
  10743. *)
  10744. # GNU C++ compiler with Solaris linker
  10745. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10746. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10747. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10748. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10749. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10750. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10751. # Commands to make compiler produce verbose output that lists
  10752. # what "hidden" libraries, object files and flags are used when
  10753. # linking a shared library.
  10754. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10755. else
  10756. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10757. # platform.
  10758. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10759. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10760. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10761. # Commands to make compiler produce verbose output that lists
  10762. # what "hidden" libraries, object files and flags are used when
  10763. # linking a shared library.
  10764. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10765. fi
  10766. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10767. case $host_os in
  10768. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10769. *)
  10770. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10771. ;;
  10772. esac
  10773. fi
  10774. ;;
  10775. esac
  10776. ;;
  10777. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10778. no_undefined_flag_CXX='${wl}-z,text'
  10779. archive_cmds_need_lc_CXX=no
  10780. hardcode_shlibpath_var_CXX=no
  10781. runpath_var='LD_RUN_PATH'
  10782. case $cc_basename in
  10783. CC*)
  10784. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10785. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10786. ;;
  10787. *)
  10788. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10789. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10790. ;;
  10791. esac
  10792. ;;
  10793. sysv5* | sco3.2v5* | sco5v6*)
  10794. # Note: We can NOT use -z defs as we might desire, because we do not
  10795. # link with -lc, and that would cause any symbols used from libc to
  10796. # always be unresolved, which means just about no library would
  10797. # ever link correctly. If we're not using GNU ld we use -z text
  10798. # though, which does catch some bad symbols but isn't as heavy-handed
  10799. # as -z defs.
  10800. # For security reasons, it is highly recommended that you always
  10801. # use absolute paths for naming shared libraries, and exclude the
  10802. # DT_RUNPATH tag from executables and libraries. But doing so
  10803. # requires that you compile everything twice, which is a pain.
  10804. # So that behaviour is only enabled if SCOABSPATH is set to a
  10805. # non-empty value in the environment. Most likely only useful for
  10806. # creating official distributions of packages.
  10807. # This is a hack until libtool officially supports absolute path
  10808. # names for shared libraries.
  10809. no_undefined_flag_CXX='${wl}-z,text'
  10810. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10811. archive_cmds_need_lc_CXX=no
  10812. hardcode_shlibpath_var_CXX=no
  10813. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10814. hardcode_libdir_separator_CXX=':'
  10815. link_all_deplibs_CXX=yes
  10816. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10817. runpath_var='LD_RUN_PATH'
  10818. case $cc_basename in
  10819. CC*)
  10820. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10821. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10822. ;;
  10823. *)
  10824. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10825. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10826. ;;
  10827. esac
  10828. ;;
  10829. tandem*)
  10830. case $cc_basename in
  10831. NCC*)
  10832. # NonStop-UX NCC 3.20
  10833. # FIXME: insert proper C++ library support
  10834. ld_shlibs_CXX=no
  10835. ;;
  10836. *)
  10837. # FIXME: insert proper C++ library support
  10838. ld_shlibs_CXX=no
  10839. ;;
  10840. esac
  10841. ;;
  10842. vxworks*)
  10843. # FIXME: insert proper C++ library support
  10844. ld_shlibs_CXX=no
  10845. ;;
  10846. *)
  10847. # FIXME: insert proper C++ library support
  10848. ld_shlibs_CXX=no
  10849. ;;
  10850. esac
  10851. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10852. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10853. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10854. GCC_CXX="$GXX"
  10855. LD_CXX="$LD"
  10856. cat > conftest.$ac_ext <<EOF
  10857. class Foo
  10858. {
  10859. public:
  10860. Foo (void) { a = 0; }
  10861. private:
  10862. int a;
  10863. };
  10864. EOF
  10865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10866. (eval $ac_compile) 2>&5
  10867. ac_status=$?
  10868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10869. (exit $ac_status); }; then
  10870. # Parse the compiler output and extract the necessary
  10871. # objects, libraries and library flags.
  10872. # Sentinel used to keep track of whether or not we are before
  10873. # the conftest object file.
  10874. pre_test_object_deps_done=no
  10875. # The `*' in the case matches for architectures that use `case' in
  10876. # $output_verbose_cmd can trigger glob expansion during the loop
  10877. # eval without this substitution.
  10878. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10879. for p in `eval $output_verbose_link_cmd`; do
  10880. case $p in
  10881. -L* | -R* | -l*)
  10882. # Some compilers place space between "-{L,R}" and the path.
  10883. # Remove the space.
  10884. if test $p = "-L" \
  10885. || test $p = "-R"; then
  10886. prev=$p
  10887. continue
  10888. else
  10889. prev=
  10890. fi
  10891. if test "$pre_test_object_deps_done" = no; then
  10892. case $p in
  10893. -L* | -R*)
  10894. # Internal compiler library paths should come after those
  10895. # provided the user. The postdeps already come after the
  10896. # user supplied libs so there is no need to process them.
  10897. if test -z "$compiler_lib_search_path_CXX"; then
  10898. compiler_lib_search_path_CXX="${prev}${p}"
  10899. else
  10900. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10901. fi
  10902. ;;
  10903. # The "-l" case would never come before the object being
  10904. # linked, so don't bother handling this case.
  10905. esac
  10906. else
  10907. if test -z "$postdeps_CXX"; then
  10908. postdeps_CXX="${prev}${p}"
  10909. else
  10910. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10911. fi
  10912. fi
  10913. ;;
  10914. *.$objext)
  10915. # This assumes that the test object file only shows up
  10916. # once in the compiler output.
  10917. if test "$p" = "conftest.$objext"; then
  10918. pre_test_object_deps_done=yes
  10919. continue
  10920. fi
  10921. if test "$pre_test_object_deps_done" = no; then
  10922. if test -z "$predep_objects_CXX"; then
  10923. predep_objects_CXX="$p"
  10924. else
  10925. predep_objects_CXX="$predep_objects_CXX $p"
  10926. fi
  10927. else
  10928. if test -z "$postdep_objects_CXX"; then
  10929. postdep_objects_CXX="$p"
  10930. else
  10931. postdep_objects_CXX="$postdep_objects_CXX $p"
  10932. fi
  10933. fi
  10934. ;;
  10935. *) ;; # Ignore the rest.
  10936. esac
  10937. done
  10938. # Clean up.
  10939. rm -f a.out a.exe
  10940. else
  10941. echo "libtool.m4: error: problem compiling CXX test program"
  10942. fi
  10943. $rm -f confest.$objext
  10944. # PORTME: override above test on systems where it is broken
  10945. case $host_os in
  10946. interix[3-9]*)
  10947. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10948. # hack all around it, let's just trust "g++" to DTRT.
  10949. predep_objects_CXX=
  10950. postdep_objects_CXX=
  10951. postdeps_CXX=
  10952. ;;
  10953. linux*)
  10954. case `$CC -V 2>&1 | sed 5q` in
  10955. *Sun\ C*)
  10956. # Sun C++ 5.9
  10957. #
  10958. # The more standards-conforming stlport4 library is
  10959. # incompatible with the Cstd library. Avoid specifying
  10960. # it if it's in CXXFLAGS. Ignore libCrun as
  10961. # -library=stlport4 depends on it.
  10962. case " $CXX $CXXFLAGS " in
  10963. *" -library=stlport4 "*)
  10964. solaris_use_stlport4=yes
  10965. ;;
  10966. esac
  10967. if test "$solaris_use_stlport4" != yes; then
  10968. postdeps_CXX='-library=Cstd -library=Crun'
  10969. fi
  10970. ;;
  10971. esac
  10972. ;;
  10973. solaris*)
  10974. case $cc_basename in
  10975. CC*)
  10976. # The more standards-conforming stlport4 library is
  10977. # incompatible with the Cstd library. Avoid specifying
  10978. # it if it's in CXXFLAGS. Ignore libCrun as
  10979. # -library=stlport4 depends on it.
  10980. case " $CXX $CXXFLAGS " in
  10981. *" -library=stlport4 "*)
  10982. solaris_use_stlport4=yes
  10983. ;;
  10984. esac
  10985. # Adding this requires a known-good setup of shared libraries for
  10986. # Sun compiler versions before 5.6, else PIC objects from an old
  10987. # archive will be linked into the output, leading to subtle bugs.
  10988. if test "$solaris_use_stlport4" != yes; then
  10989. postdeps_CXX='-library=Cstd -library=Crun'
  10990. fi
  10991. ;;
  10992. esac
  10993. ;;
  10994. esac
  10995. case " $postdeps_CXX " in
  10996. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10997. esac
  10998. lt_prog_compiler_wl_CXX=
  10999. lt_prog_compiler_pic_CXX=
  11000. lt_prog_compiler_static_CXX=
  11001. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11002. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11003. # C++ specific cases for pic, static, wl, etc.
  11004. if test "$GXX" = yes; then
  11005. lt_prog_compiler_wl_CXX='-Wl,'
  11006. lt_prog_compiler_static_CXX='-static'
  11007. case $host_os in
  11008. aix*)
  11009. # All AIX code is PIC.
  11010. if test "$host_cpu" = ia64; then
  11011. # AIX 5 now supports IA64 processor
  11012. lt_prog_compiler_static_CXX='-Bstatic'
  11013. fi
  11014. ;;
  11015. amigaos*)
  11016. # FIXME: we need at least 68020 code to build shared libraries, but
  11017. # adding the `-m68020' flag to GCC prevents building anything better,
  11018. # like `-m68040'.
  11019. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11020. ;;
  11021. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11022. # PIC is the default for these OSes.
  11023. ;;
  11024. mingw* | cygwin* | os2* | pw32*)
  11025. # This hack is so that the source file can tell whether it is being
  11026. # built for inclusion in a dll (and should export symbols for example).
  11027. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11028. # (--disable-auto-import) libraries
  11029. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11030. ;;
  11031. darwin* | rhapsody*)
  11032. # PIC is the default on this platform
  11033. # Common symbols not allowed in MH_DYLIB files
  11034. lt_prog_compiler_pic_CXX='-fno-common'
  11035. ;;
  11036. *djgpp*)
  11037. # DJGPP does not support shared libraries at all
  11038. lt_prog_compiler_pic_CXX=
  11039. ;;
  11040. interix[3-9]*)
  11041. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11042. # Instead, we relocate shared libraries at runtime.
  11043. ;;
  11044. sysv4*MP*)
  11045. if test -d /usr/nec; then
  11046. lt_prog_compiler_pic_CXX=-Kconform_pic
  11047. fi
  11048. ;;
  11049. hpux*)
  11050. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11051. # not for PA HP-UX.
  11052. case $host_cpu in
  11053. hppa*64*|ia64*)
  11054. ;;
  11055. *)
  11056. lt_prog_compiler_pic_CXX='-fPIC'
  11057. ;;
  11058. esac
  11059. ;;
  11060. *)
  11061. lt_prog_compiler_pic_CXX='-fPIC'
  11062. ;;
  11063. esac
  11064. else
  11065. case $host_os in
  11066. aix4* | aix5*)
  11067. # All AIX code is PIC.
  11068. if test "$host_cpu" = ia64; then
  11069. # AIX 5 now supports IA64 processor
  11070. lt_prog_compiler_static_CXX='-Bstatic'
  11071. else
  11072. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11073. fi
  11074. ;;
  11075. chorus*)
  11076. case $cc_basename in
  11077. cxch68*)
  11078. # Green Hills C++ Compiler
  11079. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11080. ;;
  11081. esac
  11082. ;;
  11083. darwin*)
  11084. # PIC is the default on this platform
  11085. # Common symbols not allowed in MH_DYLIB files
  11086. case $cc_basename in
  11087. xlc*)
  11088. lt_prog_compiler_pic_CXX='-qnocommon'
  11089. lt_prog_compiler_wl_CXX='-Wl,'
  11090. ;;
  11091. esac
  11092. ;;
  11093. dgux*)
  11094. case $cc_basename in
  11095. ec++*)
  11096. lt_prog_compiler_pic_CXX='-KPIC'
  11097. ;;
  11098. ghcx*)
  11099. # Green Hills C++ Compiler
  11100. lt_prog_compiler_pic_CXX='-pic'
  11101. ;;
  11102. *)
  11103. ;;
  11104. esac
  11105. ;;
  11106. freebsd* | dragonfly*)
  11107. # FreeBSD uses GNU C++
  11108. ;;
  11109. hpux9* | hpux10* | hpux11*)
  11110. case $cc_basename in
  11111. CC*)
  11112. lt_prog_compiler_wl_CXX='-Wl,'
  11113. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11114. if test "$host_cpu" != ia64; then
  11115. lt_prog_compiler_pic_CXX='+Z'
  11116. fi
  11117. ;;
  11118. aCC*)
  11119. lt_prog_compiler_wl_CXX='-Wl,'
  11120. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11121. case $host_cpu in
  11122. hppa*64*|ia64*)
  11123. # +Z the default
  11124. ;;
  11125. *)
  11126. lt_prog_compiler_pic_CXX='+Z'
  11127. ;;
  11128. esac
  11129. ;;
  11130. *)
  11131. ;;
  11132. esac
  11133. ;;
  11134. interix*)
  11135. # This is c89, which is MS Visual C++ (no shared libs)
  11136. # Anyone wants to do a port?
  11137. ;;
  11138. irix5* | irix6* | nonstopux*)
  11139. case $cc_basename in
  11140. CC*)
  11141. lt_prog_compiler_wl_CXX='-Wl,'
  11142. lt_prog_compiler_static_CXX='-non_shared'
  11143. # CC pic flag -KPIC is the default.
  11144. ;;
  11145. *)
  11146. ;;
  11147. esac
  11148. ;;
  11149. linux* | k*bsd*-gnu)
  11150. case $cc_basename in
  11151. KCC*)
  11152. # KAI C++ Compiler
  11153. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11154. lt_prog_compiler_pic_CXX='-fPIC'
  11155. ;;
  11156. icpc* | ecpc*)
  11157. # Intel C++
  11158. lt_prog_compiler_wl_CXX='-Wl,'
  11159. lt_prog_compiler_pic_CXX='-KPIC'
  11160. lt_prog_compiler_static_CXX='-static'
  11161. ;;
  11162. pgCC*)
  11163. # Portland Group C++ compiler.
  11164. lt_prog_compiler_wl_CXX='-Wl,'
  11165. lt_prog_compiler_pic_CXX='-fpic'
  11166. lt_prog_compiler_static_CXX='-Bstatic'
  11167. ;;
  11168. cxx*)
  11169. # Compaq C++
  11170. # Make sure the PIC flag is empty. It appears that all Alpha
  11171. # Linux and Compaq Tru64 Unix objects are PIC.
  11172. lt_prog_compiler_pic_CXX=
  11173. lt_prog_compiler_static_CXX='-non_shared'
  11174. ;;
  11175. *)
  11176. case `$CC -V 2>&1 | sed 5q` in
  11177. *Sun\ C*)
  11178. # Sun C++ 5.9
  11179. lt_prog_compiler_pic_CXX='-KPIC'
  11180. lt_prog_compiler_static_CXX='-Bstatic'
  11181. lt_prog_compiler_wl_CXX='-Qoption ld '
  11182. ;;
  11183. esac
  11184. ;;
  11185. esac
  11186. ;;
  11187. lynxos*)
  11188. ;;
  11189. m88k*)
  11190. ;;
  11191. mvs*)
  11192. case $cc_basename in
  11193. cxx*)
  11194. lt_prog_compiler_pic_CXX='-W c,exportall'
  11195. ;;
  11196. *)
  11197. ;;
  11198. esac
  11199. ;;
  11200. netbsd*)
  11201. ;;
  11202. osf3* | osf4* | osf5*)
  11203. case $cc_basename in
  11204. KCC*)
  11205. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11206. ;;
  11207. RCC*)
  11208. # Rational C++ 2.4.1
  11209. lt_prog_compiler_pic_CXX='-pic'
  11210. ;;
  11211. cxx*)
  11212. # Digital/Compaq C++
  11213. lt_prog_compiler_wl_CXX='-Wl,'
  11214. # Make sure the PIC flag is empty. It appears that all Alpha
  11215. # Linux and Compaq Tru64 Unix objects are PIC.
  11216. lt_prog_compiler_pic_CXX=
  11217. lt_prog_compiler_static_CXX='-non_shared'
  11218. ;;
  11219. *)
  11220. ;;
  11221. esac
  11222. ;;
  11223. psos*)
  11224. ;;
  11225. solaris*)
  11226. case $cc_basename in
  11227. CC*)
  11228. # Sun C++ 4.2, 5.x and Centerline C++
  11229. lt_prog_compiler_pic_CXX='-KPIC'
  11230. lt_prog_compiler_static_CXX='-Bstatic'
  11231. lt_prog_compiler_wl_CXX='-Qoption ld '
  11232. ;;
  11233. gcx*)
  11234. # Green Hills C++ Compiler
  11235. lt_prog_compiler_pic_CXX='-PIC'
  11236. ;;
  11237. *)
  11238. ;;
  11239. esac
  11240. ;;
  11241. sunos4*)
  11242. case $cc_basename in
  11243. CC*)
  11244. # Sun C++ 4.x
  11245. lt_prog_compiler_pic_CXX='-pic'
  11246. lt_prog_compiler_static_CXX='-Bstatic'
  11247. ;;
  11248. lcc*)
  11249. # Lucid
  11250. lt_prog_compiler_pic_CXX='-pic'
  11251. ;;
  11252. *)
  11253. ;;
  11254. esac
  11255. ;;
  11256. tandem*)
  11257. case $cc_basename in
  11258. NCC*)
  11259. # NonStop-UX NCC 3.20
  11260. lt_prog_compiler_pic_CXX='-KPIC'
  11261. ;;
  11262. *)
  11263. ;;
  11264. esac
  11265. ;;
  11266. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11267. case $cc_basename in
  11268. CC*)
  11269. lt_prog_compiler_wl_CXX='-Wl,'
  11270. lt_prog_compiler_pic_CXX='-KPIC'
  11271. lt_prog_compiler_static_CXX='-Bstatic'
  11272. ;;
  11273. esac
  11274. ;;
  11275. vxworks*)
  11276. ;;
  11277. *)
  11278. lt_prog_compiler_can_build_shared_CXX=no
  11279. ;;
  11280. esac
  11281. fi
  11282. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11283. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11284. #
  11285. # Check to make sure the PIC flag actually works.
  11286. #
  11287. if test -n "$lt_prog_compiler_pic_CXX"; then
  11288. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11289. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11290. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11291. echo $ECHO_N "(cached) $ECHO_C" >&6
  11292. else
  11293. lt_prog_compiler_pic_works_CXX=no
  11294. ac_outfile=conftest.$ac_objext
  11295. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11296. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11297. # Insert the option either (1) after the last *FLAGS variable, or
  11298. # (2) before a word containing "conftest.", or (3) at the end.
  11299. # Note that $ac_compile itself does not contain backslashes and begins
  11300. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11301. # The option is referenced via a variable to avoid confusing sed.
  11302. lt_compile=`echo "$ac_compile" | $SED \
  11303. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11304. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11305. -e 's:$: $lt_compiler_flag:'`
  11306. (eval echo "\"\$as_me:12590: $lt_compile\"" >&5)
  11307. (eval "$lt_compile" 2>conftest.err)
  11308. ac_status=$?
  11309. cat conftest.err >&5
  11310. echo "$as_me:12594: \$? = $ac_status" >&5
  11311. if (exit $ac_status) && test -s "$ac_outfile"; then
  11312. # The compiler can only warn and ignore the option if not recognized
  11313. # So say no if there are warnings other than the usual output.
  11314. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11315. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11316. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11317. lt_prog_compiler_pic_works_CXX=yes
  11318. fi
  11319. fi
  11320. $rm conftest*
  11321. fi
  11322. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11323. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11324. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11325. case $lt_prog_compiler_pic_CXX in
  11326. "" | " "*) ;;
  11327. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11328. esac
  11329. else
  11330. lt_prog_compiler_pic_CXX=
  11331. lt_prog_compiler_can_build_shared_CXX=no
  11332. fi
  11333. fi
  11334. case $host_os in
  11335. # For platforms which do not support PIC, -DPIC is meaningless:
  11336. *djgpp*)
  11337. lt_prog_compiler_pic_CXX=
  11338. ;;
  11339. *)
  11340. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11341. ;;
  11342. esac
  11343. #
  11344. # Check to make sure the static flag actually works.
  11345. #
  11346. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11347. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11348. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11349. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11350. echo $ECHO_N "(cached) $ECHO_C" >&6
  11351. else
  11352. lt_prog_compiler_static_works_CXX=no
  11353. save_LDFLAGS="$LDFLAGS"
  11354. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11355. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11356. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11357. # The linker can only warn and ignore the option if not recognized
  11358. # So say no if there are warnings
  11359. if test -s conftest.err; then
  11360. # Append any errors to the config.log.
  11361. cat conftest.err 1>&5
  11362. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11363. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11364. if diff conftest.exp conftest.er2 >/dev/null; then
  11365. lt_prog_compiler_static_works_CXX=yes
  11366. fi
  11367. else
  11368. lt_prog_compiler_static_works_CXX=yes
  11369. fi
  11370. fi
  11371. $rm conftest*
  11372. LDFLAGS="$save_LDFLAGS"
  11373. fi
  11374. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11375. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11376. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11377. :
  11378. else
  11379. lt_prog_compiler_static_CXX=
  11380. fi
  11381. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11382. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11383. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11384. echo $ECHO_N "(cached) $ECHO_C" >&6
  11385. else
  11386. lt_cv_prog_compiler_c_o_CXX=no
  11387. $rm -r conftest 2>/dev/null
  11388. mkdir conftest
  11389. cd conftest
  11390. mkdir out
  11391. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11392. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11393. # Insert the option either (1) after the last *FLAGS variable, or
  11394. # (2) before a word containing "conftest.", or (3) at the end.
  11395. # Note that $ac_compile itself does not contain backslashes and begins
  11396. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11397. lt_compile=`echo "$ac_compile" | $SED \
  11398. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11399. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11400. -e 's:$: $lt_compiler_flag:'`
  11401. (eval echo "\"\$as_me:12694: $lt_compile\"" >&5)
  11402. (eval "$lt_compile" 2>out/conftest.err)
  11403. ac_status=$?
  11404. cat out/conftest.err >&5
  11405. echo "$as_me:12698: \$? = $ac_status" >&5
  11406. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11407. then
  11408. # The compiler can only warn and ignore the option if not recognized
  11409. # So say no if there are warnings
  11410. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11411. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11412. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11413. lt_cv_prog_compiler_c_o_CXX=yes
  11414. fi
  11415. fi
  11416. chmod u+w . 2>&5
  11417. $rm conftest*
  11418. # SGI C++ compiler will create directory out/ii_files/ for
  11419. # template instantiation
  11420. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11421. $rm out/* && rmdir out
  11422. cd ..
  11423. rmdir conftest
  11424. $rm conftest*
  11425. fi
  11426. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11427. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11428. hard_links="nottested"
  11429. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11430. # do not overwrite the value of need_locks provided by the user
  11431. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11432. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11433. hard_links=yes
  11434. $rm conftest*
  11435. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11436. touch conftest.a
  11437. ln conftest.a conftest.b 2>&5 || hard_links=no
  11438. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11439. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11440. echo "${ECHO_T}$hard_links" >&6; }
  11441. if test "$hard_links" = no; then
  11442. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11443. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11444. need_locks=warn
  11445. fi
  11446. else
  11447. need_locks=no
  11448. fi
  11449. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11450. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11451. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11452. case $host_os in
  11453. aix4* | aix5*)
  11454. # If we're using GNU nm, then we don't want the "-C" option.
  11455. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11456. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11457. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11458. else
  11459. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11460. fi
  11461. ;;
  11462. pw32*)
  11463. export_symbols_cmds_CXX="$ltdll_cmds"
  11464. ;;
  11465. cygwin* | mingw*)
  11466. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11467. ;;
  11468. *)
  11469. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11470. ;;
  11471. esac
  11472. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11473. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11474. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11475. #
  11476. # Do we need to explicitly link libc?
  11477. #
  11478. case "x$archive_cmds_need_lc_CXX" in
  11479. x|xyes)
  11480. # Assume -lc should be added
  11481. archive_cmds_need_lc_CXX=yes
  11482. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11483. case $archive_cmds_CXX in
  11484. *'~'*)
  11485. # FIXME: we may have to deal with multi-command sequences.
  11486. ;;
  11487. '$CC '*)
  11488. # Test whether the compiler implicitly links with -lc since on some
  11489. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11490. # to ld, don't add -lc before -lgcc.
  11491. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11492. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11493. $rm conftest*
  11494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11495. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11496. (eval $ac_compile) 2>&5
  11497. ac_status=$?
  11498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11499. (exit $ac_status); } 2>conftest.err; then
  11500. soname=conftest
  11501. lib=conftest
  11502. libobjs=conftest.$ac_objext
  11503. deplibs=
  11504. wl=$lt_prog_compiler_wl_CXX
  11505. pic_flag=$lt_prog_compiler_pic_CXX
  11506. compiler_flags=-v
  11507. linker_flags=-v
  11508. verstring=
  11509. output_objdir=.
  11510. libname=conftest
  11511. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11512. allow_undefined_flag_CXX=
  11513. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11514. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11515. ac_status=$?
  11516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11517. (exit $ac_status); }
  11518. then
  11519. archive_cmds_need_lc_CXX=no
  11520. else
  11521. archive_cmds_need_lc_CXX=yes
  11522. fi
  11523. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11524. else
  11525. cat conftest.err 1>&5
  11526. fi
  11527. $rm conftest*
  11528. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11529. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11530. ;;
  11531. esac
  11532. fi
  11533. ;;
  11534. esac
  11535. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11536. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11537. library_names_spec=
  11538. libname_spec='lib$name'
  11539. soname_spec=
  11540. shrext_cmds=".so"
  11541. postinstall_cmds=
  11542. postuninstall_cmds=
  11543. finish_cmds=
  11544. finish_eval=
  11545. shlibpath_var=
  11546. shlibpath_overrides_runpath=unknown
  11547. version_type=none
  11548. dynamic_linker="$host_os ld.so"
  11549. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11550. need_lib_prefix=unknown
  11551. hardcode_into_libs=no
  11552. # when you set need_version to no, make sure it does not cause -set_version
  11553. # flags to be left without arguments
  11554. need_version=unknown
  11555. case $host_os in
  11556. aix3*)
  11557. version_type=linux
  11558. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11559. shlibpath_var=LIBPATH
  11560. # AIX 3 has no versioning support, so we append a major version to the name.
  11561. soname_spec='${libname}${release}${shared_ext}$major'
  11562. ;;
  11563. aix4* | aix5*)
  11564. version_type=linux
  11565. need_lib_prefix=no
  11566. need_version=no
  11567. hardcode_into_libs=yes
  11568. if test "$host_cpu" = ia64; then
  11569. # AIX 5 supports IA64
  11570. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11571. shlibpath_var=LD_LIBRARY_PATH
  11572. else
  11573. # With GCC up to 2.95.x, collect2 would create an import file
  11574. # for dependence libraries. The import file would start with
  11575. # the line `#! .'. This would cause the generated library to
  11576. # depend on `.', always an invalid library. This was fixed in
  11577. # development snapshots of GCC prior to 3.0.
  11578. case $host_os in
  11579. aix4 | aix4.[01] | aix4.[01].*)
  11580. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11581. echo ' yes '
  11582. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11583. :
  11584. else
  11585. can_build_shared=no
  11586. fi
  11587. ;;
  11588. esac
  11589. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11590. # soname into executable. Probably we can add versioning support to
  11591. # collect2, so additional links can be useful in future.
  11592. if test "$aix_use_runtimelinking" = yes; then
  11593. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11594. # instead of lib<name>.a to let people know that these are not
  11595. # typical AIX shared libraries.
  11596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11597. else
  11598. # We preserve .a as extension for shared libraries through AIX4.2
  11599. # and later when we are not doing run time linking.
  11600. library_names_spec='${libname}${release}.a $libname.a'
  11601. soname_spec='${libname}${release}${shared_ext}$major'
  11602. fi
  11603. shlibpath_var=LIBPATH
  11604. fi
  11605. ;;
  11606. amigaos*)
  11607. library_names_spec='$libname.ixlibrary $libname.a'
  11608. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11609. 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'
  11610. ;;
  11611. beos*)
  11612. library_names_spec='${libname}${shared_ext}'
  11613. dynamic_linker="$host_os ld.so"
  11614. shlibpath_var=LIBRARY_PATH
  11615. ;;
  11616. bsdi[45]*)
  11617. version_type=linux
  11618. need_version=no
  11619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11620. soname_spec='${libname}${release}${shared_ext}$major'
  11621. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11622. shlibpath_var=LD_LIBRARY_PATH
  11623. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11624. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11625. # the default ld.so.conf also contains /usr/contrib/lib and
  11626. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11627. # libtool to hard-code these into programs
  11628. ;;
  11629. cygwin* | mingw* | pw32*)
  11630. version_type=windows
  11631. shrext_cmds=".dll"
  11632. need_version=no
  11633. need_lib_prefix=no
  11634. case $GCC,$host_os in
  11635. yes,cygwin* | yes,mingw* | yes,pw32*)
  11636. library_names_spec='$libname.dll.a'
  11637. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11638. postinstall_cmds='base_file=`basename \${file}`~
  11639. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11640. dldir=$destdir/`dirname \$dlpath`~
  11641. test -d \$dldir || mkdir -p \$dldir~
  11642. $install_prog $dir/$dlname \$dldir/$dlname~
  11643. chmod a+x \$dldir/$dlname'
  11644. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11645. dlpath=$dir/\$dldll~
  11646. $rm \$dlpath'
  11647. shlibpath_overrides_runpath=yes
  11648. case $host_os in
  11649. cygwin*)
  11650. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11651. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11652. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11653. ;;
  11654. mingw*)
  11655. # MinGW DLLs use traditional 'lib' prefix
  11656. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11657. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11658. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11659. # It is most probably a Windows format PATH printed by
  11660. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11661. # path with ; separators, and with drive letters. We can handle the
  11662. # drive letters (cygwin fileutils understands them), so leave them,
  11663. # especially as we might pass files found there to a mingw objdump,
  11664. # which wouldn't understand a cygwinified path. Ahh.
  11665. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11666. else
  11667. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11668. fi
  11669. ;;
  11670. pw32*)
  11671. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11672. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11673. ;;
  11674. esac
  11675. ;;
  11676. *)
  11677. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11678. ;;
  11679. esac
  11680. dynamic_linker='Win32 ld.exe'
  11681. # FIXME: first we should search . and the directory the executable is in
  11682. shlibpath_var=PATH
  11683. ;;
  11684. darwin* | rhapsody*)
  11685. dynamic_linker="$host_os dyld"
  11686. version_type=darwin
  11687. need_lib_prefix=no
  11688. need_version=no
  11689. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11690. soname_spec='${libname}${release}${major}$shared_ext'
  11691. shlibpath_overrides_runpath=yes
  11692. shlibpath_var=DYLD_LIBRARY_PATH
  11693. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11694. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11695. ;;
  11696. dgux*)
  11697. version_type=linux
  11698. need_lib_prefix=no
  11699. need_version=no
  11700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11701. soname_spec='${libname}${release}${shared_ext}$major'
  11702. shlibpath_var=LD_LIBRARY_PATH
  11703. ;;
  11704. freebsd1*)
  11705. dynamic_linker=no
  11706. ;;
  11707. freebsd* | dragonfly*)
  11708. # DragonFly does not have aout. When/if they implement a new
  11709. # versioning mechanism, adjust this.
  11710. if test -x /usr/bin/objformat; then
  11711. objformat=`/usr/bin/objformat`
  11712. else
  11713. case $host_os in
  11714. freebsd[123]*) objformat=aout ;;
  11715. *) objformat=elf ;;
  11716. esac
  11717. fi
  11718. version_type=freebsd-$objformat
  11719. case $version_type in
  11720. freebsd-elf*)
  11721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11722. need_version=no
  11723. need_lib_prefix=no
  11724. ;;
  11725. freebsd-*)
  11726. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11727. need_version=yes
  11728. ;;
  11729. esac
  11730. shlibpath_var=LD_LIBRARY_PATH
  11731. case $host_os in
  11732. freebsd2*)
  11733. shlibpath_overrides_runpath=yes
  11734. ;;
  11735. freebsd3.[01]* | freebsdelf3.[01]*)
  11736. shlibpath_overrides_runpath=yes
  11737. hardcode_into_libs=yes
  11738. ;;
  11739. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11740. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11741. shlibpath_overrides_runpath=no
  11742. hardcode_into_libs=yes
  11743. ;;
  11744. *) # from 4.6 on, and DragonFly
  11745. shlibpath_overrides_runpath=yes
  11746. hardcode_into_libs=yes
  11747. ;;
  11748. esac
  11749. ;;
  11750. gnu*)
  11751. version_type=linux
  11752. need_lib_prefix=no
  11753. need_version=no
  11754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11755. soname_spec='${libname}${release}${shared_ext}$major'
  11756. shlibpath_var=LD_LIBRARY_PATH
  11757. hardcode_into_libs=yes
  11758. ;;
  11759. hpux9* | hpux10* | hpux11*)
  11760. # Give a soname corresponding to the major version so that dld.sl refuses to
  11761. # link against other versions.
  11762. version_type=sunos
  11763. need_lib_prefix=no
  11764. need_version=no
  11765. case $host_cpu in
  11766. ia64*)
  11767. shrext_cmds='.so'
  11768. hardcode_into_libs=yes
  11769. dynamic_linker="$host_os dld.so"
  11770. shlibpath_var=LD_LIBRARY_PATH
  11771. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11773. soname_spec='${libname}${release}${shared_ext}$major'
  11774. if test "X$HPUX_IA64_MODE" = X32; then
  11775. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11776. else
  11777. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11778. fi
  11779. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11780. ;;
  11781. hppa*64*)
  11782. shrext_cmds='.sl'
  11783. hardcode_into_libs=yes
  11784. dynamic_linker="$host_os dld.sl"
  11785. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11786. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11788. soname_spec='${libname}${release}${shared_ext}$major'
  11789. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11790. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11791. ;;
  11792. *)
  11793. shrext_cmds='.sl'
  11794. dynamic_linker="$host_os dld.sl"
  11795. shlibpath_var=SHLIB_PATH
  11796. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11798. soname_spec='${libname}${release}${shared_ext}$major'
  11799. ;;
  11800. esac
  11801. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11802. postinstall_cmds='chmod 555 $lib'
  11803. ;;
  11804. interix[3-9]*)
  11805. version_type=linux
  11806. need_lib_prefix=no
  11807. need_version=no
  11808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11809. soname_spec='${libname}${release}${shared_ext}$major'
  11810. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11811. shlibpath_var=LD_LIBRARY_PATH
  11812. shlibpath_overrides_runpath=no
  11813. hardcode_into_libs=yes
  11814. ;;
  11815. irix5* | irix6* | nonstopux*)
  11816. case $host_os in
  11817. nonstopux*) version_type=nonstopux ;;
  11818. *)
  11819. if test "$lt_cv_prog_gnu_ld" = yes; then
  11820. version_type=linux
  11821. else
  11822. version_type=irix
  11823. fi ;;
  11824. esac
  11825. need_lib_prefix=no
  11826. need_version=no
  11827. soname_spec='${libname}${release}${shared_ext}$major'
  11828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11829. case $host_os in
  11830. irix5* | nonstopux*)
  11831. libsuff= shlibsuff=
  11832. ;;
  11833. *)
  11834. case $LD in # libtool.m4 will add one of these switches to LD
  11835. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11836. libsuff= shlibsuff= libmagic=32-bit;;
  11837. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11838. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11839. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11840. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11841. *) libsuff= shlibsuff= libmagic=never-match;;
  11842. esac
  11843. ;;
  11844. esac
  11845. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11846. shlibpath_overrides_runpath=no
  11847. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11848. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11849. hardcode_into_libs=yes
  11850. ;;
  11851. # No shared lib support for Linux oldld, aout, or coff.
  11852. linux*oldld* | linux*aout* | linux*coff*)
  11853. dynamic_linker=no
  11854. ;;
  11855. # This must be Linux ELF.
  11856. linux* | k*bsd*-gnu)
  11857. version_type=linux
  11858. need_lib_prefix=no
  11859. need_version=no
  11860. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11861. soname_spec='${libname}${release}${shared_ext}$major'
  11862. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11863. shlibpath_var=LD_LIBRARY_PATH
  11864. shlibpath_overrides_runpath=no
  11865. # This implies no fast_install, which is unacceptable.
  11866. # Some rework will be needed to allow for fast_install
  11867. # before this can be enabled.
  11868. hardcode_into_libs=yes
  11869. # Append ld.so.conf contents to the search path
  11870. if test -f /etc/ld.so.conf; then
  11871. 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' ' '`
  11872. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11873. fi
  11874. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11875. # powerpc, because MkLinux only supported shared libraries with the
  11876. # GNU dynamic linker. Since this was broken with cross compilers,
  11877. # most powerpc-linux boxes support dynamic linking these days and
  11878. # people can always --disable-shared, the test was removed, and we
  11879. # assume the GNU/Linux dynamic linker is in use.
  11880. dynamic_linker='GNU/Linux ld.so'
  11881. ;;
  11882. netbsd*)
  11883. version_type=sunos
  11884. need_lib_prefix=no
  11885. need_version=no
  11886. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11888. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11889. dynamic_linker='NetBSD (a.out) ld.so'
  11890. else
  11891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11892. soname_spec='${libname}${release}${shared_ext}$major'
  11893. dynamic_linker='NetBSD ld.elf_so'
  11894. fi
  11895. shlibpath_var=LD_LIBRARY_PATH
  11896. shlibpath_overrides_runpath=yes
  11897. hardcode_into_libs=yes
  11898. ;;
  11899. newsos6)
  11900. version_type=linux
  11901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11902. shlibpath_var=LD_LIBRARY_PATH
  11903. shlibpath_overrides_runpath=yes
  11904. ;;
  11905. nto-qnx*)
  11906. version_type=linux
  11907. need_lib_prefix=no
  11908. need_version=no
  11909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11910. soname_spec='${libname}${release}${shared_ext}$major'
  11911. shlibpath_var=LD_LIBRARY_PATH
  11912. shlibpath_overrides_runpath=yes
  11913. ;;
  11914. openbsd*)
  11915. version_type=sunos
  11916. sys_lib_dlsearch_path_spec="/usr/lib"
  11917. need_lib_prefix=no
  11918. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11919. case $host_os in
  11920. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11921. *) need_version=no ;;
  11922. esac
  11923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11924. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11925. shlibpath_var=LD_LIBRARY_PATH
  11926. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11927. case $host_os in
  11928. openbsd2.[89] | openbsd2.[89].*)
  11929. shlibpath_overrides_runpath=no
  11930. ;;
  11931. *)
  11932. shlibpath_overrides_runpath=yes
  11933. ;;
  11934. esac
  11935. else
  11936. shlibpath_overrides_runpath=yes
  11937. fi
  11938. ;;
  11939. os2*)
  11940. libname_spec='$name'
  11941. shrext_cmds=".dll"
  11942. need_lib_prefix=no
  11943. library_names_spec='$libname${shared_ext} $libname.a'
  11944. dynamic_linker='OS/2 ld.exe'
  11945. shlibpath_var=LIBPATH
  11946. ;;
  11947. osf3* | osf4* | osf5*)
  11948. version_type=osf
  11949. need_lib_prefix=no
  11950. need_version=no
  11951. soname_spec='${libname}${release}${shared_ext}$major'
  11952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11953. shlibpath_var=LD_LIBRARY_PATH
  11954. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11955. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11956. ;;
  11957. rdos*)
  11958. dynamic_linker=no
  11959. ;;
  11960. solaris*)
  11961. version_type=linux
  11962. need_lib_prefix=no
  11963. need_version=no
  11964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11965. soname_spec='${libname}${release}${shared_ext}$major'
  11966. shlibpath_var=LD_LIBRARY_PATH
  11967. shlibpath_overrides_runpath=yes
  11968. hardcode_into_libs=yes
  11969. # ldd complains unless libraries are executable
  11970. postinstall_cmds='chmod +x $lib'
  11971. ;;
  11972. sunos4*)
  11973. version_type=sunos
  11974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11975. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11976. shlibpath_var=LD_LIBRARY_PATH
  11977. shlibpath_overrides_runpath=yes
  11978. if test "$with_gnu_ld" = yes; then
  11979. need_lib_prefix=no
  11980. fi
  11981. need_version=yes
  11982. ;;
  11983. sysv4 | sysv4.3*)
  11984. version_type=linux
  11985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11986. soname_spec='${libname}${release}${shared_ext}$major'
  11987. shlibpath_var=LD_LIBRARY_PATH
  11988. case $host_vendor in
  11989. sni)
  11990. shlibpath_overrides_runpath=no
  11991. need_lib_prefix=no
  11992. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11993. runpath_var=LD_RUN_PATH
  11994. ;;
  11995. siemens)
  11996. need_lib_prefix=no
  11997. ;;
  11998. motorola)
  11999. need_lib_prefix=no
  12000. need_version=no
  12001. shlibpath_overrides_runpath=no
  12002. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12003. ;;
  12004. esac
  12005. ;;
  12006. sysv4*MP*)
  12007. if test -d /usr/nec ;then
  12008. version_type=linux
  12009. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12010. soname_spec='$libname${shared_ext}.$major'
  12011. shlibpath_var=LD_LIBRARY_PATH
  12012. fi
  12013. ;;
  12014. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12015. version_type=freebsd-elf
  12016. need_lib_prefix=no
  12017. need_version=no
  12018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12019. soname_spec='${libname}${release}${shared_ext}$major'
  12020. shlibpath_var=LD_LIBRARY_PATH
  12021. hardcode_into_libs=yes
  12022. if test "$with_gnu_ld" = yes; then
  12023. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12024. shlibpath_overrides_runpath=no
  12025. else
  12026. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12027. shlibpath_overrides_runpath=yes
  12028. case $host_os in
  12029. sco3.2v5*)
  12030. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12031. ;;
  12032. esac
  12033. fi
  12034. sys_lib_dlsearch_path_spec='/usr/lib'
  12035. ;;
  12036. uts4*)
  12037. version_type=linux
  12038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12039. soname_spec='${libname}${release}${shared_ext}$major'
  12040. shlibpath_var=LD_LIBRARY_PATH
  12041. ;;
  12042. *)
  12043. dynamic_linker=no
  12044. ;;
  12045. esac
  12046. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12047. echo "${ECHO_T}$dynamic_linker" >&6; }
  12048. test "$dynamic_linker" = no && can_build_shared=no
  12049. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12050. if test "$GCC" = yes; then
  12051. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12052. fi
  12053. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12054. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12055. hardcode_action_CXX=
  12056. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12057. test -n "$runpath_var_CXX" || \
  12058. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12059. # We can hardcode non-existant directories.
  12060. if test "$hardcode_direct_CXX" != no &&
  12061. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12062. # have to relink, otherwise we might link with an installed library
  12063. # when we should be linking with a yet-to-be-installed one
  12064. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12065. test "$hardcode_minus_L_CXX" != no; then
  12066. # Linking always hardcodes the temporary library directory.
  12067. hardcode_action_CXX=relink
  12068. else
  12069. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12070. hardcode_action_CXX=immediate
  12071. fi
  12072. else
  12073. # We cannot hardcode anything, or else we can only hardcode existing
  12074. # directories.
  12075. hardcode_action_CXX=unsupported
  12076. fi
  12077. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12078. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12079. if test "$hardcode_action_CXX" = relink; then
  12080. # Fast installation is not supported
  12081. enable_fast_install=no
  12082. elif test "$shlibpath_overrides_runpath" = yes ||
  12083. test "$enable_shared" = no; then
  12084. # Fast installation is not necessary
  12085. enable_fast_install=needless
  12086. fi
  12087. # The else clause should only fire when bootstrapping the
  12088. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12089. # with your package, and you will get complaints that there are
  12090. # no rules to generate ltmain.sh.
  12091. if test -f "$ltmain"; then
  12092. # See if we are running on zsh, and set the options which allow our commands through
  12093. # without removal of \ escapes.
  12094. if test -n "${ZSH_VERSION+set}" ; then
  12095. setopt NO_GLOB_SUBST
  12096. fi
  12097. # Now quote all the things that may contain metacharacters while being
  12098. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12099. # variables and quote the copies for generation of the libtool script.
  12100. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12101. SED SHELL STRIP \
  12102. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12103. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12104. deplibs_check_method reload_flag reload_cmds need_locks \
  12105. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12106. lt_cv_sys_global_symbol_to_c_name_address \
  12107. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12108. old_postinstall_cmds old_postuninstall_cmds \
  12109. compiler_CXX \
  12110. CC_CXX \
  12111. LD_CXX \
  12112. lt_prog_compiler_wl_CXX \
  12113. lt_prog_compiler_pic_CXX \
  12114. lt_prog_compiler_static_CXX \
  12115. lt_prog_compiler_no_builtin_flag_CXX \
  12116. export_dynamic_flag_spec_CXX \
  12117. thread_safe_flag_spec_CXX \
  12118. whole_archive_flag_spec_CXX \
  12119. enable_shared_with_static_runtimes_CXX \
  12120. old_archive_cmds_CXX \
  12121. old_archive_from_new_cmds_CXX \
  12122. predep_objects_CXX \
  12123. postdep_objects_CXX \
  12124. predeps_CXX \
  12125. postdeps_CXX \
  12126. compiler_lib_search_path_CXX \
  12127. archive_cmds_CXX \
  12128. archive_expsym_cmds_CXX \
  12129. postinstall_cmds_CXX \
  12130. postuninstall_cmds_CXX \
  12131. old_archive_from_expsyms_cmds_CXX \
  12132. allow_undefined_flag_CXX \
  12133. no_undefined_flag_CXX \
  12134. export_symbols_cmds_CXX \
  12135. hardcode_libdir_flag_spec_CXX \
  12136. hardcode_libdir_flag_spec_ld_CXX \
  12137. hardcode_libdir_separator_CXX \
  12138. hardcode_automatic_CXX \
  12139. module_cmds_CXX \
  12140. module_expsym_cmds_CXX \
  12141. lt_cv_prog_compiler_c_o_CXX \
  12142. fix_srcfile_path_CXX \
  12143. exclude_expsyms_CXX \
  12144. include_expsyms_CXX; do
  12145. case $var in
  12146. old_archive_cmds_CXX | \
  12147. old_archive_from_new_cmds_CXX | \
  12148. archive_cmds_CXX | \
  12149. archive_expsym_cmds_CXX | \
  12150. module_cmds_CXX | \
  12151. module_expsym_cmds_CXX | \
  12152. old_archive_from_expsyms_cmds_CXX | \
  12153. export_symbols_cmds_CXX | \
  12154. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12155. postinstall_cmds | postuninstall_cmds | \
  12156. old_postinstall_cmds | old_postuninstall_cmds | \
  12157. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12158. # Double-quote double-evaled strings.
  12159. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12160. ;;
  12161. *)
  12162. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12163. ;;
  12164. esac
  12165. done
  12166. case $lt_echo in
  12167. *'\$0 --fallback-echo"')
  12168. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12169. ;;
  12170. esac
  12171. cfgfile="$ofile"
  12172. cat <<__EOF__ >> "$cfgfile"
  12173. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12174. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12175. # Shell to use when invoking shell scripts.
  12176. SHELL=$lt_SHELL
  12177. # Whether or not to build shared libraries.
  12178. build_libtool_libs=$enable_shared
  12179. # Whether or not to build static libraries.
  12180. build_old_libs=$enable_static
  12181. # Whether or not to add -lc for building shared libraries.
  12182. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12183. # Whether or not to disallow shared libs when runtime libs are static
  12184. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12185. # Whether or not to optimize for fast installation.
  12186. fast_install=$enable_fast_install
  12187. # The host system.
  12188. host_alias=$host_alias
  12189. host=$host
  12190. host_os=$host_os
  12191. # The build system.
  12192. build_alias=$build_alias
  12193. build=$build
  12194. build_os=$build_os
  12195. # An echo program that does not interpret backslashes.
  12196. echo=$lt_echo
  12197. # The archiver.
  12198. AR=$lt_AR
  12199. AR_FLAGS=$lt_AR_FLAGS
  12200. # A C compiler.
  12201. LTCC=$lt_LTCC
  12202. # LTCC compiler flags.
  12203. LTCFLAGS=$lt_LTCFLAGS
  12204. # A language-specific compiler.
  12205. CC=$lt_compiler_CXX
  12206. # Is the compiler the GNU C compiler?
  12207. with_gcc=$GCC_CXX
  12208. # An ERE matcher.
  12209. EGREP=$lt_EGREP
  12210. # The linker used to build libraries.
  12211. LD=$lt_LD_CXX
  12212. # Whether we need hard or soft links.
  12213. LN_S=$lt_LN_S
  12214. # A BSD-compatible nm program.
  12215. NM=$lt_NM
  12216. # A symbol stripping program
  12217. STRIP=$lt_STRIP
  12218. # Used to examine libraries when file_magic_cmd begins "file"
  12219. MAGIC_CMD=$MAGIC_CMD
  12220. # Used on cygwin: DLL creation program.
  12221. DLLTOOL="$DLLTOOL"
  12222. # Used on cygwin: object dumper.
  12223. OBJDUMP="$OBJDUMP"
  12224. # Used on cygwin: assembler.
  12225. AS="$AS"
  12226. # The name of the directory that contains temporary libtool files.
  12227. objdir=$objdir
  12228. # How to create reloadable object files.
  12229. reload_flag=$lt_reload_flag
  12230. reload_cmds=$lt_reload_cmds
  12231. # How to pass a linker flag through the compiler.
  12232. wl=$lt_lt_prog_compiler_wl_CXX
  12233. # Object file suffix (normally "o").
  12234. objext="$ac_objext"
  12235. # Old archive suffix (normally "a").
  12236. libext="$libext"
  12237. # Shared library suffix (normally ".so").
  12238. shrext_cmds='$shrext_cmds'
  12239. # Executable file suffix (normally "").
  12240. exeext="$exeext"
  12241. # Additional compiler flags for building library objects.
  12242. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12243. pic_mode=$pic_mode
  12244. # What is the maximum length of a command?
  12245. max_cmd_len=$lt_cv_sys_max_cmd_len
  12246. # Does compiler simultaneously support -c and -o options?
  12247. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12248. # Must we lock files when doing compilation?
  12249. need_locks=$lt_need_locks
  12250. # Do we need the lib prefix for modules?
  12251. need_lib_prefix=$need_lib_prefix
  12252. # Do we need a version for libraries?
  12253. need_version=$need_version
  12254. # Whether dlopen is supported.
  12255. dlopen_support=$enable_dlopen
  12256. # Whether dlopen of programs is supported.
  12257. dlopen_self=$enable_dlopen_self
  12258. # Whether dlopen of statically linked programs is supported.
  12259. dlopen_self_static=$enable_dlopen_self_static
  12260. # Compiler flag to prevent dynamic linking.
  12261. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12262. # Compiler flag to turn off builtin functions.
  12263. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12264. # Compiler flag to allow reflexive dlopens.
  12265. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12266. # Compiler flag to generate shared objects directly from archives.
  12267. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12268. # Compiler flag to generate thread-safe objects.
  12269. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12270. # Library versioning type.
  12271. version_type=$version_type
  12272. # Format of library name prefix.
  12273. libname_spec=$lt_libname_spec
  12274. # List of archive names. First name is the real one, the rest are links.
  12275. # The last name is the one that the linker finds with -lNAME.
  12276. library_names_spec=$lt_library_names_spec
  12277. # The coded name of the library, if different from the real name.
  12278. soname_spec=$lt_soname_spec
  12279. # Commands used to build and install an old-style archive.
  12280. RANLIB=$lt_RANLIB
  12281. old_archive_cmds=$lt_old_archive_cmds_CXX
  12282. old_postinstall_cmds=$lt_old_postinstall_cmds
  12283. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12284. # Create an old-style archive from a shared archive.
  12285. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12286. # Create a temporary old-style archive to link instead of a shared archive.
  12287. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12288. # Commands used to build and install a shared archive.
  12289. archive_cmds=$lt_archive_cmds_CXX
  12290. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12291. postinstall_cmds=$lt_postinstall_cmds
  12292. postuninstall_cmds=$lt_postuninstall_cmds
  12293. # Commands used to build a loadable module (assumed same as above if empty)
  12294. module_cmds=$lt_module_cmds_CXX
  12295. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12296. # Commands to strip libraries.
  12297. old_striplib=$lt_old_striplib
  12298. striplib=$lt_striplib
  12299. # Dependencies to place before the objects being linked to create a
  12300. # shared library.
  12301. predep_objects=$lt_predep_objects_CXX
  12302. # Dependencies to place after the objects being linked to create a
  12303. # shared library.
  12304. postdep_objects=$lt_postdep_objects_CXX
  12305. # Dependencies to place before the objects being linked to create a
  12306. # shared library.
  12307. predeps=$lt_predeps_CXX
  12308. # Dependencies to place after the objects being linked to create a
  12309. # shared library.
  12310. postdeps=$lt_postdeps_CXX
  12311. # The library search path used internally by the compiler when linking
  12312. # a shared library.
  12313. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12314. # Method to check whether dependent libraries are shared objects.
  12315. deplibs_check_method=$lt_deplibs_check_method
  12316. # Command to use when deplibs_check_method == file_magic.
  12317. file_magic_cmd=$lt_file_magic_cmd
  12318. # Flag that allows shared libraries with undefined symbols to be built.
  12319. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12320. # Flag that forces no undefined symbols.
  12321. no_undefined_flag=$lt_no_undefined_flag_CXX
  12322. # Commands used to finish a libtool library installation in a directory.
  12323. finish_cmds=$lt_finish_cmds
  12324. # Same as above, but a single script fragment to be evaled but not shown.
  12325. finish_eval=$lt_finish_eval
  12326. # Take the output of nm and produce a listing of raw symbols and C names.
  12327. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12328. # Transform the output of nm in a proper C declaration
  12329. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12330. # Transform the output of nm in a C name address pair
  12331. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12332. # This is the shared library runtime path variable.
  12333. runpath_var=$runpath_var
  12334. # This is the shared library path variable.
  12335. shlibpath_var=$shlibpath_var
  12336. # Is shlibpath searched before the hard-coded library search path?
  12337. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12338. # How to hardcode a shared library path into an executable.
  12339. hardcode_action=$hardcode_action_CXX
  12340. # Whether we should hardcode library paths into libraries.
  12341. hardcode_into_libs=$hardcode_into_libs
  12342. # Flag to hardcode \$libdir into a binary during linking.
  12343. # This must work even if \$libdir does not exist.
  12344. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12345. # If ld is used when linking, flag to hardcode \$libdir into
  12346. # a binary during linking. This must work even if \$libdir does
  12347. # not exist.
  12348. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12349. # Whether we need a single -rpath flag with a separated argument.
  12350. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12351. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12352. # resulting binary.
  12353. hardcode_direct=$hardcode_direct_CXX
  12354. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12355. # resulting binary.
  12356. hardcode_minus_L=$hardcode_minus_L_CXX
  12357. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12358. # the resulting binary.
  12359. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12360. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12361. # and all subsequent libraries and executables linked against it.
  12362. hardcode_automatic=$hardcode_automatic_CXX
  12363. # Variables whose values should be saved in libtool wrapper scripts and
  12364. # restored at relink time.
  12365. variables_saved_for_relink="$variables_saved_for_relink"
  12366. # Whether libtool must link a program against all its dependency libraries.
  12367. link_all_deplibs=$link_all_deplibs_CXX
  12368. # Compile-time system search path for libraries
  12369. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12370. # Run-time system search path for libraries
  12371. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12372. # Fix the shell variable \$srcfile for the compiler.
  12373. fix_srcfile_path=$lt_fix_srcfile_path
  12374. # Set to yes if exported symbols are required.
  12375. always_export_symbols=$always_export_symbols_CXX
  12376. # The commands to list exported symbols.
  12377. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12378. # The commands to extract the exported symbol list from a shared archive.
  12379. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12380. # Symbols that should not be listed in the preloaded symbols.
  12381. exclude_expsyms=$lt_exclude_expsyms_CXX
  12382. # Symbols that must always be exported.
  12383. include_expsyms=$lt_include_expsyms_CXX
  12384. # ### END LIBTOOL TAG CONFIG: $tagname
  12385. __EOF__
  12386. else
  12387. # If there is no Makefile yet, we rely on a make rule to execute
  12388. # `config.status --recheck' to rerun these tests and create the
  12389. # libtool script then.
  12390. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12391. if test -f "$ltmain_in"; then
  12392. test -f Makefile && make "$ltmain"
  12393. fi
  12394. fi
  12395. ac_ext=c
  12396. ac_cpp='$CPP $CPPFLAGS'
  12397. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12398. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12399. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12400. CC=$lt_save_CC
  12401. LDCXX=$LD
  12402. LD=$lt_save_LD
  12403. GCC=$lt_save_GCC
  12404. with_gnu_ldcxx=$with_gnu_ld
  12405. with_gnu_ld=$lt_save_with_gnu_ld
  12406. lt_cv_path_LDCXX=$lt_cv_path_LD
  12407. lt_cv_path_LD=$lt_save_path_LD
  12408. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12409. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12410. else
  12411. tagname=""
  12412. fi
  12413. ;;
  12414. F77)
  12415. if test -n "$F77" && test "X$F77" != "Xno"; then
  12416. ac_ext=f
  12417. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12418. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12419. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12420. archive_cmds_need_lc_F77=no
  12421. allow_undefined_flag_F77=
  12422. always_export_symbols_F77=no
  12423. archive_expsym_cmds_F77=
  12424. export_dynamic_flag_spec_F77=
  12425. hardcode_direct_F77=no
  12426. hardcode_libdir_flag_spec_F77=
  12427. hardcode_libdir_flag_spec_ld_F77=
  12428. hardcode_libdir_separator_F77=
  12429. hardcode_minus_L_F77=no
  12430. hardcode_automatic_F77=no
  12431. module_cmds_F77=
  12432. module_expsym_cmds_F77=
  12433. link_all_deplibs_F77=unknown
  12434. old_archive_cmds_F77=$old_archive_cmds
  12435. no_undefined_flag_F77=
  12436. whole_archive_flag_spec_F77=
  12437. enable_shared_with_static_runtimes_F77=no
  12438. # Source file extension for f77 test sources.
  12439. ac_ext=f
  12440. # Object file extension for compiled f77 test sources.
  12441. objext=o
  12442. objext_F77=$objext
  12443. # Code to be used in simple compile tests
  12444. lt_simple_compile_test_code="\
  12445. subroutine t
  12446. return
  12447. end
  12448. "
  12449. # Code to be used in simple link tests
  12450. lt_simple_link_test_code="\
  12451. program t
  12452. end
  12453. "
  12454. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12455. # If no C compiler was specified, use CC.
  12456. LTCC=${LTCC-"$CC"}
  12457. # If no C compiler flags were specified, use CFLAGS.
  12458. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12459. # Allow CC to be a program name with arguments.
  12460. compiler=$CC
  12461. # save warnings/boilerplate of simple test code
  12462. ac_outfile=conftest.$ac_objext
  12463. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12464. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12465. _lt_compiler_boilerplate=`cat conftest.err`
  12466. $rm conftest*
  12467. ac_outfile=conftest.$ac_objext
  12468. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12469. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12470. _lt_linker_boilerplate=`cat conftest.err`
  12471. $rm conftest*
  12472. # Allow CC to be a program name with arguments.
  12473. lt_save_CC="$CC"
  12474. CC=${F77-"f77"}
  12475. compiler=$CC
  12476. compiler_F77=$CC
  12477. for cc_temp in $compiler""; do
  12478. case $cc_temp in
  12479. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12480. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12481. \-*) ;;
  12482. *) break;;
  12483. esac
  12484. done
  12485. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12486. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12487. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12488. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12489. echo "${ECHO_T}$can_build_shared" >&6; }
  12490. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12491. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12492. test "$can_build_shared" = "no" && enable_shared=no
  12493. # On AIX, shared libraries and static libraries use the same namespace, and
  12494. # are all built from PIC.
  12495. case $host_os in
  12496. aix3*)
  12497. test "$enable_shared" = yes && enable_static=no
  12498. if test -n "$RANLIB"; then
  12499. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12500. postinstall_cmds='$RANLIB $lib'
  12501. fi
  12502. ;;
  12503. aix4* | aix5*)
  12504. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12505. test "$enable_shared" = yes && enable_static=no
  12506. fi
  12507. ;;
  12508. esac
  12509. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12510. echo "${ECHO_T}$enable_shared" >&6; }
  12511. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12512. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12513. # Make sure either enable_shared or enable_static is yes.
  12514. test "$enable_shared" = yes || enable_static=yes
  12515. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12516. echo "${ECHO_T}$enable_static" >&6; }
  12517. GCC_F77="$G77"
  12518. LD_F77="$LD"
  12519. lt_prog_compiler_wl_F77=
  12520. lt_prog_compiler_pic_F77=
  12521. lt_prog_compiler_static_F77=
  12522. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12523. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12524. if test "$GCC" = yes; then
  12525. lt_prog_compiler_wl_F77='-Wl,'
  12526. lt_prog_compiler_static_F77='-static'
  12527. case $host_os in
  12528. aix*)
  12529. # All AIX code is PIC.
  12530. if test "$host_cpu" = ia64; then
  12531. # AIX 5 now supports IA64 processor
  12532. lt_prog_compiler_static_F77='-Bstatic'
  12533. fi
  12534. ;;
  12535. amigaos*)
  12536. # FIXME: we need at least 68020 code to build shared libraries, but
  12537. # adding the `-m68020' flag to GCC prevents building anything better,
  12538. # like `-m68040'.
  12539. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12540. ;;
  12541. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12542. # PIC is the default for these OSes.
  12543. ;;
  12544. mingw* | cygwin* | pw32* | os2*)
  12545. # This hack is so that the source file can tell whether it is being
  12546. # built for inclusion in a dll (and should export symbols for example).
  12547. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12548. # (--disable-auto-import) libraries
  12549. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12550. ;;
  12551. darwin* | rhapsody*)
  12552. # PIC is the default on this platform
  12553. # Common symbols not allowed in MH_DYLIB files
  12554. lt_prog_compiler_pic_F77='-fno-common'
  12555. ;;
  12556. interix[3-9]*)
  12557. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12558. # Instead, we relocate shared libraries at runtime.
  12559. ;;
  12560. msdosdjgpp*)
  12561. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12562. # on systems that don't support them.
  12563. lt_prog_compiler_can_build_shared_F77=no
  12564. enable_shared=no
  12565. ;;
  12566. sysv4*MP*)
  12567. if test -d /usr/nec; then
  12568. lt_prog_compiler_pic_F77=-Kconform_pic
  12569. fi
  12570. ;;
  12571. hpux*)
  12572. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12573. # not for PA HP-UX.
  12574. case $host_cpu in
  12575. hppa*64*|ia64*)
  12576. # +Z the default
  12577. ;;
  12578. *)
  12579. lt_prog_compiler_pic_F77='-fPIC'
  12580. ;;
  12581. esac
  12582. ;;
  12583. *)
  12584. lt_prog_compiler_pic_F77='-fPIC'
  12585. ;;
  12586. esac
  12587. else
  12588. # PORTME Check for flag to pass linker flags through the system compiler.
  12589. case $host_os in
  12590. aix*)
  12591. lt_prog_compiler_wl_F77='-Wl,'
  12592. if test "$host_cpu" = ia64; then
  12593. # AIX 5 now supports IA64 processor
  12594. lt_prog_compiler_static_F77='-Bstatic'
  12595. else
  12596. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12597. fi
  12598. ;;
  12599. darwin*)
  12600. # PIC is the default on this platform
  12601. # Common symbols not allowed in MH_DYLIB files
  12602. case $cc_basename in
  12603. xlc*)
  12604. lt_prog_compiler_pic_F77='-qnocommon'
  12605. lt_prog_compiler_wl_F77='-Wl,'
  12606. ;;
  12607. esac
  12608. ;;
  12609. mingw* | cygwin* | pw32* | os2*)
  12610. # This hack is so that the source file can tell whether it is being
  12611. # built for inclusion in a dll (and should export symbols for example).
  12612. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12613. ;;
  12614. hpux9* | hpux10* | hpux11*)
  12615. lt_prog_compiler_wl_F77='-Wl,'
  12616. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12617. # not for PA HP-UX.
  12618. case $host_cpu in
  12619. hppa*64*|ia64*)
  12620. # +Z the default
  12621. ;;
  12622. *)
  12623. lt_prog_compiler_pic_F77='+Z'
  12624. ;;
  12625. esac
  12626. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12627. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12628. ;;
  12629. irix5* | irix6* | nonstopux*)
  12630. lt_prog_compiler_wl_F77='-Wl,'
  12631. # PIC (with -KPIC) is the default.
  12632. lt_prog_compiler_static_F77='-non_shared'
  12633. ;;
  12634. newsos6)
  12635. lt_prog_compiler_pic_F77='-KPIC'
  12636. lt_prog_compiler_static_F77='-Bstatic'
  12637. ;;
  12638. linux* | k*bsd*-gnu)
  12639. case $cc_basename in
  12640. icc* | ecc*)
  12641. lt_prog_compiler_wl_F77='-Wl,'
  12642. lt_prog_compiler_pic_F77='-KPIC'
  12643. lt_prog_compiler_static_F77='-static'
  12644. ;;
  12645. pgcc* | pgf77* | pgf90* | pgf95*)
  12646. # Portland Group compilers (*not* the Pentium gcc compiler,
  12647. # which looks to be a dead project)
  12648. lt_prog_compiler_wl_F77='-Wl,'
  12649. lt_prog_compiler_pic_F77='-fpic'
  12650. lt_prog_compiler_static_F77='-Bstatic'
  12651. ;;
  12652. ccc*)
  12653. lt_prog_compiler_wl_F77='-Wl,'
  12654. # All Alpha code is PIC.
  12655. lt_prog_compiler_static_F77='-non_shared'
  12656. ;;
  12657. *)
  12658. case `$CC -V 2>&1 | sed 5q` in
  12659. *Sun\ C*)
  12660. # Sun C 5.9
  12661. lt_prog_compiler_pic_F77='-KPIC'
  12662. lt_prog_compiler_static_F77='-Bstatic'
  12663. lt_prog_compiler_wl_F77='-Wl,'
  12664. ;;
  12665. *Sun\ F*)
  12666. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12667. lt_prog_compiler_pic_F77='-KPIC'
  12668. lt_prog_compiler_static_F77='-Bstatic'
  12669. lt_prog_compiler_wl_F77=''
  12670. ;;
  12671. esac
  12672. ;;
  12673. esac
  12674. ;;
  12675. osf3* | osf4* | osf5*)
  12676. lt_prog_compiler_wl_F77='-Wl,'
  12677. # All OSF/1 code is PIC.
  12678. lt_prog_compiler_static_F77='-non_shared'
  12679. ;;
  12680. rdos*)
  12681. lt_prog_compiler_static_F77='-non_shared'
  12682. ;;
  12683. solaris*)
  12684. lt_prog_compiler_pic_F77='-KPIC'
  12685. lt_prog_compiler_static_F77='-Bstatic'
  12686. case $cc_basename in
  12687. f77* | f90* | f95*)
  12688. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12689. *)
  12690. lt_prog_compiler_wl_F77='-Wl,';;
  12691. esac
  12692. ;;
  12693. sunos4*)
  12694. lt_prog_compiler_wl_F77='-Qoption ld '
  12695. lt_prog_compiler_pic_F77='-PIC'
  12696. lt_prog_compiler_static_F77='-Bstatic'
  12697. ;;
  12698. sysv4 | sysv4.2uw2* | sysv4.3*)
  12699. lt_prog_compiler_wl_F77='-Wl,'
  12700. lt_prog_compiler_pic_F77='-KPIC'
  12701. lt_prog_compiler_static_F77='-Bstatic'
  12702. ;;
  12703. sysv4*MP*)
  12704. if test -d /usr/nec ;then
  12705. lt_prog_compiler_pic_F77='-Kconform_pic'
  12706. lt_prog_compiler_static_F77='-Bstatic'
  12707. fi
  12708. ;;
  12709. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12710. lt_prog_compiler_wl_F77='-Wl,'
  12711. lt_prog_compiler_pic_F77='-KPIC'
  12712. lt_prog_compiler_static_F77='-Bstatic'
  12713. ;;
  12714. unicos*)
  12715. lt_prog_compiler_wl_F77='-Wl,'
  12716. lt_prog_compiler_can_build_shared_F77=no
  12717. ;;
  12718. uts4*)
  12719. lt_prog_compiler_pic_F77='-pic'
  12720. lt_prog_compiler_static_F77='-Bstatic'
  12721. ;;
  12722. *)
  12723. lt_prog_compiler_can_build_shared_F77=no
  12724. ;;
  12725. esac
  12726. fi
  12727. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12728. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12729. #
  12730. # Check to make sure the PIC flag actually works.
  12731. #
  12732. if test -n "$lt_prog_compiler_pic_F77"; then
  12733. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12734. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12735. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12736. echo $ECHO_N "(cached) $ECHO_C" >&6
  12737. else
  12738. lt_prog_compiler_pic_works_F77=no
  12739. ac_outfile=conftest.$ac_objext
  12740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12741. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12742. # Insert the option either (1) after the last *FLAGS variable, or
  12743. # (2) before a word containing "conftest.", or (3) at the end.
  12744. # Note that $ac_compile itself does not contain backslashes and begins
  12745. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12746. # The option is referenced via a variable to avoid confusing sed.
  12747. lt_compile=`echo "$ac_compile" | $SED \
  12748. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12749. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12750. -e 's:$: $lt_compiler_flag:'`
  12751. (eval echo "\"\$as_me:14256: $lt_compile\"" >&5)
  12752. (eval "$lt_compile" 2>conftest.err)
  12753. ac_status=$?
  12754. cat conftest.err >&5
  12755. echo "$as_me:14260: \$? = $ac_status" >&5
  12756. if (exit $ac_status) && test -s "$ac_outfile"; then
  12757. # The compiler can only warn and ignore the option if not recognized
  12758. # So say no if there are warnings other than the usual output.
  12759. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12760. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12761. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12762. lt_prog_compiler_pic_works_F77=yes
  12763. fi
  12764. fi
  12765. $rm conftest*
  12766. fi
  12767. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12768. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12769. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12770. case $lt_prog_compiler_pic_F77 in
  12771. "" | " "*) ;;
  12772. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12773. esac
  12774. else
  12775. lt_prog_compiler_pic_F77=
  12776. lt_prog_compiler_can_build_shared_F77=no
  12777. fi
  12778. fi
  12779. case $host_os in
  12780. # For platforms which do not support PIC, -DPIC is meaningless:
  12781. *djgpp*)
  12782. lt_prog_compiler_pic_F77=
  12783. ;;
  12784. *)
  12785. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12786. ;;
  12787. esac
  12788. #
  12789. # Check to make sure the static flag actually works.
  12790. #
  12791. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12792. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12793. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12794. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12795. echo $ECHO_N "(cached) $ECHO_C" >&6
  12796. else
  12797. lt_prog_compiler_static_works_F77=no
  12798. save_LDFLAGS="$LDFLAGS"
  12799. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12800. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12801. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12802. # The linker can only warn and ignore the option if not recognized
  12803. # So say no if there are warnings
  12804. if test -s conftest.err; then
  12805. # Append any errors to the config.log.
  12806. cat conftest.err 1>&5
  12807. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12808. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12809. if diff conftest.exp conftest.er2 >/dev/null; then
  12810. lt_prog_compiler_static_works_F77=yes
  12811. fi
  12812. else
  12813. lt_prog_compiler_static_works_F77=yes
  12814. fi
  12815. fi
  12816. $rm conftest*
  12817. LDFLAGS="$save_LDFLAGS"
  12818. fi
  12819. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12820. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12821. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12822. :
  12823. else
  12824. lt_prog_compiler_static_F77=
  12825. fi
  12826. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12827. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12828. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12829. echo $ECHO_N "(cached) $ECHO_C" >&6
  12830. else
  12831. lt_cv_prog_compiler_c_o_F77=no
  12832. $rm -r conftest 2>/dev/null
  12833. mkdir conftest
  12834. cd conftest
  12835. mkdir out
  12836. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12837. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12838. # Insert the option either (1) after the last *FLAGS variable, or
  12839. # (2) before a word containing "conftest.", or (3) at the end.
  12840. # Note that $ac_compile itself does not contain backslashes and begins
  12841. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12842. lt_compile=`echo "$ac_compile" | $SED \
  12843. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12844. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12845. -e 's:$: $lt_compiler_flag:'`
  12846. (eval echo "\"\$as_me:14360: $lt_compile\"" >&5)
  12847. (eval "$lt_compile" 2>out/conftest.err)
  12848. ac_status=$?
  12849. cat out/conftest.err >&5
  12850. echo "$as_me:14364: \$? = $ac_status" >&5
  12851. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12852. then
  12853. # The compiler can only warn and ignore the option if not recognized
  12854. # So say no if there are warnings
  12855. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12856. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12857. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12858. lt_cv_prog_compiler_c_o_F77=yes
  12859. fi
  12860. fi
  12861. chmod u+w . 2>&5
  12862. $rm conftest*
  12863. # SGI C++ compiler will create directory out/ii_files/ for
  12864. # template instantiation
  12865. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12866. $rm out/* && rmdir out
  12867. cd ..
  12868. rmdir conftest
  12869. $rm conftest*
  12870. fi
  12871. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12872. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  12873. hard_links="nottested"
  12874. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12875. # do not overwrite the value of need_locks provided by the user
  12876. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12877. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12878. hard_links=yes
  12879. $rm conftest*
  12880. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12881. touch conftest.a
  12882. ln conftest.a conftest.b 2>&5 || hard_links=no
  12883. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12884. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12885. echo "${ECHO_T}$hard_links" >&6; }
  12886. if test "$hard_links" = no; then
  12887. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12888. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12889. need_locks=warn
  12890. fi
  12891. else
  12892. need_locks=no
  12893. fi
  12894. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12895. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12896. runpath_var=
  12897. allow_undefined_flag_F77=
  12898. enable_shared_with_static_runtimes_F77=no
  12899. archive_cmds_F77=
  12900. archive_expsym_cmds_F77=
  12901. old_archive_From_new_cmds_F77=
  12902. old_archive_from_expsyms_cmds_F77=
  12903. export_dynamic_flag_spec_F77=
  12904. whole_archive_flag_spec_F77=
  12905. thread_safe_flag_spec_F77=
  12906. hardcode_libdir_flag_spec_F77=
  12907. hardcode_libdir_flag_spec_ld_F77=
  12908. hardcode_libdir_separator_F77=
  12909. hardcode_direct_F77=no
  12910. hardcode_minus_L_F77=no
  12911. hardcode_shlibpath_var_F77=unsupported
  12912. link_all_deplibs_F77=unknown
  12913. hardcode_automatic_F77=no
  12914. module_cmds_F77=
  12915. module_expsym_cmds_F77=
  12916. always_export_symbols_F77=no
  12917. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12918. # include_expsyms should be a list of space-separated symbols to be *always*
  12919. # included in the symbol list
  12920. include_expsyms_F77=
  12921. # exclude_expsyms can be an extended regexp of symbols to exclude
  12922. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12923. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12924. # as well as any symbol that contains `d'.
  12925. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12926. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12927. # platforms (ab)use it in PIC code, but their linkers get confused if
  12928. # the symbol is explicitly referenced. Since portable code cannot
  12929. # rely on this symbol name, it's probably fine to never include it in
  12930. # preloaded symbol tables.
  12931. extract_expsyms_cmds=
  12932. # Just being paranoid about ensuring that cc_basename is set.
  12933. for cc_temp in $compiler""; do
  12934. case $cc_temp in
  12935. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12936. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12937. \-*) ;;
  12938. *) break;;
  12939. esac
  12940. done
  12941. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12942. case $host_os in
  12943. cygwin* | mingw* | pw32*)
  12944. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12945. # When not using gcc, we currently assume that we are using
  12946. # Microsoft Visual C++.
  12947. if test "$GCC" != yes; then
  12948. with_gnu_ld=no
  12949. fi
  12950. ;;
  12951. interix*)
  12952. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12953. with_gnu_ld=yes
  12954. ;;
  12955. openbsd*)
  12956. with_gnu_ld=no
  12957. ;;
  12958. esac
  12959. ld_shlibs_F77=yes
  12960. if test "$with_gnu_ld" = yes; then
  12961. # If archive_cmds runs LD, not CC, wlarc should be empty
  12962. wlarc='${wl}'
  12963. # Set some defaults for GNU ld with shared library support. These
  12964. # are reset later if shared libraries are not supported. Putting them
  12965. # here allows them to be overridden if necessary.
  12966. runpath_var=LD_RUN_PATH
  12967. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12968. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12969. # ancient GNU ld didn't support --whole-archive et. al.
  12970. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12971. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12972. else
  12973. whole_archive_flag_spec_F77=
  12974. fi
  12975. supports_anon_versioning=no
  12976. case `$LD -v 2>/dev/null` in
  12977. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12978. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12979. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12980. *\ 2.11.*) ;; # other 2.11 versions
  12981. *) supports_anon_versioning=yes ;;
  12982. esac
  12983. # See if GNU ld supports shared libraries.
  12984. case $host_os in
  12985. aix3* | aix4* | aix5*)
  12986. # On AIX/PPC, the GNU linker is very broken
  12987. if test "$host_cpu" != ia64; then
  12988. ld_shlibs_F77=no
  12989. cat <<EOF 1>&2
  12990. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12991. *** to be unable to reliably create shared libraries on AIX.
  12992. *** Therefore, libtool is disabling shared libraries support. If you
  12993. *** really care for shared libraries, you may want to modify your PATH
  12994. *** so that a non-GNU linker is found, and then restart.
  12995. EOF
  12996. fi
  12997. ;;
  12998. amigaos*)
  12999. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13000. hardcode_libdir_flag_spec_F77='-L$libdir'
  13001. hardcode_minus_L_F77=yes
  13002. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13003. # that the semantics of dynamic libraries on AmigaOS, at least up
  13004. # to version 4, is to share data among multiple programs linked
  13005. # with the same dynamic library. Since this doesn't match the
  13006. # behavior of shared libraries on other platforms, we can't use
  13007. # them.
  13008. ld_shlibs_F77=no
  13009. ;;
  13010. beos*)
  13011. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13012. allow_undefined_flag_F77=unsupported
  13013. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13014. # support --undefined. This deserves some investigation. FIXME
  13015. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13016. else
  13017. ld_shlibs_F77=no
  13018. fi
  13019. ;;
  13020. cygwin* | mingw* | pw32*)
  13021. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13022. # as there is no search path for DLLs.
  13023. hardcode_libdir_flag_spec_F77='-L$libdir'
  13024. allow_undefined_flag_F77=unsupported
  13025. always_export_symbols_F77=no
  13026. enable_shared_with_static_runtimes_F77=yes
  13027. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13028. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13029. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13030. # If the export-symbols file already is a .def file (1st line
  13031. # is EXPORTS), use it as is; otherwise, prepend...
  13032. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13033. cp $export_symbols $output_objdir/$soname.def;
  13034. else
  13035. echo EXPORTS > $output_objdir/$soname.def;
  13036. cat $export_symbols >> $output_objdir/$soname.def;
  13037. fi~
  13038. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13039. else
  13040. ld_shlibs_F77=no
  13041. fi
  13042. ;;
  13043. interix[3-9]*)
  13044. hardcode_direct_F77=no
  13045. hardcode_shlibpath_var_F77=no
  13046. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13047. export_dynamic_flag_spec_F77='${wl}-E'
  13048. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13049. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13050. # default) and relocated if they conflict, which is a slow very memory
  13051. # consuming and fragmenting process. To avoid this, we pick a random,
  13052. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13053. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13054. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13055. archive_expsym_cmds_F77='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'
  13056. ;;
  13057. gnu* | linux* | k*bsd*-gnu)
  13058. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13059. tmp_addflag=
  13060. case $cc_basename,$host_cpu in
  13061. pgcc*) # Portland Group C compiler
  13062. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13063. tmp_addflag=' $pic_flag'
  13064. ;;
  13065. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13066. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13067. tmp_addflag=' $pic_flag -Mnomain' ;;
  13068. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13069. tmp_addflag=' -i_dynamic' ;;
  13070. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13071. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13072. ifc* | ifort*) # Intel Fortran compiler
  13073. tmp_addflag=' -nofor_main' ;;
  13074. esac
  13075. case `$CC -V 2>&1 | sed 5q` in
  13076. *Sun\ C*) # Sun C 5.9
  13077. whole_archive_flag_spec_F77='${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'
  13078. tmp_sharedflag='-G' ;;
  13079. *Sun\ F*) # Sun Fortran 8.3
  13080. tmp_sharedflag='-G' ;;
  13081. *)
  13082. tmp_sharedflag='-shared' ;;
  13083. esac
  13084. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13085. if test $supports_anon_versioning = yes; then
  13086. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13087. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13088. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13089. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13090. fi
  13091. else
  13092. ld_shlibs_F77=no
  13093. fi
  13094. ;;
  13095. netbsd*)
  13096. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13097. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13098. wlarc=
  13099. else
  13100. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13101. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13102. fi
  13103. ;;
  13104. solaris*)
  13105. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13106. ld_shlibs_F77=no
  13107. cat <<EOF 1>&2
  13108. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13109. *** create shared libraries on Solaris systems. Therefore, libtool
  13110. *** is disabling shared libraries support. We urge you to upgrade GNU
  13111. *** binutils to release 2.9.1 or newer. Another option is to modify
  13112. *** your PATH or compiler configuration so that the native linker is
  13113. *** used, and then restart.
  13114. EOF
  13115. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13116. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13117. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13118. else
  13119. ld_shlibs_F77=no
  13120. fi
  13121. ;;
  13122. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13123. case `$LD -v 2>&1` in
  13124. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13125. ld_shlibs_F77=no
  13126. cat <<_LT_EOF 1>&2
  13127. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13128. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13129. *** is disabling shared libraries support. We urge you to upgrade GNU
  13130. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13131. *** your PATH or compiler configuration so that the native linker is
  13132. *** used, and then restart.
  13133. _LT_EOF
  13134. ;;
  13135. *)
  13136. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13137. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13138. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13139. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13140. else
  13141. ld_shlibs_F77=no
  13142. fi
  13143. ;;
  13144. esac
  13145. ;;
  13146. sunos4*)
  13147. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13148. wlarc=
  13149. hardcode_direct_F77=yes
  13150. hardcode_shlibpath_var_F77=no
  13151. ;;
  13152. *)
  13153. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13154. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13155. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13156. else
  13157. ld_shlibs_F77=no
  13158. fi
  13159. ;;
  13160. esac
  13161. if test "$ld_shlibs_F77" = no; then
  13162. runpath_var=
  13163. hardcode_libdir_flag_spec_F77=
  13164. export_dynamic_flag_spec_F77=
  13165. whole_archive_flag_spec_F77=
  13166. fi
  13167. else
  13168. # PORTME fill in a description of your system's linker (not GNU ld)
  13169. case $host_os in
  13170. aix3*)
  13171. allow_undefined_flag_F77=unsupported
  13172. always_export_symbols_F77=yes
  13173. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13174. # Note: this linker hardcodes the directories in LIBPATH if there
  13175. # are no directories specified by -L.
  13176. hardcode_minus_L_F77=yes
  13177. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13178. # Neither direct hardcoding nor static linking is supported with a
  13179. # broken collect2.
  13180. hardcode_direct_F77=unsupported
  13181. fi
  13182. ;;
  13183. aix4* | aix5*)
  13184. if test "$host_cpu" = ia64; then
  13185. # On IA64, the linker does run time linking by default, so we don't
  13186. # have to do anything special.
  13187. aix_use_runtimelinking=no
  13188. exp_sym_flag='-Bexport'
  13189. no_entry_flag=""
  13190. else
  13191. # If we're using GNU nm, then we don't want the "-C" option.
  13192. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13193. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13194. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13195. else
  13196. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13197. fi
  13198. aix_use_runtimelinking=no
  13199. # Test if we are trying to use run time linking or normal
  13200. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13201. # need to do runtime linking.
  13202. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13203. for ld_flag in $LDFLAGS; do
  13204. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13205. aix_use_runtimelinking=yes
  13206. break
  13207. fi
  13208. done
  13209. ;;
  13210. esac
  13211. exp_sym_flag='-bexport'
  13212. no_entry_flag='-bnoentry'
  13213. fi
  13214. # When large executables or shared objects are built, AIX ld can
  13215. # have problems creating the table of contents. If linking a library
  13216. # or program results in "error TOC overflow" add -mminimal-toc to
  13217. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13218. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13219. archive_cmds_F77=''
  13220. hardcode_direct_F77=yes
  13221. hardcode_libdir_separator_F77=':'
  13222. link_all_deplibs_F77=yes
  13223. if test "$GCC" = yes; then
  13224. case $host_os in aix4.[012]|aix4.[012].*)
  13225. # We only want to do this on AIX 4.2 and lower, the check
  13226. # below for broken collect2 doesn't work under 4.3+
  13227. collect2name=`${CC} -print-prog-name=collect2`
  13228. if test -f "$collect2name" && \
  13229. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13230. then
  13231. # We have reworked collect2
  13232. :
  13233. else
  13234. # We have old collect2
  13235. hardcode_direct_F77=unsupported
  13236. # It fails to find uninstalled libraries when the uninstalled
  13237. # path is not listed in the libpath. Setting hardcode_minus_L
  13238. # to unsupported forces relinking
  13239. hardcode_minus_L_F77=yes
  13240. hardcode_libdir_flag_spec_F77='-L$libdir'
  13241. hardcode_libdir_separator_F77=
  13242. fi
  13243. ;;
  13244. esac
  13245. shared_flag='-shared'
  13246. if test "$aix_use_runtimelinking" = yes; then
  13247. shared_flag="$shared_flag "'${wl}-G'
  13248. fi
  13249. else
  13250. # not using gcc
  13251. if test "$host_cpu" = ia64; then
  13252. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13253. # chokes on -Wl,-G. The following line is correct:
  13254. shared_flag='-G'
  13255. else
  13256. if test "$aix_use_runtimelinking" = yes; then
  13257. shared_flag='${wl}-G'
  13258. else
  13259. shared_flag='${wl}-bM:SRE'
  13260. fi
  13261. fi
  13262. fi
  13263. # It seems that -bexpall does not export symbols beginning with
  13264. # underscore (_), so it is better to generate a list of symbols to export.
  13265. always_export_symbols_F77=yes
  13266. if test "$aix_use_runtimelinking" = yes; then
  13267. # Warning - without using the other runtime loading flags (-brtl),
  13268. # -berok will link without error, but may produce a broken library.
  13269. allow_undefined_flag_F77='-berok'
  13270. # Determine the default libpath from the value encoded in an empty executable.
  13271. cat >conftest.$ac_ext <<_ACEOF
  13272. program main
  13273. end
  13274. _ACEOF
  13275. rm -f conftest.$ac_objext conftest$ac_exeext
  13276. if { (ac_try="$ac_link"
  13277. case "(($ac_try" in
  13278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13279. *) ac_try_echo=$ac_try;;
  13280. esac
  13281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13282. (eval "$ac_link") 2>conftest.er1
  13283. ac_status=$?
  13284. grep -v '^ *+' conftest.er1 >conftest.err
  13285. rm -f conftest.er1
  13286. cat conftest.err >&5
  13287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13288. (exit $ac_status); } && {
  13289. test -z "$ac_f77_werror_flag" ||
  13290. test ! -s conftest.err
  13291. } && test -s conftest$ac_exeext &&
  13292. $as_test_x conftest$ac_exeext; then
  13293. lt_aix_libpath_sed='
  13294. /Import File Strings/,/^$/ {
  13295. /^0/ {
  13296. s/^0 *\(.*\)$/\1/
  13297. p
  13298. }
  13299. }'
  13300. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13301. # Check for a 64-bit object if we didn't find anything.
  13302. if test -z "$aix_libpath"; then
  13303. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13304. fi
  13305. else
  13306. echo "$as_me: failed program was:" >&5
  13307. sed 's/^/| /' conftest.$ac_ext >&5
  13308. fi
  13309. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13310. conftest$ac_exeext conftest.$ac_ext
  13311. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13312. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13313. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13314. else
  13315. if test "$host_cpu" = ia64; then
  13316. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13317. allow_undefined_flag_F77="-z nodefs"
  13318. archive_expsym_cmds_F77="\$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"
  13319. else
  13320. # Determine the default libpath from the value encoded in an empty executable.
  13321. cat >conftest.$ac_ext <<_ACEOF
  13322. program main
  13323. end
  13324. _ACEOF
  13325. rm -f conftest.$ac_objext conftest$ac_exeext
  13326. if { (ac_try="$ac_link"
  13327. case "(($ac_try" in
  13328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13329. *) ac_try_echo=$ac_try;;
  13330. esac
  13331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13332. (eval "$ac_link") 2>conftest.er1
  13333. ac_status=$?
  13334. grep -v '^ *+' conftest.er1 >conftest.err
  13335. rm -f conftest.er1
  13336. cat conftest.err >&5
  13337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13338. (exit $ac_status); } && {
  13339. test -z "$ac_f77_werror_flag" ||
  13340. test ! -s conftest.err
  13341. } && test -s conftest$ac_exeext &&
  13342. $as_test_x conftest$ac_exeext; then
  13343. lt_aix_libpath_sed='
  13344. /Import File Strings/,/^$/ {
  13345. /^0/ {
  13346. s/^0 *\(.*\)$/\1/
  13347. p
  13348. }
  13349. }'
  13350. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13351. # Check for a 64-bit object if we didn't find anything.
  13352. if test -z "$aix_libpath"; then
  13353. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13354. fi
  13355. else
  13356. echo "$as_me: failed program was:" >&5
  13357. sed 's/^/| /' conftest.$ac_ext >&5
  13358. fi
  13359. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13360. conftest$ac_exeext conftest.$ac_ext
  13361. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13362. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13363. # Warning - without using the other run time loading flags,
  13364. # -berok will link without error, but may produce a broken library.
  13365. no_undefined_flag_F77=' ${wl}-bernotok'
  13366. allow_undefined_flag_F77=' ${wl}-berok'
  13367. # Exported symbols can be pulled into shared objects from archives
  13368. whole_archive_flag_spec_F77='$convenience'
  13369. archive_cmds_need_lc_F77=yes
  13370. # This is similar to how AIX traditionally builds its shared libraries.
  13371. archive_expsym_cmds_F77="\$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'
  13372. fi
  13373. fi
  13374. ;;
  13375. amigaos*)
  13376. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13377. hardcode_libdir_flag_spec_F77='-L$libdir'
  13378. hardcode_minus_L_F77=yes
  13379. # see comment about different semantics on the GNU ld section
  13380. ld_shlibs_F77=no
  13381. ;;
  13382. bsdi[45]*)
  13383. export_dynamic_flag_spec_F77=-rdynamic
  13384. ;;
  13385. cygwin* | mingw* | pw32*)
  13386. # When not using gcc, we currently assume that we are using
  13387. # Microsoft Visual C++.
  13388. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13389. # no search path for DLLs.
  13390. hardcode_libdir_flag_spec_F77=' '
  13391. allow_undefined_flag_F77=unsupported
  13392. # Tell ltmain to make .lib files, not .a files.
  13393. libext=lib
  13394. # Tell ltmain to make .dll files, not .so files.
  13395. shrext_cmds=".dll"
  13396. # FIXME: Setting linknames here is a bad hack.
  13397. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13398. # The linker will automatically build a .lib file if we build a DLL.
  13399. old_archive_From_new_cmds_F77='true'
  13400. # FIXME: Should let the user specify the lib program.
  13401. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13402. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13403. enable_shared_with_static_runtimes_F77=yes
  13404. ;;
  13405. darwin* | rhapsody*)
  13406. case $host_os in
  13407. rhapsody* | darwin1.[012])
  13408. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13409. ;;
  13410. *) # Darwin 1.3 on
  13411. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13412. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13413. else
  13414. case ${MACOSX_DEPLOYMENT_TARGET} in
  13415. 10.[012])
  13416. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13417. ;;
  13418. 10.*)
  13419. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13420. ;;
  13421. esac
  13422. fi
  13423. ;;
  13424. esac
  13425. archive_cmds_need_lc_F77=no
  13426. hardcode_direct_F77=no
  13427. hardcode_automatic_F77=yes
  13428. hardcode_shlibpath_var_F77=unsupported
  13429. whole_archive_flag_spec_F77=''
  13430. link_all_deplibs_F77=yes
  13431. if test "$GCC" = yes ; then
  13432. output_verbose_link_cmd='echo'
  13433. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13434. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13435. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13436. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13437. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13438. else
  13439. case $cc_basename in
  13440. xlc*)
  13441. output_verbose_link_cmd='echo'
  13442. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13443. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13444. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13445. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13446. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13447. ;;
  13448. *)
  13449. ld_shlibs_F77=no
  13450. ;;
  13451. esac
  13452. fi
  13453. ;;
  13454. dgux*)
  13455. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13456. hardcode_libdir_flag_spec_F77='-L$libdir'
  13457. hardcode_shlibpath_var_F77=no
  13458. ;;
  13459. freebsd1*)
  13460. ld_shlibs_F77=no
  13461. ;;
  13462. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13463. # support. Future versions do this automatically, but an explicit c++rt0.o
  13464. # does not break anything, and helps significantly (at the cost of a little
  13465. # extra space).
  13466. freebsd2.2*)
  13467. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13468. hardcode_libdir_flag_spec_F77='-R$libdir'
  13469. hardcode_direct_F77=yes
  13470. hardcode_shlibpath_var_F77=no
  13471. ;;
  13472. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13473. freebsd2*)
  13474. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13475. hardcode_direct_F77=yes
  13476. hardcode_minus_L_F77=yes
  13477. hardcode_shlibpath_var_F77=no
  13478. ;;
  13479. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13480. freebsd* | dragonfly*)
  13481. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13482. hardcode_libdir_flag_spec_F77='-R$libdir'
  13483. hardcode_direct_F77=yes
  13484. hardcode_shlibpath_var_F77=no
  13485. ;;
  13486. hpux9*)
  13487. if test "$GCC" = yes; then
  13488. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13489. else
  13490. archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13491. fi
  13492. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13493. hardcode_libdir_separator_F77=:
  13494. hardcode_direct_F77=yes
  13495. # hardcode_minus_L: Not really in the search PATH,
  13496. # but as the default location of the library.
  13497. hardcode_minus_L_F77=yes
  13498. export_dynamic_flag_spec_F77='${wl}-E'
  13499. ;;
  13500. hpux10*)
  13501. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13502. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13503. else
  13504. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13505. fi
  13506. if test "$with_gnu_ld" = no; then
  13507. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13508. hardcode_libdir_separator_F77=:
  13509. hardcode_direct_F77=yes
  13510. export_dynamic_flag_spec_F77='${wl}-E'
  13511. # hardcode_minus_L: Not really in the search PATH,
  13512. # but as the default location of the library.
  13513. hardcode_minus_L_F77=yes
  13514. fi
  13515. ;;
  13516. hpux11*)
  13517. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13518. case $host_cpu in
  13519. hppa*64*)
  13520. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13521. ;;
  13522. ia64*)
  13523. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13524. ;;
  13525. *)
  13526. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13527. ;;
  13528. esac
  13529. else
  13530. case $host_cpu in
  13531. hppa*64*)
  13532. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13533. ;;
  13534. ia64*)
  13535. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13536. ;;
  13537. *)
  13538. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13539. ;;
  13540. esac
  13541. fi
  13542. if test "$with_gnu_ld" = no; then
  13543. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13544. hardcode_libdir_separator_F77=:
  13545. case $host_cpu in
  13546. hppa*64*|ia64*)
  13547. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13548. hardcode_direct_F77=no
  13549. hardcode_shlibpath_var_F77=no
  13550. ;;
  13551. *)
  13552. hardcode_direct_F77=yes
  13553. export_dynamic_flag_spec_F77='${wl}-E'
  13554. # hardcode_minus_L: Not really in the search PATH,
  13555. # but as the default location of the library.
  13556. hardcode_minus_L_F77=yes
  13557. ;;
  13558. esac
  13559. fi
  13560. ;;
  13561. irix5* | irix6* | nonstopux*)
  13562. if test "$GCC" = yes; then
  13563. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13564. else
  13565. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13566. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13567. fi
  13568. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13569. hardcode_libdir_separator_F77=:
  13570. link_all_deplibs_F77=yes
  13571. ;;
  13572. netbsd*)
  13573. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13574. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13575. else
  13576. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13577. fi
  13578. hardcode_libdir_flag_spec_F77='-R$libdir'
  13579. hardcode_direct_F77=yes
  13580. hardcode_shlibpath_var_F77=no
  13581. ;;
  13582. newsos6)
  13583. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13584. hardcode_direct_F77=yes
  13585. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13586. hardcode_libdir_separator_F77=:
  13587. hardcode_shlibpath_var_F77=no
  13588. ;;
  13589. openbsd*)
  13590. if test -f /usr/libexec/ld.so; then
  13591. hardcode_direct_F77=yes
  13592. hardcode_shlibpath_var_F77=no
  13593. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13594. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13595. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13596. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13597. export_dynamic_flag_spec_F77='${wl}-E'
  13598. else
  13599. case $host_os in
  13600. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13601. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13602. hardcode_libdir_flag_spec_F77='-R$libdir'
  13603. ;;
  13604. *)
  13605. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13606. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13607. ;;
  13608. esac
  13609. fi
  13610. else
  13611. ld_shlibs_F77=no
  13612. fi
  13613. ;;
  13614. os2*)
  13615. hardcode_libdir_flag_spec_F77='-L$libdir'
  13616. hardcode_minus_L_F77=yes
  13617. allow_undefined_flag_F77=unsupported
  13618. archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  13619. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13620. ;;
  13621. osf3*)
  13622. if test "$GCC" = yes; then
  13623. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13624. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13625. else
  13626. allow_undefined_flag_F77=' -expect_unresolved \*'
  13627. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13628. fi
  13629. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13630. hardcode_libdir_separator_F77=:
  13631. ;;
  13632. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13633. if test "$GCC" = yes; then
  13634. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13635. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13636. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13637. else
  13638. allow_undefined_flag_F77=' -expect_unresolved \*'
  13639. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13640. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  13641. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  13642. # Both c and cxx compiler support -rpath directly
  13643. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13644. fi
  13645. hardcode_libdir_separator_F77=:
  13646. ;;
  13647. solaris*)
  13648. no_undefined_flag_F77=' -z text'
  13649. if test "$GCC" = yes; then
  13650. wlarc='${wl}'
  13651. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13652. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13653. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13654. else
  13655. wlarc=''
  13656. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13657. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13658. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13659. fi
  13660. hardcode_libdir_flag_spec_F77='-R$libdir'
  13661. hardcode_shlibpath_var_F77=no
  13662. case $host_os in
  13663. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13664. *)
  13665. # The compiler driver will combine and reorder linker options,
  13666. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13667. # but is careful enough not to reorder.
  13668. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13669. if test "$GCC" = yes; then
  13670. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13671. else
  13672. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  13673. fi
  13674. ;;
  13675. esac
  13676. link_all_deplibs_F77=yes
  13677. ;;
  13678. sunos4*)
  13679. if test "x$host_vendor" = xsequent; then
  13680. # Use $CC to link under sequent, because it throws in some extra .o
  13681. # files that make .init and .fini sections work.
  13682. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13683. else
  13684. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13685. fi
  13686. hardcode_libdir_flag_spec_F77='-L$libdir'
  13687. hardcode_direct_F77=yes
  13688. hardcode_minus_L_F77=yes
  13689. hardcode_shlibpath_var_F77=no
  13690. ;;
  13691. sysv4)
  13692. case $host_vendor in
  13693. sni)
  13694. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13695. hardcode_direct_F77=yes # is this really true???
  13696. ;;
  13697. siemens)
  13698. ## LD is ld it makes a PLAMLIB
  13699. ## CC just makes a GrossModule.
  13700. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13701. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13702. hardcode_direct_F77=no
  13703. ;;
  13704. motorola)
  13705. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13706. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13707. ;;
  13708. esac
  13709. runpath_var='LD_RUN_PATH'
  13710. hardcode_shlibpath_var_F77=no
  13711. ;;
  13712. sysv4.3*)
  13713. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13714. hardcode_shlibpath_var_F77=no
  13715. export_dynamic_flag_spec_F77='-Bexport'
  13716. ;;
  13717. sysv4*MP*)
  13718. if test -d /usr/nec; then
  13719. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13720. hardcode_shlibpath_var_F77=no
  13721. runpath_var=LD_RUN_PATH
  13722. hardcode_runpath_var=yes
  13723. ld_shlibs_F77=yes
  13724. fi
  13725. ;;
  13726. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13727. no_undefined_flag_F77='${wl}-z,text'
  13728. archive_cmds_need_lc_F77=no
  13729. hardcode_shlibpath_var_F77=no
  13730. runpath_var='LD_RUN_PATH'
  13731. if test "$GCC" = yes; then
  13732. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13733. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13734. else
  13735. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13736. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13737. fi
  13738. ;;
  13739. sysv5* | sco3.2v5* | sco5v6*)
  13740. # Note: We can NOT use -z defs as we might desire, because we do not
  13741. # link with -lc, and that would cause any symbols used from libc to
  13742. # always be unresolved, which means just about no library would
  13743. # ever link correctly. If we're not using GNU ld we use -z text
  13744. # though, which does catch some bad symbols but isn't as heavy-handed
  13745. # as -z defs.
  13746. no_undefined_flag_F77='${wl}-z,text'
  13747. allow_undefined_flag_F77='${wl}-z,nodefs'
  13748. archive_cmds_need_lc_F77=no
  13749. hardcode_shlibpath_var_F77=no
  13750. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13751. hardcode_libdir_separator_F77=':'
  13752. link_all_deplibs_F77=yes
  13753. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13754. runpath_var='LD_RUN_PATH'
  13755. if test "$GCC" = yes; then
  13756. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13757. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13758. else
  13759. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13760. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13761. fi
  13762. ;;
  13763. uts4*)
  13764. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13765. hardcode_libdir_flag_spec_F77='-L$libdir'
  13766. hardcode_shlibpath_var_F77=no
  13767. ;;
  13768. *)
  13769. ld_shlibs_F77=no
  13770. ;;
  13771. esac
  13772. fi
  13773. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13774. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13775. test "$ld_shlibs_F77" = no && can_build_shared=no
  13776. #
  13777. # Do we need to explicitly link libc?
  13778. #
  13779. case "x$archive_cmds_need_lc_F77" in
  13780. x|xyes)
  13781. # Assume -lc should be added
  13782. archive_cmds_need_lc_F77=yes
  13783. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13784. case $archive_cmds_F77 in
  13785. *'~'*)
  13786. # FIXME: we may have to deal with multi-command sequences.
  13787. ;;
  13788. '$CC '*)
  13789. # Test whether the compiler implicitly links with -lc since on some
  13790. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13791. # to ld, don't add -lc before -lgcc.
  13792. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13793. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13794. $rm conftest*
  13795. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13797. (eval $ac_compile) 2>&5
  13798. ac_status=$?
  13799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13800. (exit $ac_status); } 2>conftest.err; then
  13801. soname=conftest
  13802. lib=conftest
  13803. libobjs=conftest.$ac_objext
  13804. deplibs=
  13805. wl=$lt_prog_compiler_wl_F77
  13806. pic_flag=$lt_prog_compiler_pic_F77
  13807. compiler_flags=-v
  13808. linker_flags=-v
  13809. verstring=
  13810. output_objdir=.
  13811. libname=conftest
  13812. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13813. allow_undefined_flag_F77=
  13814. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13815. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13816. ac_status=$?
  13817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13818. (exit $ac_status); }
  13819. then
  13820. archive_cmds_need_lc_F77=no
  13821. else
  13822. archive_cmds_need_lc_F77=yes
  13823. fi
  13824. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13825. else
  13826. cat conftest.err 1>&5
  13827. fi
  13828. $rm conftest*
  13829. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13830. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13831. ;;
  13832. esac
  13833. fi
  13834. ;;
  13835. esac
  13836. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13837. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13838. library_names_spec=
  13839. libname_spec='lib$name'
  13840. soname_spec=
  13841. shrext_cmds=".so"
  13842. postinstall_cmds=
  13843. postuninstall_cmds=
  13844. finish_cmds=
  13845. finish_eval=
  13846. shlibpath_var=
  13847. shlibpath_overrides_runpath=unknown
  13848. version_type=none
  13849. dynamic_linker="$host_os ld.so"
  13850. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13851. need_lib_prefix=unknown
  13852. hardcode_into_libs=no
  13853. # when you set need_version to no, make sure it does not cause -set_version
  13854. # flags to be left without arguments
  13855. need_version=unknown
  13856. case $host_os in
  13857. aix3*)
  13858. version_type=linux
  13859. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13860. shlibpath_var=LIBPATH
  13861. # AIX 3 has no versioning support, so we append a major version to the name.
  13862. soname_spec='${libname}${release}${shared_ext}$major'
  13863. ;;
  13864. aix4* | aix5*)
  13865. version_type=linux
  13866. need_lib_prefix=no
  13867. need_version=no
  13868. hardcode_into_libs=yes
  13869. if test "$host_cpu" = ia64; then
  13870. # AIX 5 supports IA64
  13871. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13872. shlibpath_var=LD_LIBRARY_PATH
  13873. else
  13874. # With GCC up to 2.95.x, collect2 would create an import file
  13875. # for dependence libraries. The import file would start with
  13876. # the line `#! .'. This would cause the generated library to
  13877. # depend on `.', always an invalid library. This was fixed in
  13878. # development snapshots of GCC prior to 3.0.
  13879. case $host_os in
  13880. aix4 | aix4.[01] | aix4.[01].*)
  13881. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13882. echo ' yes '
  13883. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13884. :
  13885. else
  13886. can_build_shared=no
  13887. fi
  13888. ;;
  13889. esac
  13890. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13891. # soname into executable. Probably we can add versioning support to
  13892. # collect2, so additional links can be useful in future.
  13893. if test "$aix_use_runtimelinking" = yes; then
  13894. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13895. # instead of lib<name>.a to let people know that these are not
  13896. # typical AIX shared libraries.
  13897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13898. else
  13899. # We preserve .a as extension for shared libraries through AIX4.2
  13900. # and later when we are not doing run time linking.
  13901. library_names_spec='${libname}${release}.a $libname.a'
  13902. soname_spec='${libname}${release}${shared_ext}$major'
  13903. fi
  13904. shlibpath_var=LIBPATH
  13905. fi
  13906. ;;
  13907. amigaos*)
  13908. library_names_spec='$libname.ixlibrary $libname.a'
  13909. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13910. 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'
  13911. ;;
  13912. beos*)
  13913. library_names_spec='${libname}${shared_ext}'
  13914. dynamic_linker="$host_os ld.so"
  13915. shlibpath_var=LIBRARY_PATH
  13916. ;;
  13917. bsdi[45]*)
  13918. version_type=linux
  13919. need_version=no
  13920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13921. soname_spec='${libname}${release}${shared_ext}$major'
  13922. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13923. shlibpath_var=LD_LIBRARY_PATH
  13924. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13925. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13926. # the default ld.so.conf also contains /usr/contrib/lib and
  13927. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13928. # libtool to hard-code these into programs
  13929. ;;
  13930. cygwin* | mingw* | pw32*)
  13931. version_type=windows
  13932. shrext_cmds=".dll"
  13933. need_version=no
  13934. need_lib_prefix=no
  13935. case $GCC,$host_os in
  13936. yes,cygwin* | yes,mingw* | yes,pw32*)
  13937. library_names_spec='$libname.dll.a'
  13938. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13939. postinstall_cmds='base_file=`basename \${file}`~
  13940. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13941. dldir=$destdir/`dirname \$dlpath`~
  13942. test -d \$dldir || mkdir -p \$dldir~
  13943. $install_prog $dir/$dlname \$dldir/$dlname~
  13944. chmod a+x \$dldir/$dlname'
  13945. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13946. dlpath=$dir/\$dldll~
  13947. $rm \$dlpath'
  13948. shlibpath_overrides_runpath=yes
  13949. case $host_os in
  13950. cygwin*)
  13951. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13952. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13953. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13954. ;;
  13955. mingw*)
  13956. # MinGW DLLs use traditional 'lib' prefix
  13957. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13958. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13959. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13960. # It is most probably a Windows format PATH printed by
  13961. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13962. # path with ; separators, and with drive letters. We can handle the
  13963. # drive letters (cygwin fileutils understands them), so leave them,
  13964. # especially as we might pass files found there to a mingw objdump,
  13965. # which wouldn't understand a cygwinified path. Ahh.
  13966. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13967. else
  13968. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13969. fi
  13970. ;;
  13971. pw32*)
  13972. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13973. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13974. ;;
  13975. esac
  13976. ;;
  13977. *)
  13978. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13979. ;;
  13980. esac
  13981. dynamic_linker='Win32 ld.exe'
  13982. # FIXME: first we should search . and the directory the executable is in
  13983. shlibpath_var=PATH
  13984. ;;
  13985. darwin* | rhapsody*)
  13986. dynamic_linker="$host_os dyld"
  13987. version_type=darwin
  13988. need_lib_prefix=no
  13989. need_version=no
  13990. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13991. soname_spec='${libname}${release}${major}$shared_ext'
  13992. shlibpath_overrides_runpath=yes
  13993. shlibpath_var=DYLD_LIBRARY_PATH
  13994. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13995. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13996. ;;
  13997. dgux*)
  13998. version_type=linux
  13999. need_lib_prefix=no
  14000. need_version=no
  14001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14002. soname_spec='${libname}${release}${shared_ext}$major'
  14003. shlibpath_var=LD_LIBRARY_PATH
  14004. ;;
  14005. freebsd1*)
  14006. dynamic_linker=no
  14007. ;;
  14008. freebsd* | dragonfly*)
  14009. # DragonFly does not have aout. When/if they implement a new
  14010. # versioning mechanism, adjust this.
  14011. if test -x /usr/bin/objformat; then
  14012. objformat=`/usr/bin/objformat`
  14013. else
  14014. case $host_os in
  14015. freebsd[123]*) objformat=aout ;;
  14016. *) objformat=elf ;;
  14017. esac
  14018. fi
  14019. version_type=freebsd-$objformat
  14020. case $version_type in
  14021. freebsd-elf*)
  14022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14023. need_version=no
  14024. need_lib_prefix=no
  14025. ;;
  14026. freebsd-*)
  14027. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14028. need_version=yes
  14029. ;;
  14030. esac
  14031. shlibpath_var=LD_LIBRARY_PATH
  14032. case $host_os in
  14033. freebsd2*)
  14034. shlibpath_overrides_runpath=yes
  14035. ;;
  14036. freebsd3.[01]* | freebsdelf3.[01]*)
  14037. shlibpath_overrides_runpath=yes
  14038. hardcode_into_libs=yes
  14039. ;;
  14040. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14041. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14042. shlibpath_overrides_runpath=no
  14043. hardcode_into_libs=yes
  14044. ;;
  14045. *) # from 4.6 on, and DragonFly
  14046. shlibpath_overrides_runpath=yes
  14047. hardcode_into_libs=yes
  14048. ;;
  14049. esac
  14050. ;;
  14051. gnu*)
  14052. version_type=linux
  14053. need_lib_prefix=no
  14054. need_version=no
  14055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14056. soname_spec='${libname}${release}${shared_ext}$major'
  14057. shlibpath_var=LD_LIBRARY_PATH
  14058. hardcode_into_libs=yes
  14059. ;;
  14060. hpux9* | hpux10* | hpux11*)
  14061. # Give a soname corresponding to the major version so that dld.sl refuses to
  14062. # link against other versions.
  14063. version_type=sunos
  14064. need_lib_prefix=no
  14065. need_version=no
  14066. case $host_cpu in
  14067. ia64*)
  14068. shrext_cmds='.so'
  14069. hardcode_into_libs=yes
  14070. dynamic_linker="$host_os dld.so"
  14071. shlibpath_var=LD_LIBRARY_PATH
  14072. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14074. soname_spec='${libname}${release}${shared_ext}$major'
  14075. if test "X$HPUX_IA64_MODE" = X32; then
  14076. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14077. else
  14078. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14079. fi
  14080. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14081. ;;
  14082. hppa*64*)
  14083. shrext_cmds='.sl'
  14084. hardcode_into_libs=yes
  14085. dynamic_linker="$host_os dld.sl"
  14086. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14087. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14089. soname_spec='${libname}${release}${shared_ext}$major'
  14090. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14091. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14092. ;;
  14093. *)
  14094. shrext_cmds='.sl'
  14095. dynamic_linker="$host_os dld.sl"
  14096. shlibpath_var=SHLIB_PATH
  14097. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14099. soname_spec='${libname}${release}${shared_ext}$major'
  14100. ;;
  14101. esac
  14102. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14103. postinstall_cmds='chmod 555 $lib'
  14104. ;;
  14105. interix[3-9]*)
  14106. version_type=linux
  14107. need_lib_prefix=no
  14108. need_version=no
  14109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14110. soname_spec='${libname}${release}${shared_ext}$major'
  14111. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14112. shlibpath_var=LD_LIBRARY_PATH
  14113. shlibpath_overrides_runpath=no
  14114. hardcode_into_libs=yes
  14115. ;;
  14116. irix5* | irix6* | nonstopux*)
  14117. case $host_os in
  14118. nonstopux*) version_type=nonstopux ;;
  14119. *)
  14120. if test "$lt_cv_prog_gnu_ld" = yes; then
  14121. version_type=linux
  14122. else
  14123. version_type=irix
  14124. fi ;;
  14125. esac
  14126. need_lib_prefix=no
  14127. need_version=no
  14128. soname_spec='${libname}${release}${shared_ext}$major'
  14129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14130. case $host_os in
  14131. irix5* | nonstopux*)
  14132. libsuff= shlibsuff=
  14133. ;;
  14134. *)
  14135. case $LD in # libtool.m4 will add one of these switches to LD
  14136. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14137. libsuff= shlibsuff= libmagic=32-bit;;
  14138. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14139. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14140. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14141. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14142. *) libsuff= shlibsuff= libmagic=never-match;;
  14143. esac
  14144. ;;
  14145. esac
  14146. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14147. shlibpath_overrides_runpath=no
  14148. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14149. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14150. hardcode_into_libs=yes
  14151. ;;
  14152. # No shared lib support for Linux oldld, aout, or coff.
  14153. linux*oldld* | linux*aout* | linux*coff*)
  14154. dynamic_linker=no
  14155. ;;
  14156. # This must be Linux ELF.
  14157. linux* | k*bsd*-gnu)
  14158. version_type=linux
  14159. need_lib_prefix=no
  14160. need_version=no
  14161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14162. soname_spec='${libname}${release}${shared_ext}$major'
  14163. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14164. shlibpath_var=LD_LIBRARY_PATH
  14165. shlibpath_overrides_runpath=no
  14166. # This implies no fast_install, which is unacceptable.
  14167. # Some rework will be needed to allow for fast_install
  14168. # before this can be enabled.
  14169. hardcode_into_libs=yes
  14170. # Append ld.so.conf contents to the search path
  14171. if test -f /etc/ld.so.conf; then
  14172. 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' ' '`
  14173. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14174. fi
  14175. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14176. # powerpc, because MkLinux only supported shared libraries with the
  14177. # GNU dynamic linker. Since this was broken with cross compilers,
  14178. # most powerpc-linux boxes support dynamic linking these days and
  14179. # people can always --disable-shared, the test was removed, and we
  14180. # assume the GNU/Linux dynamic linker is in use.
  14181. dynamic_linker='GNU/Linux ld.so'
  14182. ;;
  14183. netbsd*)
  14184. version_type=sunos
  14185. need_lib_prefix=no
  14186. need_version=no
  14187. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14189. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14190. dynamic_linker='NetBSD (a.out) ld.so'
  14191. else
  14192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14193. soname_spec='${libname}${release}${shared_ext}$major'
  14194. dynamic_linker='NetBSD ld.elf_so'
  14195. fi
  14196. shlibpath_var=LD_LIBRARY_PATH
  14197. shlibpath_overrides_runpath=yes
  14198. hardcode_into_libs=yes
  14199. ;;
  14200. newsos6)
  14201. version_type=linux
  14202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14203. shlibpath_var=LD_LIBRARY_PATH
  14204. shlibpath_overrides_runpath=yes
  14205. ;;
  14206. nto-qnx*)
  14207. version_type=linux
  14208. need_lib_prefix=no
  14209. need_version=no
  14210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14211. soname_spec='${libname}${release}${shared_ext}$major'
  14212. shlibpath_var=LD_LIBRARY_PATH
  14213. shlibpath_overrides_runpath=yes
  14214. ;;
  14215. openbsd*)
  14216. version_type=sunos
  14217. sys_lib_dlsearch_path_spec="/usr/lib"
  14218. need_lib_prefix=no
  14219. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14220. case $host_os in
  14221. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14222. *) need_version=no ;;
  14223. esac
  14224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14225. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14226. shlibpath_var=LD_LIBRARY_PATH
  14227. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14228. case $host_os in
  14229. openbsd2.[89] | openbsd2.[89].*)
  14230. shlibpath_overrides_runpath=no
  14231. ;;
  14232. *)
  14233. shlibpath_overrides_runpath=yes
  14234. ;;
  14235. esac
  14236. else
  14237. shlibpath_overrides_runpath=yes
  14238. fi
  14239. ;;
  14240. os2*)
  14241. libname_spec='$name'
  14242. shrext_cmds=".dll"
  14243. need_lib_prefix=no
  14244. library_names_spec='$libname${shared_ext} $libname.a'
  14245. dynamic_linker='OS/2 ld.exe'
  14246. shlibpath_var=LIBPATH
  14247. ;;
  14248. osf3* | osf4* | osf5*)
  14249. version_type=osf
  14250. need_lib_prefix=no
  14251. need_version=no
  14252. soname_spec='${libname}${release}${shared_ext}$major'
  14253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14254. shlibpath_var=LD_LIBRARY_PATH
  14255. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14256. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14257. ;;
  14258. rdos*)
  14259. dynamic_linker=no
  14260. ;;
  14261. solaris*)
  14262. version_type=linux
  14263. need_lib_prefix=no
  14264. need_version=no
  14265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14266. soname_spec='${libname}${release}${shared_ext}$major'
  14267. shlibpath_var=LD_LIBRARY_PATH
  14268. shlibpath_overrides_runpath=yes
  14269. hardcode_into_libs=yes
  14270. # ldd complains unless libraries are executable
  14271. postinstall_cmds='chmod +x $lib'
  14272. ;;
  14273. sunos4*)
  14274. version_type=sunos
  14275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14276. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14277. shlibpath_var=LD_LIBRARY_PATH
  14278. shlibpath_overrides_runpath=yes
  14279. if test "$with_gnu_ld" = yes; then
  14280. need_lib_prefix=no
  14281. fi
  14282. need_version=yes
  14283. ;;
  14284. sysv4 | sysv4.3*)
  14285. version_type=linux
  14286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14287. soname_spec='${libname}${release}${shared_ext}$major'
  14288. shlibpath_var=LD_LIBRARY_PATH
  14289. case $host_vendor in
  14290. sni)
  14291. shlibpath_overrides_runpath=no
  14292. need_lib_prefix=no
  14293. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14294. runpath_var=LD_RUN_PATH
  14295. ;;
  14296. siemens)
  14297. need_lib_prefix=no
  14298. ;;
  14299. motorola)
  14300. need_lib_prefix=no
  14301. need_version=no
  14302. shlibpath_overrides_runpath=no
  14303. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14304. ;;
  14305. esac
  14306. ;;
  14307. sysv4*MP*)
  14308. if test -d /usr/nec ;then
  14309. version_type=linux
  14310. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14311. soname_spec='$libname${shared_ext}.$major'
  14312. shlibpath_var=LD_LIBRARY_PATH
  14313. fi
  14314. ;;
  14315. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14316. version_type=freebsd-elf
  14317. need_lib_prefix=no
  14318. need_version=no
  14319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14320. soname_spec='${libname}${release}${shared_ext}$major'
  14321. shlibpath_var=LD_LIBRARY_PATH
  14322. hardcode_into_libs=yes
  14323. if test "$with_gnu_ld" = yes; then
  14324. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14325. shlibpath_overrides_runpath=no
  14326. else
  14327. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14328. shlibpath_overrides_runpath=yes
  14329. case $host_os in
  14330. sco3.2v5*)
  14331. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14332. ;;
  14333. esac
  14334. fi
  14335. sys_lib_dlsearch_path_spec='/usr/lib'
  14336. ;;
  14337. uts4*)
  14338. version_type=linux
  14339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14340. soname_spec='${libname}${release}${shared_ext}$major'
  14341. shlibpath_var=LD_LIBRARY_PATH
  14342. ;;
  14343. *)
  14344. dynamic_linker=no
  14345. ;;
  14346. esac
  14347. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14348. echo "${ECHO_T}$dynamic_linker" >&6; }
  14349. test "$dynamic_linker" = no && can_build_shared=no
  14350. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14351. if test "$GCC" = yes; then
  14352. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14353. fi
  14354. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14355. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14356. hardcode_action_F77=
  14357. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14358. test -n "$runpath_var_F77" || \
  14359. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14360. # We can hardcode non-existant directories.
  14361. if test "$hardcode_direct_F77" != no &&
  14362. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14363. # have to relink, otherwise we might link with an installed library
  14364. # when we should be linking with a yet-to-be-installed one
  14365. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14366. test "$hardcode_minus_L_F77" != no; then
  14367. # Linking always hardcodes the temporary library directory.
  14368. hardcode_action_F77=relink
  14369. else
  14370. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14371. hardcode_action_F77=immediate
  14372. fi
  14373. else
  14374. # We cannot hardcode anything, or else we can only hardcode existing
  14375. # directories.
  14376. hardcode_action_F77=unsupported
  14377. fi
  14378. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14379. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14380. if test "$hardcode_action_F77" = relink; then
  14381. # Fast installation is not supported
  14382. enable_fast_install=no
  14383. elif test "$shlibpath_overrides_runpath" = yes ||
  14384. test "$enable_shared" = no; then
  14385. # Fast installation is not necessary
  14386. enable_fast_install=needless
  14387. fi
  14388. # The else clause should only fire when bootstrapping the
  14389. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14390. # with your package, and you will get complaints that there are
  14391. # no rules to generate ltmain.sh.
  14392. if test -f "$ltmain"; then
  14393. # See if we are running on zsh, and set the options which allow our commands through
  14394. # without removal of \ escapes.
  14395. if test -n "${ZSH_VERSION+set}" ; then
  14396. setopt NO_GLOB_SUBST
  14397. fi
  14398. # Now quote all the things that may contain metacharacters while being
  14399. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14400. # variables and quote the copies for generation of the libtool script.
  14401. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14402. SED SHELL STRIP \
  14403. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14404. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14405. deplibs_check_method reload_flag reload_cmds need_locks \
  14406. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14407. lt_cv_sys_global_symbol_to_c_name_address \
  14408. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14409. old_postinstall_cmds old_postuninstall_cmds \
  14410. compiler_F77 \
  14411. CC_F77 \
  14412. LD_F77 \
  14413. lt_prog_compiler_wl_F77 \
  14414. lt_prog_compiler_pic_F77 \
  14415. lt_prog_compiler_static_F77 \
  14416. lt_prog_compiler_no_builtin_flag_F77 \
  14417. export_dynamic_flag_spec_F77 \
  14418. thread_safe_flag_spec_F77 \
  14419. whole_archive_flag_spec_F77 \
  14420. enable_shared_with_static_runtimes_F77 \
  14421. old_archive_cmds_F77 \
  14422. old_archive_from_new_cmds_F77 \
  14423. predep_objects_F77 \
  14424. postdep_objects_F77 \
  14425. predeps_F77 \
  14426. postdeps_F77 \
  14427. compiler_lib_search_path_F77 \
  14428. archive_cmds_F77 \
  14429. archive_expsym_cmds_F77 \
  14430. postinstall_cmds_F77 \
  14431. postuninstall_cmds_F77 \
  14432. old_archive_from_expsyms_cmds_F77 \
  14433. allow_undefined_flag_F77 \
  14434. no_undefined_flag_F77 \
  14435. export_symbols_cmds_F77 \
  14436. hardcode_libdir_flag_spec_F77 \
  14437. hardcode_libdir_flag_spec_ld_F77 \
  14438. hardcode_libdir_separator_F77 \
  14439. hardcode_automatic_F77 \
  14440. module_cmds_F77 \
  14441. module_expsym_cmds_F77 \
  14442. lt_cv_prog_compiler_c_o_F77 \
  14443. fix_srcfile_path_F77 \
  14444. exclude_expsyms_F77 \
  14445. include_expsyms_F77; do
  14446. case $var in
  14447. old_archive_cmds_F77 | \
  14448. old_archive_from_new_cmds_F77 | \
  14449. archive_cmds_F77 | \
  14450. archive_expsym_cmds_F77 | \
  14451. module_cmds_F77 | \
  14452. module_expsym_cmds_F77 | \
  14453. old_archive_from_expsyms_cmds_F77 | \
  14454. export_symbols_cmds_F77 | \
  14455. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14456. postinstall_cmds | postuninstall_cmds | \
  14457. old_postinstall_cmds | old_postuninstall_cmds | \
  14458. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14459. # Double-quote double-evaled strings.
  14460. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14461. ;;
  14462. *)
  14463. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14464. ;;
  14465. esac
  14466. done
  14467. case $lt_echo in
  14468. *'\$0 --fallback-echo"')
  14469. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14470. ;;
  14471. esac
  14472. cfgfile="$ofile"
  14473. cat <<__EOF__ >> "$cfgfile"
  14474. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14475. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14476. # Shell to use when invoking shell scripts.
  14477. SHELL=$lt_SHELL
  14478. # Whether or not to build shared libraries.
  14479. build_libtool_libs=$enable_shared
  14480. # Whether or not to build static libraries.
  14481. build_old_libs=$enable_static
  14482. # Whether or not to add -lc for building shared libraries.
  14483. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14484. # Whether or not to disallow shared libs when runtime libs are static
  14485. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14486. # Whether or not to optimize for fast installation.
  14487. fast_install=$enable_fast_install
  14488. # The host system.
  14489. host_alias=$host_alias
  14490. host=$host
  14491. host_os=$host_os
  14492. # The build system.
  14493. build_alias=$build_alias
  14494. build=$build
  14495. build_os=$build_os
  14496. # An echo program that does not interpret backslashes.
  14497. echo=$lt_echo
  14498. # The archiver.
  14499. AR=$lt_AR
  14500. AR_FLAGS=$lt_AR_FLAGS
  14501. # A C compiler.
  14502. LTCC=$lt_LTCC
  14503. # LTCC compiler flags.
  14504. LTCFLAGS=$lt_LTCFLAGS
  14505. # A language-specific compiler.
  14506. CC=$lt_compiler_F77
  14507. # Is the compiler the GNU C compiler?
  14508. with_gcc=$GCC_F77
  14509. # An ERE matcher.
  14510. EGREP=$lt_EGREP
  14511. # The linker used to build libraries.
  14512. LD=$lt_LD_F77
  14513. # Whether we need hard or soft links.
  14514. LN_S=$lt_LN_S
  14515. # A BSD-compatible nm program.
  14516. NM=$lt_NM
  14517. # A symbol stripping program
  14518. STRIP=$lt_STRIP
  14519. # Used to examine libraries when file_magic_cmd begins "file"
  14520. MAGIC_CMD=$MAGIC_CMD
  14521. # Used on cygwin: DLL creation program.
  14522. DLLTOOL="$DLLTOOL"
  14523. # Used on cygwin: object dumper.
  14524. OBJDUMP="$OBJDUMP"
  14525. # Used on cygwin: assembler.
  14526. AS="$AS"
  14527. # The name of the directory that contains temporary libtool files.
  14528. objdir=$objdir
  14529. # How to create reloadable object files.
  14530. reload_flag=$lt_reload_flag
  14531. reload_cmds=$lt_reload_cmds
  14532. # How to pass a linker flag through the compiler.
  14533. wl=$lt_lt_prog_compiler_wl_F77
  14534. # Object file suffix (normally "o").
  14535. objext="$ac_objext"
  14536. # Old archive suffix (normally "a").
  14537. libext="$libext"
  14538. # Shared library suffix (normally ".so").
  14539. shrext_cmds='$shrext_cmds'
  14540. # Executable file suffix (normally "").
  14541. exeext="$exeext"
  14542. # Additional compiler flags for building library objects.
  14543. pic_flag=$lt_lt_prog_compiler_pic_F77
  14544. pic_mode=$pic_mode
  14545. # What is the maximum length of a command?
  14546. max_cmd_len=$lt_cv_sys_max_cmd_len
  14547. # Does compiler simultaneously support -c and -o options?
  14548. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14549. # Must we lock files when doing compilation?
  14550. need_locks=$lt_need_locks
  14551. # Do we need the lib prefix for modules?
  14552. need_lib_prefix=$need_lib_prefix
  14553. # Do we need a version for libraries?
  14554. need_version=$need_version
  14555. # Whether dlopen is supported.
  14556. dlopen_support=$enable_dlopen
  14557. # Whether dlopen of programs is supported.
  14558. dlopen_self=$enable_dlopen_self
  14559. # Whether dlopen of statically linked programs is supported.
  14560. dlopen_self_static=$enable_dlopen_self_static
  14561. # Compiler flag to prevent dynamic linking.
  14562. link_static_flag=$lt_lt_prog_compiler_static_F77
  14563. # Compiler flag to turn off builtin functions.
  14564. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14565. # Compiler flag to allow reflexive dlopens.
  14566. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14567. # Compiler flag to generate shared objects directly from archives.
  14568. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14569. # Compiler flag to generate thread-safe objects.
  14570. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14571. # Library versioning type.
  14572. version_type=$version_type
  14573. # Format of library name prefix.
  14574. libname_spec=$lt_libname_spec
  14575. # List of archive names. First name is the real one, the rest are links.
  14576. # The last name is the one that the linker finds with -lNAME.
  14577. library_names_spec=$lt_library_names_spec
  14578. # The coded name of the library, if different from the real name.
  14579. soname_spec=$lt_soname_spec
  14580. # Commands used to build and install an old-style archive.
  14581. RANLIB=$lt_RANLIB
  14582. old_archive_cmds=$lt_old_archive_cmds_F77
  14583. old_postinstall_cmds=$lt_old_postinstall_cmds
  14584. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14585. # Create an old-style archive from a shared archive.
  14586. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14587. # Create a temporary old-style archive to link instead of a shared archive.
  14588. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14589. # Commands used to build and install a shared archive.
  14590. archive_cmds=$lt_archive_cmds_F77
  14591. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14592. postinstall_cmds=$lt_postinstall_cmds
  14593. postuninstall_cmds=$lt_postuninstall_cmds
  14594. # Commands used to build a loadable module (assumed same as above if empty)
  14595. module_cmds=$lt_module_cmds_F77
  14596. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14597. # Commands to strip libraries.
  14598. old_striplib=$lt_old_striplib
  14599. striplib=$lt_striplib
  14600. # Dependencies to place before the objects being linked to create a
  14601. # shared library.
  14602. predep_objects=$lt_predep_objects_F77
  14603. # Dependencies to place after the objects being linked to create a
  14604. # shared library.
  14605. postdep_objects=$lt_postdep_objects_F77
  14606. # Dependencies to place before the objects being linked to create a
  14607. # shared library.
  14608. predeps=$lt_predeps_F77
  14609. # Dependencies to place after the objects being linked to create a
  14610. # shared library.
  14611. postdeps=$lt_postdeps_F77
  14612. # The library search path used internally by the compiler when linking
  14613. # a shared library.
  14614. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14615. # Method to check whether dependent libraries are shared objects.
  14616. deplibs_check_method=$lt_deplibs_check_method
  14617. # Command to use when deplibs_check_method == file_magic.
  14618. file_magic_cmd=$lt_file_magic_cmd
  14619. # Flag that allows shared libraries with undefined symbols to be built.
  14620. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14621. # Flag that forces no undefined symbols.
  14622. no_undefined_flag=$lt_no_undefined_flag_F77
  14623. # Commands used to finish a libtool library installation in a directory.
  14624. finish_cmds=$lt_finish_cmds
  14625. # Same as above, but a single script fragment to be evaled but not shown.
  14626. finish_eval=$lt_finish_eval
  14627. # Take the output of nm and produce a listing of raw symbols and C names.
  14628. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14629. # Transform the output of nm in a proper C declaration
  14630. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14631. # Transform the output of nm in a C name address pair
  14632. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14633. # This is the shared library runtime path variable.
  14634. runpath_var=$runpath_var
  14635. # This is the shared library path variable.
  14636. shlibpath_var=$shlibpath_var
  14637. # Is shlibpath searched before the hard-coded library search path?
  14638. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14639. # How to hardcode a shared library path into an executable.
  14640. hardcode_action=$hardcode_action_F77
  14641. # Whether we should hardcode library paths into libraries.
  14642. hardcode_into_libs=$hardcode_into_libs
  14643. # Flag to hardcode \$libdir into a binary during linking.
  14644. # This must work even if \$libdir does not exist.
  14645. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14646. # If ld is used when linking, flag to hardcode \$libdir into
  14647. # a binary during linking. This must work even if \$libdir does
  14648. # not exist.
  14649. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14650. # Whether we need a single -rpath flag with a separated argument.
  14651. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14652. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14653. # resulting binary.
  14654. hardcode_direct=$hardcode_direct_F77
  14655. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14656. # resulting binary.
  14657. hardcode_minus_L=$hardcode_minus_L_F77
  14658. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14659. # the resulting binary.
  14660. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14661. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14662. # and all subsequent libraries and executables linked against it.
  14663. hardcode_automatic=$hardcode_automatic_F77
  14664. # Variables whose values should be saved in libtool wrapper scripts and
  14665. # restored at relink time.
  14666. variables_saved_for_relink="$variables_saved_for_relink"
  14667. # Whether libtool must link a program against all its dependency libraries.
  14668. link_all_deplibs=$link_all_deplibs_F77
  14669. # Compile-time system search path for libraries
  14670. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14671. # Run-time system search path for libraries
  14672. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14673. # Fix the shell variable \$srcfile for the compiler.
  14674. fix_srcfile_path=$lt_fix_srcfile_path
  14675. # Set to yes if exported symbols are required.
  14676. always_export_symbols=$always_export_symbols_F77
  14677. # The commands to list exported symbols.
  14678. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14679. # The commands to extract the exported symbol list from a shared archive.
  14680. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14681. # Symbols that should not be listed in the preloaded symbols.
  14682. exclude_expsyms=$lt_exclude_expsyms_F77
  14683. # Symbols that must always be exported.
  14684. include_expsyms=$lt_include_expsyms_F77
  14685. # ### END LIBTOOL TAG CONFIG: $tagname
  14686. __EOF__
  14687. else
  14688. # If there is no Makefile yet, we rely on a make rule to execute
  14689. # `config.status --recheck' to rerun these tests and create the
  14690. # libtool script then.
  14691. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14692. if test -f "$ltmain_in"; then
  14693. test -f Makefile && make "$ltmain"
  14694. fi
  14695. fi
  14696. ac_ext=c
  14697. ac_cpp='$CPP $CPPFLAGS'
  14698. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14699. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14700. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14701. CC="$lt_save_CC"
  14702. else
  14703. tagname=""
  14704. fi
  14705. ;;
  14706. GCJ)
  14707. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14708. # Source file extension for Java test sources.
  14709. ac_ext=java
  14710. # Object file extension for compiled Java test sources.
  14711. objext=o
  14712. objext_GCJ=$objext
  14713. # Code to be used in simple compile tests
  14714. lt_simple_compile_test_code="class foo {}"
  14715. # Code to be used in simple link tests
  14716. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  14717. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14718. # If no C compiler was specified, use CC.
  14719. LTCC=${LTCC-"$CC"}
  14720. # If no C compiler flags were specified, use CFLAGS.
  14721. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14722. # Allow CC to be a program name with arguments.
  14723. compiler=$CC
  14724. # save warnings/boilerplate of simple test code
  14725. ac_outfile=conftest.$ac_objext
  14726. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14727. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14728. _lt_compiler_boilerplate=`cat conftest.err`
  14729. $rm conftest*
  14730. ac_outfile=conftest.$ac_objext
  14731. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14732. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14733. _lt_linker_boilerplate=`cat conftest.err`
  14734. $rm conftest*
  14735. # Allow CC to be a program name with arguments.
  14736. lt_save_CC="$CC"
  14737. CC=${GCJ-"gcj"}
  14738. compiler=$CC
  14739. compiler_GCJ=$CC
  14740. for cc_temp in $compiler""; do
  14741. case $cc_temp in
  14742. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14743. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14744. \-*) ;;
  14745. *) break;;
  14746. esac
  14747. done
  14748. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14749. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14750. archive_cmds_need_lc_GCJ=no
  14751. old_archive_cmds_GCJ=$old_archive_cmds
  14752. lt_prog_compiler_no_builtin_flag_GCJ=
  14753. if test "$GCC" = yes; then
  14754. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14755. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14756. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14757. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14758. echo $ECHO_N "(cached) $ECHO_C" >&6
  14759. else
  14760. lt_cv_prog_compiler_rtti_exceptions=no
  14761. ac_outfile=conftest.$ac_objext
  14762. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14763. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14764. # Insert the option either (1) after the last *FLAGS variable, or
  14765. # (2) before a word containing "conftest.", or (3) at the end.
  14766. # Note that $ac_compile itself does not contain backslashes and begins
  14767. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14768. # The option is referenced via a variable to avoid confusing sed.
  14769. lt_compile=`echo "$ac_compile" | $SED \
  14770. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14771. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14772. -e 's:$: $lt_compiler_flag:'`
  14773. (eval echo "\"\$as_me:16547: $lt_compile\"" >&5)
  14774. (eval "$lt_compile" 2>conftest.err)
  14775. ac_status=$?
  14776. cat conftest.err >&5
  14777. echo "$as_me:16551: \$? = $ac_status" >&5
  14778. if (exit $ac_status) && test -s "$ac_outfile"; then
  14779. # The compiler can only warn and ignore the option if not recognized
  14780. # So say no if there are warnings other than the usual output.
  14781. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14782. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14783. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14784. lt_cv_prog_compiler_rtti_exceptions=yes
  14785. fi
  14786. fi
  14787. $rm conftest*
  14788. fi
  14789. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14790. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14791. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14792. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14793. else
  14794. :
  14795. fi
  14796. fi
  14797. lt_prog_compiler_wl_GCJ=
  14798. lt_prog_compiler_pic_GCJ=
  14799. lt_prog_compiler_static_GCJ=
  14800. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14801. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14802. if test "$GCC" = yes; then
  14803. lt_prog_compiler_wl_GCJ='-Wl,'
  14804. lt_prog_compiler_static_GCJ='-static'
  14805. case $host_os in
  14806. aix*)
  14807. # All AIX code is PIC.
  14808. if test "$host_cpu" = ia64; then
  14809. # AIX 5 now supports IA64 processor
  14810. lt_prog_compiler_static_GCJ='-Bstatic'
  14811. fi
  14812. ;;
  14813. amigaos*)
  14814. # FIXME: we need at least 68020 code to build shared libraries, but
  14815. # adding the `-m68020' flag to GCC prevents building anything better,
  14816. # like `-m68040'.
  14817. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14818. ;;
  14819. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14820. # PIC is the default for these OSes.
  14821. ;;
  14822. mingw* | cygwin* | pw32* | os2*)
  14823. # This hack is so that the source file can tell whether it is being
  14824. # built for inclusion in a dll (and should export symbols for example).
  14825. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14826. # (--disable-auto-import) libraries
  14827. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14828. ;;
  14829. darwin* | rhapsody*)
  14830. # PIC is the default on this platform
  14831. # Common symbols not allowed in MH_DYLIB files
  14832. lt_prog_compiler_pic_GCJ='-fno-common'
  14833. ;;
  14834. interix[3-9]*)
  14835. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14836. # Instead, we relocate shared libraries at runtime.
  14837. ;;
  14838. msdosdjgpp*)
  14839. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14840. # on systems that don't support them.
  14841. lt_prog_compiler_can_build_shared_GCJ=no
  14842. enable_shared=no
  14843. ;;
  14844. sysv4*MP*)
  14845. if test -d /usr/nec; then
  14846. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14847. fi
  14848. ;;
  14849. hpux*)
  14850. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14851. # not for PA HP-UX.
  14852. case $host_cpu in
  14853. hppa*64*|ia64*)
  14854. # +Z the default
  14855. ;;
  14856. *)
  14857. lt_prog_compiler_pic_GCJ='-fPIC'
  14858. ;;
  14859. esac
  14860. ;;
  14861. *)
  14862. lt_prog_compiler_pic_GCJ='-fPIC'
  14863. ;;
  14864. esac
  14865. else
  14866. # PORTME Check for flag to pass linker flags through the system compiler.
  14867. case $host_os in
  14868. aix*)
  14869. lt_prog_compiler_wl_GCJ='-Wl,'
  14870. if test "$host_cpu" = ia64; then
  14871. # AIX 5 now supports IA64 processor
  14872. lt_prog_compiler_static_GCJ='-Bstatic'
  14873. else
  14874. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14875. fi
  14876. ;;
  14877. darwin*)
  14878. # PIC is the default on this platform
  14879. # Common symbols not allowed in MH_DYLIB files
  14880. case $cc_basename in
  14881. xlc*)
  14882. lt_prog_compiler_pic_GCJ='-qnocommon'
  14883. lt_prog_compiler_wl_GCJ='-Wl,'
  14884. ;;
  14885. esac
  14886. ;;
  14887. mingw* | cygwin* | pw32* | os2*)
  14888. # This hack is so that the source file can tell whether it is being
  14889. # built for inclusion in a dll (and should export symbols for example).
  14890. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14891. ;;
  14892. hpux9* | hpux10* | hpux11*)
  14893. lt_prog_compiler_wl_GCJ='-Wl,'
  14894. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14895. # not for PA HP-UX.
  14896. case $host_cpu in
  14897. hppa*64*|ia64*)
  14898. # +Z the default
  14899. ;;
  14900. *)
  14901. lt_prog_compiler_pic_GCJ='+Z'
  14902. ;;
  14903. esac
  14904. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14905. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14906. ;;
  14907. irix5* | irix6* | nonstopux*)
  14908. lt_prog_compiler_wl_GCJ='-Wl,'
  14909. # PIC (with -KPIC) is the default.
  14910. lt_prog_compiler_static_GCJ='-non_shared'
  14911. ;;
  14912. newsos6)
  14913. lt_prog_compiler_pic_GCJ='-KPIC'
  14914. lt_prog_compiler_static_GCJ='-Bstatic'
  14915. ;;
  14916. linux* | k*bsd*-gnu)
  14917. case $cc_basename in
  14918. icc* | ecc*)
  14919. lt_prog_compiler_wl_GCJ='-Wl,'
  14920. lt_prog_compiler_pic_GCJ='-KPIC'
  14921. lt_prog_compiler_static_GCJ='-static'
  14922. ;;
  14923. pgcc* | pgf77* | pgf90* | pgf95*)
  14924. # Portland Group compilers (*not* the Pentium gcc compiler,
  14925. # which looks to be a dead project)
  14926. lt_prog_compiler_wl_GCJ='-Wl,'
  14927. lt_prog_compiler_pic_GCJ='-fpic'
  14928. lt_prog_compiler_static_GCJ='-Bstatic'
  14929. ;;
  14930. ccc*)
  14931. lt_prog_compiler_wl_GCJ='-Wl,'
  14932. # All Alpha code is PIC.
  14933. lt_prog_compiler_static_GCJ='-non_shared'
  14934. ;;
  14935. *)
  14936. case `$CC -V 2>&1 | sed 5q` in
  14937. *Sun\ C*)
  14938. # Sun C 5.9
  14939. lt_prog_compiler_pic_GCJ='-KPIC'
  14940. lt_prog_compiler_static_GCJ='-Bstatic'
  14941. lt_prog_compiler_wl_GCJ='-Wl,'
  14942. ;;
  14943. *Sun\ F*)
  14944. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  14945. lt_prog_compiler_pic_GCJ='-KPIC'
  14946. lt_prog_compiler_static_GCJ='-Bstatic'
  14947. lt_prog_compiler_wl_GCJ=''
  14948. ;;
  14949. esac
  14950. ;;
  14951. esac
  14952. ;;
  14953. osf3* | osf4* | osf5*)
  14954. lt_prog_compiler_wl_GCJ='-Wl,'
  14955. # All OSF/1 code is PIC.
  14956. lt_prog_compiler_static_GCJ='-non_shared'
  14957. ;;
  14958. rdos*)
  14959. lt_prog_compiler_static_GCJ='-non_shared'
  14960. ;;
  14961. solaris*)
  14962. lt_prog_compiler_pic_GCJ='-KPIC'
  14963. lt_prog_compiler_static_GCJ='-Bstatic'
  14964. case $cc_basename in
  14965. f77* | f90* | f95*)
  14966. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14967. *)
  14968. lt_prog_compiler_wl_GCJ='-Wl,';;
  14969. esac
  14970. ;;
  14971. sunos4*)
  14972. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14973. lt_prog_compiler_pic_GCJ='-PIC'
  14974. lt_prog_compiler_static_GCJ='-Bstatic'
  14975. ;;
  14976. sysv4 | sysv4.2uw2* | sysv4.3*)
  14977. lt_prog_compiler_wl_GCJ='-Wl,'
  14978. lt_prog_compiler_pic_GCJ='-KPIC'
  14979. lt_prog_compiler_static_GCJ='-Bstatic'
  14980. ;;
  14981. sysv4*MP*)
  14982. if test -d /usr/nec ;then
  14983. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14984. lt_prog_compiler_static_GCJ='-Bstatic'
  14985. fi
  14986. ;;
  14987. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14988. lt_prog_compiler_wl_GCJ='-Wl,'
  14989. lt_prog_compiler_pic_GCJ='-KPIC'
  14990. lt_prog_compiler_static_GCJ='-Bstatic'
  14991. ;;
  14992. unicos*)
  14993. lt_prog_compiler_wl_GCJ='-Wl,'
  14994. lt_prog_compiler_can_build_shared_GCJ=no
  14995. ;;
  14996. uts4*)
  14997. lt_prog_compiler_pic_GCJ='-pic'
  14998. lt_prog_compiler_static_GCJ='-Bstatic'
  14999. ;;
  15000. *)
  15001. lt_prog_compiler_can_build_shared_GCJ=no
  15002. ;;
  15003. esac
  15004. fi
  15005. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15006. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15007. #
  15008. # Check to make sure the PIC flag actually works.
  15009. #
  15010. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15011. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15012. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15013. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15014. echo $ECHO_N "(cached) $ECHO_C" >&6
  15015. else
  15016. lt_prog_compiler_pic_works_GCJ=no
  15017. ac_outfile=conftest.$ac_objext
  15018. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15019. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15020. # Insert the option either (1) after the last *FLAGS variable, or
  15021. # (2) before a word containing "conftest.", or (3) at the end.
  15022. # Note that $ac_compile itself does not contain backslashes and begins
  15023. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15024. # The option is referenced via a variable to avoid confusing sed.
  15025. lt_compile=`echo "$ac_compile" | $SED \
  15026. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15027. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15028. -e 's:$: $lt_compiler_flag:'`
  15029. (eval echo "\"\$as_me:16837: $lt_compile\"" >&5)
  15030. (eval "$lt_compile" 2>conftest.err)
  15031. ac_status=$?
  15032. cat conftest.err >&5
  15033. echo "$as_me:16841: \$? = $ac_status" >&5
  15034. if (exit $ac_status) && test -s "$ac_outfile"; then
  15035. # The compiler can only warn and ignore the option if not recognized
  15036. # So say no if there are warnings other than the usual output.
  15037. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15038. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15039. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15040. lt_prog_compiler_pic_works_GCJ=yes
  15041. fi
  15042. fi
  15043. $rm conftest*
  15044. fi
  15045. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15046. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15047. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15048. case $lt_prog_compiler_pic_GCJ in
  15049. "" | " "*) ;;
  15050. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15051. esac
  15052. else
  15053. lt_prog_compiler_pic_GCJ=
  15054. lt_prog_compiler_can_build_shared_GCJ=no
  15055. fi
  15056. fi
  15057. case $host_os in
  15058. # For platforms which do not support PIC, -DPIC is meaningless:
  15059. *djgpp*)
  15060. lt_prog_compiler_pic_GCJ=
  15061. ;;
  15062. *)
  15063. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15064. ;;
  15065. esac
  15066. #
  15067. # Check to make sure the static flag actually works.
  15068. #
  15069. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15070. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15071. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  15072. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  15073. echo $ECHO_N "(cached) $ECHO_C" >&6
  15074. else
  15075. lt_prog_compiler_static_works_GCJ=no
  15076. save_LDFLAGS="$LDFLAGS"
  15077. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15078. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15079. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15080. # The linker can only warn and ignore the option if not recognized
  15081. # So say no if there are warnings
  15082. if test -s conftest.err; then
  15083. # Append any errors to the config.log.
  15084. cat conftest.err 1>&5
  15085. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15086. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15087. if diff conftest.exp conftest.er2 >/dev/null; then
  15088. lt_prog_compiler_static_works_GCJ=yes
  15089. fi
  15090. else
  15091. lt_prog_compiler_static_works_GCJ=yes
  15092. fi
  15093. fi
  15094. $rm conftest*
  15095. LDFLAGS="$save_LDFLAGS"
  15096. fi
  15097. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  15098. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  15099. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  15100. :
  15101. else
  15102. lt_prog_compiler_static_GCJ=
  15103. fi
  15104. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15105. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15106. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15107. echo $ECHO_N "(cached) $ECHO_C" >&6
  15108. else
  15109. lt_cv_prog_compiler_c_o_GCJ=no
  15110. $rm -r conftest 2>/dev/null
  15111. mkdir conftest
  15112. cd conftest
  15113. mkdir out
  15114. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15115. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15116. # Insert the option either (1) after the last *FLAGS variable, or
  15117. # (2) before a word containing "conftest.", or (3) at the end.
  15118. # Note that $ac_compile itself does not contain backslashes and begins
  15119. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15120. lt_compile=`echo "$ac_compile" | $SED \
  15121. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15122. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15123. -e 's:$: $lt_compiler_flag:'`
  15124. (eval echo "\"\$as_me:16941: $lt_compile\"" >&5)
  15125. (eval "$lt_compile" 2>out/conftest.err)
  15126. ac_status=$?
  15127. cat out/conftest.err >&5
  15128. echo "$as_me:16945: \$? = $ac_status" >&5
  15129. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15130. then
  15131. # The compiler can only warn and ignore the option if not recognized
  15132. # So say no if there are warnings
  15133. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15134. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15135. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15136. lt_cv_prog_compiler_c_o_GCJ=yes
  15137. fi
  15138. fi
  15139. chmod u+w . 2>&5
  15140. $rm conftest*
  15141. # SGI C++ compiler will create directory out/ii_files/ for
  15142. # template instantiation
  15143. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15144. $rm out/* && rmdir out
  15145. cd ..
  15146. rmdir conftest
  15147. $rm conftest*
  15148. fi
  15149. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15150. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15151. hard_links="nottested"
  15152. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15153. # do not overwrite the value of need_locks provided by the user
  15154. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15155. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15156. hard_links=yes
  15157. $rm conftest*
  15158. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15159. touch conftest.a
  15160. ln conftest.a conftest.b 2>&5 || hard_links=no
  15161. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15162. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15163. echo "${ECHO_T}$hard_links" >&6; }
  15164. if test "$hard_links" = no; then
  15165. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15166. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15167. need_locks=warn
  15168. fi
  15169. else
  15170. need_locks=no
  15171. fi
  15172. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15173. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15174. runpath_var=
  15175. allow_undefined_flag_GCJ=
  15176. enable_shared_with_static_runtimes_GCJ=no
  15177. archive_cmds_GCJ=
  15178. archive_expsym_cmds_GCJ=
  15179. old_archive_From_new_cmds_GCJ=
  15180. old_archive_from_expsyms_cmds_GCJ=
  15181. export_dynamic_flag_spec_GCJ=
  15182. whole_archive_flag_spec_GCJ=
  15183. thread_safe_flag_spec_GCJ=
  15184. hardcode_libdir_flag_spec_GCJ=
  15185. hardcode_libdir_flag_spec_ld_GCJ=
  15186. hardcode_libdir_separator_GCJ=
  15187. hardcode_direct_GCJ=no
  15188. hardcode_minus_L_GCJ=no
  15189. hardcode_shlibpath_var_GCJ=unsupported
  15190. link_all_deplibs_GCJ=unknown
  15191. hardcode_automatic_GCJ=no
  15192. module_cmds_GCJ=
  15193. module_expsym_cmds_GCJ=
  15194. always_export_symbols_GCJ=no
  15195. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15196. # include_expsyms should be a list of space-separated symbols to be *always*
  15197. # included in the symbol list
  15198. include_expsyms_GCJ=
  15199. # exclude_expsyms can be an extended regexp of symbols to exclude
  15200. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15201. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15202. # as well as any symbol that contains `d'.
  15203. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15204. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15205. # platforms (ab)use it in PIC code, but their linkers get confused if
  15206. # the symbol is explicitly referenced. Since portable code cannot
  15207. # rely on this symbol name, it's probably fine to never include it in
  15208. # preloaded symbol tables.
  15209. extract_expsyms_cmds=
  15210. # Just being paranoid about ensuring that cc_basename is set.
  15211. for cc_temp in $compiler""; do
  15212. case $cc_temp in
  15213. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15214. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15215. \-*) ;;
  15216. *) break;;
  15217. esac
  15218. done
  15219. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15220. case $host_os in
  15221. cygwin* | mingw* | pw32*)
  15222. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15223. # When not using gcc, we currently assume that we are using
  15224. # Microsoft Visual C++.
  15225. if test "$GCC" != yes; then
  15226. with_gnu_ld=no
  15227. fi
  15228. ;;
  15229. interix*)
  15230. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15231. with_gnu_ld=yes
  15232. ;;
  15233. openbsd*)
  15234. with_gnu_ld=no
  15235. ;;
  15236. esac
  15237. ld_shlibs_GCJ=yes
  15238. if test "$with_gnu_ld" = yes; then
  15239. # If archive_cmds runs LD, not CC, wlarc should be empty
  15240. wlarc='${wl}'
  15241. # Set some defaults for GNU ld with shared library support. These
  15242. # are reset later if shared libraries are not supported. Putting them
  15243. # here allows them to be overridden if necessary.
  15244. runpath_var=LD_RUN_PATH
  15245. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15246. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15247. # ancient GNU ld didn't support --whole-archive et. al.
  15248. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15249. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15250. else
  15251. whole_archive_flag_spec_GCJ=
  15252. fi
  15253. supports_anon_versioning=no
  15254. case `$LD -v 2>/dev/null` in
  15255. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15256. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15257. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15258. *\ 2.11.*) ;; # other 2.11 versions
  15259. *) supports_anon_versioning=yes ;;
  15260. esac
  15261. # See if GNU ld supports shared libraries.
  15262. case $host_os in
  15263. aix3* | aix4* | aix5*)
  15264. # On AIX/PPC, the GNU linker is very broken
  15265. if test "$host_cpu" != ia64; then
  15266. ld_shlibs_GCJ=no
  15267. cat <<EOF 1>&2
  15268. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15269. *** to be unable to reliably create shared libraries on AIX.
  15270. *** Therefore, libtool is disabling shared libraries support. If you
  15271. *** really care for shared libraries, you may want to modify your PATH
  15272. *** so that a non-GNU linker is found, and then restart.
  15273. EOF
  15274. fi
  15275. ;;
  15276. amigaos*)
  15277. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  15278. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15279. hardcode_minus_L_GCJ=yes
  15280. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15281. # that the semantics of dynamic libraries on AmigaOS, at least up
  15282. # to version 4, is to share data among multiple programs linked
  15283. # with the same dynamic library. Since this doesn't match the
  15284. # behavior of shared libraries on other platforms, we can't use
  15285. # them.
  15286. ld_shlibs_GCJ=no
  15287. ;;
  15288. beos*)
  15289. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15290. allow_undefined_flag_GCJ=unsupported
  15291. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15292. # support --undefined. This deserves some investigation. FIXME
  15293. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15294. else
  15295. ld_shlibs_GCJ=no
  15296. fi
  15297. ;;
  15298. cygwin* | mingw* | pw32*)
  15299. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15300. # as there is no search path for DLLs.
  15301. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15302. allow_undefined_flag_GCJ=unsupported
  15303. always_export_symbols_GCJ=no
  15304. enable_shared_with_static_runtimes_GCJ=yes
  15305. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15306. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15307. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15308. # If the export-symbols file already is a .def file (1st line
  15309. # is EXPORTS), use it as is; otherwise, prepend...
  15310. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15311. cp $export_symbols $output_objdir/$soname.def;
  15312. else
  15313. echo EXPORTS > $output_objdir/$soname.def;
  15314. cat $export_symbols >> $output_objdir/$soname.def;
  15315. fi~
  15316. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15317. else
  15318. ld_shlibs_GCJ=no
  15319. fi
  15320. ;;
  15321. interix[3-9]*)
  15322. hardcode_direct_GCJ=no
  15323. hardcode_shlibpath_var_GCJ=no
  15324. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15325. export_dynamic_flag_spec_GCJ='${wl}-E'
  15326. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15327. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15328. # default) and relocated if they conflict, which is a slow very memory
  15329. # consuming and fragmenting process. To avoid this, we pick a random,
  15330. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15331. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15332. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15333. archive_expsym_cmds_GCJ='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'
  15334. ;;
  15335. gnu* | linux* | k*bsd*-gnu)
  15336. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15337. tmp_addflag=
  15338. case $cc_basename,$host_cpu in
  15339. pgcc*) # Portland Group C compiler
  15340. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15341. tmp_addflag=' $pic_flag'
  15342. ;;
  15343. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15344. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15345. tmp_addflag=' $pic_flag -Mnomain' ;;
  15346. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15347. tmp_addflag=' -i_dynamic' ;;
  15348. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15349. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15350. ifc* | ifort*) # Intel Fortran compiler
  15351. tmp_addflag=' -nofor_main' ;;
  15352. esac
  15353. case `$CC -V 2>&1 | sed 5q` in
  15354. *Sun\ C*) # Sun C 5.9
  15355. whole_archive_flag_spec_GCJ='${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'
  15356. tmp_sharedflag='-G' ;;
  15357. *Sun\ F*) # Sun Fortran 8.3
  15358. tmp_sharedflag='-G' ;;
  15359. *)
  15360. tmp_sharedflag='-shared' ;;
  15361. esac
  15362. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15363. if test $supports_anon_versioning = yes; then
  15364. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15365. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15366. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15367. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15368. fi
  15369. else
  15370. ld_shlibs_GCJ=no
  15371. fi
  15372. ;;
  15373. netbsd*)
  15374. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15375. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15376. wlarc=
  15377. else
  15378. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15379. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15380. fi
  15381. ;;
  15382. solaris*)
  15383. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15384. ld_shlibs_GCJ=no
  15385. cat <<EOF 1>&2
  15386. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15387. *** create shared libraries on Solaris systems. Therefore, libtool
  15388. *** is disabling shared libraries support. We urge you to upgrade GNU
  15389. *** binutils to release 2.9.1 or newer. Another option is to modify
  15390. *** your PATH or compiler configuration so that the native linker is
  15391. *** used, and then restart.
  15392. EOF
  15393. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15394. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15395. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15396. else
  15397. ld_shlibs_GCJ=no
  15398. fi
  15399. ;;
  15400. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15401. case `$LD -v 2>&1` in
  15402. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15403. ld_shlibs_GCJ=no
  15404. cat <<_LT_EOF 1>&2
  15405. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15406. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15407. *** is disabling shared libraries support. We urge you to upgrade GNU
  15408. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15409. *** your PATH or compiler configuration so that the native linker is
  15410. *** used, and then restart.
  15411. _LT_EOF
  15412. ;;
  15413. *)
  15414. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15415. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15416. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15417. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15418. else
  15419. ld_shlibs_GCJ=no
  15420. fi
  15421. ;;
  15422. esac
  15423. ;;
  15424. sunos4*)
  15425. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15426. wlarc=
  15427. hardcode_direct_GCJ=yes
  15428. hardcode_shlibpath_var_GCJ=no
  15429. ;;
  15430. *)
  15431. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15432. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15433. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15434. else
  15435. ld_shlibs_GCJ=no
  15436. fi
  15437. ;;
  15438. esac
  15439. if test "$ld_shlibs_GCJ" = no; then
  15440. runpath_var=
  15441. hardcode_libdir_flag_spec_GCJ=
  15442. export_dynamic_flag_spec_GCJ=
  15443. whole_archive_flag_spec_GCJ=
  15444. fi
  15445. else
  15446. # PORTME fill in a description of your system's linker (not GNU ld)
  15447. case $host_os in
  15448. aix3*)
  15449. allow_undefined_flag_GCJ=unsupported
  15450. always_export_symbols_GCJ=yes
  15451. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  15452. # Note: this linker hardcodes the directories in LIBPATH if there
  15453. # are no directories specified by -L.
  15454. hardcode_minus_L_GCJ=yes
  15455. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15456. # Neither direct hardcoding nor static linking is supported with a
  15457. # broken collect2.
  15458. hardcode_direct_GCJ=unsupported
  15459. fi
  15460. ;;
  15461. aix4* | aix5*)
  15462. if test "$host_cpu" = ia64; then
  15463. # On IA64, the linker does run time linking by default, so we don't
  15464. # have to do anything special.
  15465. aix_use_runtimelinking=no
  15466. exp_sym_flag='-Bexport'
  15467. no_entry_flag=""
  15468. else
  15469. # If we're using GNU nm, then we don't want the "-C" option.
  15470. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15471. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15472. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15473. else
  15474. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15475. fi
  15476. aix_use_runtimelinking=no
  15477. # Test if we are trying to use run time linking or normal
  15478. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15479. # need to do runtime linking.
  15480. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15481. for ld_flag in $LDFLAGS; do
  15482. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15483. aix_use_runtimelinking=yes
  15484. break
  15485. fi
  15486. done
  15487. ;;
  15488. esac
  15489. exp_sym_flag='-bexport'
  15490. no_entry_flag='-bnoentry'
  15491. fi
  15492. # When large executables or shared objects are built, AIX ld can
  15493. # have problems creating the table of contents. If linking a library
  15494. # or program results in "error TOC overflow" add -mminimal-toc to
  15495. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15496. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15497. archive_cmds_GCJ=''
  15498. hardcode_direct_GCJ=yes
  15499. hardcode_libdir_separator_GCJ=':'
  15500. link_all_deplibs_GCJ=yes
  15501. if test "$GCC" = yes; then
  15502. case $host_os in aix4.[012]|aix4.[012].*)
  15503. # We only want to do this on AIX 4.2 and lower, the check
  15504. # below for broken collect2 doesn't work under 4.3+
  15505. collect2name=`${CC} -print-prog-name=collect2`
  15506. if test -f "$collect2name" && \
  15507. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15508. then
  15509. # We have reworked collect2
  15510. :
  15511. else
  15512. # We have old collect2
  15513. hardcode_direct_GCJ=unsupported
  15514. # It fails to find uninstalled libraries when the uninstalled
  15515. # path is not listed in the libpath. Setting hardcode_minus_L
  15516. # to unsupported forces relinking
  15517. hardcode_minus_L_GCJ=yes
  15518. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15519. hardcode_libdir_separator_GCJ=
  15520. fi
  15521. ;;
  15522. esac
  15523. shared_flag='-shared'
  15524. if test "$aix_use_runtimelinking" = yes; then
  15525. shared_flag="$shared_flag "'${wl}-G'
  15526. fi
  15527. else
  15528. # not using gcc
  15529. if test "$host_cpu" = ia64; then
  15530. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15531. # chokes on -Wl,-G. The following line is correct:
  15532. shared_flag='-G'
  15533. else
  15534. if test "$aix_use_runtimelinking" = yes; then
  15535. shared_flag='${wl}-G'
  15536. else
  15537. shared_flag='${wl}-bM:SRE'
  15538. fi
  15539. fi
  15540. fi
  15541. # It seems that -bexpall does not export symbols beginning with
  15542. # underscore (_), so it is better to generate a list of symbols to export.
  15543. always_export_symbols_GCJ=yes
  15544. if test "$aix_use_runtimelinking" = yes; then
  15545. # Warning - without using the other runtime loading flags (-brtl),
  15546. # -berok will link without error, but may produce a broken library.
  15547. allow_undefined_flag_GCJ='-berok'
  15548. # Determine the default libpath from the value encoded in an empty executable.
  15549. cat >conftest.$ac_ext <<_ACEOF
  15550. /* confdefs.h. */
  15551. _ACEOF
  15552. cat confdefs.h >>conftest.$ac_ext
  15553. cat >>conftest.$ac_ext <<_ACEOF
  15554. /* end confdefs.h. */
  15555. int
  15556. main ()
  15557. {
  15558. ;
  15559. return 0;
  15560. }
  15561. _ACEOF
  15562. rm -f conftest.$ac_objext conftest$ac_exeext
  15563. if { (ac_try="$ac_link"
  15564. case "(($ac_try" in
  15565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15566. *) ac_try_echo=$ac_try;;
  15567. esac
  15568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15569. (eval "$ac_link") 2>conftest.er1
  15570. ac_status=$?
  15571. grep -v '^ *+' conftest.er1 >conftest.err
  15572. rm -f conftest.er1
  15573. cat conftest.err >&5
  15574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15575. (exit $ac_status); } && {
  15576. test -z "$ac_c_werror_flag" ||
  15577. test ! -s conftest.err
  15578. } && test -s conftest$ac_exeext &&
  15579. $as_test_x conftest$ac_exeext; then
  15580. lt_aix_libpath_sed='
  15581. /Import File Strings/,/^$/ {
  15582. /^0/ {
  15583. s/^0 *\(.*\)$/\1/
  15584. p
  15585. }
  15586. }'
  15587. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15588. # Check for a 64-bit object if we didn't find anything.
  15589. if test -z "$aix_libpath"; then
  15590. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15591. fi
  15592. else
  15593. echo "$as_me: failed program was:" >&5
  15594. sed 's/^/| /' conftest.$ac_ext >&5
  15595. fi
  15596. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15597. conftest$ac_exeext conftest.$ac_ext
  15598. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15599. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15600. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15601. else
  15602. if test "$host_cpu" = ia64; then
  15603. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15604. allow_undefined_flag_GCJ="-z nodefs"
  15605. archive_expsym_cmds_GCJ="\$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"
  15606. else
  15607. # Determine the default libpath from the value encoded in an empty executable.
  15608. cat >conftest.$ac_ext <<_ACEOF
  15609. /* confdefs.h. */
  15610. _ACEOF
  15611. cat confdefs.h >>conftest.$ac_ext
  15612. cat >>conftest.$ac_ext <<_ACEOF
  15613. /* end confdefs.h. */
  15614. int
  15615. main ()
  15616. {
  15617. ;
  15618. return 0;
  15619. }
  15620. _ACEOF
  15621. rm -f conftest.$ac_objext conftest$ac_exeext
  15622. if { (ac_try="$ac_link"
  15623. case "(($ac_try" in
  15624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15625. *) ac_try_echo=$ac_try;;
  15626. esac
  15627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15628. (eval "$ac_link") 2>conftest.er1
  15629. ac_status=$?
  15630. grep -v '^ *+' conftest.er1 >conftest.err
  15631. rm -f conftest.er1
  15632. cat conftest.err >&5
  15633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15634. (exit $ac_status); } && {
  15635. test -z "$ac_c_werror_flag" ||
  15636. test ! -s conftest.err
  15637. } && test -s conftest$ac_exeext &&
  15638. $as_test_x conftest$ac_exeext; then
  15639. lt_aix_libpath_sed='
  15640. /Import File Strings/,/^$/ {
  15641. /^0/ {
  15642. s/^0 *\(.*\)$/\1/
  15643. p
  15644. }
  15645. }'
  15646. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15647. # Check for a 64-bit object if we didn't find anything.
  15648. if test -z "$aix_libpath"; then
  15649. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15650. fi
  15651. else
  15652. echo "$as_me: failed program was:" >&5
  15653. sed 's/^/| /' conftest.$ac_ext >&5
  15654. fi
  15655. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15656. conftest$ac_exeext conftest.$ac_ext
  15657. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15658. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15659. # Warning - without using the other run time loading flags,
  15660. # -berok will link without error, but may produce a broken library.
  15661. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15662. allow_undefined_flag_GCJ=' ${wl}-berok'
  15663. # Exported symbols can be pulled into shared objects from archives
  15664. whole_archive_flag_spec_GCJ='$convenience'
  15665. archive_cmds_need_lc_GCJ=yes
  15666. # This is similar to how AIX traditionally builds its shared libraries.
  15667. archive_expsym_cmds_GCJ="\$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'
  15668. fi
  15669. fi
  15670. ;;
  15671. amigaos*)
  15672. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  15673. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15674. hardcode_minus_L_GCJ=yes
  15675. # see comment about different semantics on the GNU ld section
  15676. ld_shlibs_GCJ=no
  15677. ;;
  15678. bsdi[45]*)
  15679. export_dynamic_flag_spec_GCJ=-rdynamic
  15680. ;;
  15681. cygwin* | mingw* | pw32*)
  15682. # When not using gcc, we currently assume that we are using
  15683. # Microsoft Visual C++.
  15684. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15685. # no search path for DLLs.
  15686. hardcode_libdir_flag_spec_GCJ=' '
  15687. allow_undefined_flag_GCJ=unsupported
  15688. # Tell ltmain to make .lib files, not .a files.
  15689. libext=lib
  15690. # Tell ltmain to make .dll files, not .so files.
  15691. shrext_cmds=".dll"
  15692. # FIXME: Setting linknames here is a bad hack.
  15693. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15694. # The linker will automatically build a .lib file if we build a DLL.
  15695. old_archive_From_new_cmds_GCJ='true'
  15696. # FIXME: Should let the user specify the lib program.
  15697. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15698. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15699. enable_shared_with_static_runtimes_GCJ=yes
  15700. ;;
  15701. darwin* | rhapsody*)
  15702. case $host_os in
  15703. rhapsody* | darwin1.[012])
  15704. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15705. ;;
  15706. *) # Darwin 1.3 on
  15707. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15708. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15709. else
  15710. case ${MACOSX_DEPLOYMENT_TARGET} in
  15711. 10.[012])
  15712. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15713. ;;
  15714. 10.*)
  15715. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15716. ;;
  15717. esac
  15718. fi
  15719. ;;
  15720. esac
  15721. archive_cmds_need_lc_GCJ=no
  15722. hardcode_direct_GCJ=no
  15723. hardcode_automatic_GCJ=yes
  15724. hardcode_shlibpath_var_GCJ=unsupported
  15725. whole_archive_flag_spec_GCJ=''
  15726. link_all_deplibs_GCJ=yes
  15727. if test "$GCC" = yes ; then
  15728. output_verbose_link_cmd='echo'
  15729. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15730. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15731. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15732. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15733. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15734. else
  15735. case $cc_basename in
  15736. xlc*)
  15737. output_verbose_link_cmd='echo'
  15738. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  15739. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15740. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15741. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15742. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15743. ;;
  15744. *)
  15745. ld_shlibs_GCJ=no
  15746. ;;
  15747. esac
  15748. fi
  15749. ;;
  15750. dgux*)
  15751. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15752. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15753. hardcode_shlibpath_var_GCJ=no
  15754. ;;
  15755. freebsd1*)
  15756. ld_shlibs_GCJ=no
  15757. ;;
  15758. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15759. # support. Future versions do this automatically, but an explicit c++rt0.o
  15760. # does not break anything, and helps significantly (at the cost of a little
  15761. # extra space).
  15762. freebsd2.2*)
  15763. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15764. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15765. hardcode_direct_GCJ=yes
  15766. hardcode_shlibpath_var_GCJ=no
  15767. ;;
  15768. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15769. freebsd2*)
  15770. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15771. hardcode_direct_GCJ=yes
  15772. hardcode_minus_L_GCJ=yes
  15773. hardcode_shlibpath_var_GCJ=no
  15774. ;;
  15775. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15776. freebsd* | dragonfly*)
  15777. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15778. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15779. hardcode_direct_GCJ=yes
  15780. hardcode_shlibpath_var_GCJ=no
  15781. ;;
  15782. hpux9*)
  15783. if test "$GCC" = yes; then
  15784. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  15785. else
  15786. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  15787. fi
  15788. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15789. hardcode_libdir_separator_GCJ=:
  15790. hardcode_direct_GCJ=yes
  15791. # hardcode_minus_L: Not really in the search PATH,
  15792. # but as the default location of the library.
  15793. hardcode_minus_L_GCJ=yes
  15794. export_dynamic_flag_spec_GCJ='${wl}-E'
  15795. ;;
  15796. hpux10*)
  15797. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15798. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15799. else
  15800. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15801. fi
  15802. if test "$with_gnu_ld" = no; then
  15803. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15804. hardcode_libdir_separator_GCJ=:
  15805. hardcode_direct_GCJ=yes
  15806. export_dynamic_flag_spec_GCJ='${wl}-E'
  15807. # hardcode_minus_L: Not really in the search PATH,
  15808. # but as the default location of the library.
  15809. hardcode_minus_L_GCJ=yes
  15810. fi
  15811. ;;
  15812. hpux11*)
  15813. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15814. case $host_cpu in
  15815. hppa*64*)
  15816. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15817. ;;
  15818. ia64*)
  15819. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15820. ;;
  15821. *)
  15822. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15823. ;;
  15824. esac
  15825. else
  15826. case $host_cpu in
  15827. hppa*64*)
  15828. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15829. ;;
  15830. ia64*)
  15831. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15832. ;;
  15833. *)
  15834. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15835. ;;
  15836. esac
  15837. fi
  15838. if test "$with_gnu_ld" = no; then
  15839. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15840. hardcode_libdir_separator_GCJ=:
  15841. case $host_cpu in
  15842. hppa*64*|ia64*)
  15843. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15844. hardcode_direct_GCJ=no
  15845. hardcode_shlibpath_var_GCJ=no
  15846. ;;
  15847. *)
  15848. hardcode_direct_GCJ=yes
  15849. export_dynamic_flag_spec_GCJ='${wl}-E'
  15850. # hardcode_minus_L: Not really in the search PATH,
  15851. # but as the default location of the library.
  15852. hardcode_minus_L_GCJ=yes
  15853. ;;
  15854. esac
  15855. fi
  15856. ;;
  15857. irix5* | irix6* | nonstopux*)
  15858. if test "$GCC" = yes; then
  15859. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15860. else
  15861. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15862. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15863. fi
  15864. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15865. hardcode_libdir_separator_GCJ=:
  15866. link_all_deplibs_GCJ=yes
  15867. ;;
  15868. netbsd*)
  15869. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15870. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15871. else
  15872. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15873. fi
  15874. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15875. hardcode_direct_GCJ=yes
  15876. hardcode_shlibpath_var_GCJ=no
  15877. ;;
  15878. newsos6)
  15879. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15880. hardcode_direct_GCJ=yes
  15881. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15882. hardcode_libdir_separator_GCJ=:
  15883. hardcode_shlibpath_var_GCJ=no
  15884. ;;
  15885. openbsd*)
  15886. if test -f /usr/libexec/ld.so; then
  15887. hardcode_direct_GCJ=yes
  15888. hardcode_shlibpath_var_GCJ=no
  15889. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15890. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15891. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15892. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15893. export_dynamic_flag_spec_GCJ='${wl}-E'
  15894. else
  15895. case $host_os in
  15896. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15897. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15898. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15899. ;;
  15900. *)
  15901. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15902. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15903. ;;
  15904. esac
  15905. fi
  15906. else
  15907. ld_shlibs_GCJ=no
  15908. fi
  15909. ;;
  15910. os2*)
  15911. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15912. hardcode_minus_L_GCJ=yes
  15913. allow_undefined_flag_GCJ=unsupported
  15914. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  15915. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15916. ;;
  15917. osf3*)
  15918. if test "$GCC" = yes; then
  15919. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15920. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15921. else
  15922. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15923. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15924. fi
  15925. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15926. hardcode_libdir_separator_GCJ=:
  15927. ;;
  15928. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15929. if test "$GCC" = yes; then
  15930. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15931. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15932. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15933. else
  15934. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15935. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15936. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  15937. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  15938. # Both c and cxx compiler support -rpath directly
  15939. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15940. fi
  15941. hardcode_libdir_separator_GCJ=:
  15942. ;;
  15943. solaris*)
  15944. no_undefined_flag_GCJ=' -z text'
  15945. if test "$GCC" = yes; then
  15946. wlarc='${wl}'
  15947. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15948. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15949. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15950. else
  15951. wlarc=''
  15952. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15953. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15954. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15955. fi
  15956. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15957. hardcode_shlibpath_var_GCJ=no
  15958. case $host_os in
  15959. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15960. *)
  15961. # The compiler driver will combine and reorder linker options,
  15962. # but understands `-z linker_flag'. GCC discards it without `$wl',
  15963. # but is careful enough not to reorder.
  15964. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15965. if test "$GCC" = yes; then
  15966. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  15967. else
  15968. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  15969. fi
  15970. ;;
  15971. esac
  15972. link_all_deplibs_GCJ=yes
  15973. ;;
  15974. sunos4*)
  15975. if test "x$host_vendor" = xsequent; then
  15976. # Use $CC to link under sequent, because it throws in some extra .o
  15977. # files that make .init and .fini sections work.
  15978. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15979. else
  15980. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15981. fi
  15982. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15983. hardcode_direct_GCJ=yes
  15984. hardcode_minus_L_GCJ=yes
  15985. hardcode_shlibpath_var_GCJ=no
  15986. ;;
  15987. sysv4)
  15988. case $host_vendor in
  15989. sni)
  15990. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15991. hardcode_direct_GCJ=yes # is this really true???
  15992. ;;
  15993. siemens)
  15994. ## LD is ld it makes a PLAMLIB
  15995. ## CC just makes a GrossModule.
  15996. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15997. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15998. hardcode_direct_GCJ=no
  15999. ;;
  16000. motorola)
  16001. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16002. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16003. ;;
  16004. esac
  16005. runpath_var='LD_RUN_PATH'
  16006. hardcode_shlibpath_var_GCJ=no
  16007. ;;
  16008. sysv4.3*)
  16009. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16010. hardcode_shlibpath_var_GCJ=no
  16011. export_dynamic_flag_spec_GCJ='-Bexport'
  16012. ;;
  16013. sysv4*MP*)
  16014. if test -d /usr/nec; then
  16015. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16016. hardcode_shlibpath_var_GCJ=no
  16017. runpath_var=LD_RUN_PATH
  16018. hardcode_runpath_var=yes
  16019. ld_shlibs_GCJ=yes
  16020. fi
  16021. ;;
  16022. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16023. no_undefined_flag_GCJ='${wl}-z,text'
  16024. archive_cmds_need_lc_GCJ=no
  16025. hardcode_shlibpath_var_GCJ=no
  16026. runpath_var='LD_RUN_PATH'
  16027. if test "$GCC" = yes; then
  16028. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16029. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16030. else
  16031. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16032. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16033. fi
  16034. ;;
  16035. sysv5* | sco3.2v5* | sco5v6*)
  16036. # Note: We can NOT use -z defs as we might desire, because we do not
  16037. # link with -lc, and that would cause any symbols used from libc to
  16038. # always be unresolved, which means just about no library would
  16039. # ever link correctly. If we're not using GNU ld we use -z text
  16040. # though, which does catch some bad symbols but isn't as heavy-handed
  16041. # as -z defs.
  16042. no_undefined_flag_GCJ='${wl}-z,text'
  16043. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16044. archive_cmds_need_lc_GCJ=no
  16045. hardcode_shlibpath_var_GCJ=no
  16046. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16047. hardcode_libdir_separator_GCJ=':'
  16048. link_all_deplibs_GCJ=yes
  16049. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16050. runpath_var='LD_RUN_PATH'
  16051. if test "$GCC" = yes; then
  16052. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16053. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16054. else
  16055. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16056. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16057. fi
  16058. ;;
  16059. uts4*)
  16060. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16061. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16062. hardcode_shlibpath_var_GCJ=no
  16063. ;;
  16064. *)
  16065. ld_shlibs_GCJ=no
  16066. ;;
  16067. esac
  16068. fi
  16069. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16070. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16071. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16072. #
  16073. # Do we need to explicitly link libc?
  16074. #
  16075. case "x$archive_cmds_need_lc_GCJ" in
  16076. x|xyes)
  16077. # Assume -lc should be added
  16078. archive_cmds_need_lc_GCJ=yes
  16079. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16080. case $archive_cmds_GCJ in
  16081. *'~'*)
  16082. # FIXME: we may have to deal with multi-command sequences.
  16083. ;;
  16084. '$CC '*)
  16085. # Test whether the compiler implicitly links with -lc since on some
  16086. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16087. # to ld, don't add -lc before -lgcc.
  16088. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16089. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16090. $rm conftest*
  16091. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16092. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16093. (eval $ac_compile) 2>&5
  16094. ac_status=$?
  16095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16096. (exit $ac_status); } 2>conftest.err; then
  16097. soname=conftest
  16098. lib=conftest
  16099. libobjs=conftest.$ac_objext
  16100. deplibs=
  16101. wl=$lt_prog_compiler_wl_GCJ
  16102. pic_flag=$lt_prog_compiler_pic_GCJ
  16103. compiler_flags=-v
  16104. linker_flags=-v
  16105. verstring=
  16106. output_objdir=.
  16107. libname=conftest
  16108. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16109. allow_undefined_flag_GCJ=
  16110. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16111. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16112. ac_status=$?
  16113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16114. (exit $ac_status); }
  16115. then
  16116. archive_cmds_need_lc_GCJ=no
  16117. else
  16118. archive_cmds_need_lc_GCJ=yes
  16119. fi
  16120. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16121. else
  16122. cat conftest.err 1>&5
  16123. fi
  16124. $rm conftest*
  16125. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16126. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16127. ;;
  16128. esac
  16129. fi
  16130. ;;
  16131. esac
  16132. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16133. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16134. library_names_spec=
  16135. libname_spec='lib$name'
  16136. soname_spec=
  16137. shrext_cmds=".so"
  16138. postinstall_cmds=
  16139. postuninstall_cmds=
  16140. finish_cmds=
  16141. finish_eval=
  16142. shlibpath_var=
  16143. shlibpath_overrides_runpath=unknown
  16144. version_type=none
  16145. dynamic_linker="$host_os ld.so"
  16146. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16147. need_lib_prefix=unknown
  16148. hardcode_into_libs=no
  16149. # when you set need_version to no, make sure it does not cause -set_version
  16150. # flags to be left without arguments
  16151. need_version=unknown
  16152. case $host_os in
  16153. aix3*)
  16154. version_type=linux
  16155. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16156. shlibpath_var=LIBPATH
  16157. # AIX 3 has no versioning support, so we append a major version to the name.
  16158. soname_spec='${libname}${release}${shared_ext}$major'
  16159. ;;
  16160. aix4* | aix5*)
  16161. version_type=linux
  16162. need_lib_prefix=no
  16163. need_version=no
  16164. hardcode_into_libs=yes
  16165. if test "$host_cpu" = ia64; then
  16166. # AIX 5 supports IA64
  16167. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16168. shlibpath_var=LD_LIBRARY_PATH
  16169. else
  16170. # With GCC up to 2.95.x, collect2 would create an import file
  16171. # for dependence libraries. The import file would start with
  16172. # the line `#! .'. This would cause the generated library to
  16173. # depend on `.', always an invalid library. This was fixed in
  16174. # development snapshots of GCC prior to 3.0.
  16175. case $host_os in
  16176. aix4 | aix4.[01] | aix4.[01].*)
  16177. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16178. echo ' yes '
  16179. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16180. :
  16181. else
  16182. can_build_shared=no
  16183. fi
  16184. ;;
  16185. esac
  16186. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16187. # soname into executable. Probably we can add versioning support to
  16188. # collect2, so additional links can be useful in future.
  16189. if test "$aix_use_runtimelinking" = yes; then
  16190. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16191. # instead of lib<name>.a to let people know that these are not
  16192. # typical AIX shared libraries.
  16193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16194. else
  16195. # We preserve .a as extension for shared libraries through AIX4.2
  16196. # and later when we are not doing run time linking.
  16197. library_names_spec='${libname}${release}.a $libname.a'
  16198. soname_spec='${libname}${release}${shared_ext}$major'
  16199. fi
  16200. shlibpath_var=LIBPATH
  16201. fi
  16202. ;;
  16203. amigaos*)
  16204. library_names_spec='$libname.ixlibrary $libname.a'
  16205. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16206. 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'
  16207. ;;
  16208. beos*)
  16209. library_names_spec='${libname}${shared_ext}'
  16210. dynamic_linker="$host_os ld.so"
  16211. shlibpath_var=LIBRARY_PATH
  16212. ;;
  16213. bsdi[45]*)
  16214. version_type=linux
  16215. need_version=no
  16216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16217. soname_spec='${libname}${release}${shared_ext}$major'
  16218. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16219. shlibpath_var=LD_LIBRARY_PATH
  16220. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16221. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16222. # the default ld.so.conf also contains /usr/contrib/lib and
  16223. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16224. # libtool to hard-code these into programs
  16225. ;;
  16226. cygwin* | mingw* | pw32*)
  16227. version_type=windows
  16228. shrext_cmds=".dll"
  16229. need_version=no
  16230. need_lib_prefix=no
  16231. case $GCC,$host_os in
  16232. yes,cygwin* | yes,mingw* | yes,pw32*)
  16233. library_names_spec='$libname.dll.a'
  16234. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16235. postinstall_cmds='base_file=`basename \${file}`~
  16236. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16237. dldir=$destdir/`dirname \$dlpath`~
  16238. test -d \$dldir || mkdir -p \$dldir~
  16239. $install_prog $dir/$dlname \$dldir/$dlname~
  16240. chmod a+x \$dldir/$dlname'
  16241. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16242. dlpath=$dir/\$dldll~
  16243. $rm \$dlpath'
  16244. shlibpath_overrides_runpath=yes
  16245. case $host_os in
  16246. cygwin*)
  16247. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16248. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16249. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16250. ;;
  16251. mingw*)
  16252. # MinGW DLLs use traditional 'lib' prefix
  16253. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16254. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16255. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16256. # It is most probably a Windows format PATH printed by
  16257. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16258. # path with ; separators, and with drive letters. We can handle the
  16259. # drive letters (cygwin fileutils understands them), so leave them,
  16260. # especially as we might pass files found there to a mingw objdump,
  16261. # which wouldn't understand a cygwinified path. Ahh.
  16262. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16263. else
  16264. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16265. fi
  16266. ;;
  16267. pw32*)
  16268. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16269. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16270. ;;
  16271. esac
  16272. ;;
  16273. *)
  16274. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16275. ;;
  16276. esac
  16277. dynamic_linker='Win32 ld.exe'
  16278. # FIXME: first we should search . and the directory the executable is in
  16279. shlibpath_var=PATH
  16280. ;;
  16281. darwin* | rhapsody*)
  16282. dynamic_linker="$host_os dyld"
  16283. version_type=darwin
  16284. need_lib_prefix=no
  16285. need_version=no
  16286. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16287. soname_spec='${libname}${release}${major}$shared_ext'
  16288. shlibpath_overrides_runpath=yes
  16289. shlibpath_var=DYLD_LIBRARY_PATH
  16290. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16291. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16292. ;;
  16293. dgux*)
  16294. version_type=linux
  16295. need_lib_prefix=no
  16296. need_version=no
  16297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16298. soname_spec='${libname}${release}${shared_ext}$major'
  16299. shlibpath_var=LD_LIBRARY_PATH
  16300. ;;
  16301. freebsd1*)
  16302. dynamic_linker=no
  16303. ;;
  16304. freebsd* | dragonfly*)
  16305. # DragonFly does not have aout. When/if they implement a new
  16306. # versioning mechanism, adjust this.
  16307. if test -x /usr/bin/objformat; then
  16308. objformat=`/usr/bin/objformat`
  16309. else
  16310. case $host_os in
  16311. freebsd[123]*) objformat=aout ;;
  16312. *) objformat=elf ;;
  16313. esac
  16314. fi
  16315. version_type=freebsd-$objformat
  16316. case $version_type in
  16317. freebsd-elf*)
  16318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16319. need_version=no
  16320. need_lib_prefix=no
  16321. ;;
  16322. freebsd-*)
  16323. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16324. need_version=yes
  16325. ;;
  16326. esac
  16327. shlibpath_var=LD_LIBRARY_PATH
  16328. case $host_os in
  16329. freebsd2*)
  16330. shlibpath_overrides_runpath=yes
  16331. ;;
  16332. freebsd3.[01]* | freebsdelf3.[01]*)
  16333. shlibpath_overrides_runpath=yes
  16334. hardcode_into_libs=yes
  16335. ;;
  16336. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16337. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16338. shlibpath_overrides_runpath=no
  16339. hardcode_into_libs=yes
  16340. ;;
  16341. *) # from 4.6 on, and DragonFly
  16342. shlibpath_overrides_runpath=yes
  16343. hardcode_into_libs=yes
  16344. ;;
  16345. esac
  16346. ;;
  16347. gnu*)
  16348. version_type=linux
  16349. need_lib_prefix=no
  16350. need_version=no
  16351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16352. soname_spec='${libname}${release}${shared_ext}$major'
  16353. shlibpath_var=LD_LIBRARY_PATH
  16354. hardcode_into_libs=yes
  16355. ;;
  16356. hpux9* | hpux10* | hpux11*)
  16357. # Give a soname corresponding to the major version so that dld.sl refuses to
  16358. # link against other versions.
  16359. version_type=sunos
  16360. need_lib_prefix=no
  16361. need_version=no
  16362. case $host_cpu in
  16363. ia64*)
  16364. shrext_cmds='.so'
  16365. hardcode_into_libs=yes
  16366. dynamic_linker="$host_os dld.so"
  16367. shlibpath_var=LD_LIBRARY_PATH
  16368. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16370. soname_spec='${libname}${release}${shared_ext}$major'
  16371. if test "X$HPUX_IA64_MODE" = X32; then
  16372. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16373. else
  16374. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16375. fi
  16376. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16377. ;;
  16378. hppa*64*)
  16379. shrext_cmds='.sl'
  16380. hardcode_into_libs=yes
  16381. dynamic_linker="$host_os dld.sl"
  16382. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16383. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16385. soname_spec='${libname}${release}${shared_ext}$major'
  16386. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16387. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16388. ;;
  16389. *)
  16390. shrext_cmds='.sl'
  16391. dynamic_linker="$host_os dld.sl"
  16392. shlibpath_var=SHLIB_PATH
  16393. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16395. soname_spec='${libname}${release}${shared_ext}$major'
  16396. ;;
  16397. esac
  16398. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16399. postinstall_cmds='chmod 555 $lib'
  16400. ;;
  16401. interix[3-9]*)
  16402. version_type=linux
  16403. need_lib_prefix=no
  16404. need_version=no
  16405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16406. soname_spec='${libname}${release}${shared_ext}$major'
  16407. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16408. shlibpath_var=LD_LIBRARY_PATH
  16409. shlibpath_overrides_runpath=no
  16410. hardcode_into_libs=yes
  16411. ;;
  16412. irix5* | irix6* | nonstopux*)
  16413. case $host_os in
  16414. nonstopux*) version_type=nonstopux ;;
  16415. *)
  16416. if test "$lt_cv_prog_gnu_ld" = yes; then
  16417. version_type=linux
  16418. else
  16419. version_type=irix
  16420. fi ;;
  16421. esac
  16422. need_lib_prefix=no
  16423. need_version=no
  16424. soname_spec='${libname}${release}${shared_ext}$major'
  16425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16426. case $host_os in
  16427. irix5* | nonstopux*)
  16428. libsuff= shlibsuff=
  16429. ;;
  16430. *)
  16431. case $LD in # libtool.m4 will add one of these switches to LD
  16432. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16433. libsuff= shlibsuff= libmagic=32-bit;;
  16434. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16435. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16436. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16437. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16438. *) libsuff= shlibsuff= libmagic=never-match;;
  16439. esac
  16440. ;;
  16441. esac
  16442. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16443. shlibpath_overrides_runpath=no
  16444. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16445. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16446. hardcode_into_libs=yes
  16447. ;;
  16448. # No shared lib support for Linux oldld, aout, or coff.
  16449. linux*oldld* | linux*aout* | linux*coff*)
  16450. dynamic_linker=no
  16451. ;;
  16452. # This must be Linux ELF.
  16453. linux* | k*bsd*-gnu)
  16454. version_type=linux
  16455. need_lib_prefix=no
  16456. need_version=no
  16457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16458. soname_spec='${libname}${release}${shared_ext}$major'
  16459. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16460. shlibpath_var=LD_LIBRARY_PATH
  16461. shlibpath_overrides_runpath=no
  16462. # This implies no fast_install, which is unacceptable.
  16463. # Some rework will be needed to allow for fast_install
  16464. # before this can be enabled.
  16465. hardcode_into_libs=yes
  16466. # Append ld.so.conf contents to the search path
  16467. if test -f /etc/ld.so.conf; then
  16468. 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' ' '`
  16469. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16470. fi
  16471. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16472. # powerpc, because MkLinux only supported shared libraries with the
  16473. # GNU dynamic linker. Since this was broken with cross compilers,
  16474. # most powerpc-linux boxes support dynamic linking these days and
  16475. # people can always --disable-shared, the test was removed, and we
  16476. # assume the GNU/Linux dynamic linker is in use.
  16477. dynamic_linker='GNU/Linux ld.so'
  16478. ;;
  16479. netbsd*)
  16480. version_type=sunos
  16481. need_lib_prefix=no
  16482. need_version=no
  16483. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16485. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16486. dynamic_linker='NetBSD (a.out) ld.so'
  16487. else
  16488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16489. soname_spec='${libname}${release}${shared_ext}$major'
  16490. dynamic_linker='NetBSD ld.elf_so'
  16491. fi
  16492. shlibpath_var=LD_LIBRARY_PATH
  16493. shlibpath_overrides_runpath=yes
  16494. hardcode_into_libs=yes
  16495. ;;
  16496. newsos6)
  16497. version_type=linux
  16498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16499. shlibpath_var=LD_LIBRARY_PATH
  16500. shlibpath_overrides_runpath=yes
  16501. ;;
  16502. nto-qnx*)
  16503. version_type=linux
  16504. need_lib_prefix=no
  16505. need_version=no
  16506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16507. soname_spec='${libname}${release}${shared_ext}$major'
  16508. shlibpath_var=LD_LIBRARY_PATH
  16509. shlibpath_overrides_runpath=yes
  16510. ;;
  16511. openbsd*)
  16512. version_type=sunos
  16513. sys_lib_dlsearch_path_spec="/usr/lib"
  16514. need_lib_prefix=no
  16515. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16516. case $host_os in
  16517. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16518. *) need_version=no ;;
  16519. esac
  16520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16521. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16522. shlibpath_var=LD_LIBRARY_PATH
  16523. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16524. case $host_os in
  16525. openbsd2.[89] | openbsd2.[89].*)
  16526. shlibpath_overrides_runpath=no
  16527. ;;
  16528. *)
  16529. shlibpath_overrides_runpath=yes
  16530. ;;
  16531. esac
  16532. else
  16533. shlibpath_overrides_runpath=yes
  16534. fi
  16535. ;;
  16536. os2*)
  16537. libname_spec='$name'
  16538. shrext_cmds=".dll"
  16539. need_lib_prefix=no
  16540. library_names_spec='$libname${shared_ext} $libname.a'
  16541. dynamic_linker='OS/2 ld.exe'
  16542. shlibpath_var=LIBPATH
  16543. ;;
  16544. osf3* | osf4* | osf5*)
  16545. version_type=osf
  16546. need_lib_prefix=no
  16547. need_version=no
  16548. soname_spec='${libname}${release}${shared_ext}$major'
  16549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16550. shlibpath_var=LD_LIBRARY_PATH
  16551. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16552. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16553. ;;
  16554. rdos*)
  16555. dynamic_linker=no
  16556. ;;
  16557. solaris*)
  16558. version_type=linux
  16559. need_lib_prefix=no
  16560. need_version=no
  16561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16562. soname_spec='${libname}${release}${shared_ext}$major'
  16563. shlibpath_var=LD_LIBRARY_PATH
  16564. shlibpath_overrides_runpath=yes
  16565. hardcode_into_libs=yes
  16566. # ldd complains unless libraries are executable
  16567. postinstall_cmds='chmod +x $lib'
  16568. ;;
  16569. sunos4*)
  16570. version_type=sunos
  16571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16572. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16573. shlibpath_var=LD_LIBRARY_PATH
  16574. shlibpath_overrides_runpath=yes
  16575. if test "$with_gnu_ld" = yes; then
  16576. need_lib_prefix=no
  16577. fi
  16578. need_version=yes
  16579. ;;
  16580. sysv4 | sysv4.3*)
  16581. version_type=linux
  16582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16583. soname_spec='${libname}${release}${shared_ext}$major'
  16584. shlibpath_var=LD_LIBRARY_PATH
  16585. case $host_vendor in
  16586. sni)
  16587. shlibpath_overrides_runpath=no
  16588. need_lib_prefix=no
  16589. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16590. runpath_var=LD_RUN_PATH
  16591. ;;
  16592. siemens)
  16593. need_lib_prefix=no
  16594. ;;
  16595. motorola)
  16596. need_lib_prefix=no
  16597. need_version=no
  16598. shlibpath_overrides_runpath=no
  16599. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16600. ;;
  16601. esac
  16602. ;;
  16603. sysv4*MP*)
  16604. if test -d /usr/nec ;then
  16605. version_type=linux
  16606. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16607. soname_spec='$libname${shared_ext}.$major'
  16608. shlibpath_var=LD_LIBRARY_PATH
  16609. fi
  16610. ;;
  16611. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16612. version_type=freebsd-elf
  16613. need_lib_prefix=no
  16614. need_version=no
  16615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16616. soname_spec='${libname}${release}${shared_ext}$major'
  16617. shlibpath_var=LD_LIBRARY_PATH
  16618. hardcode_into_libs=yes
  16619. if test "$with_gnu_ld" = yes; then
  16620. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16621. shlibpath_overrides_runpath=no
  16622. else
  16623. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16624. shlibpath_overrides_runpath=yes
  16625. case $host_os in
  16626. sco3.2v5*)
  16627. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16628. ;;
  16629. esac
  16630. fi
  16631. sys_lib_dlsearch_path_spec='/usr/lib'
  16632. ;;
  16633. uts4*)
  16634. version_type=linux
  16635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16636. soname_spec='${libname}${release}${shared_ext}$major'
  16637. shlibpath_var=LD_LIBRARY_PATH
  16638. ;;
  16639. *)
  16640. dynamic_linker=no
  16641. ;;
  16642. esac
  16643. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16644. echo "${ECHO_T}$dynamic_linker" >&6; }
  16645. test "$dynamic_linker" = no && can_build_shared=no
  16646. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16647. if test "$GCC" = yes; then
  16648. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16649. fi
  16650. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16651. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16652. hardcode_action_GCJ=
  16653. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16654. test -n "$runpath_var_GCJ" || \
  16655. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16656. # We can hardcode non-existant directories.
  16657. if test "$hardcode_direct_GCJ" != no &&
  16658. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16659. # have to relink, otherwise we might link with an installed library
  16660. # when we should be linking with a yet-to-be-installed one
  16661. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16662. test "$hardcode_minus_L_GCJ" != no; then
  16663. # Linking always hardcodes the temporary library directory.
  16664. hardcode_action_GCJ=relink
  16665. else
  16666. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16667. hardcode_action_GCJ=immediate
  16668. fi
  16669. else
  16670. # We cannot hardcode anything, or else we can only hardcode existing
  16671. # directories.
  16672. hardcode_action_GCJ=unsupported
  16673. fi
  16674. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16675. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16676. if test "$hardcode_action_GCJ" = relink; then
  16677. # Fast installation is not supported
  16678. enable_fast_install=no
  16679. elif test "$shlibpath_overrides_runpath" = yes ||
  16680. test "$enable_shared" = no; then
  16681. # Fast installation is not necessary
  16682. enable_fast_install=needless
  16683. fi
  16684. # The else clause should only fire when bootstrapping the
  16685. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16686. # with your package, and you will get complaints that there are
  16687. # no rules to generate ltmain.sh.
  16688. if test -f "$ltmain"; then
  16689. # See if we are running on zsh, and set the options which allow our commands through
  16690. # without removal of \ escapes.
  16691. if test -n "${ZSH_VERSION+set}" ; then
  16692. setopt NO_GLOB_SUBST
  16693. fi
  16694. # Now quote all the things that may contain metacharacters while being
  16695. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16696. # variables and quote the copies for generation of the libtool script.
  16697. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16698. SED SHELL STRIP \
  16699. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16700. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16701. deplibs_check_method reload_flag reload_cmds need_locks \
  16702. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16703. lt_cv_sys_global_symbol_to_c_name_address \
  16704. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16705. old_postinstall_cmds old_postuninstall_cmds \
  16706. compiler_GCJ \
  16707. CC_GCJ \
  16708. LD_GCJ \
  16709. lt_prog_compiler_wl_GCJ \
  16710. lt_prog_compiler_pic_GCJ \
  16711. lt_prog_compiler_static_GCJ \
  16712. lt_prog_compiler_no_builtin_flag_GCJ \
  16713. export_dynamic_flag_spec_GCJ \
  16714. thread_safe_flag_spec_GCJ \
  16715. whole_archive_flag_spec_GCJ \
  16716. enable_shared_with_static_runtimes_GCJ \
  16717. old_archive_cmds_GCJ \
  16718. old_archive_from_new_cmds_GCJ \
  16719. predep_objects_GCJ \
  16720. postdep_objects_GCJ \
  16721. predeps_GCJ \
  16722. postdeps_GCJ \
  16723. compiler_lib_search_path_GCJ \
  16724. archive_cmds_GCJ \
  16725. archive_expsym_cmds_GCJ \
  16726. postinstall_cmds_GCJ \
  16727. postuninstall_cmds_GCJ \
  16728. old_archive_from_expsyms_cmds_GCJ \
  16729. allow_undefined_flag_GCJ \
  16730. no_undefined_flag_GCJ \
  16731. export_symbols_cmds_GCJ \
  16732. hardcode_libdir_flag_spec_GCJ \
  16733. hardcode_libdir_flag_spec_ld_GCJ \
  16734. hardcode_libdir_separator_GCJ \
  16735. hardcode_automatic_GCJ \
  16736. module_cmds_GCJ \
  16737. module_expsym_cmds_GCJ \
  16738. lt_cv_prog_compiler_c_o_GCJ \
  16739. fix_srcfile_path_GCJ \
  16740. exclude_expsyms_GCJ \
  16741. include_expsyms_GCJ; do
  16742. case $var in
  16743. old_archive_cmds_GCJ | \
  16744. old_archive_from_new_cmds_GCJ | \
  16745. archive_cmds_GCJ | \
  16746. archive_expsym_cmds_GCJ | \
  16747. module_cmds_GCJ | \
  16748. module_expsym_cmds_GCJ | \
  16749. old_archive_from_expsyms_cmds_GCJ | \
  16750. export_symbols_cmds_GCJ | \
  16751. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16752. postinstall_cmds | postuninstall_cmds | \
  16753. old_postinstall_cmds | old_postuninstall_cmds | \
  16754. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16755. # Double-quote double-evaled strings.
  16756. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16757. ;;
  16758. *)
  16759. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16760. ;;
  16761. esac
  16762. done
  16763. case $lt_echo in
  16764. *'\$0 --fallback-echo"')
  16765. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16766. ;;
  16767. esac
  16768. cfgfile="$ofile"
  16769. cat <<__EOF__ >> "$cfgfile"
  16770. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16771. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16772. # Shell to use when invoking shell scripts.
  16773. SHELL=$lt_SHELL
  16774. # Whether or not to build shared libraries.
  16775. build_libtool_libs=$enable_shared
  16776. # Whether or not to build static libraries.
  16777. build_old_libs=$enable_static
  16778. # Whether or not to add -lc for building shared libraries.
  16779. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16780. # Whether or not to disallow shared libs when runtime libs are static
  16781. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16782. # Whether or not to optimize for fast installation.
  16783. fast_install=$enable_fast_install
  16784. # The host system.
  16785. host_alias=$host_alias
  16786. host=$host
  16787. host_os=$host_os
  16788. # The build system.
  16789. build_alias=$build_alias
  16790. build=$build
  16791. build_os=$build_os
  16792. # An echo program that does not interpret backslashes.
  16793. echo=$lt_echo
  16794. # The archiver.
  16795. AR=$lt_AR
  16796. AR_FLAGS=$lt_AR_FLAGS
  16797. # A C compiler.
  16798. LTCC=$lt_LTCC
  16799. # LTCC compiler flags.
  16800. LTCFLAGS=$lt_LTCFLAGS
  16801. # A language-specific compiler.
  16802. CC=$lt_compiler_GCJ
  16803. # Is the compiler the GNU C compiler?
  16804. with_gcc=$GCC_GCJ
  16805. # An ERE matcher.
  16806. EGREP=$lt_EGREP
  16807. # The linker used to build libraries.
  16808. LD=$lt_LD_GCJ
  16809. # Whether we need hard or soft links.
  16810. LN_S=$lt_LN_S
  16811. # A BSD-compatible nm program.
  16812. NM=$lt_NM
  16813. # A symbol stripping program
  16814. STRIP=$lt_STRIP
  16815. # Used to examine libraries when file_magic_cmd begins "file"
  16816. MAGIC_CMD=$MAGIC_CMD
  16817. # Used on cygwin: DLL creation program.
  16818. DLLTOOL="$DLLTOOL"
  16819. # Used on cygwin: object dumper.
  16820. OBJDUMP="$OBJDUMP"
  16821. # Used on cygwin: assembler.
  16822. AS="$AS"
  16823. # The name of the directory that contains temporary libtool files.
  16824. objdir=$objdir
  16825. # How to create reloadable object files.
  16826. reload_flag=$lt_reload_flag
  16827. reload_cmds=$lt_reload_cmds
  16828. # How to pass a linker flag through the compiler.
  16829. wl=$lt_lt_prog_compiler_wl_GCJ
  16830. # Object file suffix (normally "o").
  16831. objext="$ac_objext"
  16832. # Old archive suffix (normally "a").
  16833. libext="$libext"
  16834. # Shared library suffix (normally ".so").
  16835. shrext_cmds='$shrext_cmds'
  16836. # Executable file suffix (normally "").
  16837. exeext="$exeext"
  16838. # Additional compiler flags for building library objects.
  16839. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16840. pic_mode=$pic_mode
  16841. # What is the maximum length of a command?
  16842. max_cmd_len=$lt_cv_sys_max_cmd_len
  16843. # Does compiler simultaneously support -c and -o options?
  16844. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16845. # Must we lock files when doing compilation?
  16846. need_locks=$lt_need_locks
  16847. # Do we need the lib prefix for modules?
  16848. need_lib_prefix=$need_lib_prefix
  16849. # Do we need a version for libraries?
  16850. need_version=$need_version
  16851. # Whether dlopen is supported.
  16852. dlopen_support=$enable_dlopen
  16853. # Whether dlopen of programs is supported.
  16854. dlopen_self=$enable_dlopen_self
  16855. # Whether dlopen of statically linked programs is supported.
  16856. dlopen_self_static=$enable_dlopen_self_static
  16857. # Compiler flag to prevent dynamic linking.
  16858. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16859. # Compiler flag to turn off builtin functions.
  16860. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16861. # Compiler flag to allow reflexive dlopens.
  16862. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16863. # Compiler flag to generate shared objects directly from archives.
  16864. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16865. # Compiler flag to generate thread-safe objects.
  16866. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16867. # Library versioning type.
  16868. version_type=$version_type
  16869. # Format of library name prefix.
  16870. libname_spec=$lt_libname_spec
  16871. # List of archive names. First name is the real one, the rest are links.
  16872. # The last name is the one that the linker finds with -lNAME.
  16873. library_names_spec=$lt_library_names_spec
  16874. # The coded name of the library, if different from the real name.
  16875. soname_spec=$lt_soname_spec
  16876. # Commands used to build and install an old-style archive.
  16877. RANLIB=$lt_RANLIB
  16878. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16879. old_postinstall_cmds=$lt_old_postinstall_cmds
  16880. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16881. # Create an old-style archive from a shared archive.
  16882. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16883. # Create a temporary old-style archive to link instead of a shared archive.
  16884. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16885. # Commands used to build and install a shared archive.
  16886. archive_cmds=$lt_archive_cmds_GCJ
  16887. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16888. postinstall_cmds=$lt_postinstall_cmds
  16889. postuninstall_cmds=$lt_postuninstall_cmds
  16890. # Commands used to build a loadable module (assumed same as above if empty)
  16891. module_cmds=$lt_module_cmds_GCJ
  16892. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16893. # Commands to strip libraries.
  16894. old_striplib=$lt_old_striplib
  16895. striplib=$lt_striplib
  16896. # Dependencies to place before the objects being linked to create a
  16897. # shared library.
  16898. predep_objects=$lt_predep_objects_GCJ
  16899. # Dependencies to place after the objects being linked to create a
  16900. # shared library.
  16901. postdep_objects=$lt_postdep_objects_GCJ
  16902. # Dependencies to place before the objects being linked to create a
  16903. # shared library.
  16904. predeps=$lt_predeps_GCJ
  16905. # Dependencies to place after the objects being linked to create a
  16906. # shared library.
  16907. postdeps=$lt_postdeps_GCJ
  16908. # The library search path used internally by the compiler when linking
  16909. # a shared library.
  16910. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16911. # Method to check whether dependent libraries are shared objects.
  16912. deplibs_check_method=$lt_deplibs_check_method
  16913. # Command to use when deplibs_check_method == file_magic.
  16914. file_magic_cmd=$lt_file_magic_cmd
  16915. # Flag that allows shared libraries with undefined symbols to be built.
  16916. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16917. # Flag that forces no undefined symbols.
  16918. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16919. # Commands used to finish a libtool library installation in a directory.
  16920. finish_cmds=$lt_finish_cmds
  16921. # Same as above, but a single script fragment to be evaled but not shown.
  16922. finish_eval=$lt_finish_eval
  16923. # Take the output of nm and produce a listing of raw symbols and C names.
  16924. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16925. # Transform the output of nm in a proper C declaration
  16926. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16927. # Transform the output of nm in a C name address pair
  16928. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16929. # This is the shared library runtime path variable.
  16930. runpath_var=$runpath_var
  16931. # This is the shared library path variable.
  16932. shlibpath_var=$shlibpath_var
  16933. # Is shlibpath searched before the hard-coded library search path?
  16934. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16935. # How to hardcode a shared library path into an executable.
  16936. hardcode_action=$hardcode_action_GCJ
  16937. # Whether we should hardcode library paths into libraries.
  16938. hardcode_into_libs=$hardcode_into_libs
  16939. # Flag to hardcode \$libdir into a binary during linking.
  16940. # This must work even if \$libdir does not exist.
  16941. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16942. # If ld is used when linking, flag to hardcode \$libdir into
  16943. # a binary during linking. This must work even if \$libdir does
  16944. # not exist.
  16945. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16946. # Whether we need a single -rpath flag with a separated argument.
  16947. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16948. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16949. # resulting binary.
  16950. hardcode_direct=$hardcode_direct_GCJ
  16951. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16952. # resulting binary.
  16953. hardcode_minus_L=$hardcode_minus_L_GCJ
  16954. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16955. # the resulting binary.
  16956. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16957. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16958. # and all subsequent libraries and executables linked against it.
  16959. hardcode_automatic=$hardcode_automatic_GCJ
  16960. # Variables whose values should be saved in libtool wrapper scripts and
  16961. # restored at relink time.
  16962. variables_saved_for_relink="$variables_saved_for_relink"
  16963. # Whether libtool must link a program against all its dependency libraries.
  16964. link_all_deplibs=$link_all_deplibs_GCJ
  16965. # Compile-time system search path for libraries
  16966. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16967. # Run-time system search path for libraries
  16968. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16969. # Fix the shell variable \$srcfile for the compiler.
  16970. fix_srcfile_path=$lt_fix_srcfile_path
  16971. # Set to yes if exported symbols are required.
  16972. always_export_symbols=$always_export_symbols_GCJ
  16973. # The commands to list exported symbols.
  16974. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16975. # The commands to extract the exported symbol list from a shared archive.
  16976. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16977. # Symbols that should not be listed in the preloaded symbols.
  16978. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16979. # Symbols that must always be exported.
  16980. include_expsyms=$lt_include_expsyms_GCJ
  16981. # ### END LIBTOOL TAG CONFIG: $tagname
  16982. __EOF__
  16983. else
  16984. # If there is no Makefile yet, we rely on a make rule to execute
  16985. # `config.status --recheck' to rerun these tests and create the
  16986. # libtool script then.
  16987. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16988. if test -f "$ltmain_in"; then
  16989. test -f Makefile && make "$ltmain"
  16990. fi
  16991. fi
  16992. ac_ext=c
  16993. ac_cpp='$CPP $CPPFLAGS'
  16994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16997. CC="$lt_save_CC"
  16998. else
  16999. tagname=""
  17000. fi
  17001. ;;
  17002. RC)
  17003. # Source file extension for RC test sources.
  17004. ac_ext=rc
  17005. # Object file extension for compiled RC test sources.
  17006. objext=o
  17007. objext_RC=$objext
  17008. # Code to be used in simple compile tests
  17009. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  17010. # Code to be used in simple link tests
  17011. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17012. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17013. # If no C compiler was specified, use CC.
  17014. LTCC=${LTCC-"$CC"}
  17015. # If no C compiler flags were specified, use CFLAGS.
  17016. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17017. # Allow CC to be a program name with arguments.
  17018. compiler=$CC
  17019. # save warnings/boilerplate of simple test code
  17020. ac_outfile=conftest.$ac_objext
  17021. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17022. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17023. _lt_compiler_boilerplate=`cat conftest.err`
  17024. $rm conftest*
  17025. ac_outfile=conftest.$ac_objext
  17026. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17027. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17028. _lt_linker_boilerplate=`cat conftest.err`
  17029. $rm conftest*
  17030. # Allow CC to be a program name with arguments.
  17031. lt_save_CC="$CC"
  17032. CC=${RC-"windres"}
  17033. compiler=$CC
  17034. compiler_RC=$CC
  17035. for cc_temp in $compiler""; do
  17036. case $cc_temp in
  17037. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17038. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17039. \-*) ;;
  17040. *) break;;
  17041. esac
  17042. done
  17043. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17044. lt_cv_prog_compiler_c_o_RC=yes
  17045. # The else clause should only fire when bootstrapping the
  17046. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17047. # with your package, and you will get complaints that there are
  17048. # no rules to generate ltmain.sh.
  17049. if test -f "$ltmain"; then
  17050. # See if we are running on zsh, and set the options which allow our commands through
  17051. # without removal of \ escapes.
  17052. if test -n "${ZSH_VERSION+set}" ; then
  17053. setopt NO_GLOB_SUBST
  17054. fi
  17055. # Now quote all the things that may contain metacharacters while being
  17056. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17057. # variables and quote the copies for generation of the libtool script.
  17058. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17059. SED SHELL STRIP \
  17060. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17061. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17062. deplibs_check_method reload_flag reload_cmds need_locks \
  17063. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17064. lt_cv_sys_global_symbol_to_c_name_address \
  17065. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17066. old_postinstall_cmds old_postuninstall_cmds \
  17067. compiler_RC \
  17068. CC_RC \
  17069. LD_RC \
  17070. lt_prog_compiler_wl_RC \
  17071. lt_prog_compiler_pic_RC \
  17072. lt_prog_compiler_static_RC \
  17073. lt_prog_compiler_no_builtin_flag_RC \
  17074. export_dynamic_flag_spec_RC \
  17075. thread_safe_flag_spec_RC \
  17076. whole_archive_flag_spec_RC \
  17077. enable_shared_with_static_runtimes_RC \
  17078. old_archive_cmds_RC \
  17079. old_archive_from_new_cmds_RC \
  17080. predep_objects_RC \
  17081. postdep_objects_RC \
  17082. predeps_RC \
  17083. postdeps_RC \
  17084. compiler_lib_search_path_RC \
  17085. archive_cmds_RC \
  17086. archive_expsym_cmds_RC \
  17087. postinstall_cmds_RC \
  17088. postuninstall_cmds_RC \
  17089. old_archive_from_expsyms_cmds_RC \
  17090. allow_undefined_flag_RC \
  17091. no_undefined_flag_RC \
  17092. export_symbols_cmds_RC \
  17093. hardcode_libdir_flag_spec_RC \
  17094. hardcode_libdir_flag_spec_ld_RC \
  17095. hardcode_libdir_separator_RC \
  17096. hardcode_automatic_RC \
  17097. module_cmds_RC \
  17098. module_expsym_cmds_RC \
  17099. lt_cv_prog_compiler_c_o_RC \
  17100. fix_srcfile_path_RC \
  17101. exclude_expsyms_RC \
  17102. include_expsyms_RC; do
  17103. case $var in
  17104. old_archive_cmds_RC | \
  17105. old_archive_from_new_cmds_RC | \
  17106. archive_cmds_RC | \
  17107. archive_expsym_cmds_RC | \
  17108. module_cmds_RC | \
  17109. module_expsym_cmds_RC | \
  17110. old_archive_from_expsyms_cmds_RC | \
  17111. export_symbols_cmds_RC | \
  17112. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17113. postinstall_cmds | postuninstall_cmds | \
  17114. old_postinstall_cmds | old_postuninstall_cmds | \
  17115. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17116. # Double-quote double-evaled strings.
  17117. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17118. ;;
  17119. *)
  17120. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17121. ;;
  17122. esac
  17123. done
  17124. case $lt_echo in
  17125. *'\$0 --fallback-echo"')
  17126. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17127. ;;
  17128. esac
  17129. cfgfile="$ofile"
  17130. cat <<__EOF__ >> "$cfgfile"
  17131. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17132. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17133. # Shell to use when invoking shell scripts.
  17134. SHELL=$lt_SHELL
  17135. # Whether or not to build shared libraries.
  17136. build_libtool_libs=$enable_shared
  17137. # Whether or not to build static libraries.
  17138. build_old_libs=$enable_static
  17139. # Whether or not to add -lc for building shared libraries.
  17140. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17141. # Whether or not to disallow shared libs when runtime libs are static
  17142. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17143. # Whether or not to optimize for fast installation.
  17144. fast_install=$enable_fast_install
  17145. # The host system.
  17146. host_alias=$host_alias
  17147. host=$host
  17148. host_os=$host_os
  17149. # The build system.
  17150. build_alias=$build_alias
  17151. build=$build
  17152. build_os=$build_os
  17153. # An echo program that does not interpret backslashes.
  17154. echo=$lt_echo
  17155. # The archiver.
  17156. AR=$lt_AR
  17157. AR_FLAGS=$lt_AR_FLAGS
  17158. # A C compiler.
  17159. LTCC=$lt_LTCC
  17160. # LTCC compiler flags.
  17161. LTCFLAGS=$lt_LTCFLAGS
  17162. # A language-specific compiler.
  17163. CC=$lt_compiler_RC
  17164. # Is the compiler the GNU C compiler?
  17165. with_gcc=$GCC_RC
  17166. # An ERE matcher.
  17167. EGREP=$lt_EGREP
  17168. # The linker used to build libraries.
  17169. LD=$lt_LD_RC
  17170. # Whether we need hard or soft links.
  17171. LN_S=$lt_LN_S
  17172. # A BSD-compatible nm program.
  17173. NM=$lt_NM
  17174. # A symbol stripping program
  17175. STRIP=$lt_STRIP
  17176. # Used to examine libraries when file_magic_cmd begins "file"
  17177. MAGIC_CMD=$MAGIC_CMD
  17178. # Used on cygwin: DLL creation program.
  17179. DLLTOOL="$DLLTOOL"
  17180. # Used on cygwin: object dumper.
  17181. OBJDUMP="$OBJDUMP"
  17182. # Used on cygwin: assembler.
  17183. AS="$AS"
  17184. # The name of the directory that contains temporary libtool files.
  17185. objdir=$objdir
  17186. # How to create reloadable object files.
  17187. reload_flag=$lt_reload_flag
  17188. reload_cmds=$lt_reload_cmds
  17189. # How to pass a linker flag through the compiler.
  17190. wl=$lt_lt_prog_compiler_wl_RC
  17191. # Object file suffix (normally "o").
  17192. objext="$ac_objext"
  17193. # Old archive suffix (normally "a").
  17194. libext="$libext"
  17195. # Shared library suffix (normally ".so").
  17196. shrext_cmds='$shrext_cmds'
  17197. # Executable file suffix (normally "").
  17198. exeext="$exeext"
  17199. # Additional compiler flags for building library objects.
  17200. pic_flag=$lt_lt_prog_compiler_pic_RC
  17201. pic_mode=$pic_mode
  17202. # What is the maximum length of a command?
  17203. max_cmd_len=$lt_cv_sys_max_cmd_len
  17204. # Does compiler simultaneously support -c and -o options?
  17205. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17206. # Must we lock files when doing compilation?
  17207. need_locks=$lt_need_locks
  17208. # Do we need the lib prefix for modules?
  17209. need_lib_prefix=$need_lib_prefix
  17210. # Do we need a version for libraries?
  17211. need_version=$need_version
  17212. # Whether dlopen is supported.
  17213. dlopen_support=$enable_dlopen
  17214. # Whether dlopen of programs is supported.
  17215. dlopen_self=$enable_dlopen_self
  17216. # Whether dlopen of statically linked programs is supported.
  17217. dlopen_self_static=$enable_dlopen_self_static
  17218. # Compiler flag to prevent dynamic linking.
  17219. link_static_flag=$lt_lt_prog_compiler_static_RC
  17220. # Compiler flag to turn off builtin functions.
  17221. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17222. # Compiler flag to allow reflexive dlopens.
  17223. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17224. # Compiler flag to generate shared objects directly from archives.
  17225. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17226. # Compiler flag to generate thread-safe objects.
  17227. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17228. # Library versioning type.
  17229. version_type=$version_type
  17230. # Format of library name prefix.
  17231. libname_spec=$lt_libname_spec
  17232. # List of archive names. First name is the real one, the rest are links.
  17233. # The last name is the one that the linker finds with -lNAME.
  17234. library_names_spec=$lt_library_names_spec
  17235. # The coded name of the library, if different from the real name.
  17236. soname_spec=$lt_soname_spec
  17237. # Commands used to build and install an old-style archive.
  17238. RANLIB=$lt_RANLIB
  17239. old_archive_cmds=$lt_old_archive_cmds_RC
  17240. old_postinstall_cmds=$lt_old_postinstall_cmds
  17241. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17242. # Create an old-style archive from a shared archive.
  17243. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17244. # Create a temporary old-style archive to link instead of a shared archive.
  17245. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17246. # Commands used to build and install a shared archive.
  17247. archive_cmds=$lt_archive_cmds_RC
  17248. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17249. postinstall_cmds=$lt_postinstall_cmds
  17250. postuninstall_cmds=$lt_postuninstall_cmds
  17251. # Commands used to build a loadable module (assumed same as above if empty)
  17252. module_cmds=$lt_module_cmds_RC
  17253. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17254. # Commands to strip libraries.
  17255. old_striplib=$lt_old_striplib
  17256. striplib=$lt_striplib
  17257. # Dependencies to place before the objects being linked to create a
  17258. # shared library.
  17259. predep_objects=$lt_predep_objects_RC
  17260. # Dependencies to place after the objects being linked to create a
  17261. # shared library.
  17262. postdep_objects=$lt_postdep_objects_RC
  17263. # Dependencies to place before the objects being linked to create a
  17264. # shared library.
  17265. predeps=$lt_predeps_RC
  17266. # Dependencies to place after the objects being linked to create a
  17267. # shared library.
  17268. postdeps=$lt_postdeps_RC
  17269. # The library search path used internally by the compiler when linking
  17270. # a shared library.
  17271. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17272. # Method to check whether dependent libraries are shared objects.
  17273. deplibs_check_method=$lt_deplibs_check_method
  17274. # Command to use when deplibs_check_method == file_magic.
  17275. file_magic_cmd=$lt_file_magic_cmd
  17276. # Flag that allows shared libraries with undefined symbols to be built.
  17277. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17278. # Flag that forces no undefined symbols.
  17279. no_undefined_flag=$lt_no_undefined_flag_RC
  17280. # Commands used to finish a libtool library installation in a directory.
  17281. finish_cmds=$lt_finish_cmds
  17282. # Same as above, but a single script fragment to be evaled but not shown.
  17283. finish_eval=$lt_finish_eval
  17284. # Take the output of nm and produce a listing of raw symbols and C names.
  17285. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17286. # Transform the output of nm in a proper C declaration
  17287. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17288. # Transform the output of nm in a C name address pair
  17289. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17290. # This is the shared library runtime path variable.
  17291. runpath_var=$runpath_var
  17292. # This is the shared library path variable.
  17293. shlibpath_var=$shlibpath_var
  17294. # Is shlibpath searched before the hard-coded library search path?
  17295. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17296. # How to hardcode a shared library path into an executable.
  17297. hardcode_action=$hardcode_action_RC
  17298. # Whether we should hardcode library paths into libraries.
  17299. hardcode_into_libs=$hardcode_into_libs
  17300. # Flag to hardcode \$libdir into a binary during linking.
  17301. # This must work even if \$libdir does not exist.
  17302. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17303. # If ld is used when linking, flag to hardcode \$libdir into
  17304. # a binary during linking. This must work even if \$libdir does
  17305. # not exist.
  17306. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17307. # Whether we need a single -rpath flag with a separated argument.
  17308. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17309. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17310. # resulting binary.
  17311. hardcode_direct=$hardcode_direct_RC
  17312. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17313. # resulting binary.
  17314. hardcode_minus_L=$hardcode_minus_L_RC
  17315. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17316. # the resulting binary.
  17317. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17318. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17319. # and all subsequent libraries and executables linked against it.
  17320. hardcode_automatic=$hardcode_automatic_RC
  17321. # Variables whose values should be saved in libtool wrapper scripts and
  17322. # restored at relink time.
  17323. variables_saved_for_relink="$variables_saved_for_relink"
  17324. # Whether libtool must link a program against all its dependency libraries.
  17325. link_all_deplibs=$link_all_deplibs_RC
  17326. # Compile-time system search path for libraries
  17327. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17328. # Run-time system search path for libraries
  17329. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17330. # Fix the shell variable \$srcfile for the compiler.
  17331. fix_srcfile_path=$lt_fix_srcfile_path
  17332. # Set to yes if exported symbols are required.
  17333. always_export_symbols=$always_export_symbols_RC
  17334. # The commands to list exported symbols.
  17335. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17336. # The commands to extract the exported symbol list from a shared archive.
  17337. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17338. # Symbols that should not be listed in the preloaded symbols.
  17339. exclude_expsyms=$lt_exclude_expsyms_RC
  17340. # Symbols that must always be exported.
  17341. include_expsyms=$lt_include_expsyms_RC
  17342. # ### END LIBTOOL TAG CONFIG: $tagname
  17343. __EOF__
  17344. else
  17345. # If there is no Makefile yet, we rely on a make rule to execute
  17346. # `config.status --recheck' to rerun these tests and create the
  17347. # libtool script then.
  17348. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17349. if test -f "$ltmain_in"; then
  17350. test -f Makefile && make "$ltmain"
  17351. fi
  17352. fi
  17353. ac_ext=c
  17354. ac_cpp='$CPP $CPPFLAGS'
  17355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17358. CC="$lt_save_CC"
  17359. ;;
  17360. *)
  17361. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17362. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17363. { (exit 1); exit 1; }; }
  17364. ;;
  17365. esac
  17366. # Append the new tag name to the list of available tags.
  17367. if test -n "$tagname" ; then
  17368. available_tags="$available_tags $tagname"
  17369. fi
  17370. fi
  17371. done
  17372. IFS="$lt_save_ifs"
  17373. # Now substitute the updated list of available tags.
  17374. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17375. mv "${ofile}T" "$ofile"
  17376. chmod +x "$ofile"
  17377. else
  17378. rm -f "${ofile}T"
  17379. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17380. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17381. { (exit 1); exit 1; }; }
  17382. fi
  17383. fi
  17384. # This can be used to rebuild libtool when needed
  17385. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17386. # Always use our own libtool.
  17387. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17388. # Prevent multiple expansion
  17389. ac_ext=c
  17390. ac_cpp='$CPP $CPPFLAGS'
  17391. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17392. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17393. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17394. if test -n "$ac_tool_prefix"; then
  17395. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17396. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17397. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17398. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17399. if test "${ac_cv_prog_CC+set}" = set; then
  17400. echo $ECHO_N "(cached) $ECHO_C" >&6
  17401. else
  17402. if test -n "$CC"; then
  17403. ac_cv_prog_CC="$CC" # Let the user override the test.
  17404. else
  17405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17406. for as_dir in $PATH
  17407. do
  17408. IFS=$as_save_IFS
  17409. test -z "$as_dir" && as_dir=.
  17410. for ac_exec_ext in '' $ac_executable_extensions; do
  17411. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17412. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17413. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17414. break 2
  17415. fi
  17416. done
  17417. done
  17418. IFS=$as_save_IFS
  17419. fi
  17420. fi
  17421. CC=$ac_cv_prog_CC
  17422. if test -n "$CC"; then
  17423. { echo "$as_me:$LINENO: result: $CC" >&5
  17424. echo "${ECHO_T}$CC" >&6; }
  17425. else
  17426. { echo "$as_me:$LINENO: result: no" >&5
  17427. echo "${ECHO_T}no" >&6; }
  17428. fi
  17429. fi
  17430. if test -z "$ac_cv_prog_CC"; then
  17431. ac_ct_CC=$CC
  17432. # Extract the first word of "gcc", so it can be a program name with args.
  17433. set dummy gcc; ac_word=$2
  17434. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17435. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17436. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17437. echo $ECHO_N "(cached) $ECHO_C" >&6
  17438. else
  17439. if test -n "$ac_ct_CC"; then
  17440. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17441. else
  17442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17443. for as_dir in $PATH
  17444. do
  17445. IFS=$as_save_IFS
  17446. test -z "$as_dir" && as_dir=.
  17447. for ac_exec_ext in '' $ac_executable_extensions; do
  17448. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17449. ac_cv_prog_ac_ct_CC="gcc"
  17450. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17451. break 2
  17452. fi
  17453. done
  17454. done
  17455. IFS=$as_save_IFS
  17456. fi
  17457. fi
  17458. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17459. if test -n "$ac_ct_CC"; then
  17460. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17461. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17462. else
  17463. { echo "$as_me:$LINENO: result: no" >&5
  17464. echo "${ECHO_T}no" >&6; }
  17465. fi
  17466. if test "x$ac_ct_CC" = x; then
  17467. CC=""
  17468. else
  17469. case $cross_compiling:$ac_tool_warned in
  17470. yes:)
  17471. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17472. whose name does not start with the host triplet. If you think this
  17473. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17474. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17475. whose name does not start with the host triplet. If you think this
  17476. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17477. ac_tool_warned=yes ;;
  17478. esac
  17479. CC=$ac_ct_CC
  17480. fi
  17481. else
  17482. CC="$ac_cv_prog_CC"
  17483. fi
  17484. if test -z "$CC"; then
  17485. if test -n "$ac_tool_prefix"; then
  17486. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17487. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17488. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17489. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17490. if test "${ac_cv_prog_CC+set}" = set; then
  17491. echo $ECHO_N "(cached) $ECHO_C" >&6
  17492. else
  17493. if test -n "$CC"; then
  17494. ac_cv_prog_CC="$CC" # Let the user override the test.
  17495. else
  17496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17497. for as_dir in $PATH
  17498. do
  17499. IFS=$as_save_IFS
  17500. test -z "$as_dir" && as_dir=.
  17501. for ac_exec_ext in '' $ac_executable_extensions; do
  17502. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17503. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17504. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17505. break 2
  17506. fi
  17507. done
  17508. done
  17509. IFS=$as_save_IFS
  17510. fi
  17511. fi
  17512. CC=$ac_cv_prog_CC
  17513. if test -n "$CC"; then
  17514. { echo "$as_me:$LINENO: result: $CC" >&5
  17515. echo "${ECHO_T}$CC" >&6; }
  17516. else
  17517. { echo "$as_me:$LINENO: result: no" >&5
  17518. echo "${ECHO_T}no" >&6; }
  17519. fi
  17520. fi
  17521. fi
  17522. if test -z "$CC"; then
  17523. # Extract the first word of "cc", so it can be a program name with args.
  17524. set dummy cc; ac_word=$2
  17525. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17526. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17527. if test "${ac_cv_prog_CC+set}" = set; then
  17528. echo $ECHO_N "(cached) $ECHO_C" >&6
  17529. else
  17530. if test -n "$CC"; then
  17531. ac_cv_prog_CC="$CC" # Let the user override the test.
  17532. else
  17533. ac_prog_rejected=no
  17534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17535. for as_dir in $PATH
  17536. do
  17537. IFS=$as_save_IFS
  17538. test -z "$as_dir" && as_dir=.
  17539. for ac_exec_ext in '' $ac_executable_extensions; do
  17540. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17541. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17542. ac_prog_rejected=yes
  17543. continue
  17544. fi
  17545. ac_cv_prog_CC="cc"
  17546. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17547. break 2
  17548. fi
  17549. done
  17550. done
  17551. IFS=$as_save_IFS
  17552. if test $ac_prog_rejected = yes; then
  17553. # We found a bogon in the path, so make sure we never use it.
  17554. set dummy $ac_cv_prog_CC
  17555. shift
  17556. if test $# != 0; then
  17557. # We chose a different compiler from the bogus one.
  17558. # However, it has the same basename, so the bogon will be chosen
  17559. # first if we set CC to just the basename; use the full file name.
  17560. shift
  17561. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  17562. fi
  17563. fi
  17564. fi
  17565. fi
  17566. CC=$ac_cv_prog_CC
  17567. if test -n "$CC"; then
  17568. { echo "$as_me:$LINENO: result: $CC" >&5
  17569. echo "${ECHO_T}$CC" >&6; }
  17570. else
  17571. { echo "$as_me:$LINENO: result: no" >&5
  17572. echo "${ECHO_T}no" >&6; }
  17573. fi
  17574. fi
  17575. if test -z "$CC"; then
  17576. if test -n "$ac_tool_prefix"; then
  17577. for ac_prog in cl.exe
  17578. do
  17579. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17580. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17581. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17582. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17583. if test "${ac_cv_prog_CC+set}" = set; then
  17584. echo $ECHO_N "(cached) $ECHO_C" >&6
  17585. else
  17586. if test -n "$CC"; then
  17587. ac_cv_prog_CC="$CC" # Let the user override the test.
  17588. else
  17589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17590. for as_dir in $PATH
  17591. do
  17592. IFS=$as_save_IFS
  17593. test -z "$as_dir" && as_dir=.
  17594. for ac_exec_ext in '' $ac_executable_extensions; do
  17595. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17596. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17597. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17598. break 2
  17599. fi
  17600. done
  17601. done
  17602. IFS=$as_save_IFS
  17603. fi
  17604. fi
  17605. CC=$ac_cv_prog_CC
  17606. if test -n "$CC"; then
  17607. { echo "$as_me:$LINENO: result: $CC" >&5
  17608. echo "${ECHO_T}$CC" >&6; }
  17609. else
  17610. { echo "$as_me:$LINENO: result: no" >&5
  17611. echo "${ECHO_T}no" >&6; }
  17612. fi
  17613. test -n "$CC" && break
  17614. done
  17615. fi
  17616. if test -z "$CC"; then
  17617. ac_ct_CC=$CC
  17618. for ac_prog in cl.exe
  17619. do
  17620. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17621. set dummy $ac_prog; ac_word=$2
  17622. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17623. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17624. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17625. echo $ECHO_N "(cached) $ECHO_C" >&6
  17626. else
  17627. if test -n "$ac_ct_CC"; then
  17628. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17629. else
  17630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17631. for as_dir in $PATH
  17632. do
  17633. IFS=$as_save_IFS
  17634. test -z "$as_dir" && as_dir=.
  17635. for ac_exec_ext in '' $ac_executable_extensions; do
  17636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17637. ac_cv_prog_ac_ct_CC="$ac_prog"
  17638. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17639. break 2
  17640. fi
  17641. done
  17642. done
  17643. IFS=$as_save_IFS
  17644. fi
  17645. fi
  17646. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17647. if test -n "$ac_ct_CC"; then
  17648. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17649. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17650. else
  17651. { echo "$as_me:$LINENO: result: no" >&5
  17652. echo "${ECHO_T}no" >&6; }
  17653. fi
  17654. test -n "$ac_ct_CC" && break
  17655. done
  17656. if test "x$ac_ct_CC" = x; then
  17657. CC=""
  17658. else
  17659. case $cross_compiling:$ac_tool_warned in
  17660. yes:)
  17661. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17662. whose name does not start with the host triplet. If you think this
  17663. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17664. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17665. whose name does not start with the host triplet. If you think this
  17666. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17667. ac_tool_warned=yes ;;
  17668. esac
  17669. CC=$ac_ct_CC
  17670. fi
  17671. fi
  17672. fi
  17673. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17674. See \`config.log' for more details." >&5
  17675. echo "$as_me: error: no acceptable C compiler found in \$PATH
  17676. See \`config.log' for more details." >&2;}
  17677. { (exit 1); exit 1; }; }
  17678. # Provide some information about the compiler.
  17679. echo "$as_me:$LINENO: checking for C compiler version" >&5
  17680. ac_compiler=`set X $ac_compile; echo $2`
  17681. { (ac_try="$ac_compiler --version >&5"
  17682. case "(($ac_try" in
  17683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17684. *) ac_try_echo=$ac_try;;
  17685. esac
  17686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17687. (eval "$ac_compiler --version >&5") 2>&5
  17688. ac_status=$?
  17689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17690. (exit $ac_status); }
  17691. { (ac_try="$ac_compiler -v >&5"
  17692. case "(($ac_try" in
  17693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17694. *) ac_try_echo=$ac_try;;
  17695. esac
  17696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17697. (eval "$ac_compiler -v >&5") 2>&5
  17698. ac_status=$?
  17699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17700. (exit $ac_status); }
  17701. { (ac_try="$ac_compiler -V >&5"
  17702. case "(($ac_try" in
  17703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17704. *) ac_try_echo=$ac_try;;
  17705. esac
  17706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17707. (eval "$ac_compiler -V >&5") 2>&5
  17708. ac_status=$?
  17709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17710. (exit $ac_status); }
  17711. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  17712. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  17713. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  17714. echo $ECHO_N "(cached) $ECHO_C" >&6
  17715. else
  17716. cat >conftest.$ac_ext <<_ACEOF
  17717. /* confdefs.h. */
  17718. _ACEOF
  17719. cat confdefs.h >>conftest.$ac_ext
  17720. cat >>conftest.$ac_ext <<_ACEOF
  17721. /* end confdefs.h. */
  17722. int
  17723. main ()
  17724. {
  17725. #ifndef __GNUC__
  17726. choke me
  17727. #endif
  17728. ;
  17729. return 0;
  17730. }
  17731. _ACEOF
  17732. rm -f conftest.$ac_objext
  17733. if { (ac_try="$ac_compile"
  17734. case "(($ac_try" in
  17735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17736. *) ac_try_echo=$ac_try;;
  17737. esac
  17738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17739. (eval "$ac_compile") 2>conftest.er1
  17740. ac_status=$?
  17741. grep -v '^ *+' conftest.er1 >conftest.err
  17742. rm -f conftest.er1
  17743. cat conftest.err >&5
  17744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17745. (exit $ac_status); } && {
  17746. test -z "$ac_c_werror_flag" ||
  17747. test ! -s conftest.err
  17748. } && test -s conftest.$ac_objext; then
  17749. ac_compiler_gnu=yes
  17750. else
  17751. echo "$as_me: failed program was:" >&5
  17752. sed 's/^/| /' conftest.$ac_ext >&5
  17753. ac_compiler_gnu=no
  17754. fi
  17755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17756. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17757. fi
  17758. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17759. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  17760. GCC=`test $ac_compiler_gnu = yes && echo yes`
  17761. ac_test_CFLAGS=${CFLAGS+set}
  17762. ac_save_CFLAGS=$CFLAGS
  17763. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17764. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  17765. if test "${ac_cv_prog_cc_g+set}" = set; then
  17766. echo $ECHO_N "(cached) $ECHO_C" >&6
  17767. else
  17768. ac_save_c_werror_flag=$ac_c_werror_flag
  17769. ac_c_werror_flag=yes
  17770. ac_cv_prog_cc_g=no
  17771. CFLAGS="-g"
  17772. cat >conftest.$ac_ext <<_ACEOF
  17773. /* confdefs.h. */
  17774. _ACEOF
  17775. cat confdefs.h >>conftest.$ac_ext
  17776. cat >>conftest.$ac_ext <<_ACEOF
  17777. /* end confdefs.h. */
  17778. int
  17779. main ()
  17780. {
  17781. ;
  17782. return 0;
  17783. }
  17784. _ACEOF
  17785. rm -f conftest.$ac_objext
  17786. if { (ac_try="$ac_compile"
  17787. case "(($ac_try" in
  17788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17789. *) ac_try_echo=$ac_try;;
  17790. esac
  17791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17792. (eval "$ac_compile") 2>conftest.er1
  17793. ac_status=$?
  17794. grep -v '^ *+' conftest.er1 >conftest.err
  17795. rm -f conftest.er1
  17796. cat conftest.err >&5
  17797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17798. (exit $ac_status); } && {
  17799. test -z "$ac_c_werror_flag" ||
  17800. test ! -s conftest.err
  17801. } && test -s conftest.$ac_objext; then
  17802. ac_cv_prog_cc_g=yes
  17803. else
  17804. echo "$as_me: failed program was:" >&5
  17805. sed 's/^/| /' conftest.$ac_ext >&5
  17806. CFLAGS=""
  17807. cat >conftest.$ac_ext <<_ACEOF
  17808. /* confdefs.h. */
  17809. _ACEOF
  17810. cat confdefs.h >>conftest.$ac_ext
  17811. cat >>conftest.$ac_ext <<_ACEOF
  17812. /* end confdefs.h. */
  17813. int
  17814. main ()
  17815. {
  17816. ;
  17817. return 0;
  17818. }
  17819. _ACEOF
  17820. rm -f conftest.$ac_objext
  17821. if { (ac_try="$ac_compile"
  17822. case "(($ac_try" in
  17823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17824. *) ac_try_echo=$ac_try;;
  17825. esac
  17826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17827. (eval "$ac_compile") 2>conftest.er1
  17828. ac_status=$?
  17829. grep -v '^ *+' conftest.er1 >conftest.err
  17830. rm -f conftest.er1
  17831. cat conftest.err >&5
  17832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17833. (exit $ac_status); } && {
  17834. test -z "$ac_c_werror_flag" ||
  17835. test ! -s conftest.err
  17836. } && test -s conftest.$ac_objext; then
  17837. :
  17838. else
  17839. echo "$as_me: failed program was:" >&5
  17840. sed 's/^/| /' conftest.$ac_ext >&5
  17841. ac_c_werror_flag=$ac_save_c_werror_flag
  17842. CFLAGS="-g"
  17843. cat >conftest.$ac_ext <<_ACEOF
  17844. /* confdefs.h. */
  17845. _ACEOF
  17846. cat confdefs.h >>conftest.$ac_ext
  17847. cat >>conftest.$ac_ext <<_ACEOF
  17848. /* end confdefs.h. */
  17849. int
  17850. main ()
  17851. {
  17852. ;
  17853. return 0;
  17854. }
  17855. _ACEOF
  17856. rm -f conftest.$ac_objext
  17857. if { (ac_try="$ac_compile"
  17858. case "(($ac_try" in
  17859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17860. *) ac_try_echo=$ac_try;;
  17861. esac
  17862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17863. (eval "$ac_compile") 2>conftest.er1
  17864. ac_status=$?
  17865. grep -v '^ *+' conftest.er1 >conftest.err
  17866. rm -f conftest.er1
  17867. cat conftest.err >&5
  17868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17869. (exit $ac_status); } && {
  17870. test -z "$ac_c_werror_flag" ||
  17871. test ! -s conftest.err
  17872. } && test -s conftest.$ac_objext; then
  17873. ac_cv_prog_cc_g=yes
  17874. else
  17875. echo "$as_me: failed program was:" >&5
  17876. sed 's/^/| /' conftest.$ac_ext >&5
  17877. fi
  17878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17879. fi
  17880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17881. fi
  17882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17883. ac_c_werror_flag=$ac_save_c_werror_flag
  17884. fi
  17885. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  17886. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  17887. if test "$ac_test_CFLAGS" = set; then
  17888. CFLAGS=$ac_save_CFLAGS
  17889. elif test $ac_cv_prog_cc_g = yes; then
  17890. if test "$GCC" = yes; then
  17891. CFLAGS="-g -O2"
  17892. else
  17893. CFLAGS="-g"
  17894. fi
  17895. else
  17896. if test "$GCC" = yes; then
  17897. CFLAGS="-O2"
  17898. else
  17899. CFLAGS=
  17900. fi
  17901. fi
  17902. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  17903. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  17904. if test "${ac_cv_prog_cc_c89+set}" = set; then
  17905. echo $ECHO_N "(cached) $ECHO_C" >&6
  17906. else
  17907. ac_cv_prog_cc_c89=no
  17908. ac_save_CC=$CC
  17909. cat >conftest.$ac_ext <<_ACEOF
  17910. /* confdefs.h. */
  17911. _ACEOF
  17912. cat confdefs.h >>conftest.$ac_ext
  17913. cat >>conftest.$ac_ext <<_ACEOF
  17914. /* end confdefs.h. */
  17915. #include <stdarg.h>
  17916. #include <stdio.h>
  17917. #include <sys/types.h>
  17918. #include <sys/stat.h>
  17919. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  17920. struct buf { int x; };
  17921. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  17922. static char *e (p, i)
  17923. char **p;
  17924. int i;
  17925. {
  17926. return p[i];
  17927. }
  17928. static char *f (char * (*g) (char **, int), char **p, ...)
  17929. {
  17930. char *s;
  17931. va_list v;
  17932. va_start (v,p);
  17933. s = g (p, va_arg (v,int));
  17934. va_end (v);
  17935. return s;
  17936. }
  17937. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  17938. function prototypes and stuff, but not '\xHH' hex character constants.
  17939. These don't provoke an error unfortunately, instead are silently treated
  17940. as 'x'. The following induces an error, until -std is added to get
  17941. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  17942. array size at least. It's necessary to write '\x00'==0 to get something
  17943. that's true only with -std. */
  17944. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  17945. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  17946. inside strings and character constants. */
  17947. #define FOO(x) 'x'
  17948. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  17949. int test (int i, double x);
  17950. struct s1 {int (*f) (int a);};
  17951. struct s2 {int (*f) (double a);};
  17952. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  17953. int argc;
  17954. char **argv;
  17955. int
  17956. main ()
  17957. {
  17958. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  17959. ;
  17960. return 0;
  17961. }
  17962. _ACEOF
  17963. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  17964. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  17965. do
  17966. CC="$ac_save_CC $ac_arg"
  17967. rm -f conftest.$ac_objext
  17968. if { (ac_try="$ac_compile"
  17969. case "(($ac_try" in
  17970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17971. *) ac_try_echo=$ac_try;;
  17972. esac
  17973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17974. (eval "$ac_compile") 2>conftest.er1
  17975. ac_status=$?
  17976. grep -v '^ *+' conftest.er1 >conftest.err
  17977. rm -f conftest.er1
  17978. cat conftest.err >&5
  17979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17980. (exit $ac_status); } && {
  17981. test -z "$ac_c_werror_flag" ||
  17982. test ! -s conftest.err
  17983. } && test -s conftest.$ac_objext; then
  17984. ac_cv_prog_cc_c89=$ac_arg
  17985. else
  17986. echo "$as_me: failed program was:" >&5
  17987. sed 's/^/| /' conftest.$ac_ext >&5
  17988. fi
  17989. rm -f core conftest.err conftest.$ac_objext
  17990. test "x$ac_cv_prog_cc_c89" != "xno" && break
  17991. done
  17992. rm -f conftest.$ac_ext
  17993. CC=$ac_save_CC
  17994. fi
  17995. # AC_CACHE_VAL
  17996. case "x$ac_cv_prog_cc_c89" in
  17997. x)
  17998. { echo "$as_me:$LINENO: result: none needed" >&5
  17999. echo "${ECHO_T}none needed" >&6; } ;;
  18000. xno)
  18001. { echo "$as_me:$LINENO: result: unsupported" >&5
  18002. echo "${ECHO_T}unsupported" >&6; } ;;
  18003. *)
  18004. CC="$CC $ac_cv_prog_cc_c89"
  18005. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18006. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18007. esac
  18008. ac_ext=c
  18009. ac_cpp='$CPP $CPPFLAGS'
  18010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18013. depcc="$CC" am_compiler_list=
  18014. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18015. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18016. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  18017. echo $ECHO_N "(cached) $ECHO_C" >&6
  18018. else
  18019. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18020. # We make a subdir and do the tests there. Otherwise we can end up
  18021. # making bogus files that we don't know about and never remove. For
  18022. # instance it was reported that on HP-UX the gcc test will end up
  18023. # making a dummy file named `D' -- because `-MD' means `put the output
  18024. # in D'.
  18025. mkdir conftest.dir
  18026. # Copy depcomp to subdir because otherwise we won't find it if we're
  18027. # using a relative directory.
  18028. cp "$am_depcomp" conftest.dir
  18029. cd conftest.dir
  18030. # We will build objects and dependencies in a subdirectory because
  18031. # it helps to detect inapplicable dependency modes. For instance
  18032. # both Tru64's cc and ICC support -MD to output dependencies as a
  18033. # side effect of compilation, but ICC will put the dependencies in
  18034. # the current directory while Tru64 will put them in the object
  18035. # directory.
  18036. mkdir sub
  18037. am_cv_CC_dependencies_compiler_type=none
  18038. if test "$am_compiler_list" = ""; then
  18039. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18040. fi
  18041. for depmode in $am_compiler_list; do
  18042. # Setup a source with many dependencies, because some compilers
  18043. # like to wrap large dependency lists on column 80 (with \), and
  18044. # we should not choose a depcomp mode which is confused by this.
  18045. #
  18046. # We need to recreate these files for each test, as the compiler may
  18047. # overwrite some of them when testing with obscure command lines.
  18048. # This happens at least with the AIX C compiler.
  18049. : > sub/conftest.c
  18050. for i in 1 2 3 4 5 6; do
  18051. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18052. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18053. # Solaris 8's {/usr,}/bin/sh.
  18054. touch sub/conftst$i.h
  18055. done
  18056. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18057. case $depmode in
  18058. nosideeffect)
  18059. # after this tag, mechanisms are not by side-effect, so they'll
  18060. # only be used when explicitly requested
  18061. if test "x$enable_dependency_tracking" = xyes; then
  18062. continue
  18063. else
  18064. break
  18065. fi
  18066. ;;
  18067. none) break ;;
  18068. esac
  18069. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18070. # mode. It turns out that the SunPro C++ compiler does not properly
  18071. # handle `-M -o', and we need to detect this.
  18072. if depmode=$depmode \
  18073. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18074. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18075. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18076. >/dev/null 2>conftest.err &&
  18077. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18078. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18079. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18080. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18081. # icc doesn't choke on unknown options, it will just issue warnings
  18082. # or remarks (even with -Werror). So we grep stderr for any message
  18083. # that says an option was ignored or not supported.
  18084. # When given -MP, icc 7.0 and 7.1 complain thusly:
  18085. # icc: Command line warning: ignoring option '-M'; no argument required
  18086. # The diagnosis changed in icc 8.0:
  18087. # icc: Command line remark: option '-MP' not supported
  18088. if (grep 'ignoring option' conftest.err ||
  18089. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18090. am_cv_CC_dependencies_compiler_type=$depmode
  18091. break
  18092. fi
  18093. fi
  18094. done
  18095. cd ..
  18096. rm -rf conftest.dir
  18097. else
  18098. am_cv_CC_dependencies_compiler_type=none
  18099. fi
  18100. fi
  18101. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  18102. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  18103. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  18104. if
  18105. test "x$enable_dependency_tracking" != xno \
  18106. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  18107. am__fastdepCC_TRUE=
  18108. am__fastdepCC_FALSE='#'
  18109. else
  18110. am__fastdepCC_TRUE='#'
  18111. am__fastdepCC_FALSE=
  18112. fi
  18113. case $ac_cv_prog_cc_stdc in
  18114. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  18115. *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  18116. echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
  18117. if test "${ac_cv_prog_cc_c99+set}" = set; then
  18118. echo $ECHO_N "(cached) $ECHO_C" >&6
  18119. else
  18120. ac_cv_prog_cc_c99=no
  18121. ac_save_CC=$CC
  18122. cat >conftest.$ac_ext <<_ACEOF
  18123. /* confdefs.h. */
  18124. _ACEOF
  18125. cat confdefs.h >>conftest.$ac_ext
  18126. cat >>conftest.$ac_ext <<_ACEOF
  18127. /* end confdefs.h. */
  18128. #include <stdarg.h>
  18129. #include <stdbool.h>
  18130. #include <stdlib.h>
  18131. #include <wchar.h>
  18132. #include <stdio.h>
  18133. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  18134. #define debug(...) fprintf (stderr, __VA_ARGS__)
  18135. #define showlist(...) puts (#__VA_ARGS__)
  18136. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  18137. static void
  18138. test_varargs_macros (void)
  18139. {
  18140. int x = 1234;
  18141. int y = 5678;
  18142. debug ("Flag");
  18143. debug ("X = %d\n", x);
  18144. showlist (The first, second, and third items.);
  18145. report (x>y, "x is %d but y is %d", x, y);
  18146. }
  18147. // Check long long types.
  18148. #define BIG64 18446744073709551615ull
  18149. #define BIG32 4294967295ul
  18150. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  18151. #if !BIG_OK
  18152. your preprocessor is broken;
  18153. #endif
  18154. #if BIG_OK
  18155. #else
  18156. your preprocessor is broken;
  18157. #endif
  18158. static long long int bignum = -9223372036854775807LL;
  18159. static unsigned long long int ubignum = BIG64;
  18160. struct incomplete_array
  18161. {
  18162. int datasize;
  18163. double data[];
  18164. };
  18165. struct named_init {
  18166. int number;
  18167. const wchar_t *name;
  18168. double average;
  18169. };
  18170. typedef const char *ccp;
  18171. static inline int
  18172. test_restrict (ccp restrict text)
  18173. {
  18174. // See if C++-style comments work.
  18175. // Iterate through items via the restricted pointer.
  18176. // Also check for declarations in for loops.
  18177. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  18178. continue;
  18179. return 0;
  18180. }
  18181. // Check varargs and va_copy.
  18182. static void
  18183. test_varargs (const char *format, ...)
  18184. {
  18185. va_list args;
  18186. va_start (args, format);
  18187. va_list args_copy;
  18188. va_copy (args_copy, args);
  18189. const char *str;
  18190. int number;
  18191. float fnumber;
  18192. while (*format)
  18193. {
  18194. switch (*format++)
  18195. {
  18196. case 's': // string
  18197. str = va_arg (args_copy, const char *);
  18198. break;
  18199. case 'd': // int
  18200. number = va_arg (args_copy, int);
  18201. break;
  18202. case 'f': // float
  18203. fnumber = va_arg (args_copy, double);
  18204. break;
  18205. default:
  18206. break;
  18207. }
  18208. }
  18209. va_end (args_copy);
  18210. va_end (args);
  18211. }
  18212. int
  18213. main ()
  18214. {
  18215. // Check bool.
  18216. _Bool success = false;
  18217. // Check restrict.
  18218. if (test_restrict ("String literal") == 0)
  18219. success = true;
  18220. char *restrict newvar = "Another string";
  18221. // Check varargs.
  18222. test_varargs ("s, d' f .", "string", 65, 34.234);
  18223. test_varargs_macros ();
  18224. // Check flexible array members.
  18225. struct incomplete_array *ia =
  18226. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  18227. ia->datasize = 10;
  18228. for (int i = 0; i < ia->datasize; ++i)
  18229. ia->data[i] = i * 1.234;
  18230. // Check named initializers.
  18231. struct named_init ni = {
  18232. .number = 34,
  18233. .name = L"Test wide string",
  18234. .average = 543.34343,
  18235. };
  18236. ni.number = 58;
  18237. int dynamic_array[ni.number];
  18238. dynamic_array[ni.number - 1] = 543;
  18239. // work around unused variable warnings
  18240. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  18241. || dynamic_array[ni.number - 1] != 543);
  18242. ;
  18243. return 0;
  18244. }
  18245. _ACEOF
  18246. for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  18247. do
  18248. CC="$ac_save_CC $ac_arg"
  18249. rm -f conftest.$ac_objext
  18250. if { (ac_try="$ac_compile"
  18251. case "(($ac_try" in
  18252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18253. *) ac_try_echo=$ac_try;;
  18254. esac
  18255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18256. (eval "$ac_compile") 2>conftest.er1
  18257. ac_status=$?
  18258. grep -v '^ *+' conftest.er1 >conftest.err
  18259. rm -f conftest.er1
  18260. cat conftest.err >&5
  18261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18262. (exit $ac_status); } && {
  18263. test -z "$ac_c_werror_flag" ||
  18264. test ! -s conftest.err
  18265. } && test -s conftest.$ac_objext; then
  18266. ac_cv_prog_cc_c99=$ac_arg
  18267. else
  18268. echo "$as_me: failed program was:" >&5
  18269. sed 's/^/| /' conftest.$ac_ext >&5
  18270. fi
  18271. rm -f core conftest.err conftest.$ac_objext
  18272. test "x$ac_cv_prog_cc_c99" != "xno" && break
  18273. done
  18274. rm -f conftest.$ac_ext
  18275. CC=$ac_save_CC
  18276. fi
  18277. # AC_CACHE_VAL
  18278. case "x$ac_cv_prog_cc_c99" in
  18279. x)
  18280. { echo "$as_me:$LINENO: result: none needed" >&5
  18281. echo "${ECHO_T}none needed" >&6; } ;;
  18282. xno)
  18283. { echo "$as_me:$LINENO: result: unsupported" >&5
  18284. echo "${ECHO_T}unsupported" >&6; } ;;
  18285. *)
  18286. CC="$CC $ac_cv_prog_cc_c99"
  18287. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  18288. echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
  18289. esac
  18290. if test "x$ac_cv_prog_cc_c99" != xno; then
  18291. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  18292. else
  18293. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18294. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  18295. if test "${ac_cv_prog_cc_c89+set}" = set; then
  18296. echo $ECHO_N "(cached) $ECHO_C" >&6
  18297. else
  18298. ac_cv_prog_cc_c89=no
  18299. ac_save_CC=$CC
  18300. cat >conftest.$ac_ext <<_ACEOF
  18301. /* confdefs.h. */
  18302. _ACEOF
  18303. cat confdefs.h >>conftest.$ac_ext
  18304. cat >>conftest.$ac_ext <<_ACEOF
  18305. /* end confdefs.h. */
  18306. #include <stdarg.h>
  18307. #include <stdio.h>
  18308. #include <sys/types.h>
  18309. #include <sys/stat.h>
  18310. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  18311. struct buf { int x; };
  18312. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  18313. static char *e (p, i)
  18314. char **p;
  18315. int i;
  18316. {
  18317. return p[i];
  18318. }
  18319. static char *f (char * (*g) (char **, int), char **p, ...)
  18320. {
  18321. char *s;
  18322. va_list v;
  18323. va_start (v,p);
  18324. s = g (p, va_arg (v,int));
  18325. va_end (v);
  18326. return s;
  18327. }
  18328. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  18329. function prototypes and stuff, but not '\xHH' hex character constants.
  18330. These don't provoke an error unfortunately, instead are silently treated
  18331. as 'x'. The following induces an error, until -std is added to get
  18332. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  18333. array size at least. It's necessary to write '\x00'==0 to get something
  18334. that's true only with -std. */
  18335. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  18336. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  18337. inside strings and character constants. */
  18338. #define FOO(x) 'x'
  18339. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  18340. int test (int i, double x);
  18341. struct s1 {int (*f) (int a);};
  18342. struct s2 {int (*f) (double a);};
  18343. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  18344. int argc;
  18345. char **argv;
  18346. int
  18347. main ()
  18348. {
  18349. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  18350. ;
  18351. return 0;
  18352. }
  18353. _ACEOF
  18354. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  18355. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18356. do
  18357. CC="$ac_save_CC $ac_arg"
  18358. rm -f conftest.$ac_objext
  18359. if { (ac_try="$ac_compile"
  18360. case "(($ac_try" in
  18361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18362. *) ac_try_echo=$ac_try;;
  18363. esac
  18364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18365. (eval "$ac_compile") 2>conftest.er1
  18366. ac_status=$?
  18367. grep -v '^ *+' conftest.er1 >conftest.err
  18368. rm -f conftest.er1
  18369. cat conftest.err >&5
  18370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18371. (exit $ac_status); } && {
  18372. test -z "$ac_c_werror_flag" ||
  18373. test ! -s conftest.err
  18374. } && test -s conftest.$ac_objext; then
  18375. ac_cv_prog_cc_c89=$ac_arg
  18376. else
  18377. echo "$as_me: failed program was:" >&5
  18378. sed 's/^/| /' conftest.$ac_ext >&5
  18379. fi
  18380. rm -f core conftest.err conftest.$ac_objext
  18381. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18382. done
  18383. rm -f conftest.$ac_ext
  18384. CC=$ac_save_CC
  18385. fi
  18386. # AC_CACHE_VAL
  18387. case "x$ac_cv_prog_cc_c89" in
  18388. x)
  18389. { echo "$as_me:$LINENO: result: none needed" >&5
  18390. echo "${ECHO_T}none needed" >&6; } ;;
  18391. xno)
  18392. { echo "$as_me:$LINENO: result: unsupported" >&5
  18393. echo "${ECHO_T}unsupported" >&6; } ;;
  18394. *)
  18395. CC="$CC $ac_cv_prog_cc_c89"
  18396. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18397. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18398. esac
  18399. if test "x$ac_cv_prog_cc_c89" != xno; then
  18400. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  18401. else
  18402. ac_cv_prog_cc_stdc=no
  18403. fi
  18404. fi
  18405. ;;
  18406. esac
  18407. { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  18408. echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
  18409. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  18410. echo $ECHO_N "(cached) $ECHO_C" >&6
  18411. fi
  18412. case $ac_cv_prog_cc_stdc in
  18413. no) { echo "$as_me:$LINENO: result: unsupported" >&5
  18414. echo "${ECHO_T}unsupported" >&6; } ;;
  18415. '') { echo "$as_me:$LINENO: result: none needed" >&5
  18416. echo "${ECHO_T}none needed" >&6; } ;;
  18417. *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  18418. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
  18419. esac
  18420. ac_ext=cpp
  18421. ac_cpp='$CXXCPP $CPPFLAGS'
  18422. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18423. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18424. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18425. if test -z "$CXX"; then
  18426. if test -n "$CCC"; then
  18427. CXX=$CCC
  18428. else
  18429. if test -n "$ac_tool_prefix"; then
  18430. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18431. do
  18432. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18433. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18434. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18435. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18436. if test "${ac_cv_prog_CXX+set}" = set; then
  18437. echo $ECHO_N "(cached) $ECHO_C" >&6
  18438. else
  18439. if test -n "$CXX"; then
  18440. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18441. else
  18442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18443. for as_dir in $PATH
  18444. do
  18445. IFS=$as_save_IFS
  18446. test -z "$as_dir" && as_dir=.
  18447. for ac_exec_ext in '' $ac_executable_extensions; do
  18448. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18449. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18450. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18451. break 2
  18452. fi
  18453. done
  18454. done
  18455. IFS=$as_save_IFS
  18456. fi
  18457. fi
  18458. CXX=$ac_cv_prog_CXX
  18459. if test -n "$CXX"; then
  18460. { echo "$as_me:$LINENO: result: $CXX" >&5
  18461. echo "${ECHO_T}$CXX" >&6; }
  18462. else
  18463. { echo "$as_me:$LINENO: result: no" >&5
  18464. echo "${ECHO_T}no" >&6; }
  18465. fi
  18466. test -n "$CXX" && break
  18467. done
  18468. fi
  18469. if test -z "$CXX"; then
  18470. ac_ct_CXX=$CXX
  18471. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18472. do
  18473. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18474. set dummy $ac_prog; ac_word=$2
  18475. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18476. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18477. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18478. echo $ECHO_N "(cached) $ECHO_C" >&6
  18479. else
  18480. if test -n "$ac_ct_CXX"; then
  18481. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18482. else
  18483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18484. for as_dir in $PATH
  18485. do
  18486. IFS=$as_save_IFS
  18487. test -z "$as_dir" && as_dir=.
  18488. for ac_exec_ext in '' $ac_executable_extensions; do
  18489. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18490. ac_cv_prog_ac_ct_CXX="$ac_prog"
  18491. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18492. break 2
  18493. fi
  18494. done
  18495. done
  18496. IFS=$as_save_IFS
  18497. fi
  18498. fi
  18499. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18500. if test -n "$ac_ct_CXX"; then
  18501. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18502. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  18503. else
  18504. { echo "$as_me:$LINENO: result: no" >&5
  18505. echo "${ECHO_T}no" >&6; }
  18506. fi
  18507. test -n "$ac_ct_CXX" && break
  18508. done
  18509. if test "x$ac_ct_CXX" = x; then
  18510. CXX="g++"
  18511. else
  18512. case $cross_compiling:$ac_tool_warned in
  18513. yes:)
  18514. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18515. whose name does not start with the host triplet. If you think this
  18516. configuration is useful to you, please write to autoconf@gnu.org." >&5
  18517. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18518. whose name does not start with the host triplet. If you think this
  18519. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18520. ac_tool_warned=yes ;;
  18521. esac
  18522. CXX=$ac_ct_CXX
  18523. fi
  18524. fi
  18525. fi
  18526. fi
  18527. # Provide some information about the compiler.
  18528. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  18529. ac_compiler=`set X $ac_compile; echo $2`
  18530. { (ac_try="$ac_compiler --version >&5"
  18531. case "(($ac_try" in
  18532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18533. *) ac_try_echo=$ac_try;;
  18534. esac
  18535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18536. (eval "$ac_compiler --version >&5") 2>&5
  18537. ac_status=$?
  18538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18539. (exit $ac_status); }
  18540. { (ac_try="$ac_compiler -v >&5"
  18541. case "(($ac_try" in
  18542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18543. *) ac_try_echo=$ac_try;;
  18544. esac
  18545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18546. (eval "$ac_compiler -v >&5") 2>&5
  18547. ac_status=$?
  18548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18549. (exit $ac_status); }
  18550. { (ac_try="$ac_compiler -V >&5"
  18551. case "(($ac_try" in
  18552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18553. *) ac_try_echo=$ac_try;;
  18554. esac
  18555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18556. (eval "$ac_compiler -V >&5") 2>&5
  18557. ac_status=$?
  18558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18559. (exit $ac_status); }
  18560. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18561. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  18562. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18563. echo $ECHO_N "(cached) $ECHO_C" >&6
  18564. else
  18565. cat >conftest.$ac_ext <<_ACEOF
  18566. /* confdefs.h. */
  18567. _ACEOF
  18568. cat confdefs.h >>conftest.$ac_ext
  18569. cat >>conftest.$ac_ext <<_ACEOF
  18570. /* end confdefs.h. */
  18571. int
  18572. main ()
  18573. {
  18574. #ifndef __GNUC__
  18575. choke me
  18576. #endif
  18577. ;
  18578. return 0;
  18579. }
  18580. _ACEOF
  18581. rm -f conftest.$ac_objext
  18582. if { (ac_try="$ac_compile"
  18583. case "(($ac_try" in
  18584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18585. *) ac_try_echo=$ac_try;;
  18586. esac
  18587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18588. (eval "$ac_compile") 2>conftest.er1
  18589. ac_status=$?
  18590. grep -v '^ *+' conftest.er1 >conftest.err
  18591. rm -f conftest.er1
  18592. cat conftest.err >&5
  18593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18594. (exit $ac_status); } && {
  18595. test -z "$ac_cxx_werror_flag" ||
  18596. test ! -s conftest.err
  18597. } && test -s conftest.$ac_objext; then
  18598. ac_compiler_gnu=yes
  18599. else
  18600. echo "$as_me: failed program was:" >&5
  18601. sed 's/^/| /' conftest.$ac_ext >&5
  18602. ac_compiler_gnu=no
  18603. fi
  18604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18605. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18606. fi
  18607. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18608. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  18609. GXX=`test $ac_compiler_gnu = yes && echo yes`
  18610. ac_test_CXXFLAGS=${CXXFLAGS+set}
  18611. ac_save_CXXFLAGS=$CXXFLAGS
  18612. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18613. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  18614. if test "${ac_cv_prog_cxx_g+set}" = set; then
  18615. echo $ECHO_N "(cached) $ECHO_C" >&6
  18616. else
  18617. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  18618. ac_cxx_werror_flag=yes
  18619. ac_cv_prog_cxx_g=no
  18620. CXXFLAGS="-g"
  18621. cat >conftest.$ac_ext <<_ACEOF
  18622. /* confdefs.h. */
  18623. _ACEOF
  18624. cat confdefs.h >>conftest.$ac_ext
  18625. cat >>conftest.$ac_ext <<_ACEOF
  18626. /* end confdefs.h. */
  18627. int
  18628. main ()
  18629. {
  18630. ;
  18631. return 0;
  18632. }
  18633. _ACEOF
  18634. rm -f conftest.$ac_objext
  18635. if { (ac_try="$ac_compile"
  18636. case "(($ac_try" in
  18637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18638. *) ac_try_echo=$ac_try;;
  18639. esac
  18640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18641. (eval "$ac_compile") 2>conftest.er1
  18642. ac_status=$?
  18643. grep -v '^ *+' conftest.er1 >conftest.err
  18644. rm -f conftest.er1
  18645. cat conftest.err >&5
  18646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18647. (exit $ac_status); } && {
  18648. test -z "$ac_cxx_werror_flag" ||
  18649. test ! -s conftest.err
  18650. } && test -s conftest.$ac_objext; then
  18651. ac_cv_prog_cxx_g=yes
  18652. else
  18653. echo "$as_me: failed program was:" >&5
  18654. sed 's/^/| /' conftest.$ac_ext >&5
  18655. CXXFLAGS=""
  18656. cat >conftest.$ac_ext <<_ACEOF
  18657. /* confdefs.h. */
  18658. _ACEOF
  18659. cat confdefs.h >>conftest.$ac_ext
  18660. cat >>conftest.$ac_ext <<_ACEOF
  18661. /* end confdefs.h. */
  18662. int
  18663. main ()
  18664. {
  18665. ;
  18666. return 0;
  18667. }
  18668. _ACEOF
  18669. rm -f conftest.$ac_objext
  18670. if { (ac_try="$ac_compile"
  18671. case "(($ac_try" in
  18672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18673. *) ac_try_echo=$ac_try;;
  18674. esac
  18675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18676. (eval "$ac_compile") 2>conftest.er1
  18677. ac_status=$?
  18678. grep -v '^ *+' conftest.er1 >conftest.err
  18679. rm -f conftest.er1
  18680. cat conftest.err >&5
  18681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18682. (exit $ac_status); } && {
  18683. test -z "$ac_cxx_werror_flag" ||
  18684. test ! -s conftest.err
  18685. } && test -s conftest.$ac_objext; then
  18686. :
  18687. else
  18688. echo "$as_me: failed program was:" >&5
  18689. sed 's/^/| /' conftest.$ac_ext >&5
  18690. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18691. CXXFLAGS="-g"
  18692. cat >conftest.$ac_ext <<_ACEOF
  18693. /* confdefs.h. */
  18694. _ACEOF
  18695. cat confdefs.h >>conftest.$ac_ext
  18696. cat >>conftest.$ac_ext <<_ACEOF
  18697. /* end confdefs.h. */
  18698. int
  18699. main ()
  18700. {
  18701. ;
  18702. return 0;
  18703. }
  18704. _ACEOF
  18705. rm -f conftest.$ac_objext
  18706. if { (ac_try="$ac_compile"
  18707. case "(($ac_try" in
  18708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18709. *) ac_try_echo=$ac_try;;
  18710. esac
  18711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18712. (eval "$ac_compile") 2>conftest.er1
  18713. ac_status=$?
  18714. grep -v '^ *+' conftest.er1 >conftest.err
  18715. rm -f conftest.er1
  18716. cat conftest.err >&5
  18717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18718. (exit $ac_status); } && {
  18719. test -z "$ac_cxx_werror_flag" ||
  18720. test ! -s conftest.err
  18721. } && test -s conftest.$ac_objext; then
  18722. ac_cv_prog_cxx_g=yes
  18723. else
  18724. echo "$as_me: failed program was:" >&5
  18725. sed 's/^/| /' conftest.$ac_ext >&5
  18726. fi
  18727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18728. fi
  18729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18730. fi
  18731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18732. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18733. fi
  18734. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18735. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  18736. if test "$ac_test_CXXFLAGS" = set; then
  18737. CXXFLAGS=$ac_save_CXXFLAGS
  18738. elif test $ac_cv_prog_cxx_g = yes; then
  18739. if test "$GXX" = yes; then
  18740. CXXFLAGS="-g -O2"
  18741. else
  18742. CXXFLAGS="-g"
  18743. fi
  18744. else
  18745. if test "$GXX" = yes; then
  18746. CXXFLAGS="-O2"
  18747. else
  18748. CXXFLAGS=
  18749. fi
  18750. fi
  18751. ac_ext=c
  18752. ac_cpp='$CPP $CPPFLAGS'
  18753. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18754. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18755. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18756. depcc="$CXX" am_compiler_list=
  18757. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18758. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18759. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  18760. echo $ECHO_N "(cached) $ECHO_C" >&6
  18761. else
  18762. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18763. # We make a subdir and do the tests there. Otherwise we can end up
  18764. # making bogus files that we don't know about and never remove. For
  18765. # instance it was reported that on HP-UX the gcc test will end up
  18766. # making a dummy file named `D' -- because `-MD' means `put the output
  18767. # in D'.
  18768. mkdir conftest.dir
  18769. # Copy depcomp to subdir because otherwise we won't find it if we're
  18770. # using a relative directory.
  18771. cp "$am_depcomp" conftest.dir
  18772. cd conftest.dir
  18773. # We will build objects and dependencies in a subdirectory because
  18774. # it helps to detect inapplicable dependency modes. For instance
  18775. # both Tru64's cc and ICC support -MD to output dependencies as a
  18776. # side effect of compilation, but ICC will put the dependencies in
  18777. # the current directory while Tru64 will put them in the object
  18778. # directory.
  18779. mkdir sub
  18780. am_cv_CXX_dependencies_compiler_type=none
  18781. if test "$am_compiler_list" = ""; then
  18782. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18783. fi
  18784. for depmode in $am_compiler_list; do
  18785. # Setup a source with many dependencies, because some compilers
  18786. # like to wrap large dependency lists on column 80 (with \), and
  18787. # we should not choose a depcomp mode which is confused by this.
  18788. #
  18789. # We need to recreate these files for each test, as the compiler may
  18790. # overwrite some of them when testing with obscure command lines.
  18791. # This happens at least with the AIX C compiler.
  18792. : > sub/conftest.c
  18793. for i in 1 2 3 4 5 6; do
  18794. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18795. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18796. # Solaris 8's {/usr,}/bin/sh.
  18797. touch sub/conftst$i.h
  18798. done
  18799. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18800. case $depmode in
  18801. nosideeffect)
  18802. # after this tag, mechanisms are not by side-effect, so they'll
  18803. # only be used when explicitly requested
  18804. if test "x$enable_dependency_tracking" = xyes; then
  18805. continue
  18806. else
  18807. break
  18808. fi
  18809. ;;
  18810. none) break ;;
  18811. esac
  18812. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18813. # mode. It turns out that the SunPro C++ compiler does not properly
  18814. # handle `-M -o', and we need to detect this.
  18815. if depmode=$depmode \
  18816. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18817. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18818. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18819. >/dev/null 2>conftest.err &&
  18820. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18821. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18822. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18823. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18824. # icc doesn't choke on unknown options, it will just issue warnings
  18825. # or remarks (even with -Werror). So we grep stderr for any message
  18826. # that says an option was ignored or not supported.
  18827. # When given -MP, icc 7.0 and 7.1 complain thusly:
  18828. # icc: Command line warning: ignoring option '-M'; no argument required
  18829. # The diagnosis changed in icc 8.0:
  18830. # icc: Command line remark: option '-MP' not supported
  18831. if (grep 'ignoring option' conftest.err ||
  18832. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18833. am_cv_CXX_dependencies_compiler_type=$depmode
  18834. break
  18835. fi
  18836. fi
  18837. done
  18838. cd ..
  18839. rm -rf conftest.dir
  18840. else
  18841. am_cv_CXX_dependencies_compiler_type=none
  18842. fi
  18843. fi
  18844. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  18845. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  18846. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  18847. if
  18848. test "x$enable_dependency_tracking" != xno \
  18849. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  18850. am__fastdepCXX_TRUE=
  18851. am__fastdepCXX_FALSE='#'
  18852. else
  18853. am__fastdepCXX_TRUE='#'
  18854. am__fastdepCXX_FALSE=
  18855. fi
  18856. ac_ext=c
  18857. ac_cpp='$CPP $CPPFLAGS'
  18858. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18859. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18860. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18861. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18862. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  18863. # On Suns, sometimes $CPP names a directory.
  18864. if test -n "$CPP" && test -d "$CPP"; then
  18865. CPP=
  18866. fi
  18867. if test -z "$CPP"; then
  18868. if test "${ac_cv_prog_CPP+set}" = set; then
  18869. echo $ECHO_N "(cached) $ECHO_C" >&6
  18870. else
  18871. # Double quotes because CPP needs to be expanded
  18872. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18873. do
  18874. ac_preproc_ok=false
  18875. for ac_c_preproc_warn_flag in '' yes
  18876. do
  18877. # Use a header file that comes with gcc, so configuring glibc
  18878. # with a fresh cross-compiler works.
  18879. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18880. # <limits.h> exists even on freestanding compilers.
  18881. # On the NeXT, cc -E runs the code through the compiler's parser,
  18882. # not just through cpp. "Syntax error" is here to catch this case.
  18883. cat >conftest.$ac_ext <<_ACEOF
  18884. /* confdefs.h. */
  18885. _ACEOF
  18886. cat confdefs.h >>conftest.$ac_ext
  18887. cat >>conftest.$ac_ext <<_ACEOF
  18888. /* end confdefs.h. */
  18889. #ifdef __STDC__
  18890. # include <limits.h>
  18891. #else
  18892. # include <assert.h>
  18893. #endif
  18894. Syntax error
  18895. _ACEOF
  18896. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18897. case "(($ac_try" in
  18898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18899. *) ac_try_echo=$ac_try;;
  18900. esac
  18901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18902. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18903. ac_status=$?
  18904. grep -v '^ *+' conftest.er1 >conftest.err
  18905. rm -f conftest.er1
  18906. cat conftest.err >&5
  18907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18908. (exit $ac_status); } >/dev/null && {
  18909. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18910. test ! -s conftest.err
  18911. }; then
  18912. :
  18913. else
  18914. echo "$as_me: failed program was:" >&5
  18915. sed 's/^/| /' conftest.$ac_ext >&5
  18916. # Broken: fails on valid input.
  18917. continue
  18918. fi
  18919. rm -f conftest.err conftest.$ac_ext
  18920. # OK, works on sane cases. Now check whether nonexistent headers
  18921. # can be detected and how.
  18922. cat >conftest.$ac_ext <<_ACEOF
  18923. /* confdefs.h. */
  18924. _ACEOF
  18925. cat confdefs.h >>conftest.$ac_ext
  18926. cat >>conftest.$ac_ext <<_ACEOF
  18927. /* end confdefs.h. */
  18928. #include <ac_nonexistent.h>
  18929. _ACEOF
  18930. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18931. case "(($ac_try" in
  18932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18933. *) ac_try_echo=$ac_try;;
  18934. esac
  18935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18936. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18937. ac_status=$?
  18938. grep -v '^ *+' conftest.er1 >conftest.err
  18939. rm -f conftest.er1
  18940. cat conftest.err >&5
  18941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18942. (exit $ac_status); } >/dev/null && {
  18943. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18944. test ! -s conftest.err
  18945. }; then
  18946. # Broken: success on invalid input.
  18947. continue
  18948. else
  18949. echo "$as_me: failed program was:" >&5
  18950. sed 's/^/| /' conftest.$ac_ext >&5
  18951. # Passes both tests.
  18952. ac_preproc_ok=:
  18953. break
  18954. fi
  18955. rm -f conftest.err conftest.$ac_ext
  18956. done
  18957. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18958. rm -f conftest.err conftest.$ac_ext
  18959. if $ac_preproc_ok; then
  18960. break
  18961. fi
  18962. done
  18963. ac_cv_prog_CPP=$CPP
  18964. fi
  18965. CPP=$ac_cv_prog_CPP
  18966. else
  18967. ac_cv_prog_CPP=$CPP
  18968. fi
  18969. { echo "$as_me:$LINENO: result: $CPP" >&5
  18970. echo "${ECHO_T}$CPP" >&6; }
  18971. ac_preproc_ok=false
  18972. for ac_c_preproc_warn_flag in '' yes
  18973. do
  18974. # Use a header file that comes with gcc, so configuring glibc
  18975. # with a fresh cross-compiler works.
  18976. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18977. # <limits.h> exists even on freestanding compilers.
  18978. # On the NeXT, cc -E runs the code through the compiler's parser,
  18979. # not just through cpp. "Syntax error" is here to catch this case.
  18980. cat >conftest.$ac_ext <<_ACEOF
  18981. /* confdefs.h. */
  18982. _ACEOF
  18983. cat confdefs.h >>conftest.$ac_ext
  18984. cat >>conftest.$ac_ext <<_ACEOF
  18985. /* end confdefs.h. */
  18986. #ifdef __STDC__
  18987. # include <limits.h>
  18988. #else
  18989. # include <assert.h>
  18990. #endif
  18991. Syntax error
  18992. _ACEOF
  18993. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18994. case "(($ac_try" in
  18995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18996. *) ac_try_echo=$ac_try;;
  18997. esac
  18998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18999. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19000. ac_status=$?
  19001. grep -v '^ *+' conftest.er1 >conftest.err
  19002. rm -f conftest.er1
  19003. cat conftest.err >&5
  19004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19005. (exit $ac_status); } >/dev/null && {
  19006. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19007. test ! -s conftest.err
  19008. }; then
  19009. :
  19010. else
  19011. echo "$as_me: failed program was:" >&5
  19012. sed 's/^/| /' conftest.$ac_ext >&5
  19013. # Broken: fails on valid input.
  19014. continue
  19015. fi
  19016. rm -f conftest.err conftest.$ac_ext
  19017. # OK, works on sane cases. Now check whether nonexistent headers
  19018. # can be detected and how.
  19019. cat >conftest.$ac_ext <<_ACEOF
  19020. /* confdefs.h. */
  19021. _ACEOF
  19022. cat confdefs.h >>conftest.$ac_ext
  19023. cat >>conftest.$ac_ext <<_ACEOF
  19024. /* end confdefs.h. */
  19025. #include <ac_nonexistent.h>
  19026. _ACEOF
  19027. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19028. case "(($ac_try" in
  19029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19030. *) ac_try_echo=$ac_try;;
  19031. esac
  19032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19033. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19034. ac_status=$?
  19035. grep -v '^ *+' conftest.er1 >conftest.err
  19036. rm -f conftest.er1
  19037. cat conftest.err >&5
  19038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19039. (exit $ac_status); } >/dev/null && {
  19040. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19041. test ! -s conftest.err
  19042. }; then
  19043. # Broken: success on invalid input.
  19044. continue
  19045. else
  19046. echo "$as_me: failed program was:" >&5
  19047. sed 's/^/| /' conftest.$ac_ext >&5
  19048. # Passes both tests.
  19049. ac_preproc_ok=:
  19050. break
  19051. fi
  19052. rm -f conftest.err conftest.$ac_ext
  19053. done
  19054. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19055. rm -f conftest.err conftest.$ac_ext
  19056. if $ac_preproc_ok; then
  19057. :
  19058. else
  19059. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  19060. See \`config.log' for more details." >&5
  19061. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  19062. See \`config.log' for more details." >&2;}
  19063. { (exit 1); exit 1; }; }
  19064. fi
  19065. ac_ext=c
  19066. ac_cpp='$CPP $CPPFLAGS'
  19067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19070. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  19071. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  19072. LN_S=$as_ln_s
  19073. if test "$LN_S" = "ln -s"; then
  19074. { echo "$as_me:$LINENO: result: yes" >&5
  19075. echo "${ECHO_T}yes" >&6; }
  19076. else
  19077. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  19078. echo "${ECHO_T}no, using $LN_S" >&6; }
  19079. fi
  19080. if test -n "$ac_tool_prefix"; then
  19081. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  19082. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  19083. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19084. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19085. if test "${ac_cv_prog_RANLIB+set}" = set; then
  19086. echo $ECHO_N "(cached) $ECHO_C" >&6
  19087. else
  19088. if test -n "$RANLIB"; then
  19089. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  19090. else
  19091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19092. for as_dir in $PATH
  19093. do
  19094. IFS=$as_save_IFS
  19095. test -z "$as_dir" && as_dir=.
  19096. for ac_exec_ext in '' $ac_executable_extensions; do
  19097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19098. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  19099. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19100. break 2
  19101. fi
  19102. done
  19103. done
  19104. IFS=$as_save_IFS
  19105. fi
  19106. fi
  19107. RANLIB=$ac_cv_prog_RANLIB
  19108. if test -n "$RANLIB"; then
  19109. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  19110. echo "${ECHO_T}$RANLIB" >&6; }
  19111. else
  19112. { echo "$as_me:$LINENO: result: no" >&5
  19113. echo "${ECHO_T}no" >&6; }
  19114. fi
  19115. fi
  19116. if test -z "$ac_cv_prog_RANLIB"; then
  19117. ac_ct_RANLIB=$RANLIB
  19118. # Extract the first word of "ranlib", so it can be a program name with args.
  19119. set dummy ranlib; ac_word=$2
  19120. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19121. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19122. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  19123. echo $ECHO_N "(cached) $ECHO_C" >&6
  19124. else
  19125. if test -n "$ac_ct_RANLIB"; then
  19126. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  19127. else
  19128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19129. for as_dir in $PATH
  19130. do
  19131. IFS=$as_save_IFS
  19132. test -z "$as_dir" && as_dir=.
  19133. for ac_exec_ext in '' $ac_executable_extensions; do
  19134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19135. ac_cv_prog_ac_ct_RANLIB="ranlib"
  19136. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19137. break 2
  19138. fi
  19139. done
  19140. done
  19141. IFS=$as_save_IFS
  19142. fi
  19143. fi
  19144. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  19145. if test -n "$ac_ct_RANLIB"; then
  19146. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  19147. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  19148. else
  19149. { echo "$as_me:$LINENO: result: no" >&5
  19150. echo "${ECHO_T}no" >&6; }
  19151. fi
  19152. if test "x$ac_ct_RANLIB" = x; then
  19153. RANLIB=":"
  19154. else
  19155. case $cross_compiling:$ac_tool_warned in
  19156. yes:)
  19157. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19158. whose name does not start with the host triplet. If you think this
  19159. configuration is useful to you, please write to autoconf@gnu.org." >&5
  19160. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19161. whose name does not start with the host triplet. If you think this
  19162. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19163. ac_tool_warned=yes ;;
  19164. esac
  19165. RANLIB=$ac_ct_RANLIB
  19166. fi
  19167. else
  19168. RANLIB="$ac_cv_prog_RANLIB"
  19169. fi
  19170. for ac_prog in gawk mawk nawk awk
  19171. do
  19172. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19173. set dummy $ac_prog; ac_word=$2
  19174. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19175. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19176. if test "${ac_cv_prog_AWK+set}" = set; then
  19177. echo $ECHO_N "(cached) $ECHO_C" >&6
  19178. else
  19179. if test -n "$AWK"; then
  19180. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19181. else
  19182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19183. for as_dir in $PATH
  19184. do
  19185. IFS=$as_save_IFS
  19186. test -z "$as_dir" && as_dir=.
  19187. for ac_exec_ext in '' $ac_executable_extensions; do
  19188. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19189. ac_cv_prog_AWK="$ac_prog"
  19190. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19191. break 2
  19192. fi
  19193. done
  19194. done
  19195. IFS=$as_save_IFS
  19196. fi
  19197. fi
  19198. AWK=$ac_cv_prog_AWK
  19199. if test -n "$AWK"; then
  19200. { echo "$as_me:$LINENO: result: $AWK" >&5
  19201. echo "${ECHO_T}$AWK" >&6; }
  19202. else
  19203. { echo "$as_me:$LINENO: result: no" >&5
  19204. echo "${ECHO_T}no" >&6; }
  19205. fi
  19206. test -n "$AWK" && break
  19207. done
  19208. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  19209. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  19210. if test "${ac_cv_path_SED+set}" = set; then
  19211. echo $ECHO_N "(cached) $ECHO_C" >&6
  19212. else
  19213. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19214. for ac_i in 1 2 3 4 5 6 7; do
  19215. ac_script="$ac_script$as_nl$ac_script"
  19216. done
  19217. echo "$ac_script" | sed 99q >conftest.sed
  19218. $as_unset ac_script || ac_script=
  19219. # Extract the first word of "sed gsed" to use in msg output
  19220. if test -z "$SED"; then
  19221. set dummy sed gsed; ac_prog_name=$2
  19222. if test "${ac_cv_path_SED+set}" = set; then
  19223. echo $ECHO_N "(cached) $ECHO_C" >&6
  19224. else
  19225. ac_path_SED_found=false
  19226. # Loop through the user's path and test for each of PROGNAME-LIST
  19227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19228. for as_dir in $PATH
  19229. do
  19230. IFS=$as_save_IFS
  19231. test -z "$as_dir" && as_dir=.
  19232. for ac_prog in sed gsed; do
  19233. for ac_exec_ext in '' $ac_executable_extensions; do
  19234. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19235. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  19236. # Check for GNU ac_path_SED and select it if it is found.
  19237. # Check for GNU $ac_path_SED
  19238. case `"$ac_path_SED" --version 2>&1` in
  19239. *GNU*)
  19240. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  19241. *)
  19242. ac_count=0
  19243. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19244. while :
  19245. do
  19246. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19247. mv "conftest.tmp" "conftest.in"
  19248. cp "conftest.in" "conftest.nl"
  19249. echo '' >> "conftest.nl"
  19250. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19251. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19252. ac_count=`expr $ac_count + 1`
  19253. if test $ac_count -gt ${ac_path_SED_max-0}; then
  19254. # Best one so far, save it but keep looking for a better one
  19255. ac_cv_path_SED="$ac_path_SED"
  19256. ac_path_SED_max=$ac_count
  19257. fi
  19258. # 10*(2^10) chars as input seems more than enough
  19259. test $ac_count -gt 10 && break
  19260. done
  19261. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19262. esac
  19263. $ac_path_SED_found && break 3
  19264. done
  19265. done
  19266. done
  19267. IFS=$as_save_IFS
  19268. fi
  19269. SED="$ac_cv_path_SED"
  19270. if test -z "$SED"; then
  19271. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  19272. echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  19273. { (exit 1); exit 1; }; }
  19274. fi
  19275. else
  19276. ac_cv_path_SED=$SED
  19277. fi
  19278. fi
  19279. { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  19280. echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  19281. SED="$ac_cv_path_SED"
  19282. rm -f conftest.sed
  19283. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19284. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  19285. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19286. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  19287. echo $ECHO_N "(cached) $ECHO_C" >&6
  19288. else
  19289. cat >conftest.make <<\_ACEOF
  19290. SHELL = /bin/sh
  19291. all:
  19292. @echo '@@@%%%=$(MAKE)=@@@%%%'
  19293. _ACEOF
  19294. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19295. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  19296. *@@@%%%=?*=@@@%%%*)
  19297. eval ac_cv_prog_make_${ac_make}_set=yes;;
  19298. *)
  19299. eval ac_cv_prog_make_${ac_make}_set=no;;
  19300. esac
  19301. rm -f conftest.make
  19302. fi
  19303. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19304. { echo "$as_me:$LINENO: result: yes" >&5
  19305. echo "${ECHO_T}yes" >&6; }
  19306. SET_MAKE=
  19307. else
  19308. { echo "$as_me:$LINENO: result: no" >&5
  19309. echo "${ECHO_T}no" >&6; }
  19310. SET_MAKE="MAKE=${MAKE-make}"
  19311. fi
  19312. # Extract the first word of "printf", so it can be a program name with args.
  19313. set dummy printf; ac_word=$2
  19314. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19316. if test "${ac_cv_path_PRINTF+set}" = set; then
  19317. echo $ECHO_N "(cached) $ECHO_C" >&6
  19318. else
  19319. case $PRINTF in
  19320. [\\/]* | ?:[\\/]*)
  19321. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  19322. ;;
  19323. *)
  19324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19325. for as_dir in $PATH
  19326. do
  19327. IFS=$as_save_IFS
  19328. test -z "$as_dir" && as_dir=.
  19329. for ac_exec_ext in '' $ac_executable_extensions; do
  19330. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19331. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  19332. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19333. break 2
  19334. fi
  19335. done
  19336. done
  19337. IFS=$as_save_IFS
  19338. ;;
  19339. esac
  19340. fi
  19341. PRINTF=$ac_cv_path_PRINTF
  19342. if test -n "$PRINTF"; then
  19343. { echo "$as_me:$LINENO: result: $PRINTF" >&5
  19344. echo "${ECHO_T}$PRINTF" >&6; }
  19345. else
  19346. { echo "$as_me:$LINENO: result: no" >&5
  19347. echo "${ECHO_T}no" >&6; }
  19348. fi
  19349. # Extract the first word of "autogen", so it can be a program name with args.
  19350. set dummy autogen; ac_word=$2
  19351. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19352. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19353. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  19354. echo $ECHO_N "(cached) $ECHO_C" >&6
  19355. else
  19356. case $AUTOGEN in
  19357. [\\/]* | ?:[\\/]*)
  19358. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  19359. ;;
  19360. *)
  19361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19362. for as_dir in $PATH
  19363. do
  19364. IFS=$as_save_IFS
  19365. test -z "$as_dir" && as_dir=.
  19366. for ac_exec_ext in '' $ac_executable_extensions; do
  19367. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19368. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  19369. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19370. break 2
  19371. fi
  19372. done
  19373. done
  19374. IFS=$as_save_IFS
  19375. ;;
  19376. esac
  19377. fi
  19378. AUTOGEN=$ac_cv_path_AUTOGEN
  19379. if test -n "$AUTOGEN"; then
  19380. { echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  19381. echo "${ECHO_T}$AUTOGEN" >&6; }
  19382. else
  19383. { echo "$as_me:$LINENO: result: no" >&5
  19384. echo "${ECHO_T}no" >&6; }
  19385. fi
  19386. if test -n "${AUTOGEN}" ; then
  19387. { echo "$as_me:$LINENO: checking for autogen version >= 5.9" >&5
  19388. echo $ECHO_N "checking for autogen version >= 5.9... $ECHO_C" >&6; }
  19389. AUTOGEN_VERSION=`${AUTOGEN} -v | ${SED} 's|.*\([0-9\.]\{3,\}\)$|\1|'`
  19390. AUTOGEN_MAJOR=`echo ${AUTOGEN_VERSION} | ${SED} 's|^\([0-9]\)\.[0-9]|\1|'`
  19391. AUTOGEN_MINOR=`echo ${AUTOGEN_VERSION} | ${SED} 's|^\([0-9]\)\.\([0-9]\)|\2|'`
  19392. if test ${AUTOGEN_MAJOR} -le 5 && test ${AUTOGEN_MINOR} -lt 9 || test ${AUTOGEN_MAJOR} -lt 5 ; then
  19393. { echo "$as_me:$LINENO: result: no" >&5
  19394. echo "${ECHO_T}no" >&6; }
  19395. { echo "$as_me:$LINENO: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9)" >&5
  19396. echo "$as_me: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9)" >&2;}
  19397. else
  19398. { echo "$as_me:$LINENO: result: yes" >&5
  19399. echo "${ECHO_T}yes" >&6; }
  19400. fi
  19401. else
  19402. { echo "$as_me:$LINENO: WARNING: Please install autogen >= 5.9 if you are building from SVN" >&5
  19403. echo "$as_me: WARNING: Please install autogen >= 5.9 if you are building from SVN" >&2;}
  19404. fi
  19405. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19406. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  19407. if test "${ac_cv_header_stdc+set}" = set; then
  19408. echo $ECHO_N "(cached) $ECHO_C" >&6
  19409. else
  19410. cat >conftest.$ac_ext <<_ACEOF
  19411. /* confdefs.h. */
  19412. _ACEOF
  19413. cat confdefs.h >>conftest.$ac_ext
  19414. cat >>conftest.$ac_ext <<_ACEOF
  19415. /* end confdefs.h. */
  19416. #include <stdlib.h>
  19417. #include <stdarg.h>
  19418. #include <string.h>
  19419. #include <float.h>
  19420. int
  19421. main ()
  19422. {
  19423. ;
  19424. return 0;
  19425. }
  19426. _ACEOF
  19427. rm -f conftest.$ac_objext
  19428. if { (ac_try="$ac_compile"
  19429. case "(($ac_try" in
  19430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19431. *) ac_try_echo=$ac_try;;
  19432. esac
  19433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19434. (eval "$ac_compile") 2>conftest.er1
  19435. ac_status=$?
  19436. grep -v '^ *+' conftest.er1 >conftest.err
  19437. rm -f conftest.er1
  19438. cat conftest.err >&5
  19439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19440. (exit $ac_status); } && {
  19441. test -z "$ac_c_werror_flag" ||
  19442. test ! -s conftest.err
  19443. } && test -s conftest.$ac_objext; then
  19444. ac_cv_header_stdc=yes
  19445. else
  19446. echo "$as_me: failed program was:" >&5
  19447. sed 's/^/| /' conftest.$ac_ext >&5
  19448. ac_cv_header_stdc=no
  19449. fi
  19450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19451. if test $ac_cv_header_stdc = yes; then
  19452. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19453. cat >conftest.$ac_ext <<_ACEOF
  19454. /* confdefs.h. */
  19455. _ACEOF
  19456. cat confdefs.h >>conftest.$ac_ext
  19457. cat >>conftest.$ac_ext <<_ACEOF
  19458. /* end confdefs.h. */
  19459. #include <string.h>
  19460. _ACEOF
  19461. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19462. $EGREP "memchr" >/dev/null 2>&1; then
  19463. :
  19464. else
  19465. ac_cv_header_stdc=no
  19466. fi
  19467. rm -f conftest*
  19468. fi
  19469. if test $ac_cv_header_stdc = yes; then
  19470. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19471. cat >conftest.$ac_ext <<_ACEOF
  19472. /* confdefs.h. */
  19473. _ACEOF
  19474. cat confdefs.h >>conftest.$ac_ext
  19475. cat >>conftest.$ac_ext <<_ACEOF
  19476. /* end confdefs.h. */
  19477. #include <stdlib.h>
  19478. _ACEOF
  19479. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19480. $EGREP "free" >/dev/null 2>&1; then
  19481. :
  19482. else
  19483. ac_cv_header_stdc=no
  19484. fi
  19485. rm -f conftest*
  19486. fi
  19487. if test $ac_cv_header_stdc = yes; then
  19488. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19489. if test "$cross_compiling" = yes; then
  19490. :
  19491. else
  19492. cat >conftest.$ac_ext <<_ACEOF
  19493. /* confdefs.h. */
  19494. _ACEOF
  19495. cat confdefs.h >>conftest.$ac_ext
  19496. cat >>conftest.$ac_ext <<_ACEOF
  19497. /* end confdefs.h. */
  19498. #include <ctype.h>
  19499. #include <stdlib.h>
  19500. #if ((' ' & 0x0FF) == 0x020)
  19501. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19502. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19503. #else
  19504. # define ISLOWER(c) \
  19505. (('a' <= (c) && (c) <= 'i') \
  19506. || ('j' <= (c) && (c) <= 'r') \
  19507. || ('s' <= (c) && (c) <= 'z'))
  19508. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19509. #endif
  19510. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19511. int
  19512. main ()
  19513. {
  19514. int i;
  19515. for (i = 0; i < 256; i++)
  19516. if (XOR (islower (i), ISLOWER (i))
  19517. || toupper (i) != TOUPPER (i))
  19518. return 2;
  19519. return 0;
  19520. }
  19521. _ACEOF
  19522. rm -f conftest$ac_exeext
  19523. if { (ac_try="$ac_link"
  19524. case "(($ac_try" in
  19525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19526. *) ac_try_echo=$ac_try;;
  19527. esac
  19528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19529. (eval "$ac_link") 2>&5
  19530. ac_status=$?
  19531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19532. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19533. { (case "(($ac_try" in
  19534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19535. *) ac_try_echo=$ac_try;;
  19536. esac
  19537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19538. (eval "$ac_try") 2>&5
  19539. ac_status=$?
  19540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19541. (exit $ac_status); }; }; then
  19542. :
  19543. else
  19544. echo "$as_me: program exited with status $ac_status" >&5
  19545. echo "$as_me: failed program was:" >&5
  19546. sed 's/^/| /' conftest.$ac_ext >&5
  19547. ( exit $ac_status )
  19548. ac_cv_header_stdc=no
  19549. fi
  19550. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19551. fi
  19552. fi
  19553. fi
  19554. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  19555. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  19556. if test $ac_cv_header_stdc = yes; then
  19557. cat >>confdefs.h <<\_ACEOF
  19558. #define STDC_HEADERS 1
  19559. _ACEOF
  19560. fi
  19561. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  19562. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  19563. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  19564. echo $ECHO_N "(cached) $ECHO_C" >&6
  19565. else
  19566. cat >conftest.$ac_ext <<_ACEOF
  19567. /* confdefs.h. */
  19568. _ACEOF
  19569. cat confdefs.h >>conftest.$ac_ext
  19570. cat >>conftest.$ac_ext <<_ACEOF
  19571. /* end confdefs.h. */
  19572. #include <sys/types.h>
  19573. int
  19574. main ()
  19575. {
  19576. return makedev(0, 0);
  19577. ;
  19578. return 0;
  19579. }
  19580. _ACEOF
  19581. rm -f conftest.$ac_objext conftest$ac_exeext
  19582. if { (ac_try="$ac_link"
  19583. case "(($ac_try" in
  19584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19585. *) ac_try_echo=$ac_try;;
  19586. esac
  19587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19588. (eval "$ac_link") 2>conftest.er1
  19589. ac_status=$?
  19590. grep -v '^ *+' conftest.er1 >conftest.err
  19591. rm -f conftest.er1
  19592. cat conftest.err >&5
  19593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19594. (exit $ac_status); } && {
  19595. test -z "$ac_c_werror_flag" ||
  19596. test ! -s conftest.err
  19597. } && test -s conftest$ac_exeext &&
  19598. $as_test_x conftest$ac_exeext; then
  19599. ac_cv_header_sys_types_h_makedev=yes
  19600. else
  19601. echo "$as_me: failed program was:" >&5
  19602. sed 's/^/| /' conftest.$ac_ext >&5
  19603. ac_cv_header_sys_types_h_makedev=no
  19604. fi
  19605. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19606. conftest$ac_exeext conftest.$ac_ext
  19607. fi
  19608. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  19609. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  19610. if test $ac_cv_header_sys_types_h_makedev = no; then
  19611. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19612. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19613. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19614. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19615. echo $ECHO_N "(cached) $ECHO_C" >&6
  19616. fi
  19617. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19618. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19619. else
  19620. # Is the header compilable?
  19621. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  19622. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  19623. cat >conftest.$ac_ext <<_ACEOF
  19624. /* confdefs.h. */
  19625. _ACEOF
  19626. cat confdefs.h >>conftest.$ac_ext
  19627. cat >>conftest.$ac_ext <<_ACEOF
  19628. /* end confdefs.h. */
  19629. $ac_includes_default
  19630. #include <sys/mkdev.h>
  19631. _ACEOF
  19632. rm -f conftest.$ac_objext
  19633. if { (ac_try="$ac_compile"
  19634. case "(($ac_try" in
  19635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19636. *) ac_try_echo=$ac_try;;
  19637. esac
  19638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19639. (eval "$ac_compile") 2>conftest.er1
  19640. ac_status=$?
  19641. grep -v '^ *+' conftest.er1 >conftest.err
  19642. rm -f conftest.er1
  19643. cat conftest.err >&5
  19644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19645. (exit $ac_status); } && {
  19646. test -z "$ac_c_werror_flag" ||
  19647. test ! -s conftest.err
  19648. } && test -s conftest.$ac_objext; then
  19649. ac_header_compiler=yes
  19650. else
  19651. echo "$as_me: failed program was:" >&5
  19652. sed 's/^/| /' conftest.$ac_ext >&5
  19653. ac_header_compiler=no
  19654. fi
  19655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19656. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19657. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19658. # Is the header present?
  19659. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  19660. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  19661. cat >conftest.$ac_ext <<_ACEOF
  19662. /* confdefs.h. */
  19663. _ACEOF
  19664. cat confdefs.h >>conftest.$ac_ext
  19665. cat >>conftest.$ac_ext <<_ACEOF
  19666. /* end confdefs.h. */
  19667. #include <sys/mkdev.h>
  19668. _ACEOF
  19669. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19670. case "(($ac_try" in
  19671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19672. *) ac_try_echo=$ac_try;;
  19673. esac
  19674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19675. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19676. ac_status=$?
  19677. grep -v '^ *+' conftest.er1 >conftest.err
  19678. rm -f conftest.er1
  19679. cat conftest.err >&5
  19680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19681. (exit $ac_status); } >/dev/null && {
  19682. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19683. test ! -s conftest.err
  19684. }; then
  19685. ac_header_preproc=yes
  19686. else
  19687. echo "$as_me: failed program was:" >&5
  19688. sed 's/^/| /' conftest.$ac_ext >&5
  19689. ac_header_preproc=no
  19690. fi
  19691. rm -f conftest.err conftest.$ac_ext
  19692. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19693. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19694. # So? What about this header?
  19695. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19696. yes:no: )
  19697. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19698. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19699. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  19700. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  19701. ac_header_preproc=yes
  19702. ;;
  19703. no:yes:* )
  19704. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  19705. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  19706. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  19707. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  19708. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  19709. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  19710. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  19711. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19712. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  19713. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  19714. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  19715. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  19716. ;;
  19717. esac
  19718. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19719. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19720. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19721. echo $ECHO_N "(cached) $ECHO_C" >&6
  19722. else
  19723. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  19724. fi
  19725. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19726. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19727. fi
  19728. if test $ac_cv_header_sys_mkdev_h = yes; then
  19729. cat >>confdefs.h <<\_ACEOF
  19730. #define MAJOR_IN_MKDEV 1
  19731. _ACEOF
  19732. fi
  19733. if test $ac_cv_header_sys_mkdev_h = no; then
  19734. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19735. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19736. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19737. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19738. echo $ECHO_N "(cached) $ECHO_C" >&6
  19739. fi
  19740. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19741. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19742. else
  19743. # Is the header compilable?
  19744. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  19745. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  19746. cat >conftest.$ac_ext <<_ACEOF
  19747. /* confdefs.h. */
  19748. _ACEOF
  19749. cat confdefs.h >>conftest.$ac_ext
  19750. cat >>conftest.$ac_ext <<_ACEOF
  19751. /* end confdefs.h. */
  19752. $ac_includes_default
  19753. #include <sys/sysmacros.h>
  19754. _ACEOF
  19755. rm -f conftest.$ac_objext
  19756. if { (ac_try="$ac_compile"
  19757. case "(($ac_try" in
  19758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19759. *) ac_try_echo=$ac_try;;
  19760. esac
  19761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19762. (eval "$ac_compile") 2>conftest.er1
  19763. ac_status=$?
  19764. grep -v '^ *+' conftest.er1 >conftest.err
  19765. rm -f conftest.er1
  19766. cat conftest.err >&5
  19767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19768. (exit $ac_status); } && {
  19769. test -z "$ac_c_werror_flag" ||
  19770. test ! -s conftest.err
  19771. } && test -s conftest.$ac_objext; then
  19772. ac_header_compiler=yes
  19773. else
  19774. echo "$as_me: failed program was:" >&5
  19775. sed 's/^/| /' conftest.$ac_ext >&5
  19776. ac_header_compiler=no
  19777. fi
  19778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19779. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19780. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19781. # Is the header present?
  19782. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  19783. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  19784. cat >conftest.$ac_ext <<_ACEOF
  19785. /* confdefs.h. */
  19786. _ACEOF
  19787. cat confdefs.h >>conftest.$ac_ext
  19788. cat >>conftest.$ac_ext <<_ACEOF
  19789. /* end confdefs.h. */
  19790. #include <sys/sysmacros.h>
  19791. _ACEOF
  19792. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19793. case "(($ac_try" in
  19794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19795. *) ac_try_echo=$ac_try;;
  19796. esac
  19797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19798. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19799. ac_status=$?
  19800. grep -v '^ *+' conftest.er1 >conftest.err
  19801. rm -f conftest.er1
  19802. cat conftest.err >&5
  19803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19804. (exit $ac_status); } >/dev/null && {
  19805. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19806. test ! -s conftest.err
  19807. }; then
  19808. ac_header_preproc=yes
  19809. else
  19810. echo "$as_me: failed program was:" >&5
  19811. sed 's/^/| /' conftest.$ac_ext >&5
  19812. ac_header_preproc=no
  19813. fi
  19814. rm -f conftest.err conftest.$ac_ext
  19815. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19816. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19817. # So? What about this header?
  19818. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19819. yes:no: )
  19820. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19821. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19822. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  19823. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  19824. ac_header_preproc=yes
  19825. ;;
  19826. no:yes:* )
  19827. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  19828. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  19829. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  19830. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  19831. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  19832. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  19833. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  19834. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19835. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  19836. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  19837. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  19838. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  19839. ;;
  19840. esac
  19841. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19842. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19843. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19844. echo $ECHO_N "(cached) $ECHO_C" >&6
  19845. else
  19846. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  19847. fi
  19848. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19849. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19850. fi
  19851. if test $ac_cv_header_sys_sysmacros_h = yes; then
  19852. cat >>confdefs.h <<\_ACEOF
  19853. #define MAJOR_IN_SYSMACROS 1
  19854. _ACEOF
  19855. fi
  19856. fi
  19857. fi
  19858. { echo "$as_me:$LINENO: checking for size_t" >&5
  19859. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19860. if test "${ac_cv_type_size_t+set}" = set; then
  19861. echo $ECHO_N "(cached) $ECHO_C" >&6
  19862. else
  19863. cat >conftest.$ac_ext <<_ACEOF
  19864. /* confdefs.h. */
  19865. _ACEOF
  19866. cat confdefs.h >>conftest.$ac_ext
  19867. cat >>conftest.$ac_ext <<_ACEOF
  19868. /* end confdefs.h. */
  19869. $ac_includes_default
  19870. typedef size_t ac__type_new_;
  19871. int
  19872. main ()
  19873. {
  19874. if ((ac__type_new_ *) 0)
  19875. return 0;
  19876. if (sizeof (ac__type_new_))
  19877. return 0;
  19878. ;
  19879. return 0;
  19880. }
  19881. _ACEOF
  19882. rm -f conftest.$ac_objext
  19883. if { (ac_try="$ac_compile"
  19884. case "(($ac_try" in
  19885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19886. *) ac_try_echo=$ac_try;;
  19887. esac
  19888. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19889. (eval "$ac_compile") 2>conftest.er1
  19890. ac_status=$?
  19891. grep -v '^ *+' conftest.er1 >conftest.err
  19892. rm -f conftest.er1
  19893. cat conftest.err >&5
  19894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19895. (exit $ac_status); } && {
  19896. test -z "$ac_c_werror_flag" ||
  19897. test ! -s conftest.err
  19898. } && test -s conftest.$ac_objext; then
  19899. ac_cv_type_size_t=yes
  19900. else
  19901. echo "$as_me: failed program was:" >&5
  19902. sed 's/^/| /' conftest.$ac_ext >&5
  19903. ac_cv_type_size_t=no
  19904. fi
  19905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19906. fi
  19907. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19908. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19909. if test $ac_cv_type_size_t = yes; then
  19910. :
  19911. else
  19912. cat >>confdefs.h <<_ACEOF
  19913. #define size_t unsigned int
  19914. _ACEOF
  19915. fi
  19916. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  19917. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  19918. if test "${ac_cv_header_time+set}" = set; then
  19919. echo $ECHO_N "(cached) $ECHO_C" >&6
  19920. else
  19921. cat >conftest.$ac_ext <<_ACEOF
  19922. /* confdefs.h. */
  19923. _ACEOF
  19924. cat confdefs.h >>conftest.$ac_ext
  19925. cat >>conftest.$ac_ext <<_ACEOF
  19926. /* end confdefs.h. */
  19927. #include <sys/types.h>
  19928. #include <sys/time.h>
  19929. #include <time.h>
  19930. int
  19931. main ()
  19932. {
  19933. if ((struct tm *) 0)
  19934. return 0;
  19935. ;
  19936. return 0;
  19937. }
  19938. _ACEOF
  19939. rm -f conftest.$ac_objext
  19940. if { (ac_try="$ac_compile"
  19941. case "(($ac_try" in
  19942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19943. *) ac_try_echo=$ac_try;;
  19944. esac
  19945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19946. (eval "$ac_compile") 2>conftest.er1
  19947. ac_status=$?
  19948. grep -v '^ *+' conftest.er1 >conftest.err
  19949. rm -f conftest.er1
  19950. cat conftest.err >&5
  19951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19952. (exit $ac_status); } && {
  19953. test -z "$ac_c_werror_flag" ||
  19954. test ! -s conftest.err
  19955. } && test -s conftest.$ac_objext; then
  19956. ac_cv_header_time=yes
  19957. else
  19958. echo "$as_me: failed program was:" >&5
  19959. sed 's/^/| /' conftest.$ac_ext >&5
  19960. ac_cv_header_time=no
  19961. fi
  19962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19963. fi
  19964. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19965. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  19966. if test $ac_cv_header_time = yes; then
  19967. cat >>confdefs.h <<\_ACEOF
  19968. #define TIME_WITH_SYS_TIME 1
  19969. _ACEOF
  19970. fi
  19971. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19972. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  19973. if test "${ac_cv_c_const+set}" = set; then
  19974. echo $ECHO_N "(cached) $ECHO_C" >&6
  19975. else
  19976. cat >conftest.$ac_ext <<_ACEOF
  19977. /* confdefs.h. */
  19978. _ACEOF
  19979. cat confdefs.h >>conftest.$ac_ext
  19980. cat >>conftest.$ac_ext <<_ACEOF
  19981. /* end confdefs.h. */
  19982. int
  19983. main ()
  19984. {
  19985. /* FIXME: Include the comments suggested by Paul. */
  19986. #ifndef __cplusplus
  19987. /* Ultrix mips cc rejects this. */
  19988. typedef int charset[2];
  19989. const charset cs;
  19990. /* SunOS 4.1.1 cc rejects this. */
  19991. char const *const *pcpcc;
  19992. char **ppc;
  19993. /* NEC SVR4.0.2 mips cc rejects this. */
  19994. struct point {int x, y;};
  19995. static struct point const zero = {0,0};
  19996. /* AIX XL C 1.02.0.0 rejects this.
  19997. It does not let you subtract one const X* pointer from another in
  19998. an arm of an if-expression whose if-part is not a constant
  19999. expression */
  20000. const char *g = "string";
  20001. pcpcc = &g + (g ? g-g : 0);
  20002. /* HPUX 7.0 cc rejects these. */
  20003. ++pcpcc;
  20004. ppc = (char**) pcpcc;
  20005. pcpcc = (char const *const *) ppc;
  20006. { /* SCO 3.2v4 cc rejects this. */
  20007. char *t;
  20008. char const *s = 0 ? (char *) 0 : (char const *) 0;
  20009. *t++ = 0;
  20010. if (s) return 0;
  20011. }
  20012. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  20013. int x[] = {25, 17};
  20014. const int *foo = &x[0];
  20015. ++foo;
  20016. }
  20017. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  20018. typedef const int *iptr;
  20019. iptr p = 0;
  20020. ++p;
  20021. }
  20022. { /* AIX XL C 1.02.0.0 rejects this saying
  20023. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  20024. struct s { int j; const int *ap[3]; };
  20025. struct s *b; b->j = 5;
  20026. }
  20027. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  20028. const int foo = 10;
  20029. if (!foo) return 0;
  20030. }
  20031. return !cs[0] && !zero.x;
  20032. #endif
  20033. ;
  20034. return 0;
  20035. }
  20036. _ACEOF
  20037. rm -f conftest.$ac_objext
  20038. if { (ac_try="$ac_compile"
  20039. case "(($ac_try" in
  20040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20041. *) ac_try_echo=$ac_try;;
  20042. esac
  20043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20044. (eval "$ac_compile") 2>conftest.er1
  20045. ac_status=$?
  20046. grep -v '^ *+' conftest.er1 >conftest.err
  20047. rm -f conftest.er1
  20048. cat conftest.err >&5
  20049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20050. (exit $ac_status); } && {
  20051. test -z "$ac_c_werror_flag" ||
  20052. test ! -s conftest.err
  20053. } && test -s conftest.$ac_objext; then
  20054. ac_cv_c_const=yes
  20055. else
  20056. echo "$as_me: failed program was:" >&5
  20057. sed 's/^/| /' conftest.$ac_ext >&5
  20058. ac_cv_c_const=no
  20059. fi
  20060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20061. fi
  20062. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  20063. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  20064. if test $ac_cv_c_const = no; then
  20065. cat >>confdefs.h <<\_ACEOF
  20066. #define const
  20067. _ACEOF
  20068. fi
  20069. { echo "$as_me:$LINENO: checking for inline" >&5
  20070. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  20071. if test "${ac_cv_c_inline+set}" = set; then
  20072. echo $ECHO_N "(cached) $ECHO_C" >&6
  20073. else
  20074. ac_cv_c_inline=no
  20075. for ac_kw in inline __inline__ __inline; do
  20076. cat >conftest.$ac_ext <<_ACEOF
  20077. /* confdefs.h. */
  20078. _ACEOF
  20079. cat confdefs.h >>conftest.$ac_ext
  20080. cat >>conftest.$ac_ext <<_ACEOF
  20081. /* end confdefs.h. */
  20082. #ifndef __cplusplus
  20083. typedef int foo_t;
  20084. static $ac_kw foo_t static_foo () {return 0; }
  20085. $ac_kw foo_t foo () {return 0; }
  20086. #endif
  20087. _ACEOF
  20088. rm -f conftest.$ac_objext
  20089. if { (ac_try="$ac_compile"
  20090. case "(($ac_try" in
  20091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20092. *) ac_try_echo=$ac_try;;
  20093. esac
  20094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20095. (eval "$ac_compile") 2>conftest.er1
  20096. ac_status=$?
  20097. grep -v '^ *+' conftest.er1 >conftest.err
  20098. rm -f conftest.er1
  20099. cat conftest.err >&5
  20100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20101. (exit $ac_status); } && {
  20102. test -z "$ac_c_werror_flag" ||
  20103. test ! -s conftest.err
  20104. } && test -s conftest.$ac_objext; then
  20105. ac_cv_c_inline=$ac_kw
  20106. else
  20107. echo "$as_me: failed program was:" >&5
  20108. sed 's/^/| /' conftest.$ac_ext >&5
  20109. fi
  20110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20111. test "$ac_cv_c_inline" != no && break
  20112. done
  20113. fi
  20114. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  20115. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  20116. case $ac_cv_c_inline in
  20117. inline | yes) ;;
  20118. *)
  20119. case $ac_cv_c_inline in
  20120. no) ac_val=;;
  20121. *) ac_val=$ac_cv_c_inline;;
  20122. esac
  20123. cat >>confdefs.h <<_ACEOF
  20124. #ifndef __cplusplus
  20125. #define inline $ac_val
  20126. #endif
  20127. _ACEOF
  20128. ;;
  20129. esac
  20130. # Check whether --enable-largefile was given.
  20131. if test "${enable_largefile+set}" = set; then
  20132. enableval=$enable_largefile;
  20133. fi
  20134. if test "$enable_largefile" != no; then
  20135. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  20136. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  20137. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  20138. echo $ECHO_N "(cached) $ECHO_C" >&6
  20139. else
  20140. ac_cv_sys_largefile_CC=no
  20141. if test "$GCC" != yes; then
  20142. ac_save_CC=$CC
  20143. while :; do
  20144. # IRIX 6.2 and later do not support large files by default,
  20145. # so use the C compiler's -n32 option if that helps.
  20146. cat >conftest.$ac_ext <<_ACEOF
  20147. /* confdefs.h. */
  20148. _ACEOF
  20149. cat confdefs.h >>conftest.$ac_ext
  20150. cat >>conftest.$ac_ext <<_ACEOF
  20151. /* end confdefs.h. */
  20152. #include <sys/types.h>
  20153. /* Check that off_t can represent 2**63 - 1 correctly.
  20154. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20155. since some C++ compilers masquerading as C compilers
  20156. incorrectly reject 9223372036854775807. */
  20157. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20158. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20159. && LARGE_OFF_T % 2147483647 == 1)
  20160. ? 1 : -1];
  20161. int
  20162. main ()
  20163. {
  20164. ;
  20165. return 0;
  20166. }
  20167. _ACEOF
  20168. rm -f conftest.$ac_objext
  20169. if { (ac_try="$ac_compile"
  20170. case "(($ac_try" in
  20171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20172. *) ac_try_echo=$ac_try;;
  20173. esac
  20174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20175. (eval "$ac_compile") 2>conftest.er1
  20176. ac_status=$?
  20177. grep -v '^ *+' conftest.er1 >conftest.err
  20178. rm -f conftest.er1
  20179. cat conftest.err >&5
  20180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20181. (exit $ac_status); } && {
  20182. test -z "$ac_c_werror_flag" ||
  20183. test ! -s conftest.err
  20184. } && test -s conftest.$ac_objext; then
  20185. break
  20186. else
  20187. echo "$as_me: failed program was:" >&5
  20188. sed 's/^/| /' conftest.$ac_ext >&5
  20189. fi
  20190. rm -f core conftest.err conftest.$ac_objext
  20191. CC="$CC -n32"
  20192. rm -f conftest.$ac_objext
  20193. if { (ac_try="$ac_compile"
  20194. case "(($ac_try" in
  20195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20196. *) ac_try_echo=$ac_try;;
  20197. esac
  20198. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20199. (eval "$ac_compile") 2>conftest.er1
  20200. ac_status=$?
  20201. grep -v '^ *+' conftest.er1 >conftest.err
  20202. rm -f conftest.er1
  20203. cat conftest.err >&5
  20204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20205. (exit $ac_status); } && {
  20206. test -z "$ac_c_werror_flag" ||
  20207. test ! -s conftest.err
  20208. } && test -s conftest.$ac_objext; then
  20209. ac_cv_sys_largefile_CC=' -n32'; break
  20210. else
  20211. echo "$as_me: failed program was:" >&5
  20212. sed 's/^/| /' conftest.$ac_ext >&5
  20213. fi
  20214. rm -f core conftest.err conftest.$ac_objext
  20215. break
  20216. done
  20217. CC=$ac_save_CC
  20218. rm -f conftest.$ac_ext
  20219. fi
  20220. fi
  20221. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20222. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  20223. if test "$ac_cv_sys_largefile_CC" != no; then
  20224. CC=$CC$ac_cv_sys_largefile_CC
  20225. fi
  20226. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20227. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  20228. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20229. echo $ECHO_N "(cached) $ECHO_C" >&6
  20230. else
  20231. while :; do
  20232. cat >conftest.$ac_ext <<_ACEOF
  20233. /* confdefs.h. */
  20234. _ACEOF
  20235. cat confdefs.h >>conftest.$ac_ext
  20236. cat >>conftest.$ac_ext <<_ACEOF
  20237. /* end confdefs.h. */
  20238. #include <sys/types.h>
  20239. /* Check that off_t can represent 2**63 - 1 correctly.
  20240. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20241. since some C++ compilers masquerading as C compilers
  20242. incorrectly reject 9223372036854775807. */
  20243. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20244. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20245. && LARGE_OFF_T % 2147483647 == 1)
  20246. ? 1 : -1];
  20247. int
  20248. main ()
  20249. {
  20250. ;
  20251. return 0;
  20252. }
  20253. _ACEOF
  20254. rm -f conftest.$ac_objext
  20255. if { (ac_try="$ac_compile"
  20256. case "(($ac_try" in
  20257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20258. *) ac_try_echo=$ac_try;;
  20259. esac
  20260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20261. (eval "$ac_compile") 2>conftest.er1
  20262. ac_status=$?
  20263. grep -v '^ *+' conftest.er1 >conftest.err
  20264. rm -f conftest.er1
  20265. cat conftest.err >&5
  20266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20267. (exit $ac_status); } && {
  20268. test -z "$ac_c_werror_flag" ||
  20269. test ! -s conftest.err
  20270. } && test -s conftest.$ac_objext; then
  20271. ac_cv_sys_file_offset_bits=no; break
  20272. else
  20273. echo "$as_me: failed program was:" >&5
  20274. sed 's/^/| /' conftest.$ac_ext >&5
  20275. fi
  20276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20277. cat >conftest.$ac_ext <<_ACEOF
  20278. /* confdefs.h. */
  20279. _ACEOF
  20280. cat confdefs.h >>conftest.$ac_ext
  20281. cat >>conftest.$ac_ext <<_ACEOF
  20282. /* end confdefs.h. */
  20283. #define _FILE_OFFSET_BITS 64
  20284. #include <sys/types.h>
  20285. /* Check that off_t can represent 2**63 - 1 correctly.
  20286. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20287. since some C++ compilers masquerading as C compilers
  20288. incorrectly reject 9223372036854775807. */
  20289. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20290. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20291. && LARGE_OFF_T % 2147483647 == 1)
  20292. ? 1 : -1];
  20293. int
  20294. main ()
  20295. {
  20296. ;
  20297. return 0;
  20298. }
  20299. _ACEOF
  20300. rm -f conftest.$ac_objext
  20301. if { (ac_try="$ac_compile"
  20302. case "(($ac_try" in
  20303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20304. *) ac_try_echo=$ac_try;;
  20305. esac
  20306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20307. (eval "$ac_compile") 2>conftest.er1
  20308. ac_status=$?
  20309. grep -v '^ *+' conftest.er1 >conftest.err
  20310. rm -f conftest.er1
  20311. cat conftest.err >&5
  20312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20313. (exit $ac_status); } && {
  20314. test -z "$ac_c_werror_flag" ||
  20315. test ! -s conftest.err
  20316. } && test -s conftest.$ac_objext; then
  20317. ac_cv_sys_file_offset_bits=64; break
  20318. else
  20319. echo "$as_me: failed program was:" >&5
  20320. sed 's/^/| /' conftest.$ac_ext >&5
  20321. fi
  20322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20323. ac_cv_sys_file_offset_bits=unknown
  20324. break
  20325. done
  20326. fi
  20327. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20328. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  20329. case $ac_cv_sys_file_offset_bits in #(
  20330. no | unknown) ;;
  20331. *)
  20332. cat >>confdefs.h <<_ACEOF
  20333. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20334. _ACEOF
  20335. ;;
  20336. esac
  20337. rm -f conftest*
  20338. if test $ac_cv_sys_file_offset_bits = unknown; then
  20339. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20340. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  20341. if test "${ac_cv_sys_large_files+set}" = set; then
  20342. echo $ECHO_N "(cached) $ECHO_C" >&6
  20343. else
  20344. while :; do
  20345. cat >conftest.$ac_ext <<_ACEOF
  20346. /* confdefs.h. */
  20347. _ACEOF
  20348. cat confdefs.h >>conftest.$ac_ext
  20349. cat >>conftest.$ac_ext <<_ACEOF
  20350. /* end confdefs.h. */
  20351. #include <sys/types.h>
  20352. /* Check that off_t can represent 2**63 - 1 correctly.
  20353. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20354. since some C++ compilers masquerading as C compilers
  20355. incorrectly reject 9223372036854775807. */
  20356. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20357. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20358. && LARGE_OFF_T % 2147483647 == 1)
  20359. ? 1 : -1];
  20360. int
  20361. main ()
  20362. {
  20363. ;
  20364. return 0;
  20365. }
  20366. _ACEOF
  20367. rm -f conftest.$ac_objext
  20368. if { (ac_try="$ac_compile"
  20369. case "(($ac_try" in
  20370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20371. *) ac_try_echo=$ac_try;;
  20372. esac
  20373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20374. (eval "$ac_compile") 2>conftest.er1
  20375. ac_status=$?
  20376. grep -v '^ *+' conftest.er1 >conftest.err
  20377. rm -f conftest.er1
  20378. cat conftest.err >&5
  20379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20380. (exit $ac_status); } && {
  20381. test -z "$ac_c_werror_flag" ||
  20382. test ! -s conftest.err
  20383. } && test -s conftest.$ac_objext; then
  20384. ac_cv_sys_large_files=no; break
  20385. else
  20386. echo "$as_me: failed program was:" >&5
  20387. sed 's/^/| /' conftest.$ac_ext >&5
  20388. fi
  20389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20390. cat >conftest.$ac_ext <<_ACEOF
  20391. /* confdefs.h. */
  20392. _ACEOF
  20393. cat confdefs.h >>conftest.$ac_ext
  20394. cat >>conftest.$ac_ext <<_ACEOF
  20395. /* end confdefs.h. */
  20396. #define _LARGE_FILES 1
  20397. #include <sys/types.h>
  20398. /* Check that off_t can represent 2**63 - 1 correctly.
  20399. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20400. since some C++ compilers masquerading as C compilers
  20401. incorrectly reject 9223372036854775807. */
  20402. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20403. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20404. && LARGE_OFF_T % 2147483647 == 1)
  20405. ? 1 : -1];
  20406. int
  20407. main ()
  20408. {
  20409. ;
  20410. return 0;
  20411. }
  20412. _ACEOF
  20413. rm -f conftest.$ac_objext
  20414. if { (ac_try="$ac_compile"
  20415. case "(($ac_try" in
  20416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20417. *) ac_try_echo=$ac_try;;
  20418. esac
  20419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20420. (eval "$ac_compile") 2>conftest.er1
  20421. ac_status=$?
  20422. grep -v '^ *+' conftest.er1 >conftest.err
  20423. rm -f conftest.er1
  20424. cat conftest.err >&5
  20425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20426. (exit $ac_status); } && {
  20427. test -z "$ac_c_werror_flag" ||
  20428. test ! -s conftest.err
  20429. } && test -s conftest.$ac_objext; then
  20430. ac_cv_sys_large_files=1; break
  20431. else
  20432. echo "$as_me: failed program was:" >&5
  20433. sed 's/^/| /' conftest.$ac_ext >&5
  20434. fi
  20435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20436. ac_cv_sys_large_files=unknown
  20437. break
  20438. done
  20439. fi
  20440. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20441. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20442. case $ac_cv_sys_large_files in #(
  20443. no | unknown) ;;
  20444. *)
  20445. cat >>confdefs.h <<_ACEOF
  20446. #define _LARGE_FILES $ac_cv_sys_large_files
  20447. _ACEOF
  20448. ;;
  20449. esac
  20450. rm -f conftest*
  20451. fi
  20452. fi
  20453. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20454. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  20455. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20456. echo $ECHO_N "(cached) $ECHO_C" >&6
  20457. else
  20458. while :; do
  20459. cat >conftest.$ac_ext <<_ACEOF
  20460. /* confdefs.h. */
  20461. _ACEOF
  20462. cat confdefs.h >>conftest.$ac_ext
  20463. cat >>conftest.$ac_ext <<_ACEOF
  20464. /* end confdefs.h. */
  20465. #include <stdio.h>
  20466. int
  20467. main ()
  20468. {
  20469. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20470. ;
  20471. return 0;
  20472. }
  20473. _ACEOF
  20474. rm -f conftest.$ac_objext conftest$ac_exeext
  20475. if { (ac_try="$ac_link"
  20476. case "(($ac_try" in
  20477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20478. *) ac_try_echo=$ac_try;;
  20479. esac
  20480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20481. (eval "$ac_link") 2>conftest.er1
  20482. ac_status=$?
  20483. grep -v '^ *+' conftest.er1 >conftest.err
  20484. rm -f conftest.er1
  20485. cat conftest.err >&5
  20486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20487. (exit $ac_status); } && {
  20488. test -z "$ac_c_werror_flag" ||
  20489. test ! -s conftest.err
  20490. } && test -s conftest$ac_exeext &&
  20491. $as_test_x conftest$ac_exeext; then
  20492. ac_cv_sys_largefile_source=no; break
  20493. else
  20494. echo "$as_me: failed program was:" >&5
  20495. sed 's/^/| /' conftest.$ac_ext >&5
  20496. fi
  20497. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20498. conftest$ac_exeext conftest.$ac_ext
  20499. cat >conftest.$ac_ext <<_ACEOF
  20500. /* confdefs.h. */
  20501. _ACEOF
  20502. cat confdefs.h >>conftest.$ac_ext
  20503. cat >>conftest.$ac_ext <<_ACEOF
  20504. /* end confdefs.h. */
  20505. #define _LARGEFILE_SOURCE 1
  20506. #include <stdio.h>
  20507. int
  20508. main ()
  20509. {
  20510. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20511. ;
  20512. return 0;
  20513. }
  20514. _ACEOF
  20515. rm -f conftest.$ac_objext conftest$ac_exeext
  20516. if { (ac_try="$ac_link"
  20517. case "(($ac_try" in
  20518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20519. *) ac_try_echo=$ac_try;;
  20520. esac
  20521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20522. (eval "$ac_link") 2>conftest.er1
  20523. ac_status=$?
  20524. grep -v '^ *+' conftest.er1 >conftest.err
  20525. rm -f conftest.er1
  20526. cat conftest.err >&5
  20527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20528. (exit $ac_status); } && {
  20529. test -z "$ac_c_werror_flag" ||
  20530. test ! -s conftest.err
  20531. } && test -s conftest$ac_exeext &&
  20532. $as_test_x conftest$ac_exeext; then
  20533. ac_cv_sys_largefile_source=1; break
  20534. else
  20535. echo "$as_me: failed program was:" >&5
  20536. sed 's/^/| /' conftest.$ac_ext >&5
  20537. fi
  20538. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20539. conftest$ac_exeext conftest.$ac_ext
  20540. ac_cv_sys_largefile_source=unknown
  20541. break
  20542. done
  20543. fi
  20544. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20545. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20546. case $ac_cv_sys_largefile_source in #(
  20547. no | unknown) ;;
  20548. *)
  20549. cat >>confdefs.h <<_ACEOF
  20550. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20551. _ACEOF
  20552. ;;
  20553. esac
  20554. rm -f conftest*
  20555. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20556. # in glibc 2.1.3, but that breaks too many other things.
  20557. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20558. if test $ac_cv_sys_largefile_source != unknown; then
  20559. cat >>confdefs.h <<\_ACEOF
  20560. #define HAVE_FSEEKO 1
  20561. _ACEOF
  20562. fi
  20563. { echo "$as_me:$LINENO: checking for u_int8_t" >&5
  20564. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
  20565. if test "${ac_cv_type_u_int8_t+set}" = set; then
  20566. echo $ECHO_N "(cached) $ECHO_C" >&6
  20567. else
  20568. cat >conftest.$ac_ext <<_ACEOF
  20569. /* confdefs.h. */
  20570. _ACEOF
  20571. cat confdefs.h >>conftest.$ac_ext
  20572. cat >>conftest.$ac_ext <<_ACEOF
  20573. /* end confdefs.h. */
  20574. $ac_includes_default
  20575. typedef u_int8_t ac__type_new_;
  20576. int
  20577. main ()
  20578. {
  20579. if ((ac__type_new_ *) 0)
  20580. return 0;
  20581. if (sizeof (ac__type_new_))
  20582. return 0;
  20583. ;
  20584. return 0;
  20585. }
  20586. _ACEOF
  20587. rm -f conftest.$ac_objext
  20588. if { (ac_try="$ac_compile"
  20589. case "(($ac_try" in
  20590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20591. *) ac_try_echo=$ac_try;;
  20592. esac
  20593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20594. (eval "$ac_compile") 2>conftest.er1
  20595. ac_status=$?
  20596. grep -v '^ *+' conftest.er1 >conftest.err
  20597. rm -f conftest.er1
  20598. cat conftest.err >&5
  20599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20600. (exit $ac_status); } && {
  20601. test -z "$ac_c_werror_flag" ||
  20602. test ! -s conftest.err
  20603. } && test -s conftest.$ac_objext; then
  20604. ac_cv_type_u_int8_t=yes
  20605. else
  20606. echo "$as_me: failed program was:" >&5
  20607. sed 's/^/| /' conftest.$ac_ext >&5
  20608. ac_cv_type_u_int8_t=no
  20609. fi
  20610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20611. fi
  20612. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  20613. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
  20614. if test $ac_cv_type_u_int8_t = yes; then
  20615. :
  20616. else
  20617. cat >>confdefs.h <<_ACEOF
  20618. #define u_int8_t uint8_t
  20619. _ACEOF
  20620. fi
  20621. { echo "$as_me:$LINENO: checking for u_int16_t" >&5
  20622. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
  20623. if test "${ac_cv_type_u_int16_t+set}" = set; then
  20624. echo $ECHO_N "(cached) $ECHO_C" >&6
  20625. else
  20626. cat >conftest.$ac_ext <<_ACEOF
  20627. /* confdefs.h. */
  20628. _ACEOF
  20629. cat confdefs.h >>conftest.$ac_ext
  20630. cat >>conftest.$ac_ext <<_ACEOF
  20631. /* end confdefs.h. */
  20632. $ac_includes_default
  20633. typedef u_int16_t ac__type_new_;
  20634. int
  20635. main ()
  20636. {
  20637. if ((ac__type_new_ *) 0)
  20638. return 0;
  20639. if (sizeof (ac__type_new_))
  20640. return 0;
  20641. ;
  20642. return 0;
  20643. }
  20644. _ACEOF
  20645. rm -f conftest.$ac_objext
  20646. if { (ac_try="$ac_compile"
  20647. case "(($ac_try" in
  20648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20649. *) ac_try_echo=$ac_try;;
  20650. esac
  20651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20652. (eval "$ac_compile") 2>conftest.er1
  20653. ac_status=$?
  20654. grep -v '^ *+' conftest.er1 >conftest.err
  20655. rm -f conftest.er1
  20656. cat conftest.err >&5
  20657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20658. (exit $ac_status); } && {
  20659. test -z "$ac_c_werror_flag" ||
  20660. test ! -s conftest.err
  20661. } && test -s conftest.$ac_objext; then
  20662. ac_cv_type_u_int16_t=yes
  20663. else
  20664. echo "$as_me: failed program was:" >&5
  20665. sed 's/^/| /' conftest.$ac_ext >&5
  20666. ac_cv_type_u_int16_t=no
  20667. fi
  20668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20669. fi
  20670. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  20671. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
  20672. if test $ac_cv_type_u_int16_t = yes; then
  20673. :
  20674. else
  20675. cat >>confdefs.h <<_ACEOF
  20676. #define u_int16_t uint16_t
  20677. _ACEOF
  20678. fi
  20679. { echo "$as_me:$LINENO: checking for u_int32_t" >&5
  20680. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
  20681. if test "${ac_cv_type_u_int32_t+set}" = set; then
  20682. echo $ECHO_N "(cached) $ECHO_C" >&6
  20683. else
  20684. cat >conftest.$ac_ext <<_ACEOF
  20685. /* confdefs.h. */
  20686. _ACEOF
  20687. cat confdefs.h >>conftest.$ac_ext
  20688. cat >>conftest.$ac_ext <<_ACEOF
  20689. /* end confdefs.h. */
  20690. $ac_includes_default
  20691. typedef u_int32_t ac__type_new_;
  20692. int
  20693. main ()
  20694. {
  20695. if ((ac__type_new_ *) 0)
  20696. return 0;
  20697. if (sizeof (ac__type_new_))
  20698. return 0;
  20699. ;
  20700. return 0;
  20701. }
  20702. _ACEOF
  20703. rm -f conftest.$ac_objext
  20704. if { (ac_try="$ac_compile"
  20705. case "(($ac_try" in
  20706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20707. *) ac_try_echo=$ac_try;;
  20708. esac
  20709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20710. (eval "$ac_compile") 2>conftest.er1
  20711. ac_status=$?
  20712. grep -v '^ *+' conftest.er1 >conftest.err
  20713. rm -f conftest.er1
  20714. cat conftest.err >&5
  20715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20716. (exit $ac_status); } && {
  20717. test -z "$ac_c_werror_flag" ||
  20718. test ! -s conftest.err
  20719. } && test -s conftest.$ac_objext; then
  20720. ac_cv_type_u_int32_t=yes
  20721. else
  20722. echo "$as_me: failed program was:" >&5
  20723. sed 's/^/| /' conftest.$ac_ext >&5
  20724. ac_cv_type_u_int32_t=no
  20725. fi
  20726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20727. fi
  20728. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  20729. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
  20730. if test $ac_cv_type_u_int32_t = yes; then
  20731. :
  20732. else
  20733. cat >>confdefs.h <<_ACEOF
  20734. #define u_int32_t uint32_t
  20735. _ACEOF
  20736. fi
  20737. { echo "$as_me:$LINENO: checking for u_int64_t" >&5
  20738. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
  20739. if test "${ac_cv_type_u_int64_t+set}" = set; then
  20740. echo $ECHO_N "(cached) $ECHO_C" >&6
  20741. else
  20742. cat >conftest.$ac_ext <<_ACEOF
  20743. /* confdefs.h. */
  20744. _ACEOF
  20745. cat confdefs.h >>conftest.$ac_ext
  20746. cat >>conftest.$ac_ext <<_ACEOF
  20747. /* end confdefs.h. */
  20748. $ac_includes_default
  20749. typedef u_int64_t ac__type_new_;
  20750. int
  20751. main ()
  20752. {
  20753. if ((ac__type_new_ *) 0)
  20754. return 0;
  20755. if (sizeof (ac__type_new_))
  20756. return 0;
  20757. ;
  20758. return 0;
  20759. }
  20760. _ACEOF
  20761. rm -f conftest.$ac_objext
  20762. if { (ac_try="$ac_compile"
  20763. case "(($ac_try" in
  20764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20765. *) ac_try_echo=$ac_try;;
  20766. esac
  20767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20768. (eval "$ac_compile") 2>conftest.er1
  20769. ac_status=$?
  20770. grep -v '^ *+' conftest.er1 >conftest.err
  20771. rm -f conftest.er1
  20772. cat conftest.err >&5
  20773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20774. (exit $ac_status); } && {
  20775. test -z "$ac_c_werror_flag" ||
  20776. test ! -s conftest.err
  20777. } && test -s conftest.$ac_objext; then
  20778. ac_cv_type_u_int64_t=yes
  20779. else
  20780. echo "$as_me: failed program was:" >&5
  20781. sed 's/^/| /' conftest.$ac_ext >&5
  20782. ac_cv_type_u_int64_t=no
  20783. fi
  20784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20785. fi
  20786. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  20787. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
  20788. if test $ac_cv_type_u_int64_t = yes; then
  20789. :
  20790. else
  20791. cat >>confdefs.h <<_ACEOF
  20792. #define u_int64_t uint64_t
  20793. _ACEOF
  20794. fi
  20795. { echo "$as_me:$LINENO: checking for $CC -Wextra support" >&5
  20796. echo $ECHO_N "checking for $CC -Wextra support... $ECHO_C" >&6; }
  20797. OLD_CFLAGS=$CFLAGS
  20798. CFLAGS="$CFLAGS -Wextra"
  20799. wextra=""
  20800. cat >conftest.$ac_ext <<_ACEOF
  20801. #include <stdlib.h>
  20802. int main(int argc, char *argv) { return(0); }
  20803. _ACEOF
  20804. rm -f conftest.$ac_objext
  20805. if { (ac_try="$ac_compile"
  20806. case "(($ac_try" in
  20807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20808. *) ac_try_echo=$ac_try;;
  20809. esac
  20810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20811. (eval "$ac_compile") 2>conftest.er1
  20812. ac_status=$?
  20813. grep -v '^ *+' conftest.er1 >conftest.err
  20814. rm -f conftest.er1
  20815. cat conftest.err >&5
  20816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20817. (exit $ac_status); } && {
  20818. test -z "$ac_c_werror_flag" ||
  20819. test ! -s conftest.err
  20820. } && test -s conftest.$ac_objext; then
  20821. { echo "$as_me:$LINENO: result: yes" >&5
  20822. echo "${ECHO_T}yes" >&6; }
  20823. wextra="-Wextra"
  20824. else
  20825. echo "$as_me: failed program was:" >&5
  20826. sed 's/^/| /' conftest.$ac_ext >&5
  20827. { echo "$as_me:$LINENO: result: no" >&5
  20828. echo "${ECHO_T}no" >&6; }
  20829. fi
  20830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20831. CFLAGS="$OLD_CFLAGS $wextra"
  20832. { echo "$as_me:$LINENO: checking for $CC -Wno-variadic-macros support" >&5
  20833. echo $ECHO_N "checking for $CC -Wno-variadic-macros support... $ECHO_C" >&6; }
  20834. OLD_CFLAGS=$CFLAGS
  20835. CFLAGS="$CFLAGS -Wno-variadic-macros"
  20836. wno_variadic_macros=""
  20837. cat >conftest.$ac_ext <<_ACEOF
  20838. #include <stdlib.h>
  20839. int main(int argc, char *argv) { return(0); }
  20840. _ACEOF
  20841. rm -f conftest.$ac_objext
  20842. if { (ac_try="$ac_compile"
  20843. case "(($ac_try" in
  20844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20845. *) ac_try_echo=$ac_try;;
  20846. esac
  20847. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20848. (eval "$ac_compile") 2>conftest.er1
  20849. ac_status=$?
  20850. grep -v '^ *+' conftest.er1 >conftest.err
  20851. rm -f conftest.er1
  20852. cat conftest.err >&5
  20853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20854. (exit $ac_status); } && {
  20855. test -z "$ac_c_werror_flag" ||
  20856. test ! -s conftest.err
  20857. } && test -s conftest.$ac_objext; then
  20858. { echo "$as_me:$LINENO: result: yes" >&5
  20859. echo "${ECHO_T}yes" >&6; }
  20860. wno_variadic_macros="-Wno-variadic-macros"
  20861. else
  20862. echo "$as_me: failed program was:" >&5
  20863. sed 's/^/| /' conftest.$ac_ext >&5
  20864. { echo "$as_me:$LINENO: result: no" >&5
  20865. echo "${ECHO_T}no" >&6; }
  20866. fi
  20867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20868. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  20869. { echo "$as_me:$LINENO: checking for $CC -Wfatal-errors support" >&5
  20870. echo $ECHO_N "checking for $CC -Wfatal-errors support... $ECHO_C" >&6; }
  20871. OLD_CFLAGS=$CFLAGS
  20872. CFLAGS="$CFLAGS -Wfatal-errors"
  20873. wfatal_errors=""
  20874. cat >conftest.$ac_ext <<_ACEOF
  20875. #include <stdlib.h>
  20876. int main(int argc, char *argv) { return(0); }
  20877. _ACEOF
  20878. rm -f conftest.$ac_objext
  20879. if { (ac_try="$ac_compile"
  20880. case "(($ac_try" in
  20881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20882. *) ac_try_echo=$ac_try;;
  20883. esac
  20884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20885. (eval "$ac_compile") 2>conftest.er1
  20886. ac_status=$?
  20887. grep -v '^ *+' conftest.er1 >conftest.err
  20888. rm -f conftest.er1
  20889. cat conftest.err >&5
  20890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20891. (exit $ac_status); } && {
  20892. test -z "$ac_c_werror_flag" ||
  20893. test ! -s conftest.err
  20894. } && test -s conftest.$ac_objext; then
  20895. { echo "$as_me:$LINENO: result: yes" >&5
  20896. echo "${ECHO_T}yes" >&6; }
  20897. wfatal_errors="-Wfatal-errors"
  20898. else
  20899. echo "$as_me: failed program was:" >&5
  20900. sed 's/^/| /' conftest.$ac_ext >&5
  20901. { echo "$as_me:$LINENO: result: no" >&5
  20902. echo "${ECHO_T}no" >&6; }
  20903. fi
  20904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20905. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  20906. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h signal.h string.h strings.h sys/types.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h sys/param.h
  20907. do
  20908. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20909. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20910. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20911. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20912. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20913. echo $ECHO_N "(cached) $ECHO_C" >&6
  20914. fi
  20915. ac_res=`eval echo '${'$as_ac_Header'}'`
  20916. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20917. echo "${ECHO_T}$ac_res" >&6; }
  20918. else
  20919. # Is the header compilable?
  20920. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20921. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20922. cat >conftest.$ac_ext <<_ACEOF
  20923. /* confdefs.h. */
  20924. _ACEOF
  20925. cat confdefs.h >>conftest.$ac_ext
  20926. cat >>conftest.$ac_ext <<_ACEOF
  20927. /* end confdefs.h. */
  20928. $ac_includes_default
  20929. #include <$ac_header>
  20930. _ACEOF
  20931. rm -f conftest.$ac_objext
  20932. if { (ac_try="$ac_compile"
  20933. case "(($ac_try" in
  20934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20935. *) ac_try_echo=$ac_try;;
  20936. esac
  20937. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20938. (eval "$ac_compile") 2>conftest.er1
  20939. ac_status=$?
  20940. grep -v '^ *+' conftest.er1 >conftest.err
  20941. rm -f conftest.er1
  20942. cat conftest.err >&5
  20943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20944. (exit $ac_status); } && {
  20945. test -z "$ac_c_werror_flag" ||
  20946. test ! -s conftest.err
  20947. } && test -s conftest.$ac_objext; then
  20948. ac_header_compiler=yes
  20949. else
  20950. echo "$as_me: failed program was:" >&5
  20951. sed 's/^/| /' conftest.$ac_ext >&5
  20952. ac_header_compiler=no
  20953. fi
  20954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20955. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20956. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20957. # Is the header present?
  20958. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20959. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20960. cat >conftest.$ac_ext <<_ACEOF
  20961. /* confdefs.h. */
  20962. _ACEOF
  20963. cat confdefs.h >>conftest.$ac_ext
  20964. cat >>conftest.$ac_ext <<_ACEOF
  20965. /* end confdefs.h. */
  20966. #include <$ac_header>
  20967. _ACEOF
  20968. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20969. case "(($ac_try" in
  20970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20971. *) ac_try_echo=$ac_try;;
  20972. esac
  20973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20974. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20975. ac_status=$?
  20976. grep -v '^ *+' conftest.er1 >conftest.err
  20977. rm -f conftest.er1
  20978. cat conftest.err >&5
  20979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20980. (exit $ac_status); } >/dev/null && {
  20981. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20982. test ! -s conftest.err
  20983. }; then
  20984. ac_header_preproc=yes
  20985. else
  20986. echo "$as_me: failed program was:" >&5
  20987. sed 's/^/| /' conftest.$ac_ext >&5
  20988. ac_header_preproc=no
  20989. fi
  20990. rm -f conftest.err conftest.$ac_ext
  20991. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20992. echo "${ECHO_T}$ac_header_preproc" >&6; }
  20993. # So? What about this header?
  20994. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20995. yes:no: )
  20996. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20997. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20998. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20999. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21000. ac_header_preproc=yes
  21001. ;;
  21002. no:yes:* )
  21003. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21004. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21005. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21006. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21007. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21008. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21009. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21010. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21011. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21012. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21013. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21014. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21015. ;;
  21016. esac
  21017. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21018. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21019. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21020. echo $ECHO_N "(cached) $ECHO_C" >&6
  21021. else
  21022. eval "$as_ac_Header=\$ac_header_preproc"
  21023. fi
  21024. ac_res=`eval echo '${'$as_ac_Header'}'`
  21025. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21026. echo "${ECHO_T}$ac_res" >&6; }
  21027. fi
  21028. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21029. cat >>confdefs.h <<_ACEOF
  21030. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21031. _ACEOF
  21032. fi
  21033. done
  21034. for ac_header in sys/sysctl.h net/route.h
  21035. do
  21036. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21037. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21038. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21039. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21040. echo $ECHO_N "(cached) $ECHO_C" >&6
  21041. else
  21042. cat >conftest.$ac_ext <<_ACEOF
  21043. /* confdefs.h. */
  21044. _ACEOF
  21045. cat confdefs.h >>conftest.$ac_ext
  21046. cat >>conftest.$ac_ext <<_ACEOF
  21047. /* end confdefs.h. */
  21048. #if HAVE_SYS_PARAM_H
  21049. #include <sys/param.h>
  21050. #endif
  21051. #if HAVE_SYS_TYPES_H
  21052. #include <sys/types.h>
  21053. #endif
  21054. #if HAVE_SYS_SOCKET_H
  21055. #include <sys/socket.h>
  21056. #endif
  21057. #include <$ac_header>
  21058. _ACEOF
  21059. rm -f conftest.$ac_objext
  21060. if { (ac_try="$ac_compile"
  21061. case "(($ac_try" in
  21062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21063. *) ac_try_echo=$ac_try;;
  21064. esac
  21065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21066. (eval "$ac_compile") 2>conftest.er1
  21067. ac_status=$?
  21068. grep -v '^ *+' conftest.er1 >conftest.err
  21069. rm -f conftest.er1
  21070. cat conftest.err >&5
  21071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21072. (exit $ac_status); } && {
  21073. test -z "$ac_c_werror_flag" ||
  21074. test ! -s conftest.err
  21075. } && test -s conftest.$ac_objext; then
  21076. eval "$as_ac_Header=yes"
  21077. else
  21078. echo "$as_me: failed program was:" >&5
  21079. sed 's/^/| /' conftest.$ac_ext >&5
  21080. eval "$as_ac_Header=no"
  21081. fi
  21082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21083. fi
  21084. ac_res=`eval echo '${'$as_ac_Header'}'`
  21085. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21086. echo "${ECHO_T}$ac_res" >&6; }
  21087. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21088. cat >>confdefs.h <<_ACEOF
  21089. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21090. _ACEOF
  21091. fi
  21092. done
  21093. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  21094. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  21095. if test "${ac_cv_lib_socket_socket+set}" = set; then
  21096. echo $ECHO_N "(cached) $ECHO_C" >&6
  21097. else
  21098. ac_check_lib_save_LIBS=$LIBS
  21099. LIBS="-lsocket $LIBS"
  21100. cat >conftest.$ac_ext <<_ACEOF
  21101. /* confdefs.h. */
  21102. _ACEOF
  21103. cat confdefs.h >>conftest.$ac_ext
  21104. cat >>conftest.$ac_ext <<_ACEOF
  21105. /* end confdefs.h. */
  21106. /* Override any GCC internal prototype to avoid an error.
  21107. Use char because int might match the return type of a GCC
  21108. builtin and then its argument prototype would still apply. */
  21109. #ifdef __cplusplus
  21110. extern "C"
  21111. #endif
  21112. char socket ();
  21113. int
  21114. main ()
  21115. {
  21116. return socket ();
  21117. ;
  21118. return 0;
  21119. }
  21120. _ACEOF
  21121. rm -f conftest.$ac_objext conftest$ac_exeext
  21122. if { (ac_try="$ac_link"
  21123. case "(($ac_try" in
  21124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21125. *) ac_try_echo=$ac_try;;
  21126. esac
  21127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21128. (eval "$ac_link") 2>conftest.er1
  21129. ac_status=$?
  21130. grep -v '^ *+' conftest.er1 >conftest.err
  21131. rm -f conftest.er1
  21132. cat conftest.err >&5
  21133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21134. (exit $ac_status); } && {
  21135. test -z "$ac_c_werror_flag" ||
  21136. test ! -s conftest.err
  21137. } && test -s conftest$ac_exeext &&
  21138. $as_test_x conftest$ac_exeext; then
  21139. ac_cv_lib_socket_socket=yes
  21140. else
  21141. echo "$as_me: failed program was:" >&5
  21142. sed 's/^/| /' conftest.$ac_ext >&5
  21143. ac_cv_lib_socket_socket=no
  21144. fi
  21145. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21146. conftest$ac_exeext conftest.$ac_ext
  21147. LIBS=$ac_check_lib_save_LIBS
  21148. fi
  21149. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  21150. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  21151. if test $ac_cv_lib_socket_socket = yes; then
  21152. cat >>confdefs.h <<_ACEOF
  21153. #define HAVE_LIBSOCKET 1
  21154. _ACEOF
  21155. LIBS="-lsocket $LIBS"
  21156. fi
  21157. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  21158. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  21159. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  21160. echo $ECHO_N "(cached) $ECHO_C" >&6
  21161. else
  21162. ac_check_lib_save_LIBS=$LIBS
  21163. LIBS="-lnsl $LIBS"
  21164. cat >conftest.$ac_ext <<_ACEOF
  21165. /* confdefs.h. */
  21166. _ACEOF
  21167. cat confdefs.h >>conftest.$ac_ext
  21168. cat >>conftest.$ac_ext <<_ACEOF
  21169. /* end confdefs.h. */
  21170. /* Override any GCC internal prototype to avoid an error.
  21171. Use char because int might match the return type of a GCC
  21172. builtin and then its argument prototype would still apply. */
  21173. #ifdef __cplusplus
  21174. extern "C"
  21175. #endif
  21176. char gethostbyname ();
  21177. int
  21178. main ()
  21179. {
  21180. return gethostbyname ();
  21181. ;
  21182. return 0;
  21183. }
  21184. _ACEOF
  21185. rm -f conftest.$ac_objext conftest$ac_exeext
  21186. if { (ac_try="$ac_link"
  21187. case "(($ac_try" in
  21188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21189. *) ac_try_echo=$ac_try;;
  21190. esac
  21191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21192. (eval "$ac_link") 2>conftest.er1
  21193. ac_status=$?
  21194. grep -v '^ *+' conftest.er1 >conftest.err
  21195. rm -f conftest.er1
  21196. cat conftest.err >&5
  21197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21198. (exit $ac_status); } && {
  21199. test -z "$ac_c_werror_flag" ||
  21200. test ! -s conftest.err
  21201. } && test -s conftest$ac_exeext &&
  21202. $as_test_x conftest$ac_exeext; then
  21203. ac_cv_lib_nsl_gethostbyname=yes
  21204. else
  21205. echo "$as_me: failed program was:" >&5
  21206. sed 's/^/| /' conftest.$ac_ext >&5
  21207. ac_cv_lib_nsl_gethostbyname=no
  21208. fi
  21209. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21210. conftest$ac_exeext conftest.$ac_ext
  21211. LIBS=$ac_check_lib_save_LIBS
  21212. fi
  21213. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21214. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  21215. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  21216. cat >>confdefs.h <<_ACEOF
  21217. #define HAVE_LIBNSL 1
  21218. _ACEOF
  21219. LIBS="-lnsl $LIBS"
  21220. fi
  21221. { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  21222. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
  21223. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  21224. echo $ECHO_N "(cached) $ECHO_C" >&6
  21225. else
  21226. ac_check_lib_save_LIBS=$LIBS
  21227. LIBS="-lrt $LIBS"
  21228. cat >conftest.$ac_ext <<_ACEOF
  21229. /* confdefs.h. */
  21230. _ACEOF
  21231. cat confdefs.h >>conftest.$ac_ext
  21232. cat >>conftest.$ac_ext <<_ACEOF
  21233. /* end confdefs.h. */
  21234. /* Override any GCC internal prototype to avoid an error.
  21235. Use char because int might match the return type of a GCC
  21236. builtin and then its argument prototype would still apply. */
  21237. #ifdef __cplusplus
  21238. extern "C"
  21239. #endif
  21240. char nanosleep ();
  21241. int
  21242. main ()
  21243. {
  21244. return nanosleep ();
  21245. ;
  21246. return 0;
  21247. }
  21248. _ACEOF
  21249. rm -f conftest.$ac_objext conftest$ac_exeext
  21250. if { (ac_try="$ac_link"
  21251. case "(($ac_try" in
  21252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21253. *) ac_try_echo=$ac_try;;
  21254. esac
  21255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21256. (eval "$ac_link") 2>conftest.er1
  21257. ac_status=$?
  21258. grep -v '^ *+' conftest.er1 >conftest.err
  21259. rm -f conftest.er1
  21260. cat conftest.err >&5
  21261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21262. (exit $ac_status); } && {
  21263. test -z "$ac_c_werror_flag" ||
  21264. test ! -s conftest.err
  21265. } && test -s conftest$ac_exeext &&
  21266. $as_test_x conftest$ac_exeext; then
  21267. ac_cv_lib_rt_nanosleep=yes
  21268. else
  21269. echo "$as_me: failed program was:" >&5
  21270. sed 's/^/| /' conftest.$ac_ext >&5
  21271. ac_cv_lib_rt_nanosleep=no
  21272. fi
  21273. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21274. conftest$ac_exeext conftest.$ac_ext
  21275. LIBS=$ac_check_lib_save_LIBS
  21276. fi
  21277. { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  21278. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
  21279. if test $ac_cv_lib_rt_nanosleep = yes; then
  21280. cat >>confdefs.h <<_ACEOF
  21281. #define HAVE_LIBRT 1
  21282. _ACEOF
  21283. LIBS="-lrt $LIBS"
  21284. fi
  21285. { echo "$as_me:$LINENO: checking for resolv in -lresolv" >&5
  21286. echo $ECHO_N "checking for resolv in -lresolv... $ECHO_C" >&6; }
  21287. if test "${ac_cv_lib_resolv_resolv+set}" = set; then
  21288. echo $ECHO_N "(cached) $ECHO_C" >&6
  21289. else
  21290. ac_check_lib_save_LIBS=$LIBS
  21291. LIBS="-lresolv $LIBS"
  21292. cat >conftest.$ac_ext <<_ACEOF
  21293. /* confdefs.h. */
  21294. _ACEOF
  21295. cat confdefs.h >>conftest.$ac_ext
  21296. cat >>conftest.$ac_ext <<_ACEOF
  21297. /* end confdefs.h. */
  21298. /* Override any GCC internal prototype to avoid an error.
  21299. Use char because int might match the return type of a GCC
  21300. builtin and then its argument prototype would still apply. */
  21301. #ifdef __cplusplus
  21302. extern "C"
  21303. #endif
  21304. char resolv ();
  21305. int
  21306. main ()
  21307. {
  21308. return resolv ();
  21309. ;
  21310. return 0;
  21311. }
  21312. _ACEOF
  21313. rm -f conftest.$ac_objext conftest$ac_exeext
  21314. if { (ac_try="$ac_link"
  21315. case "(($ac_try" in
  21316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21317. *) ac_try_echo=$ac_try;;
  21318. esac
  21319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21320. (eval "$ac_link") 2>conftest.er1
  21321. ac_status=$?
  21322. grep -v '^ *+' conftest.er1 >conftest.err
  21323. rm -f conftest.er1
  21324. cat conftest.err >&5
  21325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21326. (exit $ac_status); } && {
  21327. test -z "$ac_c_werror_flag" ||
  21328. test ! -s conftest.err
  21329. } && test -s conftest$ac_exeext &&
  21330. $as_test_x conftest$ac_exeext; then
  21331. ac_cv_lib_resolv_resolv=yes
  21332. else
  21333. echo "$as_me: failed program was:" >&5
  21334. sed 's/^/| /' conftest.$ac_ext >&5
  21335. ac_cv_lib_resolv_resolv=no
  21336. fi
  21337. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21338. conftest$ac_exeext conftest.$ac_ext
  21339. LIBS=$ac_check_lib_save_LIBS
  21340. fi
  21341. { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_resolv" >&5
  21342. echo "${ECHO_T}$ac_cv_lib_resolv_resolv" >&6; }
  21343. if test $ac_cv_lib_resolv_resolv = yes; then
  21344. cat >>confdefs.h <<_ACEOF
  21345. #define HAVE_LIBRESOLV 1
  21346. _ACEOF
  21347. LIBS="-lresolv $LIBS"
  21348. fi
  21349. for ac_header in stdlib.h
  21350. do
  21351. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21352. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21353. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21354. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21355. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21356. echo $ECHO_N "(cached) $ECHO_C" >&6
  21357. fi
  21358. ac_res=`eval echo '${'$as_ac_Header'}'`
  21359. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21360. echo "${ECHO_T}$ac_res" >&6; }
  21361. else
  21362. # Is the header compilable?
  21363. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21364. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  21365. cat >conftest.$ac_ext <<_ACEOF
  21366. /* confdefs.h. */
  21367. _ACEOF
  21368. cat confdefs.h >>conftest.$ac_ext
  21369. cat >>conftest.$ac_ext <<_ACEOF
  21370. /* end confdefs.h. */
  21371. $ac_includes_default
  21372. #include <$ac_header>
  21373. _ACEOF
  21374. rm -f conftest.$ac_objext
  21375. if { (ac_try="$ac_compile"
  21376. case "(($ac_try" in
  21377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21378. *) ac_try_echo=$ac_try;;
  21379. esac
  21380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21381. (eval "$ac_compile") 2>conftest.er1
  21382. ac_status=$?
  21383. grep -v '^ *+' conftest.er1 >conftest.err
  21384. rm -f conftest.er1
  21385. cat conftest.err >&5
  21386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21387. (exit $ac_status); } && {
  21388. test -z "$ac_c_werror_flag" ||
  21389. test ! -s conftest.err
  21390. } && test -s conftest.$ac_objext; then
  21391. ac_header_compiler=yes
  21392. else
  21393. echo "$as_me: failed program was:" >&5
  21394. sed 's/^/| /' conftest.$ac_ext >&5
  21395. ac_header_compiler=no
  21396. fi
  21397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21398. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21399. echo "${ECHO_T}$ac_header_compiler" >&6; }
  21400. # Is the header present?
  21401. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21402. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  21403. cat >conftest.$ac_ext <<_ACEOF
  21404. /* confdefs.h. */
  21405. _ACEOF
  21406. cat confdefs.h >>conftest.$ac_ext
  21407. cat >>conftest.$ac_ext <<_ACEOF
  21408. /* end confdefs.h. */
  21409. #include <$ac_header>
  21410. _ACEOF
  21411. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21412. case "(($ac_try" in
  21413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21414. *) ac_try_echo=$ac_try;;
  21415. esac
  21416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21417. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21418. ac_status=$?
  21419. grep -v '^ *+' conftest.er1 >conftest.err
  21420. rm -f conftest.er1
  21421. cat conftest.err >&5
  21422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21423. (exit $ac_status); } >/dev/null && {
  21424. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21425. test ! -s conftest.err
  21426. }; then
  21427. ac_header_preproc=yes
  21428. else
  21429. echo "$as_me: failed program was:" >&5
  21430. sed 's/^/| /' conftest.$ac_ext >&5
  21431. ac_header_preproc=no
  21432. fi
  21433. rm -f conftest.err conftest.$ac_ext
  21434. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21435. echo "${ECHO_T}$ac_header_preproc" >&6; }
  21436. # So? What about this header?
  21437. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21438. yes:no: )
  21439. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21440. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21441. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21442. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21443. ac_header_preproc=yes
  21444. ;;
  21445. no:yes:* )
  21446. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21447. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21448. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21449. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21450. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21451. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21452. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21453. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21454. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21455. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21456. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21457. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21458. ;;
  21459. esac
  21460. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21461. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21462. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21463. echo $ECHO_N "(cached) $ECHO_C" >&6
  21464. else
  21465. eval "$as_ac_Header=\$ac_header_preproc"
  21466. fi
  21467. ac_res=`eval echo '${'$as_ac_Header'}'`
  21468. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21469. echo "${ECHO_T}$ac_res" >&6; }
  21470. fi
  21471. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21472. cat >>confdefs.h <<_ACEOF
  21473. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21474. _ACEOF
  21475. fi
  21476. done
  21477. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  21478. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  21479. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  21480. echo $ECHO_N "(cached) $ECHO_C" >&6
  21481. else
  21482. if test "$cross_compiling" = yes; then
  21483. ac_cv_func_malloc_0_nonnull=no
  21484. else
  21485. cat >conftest.$ac_ext <<_ACEOF
  21486. /* confdefs.h. */
  21487. _ACEOF
  21488. cat confdefs.h >>conftest.$ac_ext
  21489. cat >>conftest.$ac_ext <<_ACEOF
  21490. /* end confdefs.h. */
  21491. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  21492. # include <stdlib.h>
  21493. #else
  21494. char *malloc ();
  21495. #endif
  21496. int
  21497. main ()
  21498. {
  21499. return ! malloc (0);
  21500. ;
  21501. return 0;
  21502. }
  21503. _ACEOF
  21504. rm -f conftest$ac_exeext
  21505. if { (ac_try="$ac_link"
  21506. case "(($ac_try" in
  21507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21508. *) ac_try_echo=$ac_try;;
  21509. esac
  21510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21511. (eval "$ac_link") 2>&5
  21512. ac_status=$?
  21513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21514. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21515. { (case "(($ac_try" in
  21516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21517. *) ac_try_echo=$ac_try;;
  21518. esac
  21519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21520. (eval "$ac_try") 2>&5
  21521. ac_status=$?
  21522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21523. (exit $ac_status); }; }; then
  21524. ac_cv_func_malloc_0_nonnull=yes
  21525. else
  21526. echo "$as_me: program exited with status $ac_status" >&5
  21527. echo "$as_me: failed program was:" >&5
  21528. sed 's/^/| /' conftest.$ac_ext >&5
  21529. ( exit $ac_status )
  21530. ac_cv_func_malloc_0_nonnull=no
  21531. fi
  21532. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21533. fi
  21534. fi
  21535. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  21536. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  21537. if test $ac_cv_func_malloc_0_nonnull = yes; then
  21538. cat >>confdefs.h <<\_ACEOF
  21539. #define HAVE_MALLOC 1
  21540. _ACEOF
  21541. else
  21542. cat >>confdefs.h <<\_ACEOF
  21543. #define HAVE_MALLOC 0
  21544. _ACEOF
  21545. case " $LIBOBJS " in
  21546. *" malloc.$ac_objext "* ) ;;
  21547. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  21548. ;;
  21549. esac
  21550. cat >>confdefs.h <<\_ACEOF
  21551. #define malloc rpl_malloc
  21552. _ACEOF
  21553. fi
  21554. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  21555. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  21556. if test "${ac_cv_func_memcmp_working+set}" = set; then
  21557. echo $ECHO_N "(cached) $ECHO_C" >&6
  21558. else
  21559. if test "$cross_compiling" = yes; then
  21560. ac_cv_func_memcmp_working=no
  21561. else
  21562. cat >conftest.$ac_ext <<_ACEOF
  21563. /* confdefs.h. */
  21564. _ACEOF
  21565. cat confdefs.h >>conftest.$ac_ext
  21566. cat >>conftest.$ac_ext <<_ACEOF
  21567. /* end confdefs.h. */
  21568. $ac_includes_default
  21569. int
  21570. main ()
  21571. {
  21572. /* Some versions of memcmp are not 8-bit clean. */
  21573. char c0 = '\100', c1 = '\200', c2 = '\201';
  21574. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  21575. return 1;
  21576. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  21577. or more and with at least one buffer not starting on a 4-byte boundary.
  21578. William Lewis provided this test program. */
  21579. {
  21580. char foo[21];
  21581. char bar[21];
  21582. int i;
  21583. for (i = 0; i < 4; i++)
  21584. {
  21585. char *a = foo + i;
  21586. char *b = bar + i;
  21587. strcpy (a, "--------01111111");
  21588. strcpy (b, "--------10000000");
  21589. if (memcmp (a, b, 16) >= 0)
  21590. return 1;
  21591. }
  21592. return 0;
  21593. }
  21594. ;
  21595. return 0;
  21596. }
  21597. _ACEOF
  21598. rm -f conftest$ac_exeext
  21599. if { (ac_try="$ac_link"
  21600. case "(($ac_try" in
  21601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21602. *) ac_try_echo=$ac_try;;
  21603. esac
  21604. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21605. (eval "$ac_link") 2>&5
  21606. ac_status=$?
  21607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21608. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21609. { (case "(($ac_try" in
  21610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21611. *) ac_try_echo=$ac_try;;
  21612. esac
  21613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21614. (eval "$ac_try") 2>&5
  21615. ac_status=$?
  21616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21617. (exit $ac_status); }; }; then
  21618. ac_cv_func_memcmp_working=yes
  21619. else
  21620. echo "$as_me: program exited with status $ac_status" >&5
  21621. echo "$as_me: failed program was:" >&5
  21622. sed 's/^/| /' conftest.$ac_ext >&5
  21623. ( exit $ac_status )
  21624. ac_cv_func_memcmp_working=no
  21625. fi
  21626. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21627. fi
  21628. fi
  21629. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  21630. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  21631. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  21632. *" memcmp.$ac_objext "* ) ;;
  21633. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  21634. ;;
  21635. esac
  21636. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  21637. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  21638. if test "${ac_cv_type_signal+set}" = set; then
  21639. echo $ECHO_N "(cached) $ECHO_C" >&6
  21640. else
  21641. cat >conftest.$ac_ext <<_ACEOF
  21642. /* confdefs.h. */
  21643. _ACEOF
  21644. cat confdefs.h >>conftest.$ac_ext
  21645. cat >>conftest.$ac_ext <<_ACEOF
  21646. /* end confdefs.h. */
  21647. #include <sys/types.h>
  21648. #include <signal.h>
  21649. int
  21650. main ()
  21651. {
  21652. return *(signal (0, 0)) (0) == 1;
  21653. ;
  21654. return 0;
  21655. }
  21656. _ACEOF
  21657. rm -f conftest.$ac_objext
  21658. if { (ac_try="$ac_compile"
  21659. case "(($ac_try" in
  21660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21661. *) ac_try_echo=$ac_try;;
  21662. esac
  21663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21664. (eval "$ac_compile") 2>conftest.er1
  21665. ac_status=$?
  21666. grep -v '^ *+' conftest.er1 >conftest.err
  21667. rm -f conftest.er1
  21668. cat conftest.err >&5
  21669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21670. (exit $ac_status); } && {
  21671. test -z "$ac_c_werror_flag" ||
  21672. test ! -s conftest.err
  21673. } && test -s conftest.$ac_objext; then
  21674. ac_cv_type_signal=int
  21675. else
  21676. echo "$as_me: failed program was:" >&5
  21677. sed 's/^/| /' conftest.$ac_ext >&5
  21678. ac_cv_type_signal=void
  21679. fi
  21680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21681. fi
  21682. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  21683. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  21684. cat >>confdefs.h <<_ACEOF
  21685. #define RETSIGTYPE $ac_cv_type_signal
  21686. _ACEOF
  21687. for ac_func in vprintf
  21688. do
  21689. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21690. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21691. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21692. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21693. echo $ECHO_N "(cached) $ECHO_C" >&6
  21694. else
  21695. cat >conftest.$ac_ext <<_ACEOF
  21696. /* confdefs.h. */
  21697. _ACEOF
  21698. cat confdefs.h >>conftest.$ac_ext
  21699. cat >>conftest.$ac_ext <<_ACEOF
  21700. /* end confdefs.h. */
  21701. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21702. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21703. #define $ac_func innocuous_$ac_func
  21704. /* System header to define __stub macros and hopefully few prototypes,
  21705. which can conflict with char $ac_func (); below.
  21706. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21707. <limits.h> exists even on freestanding compilers. */
  21708. #ifdef __STDC__
  21709. # include <limits.h>
  21710. #else
  21711. # include <assert.h>
  21712. #endif
  21713. #undef $ac_func
  21714. /* Override any GCC internal prototype to avoid an error.
  21715. Use char because int might match the return type of a GCC
  21716. builtin and then its argument prototype would still apply. */
  21717. #ifdef __cplusplus
  21718. extern "C"
  21719. #endif
  21720. char $ac_func ();
  21721. /* The GNU C library defines this for functions which it implements
  21722. to always fail with ENOSYS. Some functions are actually named
  21723. something starting with __ and the normal name is an alias. */
  21724. #if defined __stub_$ac_func || defined __stub___$ac_func
  21725. choke me
  21726. #endif
  21727. int
  21728. main ()
  21729. {
  21730. return $ac_func ();
  21731. ;
  21732. return 0;
  21733. }
  21734. _ACEOF
  21735. rm -f conftest.$ac_objext conftest$ac_exeext
  21736. if { (ac_try="$ac_link"
  21737. case "(($ac_try" in
  21738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21739. *) ac_try_echo=$ac_try;;
  21740. esac
  21741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21742. (eval "$ac_link") 2>conftest.er1
  21743. ac_status=$?
  21744. grep -v '^ *+' conftest.er1 >conftest.err
  21745. rm -f conftest.er1
  21746. cat conftest.err >&5
  21747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21748. (exit $ac_status); } && {
  21749. test -z "$ac_c_werror_flag" ||
  21750. test ! -s conftest.err
  21751. } && test -s conftest$ac_exeext &&
  21752. $as_test_x conftest$ac_exeext; then
  21753. eval "$as_ac_var=yes"
  21754. else
  21755. echo "$as_me: failed program was:" >&5
  21756. sed 's/^/| /' conftest.$ac_ext >&5
  21757. eval "$as_ac_var=no"
  21758. fi
  21759. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21760. conftest$ac_exeext conftest.$ac_ext
  21761. fi
  21762. ac_res=`eval echo '${'$as_ac_var'}'`
  21763. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21764. echo "${ECHO_T}$ac_res" >&6; }
  21765. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21766. cat >>confdefs.h <<_ACEOF
  21767. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21768. _ACEOF
  21769. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  21770. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  21771. if test "${ac_cv_func__doprnt+set}" = set; then
  21772. echo $ECHO_N "(cached) $ECHO_C" >&6
  21773. else
  21774. cat >conftest.$ac_ext <<_ACEOF
  21775. /* confdefs.h. */
  21776. _ACEOF
  21777. cat confdefs.h >>conftest.$ac_ext
  21778. cat >>conftest.$ac_ext <<_ACEOF
  21779. /* end confdefs.h. */
  21780. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21781. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21782. #define _doprnt innocuous__doprnt
  21783. /* System header to define __stub macros and hopefully few prototypes,
  21784. which can conflict with char _doprnt (); below.
  21785. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21786. <limits.h> exists even on freestanding compilers. */
  21787. #ifdef __STDC__
  21788. # include <limits.h>
  21789. #else
  21790. # include <assert.h>
  21791. #endif
  21792. #undef _doprnt
  21793. /* Override any GCC internal prototype to avoid an error.
  21794. Use char because int might match the return type of a GCC
  21795. builtin and then its argument prototype would still apply. */
  21796. #ifdef __cplusplus
  21797. extern "C"
  21798. #endif
  21799. char _doprnt ();
  21800. /* The GNU C library defines this for functions which it implements
  21801. to always fail with ENOSYS. Some functions are actually named
  21802. something starting with __ and the normal name is an alias. */
  21803. #if defined __stub__doprnt || defined __stub____doprnt
  21804. choke me
  21805. #endif
  21806. int
  21807. main ()
  21808. {
  21809. return _doprnt ();
  21810. ;
  21811. return 0;
  21812. }
  21813. _ACEOF
  21814. rm -f conftest.$ac_objext conftest$ac_exeext
  21815. if { (ac_try="$ac_link"
  21816. case "(($ac_try" in
  21817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21818. *) ac_try_echo=$ac_try;;
  21819. esac
  21820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21821. (eval "$ac_link") 2>conftest.er1
  21822. ac_status=$?
  21823. grep -v '^ *+' conftest.er1 >conftest.err
  21824. rm -f conftest.er1
  21825. cat conftest.err >&5
  21826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21827. (exit $ac_status); } && {
  21828. test -z "$ac_c_werror_flag" ||
  21829. test ! -s conftest.err
  21830. } && test -s conftest$ac_exeext &&
  21831. $as_test_x conftest$ac_exeext; then
  21832. ac_cv_func__doprnt=yes
  21833. else
  21834. echo "$as_me: failed program was:" >&5
  21835. sed 's/^/| /' conftest.$ac_ext >&5
  21836. ac_cv_func__doprnt=no
  21837. fi
  21838. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21839. conftest$ac_exeext conftest.$ac_ext
  21840. fi
  21841. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21842. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  21843. if test $ac_cv_func__doprnt = yes; then
  21844. cat >>confdefs.h <<\_ACEOF
  21845. #define HAVE_DOPRNT 1
  21846. _ACEOF
  21847. fi
  21848. fi
  21849. done
  21850. { echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  21851. echo $ECHO_N "checking for struct timeval.tv_sec... $ECHO_C" >&6; }
  21852. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  21853. echo $ECHO_N "(cached) $ECHO_C" >&6
  21854. else
  21855. cat >conftest.$ac_ext <<_ACEOF
  21856. /* confdefs.h. */
  21857. _ACEOF
  21858. cat confdefs.h >>conftest.$ac_ext
  21859. cat >>conftest.$ac_ext <<_ACEOF
  21860. /* end confdefs.h. */
  21861. $ac_includes_default
  21862. int
  21863. main ()
  21864. {
  21865. static struct timeval ac_aggr;
  21866. if (ac_aggr.tv_sec)
  21867. return 0;
  21868. ;
  21869. return 0;
  21870. }
  21871. _ACEOF
  21872. rm -f conftest.$ac_objext
  21873. if { (ac_try="$ac_compile"
  21874. case "(($ac_try" in
  21875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21876. *) ac_try_echo=$ac_try;;
  21877. esac
  21878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21879. (eval "$ac_compile") 2>conftest.er1
  21880. ac_status=$?
  21881. grep -v '^ *+' conftest.er1 >conftest.err
  21882. rm -f conftest.er1
  21883. cat conftest.err >&5
  21884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21885. (exit $ac_status); } && {
  21886. test -z "$ac_c_werror_flag" ||
  21887. test ! -s conftest.err
  21888. } && test -s conftest.$ac_objext; then
  21889. ac_cv_member_struct_timeval_tv_sec=yes
  21890. else
  21891. echo "$as_me: failed program was:" >&5
  21892. sed 's/^/| /' conftest.$ac_ext >&5
  21893. cat >conftest.$ac_ext <<_ACEOF
  21894. /* confdefs.h. */
  21895. _ACEOF
  21896. cat confdefs.h >>conftest.$ac_ext
  21897. cat >>conftest.$ac_ext <<_ACEOF
  21898. /* end confdefs.h. */
  21899. $ac_includes_default
  21900. int
  21901. main ()
  21902. {
  21903. static struct timeval ac_aggr;
  21904. if (sizeof ac_aggr.tv_sec)
  21905. return 0;
  21906. ;
  21907. return 0;
  21908. }
  21909. _ACEOF
  21910. rm -f conftest.$ac_objext
  21911. if { (ac_try="$ac_compile"
  21912. case "(($ac_try" in
  21913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21914. *) ac_try_echo=$ac_try;;
  21915. esac
  21916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21917. (eval "$ac_compile") 2>conftest.er1
  21918. ac_status=$?
  21919. grep -v '^ *+' conftest.er1 >conftest.err
  21920. rm -f conftest.er1
  21921. cat conftest.err >&5
  21922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21923. (exit $ac_status); } && {
  21924. test -z "$ac_c_werror_flag" ||
  21925. test ! -s conftest.err
  21926. } && test -s conftest.$ac_objext; then
  21927. ac_cv_member_struct_timeval_tv_sec=yes
  21928. else
  21929. echo "$as_me: failed program was:" >&5
  21930. sed 's/^/| /' conftest.$ac_ext >&5
  21931. ac_cv_member_struct_timeval_tv_sec=no
  21932. fi
  21933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21934. fi
  21935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21936. fi
  21937. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  21938. echo "${ECHO_T}$ac_cv_member_struct_timeval_tv_sec" >&6; }
  21939. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  21940. cat >>confdefs.h <<_ACEOF
  21941. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  21942. _ACEOF
  21943. fi
  21944. for ac_func in gettimeofday ctime memset regcomp strdup strchr strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf
  21945. do
  21946. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21947. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21948. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21949. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21950. echo $ECHO_N "(cached) $ECHO_C" >&6
  21951. else
  21952. cat >conftest.$ac_ext <<_ACEOF
  21953. /* confdefs.h. */
  21954. _ACEOF
  21955. cat confdefs.h >>conftest.$ac_ext
  21956. cat >>conftest.$ac_ext <<_ACEOF
  21957. /* end confdefs.h. */
  21958. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21959. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21960. #define $ac_func innocuous_$ac_func
  21961. /* System header to define __stub macros and hopefully few prototypes,
  21962. which can conflict with char $ac_func (); below.
  21963. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21964. <limits.h> exists even on freestanding compilers. */
  21965. #ifdef __STDC__
  21966. # include <limits.h>
  21967. #else
  21968. # include <assert.h>
  21969. #endif
  21970. #undef $ac_func
  21971. /* Override any GCC internal prototype to avoid an error.
  21972. Use char because int might match the return type of a GCC
  21973. builtin and then its argument prototype would still apply. */
  21974. #ifdef __cplusplus
  21975. extern "C"
  21976. #endif
  21977. char $ac_func ();
  21978. /* The GNU C library defines this for functions which it implements
  21979. to always fail with ENOSYS. Some functions are actually named
  21980. something starting with __ and the normal name is an alias. */
  21981. #if defined __stub_$ac_func || defined __stub___$ac_func
  21982. choke me
  21983. #endif
  21984. int
  21985. main ()
  21986. {
  21987. return $ac_func ();
  21988. ;
  21989. return 0;
  21990. }
  21991. _ACEOF
  21992. rm -f conftest.$ac_objext conftest$ac_exeext
  21993. if { (ac_try="$ac_link"
  21994. case "(($ac_try" in
  21995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21996. *) ac_try_echo=$ac_try;;
  21997. esac
  21998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21999. (eval "$ac_link") 2>conftest.er1
  22000. ac_status=$?
  22001. grep -v '^ *+' conftest.er1 >conftest.err
  22002. rm -f conftest.er1
  22003. cat conftest.err >&5
  22004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22005. (exit $ac_status); } && {
  22006. test -z "$ac_c_werror_flag" ||
  22007. test ! -s conftest.err
  22008. } && test -s conftest$ac_exeext &&
  22009. $as_test_x conftest$ac_exeext; then
  22010. eval "$as_ac_var=yes"
  22011. else
  22012. echo "$as_me: failed program was:" >&5
  22013. sed 's/^/| /' conftest.$ac_ext >&5
  22014. eval "$as_ac_var=no"
  22015. fi
  22016. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22017. conftest$ac_exeext conftest.$ac_ext
  22018. fi
  22019. ac_res=`eval echo '${'$as_ac_var'}'`
  22020. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22021. echo "${ECHO_T}$ac_res" >&6; }
  22022. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22023. cat >>confdefs.h <<_ACEOF
  22024. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22025. _ACEOF
  22026. fi
  22027. done
  22028. for ac_func in strlcpy
  22029. do
  22030. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22031. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  22032. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  22033. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  22034. echo $ECHO_N "(cached) $ECHO_C" >&6
  22035. else
  22036. cat >conftest.$ac_ext <<_ACEOF
  22037. /* confdefs.h. */
  22038. _ACEOF
  22039. cat confdefs.h >>conftest.$ac_ext
  22040. cat >>conftest.$ac_ext <<_ACEOF
  22041. /* end confdefs.h. */
  22042. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22043. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22044. #define $ac_func innocuous_$ac_func
  22045. /* System header to define __stub macros and hopefully few prototypes,
  22046. which can conflict with char $ac_func (); below.
  22047. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22048. <limits.h> exists even on freestanding compilers. */
  22049. #ifdef __STDC__
  22050. # include <limits.h>
  22051. #else
  22052. # include <assert.h>
  22053. #endif
  22054. #undef $ac_func
  22055. /* Override any GCC internal prototype to avoid an error.
  22056. Use char because int might match the return type of a GCC
  22057. builtin and then its argument prototype would still apply. */
  22058. #ifdef __cplusplus
  22059. extern "C"
  22060. #endif
  22061. char $ac_func ();
  22062. /* The GNU C library defines this for functions which it implements
  22063. to always fail with ENOSYS. Some functions are actually named
  22064. something starting with __ and the normal name is an alias. */
  22065. #if defined __stub_$ac_func || defined __stub___$ac_func
  22066. choke me
  22067. #endif
  22068. int
  22069. main ()
  22070. {
  22071. return $ac_func ();
  22072. ;
  22073. return 0;
  22074. }
  22075. _ACEOF
  22076. rm -f conftest.$ac_objext conftest$ac_exeext
  22077. if { (ac_try="$ac_link"
  22078. case "(($ac_try" in
  22079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22080. *) ac_try_echo=$ac_try;;
  22081. esac
  22082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22083. (eval "$ac_link") 2>conftest.er1
  22084. ac_status=$?
  22085. grep -v '^ *+' conftest.er1 >conftest.err
  22086. rm -f conftest.er1
  22087. cat conftest.err >&5
  22088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22089. (exit $ac_status); } && {
  22090. test -z "$ac_c_werror_flag" ||
  22091. test ! -s conftest.err
  22092. } && test -s conftest$ac_exeext &&
  22093. $as_test_x conftest$ac_exeext; then
  22094. eval "$as_ac_var=yes"
  22095. else
  22096. echo "$as_me: failed program was:" >&5
  22097. sed 's/^/| /' conftest.$ac_ext >&5
  22098. eval "$as_ac_var=no"
  22099. fi
  22100. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22101. conftest$ac_exeext conftest.$ac_ext
  22102. fi
  22103. ac_res=`eval echo '${'$as_ac_var'}'`
  22104. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22105. echo "${ECHO_T}$ac_res" >&6; }
  22106. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22107. cat >>confdefs.h <<_ACEOF
  22108. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22109. _ACEOF
  22110. have_strlcpy=true
  22111. else
  22112. have_strlcpy=false
  22113. fi
  22114. done
  22115. if test x$have_strlcpy = xtrue; then
  22116. SYSTEM_STRLCPY_TRUE=
  22117. SYSTEM_STRLCPY_FALSE='#'
  22118. else
  22119. SYSTEM_STRLCPY_TRUE='#'
  22120. SYSTEM_STRLCPY_FALSE=
  22121. fi
  22122. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  22123. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  22124. if test "${ac_cv_c_bigendian+set}" = set; then
  22125. echo $ECHO_N "(cached) $ECHO_C" >&6
  22126. else
  22127. # See if sys/param.h defines the BYTE_ORDER macro.
  22128. cat >conftest.$ac_ext <<_ACEOF
  22129. /* confdefs.h. */
  22130. _ACEOF
  22131. cat confdefs.h >>conftest.$ac_ext
  22132. cat >>conftest.$ac_ext <<_ACEOF
  22133. /* end confdefs.h. */
  22134. #include <sys/types.h>
  22135. #include <sys/param.h>
  22136. int
  22137. main ()
  22138. {
  22139. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  22140. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  22141. bogus endian macros
  22142. #endif
  22143. ;
  22144. return 0;
  22145. }
  22146. _ACEOF
  22147. rm -f conftest.$ac_objext
  22148. if { (ac_try="$ac_compile"
  22149. case "(($ac_try" in
  22150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22151. *) ac_try_echo=$ac_try;;
  22152. esac
  22153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22154. (eval "$ac_compile") 2>conftest.er1
  22155. ac_status=$?
  22156. grep -v '^ *+' conftest.er1 >conftest.err
  22157. rm -f conftest.er1
  22158. cat conftest.err >&5
  22159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22160. (exit $ac_status); } && {
  22161. test -z "$ac_c_werror_flag" ||
  22162. test ! -s conftest.err
  22163. } && test -s conftest.$ac_objext; then
  22164. # It does; now see whether it defined to BIG_ENDIAN or not.
  22165. cat >conftest.$ac_ext <<_ACEOF
  22166. /* confdefs.h. */
  22167. _ACEOF
  22168. cat confdefs.h >>conftest.$ac_ext
  22169. cat >>conftest.$ac_ext <<_ACEOF
  22170. /* end confdefs.h. */
  22171. #include <sys/types.h>
  22172. #include <sys/param.h>
  22173. int
  22174. main ()
  22175. {
  22176. #if BYTE_ORDER != BIG_ENDIAN
  22177. not big endian
  22178. #endif
  22179. ;
  22180. return 0;
  22181. }
  22182. _ACEOF
  22183. rm -f conftest.$ac_objext
  22184. if { (ac_try="$ac_compile"
  22185. case "(($ac_try" in
  22186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22187. *) ac_try_echo=$ac_try;;
  22188. esac
  22189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22190. (eval "$ac_compile") 2>conftest.er1
  22191. ac_status=$?
  22192. grep -v '^ *+' conftest.er1 >conftest.err
  22193. rm -f conftest.er1
  22194. cat conftest.err >&5
  22195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22196. (exit $ac_status); } && {
  22197. test -z "$ac_c_werror_flag" ||
  22198. test ! -s conftest.err
  22199. } && test -s conftest.$ac_objext; then
  22200. ac_cv_c_bigendian=yes
  22201. else
  22202. echo "$as_me: failed program was:" >&5
  22203. sed 's/^/| /' conftest.$ac_ext >&5
  22204. ac_cv_c_bigendian=no
  22205. fi
  22206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22207. else
  22208. echo "$as_me: failed program was:" >&5
  22209. sed 's/^/| /' conftest.$ac_ext >&5
  22210. # It does not; compile a test program.
  22211. if test "$cross_compiling" = yes; then
  22212. # try to guess the endianness by grepping values into an object file
  22213. ac_cv_c_bigendian=unknown
  22214. cat >conftest.$ac_ext <<_ACEOF
  22215. /* confdefs.h. */
  22216. _ACEOF
  22217. cat confdefs.h >>conftest.$ac_ext
  22218. cat >>conftest.$ac_ext <<_ACEOF
  22219. /* end confdefs.h. */
  22220. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  22221. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  22222. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  22223. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  22224. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  22225. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  22226. int
  22227. main ()
  22228. {
  22229. _ascii (); _ebcdic ();
  22230. ;
  22231. return 0;
  22232. }
  22233. _ACEOF
  22234. rm -f conftest.$ac_objext
  22235. if { (ac_try="$ac_compile"
  22236. case "(($ac_try" in
  22237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22238. *) ac_try_echo=$ac_try;;
  22239. esac
  22240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22241. (eval "$ac_compile") 2>conftest.er1
  22242. ac_status=$?
  22243. grep -v '^ *+' conftest.er1 >conftest.err
  22244. rm -f conftest.er1
  22245. cat conftest.err >&5
  22246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22247. (exit $ac_status); } && {
  22248. test -z "$ac_c_werror_flag" ||
  22249. test ! -s conftest.err
  22250. } && test -s conftest.$ac_objext; then
  22251. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  22252. ac_cv_c_bigendian=yes
  22253. fi
  22254. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  22255. if test "$ac_cv_c_bigendian" = unknown; then
  22256. ac_cv_c_bigendian=no
  22257. else
  22258. # finding both strings is unlikely to happen, but who knows?
  22259. ac_cv_c_bigendian=unknown
  22260. fi
  22261. fi
  22262. else
  22263. echo "$as_me: failed program was:" >&5
  22264. sed 's/^/| /' conftest.$ac_ext >&5
  22265. fi
  22266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22267. else
  22268. cat >conftest.$ac_ext <<_ACEOF
  22269. /* confdefs.h. */
  22270. _ACEOF
  22271. cat confdefs.h >>conftest.$ac_ext
  22272. cat >>conftest.$ac_ext <<_ACEOF
  22273. /* end confdefs.h. */
  22274. $ac_includes_default
  22275. int
  22276. main ()
  22277. {
  22278. /* Are we little or big endian? From Harbison&Steele. */
  22279. union
  22280. {
  22281. long int l;
  22282. char c[sizeof (long int)];
  22283. } u;
  22284. u.l = 1;
  22285. return u.c[sizeof (long int) - 1] == 1;
  22286. ;
  22287. return 0;
  22288. }
  22289. _ACEOF
  22290. rm -f conftest$ac_exeext
  22291. if { (ac_try="$ac_link"
  22292. case "(($ac_try" in
  22293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22294. *) ac_try_echo=$ac_try;;
  22295. esac
  22296. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22297. (eval "$ac_link") 2>&5
  22298. ac_status=$?
  22299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22300. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22301. { (case "(($ac_try" in
  22302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22303. *) ac_try_echo=$ac_try;;
  22304. esac
  22305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22306. (eval "$ac_try") 2>&5
  22307. ac_status=$?
  22308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22309. (exit $ac_status); }; }; then
  22310. ac_cv_c_bigendian=no
  22311. else
  22312. echo "$as_me: program exited with status $ac_status" >&5
  22313. echo "$as_me: failed program was:" >&5
  22314. sed 's/^/| /' conftest.$ac_ext >&5
  22315. ( exit $ac_status )
  22316. ac_cv_c_bigendian=yes
  22317. fi
  22318. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22319. fi
  22320. fi
  22321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22322. fi
  22323. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  22324. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  22325. case $ac_cv_c_bigendian in
  22326. yes)
  22327. cat >>confdefs.h <<\_ACEOF
  22328. #define WORDS_BIGENDIAN 1
  22329. _ACEOF
  22330. ;;
  22331. no)
  22332. ;;
  22333. *)
  22334. { { echo "$as_me:$LINENO: error: unknown endianness
  22335. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  22336. echo "$as_me: error: unknown endianness
  22337. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  22338. { (exit 1); exit 1; }; } ;;
  22339. esac
  22340. if test x$ac_cv_c_bigendian = xyes ; then
  22341. WORDS_BIGENDIAN_TRUE=
  22342. WORDS_BIGENDIAN_FALSE='#'
  22343. else
  22344. WORDS_BIGENDIAN_TRUE='#'
  22345. WORDS_BIGENDIAN_FALSE=
  22346. fi
  22347. debug=no
  22348. # Check whether --enable-debug was given.
  22349. if test "${enable_debug+set}" = set; then
  22350. enableval=$enable_debug; if test x$enableval = xyes; then
  22351. debug=yes
  22352. CFLAGS="${USER_CFLAGS} -ggdb -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros"
  22353. # We may also want to add:
  22354. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  22355. cat >>confdefs.h <<\_ACEOF
  22356. #define DEBUG 1
  22357. _ACEOF
  22358. fi
  22359. fi
  22360. # Check whether --enable-pedantic was given.
  22361. if test "${enable_pedantic+set}" = set; then
  22362. enableval=$enable_pedantic; if test x$enableval = xyes; then
  22363. CFLAGS="$CFLAGS -pedantic"
  22364. fi
  22365. fi
  22366. # Check whether --enable-efence was given.
  22367. if test "${enable_efence+set}" = set; then
  22368. enableval=$enable_efence; if test x$enableval = xyes; then
  22369. CFLAGS="$CFLAGS -lefence"
  22370. cat >>confdefs.h <<\_ACEOF
  22371. #define EFENCE 1
  22372. _ACEOF
  22373. fi
  22374. fi
  22375. # Check whether --enable-gprof was given.
  22376. if test "${enable_gprof+set}" = set; then
  22377. enableval=$enable_gprof; if test x$enableval = xyes; then
  22378. if test $debug = yes; then
  22379. CFLAGS="$CFLAGS -pg"
  22380. else
  22381. # GPROF requires gdb
  22382. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  22383. fi
  22384. cat >>confdefs.h <<\_ACEOF
  22385. #define GPROF 1
  22386. _ACEOF
  22387. fi
  22388. fi
  22389. use64bit_counters=no
  22390. # Check whether --enable-64bits was given.
  22391. if test "${enable_64bits+set}" = set; then
  22392. enableval=$enable_64bits; if test x$enableval = xyes; then
  22393. cat >>confdefs.h <<\_ACEOF
  22394. #define ENABLE_64BITS 1
  22395. _ACEOF
  22396. { echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  22397. echo "$as_me: Using u_int64_t for packet counters" >&6;}
  22398. use64bit_counters=yes
  22399. else
  22400. { echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  22401. echo "$as_me: Using u_int32_t for packet counters" >&6;}
  22402. fi
  22403. fi
  22404. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  22405. # so we can use _U_ to flag unused function arguments and not get warnings
  22406. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  22407. # function argument will compile with non-GCC compilers.
  22408. #
  22409. if test "x$GCC" = "xyes" ; then
  22410. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  22411. else
  22412. CFLAGS="-D_U_=\"\" $CFLAGS"
  22413. fi
  22414. # Check whether --enable-force-bpf was given.
  22415. if test "${enable_force_bpf+set}" = set; then
  22416. enableval=$enable_force_bpf;
  22417. cat >>confdefs.h <<\_ACEOF
  22418. #define FORCE_INJECT_BPF 1
  22419. _ACEOF
  22420. fi
  22421. # Check whether --enable-force-pf was given.
  22422. if test "${enable_force_pf+set}" = set; then
  22423. enableval=$enable_force_pf;
  22424. cat >>confdefs.h <<\_ACEOF
  22425. #define FORCE_INJECT_PF 1
  22426. _ACEOF
  22427. fi
  22428. # Check whether --enable-force-libnet was given.
  22429. if test "${enable_force_libnet+set}" = set; then
  22430. enableval=$enable_force_libnet;
  22431. cat >>confdefs.h <<\_ACEOF
  22432. #define FORCE_INJECT_LIBNET 1
  22433. _ACEOF
  22434. fi
  22435. # Check whether --enable-force-inject was given.
  22436. if test "${enable_force_inject+set}" = set; then
  22437. enableval=$enable_force_inject;
  22438. cat >>confdefs.h <<\_ACEOF
  22439. #define FORCE_INJECT_PCAP_INJECT 1
  22440. _ACEOF
  22441. fi
  22442. # Check whether --enable-force-sendpacket was given.
  22443. if test "${enable_force_sendpacket+set}" = set; then
  22444. enableval=$enable_force_sendpacket;
  22445. cat >>confdefs.h <<\_ACEOF
  22446. #define FORCE_INJECT_PCAP_SENDPACKET 1
  22447. _ACEOF
  22448. fi
  22449. tcpreplay_edit=no
  22450. # Check whether --enable-tcpreplay-edit was given.
  22451. if test "${enable_tcpreplay_edit+set}" = set; then
  22452. enableval=$enable_tcpreplay_edit;
  22453. cat >>confdefs.h <<\_ACEOF
  22454. #define TCPREPLAY_EDIT 1
  22455. _ACEOF
  22456. tcpreplay_edit=yes
  22457. fi
  22458. if test x$tcpreplay_edit = xyes; then
  22459. ENABLE_TCPREPLAY_EDIT_TRUE=
  22460. ENABLE_TCPREPLAY_EDIT_FALSE='#'
  22461. else
  22462. ENABLE_TCPREPLAY_EDIT_TRUE='#'
  22463. ENABLE_TCPREPLAY_EDIT_FALSE=
  22464. fi
  22465. dynamic_link=no
  22466. # Check whether --enable-dynamic-link was given.
  22467. if test "${enable_dynamic_link+set}" = set; then
  22468. enableval=$enable_dynamic_link; if test x$enableval = xyes; then
  22469. cat >>confdefs.h <<\_ACEOF
  22470. #define ENABLE_DYNAMIC_LINK 1
  22471. _ACEOF
  22472. dynamic_link=yes
  22473. fi
  22474. fi
  22475. { echo "$as_me:$LINENO: checking for inet_aton" >&5
  22476. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
  22477. if test "${ac_cv_func_inet_aton+set}" = set; then
  22478. echo $ECHO_N "(cached) $ECHO_C" >&6
  22479. else
  22480. cat >conftest.$ac_ext <<_ACEOF
  22481. /* confdefs.h. */
  22482. _ACEOF
  22483. cat confdefs.h >>conftest.$ac_ext
  22484. cat >>conftest.$ac_ext <<_ACEOF
  22485. /* end confdefs.h. */
  22486. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  22487. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22488. #define inet_aton innocuous_inet_aton
  22489. /* System header to define __stub macros and hopefully few prototypes,
  22490. which can conflict with char inet_aton (); below.
  22491. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22492. <limits.h> exists even on freestanding compilers. */
  22493. #ifdef __STDC__
  22494. # include <limits.h>
  22495. #else
  22496. # include <assert.h>
  22497. #endif
  22498. #undef inet_aton
  22499. /* Override any GCC internal prototype to avoid an error.
  22500. Use char because int might match the return type of a GCC
  22501. builtin and then its argument prototype would still apply. */
  22502. #ifdef __cplusplus
  22503. extern "C"
  22504. #endif
  22505. char inet_aton ();
  22506. /* The GNU C library defines this for functions which it implements
  22507. to always fail with ENOSYS. Some functions are actually named
  22508. something starting with __ and the normal name is an alias. */
  22509. #if defined __stub_inet_aton || defined __stub___inet_aton
  22510. choke me
  22511. #endif
  22512. int
  22513. main ()
  22514. {
  22515. return inet_aton ();
  22516. ;
  22517. return 0;
  22518. }
  22519. _ACEOF
  22520. rm -f conftest.$ac_objext conftest$ac_exeext
  22521. if { (ac_try="$ac_link"
  22522. case "(($ac_try" in
  22523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22524. *) ac_try_echo=$ac_try;;
  22525. esac
  22526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22527. (eval "$ac_link") 2>conftest.er1
  22528. ac_status=$?
  22529. grep -v '^ *+' conftest.er1 >conftest.err
  22530. rm -f conftest.er1
  22531. cat conftest.err >&5
  22532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22533. (exit $ac_status); } && {
  22534. test -z "$ac_c_werror_flag" ||
  22535. test ! -s conftest.err
  22536. } && test -s conftest$ac_exeext &&
  22537. $as_test_x conftest$ac_exeext; then
  22538. ac_cv_func_inet_aton=yes
  22539. else
  22540. echo "$as_me: failed program was:" >&5
  22541. sed 's/^/| /' conftest.$ac_ext >&5
  22542. ac_cv_func_inet_aton=no
  22543. fi
  22544. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22545. conftest$ac_exeext conftest.$ac_ext
  22546. fi
  22547. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  22548. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
  22549. if test $ac_cv_func_inet_aton = yes; then
  22550. cat >>confdefs.h <<\_ACEOF
  22551. #define HAVE_INET_ATON 1
  22552. _ACEOF
  22553. inet_aton=yes
  22554. else
  22555. inet_aton=no
  22556. fi
  22557. { echo "$as_me:$LINENO: checking for inet_pton" >&5
  22558. echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
  22559. if test "${ac_cv_func_inet_pton+set}" = set; then
  22560. echo $ECHO_N "(cached) $ECHO_C" >&6
  22561. else
  22562. cat >conftest.$ac_ext <<_ACEOF
  22563. /* confdefs.h. */
  22564. _ACEOF
  22565. cat confdefs.h >>conftest.$ac_ext
  22566. cat >>conftest.$ac_ext <<_ACEOF
  22567. /* end confdefs.h. */
  22568. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  22569. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22570. #define inet_pton innocuous_inet_pton
  22571. /* System header to define __stub macros and hopefully few prototypes,
  22572. which can conflict with char inet_pton (); below.
  22573. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22574. <limits.h> exists even on freestanding compilers. */
  22575. #ifdef __STDC__
  22576. # include <limits.h>
  22577. #else
  22578. # include <assert.h>
  22579. #endif
  22580. #undef inet_pton
  22581. /* Override any GCC internal prototype to avoid an error.
  22582. Use char because int might match the return type of a GCC
  22583. builtin and then its argument prototype would still apply. */
  22584. #ifdef __cplusplus
  22585. extern "C"
  22586. #endif
  22587. char inet_pton ();
  22588. /* The GNU C library defines this for functions which it implements
  22589. to always fail with ENOSYS. Some functions are actually named
  22590. something starting with __ and the normal name is an alias. */
  22591. #if defined __stub_inet_pton || defined __stub___inet_pton
  22592. choke me
  22593. #endif
  22594. int
  22595. main ()
  22596. {
  22597. return inet_pton ();
  22598. ;
  22599. return 0;
  22600. }
  22601. _ACEOF
  22602. rm -f conftest.$ac_objext conftest$ac_exeext
  22603. if { (ac_try="$ac_link"
  22604. case "(($ac_try" in
  22605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22606. *) ac_try_echo=$ac_try;;
  22607. esac
  22608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22609. (eval "$ac_link") 2>conftest.er1
  22610. ac_status=$?
  22611. grep -v '^ *+' conftest.er1 >conftest.err
  22612. rm -f conftest.er1
  22613. cat conftest.err >&5
  22614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22615. (exit $ac_status); } && {
  22616. test -z "$ac_c_werror_flag" ||
  22617. test ! -s conftest.err
  22618. } && test -s conftest$ac_exeext &&
  22619. $as_test_x conftest$ac_exeext; then
  22620. ac_cv_func_inet_pton=yes
  22621. else
  22622. echo "$as_me: failed program was:" >&5
  22623. sed 's/^/| /' conftest.$ac_ext >&5
  22624. ac_cv_func_inet_pton=no
  22625. fi
  22626. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22627. conftest$ac_exeext conftest.$ac_ext
  22628. fi
  22629. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  22630. echo "${ECHO_T}$ac_cv_func_inet_pton" >&6; }
  22631. if test $ac_cv_func_inet_pton = yes; then
  22632. cat >>confdefs.h <<\_ACEOF
  22633. #define HAVE_INET_PTON 1
  22634. _ACEOF
  22635. inet_pton=yes
  22636. else
  22637. inet_pton=no
  22638. fi
  22639. { echo "$as_me:$LINENO: checking for inet_ntop" >&5
  22640. echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
  22641. if test "${ac_cv_func_inet_ntop+set}" = set; then
  22642. echo $ECHO_N "(cached) $ECHO_C" >&6
  22643. else
  22644. cat >conftest.$ac_ext <<_ACEOF
  22645. /* confdefs.h. */
  22646. _ACEOF
  22647. cat confdefs.h >>conftest.$ac_ext
  22648. cat >>conftest.$ac_ext <<_ACEOF
  22649. /* end confdefs.h. */
  22650. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  22651. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22652. #define inet_ntop innocuous_inet_ntop
  22653. /* System header to define __stub macros and hopefully few prototypes,
  22654. which can conflict with char inet_ntop (); below.
  22655. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22656. <limits.h> exists even on freestanding compilers. */
  22657. #ifdef __STDC__
  22658. # include <limits.h>
  22659. #else
  22660. # include <assert.h>
  22661. #endif
  22662. #undef inet_ntop
  22663. /* Override any GCC internal prototype to avoid an error.
  22664. Use char because int might match the return type of a GCC
  22665. builtin and then its argument prototype would still apply. */
  22666. #ifdef __cplusplus
  22667. extern "C"
  22668. #endif
  22669. char inet_ntop ();
  22670. /* The GNU C library defines this for functions which it implements
  22671. to always fail with ENOSYS. Some functions are actually named
  22672. something starting with __ and the normal name is an alias. */
  22673. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  22674. choke me
  22675. #endif
  22676. int
  22677. main ()
  22678. {
  22679. return inet_ntop ();
  22680. ;
  22681. return 0;
  22682. }
  22683. _ACEOF
  22684. rm -f conftest.$ac_objext conftest$ac_exeext
  22685. if { (ac_try="$ac_link"
  22686. case "(($ac_try" in
  22687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22688. *) ac_try_echo=$ac_try;;
  22689. esac
  22690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22691. (eval "$ac_link") 2>conftest.er1
  22692. ac_status=$?
  22693. grep -v '^ *+' conftest.er1 >conftest.err
  22694. rm -f conftest.er1
  22695. cat conftest.err >&5
  22696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22697. (exit $ac_status); } && {
  22698. test -z "$ac_c_werror_flag" ||
  22699. test ! -s conftest.err
  22700. } && test -s conftest$ac_exeext &&
  22701. $as_test_x conftest$ac_exeext; then
  22702. ac_cv_func_inet_ntop=yes
  22703. else
  22704. echo "$as_me: failed program was:" >&5
  22705. sed 's/^/| /' conftest.$ac_ext >&5
  22706. ac_cv_func_inet_ntop=no
  22707. fi
  22708. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22709. conftest$ac_exeext conftest.$ac_ext
  22710. fi
  22711. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  22712. echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
  22713. if test $ac_cv_func_inet_ntop = yes; then
  22714. cat >>confdefs.h <<\_ACEOF
  22715. #define HAVE_INET_NTOP 1
  22716. _ACEOF
  22717. inet_ntop=yes
  22718. else
  22719. inet_ntop=no
  22720. fi
  22721. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  22722. { { echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  22723. echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  22724. { (exit 1); exit 1; }; }
  22725. fi
  22726. if test "$inet_aton" = "no" ; then
  22727. { { echo "$as_me:$LINENO: error: We need inet_aton" >&5
  22728. echo "$as_me: error: We need inet_aton" >&2;}
  22729. { (exit 1); exit 1; }; }
  22730. fi
  22731. { echo "$as_me:$LINENO: checking for inet_addr" >&5
  22732. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
  22733. if test "${ac_cv_func_inet_addr+set}" = set; then
  22734. echo $ECHO_N "(cached) $ECHO_C" >&6
  22735. else
  22736. cat >conftest.$ac_ext <<_ACEOF
  22737. /* confdefs.h. */
  22738. _ACEOF
  22739. cat confdefs.h >>conftest.$ac_ext
  22740. cat >>conftest.$ac_ext <<_ACEOF
  22741. /* end confdefs.h. */
  22742. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  22743. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22744. #define inet_addr innocuous_inet_addr
  22745. /* System header to define __stub macros and hopefully few prototypes,
  22746. which can conflict with char inet_addr (); below.
  22747. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22748. <limits.h> exists even on freestanding compilers. */
  22749. #ifdef __STDC__
  22750. # include <limits.h>
  22751. #else
  22752. # include <assert.h>
  22753. #endif
  22754. #undef inet_addr
  22755. /* Override any GCC internal prototype to avoid an error.
  22756. Use char because int might match the return type of a GCC
  22757. builtin and then its argument prototype would still apply. */
  22758. #ifdef __cplusplus
  22759. extern "C"
  22760. #endif
  22761. char inet_addr ();
  22762. /* The GNU C library defines this for functions which it implements
  22763. to always fail with ENOSYS. Some functions are actually named
  22764. something starting with __ and the normal name is an alias. */
  22765. #if defined __stub_inet_addr || defined __stub___inet_addr
  22766. choke me
  22767. #endif
  22768. int
  22769. main ()
  22770. {
  22771. return inet_addr ();
  22772. ;
  22773. return 0;
  22774. }
  22775. _ACEOF
  22776. rm -f conftest.$ac_objext conftest$ac_exeext
  22777. if { (ac_try="$ac_link"
  22778. case "(($ac_try" in
  22779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22780. *) ac_try_echo=$ac_try;;
  22781. esac
  22782. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22783. (eval "$ac_link") 2>conftest.er1
  22784. ac_status=$?
  22785. grep -v '^ *+' conftest.er1 >conftest.err
  22786. rm -f conftest.er1
  22787. cat conftest.err >&5
  22788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22789. (exit $ac_status); } && {
  22790. test -z "$ac_c_werror_flag" ||
  22791. test ! -s conftest.err
  22792. } && test -s conftest$ac_exeext &&
  22793. $as_test_x conftest$ac_exeext; then
  22794. ac_cv_func_inet_addr=yes
  22795. else
  22796. echo "$as_me: failed program was:" >&5
  22797. sed 's/^/| /' conftest.$ac_ext >&5
  22798. ac_cv_func_inet_addr=no
  22799. fi
  22800. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22801. conftest$ac_exeext conftest.$ac_ext
  22802. fi
  22803. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  22804. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
  22805. if test $ac_cv_func_inet_addr = yes; then
  22806. cat >>confdefs.h <<\_ACEOF
  22807. #define HAVE_INET_ADDR 1
  22808. _ACEOF
  22809. inet_addr=yes
  22810. else
  22811. inet_addr=no
  22812. fi
  22813. if test x$inet_addr = no ; then
  22814. { { echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  22815. echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  22816. { (exit 1); exit 1; }; }
  22817. fi
  22818. flowreplay=no
  22819. # Check whether --enable-flowreplay was given.
  22820. if test "${enable_flowreplay+set}" = set; then
  22821. enableval=$enable_flowreplay; if test x$enableval = xyes; then
  22822. flowreplay=yes
  22823. cat >>confdefs.h <<\_ACEOF
  22824. #define ENABLE_FLOWREPLAY 1
  22825. _ACEOF
  22826. fi
  22827. fi
  22828. if test x$flowreplay = xyes; then
  22829. ENABLE_FLOWREPLAY_TRUE=
  22830. ENABLE_FLOWREPLAY_FALSE='#'
  22831. else
  22832. ENABLE_FLOWREPLAY_TRUE='#'
  22833. ENABLE_FLOWREPLAY_FALSE=
  22834. fi
  22835. foundnet=no
  22836. trynetdir=no
  22837. have_libnet=no
  22838. use_libnet=no
  22839. # Check whether --enable-libnet was given.
  22840. if test "${enable_libnet+set}" = set; then
  22841. enableval=$enable_libnet; if test x$enableval = xyes; then
  22842. use_libnet=yes
  22843. { echo "$as_me:$LINENO: WARNING: Due to bugs in libnet, it is no longer officially supported" >&5
  22844. echo "$as_me: WARNING: Due to bugs in libnet, it is no longer officially supported" >&2;}
  22845. fi
  22846. fi
  22847. # Check whether --with-libnet was given.
  22848. if test "${with_libnet+set}" = set; then
  22849. withval=$with_libnet; trynetdir=$withval
  22850. fi
  22851. if test x$use_libnet = xyes ; then
  22852. { echo "$as_me:$LINENO: checking for libnet" >&5
  22853. echo $ECHO_N "checking for libnet... $ECHO_C" >&6; }
  22854. for testdir in $trynetdir /usr/local /opt/local /usr ; do
  22855. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  22856. LNETINC="${testdir}/include/libnet.h"
  22857. LNETINCDIR="${testdir}/include"
  22858. if test $dynamic_link = yes; then
  22859. if test -f "${testdir}/lib64/libnet${shrext_cmds}" ; then
  22860. LNETLIB="-L${testdir}/lib64 -lnet"
  22861. elif test -f "${testdir}/lib/libnet${shrext_cmds}" ; then
  22862. LNETLIB="-L${testdir}/lib -lnet"
  22863. else
  22864. { { echo "$as_me:$LINENO: error: Unable to find libnet in ${testdir}" >&5
  22865. echo "$as_me: error: Unable to find libnet in ${testdir}" >&2;}
  22866. { (exit 1); exit 1; }; }
  22867. fi
  22868. elif test -f "${testdir}/lib64/libnet.${libext}" ; then
  22869. LNETLIB="${testdir}/lib64/libnet.${libext}"
  22870. elif test -f "${testdir}/lib/libnet.${libext}" ; then
  22871. LNETLIB="${testdir}/lib/libnet.${libext}"
  22872. else
  22873. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  22874. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  22875. { (exit 1); exit 1; }; }
  22876. fi
  22877. foundnet=$testdir
  22878. fi
  22879. done
  22880. if test x$foundnet = xno ; then
  22881. { echo "$as_me:$LINENO: result: no" >&5
  22882. echo "${ECHO_T}no" >&6; }
  22883. else
  22884. { echo "$as_me:$LINENO: result: $foundnet" >&5
  22885. echo "${ECHO_T}$foundnet" >&6; }
  22886. have_libnet=yes
  22887. cat >>confdefs.h <<\_ACEOF
  22888. #define HAVE_LIBNET 1
  22889. _ACEOF
  22890. fi
  22891. fi
  22892. if test $foundnet != no ; then
  22893. OLDLIBS="$LIBS"
  22894. OLDCFLAGS="$CFLAGS"
  22895. LIBS="$LNETLIB"
  22896. CFLAGS="$CFLAGS -I$LNETINCDIR"
  22897. { echo "$as_me:$LINENO: checking for libnet version" >&5
  22898. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6; }
  22899. if test "$cross_compiling" = yes; then
  22900. libnet_ver_10=no
  22901. else
  22902. cat >conftest.$ac_ext <<_ACEOF
  22903. /* confdefs.h. */
  22904. _ACEOF
  22905. cat confdefs.h >>conftest.$ac_ext
  22906. cat >>conftest.$ac_ext <<_ACEOF
  22907. /* end confdefs.h. */
  22908. #include <string.h>
  22909. #define LIBNET_LIL_ENDIAN 1
  22910. #include "$LNETINC"
  22911. #define LIB_TEST "1.0"
  22912. /*
  22913. * simple proggy to test the version of libnet
  22914. * returns zero if it's 1.0.x
  22915. * or one otherwise
  22916. */
  22917. int
  22918. main (int argc, char *argv[])
  22919. {
  22920. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22921. exit(0);
  22922. exit(1);
  22923. }
  22924. _ACEOF
  22925. rm -f conftest$ac_exeext
  22926. if { (ac_try="$ac_link"
  22927. case "(($ac_try" in
  22928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22929. *) ac_try_echo=$ac_try;;
  22930. esac
  22931. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22932. (eval "$ac_link") 2>&5
  22933. ac_status=$?
  22934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22935. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22936. { (case "(($ac_try" in
  22937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22938. *) ac_try_echo=$ac_try;;
  22939. esac
  22940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22941. (eval "$ac_try") 2>&5
  22942. ac_status=$?
  22943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22944. (exit $ac_status); }; }; then
  22945. libnet_ver_10=yes
  22946. { echo "$as_me:$LINENO: result: 1.0.x" >&5
  22947. echo "${ECHO_T}1.0.x" >&6; }
  22948. else
  22949. echo "$as_me: program exited with status $ac_status" >&5
  22950. echo "$as_me: failed program was:" >&5
  22951. sed 's/^/| /' conftest.$ac_ext >&5
  22952. ( exit $ac_status )
  22953. libnet_ver_10=no
  22954. fi
  22955. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22956. fi
  22957. if test "$cross_compiling" = yes; then
  22958. libnet_ver_11=no
  22959. else
  22960. cat >conftest.$ac_ext <<_ACEOF
  22961. /* confdefs.h. */
  22962. _ACEOF
  22963. cat confdefs.h >>conftest.$ac_ext
  22964. cat >>conftest.$ac_ext <<_ACEOF
  22965. /* end confdefs.h. */
  22966. #include <string.h>
  22967. #include "$LNETINC"
  22968. #define LIB_TEST "1.1"
  22969. /*
  22970. * simple proggy to test the version of libnet
  22971. * returns zero if it's 1.0.x
  22972. * or one otherwise
  22973. */
  22974. int
  22975. main (int argc, char *argv[])
  22976. {
  22977. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22978. exit(0);
  22979. exit(1);
  22980. }
  22981. _ACEOF
  22982. rm -f conftest$ac_exeext
  22983. if { (ac_try="$ac_link"
  22984. case "(($ac_try" in
  22985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22986. *) ac_try_echo=$ac_try;;
  22987. esac
  22988. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22989. (eval "$ac_link") 2>&5
  22990. ac_status=$?
  22991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22992. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22993. { (case "(($ac_try" in
  22994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22995. *) ac_try_echo=$ac_try;;
  22996. esac
  22997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22998. (eval "$ac_try") 2>&5
  22999. ac_status=$?
  23000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23001. (exit $ac_status); }; }; then
  23002. libnet_ver_11=yes
  23003. { echo "$as_me:$LINENO: result: 1.1.x" >&5
  23004. echo "${ECHO_T}1.1.x" >&6; }
  23005. else
  23006. echo "$as_me: program exited with status $ac_status" >&5
  23007. echo "$as_me: failed program was:" >&5
  23008. sed 's/^/| /' conftest.$ac_ext >&5
  23009. ( exit $ac_status )
  23010. libnet_ver_11=no
  23011. fi
  23012. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23013. fi
  23014. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  23015. { echo "$as_me:$LINENO: result: unknown" >&5
  23016. echo "${ECHO_T}unknown" >&6; }
  23017. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  23018. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  23019. { (exit 1); exit 1; }; }
  23020. fi
  23021. if test $libnet_ver_10 = yes ; then
  23022. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  23023. Please upgrade to 1.1.0 or better" >&5
  23024. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  23025. Please upgrade to 1.1.0 or better" >&2;}
  23026. { (exit 1); exit 1; }; }
  23027. fi
  23028. LIBS="$OLDLIBS"
  23029. CFLAGS="$OLDCFLAGS"
  23030. fi
  23031. foundpcap=no
  23032. trypcapdir=/usr/local
  23033. { echo "$as_me:$LINENO: checking for libpcap" >&5
  23034. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6; }
  23035. # Check whether --with-libpcap was given.
  23036. if test "${with_libpcap+set}" = set; then
  23037. withval=$with_libpcap; trypcapdir=$withval
  23038. fi
  23039. for testdir in $trypcapdir /usr/local /opt/local /usr ; do
  23040. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  23041. LPCAPINC="${testdir}/include/pcap.h"
  23042. LPCAPINCDIR="${testdir}/include"
  23043. if test $dynamic_link = yes; then
  23044. if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
  23045. LPCAPLIB="-L${testdir}/lib64 -lpcap"
  23046. elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
  23047. LPCAPLIB="-L${testdir}/lib -lpcap"
  23048. else
  23049. { { echo "$as_me:$LINENO: error: Unable to find libpcap in ${testdir}" >&5
  23050. echo "$as_me: error: Unable to find libpcap in ${testdir}" >&2;}
  23051. { (exit 1); exit 1; }; }
  23052. fi
  23053. elif test -f "${testdir}/lib64/libpcap.${libext}" ; then
  23054. LPCAPLIB="${testdir}/lib64/libpcap.${libext}"
  23055. elif test -f "${testdir}/lib/libpcap.${libext}" ; then
  23056. LPCAPLIB="${testdir}/lib/libpcap.${libext}"
  23057. elif test -f "${testdir}/lib/libwpcap.${libext}" ; then
  23058. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  23059. cat >>confdefs.h <<\_ACEOF
  23060. #define HAVE_WINPCAP 1
  23061. _ACEOF
  23062. else
  23063. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  23064. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  23065. { (exit 1); exit 1; }; }
  23066. fi
  23067. foundpcap=$testdir
  23068. fi
  23069. done
  23070. if test $foundpcap = no ; then
  23071. { echo "$as_me:$LINENO: result: no" >&5
  23072. echo "${ECHO_T}no" >&6; }
  23073. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  23074. echo "$as_me: error: libpcap not found" >&2;}
  23075. { (exit 1); exit 1; }; }
  23076. else
  23077. { echo "$as_me:$LINENO: result: $foundpcap" >&5
  23078. echo "${ECHO_T}$foundpcap" >&6; }
  23079. fi
  23080. OLDLIBS="$LIBS"
  23081. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  23082. LIBS="$LPCAPLIB"
  23083. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  23084. { echo "$as_me:$LINENO: checking for libpcap version" >&5
  23085. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6; }
  23086. libpcap_version_096=no
  23087. if test "$cross_compiling" = yes; then
  23088. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23089. See \`config.log' for more details." >&5
  23090. echo "$as_me: error: cannot run test program while cross compiling
  23091. See \`config.log' for more details." >&2;}
  23092. { (exit 1); exit 1; }; }
  23093. else
  23094. cat >conftest.$ac_ext <<_ACEOF
  23095. /* confdefs.h. */
  23096. _ACEOF
  23097. cat confdefs.h >>conftest.$ac_ext
  23098. cat >>conftest.$ac_ext <<_ACEOF
  23099. /* end confdefs.h. */
  23100. #include <string.h>
  23101. #include <stdlib.h>
  23102. #include <stdio.h>
  23103. #include "$LPCAPINC"
  23104. #define PCAP_TEST "0.9.6"
  23105. int
  23106. main ()
  23107. {
  23108. /*
  23109. * simple proggy to test the version of libpcap
  23110. * returns zero if version >= 0.9.6
  23111. * or one otherwise
  23112. */
  23113. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0)
  23114. exit(0);
  23115. exit(1);
  23116. ;
  23117. return 0;
  23118. }
  23119. _ACEOF
  23120. rm -f conftest$ac_exeext
  23121. if { (ac_try="$ac_link"
  23122. case "(($ac_try" in
  23123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23124. *) ac_try_echo=$ac_try;;
  23125. esac
  23126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23127. (eval "$ac_link") 2>&5
  23128. ac_status=$?
  23129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23130. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23131. { (case "(($ac_try" in
  23132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23133. *) ac_try_echo=$ac_try;;
  23134. esac
  23135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23136. (eval "$ac_try") 2>&5
  23137. ac_status=$?
  23138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23139. (exit $ac_status); }; }; then
  23140. libpcap_version_096=yes
  23141. else
  23142. echo "$as_me: program exited with status $ac_status" >&5
  23143. echo "$as_me: failed program was:" >&5
  23144. sed 's/^/| /' conftest.$ac_ext >&5
  23145. fi
  23146. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23147. fi
  23148. if test "$cross_compiling" = yes; then
  23149. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23150. See \`config.log' for more details." >&5
  23151. echo "$as_me: error: cannot run test program while cross compiling
  23152. See \`config.log' for more details." >&2;}
  23153. { (exit 1); exit 1; }; }
  23154. else
  23155. cat >conftest.$ac_ext <<_ACEOF
  23156. /* confdefs.h. */
  23157. _ACEOF
  23158. cat confdefs.h >>conftest.$ac_ext
  23159. cat >>conftest.$ac_ext <<_ACEOF
  23160. /* end confdefs.h. */
  23161. #include <string.h>
  23162. #include <stdlib.h>
  23163. #include <stdio.h>
  23164. #include "$LPCAPINC"
  23165. #define PCAP_TEST "0.8"
  23166. int
  23167. main ()
  23168. {
  23169. /*
  23170. * simple proggy to test the version of libpcap
  23171. * returns zero if version >= 0.8.0
  23172. * or one otherwise
  23173. */
  23174. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  23175. exit(0);
  23176. /* winpcap? */
  23177. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  23178. exit(0);
  23179. exit(1);
  23180. ;
  23181. return 0;
  23182. }
  23183. _ACEOF
  23184. rm -f conftest$ac_exeext
  23185. if { (ac_try="$ac_link"
  23186. case "(($ac_try" in
  23187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23188. *) ac_try_echo=$ac_try;;
  23189. esac
  23190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23191. (eval "$ac_link") 2>&5
  23192. ac_status=$?
  23193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23194. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23195. { (case "(($ac_try" in
  23196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23197. *) ac_try_echo=$ac_try;;
  23198. esac
  23199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23200. (eval "$ac_try") 2>&5
  23201. ac_status=$?
  23202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23203. (exit $ac_status); }; }; then
  23204. libpcap_ver8=yes
  23205. else
  23206. echo "$as_me: program exited with status $ac_status" >&5
  23207. echo "$as_me: failed program was:" >&5
  23208. sed 's/^/| /' conftest.$ac_ext >&5
  23209. ( exit $ac_status )
  23210. libpcap_ver8=no
  23211. fi
  23212. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23213. fi
  23214. if test "$cross_compiling" = yes; then
  23215. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23216. See \`config.log' for more details." >&5
  23217. echo "$as_me: error: cannot run test program while cross compiling
  23218. See \`config.log' for more details." >&2;}
  23219. { (exit 1); exit 1; }; }
  23220. else
  23221. cat >conftest.$ac_ext <<_ACEOF
  23222. /* confdefs.h. */
  23223. _ACEOF
  23224. cat confdefs.h >>conftest.$ac_ext
  23225. cat >>conftest.$ac_ext <<_ACEOF
  23226. /* end confdefs.h. */
  23227. #include <string.h>
  23228. #include <stdlib.h>
  23229. #include <stdio.h>
  23230. #include "$LPCAPINC"
  23231. #define PCAP_TEST "0.7.2"
  23232. extern const char pcap_version[]; /* double up since autoconf escapes things */
  23233. int
  23234. main ()
  23235. {
  23236. /*
  23237. * simple proggy to test the version of libpcap
  23238. * returns zero if version >= 0.7.2
  23239. * or one otherwise
  23240. */
  23241. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  23242. exit(0);
  23243. exit(1);
  23244. ;
  23245. return 0;
  23246. }
  23247. _ACEOF
  23248. rm -f conftest$ac_exeext
  23249. if { (ac_try="$ac_link"
  23250. case "(($ac_try" in
  23251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23252. *) ac_try_echo=$ac_try;;
  23253. esac
  23254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23255. (eval "$ac_link") 2>&5
  23256. ac_status=$?
  23257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23258. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23259. { (case "(($ac_try" in
  23260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23261. *) ac_try_echo=$ac_try;;
  23262. esac
  23263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23264. (eval "$ac_try") 2>&5
  23265. ac_status=$?
  23266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23267. (exit $ac_status); }; }; then
  23268. libpcap_ver7=yes
  23269. else
  23270. echo "$as_me: program exited with status $ac_status" >&5
  23271. echo "$as_me: failed program was:" >&5
  23272. sed 's/^/| /' conftest.$ac_ext >&5
  23273. ( exit $ac_status )
  23274. libpcap_ver7=no
  23275. fi
  23276. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23277. fi
  23278. if test $libpcap_ver8 = yes ; then
  23279. { echo "$as_me:$LINENO: result: >= 0.8.0" >&5
  23280. echo "${ECHO_T}>= 0.8.0" >&6; }
  23281. elif test $libpcap_ver7 = yes ; then
  23282. { echo "$as_me:$LINENO: result: >= 0.7.2" >&5
  23283. echo "${ECHO_T}>= 0.7.2" >&6; }
  23284. else
  23285. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported
  23286. Please upgrade to version 0.7.2 or better" >&5
  23287. echo "$as_me: error: Libpcap versions < 0.7.2 are not supported
  23288. Please upgrade to version 0.7.2 or better" >&2;}
  23289. { (exit 1); exit 1; }; }
  23290. fi
  23291. libpcap_version=unknown
  23292. if test $libpcap_version_096 = yes ; then
  23293. libpcap_version=">= 0.9.6"
  23294. elif test $libpcap_ver8 = yes ; then
  23295. libpcap_version=">= 0.8.0"
  23296. elif test $libcap_ver7 = yes ; then
  23297. libpcap_version=">= 0.7.0"
  23298. fi
  23299. { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  23300. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
  23301. cat >conftest.$ac_ext <<_ACEOF
  23302. /* confdefs.h. */
  23303. _ACEOF
  23304. cat confdefs.h >>conftest.$ac_ext
  23305. cat >>conftest.$ac_ext <<_ACEOF
  23306. /* end confdefs.h. */
  23307. #include <stdio.h>
  23308. #include <stdlib.h>
  23309. #include <string.h>
  23310. #include "$LPCAPINC"
  23311. int
  23312. main ()
  23313. {
  23314. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  23315. exit(0);
  23316. exit(1);
  23317. ;
  23318. return 0;
  23319. }
  23320. _ACEOF
  23321. rm -f conftest.$ac_objext conftest$ac_exeext
  23322. if { (ac_try="$ac_link"
  23323. case "(($ac_try" in
  23324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23325. *) ac_try_echo=$ac_try;;
  23326. esac
  23327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23328. (eval "$ac_link") 2>conftest.er1
  23329. ac_status=$?
  23330. grep -v '^ *+' conftest.er1 >conftest.err
  23331. rm -f conftest.er1
  23332. cat conftest.err >&5
  23333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23334. (exit $ac_status); } && {
  23335. test -z "$ac_c_werror_flag" ||
  23336. test ! -s conftest.err
  23337. } && test -s conftest$ac_exeext &&
  23338. $as_test_x conftest$ac_exeext; then
  23339. have_dlt_to_desc=yes
  23340. { echo "$as_me:$LINENO: result: yes" >&5
  23341. echo "${ECHO_T}yes" >&6; }
  23342. else
  23343. echo "$as_me: failed program was:" >&5
  23344. sed 's/^/| /' conftest.$ac_ext >&5
  23345. have_dlt_to_desc=no
  23346. { echo "$as_me:$LINENO: result: no" >&5
  23347. echo "${ECHO_T}no" >&6; }
  23348. fi
  23349. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23350. conftest$ac_exeext conftest.$ac_ext
  23351. if test $have_dlt_to_desc = yes ; then
  23352. cat >>confdefs.h <<\_ACEOF
  23353. #define HAVE_DLT_VAL_TO_DESC 1
  23354. _ACEOF
  23355. fi
  23356. { echo "$as_me:$LINENO: checking for pcap_dump_fopen" >&5
  23357. echo $ECHO_N "checking for pcap_dump_fopen... $ECHO_C" >&6; }
  23358. cat >conftest.$ac_ext <<_ACEOF
  23359. /* confdefs.h. */
  23360. _ACEOF
  23361. cat confdefs.h >>conftest.$ac_ext
  23362. cat >>conftest.$ac_ext <<_ACEOF
  23363. /* end confdefs.h. */
  23364. #include <stdio.h>
  23365. #include <stdlib.h>
  23366. #include <string.h>
  23367. #include "$LPCAPINC"
  23368. int
  23369. main ()
  23370. {
  23371. pcap_dumper_t *dump;
  23372. pcap_t *pcap;
  23373. FILE *foo;
  23374. dump = pcap_dump_fopen(pcap, foo);
  23375. ;
  23376. return 0;
  23377. }
  23378. _ACEOF
  23379. rm -f conftest.$ac_objext conftest$ac_exeext
  23380. if { (ac_try="$ac_link"
  23381. case "(($ac_try" in
  23382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23383. *) ac_try_echo=$ac_try;;
  23384. esac
  23385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23386. (eval "$ac_link") 2>conftest.er1
  23387. ac_status=$?
  23388. grep -v '^ *+' conftest.er1 >conftest.err
  23389. rm -f conftest.er1
  23390. cat conftest.err >&5
  23391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23392. (exit $ac_status); } && {
  23393. test -z "$ac_c_werror_flag" ||
  23394. test ! -s conftest.err
  23395. } && test -s conftest$ac_exeext &&
  23396. $as_test_x conftest$ac_exeext; then
  23397. have_pcap_dump_fopen=yes
  23398. { echo "$as_me:$LINENO: result: yes" >&5
  23399. echo "${ECHO_T}yes" >&6; }
  23400. else
  23401. echo "$as_me: failed program was:" >&5
  23402. sed 's/^/| /' conftest.$ac_ext >&5
  23403. have_pcap_dump_fopen=no
  23404. { echo "$as_me:$LINENO: result: no" >&5
  23405. echo "${ECHO_T}no" >&6; }
  23406. fi
  23407. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23408. conftest$ac_exeext conftest.$ac_ext
  23409. if test $have_pcap_dump_fopen = yes ; then
  23410. cat >>confdefs.h <<\_ACEOF
  23411. #define HAVE_PCAP_DUMP_FOPEN 1
  23412. _ACEOF
  23413. else
  23414. { echo "$as_me:$LINENO: --verbose mode requires libpcap >= 0.9.0" >&5
  23415. echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  23416. fi
  23417. have_pcap_inject=no
  23418. { echo "$as_me:$LINENO: checking for pcap_inject sending support" >&5
  23419. echo $ECHO_N "checking for pcap_inject sending support... $ECHO_C" >&6; }
  23420. cat >conftest.$ac_ext <<_ACEOF
  23421. /* confdefs.h. */
  23422. _ACEOF
  23423. cat confdefs.h >>conftest.$ac_ext
  23424. cat >>conftest.$ac_ext <<_ACEOF
  23425. /* end confdefs.h. */
  23426. #include <stdio.h>
  23427. #include <stdlib.h>
  23428. #include <string.h>
  23429. #include "$LPCAPINC"
  23430. int
  23431. main ()
  23432. {
  23433. pcap_t *pcap;
  23434. char *buf;
  23435. pcap_inject(pcap, (void *)buf, 0);
  23436. ;
  23437. return 0;
  23438. }
  23439. _ACEOF
  23440. rm -f conftest.$ac_objext
  23441. if { (ac_try="$ac_compile"
  23442. case "(($ac_try" in
  23443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23444. *) ac_try_echo=$ac_try;;
  23445. esac
  23446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23447. (eval "$ac_compile") 2>conftest.er1
  23448. ac_status=$?
  23449. grep -v '^ *+' conftest.er1 >conftest.err
  23450. rm -f conftest.er1
  23451. cat conftest.err >&5
  23452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23453. (exit $ac_status); } && {
  23454. test -z "$ac_c_werror_flag" ||
  23455. test ! -s conftest.err
  23456. } && test -s conftest.$ac_objext; then
  23457. cat >>confdefs.h <<\_ACEOF
  23458. #define HAVE_PCAP_INJECT 1
  23459. _ACEOF
  23460. { echo "$as_me:$LINENO: result: yes" >&5
  23461. echo "${ECHO_T}yes" >&6; }
  23462. have_pcap_inject=yes
  23463. else
  23464. echo "$as_me: failed program was:" >&5
  23465. sed 's/^/| /' conftest.$ac_ext >&5
  23466. { echo "$as_me:$LINENO: result: no" >&5
  23467. echo "${ECHO_T}no" >&6; }
  23468. fi
  23469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23470. have_pcap_version=no
  23471. { echo "$as_me:$LINENO: checking for pcap_version" >&5
  23472. echo $ECHO_N "checking for pcap_version... $ECHO_C" >&6; }
  23473. cat >conftest.$ac_ext <<_ACEOF
  23474. /* confdefs.h. */
  23475. _ACEOF
  23476. cat confdefs.h >>conftest.$ac_ext
  23477. cat >>conftest.$ac_ext <<_ACEOF
  23478. /* end confdefs.h. */
  23479. #include <stdio.h>
  23480. #include <stdlib.h>
  23481. #include <string.h>
  23482. #include "$LPCAPINC"
  23483. extern char pcap_version[];
  23484. int
  23485. main ()
  23486. {
  23487. printf("%s", pcap_version);
  23488. ;
  23489. return 0;
  23490. }
  23491. _ACEOF
  23492. rm -f conftest.$ac_objext
  23493. if { (ac_try="$ac_compile"
  23494. case "(($ac_try" in
  23495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23496. *) ac_try_echo=$ac_try;;
  23497. esac
  23498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23499. (eval "$ac_compile") 2>conftest.er1
  23500. ac_status=$?
  23501. grep -v '^ *+' conftest.er1 >conftest.err
  23502. rm -f conftest.er1
  23503. cat conftest.err >&5
  23504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23505. (exit $ac_status); } && {
  23506. test -z "$ac_c_werror_flag" ||
  23507. test ! -s conftest.err
  23508. } && test -s conftest.$ac_objext; then
  23509. cat >>confdefs.h <<\_ACEOF
  23510. #define HAVE_PCAP_VERSION 1
  23511. _ACEOF
  23512. { echo "$as_me:$LINENO: result: yes" >&5
  23513. echo "${ECHO_T}yes" >&6; }
  23514. else
  23515. echo "$as_me: failed program was:" >&5
  23516. sed 's/^/| /' conftest.$ac_ext >&5
  23517. { echo "$as_me:$LINENO: result: no" >&5
  23518. echo "${ECHO_T}no" >&6; }
  23519. fi
  23520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23521. have_pcap_sendpacket=no
  23522. { echo "$as_me:$LINENO: checking for pcap_sendpacket sending support" >&5
  23523. echo $ECHO_N "checking for pcap_sendpacket sending support... $ECHO_C" >&6; }
  23524. cat >conftest.$ac_ext <<_ACEOF
  23525. /* confdefs.h. */
  23526. _ACEOF
  23527. cat confdefs.h >>conftest.$ac_ext
  23528. cat >>conftest.$ac_ext <<_ACEOF
  23529. /* end confdefs.h. */
  23530. #include <stdio.h>
  23531. #include <stdlib.h>
  23532. #include <string.h>
  23533. #include "$LPCAPINC"
  23534. int
  23535. main ()
  23536. {
  23537. pcap_t *pcap;
  23538. u_char *buf;
  23539. pcap_sendpacket(pcap, buf, 0);
  23540. ;
  23541. return 0;
  23542. }
  23543. _ACEOF
  23544. rm -f conftest.$ac_objext
  23545. if { (ac_try="$ac_compile"
  23546. case "(($ac_try" in
  23547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23548. *) ac_try_echo=$ac_try;;
  23549. esac
  23550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23551. (eval "$ac_compile") 2>conftest.er1
  23552. ac_status=$?
  23553. grep -v '^ *+' conftest.er1 >conftest.err
  23554. rm -f conftest.er1
  23555. cat conftest.err >&5
  23556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23557. (exit $ac_status); } && {
  23558. test -z "$ac_c_werror_flag" ||
  23559. test ! -s conftest.err
  23560. } && test -s conftest.$ac_objext; then
  23561. cat >>confdefs.h <<\_ACEOF
  23562. #define HAVE_PCAP_SENDPACKET 1
  23563. _ACEOF
  23564. { echo "$as_me:$LINENO: result: yes" >&5
  23565. echo "${ECHO_T}yes" >&6; }
  23566. have_pcap_sendpacket=yes
  23567. else
  23568. echo "$as_me: failed program was:" >&5
  23569. sed 's/^/| /' conftest.$ac_ext >&5
  23570. { echo "$as_me:$LINENO: result: no" >&5
  23571. echo "${ECHO_T}no" >&6; }
  23572. fi
  23573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23574. have_pf=no
  23575. { echo "$as_me:$LINENO: checking for PF_PACKET socket sending support" >&5
  23576. echo $ECHO_N "checking for PF_PACKET socket sending support... $ECHO_C" >&6; }
  23577. cat >conftest.$ac_ext <<_ACEOF
  23578. /* confdefs.h. */
  23579. _ACEOF
  23580. cat confdefs.h >>conftest.$ac_ext
  23581. cat >>conftest.$ac_ext <<_ACEOF
  23582. /* end confdefs.h. */
  23583. #include <sys/socket.h>
  23584. #include <netpacket/packet.h>
  23585. #include <net/ethernet.h> /* the L2 protocols */
  23586. #include <netinet/in.h> /* htons */
  23587. int
  23588. main ()
  23589. {
  23590. int pf_socket;
  23591. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  23592. ;
  23593. return 0;
  23594. }
  23595. _ACEOF
  23596. rm -f conftest.$ac_objext
  23597. if { (ac_try="$ac_compile"
  23598. case "(($ac_try" in
  23599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23600. *) ac_try_echo=$ac_try;;
  23601. esac
  23602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23603. (eval "$ac_compile") 2>conftest.er1
  23604. ac_status=$?
  23605. grep -v '^ *+' conftest.er1 >conftest.err
  23606. rm -f conftest.er1
  23607. cat conftest.err >&5
  23608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23609. (exit $ac_status); } && {
  23610. test -z "$ac_c_werror_flag" ||
  23611. test ! -s conftest.err
  23612. } && test -s conftest.$ac_objext; then
  23613. cat >>confdefs.h <<\_ACEOF
  23614. #define HAVE_PF_PACKET 1
  23615. _ACEOF
  23616. { echo "$as_me:$LINENO: result: yes" >&5
  23617. echo "${ECHO_T}yes" >&6; }
  23618. have_pf=yes
  23619. else
  23620. echo "$as_me: failed program was:" >&5
  23621. sed 's/^/| /' conftest.$ac_ext >&5
  23622. { echo "$as_me:$LINENO: result: no" >&5
  23623. echo "${ECHO_T}no" >&6; }
  23624. fi
  23625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23626. have_bpf=no
  23627. { echo "$as_me:$LINENO: checking for BPF device sending support" >&5
  23628. echo $ECHO_N "checking for BPF device sending support... $ECHO_C" >&6; }
  23629. if test "$cross_compiling" = yes; then
  23630. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23631. See \`config.log' for more details." >&5
  23632. echo "$as_me: error: cannot run test program while cross compiling
  23633. See \`config.log' for more details." >&2;}
  23634. { (exit 1); exit 1; }; }
  23635. else
  23636. cat >conftest.$ac_ext <<_ACEOF
  23637. /* confdefs.h. */
  23638. _ACEOF
  23639. cat confdefs.h >>conftest.$ac_ext
  23640. cat >>conftest.$ac_ext <<_ACEOF
  23641. /* end confdefs.h. */
  23642. #include <stdio.h>
  23643. #include <stdlib.h>
  23644. #include <net/bpf.h>
  23645. #include <sys/types.h>
  23646. #include <sys/socket.h>
  23647. #include <fcntl.h>
  23648. #include <sys/time.h>
  23649. #include <sys/ioctl.h>
  23650. #include <net/bpf.h>
  23651. #include <errno.h>
  23652. int
  23653. main(int argc, char *argv[]) {
  23654. int fd;
  23655. fd = open("/dev/bpf0", O_RDONLY, 0);
  23656. /* if we opened it, we're good */
  23657. if (fd > 1)
  23658. exit(0);
  23659. /* if we got EBUSY or permission denied it exists, so we're good */
  23660. if (fd < 0 && (errno == EBUSY || errno == 13))
  23661. exit(0);
  23662. /* else suck, no good */
  23663. exit(-1);
  23664. }
  23665. _ACEOF
  23666. rm -f conftest$ac_exeext
  23667. if { (ac_try="$ac_link"
  23668. case "(($ac_try" in
  23669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23670. *) ac_try_echo=$ac_try;;
  23671. esac
  23672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23673. (eval "$ac_link") 2>&5
  23674. ac_status=$?
  23675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23676. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23677. { (case "(($ac_try" in
  23678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23679. *) ac_try_echo=$ac_try;;
  23680. esac
  23681. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23682. (eval "$ac_try") 2>&5
  23683. ac_status=$?
  23684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23685. (exit $ac_status); }; }; then
  23686. cat >>confdefs.h <<\_ACEOF
  23687. #define HAVE_BPF 1
  23688. _ACEOF
  23689. { echo "$as_me:$LINENO: result: yes" >&5
  23690. echo "${ECHO_T}yes" >&6; }
  23691. have_bpf=yes
  23692. else
  23693. echo "$as_me: program exited with status $ac_status" >&5
  23694. echo "$as_me: failed program was:" >&5
  23695. sed 's/^/| /' conftest.$ac_ext >&5
  23696. ( exit $ac_status )
  23697. { echo "$as_me:$LINENO: result: no" >&5
  23698. echo "${ECHO_T}no" >&6; }
  23699. fi
  23700. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23701. fi
  23702. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  23703. -a $have_libnet = no -a $have_pf = no ; then
  23704. { { echo "$as_me:$LINENO: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&5
  23705. echo "$as_me: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&2;}
  23706. { (exit 1); exit 1; }; }
  23707. fi
  23708. enable_tcpbridge=yes
  23709. if test $have_bpf = no -a $have_libnet = no -a $have_pf = no ; then
  23710. { echo "$as_me:$LINENO: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&5
  23711. echo "$as_me: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&6;}
  23712. enable_tcpbridge=no
  23713. fi
  23714. # ADT: Commented for now
  23715. # AM_CONDITIONAL(ENABLE_TCPBRIDGE, [test $enable_tcpbridge = yes])
  23716. { echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  23717. echo $ECHO_N "checking for DLT_LINUX_SLL in libpcap... $ECHO_C" >&6; }
  23718. cat >conftest.$ac_ext <<_ACEOF
  23719. /* confdefs.h. */
  23720. _ACEOF
  23721. cat confdefs.h >>conftest.$ac_ext
  23722. cat >>conftest.$ac_ext <<_ACEOF
  23723. /* end confdefs.h. */
  23724. #include "$LPCAPINC"
  23725. int
  23726. main ()
  23727. {
  23728. int foo;
  23729. foo = DLT_LINUX_SLL
  23730. ;
  23731. return 0;
  23732. }
  23733. _ACEOF
  23734. rm -f conftest.$ac_objext
  23735. if { (ac_try="$ac_compile"
  23736. case "(($ac_try" in
  23737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23738. *) ac_try_echo=$ac_try;;
  23739. esac
  23740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23741. (eval "$ac_compile") 2>conftest.er1
  23742. ac_status=$?
  23743. grep -v '^ *+' conftest.er1 >conftest.err
  23744. rm -f conftest.er1
  23745. cat conftest.err >&5
  23746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23747. (exit $ac_status); } && {
  23748. test -z "$ac_c_werror_flag" ||
  23749. test ! -s conftest.err
  23750. } && test -s conftest.$ac_objext; then
  23751. cat >>confdefs.h <<\_ACEOF
  23752. #define HAVE_DLT_LINUX_SLL 1
  23753. _ACEOF
  23754. { echo "$as_me:$LINENO: result: yes" >&5
  23755. echo "${ECHO_T}yes" >&6; }
  23756. else
  23757. echo "$as_me: failed program was:" >&5
  23758. sed 's/^/| /' conftest.$ac_ext >&5
  23759. { echo "$as_me:$LINENO: result: no" >&5
  23760. echo "${ECHO_T}no" >&6; }
  23761. fi
  23762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23763. { echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  23764. echo $ECHO_N "checking for DLT_C_HDLC in libpcap... $ECHO_C" >&6; }
  23765. cat >conftest.$ac_ext <<_ACEOF
  23766. /* confdefs.h. */
  23767. _ACEOF
  23768. cat confdefs.h >>conftest.$ac_ext
  23769. cat >>conftest.$ac_ext <<_ACEOF
  23770. /* end confdefs.h. */
  23771. #include "$LPCAPINC"
  23772. int
  23773. main ()
  23774. {
  23775. int foo;
  23776. foo = DLT_C_HDLC
  23777. ;
  23778. return 0;
  23779. }
  23780. _ACEOF
  23781. rm -f conftest.$ac_objext
  23782. if { (ac_try="$ac_compile"
  23783. case "(($ac_try" in
  23784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23785. *) ac_try_echo=$ac_try;;
  23786. esac
  23787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23788. (eval "$ac_compile") 2>conftest.er1
  23789. ac_status=$?
  23790. grep -v '^ *+' conftest.er1 >conftest.err
  23791. rm -f conftest.er1
  23792. cat conftest.err >&5
  23793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23794. (exit $ac_status); } && {
  23795. test -z "$ac_c_werror_flag" ||
  23796. test ! -s conftest.err
  23797. } && test -s conftest.$ac_objext; then
  23798. cat >>confdefs.h <<\_ACEOF
  23799. #define HAVE_DLT_C_HDLC 1
  23800. _ACEOF
  23801. { echo "$as_me:$LINENO: result: yes" >&5
  23802. echo "${ECHO_T}yes" >&6; }
  23803. else
  23804. echo "$as_me: failed program was:" >&5
  23805. sed 's/^/| /' conftest.$ac_ext >&5
  23806. { echo "$as_me:$LINENO: result: no" >&5
  23807. echo "${ECHO_T}no" >&6; }
  23808. fi
  23809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23810. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  23811. { echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  23812. echo $ECHO_N "checking for $PCAP_BPF_H_FILE... $ECHO_C" >&6; }
  23813. cat >conftest.$ac_ext <<_ACEOF
  23814. /* confdefs.h. */
  23815. _ACEOF
  23816. cat confdefs.h >>conftest.$ac_ext
  23817. cat >>conftest.$ac_ext <<_ACEOF
  23818. /* end confdefs.h. */
  23819. #include <sys/types.h>
  23820. #include <sys/time.h>
  23821. #include "$PCAP_BPF_H_FILE"
  23822. int
  23823. main ()
  23824. {
  23825. int foo;
  23826. foo = BPF_MAJOR_VERSION;
  23827. ;
  23828. return 0;
  23829. }
  23830. _ACEOF
  23831. rm -f conftest.$ac_objext
  23832. if { (ac_try="$ac_compile"
  23833. case "(($ac_try" in
  23834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23835. *) ac_try_echo=$ac_try;;
  23836. esac
  23837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23838. (eval "$ac_compile") 2>conftest.er1
  23839. ac_status=$?
  23840. grep -v '^ *+' conftest.er1 >conftest.err
  23841. rm -f conftest.er1
  23842. cat conftest.err >&5
  23843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23844. (exit $ac_status); } && {
  23845. test -z "$ac_c_werror_flag" ||
  23846. test ! -s conftest.err
  23847. } && test -s conftest.$ac_objext; then
  23848. cat >>confdefs.h <<\_ACEOF
  23849. #define INCLUDE_PCAP_BPF_HEADER 1
  23850. _ACEOF
  23851. { echo "$as_me:$LINENO: result: yes" >&5
  23852. echo "${ECHO_T}yes" >&6; }
  23853. else
  23854. echo "$as_me: failed program was:" >&5
  23855. sed 's/^/| /' conftest.$ac_ext >&5
  23856. { echo "$as_me:$LINENO: result: no" >&5
  23857. echo "${ECHO_T}no" >&6; }
  23858. fi
  23859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23860. foundbpfheader=no
  23861. { echo "$as_me:$LINENO: checking for libpcap bpf header" >&5
  23862. echo $ECHO_N "checking for libpcap bpf header... $ECHO_C" >&6; }
  23863. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  23864. if test -f "${testfile}" -a $foundbpfheader = no ; then
  23865. cat >conftest.$ac_ext <<_ACEOF
  23866. /* confdefs.h. */
  23867. _ACEOF
  23868. cat confdefs.h >>conftest.$ac_ext
  23869. cat >>conftest.$ac_ext <<_ACEOF
  23870. /* end confdefs.h. */
  23871. #include <sys/types.h>
  23872. #include <sys/time.h>
  23873. #include "$testfile"
  23874. int
  23875. main ()
  23876. {
  23877. int foo;
  23878. foo = BPF_MAJOR_VERSION;
  23879. ;
  23880. return 0;
  23881. }
  23882. _ACEOF
  23883. rm -f conftest.$ac_objext
  23884. if { (ac_try="$ac_compile"
  23885. case "(($ac_try" in
  23886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23887. *) ac_try_echo=$ac_try;;
  23888. esac
  23889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23890. (eval "$ac_compile") 2>conftest.er1
  23891. ac_status=$?
  23892. grep -v '^ *+' conftest.er1 >conftest.err
  23893. rm -f conftest.er1
  23894. cat conftest.err >&5
  23895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23896. (exit $ac_status); } && {
  23897. test -z "$ac_c_werror_flag" ||
  23898. test ! -s conftest.err
  23899. } && test -s conftest.$ac_objext; then
  23900. foundbpfheader=yes
  23901. PCAP_BPF_H_FILE=$testfile
  23902. cat >>confdefs.h <<\_ACEOF
  23903. #define INCLUDE_PCAP_BPF_HEADER 1
  23904. _ACEOF
  23905. { echo "$as_me:$LINENO: result: $testfile" >&5
  23906. echo "${ECHO_T}$testfile" >&6; }
  23907. else
  23908. echo "$as_me: failed program was:" >&5
  23909. sed 's/^/| /' conftest.$ac_ext >&5
  23910. { echo "$as_me:$LINENO: result: no" >&5
  23911. echo "${ECHO_T}no" >&6; }
  23912. fi
  23913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23914. fi
  23915. done
  23916. LIBS="$OLDLIBS"
  23917. CFLAGS="$OLDCFLAGS"
  23918. pcapnav_ver=no
  23919. pcncfg=no
  23920. # Check whether --with-pcapnav-config was given.
  23921. if test "${with_pcapnav_config+set}" = set; then
  23922. withval=$with_pcapnav_config; { echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  23923. echo $ECHO_N "checking for pcapnav-config... $ECHO_C" >&6; }
  23924. if test -x $withval ; then
  23925. pcncfg=$withval
  23926. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23927. echo "${ECHO_T}$pcncfg" >&6; }
  23928. elif test x$withval = xno ; then
  23929. { echo "$as_me:$LINENO: result: no" >&5
  23930. echo "${ECHO_T}no" >&6; }
  23931. else
  23932. { echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  23933. echo "${ECHO_T}Can't find pcapnav-config: disabling offset jump feature" >&6; }
  23934. fi
  23935. else
  23936. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  23937. set dummy pcapnav-config; ac_word=$2
  23938. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23939. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23940. if test "${ac_cv_path_pcncfg+set}" = set; then
  23941. echo $ECHO_N "(cached) $ECHO_C" >&6
  23942. else
  23943. case $pcncfg in
  23944. [\\/]* | ?:[\\/]*)
  23945. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  23946. ;;
  23947. *)
  23948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23949. for as_dir in $PATH
  23950. do
  23951. IFS=$as_save_IFS
  23952. test -z "$as_dir" && as_dir=.
  23953. for ac_exec_ext in '' $ac_executable_extensions; do
  23954. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23955. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  23956. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23957. break 2
  23958. fi
  23959. done
  23960. done
  23961. IFS=$as_save_IFS
  23962. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  23963. ;;
  23964. esac
  23965. fi
  23966. pcncfg=$ac_cv_path_pcncfg
  23967. if test -n "$pcncfg"; then
  23968. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23969. echo "${ECHO_T}$pcncfg" >&6; }
  23970. else
  23971. { echo "$as_me:$LINENO: result: no" >&5
  23972. echo "${ECHO_T}no" >&6; }
  23973. fi
  23974. fi
  23975. if test $pcncfg != no ; then
  23976. LNAVLIB=`$pcncfg --libs`
  23977. LNAV_CFLAGS=`$pcncfg --cflags`
  23978. PCAPNAV_VERSION=`$pcncfg --version`
  23979. cat >>confdefs.h <<_ACEOF
  23980. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  23981. _ACEOF
  23982. { echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  23983. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6; }
  23984. if test "$cross_compiling" = yes; then
  23985. libpcapnav_ver=no
  23986. else
  23987. cat >conftest.$ac_ext <<_ACEOF
  23988. /* confdefs.h. */
  23989. _ACEOF
  23990. cat confdefs.h >>conftest.$ac_ext
  23991. cat >>conftest.$ac_ext <<_ACEOF
  23992. /* end confdefs.h. */
  23993. #include <string.h>
  23994. #define PCAPNAV_TEST "0.4"
  23995. /*
  23996. * simple proggy to test the version of libpcapnav
  23997. * returns zero if version >= 0.4
  23998. * or one otherwise
  23999. */
  24000. int
  24001. main (int argc, char *argv[])
  24002. {
  24003. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  24004. exit(0);
  24005. exit(1);
  24006. }
  24007. _ACEOF
  24008. rm -f conftest$ac_exeext
  24009. if { (ac_try="$ac_link"
  24010. case "(($ac_try" in
  24011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24012. *) ac_try_echo=$ac_try;;
  24013. esac
  24014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24015. (eval "$ac_link") 2>&5
  24016. ac_status=$?
  24017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24018. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24019. { (case "(($ac_try" in
  24020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24021. *) ac_try_echo=$ac_try;;
  24022. esac
  24023. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24024. (eval "$ac_try") 2>&5
  24025. ac_status=$?
  24026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24027. (exit $ac_status); }; }; then
  24028. libpcapnav_ver=yes
  24029. { echo "$as_me:$LINENO: result: >= 0.4" >&5
  24030. echo "${ECHO_T}>= 0.4" >&6; }
  24031. else
  24032. echo "$as_me: program exited with status $ac_status" >&5
  24033. echo "$as_me: failed program was:" >&5
  24034. sed 's/^/| /' conftest.$ac_ext >&5
  24035. ( exit $ac_status )
  24036. libpcapnav_ver=no
  24037. { echo "$as_me:$LINENO: result: < 0.4" >&5
  24038. echo "${ECHO_T}< 0.4" >&6; }
  24039. fi
  24040. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24041. fi
  24042. if test x$libpcapnav_ver = xno ; then
  24043. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  24044. Please upgrade to version 0.4 or better.
  24045. Disabling offset jump feature." >&5
  24046. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  24047. Please upgrade to version 0.4 or better.
  24048. Disabling offset jump feature." >&2;}
  24049. else
  24050. cat >>confdefs.h <<\_ACEOF
  24051. #define HAVE_PCAPNAV 1
  24052. _ACEOF
  24053. fi
  24054. fi # checking pcapnav version
  24055. { echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  24056. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6; }
  24057. if test "${unaligned_fail+set}" = set; then
  24058. echo $ECHO_N "(cached) $ECHO_C" >&6
  24059. else
  24060. case "$host_cpu" in
  24061. # XXX: should also check that they don't do weird things (like on arm)
  24062. alpha*|arm*|hp*|mips*|sparc*|ia64)
  24063. unaligned_fail=yes
  24064. ;;
  24065. *)
  24066. cat >conftest.c <<EOF
  24067. #include <sys/types.h>
  24068. #include <sys/wait.h>
  24069. #include <stdio.h>
  24070. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  24071. main() {
  24072. unsigned int i;
  24073. pid_t pid;
  24074. int status;
  24075. /* avoid "core dumped" message */
  24076. pid = fork();
  24077. if (pid < 0)
  24078. exit(2);
  24079. if (pid > 0) {
  24080. /* parent */
  24081. pid = waitpid(pid, &status, 0);
  24082. if (pid < 0)
  24083. exit(3);
  24084. exit(!WIFEXITED(status));
  24085. }
  24086. /* child */
  24087. i = *(unsigned int *)&a[1];
  24088. printf("%d\n", i);
  24089. exit(0);
  24090. }
  24091. EOF
  24092. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  24093. conftest.c $LIBS >/dev/null 2>&1
  24094. if test ! -x conftest ; then
  24095. unaligned_fail=yes
  24096. else
  24097. ./conftest >conftest.out
  24098. if test ! -s conftest.out ; then
  24099. unaligned_fail=yes
  24100. else
  24101. unaligned_fail=no
  24102. fi
  24103. fi
  24104. rm -f conftest* core core.conftest
  24105. ;;
  24106. esac
  24107. fi
  24108. { echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  24109. echo "${ECHO_T}$unaligned_fail" >&6; }
  24110. if test $unaligned_fail = yes ; then
  24111. cat >>confdefs.h <<\_ACEOF
  24112. #define FORCE_ALIGN 1
  24113. _ACEOF
  24114. fi
  24115. tcpdump_path=no
  24116. # Check whether --with-tcpdump was given.
  24117. if test "${with_tcpdump+set}" = set; then
  24118. withval=$with_tcpdump; if test -x $withval ; then
  24119. td=$withval
  24120. { echo "$as_me:$LINENO: result: Using tcpdump in $tcpdump_path" >&5
  24121. echo "${ECHO_T}Using tcpdump in $tcpdump_path" >&6; }
  24122. else
  24123. { echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  24124. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6; }
  24125. fi
  24126. else
  24127. # Extract the first word of "tcpdump", so it can be a program name with args.
  24128. set dummy tcpdump; ac_word=$2
  24129. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  24130. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24131. if test "${ac_cv_path_tcpdump_path+set}" = set; then
  24132. echo $ECHO_N "(cached) $ECHO_C" >&6
  24133. else
  24134. case $tcpdump_path in
  24135. [\\/]* | ?:[\\/]*)
  24136. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  24137. ;;
  24138. *)
  24139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24140. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  24141. for as_dir in $as_dummy
  24142. do
  24143. IFS=$as_save_IFS
  24144. test -z "$as_dir" && as_dir=.
  24145. for ac_exec_ext in '' $ac_executable_extensions; do
  24146. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24147. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  24148. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24149. break 2
  24150. fi
  24151. done
  24152. done
  24153. IFS=$as_save_IFS
  24154. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  24155. ;;
  24156. esac
  24157. fi
  24158. tcpdump_path=$ac_cv_path_tcpdump_path
  24159. if test -n "$tcpdump_path"; then
  24160. { echo "$as_me:$LINENO: result: $tcpdump_path" >&5
  24161. echo "${ECHO_T}$tcpdump_path" >&6; }
  24162. else
  24163. { echo "$as_me:$LINENO: result: no" >&5
  24164. echo "${ECHO_T}no" >&6; }
  24165. fi
  24166. fi
  24167. if test "$tcpdump_path" = "no"; then
  24168. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  24169. Disabling --verbose" >&5
  24170. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  24171. Disabling --verbose" >&2;}
  24172. else
  24173. cat >>confdefs.h <<\_ACEOF
  24174. #define HAVE_TCPDUMP 1
  24175. _ACEOF
  24176. cat >>confdefs.h <<_ACEOF
  24177. #define TCPDUMP_BINARY "$tcpdump_path"
  24178. _ACEOF
  24179. fi
  24180. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  24181. ENABLE_TCPDUMP_TRUE=
  24182. ENABLE_TCPDUMP_FALSE='#'
  24183. else
  24184. ENABLE_TCPDUMP_TRUE='#'
  24185. ENABLE_TCPDUMP_FALSE=
  24186. fi
  24187. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  24188. cat >>confdefs.h <<\_ACEOF
  24189. #define ENABLE_VERBOSE 1
  24190. _ACEOF
  24191. else
  24192. { echo "$as_me:$LINENO: WARNING: Your version of libpcap is too old for --verbose support" >&5
  24193. echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  24194. fi
  24195. { echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  24196. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6; }
  24197. if test "$host" != "$build" ; then
  24198. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  24199. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  24200. fi
  24201. # Check whether --with-testnic was given.
  24202. if test "${with_testnic+set}" = set; then
  24203. withval=$with_testnic; nic1=$withval
  24204. nic2=$withval
  24205. { echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  24206. echo "${ECHO_T}Using --with-testnic=$withval" >&6; }
  24207. else
  24208. disable_pcap_findalldevs=no
  24209. case $host in
  24210. *-*-linux*)
  24211. nic1=eth0
  24212. nic2=eth0
  24213. { echo "$as_me:$LINENO: result: Linux" >&5
  24214. echo "${ECHO_T}Linux" >&6; }
  24215. ;;
  24216. *-*-solaris*)
  24217. nic1=hme0
  24218. nic2=hme0
  24219. { echo "$as_me:$LINENO: result: Solaris" >&5
  24220. echo "${ECHO_T}Solaris" >&6; }
  24221. ;;
  24222. *-*-sunos*)
  24223. nic1=hme0
  24224. nic2=hme0
  24225. { echo "$as_me:$LINENO: result: SunOS" >&5
  24226. echo "${ECHO_T}SunOS" >&6; }
  24227. ;;
  24228. *-apple-darwin*)
  24229. nic1=en0
  24230. nic2=en0
  24231. if test x$libpcap_version_096 = xno ; then
  24232. disable_pcap_findalldevs=yes
  24233. fi
  24234. { echo "$as_me:$LINENO: result: Apple OS X" >&5
  24235. echo "${ECHO_T}Apple OS X" >&6; }
  24236. ;;
  24237. *-*-openbsd*)
  24238. nic1=xl0
  24239. nic2=xl0
  24240. { echo "$as_me:$LINENO: result: OpenBSD" >&5
  24241. echo "${ECHO_T}OpenBSD" >&6; }
  24242. ;;
  24243. *-*-cygwin)
  24244. { echo "$as_me:$LINENO: result: Win32/Cygwin" >&5
  24245. echo "${ECHO_T}Win32/Cygwin" >&6; }
  24246. nic1=%0
  24247. nic2=%0
  24248. ;;
  24249. *)
  24250. { echo "$as_me:$LINENO: result: $host is unknown! Using first non-loopback interface" >&5
  24251. echo "${ECHO_T}$host is unknown! Using first non-loopback interface" >&6; }
  24252. nic1=%0
  24253. nic2=%0
  24254. ;;
  24255. esac
  24256. fi
  24257. # Check whether --with-testnic2 was given.
  24258. if test "${with_testnic2+set}" = set; then
  24259. withval=$with_testnic2; nic2=$withval
  24260. fi
  24261. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  24262. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  24263. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  24264. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  24265. { echo "$as_me:$LINENO: checking if it's ok to use pcap_findalldevs()" >&5
  24266. echo $ECHO_N "checking if it's ok to use pcap_findalldevs()... $ECHO_C" >&6; }
  24267. if test x$disable_pcap_findalldevs = xno ; then
  24268. cat >>confdefs.h <<\_ACEOF
  24269. #define ENABLE_PCAP_FINDALLDEVS 1
  24270. _ACEOF
  24271. { echo "$as_me:$LINENO: result: yes" >&5
  24272. echo "${ECHO_T}yes" >&6; }
  24273. else
  24274. { echo "$as_me:$LINENO: result: no" >&5
  24275. echo "${ECHO_T}no" >&6; }
  24276. fi
  24277. NEED_LIBOPTS_DIR=''
  24278. LIBOPTS_DIR=libopts
  24279. # Check whether --enable-local-libopts was given.
  24280. if test "${enable_local_libopts+set}" = set; then
  24281. enableval=$enable_local_libopts;
  24282. if test x$enableval = xyes ; then
  24283. { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  24284. echo "$as_me: Using supplied libopts tearoff" >&6;}
  24285. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24286. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24287. NEED_LIBOPTS_DIR=true
  24288. fi
  24289. fi
  24290. # Check whether --enable-libopts-install was given.
  24291. if test "${enable_libopts_install+set}" = set; then
  24292. enableval=$enable_libopts_install;
  24293. fi
  24294. if test "X${enable_libopts_install}" != Xno; then
  24295. INSTALL_LIBOPTS_TRUE=
  24296. INSTALL_LIBOPTS_FALSE='#'
  24297. else
  24298. INSTALL_LIBOPTS_TRUE='#'
  24299. INSTALL_LIBOPTS_FALSE=
  24300. fi
  24301. if test -z "${NEED_LIBOPTS_DIR}" ; then
  24302. { echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  24303. echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6; }
  24304. # Check whether --with-autoopts-config was given.
  24305. if test "${with_autoopts_config+set}" = set; then
  24306. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  24307. else
  24308. { echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  24309. echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6; }
  24310. if test "${lo_cv_with_autoopts_config+set}" = set; then
  24311. echo $ECHO_N "(cached) $ECHO_C" >&6
  24312. else
  24313. if autoopts-config --help 2>/dev/null 1>&2
  24314. then lo_cv_with_autoopts_config=autoopts-config
  24315. elif libopts-config --help 2>/dev/null 1>&2
  24316. then lo_cv_with_autoopts_config=libopts-config
  24317. else lo_cv_with_autoopts_config=no ; fi
  24318. fi
  24319. { echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  24320. echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6; }
  24321. fi
  24322. # end of AC_ARG_WITH
  24323. if test "${lo_cv_test_autoopts+set}" = set; then
  24324. echo $ECHO_N "(cached) $ECHO_C" >&6
  24325. else
  24326. if test -z "${lo_cv_with_autoopts_config}" \
  24327. -o X"${lo_cv_with_autoopts_config}" = Xno
  24328. then
  24329. if autoopts-config --help 2>/dev/null 1>&2
  24330. then lo_cv_with_autoopts_config=autoopts-config
  24331. elif libopts-config --help 2>/dev/null 1>&2
  24332. then lo_cv_with_autoopts_config=libopts-config
  24333. else lo_cv_with_autoopts_config=false ; fi
  24334. fi
  24335. lo_cv_test_autoopts=`
  24336. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  24337. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  24338. then lo_cv_test_autoopts=no ; fi
  24339. fi
  24340. # end of CACHE_VAL
  24341. { echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  24342. echo "${ECHO_T}${lo_cv_test_autoopts}" >&6; }
  24343. if test "X${lo_cv_test_autoopts}" != Xno
  24344. then
  24345. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  24346. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  24347. else
  24348. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24349. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24350. NEED_LIBOPTS_DIR=true
  24351. fi
  24352. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  24353. if test -n "${NEED_LIBOPTS_DIR}"; then
  24354. NEED_LIBOPTS_TRUE=
  24355. NEED_LIBOPTS_FALSE='#'
  24356. else
  24357. NEED_LIBOPTS_TRUE='#'
  24358. NEED_LIBOPTS_FALSE=
  24359. fi
  24360. LIBOPTS_DIR=libopts
  24361. ac_config_files="$ac_config_files libopts/Makefile"
  24362. if test -n "${NEED_LIBOPTS_DIR}" ; then
  24363. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  24364. # =================
  24365. # AC_HEADER_STDC
  24366. # =================
  24367. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  24368. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  24369. if test "${ac_cv_header_stdc+set}" = set; then
  24370. echo $ECHO_N "(cached) $ECHO_C" >&6
  24371. else
  24372. cat >conftest.$ac_ext <<_ACEOF
  24373. /* confdefs.h. */
  24374. _ACEOF
  24375. cat confdefs.h >>conftest.$ac_ext
  24376. cat >>conftest.$ac_ext <<_ACEOF
  24377. /* end confdefs.h. */
  24378. #include <stdlib.h>
  24379. #include <stdarg.h>
  24380. #include <string.h>
  24381. #include <float.h>
  24382. int
  24383. main ()
  24384. {
  24385. ;
  24386. return 0;
  24387. }
  24388. _ACEOF
  24389. rm -f conftest.$ac_objext
  24390. if { (ac_try="$ac_compile"
  24391. case "(($ac_try" in
  24392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24393. *) ac_try_echo=$ac_try;;
  24394. esac
  24395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24396. (eval "$ac_compile") 2>conftest.er1
  24397. ac_status=$?
  24398. grep -v '^ *+' conftest.er1 >conftest.err
  24399. rm -f conftest.er1
  24400. cat conftest.err >&5
  24401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24402. (exit $ac_status); } && {
  24403. test -z "$ac_c_werror_flag" ||
  24404. test ! -s conftest.err
  24405. } && test -s conftest.$ac_objext; then
  24406. ac_cv_header_stdc=yes
  24407. else
  24408. echo "$as_me: failed program was:" >&5
  24409. sed 's/^/| /' conftest.$ac_ext >&5
  24410. ac_cv_header_stdc=no
  24411. fi
  24412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24413. if test $ac_cv_header_stdc = yes; then
  24414. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  24415. cat >conftest.$ac_ext <<_ACEOF
  24416. /* confdefs.h. */
  24417. _ACEOF
  24418. cat confdefs.h >>conftest.$ac_ext
  24419. cat >>conftest.$ac_ext <<_ACEOF
  24420. /* end confdefs.h. */
  24421. #include <string.h>
  24422. _ACEOF
  24423. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24424. $EGREP "memchr" >/dev/null 2>&1; then
  24425. :
  24426. else
  24427. ac_cv_header_stdc=no
  24428. fi
  24429. rm -f conftest*
  24430. fi
  24431. if test $ac_cv_header_stdc = yes; then
  24432. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  24433. cat >conftest.$ac_ext <<_ACEOF
  24434. /* confdefs.h. */
  24435. _ACEOF
  24436. cat confdefs.h >>conftest.$ac_ext
  24437. cat >>conftest.$ac_ext <<_ACEOF
  24438. /* end confdefs.h. */
  24439. #include <stdlib.h>
  24440. _ACEOF
  24441. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24442. $EGREP "free" >/dev/null 2>&1; then
  24443. :
  24444. else
  24445. ac_cv_header_stdc=no
  24446. fi
  24447. rm -f conftest*
  24448. fi
  24449. if test $ac_cv_header_stdc = yes; then
  24450. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  24451. if test "$cross_compiling" = yes; then
  24452. :
  24453. else
  24454. cat >conftest.$ac_ext <<_ACEOF
  24455. /* confdefs.h. */
  24456. _ACEOF
  24457. cat confdefs.h >>conftest.$ac_ext
  24458. cat >>conftest.$ac_ext <<_ACEOF
  24459. /* end confdefs.h. */
  24460. #include <ctype.h>
  24461. #include <stdlib.h>
  24462. #if ((' ' & 0x0FF) == 0x020)
  24463. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  24464. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  24465. #else
  24466. # define ISLOWER(c) \
  24467. (('a' <= (c) && (c) <= 'i') \
  24468. || ('j' <= (c) && (c) <= 'r') \
  24469. || ('s' <= (c) && (c) <= 'z'))
  24470. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  24471. #endif
  24472. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  24473. int
  24474. main ()
  24475. {
  24476. int i;
  24477. for (i = 0; i < 256; i++)
  24478. if (XOR (islower (i), ISLOWER (i))
  24479. || toupper (i) != TOUPPER (i))
  24480. return 2;
  24481. return 0;
  24482. }
  24483. _ACEOF
  24484. rm -f conftest$ac_exeext
  24485. if { (ac_try="$ac_link"
  24486. case "(($ac_try" in
  24487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24488. *) ac_try_echo=$ac_try;;
  24489. esac
  24490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24491. (eval "$ac_link") 2>&5
  24492. ac_status=$?
  24493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24494. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24495. { (case "(($ac_try" in
  24496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24497. *) ac_try_echo=$ac_try;;
  24498. esac
  24499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24500. (eval "$ac_try") 2>&5
  24501. ac_status=$?
  24502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24503. (exit $ac_status); }; }; then
  24504. :
  24505. else
  24506. echo "$as_me: program exited with status $ac_status" >&5
  24507. echo "$as_me: failed program was:" >&5
  24508. sed 's/^/| /' conftest.$ac_ext >&5
  24509. ( exit $ac_status )
  24510. ac_cv_header_stdc=no
  24511. fi
  24512. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24513. fi
  24514. fi
  24515. fi
  24516. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24517. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  24518. if test $ac_cv_header_stdc = yes; then
  24519. cat >>confdefs.h <<\_ACEOF
  24520. #define STDC_HEADERS 1
  24521. _ACEOF
  24522. fi
  24523. # =================
  24524. # AC_HEADER_DIRENT
  24525. # =================
  24526. ac_header_dirent=no
  24527. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24528. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  24529. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  24530. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  24531. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24532. echo $ECHO_N "(cached) $ECHO_C" >&6
  24533. else
  24534. cat >conftest.$ac_ext <<_ACEOF
  24535. /* confdefs.h. */
  24536. _ACEOF
  24537. cat confdefs.h >>conftest.$ac_ext
  24538. cat >>conftest.$ac_ext <<_ACEOF
  24539. /* end confdefs.h. */
  24540. #include <sys/types.h>
  24541. #include <$ac_hdr>
  24542. int
  24543. main ()
  24544. {
  24545. if ((DIR *) 0)
  24546. return 0;
  24547. ;
  24548. return 0;
  24549. }
  24550. _ACEOF
  24551. rm -f conftest.$ac_objext
  24552. if { (ac_try="$ac_compile"
  24553. case "(($ac_try" in
  24554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24555. *) ac_try_echo=$ac_try;;
  24556. esac
  24557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24558. (eval "$ac_compile") 2>conftest.er1
  24559. ac_status=$?
  24560. grep -v '^ *+' conftest.er1 >conftest.err
  24561. rm -f conftest.er1
  24562. cat conftest.err >&5
  24563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24564. (exit $ac_status); } && {
  24565. test -z "$ac_c_werror_flag" ||
  24566. test ! -s conftest.err
  24567. } && test -s conftest.$ac_objext; then
  24568. eval "$as_ac_Header=yes"
  24569. else
  24570. echo "$as_me: failed program was:" >&5
  24571. sed 's/^/| /' conftest.$ac_ext >&5
  24572. eval "$as_ac_Header=no"
  24573. fi
  24574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24575. fi
  24576. ac_res=`eval echo '${'$as_ac_Header'}'`
  24577. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24578. echo "${ECHO_T}$ac_res" >&6; }
  24579. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24580. cat >>confdefs.h <<_ACEOF
  24581. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  24582. _ACEOF
  24583. ac_header_dirent=$ac_hdr; break
  24584. fi
  24585. done
  24586. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24587. if test $ac_header_dirent = dirent.h; then
  24588. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24589. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24590. if test "${ac_cv_search_opendir+set}" = set; then
  24591. echo $ECHO_N "(cached) $ECHO_C" >&6
  24592. else
  24593. ac_func_search_save_LIBS=$LIBS
  24594. cat >conftest.$ac_ext <<_ACEOF
  24595. /* confdefs.h. */
  24596. _ACEOF
  24597. cat confdefs.h >>conftest.$ac_ext
  24598. cat >>conftest.$ac_ext <<_ACEOF
  24599. /* end confdefs.h. */
  24600. /* Override any GCC internal prototype to avoid an error.
  24601. Use char because int might match the return type of a GCC
  24602. builtin and then its argument prototype would still apply. */
  24603. #ifdef __cplusplus
  24604. extern "C"
  24605. #endif
  24606. char opendir ();
  24607. int
  24608. main ()
  24609. {
  24610. return opendir ();
  24611. ;
  24612. return 0;
  24613. }
  24614. _ACEOF
  24615. for ac_lib in '' dir; do
  24616. if test -z "$ac_lib"; then
  24617. ac_res="none required"
  24618. else
  24619. ac_res=-l$ac_lib
  24620. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24621. fi
  24622. rm -f conftest.$ac_objext conftest$ac_exeext
  24623. if { (ac_try="$ac_link"
  24624. case "(($ac_try" in
  24625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24626. *) ac_try_echo=$ac_try;;
  24627. esac
  24628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24629. (eval "$ac_link") 2>conftest.er1
  24630. ac_status=$?
  24631. grep -v '^ *+' conftest.er1 >conftest.err
  24632. rm -f conftest.er1
  24633. cat conftest.err >&5
  24634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24635. (exit $ac_status); } && {
  24636. test -z "$ac_c_werror_flag" ||
  24637. test ! -s conftest.err
  24638. } && test -s conftest$ac_exeext &&
  24639. $as_test_x conftest$ac_exeext; then
  24640. ac_cv_search_opendir=$ac_res
  24641. else
  24642. echo "$as_me: failed program was:" >&5
  24643. sed 's/^/| /' conftest.$ac_ext >&5
  24644. fi
  24645. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24646. conftest$ac_exeext
  24647. if test "${ac_cv_search_opendir+set}" = set; then
  24648. break
  24649. fi
  24650. done
  24651. if test "${ac_cv_search_opendir+set}" = set; then
  24652. :
  24653. else
  24654. ac_cv_search_opendir=no
  24655. fi
  24656. rm conftest.$ac_ext
  24657. LIBS=$ac_func_search_save_LIBS
  24658. fi
  24659. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24660. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24661. ac_res=$ac_cv_search_opendir
  24662. if test "$ac_res" != no; then
  24663. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24664. fi
  24665. else
  24666. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24667. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24668. if test "${ac_cv_search_opendir+set}" = set; then
  24669. echo $ECHO_N "(cached) $ECHO_C" >&6
  24670. else
  24671. ac_func_search_save_LIBS=$LIBS
  24672. cat >conftest.$ac_ext <<_ACEOF
  24673. /* confdefs.h. */
  24674. _ACEOF
  24675. cat confdefs.h >>conftest.$ac_ext
  24676. cat >>conftest.$ac_ext <<_ACEOF
  24677. /* end confdefs.h. */
  24678. /* Override any GCC internal prototype to avoid an error.
  24679. Use char because int might match the return type of a GCC
  24680. builtin and then its argument prototype would still apply. */
  24681. #ifdef __cplusplus
  24682. extern "C"
  24683. #endif
  24684. char opendir ();
  24685. int
  24686. main ()
  24687. {
  24688. return opendir ();
  24689. ;
  24690. return 0;
  24691. }
  24692. _ACEOF
  24693. for ac_lib in '' x; do
  24694. if test -z "$ac_lib"; then
  24695. ac_res="none required"
  24696. else
  24697. ac_res=-l$ac_lib
  24698. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24699. fi
  24700. rm -f conftest.$ac_objext conftest$ac_exeext
  24701. if { (ac_try="$ac_link"
  24702. case "(($ac_try" in
  24703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24704. *) ac_try_echo=$ac_try;;
  24705. esac
  24706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24707. (eval "$ac_link") 2>conftest.er1
  24708. ac_status=$?
  24709. grep -v '^ *+' conftest.er1 >conftest.err
  24710. rm -f conftest.er1
  24711. cat conftest.err >&5
  24712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24713. (exit $ac_status); } && {
  24714. test -z "$ac_c_werror_flag" ||
  24715. test ! -s conftest.err
  24716. } && test -s conftest$ac_exeext &&
  24717. $as_test_x conftest$ac_exeext; then
  24718. ac_cv_search_opendir=$ac_res
  24719. else
  24720. echo "$as_me: failed program was:" >&5
  24721. sed 's/^/| /' conftest.$ac_ext >&5
  24722. fi
  24723. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24724. conftest$ac_exeext
  24725. if test "${ac_cv_search_opendir+set}" = set; then
  24726. break
  24727. fi
  24728. done
  24729. if test "${ac_cv_search_opendir+set}" = set; then
  24730. :
  24731. else
  24732. ac_cv_search_opendir=no
  24733. fi
  24734. rm conftest.$ac_ext
  24735. LIBS=$ac_func_search_save_LIBS
  24736. fi
  24737. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24738. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24739. ac_res=$ac_cv_search_opendir
  24740. if test "$ac_res" != no; then
  24741. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24742. fi
  24743. fi
  24744. # =================
  24745. # AC_CHECK_HEADERS
  24746. # =================
  24747. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  24748. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  24749. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  24750. utime.h sysexits.h
  24751. do
  24752. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24753. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24754. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24755. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24756. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24757. echo $ECHO_N "(cached) $ECHO_C" >&6
  24758. fi
  24759. ac_res=`eval echo '${'$as_ac_Header'}'`
  24760. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24761. echo "${ECHO_T}$ac_res" >&6; }
  24762. else
  24763. # Is the header compilable?
  24764. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24765. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24766. cat >conftest.$ac_ext <<_ACEOF
  24767. /* confdefs.h. */
  24768. _ACEOF
  24769. cat confdefs.h >>conftest.$ac_ext
  24770. cat >>conftest.$ac_ext <<_ACEOF
  24771. /* end confdefs.h. */
  24772. $ac_includes_default
  24773. #include <$ac_header>
  24774. _ACEOF
  24775. rm -f conftest.$ac_objext
  24776. if { (ac_try="$ac_compile"
  24777. case "(($ac_try" in
  24778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24779. *) ac_try_echo=$ac_try;;
  24780. esac
  24781. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24782. (eval "$ac_compile") 2>conftest.er1
  24783. ac_status=$?
  24784. grep -v '^ *+' conftest.er1 >conftest.err
  24785. rm -f conftest.er1
  24786. cat conftest.err >&5
  24787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24788. (exit $ac_status); } && {
  24789. test -z "$ac_c_werror_flag" ||
  24790. test ! -s conftest.err
  24791. } && test -s conftest.$ac_objext; then
  24792. ac_header_compiler=yes
  24793. else
  24794. echo "$as_me: failed program was:" >&5
  24795. sed 's/^/| /' conftest.$ac_ext >&5
  24796. ac_header_compiler=no
  24797. fi
  24798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24799. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24800. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24801. # Is the header present?
  24802. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24803. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24804. cat >conftest.$ac_ext <<_ACEOF
  24805. /* confdefs.h. */
  24806. _ACEOF
  24807. cat confdefs.h >>conftest.$ac_ext
  24808. cat >>conftest.$ac_ext <<_ACEOF
  24809. /* end confdefs.h. */
  24810. #include <$ac_header>
  24811. _ACEOF
  24812. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24813. case "(($ac_try" in
  24814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24815. *) ac_try_echo=$ac_try;;
  24816. esac
  24817. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24818. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24819. ac_status=$?
  24820. grep -v '^ *+' conftest.er1 >conftest.err
  24821. rm -f conftest.er1
  24822. cat conftest.err >&5
  24823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24824. (exit $ac_status); } >/dev/null && {
  24825. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24826. test ! -s conftest.err
  24827. }; then
  24828. ac_header_preproc=yes
  24829. else
  24830. echo "$as_me: failed program was:" >&5
  24831. sed 's/^/| /' conftest.$ac_ext >&5
  24832. ac_header_preproc=no
  24833. fi
  24834. rm -f conftest.err conftest.$ac_ext
  24835. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24836. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24837. # So? What about this header?
  24838. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24839. yes:no: )
  24840. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24841. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24842. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24843. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24844. ac_header_preproc=yes
  24845. ;;
  24846. no:yes:* )
  24847. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24848. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24849. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24850. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24851. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24852. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24853. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24854. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24855. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24856. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24857. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24858. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24859. ;;
  24860. esac
  24861. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24862. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24863. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24864. echo $ECHO_N "(cached) $ECHO_C" >&6
  24865. else
  24866. eval "$as_ac_Header=\$ac_header_preproc"
  24867. fi
  24868. ac_res=`eval echo '${'$as_ac_Header'}'`
  24869. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24870. echo "${ECHO_T}$ac_res" >&6; }
  24871. fi
  24872. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24873. cat >>confdefs.h <<_ACEOF
  24874. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24875. _ACEOF
  24876. fi
  24877. done
  24878. # --------------------------------------------
  24879. # Verify certain entries from AC_CHECK_HEADERS
  24880. # --------------------------------------------
  24881. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  24882. string errno stdlib memory setjmp
  24883. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  24884. test "${as_ac_var}" = set || \
  24885. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  24886. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  24887. { (exit 1); exit 1; }; }
  24888. done
  24889. # ================================================
  24890. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  24891. # if varargs.h is present define HAVE_VARARGS_H.
  24892. # ================================================
  24893. for ac_header in stdarg.h varargs.h
  24894. do
  24895. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24896. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24897. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24898. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24899. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24900. echo $ECHO_N "(cached) $ECHO_C" >&6
  24901. fi
  24902. ac_res=`eval echo '${'$as_ac_Header'}'`
  24903. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24904. echo "${ECHO_T}$ac_res" >&6; }
  24905. else
  24906. # Is the header compilable?
  24907. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24908. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24909. cat >conftest.$ac_ext <<_ACEOF
  24910. /* confdefs.h. */
  24911. _ACEOF
  24912. cat confdefs.h >>conftest.$ac_ext
  24913. cat >>conftest.$ac_ext <<_ACEOF
  24914. /* end confdefs.h. */
  24915. $ac_includes_default
  24916. #include <$ac_header>
  24917. _ACEOF
  24918. rm -f conftest.$ac_objext
  24919. if { (ac_try="$ac_compile"
  24920. case "(($ac_try" in
  24921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24922. *) ac_try_echo=$ac_try;;
  24923. esac
  24924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24925. (eval "$ac_compile") 2>conftest.er1
  24926. ac_status=$?
  24927. grep -v '^ *+' conftest.er1 >conftest.err
  24928. rm -f conftest.er1
  24929. cat conftest.err >&5
  24930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24931. (exit $ac_status); } && {
  24932. test -z "$ac_c_werror_flag" ||
  24933. test ! -s conftest.err
  24934. } && test -s conftest.$ac_objext; then
  24935. ac_header_compiler=yes
  24936. else
  24937. echo "$as_me: failed program was:" >&5
  24938. sed 's/^/| /' conftest.$ac_ext >&5
  24939. ac_header_compiler=no
  24940. fi
  24941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24942. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24943. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24944. # Is the header present?
  24945. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24946. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24947. cat >conftest.$ac_ext <<_ACEOF
  24948. /* confdefs.h. */
  24949. _ACEOF
  24950. cat confdefs.h >>conftest.$ac_ext
  24951. cat >>conftest.$ac_ext <<_ACEOF
  24952. /* end confdefs.h. */
  24953. #include <$ac_header>
  24954. _ACEOF
  24955. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24956. case "(($ac_try" in
  24957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24958. *) ac_try_echo=$ac_try;;
  24959. esac
  24960. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24961. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24962. ac_status=$?
  24963. grep -v '^ *+' conftest.er1 >conftest.err
  24964. rm -f conftest.er1
  24965. cat conftest.err >&5
  24966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24967. (exit $ac_status); } >/dev/null && {
  24968. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24969. test ! -s conftest.err
  24970. }; then
  24971. ac_header_preproc=yes
  24972. else
  24973. echo "$as_me: failed program was:" >&5
  24974. sed 's/^/| /' conftest.$ac_ext >&5
  24975. ac_header_preproc=no
  24976. fi
  24977. rm -f conftest.err conftest.$ac_ext
  24978. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24979. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24980. # So? What about this header?
  24981. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24982. yes:no: )
  24983. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24984. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24985. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24986. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24987. ac_header_preproc=yes
  24988. ;;
  24989. no:yes:* )
  24990. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24991. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24992. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24993. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24994. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24995. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24996. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24997. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24998. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24999. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25000. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25001. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25002. ;;
  25003. esac
  25004. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25005. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25006. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25007. echo $ECHO_N "(cached) $ECHO_C" >&6
  25008. else
  25009. eval "$as_ac_Header=\$ac_header_preproc"
  25010. fi
  25011. ac_res=`eval echo '${'$as_ac_Header'}'`
  25012. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25013. echo "${ECHO_T}$ac_res" >&6; }
  25014. fi
  25015. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25016. cat >>confdefs.h <<_ACEOF
  25017. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25018. _ACEOF
  25019. break
  25020. fi
  25021. done
  25022. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25023. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  25024. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  25025. { (exit 1); exit 1; }; }
  25026. fi
  25027. # ================================================
  25028. # Similarly for the string.h and strings.h headers
  25029. # ================================================
  25030. for ac_header in string.h strings.h
  25031. do
  25032. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25033. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25034. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25035. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25036. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25037. echo $ECHO_N "(cached) $ECHO_C" >&6
  25038. fi
  25039. ac_res=`eval echo '${'$as_ac_Header'}'`
  25040. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25041. echo "${ECHO_T}$ac_res" >&6; }
  25042. else
  25043. # Is the header compilable?
  25044. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25045. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25046. cat >conftest.$ac_ext <<_ACEOF
  25047. /* confdefs.h. */
  25048. _ACEOF
  25049. cat confdefs.h >>conftest.$ac_ext
  25050. cat >>conftest.$ac_ext <<_ACEOF
  25051. /* end confdefs.h. */
  25052. $ac_includes_default
  25053. #include <$ac_header>
  25054. _ACEOF
  25055. rm -f conftest.$ac_objext
  25056. if { (ac_try="$ac_compile"
  25057. case "(($ac_try" in
  25058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25059. *) ac_try_echo=$ac_try;;
  25060. esac
  25061. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25062. (eval "$ac_compile") 2>conftest.er1
  25063. ac_status=$?
  25064. grep -v '^ *+' conftest.er1 >conftest.err
  25065. rm -f conftest.er1
  25066. cat conftest.err >&5
  25067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25068. (exit $ac_status); } && {
  25069. test -z "$ac_c_werror_flag" ||
  25070. test ! -s conftest.err
  25071. } && test -s conftest.$ac_objext; then
  25072. ac_header_compiler=yes
  25073. else
  25074. echo "$as_me: failed program was:" >&5
  25075. sed 's/^/| /' conftest.$ac_ext >&5
  25076. ac_header_compiler=no
  25077. fi
  25078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25079. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25080. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25081. # Is the header present?
  25082. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25083. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25084. cat >conftest.$ac_ext <<_ACEOF
  25085. /* confdefs.h. */
  25086. _ACEOF
  25087. cat confdefs.h >>conftest.$ac_ext
  25088. cat >>conftest.$ac_ext <<_ACEOF
  25089. /* end confdefs.h. */
  25090. #include <$ac_header>
  25091. _ACEOF
  25092. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25093. case "(($ac_try" in
  25094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25095. *) ac_try_echo=$ac_try;;
  25096. esac
  25097. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25098. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25099. ac_status=$?
  25100. grep -v '^ *+' conftest.er1 >conftest.err
  25101. rm -f conftest.er1
  25102. cat conftest.err >&5
  25103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25104. (exit $ac_status); } >/dev/null && {
  25105. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25106. test ! -s conftest.err
  25107. }; then
  25108. ac_header_preproc=yes
  25109. else
  25110. echo "$as_me: failed program was:" >&5
  25111. sed 's/^/| /' conftest.$ac_ext >&5
  25112. ac_header_preproc=no
  25113. fi
  25114. rm -f conftest.err conftest.$ac_ext
  25115. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25116. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25117. # So? What about this header?
  25118. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25119. yes:no: )
  25120. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25121. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25122. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25123. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25124. ac_header_preproc=yes
  25125. ;;
  25126. no:yes:* )
  25127. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25128. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25129. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25130. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25131. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25132. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25133. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25134. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25135. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25136. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25137. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25138. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25139. ;;
  25140. esac
  25141. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25142. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25143. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25144. echo $ECHO_N "(cached) $ECHO_C" >&6
  25145. else
  25146. eval "$as_ac_Header=\$ac_header_preproc"
  25147. fi
  25148. ac_res=`eval echo '${'$as_ac_Header'}'`
  25149. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25150. echo "${ECHO_T}$ac_res" >&6; }
  25151. fi
  25152. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25153. cat >>confdefs.h <<_ACEOF
  25154. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25155. _ACEOF
  25156. break
  25157. fi
  25158. done
  25159. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25160. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  25161. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  25162. { (exit 1); exit 1; }; }
  25163. fi
  25164. # =====================
  25165. # ...and limits headers
  25166. # =====================
  25167. for ac_header in limits.h sys/limits.h values.h
  25168. do
  25169. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25170. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25171. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25172. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25173. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25174. echo $ECHO_N "(cached) $ECHO_C" >&6
  25175. fi
  25176. ac_res=`eval echo '${'$as_ac_Header'}'`
  25177. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25178. echo "${ECHO_T}$ac_res" >&6; }
  25179. else
  25180. # Is the header compilable?
  25181. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25182. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25183. cat >conftest.$ac_ext <<_ACEOF
  25184. /* confdefs.h. */
  25185. _ACEOF
  25186. cat confdefs.h >>conftest.$ac_ext
  25187. cat >>conftest.$ac_ext <<_ACEOF
  25188. /* end confdefs.h. */
  25189. $ac_includes_default
  25190. #include <$ac_header>
  25191. _ACEOF
  25192. rm -f conftest.$ac_objext
  25193. if { (ac_try="$ac_compile"
  25194. case "(($ac_try" in
  25195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25196. *) ac_try_echo=$ac_try;;
  25197. esac
  25198. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25199. (eval "$ac_compile") 2>conftest.er1
  25200. ac_status=$?
  25201. grep -v '^ *+' conftest.er1 >conftest.err
  25202. rm -f conftest.er1
  25203. cat conftest.err >&5
  25204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25205. (exit $ac_status); } && {
  25206. test -z "$ac_c_werror_flag" ||
  25207. test ! -s conftest.err
  25208. } && test -s conftest.$ac_objext; then
  25209. ac_header_compiler=yes
  25210. else
  25211. echo "$as_me: failed program was:" >&5
  25212. sed 's/^/| /' conftest.$ac_ext >&5
  25213. ac_header_compiler=no
  25214. fi
  25215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25216. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25217. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25218. # Is the header present?
  25219. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25220. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25221. cat >conftest.$ac_ext <<_ACEOF
  25222. /* confdefs.h. */
  25223. _ACEOF
  25224. cat confdefs.h >>conftest.$ac_ext
  25225. cat >>conftest.$ac_ext <<_ACEOF
  25226. /* end confdefs.h. */
  25227. #include <$ac_header>
  25228. _ACEOF
  25229. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25230. case "(($ac_try" in
  25231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25232. *) ac_try_echo=$ac_try;;
  25233. esac
  25234. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25235. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25236. ac_status=$?
  25237. grep -v '^ *+' conftest.er1 >conftest.err
  25238. rm -f conftest.er1
  25239. cat conftest.err >&5
  25240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25241. (exit $ac_status); } >/dev/null && {
  25242. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25243. test ! -s conftest.err
  25244. }; then
  25245. ac_header_preproc=yes
  25246. else
  25247. echo "$as_me: failed program was:" >&5
  25248. sed 's/^/| /' conftest.$ac_ext >&5
  25249. ac_header_preproc=no
  25250. fi
  25251. rm -f conftest.err conftest.$ac_ext
  25252. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25253. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25254. # So? What about this header?
  25255. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25256. yes:no: )
  25257. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25258. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25259. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25260. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25261. ac_header_preproc=yes
  25262. ;;
  25263. no:yes:* )
  25264. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25265. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25266. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25267. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25268. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25269. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25270. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25271. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25272. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25273. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25274. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25275. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25276. ;;
  25277. esac
  25278. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25279. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25280. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25281. echo $ECHO_N "(cached) $ECHO_C" >&6
  25282. else
  25283. eval "$as_ac_Header=\$ac_header_preproc"
  25284. fi
  25285. ac_res=`eval echo '${'$as_ac_Header'}'`
  25286. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25287. echo "${ECHO_T}$ac_res" >&6; }
  25288. fi
  25289. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25290. cat >>confdefs.h <<_ACEOF
  25291. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25292. _ACEOF
  25293. break
  25294. fi
  25295. done
  25296. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25297. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  25298. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  25299. { (exit 1); exit 1; }; }
  25300. fi
  25301. # ========================
  25302. # ...and int types headers
  25303. # ========================
  25304. for ac_header in stdint.h inttypes.h
  25305. do
  25306. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25307. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25308. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25309. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25310. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25311. echo $ECHO_N "(cached) $ECHO_C" >&6
  25312. fi
  25313. ac_res=`eval echo '${'$as_ac_Header'}'`
  25314. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25315. echo "${ECHO_T}$ac_res" >&6; }
  25316. else
  25317. # Is the header compilable?
  25318. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25319. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25320. cat >conftest.$ac_ext <<_ACEOF
  25321. /* confdefs.h. */
  25322. _ACEOF
  25323. cat confdefs.h >>conftest.$ac_ext
  25324. cat >>conftest.$ac_ext <<_ACEOF
  25325. /* end confdefs.h. */
  25326. $ac_includes_default
  25327. #include <$ac_header>
  25328. _ACEOF
  25329. rm -f conftest.$ac_objext
  25330. if { (ac_try="$ac_compile"
  25331. case "(($ac_try" in
  25332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25333. *) ac_try_echo=$ac_try;;
  25334. esac
  25335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25336. (eval "$ac_compile") 2>conftest.er1
  25337. ac_status=$?
  25338. grep -v '^ *+' conftest.er1 >conftest.err
  25339. rm -f conftest.er1
  25340. cat conftest.err >&5
  25341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25342. (exit $ac_status); } && {
  25343. test -z "$ac_c_werror_flag" ||
  25344. test ! -s conftest.err
  25345. } && test -s conftest.$ac_objext; then
  25346. ac_header_compiler=yes
  25347. else
  25348. echo "$as_me: failed program was:" >&5
  25349. sed 's/^/| /' conftest.$ac_ext >&5
  25350. ac_header_compiler=no
  25351. fi
  25352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25353. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25354. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25355. # Is the header present?
  25356. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25357. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25358. cat >conftest.$ac_ext <<_ACEOF
  25359. /* confdefs.h. */
  25360. _ACEOF
  25361. cat confdefs.h >>conftest.$ac_ext
  25362. cat >>conftest.$ac_ext <<_ACEOF
  25363. /* end confdefs.h. */
  25364. #include <$ac_header>
  25365. _ACEOF
  25366. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25367. case "(($ac_try" in
  25368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25369. *) ac_try_echo=$ac_try;;
  25370. esac
  25371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25372. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25373. ac_status=$?
  25374. grep -v '^ *+' conftest.er1 >conftest.err
  25375. rm -f conftest.er1
  25376. cat conftest.err >&5
  25377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25378. (exit $ac_status); } >/dev/null && {
  25379. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25380. test ! -s conftest.err
  25381. }; then
  25382. ac_header_preproc=yes
  25383. else
  25384. echo "$as_me: failed program was:" >&5
  25385. sed 's/^/| /' conftest.$ac_ext >&5
  25386. ac_header_preproc=no
  25387. fi
  25388. rm -f conftest.err conftest.$ac_ext
  25389. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25390. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25391. # So? What about this header?
  25392. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25393. yes:no: )
  25394. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25395. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25396. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25397. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25398. ac_header_preproc=yes
  25399. ;;
  25400. no:yes:* )
  25401. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25402. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25403. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25404. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25405. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25406. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25407. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25408. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25409. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25410. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25411. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25412. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25413. ;;
  25414. esac
  25415. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25416. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25417. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25418. echo $ECHO_N "(cached) $ECHO_C" >&6
  25419. else
  25420. eval "$as_ac_Header=\$ac_header_preproc"
  25421. fi
  25422. ac_res=`eval echo '${'$as_ac_Header'}'`
  25423. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25424. echo "${ECHO_T}$ac_res" >&6; }
  25425. fi
  25426. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25427. cat >>confdefs.h <<_ACEOF
  25428. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25429. _ACEOF
  25430. break
  25431. fi
  25432. done
  25433. { echo "$as_me:$LINENO: checking for int8_t" >&5
  25434. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  25435. if test "${ac_cv_type_int8_t+set}" = set; then
  25436. echo $ECHO_N "(cached) $ECHO_C" >&6
  25437. else
  25438. cat >conftest.$ac_ext <<_ACEOF
  25439. /* confdefs.h. */
  25440. _ACEOF
  25441. cat confdefs.h >>conftest.$ac_ext
  25442. cat >>conftest.$ac_ext <<_ACEOF
  25443. /* end confdefs.h. */
  25444. $ac_includes_default
  25445. typedef int8_t ac__type_new_;
  25446. int
  25447. main ()
  25448. {
  25449. if ((ac__type_new_ *) 0)
  25450. return 0;
  25451. if (sizeof (ac__type_new_))
  25452. return 0;
  25453. ;
  25454. return 0;
  25455. }
  25456. _ACEOF
  25457. rm -f conftest.$ac_objext
  25458. if { (ac_try="$ac_compile"
  25459. case "(($ac_try" in
  25460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25461. *) ac_try_echo=$ac_try;;
  25462. esac
  25463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25464. (eval "$ac_compile") 2>conftest.er1
  25465. ac_status=$?
  25466. grep -v '^ *+' conftest.er1 >conftest.err
  25467. rm -f conftest.er1
  25468. cat conftest.err >&5
  25469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25470. (exit $ac_status); } && {
  25471. test -z "$ac_c_werror_flag" ||
  25472. test ! -s conftest.err
  25473. } && test -s conftest.$ac_objext; then
  25474. ac_cv_type_int8_t=yes
  25475. else
  25476. echo "$as_me: failed program was:" >&5
  25477. sed 's/^/| /' conftest.$ac_ext >&5
  25478. ac_cv_type_int8_t=no
  25479. fi
  25480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25481. fi
  25482. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  25483. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  25484. if test $ac_cv_type_int8_t = yes; then
  25485. cat >>confdefs.h <<_ACEOF
  25486. #define HAVE_INT8_T 1
  25487. _ACEOF
  25488. fi
  25489. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  25490. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  25491. if test "${ac_cv_type_uint8_t+set}" = set; then
  25492. echo $ECHO_N "(cached) $ECHO_C" >&6
  25493. else
  25494. cat >conftest.$ac_ext <<_ACEOF
  25495. /* confdefs.h. */
  25496. _ACEOF
  25497. cat confdefs.h >>conftest.$ac_ext
  25498. cat >>conftest.$ac_ext <<_ACEOF
  25499. /* end confdefs.h. */
  25500. $ac_includes_default
  25501. typedef uint8_t ac__type_new_;
  25502. int
  25503. main ()
  25504. {
  25505. if ((ac__type_new_ *) 0)
  25506. return 0;
  25507. if (sizeof (ac__type_new_))
  25508. return 0;
  25509. ;
  25510. return 0;
  25511. }
  25512. _ACEOF
  25513. rm -f conftest.$ac_objext
  25514. if { (ac_try="$ac_compile"
  25515. case "(($ac_try" in
  25516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25517. *) ac_try_echo=$ac_try;;
  25518. esac
  25519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25520. (eval "$ac_compile") 2>conftest.er1
  25521. ac_status=$?
  25522. grep -v '^ *+' conftest.er1 >conftest.err
  25523. rm -f conftest.er1
  25524. cat conftest.err >&5
  25525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25526. (exit $ac_status); } && {
  25527. test -z "$ac_c_werror_flag" ||
  25528. test ! -s conftest.err
  25529. } && test -s conftest.$ac_objext; then
  25530. ac_cv_type_uint8_t=yes
  25531. else
  25532. echo "$as_me: failed program was:" >&5
  25533. sed 's/^/| /' conftest.$ac_ext >&5
  25534. ac_cv_type_uint8_t=no
  25535. fi
  25536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25537. fi
  25538. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  25539. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  25540. if test $ac_cv_type_uint8_t = yes; then
  25541. cat >>confdefs.h <<_ACEOF
  25542. #define HAVE_UINT8_T 1
  25543. _ACEOF
  25544. fi
  25545. { echo "$as_me:$LINENO: checking for int16_t" >&5
  25546. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  25547. if test "${ac_cv_type_int16_t+set}" = set; then
  25548. echo $ECHO_N "(cached) $ECHO_C" >&6
  25549. else
  25550. cat >conftest.$ac_ext <<_ACEOF
  25551. /* confdefs.h. */
  25552. _ACEOF
  25553. cat confdefs.h >>conftest.$ac_ext
  25554. cat >>conftest.$ac_ext <<_ACEOF
  25555. /* end confdefs.h. */
  25556. $ac_includes_default
  25557. typedef int16_t ac__type_new_;
  25558. int
  25559. main ()
  25560. {
  25561. if ((ac__type_new_ *) 0)
  25562. return 0;
  25563. if (sizeof (ac__type_new_))
  25564. return 0;
  25565. ;
  25566. return 0;
  25567. }
  25568. _ACEOF
  25569. rm -f conftest.$ac_objext
  25570. if { (ac_try="$ac_compile"
  25571. case "(($ac_try" in
  25572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25573. *) ac_try_echo=$ac_try;;
  25574. esac
  25575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25576. (eval "$ac_compile") 2>conftest.er1
  25577. ac_status=$?
  25578. grep -v '^ *+' conftest.er1 >conftest.err
  25579. rm -f conftest.er1
  25580. cat conftest.err >&5
  25581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25582. (exit $ac_status); } && {
  25583. test -z "$ac_c_werror_flag" ||
  25584. test ! -s conftest.err
  25585. } && test -s conftest.$ac_objext; then
  25586. ac_cv_type_int16_t=yes
  25587. else
  25588. echo "$as_me: failed program was:" >&5
  25589. sed 's/^/| /' conftest.$ac_ext >&5
  25590. ac_cv_type_int16_t=no
  25591. fi
  25592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25593. fi
  25594. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  25595. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  25596. if test $ac_cv_type_int16_t = yes; then
  25597. cat >>confdefs.h <<_ACEOF
  25598. #define HAVE_INT16_T 1
  25599. _ACEOF
  25600. fi
  25601. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  25602. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  25603. if test "${ac_cv_type_uint16_t+set}" = set; then
  25604. echo $ECHO_N "(cached) $ECHO_C" >&6
  25605. else
  25606. cat >conftest.$ac_ext <<_ACEOF
  25607. /* confdefs.h. */
  25608. _ACEOF
  25609. cat confdefs.h >>conftest.$ac_ext
  25610. cat >>conftest.$ac_ext <<_ACEOF
  25611. /* end confdefs.h. */
  25612. $ac_includes_default
  25613. typedef uint16_t ac__type_new_;
  25614. int
  25615. main ()
  25616. {
  25617. if ((ac__type_new_ *) 0)
  25618. return 0;
  25619. if (sizeof (ac__type_new_))
  25620. return 0;
  25621. ;
  25622. return 0;
  25623. }
  25624. _ACEOF
  25625. rm -f conftest.$ac_objext
  25626. if { (ac_try="$ac_compile"
  25627. case "(($ac_try" in
  25628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25629. *) ac_try_echo=$ac_try;;
  25630. esac
  25631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25632. (eval "$ac_compile") 2>conftest.er1
  25633. ac_status=$?
  25634. grep -v '^ *+' conftest.er1 >conftest.err
  25635. rm -f conftest.er1
  25636. cat conftest.err >&5
  25637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25638. (exit $ac_status); } && {
  25639. test -z "$ac_c_werror_flag" ||
  25640. test ! -s conftest.err
  25641. } && test -s conftest.$ac_objext; then
  25642. ac_cv_type_uint16_t=yes
  25643. else
  25644. echo "$as_me: failed program was:" >&5
  25645. sed 's/^/| /' conftest.$ac_ext >&5
  25646. ac_cv_type_uint16_t=no
  25647. fi
  25648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25649. fi
  25650. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  25651. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  25652. if test $ac_cv_type_uint16_t = yes; then
  25653. cat >>confdefs.h <<_ACEOF
  25654. #define HAVE_UINT16_T 1
  25655. _ACEOF
  25656. fi
  25657. { echo "$as_me:$LINENO: checking for int32_t" >&5
  25658. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  25659. if test "${ac_cv_type_int32_t+set}" = set; then
  25660. echo $ECHO_N "(cached) $ECHO_C" >&6
  25661. else
  25662. cat >conftest.$ac_ext <<_ACEOF
  25663. /* confdefs.h. */
  25664. _ACEOF
  25665. cat confdefs.h >>conftest.$ac_ext
  25666. cat >>conftest.$ac_ext <<_ACEOF
  25667. /* end confdefs.h. */
  25668. $ac_includes_default
  25669. typedef int32_t ac__type_new_;
  25670. int
  25671. main ()
  25672. {
  25673. if ((ac__type_new_ *) 0)
  25674. return 0;
  25675. if (sizeof (ac__type_new_))
  25676. return 0;
  25677. ;
  25678. return 0;
  25679. }
  25680. _ACEOF
  25681. rm -f conftest.$ac_objext
  25682. if { (ac_try="$ac_compile"
  25683. case "(($ac_try" in
  25684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25685. *) ac_try_echo=$ac_try;;
  25686. esac
  25687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25688. (eval "$ac_compile") 2>conftest.er1
  25689. ac_status=$?
  25690. grep -v '^ *+' conftest.er1 >conftest.err
  25691. rm -f conftest.er1
  25692. cat conftest.err >&5
  25693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25694. (exit $ac_status); } && {
  25695. test -z "$ac_c_werror_flag" ||
  25696. test ! -s conftest.err
  25697. } && test -s conftest.$ac_objext; then
  25698. ac_cv_type_int32_t=yes
  25699. else
  25700. echo "$as_me: failed program was:" >&5
  25701. sed 's/^/| /' conftest.$ac_ext >&5
  25702. ac_cv_type_int32_t=no
  25703. fi
  25704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25705. fi
  25706. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  25707. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  25708. if test $ac_cv_type_int32_t = yes; then
  25709. cat >>confdefs.h <<_ACEOF
  25710. #define HAVE_INT32_T 1
  25711. _ACEOF
  25712. fi
  25713. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  25714. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  25715. if test "${ac_cv_type_uint32_t+set}" = set; then
  25716. echo $ECHO_N "(cached) $ECHO_C" >&6
  25717. else
  25718. cat >conftest.$ac_ext <<_ACEOF
  25719. /* confdefs.h. */
  25720. _ACEOF
  25721. cat confdefs.h >>conftest.$ac_ext
  25722. cat >>conftest.$ac_ext <<_ACEOF
  25723. /* end confdefs.h. */
  25724. $ac_includes_default
  25725. typedef uint32_t ac__type_new_;
  25726. int
  25727. main ()
  25728. {
  25729. if ((ac__type_new_ *) 0)
  25730. return 0;
  25731. if (sizeof (ac__type_new_))
  25732. return 0;
  25733. ;
  25734. return 0;
  25735. }
  25736. _ACEOF
  25737. rm -f conftest.$ac_objext
  25738. if { (ac_try="$ac_compile"
  25739. case "(($ac_try" in
  25740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25741. *) ac_try_echo=$ac_try;;
  25742. esac
  25743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25744. (eval "$ac_compile") 2>conftest.er1
  25745. ac_status=$?
  25746. grep -v '^ *+' conftest.er1 >conftest.err
  25747. rm -f conftest.er1
  25748. cat conftest.err >&5
  25749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25750. (exit $ac_status); } && {
  25751. test -z "$ac_c_werror_flag" ||
  25752. test ! -s conftest.err
  25753. } && test -s conftest.$ac_objext; then
  25754. ac_cv_type_uint32_t=yes
  25755. else
  25756. echo "$as_me: failed program was:" >&5
  25757. sed 's/^/| /' conftest.$ac_ext >&5
  25758. ac_cv_type_uint32_t=no
  25759. fi
  25760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25761. fi
  25762. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  25763. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  25764. if test $ac_cv_type_uint32_t = yes; then
  25765. cat >>confdefs.h <<_ACEOF
  25766. #define HAVE_UINT32_T 1
  25767. _ACEOF
  25768. fi
  25769. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  25770. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  25771. if test "${ac_cv_type_intptr_t+set}" = set; then
  25772. echo $ECHO_N "(cached) $ECHO_C" >&6
  25773. else
  25774. cat >conftest.$ac_ext <<_ACEOF
  25775. /* confdefs.h. */
  25776. _ACEOF
  25777. cat confdefs.h >>conftest.$ac_ext
  25778. cat >>conftest.$ac_ext <<_ACEOF
  25779. /* end confdefs.h. */
  25780. $ac_includes_default
  25781. typedef intptr_t ac__type_new_;
  25782. int
  25783. main ()
  25784. {
  25785. if ((ac__type_new_ *) 0)
  25786. return 0;
  25787. if (sizeof (ac__type_new_))
  25788. return 0;
  25789. ;
  25790. return 0;
  25791. }
  25792. _ACEOF
  25793. rm -f conftest.$ac_objext
  25794. if { (ac_try="$ac_compile"
  25795. case "(($ac_try" in
  25796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25797. *) ac_try_echo=$ac_try;;
  25798. esac
  25799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25800. (eval "$ac_compile") 2>conftest.er1
  25801. ac_status=$?
  25802. grep -v '^ *+' conftest.er1 >conftest.err
  25803. rm -f conftest.er1
  25804. cat conftest.err >&5
  25805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25806. (exit $ac_status); } && {
  25807. test -z "$ac_c_werror_flag" ||
  25808. test ! -s conftest.err
  25809. } && test -s conftest.$ac_objext; then
  25810. ac_cv_type_intptr_t=yes
  25811. else
  25812. echo "$as_me: failed program was:" >&5
  25813. sed 's/^/| /' conftest.$ac_ext >&5
  25814. ac_cv_type_intptr_t=no
  25815. fi
  25816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25817. fi
  25818. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  25819. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  25820. if test $ac_cv_type_intptr_t = yes; then
  25821. cat >>confdefs.h <<_ACEOF
  25822. #define HAVE_INTPTR_T 1
  25823. _ACEOF
  25824. fi
  25825. { echo "$as_me:$LINENO: checking for uint_t" >&5
  25826. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  25827. if test "${ac_cv_type_uint_t+set}" = set; then
  25828. echo $ECHO_N "(cached) $ECHO_C" >&6
  25829. else
  25830. cat >conftest.$ac_ext <<_ACEOF
  25831. /* confdefs.h. */
  25832. _ACEOF
  25833. cat confdefs.h >>conftest.$ac_ext
  25834. cat >>conftest.$ac_ext <<_ACEOF
  25835. /* end confdefs.h. */
  25836. $ac_includes_default
  25837. typedef uint_t ac__type_new_;
  25838. int
  25839. main ()
  25840. {
  25841. if ((ac__type_new_ *) 0)
  25842. return 0;
  25843. if (sizeof (ac__type_new_))
  25844. return 0;
  25845. ;
  25846. return 0;
  25847. }
  25848. _ACEOF
  25849. rm -f conftest.$ac_objext
  25850. if { (ac_try="$ac_compile"
  25851. case "(($ac_try" in
  25852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25853. *) ac_try_echo=$ac_try;;
  25854. esac
  25855. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25856. (eval "$ac_compile") 2>conftest.er1
  25857. ac_status=$?
  25858. grep -v '^ *+' conftest.er1 >conftest.err
  25859. rm -f conftest.er1
  25860. cat conftest.err >&5
  25861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25862. (exit $ac_status); } && {
  25863. test -z "$ac_c_werror_flag" ||
  25864. test ! -s conftest.err
  25865. } && test -s conftest.$ac_objext; then
  25866. ac_cv_type_uint_t=yes
  25867. else
  25868. echo "$as_me: failed program was:" >&5
  25869. sed 's/^/| /' conftest.$ac_ext >&5
  25870. ac_cv_type_uint_t=no
  25871. fi
  25872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25873. fi
  25874. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  25875. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  25876. if test $ac_cv_type_uint_t = yes; then
  25877. cat >>confdefs.h <<_ACEOF
  25878. #define HAVE_UINT_T 1
  25879. _ACEOF
  25880. fi
  25881. # ====================
  25882. # uintptr type & sizes
  25883. # ====================
  25884. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  25885. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  25886. if test "${ac_cv_type_uintptr_t+set}" = set; then
  25887. echo $ECHO_N "(cached) $ECHO_C" >&6
  25888. else
  25889. cat >conftest.$ac_ext <<_ACEOF
  25890. /* confdefs.h. */
  25891. _ACEOF
  25892. cat confdefs.h >>conftest.$ac_ext
  25893. cat >>conftest.$ac_ext <<_ACEOF
  25894. /* end confdefs.h. */
  25895. $ac_includes_default
  25896. typedef uintptr_t ac__type_new_;
  25897. int
  25898. main ()
  25899. {
  25900. if ((ac__type_new_ *) 0)
  25901. return 0;
  25902. if (sizeof (ac__type_new_))
  25903. return 0;
  25904. ;
  25905. return 0;
  25906. }
  25907. _ACEOF
  25908. rm -f conftest.$ac_objext
  25909. if { (ac_try="$ac_compile"
  25910. case "(($ac_try" in
  25911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25912. *) ac_try_echo=$ac_try;;
  25913. esac
  25914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25915. (eval "$ac_compile") 2>conftest.er1
  25916. ac_status=$?
  25917. grep -v '^ *+' conftest.er1 >conftest.err
  25918. rm -f conftest.er1
  25919. cat conftest.err >&5
  25920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25921. (exit $ac_status); } && {
  25922. test -z "$ac_c_werror_flag" ||
  25923. test ! -s conftest.err
  25924. } && test -s conftest.$ac_objext; then
  25925. ac_cv_type_uintptr_t=yes
  25926. else
  25927. echo "$as_me: failed program was:" >&5
  25928. sed 's/^/| /' conftest.$ac_ext >&5
  25929. ac_cv_type_uintptr_t=no
  25930. fi
  25931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25932. fi
  25933. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  25934. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  25935. if test $ac_cv_type_uintptr_t = yes; then
  25936. cat >>confdefs.h <<_ACEOF
  25937. #define HAVE_UINTPTR_T 1
  25938. _ACEOF
  25939. else
  25940. cat >>confdefs.h <<\_ACEOF
  25941. #define uintptr_t unsigned long
  25942. _ACEOF
  25943. fi
  25944. { echo "$as_me:$LINENO: checking for char*" >&5
  25945. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  25946. if test "${ac_cv_type_charp+set}" = set; then
  25947. echo $ECHO_N "(cached) $ECHO_C" >&6
  25948. else
  25949. cat >conftest.$ac_ext <<_ACEOF
  25950. /* confdefs.h. */
  25951. _ACEOF
  25952. cat confdefs.h >>conftest.$ac_ext
  25953. cat >>conftest.$ac_ext <<_ACEOF
  25954. /* end confdefs.h. */
  25955. $ac_includes_default
  25956. typedef char* ac__type_new_;
  25957. int
  25958. main ()
  25959. {
  25960. if ((ac__type_new_ *) 0)
  25961. return 0;
  25962. if (sizeof (ac__type_new_))
  25963. return 0;
  25964. ;
  25965. return 0;
  25966. }
  25967. _ACEOF
  25968. rm -f conftest.$ac_objext
  25969. if { (ac_try="$ac_compile"
  25970. case "(($ac_try" in
  25971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25972. *) ac_try_echo=$ac_try;;
  25973. esac
  25974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25975. (eval "$ac_compile") 2>conftest.er1
  25976. ac_status=$?
  25977. grep -v '^ *+' conftest.er1 >conftest.err
  25978. rm -f conftest.er1
  25979. cat conftest.err >&5
  25980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25981. (exit $ac_status); } && {
  25982. test -z "$ac_c_werror_flag" ||
  25983. test ! -s conftest.err
  25984. } && test -s conftest.$ac_objext; then
  25985. ac_cv_type_charp=yes
  25986. else
  25987. echo "$as_me: failed program was:" >&5
  25988. sed 's/^/| /' conftest.$ac_ext >&5
  25989. ac_cv_type_charp=no
  25990. fi
  25991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25992. fi
  25993. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  25994. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  25995. # The cast to long int works around a bug in the HP C Compiler
  25996. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25997. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25998. # This bug is HP SR number 8606223364.
  25999. { echo "$as_me:$LINENO: checking size of char*" >&5
  26000. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  26001. if test "${ac_cv_sizeof_charp+set}" = set; then
  26002. echo $ECHO_N "(cached) $ECHO_C" >&6
  26003. else
  26004. if test "$cross_compiling" = yes; then
  26005. # Depending upon the size, compute the lo and hi bounds.
  26006. cat >conftest.$ac_ext <<_ACEOF
  26007. /* confdefs.h. */
  26008. _ACEOF
  26009. cat confdefs.h >>conftest.$ac_ext
  26010. cat >>conftest.$ac_ext <<_ACEOF
  26011. /* end confdefs.h. */
  26012. $ac_includes_default
  26013. typedef char* ac__type_sizeof_;
  26014. int
  26015. main ()
  26016. {
  26017. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26018. test_array [0] = 0
  26019. ;
  26020. return 0;
  26021. }
  26022. _ACEOF
  26023. rm -f conftest.$ac_objext
  26024. if { (ac_try="$ac_compile"
  26025. case "(($ac_try" in
  26026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26027. *) ac_try_echo=$ac_try;;
  26028. esac
  26029. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26030. (eval "$ac_compile") 2>conftest.er1
  26031. ac_status=$?
  26032. grep -v '^ *+' conftest.er1 >conftest.err
  26033. rm -f conftest.er1
  26034. cat conftest.err >&5
  26035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26036. (exit $ac_status); } && {
  26037. test -z "$ac_c_werror_flag" ||
  26038. test ! -s conftest.err
  26039. } && test -s conftest.$ac_objext; then
  26040. ac_lo=0 ac_mid=0
  26041. while :; do
  26042. cat >conftest.$ac_ext <<_ACEOF
  26043. /* confdefs.h. */
  26044. _ACEOF
  26045. cat confdefs.h >>conftest.$ac_ext
  26046. cat >>conftest.$ac_ext <<_ACEOF
  26047. /* end confdefs.h. */
  26048. $ac_includes_default
  26049. typedef char* ac__type_sizeof_;
  26050. int
  26051. main ()
  26052. {
  26053. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26054. test_array [0] = 0
  26055. ;
  26056. return 0;
  26057. }
  26058. _ACEOF
  26059. rm -f conftest.$ac_objext
  26060. if { (ac_try="$ac_compile"
  26061. case "(($ac_try" in
  26062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26063. *) ac_try_echo=$ac_try;;
  26064. esac
  26065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26066. (eval "$ac_compile") 2>conftest.er1
  26067. ac_status=$?
  26068. grep -v '^ *+' conftest.er1 >conftest.err
  26069. rm -f conftest.er1
  26070. cat conftest.err >&5
  26071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26072. (exit $ac_status); } && {
  26073. test -z "$ac_c_werror_flag" ||
  26074. test ! -s conftest.err
  26075. } && test -s conftest.$ac_objext; then
  26076. ac_hi=$ac_mid; break
  26077. else
  26078. echo "$as_me: failed program was:" >&5
  26079. sed 's/^/| /' conftest.$ac_ext >&5
  26080. ac_lo=`expr $ac_mid + 1`
  26081. if test $ac_lo -le $ac_mid; then
  26082. ac_lo= ac_hi=
  26083. break
  26084. fi
  26085. ac_mid=`expr 2 '*' $ac_mid + 1`
  26086. fi
  26087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26088. done
  26089. else
  26090. echo "$as_me: failed program was:" >&5
  26091. sed 's/^/| /' conftest.$ac_ext >&5
  26092. cat >conftest.$ac_ext <<_ACEOF
  26093. /* confdefs.h. */
  26094. _ACEOF
  26095. cat confdefs.h >>conftest.$ac_ext
  26096. cat >>conftest.$ac_ext <<_ACEOF
  26097. /* end confdefs.h. */
  26098. $ac_includes_default
  26099. typedef char* ac__type_sizeof_;
  26100. int
  26101. main ()
  26102. {
  26103. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26104. test_array [0] = 0
  26105. ;
  26106. return 0;
  26107. }
  26108. _ACEOF
  26109. rm -f conftest.$ac_objext
  26110. if { (ac_try="$ac_compile"
  26111. case "(($ac_try" in
  26112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26113. *) ac_try_echo=$ac_try;;
  26114. esac
  26115. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26116. (eval "$ac_compile") 2>conftest.er1
  26117. ac_status=$?
  26118. grep -v '^ *+' conftest.er1 >conftest.err
  26119. rm -f conftest.er1
  26120. cat conftest.err >&5
  26121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26122. (exit $ac_status); } && {
  26123. test -z "$ac_c_werror_flag" ||
  26124. test ! -s conftest.err
  26125. } && test -s conftest.$ac_objext; then
  26126. ac_hi=-1 ac_mid=-1
  26127. while :; do
  26128. cat >conftest.$ac_ext <<_ACEOF
  26129. /* confdefs.h. */
  26130. _ACEOF
  26131. cat confdefs.h >>conftest.$ac_ext
  26132. cat >>conftest.$ac_ext <<_ACEOF
  26133. /* end confdefs.h. */
  26134. $ac_includes_default
  26135. typedef char* ac__type_sizeof_;
  26136. int
  26137. main ()
  26138. {
  26139. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26140. test_array [0] = 0
  26141. ;
  26142. return 0;
  26143. }
  26144. _ACEOF
  26145. rm -f conftest.$ac_objext
  26146. if { (ac_try="$ac_compile"
  26147. case "(($ac_try" in
  26148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26149. *) ac_try_echo=$ac_try;;
  26150. esac
  26151. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26152. (eval "$ac_compile") 2>conftest.er1
  26153. ac_status=$?
  26154. grep -v '^ *+' conftest.er1 >conftest.err
  26155. rm -f conftest.er1
  26156. cat conftest.err >&5
  26157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26158. (exit $ac_status); } && {
  26159. test -z "$ac_c_werror_flag" ||
  26160. test ! -s conftest.err
  26161. } && test -s conftest.$ac_objext; then
  26162. ac_lo=$ac_mid; break
  26163. else
  26164. echo "$as_me: failed program was:" >&5
  26165. sed 's/^/| /' conftest.$ac_ext >&5
  26166. ac_hi=`expr '(' $ac_mid ')' - 1`
  26167. if test $ac_mid -le $ac_hi; then
  26168. ac_lo= ac_hi=
  26169. break
  26170. fi
  26171. ac_mid=`expr 2 '*' $ac_mid`
  26172. fi
  26173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26174. done
  26175. else
  26176. echo "$as_me: failed program was:" >&5
  26177. sed 's/^/| /' conftest.$ac_ext >&5
  26178. ac_lo= ac_hi=
  26179. fi
  26180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26181. fi
  26182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26183. # Binary search between lo and hi bounds.
  26184. while test "x$ac_lo" != "x$ac_hi"; do
  26185. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26186. cat >conftest.$ac_ext <<_ACEOF
  26187. /* confdefs.h. */
  26188. _ACEOF
  26189. cat confdefs.h >>conftest.$ac_ext
  26190. cat >>conftest.$ac_ext <<_ACEOF
  26191. /* end confdefs.h. */
  26192. $ac_includes_default
  26193. typedef char* ac__type_sizeof_;
  26194. int
  26195. main ()
  26196. {
  26197. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26198. test_array [0] = 0
  26199. ;
  26200. return 0;
  26201. }
  26202. _ACEOF
  26203. rm -f conftest.$ac_objext
  26204. if { (ac_try="$ac_compile"
  26205. case "(($ac_try" in
  26206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26207. *) ac_try_echo=$ac_try;;
  26208. esac
  26209. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26210. (eval "$ac_compile") 2>conftest.er1
  26211. ac_status=$?
  26212. grep -v '^ *+' conftest.er1 >conftest.err
  26213. rm -f conftest.er1
  26214. cat conftest.err >&5
  26215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26216. (exit $ac_status); } && {
  26217. test -z "$ac_c_werror_flag" ||
  26218. test ! -s conftest.err
  26219. } && test -s conftest.$ac_objext; then
  26220. ac_hi=$ac_mid
  26221. else
  26222. echo "$as_me: failed program was:" >&5
  26223. sed 's/^/| /' conftest.$ac_ext >&5
  26224. ac_lo=`expr '(' $ac_mid ')' + 1`
  26225. fi
  26226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26227. done
  26228. case $ac_lo in
  26229. ?*) ac_cv_sizeof_charp=$ac_lo;;
  26230. '') if test "$ac_cv_type_charp" = yes; then
  26231. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  26232. See \`config.log' for more details." >&5
  26233. echo "$as_me: error: cannot compute sizeof (char*)
  26234. See \`config.log' for more details." >&2;}
  26235. { (exit 77); exit 77; }; }
  26236. else
  26237. ac_cv_sizeof_charp=0
  26238. fi ;;
  26239. esac
  26240. else
  26241. cat >conftest.$ac_ext <<_ACEOF
  26242. /* confdefs.h. */
  26243. _ACEOF
  26244. cat confdefs.h >>conftest.$ac_ext
  26245. cat >>conftest.$ac_ext <<_ACEOF
  26246. /* end confdefs.h. */
  26247. $ac_includes_default
  26248. typedef char* ac__type_sizeof_;
  26249. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26250. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26251. #include <stdio.h>
  26252. #include <stdlib.h>
  26253. int
  26254. main ()
  26255. {
  26256. FILE *f = fopen ("conftest.val", "w");
  26257. if (! f)
  26258. return 1;
  26259. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26260. {
  26261. long int i = longval ();
  26262. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26263. return 1;
  26264. fprintf (f, "%ld\n", i);
  26265. }
  26266. else
  26267. {
  26268. unsigned long int i = ulongval ();
  26269. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26270. return 1;
  26271. fprintf (f, "%lu\n", i);
  26272. }
  26273. return ferror (f) || fclose (f) != 0;
  26274. ;
  26275. return 0;
  26276. }
  26277. _ACEOF
  26278. rm -f conftest$ac_exeext
  26279. if { (ac_try="$ac_link"
  26280. case "(($ac_try" in
  26281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26282. *) ac_try_echo=$ac_try;;
  26283. esac
  26284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26285. (eval "$ac_link") 2>&5
  26286. ac_status=$?
  26287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26288. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26289. { (case "(($ac_try" in
  26290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26291. *) ac_try_echo=$ac_try;;
  26292. esac
  26293. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26294. (eval "$ac_try") 2>&5
  26295. ac_status=$?
  26296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26297. (exit $ac_status); }; }; then
  26298. ac_cv_sizeof_charp=`cat conftest.val`
  26299. else
  26300. echo "$as_me: program exited with status $ac_status" >&5
  26301. echo "$as_me: failed program was:" >&5
  26302. sed 's/^/| /' conftest.$ac_ext >&5
  26303. ( exit $ac_status )
  26304. if test "$ac_cv_type_charp" = yes; then
  26305. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  26306. See \`config.log' for more details." >&5
  26307. echo "$as_me: error: cannot compute sizeof (char*)
  26308. See \`config.log' for more details." >&2;}
  26309. { (exit 77); exit 77; }; }
  26310. else
  26311. ac_cv_sizeof_charp=0
  26312. fi
  26313. fi
  26314. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26315. fi
  26316. rm -f conftest.val
  26317. fi
  26318. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  26319. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  26320. cat >>confdefs.h <<_ACEOF
  26321. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  26322. _ACEOF
  26323. { echo "$as_me:$LINENO: checking for int" >&5
  26324. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  26325. if test "${ac_cv_type_int+set}" = set; then
  26326. echo $ECHO_N "(cached) $ECHO_C" >&6
  26327. else
  26328. cat >conftest.$ac_ext <<_ACEOF
  26329. /* confdefs.h. */
  26330. _ACEOF
  26331. cat confdefs.h >>conftest.$ac_ext
  26332. cat >>conftest.$ac_ext <<_ACEOF
  26333. /* end confdefs.h. */
  26334. $ac_includes_default
  26335. typedef int ac__type_new_;
  26336. int
  26337. main ()
  26338. {
  26339. if ((ac__type_new_ *) 0)
  26340. return 0;
  26341. if (sizeof (ac__type_new_))
  26342. return 0;
  26343. ;
  26344. return 0;
  26345. }
  26346. _ACEOF
  26347. rm -f conftest.$ac_objext
  26348. if { (ac_try="$ac_compile"
  26349. case "(($ac_try" in
  26350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26351. *) ac_try_echo=$ac_try;;
  26352. esac
  26353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26354. (eval "$ac_compile") 2>conftest.er1
  26355. ac_status=$?
  26356. grep -v '^ *+' conftest.er1 >conftest.err
  26357. rm -f conftest.er1
  26358. cat conftest.err >&5
  26359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26360. (exit $ac_status); } && {
  26361. test -z "$ac_c_werror_flag" ||
  26362. test ! -s conftest.err
  26363. } && test -s conftest.$ac_objext; then
  26364. ac_cv_type_int=yes
  26365. else
  26366. echo "$as_me: failed program was:" >&5
  26367. sed 's/^/| /' conftest.$ac_ext >&5
  26368. ac_cv_type_int=no
  26369. fi
  26370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26371. fi
  26372. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  26373. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  26374. # The cast to long int works around a bug in the HP C Compiler
  26375. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26376. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26377. # This bug is HP SR number 8606223364.
  26378. { echo "$as_me:$LINENO: checking size of int" >&5
  26379. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  26380. if test "${ac_cv_sizeof_int+set}" = set; then
  26381. echo $ECHO_N "(cached) $ECHO_C" >&6
  26382. else
  26383. if test "$cross_compiling" = yes; then
  26384. # Depending upon the size, compute the lo and hi bounds.
  26385. cat >conftest.$ac_ext <<_ACEOF
  26386. /* confdefs.h. */
  26387. _ACEOF
  26388. cat confdefs.h >>conftest.$ac_ext
  26389. cat >>conftest.$ac_ext <<_ACEOF
  26390. /* end confdefs.h. */
  26391. $ac_includes_default
  26392. typedef int ac__type_sizeof_;
  26393. int
  26394. main ()
  26395. {
  26396. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26397. test_array [0] = 0
  26398. ;
  26399. return 0;
  26400. }
  26401. _ACEOF
  26402. rm -f conftest.$ac_objext
  26403. if { (ac_try="$ac_compile"
  26404. case "(($ac_try" in
  26405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26406. *) ac_try_echo=$ac_try;;
  26407. esac
  26408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26409. (eval "$ac_compile") 2>conftest.er1
  26410. ac_status=$?
  26411. grep -v '^ *+' conftest.er1 >conftest.err
  26412. rm -f conftest.er1
  26413. cat conftest.err >&5
  26414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26415. (exit $ac_status); } && {
  26416. test -z "$ac_c_werror_flag" ||
  26417. test ! -s conftest.err
  26418. } && test -s conftest.$ac_objext; then
  26419. ac_lo=0 ac_mid=0
  26420. while :; do
  26421. cat >conftest.$ac_ext <<_ACEOF
  26422. /* confdefs.h. */
  26423. _ACEOF
  26424. cat confdefs.h >>conftest.$ac_ext
  26425. cat >>conftest.$ac_ext <<_ACEOF
  26426. /* end confdefs.h. */
  26427. $ac_includes_default
  26428. typedef int ac__type_sizeof_;
  26429. int
  26430. main ()
  26431. {
  26432. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26433. test_array [0] = 0
  26434. ;
  26435. return 0;
  26436. }
  26437. _ACEOF
  26438. rm -f conftest.$ac_objext
  26439. if { (ac_try="$ac_compile"
  26440. case "(($ac_try" in
  26441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26442. *) ac_try_echo=$ac_try;;
  26443. esac
  26444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26445. (eval "$ac_compile") 2>conftest.er1
  26446. ac_status=$?
  26447. grep -v '^ *+' conftest.er1 >conftest.err
  26448. rm -f conftest.er1
  26449. cat conftest.err >&5
  26450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26451. (exit $ac_status); } && {
  26452. test -z "$ac_c_werror_flag" ||
  26453. test ! -s conftest.err
  26454. } && test -s conftest.$ac_objext; then
  26455. ac_hi=$ac_mid; break
  26456. else
  26457. echo "$as_me: failed program was:" >&5
  26458. sed 's/^/| /' conftest.$ac_ext >&5
  26459. ac_lo=`expr $ac_mid + 1`
  26460. if test $ac_lo -le $ac_mid; then
  26461. ac_lo= ac_hi=
  26462. break
  26463. fi
  26464. ac_mid=`expr 2 '*' $ac_mid + 1`
  26465. fi
  26466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26467. done
  26468. else
  26469. echo "$as_me: failed program was:" >&5
  26470. sed 's/^/| /' conftest.$ac_ext >&5
  26471. cat >conftest.$ac_ext <<_ACEOF
  26472. /* confdefs.h. */
  26473. _ACEOF
  26474. cat confdefs.h >>conftest.$ac_ext
  26475. cat >>conftest.$ac_ext <<_ACEOF
  26476. /* end confdefs.h. */
  26477. $ac_includes_default
  26478. typedef int ac__type_sizeof_;
  26479. int
  26480. main ()
  26481. {
  26482. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26483. test_array [0] = 0
  26484. ;
  26485. return 0;
  26486. }
  26487. _ACEOF
  26488. rm -f conftest.$ac_objext
  26489. if { (ac_try="$ac_compile"
  26490. case "(($ac_try" in
  26491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26492. *) ac_try_echo=$ac_try;;
  26493. esac
  26494. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26495. (eval "$ac_compile") 2>conftest.er1
  26496. ac_status=$?
  26497. grep -v '^ *+' conftest.er1 >conftest.err
  26498. rm -f conftest.er1
  26499. cat conftest.err >&5
  26500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26501. (exit $ac_status); } && {
  26502. test -z "$ac_c_werror_flag" ||
  26503. test ! -s conftest.err
  26504. } && test -s conftest.$ac_objext; then
  26505. ac_hi=-1 ac_mid=-1
  26506. while :; do
  26507. cat >conftest.$ac_ext <<_ACEOF
  26508. /* confdefs.h. */
  26509. _ACEOF
  26510. cat confdefs.h >>conftest.$ac_ext
  26511. cat >>conftest.$ac_ext <<_ACEOF
  26512. /* end confdefs.h. */
  26513. $ac_includes_default
  26514. typedef int ac__type_sizeof_;
  26515. int
  26516. main ()
  26517. {
  26518. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26519. test_array [0] = 0
  26520. ;
  26521. return 0;
  26522. }
  26523. _ACEOF
  26524. rm -f conftest.$ac_objext
  26525. if { (ac_try="$ac_compile"
  26526. case "(($ac_try" in
  26527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26528. *) ac_try_echo=$ac_try;;
  26529. esac
  26530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26531. (eval "$ac_compile") 2>conftest.er1
  26532. ac_status=$?
  26533. grep -v '^ *+' conftest.er1 >conftest.err
  26534. rm -f conftest.er1
  26535. cat conftest.err >&5
  26536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26537. (exit $ac_status); } && {
  26538. test -z "$ac_c_werror_flag" ||
  26539. test ! -s conftest.err
  26540. } && test -s conftest.$ac_objext; then
  26541. ac_lo=$ac_mid; break
  26542. else
  26543. echo "$as_me: failed program was:" >&5
  26544. sed 's/^/| /' conftest.$ac_ext >&5
  26545. ac_hi=`expr '(' $ac_mid ')' - 1`
  26546. if test $ac_mid -le $ac_hi; then
  26547. ac_lo= ac_hi=
  26548. break
  26549. fi
  26550. ac_mid=`expr 2 '*' $ac_mid`
  26551. fi
  26552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26553. done
  26554. else
  26555. echo "$as_me: failed program was:" >&5
  26556. sed 's/^/| /' conftest.$ac_ext >&5
  26557. ac_lo= ac_hi=
  26558. fi
  26559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26560. fi
  26561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26562. # Binary search between lo and hi bounds.
  26563. while test "x$ac_lo" != "x$ac_hi"; do
  26564. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26565. cat >conftest.$ac_ext <<_ACEOF
  26566. /* confdefs.h. */
  26567. _ACEOF
  26568. cat confdefs.h >>conftest.$ac_ext
  26569. cat >>conftest.$ac_ext <<_ACEOF
  26570. /* end confdefs.h. */
  26571. $ac_includes_default
  26572. typedef int ac__type_sizeof_;
  26573. int
  26574. main ()
  26575. {
  26576. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26577. test_array [0] = 0
  26578. ;
  26579. return 0;
  26580. }
  26581. _ACEOF
  26582. rm -f conftest.$ac_objext
  26583. if { (ac_try="$ac_compile"
  26584. case "(($ac_try" in
  26585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26586. *) ac_try_echo=$ac_try;;
  26587. esac
  26588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26589. (eval "$ac_compile") 2>conftest.er1
  26590. ac_status=$?
  26591. grep -v '^ *+' conftest.er1 >conftest.err
  26592. rm -f conftest.er1
  26593. cat conftest.err >&5
  26594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26595. (exit $ac_status); } && {
  26596. test -z "$ac_c_werror_flag" ||
  26597. test ! -s conftest.err
  26598. } && test -s conftest.$ac_objext; then
  26599. ac_hi=$ac_mid
  26600. else
  26601. echo "$as_me: failed program was:" >&5
  26602. sed 's/^/| /' conftest.$ac_ext >&5
  26603. ac_lo=`expr '(' $ac_mid ')' + 1`
  26604. fi
  26605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26606. done
  26607. case $ac_lo in
  26608. ?*) ac_cv_sizeof_int=$ac_lo;;
  26609. '') if test "$ac_cv_type_int" = yes; then
  26610. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26611. See \`config.log' for more details." >&5
  26612. echo "$as_me: error: cannot compute sizeof (int)
  26613. See \`config.log' for more details." >&2;}
  26614. { (exit 77); exit 77; }; }
  26615. else
  26616. ac_cv_sizeof_int=0
  26617. fi ;;
  26618. esac
  26619. else
  26620. cat >conftest.$ac_ext <<_ACEOF
  26621. /* confdefs.h. */
  26622. _ACEOF
  26623. cat confdefs.h >>conftest.$ac_ext
  26624. cat >>conftest.$ac_ext <<_ACEOF
  26625. /* end confdefs.h. */
  26626. $ac_includes_default
  26627. typedef int ac__type_sizeof_;
  26628. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26629. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26630. #include <stdio.h>
  26631. #include <stdlib.h>
  26632. int
  26633. main ()
  26634. {
  26635. FILE *f = fopen ("conftest.val", "w");
  26636. if (! f)
  26637. return 1;
  26638. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26639. {
  26640. long int i = longval ();
  26641. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26642. return 1;
  26643. fprintf (f, "%ld\n", i);
  26644. }
  26645. else
  26646. {
  26647. unsigned long int i = ulongval ();
  26648. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26649. return 1;
  26650. fprintf (f, "%lu\n", i);
  26651. }
  26652. return ferror (f) || fclose (f) != 0;
  26653. ;
  26654. return 0;
  26655. }
  26656. _ACEOF
  26657. rm -f conftest$ac_exeext
  26658. if { (ac_try="$ac_link"
  26659. case "(($ac_try" in
  26660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26661. *) ac_try_echo=$ac_try;;
  26662. esac
  26663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26664. (eval "$ac_link") 2>&5
  26665. ac_status=$?
  26666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26667. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26668. { (case "(($ac_try" in
  26669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26670. *) ac_try_echo=$ac_try;;
  26671. esac
  26672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26673. (eval "$ac_try") 2>&5
  26674. ac_status=$?
  26675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26676. (exit $ac_status); }; }; then
  26677. ac_cv_sizeof_int=`cat conftest.val`
  26678. else
  26679. echo "$as_me: program exited with status $ac_status" >&5
  26680. echo "$as_me: failed program was:" >&5
  26681. sed 's/^/| /' conftest.$ac_ext >&5
  26682. ( exit $ac_status )
  26683. if test "$ac_cv_type_int" = yes; then
  26684. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26685. See \`config.log' for more details." >&5
  26686. echo "$as_me: error: cannot compute sizeof (int)
  26687. See \`config.log' for more details." >&2;}
  26688. { (exit 77); exit 77; }; }
  26689. else
  26690. ac_cv_sizeof_int=0
  26691. fi
  26692. fi
  26693. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26694. fi
  26695. rm -f conftest.val
  26696. fi
  26697. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  26698. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  26699. cat >>confdefs.h <<_ACEOF
  26700. #define SIZEOF_INT $ac_cv_sizeof_int
  26701. _ACEOF
  26702. { echo "$as_me:$LINENO: checking for long" >&5
  26703. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  26704. if test "${ac_cv_type_long+set}" = set; then
  26705. echo $ECHO_N "(cached) $ECHO_C" >&6
  26706. else
  26707. cat >conftest.$ac_ext <<_ACEOF
  26708. /* confdefs.h. */
  26709. _ACEOF
  26710. cat confdefs.h >>conftest.$ac_ext
  26711. cat >>conftest.$ac_ext <<_ACEOF
  26712. /* end confdefs.h. */
  26713. $ac_includes_default
  26714. typedef long ac__type_new_;
  26715. int
  26716. main ()
  26717. {
  26718. if ((ac__type_new_ *) 0)
  26719. return 0;
  26720. if (sizeof (ac__type_new_))
  26721. return 0;
  26722. ;
  26723. return 0;
  26724. }
  26725. _ACEOF
  26726. rm -f conftest.$ac_objext
  26727. if { (ac_try="$ac_compile"
  26728. case "(($ac_try" in
  26729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26730. *) ac_try_echo=$ac_try;;
  26731. esac
  26732. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26733. (eval "$ac_compile") 2>conftest.er1
  26734. ac_status=$?
  26735. grep -v '^ *+' conftest.er1 >conftest.err
  26736. rm -f conftest.er1
  26737. cat conftest.err >&5
  26738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26739. (exit $ac_status); } && {
  26740. test -z "$ac_c_werror_flag" ||
  26741. test ! -s conftest.err
  26742. } && test -s conftest.$ac_objext; then
  26743. ac_cv_type_long=yes
  26744. else
  26745. echo "$as_me: failed program was:" >&5
  26746. sed 's/^/| /' conftest.$ac_ext >&5
  26747. ac_cv_type_long=no
  26748. fi
  26749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26750. fi
  26751. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  26752. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  26753. # The cast to long int works around a bug in the HP C Compiler
  26754. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26755. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26756. # This bug is HP SR number 8606223364.
  26757. { echo "$as_me:$LINENO: checking size of long" >&5
  26758. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  26759. if test "${ac_cv_sizeof_long+set}" = set; then
  26760. echo $ECHO_N "(cached) $ECHO_C" >&6
  26761. else
  26762. if test "$cross_compiling" = yes; then
  26763. # Depending upon the size, compute the lo and hi bounds.
  26764. cat >conftest.$ac_ext <<_ACEOF
  26765. /* confdefs.h. */
  26766. _ACEOF
  26767. cat confdefs.h >>conftest.$ac_ext
  26768. cat >>conftest.$ac_ext <<_ACEOF
  26769. /* end confdefs.h. */
  26770. $ac_includes_default
  26771. typedef long ac__type_sizeof_;
  26772. int
  26773. main ()
  26774. {
  26775. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26776. test_array [0] = 0
  26777. ;
  26778. return 0;
  26779. }
  26780. _ACEOF
  26781. rm -f conftest.$ac_objext
  26782. if { (ac_try="$ac_compile"
  26783. case "(($ac_try" in
  26784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26785. *) ac_try_echo=$ac_try;;
  26786. esac
  26787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26788. (eval "$ac_compile") 2>conftest.er1
  26789. ac_status=$?
  26790. grep -v '^ *+' conftest.er1 >conftest.err
  26791. rm -f conftest.er1
  26792. cat conftest.err >&5
  26793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26794. (exit $ac_status); } && {
  26795. test -z "$ac_c_werror_flag" ||
  26796. test ! -s conftest.err
  26797. } && test -s conftest.$ac_objext; then
  26798. ac_lo=0 ac_mid=0
  26799. while :; do
  26800. cat >conftest.$ac_ext <<_ACEOF
  26801. /* confdefs.h. */
  26802. _ACEOF
  26803. cat confdefs.h >>conftest.$ac_ext
  26804. cat >>conftest.$ac_ext <<_ACEOF
  26805. /* end confdefs.h. */
  26806. $ac_includes_default
  26807. typedef long ac__type_sizeof_;
  26808. int
  26809. main ()
  26810. {
  26811. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26812. test_array [0] = 0
  26813. ;
  26814. return 0;
  26815. }
  26816. _ACEOF
  26817. rm -f conftest.$ac_objext
  26818. if { (ac_try="$ac_compile"
  26819. case "(($ac_try" in
  26820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26821. *) ac_try_echo=$ac_try;;
  26822. esac
  26823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26824. (eval "$ac_compile") 2>conftest.er1
  26825. ac_status=$?
  26826. grep -v '^ *+' conftest.er1 >conftest.err
  26827. rm -f conftest.er1
  26828. cat conftest.err >&5
  26829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26830. (exit $ac_status); } && {
  26831. test -z "$ac_c_werror_flag" ||
  26832. test ! -s conftest.err
  26833. } && test -s conftest.$ac_objext; then
  26834. ac_hi=$ac_mid; break
  26835. else
  26836. echo "$as_me: failed program was:" >&5
  26837. sed 's/^/| /' conftest.$ac_ext >&5
  26838. ac_lo=`expr $ac_mid + 1`
  26839. if test $ac_lo -le $ac_mid; then
  26840. ac_lo= ac_hi=
  26841. break
  26842. fi
  26843. ac_mid=`expr 2 '*' $ac_mid + 1`
  26844. fi
  26845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26846. done
  26847. else
  26848. echo "$as_me: failed program was:" >&5
  26849. sed 's/^/| /' conftest.$ac_ext >&5
  26850. cat >conftest.$ac_ext <<_ACEOF
  26851. /* confdefs.h. */
  26852. _ACEOF
  26853. cat confdefs.h >>conftest.$ac_ext
  26854. cat >>conftest.$ac_ext <<_ACEOF
  26855. /* end confdefs.h. */
  26856. $ac_includes_default
  26857. typedef long ac__type_sizeof_;
  26858. int
  26859. main ()
  26860. {
  26861. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26862. test_array [0] = 0
  26863. ;
  26864. return 0;
  26865. }
  26866. _ACEOF
  26867. rm -f conftest.$ac_objext
  26868. if { (ac_try="$ac_compile"
  26869. case "(($ac_try" in
  26870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26871. *) ac_try_echo=$ac_try;;
  26872. esac
  26873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26874. (eval "$ac_compile") 2>conftest.er1
  26875. ac_status=$?
  26876. grep -v '^ *+' conftest.er1 >conftest.err
  26877. rm -f conftest.er1
  26878. cat conftest.err >&5
  26879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26880. (exit $ac_status); } && {
  26881. test -z "$ac_c_werror_flag" ||
  26882. test ! -s conftest.err
  26883. } && test -s conftest.$ac_objext; then
  26884. ac_hi=-1 ac_mid=-1
  26885. while :; do
  26886. cat >conftest.$ac_ext <<_ACEOF
  26887. /* confdefs.h. */
  26888. _ACEOF
  26889. cat confdefs.h >>conftest.$ac_ext
  26890. cat >>conftest.$ac_ext <<_ACEOF
  26891. /* end confdefs.h. */
  26892. $ac_includes_default
  26893. typedef long ac__type_sizeof_;
  26894. int
  26895. main ()
  26896. {
  26897. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26898. test_array [0] = 0
  26899. ;
  26900. return 0;
  26901. }
  26902. _ACEOF
  26903. rm -f conftest.$ac_objext
  26904. if { (ac_try="$ac_compile"
  26905. case "(($ac_try" in
  26906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26907. *) ac_try_echo=$ac_try;;
  26908. esac
  26909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26910. (eval "$ac_compile") 2>conftest.er1
  26911. ac_status=$?
  26912. grep -v '^ *+' conftest.er1 >conftest.err
  26913. rm -f conftest.er1
  26914. cat conftest.err >&5
  26915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26916. (exit $ac_status); } && {
  26917. test -z "$ac_c_werror_flag" ||
  26918. test ! -s conftest.err
  26919. } && test -s conftest.$ac_objext; then
  26920. ac_lo=$ac_mid; break
  26921. else
  26922. echo "$as_me: failed program was:" >&5
  26923. sed 's/^/| /' conftest.$ac_ext >&5
  26924. ac_hi=`expr '(' $ac_mid ')' - 1`
  26925. if test $ac_mid -le $ac_hi; then
  26926. ac_lo= ac_hi=
  26927. break
  26928. fi
  26929. ac_mid=`expr 2 '*' $ac_mid`
  26930. fi
  26931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26932. done
  26933. else
  26934. echo "$as_me: failed program was:" >&5
  26935. sed 's/^/| /' conftest.$ac_ext >&5
  26936. ac_lo= ac_hi=
  26937. fi
  26938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26939. fi
  26940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26941. # Binary search between lo and hi bounds.
  26942. while test "x$ac_lo" != "x$ac_hi"; do
  26943. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26944. cat >conftest.$ac_ext <<_ACEOF
  26945. /* confdefs.h. */
  26946. _ACEOF
  26947. cat confdefs.h >>conftest.$ac_ext
  26948. cat >>conftest.$ac_ext <<_ACEOF
  26949. /* end confdefs.h. */
  26950. $ac_includes_default
  26951. typedef long ac__type_sizeof_;
  26952. int
  26953. main ()
  26954. {
  26955. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26956. test_array [0] = 0
  26957. ;
  26958. return 0;
  26959. }
  26960. _ACEOF
  26961. rm -f conftest.$ac_objext
  26962. if { (ac_try="$ac_compile"
  26963. case "(($ac_try" in
  26964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26965. *) ac_try_echo=$ac_try;;
  26966. esac
  26967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26968. (eval "$ac_compile") 2>conftest.er1
  26969. ac_status=$?
  26970. grep -v '^ *+' conftest.er1 >conftest.err
  26971. rm -f conftest.er1
  26972. cat conftest.err >&5
  26973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26974. (exit $ac_status); } && {
  26975. test -z "$ac_c_werror_flag" ||
  26976. test ! -s conftest.err
  26977. } && test -s conftest.$ac_objext; then
  26978. ac_hi=$ac_mid
  26979. else
  26980. echo "$as_me: failed program was:" >&5
  26981. sed 's/^/| /' conftest.$ac_ext >&5
  26982. ac_lo=`expr '(' $ac_mid ')' + 1`
  26983. fi
  26984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26985. done
  26986. case $ac_lo in
  26987. ?*) ac_cv_sizeof_long=$ac_lo;;
  26988. '') if test "$ac_cv_type_long" = yes; then
  26989. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  26990. See \`config.log' for more details." >&5
  26991. echo "$as_me: error: cannot compute sizeof (long)
  26992. See \`config.log' for more details." >&2;}
  26993. { (exit 77); exit 77; }; }
  26994. else
  26995. ac_cv_sizeof_long=0
  26996. fi ;;
  26997. esac
  26998. else
  26999. cat >conftest.$ac_ext <<_ACEOF
  27000. /* confdefs.h. */
  27001. _ACEOF
  27002. cat confdefs.h >>conftest.$ac_ext
  27003. cat >>conftest.$ac_ext <<_ACEOF
  27004. /* end confdefs.h. */
  27005. $ac_includes_default
  27006. typedef long ac__type_sizeof_;
  27007. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27008. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27009. #include <stdio.h>
  27010. #include <stdlib.h>
  27011. int
  27012. main ()
  27013. {
  27014. FILE *f = fopen ("conftest.val", "w");
  27015. if (! f)
  27016. return 1;
  27017. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  27018. {
  27019. long int i = longval ();
  27020. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27021. return 1;
  27022. fprintf (f, "%ld\n", i);
  27023. }
  27024. else
  27025. {
  27026. unsigned long int i = ulongval ();
  27027. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27028. return 1;
  27029. fprintf (f, "%lu\n", i);
  27030. }
  27031. return ferror (f) || fclose (f) != 0;
  27032. ;
  27033. return 0;
  27034. }
  27035. _ACEOF
  27036. rm -f conftest$ac_exeext
  27037. if { (ac_try="$ac_link"
  27038. case "(($ac_try" in
  27039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27040. *) ac_try_echo=$ac_try;;
  27041. esac
  27042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27043. (eval "$ac_link") 2>&5
  27044. ac_status=$?
  27045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27046. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27047. { (case "(($ac_try" in
  27048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27049. *) ac_try_echo=$ac_try;;
  27050. esac
  27051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27052. (eval "$ac_try") 2>&5
  27053. ac_status=$?
  27054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27055. (exit $ac_status); }; }; then
  27056. ac_cv_sizeof_long=`cat conftest.val`
  27057. else
  27058. echo "$as_me: program exited with status $ac_status" >&5
  27059. echo "$as_me: failed program was:" >&5
  27060. sed 's/^/| /' conftest.$ac_ext >&5
  27061. ( exit $ac_status )
  27062. if test "$ac_cv_type_long" = yes; then
  27063. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  27064. See \`config.log' for more details." >&5
  27065. echo "$as_me: error: cannot compute sizeof (long)
  27066. See \`config.log' for more details." >&2;}
  27067. { (exit 77); exit 77; }; }
  27068. else
  27069. ac_cv_sizeof_long=0
  27070. fi
  27071. fi
  27072. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27073. fi
  27074. rm -f conftest.val
  27075. fi
  27076. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  27077. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  27078. cat >>confdefs.h <<_ACEOF
  27079. #define SIZEOF_LONG $ac_cv_sizeof_long
  27080. _ACEOF
  27081. { echo "$as_me:$LINENO: checking for short" >&5
  27082. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  27083. if test "${ac_cv_type_short+set}" = set; then
  27084. echo $ECHO_N "(cached) $ECHO_C" >&6
  27085. else
  27086. cat >conftest.$ac_ext <<_ACEOF
  27087. /* confdefs.h. */
  27088. _ACEOF
  27089. cat confdefs.h >>conftest.$ac_ext
  27090. cat >>conftest.$ac_ext <<_ACEOF
  27091. /* end confdefs.h. */
  27092. $ac_includes_default
  27093. typedef short ac__type_new_;
  27094. int
  27095. main ()
  27096. {
  27097. if ((ac__type_new_ *) 0)
  27098. return 0;
  27099. if (sizeof (ac__type_new_))
  27100. return 0;
  27101. ;
  27102. return 0;
  27103. }
  27104. _ACEOF
  27105. rm -f conftest.$ac_objext
  27106. if { (ac_try="$ac_compile"
  27107. case "(($ac_try" in
  27108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27109. *) ac_try_echo=$ac_try;;
  27110. esac
  27111. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27112. (eval "$ac_compile") 2>conftest.er1
  27113. ac_status=$?
  27114. grep -v '^ *+' conftest.er1 >conftest.err
  27115. rm -f conftest.er1
  27116. cat conftest.err >&5
  27117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27118. (exit $ac_status); } && {
  27119. test -z "$ac_c_werror_flag" ||
  27120. test ! -s conftest.err
  27121. } && test -s conftest.$ac_objext; then
  27122. ac_cv_type_short=yes
  27123. else
  27124. echo "$as_me: failed program was:" >&5
  27125. sed 's/^/| /' conftest.$ac_ext >&5
  27126. ac_cv_type_short=no
  27127. fi
  27128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27129. fi
  27130. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  27131. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  27132. # The cast to long int works around a bug in the HP C Compiler
  27133. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27134. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27135. # This bug is HP SR number 8606223364.
  27136. { echo "$as_me:$LINENO: checking size of short" >&5
  27137. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  27138. if test "${ac_cv_sizeof_short+set}" = set; then
  27139. echo $ECHO_N "(cached) $ECHO_C" >&6
  27140. else
  27141. if test "$cross_compiling" = yes; then
  27142. # Depending upon the size, compute the lo and hi bounds.
  27143. cat >conftest.$ac_ext <<_ACEOF
  27144. /* confdefs.h. */
  27145. _ACEOF
  27146. cat confdefs.h >>conftest.$ac_ext
  27147. cat >>conftest.$ac_ext <<_ACEOF
  27148. /* end confdefs.h. */
  27149. $ac_includes_default
  27150. typedef short ac__type_sizeof_;
  27151. int
  27152. main ()
  27153. {
  27154. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  27155. test_array [0] = 0
  27156. ;
  27157. return 0;
  27158. }
  27159. _ACEOF
  27160. rm -f conftest.$ac_objext
  27161. if { (ac_try="$ac_compile"
  27162. case "(($ac_try" in
  27163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27164. *) ac_try_echo=$ac_try;;
  27165. esac
  27166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27167. (eval "$ac_compile") 2>conftest.er1
  27168. ac_status=$?
  27169. grep -v '^ *+' conftest.er1 >conftest.err
  27170. rm -f conftest.er1
  27171. cat conftest.err >&5
  27172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27173. (exit $ac_status); } && {
  27174. test -z "$ac_c_werror_flag" ||
  27175. test ! -s conftest.err
  27176. } && test -s conftest.$ac_objext; then
  27177. ac_lo=0 ac_mid=0
  27178. while :; do
  27179. cat >conftest.$ac_ext <<_ACEOF
  27180. /* confdefs.h. */
  27181. _ACEOF
  27182. cat confdefs.h >>conftest.$ac_ext
  27183. cat >>conftest.$ac_ext <<_ACEOF
  27184. /* end confdefs.h. */
  27185. $ac_includes_default
  27186. typedef short ac__type_sizeof_;
  27187. int
  27188. main ()
  27189. {
  27190. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  27191. test_array [0] = 0
  27192. ;
  27193. return 0;
  27194. }
  27195. _ACEOF
  27196. rm -f conftest.$ac_objext
  27197. if { (ac_try="$ac_compile"
  27198. case "(($ac_try" in
  27199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27200. *) ac_try_echo=$ac_try;;
  27201. esac
  27202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27203. (eval "$ac_compile") 2>conftest.er1
  27204. ac_status=$?
  27205. grep -v '^ *+' conftest.er1 >conftest.err
  27206. rm -f conftest.er1
  27207. cat conftest.err >&5
  27208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27209. (exit $ac_status); } && {
  27210. test -z "$ac_c_werror_flag" ||
  27211. test ! -s conftest.err
  27212. } && test -s conftest.$ac_objext; then
  27213. ac_hi=$ac_mid; break
  27214. else
  27215. echo "$as_me: failed program was:" >&5
  27216. sed 's/^/| /' conftest.$ac_ext >&5
  27217. ac_lo=`expr $ac_mid + 1`
  27218. if test $ac_lo -le $ac_mid; then
  27219. ac_lo= ac_hi=
  27220. break
  27221. fi
  27222. ac_mid=`expr 2 '*' $ac_mid + 1`
  27223. fi
  27224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27225. done
  27226. else
  27227. echo "$as_me: failed program was:" >&5
  27228. sed 's/^/| /' conftest.$ac_ext >&5
  27229. cat >conftest.$ac_ext <<_ACEOF
  27230. /* confdefs.h. */
  27231. _ACEOF
  27232. cat confdefs.h >>conftest.$ac_ext
  27233. cat >>conftest.$ac_ext <<_ACEOF
  27234. /* end confdefs.h. */
  27235. $ac_includes_default
  27236. typedef short ac__type_sizeof_;
  27237. int
  27238. main ()
  27239. {
  27240. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  27241. test_array [0] = 0
  27242. ;
  27243. return 0;
  27244. }
  27245. _ACEOF
  27246. rm -f conftest.$ac_objext
  27247. if { (ac_try="$ac_compile"
  27248. case "(($ac_try" in
  27249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27250. *) ac_try_echo=$ac_try;;
  27251. esac
  27252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27253. (eval "$ac_compile") 2>conftest.er1
  27254. ac_status=$?
  27255. grep -v '^ *+' conftest.er1 >conftest.err
  27256. rm -f conftest.er1
  27257. cat conftest.err >&5
  27258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27259. (exit $ac_status); } && {
  27260. test -z "$ac_c_werror_flag" ||
  27261. test ! -s conftest.err
  27262. } && test -s conftest.$ac_objext; then
  27263. ac_hi=-1 ac_mid=-1
  27264. while :; do
  27265. cat >conftest.$ac_ext <<_ACEOF
  27266. /* confdefs.h. */
  27267. _ACEOF
  27268. cat confdefs.h >>conftest.$ac_ext
  27269. cat >>conftest.$ac_ext <<_ACEOF
  27270. /* end confdefs.h. */
  27271. $ac_includes_default
  27272. typedef short ac__type_sizeof_;
  27273. int
  27274. main ()
  27275. {
  27276. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  27277. test_array [0] = 0
  27278. ;
  27279. return 0;
  27280. }
  27281. _ACEOF
  27282. rm -f conftest.$ac_objext
  27283. if { (ac_try="$ac_compile"
  27284. case "(($ac_try" in
  27285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27286. *) ac_try_echo=$ac_try;;
  27287. esac
  27288. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27289. (eval "$ac_compile") 2>conftest.er1
  27290. ac_status=$?
  27291. grep -v '^ *+' conftest.er1 >conftest.err
  27292. rm -f conftest.er1
  27293. cat conftest.err >&5
  27294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27295. (exit $ac_status); } && {
  27296. test -z "$ac_c_werror_flag" ||
  27297. test ! -s conftest.err
  27298. } && test -s conftest.$ac_objext; then
  27299. ac_lo=$ac_mid; break
  27300. else
  27301. echo "$as_me: failed program was:" >&5
  27302. sed 's/^/| /' conftest.$ac_ext >&5
  27303. ac_hi=`expr '(' $ac_mid ')' - 1`
  27304. if test $ac_mid -le $ac_hi; then
  27305. ac_lo= ac_hi=
  27306. break
  27307. fi
  27308. ac_mid=`expr 2 '*' $ac_mid`
  27309. fi
  27310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27311. done
  27312. else
  27313. echo "$as_me: failed program was:" >&5
  27314. sed 's/^/| /' conftest.$ac_ext >&5
  27315. ac_lo= ac_hi=
  27316. fi
  27317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27318. fi
  27319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27320. # Binary search between lo and hi bounds.
  27321. while test "x$ac_lo" != "x$ac_hi"; do
  27322. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27323. cat >conftest.$ac_ext <<_ACEOF
  27324. /* confdefs.h. */
  27325. _ACEOF
  27326. cat confdefs.h >>conftest.$ac_ext
  27327. cat >>conftest.$ac_ext <<_ACEOF
  27328. /* end confdefs.h. */
  27329. $ac_includes_default
  27330. typedef short ac__type_sizeof_;
  27331. int
  27332. main ()
  27333. {
  27334. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  27335. test_array [0] = 0
  27336. ;
  27337. return 0;
  27338. }
  27339. _ACEOF
  27340. rm -f conftest.$ac_objext
  27341. if { (ac_try="$ac_compile"
  27342. case "(($ac_try" in
  27343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27344. *) ac_try_echo=$ac_try;;
  27345. esac
  27346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27347. (eval "$ac_compile") 2>conftest.er1
  27348. ac_status=$?
  27349. grep -v '^ *+' conftest.er1 >conftest.err
  27350. rm -f conftest.er1
  27351. cat conftest.err >&5
  27352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27353. (exit $ac_status); } && {
  27354. test -z "$ac_c_werror_flag" ||
  27355. test ! -s conftest.err
  27356. } && test -s conftest.$ac_objext; then
  27357. ac_hi=$ac_mid
  27358. else
  27359. echo "$as_me: failed program was:" >&5
  27360. sed 's/^/| /' conftest.$ac_ext >&5
  27361. ac_lo=`expr '(' $ac_mid ')' + 1`
  27362. fi
  27363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27364. done
  27365. case $ac_lo in
  27366. ?*) ac_cv_sizeof_short=$ac_lo;;
  27367. '') if test "$ac_cv_type_short" = yes; then
  27368. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  27369. See \`config.log' for more details." >&5
  27370. echo "$as_me: error: cannot compute sizeof (short)
  27371. See \`config.log' for more details." >&2;}
  27372. { (exit 77); exit 77; }; }
  27373. else
  27374. ac_cv_sizeof_short=0
  27375. fi ;;
  27376. esac
  27377. else
  27378. cat >conftest.$ac_ext <<_ACEOF
  27379. /* confdefs.h. */
  27380. _ACEOF
  27381. cat confdefs.h >>conftest.$ac_ext
  27382. cat >>conftest.$ac_ext <<_ACEOF
  27383. /* end confdefs.h. */
  27384. $ac_includes_default
  27385. typedef short ac__type_sizeof_;
  27386. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27387. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27388. #include <stdio.h>
  27389. #include <stdlib.h>
  27390. int
  27391. main ()
  27392. {
  27393. FILE *f = fopen ("conftest.val", "w");
  27394. if (! f)
  27395. return 1;
  27396. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  27397. {
  27398. long int i = longval ();
  27399. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27400. return 1;
  27401. fprintf (f, "%ld\n", i);
  27402. }
  27403. else
  27404. {
  27405. unsigned long int i = ulongval ();
  27406. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27407. return 1;
  27408. fprintf (f, "%lu\n", i);
  27409. }
  27410. return ferror (f) || fclose (f) != 0;
  27411. ;
  27412. return 0;
  27413. }
  27414. _ACEOF
  27415. rm -f conftest$ac_exeext
  27416. if { (ac_try="$ac_link"
  27417. case "(($ac_try" in
  27418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27419. *) ac_try_echo=$ac_try;;
  27420. esac
  27421. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27422. (eval "$ac_link") 2>&5
  27423. ac_status=$?
  27424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27425. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27426. { (case "(($ac_try" in
  27427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27428. *) ac_try_echo=$ac_try;;
  27429. esac
  27430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27431. (eval "$ac_try") 2>&5
  27432. ac_status=$?
  27433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27434. (exit $ac_status); }; }; then
  27435. ac_cv_sizeof_short=`cat conftest.val`
  27436. else
  27437. echo "$as_me: program exited with status $ac_status" >&5
  27438. echo "$as_me: failed program was:" >&5
  27439. sed 's/^/| /' conftest.$ac_ext >&5
  27440. ( exit $ac_status )
  27441. if test "$ac_cv_type_short" = yes; then
  27442. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  27443. See \`config.log' for more details." >&5
  27444. echo "$as_me: error: cannot compute sizeof (short)
  27445. See \`config.log' for more details." >&2;}
  27446. { (exit 77); exit 77; }; }
  27447. else
  27448. ac_cv_sizeof_short=0
  27449. fi
  27450. fi
  27451. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27452. fi
  27453. rm -f conftest.val
  27454. fi
  27455. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  27456. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  27457. cat >>confdefs.h <<_ACEOF
  27458. #define SIZEOF_SHORT $ac_cv_sizeof_short
  27459. _ACEOF
  27460. # ----------------------------------------------------------------------
  27461. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  27462. # ----------------------------------------------------------------------
  27463. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  27464. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  27465. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  27466. echo $ECHO_N "(cached) $ECHO_C" >&6
  27467. else
  27468. ac_check_lib_save_LIBS=$LIBS
  27469. LIBS="-lgen $LIBS"
  27470. cat >conftest.$ac_ext <<_ACEOF
  27471. /* confdefs.h. */
  27472. _ACEOF
  27473. cat confdefs.h >>conftest.$ac_ext
  27474. cat >>conftest.$ac_ext <<_ACEOF
  27475. /* end confdefs.h. */
  27476. /* Override any GCC internal prototype to avoid an error.
  27477. Use char because int might match the return type of a GCC
  27478. builtin and then its argument prototype would still apply. */
  27479. #ifdef __cplusplus
  27480. extern "C"
  27481. #endif
  27482. char pathfind ();
  27483. int
  27484. main ()
  27485. {
  27486. return pathfind ();
  27487. ;
  27488. return 0;
  27489. }
  27490. _ACEOF
  27491. rm -f conftest.$ac_objext conftest$ac_exeext
  27492. if { (ac_try="$ac_link"
  27493. case "(($ac_try" in
  27494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27495. *) ac_try_echo=$ac_try;;
  27496. esac
  27497. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27498. (eval "$ac_link") 2>conftest.er1
  27499. ac_status=$?
  27500. grep -v '^ *+' conftest.er1 >conftest.err
  27501. rm -f conftest.er1
  27502. cat conftest.err >&5
  27503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27504. (exit $ac_status); } && {
  27505. test -z "$ac_c_werror_flag" ||
  27506. test ! -s conftest.err
  27507. } && test -s conftest$ac_exeext &&
  27508. $as_test_x conftest$ac_exeext; then
  27509. ac_cv_lib_gen_pathfind=yes
  27510. else
  27511. echo "$as_me: failed program was:" >&5
  27512. sed 's/^/| /' conftest.$ac_ext >&5
  27513. ac_cv_lib_gen_pathfind=no
  27514. fi
  27515. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27516. conftest$ac_exeext conftest.$ac_ext
  27517. LIBS=$ac_check_lib_save_LIBS
  27518. fi
  27519. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  27520. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  27521. if test $ac_cv_lib_gen_pathfind = yes; then
  27522. cat >>confdefs.h <<_ACEOF
  27523. #define HAVE_LIBGEN 1
  27524. _ACEOF
  27525. LIBS="-lgen $LIBS"
  27526. fi
  27527. for ac_func in vprintf
  27528. do
  27529. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27530. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27531. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27532. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27533. echo $ECHO_N "(cached) $ECHO_C" >&6
  27534. else
  27535. cat >conftest.$ac_ext <<_ACEOF
  27536. /* confdefs.h. */
  27537. _ACEOF
  27538. cat confdefs.h >>conftest.$ac_ext
  27539. cat >>conftest.$ac_ext <<_ACEOF
  27540. /* end confdefs.h. */
  27541. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27542. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27543. #define $ac_func innocuous_$ac_func
  27544. /* System header to define __stub macros and hopefully few prototypes,
  27545. which can conflict with char $ac_func (); below.
  27546. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27547. <limits.h> exists even on freestanding compilers. */
  27548. #ifdef __STDC__
  27549. # include <limits.h>
  27550. #else
  27551. # include <assert.h>
  27552. #endif
  27553. #undef $ac_func
  27554. /* Override any GCC internal prototype to avoid an error.
  27555. Use char because int might match the return type of a GCC
  27556. builtin and then its argument prototype would still apply. */
  27557. #ifdef __cplusplus
  27558. extern "C"
  27559. #endif
  27560. char $ac_func ();
  27561. /* The GNU C library defines this for functions which it implements
  27562. to always fail with ENOSYS. Some functions are actually named
  27563. something starting with __ and the normal name is an alias. */
  27564. #if defined __stub_$ac_func || defined __stub___$ac_func
  27565. choke me
  27566. #endif
  27567. int
  27568. main ()
  27569. {
  27570. return $ac_func ();
  27571. ;
  27572. return 0;
  27573. }
  27574. _ACEOF
  27575. rm -f conftest.$ac_objext conftest$ac_exeext
  27576. if { (ac_try="$ac_link"
  27577. case "(($ac_try" in
  27578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27579. *) ac_try_echo=$ac_try;;
  27580. esac
  27581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27582. (eval "$ac_link") 2>conftest.er1
  27583. ac_status=$?
  27584. grep -v '^ *+' conftest.er1 >conftest.err
  27585. rm -f conftest.er1
  27586. cat conftest.err >&5
  27587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27588. (exit $ac_status); } && {
  27589. test -z "$ac_c_werror_flag" ||
  27590. test ! -s conftest.err
  27591. } && test -s conftest$ac_exeext &&
  27592. $as_test_x conftest$ac_exeext; then
  27593. eval "$as_ac_var=yes"
  27594. else
  27595. echo "$as_me: failed program was:" >&5
  27596. sed 's/^/| /' conftest.$ac_ext >&5
  27597. eval "$as_ac_var=no"
  27598. fi
  27599. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27600. conftest$ac_exeext conftest.$ac_ext
  27601. fi
  27602. ac_res=`eval echo '${'$as_ac_var'}'`
  27603. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27604. echo "${ECHO_T}$ac_res" >&6; }
  27605. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27606. cat >>confdefs.h <<_ACEOF
  27607. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27608. _ACEOF
  27609. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  27610. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  27611. if test "${ac_cv_func__doprnt+set}" = set; then
  27612. echo $ECHO_N "(cached) $ECHO_C" >&6
  27613. else
  27614. cat >conftest.$ac_ext <<_ACEOF
  27615. /* confdefs.h. */
  27616. _ACEOF
  27617. cat confdefs.h >>conftest.$ac_ext
  27618. cat >>conftest.$ac_ext <<_ACEOF
  27619. /* end confdefs.h. */
  27620. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  27621. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27622. #define _doprnt innocuous__doprnt
  27623. /* System header to define __stub macros and hopefully few prototypes,
  27624. which can conflict with char _doprnt (); below.
  27625. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27626. <limits.h> exists even on freestanding compilers. */
  27627. #ifdef __STDC__
  27628. # include <limits.h>
  27629. #else
  27630. # include <assert.h>
  27631. #endif
  27632. #undef _doprnt
  27633. /* Override any GCC internal prototype to avoid an error.
  27634. Use char because int might match the return type of a GCC
  27635. builtin and then its argument prototype would still apply. */
  27636. #ifdef __cplusplus
  27637. extern "C"
  27638. #endif
  27639. char _doprnt ();
  27640. /* The GNU C library defines this for functions which it implements
  27641. to always fail with ENOSYS. Some functions are actually named
  27642. something starting with __ and the normal name is an alias. */
  27643. #if defined __stub__doprnt || defined __stub____doprnt
  27644. choke me
  27645. #endif
  27646. int
  27647. main ()
  27648. {
  27649. return _doprnt ();
  27650. ;
  27651. return 0;
  27652. }
  27653. _ACEOF
  27654. rm -f conftest.$ac_objext conftest$ac_exeext
  27655. if { (ac_try="$ac_link"
  27656. case "(($ac_try" in
  27657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27658. *) ac_try_echo=$ac_try;;
  27659. esac
  27660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27661. (eval "$ac_link") 2>conftest.er1
  27662. ac_status=$?
  27663. grep -v '^ *+' conftest.er1 >conftest.err
  27664. rm -f conftest.er1
  27665. cat conftest.err >&5
  27666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27667. (exit $ac_status); } && {
  27668. test -z "$ac_c_werror_flag" ||
  27669. test ! -s conftest.err
  27670. } && test -s conftest$ac_exeext &&
  27671. $as_test_x conftest$ac_exeext; then
  27672. ac_cv_func__doprnt=yes
  27673. else
  27674. echo "$as_me: failed program was:" >&5
  27675. sed 's/^/| /' conftest.$ac_ext >&5
  27676. ac_cv_func__doprnt=no
  27677. fi
  27678. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27679. conftest$ac_exeext conftest.$ac_ext
  27680. fi
  27681. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  27682. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  27683. if test $ac_cv_func__doprnt = yes; then
  27684. cat >>confdefs.h <<\_ACEOF
  27685. #define HAVE_DOPRNT 1
  27686. _ACEOF
  27687. fi
  27688. fi
  27689. done
  27690. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  27691. do
  27692. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27693. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27694. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27695. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27696. echo $ECHO_N "(cached) $ECHO_C" >&6
  27697. else
  27698. cat >conftest.$ac_ext <<_ACEOF
  27699. /* confdefs.h. */
  27700. _ACEOF
  27701. cat confdefs.h >>conftest.$ac_ext
  27702. cat >>conftest.$ac_ext <<_ACEOF
  27703. /* end confdefs.h. */
  27704. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27705. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27706. #define $ac_func innocuous_$ac_func
  27707. /* System header to define __stub macros and hopefully few prototypes,
  27708. which can conflict with char $ac_func (); below.
  27709. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27710. <limits.h> exists even on freestanding compilers. */
  27711. #ifdef __STDC__
  27712. # include <limits.h>
  27713. #else
  27714. # include <assert.h>
  27715. #endif
  27716. #undef $ac_func
  27717. /* Override any GCC internal prototype to avoid an error.
  27718. Use char because int might match the return type of a GCC
  27719. builtin and then its argument prototype would still apply. */
  27720. #ifdef __cplusplus
  27721. extern "C"
  27722. #endif
  27723. char $ac_func ();
  27724. /* The GNU C library defines this for functions which it implements
  27725. to always fail with ENOSYS. Some functions are actually named
  27726. something starting with __ and the normal name is an alias. */
  27727. #if defined __stub_$ac_func || defined __stub___$ac_func
  27728. choke me
  27729. #endif
  27730. int
  27731. main ()
  27732. {
  27733. return $ac_func ();
  27734. ;
  27735. return 0;
  27736. }
  27737. _ACEOF
  27738. rm -f conftest.$ac_objext conftest$ac_exeext
  27739. if { (ac_try="$ac_link"
  27740. case "(($ac_try" in
  27741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27742. *) ac_try_echo=$ac_try;;
  27743. esac
  27744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27745. (eval "$ac_link") 2>conftest.er1
  27746. ac_status=$?
  27747. grep -v '^ *+' conftest.er1 >conftest.err
  27748. rm -f conftest.er1
  27749. cat conftest.err >&5
  27750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27751. (exit $ac_status); } && {
  27752. test -z "$ac_c_werror_flag" ||
  27753. test ! -s conftest.err
  27754. } && test -s conftest$ac_exeext &&
  27755. $as_test_x conftest$ac_exeext; then
  27756. eval "$as_ac_var=yes"
  27757. else
  27758. echo "$as_me: failed program was:" >&5
  27759. sed 's/^/| /' conftest.$ac_ext >&5
  27760. eval "$as_ac_var=no"
  27761. fi
  27762. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27763. conftest$ac_exeext conftest.$ac_ext
  27764. fi
  27765. ac_res=`eval echo '${'$as_ac_var'}'`
  27766. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27767. echo "${ECHO_T}$ac_res" >&6; }
  27768. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27769. cat >>confdefs.h <<_ACEOF
  27770. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27771. _ACEOF
  27772. fi
  27773. done
  27774. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  27775. fi
  27776. # Check to see if a reg expr header is specified.
  27777. # Check whether --with-regex-header was given.
  27778. if test "${with_regex_header+set}" = set; then
  27779. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  27780. else
  27781. { echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  27782. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6; }
  27783. if test "${libopts_cv_with_regex_header+set}" = set; then
  27784. echo $ECHO_N "(cached) $ECHO_C" >&6
  27785. else
  27786. libopts_cv_with_regex_header=no
  27787. fi
  27788. { echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  27789. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6; }
  27790. fi
  27791. # end of AC_ARG_WITH
  27792. if test "X${libopts_cv_with_regex_header}" != Xno
  27793. then
  27794. cat >>confdefs.h <<_ACEOF
  27795. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  27796. _ACEOF
  27797. else
  27798. cat >>confdefs.h <<\_ACEOF
  27799. #define REGEX_HEADER <regex.h>
  27800. _ACEOF
  27801. fi
  27802. # Check to see if a working libregex can be found.
  27803. # Check whether --with-libregex was given.
  27804. if test "${with_libregex+set}" = set; then
  27805. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  27806. else
  27807. { echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  27808. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6; }
  27809. if test "${libopts_cv_with_libregex_root+set}" = set; then
  27810. echo $ECHO_N "(cached) $ECHO_C" >&6
  27811. else
  27812. libopts_cv_with_libregex_root=no
  27813. fi
  27814. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  27815. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6; }
  27816. fi
  27817. # end of AC_ARG_WITH libregex
  27818. if test "${with_libguile+set}" = set && \
  27819. test "${withval}" = no
  27820. then ## disabled by request
  27821. libopts_cv_with_libregex_root=no
  27822. libopts_cv_with_libregex_cflags=no
  27823. libopts_cv_with_libregex_libs=no
  27824. else
  27825. # Check whether --with-libregex-cflags was given.
  27826. if test "${with_libregex_cflags+set}" = set; then
  27827. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  27828. else
  27829. { echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  27830. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6; }
  27831. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  27832. echo $ECHO_N "(cached) $ECHO_C" >&6
  27833. else
  27834. libopts_cv_with_libregex_cflags=no
  27835. fi
  27836. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  27837. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6; }
  27838. fi
  27839. # end of AC_ARG_WITH libregex-cflags
  27840. # Check whether --with-libregex-libs was given.
  27841. if test "${with_libregex_libs+set}" = set; then
  27842. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  27843. else
  27844. { echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  27845. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6; }
  27846. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  27847. echo $ECHO_N "(cached) $ECHO_C" >&6
  27848. else
  27849. libopts_cv_with_libregex_libs=no
  27850. fi
  27851. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  27852. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6; }
  27853. fi
  27854. # end of AC_ARG_WITH libregex-libs
  27855. case "X${libopts_cv_with_libregex_cflags}" in
  27856. Xyes|Xno|X )
  27857. case "X${libopts_cv_with_libregex_root}" in
  27858. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  27859. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  27860. esac
  27861. esac
  27862. case "X${libopts_cv_with_libregex_libs}" in
  27863. Xyes|Xno|X )
  27864. case "X${libopts_cv_with_libregex_root}" in
  27865. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  27866. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  27867. esac
  27868. esac
  27869. libopts_save_CPPFLAGS="${CPPFLAGS}"
  27870. libopts_save_LIBS="${LIBS}"
  27871. fi ## disabled by request
  27872. case "X${libopts_cv_with_libregex_cflags}" in
  27873. Xyes|Xno|X )
  27874. libopts_cv_with_libregex_cflags="" ;;
  27875. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  27876. esac
  27877. case "X${libopts_cv_with_libregex_libs}" in
  27878. Xyes|Xno|X )
  27879. libopts_cv_with_libregex_libs="" ;;
  27880. * )
  27881. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  27882. esac
  27883. LIBREGEX_CFLAGS=""
  27884. LIBREGEX_LIBS=""
  27885. { echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  27886. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6; }
  27887. if test "${libopts_cv_with_libregex+set}" = set; then
  27888. echo $ECHO_N "(cached) $ECHO_C" >&6
  27889. else
  27890. if test "$cross_compiling" = yes; then
  27891. libopts_cv_with_libregex=no
  27892. else
  27893. cat >conftest.$ac_ext <<_ACEOF
  27894. /* confdefs.h. */
  27895. _ACEOF
  27896. cat confdefs.h >>conftest.$ac_ext
  27897. cat >>conftest.$ac_ext <<_ACEOF
  27898. /* end confdefs.h. */
  27899. #include <stdio.h>
  27900. #include <stdlib.h>
  27901. #include <sys/types.h>
  27902. #include REGEX_HEADER
  27903. static regex_t re;
  27904. void comp_re( char const* pzPat ) {
  27905. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  27906. if (res == 0) return;
  27907. exit( res ); }
  27908. int main() {
  27909. regmatch_t m[2];
  27910. comp_re( "^.*\$" );
  27911. comp_re( "()|no.*" );
  27912. comp_re( "." );
  27913. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  27914. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  27915. fputs( "error: regex -->.<-- did not match\n", stderr );
  27916. return 1;
  27917. }
  27918. return 0; }
  27919. _ACEOF
  27920. rm -f conftest$ac_exeext
  27921. if { (ac_try="$ac_link"
  27922. case "(($ac_try" in
  27923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27924. *) ac_try_echo=$ac_try;;
  27925. esac
  27926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27927. (eval "$ac_link") 2>&5
  27928. ac_status=$?
  27929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27930. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27931. { (case "(($ac_try" in
  27932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27933. *) ac_try_echo=$ac_try;;
  27934. esac
  27935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27936. (eval "$ac_try") 2>&5
  27937. ac_status=$?
  27938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27939. (exit $ac_status); }; }; then
  27940. libopts_cv_with_libregex=yes
  27941. else
  27942. echo "$as_me: program exited with status $ac_status" >&5
  27943. echo "$as_me: failed program was:" >&5
  27944. sed 's/^/| /' conftest.$ac_ext >&5
  27945. ( exit $ac_status )
  27946. libopts_cv_with_libregex=no
  27947. fi
  27948. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27949. fi
  27950. # end of AC_TRY_RUN
  27951. fi
  27952. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  27953. { echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  27954. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6; }
  27955. if test "X${libopts_cv_with_libregex}" != Xno
  27956. then
  27957. cat >>confdefs.h <<\_ACEOF
  27958. #define WITH_LIBREGEX 1
  27959. _ACEOF
  27960. else
  27961. CPPFLAGS="${libopts_save_CPPFLAGS}"
  27962. LIBS="${libopts_save_LIBS}"
  27963. fi
  27964. # Check to see if pathfind(3) works.
  27965. { echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  27966. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6; }
  27967. if test "${libopts_cv_run_pathfind+set}" = set; then
  27968. echo $ECHO_N "(cached) $ECHO_C" >&6
  27969. else
  27970. if test "$cross_compiling" = yes; then
  27971. libopts_cv_run_pathfind=no
  27972. else
  27973. cat >conftest.$ac_ext <<_ACEOF
  27974. /* confdefs.h. */
  27975. _ACEOF
  27976. cat confdefs.h >>conftest.$ac_ext
  27977. cat >>conftest.$ac_ext <<_ACEOF
  27978. /* end confdefs.h. */
  27979. #include <string.h>
  27980. #include <stdlib.h>
  27981. int main (int argc, char** argv) {
  27982. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  27983. return (pz == 0) ? 1 : 0;
  27984. }
  27985. _ACEOF
  27986. rm -f conftest$ac_exeext
  27987. if { (ac_try="$ac_link"
  27988. case "(($ac_try" in
  27989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27990. *) ac_try_echo=$ac_try;;
  27991. esac
  27992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27993. (eval "$ac_link") 2>&5
  27994. ac_status=$?
  27995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27996. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27997. { (case "(($ac_try" in
  27998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27999. *) ac_try_echo=$ac_try;;
  28000. esac
  28001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28002. (eval "$ac_try") 2>&5
  28003. ac_status=$?
  28004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28005. (exit $ac_status); }; }; then
  28006. libopts_cv_run_pathfind=yes
  28007. else
  28008. echo "$as_me: program exited with status $ac_status" >&5
  28009. echo "$as_me: failed program was:" >&5
  28010. sed 's/^/| /' conftest.$ac_ext >&5
  28011. ( exit $ac_status )
  28012. libopts_cv_run_pathfind=no
  28013. fi
  28014. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28015. fi
  28016. # end of TRY_RUN
  28017. fi
  28018. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  28019. { echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  28020. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6; }
  28021. if test "X${libopts_cv_run_pathfind}" != Xno
  28022. then
  28023. cat >>confdefs.h <<\_ACEOF
  28024. #define HAVE_PATHFIND 1
  28025. _ACEOF
  28026. fi
  28027. # Check to see if /dev/zero is readable device.
  28028. { echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  28029. echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6; }
  28030. if test "${libopts_cv_test_dev_zero+set}" = set; then
  28031. echo $ECHO_N "(cached) $ECHO_C" >&6
  28032. else
  28033. libopts_cv_test_dev_zero=`exec 2> /dev/null
  28034. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  28035. test -z "${dzero}" && exit 1
  28036. echo ${dzero}`
  28037. if test $? -ne 0
  28038. then libopts_cv_test_dev_zero=no
  28039. elif test -z "$libopts_cv_test_dev_zero"
  28040. then libopts_cv_test_dev_zero=no
  28041. fi
  28042. fi
  28043. # end of CACHE_VAL of libopts_cv_test_dev_zero
  28044. { echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  28045. echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6; }
  28046. if test "X${libopts_cv_test_dev_zero}" != Xno
  28047. then
  28048. cat >>confdefs.h <<\_ACEOF
  28049. #define HAVE_DEV_ZERO 1
  28050. _ACEOF
  28051. fi
  28052. # Check to see if we have a functional realpath(3C).
  28053. { echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  28054. echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6; }
  28055. if test "${libopts_cv_run_realpath+set}" = set; then
  28056. echo $ECHO_N "(cached) $ECHO_C" >&6
  28057. else
  28058. if test "$cross_compiling" = yes; then
  28059. libopts_cv_run_realpath=no
  28060. else
  28061. cat >conftest.$ac_ext <<_ACEOF
  28062. /* confdefs.h. */
  28063. _ACEOF
  28064. cat confdefs.h >>conftest.$ac_ext
  28065. cat >>conftest.$ac_ext <<_ACEOF
  28066. /* end confdefs.h. */
  28067. #include <limits.h>
  28068. #include <stdlib.h>
  28069. int main (int argc, char** argv) {
  28070. #ifndef PATH_MAX
  28071. choke me!!
  28072. #else
  28073. char zPath[PATH_MAX+1];
  28074. #endif
  28075. char *pz = realpath(argv[0], zPath);
  28076. return (pz == zPath) ? 0 : 1;
  28077. }
  28078. _ACEOF
  28079. rm -f conftest$ac_exeext
  28080. if { (ac_try="$ac_link"
  28081. case "(($ac_try" in
  28082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28083. *) ac_try_echo=$ac_try;;
  28084. esac
  28085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28086. (eval "$ac_link") 2>&5
  28087. ac_status=$?
  28088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28089. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28090. { (case "(($ac_try" in
  28091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28092. *) ac_try_echo=$ac_try;;
  28093. esac
  28094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28095. (eval "$ac_try") 2>&5
  28096. ac_status=$?
  28097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28098. (exit $ac_status); }; }; then
  28099. libopts_cv_run_realpath=yes
  28100. else
  28101. echo "$as_me: program exited with status $ac_status" >&5
  28102. echo "$as_me: failed program was:" >&5
  28103. sed 's/^/| /' conftest.$ac_ext >&5
  28104. ( exit $ac_status )
  28105. libopts_cv_run_realpath=no
  28106. fi
  28107. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28108. fi
  28109. # end of TRY_RUN
  28110. fi
  28111. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  28112. { echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  28113. echo "${ECHO_T}${libopts_cv_run_realpath}" >&6; }
  28114. if test "X${libopts_cv_run_realpath}" != Xno
  28115. then
  28116. cat >>confdefs.h <<\_ACEOF
  28117. #define HAVE_REALPATH 1
  28118. _ACEOF
  28119. fi
  28120. # Check to see if strftime() works.
  28121. { echo "$as_me:$LINENO: checking whether strftime() works" >&5
  28122. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6; }
  28123. if test "${libopts_cv_run_strftime+set}" = set; then
  28124. echo $ECHO_N "(cached) $ECHO_C" >&6
  28125. else
  28126. if test "$cross_compiling" = yes; then
  28127. libopts_cv_run_strftime=no
  28128. else
  28129. cat >conftest.$ac_ext <<_ACEOF
  28130. /* confdefs.h. */
  28131. _ACEOF
  28132. cat confdefs.h >>conftest.$ac_ext
  28133. cat >>conftest.$ac_ext <<_ACEOF
  28134. /* end confdefs.h. */
  28135. #include <time.h>
  28136. #include <string.h>
  28137. char t_buf[ 64 ];
  28138. int main() {
  28139. static char const z[] = "Thursday Aug 28 240";
  28140. struct tm tm;
  28141. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  28142. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  28143. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  28144. tm.tm_mday = 28; /* day of the month [1, 31] */
  28145. tm.tm_mon = 7; /* months since January [0, 11] */
  28146. tm.tm_year = 86; /* years since 1900 */
  28147. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  28148. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  28149. tm.tm_isdst = 1; /* flag for daylight savings time */
  28150. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  28151. return (strcmp( t_buf, z ) != 0); }
  28152. _ACEOF
  28153. rm -f conftest$ac_exeext
  28154. if { (ac_try="$ac_link"
  28155. case "(($ac_try" in
  28156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28157. *) ac_try_echo=$ac_try;;
  28158. esac
  28159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28160. (eval "$ac_link") 2>&5
  28161. ac_status=$?
  28162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28163. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28164. { (case "(($ac_try" in
  28165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28166. *) ac_try_echo=$ac_try;;
  28167. esac
  28168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28169. (eval "$ac_try") 2>&5
  28170. ac_status=$?
  28171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28172. (exit $ac_status); }; }; then
  28173. libopts_cv_run_strftime=yes
  28174. else
  28175. echo "$as_me: program exited with status $ac_status" >&5
  28176. echo "$as_me: failed program was:" >&5
  28177. sed 's/^/| /' conftest.$ac_ext >&5
  28178. ( exit $ac_status )
  28179. libopts_cv_run_strftime=no
  28180. fi
  28181. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28182. fi
  28183. # end of TRY_RUN
  28184. fi
  28185. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  28186. { echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  28187. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6; }
  28188. if test "X${libopts_cv_run_strftime}" != Xno
  28189. then
  28190. cat >>confdefs.h <<\_ACEOF
  28191. #define HAVE_STRFTIME 1
  28192. _ACEOF
  28193. fi
  28194. # Check to see if fopen accepts "b" mode.
  28195. { echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  28196. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6; }
  28197. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  28198. echo $ECHO_N "(cached) $ECHO_C" >&6
  28199. else
  28200. if test "$cross_compiling" = yes; then
  28201. libopts_cv_run_fopen_binary=no
  28202. else
  28203. cat >conftest.$ac_ext <<_ACEOF
  28204. /* confdefs.h. */
  28205. _ACEOF
  28206. cat confdefs.h >>conftest.$ac_ext
  28207. cat >>conftest.$ac_ext <<_ACEOF
  28208. /* end confdefs.h. */
  28209. #include <stdio.h>
  28210. int main (int argc, char** argv) {
  28211. FILE* fp = fopen("conftest.$ac_ext", "rb");
  28212. return (fp == NULL) ? 1 : fclose(fp); }
  28213. _ACEOF
  28214. rm -f conftest$ac_exeext
  28215. if { (ac_try="$ac_link"
  28216. case "(($ac_try" in
  28217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28218. *) ac_try_echo=$ac_try;;
  28219. esac
  28220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28221. (eval "$ac_link") 2>&5
  28222. ac_status=$?
  28223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28224. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28225. { (case "(($ac_try" in
  28226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28227. *) ac_try_echo=$ac_try;;
  28228. esac
  28229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28230. (eval "$ac_try") 2>&5
  28231. ac_status=$?
  28232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28233. (exit $ac_status); }; }; then
  28234. libopts_cv_run_fopen_binary=yes
  28235. else
  28236. echo "$as_me: program exited with status $ac_status" >&5
  28237. echo "$as_me: failed program was:" >&5
  28238. sed 's/^/| /' conftest.$ac_ext >&5
  28239. ( exit $ac_status )
  28240. libopts_cv_run_fopen_binary=no
  28241. fi
  28242. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28243. fi
  28244. # end of TRY_RUN
  28245. fi
  28246. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  28247. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  28248. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6; }
  28249. if test "X${libopts_cv_run_fopen_binary}" != Xno
  28250. then
  28251. cat >>confdefs.h <<\_ACEOF
  28252. #define FOPEN_BINARY_FLAG "b"
  28253. _ACEOF
  28254. else
  28255. cat >>confdefs.h <<\_ACEOF
  28256. #define FOPEN_BINARY_FLAG ""
  28257. _ACEOF
  28258. fi
  28259. # Check to see if fopen accepts "t" mode.
  28260. { echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  28261. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6; }
  28262. if test "${libopts_cv_run_fopen_text+set}" = set; then
  28263. echo $ECHO_N "(cached) $ECHO_C" >&6
  28264. else
  28265. if test "$cross_compiling" = yes; then
  28266. libopts_cv_run_fopen_text=no
  28267. else
  28268. cat >conftest.$ac_ext <<_ACEOF
  28269. /* confdefs.h. */
  28270. _ACEOF
  28271. cat confdefs.h >>conftest.$ac_ext
  28272. cat >>conftest.$ac_ext <<_ACEOF
  28273. /* end confdefs.h. */
  28274. #include <stdio.h>
  28275. int main (int argc, char** argv) {
  28276. FILE* fp = fopen("conftest.$ac_ext", "rt");
  28277. return (fp == NULL) ? 1 : fclose(fp); }
  28278. _ACEOF
  28279. rm -f conftest$ac_exeext
  28280. if { (ac_try="$ac_link"
  28281. case "(($ac_try" in
  28282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28283. *) ac_try_echo=$ac_try;;
  28284. esac
  28285. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28286. (eval "$ac_link") 2>&5
  28287. ac_status=$?
  28288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28289. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28290. { (case "(($ac_try" in
  28291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28292. *) ac_try_echo=$ac_try;;
  28293. esac
  28294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28295. (eval "$ac_try") 2>&5
  28296. ac_status=$?
  28297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28298. (exit $ac_status); }; }; then
  28299. libopts_cv_run_fopen_text=yes
  28300. else
  28301. echo "$as_me: program exited with status $ac_status" >&5
  28302. echo "$as_me: failed program was:" >&5
  28303. sed 's/^/| /' conftest.$ac_ext >&5
  28304. ( exit $ac_status )
  28305. libopts_cv_run_fopen_text=no
  28306. fi
  28307. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28308. fi
  28309. # end of TRY_RUN
  28310. fi
  28311. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  28312. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  28313. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6; }
  28314. if test "X${libopts_cv_run_fopen_text}" != Xno
  28315. then
  28316. cat >>confdefs.h <<\_ACEOF
  28317. #define FOPEN_TEXT_FLAG "t"
  28318. _ACEOF
  28319. else
  28320. cat >>confdefs.h <<\_ACEOF
  28321. #define FOPEN_TEXT_FLAG ""
  28322. _ACEOF
  28323. fi
  28324. # Check to see if not wanting optional option args.
  28325. # Check whether --enable-optional-args was given.
  28326. if test "${enable_optional_args+set}" = set; then
  28327. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  28328. else
  28329. { echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
  28330. echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6; }
  28331. if test "${libopts_cv_enable_optional_args+set}" = set; then
  28332. echo $ECHO_N "(cached) $ECHO_C" >&6
  28333. else
  28334. libopts_cv_enable_optional_args=yes
  28335. fi
  28336. { echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
  28337. echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6; }
  28338. fi
  28339. # end of AC_ARG_ENABLE
  28340. if test "X${libopts_cv_enable_optional_args}" = Xno
  28341. then
  28342. cat >>confdefs.h <<\_ACEOF
  28343. #define NO_OPTIONAL_OPT_ARGS 1
  28344. _ACEOF
  28345. fi
  28346. else
  28347. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  28348. # =================
  28349. # AC_HEADER_STDC
  28350. # =================
  28351. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  28352. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  28353. if test "${ac_cv_header_stdc+set}" = set; then
  28354. echo $ECHO_N "(cached) $ECHO_C" >&6
  28355. else
  28356. cat >conftest.$ac_ext <<_ACEOF
  28357. /* confdefs.h. */
  28358. _ACEOF
  28359. cat confdefs.h >>conftest.$ac_ext
  28360. cat >>conftest.$ac_ext <<_ACEOF
  28361. /* end confdefs.h. */
  28362. #include <stdlib.h>
  28363. #include <stdarg.h>
  28364. #include <string.h>
  28365. #include <float.h>
  28366. int
  28367. main ()
  28368. {
  28369. ;
  28370. return 0;
  28371. }
  28372. _ACEOF
  28373. rm -f conftest.$ac_objext
  28374. if { (ac_try="$ac_compile"
  28375. case "(($ac_try" in
  28376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28377. *) ac_try_echo=$ac_try;;
  28378. esac
  28379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28380. (eval "$ac_compile") 2>conftest.er1
  28381. ac_status=$?
  28382. grep -v '^ *+' conftest.er1 >conftest.err
  28383. rm -f conftest.er1
  28384. cat conftest.err >&5
  28385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28386. (exit $ac_status); } && {
  28387. test -z "$ac_c_werror_flag" ||
  28388. test ! -s conftest.err
  28389. } && test -s conftest.$ac_objext; then
  28390. ac_cv_header_stdc=yes
  28391. else
  28392. echo "$as_me: failed program was:" >&5
  28393. sed 's/^/| /' conftest.$ac_ext >&5
  28394. ac_cv_header_stdc=no
  28395. fi
  28396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28397. if test $ac_cv_header_stdc = yes; then
  28398. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  28399. cat >conftest.$ac_ext <<_ACEOF
  28400. /* confdefs.h. */
  28401. _ACEOF
  28402. cat confdefs.h >>conftest.$ac_ext
  28403. cat >>conftest.$ac_ext <<_ACEOF
  28404. /* end confdefs.h. */
  28405. #include <string.h>
  28406. _ACEOF
  28407. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28408. $EGREP "memchr" >/dev/null 2>&1; then
  28409. :
  28410. else
  28411. ac_cv_header_stdc=no
  28412. fi
  28413. rm -f conftest*
  28414. fi
  28415. if test $ac_cv_header_stdc = yes; then
  28416. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  28417. cat >conftest.$ac_ext <<_ACEOF
  28418. /* confdefs.h. */
  28419. _ACEOF
  28420. cat confdefs.h >>conftest.$ac_ext
  28421. cat >>conftest.$ac_ext <<_ACEOF
  28422. /* end confdefs.h. */
  28423. #include <stdlib.h>
  28424. _ACEOF
  28425. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28426. $EGREP "free" >/dev/null 2>&1; then
  28427. :
  28428. else
  28429. ac_cv_header_stdc=no
  28430. fi
  28431. rm -f conftest*
  28432. fi
  28433. if test $ac_cv_header_stdc = yes; then
  28434. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  28435. if test "$cross_compiling" = yes; then
  28436. :
  28437. else
  28438. cat >conftest.$ac_ext <<_ACEOF
  28439. /* confdefs.h. */
  28440. _ACEOF
  28441. cat confdefs.h >>conftest.$ac_ext
  28442. cat >>conftest.$ac_ext <<_ACEOF
  28443. /* end confdefs.h. */
  28444. #include <ctype.h>
  28445. #include <stdlib.h>
  28446. #if ((' ' & 0x0FF) == 0x020)
  28447. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  28448. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  28449. #else
  28450. # define ISLOWER(c) \
  28451. (('a' <= (c) && (c) <= 'i') \
  28452. || ('j' <= (c) && (c) <= 'r') \
  28453. || ('s' <= (c) && (c) <= 'z'))
  28454. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  28455. #endif
  28456. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  28457. int
  28458. main ()
  28459. {
  28460. int i;
  28461. for (i = 0; i < 256; i++)
  28462. if (XOR (islower (i), ISLOWER (i))
  28463. || toupper (i) != TOUPPER (i))
  28464. return 2;
  28465. return 0;
  28466. }
  28467. _ACEOF
  28468. rm -f conftest$ac_exeext
  28469. if { (ac_try="$ac_link"
  28470. case "(($ac_try" in
  28471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28472. *) ac_try_echo=$ac_try;;
  28473. esac
  28474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28475. (eval "$ac_link") 2>&5
  28476. ac_status=$?
  28477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28478. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28479. { (case "(($ac_try" in
  28480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28481. *) ac_try_echo=$ac_try;;
  28482. esac
  28483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28484. (eval "$ac_try") 2>&5
  28485. ac_status=$?
  28486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28487. (exit $ac_status); }; }; then
  28488. :
  28489. else
  28490. echo "$as_me: program exited with status $ac_status" >&5
  28491. echo "$as_me: failed program was:" >&5
  28492. sed 's/^/| /' conftest.$ac_ext >&5
  28493. ( exit $ac_status )
  28494. ac_cv_header_stdc=no
  28495. fi
  28496. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28497. fi
  28498. fi
  28499. fi
  28500. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  28501. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  28502. if test $ac_cv_header_stdc = yes; then
  28503. cat >>confdefs.h <<\_ACEOF
  28504. #define STDC_HEADERS 1
  28505. _ACEOF
  28506. fi
  28507. # =================
  28508. # AC_HEADER_DIRENT
  28509. # =================
  28510. ac_header_dirent=no
  28511. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  28512. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  28513. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  28514. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  28515. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28516. echo $ECHO_N "(cached) $ECHO_C" >&6
  28517. else
  28518. cat >conftest.$ac_ext <<_ACEOF
  28519. /* confdefs.h. */
  28520. _ACEOF
  28521. cat confdefs.h >>conftest.$ac_ext
  28522. cat >>conftest.$ac_ext <<_ACEOF
  28523. /* end confdefs.h. */
  28524. #include <sys/types.h>
  28525. #include <$ac_hdr>
  28526. int
  28527. main ()
  28528. {
  28529. if ((DIR *) 0)
  28530. return 0;
  28531. ;
  28532. return 0;
  28533. }
  28534. _ACEOF
  28535. rm -f conftest.$ac_objext
  28536. if { (ac_try="$ac_compile"
  28537. case "(($ac_try" in
  28538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28539. *) ac_try_echo=$ac_try;;
  28540. esac
  28541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28542. (eval "$ac_compile") 2>conftest.er1
  28543. ac_status=$?
  28544. grep -v '^ *+' conftest.er1 >conftest.err
  28545. rm -f conftest.er1
  28546. cat conftest.err >&5
  28547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28548. (exit $ac_status); } && {
  28549. test -z "$ac_c_werror_flag" ||
  28550. test ! -s conftest.err
  28551. } && test -s conftest.$ac_objext; then
  28552. eval "$as_ac_Header=yes"
  28553. else
  28554. echo "$as_me: failed program was:" >&5
  28555. sed 's/^/| /' conftest.$ac_ext >&5
  28556. eval "$as_ac_Header=no"
  28557. fi
  28558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28559. fi
  28560. ac_res=`eval echo '${'$as_ac_Header'}'`
  28561. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28562. echo "${ECHO_T}$ac_res" >&6; }
  28563. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28564. cat >>confdefs.h <<_ACEOF
  28565. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  28566. _ACEOF
  28567. ac_header_dirent=$ac_hdr; break
  28568. fi
  28569. done
  28570. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  28571. if test $ac_header_dirent = dirent.h; then
  28572. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28573. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28574. if test "${ac_cv_search_opendir+set}" = set; then
  28575. echo $ECHO_N "(cached) $ECHO_C" >&6
  28576. else
  28577. ac_func_search_save_LIBS=$LIBS
  28578. cat >conftest.$ac_ext <<_ACEOF
  28579. /* confdefs.h. */
  28580. _ACEOF
  28581. cat confdefs.h >>conftest.$ac_ext
  28582. cat >>conftest.$ac_ext <<_ACEOF
  28583. /* end confdefs.h. */
  28584. /* Override any GCC internal prototype to avoid an error.
  28585. Use char because int might match the return type of a GCC
  28586. builtin and then its argument prototype would still apply. */
  28587. #ifdef __cplusplus
  28588. extern "C"
  28589. #endif
  28590. char opendir ();
  28591. int
  28592. main ()
  28593. {
  28594. return opendir ();
  28595. ;
  28596. return 0;
  28597. }
  28598. _ACEOF
  28599. for ac_lib in '' dir; do
  28600. if test -z "$ac_lib"; then
  28601. ac_res="none required"
  28602. else
  28603. ac_res=-l$ac_lib
  28604. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28605. fi
  28606. rm -f conftest.$ac_objext conftest$ac_exeext
  28607. if { (ac_try="$ac_link"
  28608. case "(($ac_try" in
  28609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28610. *) ac_try_echo=$ac_try;;
  28611. esac
  28612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28613. (eval "$ac_link") 2>conftest.er1
  28614. ac_status=$?
  28615. grep -v '^ *+' conftest.er1 >conftest.err
  28616. rm -f conftest.er1
  28617. cat conftest.err >&5
  28618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28619. (exit $ac_status); } && {
  28620. test -z "$ac_c_werror_flag" ||
  28621. test ! -s conftest.err
  28622. } && test -s conftest$ac_exeext &&
  28623. $as_test_x conftest$ac_exeext; then
  28624. ac_cv_search_opendir=$ac_res
  28625. else
  28626. echo "$as_me: failed program was:" >&5
  28627. sed 's/^/| /' conftest.$ac_ext >&5
  28628. fi
  28629. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28630. conftest$ac_exeext
  28631. if test "${ac_cv_search_opendir+set}" = set; then
  28632. break
  28633. fi
  28634. done
  28635. if test "${ac_cv_search_opendir+set}" = set; then
  28636. :
  28637. else
  28638. ac_cv_search_opendir=no
  28639. fi
  28640. rm conftest.$ac_ext
  28641. LIBS=$ac_func_search_save_LIBS
  28642. fi
  28643. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28644. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28645. ac_res=$ac_cv_search_opendir
  28646. if test "$ac_res" != no; then
  28647. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28648. fi
  28649. else
  28650. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28651. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28652. if test "${ac_cv_search_opendir+set}" = set; then
  28653. echo $ECHO_N "(cached) $ECHO_C" >&6
  28654. else
  28655. ac_func_search_save_LIBS=$LIBS
  28656. cat >conftest.$ac_ext <<_ACEOF
  28657. /* confdefs.h. */
  28658. _ACEOF
  28659. cat confdefs.h >>conftest.$ac_ext
  28660. cat >>conftest.$ac_ext <<_ACEOF
  28661. /* end confdefs.h. */
  28662. /* Override any GCC internal prototype to avoid an error.
  28663. Use char because int might match the return type of a GCC
  28664. builtin and then its argument prototype would still apply. */
  28665. #ifdef __cplusplus
  28666. extern "C"
  28667. #endif
  28668. char opendir ();
  28669. int
  28670. main ()
  28671. {
  28672. return opendir ();
  28673. ;
  28674. return 0;
  28675. }
  28676. _ACEOF
  28677. for ac_lib in '' x; do
  28678. if test -z "$ac_lib"; then
  28679. ac_res="none required"
  28680. else
  28681. ac_res=-l$ac_lib
  28682. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28683. fi
  28684. rm -f conftest.$ac_objext conftest$ac_exeext
  28685. if { (ac_try="$ac_link"
  28686. case "(($ac_try" in
  28687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28688. *) ac_try_echo=$ac_try;;
  28689. esac
  28690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28691. (eval "$ac_link") 2>conftest.er1
  28692. ac_status=$?
  28693. grep -v '^ *+' conftest.er1 >conftest.err
  28694. rm -f conftest.er1
  28695. cat conftest.err >&5
  28696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28697. (exit $ac_status); } && {
  28698. test -z "$ac_c_werror_flag" ||
  28699. test ! -s conftest.err
  28700. } && test -s conftest$ac_exeext &&
  28701. $as_test_x conftest$ac_exeext; then
  28702. ac_cv_search_opendir=$ac_res
  28703. else
  28704. echo "$as_me: failed program was:" >&5
  28705. sed 's/^/| /' conftest.$ac_ext >&5
  28706. fi
  28707. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28708. conftest$ac_exeext
  28709. if test "${ac_cv_search_opendir+set}" = set; then
  28710. break
  28711. fi
  28712. done
  28713. if test "${ac_cv_search_opendir+set}" = set; then
  28714. :
  28715. else
  28716. ac_cv_search_opendir=no
  28717. fi
  28718. rm conftest.$ac_ext
  28719. LIBS=$ac_func_search_save_LIBS
  28720. fi
  28721. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28722. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28723. ac_res=$ac_cv_search_opendir
  28724. if test "$ac_res" != no; then
  28725. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28726. fi
  28727. fi
  28728. # =================
  28729. # AC_CHECK_HEADERS
  28730. # =================
  28731. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  28732. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  28733. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  28734. utime.h sysexits.h
  28735. do
  28736. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28737. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28738. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28739. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28740. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28741. echo $ECHO_N "(cached) $ECHO_C" >&6
  28742. fi
  28743. ac_res=`eval echo '${'$as_ac_Header'}'`
  28744. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28745. echo "${ECHO_T}$ac_res" >&6; }
  28746. else
  28747. # Is the header compilable?
  28748. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28749. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28750. cat >conftest.$ac_ext <<_ACEOF
  28751. /* confdefs.h. */
  28752. _ACEOF
  28753. cat confdefs.h >>conftest.$ac_ext
  28754. cat >>conftest.$ac_ext <<_ACEOF
  28755. /* end confdefs.h. */
  28756. $ac_includes_default
  28757. #include <$ac_header>
  28758. _ACEOF
  28759. rm -f conftest.$ac_objext
  28760. if { (ac_try="$ac_compile"
  28761. case "(($ac_try" in
  28762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28763. *) ac_try_echo=$ac_try;;
  28764. esac
  28765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28766. (eval "$ac_compile") 2>conftest.er1
  28767. ac_status=$?
  28768. grep -v '^ *+' conftest.er1 >conftest.err
  28769. rm -f conftest.er1
  28770. cat conftest.err >&5
  28771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28772. (exit $ac_status); } && {
  28773. test -z "$ac_c_werror_flag" ||
  28774. test ! -s conftest.err
  28775. } && test -s conftest.$ac_objext; then
  28776. ac_header_compiler=yes
  28777. else
  28778. echo "$as_me: failed program was:" >&5
  28779. sed 's/^/| /' conftest.$ac_ext >&5
  28780. ac_header_compiler=no
  28781. fi
  28782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28783. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28784. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28785. # Is the header present?
  28786. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28787. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28788. cat >conftest.$ac_ext <<_ACEOF
  28789. /* confdefs.h. */
  28790. _ACEOF
  28791. cat confdefs.h >>conftest.$ac_ext
  28792. cat >>conftest.$ac_ext <<_ACEOF
  28793. /* end confdefs.h. */
  28794. #include <$ac_header>
  28795. _ACEOF
  28796. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28797. case "(($ac_try" in
  28798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28799. *) ac_try_echo=$ac_try;;
  28800. esac
  28801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28802. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28803. ac_status=$?
  28804. grep -v '^ *+' conftest.er1 >conftest.err
  28805. rm -f conftest.er1
  28806. cat conftest.err >&5
  28807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28808. (exit $ac_status); } >/dev/null && {
  28809. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28810. test ! -s conftest.err
  28811. }; then
  28812. ac_header_preproc=yes
  28813. else
  28814. echo "$as_me: failed program was:" >&5
  28815. sed 's/^/| /' conftest.$ac_ext >&5
  28816. ac_header_preproc=no
  28817. fi
  28818. rm -f conftest.err conftest.$ac_ext
  28819. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28820. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28821. # So? What about this header?
  28822. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28823. yes:no: )
  28824. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28825. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28826. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28827. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28828. ac_header_preproc=yes
  28829. ;;
  28830. no:yes:* )
  28831. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28832. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28833. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28834. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28835. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28836. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28837. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28838. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28839. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28840. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28841. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28842. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28843. ;;
  28844. esac
  28845. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28846. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28847. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28848. echo $ECHO_N "(cached) $ECHO_C" >&6
  28849. else
  28850. eval "$as_ac_Header=\$ac_header_preproc"
  28851. fi
  28852. ac_res=`eval echo '${'$as_ac_Header'}'`
  28853. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28854. echo "${ECHO_T}$ac_res" >&6; }
  28855. fi
  28856. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28857. cat >>confdefs.h <<_ACEOF
  28858. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28859. _ACEOF
  28860. fi
  28861. done
  28862. # --------------------------------------------
  28863. # Verify certain entries from AC_CHECK_HEADERS
  28864. # --------------------------------------------
  28865. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  28866. string errno stdlib memory setjmp
  28867. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  28868. test "${as_ac_var}" = set || \
  28869. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  28870. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  28871. { (exit 1); exit 1; }; }
  28872. done
  28873. # ================================================
  28874. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  28875. # if varargs.h is present define HAVE_VARARGS_H.
  28876. # ================================================
  28877. for ac_header in stdarg.h varargs.h
  28878. do
  28879. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28880. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28881. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28882. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28883. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28884. echo $ECHO_N "(cached) $ECHO_C" >&6
  28885. fi
  28886. ac_res=`eval echo '${'$as_ac_Header'}'`
  28887. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28888. echo "${ECHO_T}$ac_res" >&6; }
  28889. else
  28890. # Is the header compilable?
  28891. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28892. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28893. cat >conftest.$ac_ext <<_ACEOF
  28894. /* confdefs.h. */
  28895. _ACEOF
  28896. cat confdefs.h >>conftest.$ac_ext
  28897. cat >>conftest.$ac_ext <<_ACEOF
  28898. /* end confdefs.h. */
  28899. $ac_includes_default
  28900. #include <$ac_header>
  28901. _ACEOF
  28902. rm -f conftest.$ac_objext
  28903. if { (ac_try="$ac_compile"
  28904. case "(($ac_try" in
  28905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28906. *) ac_try_echo=$ac_try;;
  28907. esac
  28908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28909. (eval "$ac_compile") 2>conftest.er1
  28910. ac_status=$?
  28911. grep -v '^ *+' conftest.er1 >conftest.err
  28912. rm -f conftest.er1
  28913. cat conftest.err >&5
  28914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28915. (exit $ac_status); } && {
  28916. test -z "$ac_c_werror_flag" ||
  28917. test ! -s conftest.err
  28918. } && test -s conftest.$ac_objext; then
  28919. ac_header_compiler=yes
  28920. else
  28921. echo "$as_me: failed program was:" >&5
  28922. sed 's/^/| /' conftest.$ac_ext >&5
  28923. ac_header_compiler=no
  28924. fi
  28925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28926. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28927. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28928. # Is the header present?
  28929. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28930. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28931. cat >conftest.$ac_ext <<_ACEOF
  28932. /* confdefs.h. */
  28933. _ACEOF
  28934. cat confdefs.h >>conftest.$ac_ext
  28935. cat >>conftest.$ac_ext <<_ACEOF
  28936. /* end confdefs.h. */
  28937. #include <$ac_header>
  28938. _ACEOF
  28939. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28940. case "(($ac_try" in
  28941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28942. *) ac_try_echo=$ac_try;;
  28943. esac
  28944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28945. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28946. ac_status=$?
  28947. grep -v '^ *+' conftest.er1 >conftest.err
  28948. rm -f conftest.er1
  28949. cat conftest.err >&5
  28950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28951. (exit $ac_status); } >/dev/null && {
  28952. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28953. test ! -s conftest.err
  28954. }; then
  28955. ac_header_preproc=yes
  28956. else
  28957. echo "$as_me: failed program was:" >&5
  28958. sed 's/^/| /' conftest.$ac_ext >&5
  28959. ac_header_preproc=no
  28960. fi
  28961. rm -f conftest.err conftest.$ac_ext
  28962. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28963. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28964. # So? What about this header?
  28965. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28966. yes:no: )
  28967. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28968. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28969. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28970. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28971. ac_header_preproc=yes
  28972. ;;
  28973. no:yes:* )
  28974. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28975. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28976. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28977. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28978. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28979. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28980. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28981. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28982. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28983. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28984. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28985. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28986. ;;
  28987. esac
  28988. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28989. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28990. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28991. echo $ECHO_N "(cached) $ECHO_C" >&6
  28992. else
  28993. eval "$as_ac_Header=\$ac_header_preproc"
  28994. fi
  28995. ac_res=`eval echo '${'$as_ac_Header'}'`
  28996. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28997. echo "${ECHO_T}$ac_res" >&6; }
  28998. fi
  28999. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29000. cat >>confdefs.h <<_ACEOF
  29001. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29002. _ACEOF
  29003. break
  29004. fi
  29005. done
  29006. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29007. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  29008. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  29009. { (exit 1); exit 1; }; }
  29010. fi
  29011. # ================================================
  29012. # Similarly for the string.h and strings.h headers
  29013. # ================================================
  29014. for ac_header in string.h strings.h
  29015. do
  29016. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29017. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29018. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29019. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29020. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29021. echo $ECHO_N "(cached) $ECHO_C" >&6
  29022. fi
  29023. ac_res=`eval echo '${'$as_ac_Header'}'`
  29024. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29025. echo "${ECHO_T}$ac_res" >&6; }
  29026. else
  29027. # Is the header compilable?
  29028. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29029. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29030. cat >conftest.$ac_ext <<_ACEOF
  29031. /* confdefs.h. */
  29032. _ACEOF
  29033. cat confdefs.h >>conftest.$ac_ext
  29034. cat >>conftest.$ac_ext <<_ACEOF
  29035. /* end confdefs.h. */
  29036. $ac_includes_default
  29037. #include <$ac_header>
  29038. _ACEOF
  29039. rm -f conftest.$ac_objext
  29040. if { (ac_try="$ac_compile"
  29041. case "(($ac_try" in
  29042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29043. *) ac_try_echo=$ac_try;;
  29044. esac
  29045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29046. (eval "$ac_compile") 2>conftest.er1
  29047. ac_status=$?
  29048. grep -v '^ *+' conftest.er1 >conftest.err
  29049. rm -f conftest.er1
  29050. cat conftest.err >&5
  29051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29052. (exit $ac_status); } && {
  29053. test -z "$ac_c_werror_flag" ||
  29054. test ! -s conftest.err
  29055. } && test -s conftest.$ac_objext; then
  29056. ac_header_compiler=yes
  29057. else
  29058. echo "$as_me: failed program was:" >&5
  29059. sed 's/^/| /' conftest.$ac_ext >&5
  29060. ac_header_compiler=no
  29061. fi
  29062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29063. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29064. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29065. # Is the header present?
  29066. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29067. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29068. cat >conftest.$ac_ext <<_ACEOF
  29069. /* confdefs.h. */
  29070. _ACEOF
  29071. cat confdefs.h >>conftest.$ac_ext
  29072. cat >>conftest.$ac_ext <<_ACEOF
  29073. /* end confdefs.h. */
  29074. #include <$ac_header>
  29075. _ACEOF
  29076. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29077. case "(($ac_try" in
  29078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29079. *) ac_try_echo=$ac_try;;
  29080. esac
  29081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29082. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29083. ac_status=$?
  29084. grep -v '^ *+' conftest.er1 >conftest.err
  29085. rm -f conftest.er1
  29086. cat conftest.err >&5
  29087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29088. (exit $ac_status); } >/dev/null && {
  29089. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29090. test ! -s conftest.err
  29091. }; then
  29092. ac_header_preproc=yes
  29093. else
  29094. echo "$as_me: failed program was:" >&5
  29095. sed 's/^/| /' conftest.$ac_ext >&5
  29096. ac_header_preproc=no
  29097. fi
  29098. rm -f conftest.err conftest.$ac_ext
  29099. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29100. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29101. # So? What about this header?
  29102. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29103. yes:no: )
  29104. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29105. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29106. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29107. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29108. ac_header_preproc=yes
  29109. ;;
  29110. no:yes:* )
  29111. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29112. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29113. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29114. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29115. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29116. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29117. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29118. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29119. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29120. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29121. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29122. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29123. ;;
  29124. esac
  29125. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29126. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29127. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29128. echo $ECHO_N "(cached) $ECHO_C" >&6
  29129. else
  29130. eval "$as_ac_Header=\$ac_header_preproc"
  29131. fi
  29132. ac_res=`eval echo '${'$as_ac_Header'}'`
  29133. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29134. echo "${ECHO_T}$ac_res" >&6; }
  29135. fi
  29136. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29137. cat >>confdefs.h <<_ACEOF
  29138. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29139. _ACEOF
  29140. break
  29141. fi
  29142. done
  29143. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29144. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  29145. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  29146. { (exit 1); exit 1; }; }
  29147. fi
  29148. # =====================
  29149. # ...and limits headers
  29150. # =====================
  29151. for ac_header in limits.h sys/limits.h values.h
  29152. do
  29153. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29154. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29155. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29156. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29157. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29158. echo $ECHO_N "(cached) $ECHO_C" >&6
  29159. fi
  29160. ac_res=`eval echo '${'$as_ac_Header'}'`
  29161. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29162. echo "${ECHO_T}$ac_res" >&6; }
  29163. else
  29164. # Is the header compilable?
  29165. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29166. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29167. cat >conftest.$ac_ext <<_ACEOF
  29168. /* confdefs.h. */
  29169. _ACEOF
  29170. cat confdefs.h >>conftest.$ac_ext
  29171. cat >>conftest.$ac_ext <<_ACEOF
  29172. /* end confdefs.h. */
  29173. $ac_includes_default
  29174. #include <$ac_header>
  29175. _ACEOF
  29176. rm -f conftest.$ac_objext
  29177. if { (ac_try="$ac_compile"
  29178. case "(($ac_try" in
  29179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29180. *) ac_try_echo=$ac_try;;
  29181. esac
  29182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29183. (eval "$ac_compile") 2>conftest.er1
  29184. ac_status=$?
  29185. grep -v '^ *+' conftest.er1 >conftest.err
  29186. rm -f conftest.er1
  29187. cat conftest.err >&5
  29188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29189. (exit $ac_status); } && {
  29190. test -z "$ac_c_werror_flag" ||
  29191. test ! -s conftest.err
  29192. } && test -s conftest.$ac_objext; then
  29193. ac_header_compiler=yes
  29194. else
  29195. echo "$as_me: failed program was:" >&5
  29196. sed 's/^/| /' conftest.$ac_ext >&5
  29197. ac_header_compiler=no
  29198. fi
  29199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29200. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29201. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29202. # Is the header present?
  29203. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29204. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29205. cat >conftest.$ac_ext <<_ACEOF
  29206. /* confdefs.h. */
  29207. _ACEOF
  29208. cat confdefs.h >>conftest.$ac_ext
  29209. cat >>conftest.$ac_ext <<_ACEOF
  29210. /* end confdefs.h. */
  29211. #include <$ac_header>
  29212. _ACEOF
  29213. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29214. case "(($ac_try" in
  29215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29216. *) ac_try_echo=$ac_try;;
  29217. esac
  29218. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29219. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29220. ac_status=$?
  29221. grep -v '^ *+' conftest.er1 >conftest.err
  29222. rm -f conftest.er1
  29223. cat conftest.err >&5
  29224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29225. (exit $ac_status); } >/dev/null && {
  29226. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29227. test ! -s conftest.err
  29228. }; then
  29229. ac_header_preproc=yes
  29230. else
  29231. echo "$as_me: failed program was:" >&5
  29232. sed 's/^/| /' conftest.$ac_ext >&5
  29233. ac_header_preproc=no
  29234. fi
  29235. rm -f conftest.err conftest.$ac_ext
  29236. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29237. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29238. # So? What about this header?
  29239. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29240. yes:no: )
  29241. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29242. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29243. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29244. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29245. ac_header_preproc=yes
  29246. ;;
  29247. no:yes:* )
  29248. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29249. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29250. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29251. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29252. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29253. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29254. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29255. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29256. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29257. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29258. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29259. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29260. ;;
  29261. esac
  29262. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29263. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29264. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29265. echo $ECHO_N "(cached) $ECHO_C" >&6
  29266. else
  29267. eval "$as_ac_Header=\$ac_header_preproc"
  29268. fi
  29269. ac_res=`eval echo '${'$as_ac_Header'}'`
  29270. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29271. echo "${ECHO_T}$ac_res" >&6; }
  29272. fi
  29273. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29274. cat >>confdefs.h <<_ACEOF
  29275. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29276. _ACEOF
  29277. break
  29278. fi
  29279. done
  29280. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29281. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  29282. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  29283. { (exit 1); exit 1; }; }
  29284. fi
  29285. # ========================
  29286. # ...and int types headers
  29287. # ========================
  29288. for ac_header in stdint.h inttypes.h
  29289. do
  29290. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29291. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29292. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29293. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29294. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29295. echo $ECHO_N "(cached) $ECHO_C" >&6
  29296. fi
  29297. ac_res=`eval echo '${'$as_ac_Header'}'`
  29298. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29299. echo "${ECHO_T}$ac_res" >&6; }
  29300. else
  29301. # Is the header compilable?
  29302. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29303. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29304. cat >conftest.$ac_ext <<_ACEOF
  29305. /* confdefs.h. */
  29306. _ACEOF
  29307. cat confdefs.h >>conftest.$ac_ext
  29308. cat >>conftest.$ac_ext <<_ACEOF
  29309. /* end confdefs.h. */
  29310. $ac_includes_default
  29311. #include <$ac_header>
  29312. _ACEOF
  29313. rm -f conftest.$ac_objext
  29314. if { (ac_try="$ac_compile"
  29315. case "(($ac_try" in
  29316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29317. *) ac_try_echo=$ac_try;;
  29318. esac
  29319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29320. (eval "$ac_compile") 2>conftest.er1
  29321. ac_status=$?
  29322. grep -v '^ *+' conftest.er1 >conftest.err
  29323. rm -f conftest.er1
  29324. cat conftest.err >&5
  29325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29326. (exit $ac_status); } && {
  29327. test -z "$ac_c_werror_flag" ||
  29328. test ! -s conftest.err
  29329. } && test -s conftest.$ac_objext; then
  29330. ac_header_compiler=yes
  29331. else
  29332. echo "$as_me: failed program was:" >&5
  29333. sed 's/^/| /' conftest.$ac_ext >&5
  29334. ac_header_compiler=no
  29335. fi
  29336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29337. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29338. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29339. # Is the header present?
  29340. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29341. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29342. cat >conftest.$ac_ext <<_ACEOF
  29343. /* confdefs.h. */
  29344. _ACEOF
  29345. cat confdefs.h >>conftest.$ac_ext
  29346. cat >>conftest.$ac_ext <<_ACEOF
  29347. /* end confdefs.h. */
  29348. #include <$ac_header>
  29349. _ACEOF
  29350. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29351. case "(($ac_try" in
  29352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29353. *) ac_try_echo=$ac_try;;
  29354. esac
  29355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29356. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29357. ac_status=$?
  29358. grep -v '^ *+' conftest.er1 >conftest.err
  29359. rm -f conftest.er1
  29360. cat conftest.err >&5
  29361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29362. (exit $ac_status); } >/dev/null && {
  29363. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29364. test ! -s conftest.err
  29365. }; then
  29366. ac_header_preproc=yes
  29367. else
  29368. echo "$as_me: failed program was:" >&5
  29369. sed 's/^/| /' conftest.$ac_ext >&5
  29370. ac_header_preproc=no
  29371. fi
  29372. rm -f conftest.err conftest.$ac_ext
  29373. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29374. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29375. # So? What about this header?
  29376. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29377. yes:no: )
  29378. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29379. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29380. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29381. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29382. ac_header_preproc=yes
  29383. ;;
  29384. no:yes:* )
  29385. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29386. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29387. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29388. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29389. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29390. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29391. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29392. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29393. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29394. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29395. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29396. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29397. ;;
  29398. esac
  29399. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29400. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29401. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29402. echo $ECHO_N "(cached) $ECHO_C" >&6
  29403. else
  29404. eval "$as_ac_Header=\$ac_header_preproc"
  29405. fi
  29406. ac_res=`eval echo '${'$as_ac_Header'}'`
  29407. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29408. echo "${ECHO_T}$ac_res" >&6; }
  29409. fi
  29410. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29411. cat >>confdefs.h <<_ACEOF
  29412. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29413. _ACEOF
  29414. break
  29415. fi
  29416. done
  29417. { echo "$as_me:$LINENO: checking for int8_t" >&5
  29418. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  29419. if test "${ac_cv_type_int8_t+set}" = set; then
  29420. echo $ECHO_N "(cached) $ECHO_C" >&6
  29421. else
  29422. cat >conftest.$ac_ext <<_ACEOF
  29423. /* confdefs.h. */
  29424. _ACEOF
  29425. cat confdefs.h >>conftest.$ac_ext
  29426. cat >>conftest.$ac_ext <<_ACEOF
  29427. /* end confdefs.h. */
  29428. $ac_includes_default
  29429. typedef int8_t ac__type_new_;
  29430. int
  29431. main ()
  29432. {
  29433. if ((ac__type_new_ *) 0)
  29434. return 0;
  29435. if (sizeof (ac__type_new_))
  29436. return 0;
  29437. ;
  29438. return 0;
  29439. }
  29440. _ACEOF
  29441. rm -f conftest.$ac_objext
  29442. if { (ac_try="$ac_compile"
  29443. case "(($ac_try" in
  29444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29445. *) ac_try_echo=$ac_try;;
  29446. esac
  29447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29448. (eval "$ac_compile") 2>conftest.er1
  29449. ac_status=$?
  29450. grep -v '^ *+' conftest.er1 >conftest.err
  29451. rm -f conftest.er1
  29452. cat conftest.err >&5
  29453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29454. (exit $ac_status); } && {
  29455. test -z "$ac_c_werror_flag" ||
  29456. test ! -s conftest.err
  29457. } && test -s conftest.$ac_objext; then
  29458. ac_cv_type_int8_t=yes
  29459. else
  29460. echo "$as_me: failed program was:" >&5
  29461. sed 's/^/| /' conftest.$ac_ext >&5
  29462. ac_cv_type_int8_t=no
  29463. fi
  29464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29465. fi
  29466. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  29467. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  29468. if test $ac_cv_type_int8_t = yes; then
  29469. cat >>confdefs.h <<_ACEOF
  29470. #define HAVE_INT8_T 1
  29471. _ACEOF
  29472. fi
  29473. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  29474. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  29475. if test "${ac_cv_type_uint8_t+set}" = set; then
  29476. echo $ECHO_N "(cached) $ECHO_C" >&6
  29477. else
  29478. cat >conftest.$ac_ext <<_ACEOF
  29479. /* confdefs.h. */
  29480. _ACEOF
  29481. cat confdefs.h >>conftest.$ac_ext
  29482. cat >>conftest.$ac_ext <<_ACEOF
  29483. /* end confdefs.h. */
  29484. $ac_includes_default
  29485. typedef uint8_t ac__type_new_;
  29486. int
  29487. main ()
  29488. {
  29489. if ((ac__type_new_ *) 0)
  29490. return 0;
  29491. if (sizeof (ac__type_new_))
  29492. return 0;
  29493. ;
  29494. return 0;
  29495. }
  29496. _ACEOF
  29497. rm -f conftest.$ac_objext
  29498. if { (ac_try="$ac_compile"
  29499. case "(($ac_try" in
  29500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29501. *) ac_try_echo=$ac_try;;
  29502. esac
  29503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29504. (eval "$ac_compile") 2>conftest.er1
  29505. ac_status=$?
  29506. grep -v '^ *+' conftest.er1 >conftest.err
  29507. rm -f conftest.er1
  29508. cat conftest.err >&5
  29509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29510. (exit $ac_status); } && {
  29511. test -z "$ac_c_werror_flag" ||
  29512. test ! -s conftest.err
  29513. } && test -s conftest.$ac_objext; then
  29514. ac_cv_type_uint8_t=yes
  29515. else
  29516. echo "$as_me: failed program was:" >&5
  29517. sed 's/^/| /' conftest.$ac_ext >&5
  29518. ac_cv_type_uint8_t=no
  29519. fi
  29520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29521. fi
  29522. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  29523. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  29524. if test $ac_cv_type_uint8_t = yes; then
  29525. cat >>confdefs.h <<_ACEOF
  29526. #define HAVE_UINT8_T 1
  29527. _ACEOF
  29528. fi
  29529. { echo "$as_me:$LINENO: checking for int16_t" >&5
  29530. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  29531. if test "${ac_cv_type_int16_t+set}" = set; then
  29532. echo $ECHO_N "(cached) $ECHO_C" >&6
  29533. else
  29534. cat >conftest.$ac_ext <<_ACEOF
  29535. /* confdefs.h. */
  29536. _ACEOF
  29537. cat confdefs.h >>conftest.$ac_ext
  29538. cat >>conftest.$ac_ext <<_ACEOF
  29539. /* end confdefs.h. */
  29540. $ac_includes_default
  29541. typedef int16_t ac__type_new_;
  29542. int
  29543. main ()
  29544. {
  29545. if ((ac__type_new_ *) 0)
  29546. return 0;
  29547. if (sizeof (ac__type_new_))
  29548. return 0;
  29549. ;
  29550. return 0;
  29551. }
  29552. _ACEOF
  29553. rm -f conftest.$ac_objext
  29554. if { (ac_try="$ac_compile"
  29555. case "(($ac_try" in
  29556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29557. *) ac_try_echo=$ac_try;;
  29558. esac
  29559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29560. (eval "$ac_compile") 2>conftest.er1
  29561. ac_status=$?
  29562. grep -v '^ *+' conftest.er1 >conftest.err
  29563. rm -f conftest.er1
  29564. cat conftest.err >&5
  29565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29566. (exit $ac_status); } && {
  29567. test -z "$ac_c_werror_flag" ||
  29568. test ! -s conftest.err
  29569. } && test -s conftest.$ac_objext; then
  29570. ac_cv_type_int16_t=yes
  29571. else
  29572. echo "$as_me: failed program was:" >&5
  29573. sed 's/^/| /' conftest.$ac_ext >&5
  29574. ac_cv_type_int16_t=no
  29575. fi
  29576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29577. fi
  29578. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  29579. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  29580. if test $ac_cv_type_int16_t = yes; then
  29581. cat >>confdefs.h <<_ACEOF
  29582. #define HAVE_INT16_T 1
  29583. _ACEOF
  29584. fi
  29585. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  29586. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  29587. if test "${ac_cv_type_uint16_t+set}" = set; then
  29588. echo $ECHO_N "(cached) $ECHO_C" >&6
  29589. else
  29590. cat >conftest.$ac_ext <<_ACEOF
  29591. /* confdefs.h. */
  29592. _ACEOF
  29593. cat confdefs.h >>conftest.$ac_ext
  29594. cat >>conftest.$ac_ext <<_ACEOF
  29595. /* end confdefs.h. */
  29596. $ac_includes_default
  29597. typedef uint16_t ac__type_new_;
  29598. int
  29599. main ()
  29600. {
  29601. if ((ac__type_new_ *) 0)
  29602. return 0;
  29603. if (sizeof (ac__type_new_))
  29604. return 0;
  29605. ;
  29606. return 0;
  29607. }
  29608. _ACEOF
  29609. rm -f conftest.$ac_objext
  29610. if { (ac_try="$ac_compile"
  29611. case "(($ac_try" in
  29612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29613. *) ac_try_echo=$ac_try;;
  29614. esac
  29615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29616. (eval "$ac_compile") 2>conftest.er1
  29617. ac_status=$?
  29618. grep -v '^ *+' conftest.er1 >conftest.err
  29619. rm -f conftest.er1
  29620. cat conftest.err >&5
  29621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29622. (exit $ac_status); } && {
  29623. test -z "$ac_c_werror_flag" ||
  29624. test ! -s conftest.err
  29625. } && test -s conftest.$ac_objext; then
  29626. ac_cv_type_uint16_t=yes
  29627. else
  29628. echo "$as_me: failed program was:" >&5
  29629. sed 's/^/| /' conftest.$ac_ext >&5
  29630. ac_cv_type_uint16_t=no
  29631. fi
  29632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29633. fi
  29634. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  29635. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  29636. if test $ac_cv_type_uint16_t = yes; then
  29637. cat >>confdefs.h <<_ACEOF
  29638. #define HAVE_UINT16_T 1
  29639. _ACEOF
  29640. fi
  29641. { echo "$as_me:$LINENO: checking for int32_t" >&5
  29642. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  29643. if test "${ac_cv_type_int32_t+set}" = set; then
  29644. echo $ECHO_N "(cached) $ECHO_C" >&6
  29645. else
  29646. cat >conftest.$ac_ext <<_ACEOF
  29647. /* confdefs.h. */
  29648. _ACEOF
  29649. cat confdefs.h >>conftest.$ac_ext
  29650. cat >>conftest.$ac_ext <<_ACEOF
  29651. /* end confdefs.h. */
  29652. $ac_includes_default
  29653. typedef int32_t ac__type_new_;
  29654. int
  29655. main ()
  29656. {
  29657. if ((ac__type_new_ *) 0)
  29658. return 0;
  29659. if (sizeof (ac__type_new_))
  29660. return 0;
  29661. ;
  29662. return 0;
  29663. }
  29664. _ACEOF
  29665. rm -f conftest.$ac_objext
  29666. if { (ac_try="$ac_compile"
  29667. case "(($ac_try" in
  29668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29669. *) ac_try_echo=$ac_try;;
  29670. esac
  29671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29672. (eval "$ac_compile") 2>conftest.er1
  29673. ac_status=$?
  29674. grep -v '^ *+' conftest.er1 >conftest.err
  29675. rm -f conftest.er1
  29676. cat conftest.err >&5
  29677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29678. (exit $ac_status); } && {
  29679. test -z "$ac_c_werror_flag" ||
  29680. test ! -s conftest.err
  29681. } && test -s conftest.$ac_objext; then
  29682. ac_cv_type_int32_t=yes
  29683. else
  29684. echo "$as_me: failed program was:" >&5
  29685. sed 's/^/| /' conftest.$ac_ext >&5
  29686. ac_cv_type_int32_t=no
  29687. fi
  29688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29689. fi
  29690. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  29691. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  29692. if test $ac_cv_type_int32_t = yes; then
  29693. cat >>confdefs.h <<_ACEOF
  29694. #define HAVE_INT32_T 1
  29695. _ACEOF
  29696. fi
  29697. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  29698. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  29699. if test "${ac_cv_type_uint32_t+set}" = set; then
  29700. echo $ECHO_N "(cached) $ECHO_C" >&6
  29701. else
  29702. cat >conftest.$ac_ext <<_ACEOF
  29703. /* confdefs.h. */
  29704. _ACEOF
  29705. cat confdefs.h >>conftest.$ac_ext
  29706. cat >>conftest.$ac_ext <<_ACEOF
  29707. /* end confdefs.h. */
  29708. $ac_includes_default
  29709. typedef uint32_t ac__type_new_;
  29710. int
  29711. main ()
  29712. {
  29713. if ((ac__type_new_ *) 0)
  29714. return 0;
  29715. if (sizeof (ac__type_new_))
  29716. return 0;
  29717. ;
  29718. return 0;
  29719. }
  29720. _ACEOF
  29721. rm -f conftest.$ac_objext
  29722. if { (ac_try="$ac_compile"
  29723. case "(($ac_try" in
  29724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29725. *) ac_try_echo=$ac_try;;
  29726. esac
  29727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29728. (eval "$ac_compile") 2>conftest.er1
  29729. ac_status=$?
  29730. grep -v '^ *+' conftest.er1 >conftest.err
  29731. rm -f conftest.er1
  29732. cat conftest.err >&5
  29733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29734. (exit $ac_status); } && {
  29735. test -z "$ac_c_werror_flag" ||
  29736. test ! -s conftest.err
  29737. } && test -s conftest.$ac_objext; then
  29738. ac_cv_type_uint32_t=yes
  29739. else
  29740. echo "$as_me: failed program was:" >&5
  29741. sed 's/^/| /' conftest.$ac_ext >&5
  29742. ac_cv_type_uint32_t=no
  29743. fi
  29744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29745. fi
  29746. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  29747. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  29748. if test $ac_cv_type_uint32_t = yes; then
  29749. cat >>confdefs.h <<_ACEOF
  29750. #define HAVE_UINT32_T 1
  29751. _ACEOF
  29752. fi
  29753. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  29754. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  29755. if test "${ac_cv_type_intptr_t+set}" = set; then
  29756. echo $ECHO_N "(cached) $ECHO_C" >&6
  29757. else
  29758. cat >conftest.$ac_ext <<_ACEOF
  29759. /* confdefs.h. */
  29760. _ACEOF
  29761. cat confdefs.h >>conftest.$ac_ext
  29762. cat >>conftest.$ac_ext <<_ACEOF
  29763. /* end confdefs.h. */
  29764. $ac_includes_default
  29765. typedef intptr_t ac__type_new_;
  29766. int
  29767. main ()
  29768. {
  29769. if ((ac__type_new_ *) 0)
  29770. return 0;
  29771. if (sizeof (ac__type_new_))
  29772. return 0;
  29773. ;
  29774. return 0;
  29775. }
  29776. _ACEOF
  29777. rm -f conftest.$ac_objext
  29778. if { (ac_try="$ac_compile"
  29779. case "(($ac_try" in
  29780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29781. *) ac_try_echo=$ac_try;;
  29782. esac
  29783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29784. (eval "$ac_compile") 2>conftest.er1
  29785. ac_status=$?
  29786. grep -v '^ *+' conftest.er1 >conftest.err
  29787. rm -f conftest.er1
  29788. cat conftest.err >&5
  29789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29790. (exit $ac_status); } && {
  29791. test -z "$ac_c_werror_flag" ||
  29792. test ! -s conftest.err
  29793. } && test -s conftest.$ac_objext; then
  29794. ac_cv_type_intptr_t=yes
  29795. else
  29796. echo "$as_me: failed program was:" >&5
  29797. sed 's/^/| /' conftest.$ac_ext >&5
  29798. ac_cv_type_intptr_t=no
  29799. fi
  29800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29801. fi
  29802. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  29803. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  29804. if test $ac_cv_type_intptr_t = yes; then
  29805. cat >>confdefs.h <<_ACEOF
  29806. #define HAVE_INTPTR_T 1
  29807. _ACEOF
  29808. fi
  29809. { echo "$as_me:$LINENO: checking for uint_t" >&5
  29810. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  29811. if test "${ac_cv_type_uint_t+set}" = set; then
  29812. echo $ECHO_N "(cached) $ECHO_C" >&6
  29813. else
  29814. cat >conftest.$ac_ext <<_ACEOF
  29815. /* confdefs.h. */
  29816. _ACEOF
  29817. cat confdefs.h >>conftest.$ac_ext
  29818. cat >>conftest.$ac_ext <<_ACEOF
  29819. /* end confdefs.h. */
  29820. $ac_includes_default
  29821. typedef uint_t ac__type_new_;
  29822. int
  29823. main ()
  29824. {
  29825. if ((ac__type_new_ *) 0)
  29826. return 0;
  29827. if (sizeof (ac__type_new_))
  29828. return 0;
  29829. ;
  29830. return 0;
  29831. }
  29832. _ACEOF
  29833. rm -f conftest.$ac_objext
  29834. if { (ac_try="$ac_compile"
  29835. case "(($ac_try" in
  29836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29837. *) ac_try_echo=$ac_try;;
  29838. esac
  29839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29840. (eval "$ac_compile") 2>conftest.er1
  29841. ac_status=$?
  29842. grep -v '^ *+' conftest.er1 >conftest.err
  29843. rm -f conftest.er1
  29844. cat conftest.err >&5
  29845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29846. (exit $ac_status); } && {
  29847. test -z "$ac_c_werror_flag" ||
  29848. test ! -s conftest.err
  29849. } && test -s conftest.$ac_objext; then
  29850. ac_cv_type_uint_t=yes
  29851. else
  29852. echo "$as_me: failed program was:" >&5
  29853. sed 's/^/| /' conftest.$ac_ext >&5
  29854. ac_cv_type_uint_t=no
  29855. fi
  29856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29857. fi
  29858. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  29859. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  29860. if test $ac_cv_type_uint_t = yes; then
  29861. cat >>confdefs.h <<_ACEOF
  29862. #define HAVE_UINT_T 1
  29863. _ACEOF
  29864. fi
  29865. # ====================
  29866. # uintptr type & sizes
  29867. # ====================
  29868. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  29869. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  29870. if test "${ac_cv_type_uintptr_t+set}" = set; then
  29871. echo $ECHO_N "(cached) $ECHO_C" >&6
  29872. else
  29873. cat >conftest.$ac_ext <<_ACEOF
  29874. /* confdefs.h. */
  29875. _ACEOF
  29876. cat confdefs.h >>conftest.$ac_ext
  29877. cat >>conftest.$ac_ext <<_ACEOF
  29878. /* end confdefs.h. */
  29879. $ac_includes_default
  29880. typedef uintptr_t ac__type_new_;
  29881. int
  29882. main ()
  29883. {
  29884. if ((ac__type_new_ *) 0)
  29885. return 0;
  29886. if (sizeof (ac__type_new_))
  29887. return 0;
  29888. ;
  29889. return 0;
  29890. }
  29891. _ACEOF
  29892. rm -f conftest.$ac_objext
  29893. if { (ac_try="$ac_compile"
  29894. case "(($ac_try" in
  29895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29896. *) ac_try_echo=$ac_try;;
  29897. esac
  29898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29899. (eval "$ac_compile") 2>conftest.er1
  29900. ac_status=$?
  29901. grep -v '^ *+' conftest.er1 >conftest.err
  29902. rm -f conftest.er1
  29903. cat conftest.err >&5
  29904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29905. (exit $ac_status); } && {
  29906. test -z "$ac_c_werror_flag" ||
  29907. test ! -s conftest.err
  29908. } && test -s conftest.$ac_objext; then
  29909. ac_cv_type_uintptr_t=yes
  29910. else
  29911. echo "$as_me: failed program was:" >&5
  29912. sed 's/^/| /' conftest.$ac_ext >&5
  29913. ac_cv_type_uintptr_t=no
  29914. fi
  29915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29916. fi
  29917. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  29918. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  29919. if test $ac_cv_type_uintptr_t = yes; then
  29920. cat >>confdefs.h <<_ACEOF
  29921. #define HAVE_UINTPTR_T 1
  29922. _ACEOF
  29923. else
  29924. cat >>confdefs.h <<\_ACEOF
  29925. #define uintptr_t unsigned long
  29926. _ACEOF
  29927. fi
  29928. { echo "$as_me:$LINENO: checking for char*" >&5
  29929. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  29930. if test "${ac_cv_type_charp+set}" = set; then
  29931. echo $ECHO_N "(cached) $ECHO_C" >&6
  29932. else
  29933. cat >conftest.$ac_ext <<_ACEOF
  29934. /* confdefs.h. */
  29935. _ACEOF
  29936. cat confdefs.h >>conftest.$ac_ext
  29937. cat >>conftest.$ac_ext <<_ACEOF
  29938. /* end confdefs.h. */
  29939. $ac_includes_default
  29940. typedef char* ac__type_new_;
  29941. int
  29942. main ()
  29943. {
  29944. if ((ac__type_new_ *) 0)
  29945. return 0;
  29946. if (sizeof (ac__type_new_))
  29947. return 0;
  29948. ;
  29949. return 0;
  29950. }
  29951. _ACEOF
  29952. rm -f conftest.$ac_objext
  29953. if { (ac_try="$ac_compile"
  29954. case "(($ac_try" in
  29955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29956. *) ac_try_echo=$ac_try;;
  29957. esac
  29958. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29959. (eval "$ac_compile") 2>conftest.er1
  29960. ac_status=$?
  29961. grep -v '^ *+' conftest.er1 >conftest.err
  29962. rm -f conftest.er1
  29963. cat conftest.err >&5
  29964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29965. (exit $ac_status); } && {
  29966. test -z "$ac_c_werror_flag" ||
  29967. test ! -s conftest.err
  29968. } && test -s conftest.$ac_objext; then
  29969. ac_cv_type_charp=yes
  29970. else
  29971. echo "$as_me: failed program was:" >&5
  29972. sed 's/^/| /' conftest.$ac_ext >&5
  29973. ac_cv_type_charp=no
  29974. fi
  29975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29976. fi
  29977. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  29978. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  29979. # The cast to long int works around a bug in the HP C Compiler
  29980. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29981. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29982. # This bug is HP SR number 8606223364.
  29983. { echo "$as_me:$LINENO: checking size of char*" >&5
  29984. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  29985. if test "${ac_cv_sizeof_charp+set}" = set; then
  29986. echo $ECHO_N "(cached) $ECHO_C" >&6
  29987. else
  29988. if test "$cross_compiling" = yes; then
  29989. # Depending upon the size, compute the lo and hi bounds.
  29990. cat >conftest.$ac_ext <<_ACEOF
  29991. /* confdefs.h. */
  29992. _ACEOF
  29993. cat confdefs.h >>conftest.$ac_ext
  29994. cat >>conftest.$ac_ext <<_ACEOF
  29995. /* end confdefs.h. */
  29996. $ac_includes_default
  29997. typedef char* ac__type_sizeof_;
  29998. int
  29999. main ()
  30000. {
  30001. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30002. test_array [0] = 0
  30003. ;
  30004. return 0;
  30005. }
  30006. _ACEOF
  30007. rm -f conftest.$ac_objext
  30008. if { (ac_try="$ac_compile"
  30009. case "(($ac_try" in
  30010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30011. *) ac_try_echo=$ac_try;;
  30012. esac
  30013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30014. (eval "$ac_compile") 2>conftest.er1
  30015. ac_status=$?
  30016. grep -v '^ *+' conftest.er1 >conftest.err
  30017. rm -f conftest.er1
  30018. cat conftest.err >&5
  30019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30020. (exit $ac_status); } && {
  30021. test -z "$ac_c_werror_flag" ||
  30022. test ! -s conftest.err
  30023. } && test -s conftest.$ac_objext; then
  30024. ac_lo=0 ac_mid=0
  30025. while :; do
  30026. cat >conftest.$ac_ext <<_ACEOF
  30027. /* confdefs.h. */
  30028. _ACEOF
  30029. cat confdefs.h >>conftest.$ac_ext
  30030. cat >>conftest.$ac_ext <<_ACEOF
  30031. /* end confdefs.h. */
  30032. $ac_includes_default
  30033. typedef char* ac__type_sizeof_;
  30034. int
  30035. main ()
  30036. {
  30037. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30038. test_array [0] = 0
  30039. ;
  30040. return 0;
  30041. }
  30042. _ACEOF
  30043. rm -f conftest.$ac_objext
  30044. if { (ac_try="$ac_compile"
  30045. case "(($ac_try" in
  30046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30047. *) ac_try_echo=$ac_try;;
  30048. esac
  30049. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30050. (eval "$ac_compile") 2>conftest.er1
  30051. ac_status=$?
  30052. grep -v '^ *+' conftest.er1 >conftest.err
  30053. rm -f conftest.er1
  30054. cat conftest.err >&5
  30055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30056. (exit $ac_status); } && {
  30057. test -z "$ac_c_werror_flag" ||
  30058. test ! -s conftest.err
  30059. } && test -s conftest.$ac_objext; then
  30060. ac_hi=$ac_mid; break
  30061. else
  30062. echo "$as_me: failed program was:" >&5
  30063. sed 's/^/| /' conftest.$ac_ext >&5
  30064. ac_lo=`expr $ac_mid + 1`
  30065. if test $ac_lo -le $ac_mid; then
  30066. ac_lo= ac_hi=
  30067. break
  30068. fi
  30069. ac_mid=`expr 2 '*' $ac_mid + 1`
  30070. fi
  30071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30072. done
  30073. else
  30074. echo "$as_me: failed program was:" >&5
  30075. sed 's/^/| /' conftest.$ac_ext >&5
  30076. cat >conftest.$ac_ext <<_ACEOF
  30077. /* confdefs.h. */
  30078. _ACEOF
  30079. cat confdefs.h >>conftest.$ac_ext
  30080. cat >>conftest.$ac_ext <<_ACEOF
  30081. /* end confdefs.h. */
  30082. $ac_includes_default
  30083. typedef char* ac__type_sizeof_;
  30084. int
  30085. main ()
  30086. {
  30087. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30088. test_array [0] = 0
  30089. ;
  30090. return 0;
  30091. }
  30092. _ACEOF
  30093. rm -f conftest.$ac_objext
  30094. if { (ac_try="$ac_compile"
  30095. case "(($ac_try" in
  30096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30097. *) ac_try_echo=$ac_try;;
  30098. esac
  30099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30100. (eval "$ac_compile") 2>conftest.er1
  30101. ac_status=$?
  30102. grep -v '^ *+' conftest.er1 >conftest.err
  30103. rm -f conftest.er1
  30104. cat conftest.err >&5
  30105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30106. (exit $ac_status); } && {
  30107. test -z "$ac_c_werror_flag" ||
  30108. test ! -s conftest.err
  30109. } && test -s conftest.$ac_objext; then
  30110. ac_hi=-1 ac_mid=-1
  30111. while :; do
  30112. cat >conftest.$ac_ext <<_ACEOF
  30113. /* confdefs.h. */
  30114. _ACEOF
  30115. cat confdefs.h >>conftest.$ac_ext
  30116. cat >>conftest.$ac_ext <<_ACEOF
  30117. /* end confdefs.h. */
  30118. $ac_includes_default
  30119. typedef char* ac__type_sizeof_;
  30120. int
  30121. main ()
  30122. {
  30123. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30124. test_array [0] = 0
  30125. ;
  30126. return 0;
  30127. }
  30128. _ACEOF
  30129. rm -f conftest.$ac_objext
  30130. if { (ac_try="$ac_compile"
  30131. case "(($ac_try" in
  30132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30133. *) ac_try_echo=$ac_try;;
  30134. esac
  30135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30136. (eval "$ac_compile") 2>conftest.er1
  30137. ac_status=$?
  30138. grep -v '^ *+' conftest.er1 >conftest.err
  30139. rm -f conftest.er1
  30140. cat conftest.err >&5
  30141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30142. (exit $ac_status); } && {
  30143. test -z "$ac_c_werror_flag" ||
  30144. test ! -s conftest.err
  30145. } && test -s conftest.$ac_objext; then
  30146. ac_lo=$ac_mid; break
  30147. else
  30148. echo "$as_me: failed program was:" >&5
  30149. sed 's/^/| /' conftest.$ac_ext >&5
  30150. ac_hi=`expr '(' $ac_mid ')' - 1`
  30151. if test $ac_mid -le $ac_hi; then
  30152. ac_lo= ac_hi=
  30153. break
  30154. fi
  30155. ac_mid=`expr 2 '*' $ac_mid`
  30156. fi
  30157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30158. done
  30159. else
  30160. echo "$as_me: failed program was:" >&5
  30161. sed 's/^/| /' conftest.$ac_ext >&5
  30162. ac_lo= ac_hi=
  30163. fi
  30164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30165. fi
  30166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30167. # Binary search between lo and hi bounds.
  30168. while test "x$ac_lo" != "x$ac_hi"; do
  30169. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30170. cat >conftest.$ac_ext <<_ACEOF
  30171. /* confdefs.h. */
  30172. _ACEOF
  30173. cat confdefs.h >>conftest.$ac_ext
  30174. cat >>conftest.$ac_ext <<_ACEOF
  30175. /* end confdefs.h. */
  30176. $ac_includes_default
  30177. typedef char* ac__type_sizeof_;
  30178. int
  30179. main ()
  30180. {
  30181. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30182. test_array [0] = 0
  30183. ;
  30184. return 0;
  30185. }
  30186. _ACEOF
  30187. rm -f conftest.$ac_objext
  30188. if { (ac_try="$ac_compile"
  30189. case "(($ac_try" in
  30190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30191. *) ac_try_echo=$ac_try;;
  30192. esac
  30193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30194. (eval "$ac_compile") 2>conftest.er1
  30195. ac_status=$?
  30196. grep -v '^ *+' conftest.er1 >conftest.err
  30197. rm -f conftest.er1
  30198. cat conftest.err >&5
  30199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30200. (exit $ac_status); } && {
  30201. test -z "$ac_c_werror_flag" ||
  30202. test ! -s conftest.err
  30203. } && test -s conftest.$ac_objext; then
  30204. ac_hi=$ac_mid
  30205. else
  30206. echo "$as_me: failed program was:" >&5
  30207. sed 's/^/| /' conftest.$ac_ext >&5
  30208. ac_lo=`expr '(' $ac_mid ')' + 1`
  30209. fi
  30210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30211. done
  30212. case $ac_lo in
  30213. ?*) ac_cv_sizeof_charp=$ac_lo;;
  30214. '') if test "$ac_cv_type_charp" = yes; then
  30215. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  30216. See \`config.log' for more details." >&5
  30217. echo "$as_me: error: cannot compute sizeof (char*)
  30218. See \`config.log' for more details." >&2;}
  30219. { (exit 77); exit 77; }; }
  30220. else
  30221. ac_cv_sizeof_charp=0
  30222. fi ;;
  30223. esac
  30224. else
  30225. cat >conftest.$ac_ext <<_ACEOF
  30226. /* confdefs.h. */
  30227. _ACEOF
  30228. cat confdefs.h >>conftest.$ac_ext
  30229. cat >>conftest.$ac_ext <<_ACEOF
  30230. /* end confdefs.h. */
  30231. $ac_includes_default
  30232. typedef char* ac__type_sizeof_;
  30233. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30234. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30235. #include <stdio.h>
  30236. #include <stdlib.h>
  30237. int
  30238. main ()
  30239. {
  30240. FILE *f = fopen ("conftest.val", "w");
  30241. if (! f)
  30242. return 1;
  30243. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30244. {
  30245. long int i = longval ();
  30246. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30247. return 1;
  30248. fprintf (f, "%ld\n", i);
  30249. }
  30250. else
  30251. {
  30252. unsigned long int i = ulongval ();
  30253. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30254. return 1;
  30255. fprintf (f, "%lu\n", i);
  30256. }
  30257. return ferror (f) || fclose (f) != 0;
  30258. ;
  30259. return 0;
  30260. }
  30261. _ACEOF
  30262. rm -f conftest$ac_exeext
  30263. if { (ac_try="$ac_link"
  30264. case "(($ac_try" in
  30265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30266. *) ac_try_echo=$ac_try;;
  30267. esac
  30268. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30269. (eval "$ac_link") 2>&5
  30270. ac_status=$?
  30271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30272. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30273. { (case "(($ac_try" in
  30274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30275. *) ac_try_echo=$ac_try;;
  30276. esac
  30277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30278. (eval "$ac_try") 2>&5
  30279. ac_status=$?
  30280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30281. (exit $ac_status); }; }; then
  30282. ac_cv_sizeof_charp=`cat conftest.val`
  30283. else
  30284. echo "$as_me: program exited with status $ac_status" >&5
  30285. echo "$as_me: failed program was:" >&5
  30286. sed 's/^/| /' conftest.$ac_ext >&5
  30287. ( exit $ac_status )
  30288. if test "$ac_cv_type_charp" = yes; then
  30289. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  30290. See \`config.log' for more details." >&5
  30291. echo "$as_me: error: cannot compute sizeof (char*)
  30292. See \`config.log' for more details." >&2;}
  30293. { (exit 77); exit 77; }; }
  30294. else
  30295. ac_cv_sizeof_charp=0
  30296. fi
  30297. fi
  30298. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30299. fi
  30300. rm -f conftest.val
  30301. fi
  30302. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  30303. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  30304. cat >>confdefs.h <<_ACEOF
  30305. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  30306. _ACEOF
  30307. { echo "$as_me:$LINENO: checking for int" >&5
  30308. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  30309. if test "${ac_cv_type_int+set}" = set; then
  30310. echo $ECHO_N "(cached) $ECHO_C" >&6
  30311. else
  30312. cat >conftest.$ac_ext <<_ACEOF
  30313. /* confdefs.h. */
  30314. _ACEOF
  30315. cat confdefs.h >>conftest.$ac_ext
  30316. cat >>conftest.$ac_ext <<_ACEOF
  30317. /* end confdefs.h. */
  30318. $ac_includes_default
  30319. typedef int ac__type_new_;
  30320. int
  30321. main ()
  30322. {
  30323. if ((ac__type_new_ *) 0)
  30324. return 0;
  30325. if (sizeof (ac__type_new_))
  30326. return 0;
  30327. ;
  30328. return 0;
  30329. }
  30330. _ACEOF
  30331. rm -f conftest.$ac_objext
  30332. if { (ac_try="$ac_compile"
  30333. case "(($ac_try" in
  30334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30335. *) ac_try_echo=$ac_try;;
  30336. esac
  30337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30338. (eval "$ac_compile") 2>conftest.er1
  30339. ac_status=$?
  30340. grep -v '^ *+' conftest.er1 >conftest.err
  30341. rm -f conftest.er1
  30342. cat conftest.err >&5
  30343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30344. (exit $ac_status); } && {
  30345. test -z "$ac_c_werror_flag" ||
  30346. test ! -s conftest.err
  30347. } && test -s conftest.$ac_objext; then
  30348. ac_cv_type_int=yes
  30349. else
  30350. echo "$as_me: failed program was:" >&5
  30351. sed 's/^/| /' conftest.$ac_ext >&5
  30352. ac_cv_type_int=no
  30353. fi
  30354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30355. fi
  30356. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  30357. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  30358. # The cast to long int works around a bug in the HP C Compiler
  30359. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30360. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30361. # This bug is HP SR number 8606223364.
  30362. { echo "$as_me:$LINENO: checking size of int" >&5
  30363. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  30364. if test "${ac_cv_sizeof_int+set}" = set; then
  30365. echo $ECHO_N "(cached) $ECHO_C" >&6
  30366. else
  30367. if test "$cross_compiling" = yes; then
  30368. # Depending upon the size, compute the lo and hi bounds.
  30369. cat >conftest.$ac_ext <<_ACEOF
  30370. /* confdefs.h. */
  30371. _ACEOF
  30372. cat confdefs.h >>conftest.$ac_ext
  30373. cat >>conftest.$ac_ext <<_ACEOF
  30374. /* end confdefs.h. */
  30375. $ac_includes_default
  30376. typedef int ac__type_sizeof_;
  30377. int
  30378. main ()
  30379. {
  30380. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30381. test_array [0] = 0
  30382. ;
  30383. return 0;
  30384. }
  30385. _ACEOF
  30386. rm -f conftest.$ac_objext
  30387. if { (ac_try="$ac_compile"
  30388. case "(($ac_try" in
  30389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30390. *) ac_try_echo=$ac_try;;
  30391. esac
  30392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30393. (eval "$ac_compile") 2>conftest.er1
  30394. ac_status=$?
  30395. grep -v '^ *+' conftest.er1 >conftest.err
  30396. rm -f conftest.er1
  30397. cat conftest.err >&5
  30398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30399. (exit $ac_status); } && {
  30400. test -z "$ac_c_werror_flag" ||
  30401. test ! -s conftest.err
  30402. } && test -s conftest.$ac_objext; then
  30403. ac_lo=0 ac_mid=0
  30404. while :; do
  30405. cat >conftest.$ac_ext <<_ACEOF
  30406. /* confdefs.h. */
  30407. _ACEOF
  30408. cat confdefs.h >>conftest.$ac_ext
  30409. cat >>conftest.$ac_ext <<_ACEOF
  30410. /* end confdefs.h. */
  30411. $ac_includes_default
  30412. typedef int ac__type_sizeof_;
  30413. int
  30414. main ()
  30415. {
  30416. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30417. test_array [0] = 0
  30418. ;
  30419. return 0;
  30420. }
  30421. _ACEOF
  30422. rm -f conftest.$ac_objext
  30423. if { (ac_try="$ac_compile"
  30424. case "(($ac_try" in
  30425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30426. *) ac_try_echo=$ac_try;;
  30427. esac
  30428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30429. (eval "$ac_compile") 2>conftest.er1
  30430. ac_status=$?
  30431. grep -v '^ *+' conftest.er1 >conftest.err
  30432. rm -f conftest.er1
  30433. cat conftest.err >&5
  30434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30435. (exit $ac_status); } && {
  30436. test -z "$ac_c_werror_flag" ||
  30437. test ! -s conftest.err
  30438. } && test -s conftest.$ac_objext; then
  30439. ac_hi=$ac_mid; break
  30440. else
  30441. echo "$as_me: failed program was:" >&5
  30442. sed 's/^/| /' conftest.$ac_ext >&5
  30443. ac_lo=`expr $ac_mid + 1`
  30444. if test $ac_lo -le $ac_mid; then
  30445. ac_lo= ac_hi=
  30446. break
  30447. fi
  30448. ac_mid=`expr 2 '*' $ac_mid + 1`
  30449. fi
  30450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30451. done
  30452. else
  30453. echo "$as_me: failed program was:" >&5
  30454. sed 's/^/| /' conftest.$ac_ext >&5
  30455. cat >conftest.$ac_ext <<_ACEOF
  30456. /* confdefs.h. */
  30457. _ACEOF
  30458. cat confdefs.h >>conftest.$ac_ext
  30459. cat >>conftest.$ac_ext <<_ACEOF
  30460. /* end confdefs.h. */
  30461. $ac_includes_default
  30462. typedef int ac__type_sizeof_;
  30463. int
  30464. main ()
  30465. {
  30466. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30467. test_array [0] = 0
  30468. ;
  30469. return 0;
  30470. }
  30471. _ACEOF
  30472. rm -f conftest.$ac_objext
  30473. if { (ac_try="$ac_compile"
  30474. case "(($ac_try" in
  30475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30476. *) ac_try_echo=$ac_try;;
  30477. esac
  30478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30479. (eval "$ac_compile") 2>conftest.er1
  30480. ac_status=$?
  30481. grep -v '^ *+' conftest.er1 >conftest.err
  30482. rm -f conftest.er1
  30483. cat conftest.err >&5
  30484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30485. (exit $ac_status); } && {
  30486. test -z "$ac_c_werror_flag" ||
  30487. test ! -s conftest.err
  30488. } && test -s conftest.$ac_objext; then
  30489. ac_hi=-1 ac_mid=-1
  30490. while :; do
  30491. cat >conftest.$ac_ext <<_ACEOF
  30492. /* confdefs.h. */
  30493. _ACEOF
  30494. cat confdefs.h >>conftest.$ac_ext
  30495. cat >>conftest.$ac_ext <<_ACEOF
  30496. /* end confdefs.h. */
  30497. $ac_includes_default
  30498. typedef int ac__type_sizeof_;
  30499. int
  30500. main ()
  30501. {
  30502. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30503. test_array [0] = 0
  30504. ;
  30505. return 0;
  30506. }
  30507. _ACEOF
  30508. rm -f conftest.$ac_objext
  30509. if { (ac_try="$ac_compile"
  30510. case "(($ac_try" in
  30511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30512. *) ac_try_echo=$ac_try;;
  30513. esac
  30514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30515. (eval "$ac_compile") 2>conftest.er1
  30516. ac_status=$?
  30517. grep -v '^ *+' conftest.er1 >conftest.err
  30518. rm -f conftest.er1
  30519. cat conftest.err >&5
  30520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30521. (exit $ac_status); } && {
  30522. test -z "$ac_c_werror_flag" ||
  30523. test ! -s conftest.err
  30524. } && test -s conftest.$ac_objext; then
  30525. ac_lo=$ac_mid; break
  30526. else
  30527. echo "$as_me: failed program was:" >&5
  30528. sed 's/^/| /' conftest.$ac_ext >&5
  30529. ac_hi=`expr '(' $ac_mid ')' - 1`
  30530. if test $ac_mid -le $ac_hi; then
  30531. ac_lo= ac_hi=
  30532. break
  30533. fi
  30534. ac_mid=`expr 2 '*' $ac_mid`
  30535. fi
  30536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30537. done
  30538. else
  30539. echo "$as_me: failed program was:" >&5
  30540. sed 's/^/| /' conftest.$ac_ext >&5
  30541. ac_lo= ac_hi=
  30542. fi
  30543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30544. fi
  30545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30546. # Binary search between lo and hi bounds.
  30547. while test "x$ac_lo" != "x$ac_hi"; do
  30548. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30549. cat >conftest.$ac_ext <<_ACEOF
  30550. /* confdefs.h. */
  30551. _ACEOF
  30552. cat confdefs.h >>conftest.$ac_ext
  30553. cat >>conftest.$ac_ext <<_ACEOF
  30554. /* end confdefs.h. */
  30555. $ac_includes_default
  30556. typedef int ac__type_sizeof_;
  30557. int
  30558. main ()
  30559. {
  30560. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30561. test_array [0] = 0
  30562. ;
  30563. return 0;
  30564. }
  30565. _ACEOF
  30566. rm -f conftest.$ac_objext
  30567. if { (ac_try="$ac_compile"
  30568. case "(($ac_try" in
  30569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30570. *) ac_try_echo=$ac_try;;
  30571. esac
  30572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30573. (eval "$ac_compile") 2>conftest.er1
  30574. ac_status=$?
  30575. grep -v '^ *+' conftest.er1 >conftest.err
  30576. rm -f conftest.er1
  30577. cat conftest.err >&5
  30578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30579. (exit $ac_status); } && {
  30580. test -z "$ac_c_werror_flag" ||
  30581. test ! -s conftest.err
  30582. } && test -s conftest.$ac_objext; then
  30583. ac_hi=$ac_mid
  30584. else
  30585. echo "$as_me: failed program was:" >&5
  30586. sed 's/^/| /' conftest.$ac_ext >&5
  30587. ac_lo=`expr '(' $ac_mid ')' + 1`
  30588. fi
  30589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30590. done
  30591. case $ac_lo in
  30592. ?*) ac_cv_sizeof_int=$ac_lo;;
  30593. '') if test "$ac_cv_type_int" = yes; then
  30594. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30595. See \`config.log' for more details." >&5
  30596. echo "$as_me: error: cannot compute sizeof (int)
  30597. See \`config.log' for more details." >&2;}
  30598. { (exit 77); exit 77; }; }
  30599. else
  30600. ac_cv_sizeof_int=0
  30601. fi ;;
  30602. esac
  30603. else
  30604. cat >conftest.$ac_ext <<_ACEOF
  30605. /* confdefs.h. */
  30606. _ACEOF
  30607. cat confdefs.h >>conftest.$ac_ext
  30608. cat >>conftest.$ac_ext <<_ACEOF
  30609. /* end confdefs.h. */
  30610. $ac_includes_default
  30611. typedef int ac__type_sizeof_;
  30612. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30613. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30614. #include <stdio.h>
  30615. #include <stdlib.h>
  30616. int
  30617. main ()
  30618. {
  30619. FILE *f = fopen ("conftest.val", "w");
  30620. if (! f)
  30621. return 1;
  30622. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30623. {
  30624. long int i = longval ();
  30625. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30626. return 1;
  30627. fprintf (f, "%ld\n", i);
  30628. }
  30629. else
  30630. {
  30631. unsigned long int i = ulongval ();
  30632. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30633. return 1;
  30634. fprintf (f, "%lu\n", i);
  30635. }
  30636. return ferror (f) || fclose (f) != 0;
  30637. ;
  30638. return 0;
  30639. }
  30640. _ACEOF
  30641. rm -f conftest$ac_exeext
  30642. if { (ac_try="$ac_link"
  30643. case "(($ac_try" in
  30644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30645. *) ac_try_echo=$ac_try;;
  30646. esac
  30647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30648. (eval "$ac_link") 2>&5
  30649. ac_status=$?
  30650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30651. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30652. { (case "(($ac_try" in
  30653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30654. *) ac_try_echo=$ac_try;;
  30655. esac
  30656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30657. (eval "$ac_try") 2>&5
  30658. ac_status=$?
  30659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30660. (exit $ac_status); }; }; then
  30661. ac_cv_sizeof_int=`cat conftest.val`
  30662. else
  30663. echo "$as_me: program exited with status $ac_status" >&5
  30664. echo "$as_me: failed program was:" >&5
  30665. sed 's/^/| /' conftest.$ac_ext >&5
  30666. ( exit $ac_status )
  30667. if test "$ac_cv_type_int" = yes; then
  30668. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30669. See \`config.log' for more details." >&5
  30670. echo "$as_me: error: cannot compute sizeof (int)
  30671. See \`config.log' for more details." >&2;}
  30672. { (exit 77); exit 77; }; }
  30673. else
  30674. ac_cv_sizeof_int=0
  30675. fi
  30676. fi
  30677. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30678. fi
  30679. rm -f conftest.val
  30680. fi
  30681. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  30682. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  30683. cat >>confdefs.h <<_ACEOF
  30684. #define SIZEOF_INT $ac_cv_sizeof_int
  30685. _ACEOF
  30686. { echo "$as_me:$LINENO: checking for long" >&5
  30687. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  30688. if test "${ac_cv_type_long+set}" = set; then
  30689. echo $ECHO_N "(cached) $ECHO_C" >&6
  30690. else
  30691. cat >conftest.$ac_ext <<_ACEOF
  30692. /* confdefs.h. */
  30693. _ACEOF
  30694. cat confdefs.h >>conftest.$ac_ext
  30695. cat >>conftest.$ac_ext <<_ACEOF
  30696. /* end confdefs.h. */
  30697. $ac_includes_default
  30698. typedef long ac__type_new_;
  30699. int
  30700. main ()
  30701. {
  30702. if ((ac__type_new_ *) 0)
  30703. return 0;
  30704. if (sizeof (ac__type_new_))
  30705. return 0;
  30706. ;
  30707. return 0;
  30708. }
  30709. _ACEOF
  30710. rm -f conftest.$ac_objext
  30711. if { (ac_try="$ac_compile"
  30712. case "(($ac_try" in
  30713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30714. *) ac_try_echo=$ac_try;;
  30715. esac
  30716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30717. (eval "$ac_compile") 2>conftest.er1
  30718. ac_status=$?
  30719. grep -v '^ *+' conftest.er1 >conftest.err
  30720. rm -f conftest.er1
  30721. cat conftest.err >&5
  30722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30723. (exit $ac_status); } && {
  30724. test -z "$ac_c_werror_flag" ||
  30725. test ! -s conftest.err
  30726. } && test -s conftest.$ac_objext; then
  30727. ac_cv_type_long=yes
  30728. else
  30729. echo "$as_me: failed program was:" >&5
  30730. sed 's/^/| /' conftest.$ac_ext >&5
  30731. ac_cv_type_long=no
  30732. fi
  30733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30734. fi
  30735. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  30736. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  30737. # The cast to long int works around a bug in the HP C Compiler
  30738. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30739. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30740. # This bug is HP SR number 8606223364.
  30741. { echo "$as_me:$LINENO: checking size of long" >&5
  30742. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  30743. if test "${ac_cv_sizeof_long+set}" = set; then
  30744. echo $ECHO_N "(cached) $ECHO_C" >&6
  30745. else
  30746. if test "$cross_compiling" = yes; then
  30747. # Depending upon the size, compute the lo and hi bounds.
  30748. cat >conftest.$ac_ext <<_ACEOF
  30749. /* confdefs.h. */
  30750. _ACEOF
  30751. cat confdefs.h >>conftest.$ac_ext
  30752. cat >>conftest.$ac_ext <<_ACEOF
  30753. /* end confdefs.h. */
  30754. $ac_includes_default
  30755. typedef long ac__type_sizeof_;
  30756. int
  30757. main ()
  30758. {
  30759. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30760. test_array [0] = 0
  30761. ;
  30762. return 0;
  30763. }
  30764. _ACEOF
  30765. rm -f conftest.$ac_objext
  30766. if { (ac_try="$ac_compile"
  30767. case "(($ac_try" in
  30768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30769. *) ac_try_echo=$ac_try;;
  30770. esac
  30771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30772. (eval "$ac_compile") 2>conftest.er1
  30773. ac_status=$?
  30774. grep -v '^ *+' conftest.er1 >conftest.err
  30775. rm -f conftest.er1
  30776. cat conftest.err >&5
  30777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30778. (exit $ac_status); } && {
  30779. test -z "$ac_c_werror_flag" ||
  30780. test ! -s conftest.err
  30781. } && test -s conftest.$ac_objext; then
  30782. ac_lo=0 ac_mid=0
  30783. while :; do
  30784. cat >conftest.$ac_ext <<_ACEOF
  30785. /* confdefs.h. */
  30786. _ACEOF
  30787. cat confdefs.h >>conftest.$ac_ext
  30788. cat >>conftest.$ac_ext <<_ACEOF
  30789. /* end confdefs.h. */
  30790. $ac_includes_default
  30791. typedef long ac__type_sizeof_;
  30792. int
  30793. main ()
  30794. {
  30795. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30796. test_array [0] = 0
  30797. ;
  30798. return 0;
  30799. }
  30800. _ACEOF
  30801. rm -f conftest.$ac_objext
  30802. if { (ac_try="$ac_compile"
  30803. case "(($ac_try" in
  30804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30805. *) ac_try_echo=$ac_try;;
  30806. esac
  30807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30808. (eval "$ac_compile") 2>conftest.er1
  30809. ac_status=$?
  30810. grep -v '^ *+' conftest.er1 >conftest.err
  30811. rm -f conftest.er1
  30812. cat conftest.err >&5
  30813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30814. (exit $ac_status); } && {
  30815. test -z "$ac_c_werror_flag" ||
  30816. test ! -s conftest.err
  30817. } && test -s conftest.$ac_objext; then
  30818. ac_hi=$ac_mid; break
  30819. else
  30820. echo "$as_me: failed program was:" >&5
  30821. sed 's/^/| /' conftest.$ac_ext >&5
  30822. ac_lo=`expr $ac_mid + 1`
  30823. if test $ac_lo -le $ac_mid; then
  30824. ac_lo= ac_hi=
  30825. break
  30826. fi
  30827. ac_mid=`expr 2 '*' $ac_mid + 1`
  30828. fi
  30829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30830. done
  30831. else
  30832. echo "$as_me: failed program was:" >&5
  30833. sed 's/^/| /' conftest.$ac_ext >&5
  30834. cat >conftest.$ac_ext <<_ACEOF
  30835. /* confdefs.h. */
  30836. _ACEOF
  30837. cat confdefs.h >>conftest.$ac_ext
  30838. cat >>conftest.$ac_ext <<_ACEOF
  30839. /* end confdefs.h. */
  30840. $ac_includes_default
  30841. typedef long ac__type_sizeof_;
  30842. int
  30843. main ()
  30844. {
  30845. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30846. test_array [0] = 0
  30847. ;
  30848. return 0;
  30849. }
  30850. _ACEOF
  30851. rm -f conftest.$ac_objext
  30852. if { (ac_try="$ac_compile"
  30853. case "(($ac_try" in
  30854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30855. *) ac_try_echo=$ac_try;;
  30856. esac
  30857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30858. (eval "$ac_compile") 2>conftest.er1
  30859. ac_status=$?
  30860. grep -v '^ *+' conftest.er1 >conftest.err
  30861. rm -f conftest.er1
  30862. cat conftest.err >&5
  30863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30864. (exit $ac_status); } && {
  30865. test -z "$ac_c_werror_flag" ||
  30866. test ! -s conftest.err
  30867. } && test -s conftest.$ac_objext; then
  30868. ac_hi=-1 ac_mid=-1
  30869. while :; do
  30870. cat >conftest.$ac_ext <<_ACEOF
  30871. /* confdefs.h. */
  30872. _ACEOF
  30873. cat confdefs.h >>conftest.$ac_ext
  30874. cat >>conftest.$ac_ext <<_ACEOF
  30875. /* end confdefs.h. */
  30876. $ac_includes_default
  30877. typedef long ac__type_sizeof_;
  30878. int
  30879. main ()
  30880. {
  30881. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30882. test_array [0] = 0
  30883. ;
  30884. return 0;
  30885. }
  30886. _ACEOF
  30887. rm -f conftest.$ac_objext
  30888. if { (ac_try="$ac_compile"
  30889. case "(($ac_try" in
  30890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30891. *) ac_try_echo=$ac_try;;
  30892. esac
  30893. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30894. (eval "$ac_compile") 2>conftest.er1
  30895. ac_status=$?
  30896. grep -v '^ *+' conftest.er1 >conftest.err
  30897. rm -f conftest.er1
  30898. cat conftest.err >&5
  30899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30900. (exit $ac_status); } && {
  30901. test -z "$ac_c_werror_flag" ||
  30902. test ! -s conftest.err
  30903. } && test -s conftest.$ac_objext; then
  30904. ac_lo=$ac_mid; break
  30905. else
  30906. echo "$as_me: failed program was:" >&5
  30907. sed 's/^/| /' conftest.$ac_ext >&5
  30908. ac_hi=`expr '(' $ac_mid ')' - 1`
  30909. if test $ac_mid -le $ac_hi; then
  30910. ac_lo= ac_hi=
  30911. break
  30912. fi
  30913. ac_mid=`expr 2 '*' $ac_mid`
  30914. fi
  30915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30916. done
  30917. else
  30918. echo "$as_me: failed program was:" >&5
  30919. sed 's/^/| /' conftest.$ac_ext >&5
  30920. ac_lo= ac_hi=
  30921. fi
  30922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30923. fi
  30924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30925. # Binary search between lo and hi bounds.
  30926. while test "x$ac_lo" != "x$ac_hi"; do
  30927. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30928. cat >conftest.$ac_ext <<_ACEOF
  30929. /* confdefs.h. */
  30930. _ACEOF
  30931. cat confdefs.h >>conftest.$ac_ext
  30932. cat >>conftest.$ac_ext <<_ACEOF
  30933. /* end confdefs.h. */
  30934. $ac_includes_default
  30935. typedef long ac__type_sizeof_;
  30936. int
  30937. main ()
  30938. {
  30939. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30940. test_array [0] = 0
  30941. ;
  30942. return 0;
  30943. }
  30944. _ACEOF
  30945. rm -f conftest.$ac_objext
  30946. if { (ac_try="$ac_compile"
  30947. case "(($ac_try" in
  30948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30949. *) ac_try_echo=$ac_try;;
  30950. esac
  30951. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30952. (eval "$ac_compile") 2>conftest.er1
  30953. ac_status=$?
  30954. grep -v '^ *+' conftest.er1 >conftest.err
  30955. rm -f conftest.er1
  30956. cat conftest.err >&5
  30957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30958. (exit $ac_status); } && {
  30959. test -z "$ac_c_werror_flag" ||
  30960. test ! -s conftest.err
  30961. } && test -s conftest.$ac_objext; then
  30962. ac_hi=$ac_mid
  30963. else
  30964. echo "$as_me: failed program was:" >&5
  30965. sed 's/^/| /' conftest.$ac_ext >&5
  30966. ac_lo=`expr '(' $ac_mid ')' + 1`
  30967. fi
  30968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30969. done
  30970. case $ac_lo in
  30971. ?*) ac_cv_sizeof_long=$ac_lo;;
  30972. '') if test "$ac_cv_type_long" = yes; then
  30973. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  30974. See \`config.log' for more details." >&5
  30975. echo "$as_me: error: cannot compute sizeof (long)
  30976. See \`config.log' for more details." >&2;}
  30977. { (exit 77); exit 77; }; }
  30978. else
  30979. ac_cv_sizeof_long=0
  30980. fi ;;
  30981. esac
  30982. else
  30983. cat >conftest.$ac_ext <<_ACEOF
  30984. /* confdefs.h. */
  30985. _ACEOF
  30986. cat confdefs.h >>conftest.$ac_ext
  30987. cat >>conftest.$ac_ext <<_ACEOF
  30988. /* end confdefs.h. */
  30989. $ac_includes_default
  30990. typedef long ac__type_sizeof_;
  30991. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30992. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30993. #include <stdio.h>
  30994. #include <stdlib.h>
  30995. int
  30996. main ()
  30997. {
  30998. FILE *f = fopen ("conftest.val", "w");
  30999. if (! f)
  31000. return 1;
  31001. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  31002. {
  31003. long int i = longval ();
  31004. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31005. return 1;
  31006. fprintf (f, "%ld\n", i);
  31007. }
  31008. else
  31009. {
  31010. unsigned long int i = ulongval ();
  31011. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31012. return 1;
  31013. fprintf (f, "%lu\n", i);
  31014. }
  31015. return ferror (f) || fclose (f) != 0;
  31016. ;
  31017. return 0;
  31018. }
  31019. _ACEOF
  31020. rm -f conftest$ac_exeext
  31021. if { (ac_try="$ac_link"
  31022. case "(($ac_try" in
  31023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31024. *) ac_try_echo=$ac_try;;
  31025. esac
  31026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31027. (eval "$ac_link") 2>&5
  31028. ac_status=$?
  31029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31030. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31031. { (case "(($ac_try" in
  31032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31033. *) ac_try_echo=$ac_try;;
  31034. esac
  31035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31036. (eval "$ac_try") 2>&5
  31037. ac_status=$?
  31038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31039. (exit $ac_status); }; }; then
  31040. ac_cv_sizeof_long=`cat conftest.val`
  31041. else
  31042. echo "$as_me: program exited with status $ac_status" >&5
  31043. echo "$as_me: failed program was:" >&5
  31044. sed 's/^/| /' conftest.$ac_ext >&5
  31045. ( exit $ac_status )
  31046. if test "$ac_cv_type_long" = yes; then
  31047. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  31048. See \`config.log' for more details." >&5
  31049. echo "$as_me: error: cannot compute sizeof (long)
  31050. See \`config.log' for more details." >&2;}
  31051. { (exit 77); exit 77; }; }
  31052. else
  31053. ac_cv_sizeof_long=0
  31054. fi
  31055. fi
  31056. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31057. fi
  31058. rm -f conftest.val
  31059. fi
  31060. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  31061. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  31062. cat >>confdefs.h <<_ACEOF
  31063. #define SIZEOF_LONG $ac_cv_sizeof_long
  31064. _ACEOF
  31065. { echo "$as_me:$LINENO: checking for short" >&5
  31066. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  31067. if test "${ac_cv_type_short+set}" = set; then
  31068. echo $ECHO_N "(cached) $ECHO_C" >&6
  31069. else
  31070. cat >conftest.$ac_ext <<_ACEOF
  31071. /* confdefs.h. */
  31072. _ACEOF
  31073. cat confdefs.h >>conftest.$ac_ext
  31074. cat >>conftest.$ac_ext <<_ACEOF
  31075. /* end confdefs.h. */
  31076. $ac_includes_default
  31077. typedef short ac__type_new_;
  31078. int
  31079. main ()
  31080. {
  31081. if ((ac__type_new_ *) 0)
  31082. return 0;
  31083. if (sizeof (ac__type_new_))
  31084. return 0;
  31085. ;
  31086. return 0;
  31087. }
  31088. _ACEOF
  31089. rm -f conftest.$ac_objext
  31090. if { (ac_try="$ac_compile"
  31091. case "(($ac_try" in
  31092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31093. *) ac_try_echo=$ac_try;;
  31094. esac
  31095. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31096. (eval "$ac_compile") 2>conftest.er1
  31097. ac_status=$?
  31098. grep -v '^ *+' conftest.er1 >conftest.err
  31099. rm -f conftest.er1
  31100. cat conftest.err >&5
  31101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31102. (exit $ac_status); } && {
  31103. test -z "$ac_c_werror_flag" ||
  31104. test ! -s conftest.err
  31105. } && test -s conftest.$ac_objext; then
  31106. ac_cv_type_short=yes
  31107. else
  31108. echo "$as_me: failed program was:" >&5
  31109. sed 's/^/| /' conftest.$ac_ext >&5
  31110. ac_cv_type_short=no
  31111. fi
  31112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31113. fi
  31114. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  31115. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  31116. # The cast to long int works around a bug in the HP C Compiler
  31117. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31118. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31119. # This bug is HP SR number 8606223364.
  31120. { echo "$as_me:$LINENO: checking size of short" >&5
  31121. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  31122. if test "${ac_cv_sizeof_short+set}" = set; then
  31123. echo $ECHO_N "(cached) $ECHO_C" >&6
  31124. else
  31125. if test "$cross_compiling" = yes; then
  31126. # Depending upon the size, compute the lo and hi bounds.
  31127. cat >conftest.$ac_ext <<_ACEOF
  31128. /* confdefs.h. */
  31129. _ACEOF
  31130. cat confdefs.h >>conftest.$ac_ext
  31131. cat >>conftest.$ac_ext <<_ACEOF
  31132. /* end confdefs.h. */
  31133. $ac_includes_default
  31134. typedef short ac__type_sizeof_;
  31135. int
  31136. main ()
  31137. {
  31138. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  31139. test_array [0] = 0
  31140. ;
  31141. return 0;
  31142. }
  31143. _ACEOF
  31144. rm -f conftest.$ac_objext
  31145. if { (ac_try="$ac_compile"
  31146. case "(($ac_try" in
  31147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31148. *) ac_try_echo=$ac_try;;
  31149. esac
  31150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31151. (eval "$ac_compile") 2>conftest.er1
  31152. ac_status=$?
  31153. grep -v '^ *+' conftest.er1 >conftest.err
  31154. rm -f conftest.er1
  31155. cat conftest.err >&5
  31156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31157. (exit $ac_status); } && {
  31158. test -z "$ac_c_werror_flag" ||
  31159. test ! -s conftest.err
  31160. } && test -s conftest.$ac_objext; then
  31161. ac_lo=0 ac_mid=0
  31162. while :; do
  31163. cat >conftest.$ac_ext <<_ACEOF
  31164. /* confdefs.h. */
  31165. _ACEOF
  31166. cat confdefs.h >>conftest.$ac_ext
  31167. cat >>conftest.$ac_ext <<_ACEOF
  31168. /* end confdefs.h. */
  31169. $ac_includes_default
  31170. typedef short ac__type_sizeof_;
  31171. int
  31172. main ()
  31173. {
  31174. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31175. test_array [0] = 0
  31176. ;
  31177. return 0;
  31178. }
  31179. _ACEOF
  31180. rm -f conftest.$ac_objext
  31181. if { (ac_try="$ac_compile"
  31182. case "(($ac_try" in
  31183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31184. *) ac_try_echo=$ac_try;;
  31185. esac
  31186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31187. (eval "$ac_compile") 2>conftest.er1
  31188. ac_status=$?
  31189. grep -v '^ *+' conftest.er1 >conftest.err
  31190. rm -f conftest.er1
  31191. cat conftest.err >&5
  31192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31193. (exit $ac_status); } && {
  31194. test -z "$ac_c_werror_flag" ||
  31195. test ! -s conftest.err
  31196. } && test -s conftest.$ac_objext; then
  31197. ac_hi=$ac_mid; break
  31198. else
  31199. echo "$as_me: failed program was:" >&5
  31200. sed 's/^/| /' conftest.$ac_ext >&5
  31201. ac_lo=`expr $ac_mid + 1`
  31202. if test $ac_lo -le $ac_mid; then
  31203. ac_lo= ac_hi=
  31204. break
  31205. fi
  31206. ac_mid=`expr 2 '*' $ac_mid + 1`
  31207. fi
  31208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31209. done
  31210. else
  31211. echo "$as_me: failed program was:" >&5
  31212. sed 's/^/| /' conftest.$ac_ext >&5
  31213. cat >conftest.$ac_ext <<_ACEOF
  31214. /* confdefs.h. */
  31215. _ACEOF
  31216. cat confdefs.h >>conftest.$ac_ext
  31217. cat >>conftest.$ac_ext <<_ACEOF
  31218. /* end confdefs.h. */
  31219. $ac_includes_default
  31220. typedef short ac__type_sizeof_;
  31221. int
  31222. main ()
  31223. {
  31224. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  31225. test_array [0] = 0
  31226. ;
  31227. return 0;
  31228. }
  31229. _ACEOF
  31230. rm -f conftest.$ac_objext
  31231. if { (ac_try="$ac_compile"
  31232. case "(($ac_try" in
  31233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31234. *) ac_try_echo=$ac_try;;
  31235. esac
  31236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31237. (eval "$ac_compile") 2>conftest.er1
  31238. ac_status=$?
  31239. grep -v '^ *+' conftest.er1 >conftest.err
  31240. rm -f conftest.er1
  31241. cat conftest.err >&5
  31242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31243. (exit $ac_status); } && {
  31244. test -z "$ac_c_werror_flag" ||
  31245. test ! -s conftest.err
  31246. } && test -s conftest.$ac_objext; then
  31247. ac_hi=-1 ac_mid=-1
  31248. while :; do
  31249. cat >conftest.$ac_ext <<_ACEOF
  31250. /* confdefs.h. */
  31251. _ACEOF
  31252. cat confdefs.h >>conftest.$ac_ext
  31253. cat >>conftest.$ac_ext <<_ACEOF
  31254. /* end confdefs.h. */
  31255. $ac_includes_default
  31256. typedef short ac__type_sizeof_;
  31257. int
  31258. main ()
  31259. {
  31260. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  31261. test_array [0] = 0
  31262. ;
  31263. return 0;
  31264. }
  31265. _ACEOF
  31266. rm -f conftest.$ac_objext
  31267. if { (ac_try="$ac_compile"
  31268. case "(($ac_try" in
  31269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31270. *) ac_try_echo=$ac_try;;
  31271. esac
  31272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31273. (eval "$ac_compile") 2>conftest.er1
  31274. ac_status=$?
  31275. grep -v '^ *+' conftest.er1 >conftest.err
  31276. rm -f conftest.er1
  31277. cat conftest.err >&5
  31278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31279. (exit $ac_status); } && {
  31280. test -z "$ac_c_werror_flag" ||
  31281. test ! -s conftest.err
  31282. } && test -s conftest.$ac_objext; then
  31283. ac_lo=$ac_mid; break
  31284. else
  31285. echo "$as_me: failed program was:" >&5
  31286. sed 's/^/| /' conftest.$ac_ext >&5
  31287. ac_hi=`expr '(' $ac_mid ')' - 1`
  31288. if test $ac_mid -le $ac_hi; then
  31289. ac_lo= ac_hi=
  31290. break
  31291. fi
  31292. ac_mid=`expr 2 '*' $ac_mid`
  31293. fi
  31294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31295. done
  31296. else
  31297. echo "$as_me: failed program was:" >&5
  31298. sed 's/^/| /' conftest.$ac_ext >&5
  31299. ac_lo= ac_hi=
  31300. fi
  31301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31302. fi
  31303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31304. # Binary search between lo and hi bounds.
  31305. while test "x$ac_lo" != "x$ac_hi"; do
  31306. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31307. cat >conftest.$ac_ext <<_ACEOF
  31308. /* confdefs.h. */
  31309. _ACEOF
  31310. cat confdefs.h >>conftest.$ac_ext
  31311. cat >>conftest.$ac_ext <<_ACEOF
  31312. /* end confdefs.h. */
  31313. $ac_includes_default
  31314. typedef short ac__type_sizeof_;
  31315. int
  31316. main ()
  31317. {
  31318. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31319. test_array [0] = 0
  31320. ;
  31321. return 0;
  31322. }
  31323. _ACEOF
  31324. rm -f conftest.$ac_objext
  31325. if { (ac_try="$ac_compile"
  31326. case "(($ac_try" in
  31327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31328. *) ac_try_echo=$ac_try;;
  31329. esac
  31330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31331. (eval "$ac_compile") 2>conftest.er1
  31332. ac_status=$?
  31333. grep -v '^ *+' conftest.er1 >conftest.err
  31334. rm -f conftest.er1
  31335. cat conftest.err >&5
  31336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31337. (exit $ac_status); } && {
  31338. test -z "$ac_c_werror_flag" ||
  31339. test ! -s conftest.err
  31340. } && test -s conftest.$ac_objext; then
  31341. ac_hi=$ac_mid
  31342. else
  31343. echo "$as_me: failed program was:" >&5
  31344. sed 's/^/| /' conftest.$ac_ext >&5
  31345. ac_lo=`expr '(' $ac_mid ')' + 1`
  31346. fi
  31347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31348. done
  31349. case $ac_lo in
  31350. ?*) ac_cv_sizeof_short=$ac_lo;;
  31351. '') if test "$ac_cv_type_short" = yes; then
  31352. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  31353. See \`config.log' for more details." >&5
  31354. echo "$as_me: error: cannot compute sizeof (short)
  31355. See \`config.log' for more details." >&2;}
  31356. { (exit 77); exit 77; }; }
  31357. else
  31358. ac_cv_sizeof_short=0
  31359. fi ;;
  31360. esac
  31361. else
  31362. cat >conftest.$ac_ext <<_ACEOF
  31363. /* confdefs.h. */
  31364. _ACEOF
  31365. cat confdefs.h >>conftest.$ac_ext
  31366. cat >>conftest.$ac_ext <<_ACEOF
  31367. /* end confdefs.h. */
  31368. $ac_includes_default
  31369. typedef short ac__type_sizeof_;
  31370. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31371. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31372. #include <stdio.h>
  31373. #include <stdlib.h>
  31374. int
  31375. main ()
  31376. {
  31377. FILE *f = fopen ("conftest.val", "w");
  31378. if (! f)
  31379. return 1;
  31380. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  31381. {
  31382. long int i = longval ();
  31383. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31384. return 1;
  31385. fprintf (f, "%ld\n", i);
  31386. }
  31387. else
  31388. {
  31389. unsigned long int i = ulongval ();
  31390. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31391. return 1;
  31392. fprintf (f, "%lu\n", i);
  31393. }
  31394. return ferror (f) || fclose (f) != 0;
  31395. ;
  31396. return 0;
  31397. }
  31398. _ACEOF
  31399. rm -f conftest$ac_exeext
  31400. if { (ac_try="$ac_link"
  31401. case "(($ac_try" in
  31402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31403. *) ac_try_echo=$ac_try;;
  31404. esac
  31405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31406. (eval "$ac_link") 2>&5
  31407. ac_status=$?
  31408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31409. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31410. { (case "(($ac_try" in
  31411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31412. *) ac_try_echo=$ac_try;;
  31413. esac
  31414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31415. (eval "$ac_try") 2>&5
  31416. ac_status=$?
  31417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31418. (exit $ac_status); }; }; then
  31419. ac_cv_sizeof_short=`cat conftest.val`
  31420. else
  31421. echo "$as_me: program exited with status $ac_status" >&5
  31422. echo "$as_me: failed program was:" >&5
  31423. sed 's/^/| /' conftest.$ac_ext >&5
  31424. ( exit $ac_status )
  31425. if test "$ac_cv_type_short" = yes; then
  31426. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  31427. See \`config.log' for more details." >&5
  31428. echo "$as_me: error: cannot compute sizeof (short)
  31429. See \`config.log' for more details." >&2;}
  31430. { (exit 77); exit 77; }; }
  31431. else
  31432. ac_cv_sizeof_short=0
  31433. fi
  31434. fi
  31435. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31436. fi
  31437. rm -f conftest.val
  31438. fi
  31439. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  31440. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  31441. cat >>confdefs.h <<_ACEOF
  31442. #define SIZEOF_SHORT $ac_cv_sizeof_short
  31443. _ACEOF
  31444. # ----------------------------------------------------------------------
  31445. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  31446. # ----------------------------------------------------------------------
  31447. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  31448. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  31449. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  31450. echo $ECHO_N "(cached) $ECHO_C" >&6
  31451. else
  31452. ac_check_lib_save_LIBS=$LIBS
  31453. LIBS="-lgen $LIBS"
  31454. cat >conftest.$ac_ext <<_ACEOF
  31455. /* confdefs.h. */
  31456. _ACEOF
  31457. cat confdefs.h >>conftest.$ac_ext
  31458. cat >>conftest.$ac_ext <<_ACEOF
  31459. /* end confdefs.h. */
  31460. /* Override any GCC internal prototype to avoid an error.
  31461. Use char because int might match the return type of a GCC
  31462. builtin and then its argument prototype would still apply. */
  31463. #ifdef __cplusplus
  31464. extern "C"
  31465. #endif
  31466. char pathfind ();
  31467. int
  31468. main ()
  31469. {
  31470. return pathfind ();
  31471. ;
  31472. return 0;
  31473. }
  31474. _ACEOF
  31475. rm -f conftest.$ac_objext conftest$ac_exeext
  31476. if { (ac_try="$ac_link"
  31477. case "(($ac_try" in
  31478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31479. *) ac_try_echo=$ac_try;;
  31480. esac
  31481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31482. (eval "$ac_link") 2>conftest.er1
  31483. ac_status=$?
  31484. grep -v '^ *+' conftest.er1 >conftest.err
  31485. rm -f conftest.er1
  31486. cat conftest.err >&5
  31487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31488. (exit $ac_status); } && {
  31489. test -z "$ac_c_werror_flag" ||
  31490. test ! -s conftest.err
  31491. } && test -s conftest$ac_exeext &&
  31492. $as_test_x conftest$ac_exeext; then
  31493. ac_cv_lib_gen_pathfind=yes
  31494. else
  31495. echo "$as_me: failed program was:" >&5
  31496. sed 's/^/| /' conftest.$ac_ext >&5
  31497. ac_cv_lib_gen_pathfind=no
  31498. fi
  31499. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31500. conftest$ac_exeext conftest.$ac_ext
  31501. LIBS=$ac_check_lib_save_LIBS
  31502. fi
  31503. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  31504. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  31505. if test $ac_cv_lib_gen_pathfind = yes; then
  31506. cat >>confdefs.h <<_ACEOF
  31507. #define HAVE_LIBGEN 1
  31508. _ACEOF
  31509. LIBS="-lgen $LIBS"
  31510. fi
  31511. for ac_func in vprintf
  31512. do
  31513. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31514. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31515. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31516. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31517. echo $ECHO_N "(cached) $ECHO_C" >&6
  31518. else
  31519. cat >conftest.$ac_ext <<_ACEOF
  31520. /* confdefs.h. */
  31521. _ACEOF
  31522. cat confdefs.h >>conftest.$ac_ext
  31523. cat >>conftest.$ac_ext <<_ACEOF
  31524. /* end confdefs.h. */
  31525. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31526. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31527. #define $ac_func innocuous_$ac_func
  31528. /* System header to define __stub macros and hopefully few prototypes,
  31529. which can conflict with char $ac_func (); below.
  31530. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31531. <limits.h> exists even on freestanding compilers. */
  31532. #ifdef __STDC__
  31533. # include <limits.h>
  31534. #else
  31535. # include <assert.h>
  31536. #endif
  31537. #undef $ac_func
  31538. /* Override any GCC internal prototype to avoid an error.
  31539. Use char because int might match the return type of a GCC
  31540. builtin and then its argument prototype would still apply. */
  31541. #ifdef __cplusplus
  31542. extern "C"
  31543. #endif
  31544. char $ac_func ();
  31545. /* The GNU C library defines this for functions which it implements
  31546. to always fail with ENOSYS. Some functions are actually named
  31547. something starting with __ and the normal name is an alias. */
  31548. #if defined __stub_$ac_func || defined __stub___$ac_func
  31549. choke me
  31550. #endif
  31551. int
  31552. main ()
  31553. {
  31554. return $ac_func ();
  31555. ;
  31556. return 0;
  31557. }
  31558. _ACEOF
  31559. rm -f conftest.$ac_objext conftest$ac_exeext
  31560. if { (ac_try="$ac_link"
  31561. case "(($ac_try" in
  31562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31563. *) ac_try_echo=$ac_try;;
  31564. esac
  31565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31566. (eval "$ac_link") 2>conftest.er1
  31567. ac_status=$?
  31568. grep -v '^ *+' conftest.er1 >conftest.err
  31569. rm -f conftest.er1
  31570. cat conftest.err >&5
  31571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31572. (exit $ac_status); } && {
  31573. test -z "$ac_c_werror_flag" ||
  31574. test ! -s conftest.err
  31575. } && test -s conftest$ac_exeext &&
  31576. $as_test_x conftest$ac_exeext; then
  31577. eval "$as_ac_var=yes"
  31578. else
  31579. echo "$as_me: failed program was:" >&5
  31580. sed 's/^/| /' conftest.$ac_ext >&5
  31581. eval "$as_ac_var=no"
  31582. fi
  31583. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31584. conftest$ac_exeext conftest.$ac_ext
  31585. fi
  31586. ac_res=`eval echo '${'$as_ac_var'}'`
  31587. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31588. echo "${ECHO_T}$ac_res" >&6; }
  31589. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31590. cat >>confdefs.h <<_ACEOF
  31591. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31592. _ACEOF
  31593. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  31594. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  31595. if test "${ac_cv_func__doprnt+set}" = set; then
  31596. echo $ECHO_N "(cached) $ECHO_C" >&6
  31597. else
  31598. cat >conftest.$ac_ext <<_ACEOF
  31599. /* confdefs.h. */
  31600. _ACEOF
  31601. cat confdefs.h >>conftest.$ac_ext
  31602. cat >>conftest.$ac_ext <<_ACEOF
  31603. /* end confdefs.h. */
  31604. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  31605. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31606. #define _doprnt innocuous__doprnt
  31607. /* System header to define __stub macros and hopefully few prototypes,
  31608. which can conflict with char _doprnt (); below.
  31609. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31610. <limits.h> exists even on freestanding compilers. */
  31611. #ifdef __STDC__
  31612. # include <limits.h>
  31613. #else
  31614. # include <assert.h>
  31615. #endif
  31616. #undef _doprnt
  31617. /* Override any GCC internal prototype to avoid an error.
  31618. Use char because int might match the return type of a GCC
  31619. builtin and then its argument prototype would still apply. */
  31620. #ifdef __cplusplus
  31621. extern "C"
  31622. #endif
  31623. char _doprnt ();
  31624. /* The GNU C library defines this for functions which it implements
  31625. to always fail with ENOSYS. Some functions are actually named
  31626. something starting with __ and the normal name is an alias. */
  31627. #if defined __stub__doprnt || defined __stub____doprnt
  31628. choke me
  31629. #endif
  31630. int
  31631. main ()
  31632. {
  31633. return _doprnt ();
  31634. ;
  31635. return 0;
  31636. }
  31637. _ACEOF
  31638. rm -f conftest.$ac_objext conftest$ac_exeext
  31639. if { (ac_try="$ac_link"
  31640. case "(($ac_try" in
  31641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31642. *) ac_try_echo=$ac_try;;
  31643. esac
  31644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31645. (eval "$ac_link") 2>conftest.er1
  31646. ac_status=$?
  31647. grep -v '^ *+' conftest.er1 >conftest.err
  31648. rm -f conftest.er1
  31649. cat conftest.err >&5
  31650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31651. (exit $ac_status); } && {
  31652. test -z "$ac_c_werror_flag" ||
  31653. test ! -s conftest.err
  31654. } && test -s conftest$ac_exeext &&
  31655. $as_test_x conftest$ac_exeext; then
  31656. ac_cv_func__doprnt=yes
  31657. else
  31658. echo "$as_me: failed program was:" >&5
  31659. sed 's/^/| /' conftest.$ac_ext >&5
  31660. ac_cv_func__doprnt=no
  31661. fi
  31662. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31663. conftest$ac_exeext conftest.$ac_ext
  31664. fi
  31665. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  31666. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  31667. if test $ac_cv_func__doprnt = yes; then
  31668. cat >>confdefs.h <<\_ACEOF
  31669. #define HAVE_DOPRNT 1
  31670. _ACEOF
  31671. fi
  31672. fi
  31673. done
  31674. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  31675. do
  31676. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31677. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31678. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31679. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31680. echo $ECHO_N "(cached) $ECHO_C" >&6
  31681. else
  31682. cat >conftest.$ac_ext <<_ACEOF
  31683. /* confdefs.h. */
  31684. _ACEOF
  31685. cat confdefs.h >>conftest.$ac_ext
  31686. cat >>conftest.$ac_ext <<_ACEOF
  31687. /* end confdefs.h. */
  31688. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31689. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31690. #define $ac_func innocuous_$ac_func
  31691. /* System header to define __stub macros and hopefully few prototypes,
  31692. which can conflict with char $ac_func (); below.
  31693. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31694. <limits.h> exists even on freestanding compilers. */
  31695. #ifdef __STDC__
  31696. # include <limits.h>
  31697. #else
  31698. # include <assert.h>
  31699. #endif
  31700. #undef $ac_func
  31701. /* Override any GCC internal prototype to avoid an error.
  31702. Use char because int might match the return type of a GCC
  31703. builtin and then its argument prototype would still apply. */
  31704. #ifdef __cplusplus
  31705. extern "C"
  31706. #endif
  31707. char $ac_func ();
  31708. /* The GNU C library defines this for functions which it implements
  31709. to always fail with ENOSYS. Some functions are actually named
  31710. something starting with __ and the normal name is an alias. */
  31711. #if defined __stub_$ac_func || defined __stub___$ac_func
  31712. choke me
  31713. #endif
  31714. int
  31715. main ()
  31716. {
  31717. return $ac_func ();
  31718. ;
  31719. return 0;
  31720. }
  31721. _ACEOF
  31722. rm -f conftest.$ac_objext conftest$ac_exeext
  31723. if { (ac_try="$ac_link"
  31724. case "(($ac_try" in
  31725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31726. *) ac_try_echo=$ac_try;;
  31727. esac
  31728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31729. (eval "$ac_link") 2>conftest.er1
  31730. ac_status=$?
  31731. grep -v '^ *+' conftest.er1 >conftest.err
  31732. rm -f conftest.er1
  31733. cat conftest.err >&5
  31734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31735. (exit $ac_status); } && {
  31736. test -z "$ac_c_werror_flag" ||
  31737. test ! -s conftest.err
  31738. } && test -s conftest$ac_exeext &&
  31739. $as_test_x conftest$ac_exeext; then
  31740. eval "$as_ac_var=yes"
  31741. else
  31742. echo "$as_me: failed program was:" >&5
  31743. sed 's/^/| /' conftest.$ac_ext >&5
  31744. eval "$as_ac_var=no"
  31745. fi
  31746. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31747. conftest$ac_exeext conftest.$ac_ext
  31748. fi
  31749. ac_res=`eval echo '${'$as_ac_var'}'`
  31750. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31751. echo "${ECHO_T}$ac_res" >&6; }
  31752. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31753. cat >>confdefs.h <<_ACEOF
  31754. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31755. _ACEOF
  31756. fi
  31757. done
  31758. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  31759. fi
  31760. fi
  31761. # end of AC_DEFUN of LIBOPTS_CHECK
  31762. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/tcpedit/Makefile src/flow/Makefile src/defines.h test/Makefile test/config scripts/Makefile tcpreplay.spec"
  31763. cat >confcache <<\_ACEOF
  31764. # This file is a shell script that caches the results of configure
  31765. # tests run on this system so they can be shared between configure
  31766. # scripts and configure runs, see configure's option --config-cache.
  31767. # It is not useful on other systems. If it contains results you don't
  31768. # want to keep, you may remove or edit it.
  31769. #
  31770. # config.status only pays attention to the cache file if you give it
  31771. # the --recheck option to rerun configure.
  31772. #
  31773. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  31774. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  31775. # following values.
  31776. _ACEOF
  31777. # The following way of writing the cache mishandles newlines in values,
  31778. # but we know of no workaround that is simple, portable, and efficient.
  31779. # So, we kill variables containing newlines.
  31780. # Ultrix sh set writes to stderr and can't be redirected directly,
  31781. # and sets the high bit in the cache file unless we assign to the vars.
  31782. (
  31783. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  31784. eval ac_val=\$$ac_var
  31785. case $ac_val in #(
  31786. *${as_nl}*)
  31787. case $ac_var in #(
  31788. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  31789. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  31790. esac
  31791. case $ac_var in #(
  31792. _ | IFS | as_nl) ;; #(
  31793. *) $as_unset $ac_var ;;
  31794. esac ;;
  31795. esac
  31796. done
  31797. (set) 2>&1 |
  31798. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  31799. *${as_nl}ac_space=\ *)
  31800. # `set' does not quote correctly, so add quotes (double-quote
  31801. # substitution turns \\\\ into \\, and sed turns \\ into \).
  31802. sed -n \
  31803. "s/'/'\\\\''/g;
  31804. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  31805. ;; #(
  31806. *)
  31807. # `set' quotes correctly as required by POSIX, so do not add quotes.
  31808. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  31809. ;;
  31810. esac |
  31811. sort
  31812. ) |
  31813. sed '
  31814. /^ac_cv_env_/b end
  31815. t clear
  31816. :clear
  31817. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  31818. t end
  31819. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  31820. :end' >>confcache
  31821. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  31822. if test -w "$cache_file"; then
  31823. test "x$cache_file" != "x/dev/null" &&
  31824. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  31825. echo "$as_me: updating cache $cache_file" >&6;}
  31826. cat confcache >$cache_file
  31827. else
  31828. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  31829. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  31830. fi
  31831. fi
  31832. rm -f confcache
  31833. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  31834. # Let make expand exec_prefix.
  31835. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  31836. DEFS=-DHAVE_CONFIG_H
  31837. ac_libobjs=
  31838. ac_ltlibobjs=
  31839. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  31840. # 1. Remove the extension, and $U if already installed.
  31841. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  31842. ac_i=`echo "$ac_i" | sed "$ac_script"`
  31843. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  31844. # will be set to the directory where LIBOBJS objects are built.
  31845. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  31846. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  31847. done
  31848. LIBOBJS=$ac_libobjs
  31849. LTLIBOBJS=$ac_ltlibobjs
  31850. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  31851. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  31852. Usually this means the macro was only invoked conditionally." >&5
  31853. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  31854. Usually this means the macro was only invoked conditionally." >&2;}
  31855. { (exit 1); exit 1; }; }
  31856. fi
  31857. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  31858. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  31859. Usually this means the macro was only invoked conditionally." >&5
  31860. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  31861. Usually this means the macro was only invoked conditionally." >&2;}
  31862. { (exit 1); exit 1; }; }
  31863. fi
  31864. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31865. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31866. Usually this means the macro was only invoked conditionally." >&5
  31867. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31868. Usually this means the macro was only invoked conditionally." >&2;}
  31869. { (exit 1); exit 1; }; }
  31870. fi
  31871. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31872. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31873. Usually this means the macro was only invoked conditionally." >&5
  31874. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31875. Usually this means the macro was only invoked conditionally." >&2;}
  31876. { (exit 1); exit 1; }; }
  31877. fi
  31878. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31879. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31880. Usually this means the macro was only invoked conditionally." >&5
  31881. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31882. Usually this means the macro was only invoked conditionally." >&2;}
  31883. { (exit 1); exit 1; }; }
  31884. fi
  31885. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31886. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31887. Usually this means the macro was only invoked conditionally." >&5
  31888. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31889. Usually this means the macro was only invoked conditionally." >&2;}
  31890. { (exit 1); exit 1; }; }
  31891. fi
  31892. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  31893. { { echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31894. Usually this means the macro was only invoked conditionally." >&5
  31895. echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31896. Usually this means the macro was only invoked conditionally." >&2;}
  31897. { (exit 1); exit 1; }; }
  31898. fi
  31899. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  31900. { { echo "$as_me:$LINENO: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31901. Usually this means the macro was only invoked conditionally." >&5
  31902. echo "$as_me: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31903. Usually this means the macro was only invoked conditionally." >&2;}
  31904. { (exit 1); exit 1; }; }
  31905. fi
  31906. if test -z "${ENABLE_TCPREPLAY_EDIT_TRUE}" && test -z "${ENABLE_TCPREPLAY_EDIT_FALSE}"; then
  31907. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31908. Usually this means the macro was only invoked conditionally." >&5
  31909. echo "$as_me: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31910. Usually this means the macro was only invoked conditionally." >&2;}
  31911. { (exit 1); exit 1; }; }
  31912. fi
  31913. if test -z "${ENABLE_FLOWREPLAY_TRUE}" && test -z "${ENABLE_FLOWREPLAY_FALSE}"; then
  31914. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FLOWREPLAY\" was never defined.
  31915. Usually this means the macro was only invoked conditionally." >&5
  31916. echo "$as_me: error: conditional \"ENABLE_FLOWREPLAY\" was never defined.
  31917. Usually this means the macro was only invoked conditionally." >&2;}
  31918. { (exit 1); exit 1; }; }
  31919. fi
  31920. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  31921. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31922. Usually this means the macro was only invoked conditionally." >&5
  31923. echo "$as_me: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31924. Usually this means the macro was only invoked conditionally." >&2;}
  31925. { (exit 1); exit 1; }; }
  31926. fi
  31927. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  31928. { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31929. Usually this means the macro was only invoked conditionally." >&5
  31930. echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31931. Usually this means the macro was only invoked conditionally." >&2;}
  31932. { (exit 1); exit 1; }; }
  31933. fi
  31934. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  31935. { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  31936. Usually this means the macro was only invoked conditionally." >&5
  31937. echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  31938. Usually this means the macro was only invoked conditionally." >&2;}
  31939. { (exit 1); exit 1; }; }
  31940. fi
  31941. : ${CONFIG_STATUS=./config.status}
  31942. ac_clean_files_save=$ac_clean_files
  31943. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  31944. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  31945. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  31946. cat >$CONFIG_STATUS <<_ACEOF
  31947. #! $SHELL
  31948. # Generated by $as_me.
  31949. # Run this file to recreate the current configuration.
  31950. # Compiler output produced by configure, useful for debugging
  31951. # configure, is in config.log if it exists.
  31952. debug=false
  31953. ac_cs_recheck=false
  31954. ac_cs_silent=false
  31955. SHELL=\${CONFIG_SHELL-$SHELL}
  31956. _ACEOF
  31957. cat >>$CONFIG_STATUS <<\_ACEOF
  31958. ## --------------------- ##
  31959. ## M4sh Initialization. ##
  31960. ## --------------------- ##
  31961. # Be more Bourne compatible
  31962. DUALCASE=1; export DUALCASE # for MKS sh
  31963. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  31964. emulate sh
  31965. NULLCMD=:
  31966. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  31967. # is contrary to our usage. Disable this feature.
  31968. alias -g '${1+"$@"}'='"$@"'
  31969. setopt NO_GLOB_SUBST
  31970. else
  31971. case `(set -o) 2>/dev/null` in
  31972. *posix*) set -o posix ;;
  31973. esac
  31974. fi
  31975. # PATH needs CR
  31976. # Avoid depending upon Character Ranges.
  31977. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31978. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31979. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31980. as_cr_digits='0123456789'
  31981. as_cr_alnum=$as_cr_Letters$as_cr_digits
  31982. # The user is always right.
  31983. if test "${PATH_SEPARATOR+set}" != set; then
  31984. echo "#! /bin/sh" >conf$$.sh
  31985. echo "exit 0" >>conf$$.sh
  31986. chmod +x conf$$.sh
  31987. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  31988. PATH_SEPARATOR=';'
  31989. else
  31990. PATH_SEPARATOR=:
  31991. fi
  31992. rm -f conf$$.sh
  31993. fi
  31994. # Support unset when possible.
  31995. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  31996. as_unset=unset
  31997. else
  31998. as_unset=false
  31999. fi
  32000. # IFS
  32001. # We need space, tab and new line, in precisely that order. Quoting is
  32002. # there to prevent editors from complaining about space-tab.
  32003. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  32004. # splitting by setting IFS to empty value.)
  32005. as_nl='
  32006. '
  32007. IFS=" "" $as_nl"
  32008. # Find who we are. Look in the path if we contain no directory separator.
  32009. case $0 in
  32010. *[\\/]* ) as_myself=$0 ;;
  32011. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32012. for as_dir in $PATH
  32013. do
  32014. IFS=$as_save_IFS
  32015. test -z "$as_dir" && as_dir=.
  32016. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  32017. done
  32018. IFS=$as_save_IFS
  32019. ;;
  32020. esac
  32021. # We did not find ourselves, most probably we were run as `sh COMMAND'
  32022. # in which case we are not to be found in the path.
  32023. if test "x$as_myself" = x; then
  32024. as_myself=$0
  32025. fi
  32026. if test ! -f "$as_myself"; then
  32027. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  32028. { (exit 1); exit 1; }
  32029. fi
  32030. # Work around bugs in pre-3.0 UWIN ksh.
  32031. for as_var in ENV MAIL MAILPATH
  32032. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  32033. done
  32034. PS1='$ '
  32035. PS2='> '
  32036. PS4='+ '
  32037. # NLS nuisances.
  32038. for as_var in \
  32039. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  32040. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  32041. LC_TELEPHONE LC_TIME
  32042. do
  32043. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  32044. eval $as_var=C; export $as_var
  32045. else
  32046. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  32047. fi
  32048. done
  32049. # Required to use basename.
  32050. if expr a : '\(a\)' >/dev/null 2>&1 &&
  32051. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  32052. as_expr=expr
  32053. else
  32054. as_expr=false
  32055. fi
  32056. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  32057. as_basename=basename
  32058. else
  32059. as_basename=false
  32060. fi
  32061. # Name of the executable.
  32062. as_me=`$as_basename -- "$0" ||
  32063. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  32064. X"$0" : 'X\(//\)$' \| \
  32065. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  32066. echo X/"$0" |
  32067. sed '/^.*\/\([^/][^/]*\)\/*$/{
  32068. s//\1/
  32069. q
  32070. }
  32071. /^X\/\(\/\/\)$/{
  32072. s//\1/
  32073. q
  32074. }
  32075. /^X\/\(\/\).*/{
  32076. s//\1/
  32077. q
  32078. }
  32079. s/.*/./; q'`
  32080. # CDPATH.
  32081. $as_unset CDPATH
  32082. as_lineno_1=$LINENO
  32083. as_lineno_2=$LINENO
  32084. test "x$as_lineno_1" != "x$as_lineno_2" &&
  32085. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  32086. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  32087. # uniformly replaced by the line number. The first 'sed' inserts a
  32088. # line-number line after each line using $LINENO; the second 'sed'
  32089. # does the real work. The second script uses 'N' to pair each
  32090. # line-number line with the line containing $LINENO, and appends
  32091. # trailing '-' during substitution so that $LINENO is not a special
  32092. # case at line end.
  32093. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  32094. # scripts with optimization help from Paolo Bonzini. Blame Lee
  32095. # E. McMahon (1931-1989) for sed's syntax. :-)
  32096. sed -n '
  32097. p
  32098. /[$]LINENO/=
  32099. ' <$as_myself |
  32100. sed '
  32101. s/[$]LINENO.*/&-/
  32102. t lineno
  32103. b
  32104. :lineno
  32105. N
  32106. :loop
  32107. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  32108. t loop
  32109. s/-\n.*//
  32110. ' >$as_me.lineno &&
  32111. chmod +x "$as_me.lineno" ||
  32112. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  32113. { (exit 1); exit 1; }; }
  32114. # Don't try to exec as it changes $[0], causing all sort of problems
  32115. # (the dirname of $[0] is not the place where we might find the
  32116. # original and so on. Autoconf is especially sensitive to this).
  32117. . "./$as_me.lineno"
  32118. # Exit status is that of the last command.
  32119. exit
  32120. }
  32121. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  32122. as_dirname=dirname
  32123. else
  32124. as_dirname=false
  32125. fi
  32126. ECHO_C= ECHO_N= ECHO_T=
  32127. case `echo -n x` in
  32128. -n*)
  32129. case `echo 'x\c'` in
  32130. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  32131. *) ECHO_C='\c';;
  32132. esac;;
  32133. *)
  32134. ECHO_N='-n';;
  32135. esac
  32136. if expr a : '\(a\)' >/dev/null 2>&1 &&
  32137. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  32138. as_expr=expr
  32139. else
  32140. as_expr=false
  32141. fi
  32142. rm -f conf$$ conf$$.exe conf$$.file
  32143. if test -d conf$$.dir; then
  32144. rm -f conf$$.dir/conf$$.file
  32145. else
  32146. rm -f conf$$.dir
  32147. mkdir conf$$.dir
  32148. fi
  32149. echo >conf$$.file
  32150. if ln -s conf$$.file conf$$ 2>/dev/null; then
  32151. as_ln_s='ln -s'
  32152. # ... but there are two gotchas:
  32153. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  32154. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  32155. # In both cases, we have to default to `cp -p'.
  32156. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  32157. as_ln_s='cp -p'
  32158. elif ln conf$$.file conf$$ 2>/dev/null; then
  32159. as_ln_s=ln
  32160. else
  32161. as_ln_s='cp -p'
  32162. fi
  32163. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  32164. rmdir conf$$.dir 2>/dev/null
  32165. if mkdir -p . 2>/dev/null; then
  32166. as_mkdir_p=:
  32167. else
  32168. test -d ./-p && rmdir ./-p
  32169. as_mkdir_p=false
  32170. fi
  32171. if test -x / >/dev/null 2>&1; then
  32172. as_test_x='test -x'
  32173. else
  32174. if ls -dL / >/dev/null 2>&1; then
  32175. as_ls_L_option=L
  32176. else
  32177. as_ls_L_option=
  32178. fi
  32179. as_test_x='
  32180. eval sh -c '\''
  32181. if test -d "$1"; then
  32182. test -d "$1/.";
  32183. else
  32184. case $1 in
  32185. -*)set "./$1";;
  32186. esac;
  32187. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  32188. ???[sx]*):;;*)false;;esac;fi
  32189. '\'' sh
  32190. '
  32191. fi
  32192. as_executable_p=$as_test_x
  32193. # Sed expression to map a string onto a valid CPP name.
  32194. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  32195. # Sed expression to map a string onto a valid variable name.
  32196. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  32197. exec 6>&1
  32198. # Save the log message, to keep $[0] and so on meaningful, and to
  32199. # report actual input values of CONFIG_FILES etc. instead of their
  32200. # values after options handling.
  32201. ac_log="
  32202. This file was extended by $as_me, which was
  32203. generated by GNU Autoconf 2.61. Invocation command line was
  32204. CONFIG_FILES = $CONFIG_FILES
  32205. CONFIG_HEADERS = $CONFIG_HEADERS
  32206. CONFIG_LINKS = $CONFIG_LINKS
  32207. CONFIG_COMMANDS = $CONFIG_COMMANDS
  32208. $ $0 $@
  32209. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  32210. "
  32211. _ACEOF
  32212. cat >>$CONFIG_STATUS <<_ACEOF
  32213. # Files that config.status was made for.
  32214. config_files="$ac_config_files"
  32215. config_headers="$ac_config_headers"
  32216. config_commands="$ac_config_commands"
  32217. _ACEOF
  32218. cat >>$CONFIG_STATUS <<\_ACEOF
  32219. ac_cs_usage="\
  32220. \`$as_me' instantiates files from templates according to the
  32221. current configuration.
  32222. Usage: $0 [OPTIONS] [FILE]...
  32223. -h, --help print this help, then exit
  32224. -V, --version print version number and configuration settings, then exit
  32225. -q, --quiet do not print progress messages
  32226. -d, --debug don't remove temporary files
  32227. --recheck update $as_me by reconfiguring in the same conditions
  32228. --file=FILE[:TEMPLATE]
  32229. instantiate the configuration file FILE
  32230. --header=FILE[:TEMPLATE]
  32231. instantiate the configuration header FILE
  32232. Configuration files:
  32233. $config_files
  32234. Configuration headers:
  32235. $config_headers
  32236. Configuration commands:
  32237. $config_commands
  32238. Report bugs to <bug-autoconf@gnu.org>."
  32239. _ACEOF
  32240. cat >>$CONFIG_STATUS <<_ACEOF
  32241. ac_cs_version="\\
  32242. config.status
  32243. configured by $0, generated by GNU Autoconf 2.61,
  32244. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  32245. Copyright (C) 2006 Free Software Foundation, Inc.
  32246. This config.status script is free software; the Free Software Foundation
  32247. gives unlimited permission to copy, distribute and modify it."
  32248. ac_pwd='$ac_pwd'
  32249. srcdir='$srcdir'
  32250. INSTALL='$INSTALL'
  32251. MKDIR_P='$MKDIR_P'
  32252. _ACEOF
  32253. cat >>$CONFIG_STATUS <<\_ACEOF
  32254. # If no file are specified by the user, then we need to provide default
  32255. # value. By we need to know if files were specified by the user.
  32256. ac_need_defaults=:
  32257. while test $# != 0
  32258. do
  32259. case $1 in
  32260. --*=*)
  32261. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  32262. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  32263. ac_shift=:
  32264. ;;
  32265. *)
  32266. ac_option=$1
  32267. ac_optarg=$2
  32268. ac_shift=shift
  32269. ;;
  32270. esac
  32271. case $ac_option in
  32272. # Handling of the options.
  32273. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  32274. ac_cs_recheck=: ;;
  32275. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  32276. echo "$ac_cs_version"; exit ;;
  32277. --debug | --debu | --deb | --de | --d | -d )
  32278. debug=: ;;
  32279. --file | --fil | --fi | --f )
  32280. $ac_shift
  32281. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  32282. ac_need_defaults=false;;
  32283. --header | --heade | --head | --hea )
  32284. $ac_shift
  32285. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  32286. ac_need_defaults=false;;
  32287. --he | --h)
  32288. # Conflict between --help and --header
  32289. { echo "$as_me: error: ambiguous option: $1
  32290. Try \`$0 --help' for more information." >&2
  32291. { (exit 1); exit 1; }; };;
  32292. --help | --hel | -h )
  32293. echo "$ac_cs_usage"; exit ;;
  32294. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  32295. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  32296. ac_cs_silent=: ;;
  32297. # This is an error.
  32298. -*) { echo "$as_me: error: unrecognized option: $1
  32299. Try \`$0 --help' for more information." >&2
  32300. { (exit 1); exit 1; }; } ;;
  32301. *) ac_config_targets="$ac_config_targets $1"
  32302. ac_need_defaults=false ;;
  32303. esac
  32304. shift
  32305. done
  32306. ac_configure_extra_args=
  32307. if $ac_cs_silent; then
  32308. exec 6>/dev/null
  32309. ac_configure_extra_args="$ac_configure_extra_args --silent"
  32310. fi
  32311. _ACEOF
  32312. cat >>$CONFIG_STATUS <<_ACEOF
  32313. if \$ac_cs_recheck; then
  32314. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  32315. CONFIG_SHELL=$SHELL
  32316. export CONFIG_SHELL
  32317. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  32318. fi
  32319. _ACEOF
  32320. cat >>$CONFIG_STATUS <<\_ACEOF
  32321. exec 5>>config.log
  32322. {
  32323. echo
  32324. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  32325. ## Running $as_me. ##
  32326. _ASBOX
  32327. echo "$ac_log"
  32328. } >&5
  32329. _ACEOF
  32330. cat >>$CONFIG_STATUS <<_ACEOF
  32331. #
  32332. # INIT-COMMANDS
  32333. #
  32334. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  32335. _ACEOF
  32336. cat >>$CONFIG_STATUS <<\_ACEOF
  32337. # Handling of arguments.
  32338. for ac_config_target in $ac_config_targets
  32339. do
  32340. case $ac_config_target in
  32341. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  32342. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  32343. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  32344. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  32345. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  32346. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  32347. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  32348. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  32349. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  32350. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  32351. "src/flow/Makefile") CONFIG_FILES="$CONFIG_FILES src/flow/Makefile" ;;
  32352. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  32353. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  32354. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  32355. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  32356. "tcpreplay.spec") CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  32357. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  32358. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  32359. { (exit 1); exit 1; }; };;
  32360. esac
  32361. done
  32362. # If the user did not use the arguments to specify the items to instantiate,
  32363. # then the envvar interface is used. Set only those that are not.
  32364. # We use the long form for the default assignment because of an extremely
  32365. # bizarre bug on SunOS 4.1.3.
  32366. if $ac_need_defaults; then
  32367. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  32368. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  32369. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  32370. fi
  32371. # Have a temporary directory for convenience. Make it in the build tree
  32372. # simply because there is no reason against having it here, and in addition,
  32373. # creating and moving files from /tmp can sometimes cause problems.
  32374. # Hook for its removal unless debugging.
  32375. # Note that there is a small window in which the directory will not be cleaned:
  32376. # after its creation but before its name has been assigned to `$tmp'.
  32377. $debug ||
  32378. {
  32379. tmp=
  32380. trap 'exit_status=$?
  32381. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  32382. ' 0
  32383. trap '{ (exit 1); exit 1; }' 1 2 13 15
  32384. }
  32385. # Create a (secure) tmp directory for tmp files.
  32386. {
  32387. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  32388. test -n "$tmp" && test -d "$tmp"
  32389. } ||
  32390. {
  32391. tmp=./conf$$-$RANDOM
  32392. (umask 077 && mkdir "$tmp")
  32393. } ||
  32394. {
  32395. echo "$me: cannot create a temporary directory in ." >&2
  32396. { (exit 1); exit 1; }
  32397. }
  32398. #
  32399. # Set up the sed scripts for CONFIG_FILES section.
  32400. #
  32401. # No need to generate the scripts if there are no CONFIG_FILES.
  32402. # This happens for instance when ./config.status config.h
  32403. if test -n "$CONFIG_FILES"; then
  32404. _ACEOF
  32405. ac_delim='%!_!# '
  32406. for ac_last_try in false false false false false :; do
  32407. cat >conf$$subs.sed <<_ACEOF
  32408. SHELL!$SHELL$ac_delim
  32409. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  32410. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  32411. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  32412. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  32413. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  32414. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  32415. exec_prefix!$exec_prefix$ac_delim
  32416. prefix!$prefix$ac_delim
  32417. program_transform_name!$program_transform_name$ac_delim
  32418. bindir!$bindir$ac_delim
  32419. sbindir!$sbindir$ac_delim
  32420. libexecdir!$libexecdir$ac_delim
  32421. datarootdir!$datarootdir$ac_delim
  32422. datadir!$datadir$ac_delim
  32423. sysconfdir!$sysconfdir$ac_delim
  32424. sharedstatedir!$sharedstatedir$ac_delim
  32425. localstatedir!$localstatedir$ac_delim
  32426. includedir!$includedir$ac_delim
  32427. oldincludedir!$oldincludedir$ac_delim
  32428. docdir!$docdir$ac_delim
  32429. infodir!$infodir$ac_delim
  32430. htmldir!$htmldir$ac_delim
  32431. dvidir!$dvidir$ac_delim
  32432. pdfdir!$pdfdir$ac_delim
  32433. psdir!$psdir$ac_delim
  32434. libdir!$libdir$ac_delim
  32435. localedir!$localedir$ac_delim
  32436. mandir!$mandir$ac_delim
  32437. DEFS!$DEFS$ac_delim
  32438. ECHO_C!$ECHO_C$ac_delim
  32439. ECHO_N!$ECHO_N$ac_delim
  32440. ECHO_T!$ECHO_T$ac_delim
  32441. LIBS!$LIBS$ac_delim
  32442. build_alias!$build_alias$ac_delim
  32443. host_alias!$host_alias$ac_delim
  32444. target_alias!$target_alias$ac_delim
  32445. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  32446. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  32447. MAINT!$MAINT$ac_delim
  32448. TCPREPLAY_VERSION!$TCPREPLAY_VERSION$ac_delim
  32449. TCPREPLAY_RELEASE!$TCPREPLAY_RELEASE$ac_delim
  32450. build!$build$ac_delim
  32451. build_cpu!$build_cpu$ac_delim
  32452. build_vendor!$build_vendor$ac_delim
  32453. build_os!$build_os$ac_delim
  32454. host!$host$ac_delim
  32455. host_cpu!$host_cpu$ac_delim
  32456. host_vendor!$host_vendor$ac_delim
  32457. host_os!$host_os$ac_delim
  32458. target!$target$ac_delim
  32459. target_cpu!$target_cpu$ac_delim
  32460. target_vendor!$target_vendor$ac_delim
  32461. target_os!$target_os$ac_delim
  32462. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  32463. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  32464. INSTALL_DATA!$INSTALL_DATA$ac_delim
  32465. am__isrc!$am__isrc$ac_delim
  32466. CYGPATH_W!$CYGPATH_W$ac_delim
  32467. PACKAGE!$PACKAGE$ac_delim
  32468. VERSION!$VERSION$ac_delim
  32469. ACLOCAL!$ACLOCAL$ac_delim
  32470. AUTOCONF!$AUTOCONF$ac_delim
  32471. AUTOMAKE!$AUTOMAKE$ac_delim
  32472. AUTOHEADER!$AUTOHEADER$ac_delim
  32473. MAKEINFO!$MAKEINFO$ac_delim
  32474. install_sh!$install_sh$ac_delim
  32475. STRIP!$STRIP$ac_delim
  32476. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  32477. mkdir_p!$mkdir_p$ac_delim
  32478. AWK!$AWK$ac_delim
  32479. SET_MAKE!$SET_MAKE$ac_delim
  32480. am__leading_dot!$am__leading_dot$ac_delim
  32481. AMTAR!$AMTAR$ac_delim
  32482. am__tar!$am__tar$ac_delim
  32483. am__untar!$am__untar$ac_delim
  32484. CC!$CC$ac_delim
  32485. CFLAGS!$CFLAGS$ac_delim
  32486. LDFLAGS!$LDFLAGS$ac_delim
  32487. CPPFLAGS!$CPPFLAGS$ac_delim
  32488. ac_ct_CC!$ac_ct_CC$ac_delim
  32489. EXEEXT!$EXEEXT$ac_delim
  32490. OBJEXT!$OBJEXT$ac_delim
  32491. DEPDIR!$DEPDIR$ac_delim
  32492. am__include!$am__include$ac_delim
  32493. am__quote!$am__quote$ac_delim
  32494. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  32495. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  32496. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  32497. CCDEPMODE!$CCDEPMODE$ac_delim
  32498. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  32499. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  32500. SED!$SED$ac_delim
  32501. GREP!$GREP$ac_delim
  32502. EGREP!$EGREP$ac_delim
  32503. LN_S!$LN_S$ac_delim
  32504. ECHO!$ECHO$ac_delim
  32505. _ACEOF
  32506. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  32507. break
  32508. elif $ac_last_try; then
  32509. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32510. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32511. { (exit 1); exit 1; }; }
  32512. else
  32513. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32514. fi
  32515. done
  32516. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32517. if test -n "$ac_eof"; then
  32518. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32519. ac_eof=`expr $ac_eof + 1`
  32520. fi
  32521. cat >>$CONFIG_STATUS <<_ACEOF
  32522. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  32523. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32524. _ACEOF
  32525. sed '
  32526. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32527. s/^/s,@/; s/!/@,|#_!!_#|/
  32528. :n
  32529. t n
  32530. s/'"$ac_delim"'$/,g/; t
  32531. s/$/\\/; p
  32532. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32533. ' >>$CONFIG_STATUS <conf$$subs.sed
  32534. rm -f conf$$subs.sed
  32535. cat >>$CONFIG_STATUS <<_ACEOF
  32536. CEOF$ac_eof
  32537. _ACEOF
  32538. ac_delim='%!_!# '
  32539. for ac_last_try in false false false false false :; do
  32540. cat >conf$$subs.sed <<_ACEOF
  32541. AR!$AR$ac_delim
  32542. RANLIB!$RANLIB$ac_delim
  32543. CPP!$CPP$ac_delim
  32544. CXX!$CXX$ac_delim
  32545. CXXFLAGS!$CXXFLAGS$ac_delim
  32546. ac_ct_CXX!$ac_ct_CXX$ac_delim
  32547. CXXDEPMODE!$CXXDEPMODE$ac_delim
  32548. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  32549. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  32550. CXXCPP!$CXXCPP$ac_delim
  32551. F77!$F77$ac_delim
  32552. FFLAGS!$FFLAGS$ac_delim
  32553. ac_ct_F77!$ac_ct_F77$ac_delim
  32554. LIBTOOL!$LIBTOOL$ac_delim
  32555. PRINTF!$PRINTF$ac_delim
  32556. AUTOGEN!$AUTOGEN$ac_delim
  32557. LIBOBJS!$LIBOBJS$ac_delim
  32558. SYSTEM_STRLCPY_TRUE!$SYSTEM_STRLCPY_TRUE$ac_delim
  32559. SYSTEM_STRLCPY_FALSE!$SYSTEM_STRLCPY_FALSE$ac_delim
  32560. WORDS_BIGENDIAN_TRUE!$WORDS_BIGENDIAN_TRUE$ac_delim
  32561. WORDS_BIGENDIAN_FALSE!$WORDS_BIGENDIAN_FALSE$ac_delim
  32562. debug_flag!$debug_flag$ac_delim
  32563. ENABLE_TCPREPLAY_EDIT_TRUE!$ENABLE_TCPREPLAY_EDIT_TRUE$ac_delim
  32564. ENABLE_TCPREPLAY_EDIT_FALSE!$ENABLE_TCPREPLAY_EDIT_FALSE$ac_delim
  32565. ENABLE_FLOWREPLAY_TRUE!$ENABLE_FLOWREPLAY_TRUE$ac_delim
  32566. ENABLE_FLOWREPLAY_FALSE!$ENABLE_FLOWREPLAY_FALSE$ac_delim
  32567. LNETINC!$LNETINC$ac_delim
  32568. LNETLIB!$LNETLIB$ac_delim
  32569. LPCAPINC!$LPCAPINC$ac_delim
  32570. LPCAPLIB!$LPCAPLIB$ac_delim
  32571. PCAP_BPF_H_FILE!$PCAP_BPF_H_FILE$ac_delim
  32572. pcncfg!$pcncfg$ac_delim
  32573. LNAVLIB!$LNAVLIB$ac_delim
  32574. LNAV_CFLAGS!$LNAV_CFLAGS$ac_delim
  32575. tcpdump_path!$tcpdump_path$ac_delim
  32576. ENABLE_TCPDUMP_TRUE!$ENABLE_TCPDUMP_TRUE$ac_delim
  32577. ENABLE_TCPDUMP_FALSE!$ENABLE_TCPDUMP_FALSE$ac_delim
  32578. nic1!$nic1$ac_delim
  32579. nic2!$nic2$ac_delim
  32580. LIBOPTS_DIR!$LIBOPTS_DIR$ac_delim
  32581. INSTALL_LIBOPTS_TRUE!$INSTALL_LIBOPTS_TRUE$ac_delim
  32582. INSTALL_LIBOPTS_FALSE!$INSTALL_LIBOPTS_FALSE$ac_delim
  32583. NEED_LIBOPTS_TRUE!$NEED_LIBOPTS_TRUE$ac_delim
  32584. NEED_LIBOPTS_FALSE!$NEED_LIBOPTS_FALSE$ac_delim
  32585. LIBOPTS_LDADD!$LIBOPTS_LDADD$ac_delim
  32586. LIBOPTS_CFLAGS!$LIBOPTS_CFLAGS$ac_delim
  32587. LTLIBOBJS!$LTLIBOBJS$ac_delim
  32588. _ACEOF
  32589. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
  32590. break
  32591. elif $ac_last_try; then
  32592. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32593. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32594. { (exit 1); exit 1; }; }
  32595. else
  32596. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32597. fi
  32598. done
  32599. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32600. if test -n "$ac_eof"; then
  32601. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32602. ac_eof=`expr $ac_eof + 1`
  32603. fi
  32604. cat >>$CONFIG_STATUS <<_ACEOF
  32605. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  32606. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  32607. _ACEOF
  32608. sed '
  32609. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32610. s/^/s,@/; s/!/@,|#_!!_#|/
  32611. :n
  32612. t n
  32613. s/'"$ac_delim"'$/,g/; t
  32614. s/$/\\/; p
  32615. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32616. ' >>$CONFIG_STATUS <conf$$subs.sed
  32617. rm -f conf$$subs.sed
  32618. cat >>$CONFIG_STATUS <<_ACEOF
  32619. :end
  32620. s/|#_!!_#|//g
  32621. CEOF$ac_eof
  32622. _ACEOF
  32623. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  32624. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  32625. # trailing colons and then remove the whole line if VPATH becomes empty
  32626. # (actually we leave an empty line to preserve line numbers).
  32627. if test "x$srcdir" = x.; then
  32628. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  32629. s/:*\$(srcdir):*/:/
  32630. s/:*\${srcdir}:*/:/
  32631. s/:*@srcdir@:*/:/
  32632. s/^\([^=]*=[ ]*\):*/\1/
  32633. s/:*$//
  32634. s/^[^=]*=[ ]*$//
  32635. }'
  32636. fi
  32637. cat >>$CONFIG_STATUS <<\_ACEOF
  32638. fi # test -n "$CONFIG_FILES"
  32639. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  32640. do
  32641. case $ac_tag in
  32642. :[FHLC]) ac_mode=$ac_tag; continue;;
  32643. esac
  32644. case $ac_mode$ac_tag in
  32645. :[FHL]*:*);;
  32646. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  32647. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  32648. { (exit 1); exit 1; }; };;
  32649. :[FH]-) ac_tag=-:-;;
  32650. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  32651. esac
  32652. ac_save_IFS=$IFS
  32653. IFS=:
  32654. set x $ac_tag
  32655. IFS=$ac_save_IFS
  32656. shift
  32657. ac_file=$1
  32658. shift
  32659. case $ac_mode in
  32660. :L) ac_source=$1;;
  32661. :[FH])
  32662. ac_file_inputs=
  32663. for ac_f
  32664. do
  32665. case $ac_f in
  32666. -) ac_f="$tmp/stdin";;
  32667. *) # Look for the file first in the build tree, then in the source tree
  32668. # (if the path is not absolute). The absolute path cannot be DOS-style,
  32669. # because $ac_f cannot contain `:'.
  32670. test -f "$ac_f" ||
  32671. case $ac_f in
  32672. [\\/$]*) false;;
  32673. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  32674. esac ||
  32675. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  32676. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  32677. { (exit 1); exit 1; }; };;
  32678. esac
  32679. ac_file_inputs="$ac_file_inputs $ac_f"
  32680. done
  32681. # Let's still pretend it is `configure' which instantiates (i.e., don't
  32682. # use $as_me), people would be surprised to read:
  32683. # /* config.h. Generated by config.status. */
  32684. configure_input="Generated from "`IFS=:
  32685. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  32686. if test x"$ac_file" != x-; then
  32687. configure_input="$ac_file. $configure_input"
  32688. { echo "$as_me:$LINENO: creating $ac_file" >&5
  32689. echo "$as_me: creating $ac_file" >&6;}
  32690. fi
  32691. case $ac_tag in
  32692. *:-:* | *:-) cat >"$tmp/stdin";;
  32693. esac
  32694. ;;
  32695. esac
  32696. ac_dir=`$as_dirname -- "$ac_file" ||
  32697. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32698. X"$ac_file" : 'X\(//\)[^/]' \| \
  32699. X"$ac_file" : 'X\(//\)$' \| \
  32700. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  32701. echo X"$ac_file" |
  32702. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32703. s//\1/
  32704. q
  32705. }
  32706. /^X\(\/\/\)[^/].*/{
  32707. s//\1/
  32708. q
  32709. }
  32710. /^X\(\/\/\)$/{
  32711. s//\1/
  32712. q
  32713. }
  32714. /^X\(\/\).*/{
  32715. s//\1/
  32716. q
  32717. }
  32718. s/.*/./; q'`
  32719. { as_dir="$ac_dir"
  32720. case $as_dir in #(
  32721. -*) as_dir=./$as_dir;;
  32722. esac
  32723. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32724. as_dirs=
  32725. while :; do
  32726. case $as_dir in #(
  32727. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  32728. *) as_qdir=$as_dir;;
  32729. esac
  32730. as_dirs="'$as_qdir' $as_dirs"
  32731. as_dir=`$as_dirname -- "$as_dir" ||
  32732. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32733. X"$as_dir" : 'X\(//\)[^/]' \| \
  32734. X"$as_dir" : 'X\(//\)$' \| \
  32735. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32736. echo X"$as_dir" |
  32737. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32738. s//\1/
  32739. q
  32740. }
  32741. /^X\(\/\/\)[^/].*/{
  32742. s//\1/
  32743. q
  32744. }
  32745. /^X\(\/\/\)$/{
  32746. s//\1/
  32747. q
  32748. }
  32749. /^X\(\/\).*/{
  32750. s//\1/
  32751. q
  32752. }
  32753. s/.*/./; q'`
  32754. test -d "$as_dir" && break
  32755. done
  32756. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32757. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32758. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32759. { (exit 1); exit 1; }; }; }
  32760. ac_builddir=.
  32761. case "$ac_dir" in
  32762. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32763. *)
  32764. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  32765. # A ".." for each directory in $ac_dir_suffix.
  32766. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  32767. case $ac_top_builddir_sub in
  32768. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32769. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  32770. esac ;;
  32771. esac
  32772. ac_abs_top_builddir=$ac_pwd
  32773. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  32774. # for backward compatibility:
  32775. ac_top_builddir=$ac_top_build_prefix
  32776. case $srcdir in
  32777. .) # We are building in place.
  32778. ac_srcdir=.
  32779. ac_top_srcdir=$ac_top_builddir_sub
  32780. ac_abs_top_srcdir=$ac_pwd ;;
  32781. [\\/]* | ?:[\\/]* ) # Absolute name.
  32782. ac_srcdir=$srcdir$ac_dir_suffix;
  32783. ac_top_srcdir=$srcdir
  32784. ac_abs_top_srcdir=$srcdir ;;
  32785. *) # Relative name.
  32786. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  32787. ac_top_srcdir=$ac_top_build_prefix$srcdir
  32788. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  32789. esac
  32790. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  32791. case $ac_mode in
  32792. :F)
  32793. #
  32794. # CONFIG_FILE
  32795. #
  32796. case $INSTALL in
  32797. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  32798. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  32799. esac
  32800. ac_MKDIR_P=$MKDIR_P
  32801. case $MKDIR_P in
  32802. [\\/$]* | ?:[\\/]* ) ;;
  32803. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  32804. esac
  32805. _ACEOF
  32806. cat >>$CONFIG_STATUS <<\_ACEOF
  32807. # If the template does not know about datarootdir, expand it.
  32808. # FIXME: This hack should be removed a few years after 2.60.
  32809. ac_datarootdir_hack=; ac_datarootdir_seen=
  32810. case `sed -n '/datarootdir/ {
  32811. p
  32812. q
  32813. }
  32814. /@datadir@/p
  32815. /@docdir@/p
  32816. /@infodir@/p
  32817. /@localedir@/p
  32818. /@mandir@/p
  32819. ' $ac_file_inputs` in
  32820. *datarootdir*) ac_datarootdir_seen=yes;;
  32821. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  32822. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  32823. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  32824. _ACEOF
  32825. cat >>$CONFIG_STATUS <<_ACEOF
  32826. ac_datarootdir_hack='
  32827. s&@datadir@&$datadir&g
  32828. s&@docdir@&$docdir&g
  32829. s&@infodir@&$infodir&g
  32830. s&@localedir@&$localedir&g
  32831. s&@mandir@&$mandir&g
  32832. s&\\\${datarootdir}&$datarootdir&g' ;;
  32833. esac
  32834. _ACEOF
  32835. # Neutralize VPATH when `$srcdir' = `.'.
  32836. # Shell code in configure.ac might set extrasub.
  32837. # FIXME: do we really want to maintain this feature?
  32838. cat >>$CONFIG_STATUS <<_ACEOF
  32839. sed "$ac_vpsub
  32840. $extrasub
  32841. _ACEOF
  32842. cat >>$CONFIG_STATUS <<\_ACEOF
  32843. :t
  32844. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32845. s&@configure_input@&$configure_input&;t t
  32846. s&@top_builddir@&$ac_top_builddir_sub&;t t
  32847. s&@srcdir@&$ac_srcdir&;t t
  32848. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  32849. s&@top_srcdir@&$ac_top_srcdir&;t t
  32850. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  32851. s&@builddir@&$ac_builddir&;t t
  32852. s&@abs_builddir@&$ac_abs_builddir&;t t
  32853. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  32854. s&@INSTALL@&$ac_INSTALL&;t t
  32855. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  32856. $ac_datarootdir_hack
  32857. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  32858. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  32859. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  32860. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  32861. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32862. which seems to be undefined. Please make sure it is defined." >&5
  32863. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32864. which seems to be undefined. Please make sure it is defined." >&2;}
  32865. rm -f "$tmp/stdin"
  32866. case $ac_file in
  32867. -) cat "$tmp/out"; rm -f "$tmp/out";;
  32868. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  32869. esac
  32870. ;;
  32871. :H)
  32872. #
  32873. # CONFIG_HEADER
  32874. #
  32875. _ACEOF
  32876. # Transform confdefs.h into a sed script `conftest.defines', that
  32877. # substitutes the proper values into config.h.in to produce config.h.
  32878. rm -f conftest.defines conftest.tail
  32879. # First, append a space to every undef/define line, to ease matching.
  32880. echo 's/$/ /' >conftest.defines
  32881. # Then, protect against being on the right side of a sed subst, or in
  32882. # an unquoted here document, in config.status. If some macros were
  32883. # called several times there might be several #defines for the same
  32884. # symbol, which is useless. But do not sort them, since the last
  32885. # AC_DEFINE must be honored.
  32886. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  32887. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  32888. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  32889. # PARAMS is the parameter list in the macro definition--in most cases, it's
  32890. # just an empty string.
  32891. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  32892. ac_dB='\\)[ (].*,\\1define\\2'
  32893. ac_dC=' '
  32894. ac_dD=' ,'
  32895. uniq confdefs.h |
  32896. sed -n '
  32897. t rset
  32898. :rset
  32899. s/^[ ]*#[ ]*define[ ][ ]*//
  32900. t ok
  32901. d
  32902. :ok
  32903. s/[\\&,]/\\&/g
  32904. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  32905. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  32906. ' >>conftest.defines
  32907. # Remove the space that was appended to ease matching.
  32908. # Then replace #undef with comments. This is necessary, for
  32909. # example, in the case of _POSIX_SOURCE, which is predefined and required
  32910. # on some systems where configure will not decide to define it.
  32911. # (The regexp can be short, since the line contains either #define or #undef.)
  32912. echo 's/ $//
  32913. s,^[ #]*u.*,/* & */,' >>conftest.defines
  32914. # Break up conftest.defines:
  32915. ac_max_sed_lines=50
  32916. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  32917. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  32918. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  32919. # et cetera.
  32920. ac_in='$ac_file_inputs'
  32921. ac_out='"$tmp/out1"'
  32922. ac_nxt='"$tmp/out2"'
  32923. while :
  32924. do
  32925. # Write a here document:
  32926. cat >>$CONFIG_STATUS <<_ACEOF
  32927. # First, check the format of the line:
  32928. cat >"\$tmp/defines.sed" <<\\CEOF
  32929. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  32930. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  32931. b
  32932. :def
  32933. _ACEOF
  32934. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  32935. echo 'CEOF
  32936. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  32937. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  32938. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  32939. grep . conftest.tail >/dev/null || break
  32940. rm -f conftest.defines
  32941. mv conftest.tail conftest.defines
  32942. done
  32943. rm -f conftest.defines conftest.tail
  32944. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  32945. cat >>$CONFIG_STATUS <<\_ACEOF
  32946. if test x"$ac_file" != x-; then
  32947. echo "/* $configure_input */" >"$tmp/config.h"
  32948. cat "$ac_result" >>"$tmp/config.h"
  32949. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  32950. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  32951. echo "$as_me: $ac_file is unchanged" >&6;}
  32952. else
  32953. rm -f $ac_file
  32954. mv "$tmp/config.h" $ac_file
  32955. fi
  32956. else
  32957. echo "/* $configure_input */"
  32958. cat "$ac_result"
  32959. fi
  32960. rm -f "$tmp/out12"
  32961. # Compute $ac_file's index in $config_headers.
  32962. _am_stamp_count=1
  32963. for _am_header in $config_headers :; do
  32964. case $_am_header in
  32965. $ac_file | $ac_file:* )
  32966. break ;;
  32967. * )
  32968. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  32969. esac
  32970. done
  32971. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  32972. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32973. X$ac_file : 'X\(//\)[^/]' \| \
  32974. X$ac_file : 'X\(//\)$' \| \
  32975. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  32976. echo X$ac_file |
  32977. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32978. s//\1/
  32979. q
  32980. }
  32981. /^X\(\/\/\)[^/].*/{
  32982. s//\1/
  32983. q
  32984. }
  32985. /^X\(\/\/\)$/{
  32986. s//\1/
  32987. q
  32988. }
  32989. /^X\(\/\).*/{
  32990. s//\1/
  32991. q
  32992. }
  32993. s/.*/./; q'`/stamp-h$_am_stamp_count
  32994. ;;
  32995. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  32996. echo "$as_me: executing $ac_file commands" >&6;}
  32997. ;;
  32998. esac
  32999. case $ac_file$ac_mode in
  33000. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  33001. # Strip MF so we end up with the name of the file.
  33002. mf=`echo "$mf" | sed -e 's/:.*$//'`
  33003. # Check whether this is an Automake generated Makefile or not.
  33004. # We used to match only the files named `Makefile.in', but
  33005. # some people rename them; so instead we look at the file content.
  33006. # Grep'ing the first line is not enough: some people post-process
  33007. # each Makefile.in and add a new line on top of each file to say so.
  33008. # Grep'ing the whole file is not good either: AIX grep has a line
  33009. # limit of 2048, but all sed's we know have understand at least 4000.
  33010. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  33011. dirpart=`$as_dirname -- "$mf" ||
  33012. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33013. X"$mf" : 'X\(//\)[^/]' \| \
  33014. X"$mf" : 'X\(//\)$' \| \
  33015. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  33016. echo X"$mf" |
  33017. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33018. s//\1/
  33019. q
  33020. }
  33021. /^X\(\/\/\)[^/].*/{
  33022. s//\1/
  33023. q
  33024. }
  33025. /^X\(\/\/\)$/{
  33026. s//\1/
  33027. q
  33028. }
  33029. /^X\(\/\).*/{
  33030. s//\1/
  33031. q
  33032. }
  33033. s/.*/./; q'`
  33034. else
  33035. continue
  33036. fi
  33037. # Extract the definition of DEPDIR, am__include, and am__quote
  33038. # from the Makefile without running `make'.
  33039. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  33040. test -z "$DEPDIR" && continue
  33041. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  33042. test -z "am__include" && continue
  33043. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  33044. # When using ansi2knr, U may be empty or an underscore; expand it
  33045. U=`sed -n 's/^U = //p' < "$mf"`
  33046. # Find all dependency output files, they are included files with
  33047. # $(DEPDIR) in their names. We invoke sed twice because it is the
  33048. # simplest approach to changing $(DEPDIR) to its actual value in the
  33049. # expansion.
  33050. for file in `sed -n "
  33051. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  33052. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  33053. # Make sure the directory exists.
  33054. test -f "$dirpart/$file" && continue
  33055. fdir=`$as_dirname -- "$file" ||
  33056. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33057. X"$file" : 'X\(//\)[^/]' \| \
  33058. X"$file" : 'X\(//\)$' \| \
  33059. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  33060. echo X"$file" |
  33061. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33062. s//\1/
  33063. q
  33064. }
  33065. /^X\(\/\/\)[^/].*/{
  33066. s//\1/
  33067. q
  33068. }
  33069. /^X\(\/\/\)$/{
  33070. s//\1/
  33071. q
  33072. }
  33073. /^X\(\/\).*/{
  33074. s//\1/
  33075. q
  33076. }
  33077. s/.*/./; q'`
  33078. { as_dir=$dirpart/$fdir
  33079. case $as_dir in #(
  33080. -*) as_dir=./$as_dir;;
  33081. esac
  33082. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  33083. as_dirs=
  33084. while :; do
  33085. case $as_dir in #(
  33086. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  33087. *) as_qdir=$as_dir;;
  33088. esac
  33089. as_dirs="'$as_qdir' $as_dirs"
  33090. as_dir=`$as_dirname -- "$as_dir" ||
  33091. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33092. X"$as_dir" : 'X\(//\)[^/]' \| \
  33093. X"$as_dir" : 'X\(//\)$' \| \
  33094. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  33095. echo X"$as_dir" |
  33096. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33097. s//\1/
  33098. q
  33099. }
  33100. /^X\(\/\/\)[^/].*/{
  33101. s//\1/
  33102. q
  33103. }
  33104. /^X\(\/\/\)$/{
  33105. s//\1/
  33106. q
  33107. }
  33108. /^X\(\/\).*/{
  33109. s//\1/
  33110. q
  33111. }
  33112. s/.*/./; q'`
  33113. test -d "$as_dir" && break
  33114. done
  33115. test -z "$as_dirs" || eval "mkdir $as_dirs"
  33116. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  33117. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  33118. { (exit 1); exit 1; }; }; }
  33119. # echo "creating $dirpart/$file"
  33120. echo '# dummy' > "$dirpart/$file"
  33121. done
  33122. done
  33123. ;;
  33124. esac
  33125. done # for ac_tag
  33126. { (exit 0); exit 0; }
  33127. _ACEOF
  33128. chmod +x $CONFIG_STATUS
  33129. ac_clean_files=$ac_clean_files_save
  33130. # configure is writing to config.log, and then calls config.status.
  33131. # config.status does its own redirection, appending to config.log.
  33132. # Unfortunately, on DOS this fails, as config.log is still kept open
  33133. # by configure, so config.status won't be able to write to it; its
  33134. # output is simply discarded. So we exec the FD to /dev/null,
  33135. # effectively closing config.log, so it can be properly (re)opened and
  33136. # appended to by config.status. When coming back to configure, we
  33137. # need to make the FD available again.
  33138. if test "$no_create" != yes; then
  33139. ac_cs_success=:
  33140. ac_config_status_args=
  33141. test "$silent" = yes &&
  33142. ac_config_status_args="$ac_config_status_args --quiet"
  33143. exec 5>/dev/null
  33144. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  33145. exec 5>>config.log
  33146. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  33147. # would make configure fail if this is the last instruction.
  33148. $ac_cs_success || { (exit 1); exit 1; }
  33149. fi
  33150. # Configuration results
  33151. { echo "$as_me:$LINENO: result: ##########################################################################
  33152. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  33153. ##########################################################################
  33154. libpcap: ${foundpcap} (${libpcap_version})
  33155. libnet: ${foundnet}
  33156. autogen: ${AUTOGEN}
  33157. 64bit counter support: ${use64bit_counters}
  33158. tcpdump binary path: ${tcpdump_path}
  33159. tcpreplay edit support: ${tcpreplay_edit}
  33160. tcpbridge support: ${enable_tcpbridge}
  33161. Supported Packet Injection Methods (*):
  33162. Linux PF_PACKET: ${have_pf}
  33163. BSD BPF: ${have_bpf}
  33164. libnet: ${have_libnet}
  33165. pcap_inject: ${have_pcap_inject}
  33166. pcap_sendpacket: ${have_pcap_sendpacket}
  33167. * In order of preference; see configure --help to override
  33168. " >&5
  33169. echo "${ECHO_T}##########################################################################
  33170. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  33171. ##########################################################################
  33172. libpcap: ${foundpcap} (${libpcap_version})
  33173. libnet: ${foundnet}
  33174. autogen: ${AUTOGEN}
  33175. 64bit counter support: ${use64bit_counters}
  33176. tcpdump binary path: ${tcpdump_path}
  33177. tcpreplay edit support: ${tcpreplay_edit}
  33178. tcpbridge support: ${enable_tcpbridge}
  33179. Supported Packet Injection Methods (*):
  33180. Linux PF_PACKET: ${have_pf}
  33181. BSD BPF: ${have_bpf}
  33182. libnet: ${have_libnet}
  33183. pcap_inject: ${have_pcap_inject}
  33184. pcap_sendpacket: ${have_pcap_sendpacket}
  33185. * In order of preference; see configure --help to override
  33186. " >&6; }
  33187. case $host in
  33188. *-apple-darwin*)
  33189. { echo "$as_me:$LINENO: WARNING: Apple OS X has a serious problem!
  33190. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&5
  33191. echo "$as_me: WARNING: Apple OS X has a serious problem!
  33192. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&2;}
  33193. ;;
  33194. *-*-cygwin)
  33195. { echo "$as_me:$LINENO: WARNING: Windows/Cygwin support is still somewhat experimental. Please report any bugs!
  33196. http://tcpreplay.synfin.net/trac/newticket" >&5
  33197. echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental. Please report any bugs!
  33198. http://tcpreplay.synfin.net/trac/newticket" >&2;}
  33199. ;;
  33200. esac