configure 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594
  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. build
  710. build_cpu
  711. build_vendor
  712. build_os
  713. host
  714. host_cpu
  715. host_vendor
  716. host_os
  717. CC
  718. CFLAGS
  719. LDFLAGS
  720. CPPFLAGS
  721. ac_ct_CC
  722. EXEEXT
  723. OBJEXT
  724. GREP
  725. EGREP
  726. LN_S
  727. ECHO
  728. AR
  729. RANLIB
  730. STRIP
  731. CPP
  732. CXX
  733. CXXFLAGS
  734. ac_ct_CXX
  735. CXXCPP
  736. F77
  737. FFLAGS
  738. ac_ct_F77
  739. LIBTOOL
  740. TCPREPLAY_VERSION
  741. TCPREPLAY_RELEASE
  742. target
  743. target_cpu
  744. target_vendor
  745. target_os
  746. INSTALL_PROGRAM
  747. INSTALL_SCRIPT
  748. INSTALL_DATA
  749. am__isrc
  750. CYGPATH_W
  751. PACKAGE
  752. VERSION
  753. ACLOCAL
  754. AUTOCONF
  755. AUTOMAKE
  756. AUTOHEADER
  757. MAKEINFO
  758. install_sh
  759. INSTALL_STRIP_PROGRAM
  760. mkdir_p
  761. AWK
  762. SET_MAKE
  763. am__leading_dot
  764. AMTAR
  765. am__tar
  766. am__untar
  767. DEPDIR
  768. am__include
  769. am__quote
  770. AMDEP_TRUE
  771. AMDEP_FALSE
  772. AMDEPBACKSLASH
  773. CCDEPMODE
  774. am__fastdepCC_TRUE
  775. am__fastdepCC_FALSE
  776. CXXDEPMODE
  777. am__fastdepCXX_TRUE
  778. am__fastdepCXX_FALSE
  779. PRINTF
  780. AUTOGEN
  781. LIBOBJS
  782. SYSTEM_STRLCPY_TRUE
  783. SYSTEM_STRLCPY_FALSE
  784. WORDS_BIGENDIAN_TRUE
  785. WORDS_BIGENDIAN_FALSE
  786. debug_flag
  787. ENABLE_TCPREPLAY_EDIT_TRUE
  788. ENABLE_TCPREPLAY_EDIT_FALSE
  789. ENABLE_FLOWREPLAY_TRUE
  790. ENABLE_FLOWREPLAY_FALSE
  791. LNETINC
  792. LNETLIB
  793. LPCAPINC
  794. LPCAPLIB
  795. PCAP_BPF_H_FILE
  796. pcncfg
  797. LNAVLIB
  798. LNAV_CFLAGS
  799. td
  800. ENABLE_TCPDUMP_TRUE
  801. ENABLE_TCPDUMP_FALSE
  802. nic1
  803. nic2
  804. LIBOPTS_DIR
  805. INSTALL_LIBOPTS_TRUE
  806. INSTALL_LIBOPTS_FALSE
  807. NEED_LIBOPTS_TRUE
  808. NEED_LIBOPTS_FALSE
  809. LIBOPTS_LDADD
  810. LIBOPTS_CFLAGS
  811. LTLIBOBJS'
  812. ac_subst_files=''
  813. ac_precious_vars='build_alias
  814. host_alias
  815. target_alias
  816. CC
  817. CFLAGS
  818. LDFLAGS
  819. LIBS
  820. CPPFLAGS
  821. CPP
  822. CXX
  823. CXXFLAGS
  824. CCC
  825. CXXCPP
  826. F77
  827. FFLAGS'
  828. # Initialize some variables set by options.
  829. ac_init_help=
  830. ac_init_version=false
  831. # The variables have the same names as the options, with
  832. # dashes changed to underlines.
  833. cache_file=/dev/null
  834. exec_prefix=NONE
  835. no_create=
  836. no_recursion=
  837. prefix=NONE
  838. program_prefix=NONE
  839. program_suffix=NONE
  840. program_transform_name=s,x,x,
  841. silent=
  842. site=
  843. srcdir=
  844. verbose=
  845. x_includes=NONE
  846. x_libraries=NONE
  847. # Installation directory options.
  848. # These are left unexpanded so users can "make install exec_prefix=/foo"
  849. # and all the variables that are supposed to be based on exec_prefix
  850. # by default will actually change.
  851. # Use braces instead of parens because sh, perl, etc. also accept them.
  852. # (The list follows the same order as the GNU Coding Standards.)
  853. bindir='${exec_prefix}/bin'
  854. sbindir='${exec_prefix}/sbin'
  855. libexecdir='${exec_prefix}/libexec'
  856. datarootdir='${prefix}/share'
  857. datadir='${datarootdir}'
  858. sysconfdir='${prefix}/etc'
  859. sharedstatedir='${prefix}/com'
  860. localstatedir='${prefix}/var'
  861. includedir='${prefix}/include'
  862. oldincludedir='/usr/include'
  863. docdir='${datarootdir}/doc/${PACKAGE}'
  864. infodir='${datarootdir}/info'
  865. htmldir='${docdir}'
  866. dvidir='${docdir}'
  867. pdfdir='${docdir}'
  868. psdir='${docdir}'
  869. libdir='${exec_prefix}/lib'
  870. localedir='${datarootdir}/locale'
  871. mandir='${datarootdir}/man'
  872. ac_prev=
  873. ac_dashdash=
  874. for ac_option
  875. do
  876. # If the previous option needs an argument, assign it.
  877. if test -n "$ac_prev"; then
  878. eval $ac_prev=\$ac_option
  879. ac_prev=
  880. continue
  881. fi
  882. case $ac_option in
  883. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  884. *) ac_optarg=yes ;;
  885. esac
  886. # Accept the important Cygnus configure options, so we can diagnose typos.
  887. case $ac_dashdash$ac_option in
  888. --)
  889. ac_dashdash=yes ;;
  890. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  891. ac_prev=bindir ;;
  892. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  893. bindir=$ac_optarg ;;
  894. -build | --build | --buil | --bui | --bu)
  895. ac_prev=build_alias ;;
  896. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  897. build_alias=$ac_optarg ;;
  898. -cache-file | --cache-file | --cache-fil | --cache-fi \
  899. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  900. ac_prev=cache_file ;;
  901. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  902. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  903. cache_file=$ac_optarg ;;
  904. --config-cache | -C)
  905. cache_file=config.cache ;;
  906. -datadir | --datadir | --datadi | --datad)
  907. ac_prev=datadir ;;
  908. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  909. datadir=$ac_optarg ;;
  910. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  911. | --dataroo | --dataro | --datar)
  912. ac_prev=datarootdir ;;
  913. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  914. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  915. datarootdir=$ac_optarg ;;
  916. -disable-* | --disable-*)
  917. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  918. # Reject names that are not valid shell variable names.
  919. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  920. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  921. { (exit 1); exit 1; }; }
  922. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  923. eval enable_$ac_feature=no ;;
  924. -docdir | --docdir | --docdi | --doc | --do)
  925. ac_prev=docdir ;;
  926. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  927. docdir=$ac_optarg ;;
  928. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  929. ac_prev=dvidir ;;
  930. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  931. dvidir=$ac_optarg ;;
  932. -enable-* | --enable-*)
  933. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  934. # Reject names that are not valid shell variable names.
  935. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  936. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  937. { (exit 1); exit 1; }; }
  938. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  939. eval enable_$ac_feature=\$ac_optarg ;;
  940. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  941. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  942. | --exec | --exe | --ex)
  943. ac_prev=exec_prefix ;;
  944. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  945. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  946. | --exec=* | --exe=* | --ex=*)
  947. exec_prefix=$ac_optarg ;;
  948. -gas | --gas | --ga | --g)
  949. # Obsolete; use --with-gas.
  950. with_gas=yes ;;
  951. -help | --help | --hel | --he | -h)
  952. ac_init_help=long ;;
  953. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  954. ac_init_help=recursive ;;
  955. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  956. ac_init_help=short ;;
  957. -host | --host | --hos | --ho)
  958. ac_prev=host_alias ;;
  959. -host=* | --host=* | --hos=* | --ho=*)
  960. host_alias=$ac_optarg ;;
  961. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  962. ac_prev=htmldir ;;
  963. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  964. | --ht=*)
  965. htmldir=$ac_optarg ;;
  966. -includedir | --includedir | --includedi | --included | --include \
  967. | --includ | --inclu | --incl | --inc)
  968. ac_prev=includedir ;;
  969. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  970. | --includ=* | --inclu=* | --incl=* | --inc=*)
  971. includedir=$ac_optarg ;;
  972. -infodir | --infodir | --infodi | --infod | --info | --inf)
  973. ac_prev=infodir ;;
  974. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  975. infodir=$ac_optarg ;;
  976. -libdir | --libdir | --libdi | --libd)
  977. ac_prev=libdir ;;
  978. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  979. libdir=$ac_optarg ;;
  980. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  981. | --libexe | --libex | --libe)
  982. ac_prev=libexecdir ;;
  983. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  984. | --libexe=* | --libex=* | --libe=*)
  985. libexecdir=$ac_optarg ;;
  986. -localedir | --localedir | --localedi | --localed | --locale)
  987. ac_prev=localedir ;;
  988. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  989. localedir=$ac_optarg ;;
  990. -localstatedir | --localstatedir | --localstatedi | --localstated \
  991. | --localstate | --localstat | --localsta | --localst | --locals)
  992. ac_prev=localstatedir ;;
  993. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  994. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  995. localstatedir=$ac_optarg ;;
  996. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  997. ac_prev=mandir ;;
  998. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  999. mandir=$ac_optarg ;;
  1000. -nfp | --nfp | --nf)
  1001. # Obsolete; use --without-fp.
  1002. with_fp=no ;;
  1003. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1004. | --no-cr | --no-c | -n)
  1005. no_create=yes ;;
  1006. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1007. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1008. no_recursion=yes ;;
  1009. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1010. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1011. | --oldin | --oldi | --old | --ol | --o)
  1012. ac_prev=oldincludedir ;;
  1013. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1014. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1015. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1016. oldincludedir=$ac_optarg ;;
  1017. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1018. ac_prev=prefix ;;
  1019. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1020. prefix=$ac_optarg ;;
  1021. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1022. | --program-pre | --program-pr | --program-p)
  1023. ac_prev=program_prefix ;;
  1024. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1025. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1026. program_prefix=$ac_optarg ;;
  1027. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1028. | --program-suf | --program-su | --program-s)
  1029. ac_prev=program_suffix ;;
  1030. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1031. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1032. program_suffix=$ac_optarg ;;
  1033. -program-transform-name | --program-transform-name \
  1034. | --program-transform-nam | --program-transform-na \
  1035. | --program-transform-n | --program-transform- \
  1036. | --program-transform | --program-transfor \
  1037. | --program-transfo | --program-transf \
  1038. | --program-trans | --program-tran \
  1039. | --progr-tra | --program-tr | --program-t)
  1040. ac_prev=program_transform_name ;;
  1041. -program-transform-name=* | --program-transform-name=* \
  1042. | --program-transform-nam=* | --program-transform-na=* \
  1043. | --program-transform-n=* | --program-transform-=* \
  1044. | --program-transform=* | --program-transfor=* \
  1045. | --program-transfo=* | --program-transf=* \
  1046. | --program-trans=* | --program-tran=* \
  1047. | --progr-tra=* | --program-tr=* | --program-t=*)
  1048. program_transform_name=$ac_optarg ;;
  1049. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1050. ac_prev=pdfdir ;;
  1051. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1052. pdfdir=$ac_optarg ;;
  1053. -psdir | --psdir | --psdi | --psd | --ps)
  1054. ac_prev=psdir ;;
  1055. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1056. psdir=$ac_optarg ;;
  1057. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1058. | -silent | --silent | --silen | --sile | --sil)
  1059. silent=yes ;;
  1060. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1061. ac_prev=sbindir ;;
  1062. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1063. | --sbi=* | --sb=*)
  1064. sbindir=$ac_optarg ;;
  1065. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1066. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1067. | --sharedst | --shareds | --shared | --share | --shar \
  1068. | --sha | --sh)
  1069. ac_prev=sharedstatedir ;;
  1070. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1071. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1072. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1073. | --sha=* | --sh=*)
  1074. sharedstatedir=$ac_optarg ;;
  1075. -site | --site | --sit)
  1076. ac_prev=site ;;
  1077. -site=* | --site=* | --sit=*)
  1078. site=$ac_optarg ;;
  1079. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1080. ac_prev=srcdir ;;
  1081. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1082. srcdir=$ac_optarg ;;
  1083. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1084. | --syscon | --sysco | --sysc | --sys | --sy)
  1085. ac_prev=sysconfdir ;;
  1086. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1087. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1088. sysconfdir=$ac_optarg ;;
  1089. -target | --target | --targe | --targ | --tar | --ta | --t)
  1090. ac_prev=target_alias ;;
  1091. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1092. target_alias=$ac_optarg ;;
  1093. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1094. verbose=yes ;;
  1095. -version | --version | --versio | --versi | --vers | -V)
  1096. ac_init_version=: ;;
  1097. -with-* | --with-*)
  1098. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1099. # Reject names that are not valid shell variable names.
  1100. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1101. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1102. { (exit 1); exit 1; }; }
  1103. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1104. eval with_$ac_package=\$ac_optarg ;;
  1105. -without-* | --without-*)
  1106. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1107. # Reject names that are not valid shell variable names.
  1108. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1109. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1110. { (exit 1); exit 1; }; }
  1111. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1112. eval with_$ac_package=no ;;
  1113. --x)
  1114. # Obsolete; use --with-x.
  1115. with_x=yes ;;
  1116. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1117. | --x-incl | --x-inc | --x-in | --x-i)
  1118. ac_prev=x_includes ;;
  1119. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1120. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1121. x_includes=$ac_optarg ;;
  1122. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1123. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1124. ac_prev=x_libraries ;;
  1125. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1126. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1127. x_libraries=$ac_optarg ;;
  1128. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1129. Try \`$0 --help' for more information." >&2
  1130. { (exit 1); exit 1; }; }
  1131. ;;
  1132. *=*)
  1133. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1136. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1137. { (exit 1); exit 1; }; }
  1138. eval $ac_envvar=\$ac_optarg
  1139. export $ac_envvar ;;
  1140. *)
  1141. # FIXME: should be removed in autoconf 3.0.
  1142. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1143. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1144. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1145. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1146. ;;
  1147. esac
  1148. done
  1149. if test -n "$ac_prev"; then
  1150. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1151. { echo "$as_me: error: missing argument to $ac_option" >&2
  1152. { (exit 1); exit 1; }; }
  1153. fi
  1154. # Be sure to have absolute directory names.
  1155. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1156. datadir sysconfdir sharedstatedir localstatedir includedir \
  1157. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1158. libdir localedir mandir
  1159. do
  1160. eval ac_val=\$$ac_var
  1161. case $ac_val in
  1162. [\\/$]* | ?:[\\/]* ) continue;;
  1163. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1164. esac
  1165. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1166. { (exit 1); exit 1; }; }
  1167. done
  1168. # There might be people who depend on the old broken behavior: `$host'
  1169. # used to hold the argument of --host etc.
  1170. # FIXME: To remove some day.
  1171. build=$build_alias
  1172. host=$host_alias
  1173. target=$target_alias
  1174. # FIXME: To remove some day.
  1175. if test "x$host_alias" != x; then
  1176. if test "x$build_alias" = x; then
  1177. cross_compiling=maybe
  1178. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1179. If a cross compiler is detected then cross compile mode will be used." >&2
  1180. elif test "x$build_alias" != "x$host_alias"; then
  1181. cross_compiling=yes
  1182. fi
  1183. fi
  1184. ac_tool_prefix=
  1185. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1186. test "$silent" = yes && exec 6>/dev/null
  1187. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1188. ac_ls_di=`ls -di .` &&
  1189. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1190. { echo "$as_me: error: Working directory cannot be determined" >&2
  1191. { (exit 1); exit 1; }; }
  1192. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1193. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1194. { (exit 1); exit 1; }; }
  1195. # Find the source files, if location was not specified.
  1196. if test -z "$srcdir"; then
  1197. ac_srcdir_defaulted=yes
  1198. # Try the directory containing this script, then the parent directory.
  1199. ac_confdir=`$as_dirname -- "$0" ||
  1200. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1201. X"$0" : 'X\(//\)[^/]' \| \
  1202. X"$0" : 'X\(//\)$' \| \
  1203. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1204. echo X"$0" |
  1205. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1206. s//\1/
  1207. q
  1208. }
  1209. /^X\(\/\/\)[^/].*/{
  1210. s//\1/
  1211. q
  1212. }
  1213. /^X\(\/\/\)$/{
  1214. s//\1/
  1215. q
  1216. }
  1217. /^X\(\/\).*/{
  1218. s//\1/
  1219. q
  1220. }
  1221. s/.*/./; q'`
  1222. srcdir=$ac_confdir
  1223. if test ! -r "$srcdir/$ac_unique_file"; then
  1224. srcdir=..
  1225. fi
  1226. else
  1227. ac_srcdir_defaulted=no
  1228. fi
  1229. if test ! -r "$srcdir/$ac_unique_file"; then
  1230. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1231. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1232. { (exit 1); exit 1; }; }
  1233. fi
  1234. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1235. ac_abs_confdir=`(
  1236. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1237. { (exit 1); exit 1; }; }
  1238. pwd)`
  1239. # When building in place, set srcdir=.
  1240. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1241. srcdir=.
  1242. fi
  1243. # Remove unnecessary trailing slashes from srcdir.
  1244. # Double slashes in file names in object file debugging info
  1245. # mess up M-x gdb in Emacs.
  1246. case $srcdir in
  1247. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1248. esac
  1249. for ac_var in $ac_precious_vars; do
  1250. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1251. eval ac_env_${ac_var}_value=\$${ac_var}
  1252. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1253. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1254. done
  1255. #
  1256. # Report the --help message.
  1257. #
  1258. if test "$ac_init_help" = "long"; then
  1259. # Omit some internal or obsolete options to make the list less imposing.
  1260. # This message is too long to be a string in the A/UX 3.1 sh.
  1261. cat <<_ACEOF
  1262. \`configure' configures this package to adapt to many kinds of systems.
  1263. Usage: $0 [OPTION]... [VAR=VALUE]...
  1264. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1265. VAR=VALUE. See below for descriptions of some of the useful variables.
  1266. Defaults for the options are specified in brackets.
  1267. Configuration:
  1268. -h, --help display this help and exit
  1269. --help=short display options specific to this package
  1270. --help=recursive display the short help of all the included packages
  1271. -V, --version display version information and exit
  1272. -q, --quiet, --silent do not print \`checking...' messages
  1273. --cache-file=FILE cache test results in FILE [disabled]
  1274. -C, --config-cache alias for \`--cache-file=config.cache'
  1275. -n, --no-create do not create output files
  1276. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1277. Installation directories:
  1278. --prefix=PREFIX install architecture-independent files in PREFIX
  1279. [$ac_default_prefix]
  1280. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1281. [PREFIX]
  1282. By default, \`make install' will install all the files in
  1283. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1284. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1285. for instance \`--prefix=\$HOME'.
  1286. For better control, use the options below.
  1287. Fine tuning of the installation directories:
  1288. --bindir=DIR user executables [EPREFIX/bin]
  1289. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1290. --libexecdir=DIR program executables [EPREFIX/libexec]
  1291. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1292. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1293. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1294. --libdir=DIR object code libraries [EPREFIX/lib]
  1295. --includedir=DIR C header files [PREFIX/include]
  1296. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1297. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1298. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1299. --infodir=DIR info documentation [DATAROOTDIR/info]
  1300. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1301. --mandir=DIR man documentation [DATAROOTDIR/man]
  1302. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1303. --htmldir=DIR html documentation [DOCDIR]
  1304. --dvidir=DIR dvi documentation [DOCDIR]
  1305. --pdfdir=DIR pdf documentation [DOCDIR]
  1306. --psdir=DIR ps documentation [DOCDIR]
  1307. _ACEOF
  1308. cat <<\_ACEOF
  1309. Program names:
  1310. --program-prefix=PREFIX prepend PREFIX to installed program names
  1311. --program-suffix=SUFFIX append SUFFIX to installed program names
  1312. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1313. System types:
  1314. --build=BUILD configure for building on BUILD [guessed]
  1315. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1316. --target=TARGET configure for building compilers for TARGET [HOST]
  1317. _ACEOF
  1318. fi
  1319. if test -n "$ac_init_help"; then
  1320. cat <<\_ACEOF
  1321. Optional Features:
  1322. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1323. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1324. --enable-maintainer-mode enable make rules and dependencies not useful
  1325. (and sometimes confusing) to the casual installer
  1326. --enable-shared[=PKGS] build shared libraries [default=yes]
  1327. --enable-static[=PKGS] build static libraries [default=yes]
  1328. --enable-fast-install[=PKGS]
  1329. optimize for fast installation [default=yes]
  1330. --disable-libtool-lock avoid locking (might break parallel builds)
  1331. --disable-dependency-tracking speeds up one-time build
  1332. --enable-dependency-tracking do not reject slow dependency extractors
  1333. --disable-largefile omit support for large files
  1334. --enable-debug Enable debugging code and support for the -d option
  1335. --enable-pedantic Enable gcc's -pedantic option
  1336. --enable-efence Enable Electric Fence memory debugger
  1337. --enable-gprof Enable GNU Profiler
  1338. --enable-64bits Use 64bit packet counters
  1339. --enable-force-bpf Force using BPF for sending packets
  1340. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1341. --enable-force-libnet Force using libnet for sending packets
  1342. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1343. packets
  1344. --enable-force-sendpacket
  1345. Force using libpcap's pcap_sendpacket() for sending
  1346. packets
  1347. --enable-tcpreplay-edit Link packet editing code with tcpreplay
  1348. --enable-dynamic-link Dynamically link libraries
  1349. --enable-flowreplay Enable building flowreplay (alpha)
  1350. --enable-local-libopts Force using the supplied libopts tearoff code
  1351. --disable-libopts-install
  1352. Do not install libopts with client installation
  1353. Optional Packages:
  1354. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1355. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1356. --with-dmalloc use dmalloc, as in
  1357. http://www.dmalloc.com/dmalloc.tar.gz
  1358. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1359. --with-pic try to use only PIC/non-PIC objects [default=use
  1360. both]
  1361. --with-tags[=TAGS] include additional configurations [automatic]
  1362. --with-libnet=DIR Use libnet in DIR
  1363. --with-libpcap=DIR Use libpcap in DIR
  1364. --with-pcapnav-config=FILE
  1365. Use given pcapnav-config
  1366. --with-tcpdump=FILE Path to tcpdump binary
  1367. --with-testnic=NIC Select which network card to use for testing
  1368. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1369. testing
  1370. --with-autoopts-config specify the config-info script
  1371. --with-regex-header a reg expr header is specified
  1372. --with-libregex libregex installation prefix
  1373. --with-libregex-cflags libregex compile flags
  1374. --with-libregex-libs libregex link command arguments
  1375. Some influential environment variables:
  1376. CC C compiler command
  1377. CFLAGS C compiler flags
  1378. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1379. nonstandard directory <lib dir>
  1380. LIBS libraries to pass to the linker, e.g. -l<library>
  1381. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1382. you have headers in a nonstandard directory <include dir>
  1383. CPP C preprocessor
  1384. CXX C++ compiler command
  1385. CXXFLAGS C++ compiler flags
  1386. CXXCPP C++ preprocessor
  1387. F77 Fortran 77 compiler command
  1388. FFLAGS Fortran 77 compiler flags
  1389. Use these variables to override the choices made by `configure' or to help
  1390. it to find libraries and programs with nonstandard names/locations.
  1391. _ACEOF
  1392. ac_status=$?
  1393. fi
  1394. if test "$ac_init_help" = "recursive"; then
  1395. # If there are subdirs, report their specific --help.
  1396. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1397. test -d "$ac_dir" || continue
  1398. ac_builddir=.
  1399. case "$ac_dir" in
  1400. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1401. *)
  1402. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1403. # A ".." for each directory in $ac_dir_suffix.
  1404. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1405. case $ac_top_builddir_sub in
  1406. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1407. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1408. esac ;;
  1409. esac
  1410. ac_abs_top_builddir=$ac_pwd
  1411. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1412. # for backward compatibility:
  1413. ac_top_builddir=$ac_top_build_prefix
  1414. case $srcdir in
  1415. .) # We are building in place.
  1416. ac_srcdir=.
  1417. ac_top_srcdir=$ac_top_builddir_sub
  1418. ac_abs_top_srcdir=$ac_pwd ;;
  1419. [\\/]* | ?:[\\/]* ) # Absolute name.
  1420. ac_srcdir=$srcdir$ac_dir_suffix;
  1421. ac_top_srcdir=$srcdir
  1422. ac_abs_top_srcdir=$srcdir ;;
  1423. *) # Relative name.
  1424. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1425. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1426. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1427. esac
  1428. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1429. cd "$ac_dir" || { ac_status=$?; continue; }
  1430. # Check for guested configure.
  1431. if test -f "$ac_srcdir/configure.gnu"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1434. elif test -f "$ac_srcdir/configure"; then
  1435. echo &&
  1436. $SHELL "$ac_srcdir/configure" --help=recursive
  1437. else
  1438. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1439. fi || ac_status=$?
  1440. cd "$ac_pwd" || { ac_status=$?; break; }
  1441. done
  1442. fi
  1443. test -n "$ac_init_help" && exit $ac_status
  1444. if $ac_init_version; then
  1445. cat <<\_ACEOF
  1446. configure
  1447. generated by GNU Autoconf 2.61
  1448. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1449. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1450. This configure script is free software; the Free Software Foundation
  1451. gives unlimited permission to copy, distribute and modify it.
  1452. _ACEOF
  1453. exit
  1454. fi
  1455. cat >config.log <<_ACEOF
  1456. This file contains any messages produced by compilers while
  1457. running configure, to aid debugging if configure makes a mistake.
  1458. It was created by $as_me, which was
  1459. generated by GNU Autoconf 2.61. Invocation command line was
  1460. $ $0 $@
  1461. _ACEOF
  1462. exec 5>>config.log
  1463. {
  1464. cat <<_ASUNAME
  1465. ## --------- ##
  1466. ## Platform. ##
  1467. ## --------- ##
  1468. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1469. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1470. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1471. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1472. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1473. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1474. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1475. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1476. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1477. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1478. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1479. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1480. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1481. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1482. _ASUNAME
  1483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1484. for as_dir in $PATH
  1485. do
  1486. IFS=$as_save_IFS
  1487. test -z "$as_dir" && as_dir=.
  1488. echo "PATH: $as_dir"
  1489. done
  1490. IFS=$as_save_IFS
  1491. } >&5
  1492. cat >&5 <<_ACEOF
  1493. ## ----------- ##
  1494. ## Core tests. ##
  1495. ## ----------- ##
  1496. _ACEOF
  1497. # Keep a trace of the command line.
  1498. # Strip out --no-create and --no-recursion so they do not pile up.
  1499. # Strip out --silent because we don't want to record it for future runs.
  1500. # Also quote any args containing shell meta-characters.
  1501. # Make two passes to allow for proper duplicate-argument suppression.
  1502. ac_configure_args=
  1503. ac_configure_args0=
  1504. ac_configure_args1=
  1505. ac_must_keep_next=false
  1506. for ac_pass in 1 2
  1507. do
  1508. for ac_arg
  1509. do
  1510. case $ac_arg in
  1511. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1512. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1513. | -silent | --silent | --silen | --sile | --sil)
  1514. continue ;;
  1515. *\'*)
  1516. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1517. esac
  1518. case $ac_pass in
  1519. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1520. 2)
  1521. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1522. if test $ac_must_keep_next = true; then
  1523. ac_must_keep_next=false # Got value, back to normal.
  1524. else
  1525. case $ac_arg in
  1526. *=* | --config-cache | -C | -disable-* | --disable-* \
  1527. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1528. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1529. | -with-* | --with-* | -without-* | --without-* | --x)
  1530. case "$ac_configure_args0 " in
  1531. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1532. esac
  1533. ;;
  1534. -* ) ac_must_keep_next=true ;;
  1535. esac
  1536. fi
  1537. ac_configure_args="$ac_configure_args '$ac_arg'"
  1538. ;;
  1539. esac
  1540. done
  1541. done
  1542. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1543. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1544. # When interrupted or exit'd, cleanup temporary files, and complete
  1545. # config.log. We remove comments because anyway the quotes in there
  1546. # would cause problems or look ugly.
  1547. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1548. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1549. trap 'exit_status=$?
  1550. # Save into config.log some information that might help in debugging.
  1551. {
  1552. echo
  1553. cat <<\_ASBOX
  1554. ## ---------------- ##
  1555. ## Cache variables. ##
  1556. ## ---------------- ##
  1557. _ASBOX
  1558. echo
  1559. # The following way of writing the cache mishandles newlines in values,
  1560. (
  1561. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1562. eval ac_val=\$$ac_var
  1563. case $ac_val in #(
  1564. *${as_nl}*)
  1565. case $ac_var in #(
  1566. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1567. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1568. esac
  1569. case $ac_var in #(
  1570. _ | IFS | as_nl) ;; #(
  1571. *) $as_unset $ac_var ;;
  1572. esac ;;
  1573. esac
  1574. done
  1575. (set) 2>&1 |
  1576. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1577. *${as_nl}ac_space=\ *)
  1578. sed -n \
  1579. "s/'\''/'\''\\\\'\'''\''/g;
  1580. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1581. ;; #(
  1582. *)
  1583. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1584. ;;
  1585. esac |
  1586. sort
  1587. )
  1588. echo
  1589. cat <<\_ASBOX
  1590. ## ----------------- ##
  1591. ## Output variables. ##
  1592. ## ----------------- ##
  1593. _ASBOX
  1594. echo
  1595. for ac_var in $ac_subst_vars
  1596. do
  1597. eval ac_val=\$$ac_var
  1598. case $ac_val in
  1599. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1600. esac
  1601. echo "$ac_var='\''$ac_val'\''"
  1602. done | sort
  1603. echo
  1604. if test -n "$ac_subst_files"; then
  1605. cat <<\_ASBOX
  1606. ## ------------------- ##
  1607. ## File substitutions. ##
  1608. ## ------------------- ##
  1609. _ASBOX
  1610. echo
  1611. for ac_var in $ac_subst_files
  1612. do
  1613. eval ac_val=\$$ac_var
  1614. case $ac_val in
  1615. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1616. esac
  1617. echo "$ac_var='\''$ac_val'\''"
  1618. done | sort
  1619. echo
  1620. fi
  1621. if test -s confdefs.h; then
  1622. cat <<\_ASBOX
  1623. ## ----------- ##
  1624. ## confdefs.h. ##
  1625. ## ----------- ##
  1626. _ASBOX
  1627. echo
  1628. cat confdefs.h
  1629. echo
  1630. fi
  1631. test "$ac_signal" != 0 &&
  1632. echo "$as_me: caught signal $ac_signal"
  1633. echo "$as_me: exit $exit_status"
  1634. } >&5
  1635. rm -f core *.core core.conftest.* &&
  1636. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1637. exit $exit_status
  1638. ' 0
  1639. for ac_signal in 1 2 13 15; do
  1640. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1641. done
  1642. ac_signal=0
  1643. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1644. rm -f -r conftest* confdefs.h
  1645. # Predefined preprocessor variables.
  1646. cat >>confdefs.h <<_ACEOF
  1647. #define PACKAGE_NAME "$PACKAGE_NAME"
  1648. _ACEOF
  1649. cat >>confdefs.h <<_ACEOF
  1650. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1651. _ACEOF
  1652. cat >>confdefs.h <<_ACEOF
  1653. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1654. _ACEOF
  1655. cat >>confdefs.h <<_ACEOF
  1656. #define PACKAGE_STRING "$PACKAGE_STRING"
  1657. _ACEOF
  1658. cat >>confdefs.h <<_ACEOF
  1659. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1660. _ACEOF
  1661. # Let the site file select an alternate cache file if it wants to.
  1662. # Prefer explicitly selected file to automatically selected ones.
  1663. if test -n "$CONFIG_SITE"; then
  1664. set x "$CONFIG_SITE"
  1665. elif test "x$prefix" != xNONE; then
  1666. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1667. else
  1668. set x "$ac_default_prefix/share/config.site" \
  1669. "$ac_default_prefix/etc/config.site"
  1670. fi
  1671. shift
  1672. for ac_site_file
  1673. do
  1674. if test -r "$ac_site_file"; then
  1675. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1676. echo "$as_me: loading site script $ac_site_file" >&6;}
  1677. sed 's/^/| /' "$ac_site_file" >&5
  1678. . "$ac_site_file"
  1679. fi
  1680. done
  1681. if test -r "$cache_file"; then
  1682. # Some versions of bash will fail to source /dev/null (special
  1683. # files actually), so we avoid doing that.
  1684. if test -f "$cache_file"; then
  1685. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1686. echo "$as_me: loading cache $cache_file" >&6;}
  1687. case $cache_file in
  1688. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1689. *) . "./$cache_file";;
  1690. esac
  1691. fi
  1692. else
  1693. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1694. echo "$as_me: creating cache $cache_file" >&6;}
  1695. >$cache_file
  1696. fi
  1697. # Check that the precious variables saved in the cache have kept the same
  1698. # value.
  1699. ac_cache_corrupted=false
  1700. for ac_var in $ac_precious_vars; do
  1701. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1702. eval ac_new_set=\$ac_env_${ac_var}_set
  1703. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1704. eval ac_new_val=\$ac_env_${ac_var}_value
  1705. case $ac_old_set,$ac_new_set in
  1706. set,)
  1707. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1708. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1709. ac_cache_corrupted=: ;;
  1710. ,set)
  1711. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1712. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1713. ac_cache_corrupted=: ;;
  1714. ,);;
  1715. *)
  1716. if test "x$ac_old_val" != "x$ac_new_val"; then
  1717. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1718. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1719. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1720. echo "$as_me: former value: $ac_old_val" >&2;}
  1721. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1722. echo "$as_me: current value: $ac_new_val" >&2;}
  1723. ac_cache_corrupted=:
  1724. fi;;
  1725. esac
  1726. # Pass precious variables to config.status.
  1727. if test "$ac_new_set" = set; then
  1728. case $ac_new_val in
  1729. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1730. *) ac_arg=$ac_var=$ac_new_val ;;
  1731. esac
  1732. case " $ac_configure_args " in
  1733. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1734. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1735. esac
  1736. fi
  1737. done
  1738. if $ac_cache_corrupted; then
  1739. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1740. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1741. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1742. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1743. { (exit 1); exit 1; }; }
  1744. fi
  1745. ac_ext=c
  1746. ac_cpp='$CPP $CPPFLAGS'
  1747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1750. ac_config_headers="$ac_config_headers src/config.h"
  1751. ac_aux_dir=
  1752. for ac_dir in config "$srcdir"/config; do
  1753. if test -f "$ac_dir/install-sh"; then
  1754. ac_aux_dir=$ac_dir
  1755. ac_install_sh="$ac_aux_dir/install-sh -c"
  1756. break
  1757. elif test -f "$ac_dir/install.sh"; then
  1758. ac_aux_dir=$ac_dir
  1759. ac_install_sh="$ac_aux_dir/install.sh -c"
  1760. break
  1761. elif test -f "$ac_dir/shtool"; then
  1762. ac_aux_dir=$ac_dir
  1763. ac_install_sh="$ac_aux_dir/shtool install -c"
  1764. break
  1765. fi
  1766. done
  1767. if test -z "$ac_aux_dir"; then
  1768. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1769. echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1770. { (exit 1); exit 1; }; }
  1771. fi
  1772. # These three variables are undocumented and unsupported,
  1773. # and are intended to be withdrawn in a future Autoconf release.
  1774. # They can cause serious problems if a builder's source tree is in a directory
  1775. # whose full name contains unusual characters.
  1776. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1777. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1778. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1779. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1780. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  1781. # Check whether --enable-maintainer-mode was given.
  1782. if test "${enable_maintainer_mode+set}" = set; then
  1783. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  1784. else
  1785. USE_MAINTAINER_MODE=no
  1786. fi
  1787. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1788. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  1789. if test $USE_MAINTAINER_MODE = yes; then
  1790. MAINTAINER_MODE_TRUE=
  1791. MAINTAINER_MODE_FALSE='#'
  1792. else
  1793. MAINTAINER_MODE_TRUE='#'
  1794. MAINTAINER_MODE_FALSE=
  1795. fi
  1796. MAINT=$MAINTAINER_MODE_TRUE
  1797. { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1798. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
  1799. # Check whether --with-dmalloc was given.
  1800. if test "${with_dmalloc+set}" = set; then
  1801. withval=$with_dmalloc; if test "$withval" = yes; then
  1802. { echo "$as_me:$LINENO: result: yes" >&5
  1803. echo "${ECHO_T}yes" >&6; }
  1804. cat >>confdefs.h <<\_ACEOF
  1805. #define WITH_DMALLOC 1
  1806. _ACEOF
  1807. LIBS="$LIBS -ldmalloc"
  1808. LDFLAGS="$LDFLAGS -g"
  1809. else
  1810. { echo "$as_me:$LINENO: result: no" >&5
  1811. echo "${ECHO_T}no" >&6; }
  1812. fi
  1813. else
  1814. { echo "$as_me:$LINENO: result: no" >&5
  1815. echo "${ECHO_T}no" >&6; }
  1816. fi
  1817. # Check whether --enable-shared was given.
  1818. if test "${enable_shared+set}" = set; then
  1819. enableval=$enable_shared; p=${PACKAGE-default}
  1820. case $enableval in
  1821. yes) enable_shared=yes ;;
  1822. no) enable_shared=no ;;
  1823. *)
  1824. enable_shared=no
  1825. # Look at the argument we got. We use all the common list separators.
  1826. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1827. for pkg in $enableval; do
  1828. IFS="$lt_save_ifs"
  1829. if test "X$pkg" = "X$p"; then
  1830. enable_shared=yes
  1831. fi
  1832. done
  1833. IFS="$lt_save_ifs"
  1834. ;;
  1835. esac
  1836. else
  1837. enable_shared=yes
  1838. fi
  1839. # Check whether --enable-static was given.
  1840. if test "${enable_static+set}" = set; then
  1841. enableval=$enable_static; p=${PACKAGE-default}
  1842. case $enableval in
  1843. yes) enable_static=yes ;;
  1844. no) enable_static=no ;;
  1845. *)
  1846. enable_static=no
  1847. # Look at the argument we got. We use all the common list separators.
  1848. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1849. for pkg in $enableval; do
  1850. IFS="$lt_save_ifs"
  1851. if test "X$pkg" = "X$p"; then
  1852. enable_static=yes
  1853. fi
  1854. done
  1855. IFS="$lt_save_ifs"
  1856. ;;
  1857. esac
  1858. else
  1859. enable_static=yes
  1860. fi
  1861. # Check whether --enable-fast-install was given.
  1862. if test "${enable_fast_install+set}" = set; then
  1863. enableval=$enable_fast_install; p=${PACKAGE-default}
  1864. case $enableval in
  1865. yes) enable_fast_install=yes ;;
  1866. no) enable_fast_install=no ;;
  1867. *)
  1868. enable_fast_install=no
  1869. # Look at the argument we got. We use all the common list separators.
  1870. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1871. for pkg in $enableval; do
  1872. IFS="$lt_save_ifs"
  1873. if test "X$pkg" = "X$p"; then
  1874. enable_fast_install=yes
  1875. fi
  1876. done
  1877. IFS="$lt_save_ifs"
  1878. ;;
  1879. esac
  1880. else
  1881. enable_fast_install=yes
  1882. fi
  1883. # Make sure we can run config.sub.
  1884. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1885. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1886. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1887. { (exit 1); exit 1; }; }
  1888. { echo "$as_me:$LINENO: checking build system type" >&5
  1889. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1890. if test "${ac_cv_build+set}" = set; then
  1891. echo $ECHO_N "(cached) $ECHO_C" >&6
  1892. else
  1893. ac_build_alias=$build_alias
  1894. test "x$ac_build_alias" = x &&
  1895. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1896. test "x$ac_build_alias" = x &&
  1897. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1898. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1899. { (exit 1); exit 1; }; }
  1900. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1901. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1902. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1903. { (exit 1); exit 1; }; }
  1904. fi
  1905. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1906. echo "${ECHO_T}$ac_cv_build" >&6; }
  1907. case $ac_cv_build in
  1908. *-*-*) ;;
  1909. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1910. echo "$as_me: error: invalid value of canonical build" >&2;}
  1911. { (exit 1); exit 1; }; };;
  1912. esac
  1913. build=$ac_cv_build
  1914. ac_save_IFS=$IFS; IFS='-'
  1915. set x $ac_cv_build
  1916. shift
  1917. build_cpu=$1
  1918. build_vendor=$2
  1919. shift; shift
  1920. # Remember, the first character of IFS is used to create $*,
  1921. # except with old shells:
  1922. build_os=$*
  1923. IFS=$ac_save_IFS
  1924. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1925. { echo "$as_me:$LINENO: checking host system type" >&5
  1926. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1927. if test "${ac_cv_host+set}" = set; then
  1928. echo $ECHO_N "(cached) $ECHO_C" >&6
  1929. else
  1930. if test "x$host_alias" = x; then
  1931. ac_cv_host=$ac_cv_build
  1932. else
  1933. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1934. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1935. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1936. { (exit 1); exit 1; }; }
  1937. fi
  1938. fi
  1939. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1940. echo "${ECHO_T}$ac_cv_host" >&6; }
  1941. case $ac_cv_host in
  1942. *-*-*) ;;
  1943. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1944. echo "$as_me: error: invalid value of canonical host" >&2;}
  1945. { (exit 1); exit 1; }; };;
  1946. esac
  1947. host=$ac_cv_host
  1948. ac_save_IFS=$IFS; IFS='-'
  1949. set x $ac_cv_host
  1950. shift
  1951. host_cpu=$1
  1952. host_vendor=$2
  1953. shift; shift
  1954. # Remember, the first character of IFS is used to create $*,
  1955. # except with old shells:
  1956. host_os=$*
  1957. IFS=$ac_save_IFS
  1958. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1959. ac_ext=c
  1960. ac_cpp='$CPP $CPPFLAGS'
  1961. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1962. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1963. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1964. if test -n "$ac_tool_prefix"; then
  1965. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1966. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1967. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1968. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1969. if test "${ac_cv_prog_CC+set}" = set; then
  1970. echo $ECHO_N "(cached) $ECHO_C" >&6
  1971. else
  1972. if test -n "$CC"; then
  1973. ac_cv_prog_CC="$CC" # Let the user override the test.
  1974. else
  1975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1976. for as_dir in $PATH
  1977. do
  1978. IFS=$as_save_IFS
  1979. test -z "$as_dir" && as_dir=.
  1980. for ac_exec_ext in '' $ac_executable_extensions; do
  1981. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1982. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1983. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1984. break 2
  1985. fi
  1986. done
  1987. done
  1988. IFS=$as_save_IFS
  1989. fi
  1990. fi
  1991. CC=$ac_cv_prog_CC
  1992. if test -n "$CC"; then
  1993. { echo "$as_me:$LINENO: result: $CC" >&5
  1994. echo "${ECHO_T}$CC" >&6; }
  1995. else
  1996. { echo "$as_me:$LINENO: result: no" >&5
  1997. echo "${ECHO_T}no" >&6; }
  1998. fi
  1999. fi
  2000. if test -z "$ac_cv_prog_CC"; then
  2001. ac_ct_CC=$CC
  2002. # Extract the first word of "gcc", so it can be a program name with args.
  2003. set dummy gcc; ac_word=$2
  2004. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2005. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2006. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2007. echo $ECHO_N "(cached) $ECHO_C" >&6
  2008. else
  2009. if test -n "$ac_ct_CC"; then
  2010. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2011. else
  2012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2013. for as_dir in $PATH
  2014. do
  2015. IFS=$as_save_IFS
  2016. test -z "$as_dir" && as_dir=.
  2017. for ac_exec_ext in '' $ac_executable_extensions; do
  2018. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2019. ac_cv_prog_ac_ct_CC="gcc"
  2020. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2021. break 2
  2022. fi
  2023. done
  2024. done
  2025. IFS=$as_save_IFS
  2026. fi
  2027. fi
  2028. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2029. if test -n "$ac_ct_CC"; then
  2030. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2031. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2032. else
  2033. { echo "$as_me:$LINENO: result: no" >&5
  2034. echo "${ECHO_T}no" >&6; }
  2035. fi
  2036. if test "x$ac_ct_CC" = x; then
  2037. CC=""
  2038. else
  2039. case $cross_compiling:$ac_tool_warned in
  2040. yes:)
  2041. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2042. whose name does not start with the host triplet. If you think this
  2043. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2044. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2045. whose name does not start with the host triplet. If you think this
  2046. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2047. ac_tool_warned=yes ;;
  2048. esac
  2049. CC=$ac_ct_CC
  2050. fi
  2051. else
  2052. CC="$ac_cv_prog_CC"
  2053. fi
  2054. if test -z "$CC"; then
  2055. if test -n "$ac_tool_prefix"; then
  2056. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2057. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2058. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2059. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2060. if test "${ac_cv_prog_CC+set}" = set; then
  2061. echo $ECHO_N "(cached) $ECHO_C" >&6
  2062. else
  2063. if test -n "$CC"; then
  2064. ac_cv_prog_CC="$CC" # Let the user override the test.
  2065. else
  2066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2067. for as_dir in $PATH
  2068. do
  2069. IFS=$as_save_IFS
  2070. test -z "$as_dir" && as_dir=.
  2071. for ac_exec_ext in '' $ac_executable_extensions; do
  2072. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2073. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2074. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2075. break 2
  2076. fi
  2077. done
  2078. done
  2079. IFS=$as_save_IFS
  2080. fi
  2081. fi
  2082. CC=$ac_cv_prog_CC
  2083. if test -n "$CC"; then
  2084. { echo "$as_me:$LINENO: result: $CC" >&5
  2085. echo "${ECHO_T}$CC" >&6; }
  2086. else
  2087. { echo "$as_me:$LINENO: result: no" >&5
  2088. echo "${ECHO_T}no" >&6; }
  2089. fi
  2090. fi
  2091. fi
  2092. if test -z "$CC"; then
  2093. # Extract the first word of "cc", so it can be a program name with args.
  2094. set dummy cc; ac_word=$2
  2095. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2096. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2097. if test "${ac_cv_prog_CC+set}" = set; then
  2098. echo $ECHO_N "(cached) $ECHO_C" >&6
  2099. else
  2100. if test -n "$CC"; then
  2101. ac_cv_prog_CC="$CC" # Let the user override the test.
  2102. else
  2103. ac_prog_rejected=no
  2104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2105. for as_dir in $PATH
  2106. do
  2107. IFS=$as_save_IFS
  2108. test -z "$as_dir" && as_dir=.
  2109. for ac_exec_ext in '' $ac_executable_extensions; do
  2110. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2111. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2112. ac_prog_rejected=yes
  2113. continue
  2114. fi
  2115. ac_cv_prog_CC="cc"
  2116. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2117. break 2
  2118. fi
  2119. done
  2120. done
  2121. IFS=$as_save_IFS
  2122. if test $ac_prog_rejected = yes; then
  2123. # We found a bogon in the path, so make sure we never use it.
  2124. set dummy $ac_cv_prog_CC
  2125. shift
  2126. if test $# != 0; then
  2127. # We chose a different compiler from the bogus one.
  2128. # However, it has the same basename, so the bogon will be chosen
  2129. # first if we set CC to just the basename; use the full file name.
  2130. shift
  2131. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2132. fi
  2133. fi
  2134. fi
  2135. fi
  2136. CC=$ac_cv_prog_CC
  2137. if test -n "$CC"; then
  2138. { echo "$as_me:$LINENO: result: $CC" >&5
  2139. echo "${ECHO_T}$CC" >&6; }
  2140. else
  2141. { echo "$as_me:$LINENO: result: no" >&5
  2142. echo "${ECHO_T}no" >&6; }
  2143. fi
  2144. fi
  2145. if test -z "$CC"; then
  2146. if test -n "$ac_tool_prefix"; then
  2147. for ac_prog in cl.exe
  2148. do
  2149. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2150. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2151. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2152. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2153. if test "${ac_cv_prog_CC+set}" = set; then
  2154. echo $ECHO_N "(cached) $ECHO_C" >&6
  2155. else
  2156. if test -n "$CC"; then
  2157. ac_cv_prog_CC="$CC" # Let the user override the test.
  2158. else
  2159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2160. for as_dir in $PATH
  2161. do
  2162. IFS=$as_save_IFS
  2163. test -z "$as_dir" && as_dir=.
  2164. for ac_exec_ext in '' $ac_executable_extensions; do
  2165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2166. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2167. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2168. break 2
  2169. fi
  2170. done
  2171. done
  2172. IFS=$as_save_IFS
  2173. fi
  2174. fi
  2175. CC=$ac_cv_prog_CC
  2176. if test -n "$CC"; then
  2177. { echo "$as_me:$LINENO: result: $CC" >&5
  2178. echo "${ECHO_T}$CC" >&6; }
  2179. else
  2180. { echo "$as_me:$LINENO: result: no" >&5
  2181. echo "${ECHO_T}no" >&6; }
  2182. fi
  2183. test -n "$CC" && break
  2184. done
  2185. fi
  2186. if test -z "$CC"; then
  2187. ac_ct_CC=$CC
  2188. for ac_prog in cl.exe
  2189. do
  2190. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2191. set dummy $ac_prog; ac_word=$2
  2192. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2193. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2194. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2195. echo $ECHO_N "(cached) $ECHO_C" >&6
  2196. else
  2197. if test -n "$ac_ct_CC"; then
  2198. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2199. else
  2200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2201. for as_dir in $PATH
  2202. do
  2203. IFS=$as_save_IFS
  2204. test -z "$as_dir" && as_dir=.
  2205. for ac_exec_ext in '' $ac_executable_extensions; do
  2206. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2207. ac_cv_prog_ac_ct_CC="$ac_prog"
  2208. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2209. break 2
  2210. fi
  2211. done
  2212. done
  2213. IFS=$as_save_IFS
  2214. fi
  2215. fi
  2216. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2217. if test -n "$ac_ct_CC"; then
  2218. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2219. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2220. else
  2221. { echo "$as_me:$LINENO: result: no" >&5
  2222. echo "${ECHO_T}no" >&6; }
  2223. fi
  2224. test -n "$ac_ct_CC" && break
  2225. done
  2226. if test "x$ac_ct_CC" = x; then
  2227. CC=""
  2228. else
  2229. case $cross_compiling:$ac_tool_warned in
  2230. yes:)
  2231. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2232. whose name does not start with the host triplet. If you think this
  2233. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2234. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2235. whose name does not start with the host triplet. If you think this
  2236. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2237. ac_tool_warned=yes ;;
  2238. esac
  2239. CC=$ac_ct_CC
  2240. fi
  2241. fi
  2242. fi
  2243. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2244. See \`config.log' for more details." >&5
  2245. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2246. See \`config.log' for more details." >&2;}
  2247. { (exit 1); exit 1; }; }
  2248. # Provide some information about the compiler.
  2249. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2250. ac_compiler=`set X $ac_compile; echo $2`
  2251. { (ac_try="$ac_compiler --version >&5"
  2252. case "(($ac_try" in
  2253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2254. *) ac_try_echo=$ac_try;;
  2255. esac
  2256. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2257. (eval "$ac_compiler --version >&5") 2>&5
  2258. ac_status=$?
  2259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2260. (exit $ac_status); }
  2261. { (ac_try="$ac_compiler -v >&5"
  2262. case "(($ac_try" in
  2263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2264. *) ac_try_echo=$ac_try;;
  2265. esac
  2266. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2267. (eval "$ac_compiler -v >&5") 2>&5
  2268. ac_status=$?
  2269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2270. (exit $ac_status); }
  2271. { (ac_try="$ac_compiler -V >&5"
  2272. case "(($ac_try" in
  2273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2274. *) ac_try_echo=$ac_try;;
  2275. esac
  2276. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2277. (eval "$ac_compiler -V >&5") 2>&5
  2278. ac_status=$?
  2279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2280. (exit $ac_status); }
  2281. cat >conftest.$ac_ext <<_ACEOF
  2282. /* confdefs.h. */
  2283. _ACEOF
  2284. cat confdefs.h >>conftest.$ac_ext
  2285. cat >>conftest.$ac_ext <<_ACEOF
  2286. /* end confdefs.h. */
  2287. int
  2288. main ()
  2289. {
  2290. ;
  2291. return 0;
  2292. }
  2293. _ACEOF
  2294. ac_clean_files_save=$ac_clean_files
  2295. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2296. # Try to create an executable without -o first, disregard a.out.
  2297. # It will help us diagnose broken compilers, and finding out an intuition
  2298. # of exeext.
  2299. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2300. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2301. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2302. #
  2303. # List of possible output files, starting from the most likely.
  2304. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2305. # only as a last resort. b.out is created by i960 compilers.
  2306. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2307. #
  2308. # The IRIX 6 linker writes into existing files which may not be
  2309. # executable, retaining their permissions. Remove them first so a
  2310. # subsequent execution test works.
  2311. ac_rmfiles=
  2312. for ac_file in $ac_files
  2313. do
  2314. case $ac_file in
  2315. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2316. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2317. esac
  2318. done
  2319. rm -f $ac_rmfiles
  2320. if { (ac_try="$ac_link_default"
  2321. case "(($ac_try" in
  2322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2323. *) ac_try_echo=$ac_try;;
  2324. esac
  2325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2326. (eval "$ac_link_default") 2>&5
  2327. ac_status=$?
  2328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2329. (exit $ac_status); }; then
  2330. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2331. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2332. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2333. # so that the user can short-circuit this test for compilers unknown to
  2334. # Autoconf.
  2335. for ac_file in $ac_files ''
  2336. do
  2337. test -f "$ac_file" || continue
  2338. case $ac_file in
  2339. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2340. ;;
  2341. [ab].out )
  2342. # We found the default executable, but exeext='' is most
  2343. # certainly right.
  2344. break;;
  2345. *.* )
  2346. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2347. then :; else
  2348. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2349. fi
  2350. # We set ac_cv_exeext here because the later test for it is not
  2351. # safe: cross compilers may not add the suffix if given an `-o'
  2352. # argument, so we may need to know it at that point already.
  2353. # Even if this section looks crufty: it has the advantage of
  2354. # actually working.
  2355. break;;
  2356. * )
  2357. break;;
  2358. esac
  2359. done
  2360. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2361. else
  2362. ac_file=''
  2363. fi
  2364. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2365. echo "${ECHO_T}$ac_file" >&6; }
  2366. if test -z "$ac_file"; then
  2367. echo "$as_me: failed program was:" >&5
  2368. sed 's/^/| /' conftest.$ac_ext >&5
  2369. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2370. See \`config.log' for more details." >&5
  2371. echo "$as_me: error: C compiler cannot create executables
  2372. See \`config.log' for more details." >&2;}
  2373. { (exit 77); exit 77; }; }
  2374. fi
  2375. ac_exeext=$ac_cv_exeext
  2376. # Check that the compiler produces executables we can run. If not, either
  2377. # the compiler is broken, or we cross compile.
  2378. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2379. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2380. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2381. # If not cross compiling, check that we can run a simple program.
  2382. if test "$cross_compiling" != yes; then
  2383. if { ac_try='./$ac_file'
  2384. { (case "(($ac_try" in
  2385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2386. *) ac_try_echo=$ac_try;;
  2387. esac
  2388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2389. (eval "$ac_try") 2>&5
  2390. ac_status=$?
  2391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2392. (exit $ac_status); }; }; then
  2393. cross_compiling=no
  2394. else
  2395. if test "$cross_compiling" = maybe; then
  2396. cross_compiling=yes
  2397. else
  2398. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2399. If you meant to cross compile, use \`--host'.
  2400. See \`config.log' for more details." >&5
  2401. echo "$as_me: error: cannot run C compiled programs.
  2402. If you meant to cross compile, use \`--host'.
  2403. See \`config.log' for more details." >&2;}
  2404. { (exit 1); exit 1; }; }
  2405. fi
  2406. fi
  2407. fi
  2408. { echo "$as_me:$LINENO: result: yes" >&5
  2409. echo "${ECHO_T}yes" >&6; }
  2410. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2411. ac_clean_files=$ac_clean_files_save
  2412. # Check that the compiler produces executables we can run. If not, either
  2413. # the compiler is broken, or we cross compile.
  2414. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2415. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2416. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2417. echo "${ECHO_T}$cross_compiling" >&6; }
  2418. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2419. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2420. if { (ac_try="$ac_link"
  2421. case "(($ac_try" in
  2422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2423. *) ac_try_echo=$ac_try;;
  2424. esac
  2425. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2426. (eval "$ac_link") 2>&5
  2427. ac_status=$?
  2428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2429. (exit $ac_status); }; then
  2430. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2431. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2432. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2433. # `rm'.
  2434. for ac_file in conftest.exe conftest conftest.*; do
  2435. test -f "$ac_file" || continue
  2436. case $ac_file in
  2437. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2438. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2439. break;;
  2440. * ) break;;
  2441. esac
  2442. done
  2443. else
  2444. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2445. See \`config.log' for more details." >&5
  2446. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2447. See \`config.log' for more details." >&2;}
  2448. { (exit 1); exit 1; }; }
  2449. fi
  2450. rm -f conftest$ac_cv_exeext
  2451. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2452. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2453. rm -f conftest.$ac_ext
  2454. EXEEXT=$ac_cv_exeext
  2455. ac_exeext=$EXEEXT
  2456. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2457. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2458. if test "${ac_cv_objext+set}" = set; then
  2459. echo $ECHO_N "(cached) $ECHO_C" >&6
  2460. else
  2461. cat >conftest.$ac_ext <<_ACEOF
  2462. /* confdefs.h. */
  2463. _ACEOF
  2464. cat confdefs.h >>conftest.$ac_ext
  2465. cat >>conftest.$ac_ext <<_ACEOF
  2466. /* end confdefs.h. */
  2467. int
  2468. main ()
  2469. {
  2470. ;
  2471. return 0;
  2472. }
  2473. _ACEOF
  2474. rm -f conftest.o conftest.obj
  2475. if { (ac_try="$ac_compile"
  2476. case "(($ac_try" in
  2477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2478. *) ac_try_echo=$ac_try;;
  2479. esac
  2480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2481. (eval "$ac_compile") 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); }; then
  2485. for ac_file in conftest.o conftest.obj conftest.*; do
  2486. test -f "$ac_file" || continue;
  2487. case $ac_file in
  2488. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2489. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2490. break;;
  2491. esac
  2492. done
  2493. else
  2494. echo "$as_me: failed program was:" >&5
  2495. sed 's/^/| /' conftest.$ac_ext >&5
  2496. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2497. See \`config.log' for more details." >&5
  2498. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2499. See \`config.log' for more details." >&2;}
  2500. { (exit 1); exit 1; }; }
  2501. fi
  2502. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2503. fi
  2504. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2505. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2506. OBJEXT=$ac_cv_objext
  2507. ac_objext=$OBJEXT
  2508. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2509. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2510. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2511. echo $ECHO_N "(cached) $ECHO_C" >&6
  2512. else
  2513. cat >conftest.$ac_ext <<_ACEOF
  2514. /* confdefs.h. */
  2515. _ACEOF
  2516. cat confdefs.h >>conftest.$ac_ext
  2517. cat >>conftest.$ac_ext <<_ACEOF
  2518. /* end confdefs.h. */
  2519. int
  2520. main ()
  2521. {
  2522. #ifndef __GNUC__
  2523. choke me
  2524. #endif
  2525. ;
  2526. return 0;
  2527. }
  2528. _ACEOF
  2529. rm -f conftest.$ac_objext
  2530. if { (ac_try="$ac_compile"
  2531. case "(($ac_try" in
  2532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2533. *) ac_try_echo=$ac_try;;
  2534. esac
  2535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2536. (eval "$ac_compile") 2>conftest.er1
  2537. ac_status=$?
  2538. grep -v '^ *+' conftest.er1 >conftest.err
  2539. rm -f conftest.er1
  2540. cat conftest.err >&5
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); } && {
  2543. test -z "$ac_c_werror_flag" ||
  2544. test ! -s conftest.err
  2545. } && test -s conftest.$ac_objext; then
  2546. ac_compiler_gnu=yes
  2547. else
  2548. echo "$as_me: failed program was:" >&5
  2549. sed 's/^/| /' conftest.$ac_ext >&5
  2550. ac_compiler_gnu=no
  2551. fi
  2552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2553. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2554. fi
  2555. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2556. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2557. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2558. ac_test_CFLAGS=${CFLAGS+set}
  2559. ac_save_CFLAGS=$CFLAGS
  2560. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2561. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2562. if test "${ac_cv_prog_cc_g+set}" = set; then
  2563. echo $ECHO_N "(cached) $ECHO_C" >&6
  2564. else
  2565. ac_save_c_werror_flag=$ac_c_werror_flag
  2566. ac_c_werror_flag=yes
  2567. ac_cv_prog_cc_g=no
  2568. CFLAGS="-g"
  2569. cat >conftest.$ac_ext <<_ACEOF
  2570. /* confdefs.h. */
  2571. _ACEOF
  2572. cat confdefs.h >>conftest.$ac_ext
  2573. cat >>conftest.$ac_ext <<_ACEOF
  2574. /* end confdefs.h. */
  2575. int
  2576. main ()
  2577. {
  2578. ;
  2579. return 0;
  2580. }
  2581. _ACEOF
  2582. rm -f conftest.$ac_objext
  2583. if { (ac_try="$ac_compile"
  2584. case "(($ac_try" in
  2585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2586. *) ac_try_echo=$ac_try;;
  2587. esac
  2588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2589. (eval "$ac_compile") 2>conftest.er1
  2590. ac_status=$?
  2591. grep -v '^ *+' conftest.er1 >conftest.err
  2592. rm -f conftest.er1
  2593. cat conftest.err >&5
  2594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2595. (exit $ac_status); } && {
  2596. test -z "$ac_c_werror_flag" ||
  2597. test ! -s conftest.err
  2598. } && test -s conftest.$ac_objext; then
  2599. ac_cv_prog_cc_g=yes
  2600. else
  2601. echo "$as_me: failed program was:" >&5
  2602. sed 's/^/| /' conftest.$ac_ext >&5
  2603. CFLAGS=""
  2604. cat >conftest.$ac_ext <<_ACEOF
  2605. /* confdefs.h. */
  2606. _ACEOF
  2607. cat confdefs.h >>conftest.$ac_ext
  2608. cat >>conftest.$ac_ext <<_ACEOF
  2609. /* end confdefs.h. */
  2610. int
  2611. main ()
  2612. {
  2613. ;
  2614. return 0;
  2615. }
  2616. _ACEOF
  2617. rm -f conftest.$ac_objext
  2618. if { (ac_try="$ac_compile"
  2619. case "(($ac_try" in
  2620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2621. *) ac_try_echo=$ac_try;;
  2622. esac
  2623. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2624. (eval "$ac_compile") 2>conftest.er1
  2625. ac_status=$?
  2626. grep -v '^ *+' conftest.er1 >conftest.err
  2627. rm -f conftest.er1
  2628. cat conftest.err >&5
  2629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2630. (exit $ac_status); } && {
  2631. test -z "$ac_c_werror_flag" ||
  2632. test ! -s conftest.err
  2633. } && test -s conftest.$ac_objext; then
  2634. :
  2635. else
  2636. echo "$as_me: failed program was:" >&5
  2637. sed 's/^/| /' conftest.$ac_ext >&5
  2638. ac_c_werror_flag=$ac_save_c_werror_flag
  2639. CFLAGS="-g"
  2640. cat >conftest.$ac_ext <<_ACEOF
  2641. /* confdefs.h. */
  2642. _ACEOF
  2643. cat confdefs.h >>conftest.$ac_ext
  2644. cat >>conftest.$ac_ext <<_ACEOF
  2645. /* end confdefs.h. */
  2646. int
  2647. main ()
  2648. {
  2649. ;
  2650. return 0;
  2651. }
  2652. _ACEOF
  2653. rm -f conftest.$ac_objext
  2654. if { (ac_try="$ac_compile"
  2655. case "(($ac_try" in
  2656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2657. *) ac_try_echo=$ac_try;;
  2658. esac
  2659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2660. (eval "$ac_compile") 2>conftest.er1
  2661. ac_status=$?
  2662. grep -v '^ *+' conftest.er1 >conftest.err
  2663. rm -f conftest.er1
  2664. cat conftest.err >&5
  2665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2666. (exit $ac_status); } && {
  2667. test -z "$ac_c_werror_flag" ||
  2668. test ! -s conftest.err
  2669. } && test -s conftest.$ac_objext; then
  2670. ac_cv_prog_cc_g=yes
  2671. else
  2672. echo "$as_me: failed program was:" >&5
  2673. sed 's/^/| /' conftest.$ac_ext >&5
  2674. fi
  2675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2676. fi
  2677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2678. fi
  2679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2680. ac_c_werror_flag=$ac_save_c_werror_flag
  2681. fi
  2682. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2683. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2684. if test "$ac_test_CFLAGS" = set; then
  2685. CFLAGS=$ac_save_CFLAGS
  2686. elif test $ac_cv_prog_cc_g = yes; then
  2687. if test "$GCC" = yes; then
  2688. CFLAGS="-g -O2"
  2689. else
  2690. CFLAGS="-g"
  2691. fi
  2692. else
  2693. if test "$GCC" = yes; then
  2694. CFLAGS="-O2"
  2695. else
  2696. CFLAGS=
  2697. fi
  2698. fi
  2699. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2700. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2701. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2702. echo $ECHO_N "(cached) $ECHO_C" >&6
  2703. else
  2704. ac_cv_prog_cc_c89=no
  2705. ac_save_CC=$CC
  2706. cat >conftest.$ac_ext <<_ACEOF
  2707. /* confdefs.h. */
  2708. _ACEOF
  2709. cat confdefs.h >>conftest.$ac_ext
  2710. cat >>conftest.$ac_ext <<_ACEOF
  2711. /* end confdefs.h. */
  2712. #include <stdarg.h>
  2713. #include <stdio.h>
  2714. #include <sys/types.h>
  2715. #include <sys/stat.h>
  2716. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2717. struct buf { int x; };
  2718. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2719. static char *e (p, i)
  2720. char **p;
  2721. int i;
  2722. {
  2723. return p[i];
  2724. }
  2725. static char *f (char * (*g) (char **, int), char **p, ...)
  2726. {
  2727. char *s;
  2728. va_list v;
  2729. va_start (v,p);
  2730. s = g (p, va_arg (v,int));
  2731. va_end (v);
  2732. return s;
  2733. }
  2734. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2735. function prototypes and stuff, but not '\xHH' hex character constants.
  2736. These don't provoke an error unfortunately, instead are silently treated
  2737. as 'x'. The following induces an error, until -std is added to get
  2738. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2739. array size at least. It's necessary to write '\x00'==0 to get something
  2740. that's true only with -std. */
  2741. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2742. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2743. inside strings and character constants. */
  2744. #define FOO(x) 'x'
  2745. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2746. int test (int i, double x);
  2747. struct s1 {int (*f) (int a);};
  2748. struct s2 {int (*f) (double a);};
  2749. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2750. int argc;
  2751. char **argv;
  2752. int
  2753. main ()
  2754. {
  2755. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2756. ;
  2757. return 0;
  2758. }
  2759. _ACEOF
  2760. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2761. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2762. do
  2763. CC="$ac_save_CC $ac_arg"
  2764. rm -f conftest.$ac_objext
  2765. if { (ac_try="$ac_compile"
  2766. case "(($ac_try" in
  2767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2768. *) ac_try_echo=$ac_try;;
  2769. esac
  2770. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2771. (eval "$ac_compile") 2>conftest.er1
  2772. ac_status=$?
  2773. grep -v '^ *+' conftest.er1 >conftest.err
  2774. rm -f conftest.er1
  2775. cat conftest.err >&5
  2776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2777. (exit $ac_status); } && {
  2778. test -z "$ac_c_werror_flag" ||
  2779. test ! -s conftest.err
  2780. } && test -s conftest.$ac_objext; then
  2781. ac_cv_prog_cc_c89=$ac_arg
  2782. else
  2783. echo "$as_me: failed program was:" >&5
  2784. sed 's/^/| /' conftest.$ac_ext >&5
  2785. fi
  2786. rm -f core conftest.err conftest.$ac_objext
  2787. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2788. done
  2789. rm -f conftest.$ac_ext
  2790. CC=$ac_save_CC
  2791. fi
  2792. # AC_CACHE_VAL
  2793. case "x$ac_cv_prog_cc_c89" in
  2794. x)
  2795. { echo "$as_me:$LINENO: result: none needed" >&5
  2796. echo "${ECHO_T}none needed" >&6; } ;;
  2797. xno)
  2798. { echo "$as_me:$LINENO: result: unsupported" >&5
  2799. echo "${ECHO_T}unsupported" >&6; } ;;
  2800. *)
  2801. CC="$CC $ac_cv_prog_cc_c89"
  2802. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2803. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2804. esac
  2805. ac_ext=c
  2806. ac_cpp='$CPP $CPPFLAGS'
  2807. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2808. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2809. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2810. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2811. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  2812. if test "${lt_cv_path_SED+set}" = set; then
  2813. echo $ECHO_N "(cached) $ECHO_C" >&6
  2814. else
  2815. # Loop through the user's path and test for sed and gsed.
  2816. # Then use that list of sed's as ones to test for truncation.
  2817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2818. for as_dir in $PATH
  2819. do
  2820. IFS=$as_save_IFS
  2821. test -z "$as_dir" && as_dir=.
  2822. for lt_ac_prog in sed gsed; do
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  2825. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  2826. fi
  2827. done
  2828. done
  2829. done
  2830. lt_ac_max=0
  2831. lt_ac_count=0
  2832. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  2833. # along with /bin/sed that truncates output.
  2834. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  2835. test ! -f $lt_ac_sed && continue
  2836. cat /dev/null > conftest.in
  2837. lt_ac_count=0
  2838. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  2839. # Check for GNU sed and select it if it is found.
  2840. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  2841. lt_cv_path_SED=$lt_ac_sed
  2842. break
  2843. fi
  2844. while true; do
  2845. cat conftest.in conftest.in >conftest.tmp
  2846. mv conftest.tmp conftest.in
  2847. cp conftest.in conftest.nl
  2848. echo >>conftest.nl
  2849. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  2850. cmp -s conftest.out conftest.nl || break
  2851. # 10000 chars as input seems more than enough
  2852. test $lt_ac_count -gt 10 && break
  2853. lt_ac_count=`expr $lt_ac_count + 1`
  2854. if test $lt_ac_count -gt $lt_ac_max; then
  2855. lt_ac_max=$lt_ac_count
  2856. lt_cv_path_SED=$lt_ac_sed
  2857. fi
  2858. done
  2859. done
  2860. fi
  2861. SED=$lt_cv_path_SED
  2862. { echo "$as_me:$LINENO: result: $SED" >&5
  2863. echo "${ECHO_T}$SED" >&6; }
  2864. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2865. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2866. if test "${ac_cv_path_GREP+set}" = set; then
  2867. echo $ECHO_N "(cached) $ECHO_C" >&6
  2868. else
  2869. # Extract the first word of "grep ggrep" to use in msg output
  2870. if test -z "$GREP"; then
  2871. set dummy grep ggrep; ac_prog_name=$2
  2872. if test "${ac_cv_path_GREP+set}" = set; then
  2873. echo $ECHO_N "(cached) $ECHO_C" >&6
  2874. else
  2875. ac_path_GREP_found=false
  2876. # Loop through the user's path and test for each of PROGNAME-LIST
  2877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2878. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2879. do
  2880. IFS=$as_save_IFS
  2881. test -z "$as_dir" && as_dir=.
  2882. for ac_prog in grep ggrep; do
  2883. for ac_exec_ext in '' $ac_executable_extensions; do
  2884. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2885. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2886. # Check for GNU ac_path_GREP and select it if it is found.
  2887. # Check for GNU $ac_path_GREP
  2888. case `"$ac_path_GREP" --version 2>&1` in
  2889. *GNU*)
  2890. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2891. *)
  2892. ac_count=0
  2893. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2894. while :
  2895. do
  2896. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2897. mv "conftest.tmp" "conftest.in"
  2898. cp "conftest.in" "conftest.nl"
  2899. echo 'GREP' >> "conftest.nl"
  2900. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2901. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2902. ac_count=`expr $ac_count + 1`
  2903. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2904. # Best one so far, save it but keep looking for a better one
  2905. ac_cv_path_GREP="$ac_path_GREP"
  2906. ac_path_GREP_max=$ac_count
  2907. fi
  2908. # 10*(2^10) chars as input seems more than enough
  2909. test $ac_count -gt 10 && break
  2910. done
  2911. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2912. esac
  2913. $ac_path_GREP_found && break 3
  2914. done
  2915. done
  2916. done
  2917. IFS=$as_save_IFS
  2918. fi
  2919. GREP="$ac_cv_path_GREP"
  2920. if test -z "$GREP"; then
  2921. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2922. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2923. { (exit 1); exit 1; }; }
  2924. fi
  2925. else
  2926. ac_cv_path_GREP=$GREP
  2927. fi
  2928. fi
  2929. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2930. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2931. GREP="$ac_cv_path_GREP"
  2932. { echo "$as_me:$LINENO: checking for egrep" >&5
  2933. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2934. if test "${ac_cv_path_EGREP+set}" = set; then
  2935. echo $ECHO_N "(cached) $ECHO_C" >&6
  2936. else
  2937. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2938. then ac_cv_path_EGREP="$GREP -E"
  2939. else
  2940. # Extract the first word of "egrep" to use in msg output
  2941. if test -z "$EGREP"; then
  2942. set dummy egrep; ac_prog_name=$2
  2943. if test "${ac_cv_path_EGREP+set}" = set; then
  2944. echo $ECHO_N "(cached) $ECHO_C" >&6
  2945. else
  2946. ac_path_EGREP_found=false
  2947. # Loop through the user's path and test for each of PROGNAME-LIST
  2948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2949. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2950. do
  2951. IFS=$as_save_IFS
  2952. test -z "$as_dir" && as_dir=.
  2953. for ac_prog in egrep; do
  2954. for ac_exec_ext in '' $ac_executable_extensions; do
  2955. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2956. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2957. # Check for GNU ac_path_EGREP and select it if it is found.
  2958. # Check for GNU $ac_path_EGREP
  2959. case `"$ac_path_EGREP" --version 2>&1` in
  2960. *GNU*)
  2961. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2962. *)
  2963. ac_count=0
  2964. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2965. while :
  2966. do
  2967. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2968. mv "conftest.tmp" "conftest.in"
  2969. cp "conftest.in" "conftest.nl"
  2970. echo 'EGREP' >> "conftest.nl"
  2971. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2972. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2973. ac_count=`expr $ac_count + 1`
  2974. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2975. # Best one so far, save it but keep looking for a better one
  2976. ac_cv_path_EGREP="$ac_path_EGREP"
  2977. ac_path_EGREP_max=$ac_count
  2978. fi
  2979. # 10*(2^10) chars as input seems more than enough
  2980. test $ac_count -gt 10 && break
  2981. done
  2982. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2983. esac
  2984. $ac_path_EGREP_found && break 3
  2985. done
  2986. done
  2987. done
  2988. IFS=$as_save_IFS
  2989. fi
  2990. EGREP="$ac_cv_path_EGREP"
  2991. if test -z "$EGREP"; then
  2992. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2993. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2994. { (exit 1); exit 1; }; }
  2995. fi
  2996. else
  2997. ac_cv_path_EGREP=$EGREP
  2998. fi
  2999. fi
  3000. fi
  3001. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3002. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3003. EGREP="$ac_cv_path_EGREP"
  3004. # Check whether --with-gnu-ld was given.
  3005. if test "${with_gnu_ld+set}" = set; then
  3006. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3007. else
  3008. with_gnu_ld=no
  3009. fi
  3010. ac_prog=ld
  3011. if test "$GCC" = yes; then
  3012. # Check if gcc -print-prog-name=ld gives a path.
  3013. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3014. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3015. case $host in
  3016. *-*-mingw*)
  3017. # gcc leaves a trailing carriage return which upsets mingw
  3018. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3019. *)
  3020. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3021. esac
  3022. case $ac_prog in
  3023. # Accept absolute paths.
  3024. [\\/]* | ?:[\\/]*)
  3025. re_direlt='/[^/][^/]*/\.\./'
  3026. # Canonicalize the pathname of ld
  3027. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3028. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3029. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3030. done
  3031. test -z "$LD" && LD="$ac_prog"
  3032. ;;
  3033. "")
  3034. # If it fails, then pretend we aren't using GCC.
  3035. ac_prog=ld
  3036. ;;
  3037. *)
  3038. # If it is relative, then search for the first ld in PATH.
  3039. with_gnu_ld=unknown
  3040. ;;
  3041. esac
  3042. elif test "$with_gnu_ld" = yes; then
  3043. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3044. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3045. else
  3046. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3047. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3048. fi
  3049. if test "${lt_cv_path_LD+set}" = set; then
  3050. echo $ECHO_N "(cached) $ECHO_C" >&6
  3051. else
  3052. if test -z "$LD"; then
  3053. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3054. for ac_dir in $PATH; do
  3055. IFS="$lt_save_ifs"
  3056. test -z "$ac_dir" && ac_dir=.
  3057. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3058. lt_cv_path_LD="$ac_dir/$ac_prog"
  3059. # Check to see if the program is GNU ld. I'd rather use --version,
  3060. # but apparently some variants of GNU ld only accept -v.
  3061. # Break only if it was the GNU/non-GNU ld that we prefer.
  3062. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3063. *GNU* | *'with BFD'*)
  3064. test "$with_gnu_ld" != no && break
  3065. ;;
  3066. *)
  3067. test "$with_gnu_ld" != yes && break
  3068. ;;
  3069. esac
  3070. fi
  3071. done
  3072. IFS="$lt_save_ifs"
  3073. else
  3074. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3075. fi
  3076. fi
  3077. LD="$lt_cv_path_LD"
  3078. if test -n "$LD"; then
  3079. { echo "$as_me:$LINENO: result: $LD" >&5
  3080. echo "${ECHO_T}$LD" >&6; }
  3081. else
  3082. { echo "$as_me:$LINENO: result: no" >&5
  3083. echo "${ECHO_T}no" >&6; }
  3084. fi
  3085. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3086. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3087. { (exit 1); exit 1; }; }
  3088. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3089. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3090. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3091. echo $ECHO_N "(cached) $ECHO_C" >&6
  3092. else
  3093. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3094. case `$LD -v 2>&1 </dev/null` in
  3095. *GNU* | *'with BFD'*)
  3096. lt_cv_prog_gnu_ld=yes
  3097. ;;
  3098. *)
  3099. lt_cv_prog_gnu_ld=no
  3100. ;;
  3101. esac
  3102. fi
  3103. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3104. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3105. with_gnu_ld=$lt_cv_prog_gnu_ld
  3106. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3107. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3108. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3109. echo $ECHO_N "(cached) $ECHO_C" >&6
  3110. else
  3111. lt_cv_ld_reload_flag='-r'
  3112. fi
  3113. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3114. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3115. reload_flag=$lt_cv_ld_reload_flag
  3116. case $reload_flag in
  3117. "" | " "*) ;;
  3118. *) reload_flag=" $reload_flag" ;;
  3119. esac
  3120. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3121. case $host_os in
  3122. darwin*)
  3123. if test "$GCC" = yes; then
  3124. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3125. else
  3126. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3127. fi
  3128. ;;
  3129. esac
  3130. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3131. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3132. if test "${lt_cv_path_NM+set}" = set; then
  3133. echo $ECHO_N "(cached) $ECHO_C" >&6
  3134. else
  3135. if test -n "$NM"; then
  3136. # Let the user override the test.
  3137. lt_cv_path_NM="$NM"
  3138. else
  3139. lt_nm_to_check="${ac_tool_prefix}nm"
  3140. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3141. lt_nm_to_check="$lt_nm_to_check nm"
  3142. fi
  3143. for lt_tmp_nm in $lt_nm_to_check; do
  3144. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3145. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3146. IFS="$lt_save_ifs"
  3147. test -z "$ac_dir" && ac_dir=.
  3148. tmp_nm="$ac_dir/$lt_tmp_nm"
  3149. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3150. # Check to see if the nm accepts a BSD-compat flag.
  3151. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3152. # nm: unknown option "B" ignored
  3153. # Tru64's nm complains that /dev/null is an invalid object file
  3154. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3155. */dev/null* | *'Invalid file or object type'*)
  3156. lt_cv_path_NM="$tmp_nm -B"
  3157. break
  3158. ;;
  3159. *)
  3160. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3161. */dev/null*)
  3162. lt_cv_path_NM="$tmp_nm -p"
  3163. break
  3164. ;;
  3165. *)
  3166. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3167. continue # so that we can try to find one that supports BSD flags
  3168. ;;
  3169. esac
  3170. ;;
  3171. esac
  3172. fi
  3173. done
  3174. IFS="$lt_save_ifs"
  3175. done
  3176. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3177. fi
  3178. fi
  3179. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3180. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3181. NM="$lt_cv_path_NM"
  3182. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3183. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3184. LN_S=$as_ln_s
  3185. if test "$LN_S" = "ln -s"; then
  3186. { echo "$as_me:$LINENO: result: yes" >&5
  3187. echo "${ECHO_T}yes" >&6; }
  3188. else
  3189. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3190. echo "${ECHO_T}no, using $LN_S" >&6; }
  3191. fi
  3192. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3193. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  3194. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3195. echo $ECHO_N "(cached) $ECHO_C" >&6
  3196. else
  3197. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3198. lt_cv_file_magic_test_file=
  3199. lt_cv_deplibs_check_method='unknown'
  3200. # Need to set the preceding variable on all platforms that support
  3201. # interlibrary dependencies.
  3202. # 'none' -- dependencies not supported.
  3203. # `unknown' -- same as none, but documents that we really don't know.
  3204. # 'pass_all' -- all dependencies passed with no checks.
  3205. # 'test_compile' -- check by making test program.
  3206. # 'file_magic [[regex]]' -- check by looking for files in library path
  3207. # which responds to the $file_magic_cmd with a given extended regex.
  3208. # If you have `file' or equivalent on your system and you're not sure
  3209. # whether `pass_all' will *always* work, you probably want this one.
  3210. case $host_os in
  3211. aix4* | aix5*)
  3212. lt_cv_deplibs_check_method=pass_all
  3213. ;;
  3214. beos*)
  3215. lt_cv_deplibs_check_method=pass_all
  3216. ;;
  3217. bsdi[45]*)
  3218. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3219. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3220. lt_cv_file_magic_test_file=/shlib/libc.so
  3221. ;;
  3222. cygwin*)
  3223. # func_win32_libid is a shell function defined in ltmain.sh
  3224. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3225. lt_cv_file_magic_cmd='func_win32_libid'
  3226. ;;
  3227. mingw* | pw32*)
  3228. # Base MSYS/MinGW do not provide the 'file' command needed by
  3229. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3230. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3231. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3232. ;;
  3233. darwin* | rhapsody*)
  3234. lt_cv_deplibs_check_method=pass_all
  3235. ;;
  3236. freebsd* | kfreebsd*-gnu | dragonfly*)
  3237. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3238. case $host_cpu in
  3239. i*86 )
  3240. # Not sure whether the presence of OpenBSD here was a mistake.
  3241. # Let's accept both of them until this is cleared up.
  3242. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3243. lt_cv_file_magic_cmd=/usr/bin/file
  3244. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3245. ;;
  3246. esac
  3247. else
  3248. lt_cv_deplibs_check_method=pass_all
  3249. fi
  3250. ;;
  3251. gnu*)
  3252. lt_cv_deplibs_check_method=pass_all
  3253. ;;
  3254. hpux10.20* | hpux11*)
  3255. lt_cv_file_magic_cmd=/usr/bin/file
  3256. case $host_cpu in
  3257. ia64*)
  3258. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3259. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3260. ;;
  3261. hppa*64*)
  3262. 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]'
  3263. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3264. ;;
  3265. *)
  3266. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3267. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3268. ;;
  3269. esac
  3270. ;;
  3271. interix3*)
  3272. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3273. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3274. ;;
  3275. irix5* | irix6* | nonstopux*)
  3276. case $LD in
  3277. *-32|*"-32 ") libmagic=32-bit;;
  3278. *-n32|*"-n32 ") libmagic=N32;;
  3279. *-64|*"-64 ") libmagic=64-bit;;
  3280. *) libmagic=never-match;;
  3281. esac
  3282. lt_cv_deplibs_check_method=pass_all
  3283. ;;
  3284. # This must be Linux ELF.
  3285. linux*)
  3286. lt_cv_deplibs_check_method=pass_all
  3287. ;;
  3288. netbsd*)
  3289. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3290. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3291. else
  3292. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3293. fi
  3294. ;;
  3295. newos6*)
  3296. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3297. lt_cv_file_magic_cmd=/usr/bin/file
  3298. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3299. ;;
  3300. nto-qnx*)
  3301. lt_cv_deplibs_check_method=unknown
  3302. ;;
  3303. openbsd*)
  3304. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3305. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3306. else
  3307. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3308. fi
  3309. ;;
  3310. osf3* | osf4* | osf5*)
  3311. lt_cv_deplibs_check_method=pass_all
  3312. ;;
  3313. solaris*)
  3314. lt_cv_deplibs_check_method=pass_all
  3315. ;;
  3316. sysv4 | sysv4.3*)
  3317. case $host_vendor in
  3318. motorola)
  3319. 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]'
  3320. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3321. ;;
  3322. ncr)
  3323. lt_cv_deplibs_check_method=pass_all
  3324. ;;
  3325. sequent)
  3326. lt_cv_file_magic_cmd='/bin/file'
  3327. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3328. ;;
  3329. sni)
  3330. lt_cv_file_magic_cmd='/bin/file'
  3331. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3332. lt_cv_file_magic_test_file=/lib/libc.so
  3333. ;;
  3334. siemens)
  3335. lt_cv_deplibs_check_method=pass_all
  3336. ;;
  3337. pc)
  3338. lt_cv_deplibs_check_method=pass_all
  3339. ;;
  3340. esac
  3341. ;;
  3342. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3343. lt_cv_deplibs_check_method=pass_all
  3344. ;;
  3345. esac
  3346. fi
  3347. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3348. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  3349. file_magic_cmd=$lt_cv_file_magic_cmd
  3350. deplibs_check_method=$lt_cv_deplibs_check_method
  3351. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3352. # If no C compiler was specified, use CC.
  3353. LTCC=${LTCC-"$CC"}
  3354. # If no C compiler flags were specified, use CFLAGS.
  3355. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3356. # Allow CC to be a program name with arguments.
  3357. compiler=$CC
  3358. # Check whether --enable-libtool-lock was given.
  3359. if test "${enable_libtool_lock+set}" = set; then
  3360. enableval=$enable_libtool_lock;
  3361. fi
  3362. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3363. # Some flags need to be propagated to the compiler or linker for good
  3364. # libtool support.
  3365. case $host in
  3366. ia64-*-hpux*)
  3367. # Find out which ABI we are using.
  3368. echo 'int i;' > conftest.$ac_ext
  3369. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3370. (eval $ac_compile) 2>&5
  3371. ac_status=$?
  3372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3373. (exit $ac_status); }; then
  3374. case `/usr/bin/file conftest.$ac_objext` in
  3375. *ELF-32*)
  3376. HPUX_IA64_MODE="32"
  3377. ;;
  3378. *ELF-64*)
  3379. HPUX_IA64_MODE="64"
  3380. ;;
  3381. esac
  3382. fi
  3383. rm -rf conftest*
  3384. ;;
  3385. *-*-irix6*)
  3386. # Find out which ABI we are using.
  3387. echo '#line 3794 "configure"' > conftest.$ac_ext
  3388. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3389. (eval $ac_compile) 2>&5
  3390. ac_status=$?
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); }; then
  3393. if test "$lt_cv_prog_gnu_ld" = yes; then
  3394. case `/usr/bin/file conftest.$ac_objext` in
  3395. *32-bit*)
  3396. LD="${LD-ld} -melf32bsmip"
  3397. ;;
  3398. *N32*)
  3399. LD="${LD-ld} -melf32bmipn32"
  3400. ;;
  3401. *64-bit*)
  3402. LD="${LD-ld} -melf64bmip"
  3403. ;;
  3404. esac
  3405. else
  3406. case `/usr/bin/file conftest.$ac_objext` in
  3407. *32-bit*)
  3408. LD="${LD-ld} -32"
  3409. ;;
  3410. *N32*)
  3411. LD="${LD-ld} -n32"
  3412. ;;
  3413. *64-bit*)
  3414. LD="${LD-ld} -64"
  3415. ;;
  3416. esac
  3417. fi
  3418. fi
  3419. rm -rf conftest*
  3420. ;;
  3421. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3422. # Find out which ABI we are using.
  3423. echo 'int i;' > conftest.$ac_ext
  3424. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3425. (eval $ac_compile) 2>&5
  3426. ac_status=$?
  3427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3428. (exit $ac_status); }; then
  3429. case `/usr/bin/file conftest.o` in
  3430. *32-bit*)
  3431. case $host in
  3432. x86_64-*linux*)
  3433. LD="${LD-ld} -m elf_i386"
  3434. ;;
  3435. ppc64-*linux*|powerpc64-*linux*)
  3436. LD="${LD-ld} -m elf32ppclinux"
  3437. ;;
  3438. s390x-*linux*)
  3439. LD="${LD-ld} -m elf_s390"
  3440. ;;
  3441. sparc64-*linux*)
  3442. LD="${LD-ld} -m elf32_sparc"
  3443. ;;
  3444. esac
  3445. ;;
  3446. *64-bit*)
  3447. case $host in
  3448. x86_64-*linux*)
  3449. LD="${LD-ld} -m elf_x86_64"
  3450. ;;
  3451. ppc*-*linux*|powerpc*-*linux*)
  3452. LD="${LD-ld} -m elf64ppc"
  3453. ;;
  3454. s390*-*linux*)
  3455. LD="${LD-ld} -m elf64_s390"
  3456. ;;
  3457. sparc*-*linux*)
  3458. LD="${LD-ld} -m elf64_sparc"
  3459. ;;
  3460. esac
  3461. ;;
  3462. esac
  3463. fi
  3464. rm -rf conftest*
  3465. ;;
  3466. *-*-sco3.2v5*)
  3467. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3468. SAVE_CFLAGS="$CFLAGS"
  3469. CFLAGS="$CFLAGS -belf"
  3470. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3471. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  3472. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3473. echo $ECHO_N "(cached) $ECHO_C" >&6
  3474. else
  3475. ac_ext=c
  3476. ac_cpp='$CPP $CPPFLAGS'
  3477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3480. cat >conftest.$ac_ext <<_ACEOF
  3481. /* confdefs.h. */
  3482. _ACEOF
  3483. cat confdefs.h >>conftest.$ac_ext
  3484. cat >>conftest.$ac_ext <<_ACEOF
  3485. /* end confdefs.h. */
  3486. int
  3487. main ()
  3488. {
  3489. ;
  3490. return 0;
  3491. }
  3492. _ACEOF
  3493. rm -f conftest.$ac_objext conftest$ac_exeext
  3494. if { (ac_try="$ac_link"
  3495. case "(($ac_try" in
  3496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3497. *) ac_try_echo=$ac_try;;
  3498. esac
  3499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3500. (eval "$ac_link") 2>conftest.er1
  3501. ac_status=$?
  3502. grep -v '^ *+' conftest.er1 >conftest.err
  3503. rm -f conftest.er1
  3504. cat conftest.err >&5
  3505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3506. (exit $ac_status); } && {
  3507. test -z "$ac_c_werror_flag" ||
  3508. test ! -s conftest.err
  3509. } && test -s conftest$ac_exeext &&
  3510. $as_test_x conftest$ac_exeext; then
  3511. lt_cv_cc_needs_belf=yes
  3512. else
  3513. echo "$as_me: failed program was:" >&5
  3514. sed 's/^/| /' conftest.$ac_ext >&5
  3515. lt_cv_cc_needs_belf=no
  3516. fi
  3517. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3518. conftest$ac_exeext conftest.$ac_ext
  3519. ac_ext=c
  3520. ac_cpp='$CPP $CPPFLAGS'
  3521. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3522. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3523. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3524. fi
  3525. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  3526. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  3527. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3528. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3529. CFLAGS="$SAVE_CFLAGS"
  3530. fi
  3531. ;;
  3532. sparc*-*solaris*)
  3533. # Find out which ABI we are using.
  3534. echo 'int i;' > conftest.$ac_ext
  3535. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3536. (eval $ac_compile) 2>&5
  3537. ac_status=$?
  3538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3539. (exit $ac_status); }; then
  3540. case `/usr/bin/file conftest.o` in
  3541. *64-bit*)
  3542. case $lt_cv_prog_gnu_ld in
  3543. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  3544. *) LD="${LD-ld} -64" ;;
  3545. esac
  3546. ;;
  3547. esac
  3548. fi
  3549. rm -rf conftest*
  3550. ;;
  3551. esac
  3552. need_locks="$enable_libtool_lock"
  3553. ac_ext=c
  3554. ac_cpp='$CPP $CPPFLAGS'
  3555. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3556. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3557. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3558. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3559. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3560. # On Suns, sometimes $CPP names a directory.
  3561. if test -n "$CPP" && test -d "$CPP"; then
  3562. CPP=
  3563. fi
  3564. if test -z "$CPP"; then
  3565. if test "${ac_cv_prog_CPP+set}" = set; then
  3566. echo $ECHO_N "(cached) $ECHO_C" >&6
  3567. else
  3568. # Double quotes because CPP needs to be expanded
  3569. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3570. do
  3571. ac_preproc_ok=false
  3572. for ac_c_preproc_warn_flag in '' yes
  3573. do
  3574. # Use a header file that comes with gcc, so configuring glibc
  3575. # with a fresh cross-compiler works.
  3576. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3577. # <limits.h> exists even on freestanding compilers.
  3578. # On the NeXT, cc -E runs the code through the compiler's parser,
  3579. # not just through cpp. "Syntax error" is here to catch this case.
  3580. cat >conftest.$ac_ext <<_ACEOF
  3581. /* confdefs.h. */
  3582. _ACEOF
  3583. cat confdefs.h >>conftest.$ac_ext
  3584. cat >>conftest.$ac_ext <<_ACEOF
  3585. /* end confdefs.h. */
  3586. #ifdef __STDC__
  3587. # include <limits.h>
  3588. #else
  3589. # include <assert.h>
  3590. #endif
  3591. Syntax error
  3592. _ACEOF
  3593. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3594. case "(($ac_try" in
  3595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3596. *) ac_try_echo=$ac_try;;
  3597. esac
  3598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3599. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3600. ac_status=$?
  3601. grep -v '^ *+' conftest.er1 >conftest.err
  3602. rm -f conftest.er1
  3603. cat conftest.err >&5
  3604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3605. (exit $ac_status); } >/dev/null && {
  3606. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3607. test ! -s conftest.err
  3608. }; then
  3609. :
  3610. else
  3611. echo "$as_me: failed program was:" >&5
  3612. sed 's/^/| /' conftest.$ac_ext >&5
  3613. # Broken: fails on valid input.
  3614. continue
  3615. fi
  3616. rm -f conftest.err conftest.$ac_ext
  3617. # OK, works on sane cases. Now check whether nonexistent headers
  3618. # can be detected and how.
  3619. cat >conftest.$ac_ext <<_ACEOF
  3620. /* confdefs.h. */
  3621. _ACEOF
  3622. cat confdefs.h >>conftest.$ac_ext
  3623. cat >>conftest.$ac_ext <<_ACEOF
  3624. /* end confdefs.h. */
  3625. #include <ac_nonexistent.h>
  3626. _ACEOF
  3627. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3628. case "(($ac_try" in
  3629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3630. *) ac_try_echo=$ac_try;;
  3631. esac
  3632. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3633. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3634. ac_status=$?
  3635. grep -v '^ *+' conftest.er1 >conftest.err
  3636. rm -f conftest.er1
  3637. cat conftest.err >&5
  3638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3639. (exit $ac_status); } >/dev/null && {
  3640. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3641. test ! -s conftest.err
  3642. }; then
  3643. # Broken: success on invalid input.
  3644. continue
  3645. else
  3646. echo "$as_me: failed program was:" >&5
  3647. sed 's/^/| /' conftest.$ac_ext >&5
  3648. # Passes both tests.
  3649. ac_preproc_ok=:
  3650. break
  3651. fi
  3652. rm -f conftest.err conftest.$ac_ext
  3653. done
  3654. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3655. rm -f conftest.err conftest.$ac_ext
  3656. if $ac_preproc_ok; then
  3657. break
  3658. fi
  3659. done
  3660. ac_cv_prog_CPP=$CPP
  3661. fi
  3662. CPP=$ac_cv_prog_CPP
  3663. else
  3664. ac_cv_prog_CPP=$CPP
  3665. fi
  3666. { echo "$as_me:$LINENO: result: $CPP" >&5
  3667. echo "${ECHO_T}$CPP" >&6; }
  3668. ac_preproc_ok=false
  3669. for ac_c_preproc_warn_flag in '' yes
  3670. do
  3671. # Use a header file that comes with gcc, so configuring glibc
  3672. # with a fresh cross-compiler works.
  3673. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3674. # <limits.h> exists even on freestanding compilers.
  3675. # On the NeXT, cc -E runs the code through the compiler's parser,
  3676. # not just through cpp. "Syntax error" is here to catch this case.
  3677. cat >conftest.$ac_ext <<_ACEOF
  3678. /* confdefs.h. */
  3679. _ACEOF
  3680. cat confdefs.h >>conftest.$ac_ext
  3681. cat >>conftest.$ac_ext <<_ACEOF
  3682. /* end confdefs.h. */
  3683. #ifdef __STDC__
  3684. # include <limits.h>
  3685. #else
  3686. # include <assert.h>
  3687. #endif
  3688. Syntax error
  3689. _ACEOF
  3690. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3691. case "(($ac_try" in
  3692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3693. *) ac_try_echo=$ac_try;;
  3694. esac
  3695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3696. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3697. ac_status=$?
  3698. grep -v '^ *+' conftest.er1 >conftest.err
  3699. rm -f conftest.er1
  3700. cat conftest.err >&5
  3701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3702. (exit $ac_status); } >/dev/null && {
  3703. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3704. test ! -s conftest.err
  3705. }; then
  3706. :
  3707. else
  3708. echo "$as_me: failed program was:" >&5
  3709. sed 's/^/| /' conftest.$ac_ext >&5
  3710. # Broken: fails on valid input.
  3711. continue
  3712. fi
  3713. rm -f conftest.err conftest.$ac_ext
  3714. # OK, works on sane cases. Now check whether nonexistent headers
  3715. # can be detected and how.
  3716. cat >conftest.$ac_ext <<_ACEOF
  3717. /* confdefs.h. */
  3718. _ACEOF
  3719. cat confdefs.h >>conftest.$ac_ext
  3720. cat >>conftest.$ac_ext <<_ACEOF
  3721. /* end confdefs.h. */
  3722. #include <ac_nonexistent.h>
  3723. _ACEOF
  3724. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3725. case "(($ac_try" in
  3726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3727. *) ac_try_echo=$ac_try;;
  3728. esac
  3729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3730. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3731. ac_status=$?
  3732. grep -v '^ *+' conftest.er1 >conftest.err
  3733. rm -f conftest.er1
  3734. cat conftest.err >&5
  3735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3736. (exit $ac_status); } >/dev/null && {
  3737. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3738. test ! -s conftest.err
  3739. }; then
  3740. # Broken: success on invalid input.
  3741. continue
  3742. else
  3743. echo "$as_me: failed program was:" >&5
  3744. sed 's/^/| /' conftest.$ac_ext >&5
  3745. # Passes both tests.
  3746. ac_preproc_ok=:
  3747. break
  3748. fi
  3749. rm -f conftest.err conftest.$ac_ext
  3750. done
  3751. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3752. rm -f conftest.err conftest.$ac_ext
  3753. if $ac_preproc_ok; then
  3754. :
  3755. else
  3756. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3757. See \`config.log' for more details." >&5
  3758. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3759. See \`config.log' for more details." >&2;}
  3760. { (exit 1); exit 1; }; }
  3761. fi
  3762. ac_ext=c
  3763. ac_cpp='$CPP $CPPFLAGS'
  3764. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3765. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3766. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3767. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3768. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3769. if test "${ac_cv_header_stdc+set}" = set; then
  3770. echo $ECHO_N "(cached) $ECHO_C" >&6
  3771. else
  3772. cat >conftest.$ac_ext <<_ACEOF
  3773. /* confdefs.h. */
  3774. _ACEOF
  3775. cat confdefs.h >>conftest.$ac_ext
  3776. cat >>conftest.$ac_ext <<_ACEOF
  3777. /* end confdefs.h. */
  3778. #include <stdlib.h>
  3779. #include <stdarg.h>
  3780. #include <string.h>
  3781. #include <float.h>
  3782. int
  3783. main ()
  3784. {
  3785. ;
  3786. return 0;
  3787. }
  3788. _ACEOF
  3789. rm -f conftest.$ac_objext
  3790. if { (ac_try="$ac_compile"
  3791. case "(($ac_try" in
  3792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3793. *) ac_try_echo=$ac_try;;
  3794. esac
  3795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3796. (eval "$ac_compile") 2>conftest.er1
  3797. ac_status=$?
  3798. grep -v '^ *+' conftest.er1 >conftest.err
  3799. rm -f conftest.er1
  3800. cat conftest.err >&5
  3801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3802. (exit $ac_status); } && {
  3803. test -z "$ac_c_werror_flag" ||
  3804. test ! -s conftest.err
  3805. } && test -s conftest.$ac_objext; then
  3806. ac_cv_header_stdc=yes
  3807. else
  3808. echo "$as_me: failed program was:" >&5
  3809. sed 's/^/| /' conftest.$ac_ext >&5
  3810. ac_cv_header_stdc=no
  3811. fi
  3812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3813. if test $ac_cv_header_stdc = yes; then
  3814. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3815. cat >conftest.$ac_ext <<_ACEOF
  3816. /* confdefs.h. */
  3817. _ACEOF
  3818. cat confdefs.h >>conftest.$ac_ext
  3819. cat >>conftest.$ac_ext <<_ACEOF
  3820. /* end confdefs.h. */
  3821. #include <string.h>
  3822. _ACEOF
  3823. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3824. $EGREP "memchr" >/dev/null 2>&1; then
  3825. :
  3826. else
  3827. ac_cv_header_stdc=no
  3828. fi
  3829. rm -f conftest*
  3830. fi
  3831. if test $ac_cv_header_stdc = yes; then
  3832. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3833. cat >conftest.$ac_ext <<_ACEOF
  3834. /* confdefs.h. */
  3835. _ACEOF
  3836. cat confdefs.h >>conftest.$ac_ext
  3837. cat >>conftest.$ac_ext <<_ACEOF
  3838. /* end confdefs.h. */
  3839. #include <stdlib.h>
  3840. _ACEOF
  3841. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3842. $EGREP "free" >/dev/null 2>&1; then
  3843. :
  3844. else
  3845. ac_cv_header_stdc=no
  3846. fi
  3847. rm -f conftest*
  3848. fi
  3849. if test $ac_cv_header_stdc = yes; then
  3850. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3851. if test "$cross_compiling" = yes; then
  3852. :
  3853. else
  3854. cat >conftest.$ac_ext <<_ACEOF
  3855. /* confdefs.h. */
  3856. _ACEOF
  3857. cat confdefs.h >>conftest.$ac_ext
  3858. cat >>conftest.$ac_ext <<_ACEOF
  3859. /* end confdefs.h. */
  3860. #include <ctype.h>
  3861. #include <stdlib.h>
  3862. #if ((' ' & 0x0FF) == 0x020)
  3863. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3864. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3865. #else
  3866. # define ISLOWER(c) \
  3867. (('a' <= (c) && (c) <= 'i') \
  3868. || ('j' <= (c) && (c) <= 'r') \
  3869. || ('s' <= (c) && (c) <= 'z'))
  3870. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3871. #endif
  3872. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3873. int
  3874. main ()
  3875. {
  3876. int i;
  3877. for (i = 0; i < 256; i++)
  3878. if (XOR (islower (i), ISLOWER (i))
  3879. || toupper (i) != TOUPPER (i))
  3880. return 2;
  3881. return 0;
  3882. }
  3883. _ACEOF
  3884. rm -f conftest$ac_exeext
  3885. if { (ac_try="$ac_link"
  3886. case "(($ac_try" in
  3887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3888. *) ac_try_echo=$ac_try;;
  3889. esac
  3890. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3891. (eval "$ac_link") 2>&5
  3892. ac_status=$?
  3893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3894. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3895. { (case "(($ac_try" in
  3896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3897. *) ac_try_echo=$ac_try;;
  3898. esac
  3899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3900. (eval "$ac_try") 2>&5
  3901. ac_status=$?
  3902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3903. (exit $ac_status); }; }; then
  3904. :
  3905. else
  3906. echo "$as_me: program exited with status $ac_status" >&5
  3907. echo "$as_me: failed program was:" >&5
  3908. sed 's/^/| /' conftest.$ac_ext >&5
  3909. ( exit $ac_status )
  3910. ac_cv_header_stdc=no
  3911. fi
  3912. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3913. fi
  3914. fi
  3915. fi
  3916. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3917. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3918. if test $ac_cv_header_stdc = yes; then
  3919. cat >>confdefs.h <<\_ACEOF
  3920. #define STDC_HEADERS 1
  3921. _ACEOF
  3922. fi
  3923. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3924. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3925. inttypes.h stdint.h unistd.h
  3926. do
  3927. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3928. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3929. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3930. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3931. echo $ECHO_N "(cached) $ECHO_C" >&6
  3932. else
  3933. cat >conftest.$ac_ext <<_ACEOF
  3934. /* confdefs.h. */
  3935. _ACEOF
  3936. cat confdefs.h >>conftest.$ac_ext
  3937. cat >>conftest.$ac_ext <<_ACEOF
  3938. /* end confdefs.h. */
  3939. $ac_includes_default
  3940. #include <$ac_header>
  3941. _ACEOF
  3942. rm -f conftest.$ac_objext
  3943. if { (ac_try="$ac_compile"
  3944. case "(($ac_try" in
  3945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3946. *) ac_try_echo=$ac_try;;
  3947. esac
  3948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3949. (eval "$ac_compile") 2>conftest.er1
  3950. ac_status=$?
  3951. grep -v '^ *+' conftest.er1 >conftest.err
  3952. rm -f conftest.er1
  3953. cat conftest.err >&5
  3954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3955. (exit $ac_status); } && {
  3956. test -z "$ac_c_werror_flag" ||
  3957. test ! -s conftest.err
  3958. } && test -s conftest.$ac_objext; then
  3959. eval "$as_ac_Header=yes"
  3960. else
  3961. echo "$as_me: failed program was:" >&5
  3962. sed 's/^/| /' conftest.$ac_ext >&5
  3963. eval "$as_ac_Header=no"
  3964. fi
  3965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3966. fi
  3967. ac_res=`eval echo '${'$as_ac_Header'}'`
  3968. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3969. echo "${ECHO_T}$ac_res" >&6; }
  3970. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3971. cat >>confdefs.h <<_ACEOF
  3972. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3973. _ACEOF
  3974. fi
  3975. done
  3976. for ac_header in dlfcn.h
  3977. do
  3978. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3979. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3980. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3981. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3982. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3983. echo $ECHO_N "(cached) $ECHO_C" >&6
  3984. fi
  3985. ac_res=`eval echo '${'$as_ac_Header'}'`
  3986. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3987. echo "${ECHO_T}$ac_res" >&6; }
  3988. else
  3989. # Is the header compilable?
  3990. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3991. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  3992. cat >conftest.$ac_ext <<_ACEOF
  3993. /* confdefs.h. */
  3994. _ACEOF
  3995. cat confdefs.h >>conftest.$ac_ext
  3996. cat >>conftest.$ac_ext <<_ACEOF
  3997. /* end confdefs.h. */
  3998. $ac_includes_default
  3999. #include <$ac_header>
  4000. _ACEOF
  4001. rm -f conftest.$ac_objext
  4002. if { (ac_try="$ac_compile"
  4003. case "(($ac_try" in
  4004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4005. *) ac_try_echo=$ac_try;;
  4006. esac
  4007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4008. (eval "$ac_compile") 2>conftest.er1
  4009. ac_status=$?
  4010. grep -v '^ *+' conftest.er1 >conftest.err
  4011. rm -f conftest.er1
  4012. cat conftest.err >&5
  4013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4014. (exit $ac_status); } && {
  4015. test -z "$ac_c_werror_flag" ||
  4016. test ! -s conftest.err
  4017. } && test -s conftest.$ac_objext; then
  4018. ac_header_compiler=yes
  4019. else
  4020. echo "$as_me: failed program was:" >&5
  4021. sed 's/^/| /' conftest.$ac_ext >&5
  4022. ac_header_compiler=no
  4023. fi
  4024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4025. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4026. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4027. # Is the header present?
  4028. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4029. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4030. cat >conftest.$ac_ext <<_ACEOF
  4031. /* confdefs.h. */
  4032. _ACEOF
  4033. cat confdefs.h >>conftest.$ac_ext
  4034. cat >>conftest.$ac_ext <<_ACEOF
  4035. /* end confdefs.h. */
  4036. #include <$ac_header>
  4037. _ACEOF
  4038. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4039. case "(($ac_try" in
  4040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4041. *) ac_try_echo=$ac_try;;
  4042. esac
  4043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4044. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4045. ac_status=$?
  4046. grep -v '^ *+' conftest.er1 >conftest.err
  4047. rm -f conftest.er1
  4048. cat conftest.err >&5
  4049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4050. (exit $ac_status); } >/dev/null && {
  4051. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4052. test ! -s conftest.err
  4053. }; then
  4054. ac_header_preproc=yes
  4055. else
  4056. echo "$as_me: failed program was:" >&5
  4057. sed 's/^/| /' conftest.$ac_ext >&5
  4058. ac_header_preproc=no
  4059. fi
  4060. rm -f conftest.err conftest.$ac_ext
  4061. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4062. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4063. # So? What about this header?
  4064. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4065. yes:no: )
  4066. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4067. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4068. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4069. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4070. ac_header_preproc=yes
  4071. ;;
  4072. no:yes:* )
  4073. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4074. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4075. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4076. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4077. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4078. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4079. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4080. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4081. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4082. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4083. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4084. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4085. ;;
  4086. esac
  4087. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4088. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4089. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4090. echo $ECHO_N "(cached) $ECHO_C" >&6
  4091. else
  4092. eval "$as_ac_Header=\$ac_header_preproc"
  4093. fi
  4094. ac_res=`eval echo '${'$as_ac_Header'}'`
  4095. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4096. echo "${ECHO_T}$ac_res" >&6; }
  4097. fi
  4098. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4099. cat >>confdefs.h <<_ACEOF
  4100. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4101. _ACEOF
  4102. fi
  4103. done
  4104. ac_ext=cpp
  4105. ac_cpp='$CXXCPP $CPPFLAGS'
  4106. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4107. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4108. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4109. if test -z "$CXX"; then
  4110. if test -n "$CCC"; then
  4111. CXX=$CCC
  4112. else
  4113. if test -n "$ac_tool_prefix"; then
  4114. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4115. do
  4116. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4117. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4118. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4119. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4120. if test "${ac_cv_prog_CXX+set}" = set; then
  4121. echo $ECHO_N "(cached) $ECHO_C" >&6
  4122. else
  4123. if test -n "$CXX"; then
  4124. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4125. else
  4126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4127. for as_dir in $PATH
  4128. do
  4129. IFS=$as_save_IFS
  4130. test -z "$as_dir" && as_dir=.
  4131. for ac_exec_ext in '' $ac_executable_extensions; do
  4132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4133. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4134. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4135. break 2
  4136. fi
  4137. done
  4138. done
  4139. IFS=$as_save_IFS
  4140. fi
  4141. fi
  4142. CXX=$ac_cv_prog_CXX
  4143. if test -n "$CXX"; then
  4144. { echo "$as_me:$LINENO: result: $CXX" >&5
  4145. echo "${ECHO_T}$CXX" >&6; }
  4146. else
  4147. { echo "$as_me:$LINENO: result: no" >&5
  4148. echo "${ECHO_T}no" >&6; }
  4149. fi
  4150. test -n "$CXX" && break
  4151. done
  4152. fi
  4153. if test -z "$CXX"; then
  4154. ac_ct_CXX=$CXX
  4155. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4156. do
  4157. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4158. set dummy $ac_prog; ac_word=$2
  4159. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4160. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4161. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4162. echo $ECHO_N "(cached) $ECHO_C" >&6
  4163. else
  4164. if test -n "$ac_ct_CXX"; then
  4165. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4166. else
  4167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4168. for as_dir in $PATH
  4169. do
  4170. IFS=$as_save_IFS
  4171. test -z "$as_dir" && as_dir=.
  4172. for ac_exec_ext in '' $ac_executable_extensions; do
  4173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4174. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4175. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4176. break 2
  4177. fi
  4178. done
  4179. done
  4180. IFS=$as_save_IFS
  4181. fi
  4182. fi
  4183. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4184. if test -n "$ac_ct_CXX"; then
  4185. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4186. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4187. else
  4188. { echo "$as_me:$LINENO: result: no" >&5
  4189. echo "${ECHO_T}no" >&6; }
  4190. fi
  4191. test -n "$ac_ct_CXX" && break
  4192. done
  4193. if test "x$ac_ct_CXX" = x; then
  4194. CXX="g++"
  4195. else
  4196. case $cross_compiling:$ac_tool_warned in
  4197. yes:)
  4198. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4199. whose name does not start with the host triplet. If you think this
  4200. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4201. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4202. whose name does not start with the host triplet. If you think this
  4203. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4204. ac_tool_warned=yes ;;
  4205. esac
  4206. CXX=$ac_ct_CXX
  4207. fi
  4208. fi
  4209. fi
  4210. fi
  4211. # Provide some information about the compiler.
  4212. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4213. ac_compiler=`set X $ac_compile; echo $2`
  4214. { (ac_try="$ac_compiler --version >&5"
  4215. case "(($ac_try" in
  4216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4217. *) ac_try_echo=$ac_try;;
  4218. esac
  4219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4220. (eval "$ac_compiler --version >&5") 2>&5
  4221. ac_status=$?
  4222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4223. (exit $ac_status); }
  4224. { (ac_try="$ac_compiler -v >&5"
  4225. case "(($ac_try" in
  4226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4227. *) ac_try_echo=$ac_try;;
  4228. esac
  4229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4230. (eval "$ac_compiler -v >&5") 2>&5
  4231. ac_status=$?
  4232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4233. (exit $ac_status); }
  4234. { (ac_try="$ac_compiler -V >&5"
  4235. case "(($ac_try" in
  4236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4237. *) ac_try_echo=$ac_try;;
  4238. esac
  4239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4240. (eval "$ac_compiler -V >&5") 2>&5
  4241. ac_status=$?
  4242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4243. (exit $ac_status); }
  4244. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4245. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4246. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4247. echo $ECHO_N "(cached) $ECHO_C" >&6
  4248. else
  4249. cat >conftest.$ac_ext <<_ACEOF
  4250. /* confdefs.h. */
  4251. _ACEOF
  4252. cat confdefs.h >>conftest.$ac_ext
  4253. cat >>conftest.$ac_ext <<_ACEOF
  4254. /* end confdefs.h. */
  4255. int
  4256. main ()
  4257. {
  4258. #ifndef __GNUC__
  4259. choke me
  4260. #endif
  4261. ;
  4262. return 0;
  4263. }
  4264. _ACEOF
  4265. rm -f conftest.$ac_objext
  4266. if { (ac_try="$ac_compile"
  4267. case "(($ac_try" in
  4268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4269. *) ac_try_echo=$ac_try;;
  4270. esac
  4271. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4272. (eval "$ac_compile") 2>conftest.er1
  4273. ac_status=$?
  4274. grep -v '^ *+' conftest.er1 >conftest.err
  4275. rm -f conftest.er1
  4276. cat conftest.err >&5
  4277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4278. (exit $ac_status); } && {
  4279. test -z "$ac_cxx_werror_flag" ||
  4280. test ! -s conftest.err
  4281. } && test -s conftest.$ac_objext; then
  4282. ac_compiler_gnu=yes
  4283. else
  4284. echo "$as_me: failed program was:" >&5
  4285. sed 's/^/| /' conftest.$ac_ext >&5
  4286. ac_compiler_gnu=no
  4287. fi
  4288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4289. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4290. fi
  4291. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4292. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4293. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4294. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4295. ac_save_CXXFLAGS=$CXXFLAGS
  4296. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4297. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  4298. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4299. echo $ECHO_N "(cached) $ECHO_C" >&6
  4300. else
  4301. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4302. ac_cxx_werror_flag=yes
  4303. ac_cv_prog_cxx_g=no
  4304. CXXFLAGS="-g"
  4305. cat >conftest.$ac_ext <<_ACEOF
  4306. /* confdefs.h. */
  4307. _ACEOF
  4308. cat confdefs.h >>conftest.$ac_ext
  4309. cat >>conftest.$ac_ext <<_ACEOF
  4310. /* end confdefs.h. */
  4311. int
  4312. main ()
  4313. {
  4314. ;
  4315. return 0;
  4316. }
  4317. _ACEOF
  4318. rm -f conftest.$ac_objext
  4319. if { (ac_try="$ac_compile"
  4320. case "(($ac_try" in
  4321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4322. *) ac_try_echo=$ac_try;;
  4323. esac
  4324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4325. (eval "$ac_compile") 2>conftest.er1
  4326. ac_status=$?
  4327. grep -v '^ *+' conftest.er1 >conftest.err
  4328. rm -f conftest.er1
  4329. cat conftest.err >&5
  4330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4331. (exit $ac_status); } && {
  4332. test -z "$ac_cxx_werror_flag" ||
  4333. test ! -s conftest.err
  4334. } && test -s conftest.$ac_objext; then
  4335. ac_cv_prog_cxx_g=yes
  4336. else
  4337. echo "$as_me: failed program was:" >&5
  4338. sed 's/^/| /' conftest.$ac_ext >&5
  4339. CXXFLAGS=""
  4340. cat >conftest.$ac_ext <<_ACEOF
  4341. /* confdefs.h. */
  4342. _ACEOF
  4343. cat confdefs.h >>conftest.$ac_ext
  4344. cat >>conftest.$ac_ext <<_ACEOF
  4345. /* end confdefs.h. */
  4346. int
  4347. main ()
  4348. {
  4349. ;
  4350. return 0;
  4351. }
  4352. _ACEOF
  4353. rm -f conftest.$ac_objext
  4354. if { (ac_try="$ac_compile"
  4355. case "(($ac_try" in
  4356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4357. *) ac_try_echo=$ac_try;;
  4358. esac
  4359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4360. (eval "$ac_compile") 2>conftest.er1
  4361. ac_status=$?
  4362. grep -v '^ *+' conftest.er1 >conftest.err
  4363. rm -f conftest.er1
  4364. cat conftest.err >&5
  4365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4366. (exit $ac_status); } && {
  4367. test -z "$ac_cxx_werror_flag" ||
  4368. test ! -s conftest.err
  4369. } && test -s conftest.$ac_objext; then
  4370. :
  4371. else
  4372. echo "$as_me: failed program was:" >&5
  4373. sed 's/^/| /' conftest.$ac_ext >&5
  4374. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4375. CXXFLAGS="-g"
  4376. cat >conftest.$ac_ext <<_ACEOF
  4377. /* confdefs.h. */
  4378. _ACEOF
  4379. cat confdefs.h >>conftest.$ac_ext
  4380. cat >>conftest.$ac_ext <<_ACEOF
  4381. /* end confdefs.h. */
  4382. int
  4383. main ()
  4384. {
  4385. ;
  4386. return 0;
  4387. }
  4388. _ACEOF
  4389. rm -f conftest.$ac_objext
  4390. if { (ac_try="$ac_compile"
  4391. case "(($ac_try" in
  4392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4393. *) ac_try_echo=$ac_try;;
  4394. esac
  4395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4396. (eval "$ac_compile") 2>conftest.er1
  4397. ac_status=$?
  4398. grep -v '^ *+' conftest.er1 >conftest.err
  4399. rm -f conftest.er1
  4400. cat conftest.err >&5
  4401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4402. (exit $ac_status); } && {
  4403. test -z "$ac_cxx_werror_flag" ||
  4404. test ! -s conftest.err
  4405. } && test -s conftest.$ac_objext; then
  4406. ac_cv_prog_cxx_g=yes
  4407. else
  4408. echo "$as_me: failed program was:" >&5
  4409. sed 's/^/| /' conftest.$ac_ext >&5
  4410. fi
  4411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4412. fi
  4413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4414. fi
  4415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4416. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4417. fi
  4418. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4419. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  4420. if test "$ac_test_CXXFLAGS" = set; then
  4421. CXXFLAGS=$ac_save_CXXFLAGS
  4422. elif test $ac_cv_prog_cxx_g = yes; then
  4423. if test "$GXX" = yes; then
  4424. CXXFLAGS="-g -O2"
  4425. else
  4426. CXXFLAGS="-g"
  4427. fi
  4428. else
  4429. if test "$GXX" = yes; then
  4430. CXXFLAGS="-O2"
  4431. else
  4432. CXXFLAGS=
  4433. fi
  4434. fi
  4435. ac_ext=cpp
  4436. ac_cpp='$CXXCPP $CPPFLAGS'
  4437. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4438. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4439. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4440. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4441. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4442. (test "X$CXX" != "Xg++"))) ; then
  4443. ac_ext=cpp
  4444. ac_cpp='$CXXCPP $CPPFLAGS'
  4445. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4446. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4447. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4448. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4449. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4450. if test -z "$CXXCPP"; then
  4451. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4452. echo $ECHO_N "(cached) $ECHO_C" >&6
  4453. else
  4454. # Double quotes because CXXCPP needs to be expanded
  4455. for CXXCPP in "$CXX -E" "/lib/cpp"
  4456. do
  4457. ac_preproc_ok=false
  4458. for ac_cxx_preproc_warn_flag in '' yes
  4459. do
  4460. # Use a header file that comes with gcc, so configuring glibc
  4461. # with a fresh cross-compiler works.
  4462. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4463. # <limits.h> exists even on freestanding compilers.
  4464. # On the NeXT, cc -E runs the code through the compiler's parser,
  4465. # not just through cpp. "Syntax error" is here to catch this case.
  4466. cat >conftest.$ac_ext <<_ACEOF
  4467. /* confdefs.h. */
  4468. _ACEOF
  4469. cat confdefs.h >>conftest.$ac_ext
  4470. cat >>conftest.$ac_ext <<_ACEOF
  4471. /* end confdefs.h. */
  4472. #ifdef __STDC__
  4473. # include <limits.h>
  4474. #else
  4475. # include <assert.h>
  4476. #endif
  4477. Syntax error
  4478. _ACEOF
  4479. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4480. case "(($ac_try" in
  4481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4482. *) ac_try_echo=$ac_try;;
  4483. esac
  4484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4485. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4486. ac_status=$?
  4487. grep -v '^ *+' conftest.er1 >conftest.err
  4488. rm -f conftest.er1
  4489. cat conftest.err >&5
  4490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4491. (exit $ac_status); } >/dev/null && {
  4492. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4493. test ! -s conftest.err
  4494. }; then
  4495. :
  4496. else
  4497. echo "$as_me: failed program was:" >&5
  4498. sed 's/^/| /' conftest.$ac_ext >&5
  4499. # Broken: fails on valid input.
  4500. continue
  4501. fi
  4502. rm -f conftest.err conftest.$ac_ext
  4503. # OK, works on sane cases. Now check whether nonexistent headers
  4504. # can be detected and how.
  4505. cat >conftest.$ac_ext <<_ACEOF
  4506. /* confdefs.h. */
  4507. _ACEOF
  4508. cat confdefs.h >>conftest.$ac_ext
  4509. cat >>conftest.$ac_ext <<_ACEOF
  4510. /* end confdefs.h. */
  4511. #include <ac_nonexistent.h>
  4512. _ACEOF
  4513. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4514. case "(($ac_try" in
  4515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4516. *) ac_try_echo=$ac_try;;
  4517. esac
  4518. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4519. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4520. ac_status=$?
  4521. grep -v '^ *+' conftest.er1 >conftest.err
  4522. rm -f conftest.er1
  4523. cat conftest.err >&5
  4524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4525. (exit $ac_status); } >/dev/null && {
  4526. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4527. test ! -s conftest.err
  4528. }; then
  4529. # Broken: success on invalid input.
  4530. continue
  4531. else
  4532. echo "$as_me: failed program was:" >&5
  4533. sed 's/^/| /' conftest.$ac_ext >&5
  4534. # Passes both tests.
  4535. ac_preproc_ok=:
  4536. break
  4537. fi
  4538. rm -f conftest.err conftest.$ac_ext
  4539. done
  4540. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4541. rm -f conftest.err conftest.$ac_ext
  4542. if $ac_preproc_ok; then
  4543. break
  4544. fi
  4545. done
  4546. ac_cv_prog_CXXCPP=$CXXCPP
  4547. fi
  4548. CXXCPP=$ac_cv_prog_CXXCPP
  4549. else
  4550. ac_cv_prog_CXXCPP=$CXXCPP
  4551. fi
  4552. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4553. echo "${ECHO_T}$CXXCPP" >&6; }
  4554. ac_preproc_ok=false
  4555. for ac_cxx_preproc_warn_flag in '' yes
  4556. do
  4557. # Use a header file that comes with gcc, so configuring glibc
  4558. # with a fresh cross-compiler works.
  4559. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4560. # <limits.h> exists even on freestanding compilers.
  4561. # On the NeXT, cc -E runs the code through the compiler's parser,
  4562. # not just through cpp. "Syntax error" is here to catch this case.
  4563. cat >conftest.$ac_ext <<_ACEOF
  4564. /* confdefs.h. */
  4565. _ACEOF
  4566. cat confdefs.h >>conftest.$ac_ext
  4567. cat >>conftest.$ac_ext <<_ACEOF
  4568. /* end confdefs.h. */
  4569. #ifdef __STDC__
  4570. # include <limits.h>
  4571. #else
  4572. # include <assert.h>
  4573. #endif
  4574. Syntax error
  4575. _ACEOF
  4576. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4577. case "(($ac_try" in
  4578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4579. *) ac_try_echo=$ac_try;;
  4580. esac
  4581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4582. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4583. ac_status=$?
  4584. grep -v '^ *+' conftest.er1 >conftest.err
  4585. rm -f conftest.er1
  4586. cat conftest.err >&5
  4587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4588. (exit $ac_status); } >/dev/null && {
  4589. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4590. test ! -s conftest.err
  4591. }; then
  4592. :
  4593. else
  4594. echo "$as_me: failed program was:" >&5
  4595. sed 's/^/| /' conftest.$ac_ext >&5
  4596. # Broken: fails on valid input.
  4597. continue
  4598. fi
  4599. rm -f conftest.err conftest.$ac_ext
  4600. # OK, works on sane cases. Now check whether nonexistent headers
  4601. # can be detected and how.
  4602. cat >conftest.$ac_ext <<_ACEOF
  4603. /* confdefs.h. */
  4604. _ACEOF
  4605. cat confdefs.h >>conftest.$ac_ext
  4606. cat >>conftest.$ac_ext <<_ACEOF
  4607. /* end confdefs.h. */
  4608. #include <ac_nonexistent.h>
  4609. _ACEOF
  4610. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4611. case "(($ac_try" in
  4612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4613. *) ac_try_echo=$ac_try;;
  4614. esac
  4615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4616. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4617. ac_status=$?
  4618. grep -v '^ *+' conftest.er1 >conftest.err
  4619. rm -f conftest.er1
  4620. cat conftest.err >&5
  4621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4622. (exit $ac_status); } >/dev/null && {
  4623. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4624. test ! -s conftest.err
  4625. }; then
  4626. # Broken: success on invalid input.
  4627. continue
  4628. else
  4629. echo "$as_me: failed program was:" >&5
  4630. sed 's/^/| /' conftest.$ac_ext >&5
  4631. # Passes both tests.
  4632. ac_preproc_ok=:
  4633. break
  4634. fi
  4635. rm -f conftest.err conftest.$ac_ext
  4636. done
  4637. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4638. rm -f conftest.err conftest.$ac_ext
  4639. if $ac_preproc_ok; then
  4640. :
  4641. else
  4642. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4643. See \`config.log' for more details." >&5
  4644. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4645. See \`config.log' for more details." >&2;}
  4646. { (exit 1); exit 1; }; }
  4647. fi
  4648. ac_ext=cpp
  4649. ac_cpp='$CXXCPP $CPPFLAGS'
  4650. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4651. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4652. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4653. fi
  4654. ac_ext=f
  4655. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4656. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4657. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4658. if test -n "$ac_tool_prefix"; then
  4659. 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
  4660. do
  4661. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4662. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4663. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4664. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4665. if test "${ac_cv_prog_F77+set}" = set; then
  4666. echo $ECHO_N "(cached) $ECHO_C" >&6
  4667. else
  4668. if test -n "$F77"; then
  4669. ac_cv_prog_F77="$F77" # Let the user override the test.
  4670. else
  4671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4672. for as_dir in $PATH
  4673. do
  4674. IFS=$as_save_IFS
  4675. test -z "$as_dir" && as_dir=.
  4676. for ac_exec_ext in '' $ac_executable_extensions; do
  4677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4678. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4679. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4680. break 2
  4681. fi
  4682. done
  4683. done
  4684. IFS=$as_save_IFS
  4685. fi
  4686. fi
  4687. F77=$ac_cv_prog_F77
  4688. if test -n "$F77"; then
  4689. { echo "$as_me:$LINENO: result: $F77" >&5
  4690. echo "${ECHO_T}$F77" >&6; }
  4691. else
  4692. { echo "$as_me:$LINENO: result: no" >&5
  4693. echo "${ECHO_T}no" >&6; }
  4694. fi
  4695. test -n "$F77" && break
  4696. done
  4697. fi
  4698. if test -z "$F77"; then
  4699. ac_ct_F77=$F77
  4700. 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
  4701. do
  4702. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4703. set dummy $ac_prog; ac_word=$2
  4704. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4705. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4706. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4707. echo $ECHO_N "(cached) $ECHO_C" >&6
  4708. else
  4709. if test -n "$ac_ct_F77"; then
  4710. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4711. else
  4712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4713. for as_dir in $PATH
  4714. do
  4715. IFS=$as_save_IFS
  4716. test -z "$as_dir" && as_dir=.
  4717. for ac_exec_ext in '' $ac_executable_extensions; do
  4718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4719. ac_cv_prog_ac_ct_F77="$ac_prog"
  4720. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4721. break 2
  4722. fi
  4723. done
  4724. done
  4725. IFS=$as_save_IFS
  4726. fi
  4727. fi
  4728. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4729. if test -n "$ac_ct_F77"; then
  4730. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4731. echo "${ECHO_T}$ac_ct_F77" >&6; }
  4732. else
  4733. { echo "$as_me:$LINENO: result: no" >&5
  4734. echo "${ECHO_T}no" >&6; }
  4735. fi
  4736. test -n "$ac_ct_F77" && break
  4737. done
  4738. if test "x$ac_ct_F77" = x; then
  4739. F77=""
  4740. else
  4741. case $cross_compiling:$ac_tool_warned in
  4742. yes:)
  4743. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4744. whose name does not start with the host triplet. If you think this
  4745. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4746. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4747. whose name does not start with the host triplet. If you think this
  4748. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4749. ac_tool_warned=yes ;;
  4750. esac
  4751. F77=$ac_ct_F77
  4752. fi
  4753. fi
  4754. # Provide some information about the compiler.
  4755. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  4756. ac_compiler=`set X $ac_compile; echo $2`
  4757. { (ac_try="$ac_compiler --version >&5"
  4758. case "(($ac_try" in
  4759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4760. *) ac_try_echo=$ac_try;;
  4761. esac
  4762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4763. (eval "$ac_compiler --version >&5") 2>&5
  4764. ac_status=$?
  4765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4766. (exit $ac_status); }
  4767. { (ac_try="$ac_compiler -v >&5"
  4768. case "(($ac_try" in
  4769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4770. *) ac_try_echo=$ac_try;;
  4771. esac
  4772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4773. (eval "$ac_compiler -v >&5") 2>&5
  4774. ac_status=$?
  4775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4776. (exit $ac_status); }
  4777. { (ac_try="$ac_compiler -V >&5"
  4778. case "(($ac_try" in
  4779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4780. *) ac_try_echo=$ac_try;;
  4781. esac
  4782. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4783. (eval "$ac_compiler -V >&5") 2>&5
  4784. ac_status=$?
  4785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4786. (exit $ac_status); }
  4787. rm -f a.out
  4788. # If we don't use `.F' as extension, the preprocessor is not run on the
  4789. # input file. (Note that this only needs to work for GNU compilers.)
  4790. ac_save_ext=$ac_ext
  4791. ac_ext=F
  4792. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4793. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  4794. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4795. echo $ECHO_N "(cached) $ECHO_C" >&6
  4796. else
  4797. cat >conftest.$ac_ext <<_ACEOF
  4798. program main
  4799. #ifndef __GNUC__
  4800. choke me
  4801. #endif
  4802. end
  4803. _ACEOF
  4804. rm -f conftest.$ac_objext
  4805. if { (ac_try="$ac_compile"
  4806. case "(($ac_try" in
  4807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4808. *) ac_try_echo=$ac_try;;
  4809. esac
  4810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4811. (eval "$ac_compile") 2>conftest.er1
  4812. ac_status=$?
  4813. grep -v '^ *+' conftest.er1 >conftest.err
  4814. rm -f conftest.er1
  4815. cat conftest.err >&5
  4816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4817. (exit $ac_status); } && {
  4818. test -z "$ac_f77_werror_flag" ||
  4819. test ! -s conftest.err
  4820. } && test -s conftest.$ac_objext; then
  4821. ac_compiler_gnu=yes
  4822. else
  4823. echo "$as_me: failed program was:" >&5
  4824. sed 's/^/| /' conftest.$ac_ext >&5
  4825. ac_compiler_gnu=no
  4826. fi
  4827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4828. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4829. fi
  4830. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4831. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  4832. ac_ext=$ac_save_ext
  4833. ac_test_FFLAGS=${FFLAGS+set}
  4834. ac_save_FFLAGS=$FFLAGS
  4835. FFLAGS=
  4836. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4837. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  4838. if test "${ac_cv_prog_f77_g+set}" = set; then
  4839. echo $ECHO_N "(cached) $ECHO_C" >&6
  4840. else
  4841. FFLAGS=-g
  4842. cat >conftest.$ac_ext <<_ACEOF
  4843. program main
  4844. end
  4845. _ACEOF
  4846. rm -f conftest.$ac_objext
  4847. if { (ac_try="$ac_compile"
  4848. case "(($ac_try" in
  4849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4850. *) ac_try_echo=$ac_try;;
  4851. esac
  4852. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4853. (eval "$ac_compile") 2>conftest.er1
  4854. ac_status=$?
  4855. grep -v '^ *+' conftest.er1 >conftest.err
  4856. rm -f conftest.er1
  4857. cat conftest.err >&5
  4858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4859. (exit $ac_status); } && {
  4860. test -z "$ac_f77_werror_flag" ||
  4861. test ! -s conftest.err
  4862. } && test -s conftest.$ac_objext; then
  4863. ac_cv_prog_f77_g=yes
  4864. else
  4865. echo "$as_me: failed program was:" >&5
  4866. sed 's/^/| /' conftest.$ac_ext >&5
  4867. ac_cv_prog_f77_g=no
  4868. fi
  4869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4870. fi
  4871. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  4872. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  4873. if test "$ac_test_FFLAGS" = set; then
  4874. FFLAGS=$ac_save_FFLAGS
  4875. elif test $ac_cv_prog_f77_g = yes; then
  4876. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4877. FFLAGS="-g -O2"
  4878. else
  4879. FFLAGS="-g"
  4880. fi
  4881. else
  4882. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4883. FFLAGS="-O2"
  4884. else
  4885. FFLAGS=
  4886. fi
  4887. fi
  4888. G77=`test $ac_compiler_gnu = yes && echo yes`
  4889. ac_ext=c
  4890. ac_cpp='$CPP $CPPFLAGS'
  4891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4894. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4895. # find the maximum length of command line arguments
  4896. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4897. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  4898. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4899. echo $ECHO_N "(cached) $ECHO_C" >&6
  4900. else
  4901. i=0
  4902. teststring="ABCD"
  4903. case $build_os in
  4904. msdosdjgpp*)
  4905. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4906. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4907. # during glob expansion). Even if it were fixed, the result of this
  4908. # check would be larger than it should be.
  4909. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4910. ;;
  4911. gnu*)
  4912. # Under GNU Hurd, this test is not required because there is
  4913. # no limit to the length of command line arguments.
  4914. # Libtool will interpret -1 as no limit whatsoever
  4915. lt_cv_sys_max_cmd_len=-1;
  4916. ;;
  4917. cygwin* | mingw*)
  4918. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4919. # about 5 minutes as the teststring grows exponentially.
  4920. # Worse, since 9x/ME are not pre-emptively multitasking,
  4921. # you end up with a "frozen" computer, even though with patience
  4922. # the test eventually succeeds (with a max line length of 256k).
  4923. # Instead, let's just punt: use the minimum linelength reported by
  4924. # all of the supported platforms: 8192 (on NT/2K/XP).
  4925. lt_cv_sys_max_cmd_len=8192;
  4926. ;;
  4927. amigaos*)
  4928. # On AmigaOS with pdksh, this test takes hours, literally.
  4929. # So we just punt and use a minimum line length of 8192.
  4930. lt_cv_sys_max_cmd_len=8192;
  4931. ;;
  4932. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4933. # This has been around since 386BSD, at least. Likely further.
  4934. if test -x /sbin/sysctl; then
  4935. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4936. elif test -x /usr/sbin/sysctl; then
  4937. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4938. else
  4939. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4940. fi
  4941. # And add a safety zone
  4942. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4943. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4944. ;;
  4945. interix*)
  4946. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4947. lt_cv_sys_max_cmd_len=196608
  4948. ;;
  4949. osf*)
  4950. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4951. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4952. # nice to cause kernel panics so lets avoid the loop below.
  4953. # First set a reasonable default.
  4954. lt_cv_sys_max_cmd_len=16384
  4955. #
  4956. if test -x /sbin/sysconfig; then
  4957. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4958. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4959. esac
  4960. fi
  4961. ;;
  4962. sco3.2v5*)
  4963. lt_cv_sys_max_cmd_len=102400
  4964. ;;
  4965. sysv5* | sco5v6* | sysv4.2uw2*)
  4966. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4967. if test -n "$kargmax"; then
  4968. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4969. else
  4970. lt_cv_sys_max_cmd_len=32768
  4971. fi
  4972. ;;
  4973. *)
  4974. # If test is not a shell built-in, we'll probably end up computing a
  4975. # maximum length that is only half of the actual maximum length, but
  4976. # we can't tell.
  4977. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4978. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  4979. = "XX$teststring") >/dev/null 2>&1 &&
  4980. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4981. lt_cv_sys_max_cmd_len=$new_result &&
  4982. test $i != 17 # 1/2 MB should be enough
  4983. do
  4984. i=`expr $i + 1`
  4985. teststring=$teststring$teststring
  4986. done
  4987. teststring=
  4988. # Add a significant safety factor because C++ compilers can tack on massive
  4989. # amounts of additional arguments before passing them to the linker.
  4990. # It appears as though 1/2 is a usable value.
  4991. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4992. ;;
  4993. esac
  4994. fi
  4995. if test -n $lt_cv_sys_max_cmd_len ; then
  4996. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4997. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  4998. else
  4999. { echo "$as_me:$LINENO: result: none" >&5
  5000. echo "${ECHO_T}none" >&6; }
  5001. fi
  5002. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5003. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5004. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5005. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5006. echo $ECHO_N "(cached) $ECHO_C" >&6
  5007. else
  5008. # These are sane defaults that work on at least a few old systems.
  5009. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5010. # Character class describing NM global symbol codes.
  5011. symcode='[BCDEGRST]'
  5012. # Regexp to match symbols that can be accessed directly from C.
  5013. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5014. # Transform an extracted symbol line into a proper C declaration
  5015. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5016. # Transform an extracted symbol line into symbol name and symbol address
  5017. 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'"
  5018. # Define system-specific variables.
  5019. case $host_os in
  5020. aix*)
  5021. symcode='[BCDT]'
  5022. ;;
  5023. cygwin* | mingw* | pw32*)
  5024. symcode='[ABCDGISTW]'
  5025. ;;
  5026. hpux*) # Its linker distinguishes data from code symbols
  5027. if test "$host_cpu" = ia64; then
  5028. symcode='[ABCDEGRST]'
  5029. fi
  5030. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5031. 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'"
  5032. ;;
  5033. linux*)
  5034. if test "$host_cpu" = ia64; then
  5035. symcode='[ABCDGIRSTW]'
  5036. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5037. 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'"
  5038. fi
  5039. ;;
  5040. irix* | nonstopux*)
  5041. symcode='[BCDEGRST]'
  5042. ;;
  5043. osf*)
  5044. symcode='[BCDEGQRST]'
  5045. ;;
  5046. solaris*)
  5047. symcode='[BDRT]'
  5048. ;;
  5049. sco3.2v5*)
  5050. symcode='[DT]'
  5051. ;;
  5052. sysv4.2uw2*)
  5053. symcode='[DT]'
  5054. ;;
  5055. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5056. symcode='[ABDT]'
  5057. ;;
  5058. sysv4)
  5059. symcode='[DFNSTU]'
  5060. ;;
  5061. esac
  5062. # Handle CRLF in mingw tool chain
  5063. opt_cr=
  5064. case $build_os in
  5065. mingw*)
  5066. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5067. ;;
  5068. esac
  5069. # If we're using GNU nm, then use its standard symbol codes.
  5070. case `$NM -V 2>&1` in
  5071. *GNU* | *'with BFD'*)
  5072. symcode='[ABCDGIRSTW]' ;;
  5073. esac
  5074. # Try without a prefix undercore, then with it.
  5075. for ac_symprfx in "" "_"; do
  5076. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5077. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5078. # Write the raw and C identifiers.
  5079. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5080. # Check to see that the pipe works correctly.
  5081. pipe_works=no
  5082. rm -f conftest*
  5083. cat > conftest.$ac_ext <<EOF
  5084. #ifdef __cplusplus
  5085. extern "C" {
  5086. #endif
  5087. char nm_test_var;
  5088. void nm_test_func(){}
  5089. #ifdef __cplusplus
  5090. }
  5091. #endif
  5092. int main(){nm_test_var='a';nm_test_func();return(0);}
  5093. EOF
  5094. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5095. (eval $ac_compile) 2>&5
  5096. ac_status=$?
  5097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5098. (exit $ac_status); }; then
  5099. # Now try to grab the symbols.
  5100. nlist=conftest.nm
  5101. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5102. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5103. ac_status=$?
  5104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5105. (exit $ac_status); } && test -s "$nlist"; then
  5106. # Try sorting and uniquifying the output.
  5107. if sort "$nlist" | uniq > "$nlist"T; then
  5108. mv -f "$nlist"T "$nlist"
  5109. else
  5110. rm -f "$nlist"T
  5111. fi
  5112. # Make sure that we snagged all the symbols we need.
  5113. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5114. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5115. cat <<EOF > conftest.$ac_ext
  5116. #ifdef __cplusplus
  5117. extern "C" {
  5118. #endif
  5119. EOF
  5120. # Now generate the symbol file.
  5121. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5122. cat <<EOF >> conftest.$ac_ext
  5123. #if defined (__STDC__) && __STDC__
  5124. # define lt_ptr_t void *
  5125. #else
  5126. # define lt_ptr_t char *
  5127. # define const
  5128. #endif
  5129. /* The mapping between symbol names and symbols. */
  5130. const struct {
  5131. const char *name;
  5132. lt_ptr_t address;
  5133. }
  5134. lt_preloaded_symbols[] =
  5135. {
  5136. EOF
  5137. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5138. cat <<\EOF >> conftest.$ac_ext
  5139. {0, (lt_ptr_t) 0}
  5140. };
  5141. #ifdef __cplusplus
  5142. }
  5143. #endif
  5144. EOF
  5145. # Now try linking the two files.
  5146. mv conftest.$ac_objext conftstm.$ac_objext
  5147. lt_save_LIBS="$LIBS"
  5148. lt_save_CFLAGS="$CFLAGS"
  5149. LIBS="conftstm.$ac_objext"
  5150. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5151. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5152. (eval $ac_link) 2>&5
  5153. ac_status=$?
  5154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5155. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5156. pipe_works=yes
  5157. fi
  5158. LIBS="$lt_save_LIBS"
  5159. CFLAGS="$lt_save_CFLAGS"
  5160. else
  5161. echo "cannot find nm_test_func in $nlist" >&5
  5162. fi
  5163. else
  5164. echo "cannot find nm_test_var in $nlist" >&5
  5165. fi
  5166. else
  5167. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5168. fi
  5169. else
  5170. echo "$progname: failed program was:" >&5
  5171. cat conftest.$ac_ext >&5
  5172. fi
  5173. rm -f conftest* conftst*
  5174. # Do not use the global_symbol_pipe unless it works.
  5175. if test "$pipe_works" = yes; then
  5176. break
  5177. else
  5178. lt_cv_sys_global_symbol_pipe=
  5179. fi
  5180. done
  5181. fi
  5182. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5183. lt_cv_sys_global_symbol_to_cdecl=
  5184. fi
  5185. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5186. { echo "$as_me:$LINENO: result: failed" >&5
  5187. echo "${ECHO_T}failed" >&6; }
  5188. else
  5189. { echo "$as_me:$LINENO: result: ok" >&5
  5190. echo "${ECHO_T}ok" >&6; }
  5191. fi
  5192. { echo "$as_me:$LINENO: checking for objdir" >&5
  5193. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5194. if test "${lt_cv_objdir+set}" = set; then
  5195. echo $ECHO_N "(cached) $ECHO_C" >&6
  5196. else
  5197. rm -f .libs 2>/dev/null
  5198. mkdir .libs 2>/dev/null
  5199. if test -d .libs; then
  5200. lt_cv_objdir=.libs
  5201. else
  5202. # MS-DOS does not allow filenames that begin with a dot.
  5203. lt_cv_objdir=_libs
  5204. fi
  5205. rmdir .libs 2>/dev/null
  5206. fi
  5207. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5208. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5209. objdir=$lt_cv_objdir
  5210. case $host_os in
  5211. aix3*)
  5212. # AIX sometimes has problems with the GCC collect2 program. For some
  5213. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5214. # vanish in a puff of smoke.
  5215. if test "X${COLLECT_NAMES+set}" != Xset; then
  5216. COLLECT_NAMES=
  5217. export COLLECT_NAMES
  5218. fi
  5219. ;;
  5220. esac
  5221. # Sed substitution that helps us do robust quoting. It backslashifies
  5222. # metacharacters that are still active within double-quoted strings.
  5223. Xsed='sed -e 1s/^X//'
  5224. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5225. # Same as above, but do not quote variable references.
  5226. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5227. # Sed substitution to delay expansion of an escaped shell variable in a
  5228. # double_quote_subst'ed string.
  5229. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5230. # Sed substitution to avoid accidental globbing in evaled expressions
  5231. no_glob_subst='s/\*/\\\*/g'
  5232. # Constants:
  5233. rm="rm -f"
  5234. # Global variables:
  5235. default_ofile=libtool
  5236. can_build_shared=yes
  5237. # All known linkers require a `.a' archive for static linking (except MSVC,
  5238. # which needs '.lib').
  5239. libext=a
  5240. ltmain="$ac_aux_dir/ltmain.sh"
  5241. ofile="$default_ofile"
  5242. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5243. if test -n "$ac_tool_prefix"; then
  5244. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5245. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5246. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5247. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5248. if test "${ac_cv_prog_AR+set}" = set; then
  5249. echo $ECHO_N "(cached) $ECHO_C" >&6
  5250. else
  5251. if test -n "$AR"; then
  5252. ac_cv_prog_AR="$AR" # Let the user override the test.
  5253. else
  5254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5255. for as_dir in $PATH
  5256. do
  5257. IFS=$as_save_IFS
  5258. test -z "$as_dir" && as_dir=.
  5259. for ac_exec_ext in '' $ac_executable_extensions; do
  5260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5261. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5262. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5263. break 2
  5264. fi
  5265. done
  5266. done
  5267. IFS=$as_save_IFS
  5268. fi
  5269. fi
  5270. AR=$ac_cv_prog_AR
  5271. if test -n "$AR"; then
  5272. { echo "$as_me:$LINENO: result: $AR" >&5
  5273. echo "${ECHO_T}$AR" >&6; }
  5274. else
  5275. { echo "$as_me:$LINENO: result: no" >&5
  5276. echo "${ECHO_T}no" >&6; }
  5277. fi
  5278. fi
  5279. if test -z "$ac_cv_prog_AR"; then
  5280. ac_ct_AR=$AR
  5281. # Extract the first word of "ar", so it can be a program name with args.
  5282. set dummy ar; ac_word=$2
  5283. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5284. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5285. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5286. echo $ECHO_N "(cached) $ECHO_C" >&6
  5287. else
  5288. if test -n "$ac_ct_AR"; then
  5289. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5290. else
  5291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5292. for as_dir in $PATH
  5293. do
  5294. IFS=$as_save_IFS
  5295. test -z "$as_dir" && as_dir=.
  5296. for ac_exec_ext in '' $ac_executable_extensions; do
  5297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5298. ac_cv_prog_ac_ct_AR="ar"
  5299. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5300. break 2
  5301. fi
  5302. done
  5303. done
  5304. IFS=$as_save_IFS
  5305. fi
  5306. fi
  5307. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5308. if test -n "$ac_ct_AR"; then
  5309. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5310. echo "${ECHO_T}$ac_ct_AR" >&6; }
  5311. else
  5312. { echo "$as_me:$LINENO: result: no" >&5
  5313. echo "${ECHO_T}no" >&6; }
  5314. fi
  5315. if test "x$ac_ct_AR" = x; then
  5316. AR="false"
  5317. else
  5318. case $cross_compiling:$ac_tool_warned in
  5319. yes:)
  5320. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5321. whose name does not start with the host triplet. If you think this
  5322. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5323. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5324. whose name does not start with the host triplet. If you think this
  5325. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5326. ac_tool_warned=yes ;;
  5327. esac
  5328. AR=$ac_ct_AR
  5329. fi
  5330. else
  5331. AR="$ac_cv_prog_AR"
  5332. fi
  5333. if test -n "$ac_tool_prefix"; then
  5334. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5335. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5336. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5337. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5338. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5339. echo $ECHO_N "(cached) $ECHO_C" >&6
  5340. else
  5341. if test -n "$RANLIB"; then
  5342. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5343. else
  5344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5345. for as_dir in $PATH
  5346. do
  5347. IFS=$as_save_IFS
  5348. test -z "$as_dir" && as_dir=.
  5349. for ac_exec_ext in '' $ac_executable_extensions; do
  5350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5351. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5352. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5353. break 2
  5354. fi
  5355. done
  5356. done
  5357. IFS=$as_save_IFS
  5358. fi
  5359. fi
  5360. RANLIB=$ac_cv_prog_RANLIB
  5361. if test -n "$RANLIB"; then
  5362. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  5363. echo "${ECHO_T}$RANLIB" >&6; }
  5364. else
  5365. { echo "$as_me:$LINENO: result: no" >&5
  5366. echo "${ECHO_T}no" >&6; }
  5367. fi
  5368. fi
  5369. if test -z "$ac_cv_prog_RANLIB"; then
  5370. ac_ct_RANLIB=$RANLIB
  5371. # Extract the first word of "ranlib", so it can be a program name with args.
  5372. set dummy ranlib; ac_word=$2
  5373. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5374. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5375. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5376. echo $ECHO_N "(cached) $ECHO_C" >&6
  5377. else
  5378. if test -n "$ac_ct_RANLIB"; then
  5379. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5380. else
  5381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5382. for as_dir in $PATH
  5383. do
  5384. IFS=$as_save_IFS
  5385. test -z "$as_dir" && as_dir=.
  5386. for ac_exec_ext in '' $ac_executable_extensions; do
  5387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5388. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5389. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5390. break 2
  5391. fi
  5392. done
  5393. done
  5394. IFS=$as_save_IFS
  5395. fi
  5396. fi
  5397. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5398. if test -n "$ac_ct_RANLIB"; then
  5399. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5400. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  5401. else
  5402. { echo "$as_me:$LINENO: result: no" >&5
  5403. echo "${ECHO_T}no" >&6; }
  5404. fi
  5405. if test "x$ac_ct_RANLIB" = x; then
  5406. RANLIB=":"
  5407. else
  5408. case $cross_compiling:$ac_tool_warned in
  5409. yes:)
  5410. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5411. whose name does not start with the host triplet. If you think this
  5412. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5413. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5414. whose name does not start with the host triplet. If you think this
  5415. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5416. ac_tool_warned=yes ;;
  5417. esac
  5418. RANLIB=$ac_ct_RANLIB
  5419. fi
  5420. else
  5421. RANLIB="$ac_cv_prog_RANLIB"
  5422. fi
  5423. if test -n "$ac_tool_prefix"; then
  5424. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5425. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5426. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5427. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5428. if test "${ac_cv_prog_STRIP+set}" = set; then
  5429. echo $ECHO_N "(cached) $ECHO_C" >&6
  5430. else
  5431. if test -n "$STRIP"; then
  5432. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5433. else
  5434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5435. for as_dir in $PATH
  5436. do
  5437. IFS=$as_save_IFS
  5438. test -z "$as_dir" && as_dir=.
  5439. for ac_exec_ext in '' $ac_executable_extensions; do
  5440. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5441. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5442. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5443. break 2
  5444. fi
  5445. done
  5446. done
  5447. IFS=$as_save_IFS
  5448. fi
  5449. fi
  5450. STRIP=$ac_cv_prog_STRIP
  5451. if test -n "$STRIP"; then
  5452. { echo "$as_me:$LINENO: result: $STRIP" >&5
  5453. echo "${ECHO_T}$STRIP" >&6; }
  5454. else
  5455. { echo "$as_me:$LINENO: result: no" >&5
  5456. echo "${ECHO_T}no" >&6; }
  5457. fi
  5458. fi
  5459. if test -z "$ac_cv_prog_STRIP"; then
  5460. ac_ct_STRIP=$STRIP
  5461. # Extract the first word of "strip", so it can be a program name with args.
  5462. set dummy strip; ac_word=$2
  5463. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5464. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5465. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5466. echo $ECHO_N "(cached) $ECHO_C" >&6
  5467. else
  5468. if test -n "$ac_ct_STRIP"; then
  5469. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5470. else
  5471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5472. for as_dir in $PATH
  5473. do
  5474. IFS=$as_save_IFS
  5475. test -z "$as_dir" && as_dir=.
  5476. for ac_exec_ext in '' $ac_executable_extensions; do
  5477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5478. ac_cv_prog_ac_ct_STRIP="strip"
  5479. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5480. break 2
  5481. fi
  5482. done
  5483. done
  5484. IFS=$as_save_IFS
  5485. fi
  5486. fi
  5487. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5488. if test -n "$ac_ct_STRIP"; then
  5489. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5490. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  5491. else
  5492. { echo "$as_me:$LINENO: result: no" >&5
  5493. echo "${ECHO_T}no" >&6; }
  5494. fi
  5495. if test "x$ac_ct_STRIP" = x; then
  5496. STRIP=":"
  5497. else
  5498. case $cross_compiling:$ac_tool_warned in
  5499. yes:)
  5500. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5501. whose name does not start with the host triplet. If you think this
  5502. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5503. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5504. whose name does not start with the host triplet. If you think this
  5505. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5506. ac_tool_warned=yes ;;
  5507. esac
  5508. STRIP=$ac_ct_STRIP
  5509. fi
  5510. else
  5511. STRIP="$ac_cv_prog_STRIP"
  5512. fi
  5513. old_CC="$CC"
  5514. old_CFLAGS="$CFLAGS"
  5515. # Set sane defaults for various variables
  5516. test -z "$AR" && AR=ar
  5517. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5518. test -z "$AS" && AS=as
  5519. test -z "$CC" && CC=cc
  5520. test -z "$LTCC" && LTCC=$CC
  5521. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5522. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5523. test -z "$LD" && LD=ld
  5524. test -z "$LN_S" && LN_S="ln -s"
  5525. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5526. test -z "$NM" && NM=nm
  5527. test -z "$SED" && SED=sed
  5528. test -z "$OBJDUMP" && OBJDUMP=objdump
  5529. test -z "$RANLIB" && RANLIB=:
  5530. test -z "$STRIP" && STRIP=:
  5531. test -z "$ac_objext" && ac_objext=o
  5532. # Determine commands to create old-style static archives.
  5533. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5534. old_postinstall_cmds='chmod 644 $oldlib'
  5535. old_postuninstall_cmds=
  5536. if test -n "$RANLIB"; then
  5537. case $host_os in
  5538. openbsd*)
  5539. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5540. ;;
  5541. *)
  5542. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5543. ;;
  5544. esac
  5545. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5546. fi
  5547. for cc_temp in $compiler""; do
  5548. case $cc_temp in
  5549. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5550. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5551. \-*) ;;
  5552. *) break;;
  5553. esac
  5554. done
  5555. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5556. # Only perform the check for file, if the check method requires it
  5557. case $deplibs_check_method in
  5558. file_magic*)
  5559. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5560. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5561. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  5562. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5563. echo $ECHO_N "(cached) $ECHO_C" >&6
  5564. else
  5565. case $MAGIC_CMD in
  5566. [\\/*] | ?:[\\/]*)
  5567. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5568. ;;
  5569. *)
  5570. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5571. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5572. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5573. for ac_dir in $ac_dummy; do
  5574. IFS="$lt_save_ifs"
  5575. test -z "$ac_dir" && ac_dir=.
  5576. if test -f $ac_dir/${ac_tool_prefix}file; then
  5577. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5578. if test -n "$file_magic_test_file"; then
  5579. case $deplibs_check_method in
  5580. "file_magic "*)
  5581. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5582. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5583. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5584. $EGREP "$file_magic_regex" > /dev/null; then
  5585. :
  5586. else
  5587. cat <<EOF 1>&2
  5588. *** Warning: the command libtool uses to detect shared libraries,
  5589. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5590. *** The result is that libtool may fail to recognize shared libraries
  5591. *** as such. This will affect the creation of libtool libraries that
  5592. *** depend on shared libraries, but programs linked with such libtool
  5593. *** libraries will work regardless of this problem. Nevertheless, you
  5594. *** may want to report the problem to your system manager and/or to
  5595. *** bug-libtool@gnu.org
  5596. EOF
  5597. fi ;;
  5598. esac
  5599. fi
  5600. break
  5601. fi
  5602. done
  5603. IFS="$lt_save_ifs"
  5604. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5605. ;;
  5606. esac
  5607. fi
  5608. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5609. if test -n "$MAGIC_CMD"; then
  5610. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5611. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  5612. else
  5613. { echo "$as_me:$LINENO: result: no" >&5
  5614. echo "${ECHO_T}no" >&6; }
  5615. fi
  5616. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5617. if test -n "$ac_tool_prefix"; then
  5618. { echo "$as_me:$LINENO: checking for file" >&5
  5619. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  5620. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5621. echo $ECHO_N "(cached) $ECHO_C" >&6
  5622. else
  5623. case $MAGIC_CMD in
  5624. [\\/*] | ?:[\\/]*)
  5625. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5626. ;;
  5627. *)
  5628. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5629. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5630. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5631. for ac_dir in $ac_dummy; do
  5632. IFS="$lt_save_ifs"
  5633. test -z "$ac_dir" && ac_dir=.
  5634. if test -f $ac_dir/file; then
  5635. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5636. if test -n "$file_magic_test_file"; then
  5637. case $deplibs_check_method in
  5638. "file_magic "*)
  5639. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5640. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5641. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5642. $EGREP "$file_magic_regex" > /dev/null; then
  5643. :
  5644. else
  5645. cat <<EOF 1>&2
  5646. *** Warning: the command libtool uses to detect shared libraries,
  5647. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5648. *** The result is that libtool may fail to recognize shared libraries
  5649. *** as such. This will affect the creation of libtool libraries that
  5650. *** depend on shared libraries, but programs linked with such libtool
  5651. *** libraries will work regardless of this problem. Nevertheless, you
  5652. *** may want to report the problem to your system manager and/or to
  5653. *** bug-libtool@gnu.org
  5654. EOF
  5655. fi ;;
  5656. esac
  5657. fi
  5658. break
  5659. fi
  5660. done
  5661. IFS="$lt_save_ifs"
  5662. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5663. ;;
  5664. esac
  5665. fi
  5666. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5667. if test -n "$MAGIC_CMD"; then
  5668. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5669. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  5670. else
  5671. { echo "$as_me:$LINENO: result: no" >&5
  5672. echo "${ECHO_T}no" >&6; }
  5673. fi
  5674. else
  5675. MAGIC_CMD=:
  5676. fi
  5677. fi
  5678. fi
  5679. ;;
  5680. esac
  5681. enable_dlopen=no
  5682. enable_win32_dll=no
  5683. # Check whether --enable-libtool-lock was given.
  5684. if test "${enable_libtool_lock+set}" = set; then
  5685. enableval=$enable_libtool_lock;
  5686. fi
  5687. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5688. # Check whether --with-pic was given.
  5689. if test "${with_pic+set}" = set; then
  5690. withval=$with_pic; pic_mode="$withval"
  5691. else
  5692. pic_mode=default
  5693. fi
  5694. test -z "$pic_mode" && pic_mode=default
  5695. # Use C for the default configuration in the libtool script
  5696. tagname=
  5697. lt_save_CC="$CC"
  5698. ac_ext=c
  5699. ac_cpp='$CPP $CPPFLAGS'
  5700. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5701. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5702. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5703. # Source file extension for C test sources.
  5704. ac_ext=c
  5705. # Object file extension for compiled C test sources.
  5706. objext=o
  5707. objext=$objext
  5708. # Code to be used in simple compile tests
  5709. lt_simple_compile_test_code="int some_variable = 0;\n"
  5710. # Code to be used in simple link tests
  5711. lt_simple_link_test_code='int main(){return(0);}\n'
  5712. # If no C compiler was specified, use CC.
  5713. LTCC=${LTCC-"$CC"}
  5714. # If no C compiler flags were specified, use CFLAGS.
  5715. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5716. # Allow CC to be a program name with arguments.
  5717. compiler=$CC
  5718. # save warnings/boilerplate of simple test code
  5719. ac_outfile=conftest.$ac_objext
  5720. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5721. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5722. _lt_compiler_boilerplate=`cat conftest.err`
  5723. $rm conftest*
  5724. ac_outfile=conftest.$ac_objext
  5725. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5726. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5727. _lt_linker_boilerplate=`cat conftest.err`
  5728. $rm conftest*
  5729. lt_prog_compiler_no_builtin_flag=
  5730. if test "$GCC" = yes; then
  5731. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5732. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5733. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  5734. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5735. echo $ECHO_N "(cached) $ECHO_C" >&6
  5736. else
  5737. lt_cv_prog_compiler_rtti_exceptions=no
  5738. ac_outfile=conftest.$ac_objext
  5739. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5740. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5741. # Insert the option either (1) after the last *FLAGS variable, or
  5742. # (2) before a word containing "conftest.", or (3) at the end.
  5743. # Note that $ac_compile itself does not contain backslashes and begins
  5744. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5745. # The option is referenced via a variable to avoid confusing sed.
  5746. lt_compile=`echo "$ac_compile" | $SED \
  5747. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5748. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5749. -e 's:$: $lt_compiler_flag:'`
  5750. (eval echo "\"\$as_me:6412: $lt_compile\"" >&5)
  5751. (eval "$lt_compile" 2>conftest.err)
  5752. ac_status=$?
  5753. cat conftest.err >&5
  5754. echo "$as_me:6416: \$? = $ac_status" >&5
  5755. if (exit $ac_status) && test -s "$ac_outfile"; then
  5756. # The compiler can only warn and ignore the option if not recognized
  5757. # So say no if there are warnings other than the usual output.
  5758. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5759. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5760. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5761. lt_cv_prog_compiler_rtti_exceptions=yes
  5762. fi
  5763. fi
  5764. $rm conftest*
  5765. fi
  5766. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5767. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  5768. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5769. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5770. else
  5771. :
  5772. fi
  5773. fi
  5774. lt_prog_compiler_wl=
  5775. lt_prog_compiler_pic=
  5776. lt_prog_compiler_static=
  5777. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5778. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  5779. if test "$GCC" = yes; then
  5780. lt_prog_compiler_wl='-Wl,'
  5781. lt_prog_compiler_static='-static'
  5782. case $host_os in
  5783. aix*)
  5784. # All AIX code is PIC.
  5785. if test "$host_cpu" = ia64; then
  5786. # AIX 5 now supports IA64 processor
  5787. lt_prog_compiler_static='-Bstatic'
  5788. fi
  5789. ;;
  5790. amigaos*)
  5791. # FIXME: we need at least 68020 code to build shared libraries, but
  5792. # adding the `-m68020' flag to GCC prevents building anything better,
  5793. # like `-m68040'.
  5794. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5795. ;;
  5796. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5797. # PIC is the default for these OSes.
  5798. ;;
  5799. mingw* | pw32* | os2*)
  5800. # This hack is so that the source file can tell whether it is being
  5801. # built for inclusion in a dll (and should export symbols for example).
  5802. lt_prog_compiler_pic='-DDLL_EXPORT'
  5803. ;;
  5804. darwin* | rhapsody*)
  5805. # PIC is the default on this platform
  5806. # Common symbols not allowed in MH_DYLIB files
  5807. lt_prog_compiler_pic='-fno-common'
  5808. ;;
  5809. interix3*)
  5810. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5811. # Instead, we relocate shared libraries at runtime.
  5812. ;;
  5813. msdosdjgpp*)
  5814. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5815. # on systems that don't support them.
  5816. lt_prog_compiler_can_build_shared=no
  5817. enable_shared=no
  5818. ;;
  5819. sysv4*MP*)
  5820. if test -d /usr/nec; then
  5821. lt_prog_compiler_pic=-Kconform_pic
  5822. fi
  5823. ;;
  5824. hpux*)
  5825. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5826. # not for PA HP-UX.
  5827. case $host_cpu in
  5828. hppa*64*|ia64*)
  5829. # +Z the default
  5830. ;;
  5831. *)
  5832. lt_prog_compiler_pic='-fPIC'
  5833. ;;
  5834. esac
  5835. ;;
  5836. *)
  5837. lt_prog_compiler_pic='-fPIC'
  5838. ;;
  5839. esac
  5840. else
  5841. # PORTME Check for flag to pass linker flags through the system compiler.
  5842. case $host_os in
  5843. aix*)
  5844. lt_prog_compiler_wl='-Wl,'
  5845. if test "$host_cpu" = ia64; then
  5846. # AIX 5 now supports IA64 processor
  5847. lt_prog_compiler_static='-Bstatic'
  5848. else
  5849. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5850. fi
  5851. ;;
  5852. darwin*)
  5853. # PIC is the default on this platform
  5854. # Common symbols not allowed in MH_DYLIB files
  5855. case $cc_basename in
  5856. xlc*)
  5857. lt_prog_compiler_pic='-qnocommon'
  5858. lt_prog_compiler_wl='-Wl,'
  5859. ;;
  5860. esac
  5861. ;;
  5862. mingw* | pw32* | os2*)
  5863. # This hack is so that the source file can tell whether it is being
  5864. # built for inclusion in a dll (and should export symbols for example).
  5865. lt_prog_compiler_pic='-DDLL_EXPORT'
  5866. ;;
  5867. hpux9* | hpux10* | hpux11*)
  5868. lt_prog_compiler_wl='-Wl,'
  5869. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5870. # not for PA HP-UX.
  5871. case $host_cpu in
  5872. hppa*64*|ia64*)
  5873. # +Z the default
  5874. ;;
  5875. *)
  5876. lt_prog_compiler_pic='+Z'
  5877. ;;
  5878. esac
  5879. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5880. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5881. ;;
  5882. irix5* | irix6* | nonstopux*)
  5883. lt_prog_compiler_wl='-Wl,'
  5884. # PIC (with -KPIC) is the default.
  5885. lt_prog_compiler_static='-non_shared'
  5886. ;;
  5887. newsos6)
  5888. lt_prog_compiler_pic='-KPIC'
  5889. lt_prog_compiler_static='-Bstatic'
  5890. ;;
  5891. linux*)
  5892. case $cc_basename in
  5893. icc* | ecc*)
  5894. lt_prog_compiler_wl='-Wl,'
  5895. lt_prog_compiler_pic='-KPIC'
  5896. lt_prog_compiler_static='-static'
  5897. ;;
  5898. pgcc* | pgf77* | pgf90* | pgf95*)
  5899. # Portland Group compilers (*not* the Pentium gcc compiler,
  5900. # which looks to be a dead project)
  5901. lt_prog_compiler_wl='-Wl,'
  5902. lt_prog_compiler_pic='-fpic'
  5903. lt_prog_compiler_static='-Bstatic'
  5904. ;;
  5905. ccc*)
  5906. lt_prog_compiler_wl='-Wl,'
  5907. # All Alpha code is PIC.
  5908. lt_prog_compiler_static='-non_shared'
  5909. ;;
  5910. esac
  5911. ;;
  5912. osf3* | osf4* | osf5*)
  5913. lt_prog_compiler_wl='-Wl,'
  5914. # All OSF/1 code is PIC.
  5915. lt_prog_compiler_static='-non_shared'
  5916. ;;
  5917. solaris*)
  5918. lt_prog_compiler_pic='-KPIC'
  5919. lt_prog_compiler_static='-Bstatic'
  5920. case $cc_basename in
  5921. f77* | f90* | f95*)
  5922. lt_prog_compiler_wl='-Qoption ld ';;
  5923. *)
  5924. lt_prog_compiler_wl='-Wl,';;
  5925. esac
  5926. ;;
  5927. sunos4*)
  5928. lt_prog_compiler_wl='-Qoption ld '
  5929. lt_prog_compiler_pic='-PIC'
  5930. lt_prog_compiler_static='-Bstatic'
  5931. ;;
  5932. sysv4 | sysv4.2uw2* | sysv4.3*)
  5933. lt_prog_compiler_wl='-Wl,'
  5934. lt_prog_compiler_pic='-KPIC'
  5935. lt_prog_compiler_static='-Bstatic'
  5936. ;;
  5937. sysv4*MP*)
  5938. if test -d /usr/nec ;then
  5939. lt_prog_compiler_pic='-Kconform_pic'
  5940. lt_prog_compiler_static='-Bstatic'
  5941. fi
  5942. ;;
  5943. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5944. lt_prog_compiler_wl='-Wl,'
  5945. lt_prog_compiler_pic='-KPIC'
  5946. lt_prog_compiler_static='-Bstatic'
  5947. ;;
  5948. unicos*)
  5949. lt_prog_compiler_wl='-Wl,'
  5950. lt_prog_compiler_can_build_shared=no
  5951. ;;
  5952. uts4*)
  5953. lt_prog_compiler_pic='-pic'
  5954. lt_prog_compiler_static='-Bstatic'
  5955. ;;
  5956. *)
  5957. lt_prog_compiler_can_build_shared=no
  5958. ;;
  5959. esac
  5960. fi
  5961. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5962. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  5963. #
  5964. # Check to make sure the PIC flag actually works.
  5965. #
  5966. if test -n "$lt_prog_compiler_pic"; then
  5967. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5968. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  5969. if test "${lt_prog_compiler_pic_works+set}" = set; then
  5970. echo $ECHO_N "(cached) $ECHO_C" >&6
  5971. else
  5972. lt_prog_compiler_pic_works=no
  5973. ac_outfile=conftest.$ac_objext
  5974. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5975. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5976. # Insert the option either (1) after the last *FLAGS variable, or
  5977. # (2) before a word containing "conftest.", or (3) at the end.
  5978. # Note that $ac_compile itself does not contain backslashes and begins
  5979. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5980. # The option is referenced via a variable to avoid confusing sed.
  5981. lt_compile=`echo "$ac_compile" | $SED \
  5982. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5983. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5984. -e 's:$: $lt_compiler_flag:'`
  5985. (eval echo "\"\$as_me:6680: $lt_compile\"" >&5)
  5986. (eval "$lt_compile" 2>conftest.err)
  5987. ac_status=$?
  5988. cat conftest.err >&5
  5989. echo "$as_me:6684: \$? = $ac_status" >&5
  5990. if (exit $ac_status) && test -s "$ac_outfile"; then
  5991. # The compiler can only warn and ignore the option if not recognized
  5992. # So say no if there are warnings other than the usual output.
  5993. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5994. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5995. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5996. lt_prog_compiler_pic_works=yes
  5997. fi
  5998. fi
  5999. $rm conftest*
  6000. fi
  6001. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6002. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6003. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6004. case $lt_prog_compiler_pic in
  6005. "" | " "*) ;;
  6006. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6007. esac
  6008. else
  6009. lt_prog_compiler_pic=
  6010. lt_prog_compiler_can_build_shared=no
  6011. fi
  6012. fi
  6013. case $host_os in
  6014. # For platforms which do not support PIC, -DPIC is meaningless:
  6015. *djgpp*)
  6016. lt_prog_compiler_pic=
  6017. ;;
  6018. *)
  6019. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6020. ;;
  6021. esac
  6022. #
  6023. # Check to make sure the static flag actually works.
  6024. #
  6025. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6026. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6027. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6028. if test "${lt_prog_compiler_static_works+set}" = set; then
  6029. echo $ECHO_N "(cached) $ECHO_C" >&6
  6030. else
  6031. lt_prog_compiler_static_works=no
  6032. save_LDFLAGS="$LDFLAGS"
  6033. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6034. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6035. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6036. # The linker can only warn and ignore the option if not recognized
  6037. # So say no if there are warnings
  6038. if test -s conftest.err; then
  6039. # Append any errors to the config.log.
  6040. cat conftest.err 1>&5
  6041. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6042. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6043. if diff conftest.exp conftest.er2 >/dev/null; then
  6044. lt_prog_compiler_static_works=yes
  6045. fi
  6046. else
  6047. lt_prog_compiler_static_works=yes
  6048. fi
  6049. fi
  6050. $rm conftest*
  6051. LDFLAGS="$save_LDFLAGS"
  6052. fi
  6053. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6054. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6055. if test x"$lt_prog_compiler_static_works" = xyes; then
  6056. :
  6057. else
  6058. lt_prog_compiler_static=
  6059. fi
  6060. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6061. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6062. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6063. echo $ECHO_N "(cached) $ECHO_C" >&6
  6064. else
  6065. lt_cv_prog_compiler_c_o=no
  6066. $rm -r conftest 2>/dev/null
  6067. mkdir conftest
  6068. cd conftest
  6069. mkdir out
  6070. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6071. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6072. # Insert the option either (1) after the last *FLAGS variable, or
  6073. # (2) before a word containing "conftest.", or (3) at the end.
  6074. # Note that $ac_compile itself does not contain backslashes and begins
  6075. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6076. lt_compile=`echo "$ac_compile" | $SED \
  6077. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6078. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6079. -e 's:$: $lt_compiler_flag:'`
  6080. (eval echo "\"\$as_me:6784: $lt_compile\"" >&5)
  6081. (eval "$lt_compile" 2>out/conftest.err)
  6082. ac_status=$?
  6083. cat out/conftest.err >&5
  6084. echo "$as_me:6788: \$? = $ac_status" >&5
  6085. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6086. then
  6087. # The compiler can only warn and ignore the option if not recognized
  6088. # So say no if there are warnings
  6089. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6090. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6091. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6092. lt_cv_prog_compiler_c_o=yes
  6093. fi
  6094. fi
  6095. chmod u+w . 2>&5
  6096. $rm conftest*
  6097. # SGI C++ compiler will create directory out/ii_files/ for
  6098. # template instantiation
  6099. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6100. $rm out/* && rmdir out
  6101. cd ..
  6102. rmdir conftest
  6103. $rm conftest*
  6104. fi
  6105. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6106. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6107. hard_links="nottested"
  6108. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6109. # do not overwrite the value of need_locks provided by the user
  6110. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6111. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6112. hard_links=yes
  6113. $rm conftest*
  6114. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6115. touch conftest.a
  6116. ln conftest.a conftest.b 2>&5 || hard_links=no
  6117. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6118. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6119. echo "${ECHO_T}$hard_links" >&6; }
  6120. if test "$hard_links" = no; then
  6121. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6122. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6123. need_locks=warn
  6124. fi
  6125. else
  6126. need_locks=no
  6127. fi
  6128. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6129. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6130. runpath_var=
  6131. allow_undefined_flag=
  6132. enable_shared_with_static_runtimes=no
  6133. archive_cmds=
  6134. archive_expsym_cmds=
  6135. old_archive_From_new_cmds=
  6136. old_archive_from_expsyms_cmds=
  6137. export_dynamic_flag_spec=
  6138. whole_archive_flag_spec=
  6139. thread_safe_flag_spec=
  6140. hardcode_libdir_flag_spec=
  6141. hardcode_libdir_flag_spec_ld=
  6142. hardcode_libdir_separator=
  6143. hardcode_direct=no
  6144. hardcode_minus_L=no
  6145. hardcode_shlibpath_var=unsupported
  6146. link_all_deplibs=unknown
  6147. hardcode_automatic=no
  6148. module_cmds=
  6149. module_expsym_cmds=
  6150. always_export_symbols=no
  6151. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6152. # include_expsyms should be a list of space-separated symbols to be *always*
  6153. # included in the symbol list
  6154. include_expsyms=
  6155. # exclude_expsyms can be an extended regexp of symbols to exclude
  6156. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6157. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6158. # as well as any symbol that contains `d'.
  6159. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6160. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6161. # platforms (ab)use it in PIC code, but their linkers get confused if
  6162. # the symbol is explicitly referenced. Since portable code cannot
  6163. # rely on this symbol name, it's probably fine to never include it in
  6164. # preloaded symbol tables.
  6165. extract_expsyms_cmds=
  6166. # Just being paranoid about ensuring that cc_basename is set.
  6167. for cc_temp in $compiler""; do
  6168. case $cc_temp in
  6169. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6170. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6171. \-*) ;;
  6172. *) break;;
  6173. esac
  6174. done
  6175. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6176. case $host_os in
  6177. cygwin* | mingw* | pw32*)
  6178. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6179. # When not using gcc, we currently assume that we are using
  6180. # Microsoft Visual C++.
  6181. if test "$GCC" != yes; then
  6182. with_gnu_ld=no
  6183. fi
  6184. ;;
  6185. interix*)
  6186. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6187. with_gnu_ld=yes
  6188. ;;
  6189. openbsd*)
  6190. with_gnu_ld=no
  6191. ;;
  6192. esac
  6193. ld_shlibs=yes
  6194. if test "$with_gnu_ld" = yes; then
  6195. # If archive_cmds runs LD, not CC, wlarc should be empty
  6196. wlarc='${wl}'
  6197. # Set some defaults for GNU ld with shared library support. These
  6198. # are reset later if shared libraries are not supported. Putting them
  6199. # here allows them to be overridden if necessary.
  6200. runpath_var=LD_RUN_PATH
  6201. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6202. export_dynamic_flag_spec='${wl}--export-dynamic'
  6203. # ancient GNU ld didn't support --whole-archive et. al.
  6204. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6205. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6206. else
  6207. whole_archive_flag_spec=
  6208. fi
  6209. supports_anon_versioning=no
  6210. case `$LD -v 2>/dev/null` in
  6211. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6212. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6213. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6214. *\ 2.11.*) ;; # other 2.11 versions
  6215. *) supports_anon_versioning=yes ;;
  6216. esac
  6217. # See if GNU ld supports shared libraries.
  6218. case $host_os in
  6219. aix3* | aix4* | aix5*)
  6220. # On AIX/PPC, the GNU linker is very broken
  6221. if test "$host_cpu" != ia64; then
  6222. ld_shlibs=no
  6223. cat <<EOF 1>&2
  6224. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6225. *** to be unable to reliably create shared libraries on AIX.
  6226. *** Therefore, libtool is disabling shared libraries support. If you
  6227. *** really care for shared libraries, you may want to modify your PATH
  6228. *** so that a non-GNU linker is found, and then restart.
  6229. EOF
  6230. fi
  6231. ;;
  6232. amigaos*)
  6233. 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)'
  6234. hardcode_libdir_flag_spec='-L$libdir'
  6235. hardcode_minus_L=yes
  6236. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6237. # that the semantics of dynamic libraries on AmigaOS, at least up
  6238. # to version 4, is to share data among multiple programs linked
  6239. # with the same dynamic library. Since this doesn't match the
  6240. # behavior of shared libraries on other platforms, we can't use
  6241. # them.
  6242. ld_shlibs=no
  6243. ;;
  6244. beos*)
  6245. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6246. allow_undefined_flag=unsupported
  6247. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6248. # support --undefined. This deserves some investigation. FIXME
  6249. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6250. else
  6251. ld_shlibs=no
  6252. fi
  6253. ;;
  6254. cygwin* | mingw* | pw32*)
  6255. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6256. # as there is no search path for DLLs.
  6257. hardcode_libdir_flag_spec='-L$libdir'
  6258. allow_undefined_flag=unsupported
  6259. always_export_symbols=no
  6260. enable_shared_with_static_runtimes=yes
  6261. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6262. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6263. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6264. # If the export-symbols file already is a .def file (1st line
  6265. # is EXPORTS), use it as is; otherwise, prepend...
  6266. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6267. cp $export_symbols $output_objdir/$soname.def;
  6268. else
  6269. echo EXPORTS > $output_objdir/$soname.def;
  6270. cat $export_symbols >> $output_objdir/$soname.def;
  6271. fi~
  6272. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6273. else
  6274. ld_shlibs=no
  6275. fi
  6276. ;;
  6277. interix3*)
  6278. hardcode_direct=no
  6279. hardcode_shlibpath_var=no
  6280. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6281. export_dynamic_flag_spec='${wl}-E'
  6282. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6283. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6284. # default) and relocated if they conflict, which is a slow very memory
  6285. # consuming and fragmenting process. To avoid this, we pick a random,
  6286. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6287. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6288. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6289. 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'
  6290. ;;
  6291. linux*)
  6292. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6293. tmp_addflag=
  6294. case $cc_basename,$host_cpu in
  6295. pgcc*) # Portland Group C compiler
  6296. 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'
  6297. tmp_addflag=' $pic_flag'
  6298. ;;
  6299. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6300. 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'
  6301. tmp_addflag=' $pic_flag -Mnomain' ;;
  6302. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6303. tmp_addflag=' -i_dynamic' ;;
  6304. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6305. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6306. ifc* | ifort*) # Intel Fortran compiler
  6307. tmp_addflag=' -nofor_main' ;;
  6308. esac
  6309. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6310. if test $supports_anon_versioning = yes; then
  6311. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6312. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6313. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6314. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6315. fi
  6316. else
  6317. ld_shlibs=no
  6318. fi
  6319. ;;
  6320. netbsd*)
  6321. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6322. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6323. wlarc=
  6324. else
  6325. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6326. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6327. fi
  6328. ;;
  6329. solaris*)
  6330. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6331. ld_shlibs=no
  6332. cat <<EOF 1>&2
  6333. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6334. *** create shared libraries on Solaris systems. Therefore, libtool
  6335. *** is disabling shared libraries support. We urge you to upgrade GNU
  6336. *** binutils to release 2.9.1 or newer. Another option is to modify
  6337. *** your PATH or compiler configuration so that the native linker is
  6338. *** used, and then restart.
  6339. EOF
  6340. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6341. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6342. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6343. else
  6344. ld_shlibs=no
  6345. fi
  6346. ;;
  6347. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6348. case `$LD -v 2>&1` in
  6349. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6350. ld_shlibs=no
  6351. cat <<_LT_EOF 1>&2
  6352. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6353. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6354. *** is disabling shared libraries support. We urge you to upgrade GNU
  6355. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6356. *** your PATH or compiler configuration so that the native linker is
  6357. *** used, and then restart.
  6358. _LT_EOF
  6359. ;;
  6360. *)
  6361. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6362. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6363. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6364. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6365. else
  6366. ld_shlibs=no
  6367. fi
  6368. ;;
  6369. esac
  6370. ;;
  6371. sunos4*)
  6372. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6373. wlarc=
  6374. hardcode_direct=yes
  6375. hardcode_shlibpath_var=no
  6376. ;;
  6377. *)
  6378. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6379. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6380. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6381. else
  6382. ld_shlibs=no
  6383. fi
  6384. ;;
  6385. esac
  6386. if test "$ld_shlibs" = no; then
  6387. runpath_var=
  6388. hardcode_libdir_flag_spec=
  6389. export_dynamic_flag_spec=
  6390. whole_archive_flag_spec=
  6391. fi
  6392. else
  6393. # PORTME fill in a description of your system's linker (not GNU ld)
  6394. case $host_os in
  6395. aix3*)
  6396. allow_undefined_flag=unsupported
  6397. always_export_symbols=yes
  6398. 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'
  6399. # Note: this linker hardcodes the directories in LIBPATH if there
  6400. # are no directories specified by -L.
  6401. hardcode_minus_L=yes
  6402. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6403. # Neither direct hardcoding nor static linking is supported with a
  6404. # broken collect2.
  6405. hardcode_direct=unsupported
  6406. fi
  6407. ;;
  6408. aix4* | aix5*)
  6409. if test "$host_cpu" = ia64; then
  6410. # On IA64, the linker does run time linking by default, so we don't
  6411. # have to do anything special.
  6412. aix_use_runtimelinking=no
  6413. exp_sym_flag='-Bexport'
  6414. no_entry_flag=""
  6415. else
  6416. # If we're using GNU nm, then we don't want the "-C" option.
  6417. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6418. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6419. 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'
  6420. else
  6421. 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'
  6422. fi
  6423. aix_use_runtimelinking=no
  6424. # Test if we are trying to use run time linking or normal
  6425. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6426. # need to do runtime linking.
  6427. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6428. for ld_flag in $LDFLAGS; do
  6429. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6430. aix_use_runtimelinking=yes
  6431. break
  6432. fi
  6433. done
  6434. ;;
  6435. esac
  6436. exp_sym_flag='-bexport'
  6437. no_entry_flag='-bnoentry'
  6438. fi
  6439. # When large executables or shared objects are built, AIX ld can
  6440. # have problems creating the table of contents. If linking a library
  6441. # or program results in "error TOC overflow" add -mminimal-toc to
  6442. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6443. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6444. archive_cmds=''
  6445. hardcode_direct=yes
  6446. hardcode_libdir_separator=':'
  6447. link_all_deplibs=yes
  6448. if test "$GCC" = yes; then
  6449. case $host_os in aix4.[012]|aix4.[012].*)
  6450. # We only want to do this on AIX 4.2 and lower, the check
  6451. # below for broken collect2 doesn't work under 4.3+
  6452. collect2name=`${CC} -print-prog-name=collect2`
  6453. if test -f "$collect2name" && \
  6454. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6455. then
  6456. # We have reworked collect2
  6457. hardcode_direct=yes
  6458. else
  6459. # We have old collect2
  6460. hardcode_direct=unsupported
  6461. # It fails to find uninstalled libraries when the uninstalled
  6462. # path is not listed in the libpath. Setting hardcode_minus_L
  6463. # to unsupported forces relinking
  6464. hardcode_minus_L=yes
  6465. hardcode_libdir_flag_spec='-L$libdir'
  6466. hardcode_libdir_separator=
  6467. fi
  6468. ;;
  6469. esac
  6470. shared_flag='-shared'
  6471. if test "$aix_use_runtimelinking" = yes; then
  6472. shared_flag="$shared_flag "'${wl}-G'
  6473. fi
  6474. else
  6475. # not using gcc
  6476. if test "$host_cpu" = ia64; then
  6477. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6478. # chokes on -Wl,-G. The following line is correct:
  6479. shared_flag='-G'
  6480. else
  6481. if test "$aix_use_runtimelinking" = yes; then
  6482. shared_flag='${wl}-G'
  6483. else
  6484. shared_flag='${wl}-bM:SRE'
  6485. fi
  6486. fi
  6487. fi
  6488. # It seems that -bexpall does not export symbols beginning with
  6489. # underscore (_), so it is better to generate a list of symbols to export.
  6490. always_export_symbols=yes
  6491. if test "$aix_use_runtimelinking" = yes; then
  6492. # Warning - without using the other runtime loading flags (-brtl),
  6493. # -berok will link without error, but may produce a broken library.
  6494. allow_undefined_flag='-berok'
  6495. # Determine the default libpath from the value encoded in an empty executable.
  6496. cat >conftest.$ac_ext <<_ACEOF
  6497. /* confdefs.h. */
  6498. _ACEOF
  6499. cat confdefs.h >>conftest.$ac_ext
  6500. cat >>conftest.$ac_ext <<_ACEOF
  6501. /* end confdefs.h. */
  6502. int
  6503. main ()
  6504. {
  6505. ;
  6506. return 0;
  6507. }
  6508. _ACEOF
  6509. rm -f conftest.$ac_objext conftest$ac_exeext
  6510. if { (ac_try="$ac_link"
  6511. case "(($ac_try" in
  6512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6513. *) ac_try_echo=$ac_try;;
  6514. esac
  6515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6516. (eval "$ac_link") 2>conftest.er1
  6517. ac_status=$?
  6518. grep -v '^ *+' conftest.er1 >conftest.err
  6519. rm -f conftest.er1
  6520. cat conftest.err >&5
  6521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6522. (exit $ac_status); } && {
  6523. test -z "$ac_c_werror_flag" ||
  6524. test ! -s conftest.err
  6525. } && test -s conftest$ac_exeext &&
  6526. $as_test_x conftest$ac_exeext; then
  6527. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6528. }'`
  6529. # Check for a 64-bit object if we didn't find anything.
  6530. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6531. }'`; fi
  6532. else
  6533. echo "$as_me: failed program was:" >&5
  6534. sed 's/^/| /' conftest.$ac_ext >&5
  6535. fi
  6536. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6537. conftest$ac_exeext conftest.$ac_ext
  6538. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6539. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6540. 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"
  6541. else
  6542. if test "$host_cpu" = ia64; then
  6543. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6544. allow_undefined_flag="-z nodefs"
  6545. 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"
  6546. else
  6547. # Determine the default libpath from the value encoded in an empty executable.
  6548. cat >conftest.$ac_ext <<_ACEOF
  6549. /* confdefs.h. */
  6550. _ACEOF
  6551. cat confdefs.h >>conftest.$ac_ext
  6552. cat >>conftest.$ac_ext <<_ACEOF
  6553. /* end confdefs.h. */
  6554. int
  6555. main ()
  6556. {
  6557. ;
  6558. return 0;
  6559. }
  6560. _ACEOF
  6561. rm -f conftest.$ac_objext conftest$ac_exeext
  6562. if { (ac_try="$ac_link"
  6563. case "(($ac_try" in
  6564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6565. *) ac_try_echo=$ac_try;;
  6566. esac
  6567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6568. (eval "$ac_link") 2>conftest.er1
  6569. ac_status=$?
  6570. grep -v '^ *+' conftest.er1 >conftest.err
  6571. rm -f conftest.er1
  6572. cat conftest.err >&5
  6573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6574. (exit $ac_status); } && {
  6575. test -z "$ac_c_werror_flag" ||
  6576. test ! -s conftest.err
  6577. } && test -s conftest$ac_exeext &&
  6578. $as_test_x conftest$ac_exeext; then
  6579. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6580. }'`
  6581. # Check for a 64-bit object if we didn't find anything.
  6582. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6583. }'`; fi
  6584. else
  6585. echo "$as_me: failed program was:" >&5
  6586. sed 's/^/| /' conftest.$ac_ext >&5
  6587. fi
  6588. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6589. conftest$ac_exeext conftest.$ac_ext
  6590. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6591. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6592. # Warning - without using the other run time loading flags,
  6593. # -berok will link without error, but may produce a broken library.
  6594. no_undefined_flag=' ${wl}-bernotok'
  6595. allow_undefined_flag=' ${wl}-berok'
  6596. # Exported symbols can be pulled into shared objects from archives
  6597. whole_archive_flag_spec='$convenience'
  6598. archive_cmds_need_lc=yes
  6599. # This is similar to how AIX traditionally builds its shared libraries.
  6600. 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'
  6601. fi
  6602. fi
  6603. ;;
  6604. amigaos*)
  6605. 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)'
  6606. hardcode_libdir_flag_spec='-L$libdir'
  6607. hardcode_minus_L=yes
  6608. # see comment about different semantics on the GNU ld section
  6609. ld_shlibs=no
  6610. ;;
  6611. bsdi[45]*)
  6612. export_dynamic_flag_spec=-rdynamic
  6613. ;;
  6614. cygwin* | mingw* | pw32*)
  6615. # When not using gcc, we currently assume that we are using
  6616. # Microsoft Visual C++.
  6617. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6618. # no search path for DLLs.
  6619. hardcode_libdir_flag_spec=' '
  6620. allow_undefined_flag=unsupported
  6621. # Tell ltmain to make .lib files, not .a files.
  6622. libext=lib
  6623. # Tell ltmain to make .dll files, not .so files.
  6624. shrext_cmds=".dll"
  6625. # FIXME: Setting linknames here is a bad hack.
  6626. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6627. # The linker will automatically build a .lib file if we build a DLL.
  6628. old_archive_From_new_cmds='true'
  6629. # FIXME: Should let the user specify the lib program.
  6630. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6631. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6632. enable_shared_with_static_runtimes=yes
  6633. ;;
  6634. darwin* | rhapsody*)
  6635. case $host_os in
  6636. rhapsody* | darwin1.[012])
  6637. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6638. ;;
  6639. *) # Darwin 1.3 on
  6640. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6641. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6642. else
  6643. case ${MACOSX_DEPLOYMENT_TARGET} in
  6644. 10.[012])
  6645. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6646. ;;
  6647. 10.*)
  6648. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6649. ;;
  6650. esac
  6651. fi
  6652. ;;
  6653. esac
  6654. archive_cmds_need_lc=no
  6655. hardcode_direct=no
  6656. hardcode_automatic=yes
  6657. hardcode_shlibpath_var=unsupported
  6658. whole_archive_flag_spec=''
  6659. link_all_deplibs=yes
  6660. if test "$GCC" = yes ; then
  6661. output_verbose_link_cmd='echo'
  6662. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6663. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6664. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6665. 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}'
  6666. 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}'
  6667. else
  6668. case $cc_basename in
  6669. xlc*)
  6670. output_verbose_link_cmd='echo'
  6671. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6672. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6673. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6674. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6675. 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}'
  6676. ;;
  6677. *)
  6678. ld_shlibs=no
  6679. ;;
  6680. esac
  6681. fi
  6682. ;;
  6683. dgux*)
  6684. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6685. hardcode_libdir_flag_spec='-L$libdir'
  6686. hardcode_shlibpath_var=no
  6687. ;;
  6688. freebsd1*)
  6689. ld_shlibs=no
  6690. ;;
  6691. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6692. # support. Future versions do this automatically, but an explicit c++rt0.o
  6693. # does not break anything, and helps significantly (at the cost of a little
  6694. # extra space).
  6695. freebsd2.2*)
  6696. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6697. hardcode_libdir_flag_spec='-R$libdir'
  6698. hardcode_direct=yes
  6699. hardcode_shlibpath_var=no
  6700. ;;
  6701. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6702. freebsd2*)
  6703. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6704. hardcode_direct=yes
  6705. hardcode_minus_L=yes
  6706. hardcode_shlibpath_var=no
  6707. ;;
  6708. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6709. freebsd* | kfreebsd*-gnu | dragonfly*)
  6710. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6711. hardcode_libdir_flag_spec='-R$libdir'
  6712. hardcode_direct=yes
  6713. hardcode_shlibpath_var=no
  6714. ;;
  6715. hpux9*)
  6716. if test "$GCC" = yes; then
  6717. 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'
  6718. else
  6719. 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'
  6720. fi
  6721. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6722. hardcode_libdir_separator=:
  6723. hardcode_direct=yes
  6724. # hardcode_minus_L: Not really in the search PATH,
  6725. # but as the default location of the library.
  6726. hardcode_minus_L=yes
  6727. export_dynamic_flag_spec='${wl}-E'
  6728. ;;
  6729. hpux10*)
  6730. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6731. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6732. else
  6733. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6734. fi
  6735. if test "$with_gnu_ld" = no; then
  6736. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6737. hardcode_libdir_separator=:
  6738. hardcode_direct=yes
  6739. export_dynamic_flag_spec='${wl}-E'
  6740. # hardcode_minus_L: Not really in the search PATH,
  6741. # but as the default location of the library.
  6742. hardcode_minus_L=yes
  6743. fi
  6744. ;;
  6745. hpux11*)
  6746. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6747. case $host_cpu in
  6748. hppa*64*)
  6749. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6750. ;;
  6751. ia64*)
  6752. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6753. ;;
  6754. *)
  6755. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6756. ;;
  6757. esac
  6758. else
  6759. case $host_cpu in
  6760. hppa*64*)
  6761. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6762. ;;
  6763. ia64*)
  6764. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6765. ;;
  6766. *)
  6767. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6768. ;;
  6769. esac
  6770. fi
  6771. if test "$with_gnu_ld" = no; then
  6772. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6773. hardcode_libdir_separator=:
  6774. case $host_cpu in
  6775. hppa*64*|ia64*)
  6776. hardcode_libdir_flag_spec_ld='+b $libdir'
  6777. hardcode_direct=no
  6778. hardcode_shlibpath_var=no
  6779. ;;
  6780. *)
  6781. hardcode_direct=yes
  6782. export_dynamic_flag_spec='${wl}-E'
  6783. # hardcode_minus_L: Not really in the search PATH,
  6784. # but as the default location of the library.
  6785. hardcode_minus_L=yes
  6786. ;;
  6787. esac
  6788. fi
  6789. ;;
  6790. irix5* | irix6* | nonstopux*)
  6791. if test "$GCC" = yes; then
  6792. 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'
  6793. else
  6794. 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'
  6795. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6796. fi
  6797. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6798. hardcode_libdir_separator=:
  6799. link_all_deplibs=yes
  6800. ;;
  6801. netbsd*)
  6802. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6803. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6804. else
  6805. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6806. fi
  6807. hardcode_libdir_flag_spec='-R$libdir'
  6808. hardcode_direct=yes
  6809. hardcode_shlibpath_var=no
  6810. ;;
  6811. newsos6)
  6812. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6813. hardcode_direct=yes
  6814. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6815. hardcode_libdir_separator=:
  6816. hardcode_shlibpath_var=no
  6817. ;;
  6818. openbsd*)
  6819. hardcode_direct=yes
  6820. hardcode_shlibpath_var=no
  6821. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6822. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6823. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6824. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6825. export_dynamic_flag_spec='${wl}-E'
  6826. else
  6827. case $host_os in
  6828. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6829. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6830. hardcode_libdir_flag_spec='-R$libdir'
  6831. ;;
  6832. *)
  6833. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6834. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6835. ;;
  6836. esac
  6837. fi
  6838. ;;
  6839. os2*)
  6840. hardcode_libdir_flag_spec='-L$libdir'
  6841. hardcode_minus_L=yes
  6842. allow_undefined_flag=unsupported
  6843. 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'
  6844. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6845. ;;
  6846. osf3*)
  6847. if test "$GCC" = yes; then
  6848. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6849. 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'
  6850. else
  6851. allow_undefined_flag=' -expect_unresolved \*'
  6852. 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'
  6853. fi
  6854. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6855. hardcode_libdir_separator=:
  6856. ;;
  6857. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6858. if test "$GCC" = yes; then
  6859. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6860. 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'
  6861. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6862. else
  6863. allow_undefined_flag=' -expect_unresolved \*'
  6864. 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'
  6865. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6866. $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'
  6867. # Both c and cxx compiler support -rpath directly
  6868. hardcode_libdir_flag_spec='-rpath $libdir'
  6869. fi
  6870. hardcode_libdir_separator=:
  6871. ;;
  6872. solaris*)
  6873. no_undefined_flag=' -z text'
  6874. if test "$GCC" = yes; then
  6875. wlarc='${wl}'
  6876. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6877. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6878. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6879. else
  6880. wlarc=''
  6881. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6882. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6883. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6884. fi
  6885. hardcode_libdir_flag_spec='-R$libdir'
  6886. hardcode_shlibpath_var=no
  6887. case $host_os in
  6888. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6889. *)
  6890. # The compiler driver will combine linker options so we
  6891. # cannot just pass the convience library names through
  6892. # without $wl, iff we do not link with $LD.
  6893. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6894. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6895. case $wlarc in
  6896. '')
  6897. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6898. *)
  6899. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  6900. esac ;;
  6901. esac
  6902. link_all_deplibs=yes
  6903. ;;
  6904. sunos4*)
  6905. if test "x$host_vendor" = xsequent; then
  6906. # Use $CC to link under sequent, because it throws in some extra .o
  6907. # files that make .init and .fini sections work.
  6908. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6909. else
  6910. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6911. fi
  6912. hardcode_libdir_flag_spec='-L$libdir'
  6913. hardcode_direct=yes
  6914. hardcode_minus_L=yes
  6915. hardcode_shlibpath_var=no
  6916. ;;
  6917. sysv4)
  6918. case $host_vendor in
  6919. sni)
  6920. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6921. hardcode_direct=yes # is this really true???
  6922. ;;
  6923. siemens)
  6924. ## LD is ld it makes a PLAMLIB
  6925. ## CC just makes a GrossModule.
  6926. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6927. reload_cmds='$CC -r -o $output$reload_objs'
  6928. hardcode_direct=no
  6929. ;;
  6930. motorola)
  6931. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6932. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6933. ;;
  6934. esac
  6935. runpath_var='LD_RUN_PATH'
  6936. hardcode_shlibpath_var=no
  6937. ;;
  6938. sysv4.3*)
  6939. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6940. hardcode_shlibpath_var=no
  6941. export_dynamic_flag_spec='-Bexport'
  6942. ;;
  6943. sysv4*MP*)
  6944. if test -d /usr/nec; then
  6945. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6946. hardcode_shlibpath_var=no
  6947. runpath_var=LD_RUN_PATH
  6948. hardcode_runpath_var=yes
  6949. ld_shlibs=yes
  6950. fi
  6951. ;;
  6952. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  6953. no_undefined_flag='${wl}-z,text'
  6954. archive_cmds_need_lc=no
  6955. hardcode_shlibpath_var=no
  6956. runpath_var='LD_RUN_PATH'
  6957. if test "$GCC" = yes; then
  6958. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6959. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6960. else
  6961. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6962. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6963. fi
  6964. ;;
  6965. sysv5* | sco3.2v5* | sco5v6*)
  6966. # Note: We can NOT use -z defs as we might desire, because we do not
  6967. # link with -lc, and that would cause any symbols used from libc to
  6968. # always be unresolved, which means just about no library would
  6969. # ever link correctly. If we're not using GNU ld we use -z text
  6970. # though, which does catch some bad symbols but isn't as heavy-handed
  6971. # as -z defs.
  6972. no_undefined_flag='${wl}-z,text'
  6973. allow_undefined_flag='${wl}-z,nodefs'
  6974. archive_cmds_need_lc=no
  6975. hardcode_shlibpath_var=no
  6976. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6977. hardcode_libdir_separator=':'
  6978. link_all_deplibs=yes
  6979. export_dynamic_flag_spec='${wl}-Bexport'
  6980. runpath_var='LD_RUN_PATH'
  6981. if test "$GCC" = yes; then
  6982. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6983. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6984. else
  6985. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6986. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6987. fi
  6988. ;;
  6989. uts4*)
  6990. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6991. hardcode_libdir_flag_spec='-L$libdir'
  6992. hardcode_shlibpath_var=no
  6993. ;;
  6994. *)
  6995. ld_shlibs=no
  6996. ;;
  6997. esac
  6998. fi
  6999. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7000. echo "${ECHO_T}$ld_shlibs" >&6; }
  7001. test "$ld_shlibs" = no && can_build_shared=no
  7002. #
  7003. # Do we need to explicitly link libc?
  7004. #
  7005. case "x$archive_cmds_need_lc" in
  7006. x|xyes)
  7007. # Assume -lc should be added
  7008. archive_cmds_need_lc=yes
  7009. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7010. case $archive_cmds in
  7011. *'~'*)
  7012. # FIXME: we may have to deal with multi-command sequences.
  7013. ;;
  7014. '$CC '*)
  7015. # Test whether the compiler implicitly links with -lc since on some
  7016. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7017. # to ld, don't add -lc before -lgcc.
  7018. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7019. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7020. $rm conftest*
  7021. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7022. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7023. (eval $ac_compile) 2>&5
  7024. ac_status=$?
  7025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7026. (exit $ac_status); } 2>conftest.err; then
  7027. soname=conftest
  7028. lib=conftest
  7029. libobjs=conftest.$ac_objext
  7030. deplibs=
  7031. wl=$lt_prog_compiler_wl
  7032. pic_flag=$lt_prog_compiler_pic
  7033. compiler_flags=-v
  7034. linker_flags=-v
  7035. verstring=
  7036. output_objdir=.
  7037. libname=conftest
  7038. lt_save_allow_undefined_flag=$allow_undefined_flag
  7039. allow_undefined_flag=
  7040. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7041. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7042. ac_status=$?
  7043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7044. (exit $ac_status); }
  7045. then
  7046. archive_cmds_need_lc=no
  7047. else
  7048. archive_cmds_need_lc=yes
  7049. fi
  7050. allow_undefined_flag=$lt_save_allow_undefined_flag
  7051. else
  7052. cat conftest.err 1>&5
  7053. fi
  7054. $rm conftest*
  7055. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7056. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7057. ;;
  7058. esac
  7059. fi
  7060. ;;
  7061. esac
  7062. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7063. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7064. library_names_spec=
  7065. libname_spec='lib$name'
  7066. soname_spec=
  7067. shrext_cmds=".so"
  7068. postinstall_cmds=
  7069. postuninstall_cmds=
  7070. finish_cmds=
  7071. finish_eval=
  7072. shlibpath_var=
  7073. shlibpath_overrides_runpath=unknown
  7074. version_type=none
  7075. dynamic_linker="$host_os ld.so"
  7076. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7077. if test "$GCC" = yes; then
  7078. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7079. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7080. # if the path contains ";" then we assume it to be the separator
  7081. # otherwise default to the standard path separator (i.e. ":") - it is
  7082. # assumed that no part of a normal pathname contains ";" but that should
  7083. # okay in the real world where ";" in dirpaths is itself problematic.
  7084. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7085. else
  7086. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7087. fi
  7088. else
  7089. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7090. fi
  7091. need_lib_prefix=unknown
  7092. hardcode_into_libs=no
  7093. # when you set need_version to no, make sure it does not cause -set_version
  7094. # flags to be left without arguments
  7095. need_version=unknown
  7096. case $host_os in
  7097. aix3*)
  7098. version_type=linux
  7099. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7100. shlibpath_var=LIBPATH
  7101. # AIX 3 has no versioning support, so we append a major version to the name.
  7102. soname_spec='${libname}${release}${shared_ext}$major'
  7103. ;;
  7104. aix4* | aix5*)
  7105. version_type=linux
  7106. need_lib_prefix=no
  7107. need_version=no
  7108. hardcode_into_libs=yes
  7109. if test "$host_cpu" = ia64; then
  7110. # AIX 5 supports IA64
  7111. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7112. shlibpath_var=LD_LIBRARY_PATH
  7113. else
  7114. # With GCC up to 2.95.x, collect2 would create an import file
  7115. # for dependence libraries. The import file would start with
  7116. # the line `#! .'. This would cause the generated library to
  7117. # depend on `.', always an invalid library. This was fixed in
  7118. # development snapshots of GCC prior to 3.0.
  7119. case $host_os in
  7120. aix4 | aix4.[01] | aix4.[01].*)
  7121. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7122. echo ' yes '
  7123. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7124. :
  7125. else
  7126. can_build_shared=no
  7127. fi
  7128. ;;
  7129. esac
  7130. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7131. # soname into executable. Probably we can add versioning support to
  7132. # collect2, so additional links can be useful in future.
  7133. if test "$aix_use_runtimelinking" = yes; then
  7134. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7135. # instead of lib<name>.a to let people know that these are not
  7136. # typical AIX shared libraries.
  7137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7138. else
  7139. # We preserve .a as extension for shared libraries through AIX4.2
  7140. # and later when we are not doing run time linking.
  7141. library_names_spec='${libname}${release}.a $libname.a'
  7142. soname_spec='${libname}${release}${shared_ext}$major'
  7143. fi
  7144. shlibpath_var=LIBPATH
  7145. fi
  7146. ;;
  7147. amigaos*)
  7148. library_names_spec='$libname.ixlibrary $libname.a'
  7149. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7150. 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'
  7151. ;;
  7152. beos*)
  7153. library_names_spec='${libname}${shared_ext}'
  7154. dynamic_linker="$host_os ld.so"
  7155. shlibpath_var=LIBRARY_PATH
  7156. ;;
  7157. bsdi[45]*)
  7158. version_type=linux
  7159. need_version=no
  7160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7161. soname_spec='${libname}${release}${shared_ext}$major'
  7162. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7163. shlibpath_var=LD_LIBRARY_PATH
  7164. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7165. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7166. # the default ld.so.conf also contains /usr/contrib/lib and
  7167. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7168. # libtool to hard-code these into programs
  7169. ;;
  7170. cygwin* | mingw* | pw32*)
  7171. version_type=windows
  7172. shrext_cmds=".dll"
  7173. need_version=no
  7174. need_lib_prefix=no
  7175. case $GCC,$host_os in
  7176. yes,cygwin* | yes,mingw* | yes,pw32*)
  7177. library_names_spec='$libname.dll.a'
  7178. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7179. postinstall_cmds='base_file=`basename \${file}`~
  7180. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7181. dldir=$destdir/`dirname \$dlpath`~
  7182. test -d \$dldir || mkdir -p \$dldir~
  7183. $install_prog $dir/$dlname \$dldir/$dlname~
  7184. chmod a+x \$dldir/$dlname'
  7185. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7186. dlpath=$dir/\$dldll~
  7187. $rm \$dlpath'
  7188. shlibpath_overrides_runpath=yes
  7189. case $host_os in
  7190. cygwin*)
  7191. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7192. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7193. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7194. ;;
  7195. mingw*)
  7196. # MinGW DLLs use traditional 'lib' prefix
  7197. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7198. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7199. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7200. # It is most probably a Windows format PATH printed by
  7201. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7202. # path with ; separators, and with drive letters. We can handle the
  7203. # drive letters (cygwin fileutils understands them), so leave them,
  7204. # especially as we might pass files found there to a mingw objdump,
  7205. # which wouldn't understand a cygwinified path. Ahh.
  7206. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7207. else
  7208. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7209. fi
  7210. ;;
  7211. pw32*)
  7212. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7213. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7214. ;;
  7215. esac
  7216. ;;
  7217. *)
  7218. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7219. ;;
  7220. esac
  7221. dynamic_linker='Win32 ld.exe'
  7222. # FIXME: first we should search . and the directory the executable is in
  7223. shlibpath_var=PATH
  7224. ;;
  7225. darwin* | rhapsody*)
  7226. dynamic_linker="$host_os dyld"
  7227. version_type=darwin
  7228. need_lib_prefix=no
  7229. need_version=no
  7230. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7231. soname_spec='${libname}${release}${major}$shared_ext'
  7232. shlibpath_overrides_runpath=yes
  7233. shlibpath_var=DYLD_LIBRARY_PATH
  7234. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7235. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7236. if test "$GCC" = yes; then
  7237. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  7238. else
  7239. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7240. fi
  7241. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7242. ;;
  7243. dgux*)
  7244. version_type=linux
  7245. need_lib_prefix=no
  7246. need_version=no
  7247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7248. soname_spec='${libname}${release}${shared_ext}$major'
  7249. shlibpath_var=LD_LIBRARY_PATH
  7250. ;;
  7251. freebsd1*)
  7252. dynamic_linker=no
  7253. ;;
  7254. kfreebsd*-gnu)
  7255. version_type=linux
  7256. need_lib_prefix=no
  7257. need_version=no
  7258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7259. soname_spec='${libname}${release}${shared_ext}$major'
  7260. shlibpath_var=LD_LIBRARY_PATH
  7261. shlibpath_overrides_runpath=no
  7262. hardcode_into_libs=yes
  7263. dynamic_linker='GNU ld.so'
  7264. ;;
  7265. freebsd* | dragonfly*)
  7266. # DragonFly does not have aout. When/if they implement a new
  7267. # versioning mechanism, adjust this.
  7268. if test -x /usr/bin/objformat; then
  7269. objformat=`/usr/bin/objformat`
  7270. else
  7271. case $host_os in
  7272. freebsd[123]*) objformat=aout ;;
  7273. *) objformat=elf ;;
  7274. esac
  7275. fi
  7276. version_type=freebsd-$objformat
  7277. case $version_type in
  7278. freebsd-elf*)
  7279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7280. need_version=no
  7281. need_lib_prefix=no
  7282. ;;
  7283. freebsd-*)
  7284. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7285. need_version=yes
  7286. ;;
  7287. esac
  7288. shlibpath_var=LD_LIBRARY_PATH
  7289. case $host_os in
  7290. freebsd2*)
  7291. shlibpath_overrides_runpath=yes
  7292. ;;
  7293. freebsd3.[01]* | freebsdelf3.[01]*)
  7294. shlibpath_overrides_runpath=yes
  7295. hardcode_into_libs=yes
  7296. ;;
  7297. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7298. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7299. shlibpath_overrides_runpath=no
  7300. hardcode_into_libs=yes
  7301. ;;
  7302. freebsd*) # from 4.6 on
  7303. shlibpath_overrides_runpath=yes
  7304. hardcode_into_libs=yes
  7305. ;;
  7306. esac
  7307. ;;
  7308. gnu*)
  7309. version_type=linux
  7310. need_lib_prefix=no
  7311. need_version=no
  7312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7313. soname_spec='${libname}${release}${shared_ext}$major'
  7314. shlibpath_var=LD_LIBRARY_PATH
  7315. hardcode_into_libs=yes
  7316. ;;
  7317. hpux9* | hpux10* | hpux11*)
  7318. # Give a soname corresponding to the major version so that dld.sl refuses to
  7319. # link against other versions.
  7320. version_type=sunos
  7321. need_lib_prefix=no
  7322. need_version=no
  7323. case $host_cpu in
  7324. ia64*)
  7325. shrext_cmds='.so'
  7326. hardcode_into_libs=yes
  7327. dynamic_linker="$host_os dld.so"
  7328. shlibpath_var=LD_LIBRARY_PATH
  7329. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7331. soname_spec='${libname}${release}${shared_ext}$major'
  7332. if test "X$HPUX_IA64_MODE" = X32; then
  7333. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7334. else
  7335. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7336. fi
  7337. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7338. ;;
  7339. hppa*64*)
  7340. shrext_cmds='.sl'
  7341. hardcode_into_libs=yes
  7342. dynamic_linker="$host_os dld.sl"
  7343. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7344. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7346. soname_spec='${libname}${release}${shared_ext}$major'
  7347. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7348. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7349. ;;
  7350. *)
  7351. shrext_cmds='.sl'
  7352. dynamic_linker="$host_os dld.sl"
  7353. shlibpath_var=SHLIB_PATH
  7354. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7356. soname_spec='${libname}${release}${shared_ext}$major'
  7357. ;;
  7358. esac
  7359. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7360. postinstall_cmds='chmod 555 $lib'
  7361. ;;
  7362. interix3*)
  7363. version_type=linux
  7364. need_lib_prefix=no
  7365. need_version=no
  7366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7367. soname_spec='${libname}${release}${shared_ext}$major'
  7368. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7369. shlibpath_var=LD_LIBRARY_PATH
  7370. shlibpath_overrides_runpath=no
  7371. hardcode_into_libs=yes
  7372. ;;
  7373. irix5* | irix6* | nonstopux*)
  7374. case $host_os in
  7375. nonstopux*) version_type=nonstopux ;;
  7376. *)
  7377. if test "$lt_cv_prog_gnu_ld" = yes; then
  7378. version_type=linux
  7379. else
  7380. version_type=irix
  7381. fi ;;
  7382. esac
  7383. need_lib_prefix=no
  7384. need_version=no
  7385. soname_spec='${libname}${release}${shared_ext}$major'
  7386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7387. case $host_os in
  7388. irix5* | nonstopux*)
  7389. libsuff= shlibsuff=
  7390. ;;
  7391. *)
  7392. case $LD in # libtool.m4 will add one of these switches to LD
  7393. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7394. libsuff= shlibsuff= libmagic=32-bit;;
  7395. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7396. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7397. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7398. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7399. *) libsuff= shlibsuff= libmagic=never-match;;
  7400. esac
  7401. ;;
  7402. esac
  7403. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7404. shlibpath_overrides_runpath=no
  7405. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7406. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7407. hardcode_into_libs=yes
  7408. ;;
  7409. # No shared lib support for Linux oldld, aout, or coff.
  7410. linux*oldld* | linux*aout* | linux*coff*)
  7411. dynamic_linker=no
  7412. ;;
  7413. # This must be Linux ELF.
  7414. linux*)
  7415. version_type=linux
  7416. need_lib_prefix=no
  7417. need_version=no
  7418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7419. soname_spec='${libname}${release}${shared_ext}$major'
  7420. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7421. shlibpath_var=LD_LIBRARY_PATH
  7422. shlibpath_overrides_runpath=no
  7423. # This implies no fast_install, which is unacceptable.
  7424. # Some rework will be needed to allow for fast_install
  7425. # before this can be enabled.
  7426. hardcode_into_libs=yes
  7427. # Append ld.so.conf contents to the search path
  7428. if test -f /etc/ld.so.conf; then
  7429. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7430. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7431. fi
  7432. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7433. # powerpc, because MkLinux only supported shared libraries with the
  7434. # GNU dynamic linker. Since this was broken with cross compilers,
  7435. # most powerpc-linux boxes support dynamic linking these days and
  7436. # people can always --disable-shared, the test was removed, and we
  7437. # assume the GNU/Linux dynamic linker is in use.
  7438. dynamic_linker='GNU/Linux ld.so'
  7439. ;;
  7440. knetbsd*-gnu)
  7441. version_type=linux
  7442. need_lib_prefix=no
  7443. need_version=no
  7444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7445. soname_spec='${libname}${release}${shared_ext}$major'
  7446. shlibpath_var=LD_LIBRARY_PATH
  7447. shlibpath_overrides_runpath=no
  7448. hardcode_into_libs=yes
  7449. dynamic_linker='GNU ld.so'
  7450. ;;
  7451. netbsd*)
  7452. version_type=sunos
  7453. need_lib_prefix=no
  7454. need_version=no
  7455. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7457. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7458. dynamic_linker='NetBSD (a.out) ld.so'
  7459. else
  7460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7461. soname_spec='${libname}${release}${shared_ext}$major'
  7462. dynamic_linker='NetBSD ld.elf_so'
  7463. fi
  7464. shlibpath_var=LD_LIBRARY_PATH
  7465. shlibpath_overrides_runpath=yes
  7466. hardcode_into_libs=yes
  7467. ;;
  7468. newsos6)
  7469. version_type=linux
  7470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7471. shlibpath_var=LD_LIBRARY_PATH
  7472. shlibpath_overrides_runpath=yes
  7473. ;;
  7474. nto-qnx*)
  7475. version_type=linux
  7476. need_lib_prefix=no
  7477. need_version=no
  7478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7479. soname_spec='${libname}${release}${shared_ext}$major'
  7480. shlibpath_var=LD_LIBRARY_PATH
  7481. shlibpath_overrides_runpath=yes
  7482. ;;
  7483. openbsd*)
  7484. version_type=sunos
  7485. sys_lib_dlsearch_path_spec="/usr/lib"
  7486. need_lib_prefix=no
  7487. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7488. case $host_os in
  7489. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7490. *) need_version=no ;;
  7491. esac
  7492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7493. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7494. shlibpath_var=LD_LIBRARY_PATH
  7495. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7496. case $host_os in
  7497. openbsd2.[89] | openbsd2.[89].*)
  7498. shlibpath_overrides_runpath=no
  7499. ;;
  7500. *)
  7501. shlibpath_overrides_runpath=yes
  7502. ;;
  7503. esac
  7504. else
  7505. shlibpath_overrides_runpath=yes
  7506. fi
  7507. ;;
  7508. os2*)
  7509. libname_spec='$name'
  7510. shrext_cmds=".dll"
  7511. need_lib_prefix=no
  7512. library_names_spec='$libname${shared_ext} $libname.a'
  7513. dynamic_linker='OS/2 ld.exe'
  7514. shlibpath_var=LIBPATH
  7515. ;;
  7516. osf3* | osf4* | osf5*)
  7517. version_type=osf
  7518. need_lib_prefix=no
  7519. need_version=no
  7520. soname_spec='${libname}${release}${shared_ext}$major'
  7521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7522. shlibpath_var=LD_LIBRARY_PATH
  7523. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7524. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7525. ;;
  7526. solaris*)
  7527. version_type=linux
  7528. need_lib_prefix=no
  7529. need_version=no
  7530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7531. soname_spec='${libname}${release}${shared_ext}$major'
  7532. shlibpath_var=LD_LIBRARY_PATH
  7533. shlibpath_overrides_runpath=yes
  7534. hardcode_into_libs=yes
  7535. # ldd complains unless libraries are executable
  7536. postinstall_cmds='chmod +x $lib'
  7537. ;;
  7538. sunos4*)
  7539. version_type=sunos
  7540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7541. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7542. shlibpath_var=LD_LIBRARY_PATH
  7543. shlibpath_overrides_runpath=yes
  7544. if test "$with_gnu_ld" = yes; then
  7545. need_lib_prefix=no
  7546. fi
  7547. need_version=yes
  7548. ;;
  7549. sysv4 | sysv4.3*)
  7550. version_type=linux
  7551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7552. soname_spec='${libname}${release}${shared_ext}$major'
  7553. shlibpath_var=LD_LIBRARY_PATH
  7554. case $host_vendor in
  7555. sni)
  7556. shlibpath_overrides_runpath=no
  7557. need_lib_prefix=no
  7558. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7559. runpath_var=LD_RUN_PATH
  7560. ;;
  7561. siemens)
  7562. need_lib_prefix=no
  7563. ;;
  7564. motorola)
  7565. need_lib_prefix=no
  7566. need_version=no
  7567. shlibpath_overrides_runpath=no
  7568. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7569. ;;
  7570. esac
  7571. ;;
  7572. sysv4*MP*)
  7573. if test -d /usr/nec ;then
  7574. version_type=linux
  7575. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7576. soname_spec='$libname${shared_ext}.$major'
  7577. shlibpath_var=LD_LIBRARY_PATH
  7578. fi
  7579. ;;
  7580. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7581. version_type=freebsd-elf
  7582. need_lib_prefix=no
  7583. need_version=no
  7584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7585. soname_spec='${libname}${release}${shared_ext}$major'
  7586. shlibpath_var=LD_LIBRARY_PATH
  7587. hardcode_into_libs=yes
  7588. if test "$with_gnu_ld" = yes; then
  7589. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7590. shlibpath_overrides_runpath=no
  7591. else
  7592. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7593. shlibpath_overrides_runpath=yes
  7594. case $host_os in
  7595. sco3.2v5*)
  7596. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7597. ;;
  7598. esac
  7599. fi
  7600. sys_lib_dlsearch_path_spec='/usr/lib'
  7601. ;;
  7602. uts4*)
  7603. version_type=linux
  7604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7605. soname_spec='${libname}${release}${shared_ext}$major'
  7606. shlibpath_var=LD_LIBRARY_PATH
  7607. ;;
  7608. *)
  7609. dynamic_linker=no
  7610. ;;
  7611. esac
  7612. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7613. echo "${ECHO_T}$dynamic_linker" >&6; }
  7614. test "$dynamic_linker" = no && can_build_shared=no
  7615. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7616. if test "$GCC" = yes; then
  7617. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7618. fi
  7619. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7620. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  7621. hardcode_action=
  7622. if test -n "$hardcode_libdir_flag_spec" || \
  7623. test -n "$runpath_var" || \
  7624. test "X$hardcode_automatic" = "Xyes" ; then
  7625. # We can hardcode non-existant directories.
  7626. if test "$hardcode_direct" != no &&
  7627. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7628. # have to relink, otherwise we might link with an installed library
  7629. # when we should be linking with a yet-to-be-installed one
  7630. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7631. test "$hardcode_minus_L" != no; then
  7632. # Linking always hardcodes the temporary library directory.
  7633. hardcode_action=relink
  7634. else
  7635. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7636. hardcode_action=immediate
  7637. fi
  7638. else
  7639. # We cannot hardcode anything, or else we can only hardcode existing
  7640. # directories.
  7641. hardcode_action=unsupported
  7642. fi
  7643. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7644. echo "${ECHO_T}$hardcode_action" >&6; }
  7645. if test "$hardcode_action" = relink; then
  7646. # Fast installation is not supported
  7647. enable_fast_install=no
  7648. elif test "$shlibpath_overrides_runpath" = yes ||
  7649. test "$enable_shared" = no; then
  7650. # Fast installation is not necessary
  7651. enable_fast_install=needless
  7652. fi
  7653. striplib=
  7654. old_striplib=
  7655. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7656. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  7657. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7658. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7659. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7660. { echo "$as_me:$LINENO: result: yes" >&5
  7661. echo "${ECHO_T}yes" >&6; }
  7662. else
  7663. # FIXME - insert some real tests, host_os isn't really good enough
  7664. case $host_os in
  7665. darwin*)
  7666. if test -n "$STRIP" ; then
  7667. striplib="$STRIP -x"
  7668. { echo "$as_me:$LINENO: result: yes" >&5
  7669. echo "${ECHO_T}yes" >&6; }
  7670. else
  7671. { echo "$as_me:$LINENO: result: no" >&5
  7672. echo "${ECHO_T}no" >&6; }
  7673. fi
  7674. ;;
  7675. *)
  7676. { echo "$as_me:$LINENO: result: no" >&5
  7677. echo "${ECHO_T}no" >&6; }
  7678. ;;
  7679. esac
  7680. fi
  7681. if test "x$enable_dlopen" != xyes; then
  7682. enable_dlopen=unknown
  7683. enable_dlopen_self=unknown
  7684. enable_dlopen_self_static=unknown
  7685. else
  7686. lt_cv_dlopen=no
  7687. lt_cv_dlopen_libs=
  7688. case $host_os in
  7689. beos*)
  7690. lt_cv_dlopen="load_add_on"
  7691. lt_cv_dlopen_libs=
  7692. lt_cv_dlopen_self=yes
  7693. ;;
  7694. mingw* | pw32*)
  7695. lt_cv_dlopen="LoadLibrary"
  7696. lt_cv_dlopen_libs=
  7697. ;;
  7698. cygwin*)
  7699. lt_cv_dlopen="dlopen"
  7700. lt_cv_dlopen_libs=
  7701. ;;
  7702. darwin*)
  7703. # if libdl is installed we need to link against it
  7704. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7705. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  7706. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7707. echo $ECHO_N "(cached) $ECHO_C" >&6
  7708. else
  7709. ac_check_lib_save_LIBS=$LIBS
  7710. LIBS="-ldl $LIBS"
  7711. cat >conftest.$ac_ext <<_ACEOF
  7712. /* confdefs.h. */
  7713. _ACEOF
  7714. cat confdefs.h >>conftest.$ac_ext
  7715. cat >>conftest.$ac_ext <<_ACEOF
  7716. /* end confdefs.h. */
  7717. /* Override any GCC internal prototype to avoid an error.
  7718. Use char because int might match the return type of a GCC
  7719. builtin and then its argument prototype would still apply. */
  7720. #ifdef __cplusplus
  7721. extern "C"
  7722. #endif
  7723. char dlopen ();
  7724. int
  7725. main ()
  7726. {
  7727. return dlopen ();
  7728. ;
  7729. return 0;
  7730. }
  7731. _ACEOF
  7732. rm -f conftest.$ac_objext conftest$ac_exeext
  7733. if { (ac_try="$ac_link"
  7734. case "(($ac_try" in
  7735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7736. *) ac_try_echo=$ac_try;;
  7737. esac
  7738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7739. (eval "$ac_link") 2>conftest.er1
  7740. ac_status=$?
  7741. grep -v '^ *+' conftest.er1 >conftest.err
  7742. rm -f conftest.er1
  7743. cat conftest.err >&5
  7744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7745. (exit $ac_status); } && {
  7746. test -z "$ac_c_werror_flag" ||
  7747. test ! -s conftest.err
  7748. } && test -s conftest$ac_exeext &&
  7749. $as_test_x conftest$ac_exeext; then
  7750. ac_cv_lib_dl_dlopen=yes
  7751. else
  7752. echo "$as_me: failed program was:" >&5
  7753. sed 's/^/| /' conftest.$ac_ext >&5
  7754. ac_cv_lib_dl_dlopen=no
  7755. fi
  7756. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7757. conftest$ac_exeext conftest.$ac_ext
  7758. LIBS=$ac_check_lib_save_LIBS
  7759. fi
  7760. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7761. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  7762. if test $ac_cv_lib_dl_dlopen = yes; then
  7763. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7764. else
  7765. lt_cv_dlopen="dyld"
  7766. lt_cv_dlopen_libs=
  7767. lt_cv_dlopen_self=yes
  7768. fi
  7769. ;;
  7770. *)
  7771. { echo "$as_me:$LINENO: checking for shl_load" >&5
  7772. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  7773. if test "${ac_cv_func_shl_load+set}" = set; then
  7774. echo $ECHO_N "(cached) $ECHO_C" >&6
  7775. else
  7776. cat >conftest.$ac_ext <<_ACEOF
  7777. /* confdefs.h. */
  7778. _ACEOF
  7779. cat confdefs.h >>conftest.$ac_ext
  7780. cat >>conftest.$ac_ext <<_ACEOF
  7781. /* end confdefs.h. */
  7782. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7783. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7784. #define shl_load innocuous_shl_load
  7785. /* System header to define __stub macros and hopefully few prototypes,
  7786. which can conflict with char shl_load (); below.
  7787. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7788. <limits.h> exists even on freestanding compilers. */
  7789. #ifdef __STDC__
  7790. # include <limits.h>
  7791. #else
  7792. # include <assert.h>
  7793. #endif
  7794. #undef shl_load
  7795. /* Override any GCC internal prototype to avoid an error.
  7796. Use char because int might match the return type of a GCC
  7797. builtin and then its argument prototype would still apply. */
  7798. #ifdef __cplusplus
  7799. extern "C"
  7800. #endif
  7801. char shl_load ();
  7802. /* The GNU C library defines this for functions which it implements
  7803. to always fail with ENOSYS. Some functions are actually named
  7804. something starting with __ and the normal name is an alias. */
  7805. #if defined __stub_shl_load || defined __stub___shl_load
  7806. choke me
  7807. #endif
  7808. int
  7809. main ()
  7810. {
  7811. return shl_load ();
  7812. ;
  7813. return 0;
  7814. }
  7815. _ACEOF
  7816. rm -f conftest.$ac_objext conftest$ac_exeext
  7817. if { (ac_try="$ac_link"
  7818. case "(($ac_try" in
  7819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7820. *) ac_try_echo=$ac_try;;
  7821. esac
  7822. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7823. (eval "$ac_link") 2>conftest.er1
  7824. ac_status=$?
  7825. grep -v '^ *+' conftest.er1 >conftest.err
  7826. rm -f conftest.er1
  7827. cat conftest.err >&5
  7828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7829. (exit $ac_status); } && {
  7830. test -z "$ac_c_werror_flag" ||
  7831. test ! -s conftest.err
  7832. } && test -s conftest$ac_exeext &&
  7833. $as_test_x conftest$ac_exeext; then
  7834. ac_cv_func_shl_load=yes
  7835. else
  7836. echo "$as_me: failed program was:" >&5
  7837. sed 's/^/| /' conftest.$ac_ext >&5
  7838. ac_cv_func_shl_load=no
  7839. fi
  7840. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7841. conftest$ac_exeext conftest.$ac_ext
  7842. fi
  7843. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7844. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  7845. if test $ac_cv_func_shl_load = yes; then
  7846. lt_cv_dlopen="shl_load"
  7847. else
  7848. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7849. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  7850. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7851. echo $ECHO_N "(cached) $ECHO_C" >&6
  7852. else
  7853. ac_check_lib_save_LIBS=$LIBS
  7854. LIBS="-ldld $LIBS"
  7855. cat >conftest.$ac_ext <<_ACEOF
  7856. /* confdefs.h. */
  7857. _ACEOF
  7858. cat confdefs.h >>conftest.$ac_ext
  7859. cat >>conftest.$ac_ext <<_ACEOF
  7860. /* end confdefs.h. */
  7861. /* Override any GCC internal prototype to avoid an error.
  7862. Use char because int might match the return type of a GCC
  7863. builtin and then its argument prototype would still apply. */
  7864. #ifdef __cplusplus
  7865. extern "C"
  7866. #endif
  7867. char shl_load ();
  7868. int
  7869. main ()
  7870. {
  7871. return shl_load ();
  7872. ;
  7873. return 0;
  7874. }
  7875. _ACEOF
  7876. rm -f conftest.$ac_objext conftest$ac_exeext
  7877. if { (ac_try="$ac_link"
  7878. case "(($ac_try" in
  7879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7880. *) ac_try_echo=$ac_try;;
  7881. esac
  7882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7883. (eval "$ac_link") 2>conftest.er1
  7884. ac_status=$?
  7885. grep -v '^ *+' conftest.er1 >conftest.err
  7886. rm -f conftest.er1
  7887. cat conftest.err >&5
  7888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7889. (exit $ac_status); } && {
  7890. test -z "$ac_c_werror_flag" ||
  7891. test ! -s conftest.err
  7892. } && test -s conftest$ac_exeext &&
  7893. $as_test_x conftest$ac_exeext; then
  7894. ac_cv_lib_dld_shl_load=yes
  7895. else
  7896. echo "$as_me: failed program was:" >&5
  7897. sed 's/^/| /' conftest.$ac_ext >&5
  7898. ac_cv_lib_dld_shl_load=no
  7899. fi
  7900. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7901. conftest$ac_exeext conftest.$ac_ext
  7902. LIBS=$ac_check_lib_save_LIBS
  7903. fi
  7904. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7905. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  7906. if test $ac_cv_lib_dld_shl_load = yes; then
  7907. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7908. else
  7909. { echo "$as_me:$LINENO: checking for dlopen" >&5
  7910. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  7911. if test "${ac_cv_func_dlopen+set}" = set; then
  7912. echo $ECHO_N "(cached) $ECHO_C" >&6
  7913. else
  7914. cat >conftest.$ac_ext <<_ACEOF
  7915. /* confdefs.h. */
  7916. _ACEOF
  7917. cat confdefs.h >>conftest.$ac_ext
  7918. cat >>conftest.$ac_ext <<_ACEOF
  7919. /* end confdefs.h. */
  7920. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7921. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7922. #define dlopen innocuous_dlopen
  7923. /* System header to define __stub macros and hopefully few prototypes,
  7924. which can conflict with char dlopen (); below.
  7925. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7926. <limits.h> exists even on freestanding compilers. */
  7927. #ifdef __STDC__
  7928. # include <limits.h>
  7929. #else
  7930. # include <assert.h>
  7931. #endif
  7932. #undef dlopen
  7933. /* Override any GCC internal prototype to avoid an error.
  7934. Use char because int might match the return type of a GCC
  7935. builtin and then its argument prototype would still apply. */
  7936. #ifdef __cplusplus
  7937. extern "C"
  7938. #endif
  7939. char dlopen ();
  7940. /* The GNU C library defines this for functions which it implements
  7941. to always fail with ENOSYS. Some functions are actually named
  7942. something starting with __ and the normal name is an alias. */
  7943. #if defined __stub_dlopen || defined __stub___dlopen
  7944. choke me
  7945. #endif
  7946. int
  7947. main ()
  7948. {
  7949. return dlopen ();
  7950. ;
  7951. return 0;
  7952. }
  7953. _ACEOF
  7954. rm -f conftest.$ac_objext conftest$ac_exeext
  7955. if { (ac_try="$ac_link"
  7956. case "(($ac_try" in
  7957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7958. *) ac_try_echo=$ac_try;;
  7959. esac
  7960. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7961. (eval "$ac_link") 2>conftest.er1
  7962. ac_status=$?
  7963. grep -v '^ *+' conftest.er1 >conftest.err
  7964. rm -f conftest.er1
  7965. cat conftest.err >&5
  7966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7967. (exit $ac_status); } && {
  7968. test -z "$ac_c_werror_flag" ||
  7969. test ! -s conftest.err
  7970. } && test -s conftest$ac_exeext &&
  7971. $as_test_x conftest$ac_exeext; then
  7972. ac_cv_func_dlopen=yes
  7973. else
  7974. echo "$as_me: failed program was:" >&5
  7975. sed 's/^/| /' conftest.$ac_ext >&5
  7976. ac_cv_func_dlopen=no
  7977. fi
  7978. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7979. conftest$ac_exeext conftest.$ac_ext
  7980. fi
  7981. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  7982. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  7983. if test $ac_cv_func_dlopen = yes; then
  7984. lt_cv_dlopen="dlopen"
  7985. else
  7986. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7987. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  7988. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7989. echo $ECHO_N "(cached) $ECHO_C" >&6
  7990. else
  7991. ac_check_lib_save_LIBS=$LIBS
  7992. LIBS="-ldl $LIBS"
  7993. cat >conftest.$ac_ext <<_ACEOF
  7994. /* confdefs.h. */
  7995. _ACEOF
  7996. cat confdefs.h >>conftest.$ac_ext
  7997. cat >>conftest.$ac_ext <<_ACEOF
  7998. /* end confdefs.h. */
  7999. /* Override any GCC internal prototype to avoid an error.
  8000. Use char because int might match the return type of a GCC
  8001. builtin and then its argument prototype would still apply. */
  8002. #ifdef __cplusplus
  8003. extern "C"
  8004. #endif
  8005. char dlopen ();
  8006. int
  8007. main ()
  8008. {
  8009. return dlopen ();
  8010. ;
  8011. return 0;
  8012. }
  8013. _ACEOF
  8014. rm -f conftest.$ac_objext conftest$ac_exeext
  8015. if { (ac_try="$ac_link"
  8016. case "(($ac_try" in
  8017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8018. *) ac_try_echo=$ac_try;;
  8019. esac
  8020. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8021. (eval "$ac_link") 2>conftest.er1
  8022. ac_status=$?
  8023. grep -v '^ *+' conftest.er1 >conftest.err
  8024. rm -f conftest.er1
  8025. cat conftest.err >&5
  8026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8027. (exit $ac_status); } && {
  8028. test -z "$ac_c_werror_flag" ||
  8029. test ! -s conftest.err
  8030. } && test -s conftest$ac_exeext &&
  8031. $as_test_x conftest$ac_exeext; then
  8032. ac_cv_lib_dl_dlopen=yes
  8033. else
  8034. echo "$as_me: failed program was:" >&5
  8035. sed 's/^/| /' conftest.$ac_ext >&5
  8036. ac_cv_lib_dl_dlopen=no
  8037. fi
  8038. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8039. conftest$ac_exeext conftest.$ac_ext
  8040. LIBS=$ac_check_lib_save_LIBS
  8041. fi
  8042. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8043. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8044. if test $ac_cv_lib_dl_dlopen = yes; then
  8045. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8046. else
  8047. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8048. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8049. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8050. echo $ECHO_N "(cached) $ECHO_C" >&6
  8051. else
  8052. ac_check_lib_save_LIBS=$LIBS
  8053. LIBS="-lsvld $LIBS"
  8054. cat >conftest.$ac_ext <<_ACEOF
  8055. /* confdefs.h. */
  8056. _ACEOF
  8057. cat confdefs.h >>conftest.$ac_ext
  8058. cat >>conftest.$ac_ext <<_ACEOF
  8059. /* end confdefs.h. */
  8060. /* Override any GCC internal prototype to avoid an error.
  8061. Use char because int might match the return type of a GCC
  8062. builtin and then its argument prototype would still apply. */
  8063. #ifdef __cplusplus
  8064. extern "C"
  8065. #endif
  8066. char dlopen ();
  8067. int
  8068. main ()
  8069. {
  8070. return dlopen ();
  8071. ;
  8072. return 0;
  8073. }
  8074. _ACEOF
  8075. rm -f conftest.$ac_objext conftest$ac_exeext
  8076. if { (ac_try="$ac_link"
  8077. case "(($ac_try" in
  8078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8079. *) ac_try_echo=$ac_try;;
  8080. esac
  8081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8082. (eval "$ac_link") 2>conftest.er1
  8083. ac_status=$?
  8084. grep -v '^ *+' conftest.er1 >conftest.err
  8085. rm -f conftest.er1
  8086. cat conftest.err >&5
  8087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8088. (exit $ac_status); } && {
  8089. test -z "$ac_c_werror_flag" ||
  8090. test ! -s conftest.err
  8091. } && test -s conftest$ac_exeext &&
  8092. $as_test_x conftest$ac_exeext; then
  8093. ac_cv_lib_svld_dlopen=yes
  8094. else
  8095. echo "$as_me: failed program was:" >&5
  8096. sed 's/^/| /' conftest.$ac_ext >&5
  8097. ac_cv_lib_svld_dlopen=no
  8098. fi
  8099. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8100. conftest$ac_exeext conftest.$ac_ext
  8101. LIBS=$ac_check_lib_save_LIBS
  8102. fi
  8103. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8104. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8105. if test $ac_cv_lib_svld_dlopen = yes; then
  8106. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8107. else
  8108. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8109. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8110. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8111. echo $ECHO_N "(cached) $ECHO_C" >&6
  8112. else
  8113. ac_check_lib_save_LIBS=$LIBS
  8114. LIBS="-ldld $LIBS"
  8115. cat >conftest.$ac_ext <<_ACEOF
  8116. /* confdefs.h. */
  8117. _ACEOF
  8118. cat confdefs.h >>conftest.$ac_ext
  8119. cat >>conftest.$ac_ext <<_ACEOF
  8120. /* end confdefs.h. */
  8121. /* Override any GCC internal prototype to avoid an error.
  8122. Use char because int might match the return type of a GCC
  8123. builtin and then its argument prototype would still apply. */
  8124. #ifdef __cplusplus
  8125. extern "C"
  8126. #endif
  8127. char dld_link ();
  8128. int
  8129. main ()
  8130. {
  8131. return dld_link ();
  8132. ;
  8133. return 0;
  8134. }
  8135. _ACEOF
  8136. rm -f conftest.$ac_objext conftest$ac_exeext
  8137. if { (ac_try="$ac_link"
  8138. case "(($ac_try" in
  8139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8140. *) ac_try_echo=$ac_try;;
  8141. esac
  8142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8143. (eval "$ac_link") 2>conftest.er1
  8144. ac_status=$?
  8145. grep -v '^ *+' conftest.er1 >conftest.err
  8146. rm -f conftest.er1
  8147. cat conftest.err >&5
  8148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8149. (exit $ac_status); } && {
  8150. test -z "$ac_c_werror_flag" ||
  8151. test ! -s conftest.err
  8152. } && test -s conftest$ac_exeext &&
  8153. $as_test_x conftest$ac_exeext; then
  8154. ac_cv_lib_dld_dld_link=yes
  8155. else
  8156. echo "$as_me: failed program was:" >&5
  8157. sed 's/^/| /' conftest.$ac_ext >&5
  8158. ac_cv_lib_dld_dld_link=no
  8159. fi
  8160. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8161. conftest$ac_exeext conftest.$ac_ext
  8162. LIBS=$ac_check_lib_save_LIBS
  8163. fi
  8164. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8165. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8166. if test $ac_cv_lib_dld_dld_link = yes; then
  8167. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8168. fi
  8169. fi
  8170. fi
  8171. fi
  8172. fi
  8173. fi
  8174. ;;
  8175. esac
  8176. if test "x$lt_cv_dlopen" != xno; then
  8177. enable_dlopen=yes
  8178. else
  8179. enable_dlopen=no
  8180. fi
  8181. case $lt_cv_dlopen in
  8182. dlopen)
  8183. save_CPPFLAGS="$CPPFLAGS"
  8184. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8185. save_LDFLAGS="$LDFLAGS"
  8186. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8187. save_LIBS="$LIBS"
  8188. LIBS="$lt_cv_dlopen_libs $LIBS"
  8189. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8190. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8191. if test "${lt_cv_dlopen_self+set}" = set; then
  8192. echo $ECHO_N "(cached) $ECHO_C" >&6
  8193. else
  8194. if test "$cross_compiling" = yes; then :
  8195. lt_cv_dlopen_self=cross
  8196. else
  8197. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8198. lt_status=$lt_dlunknown
  8199. cat > conftest.$ac_ext <<EOF
  8200. #line 9092 "configure"
  8201. #include "confdefs.h"
  8202. #if HAVE_DLFCN_H
  8203. #include <dlfcn.h>
  8204. #endif
  8205. #include <stdio.h>
  8206. #ifdef RTLD_GLOBAL
  8207. # define LT_DLGLOBAL RTLD_GLOBAL
  8208. #else
  8209. # ifdef DL_GLOBAL
  8210. # define LT_DLGLOBAL DL_GLOBAL
  8211. # else
  8212. # define LT_DLGLOBAL 0
  8213. # endif
  8214. #endif
  8215. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8216. find out it does not work in some platform. */
  8217. #ifndef LT_DLLAZY_OR_NOW
  8218. # ifdef RTLD_LAZY
  8219. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8220. # else
  8221. # ifdef DL_LAZY
  8222. # define LT_DLLAZY_OR_NOW DL_LAZY
  8223. # else
  8224. # ifdef RTLD_NOW
  8225. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8226. # else
  8227. # ifdef DL_NOW
  8228. # define LT_DLLAZY_OR_NOW DL_NOW
  8229. # else
  8230. # define LT_DLLAZY_OR_NOW 0
  8231. # endif
  8232. # endif
  8233. # endif
  8234. # endif
  8235. #endif
  8236. #ifdef __cplusplus
  8237. extern "C" void exit (int);
  8238. #endif
  8239. void fnord() { int i=42;}
  8240. int main ()
  8241. {
  8242. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8243. int status = $lt_dlunknown;
  8244. if (self)
  8245. {
  8246. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8247. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8248. /* dlclose (self); */
  8249. }
  8250. else
  8251. puts (dlerror ());
  8252. exit (status);
  8253. }
  8254. EOF
  8255. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8256. (eval $ac_link) 2>&5
  8257. ac_status=$?
  8258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8259. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8260. (./conftest; exit; ) >&5 2>/dev/null
  8261. lt_status=$?
  8262. case x$lt_status in
  8263. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8264. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8265. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8266. esac
  8267. else :
  8268. # compilation failed
  8269. lt_cv_dlopen_self=no
  8270. fi
  8271. fi
  8272. rm -fr conftest*
  8273. fi
  8274. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8275. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  8276. if test "x$lt_cv_dlopen_self" = xyes; then
  8277. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8278. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8279. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  8280. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8281. echo $ECHO_N "(cached) $ECHO_C" >&6
  8282. else
  8283. if test "$cross_compiling" = yes; then :
  8284. lt_cv_dlopen_self_static=cross
  8285. else
  8286. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8287. lt_status=$lt_dlunknown
  8288. cat > conftest.$ac_ext <<EOF
  8289. #line 9192 "configure"
  8290. #include "confdefs.h"
  8291. #if HAVE_DLFCN_H
  8292. #include <dlfcn.h>
  8293. #endif
  8294. #include <stdio.h>
  8295. #ifdef RTLD_GLOBAL
  8296. # define LT_DLGLOBAL RTLD_GLOBAL
  8297. #else
  8298. # ifdef DL_GLOBAL
  8299. # define LT_DLGLOBAL DL_GLOBAL
  8300. # else
  8301. # define LT_DLGLOBAL 0
  8302. # endif
  8303. #endif
  8304. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8305. find out it does not work in some platform. */
  8306. #ifndef LT_DLLAZY_OR_NOW
  8307. # ifdef RTLD_LAZY
  8308. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8309. # else
  8310. # ifdef DL_LAZY
  8311. # define LT_DLLAZY_OR_NOW DL_LAZY
  8312. # else
  8313. # ifdef RTLD_NOW
  8314. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8315. # else
  8316. # ifdef DL_NOW
  8317. # define LT_DLLAZY_OR_NOW DL_NOW
  8318. # else
  8319. # define LT_DLLAZY_OR_NOW 0
  8320. # endif
  8321. # endif
  8322. # endif
  8323. # endif
  8324. #endif
  8325. #ifdef __cplusplus
  8326. extern "C" void exit (int);
  8327. #endif
  8328. void fnord() { int i=42;}
  8329. int main ()
  8330. {
  8331. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8332. int status = $lt_dlunknown;
  8333. if (self)
  8334. {
  8335. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8336. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8337. /* dlclose (self); */
  8338. }
  8339. else
  8340. puts (dlerror ());
  8341. exit (status);
  8342. }
  8343. EOF
  8344. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8345. (eval $ac_link) 2>&5
  8346. ac_status=$?
  8347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8348. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8349. (./conftest; exit; ) >&5 2>/dev/null
  8350. lt_status=$?
  8351. case x$lt_status in
  8352. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8353. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8354. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8355. esac
  8356. else :
  8357. # compilation failed
  8358. lt_cv_dlopen_self_static=no
  8359. fi
  8360. fi
  8361. rm -fr conftest*
  8362. fi
  8363. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8364. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  8365. fi
  8366. CPPFLAGS="$save_CPPFLAGS"
  8367. LDFLAGS="$save_LDFLAGS"
  8368. LIBS="$save_LIBS"
  8369. ;;
  8370. esac
  8371. case $lt_cv_dlopen_self in
  8372. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8373. *) enable_dlopen_self=unknown ;;
  8374. esac
  8375. case $lt_cv_dlopen_self_static in
  8376. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8377. *) enable_dlopen_self_static=unknown ;;
  8378. esac
  8379. fi
  8380. # Report which library types will actually be built
  8381. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8382. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  8383. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8384. echo "${ECHO_T}$can_build_shared" >&6; }
  8385. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8386. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  8387. test "$can_build_shared" = "no" && enable_shared=no
  8388. # On AIX, shared libraries and static libraries use the same namespace, and
  8389. # are all built from PIC.
  8390. case $host_os in
  8391. aix3*)
  8392. test "$enable_shared" = yes && enable_static=no
  8393. if test -n "$RANLIB"; then
  8394. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8395. postinstall_cmds='$RANLIB $lib'
  8396. fi
  8397. ;;
  8398. aix4* | aix5*)
  8399. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8400. test "$enable_shared" = yes && enable_static=no
  8401. fi
  8402. ;;
  8403. esac
  8404. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  8405. echo "${ECHO_T}$enable_shared" >&6; }
  8406. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8407. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  8408. # Make sure either enable_shared or enable_static is yes.
  8409. test "$enable_shared" = yes || enable_static=yes
  8410. { echo "$as_me:$LINENO: result: $enable_static" >&5
  8411. echo "${ECHO_T}$enable_static" >&6; }
  8412. # The else clause should only fire when bootstrapping the
  8413. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8414. # with your package, and you will get complaints that there are
  8415. # no rules to generate ltmain.sh.
  8416. if test -f "$ltmain"; then
  8417. # See if we are running on zsh, and set the options which allow our commands through
  8418. # without removal of \ escapes.
  8419. if test -n "${ZSH_VERSION+set}" ; then
  8420. setopt NO_GLOB_SUBST
  8421. fi
  8422. # Now quote all the things that may contain metacharacters while being
  8423. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8424. # variables and quote the copies for generation of the libtool script.
  8425. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8426. SED SHELL STRIP \
  8427. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8428. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8429. deplibs_check_method reload_flag reload_cmds need_locks \
  8430. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8431. lt_cv_sys_global_symbol_to_c_name_address \
  8432. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8433. old_postinstall_cmds old_postuninstall_cmds \
  8434. compiler \
  8435. CC \
  8436. LD \
  8437. lt_prog_compiler_wl \
  8438. lt_prog_compiler_pic \
  8439. lt_prog_compiler_static \
  8440. lt_prog_compiler_no_builtin_flag \
  8441. export_dynamic_flag_spec \
  8442. thread_safe_flag_spec \
  8443. whole_archive_flag_spec \
  8444. enable_shared_with_static_runtimes \
  8445. old_archive_cmds \
  8446. old_archive_from_new_cmds \
  8447. predep_objects \
  8448. postdep_objects \
  8449. predeps \
  8450. postdeps \
  8451. compiler_lib_search_path \
  8452. archive_cmds \
  8453. archive_expsym_cmds \
  8454. postinstall_cmds \
  8455. postuninstall_cmds \
  8456. old_archive_from_expsyms_cmds \
  8457. allow_undefined_flag \
  8458. no_undefined_flag \
  8459. export_symbols_cmds \
  8460. hardcode_libdir_flag_spec \
  8461. hardcode_libdir_flag_spec_ld \
  8462. hardcode_libdir_separator \
  8463. hardcode_automatic \
  8464. module_cmds \
  8465. module_expsym_cmds \
  8466. lt_cv_prog_compiler_c_o \
  8467. exclude_expsyms \
  8468. include_expsyms; do
  8469. case $var in
  8470. old_archive_cmds | \
  8471. old_archive_from_new_cmds | \
  8472. archive_cmds | \
  8473. archive_expsym_cmds | \
  8474. module_cmds | \
  8475. module_expsym_cmds | \
  8476. old_archive_from_expsyms_cmds | \
  8477. export_symbols_cmds | \
  8478. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8479. postinstall_cmds | postuninstall_cmds | \
  8480. old_postinstall_cmds | old_postuninstall_cmds | \
  8481. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8482. # Double-quote double-evaled strings.
  8483. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8484. ;;
  8485. *)
  8486. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8487. ;;
  8488. esac
  8489. done
  8490. case $lt_echo in
  8491. *'\$0 --fallback-echo"')
  8492. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8493. ;;
  8494. esac
  8495. cfgfile="${ofile}T"
  8496. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8497. $rm -f "$cfgfile"
  8498. { echo "$as_me:$LINENO: creating $ofile" >&5
  8499. echo "$as_me: creating $ofile" >&6;}
  8500. cat <<__EOF__ >> "$cfgfile"
  8501. #! $SHELL
  8502. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8503. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8504. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8505. #
  8506. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8507. # Free Software Foundation, Inc.
  8508. #
  8509. # This file is part of GNU Libtool:
  8510. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  8511. #
  8512. # This program is free software; you can redistribute it and/or modify
  8513. # it under the terms of the GNU General Public License as published by
  8514. # the Free Software Foundation; either version 2 of the License, or
  8515. # (at your option) any later version.
  8516. #
  8517. # This program is distributed in the hope that it will be useful, but
  8518. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8519. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8520. # General Public License for more details.
  8521. #
  8522. # You should have received a copy of the GNU General Public License
  8523. # along with this program; if not, write to the Free Software
  8524. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8525. #
  8526. # As a special exception to the GNU General Public License, if you
  8527. # distribute this file as part of a program that contains a
  8528. # configuration script generated by Autoconf, you may include it under
  8529. # the same distribution terms that you use for the rest of that program.
  8530. # A sed program that does not truncate output.
  8531. SED=$lt_SED
  8532. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8533. Xsed="$SED -e 1s/^X//"
  8534. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8535. # if CDPATH is set.
  8536. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8537. # The names of the tagged configurations supported by this script.
  8538. available_tags=
  8539. # ### BEGIN LIBTOOL CONFIG
  8540. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8541. # Shell to use when invoking shell scripts.
  8542. SHELL=$lt_SHELL
  8543. # Whether or not to build shared libraries.
  8544. build_libtool_libs=$enable_shared
  8545. # Whether or not to build static libraries.
  8546. build_old_libs=$enable_static
  8547. # Whether or not to add -lc for building shared libraries.
  8548. build_libtool_need_lc=$archive_cmds_need_lc
  8549. # Whether or not to disallow shared libs when runtime libs are static
  8550. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8551. # Whether or not to optimize for fast installation.
  8552. fast_install=$enable_fast_install
  8553. # The host system.
  8554. host_alias=$host_alias
  8555. host=$host
  8556. host_os=$host_os
  8557. # The build system.
  8558. build_alias=$build_alias
  8559. build=$build
  8560. build_os=$build_os
  8561. # An echo program that does not interpret backslashes.
  8562. echo=$lt_echo
  8563. # The archiver.
  8564. AR=$lt_AR
  8565. AR_FLAGS=$lt_AR_FLAGS
  8566. # A C compiler.
  8567. LTCC=$lt_LTCC
  8568. # LTCC compiler flags.
  8569. LTCFLAGS=$lt_LTCFLAGS
  8570. # A language-specific compiler.
  8571. CC=$lt_compiler
  8572. # Is the compiler the GNU C compiler?
  8573. with_gcc=$GCC
  8574. # An ERE matcher.
  8575. EGREP=$lt_EGREP
  8576. # The linker used to build libraries.
  8577. LD=$lt_LD
  8578. # Whether we need hard or soft links.
  8579. LN_S=$lt_LN_S
  8580. # A BSD-compatible nm program.
  8581. NM=$lt_NM
  8582. # A symbol stripping program
  8583. STRIP=$lt_STRIP
  8584. # Used to examine libraries when file_magic_cmd begins "file"
  8585. MAGIC_CMD=$MAGIC_CMD
  8586. # Used on cygwin: DLL creation program.
  8587. DLLTOOL="$DLLTOOL"
  8588. # Used on cygwin: object dumper.
  8589. OBJDUMP="$OBJDUMP"
  8590. # Used on cygwin: assembler.
  8591. AS="$AS"
  8592. # The name of the directory that contains temporary libtool files.
  8593. objdir=$objdir
  8594. # How to create reloadable object files.
  8595. reload_flag=$lt_reload_flag
  8596. reload_cmds=$lt_reload_cmds
  8597. # How to pass a linker flag through the compiler.
  8598. wl=$lt_lt_prog_compiler_wl
  8599. # Object file suffix (normally "o").
  8600. objext="$ac_objext"
  8601. # Old archive suffix (normally "a").
  8602. libext="$libext"
  8603. # Shared library suffix (normally ".so").
  8604. shrext_cmds='$shrext_cmds'
  8605. # Executable file suffix (normally "").
  8606. exeext="$exeext"
  8607. # Additional compiler flags for building library objects.
  8608. pic_flag=$lt_lt_prog_compiler_pic
  8609. pic_mode=$pic_mode
  8610. # What is the maximum length of a command?
  8611. max_cmd_len=$lt_cv_sys_max_cmd_len
  8612. # Does compiler simultaneously support -c and -o options?
  8613. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8614. # Must we lock files when doing compilation?
  8615. need_locks=$lt_need_locks
  8616. # Do we need the lib prefix for modules?
  8617. need_lib_prefix=$need_lib_prefix
  8618. # Do we need a version for libraries?
  8619. need_version=$need_version
  8620. # Whether dlopen is supported.
  8621. dlopen_support=$enable_dlopen
  8622. # Whether dlopen of programs is supported.
  8623. dlopen_self=$enable_dlopen_self
  8624. # Whether dlopen of statically linked programs is supported.
  8625. dlopen_self_static=$enable_dlopen_self_static
  8626. # Compiler flag to prevent dynamic linking.
  8627. link_static_flag=$lt_lt_prog_compiler_static
  8628. # Compiler flag to turn off builtin functions.
  8629. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8630. # Compiler flag to allow reflexive dlopens.
  8631. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8632. # Compiler flag to generate shared objects directly from archives.
  8633. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8634. # Compiler flag to generate thread-safe objects.
  8635. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8636. # Library versioning type.
  8637. version_type=$version_type
  8638. # Format of library name prefix.
  8639. libname_spec=$lt_libname_spec
  8640. # List of archive names. First name is the real one, the rest are links.
  8641. # The last name is the one that the linker finds with -lNAME.
  8642. library_names_spec=$lt_library_names_spec
  8643. # The coded name of the library, if different from the real name.
  8644. soname_spec=$lt_soname_spec
  8645. # Commands used to build and install an old-style archive.
  8646. RANLIB=$lt_RANLIB
  8647. old_archive_cmds=$lt_old_archive_cmds
  8648. old_postinstall_cmds=$lt_old_postinstall_cmds
  8649. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8650. # Create an old-style archive from a shared archive.
  8651. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8652. # Create a temporary old-style archive to link instead of a shared archive.
  8653. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8654. # Commands used to build and install a shared archive.
  8655. archive_cmds=$lt_archive_cmds
  8656. archive_expsym_cmds=$lt_archive_expsym_cmds
  8657. postinstall_cmds=$lt_postinstall_cmds
  8658. postuninstall_cmds=$lt_postuninstall_cmds
  8659. # Commands used to build a loadable module (assumed same as above if empty)
  8660. module_cmds=$lt_module_cmds
  8661. module_expsym_cmds=$lt_module_expsym_cmds
  8662. # Commands to strip libraries.
  8663. old_striplib=$lt_old_striplib
  8664. striplib=$lt_striplib
  8665. # Dependencies to place before the objects being linked to create a
  8666. # shared library.
  8667. predep_objects=$lt_predep_objects
  8668. # Dependencies to place after the objects being linked to create a
  8669. # shared library.
  8670. postdep_objects=$lt_postdep_objects
  8671. # Dependencies to place before the objects being linked to create a
  8672. # shared library.
  8673. predeps=$lt_predeps
  8674. # Dependencies to place after the objects being linked to create a
  8675. # shared library.
  8676. postdeps=$lt_postdeps
  8677. # The library search path used internally by the compiler when linking
  8678. # a shared library.
  8679. compiler_lib_search_path=$lt_compiler_lib_search_path
  8680. # Method to check whether dependent libraries are shared objects.
  8681. deplibs_check_method=$lt_deplibs_check_method
  8682. # Command to use when deplibs_check_method == file_magic.
  8683. file_magic_cmd=$lt_file_magic_cmd
  8684. # Flag that allows shared libraries with undefined symbols to be built.
  8685. allow_undefined_flag=$lt_allow_undefined_flag
  8686. # Flag that forces no undefined symbols.
  8687. no_undefined_flag=$lt_no_undefined_flag
  8688. # Commands used to finish a libtool library installation in a directory.
  8689. finish_cmds=$lt_finish_cmds
  8690. # Same as above, but a single script fragment to be evaled but not shown.
  8691. finish_eval=$lt_finish_eval
  8692. # Take the output of nm and produce a listing of raw symbols and C names.
  8693. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8694. # Transform the output of nm in a proper C declaration
  8695. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8696. # Transform the output of nm in a C name address pair
  8697. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8698. # This is the shared library runtime path variable.
  8699. runpath_var=$runpath_var
  8700. # This is the shared library path variable.
  8701. shlibpath_var=$shlibpath_var
  8702. # Is shlibpath searched before the hard-coded library search path?
  8703. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8704. # How to hardcode a shared library path into an executable.
  8705. hardcode_action=$hardcode_action
  8706. # Whether we should hardcode library paths into libraries.
  8707. hardcode_into_libs=$hardcode_into_libs
  8708. # Flag to hardcode \$libdir into a binary during linking.
  8709. # This must work even if \$libdir does not exist.
  8710. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8711. # If ld is used when linking, flag to hardcode \$libdir into
  8712. # a binary during linking. This must work even if \$libdir does
  8713. # not exist.
  8714. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8715. # Whether we need a single -rpath flag with a separated argument.
  8716. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8717. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8718. # resulting binary.
  8719. hardcode_direct=$hardcode_direct
  8720. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8721. # resulting binary.
  8722. hardcode_minus_L=$hardcode_minus_L
  8723. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8724. # the resulting binary.
  8725. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8726. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8727. # and all subsequent libraries and executables linked against it.
  8728. hardcode_automatic=$hardcode_automatic
  8729. # Variables whose values should be saved in libtool wrapper scripts and
  8730. # restored at relink time.
  8731. variables_saved_for_relink="$variables_saved_for_relink"
  8732. # Whether libtool must link a program against all its dependency libraries.
  8733. link_all_deplibs=$link_all_deplibs
  8734. # Compile-time system search path for libraries
  8735. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8736. # Run-time system search path for libraries
  8737. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8738. # Fix the shell variable \$srcfile for the compiler.
  8739. fix_srcfile_path="$fix_srcfile_path"
  8740. # Set to yes if exported symbols are required.
  8741. always_export_symbols=$always_export_symbols
  8742. # The commands to list exported symbols.
  8743. export_symbols_cmds=$lt_export_symbols_cmds
  8744. # The commands to extract the exported symbol list from a shared archive.
  8745. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8746. # Symbols that should not be listed in the preloaded symbols.
  8747. exclude_expsyms=$lt_exclude_expsyms
  8748. # Symbols that must always be exported.
  8749. include_expsyms=$lt_include_expsyms
  8750. # ### END LIBTOOL CONFIG
  8751. __EOF__
  8752. case $host_os in
  8753. aix3*)
  8754. cat <<\EOF >> "$cfgfile"
  8755. # AIX sometimes has problems with the GCC collect2 program. For some
  8756. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8757. # vanish in a puff of smoke.
  8758. if test "X${COLLECT_NAMES+set}" != Xset; then
  8759. COLLECT_NAMES=
  8760. export COLLECT_NAMES
  8761. fi
  8762. EOF
  8763. ;;
  8764. esac
  8765. # We use sed instead of cat because bash on DJGPP gets confused if
  8766. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8767. # text mode, it properly converts lines to CR/LF. This bash problem
  8768. # is reportedly fixed, but why not run on old versions too?
  8769. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8770. mv -f "$cfgfile" "$ofile" || \
  8771. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8772. chmod +x "$ofile"
  8773. else
  8774. # If there is no Makefile yet, we rely on a make rule to execute
  8775. # `config.status --recheck' to rerun these tests and create the
  8776. # libtool script then.
  8777. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8778. if test -f "$ltmain_in"; then
  8779. test -f Makefile && make "$ltmain"
  8780. fi
  8781. fi
  8782. ac_ext=c
  8783. ac_cpp='$CPP $CPPFLAGS'
  8784. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8785. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8786. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8787. CC="$lt_save_CC"
  8788. # Check whether --with-tags was given.
  8789. if test "${with_tags+set}" = set; then
  8790. withval=$with_tags; tagnames="$withval"
  8791. fi
  8792. if test -f "$ltmain" && test -n "$tagnames"; then
  8793. if test ! -f "${ofile}"; then
  8794. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8795. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8796. fi
  8797. if test -z "$LTCC"; then
  8798. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8799. if test -z "$LTCC"; then
  8800. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8801. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8802. else
  8803. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8804. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8805. fi
  8806. fi
  8807. if test -z "$LTCFLAGS"; then
  8808. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  8809. fi
  8810. # Extract list of available tagged configurations in $ofile.
  8811. # Note that this assumes the entire list is on one line.
  8812. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8813. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8814. for tagname in $tagnames; do
  8815. IFS="$lt_save_ifs"
  8816. # Check whether tagname contains only valid characters
  8817. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8818. "") ;;
  8819. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8820. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8821. { (exit 1); exit 1; }; }
  8822. ;;
  8823. esac
  8824. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8825. then
  8826. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8827. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8828. { (exit 1); exit 1; }; }
  8829. fi
  8830. # Update the list of available tags.
  8831. if test -n "$tagname"; then
  8832. echo appending configuration tag \"$tagname\" to $ofile
  8833. case $tagname in
  8834. CXX)
  8835. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8836. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8837. (test "X$CXX" != "Xg++"))) ; then
  8838. ac_ext=cpp
  8839. ac_cpp='$CXXCPP $CPPFLAGS'
  8840. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8841. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8842. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8843. archive_cmds_need_lc_CXX=no
  8844. allow_undefined_flag_CXX=
  8845. always_export_symbols_CXX=no
  8846. archive_expsym_cmds_CXX=
  8847. export_dynamic_flag_spec_CXX=
  8848. hardcode_direct_CXX=no
  8849. hardcode_libdir_flag_spec_CXX=
  8850. hardcode_libdir_flag_spec_ld_CXX=
  8851. hardcode_libdir_separator_CXX=
  8852. hardcode_minus_L_CXX=no
  8853. hardcode_shlibpath_var_CXX=unsupported
  8854. hardcode_automatic_CXX=no
  8855. module_cmds_CXX=
  8856. module_expsym_cmds_CXX=
  8857. link_all_deplibs_CXX=unknown
  8858. old_archive_cmds_CXX=$old_archive_cmds
  8859. no_undefined_flag_CXX=
  8860. whole_archive_flag_spec_CXX=
  8861. enable_shared_with_static_runtimes_CXX=no
  8862. # Dependencies to place before and after the object being linked:
  8863. predep_objects_CXX=
  8864. postdep_objects_CXX=
  8865. predeps_CXX=
  8866. postdeps_CXX=
  8867. compiler_lib_search_path_CXX=
  8868. # Source file extension for C++ test sources.
  8869. ac_ext=cpp
  8870. # Object file extension for compiled C++ test sources.
  8871. objext=o
  8872. objext_CXX=$objext
  8873. # Code to be used in simple compile tests
  8874. lt_simple_compile_test_code="int some_variable = 0;\n"
  8875. # Code to be used in simple link tests
  8876. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  8877. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8878. # If no C compiler was specified, use CC.
  8879. LTCC=${LTCC-"$CC"}
  8880. # If no C compiler flags were specified, use CFLAGS.
  8881. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8882. # Allow CC to be a program name with arguments.
  8883. compiler=$CC
  8884. # save warnings/boilerplate of simple test code
  8885. ac_outfile=conftest.$ac_objext
  8886. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8887. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8888. _lt_compiler_boilerplate=`cat conftest.err`
  8889. $rm conftest*
  8890. ac_outfile=conftest.$ac_objext
  8891. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8892. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8893. _lt_linker_boilerplate=`cat conftest.err`
  8894. $rm conftest*
  8895. # Allow CC to be a program name with arguments.
  8896. lt_save_CC=$CC
  8897. lt_save_LD=$LD
  8898. lt_save_GCC=$GCC
  8899. GCC=$GXX
  8900. lt_save_with_gnu_ld=$with_gnu_ld
  8901. lt_save_path_LD=$lt_cv_path_LD
  8902. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8903. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8904. else
  8905. $as_unset lt_cv_prog_gnu_ld
  8906. fi
  8907. if test -n "${lt_cv_path_LDCXX+set}"; then
  8908. lt_cv_path_LD=$lt_cv_path_LDCXX
  8909. else
  8910. $as_unset lt_cv_path_LD
  8911. fi
  8912. test -z "${LDCXX+set}" || LD=$LDCXX
  8913. CC=${CXX-"c++"}
  8914. compiler=$CC
  8915. compiler_CXX=$CC
  8916. for cc_temp in $compiler""; do
  8917. case $cc_temp in
  8918. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8919. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8920. \-*) ;;
  8921. *) break;;
  8922. esac
  8923. done
  8924. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8925. # We don't want -fno-exception wen compiling C++ code, so set the
  8926. # no_builtin_flag separately
  8927. if test "$GXX" = yes; then
  8928. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8929. else
  8930. lt_prog_compiler_no_builtin_flag_CXX=
  8931. fi
  8932. if test "$GXX" = yes; then
  8933. # Set up default GNU C++ configuration
  8934. # Check whether --with-gnu-ld was given.
  8935. if test "${with_gnu_ld+set}" = set; then
  8936. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8937. else
  8938. with_gnu_ld=no
  8939. fi
  8940. ac_prog=ld
  8941. if test "$GCC" = yes; then
  8942. # Check if gcc -print-prog-name=ld gives a path.
  8943. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8944. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  8945. case $host in
  8946. *-*-mingw*)
  8947. # gcc leaves a trailing carriage return which upsets mingw
  8948. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8949. *)
  8950. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8951. esac
  8952. case $ac_prog in
  8953. # Accept absolute paths.
  8954. [\\/]* | ?:[\\/]*)
  8955. re_direlt='/[^/][^/]*/\.\./'
  8956. # Canonicalize the pathname of ld
  8957. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8958. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8959. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8960. done
  8961. test -z "$LD" && LD="$ac_prog"
  8962. ;;
  8963. "")
  8964. # If it fails, then pretend we aren't using GCC.
  8965. ac_prog=ld
  8966. ;;
  8967. *)
  8968. # If it is relative, then search for the first ld in PATH.
  8969. with_gnu_ld=unknown
  8970. ;;
  8971. esac
  8972. elif test "$with_gnu_ld" = yes; then
  8973. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8974. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8975. else
  8976. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8977. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8978. fi
  8979. if test "${lt_cv_path_LD+set}" = set; then
  8980. echo $ECHO_N "(cached) $ECHO_C" >&6
  8981. else
  8982. if test -z "$LD"; then
  8983. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8984. for ac_dir in $PATH; do
  8985. IFS="$lt_save_ifs"
  8986. test -z "$ac_dir" && ac_dir=.
  8987. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8988. lt_cv_path_LD="$ac_dir/$ac_prog"
  8989. # Check to see if the program is GNU ld. I'd rather use --version,
  8990. # but apparently some variants of GNU ld only accept -v.
  8991. # Break only if it was the GNU/non-GNU ld that we prefer.
  8992. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8993. *GNU* | *'with BFD'*)
  8994. test "$with_gnu_ld" != no && break
  8995. ;;
  8996. *)
  8997. test "$with_gnu_ld" != yes && break
  8998. ;;
  8999. esac
  9000. fi
  9001. done
  9002. IFS="$lt_save_ifs"
  9003. else
  9004. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9005. fi
  9006. fi
  9007. LD="$lt_cv_path_LD"
  9008. if test -n "$LD"; then
  9009. { echo "$as_me:$LINENO: result: $LD" >&5
  9010. echo "${ECHO_T}$LD" >&6; }
  9011. else
  9012. { echo "$as_me:$LINENO: result: no" >&5
  9013. echo "${ECHO_T}no" >&6; }
  9014. fi
  9015. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9016. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9017. { (exit 1); exit 1; }; }
  9018. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9019. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9020. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9021. echo $ECHO_N "(cached) $ECHO_C" >&6
  9022. else
  9023. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9024. case `$LD -v 2>&1 </dev/null` in
  9025. *GNU* | *'with BFD'*)
  9026. lt_cv_prog_gnu_ld=yes
  9027. ;;
  9028. *)
  9029. lt_cv_prog_gnu_ld=no
  9030. ;;
  9031. esac
  9032. fi
  9033. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9034. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9035. with_gnu_ld=$lt_cv_prog_gnu_ld
  9036. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9037. # archiving commands below assume that GNU ld is being used.
  9038. if test "$with_gnu_ld" = yes; then
  9039. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9040. 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'
  9041. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9042. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9043. # If archive_cmds runs LD, not CC, wlarc should be empty
  9044. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9045. # investigate it a little bit more. (MM)
  9046. wlarc='${wl}'
  9047. # ancient GNU ld didn't support --whole-archive et. al.
  9048. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9049. grep 'no-whole-archive' > /dev/null; then
  9050. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9051. else
  9052. whole_archive_flag_spec_CXX=
  9053. fi
  9054. else
  9055. with_gnu_ld=no
  9056. wlarc=
  9057. # A generic and very simple default shared library creation
  9058. # command for GNU C++ for the case where it uses the native
  9059. # linker, instead of GNU ld. If possible, this setting should
  9060. # overridden to take advantage of the native linker features on
  9061. # the platform it is being used on.
  9062. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9063. fi
  9064. # Commands to make compiler produce verbose output that lists
  9065. # what "hidden" libraries, object files and flags are used when
  9066. # linking a shared library.
  9067. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9068. else
  9069. GXX=no
  9070. with_gnu_ld=no
  9071. wlarc=
  9072. fi
  9073. # PORTME: fill in a description of your system's C++ link characteristics
  9074. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9075. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9076. ld_shlibs_CXX=yes
  9077. case $host_os in
  9078. aix3*)
  9079. # FIXME: insert proper C++ library support
  9080. ld_shlibs_CXX=no
  9081. ;;
  9082. aix4* | aix5*)
  9083. if test "$host_cpu" = ia64; then
  9084. # On IA64, the linker does run time linking by default, so we don't
  9085. # have to do anything special.
  9086. aix_use_runtimelinking=no
  9087. exp_sym_flag='-Bexport'
  9088. no_entry_flag=""
  9089. else
  9090. aix_use_runtimelinking=no
  9091. # Test if we are trying to use run time linking or normal
  9092. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9093. # need to do runtime linking.
  9094. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9095. for ld_flag in $LDFLAGS; do
  9096. case $ld_flag in
  9097. *-brtl*)
  9098. aix_use_runtimelinking=yes
  9099. break
  9100. ;;
  9101. esac
  9102. done
  9103. ;;
  9104. esac
  9105. exp_sym_flag='-bexport'
  9106. no_entry_flag='-bnoentry'
  9107. fi
  9108. # When large executables or shared objects are built, AIX ld can
  9109. # have problems creating the table of contents. If linking a library
  9110. # or program results in "error TOC overflow" add -mminimal-toc to
  9111. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9112. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9113. archive_cmds_CXX=''
  9114. hardcode_direct_CXX=yes
  9115. hardcode_libdir_separator_CXX=':'
  9116. link_all_deplibs_CXX=yes
  9117. if test "$GXX" = yes; then
  9118. case $host_os in aix4.[012]|aix4.[012].*)
  9119. # We only want to do this on AIX 4.2 and lower, the check
  9120. # below for broken collect2 doesn't work under 4.3+
  9121. collect2name=`${CC} -print-prog-name=collect2`
  9122. if test -f "$collect2name" && \
  9123. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9124. then
  9125. # We have reworked collect2
  9126. hardcode_direct_CXX=yes
  9127. else
  9128. # We have old collect2
  9129. hardcode_direct_CXX=unsupported
  9130. # It fails to find uninstalled libraries when the uninstalled
  9131. # path is not listed in the libpath. Setting hardcode_minus_L
  9132. # to unsupported forces relinking
  9133. hardcode_minus_L_CXX=yes
  9134. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9135. hardcode_libdir_separator_CXX=
  9136. fi
  9137. ;;
  9138. esac
  9139. shared_flag='-shared'
  9140. if test "$aix_use_runtimelinking" = yes; then
  9141. shared_flag="$shared_flag "'${wl}-G'
  9142. fi
  9143. else
  9144. # not using gcc
  9145. if test "$host_cpu" = ia64; then
  9146. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9147. # chokes on -Wl,-G. The following line is correct:
  9148. shared_flag='-G'
  9149. else
  9150. if test "$aix_use_runtimelinking" = yes; then
  9151. shared_flag='${wl}-G'
  9152. else
  9153. shared_flag='${wl}-bM:SRE'
  9154. fi
  9155. fi
  9156. fi
  9157. # It seems that -bexpall does not export symbols beginning with
  9158. # underscore (_), so it is better to generate a list of symbols to export.
  9159. always_export_symbols_CXX=yes
  9160. if test "$aix_use_runtimelinking" = yes; then
  9161. # Warning - without using the other runtime loading flags (-brtl),
  9162. # -berok will link without error, but may produce a broken library.
  9163. allow_undefined_flag_CXX='-berok'
  9164. # Determine the default libpath from the value encoded in an empty executable.
  9165. cat >conftest.$ac_ext <<_ACEOF
  9166. /* confdefs.h. */
  9167. _ACEOF
  9168. cat confdefs.h >>conftest.$ac_ext
  9169. cat >>conftest.$ac_ext <<_ACEOF
  9170. /* end confdefs.h. */
  9171. int
  9172. main ()
  9173. {
  9174. ;
  9175. return 0;
  9176. }
  9177. _ACEOF
  9178. rm -f conftest.$ac_objext conftest$ac_exeext
  9179. if { (ac_try="$ac_link"
  9180. case "(($ac_try" in
  9181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9182. *) ac_try_echo=$ac_try;;
  9183. esac
  9184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9185. (eval "$ac_link") 2>conftest.er1
  9186. ac_status=$?
  9187. grep -v '^ *+' conftest.er1 >conftest.err
  9188. rm -f conftest.er1
  9189. cat conftest.err >&5
  9190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9191. (exit $ac_status); } && {
  9192. test -z "$ac_cxx_werror_flag" ||
  9193. test ! -s conftest.err
  9194. } && test -s conftest$ac_exeext &&
  9195. $as_test_x conftest$ac_exeext; then
  9196. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9197. }'`
  9198. # Check for a 64-bit object if we didn't find anything.
  9199. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9200. }'`; fi
  9201. else
  9202. echo "$as_me: failed program was:" >&5
  9203. sed 's/^/| /' conftest.$ac_ext >&5
  9204. fi
  9205. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9206. conftest$ac_exeext conftest.$ac_ext
  9207. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9208. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9209. 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"
  9210. else
  9211. if test "$host_cpu" = ia64; then
  9212. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9213. allow_undefined_flag_CXX="-z nodefs"
  9214. 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"
  9215. else
  9216. # Determine the default libpath from the value encoded in an empty executable.
  9217. cat >conftest.$ac_ext <<_ACEOF
  9218. /* confdefs.h. */
  9219. _ACEOF
  9220. cat confdefs.h >>conftest.$ac_ext
  9221. cat >>conftest.$ac_ext <<_ACEOF
  9222. /* end confdefs.h. */
  9223. int
  9224. main ()
  9225. {
  9226. ;
  9227. return 0;
  9228. }
  9229. _ACEOF
  9230. rm -f conftest.$ac_objext conftest$ac_exeext
  9231. if { (ac_try="$ac_link"
  9232. case "(($ac_try" in
  9233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9234. *) ac_try_echo=$ac_try;;
  9235. esac
  9236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9237. (eval "$ac_link") 2>conftest.er1
  9238. ac_status=$?
  9239. grep -v '^ *+' conftest.er1 >conftest.err
  9240. rm -f conftest.er1
  9241. cat conftest.err >&5
  9242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9243. (exit $ac_status); } && {
  9244. test -z "$ac_cxx_werror_flag" ||
  9245. test ! -s conftest.err
  9246. } && test -s conftest$ac_exeext &&
  9247. $as_test_x conftest$ac_exeext; then
  9248. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9249. }'`
  9250. # Check for a 64-bit object if we didn't find anything.
  9251. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9252. }'`; fi
  9253. else
  9254. echo "$as_me: failed program was:" >&5
  9255. sed 's/^/| /' conftest.$ac_ext >&5
  9256. fi
  9257. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9258. conftest$ac_exeext conftest.$ac_ext
  9259. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9260. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9261. # Warning - without using the other run time loading flags,
  9262. # -berok will link without error, but may produce a broken library.
  9263. no_undefined_flag_CXX=' ${wl}-bernotok'
  9264. allow_undefined_flag_CXX=' ${wl}-berok'
  9265. # Exported symbols can be pulled into shared objects from archives
  9266. whole_archive_flag_spec_CXX='$convenience'
  9267. archive_cmds_need_lc_CXX=yes
  9268. # This is similar to how AIX traditionally builds its shared libraries.
  9269. 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'
  9270. fi
  9271. fi
  9272. ;;
  9273. beos*)
  9274. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9275. allow_undefined_flag_CXX=unsupported
  9276. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9277. # support --undefined. This deserves some investigation. FIXME
  9278. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9279. else
  9280. ld_shlibs_CXX=no
  9281. fi
  9282. ;;
  9283. chorus*)
  9284. case $cc_basename in
  9285. *)
  9286. # FIXME: insert proper C++ library support
  9287. ld_shlibs_CXX=no
  9288. ;;
  9289. esac
  9290. ;;
  9291. cygwin* | mingw* | pw32*)
  9292. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9293. # as there is no search path for DLLs.
  9294. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9295. allow_undefined_flag_CXX=unsupported
  9296. always_export_symbols_CXX=no
  9297. enable_shared_with_static_runtimes_CXX=yes
  9298. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9299. 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'
  9300. # If the export-symbols file already is a .def file (1st line
  9301. # is EXPORTS), use it as is; otherwise, prepend...
  9302. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9303. cp $export_symbols $output_objdir/$soname.def;
  9304. else
  9305. echo EXPORTS > $output_objdir/$soname.def;
  9306. cat $export_symbols >> $output_objdir/$soname.def;
  9307. fi~
  9308. $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'
  9309. else
  9310. ld_shlibs_CXX=no
  9311. fi
  9312. ;;
  9313. darwin* | rhapsody*)
  9314. case $host_os in
  9315. rhapsody* | darwin1.[012])
  9316. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9317. ;;
  9318. *) # Darwin 1.3 on
  9319. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9320. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9321. else
  9322. case ${MACOSX_DEPLOYMENT_TARGET} in
  9323. 10.[012])
  9324. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9325. ;;
  9326. 10.*)
  9327. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9328. ;;
  9329. esac
  9330. fi
  9331. ;;
  9332. esac
  9333. archive_cmds_need_lc_CXX=no
  9334. hardcode_direct_CXX=no
  9335. hardcode_automatic_CXX=yes
  9336. hardcode_shlibpath_var_CXX=unsupported
  9337. whole_archive_flag_spec_CXX=''
  9338. link_all_deplibs_CXX=yes
  9339. if test "$GXX" = yes ; then
  9340. lt_int_apple_cc_single_mod=no
  9341. output_verbose_link_cmd='echo'
  9342. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9343. lt_int_apple_cc_single_mod=yes
  9344. fi
  9345. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9346. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9347. else
  9348. 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'
  9349. fi
  9350. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9351. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9352. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9353. 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}'
  9354. else
  9355. 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}'
  9356. fi
  9357. 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}'
  9358. else
  9359. case $cc_basename in
  9360. xlc*)
  9361. output_verbose_link_cmd='echo'
  9362. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  9363. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9364. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9365. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9366. 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}'
  9367. ;;
  9368. *)
  9369. ld_shlibs_CXX=no
  9370. ;;
  9371. esac
  9372. fi
  9373. ;;
  9374. dgux*)
  9375. case $cc_basename in
  9376. ec++*)
  9377. # FIXME: insert proper C++ library support
  9378. ld_shlibs_CXX=no
  9379. ;;
  9380. ghcx*)
  9381. # Green Hills C++ Compiler
  9382. # FIXME: insert proper C++ library support
  9383. ld_shlibs_CXX=no
  9384. ;;
  9385. *)
  9386. # FIXME: insert proper C++ library support
  9387. ld_shlibs_CXX=no
  9388. ;;
  9389. esac
  9390. ;;
  9391. freebsd[12]*)
  9392. # C++ shared libraries reported to be fairly broken before switch to ELF
  9393. ld_shlibs_CXX=no
  9394. ;;
  9395. freebsd-elf*)
  9396. archive_cmds_need_lc_CXX=no
  9397. ;;
  9398. freebsd* | kfreebsd*-gnu | dragonfly*)
  9399. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9400. # conventions
  9401. ld_shlibs_CXX=yes
  9402. ;;
  9403. gnu*)
  9404. ;;
  9405. hpux9*)
  9406. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9407. hardcode_libdir_separator_CXX=:
  9408. export_dynamic_flag_spec_CXX='${wl}-E'
  9409. hardcode_direct_CXX=yes
  9410. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9411. # but as the default
  9412. # location of the library.
  9413. case $cc_basename in
  9414. CC*)
  9415. # FIXME: insert proper C++ library support
  9416. ld_shlibs_CXX=no
  9417. ;;
  9418. aCC*)
  9419. 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'
  9420. # Commands to make compiler produce verbose output that lists
  9421. # what "hidden" libraries, object files and flags are used when
  9422. # linking a shared library.
  9423. #
  9424. # There doesn't appear to be a way to prevent this compiler from
  9425. # explicitly linking system object files so we need to strip them
  9426. # from the output so that they don't get included in the library
  9427. # dependencies.
  9428. 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'
  9429. ;;
  9430. *)
  9431. if test "$GXX" = yes; then
  9432. 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'
  9433. else
  9434. # FIXME: insert proper C++ library support
  9435. ld_shlibs_CXX=no
  9436. fi
  9437. ;;
  9438. esac
  9439. ;;
  9440. hpux10*|hpux11*)
  9441. if test $with_gnu_ld = no; then
  9442. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9443. hardcode_libdir_separator_CXX=:
  9444. case $host_cpu in
  9445. hppa*64*|ia64*)
  9446. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9447. ;;
  9448. *)
  9449. export_dynamic_flag_spec_CXX='${wl}-E'
  9450. ;;
  9451. esac
  9452. fi
  9453. case $host_cpu in
  9454. hppa*64*|ia64*)
  9455. hardcode_direct_CXX=no
  9456. hardcode_shlibpath_var_CXX=no
  9457. ;;
  9458. *)
  9459. hardcode_direct_CXX=yes
  9460. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9461. # but as the default
  9462. # location of the library.
  9463. ;;
  9464. esac
  9465. case $cc_basename in
  9466. CC*)
  9467. # FIXME: insert proper C++ library support
  9468. ld_shlibs_CXX=no
  9469. ;;
  9470. aCC*)
  9471. case $host_cpu in
  9472. hppa*64*)
  9473. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9474. ;;
  9475. ia64*)
  9476. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9477. ;;
  9478. *)
  9479. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9480. ;;
  9481. esac
  9482. # Commands to make compiler produce verbose output that lists
  9483. # what "hidden" libraries, object files and flags are used when
  9484. # linking a shared library.
  9485. #
  9486. # There doesn't appear to be a way to prevent this compiler from
  9487. # explicitly linking system object files so we need to strip them
  9488. # from the output so that they don't get included in the library
  9489. # dependencies.
  9490. 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'
  9491. ;;
  9492. *)
  9493. if test "$GXX" = yes; then
  9494. if test $with_gnu_ld = no; then
  9495. case $host_cpu in
  9496. hppa*64*)
  9497. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9498. ;;
  9499. ia64*)
  9500. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9501. ;;
  9502. *)
  9503. 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'
  9504. ;;
  9505. esac
  9506. fi
  9507. else
  9508. # FIXME: insert proper C++ library support
  9509. ld_shlibs_CXX=no
  9510. fi
  9511. ;;
  9512. esac
  9513. ;;
  9514. interix3*)
  9515. hardcode_direct_CXX=no
  9516. hardcode_shlibpath_var_CXX=no
  9517. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9518. export_dynamic_flag_spec_CXX='${wl}-E'
  9519. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9520. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9521. # default) and relocated if they conflict, which is a slow very memory
  9522. # consuming and fragmenting process. To avoid this, we pick a random,
  9523. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9524. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9525. 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'
  9526. 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'
  9527. ;;
  9528. irix5* | irix6*)
  9529. case $cc_basename in
  9530. CC*)
  9531. # SGI C++
  9532. 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'
  9533. # Archives containing C++ object files must be created using
  9534. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9535. # necessary to make sure instantiated templates are included
  9536. # in the archive.
  9537. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9538. ;;
  9539. *)
  9540. if test "$GXX" = yes; then
  9541. if test "$with_gnu_ld" = no; then
  9542. 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'
  9543. else
  9544. 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'
  9545. fi
  9546. fi
  9547. link_all_deplibs_CXX=yes
  9548. ;;
  9549. esac
  9550. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9551. hardcode_libdir_separator_CXX=:
  9552. ;;
  9553. linux*)
  9554. case $cc_basename in
  9555. KCC*)
  9556. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9557. # KCC will only create a shared library if the output file
  9558. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9559. # to its proper name (with version) after linking.
  9560. 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'
  9561. 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'
  9562. # Commands to make compiler produce verbose output that lists
  9563. # what "hidden" libraries, object files and flags are used when
  9564. # linking a shared library.
  9565. #
  9566. # There doesn't appear to be a way to prevent this compiler from
  9567. # explicitly linking system object files so we need to strip them
  9568. # from the output so that they don't get included in the library
  9569. # dependencies.
  9570. 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'
  9571. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9572. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9573. # Archives containing C++ object files must be created using
  9574. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9575. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9576. ;;
  9577. icpc*)
  9578. # Intel C++
  9579. with_gnu_ld=yes
  9580. # version 8.0 and above of icpc choke on multiply defined symbols
  9581. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9582. # earlier do not add the objects themselves.
  9583. case `$CC -V 2>&1` in
  9584. *"Version 7."*)
  9585. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9586. 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'
  9587. ;;
  9588. *) # Version 8.0 or newer
  9589. tmp_idyn=
  9590. case $host_cpu in
  9591. ia64*) tmp_idyn=' -i_dynamic';;
  9592. esac
  9593. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9594. 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'
  9595. ;;
  9596. esac
  9597. archive_cmds_need_lc_CXX=no
  9598. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9599. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9600. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9601. ;;
  9602. pgCC*)
  9603. # Portland Group C++ compiler
  9604. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9605. 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'
  9606. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9607. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9608. 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'
  9609. ;;
  9610. cxx*)
  9611. # Compaq C++
  9612. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9613. 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'
  9614. runpath_var=LD_RUN_PATH
  9615. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9616. hardcode_libdir_separator_CXX=:
  9617. # Commands to make compiler produce verbose output that lists
  9618. # what "hidden" libraries, object files and flags are used when
  9619. # linking a shared library.
  9620. #
  9621. # There doesn't appear to be a way to prevent this compiler from
  9622. # explicitly linking system object files so we need to strip them
  9623. # from the output so that they don't get included in the library
  9624. # dependencies.
  9625. 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'
  9626. ;;
  9627. esac
  9628. ;;
  9629. lynxos*)
  9630. # FIXME: insert proper C++ library support
  9631. ld_shlibs_CXX=no
  9632. ;;
  9633. m88k*)
  9634. # FIXME: insert proper C++ library support
  9635. ld_shlibs_CXX=no
  9636. ;;
  9637. mvs*)
  9638. case $cc_basename in
  9639. cxx*)
  9640. # FIXME: insert proper C++ library support
  9641. ld_shlibs_CXX=no
  9642. ;;
  9643. *)
  9644. # FIXME: insert proper C++ library support
  9645. ld_shlibs_CXX=no
  9646. ;;
  9647. esac
  9648. ;;
  9649. netbsd*)
  9650. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9651. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9652. wlarc=
  9653. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9654. hardcode_direct_CXX=yes
  9655. hardcode_shlibpath_var_CXX=no
  9656. fi
  9657. # Workaround some broken pre-1.5 toolchains
  9658. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9659. ;;
  9660. openbsd2*)
  9661. # C++ shared libraries are fairly broken
  9662. ld_shlibs_CXX=no
  9663. ;;
  9664. openbsd*)
  9665. hardcode_direct_CXX=yes
  9666. hardcode_shlibpath_var_CXX=no
  9667. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9668. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9669. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9670. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9671. export_dynamic_flag_spec_CXX='${wl}-E'
  9672. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9673. fi
  9674. output_verbose_link_cmd='echo'
  9675. ;;
  9676. osf3*)
  9677. case $cc_basename in
  9678. KCC*)
  9679. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9680. # KCC will only create a shared library if the output file
  9681. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9682. # to its proper name (with version) after linking.
  9683. 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'
  9684. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9685. hardcode_libdir_separator_CXX=:
  9686. # Archives containing C++ object files must be created using
  9687. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9688. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9689. ;;
  9690. RCC*)
  9691. # Rational C++ 2.4.1
  9692. # FIXME: insert proper C++ library support
  9693. ld_shlibs_CXX=no
  9694. ;;
  9695. cxx*)
  9696. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9697. 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'
  9698. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9699. hardcode_libdir_separator_CXX=:
  9700. # Commands to make compiler produce verbose output that lists
  9701. # what "hidden" libraries, object files and flags are used when
  9702. # linking a shared library.
  9703. #
  9704. # There doesn't appear to be a way to prevent this compiler from
  9705. # explicitly linking system object files so we need to strip them
  9706. # from the output so that they don't get included in the library
  9707. # dependencies.
  9708. 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'
  9709. ;;
  9710. *)
  9711. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9712. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9713. 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'
  9714. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9715. hardcode_libdir_separator_CXX=:
  9716. # Commands to make compiler produce verbose output that lists
  9717. # what "hidden" libraries, object files and flags are used when
  9718. # linking a shared library.
  9719. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9720. else
  9721. # FIXME: insert proper C++ library support
  9722. ld_shlibs_CXX=no
  9723. fi
  9724. ;;
  9725. esac
  9726. ;;
  9727. osf4* | osf5*)
  9728. case $cc_basename in
  9729. KCC*)
  9730. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9731. # KCC will only create a shared library if the output file
  9732. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9733. # to its proper name (with version) after linking.
  9734. 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'
  9735. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9736. hardcode_libdir_separator_CXX=:
  9737. # Archives containing C++ object files must be created using
  9738. # the KAI C++ compiler.
  9739. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9740. ;;
  9741. RCC*)
  9742. # Rational C++ 2.4.1
  9743. # FIXME: insert proper C++ library support
  9744. ld_shlibs_CXX=no
  9745. ;;
  9746. cxx*)
  9747. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9748. 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'
  9749. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9750. echo "-hidden">> $lib.exp~
  9751. $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~
  9752. $rm $lib.exp'
  9753. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9754. hardcode_libdir_separator_CXX=:
  9755. # Commands to make compiler produce verbose output that lists
  9756. # what "hidden" libraries, object files and flags are used when
  9757. # linking a shared library.
  9758. #
  9759. # There doesn't appear to be a way to prevent this compiler from
  9760. # explicitly linking system object files so we need to strip them
  9761. # from the output so that they don't get included in the library
  9762. # dependencies.
  9763. 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'
  9764. ;;
  9765. *)
  9766. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9767. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9768. 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'
  9769. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9770. hardcode_libdir_separator_CXX=:
  9771. # Commands to make compiler produce verbose output that lists
  9772. # what "hidden" libraries, object files and flags are used when
  9773. # linking a shared library.
  9774. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9775. else
  9776. # FIXME: insert proper C++ library support
  9777. ld_shlibs_CXX=no
  9778. fi
  9779. ;;
  9780. esac
  9781. ;;
  9782. psos*)
  9783. # FIXME: insert proper C++ library support
  9784. ld_shlibs_CXX=no
  9785. ;;
  9786. sunos4*)
  9787. case $cc_basename in
  9788. CC*)
  9789. # Sun C++ 4.x
  9790. # FIXME: insert proper C++ library support
  9791. ld_shlibs_CXX=no
  9792. ;;
  9793. lcc*)
  9794. # Lucid
  9795. # FIXME: insert proper C++ library support
  9796. ld_shlibs_CXX=no
  9797. ;;
  9798. *)
  9799. # FIXME: insert proper C++ library support
  9800. ld_shlibs_CXX=no
  9801. ;;
  9802. esac
  9803. ;;
  9804. solaris*)
  9805. case $cc_basename in
  9806. CC*)
  9807. # Sun C++ 4.2, 5.x and Centerline C++
  9808. archive_cmds_need_lc_CXX=yes
  9809. no_undefined_flag_CXX=' -zdefs'
  9810. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9811. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9812. $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'
  9813. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9814. hardcode_shlibpath_var_CXX=no
  9815. case $host_os in
  9816. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9817. *)
  9818. # The C++ compiler is used as linker so we must use $wl
  9819. # flag to pass the commands to the underlying system
  9820. # linker. We must also pass each convience library through
  9821. # to the system linker between allextract/defaultextract.
  9822. # The C++ compiler will combine linker options so we
  9823. # cannot just pass the convience library names through
  9824. # without $wl.
  9825. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9826. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  9827. ;;
  9828. esac
  9829. link_all_deplibs_CXX=yes
  9830. output_verbose_link_cmd='echo'
  9831. # Archives containing C++ object files must be created using
  9832. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9833. # necessary to make sure instantiated templates are included
  9834. # in the archive.
  9835. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9836. ;;
  9837. gcx*)
  9838. # Green Hills C++ Compiler
  9839. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9840. # The C++ compiler must be used to create the archive.
  9841. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9842. ;;
  9843. *)
  9844. # GNU C++ compiler with Solaris linker
  9845. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9846. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9847. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9848. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9849. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9850. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9851. # Commands to make compiler produce verbose output that lists
  9852. # what "hidden" libraries, object files and flags are used when
  9853. # linking a shared library.
  9854. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9855. else
  9856. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9857. # platform.
  9858. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9859. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9860. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9861. # Commands to make compiler produce verbose output that lists
  9862. # what "hidden" libraries, object files and flags are used when
  9863. # linking a shared library.
  9864. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9865. fi
  9866. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9867. fi
  9868. ;;
  9869. esac
  9870. ;;
  9871. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9872. no_undefined_flag_CXX='${wl}-z,text'
  9873. archive_cmds_need_lc_CXX=no
  9874. hardcode_shlibpath_var_CXX=no
  9875. runpath_var='LD_RUN_PATH'
  9876. case $cc_basename in
  9877. CC*)
  9878. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9879. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9880. ;;
  9881. *)
  9882. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9883. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9884. ;;
  9885. esac
  9886. ;;
  9887. sysv5* | sco3.2v5* | sco5v6*)
  9888. # Note: We can NOT use -z defs as we might desire, because we do not
  9889. # link with -lc, and that would cause any symbols used from libc to
  9890. # always be unresolved, which means just about no library would
  9891. # ever link correctly. If we're not using GNU ld we use -z text
  9892. # though, which does catch some bad symbols but isn't as heavy-handed
  9893. # as -z defs.
  9894. # For security reasons, it is highly recommended that you always
  9895. # use absolute paths for naming shared libraries, and exclude the
  9896. # DT_RUNPATH tag from executables and libraries. But doing so
  9897. # requires that you compile everything twice, which is a pain.
  9898. # So that behaviour is only enabled if SCOABSPATH is set to a
  9899. # non-empty value in the environment. Most likely only useful for
  9900. # creating official distributions of packages.
  9901. # This is a hack until libtool officially supports absolute path
  9902. # names for shared libraries.
  9903. no_undefined_flag_CXX='${wl}-z,text'
  9904. allow_undefined_flag_CXX='${wl}-z,nodefs'
  9905. archive_cmds_need_lc_CXX=no
  9906. hardcode_shlibpath_var_CXX=no
  9907. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  9908. hardcode_libdir_separator_CXX=':'
  9909. link_all_deplibs_CXX=yes
  9910. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  9911. runpath_var='LD_RUN_PATH'
  9912. case $cc_basename in
  9913. CC*)
  9914. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9915. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9916. ;;
  9917. *)
  9918. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9919. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9920. ;;
  9921. esac
  9922. ;;
  9923. tandem*)
  9924. case $cc_basename in
  9925. NCC*)
  9926. # NonStop-UX NCC 3.20
  9927. # FIXME: insert proper C++ library support
  9928. ld_shlibs_CXX=no
  9929. ;;
  9930. *)
  9931. # FIXME: insert proper C++ library support
  9932. ld_shlibs_CXX=no
  9933. ;;
  9934. esac
  9935. ;;
  9936. vxworks*)
  9937. # FIXME: insert proper C++ library support
  9938. ld_shlibs_CXX=no
  9939. ;;
  9940. *)
  9941. # FIXME: insert proper C++ library support
  9942. ld_shlibs_CXX=no
  9943. ;;
  9944. esac
  9945. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9946. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  9947. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9948. GCC_CXX="$GXX"
  9949. LD_CXX="$LD"
  9950. cat > conftest.$ac_ext <<EOF
  9951. class Foo
  9952. {
  9953. public:
  9954. Foo (void) { a = 0; }
  9955. private:
  9956. int a;
  9957. };
  9958. EOF
  9959. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9960. (eval $ac_compile) 2>&5
  9961. ac_status=$?
  9962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9963. (exit $ac_status); }; then
  9964. # Parse the compiler output and extract the necessary
  9965. # objects, libraries and library flags.
  9966. # Sentinel used to keep track of whether or not we are before
  9967. # the conftest object file.
  9968. pre_test_object_deps_done=no
  9969. # The `*' in the case matches for architectures that use `case' in
  9970. # $output_verbose_cmd can trigger glob expansion during the loop
  9971. # eval without this substitution.
  9972. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  9973. for p in `eval $output_verbose_link_cmd`; do
  9974. case $p in
  9975. -L* | -R* | -l*)
  9976. # Some compilers place space between "-{L,R}" and the path.
  9977. # Remove the space.
  9978. if test $p = "-L" \
  9979. || test $p = "-R"; then
  9980. prev=$p
  9981. continue
  9982. else
  9983. prev=
  9984. fi
  9985. if test "$pre_test_object_deps_done" = no; then
  9986. case $p in
  9987. -L* | -R*)
  9988. # Internal compiler library paths should come after those
  9989. # provided the user. The postdeps already come after the
  9990. # user supplied libs so there is no need to process them.
  9991. if test -z "$compiler_lib_search_path_CXX"; then
  9992. compiler_lib_search_path_CXX="${prev}${p}"
  9993. else
  9994. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9995. fi
  9996. ;;
  9997. # The "-l" case would never come before the object being
  9998. # linked, so don't bother handling this case.
  9999. esac
  10000. else
  10001. if test -z "$postdeps_CXX"; then
  10002. postdeps_CXX="${prev}${p}"
  10003. else
  10004. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10005. fi
  10006. fi
  10007. ;;
  10008. *.$objext)
  10009. # This assumes that the test object file only shows up
  10010. # once in the compiler output.
  10011. if test "$p" = "conftest.$objext"; then
  10012. pre_test_object_deps_done=yes
  10013. continue
  10014. fi
  10015. if test "$pre_test_object_deps_done" = no; then
  10016. if test -z "$predep_objects_CXX"; then
  10017. predep_objects_CXX="$p"
  10018. else
  10019. predep_objects_CXX="$predep_objects_CXX $p"
  10020. fi
  10021. else
  10022. if test -z "$postdep_objects_CXX"; then
  10023. postdep_objects_CXX="$p"
  10024. else
  10025. postdep_objects_CXX="$postdep_objects_CXX $p"
  10026. fi
  10027. fi
  10028. ;;
  10029. *) ;; # Ignore the rest.
  10030. esac
  10031. done
  10032. # Clean up.
  10033. rm -f a.out a.exe
  10034. else
  10035. echo "libtool.m4: error: problem compiling CXX test program"
  10036. fi
  10037. $rm -f confest.$objext
  10038. # PORTME: override above test on systems where it is broken
  10039. case $host_os in
  10040. interix3*)
  10041. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10042. # hack all around it, let's just trust "g++" to DTRT.
  10043. predep_objects_CXX=
  10044. postdep_objects_CXX=
  10045. postdeps_CXX=
  10046. ;;
  10047. solaris*)
  10048. case $cc_basename in
  10049. CC*)
  10050. # Adding this requires a known-good setup of shared libraries for
  10051. # Sun compiler versions before 5.6, else PIC objects from an old
  10052. # archive will be linked into the output, leading to subtle bugs.
  10053. postdeps_CXX='-lCstd -lCrun'
  10054. ;;
  10055. esac
  10056. ;;
  10057. esac
  10058. case " $postdeps_CXX " in
  10059. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10060. esac
  10061. lt_prog_compiler_wl_CXX=
  10062. lt_prog_compiler_pic_CXX=
  10063. lt_prog_compiler_static_CXX=
  10064. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10065. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  10066. # C++ specific cases for pic, static, wl, etc.
  10067. if test "$GXX" = yes; then
  10068. lt_prog_compiler_wl_CXX='-Wl,'
  10069. lt_prog_compiler_static_CXX='-static'
  10070. case $host_os in
  10071. aix*)
  10072. # All AIX code is PIC.
  10073. if test "$host_cpu" = ia64; then
  10074. # AIX 5 now supports IA64 processor
  10075. lt_prog_compiler_static_CXX='-Bstatic'
  10076. fi
  10077. ;;
  10078. amigaos*)
  10079. # FIXME: we need at least 68020 code to build shared libraries, but
  10080. # adding the `-m68020' flag to GCC prevents building anything better,
  10081. # like `-m68040'.
  10082. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10083. ;;
  10084. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10085. # PIC is the default for these OSes.
  10086. ;;
  10087. mingw* | os2* | pw32*)
  10088. # This hack is so that the source file can tell whether it is being
  10089. # built for inclusion in a dll (and should export symbols for example).
  10090. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10091. ;;
  10092. darwin* | rhapsody*)
  10093. # PIC is the default on this platform
  10094. # Common symbols not allowed in MH_DYLIB files
  10095. lt_prog_compiler_pic_CXX='-fno-common'
  10096. ;;
  10097. *djgpp*)
  10098. # DJGPP does not support shared libraries at all
  10099. lt_prog_compiler_pic_CXX=
  10100. ;;
  10101. interix3*)
  10102. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10103. # Instead, we relocate shared libraries at runtime.
  10104. ;;
  10105. sysv4*MP*)
  10106. if test -d /usr/nec; then
  10107. lt_prog_compiler_pic_CXX=-Kconform_pic
  10108. fi
  10109. ;;
  10110. hpux*)
  10111. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10112. # not for PA HP-UX.
  10113. case $host_cpu in
  10114. hppa*64*|ia64*)
  10115. ;;
  10116. *)
  10117. lt_prog_compiler_pic_CXX='-fPIC'
  10118. ;;
  10119. esac
  10120. ;;
  10121. *)
  10122. lt_prog_compiler_pic_CXX='-fPIC'
  10123. ;;
  10124. esac
  10125. else
  10126. case $host_os in
  10127. aix4* | aix5*)
  10128. # All AIX code is PIC.
  10129. if test "$host_cpu" = ia64; then
  10130. # AIX 5 now supports IA64 processor
  10131. lt_prog_compiler_static_CXX='-Bstatic'
  10132. else
  10133. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10134. fi
  10135. ;;
  10136. chorus*)
  10137. case $cc_basename in
  10138. cxch68*)
  10139. # Green Hills C++ Compiler
  10140. # _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"
  10141. ;;
  10142. esac
  10143. ;;
  10144. darwin*)
  10145. # PIC is the default on this platform
  10146. # Common symbols not allowed in MH_DYLIB files
  10147. case $cc_basename in
  10148. xlc*)
  10149. lt_prog_compiler_pic_CXX='-qnocommon'
  10150. lt_prog_compiler_wl_CXX='-Wl,'
  10151. ;;
  10152. esac
  10153. ;;
  10154. dgux*)
  10155. case $cc_basename in
  10156. ec++*)
  10157. lt_prog_compiler_pic_CXX='-KPIC'
  10158. ;;
  10159. ghcx*)
  10160. # Green Hills C++ Compiler
  10161. lt_prog_compiler_pic_CXX='-pic'
  10162. ;;
  10163. *)
  10164. ;;
  10165. esac
  10166. ;;
  10167. freebsd* | kfreebsd*-gnu | dragonfly*)
  10168. # FreeBSD uses GNU C++
  10169. ;;
  10170. hpux9* | hpux10* | hpux11*)
  10171. case $cc_basename in
  10172. CC*)
  10173. lt_prog_compiler_wl_CXX='-Wl,'
  10174. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10175. if test "$host_cpu" != ia64; then
  10176. lt_prog_compiler_pic_CXX='+Z'
  10177. fi
  10178. ;;
  10179. aCC*)
  10180. lt_prog_compiler_wl_CXX='-Wl,'
  10181. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10182. case $host_cpu in
  10183. hppa*64*|ia64*)
  10184. # +Z the default
  10185. ;;
  10186. *)
  10187. lt_prog_compiler_pic_CXX='+Z'
  10188. ;;
  10189. esac
  10190. ;;
  10191. *)
  10192. ;;
  10193. esac
  10194. ;;
  10195. interix*)
  10196. # This is c89, which is MS Visual C++ (no shared libs)
  10197. # Anyone wants to do a port?
  10198. ;;
  10199. irix5* | irix6* | nonstopux*)
  10200. case $cc_basename in
  10201. CC*)
  10202. lt_prog_compiler_wl_CXX='-Wl,'
  10203. lt_prog_compiler_static_CXX='-non_shared'
  10204. # CC pic flag -KPIC is the default.
  10205. ;;
  10206. *)
  10207. ;;
  10208. esac
  10209. ;;
  10210. linux*)
  10211. case $cc_basename in
  10212. KCC*)
  10213. # KAI C++ Compiler
  10214. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10215. lt_prog_compiler_pic_CXX='-fPIC'
  10216. ;;
  10217. icpc* | ecpc*)
  10218. # Intel C++
  10219. lt_prog_compiler_wl_CXX='-Wl,'
  10220. lt_prog_compiler_pic_CXX='-KPIC'
  10221. lt_prog_compiler_static_CXX='-static'
  10222. ;;
  10223. pgCC*)
  10224. # Portland Group C++ compiler.
  10225. lt_prog_compiler_wl_CXX='-Wl,'
  10226. lt_prog_compiler_pic_CXX='-fpic'
  10227. lt_prog_compiler_static_CXX='-Bstatic'
  10228. ;;
  10229. cxx*)
  10230. # Compaq C++
  10231. # Make sure the PIC flag is empty. It appears that all Alpha
  10232. # Linux and Compaq Tru64 Unix objects are PIC.
  10233. lt_prog_compiler_pic_CXX=
  10234. lt_prog_compiler_static_CXX='-non_shared'
  10235. ;;
  10236. *)
  10237. ;;
  10238. esac
  10239. ;;
  10240. lynxos*)
  10241. ;;
  10242. m88k*)
  10243. ;;
  10244. mvs*)
  10245. case $cc_basename in
  10246. cxx*)
  10247. lt_prog_compiler_pic_CXX='-W c,exportall'
  10248. ;;
  10249. *)
  10250. ;;
  10251. esac
  10252. ;;
  10253. netbsd*)
  10254. ;;
  10255. osf3* | osf4* | osf5*)
  10256. case $cc_basename in
  10257. KCC*)
  10258. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10259. ;;
  10260. RCC*)
  10261. # Rational C++ 2.4.1
  10262. lt_prog_compiler_pic_CXX='-pic'
  10263. ;;
  10264. cxx*)
  10265. # Digital/Compaq C++
  10266. lt_prog_compiler_wl_CXX='-Wl,'
  10267. # Make sure the PIC flag is empty. It appears that all Alpha
  10268. # Linux and Compaq Tru64 Unix objects are PIC.
  10269. lt_prog_compiler_pic_CXX=
  10270. lt_prog_compiler_static_CXX='-non_shared'
  10271. ;;
  10272. *)
  10273. ;;
  10274. esac
  10275. ;;
  10276. psos*)
  10277. ;;
  10278. solaris*)
  10279. case $cc_basename in
  10280. CC*)
  10281. # Sun C++ 4.2, 5.x and Centerline C++
  10282. lt_prog_compiler_pic_CXX='-KPIC'
  10283. lt_prog_compiler_static_CXX='-Bstatic'
  10284. lt_prog_compiler_wl_CXX='-Qoption ld '
  10285. ;;
  10286. gcx*)
  10287. # Green Hills C++ Compiler
  10288. lt_prog_compiler_pic_CXX='-PIC'
  10289. ;;
  10290. *)
  10291. ;;
  10292. esac
  10293. ;;
  10294. sunos4*)
  10295. case $cc_basename in
  10296. CC*)
  10297. # Sun C++ 4.x
  10298. lt_prog_compiler_pic_CXX='-pic'
  10299. lt_prog_compiler_static_CXX='-Bstatic'
  10300. ;;
  10301. lcc*)
  10302. # Lucid
  10303. lt_prog_compiler_pic_CXX='-pic'
  10304. ;;
  10305. *)
  10306. ;;
  10307. esac
  10308. ;;
  10309. tandem*)
  10310. case $cc_basename in
  10311. NCC*)
  10312. # NonStop-UX NCC 3.20
  10313. lt_prog_compiler_pic_CXX='-KPIC'
  10314. ;;
  10315. *)
  10316. ;;
  10317. esac
  10318. ;;
  10319. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10320. case $cc_basename in
  10321. CC*)
  10322. lt_prog_compiler_wl_CXX='-Wl,'
  10323. lt_prog_compiler_pic_CXX='-KPIC'
  10324. lt_prog_compiler_static_CXX='-Bstatic'
  10325. ;;
  10326. esac
  10327. ;;
  10328. vxworks*)
  10329. ;;
  10330. *)
  10331. lt_prog_compiler_can_build_shared_CXX=no
  10332. ;;
  10333. esac
  10334. fi
  10335. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10336. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  10337. #
  10338. # Check to make sure the PIC flag actually works.
  10339. #
  10340. if test -n "$lt_prog_compiler_pic_CXX"; then
  10341. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10342. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  10343. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10344. echo $ECHO_N "(cached) $ECHO_C" >&6
  10345. else
  10346. lt_prog_compiler_pic_works_CXX=no
  10347. ac_outfile=conftest.$ac_objext
  10348. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10349. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10350. # Insert the option either (1) after the last *FLAGS variable, or
  10351. # (2) before a word containing "conftest.", or (3) at the end.
  10352. # Note that $ac_compile itself does not contain backslashes and begins
  10353. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10354. # The option is referenced via a variable to avoid confusing sed.
  10355. lt_compile=`echo "$ac_compile" | $SED \
  10356. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10357. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10358. -e 's:$: $lt_compiler_flag:'`
  10359. (eval echo "\"\$as_me:11528: $lt_compile\"" >&5)
  10360. (eval "$lt_compile" 2>conftest.err)
  10361. ac_status=$?
  10362. cat conftest.err >&5
  10363. echo "$as_me:11532: \$? = $ac_status" >&5
  10364. if (exit $ac_status) && test -s "$ac_outfile"; then
  10365. # The compiler can only warn and ignore the option if not recognized
  10366. # So say no if there are warnings other than the usual output.
  10367. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10368. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10369. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10370. lt_prog_compiler_pic_works_CXX=yes
  10371. fi
  10372. fi
  10373. $rm conftest*
  10374. fi
  10375. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10376. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  10377. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10378. case $lt_prog_compiler_pic_CXX in
  10379. "" | " "*) ;;
  10380. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10381. esac
  10382. else
  10383. lt_prog_compiler_pic_CXX=
  10384. lt_prog_compiler_can_build_shared_CXX=no
  10385. fi
  10386. fi
  10387. case $host_os in
  10388. # For platforms which do not support PIC, -DPIC is meaningless:
  10389. *djgpp*)
  10390. lt_prog_compiler_pic_CXX=
  10391. ;;
  10392. *)
  10393. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10394. ;;
  10395. esac
  10396. #
  10397. # Check to make sure the static flag actually works.
  10398. #
  10399. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10400. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10401. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  10402. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10403. echo $ECHO_N "(cached) $ECHO_C" >&6
  10404. else
  10405. lt_prog_compiler_static_works_CXX=no
  10406. save_LDFLAGS="$LDFLAGS"
  10407. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10408. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10409. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10410. # The linker can only warn and ignore the option if not recognized
  10411. # So say no if there are warnings
  10412. if test -s conftest.err; then
  10413. # Append any errors to the config.log.
  10414. cat conftest.err 1>&5
  10415. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10416. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10417. if diff conftest.exp conftest.er2 >/dev/null; then
  10418. lt_prog_compiler_static_works_CXX=yes
  10419. fi
  10420. else
  10421. lt_prog_compiler_static_works_CXX=yes
  10422. fi
  10423. fi
  10424. $rm conftest*
  10425. LDFLAGS="$save_LDFLAGS"
  10426. fi
  10427. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10428. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  10429. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10430. :
  10431. else
  10432. lt_prog_compiler_static_CXX=
  10433. fi
  10434. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10435. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  10436. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10437. echo $ECHO_N "(cached) $ECHO_C" >&6
  10438. else
  10439. lt_cv_prog_compiler_c_o_CXX=no
  10440. $rm -r conftest 2>/dev/null
  10441. mkdir conftest
  10442. cd conftest
  10443. mkdir out
  10444. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10445. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10446. # Insert the option either (1) after the last *FLAGS variable, or
  10447. # (2) before a word containing "conftest.", or (3) at the end.
  10448. # Note that $ac_compile itself does not contain backslashes and begins
  10449. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10450. lt_compile=`echo "$ac_compile" | $SED \
  10451. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10452. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10453. -e 's:$: $lt_compiler_flag:'`
  10454. (eval echo "\"\$as_me:11632: $lt_compile\"" >&5)
  10455. (eval "$lt_compile" 2>out/conftest.err)
  10456. ac_status=$?
  10457. cat out/conftest.err >&5
  10458. echo "$as_me:11636: \$? = $ac_status" >&5
  10459. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10460. then
  10461. # The compiler can only warn and ignore the option if not recognized
  10462. # So say no if there are warnings
  10463. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10464. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10465. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10466. lt_cv_prog_compiler_c_o_CXX=yes
  10467. fi
  10468. fi
  10469. chmod u+w . 2>&5
  10470. $rm conftest*
  10471. # SGI C++ compiler will create directory out/ii_files/ for
  10472. # template instantiation
  10473. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10474. $rm out/* && rmdir out
  10475. cd ..
  10476. rmdir conftest
  10477. $rm conftest*
  10478. fi
  10479. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10480. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  10481. hard_links="nottested"
  10482. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10483. # do not overwrite the value of need_locks provided by the user
  10484. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10485. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  10486. hard_links=yes
  10487. $rm conftest*
  10488. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10489. touch conftest.a
  10490. ln conftest.a conftest.b 2>&5 || hard_links=no
  10491. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10492. { echo "$as_me:$LINENO: result: $hard_links" >&5
  10493. echo "${ECHO_T}$hard_links" >&6; }
  10494. if test "$hard_links" = no; then
  10495. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10496. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10497. need_locks=warn
  10498. fi
  10499. else
  10500. need_locks=no
  10501. fi
  10502. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10503. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  10504. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10505. case $host_os in
  10506. aix4* | aix5*)
  10507. # If we're using GNU nm, then we don't want the "-C" option.
  10508. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10509. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10510. 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'
  10511. else
  10512. 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'
  10513. fi
  10514. ;;
  10515. pw32*)
  10516. export_symbols_cmds_CXX="$ltdll_cmds"
  10517. ;;
  10518. cygwin* | mingw*)
  10519. 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'
  10520. ;;
  10521. *)
  10522. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10523. ;;
  10524. esac
  10525. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10526. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10527. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10528. #
  10529. # Do we need to explicitly link libc?
  10530. #
  10531. case "x$archive_cmds_need_lc_CXX" in
  10532. x|xyes)
  10533. # Assume -lc should be added
  10534. archive_cmds_need_lc_CXX=yes
  10535. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10536. case $archive_cmds_CXX in
  10537. *'~'*)
  10538. # FIXME: we may have to deal with multi-command sequences.
  10539. ;;
  10540. '$CC '*)
  10541. # Test whether the compiler implicitly links with -lc since on some
  10542. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10543. # to ld, don't add -lc before -lgcc.
  10544. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10545. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  10546. $rm conftest*
  10547. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10548. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10549. (eval $ac_compile) 2>&5
  10550. ac_status=$?
  10551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10552. (exit $ac_status); } 2>conftest.err; then
  10553. soname=conftest
  10554. lib=conftest
  10555. libobjs=conftest.$ac_objext
  10556. deplibs=
  10557. wl=$lt_prog_compiler_wl_CXX
  10558. pic_flag=$lt_prog_compiler_pic_CXX
  10559. compiler_flags=-v
  10560. linker_flags=-v
  10561. verstring=
  10562. output_objdir=.
  10563. libname=conftest
  10564. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10565. allow_undefined_flag_CXX=
  10566. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10567. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10568. ac_status=$?
  10569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10570. (exit $ac_status); }
  10571. then
  10572. archive_cmds_need_lc_CXX=no
  10573. else
  10574. archive_cmds_need_lc_CXX=yes
  10575. fi
  10576. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10577. else
  10578. cat conftest.err 1>&5
  10579. fi
  10580. $rm conftest*
  10581. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10582. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  10583. ;;
  10584. esac
  10585. fi
  10586. ;;
  10587. esac
  10588. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10589. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  10590. library_names_spec=
  10591. libname_spec='lib$name'
  10592. soname_spec=
  10593. shrext_cmds=".so"
  10594. postinstall_cmds=
  10595. postuninstall_cmds=
  10596. finish_cmds=
  10597. finish_eval=
  10598. shlibpath_var=
  10599. shlibpath_overrides_runpath=unknown
  10600. version_type=none
  10601. dynamic_linker="$host_os ld.so"
  10602. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10603. if test "$GCC" = yes; then
  10604. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10605. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10606. # if the path contains ";" then we assume it to be the separator
  10607. # otherwise default to the standard path separator (i.e. ":") - it is
  10608. # assumed that no part of a normal pathname contains ";" but that should
  10609. # okay in the real world where ";" in dirpaths is itself problematic.
  10610. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10611. else
  10612. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10613. fi
  10614. else
  10615. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10616. fi
  10617. need_lib_prefix=unknown
  10618. hardcode_into_libs=no
  10619. # when you set need_version to no, make sure it does not cause -set_version
  10620. # flags to be left without arguments
  10621. need_version=unknown
  10622. case $host_os in
  10623. aix3*)
  10624. version_type=linux
  10625. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10626. shlibpath_var=LIBPATH
  10627. # AIX 3 has no versioning support, so we append a major version to the name.
  10628. soname_spec='${libname}${release}${shared_ext}$major'
  10629. ;;
  10630. aix4* | aix5*)
  10631. version_type=linux
  10632. need_lib_prefix=no
  10633. need_version=no
  10634. hardcode_into_libs=yes
  10635. if test "$host_cpu" = ia64; then
  10636. # AIX 5 supports IA64
  10637. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10638. shlibpath_var=LD_LIBRARY_PATH
  10639. else
  10640. # With GCC up to 2.95.x, collect2 would create an import file
  10641. # for dependence libraries. The import file would start with
  10642. # the line `#! .'. This would cause the generated library to
  10643. # depend on `.', always an invalid library. This was fixed in
  10644. # development snapshots of GCC prior to 3.0.
  10645. case $host_os in
  10646. aix4 | aix4.[01] | aix4.[01].*)
  10647. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10648. echo ' yes '
  10649. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10650. :
  10651. else
  10652. can_build_shared=no
  10653. fi
  10654. ;;
  10655. esac
  10656. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10657. # soname into executable. Probably we can add versioning support to
  10658. # collect2, so additional links can be useful in future.
  10659. if test "$aix_use_runtimelinking" = yes; then
  10660. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10661. # instead of lib<name>.a to let people know that these are not
  10662. # typical AIX shared libraries.
  10663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10664. else
  10665. # We preserve .a as extension for shared libraries through AIX4.2
  10666. # and later when we are not doing run time linking.
  10667. library_names_spec='${libname}${release}.a $libname.a'
  10668. soname_spec='${libname}${release}${shared_ext}$major'
  10669. fi
  10670. shlibpath_var=LIBPATH
  10671. fi
  10672. ;;
  10673. amigaos*)
  10674. library_names_spec='$libname.ixlibrary $libname.a'
  10675. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10676. 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'
  10677. ;;
  10678. beos*)
  10679. library_names_spec='${libname}${shared_ext}'
  10680. dynamic_linker="$host_os ld.so"
  10681. shlibpath_var=LIBRARY_PATH
  10682. ;;
  10683. bsdi[45]*)
  10684. version_type=linux
  10685. need_version=no
  10686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10687. soname_spec='${libname}${release}${shared_ext}$major'
  10688. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10689. shlibpath_var=LD_LIBRARY_PATH
  10690. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10691. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10692. # the default ld.so.conf also contains /usr/contrib/lib and
  10693. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10694. # libtool to hard-code these into programs
  10695. ;;
  10696. cygwin* | mingw* | pw32*)
  10697. version_type=windows
  10698. shrext_cmds=".dll"
  10699. need_version=no
  10700. need_lib_prefix=no
  10701. case $GCC,$host_os in
  10702. yes,cygwin* | yes,mingw* | yes,pw32*)
  10703. library_names_spec='$libname.dll.a'
  10704. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10705. postinstall_cmds='base_file=`basename \${file}`~
  10706. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10707. dldir=$destdir/`dirname \$dlpath`~
  10708. test -d \$dldir || mkdir -p \$dldir~
  10709. $install_prog $dir/$dlname \$dldir/$dlname~
  10710. chmod a+x \$dldir/$dlname'
  10711. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10712. dlpath=$dir/\$dldll~
  10713. $rm \$dlpath'
  10714. shlibpath_overrides_runpath=yes
  10715. case $host_os in
  10716. cygwin*)
  10717. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10718. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10719. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10720. ;;
  10721. mingw*)
  10722. # MinGW DLLs use traditional 'lib' prefix
  10723. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10724. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10725. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10726. # It is most probably a Windows format PATH printed by
  10727. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10728. # path with ; separators, and with drive letters. We can handle the
  10729. # drive letters (cygwin fileutils understands them), so leave them,
  10730. # especially as we might pass files found there to a mingw objdump,
  10731. # which wouldn't understand a cygwinified path. Ahh.
  10732. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10733. else
  10734. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10735. fi
  10736. ;;
  10737. pw32*)
  10738. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10739. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10740. ;;
  10741. esac
  10742. ;;
  10743. *)
  10744. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10745. ;;
  10746. esac
  10747. dynamic_linker='Win32 ld.exe'
  10748. # FIXME: first we should search . and the directory the executable is in
  10749. shlibpath_var=PATH
  10750. ;;
  10751. darwin* | rhapsody*)
  10752. dynamic_linker="$host_os dyld"
  10753. version_type=darwin
  10754. need_lib_prefix=no
  10755. need_version=no
  10756. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10757. soname_spec='${libname}${release}${major}$shared_ext'
  10758. shlibpath_overrides_runpath=yes
  10759. shlibpath_var=DYLD_LIBRARY_PATH
  10760. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10761. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10762. if test "$GCC" = yes; then
  10763. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  10764. else
  10765. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10766. fi
  10767. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10768. ;;
  10769. dgux*)
  10770. version_type=linux
  10771. need_lib_prefix=no
  10772. need_version=no
  10773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10774. soname_spec='${libname}${release}${shared_ext}$major'
  10775. shlibpath_var=LD_LIBRARY_PATH
  10776. ;;
  10777. freebsd1*)
  10778. dynamic_linker=no
  10779. ;;
  10780. kfreebsd*-gnu)
  10781. version_type=linux
  10782. need_lib_prefix=no
  10783. need_version=no
  10784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10785. soname_spec='${libname}${release}${shared_ext}$major'
  10786. shlibpath_var=LD_LIBRARY_PATH
  10787. shlibpath_overrides_runpath=no
  10788. hardcode_into_libs=yes
  10789. dynamic_linker='GNU ld.so'
  10790. ;;
  10791. freebsd* | dragonfly*)
  10792. # DragonFly does not have aout. When/if they implement a new
  10793. # versioning mechanism, adjust this.
  10794. if test -x /usr/bin/objformat; then
  10795. objformat=`/usr/bin/objformat`
  10796. else
  10797. case $host_os in
  10798. freebsd[123]*) objformat=aout ;;
  10799. *) objformat=elf ;;
  10800. esac
  10801. fi
  10802. version_type=freebsd-$objformat
  10803. case $version_type in
  10804. freebsd-elf*)
  10805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10806. need_version=no
  10807. need_lib_prefix=no
  10808. ;;
  10809. freebsd-*)
  10810. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10811. need_version=yes
  10812. ;;
  10813. esac
  10814. shlibpath_var=LD_LIBRARY_PATH
  10815. case $host_os in
  10816. freebsd2*)
  10817. shlibpath_overrides_runpath=yes
  10818. ;;
  10819. freebsd3.[01]* | freebsdelf3.[01]*)
  10820. shlibpath_overrides_runpath=yes
  10821. hardcode_into_libs=yes
  10822. ;;
  10823. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10824. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10825. shlibpath_overrides_runpath=no
  10826. hardcode_into_libs=yes
  10827. ;;
  10828. freebsd*) # from 4.6 on
  10829. shlibpath_overrides_runpath=yes
  10830. hardcode_into_libs=yes
  10831. ;;
  10832. esac
  10833. ;;
  10834. gnu*)
  10835. version_type=linux
  10836. need_lib_prefix=no
  10837. need_version=no
  10838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10839. soname_spec='${libname}${release}${shared_ext}$major'
  10840. shlibpath_var=LD_LIBRARY_PATH
  10841. hardcode_into_libs=yes
  10842. ;;
  10843. hpux9* | hpux10* | hpux11*)
  10844. # Give a soname corresponding to the major version so that dld.sl refuses to
  10845. # link against other versions.
  10846. version_type=sunos
  10847. need_lib_prefix=no
  10848. need_version=no
  10849. case $host_cpu in
  10850. ia64*)
  10851. shrext_cmds='.so'
  10852. hardcode_into_libs=yes
  10853. dynamic_linker="$host_os dld.so"
  10854. shlibpath_var=LD_LIBRARY_PATH
  10855. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10857. soname_spec='${libname}${release}${shared_ext}$major'
  10858. if test "X$HPUX_IA64_MODE" = X32; then
  10859. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10860. else
  10861. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10862. fi
  10863. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10864. ;;
  10865. hppa*64*)
  10866. shrext_cmds='.sl'
  10867. hardcode_into_libs=yes
  10868. dynamic_linker="$host_os dld.sl"
  10869. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10870. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10872. soname_spec='${libname}${release}${shared_ext}$major'
  10873. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10874. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10875. ;;
  10876. *)
  10877. shrext_cmds='.sl'
  10878. dynamic_linker="$host_os dld.sl"
  10879. shlibpath_var=SHLIB_PATH
  10880. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10882. soname_spec='${libname}${release}${shared_ext}$major'
  10883. ;;
  10884. esac
  10885. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10886. postinstall_cmds='chmod 555 $lib'
  10887. ;;
  10888. interix3*)
  10889. version_type=linux
  10890. need_lib_prefix=no
  10891. need_version=no
  10892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10893. soname_spec='${libname}${release}${shared_ext}$major'
  10894. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10895. shlibpath_var=LD_LIBRARY_PATH
  10896. shlibpath_overrides_runpath=no
  10897. hardcode_into_libs=yes
  10898. ;;
  10899. irix5* | irix6* | nonstopux*)
  10900. case $host_os in
  10901. nonstopux*) version_type=nonstopux ;;
  10902. *)
  10903. if test "$lt_cv_prog_gnu_ld" = yes; then
  10904. version_type=linux
  10905. else
  10906. version_type=irix
  10907. fi ;;
  10908. esac
  10909. need_lib_prefix=no
  10910. need_version=no
  10911. soname_spec='${libname}${release}${shared_ext}$major'
  10912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10913. case $host_os in
  10914. irix5* | nonstopux*)
  10915. libsuff= shlibsuff=
  10916. ;;
  10917. *)
  10918. case $LD in # libtool.m4 will add one of these switches to LD
  10919. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10920. libsuff= shlibsuff= libmagic=32-bit;;
  10921. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10922. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10923. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10924. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10925. *) libsuff= shlibsuff= libmagic=never-match;;
  10926. esac
  10927. ;;
  10928. esac
  10929. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10930. shlibpath_overrides_runpath=no
  10931. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10932. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10933. hardcode_into_libs=yes
  10934. ;;
  10935. # No shared lib support for Linux oldld, aout, or coff.
  10936. linux*oldld* | linux*aout* | linux*coff*)
  10937. dynamic_linker=no
  10938. ;;
  10939. # This must be Linux ELF.
  10940. linux*)
  10941. version_type=linux
  10942. need_lib_prefix=no
  10943. need_version=no
  10944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10945. soname_spec='${libname}${release}${shared_ext}$major'
  10946. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10947. shlibpath_var=LD_LIBRARY_PATH
  10948. shlibpath_overrides_runpath=no
  10949. # This implies no fast_install, which is unacceptable.
  10950. # Some rework will be needed to allow for fast_install
  10951. # before this can be enabled.
  10952. hardcode_into_libs=yes
  10953. # Append ld.so.conf contents to the search path
  10954. if test -f /etc/ld.so.conf; then
  10955. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10956. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10957. fi
  10958. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10959. # powerpc, because MkLinux only supported shared libraries with the
  10960. # GNU dynamic linker. Since this was broken with cross compilers,
  10961. # most powerpc-linux boxes support dynamic linking these days and
  10962. # people can always --disable-shared, the test was removed, and we
  10963. # assume the GNU/Linux dynamic linker is in use.
  10964. dynamic_linker='GNU/Linux ld.so'
  10965. ;;
  10966. knetbsd*-gnu)
  10967. version_type=linux
  10968. need_lib_prefix=no
  10969. need_version=no
  10970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10971. soname_spec='${libname}${release}${shared_ext}$major'
  10972. shlibpath_var=LD_LIBRARY_PATH
  10973. shlibpath_overrides_runpath=no
  10974. hardcode_into_libs=yes
  10975. dynamic_linker='GNU ld.so'
  10976. ;;
  10977. netbsd*)
  10978. version_type=sunos
  10979. need_lib_prefix=no
  10980. need_version=no
  10981. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10983. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10984. dynamic_linker='NetBSD (a.out) ld.so'
  10985. else
  10986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10987. soname_spec='${libname}${release}${shared_ext}$major'
  10988. dynamic_linker='NetBSD ld.elf_so'
  10989. fi
  10990. shlibpath_var=LD_LIBRARY_PATH
  10991. shlibpath_overrides_runpath=yes
  10992. hardcode_into_libs=yes
  10993. ;;
  10994. newsos6)
  10995. version_type=linux
  10996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10997. shlibpath_var=LD_LIBRARY_PATH
  10998. shlibpath_overrides_runpath=yes
  10999. ;;
  11000. nto-qnx*)
  11001. version_type=linux
  11002. need_lib_prefix=no
  11003. need_version=no
  11004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11005. soname_spec='${libname}${release}${shared_ext}$major'
  11006. shlibpath_var=LD_LIBRARY_PATH
  11007. shlibpath_overrides_runpath=yes
  11008. ;;
  11009. openbsd*)
  11010. version_type=sunos
  11011. sys_lib_dlsearch_path_spec="/usr/lib"
  11012. need_lib_prefix=no
  11013. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11014. case $host_os in
  11015. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11016. *) need_version=no ;;
  11017. esac
  11018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11019. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11020. shlibpath_var=LD_LIBRARY_PATH
  11021. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11022. case $host_os in
  11023. openbsd2.[89] | openbsd2.[89].*)
  11024. shlibpath_overrides_runpath=no
  11025. ;;
  11026. *)
  11027. shlibpath_overrides_runpath=yes
  11028. ;;
  11029. esac
  11030. else
  11031. shlibpath_overrides_runpath=yes
  11032. fi
  11033. ;;
  11034. os2*)
  11035. libname_spec='$name'
  11036. shrext_cmds=".dll"
  11037. need_lib_prefix=no
  11038. library_names_spec='$libname${shared_ext} $libname.a'
  11039. dynamic_linker='OS/2 ld.exe'
  11040. shlibpath_var=LIBPATH
  11041. ;;
  11042. osf3* | osf4* | osf5*)
  11043. version_type=osf
  11044. need_lib_prefix=no
  11045. need_version=no
  11046. soname_spec='${libname}${release}${shared_ext}$major'
  11047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11048. shlibpath_var=LD_LIBRARY_PATH
  11049. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11050. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11051. ;;
  11052. solaris*)
  11053. version_type=linux
  11054. need_lib_prefix=no
  11055. need_version=no
  11056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11057. soname_spec='${libname}${release}${shared_ext}$major'
  11058. shlibpath_var=LD_LIBRARY_PATH
  11059. shlibpath_overrides_runpath=yes
  11060. hardcode_into_libs=yes
  11061. # ldd complains unless libraries are executable
  11062. postinstall_cmds='chmod +x $lib'
  11063. ;;
  11064. sunos4*)
  11065. version_type=sunos
  11066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11067. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11068. shlibpath_var=LD_LIBRARY_PATH
  11069. shlibpath_overrides_runpath=yes
  11070. if test "$with_gnu_ld" = yes; then
  11071. need_lib_prefix=no
  11072. fi
  11073. need_version=yes
  11074. ;;
  11075. sysv4 | sysv4.3*)
  11076. version_type=linux
  11077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11078. soname_spec='${libname}${release}${shared_ext}$major'
  11079. shlibpath_var=LD_LIBRARY_PATH
  11080. case $host_vendor in
  11081. sni)
  11082. shlibpath_overrides_runpath=no
  11083. need_lib_prefix=no
  11084. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11085. runpath_var=LD_RUN_PATH
  11086. ;;
  11087. siemens)
  11088. need_lib_prefix=no
  11089. ;;
  11090. motorola)
  11091. need_lib_prefix=no
  11092. need_version=no
  11093. shlibpath_overrides_runpath=no
  11094. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11095. ;;
  11096. esac
  11097. ;;
  11098. sysv4*MP*)
  11099. if test -d /usr/nec ;then
  11100. version_type=linux
  11101. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11102. soname_spec='$libname${shared_ext}.$major'
  11103. shlibpath_var=LD_LIBRARY_PATH
  11104. fi
  11105. ;;
  11106. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11107. version_type=freebsd-elf
  11108. need_lib_prefix=no
  11109. need_version=no
  11110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11111. soname_spec='${libname}${release}${shared_ext}$major'
  11112. shlibpath_var=LD_LIBRARY_PATH
  11113. hardcode_into_libs=yes
  11114. if test "$with_gnu_ld" = yes; then
  11115. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11116. shlibpath_overrides_runpath=no
  11117. else
  11118. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11119. shlibpath_overrides_runpath=yes
  11120. case $host_os in
  11121. sco3.2v5*)
  11122. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11123. ;;
  11124. esac
  11125. fi
  11126. sys_lib_dlsearch_path_spec='/usr/lib'
  11127. ;;
  11128. uts4*)
  11129. version_type=linux
  11130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11131. soname_spec='${libname}${release}${shared_ext}$major'
  11132. shlibpath_var=LD_LIBRARY_PATH
  11133. ;;
  11134. *)
  11135. dynamic_linker=no
  11136. ;;
  11137. esac
  11138. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11139. echo "${ECHO_T}$dynamic_linker" >&6; }
  11140. test "$dynamic_linker" = no && can_build_shared=no
  11141. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11142. if test "$GCC" = yes; then
  11143. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11144. fi
  11145. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11146. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11147. hardcode_action_CXX=
  11148. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11149. test -n "$runpath_var_CXX" || \
  11150. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11151. # We can hardcode non-existant directories.
  11152. if test "$hardcode_direct_CXX" != no &&
  11153. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11154. # have to relink, otherwise we might link with an installed library
  11155. # when we should be linking with a yet-to-be-installed one
  11156. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11157. test "$hardcode_minus_L_CXX" != no; then
  11158. # Linking always hardcodes the temporary library directory.
  11159. hardcode_action_CXX=relink
  11160. else
  11161. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11162. hardcode_action_CXX=immediate
  11163. fi
  11164. else
  11165. # We cannot hardcode anything, or else we can only hardcode existing
  11166. # directories.
  11167. hardcode_action_CXX=unsupported
  11168. fi
  11169. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11170. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  11171. if test "$hardcode_action_CXX" = relink; then
  11172. # Fast installation is not supported
  11173. enable_fast_install=no
  11174. elif test "$shlibpath_overrides_runpath" = yes ||
  11175. test "$enable_shared" = no; then
  11176. # Fast installation is not necessary
  11177. enable_fast_install=needless
  11178. fi
  11179. # The else clause should only fire when bootstrapping the
  11180. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11181. # with your package, and you will get complaints that there are
  11182. # no rules to generate ltmain.sh.
  11183. if test -f "$ltmain"; then
  11184. # See if we are running on zsh, and set the options which allow our commands through
  11185. # without removal of \ escapes.
  11186. if test -n "${ZSH_VERSION+set}" ; then
  11187. setopt NO_GLOB_SUBST
  11188. fi
  11189. # Now quote all the things that may contain metacharacters while being
  11190. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11191. # variables and quote the copies for generation of the libtool script.
  11192. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11193. SED SHELL STRIP \
  11194. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11195. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11196. deplibs_check_method reload_flag reload_cmds need_locks \
  11197. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11198. lt_cv_sys_global_symbol_to_c_name_address \
  11199. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11200. old_postinstall_cmds old_postuninstall_cmds \
  11201. compiler_CXX \
  11202. CC_CXX \
  11203. LD_CXX \
  11204. lt_prog_compiler_wl_CXX \
  11205. lt_prog_compiler_pic_CXX \
  11206. lt_prog_compiler_static_CXX \
  11207. lt_prog_compiler_no_builtin_flag_CXX \
  11208. export_dynamic_flag_spec_CXX \
  11209. thread_safe_flag_spec_CXX \
  11210. whole_archive_flag_spec_CXX \
  11211. enable_shared_with_static_runtimes_CXX \
  11212. old_archive_cmds_CXX \
  11213. old_archive_from_new_cmds_CXX \
  11214. predep_objects_CXX \
  11215. postdep_objects_CXX \
  11216. predeps_CXX \
  11217. postdeps_CXX \
  11218. compiler_lib_search_path_CXX \
  11219. archive_cmds_CXX \
  11220. archive_expsym_cmds_CXX \
  11221. postinstall_cmds_CXX \
  11222. postuninstall_cmds_CXX \
  11223. old_archive_from_expsyms_cmds_CXX \
  11224. allow_undefined_flag_CXX \
  11225. no_undefined_flag_CXX \
  11226. export_symbols_cmds_CXX \
  11227. hardcode_libdir_flag_spec_CXX \
  11228. hardcode_libdir_flag_spec_ld_CXX \
  11229. hardcode_libdir_separator_CXX \
  11230. hardcode_automatic_CXX \
  11231. module_cmds_CXX \
  11232. module_expsym_cmds_CXX \
  11233. lt_cv_prog_compiler_c_o_CXX \
  11234. exclude_expsyms_CXX \
  11235. include_expsyms_CXX; do
  11236. case $var in
  11237. old_archive_cmds_CXX | \
  11238. old_archive_from_new_cmds_CXX | \
  11239. archive_cmds_CXX | \
  11240. archive_expsym_cmds_CXX | \
  11241. module_cmds_CXX | \
  11242. module_expsym_cmds_CXX | \
  11243. old_archive_from_expsyms_cmds_CXX | \
  11244. export_symbols_cmds_CXX | \
  11245. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11246. postinstall_cmds | postuninstall_cmds | \
  11247. old_postinstall_cmds | old_postuninstall_cmds | \
  11248. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11249. # Double-quote double-evaled strings.
  11250. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11251. ;;
  11252. *)
  11253. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11254. ;;
  11255. esac
  11256. done
  11257. case $lt_echo in
  11258. *'\$0 --fallback-echo"')
  11259. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11260. ;;
  11261. esac
  11262. cfgfile="$ofile"
  11263. cat <<__EOF__ >> "$cfgfile"
  11264. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11265. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11266. # Shell to use when invoking shell scripts.
  11267. SHELL=$lt_SHELL
  11268. # Whether or not to build shared libraries.
  11269. build_libtool_libs=$enable_shared
  11270. # Whether or not to build static libraries.
  11271. build_old_libs=$enable_static
  11272. # Whether or not to add -lc for building shared libraries.
  11273. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11274. # Whether or not to disallow shared libs when runtime libs are static
  11275. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11276. # Whether or not to optimize for fast installation.
  11277. fast_install=$enable_fast_install
  11278. # The host system.
  11279. host_alias=$host_alias
  11280. host=$host
  11281. host_os=$host_os
  11282. # The build system.
  11283. build_alias=$build_alias
  11284. build=$build
  11285. build_os=$build_os
  11286. # An echo program that does not interpret backslashes.
  11287. echo=$lt_echo
  11288. # The archiver.
  11289. AR=$lt_AR
  11290. AR_FLAGS=$lt_AR_FLAGS
  11291. # A C compiler.
  11292. LTCC=$lt_LTCC
  11293. # LTCC compiler flags.
  11294. LTCFLAGS=$lt_LTCFLAGS
  11295. # A language-specific compiler.
  11296. CC=$lt_compiler_CXX
  11297. # Is the compiler the GNU C compiler?
  11298. with_gcc=$GCC_CXX
  11299. # An ERE matcher.
  11300. EGREP=$lt_EGREP
  11301. # The linker used to build libraries.
  11302. LD=$lt_LD_CXX
  11303. # Whether we need hard or soft links.
  11304. LN_S=$lt_LN_S
  11305. # A BSD-compatible nm program.
  11306. NM=$lt_NM
  11307. # A symbol stripping program
  11308. STRIP=$lt_STRIP
  11309. # Used to examine libraries when file_magic_cmd begins "file"
  11310. MAGIC_CMD=$MAGIC_CMD
  11311. # Used on cygwin: DLL creation program.
  11312. DLLTOOL="$DLLTOOL"
  11313. # Used on cygwin: object dumper.
  11314. OBJDUMP="$OBJDUMP"
  11315. # Used on cygwin: assembler.
  11316. AS="$AS"
  11317. # The name of the directory that contains temporary libtool files.
  11318. objdir=$objdir
  11319. # How to create reloadable object files.
  11320. reload_flag=$lt_reload_flag
  11321. reload_cmds=$lt_reload_cmds
  11322. # How to pass a linker flag through the compiler.
  11323. wl=$lt_lt_prog_compiler_wl_CXX
  11324. # Object file suffix (normally "o").
  11325. objext="$ac_objext"
  11326. # Old archive suffix (normally "a").
  11327. libext="$libext"
  11328. # Shared library suffix (normally ".so").
  11329. shrext_cmds='$shrext_cmds'
  11330. # Executable file suffix (normally "").
  11331. exeext="$exeext"
  11332. # Additional compiler flags for building library objects.
  11333. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11334. pic_mode=$pic_mode
  11335. # What is the maximum length of a command?
  11336. max_cmd_len=$lt_cv_sys_max_cmd_len
  11337. # Does compiler simultaneously support -c and -o options?
  11338. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11339. # Must we lock files when doing compilation?
  11340. need_locks=$lt_need_locks
  11341. # Do we need the lib prefix for modules?
  11342. need_lib_prefix=$need_lib_prefix
  11343. # Do we need a version for libraries?
  11344. need_version=$need_version
  11345. # Whether dlopen is supported.
  11346. dlopen_support=$enable_dlopen
  11347. # Whether dlopen of programs is supported.
  11348. dlopen_self=$enable_dlopen_self
  11349. # Whether dlopen of statically linked programs is supported.
  11350. dlopen_self_static=$enable_dlopen_self_static
  11351. # Compiler flag to prevent dynamic linking.
  11352. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11353. # Compiler flag to turn off builtin functions.
  11354. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11355. # Compiler flag to allow reflexive dlopens.
  11356. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11357. # Compiler flag to generate shared objects directly from archives.
  11358. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11359. # Compiler flag to generate thread-safe objects.
  11360. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11361. # Library versioning type.
  11362. version_type=$version_type
  11363. # Format of library name prefix.
  11364. libname_spec=$lt_libname_spec
  11365. # List of archive names. First name is the real one, the rest are links.
  11366. # The last name is the one that the linker finds with -lNAME.
  11367. library_names_spec=$lt_library_names_spec
  11368. # The coded name of the library, if different from the real name.
  11369. soname_spec=$lt_soname_spec
  11370. # Commands used to build and install an old-style archive.
  11371. RANLIB=$lt_RANLIB
  11372. old_archive_cmds=$lt_old_archive_cmds_CXX
  11373. old_postinstall_cmds=$lt_old_postinstall_cmds
  11374. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11375. # Create an old-style archive from a shared archive.
  11376. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11377. # Create a temporary old-style archive to link instead of a shared archive.
  11378. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11379. # Commands used to build and install a shared archive.
  11380. archive_cmds=$lt_archive_cmds_CXX
  11381. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11382. postinstall_cmds=$lt_postinstall_cmds
  11383. postuninstall_cmds=$lt_postuninstall_cmds
  11384. # Commands used to build a loadable module (assumed same as above if empty)
  11385. module_cmds=$lt_module_cmds_CXX
  11386. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11387. # Commands to strip libraries.
  11388. old_striplib=$lt_old_striplib
  11389. striplib=$lt_striplib
  11390. # Dependencies to place before the objects being linked to create a
  11391. # shared library.
  11392. predep_objects=$lt_predep_objects_CXX
  11393. # Dependencies to place after the objects being linked to create a
  11394. # shared library.
  11395. postdep_objects=$lt_postdep_objects_CXX
  11396. # Dependencies to place before the objects being linked to create a
  11397. # shared library.
  11398. predeps=$lt_predeps_CXX
  11399. # Dependencies to place after the objects being linked to create a
  11400. # shared library.
  11401. postdeps=$lt_postdeps_CXX
  11402. # The library search path used internally by the compiler when linking
  11403. # a shared library.
  11404. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11405. # Method to check whether dependent libraries are shared objects.
  11406. deplibs_check_method=$lt_deplibs_check_method
  11407. # Command to use when deplibs_check_method == file_magic.
  11408. file_magic_cmd=$lt_file_magic_cmd
  11409. # Flag that allows shared libraries with undefined symbols to be built.
  11410. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11411. # Flag that forces no undefined symbols.
  11412. no_undefined_flag=$lt_no_undefined_flag_CXX
  11413. # Commands used to finish a libtool library installation in a directory.
  11414. finish_cmds=$lt_finish_cmds
  11415. # Same as above, but a single script fragment to be evaled but not shown.
  11416. finish_eval=$lt_finish_eval
  11417. # Take the output of nm and produce a listing of raw symbols and C names.
  11418. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11419. # Transform the output of nm in a proper C declaration
  11420. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11421. # Transform the output of nm in a C name address pair
  11422. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11423. # This is the shared library runtime path variable.
  11424. runpath_var=$runpath_var
  11425. # This is the shared library path variable.
  11426. shlibpath_var=$shlibpath_var
  11427. # Is shlibpath searched before the hard-coded library search path?
  11428. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11429. # How to hardcode a shared library path into an executable.
  11430. hardcode_action=$hardcode_action_CXX
  11431. # Whether we should hardcode library paths into libraries.
  11432. hardcode_into_libs=$hardcode_into_libs
  11433. # Flag to hardcode \$libdir into a binary during linking.
  11434. # This must work even if \$libdir does not exist.
  11435. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11436. # If ld is used when linking, flag to hardcode \$libdir into
  11437. # a binary during linking. This must work even if \$libdir does
  11438. # not exist.
  11439. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11440. # Whether we need a single -rpath flag with a separated argument.
  11441. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11442. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11443. # resulting binary.
  11444. hardcode_direct=$hardcode_direct_CXX
  11445. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11446. # resulting binary.
  11447. hardcode_minus_L=$hardcode_minus_L_CXX
  11448. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11449. # the resulting binary.
  11450. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11451. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11452. # and all subsequent libraries and executables linked against it.
  11453. hardcode_automatic=$hardcode_automatic_CXX
  11454. # Variables whose values should be saved in libtool wrapper scripts and
  11455. # restored at relink time.
  11456. variables_saved_for_relink="$variables_saved_for_relink"
  11457. # Whether libtool must link a program against all its dependency libraries.
  11458. link_all_deplibs=$link_all_deplibs_CXX
  11459. # Compile-time system search path for libraries
  11460. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11461. # Run-time system search path for libraries
  11462. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11463. # Fix the shell variable \$srcfile for the compiler.
  11464. fix_srcfile_path="$fix_srcfile_path_CXX"
  11465. # Set to yes if exported symbols are required.
  11466. always_export_symbols=$always_export_symbols_CXX
  11467. # The commands to list exported symbols.
  11468. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11469. # The commands to extract the exported symbol list from a shared archive.
  11470. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11471. # Symbols that should not be listed in the preloaded symbols.
  11472. exclude_expsyms=$lt_exclude_expsyms_CXX
  11473. # Symbols that must always be exported.
  11474. include_expsyms=$lt_include_expsyms_CXX
  11475. # ### END LIBTOOL TAG CONFIG: $tagname
  11476. __EOF__
  11477. else
  11478. # If there is no Makefile yet, we rely on a make rule to execute
  11479. # `config.status --recheck' to rerun these tests and create the
  11480. # libtool script then.
  11481. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11482. if test -f "$ltmain_in"; then
  11483. test -f Makefile && make "$ltmain"
  11484. fi
  11485. fi
  11486. ac_ext=c
  11487. ac_cpp='$CPP $CPPFLAGS'
  11488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11491. CC=$lt_save_CC
  11492. LDCXX=$LD
  11493. LD=$lt_save_LD
  11494. GCC=$lt_save_GCC
  11495. with_gnu_ldcxx=$with_gnu_ld
  11496. with_gnu_ld=$lt_save_with_gnu_ld
  11497. lt_cv_path_LDCXX=$lt_cv_path_LD
  11498. lt_cv_path_LD=$lt_save_path_LD
  11499. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11500. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11501. else
  11502. tagname=""
  11503. fi
  11504. ;;
  11505. F77)
  11506. if test -n "$F77" && test "X$F77" != "Xno"; then
  11507. ac_ext=f
  11508. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11509. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11510. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11511. archive_cmds_need_lc_F77=no
  11512. allow_undefined_flag_F77=
  11513. always_export_symbols_F77=no
  11514. archive_expsym_cmds_F77=
  11515. export_dynamic_flag_spec_F77=
  11516. hardcode_direct_F77=no
  11517. hardcode_libdir_flag_spec_F77=
  11518. hardcode_libdir_flag_spec_ld_F77=
  11519. hardcode_libdir_separator_F77=
  11520. hardcode_minus_L_F77=no
  11521. hardcode_automatic_F77=no
  11522. module_cmds_F77=
  11523. module_expsym_cmds_F77=
  11524. link_all_deplibs_F77=unknown
  11525. old_archive_cmds_F77=$old_archive_cmds
  11526. no_undefined_flag_F77=
  11527. whole_archive_flag_spec_F77=
  11528. enable_shared_with_static_runtimes_F77=no
  11529. # Source file extension for f77 test sources.
  11530. ac_ext=f
  11531. # Object file extension for compiled f77 test sources.
  11532. objext=o
  11533. objext_F77=$objext
  11534. # Code to be used in simple compile tests
  11535. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11536. # Code to be used in simple link tests
  11537. lt_simple_link_test_code=" program t\n end\n"
  11538. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11539. # If no C compiler was specified, use CC.
  11540. LTCC=${LTCC-"$CC"}
  11541. # If no C compiler flags were specified, use CFLAGS.
  11542. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11543. # Allow CC to be a program name with arguments.
  11544. compiler=$CC
  11545. # save warnings/boilerplate of simple test code
  11546. ac_outfile=conftest.$ac_objext
  11547. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11548. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11549. _lt_compiler_boilerplate=`cat conftest.err`
  11550. $rm conftest*
  11551. ac_outfile=conftest.$ac_objext
  11552. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11553. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11554. _lt_linker_boilerplate=`cat conftest.err`
  11555. $rm conftest*
  11556. # Allow CC to be a program name with arguments.
  11557. lt_save_CC="$CC"
  11558. CC=${F77-"f77"}
  11559. compiler=$CC
  11560. compiler_F77=$CC
  11561. for cc_temp in $compiler""; do
  11562. case $cc_temp in
  11563. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11564. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11565. \-*) ;;
  11566. *) break;;
  11567. esac
  11568. done
  11569. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11570. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11571. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  11572. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11573. echo "${ECHO_T}$can_build_shared" >&6; }
  11574. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11575. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  11576. test "$can_build_shared" = "no" && enable_shared=no
  11577. # On AIX, shared libraries and static libraries use the same namespace, and
  11578. # are all built from PIC.
  11579. case $host_os in
  11580. aix3*)
  11581. test "$enable_shared" = yes && enable_static=no
  11582. if test -n "$RANLIB"; then
  11583. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11584. postinstall_cmds='$RANLIB $lib'
  11585. fi
  11586. ;;
  11587. aix4* | aix5*)
  11588. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11589. test "$enable_shared" = yes && enable_static=no
  11590. fi
  11591. ;;
  11592. esac
  11593. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  11594. echo "${ECHO_T}$enable_shared" >&6; }
  11595. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11596. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  11597. # Make sure either enable_shared or enable_static is yes.
  11598. test "$enable_shared" = yes || enable_static=yes
  11599. { echo "$as_me:$LINENO: result: $enable_static" >&5
  11600. echo "${ECHO_T}$enable_static" >&6; }
  11601. GCC_F77="$G77"
  11602. LD_F77="$LD"
  11603. lt_prog_compiler_wl_F77=
  11604. lt_prog_compiler_pic_F77=
  11605. lt_prog_compiler_static_F77=
  11606. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11607. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11608. if test "$GCC" = yes; then
  11609. lt_prog_compiler_wl_F77='-Wl,'
  11610. lt_prog_compiler_static_F77='-static'
  11611. case $host_os in
  11612. aix*)
  11613. # All AIX code is PIC.
  11614. if test "$host_cpu" = ia64; then
  11615. # AIX 5 now supports IA64 processor
  11616. lt_prog_compiler_static_F77='-Bstatic'
  11617. fi
  11618. ;;
  11619. amigaos*)
  11620. # FIXME: we need at least 68020 code to build shared libraries, but
  11621. # adding the `-m68020' flag to GCC prevents building anything better,
  11622. # like `-m68040'.
  11623. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11624. ;;
  11625. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11626. # PIC is the default for these OSes.
  11627. ;;
  11628. mingw* | pw32* | os2*)
  11629. # This hack is so that the source file can tell whether it is being
  11630. # built for inclusion in a dll (and should export symbols for example).
  11631. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11632. ;;
  11633. darwin* | rhapsody*)
  11634. # PIC is the default on this platform
  11635. # Common symbols not allowed in MH_DYLIB files
  11636. lt_prog_compiler_pic_F77='-fno-common'
  11637. ;;
  11638. interix3*)
  11639. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11640. # Instead, we relocate shared libraries at runtime.
  11641. ;;
  11642. msdosdjgpp*)
  11643. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11644. # on systems that don't support them.
  11645. lt_prog_compiler_can_build_shared_F77=no
  11646. enable_shared=no
  11647. ;;
  11648. sysv4*MP*)
  11649. if test -d /usr/nec; then
  11650. lt_prog_compiler_pic_F77=-Kconform_pic
  11651. fi
  11652. ;;
  11653. hpux*)
  11654. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11655. # not for PA HP-UX.
  11656. case $host_cpu in
  11657. hppa*64*|ia64*)
  11658. # +Z the default
  11659. ;;
  11660. *)
  11661. lt_prog_compiler_pic_F77='-fPIC'
  11662. ;;
  11663. esac
  11664. ;;
  11665. *)
  11666. lt_prog_compiler_pic_F77='-fPIC'
  11667. ;;
  11668. esac
  11669. else
  11670. # PORTME Check for flag to pass linker flags through the system compiler.
  11671. case $host_os in
  11672. aix*)
  11673. lt_prog_compiler_wl_F77='-Wl,'
  11674. if test "$host_cpu" = ia64; then
  11675. # AIX 5 now supports IA64 processor
  11676. lt_prog_compiler_static_F77='-Bstatic'
  11677. else
  11678. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11679. fi
  11680. ;;
  11681. darwin*)
  11682. # PIC is the default on this platform
  11683. # Common symbols not allowed in MH_DYLIB files
  11684. case $cc_basename in
  11685. xlc*)
  11686. lt_prog_compiler_pic_F77='-qnocommon'
  11687. lt_prog_compiler_wl_F77='-Wl,'
  11688. ;;
  11689. esac
  11690. ;;
  11691. mingw* | pw32* | os2*)
  11692. # This hack is so that the source file can tell whether it is being
  11693. # built for inclusion in a dll (and should export symbols for example).
  11694. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11695. ;;
  11696. hpux9* | hpux10* | hpux11*)
  11697. lt_prog_compiler_wl_F77='-Wl,'
  11698. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11699. # not for PA HP-UX.
  11700. case $host_cpu in
  11701. hppa*64*|ia64*)
  11702. # +Z the default
  11703. ;;
  11704. *)
  11705. lt_prog_compiler_pic_F77='+Z'
  11706. ;;
  11707. esac
  11708. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11709. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11710. ;;
  11711. irix5* | irix6* | nonstopux*)
  11712. lt_prog_compiler_wl_F77='-Wl,'
  11713. # PIC (with -KPIC) is the default.
  11714. lt_prog_compiler_static_F77='-non_shared'
  11715. ;;
  11716. newsos6)
  11717. lt_prog_compiler_pic_F77='-KPIC'
  11718. lt_prog_compiler_static_F77='-Bstatic'
  11719. ;;
  11720. linux*)
  11721. case $cc_basename in
  11722. icc* | ecc*)
  11723. lt_prog_compiler_wl_F77='-Wl,'
  11724. lt_prog_compiler_pic_F77='-KPIC'
  11725. lt_prog_compiler_static_F77='-static'
  11726. ;;
  11727. pgcc* | pgf77* | pgf90* | pgf95*)
  11728. # Portland Group compilers (*not* the Pentium gcc compiler,
  11729. # which looks to be a dead project)
  11730. lt_prog_compiler_wl_F77='-Wl,'
  11731. lt_prog_compiler_pic_F77='-fpic'
  11732. lt_prog_compiler_static_F77='-Bstatic'
  11733. ;;
  11734. ccc*)
  11735. lt_prog_compiler_wl_F77='-Wl,'
  11736. # All Alpha code is PIC.
  11737. lt_prog_compiler_static_F77='-non_shared'
  11738. ;;
  11739. esac
  11740. ;;
  11741. osf3* | osf4* | osf5*)
  11742. lt_prog_compiler_wl_F77='-Wl,'
  11743. # All OSF/1 code is PIC.
  11744. lt_prog_compiler_static_F77='-non_shared'
  11745. ;;
  11746. solaris*)
  11747. lt_prog_compiler_pic_F77='-KPIC'
  11748. lt_prog_compiler_static_F77='-Bstatic'
  11749. case $cc_basename in
  11750. f77* | f90* | f95*)
  11751. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11752. *)
  11753. lt_prog_compiler_wl_F77='-Wl,';;
  11754. esac
  11755. ;;
  11756. sunos4*)
  11757. lt_prog_compiler_wl_F77='-Qoption ld '
  11758. lt_prog_compiler_pic_F77='-PIC'
  11759. lt_prog_compiler_static_F77='-Bstatic'
  11760. ;;
  11761. sysv4 | sysv4.2uw2* | sysv4.3*)
  11762. lt_prog_compiler_wl_F77='-Wl,'
  11763. lt_prog_compiler_pic_F77='-KPIC'
  11764. lt_prog_compiler_static_F77='-Bstatic'
  11765. ;;
  11766. sysv4*MP*)
  11767. if test -d /usr/nec ;then
  11768. lt_prog_compiler_pic_F77='-Kconform_pic'
  11769. lt_prog_compiler_static_F77='-Bstatic'
  11770. fi
  11771. ;;
  11772. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11773. lt_prog_compiler_wl_F77='-Wl,'
  11774. lt_prog_compiler_pic_F77='-KPIC'
  11775. lt_prog_compiler_static_F77='-Bstatic'
  11776. ;;
  11777. unicos*)
  11778. lt_prog_compiler_wl_F77='-Wl,'
  11779. lt_prog_compiler_can_build_shared_F77=no
  11780. ;;
  11781. uts4*)
  11782. lt_prog_compiler_pic_F77='-pic'
  11783. lt_prog_compiler_static_F77='-Bstatic'
  11784. ;;
  11785. *)
  11786. lt_prog_compiler_can_build_shared_F77=no
  11787. ;;
  11788. esac
  11789. fi
  11790. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11791. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  11792. #
  11793. # Check to make sure the PIC flag actually works.
  11794. #
  11795. if test -n "$lt_prog_compiler_pic_F77"; then
  11796. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11797. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  11798. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11799. echo $ECHO_N "(cached) $ECHO_C" >&6
  11800. else
  11801. lt_prog_compiler_pic_works_F77=no
  11802. ac_outfile=conftest.$ac_objext
  11803. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11804. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11805. # Insert the option either (1) after the last *FLAGS variable, or
  11806. # (2) before a word containing "conftest.", or (3) at the end.
  11807. # Note that $ac_compile itself does not contain backslashes and begins
  11808. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11809. # The option is referenced via a variable to avoid confusing sed.
  11810. lt_compile=`echo "$ac_compile" | $SED \
  11811. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11812. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11813. -e 's:$: $lt_compiler_flag:'`
  11814. (eval echo "\"\$as_me:13202: $lt_compile\"" >&5)
  11815. (eval "$lt_compile" 2>conftest.err)
  11816. ac_status=$?
  11817. cat conftest.err >&5
  11818. echo "$as_me:13206: \$? = $ac_status" >&5
  11819. if (exit $ac_status) && test -s "$ac_outfile"; then
  11820. # The compiler can only warn and ignore the option if not recognized
  11821. # So say no if there are warnings other than the usual output.
  11822. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11823. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11824. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11825. lt_prog_compiler_pic_works_F77=yes
  11826. fi
  11827. fi
  11828. $rm conftest*
  11829. fi
  11830. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  11831. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  11832. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  11833. case $lt_prog_compiler_pic_F77 in
  11834. "" | " "*) ;;
  11835. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  11836. esac
  11837. else
  11838. lt_prog_compiler_pic_F77=
  11839. lt_prog_compiler_can_build_shared_F77=no
  11840. fi
  11841. fi
  11842. case $host_os in
  11843. # For platforms which do not support PIC, -DPIC is meaningless:
  11844. *djgpp*)
  11845. lt_prog_compiler_pic_F77=
  11846. ;;
  11847. *)
  11848. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  11849. ;;
  11850. esac
  11851. #
  11852. # Check to make sure the static flag actually works.
  11853. #
  11854. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  11855. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11856. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11857. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  11858. echo $ECHO_N "(cached) $ECHO_C" >&6
  11859. else
  11860. lt_prog_compiler_static_works_F77=no
  11861. save_LDFLAGS="$LDFLAGS"
  11862. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11863. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  11864. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11865. # The linker can only warn and ignore the option if not recognized
  11866. # So say no if there are warnings
  11867. if test -s conftest.err; then
  11868. # Append any errors to the config.log.
  11869. cat conftest.err 1>&5
  11870. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11871. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11872. if diff conftest.exp conftest.er2 >/dev/null; then
  11873. lt_prog_compiler_static_works_F77=yes
  11874. fi
  11875. else
  11876. lt_prog_compiler_static_works_F77=yes
  11877. fi
  11878. fi
  11879. $rm conftest*
  11880. LDFLAGS="$save_LDFLAGS"
  11881. fi
  11882. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  11883. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  11884. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  11885. :
  11886. else
  11887. lt_prog_compiler_static_F77=
  11888. fi
  11889. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11890. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11891. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  11892. echo $ECHO_N "(cached) $ECHO_C" >&6
  11893. else
  11894. lt_cv_prog_compiler_c_o_F77=no
  11895. $rm -r conftest 2>/dev/null
  11896. mkdir conftest
  11897. cd conftest
  11898. mkdir out
  11899. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11900. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11901. # Insert the option either (1) after the last *FLAGS variable, or
  11902. # (2) before a word containing "conftest.", or (3) at the end.
  11903. # Note that $ac_compile itself does not contain backslashes and begins
  11904. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11905. lt_compile=`echo "$ac_compile" | $SED \
  11906. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11907. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11908. -e 's:$: $lt_compiler_flag:'`
  11909. (eval echo "\"\$as_me:13306: $lt_compile\"" >&5)
  11910. (eval "$lt_compile" 2>out/conftest.err)
  11911. ac_status=$?
  11912. cat out/conftest.err >&5
  11913. echo "$as_me:13310: \$? = $ac_status" >&5
  11914. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11915. then
  11916. # The compiler can only warn and ignore the option if not recognized
  11917. # So say no if there are warnings
  11918. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11919. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11920. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11921. lt_cv_prog_compiler_c_o_F77=yes
  11922. fi
  11923. fi
  11924. chmod u+w . 2>&5
  11925. $rm conftest*
  11926. # SGI C++ compiler will create directory out/ii_files/ for
  11927. # template instantiation
  11928. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11929. $rm out/* && rmdir out
  11930. cd ..
  11931. rmdir conftest
  11932. $rm conftest*
  11933. fi
  11934. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  11935. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  11936. hard_links="nottested"
  11937. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  11938. # do not overwrite the value of need_locks provided by the user
  11939. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11940. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11941. hard_links=yes
  11942. $rm conftest*
  11943. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11944. touch conftest.a
  11945. ln conftest.a conftest.b 2>&5 || hard_links=no
  11946. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11947. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11948. echo "${ECHO_T}$hard_links" >&6; }
  11949. if test "$hard_links" = no; then
  11950. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11951. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11952. need_locks=warn
  11953. fi
  11954. else
  11955. need_locks=no
  11956. fi
  11957. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11958. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11959. runpath_var=
  11960. allow_undefined_flag_F77=
  11961. enable_shared_with_static_runtimes_F77=no
  11962. archive_cmds_F77=
  11963. archive_expsym_cmds_F77=
  11964. old_archive_From_new_cmds_F77=
  11965. old_archive_from_expsyms_cmds_F77=
  11966. export_dynamic_flag_spec_F77=
  11967. whole_archive_flag_spec_F77=
  11968. thread_safe_flag_spec_F77=
  11969. hardcode_libdir_flag_spec_F77=
  11970. hardcode_libdir_flag_spec_ld_F77=
  11971. hardcode_libdir_separator_F77=
  11972. hardcode_direct_F77=no
  11973. hardcode_minus_L_F77=no
  11974. hardcode_shlibpath_var_F77=unsupported
  11975. link_all_deplibs_F77=unknown
  11976. hardcode_automatic_F77=no
  11977. module_cmds_F77=
  11978. module_expsym_cmds_F77=
  11979. always_export_symbols_F77=no
  11980. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11981. # include_expsyms should be a list of space-separated symbols to be *always*
  11982. # included in the symbol list
  11983. include_expsyms_F77=
  11984. # exclude_expsyms can be an extended regexp of symbols to exclude
  11985. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11986. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11987. # as well as any symbol that contains `d'.
  11988. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  11989. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11990. # platforms (ab)use it in PIC code, but their linkers get confused if
  11991. # the symbol is explicitly referenced. Since portable code cannot
  11992. # rely on this symbol name, it's probably fine to never include it in
  11993. # preloaded symbol tables.
  11994. extract_expsyms_cmds=
  11995. # Just being paranoid about ensuring that cc_basename is set.
  11996. for cc_temp in $compiler""; do
  11997. case $cc_temp in
  11998. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11999. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12000. \-*) ;;
  12001. *) break;;
  12002. esac
  12003. done
  12004. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12005. case $host_os in
  12006. cygwin* | mingw* | pw32*)
  12007. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12008. # When not using gcc, we currently assume that we are using
  12009. # Microsoft Visual C++.
  12010. if test "$GCC" != yes; then
  12011. with_gnu_ld=no
  12012. fi
  12013. ;;
  12014. interix*)
  12015. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12016. with_gnu_ld=yes
  12017. ;;
  12018. openbsd*)
  12019. with_gnu_ld=no
  12020. ;;
  12021. esac
  12022. ld_shlibs_F77=yes
  12023. if test "$with_gnu_ld" = yes; then
  12024. # If archive_cmds runs LD, not CC, wlarc should be empty
  12025. wlarc='${wl}'
  12026. # Set some defaults for GNU ld with shared library support. These
  12027. # are reset later if shared libraries are not supported. Putting them
  12028. # here allows them to be overridden if necessary.
  12029. runpath_var=LD_RUN_PATH
  12030. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12031. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12032. # ancient GNU ld didn't support --whole-archive et. al.
  12033. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12034. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12035. else
  12036. whole_archive_flag_spec_F77=
  12037. fi
  12038. supports_anon_versioning=no
  12039. case `$LD -v 2>/dev/null` in
  12040. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12041. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12042. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12043. *\ 2.11.*) ;; # other 2.11 versions
  12044. *) supports_anon_versioning=yes ;;
  12045. esac
  12046. # See if GNU ld supports shared libraries.
  12047. case $host_os in
  12048. aix3* | aix4* | aix5*)
  12049. # On AIX/PPC, the GNU linker is very broken
  12050. if test "$host_cpu" != ia64; then
  12051. ld_shlibs_F77=no
  12052. cat <<EOF 1>&2
  12053. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12054. *** to be unable to reliably create shared libraries on AIX.
  12055. *** Therefore, libtool is disabling shared libraries support. If you
  12056. *** really care for shared libraries, you may want to modify your PATH
  12057. *** so that a non-GNU linker is found, and then restart.
  12058. EOF
  12059. fi
  12060. ;;
  12061. amigaos*)
  12062. 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)'
  12063. hardcode_libdir_flag_spec_F77='-L$libdir'
  12064. hardcode_minus_L_F77=yes
  12065. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12066. # that the semantics of dynamic libraries on AmigaOS, at least up
  12067. # to version 4, is to share data among multiple programs linked
  12068. # with the same dynamic library. Since this doesn't match the
  12069. # behavior of shared libraries on other platforms, we can't use
  12070. # them.
  12071. ld_shlibs_F77=no
  12072. ;;
  12073. beos*)
  12074. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12075. allow_undefined_flag_F77=unsupported
  12076. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12077. # support --undefined. This deserves some investigation. FIXME
  12078. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12079. else
  12080. ld_shlibs_F77=no
  12081. fi
  12082. ;;
  12083. cygwin* | mingw* | pw32*)
  12084. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12085. # as there is no search path for DLLs.
  12086. hardcode_libdir_flag_spec_F77='-L$libdir'
  12087. allow_undefined_flag_F77=unsupported
  12088. always_export_symbols_F77=no
  12089. enable_shared_with_static_runtimes_F77=yes
  12090. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12091. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12092. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12093. # If the export-symbols file already is a .def file (1st line
  12094. # is EXPORTS), use it as is; otherwise, prepend...
  12095. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12096. cp $export_symbols $output_objdir/$soname.def;
  12097. else
  12098. echo EXPORTS > $output_objdir/$soname.def;
  12099. cat $export_symbols >> $output_objdir/$soname.def;
  12100. fi~
  12101. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12102. else
  12103. ld_shlibs_F77=no
  12104. fi
  12105. ;;
  12106. interix3*)
  12107. hardcode_direct_F77=no
  12108. hardcode_shlibpath_var_F77=no
  12109. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12110. export_dynamic_flag_spec_F77='${wl}-E'
  12111. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12112. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12113. # default) and relocated if they conflict, which is a slow very memory
  12114. # consuming and fragmenting process. To avoid this, we pick a random,
  12115. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12116. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12117. 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'
  12118. 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'
  12119. ;;
  12120. linux*)
  12121. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12122. tmp_addflag=
  12123. case $cc_basename,$host_cpu in
  12124. pgcc*) # Portland Group C compiler
  12125. 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'
  12126. tmp_addflag=' $pic_flag'
  12127. ;;
  12128. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12129. 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'
  12130. tmp_addflag=' $pic_flag -Mnomain' ;;
  12131. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12132. tmp_addflag=' -i_dynamic' ;;
  12133. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12134. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12135. ifc* | ifort*) # Intel Fortran compiler
  12136. tmp_addflag=' -nofor_main' ;;
  12137. esac
  12138. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12139. if test $supports_anon_versioning = yes; then
  12140. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12141. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12142. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12143. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12144. fi
  12145. else
  12146. ld_shlibs_F77=no
  12147. fi
  12148. ;;
  12149. netbsd*)
  12150. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12151. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12152. wlarc=
  12153. else
  12154. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12155. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12156. fi
  12157. ;;
  12158. solaris*)
  12159. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12160. ld_shlibs_F77=no
  12161. cat <<EOF 1>&2
  12162. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12163. *** create shared libraries on Solaris systems. Therefore, libtool
  12164. *** is disabling shared libraries support. We urge you to upgrade GNU
  12165. *** binutils to release 2.9.1 or newer. Another option is to modify
  12166. *** your PATH or compiler configuration so that the native linker is
  12167. *** used, and then restart.
  12168. EOF
  12169. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12170. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12171. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12172. else
  12173. ld_shlibs_F77=no
  12174. fi
  12175. ;;
  12176. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12177. case `$LD -v 2>&1` in
  12178. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12179. ld_shlibs_F77=no
  12180. cat <<_LT_EOF 1>&2
  12181. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12182. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12183. *** is disabling shared libraries support. We urge you to upgrade GNU
  12184. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12185. *** your PATH or compiler configuration so that the native linker is
  12186. *** used, and then restart.
  12187. _LT_EOF
  12188. ;;
  12189. *)
  12190. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12191. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12192. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12193. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12194. else
  12195. ld_shlibs_F77=no
  12196. fi
  12197. ;;
  12198. esac
  12199. ;;
  12200. sunos4*)
  12201. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12202. wlarc=
  12203. hardcode_direct_F77=yes
  12204. hardcode_shlibpath_var_F77=no
  12205. ;;
  12206. *)
  12207. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12208. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12209. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12210. else
  12211. ld_shlibs_F77=no
  12212. fi
  12213. ;;
  12214. esac
  12215. if test "$ld_shlibs_F77" = no; then
  12216. runpath_var=
  12217. hardcode_libdir_flag_spec_F77=
  12218. export_dynamic_flag_spec_F77=
  12219. whole_archive_flag_spec_F77=
  12220. fi
  12221. else
  12222. # PORTME fill in a description of your system's linker (not GNU ld)
  12223. case $host_os in
  12224. aix3*)
  12225. allow_undefined_flag_F77=unsupported
  12226. always_export_symbols_F77=yes
  12227. 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'
  12228. # Note: this linker hardcodes the directories in LIBPATH if there
  12229. # are no directories specified by -L.
  12230. hardcode_minus_L_F77=yes
  12231. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12232. # Neither direct hardcoding nor static linking is supported with a
  12233. # broken collect2.
  12234. hardcode_direct_F77=unsupported
  12235. fi
  12236. ;;
  12237. aix4* | aix5*)
  12238. if test "$host_cpu" = ia64; then
  12239. # On IA64, the linker does run time linking by default, so we don't
  12240. # have to do anything special.
  12241. aix_use_runtimelinking=no
  12242. exp_sym_flag='-Bexport'
  12243. no_entry_flag=""
  12244. else
  12245. # If we're using GNU nm, then we don't want the "-C" option.
  12246. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12247. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12248. 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'
  12249. else
  12250. 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'
  12251. fi
  12252. aix_use_runtimelinking=no
  12253. # Test if we are trying to use run time linking or normal
  12254. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12255. # need to do runtime linking.
  12256. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12257. for ld_flag in $LDFLAGS; do
  12258. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12259. aix_use_runtimelinking=yes
  12260. break
  12261. fi
  12262. done
  12263. ;;
  12264. esac
  12265. exp_sym_flag='-bexport'
  12266. no_entry_flag='-bnoentry'
  12267. fi
  12268. # When large executables or shared objects are built, AIX ld can
  12269. # have problems creating the table of contents. If linking a library
  12270. # or program results in "error TOC overflow" add -mminimal-toc to
  12271. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12272. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12273. archive_cmds_F77=''
  12274. hardcode_direct_F77=yes
  12275. hardcode_libdir_separator_F77=':'
  12276. link_all_deplibs_F77=yes
  12277. if test "$GCC" = yes; then
  12278. case $host_os in aix4.[012]|aix4.[012].*)
  12279. # We only want to do this on AIX 4.2 and lower, the check
  12280. # below for broken collect2 doesn't work under 4.3+
  12281. collect2name=`${CC} -print-prog-name=collect2`
  12282. if test -f "$collect2name" && \
  12283. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12284. then
  12285. # We have reworked collect2
  12286. hardcode_direct_F77=yes
  12287. else
  12288. # We have old collect2
  12289. hardcode_direct_F77=unsupported
  12290. # It fails to find uninstalled libraries when the uninstalled
  12291. # path is not listed in the libpath. Setting hardcode_minus_L
  12292. # to unsupported forces relinking
  12293. hardcode_minus_L_F77=yes
  12294. hardcode_libdir_flag_spec_F77='-L$libdir'
  12295. hardcode_libdir_separator_F77=
  12296. fi
  12297. ;;
  12298. esac
  12299. shared_flag='-shared'
  12300. if test "$aix_use_runtimelinking" = yes; then
  12301. shared_flag="$shared_flag "'${wl}-G'
  12302. fi
  12303. else
  12304. # not using gcc
  12305. if test "$host_cpu" = ia64; then
  12306. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12307. # chokes on -Wl,-G. The following line is correct:
  12308. shared_flag='-G'
  12309. else
  12310. if test "$aix_use_runtimelinking" = yes; then
  12311. shared_flag='${wl}-G'
  12312. else
  12313. shared_flag='${wl}-bM:SRE'
  12314. fi
  12315. fi
  12316. fi
  12317. # It seems that -bexpall does not export symbols beginning with
  12318. # underscore (_), so it is better to generate a list of symbols to export.
  12319. always_export_symbols_F77=yes
  12320. if test "$aix_use_runtimelinking" = yes; then
  12321. # Warning - without using the other runtime loading flags (-brtl),
  12322. # -berok will link without error, but may produce a broken library.
  12323. allow_undefined_flag_F77='-berok'
  12324. # Determine the default libpath from the value encoded in an empty executable.
  12325. cat >conftest.$ac_ext <<_ACEOF
  12326. program main
  12327. end
  12328. _ACEOF
  12329. rm -f conftest.$ac_objext conftest$ac_exeext
  12330. if { (ac_try="$ac_link"
  12331. case "(($ac_try" in
  12332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12333. *) ac_try_echo=$ac_try;;
  12334. esac
  12335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12336. (eval "$ac_link") 2>conftest.er1
  12337. ac_status=$?
  12338. grep -v '^ *+' conftest.er1 >conftest.err
  12339. rm -f conftest.er1
  12340. cat conftest.err >&5
  12341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12342. (exit $ac_status); } && {
  12343. test -z "$ac_f77_werror_flag" ||
  12344. test ! -s conftest.err
  12345. } && test -s conftest$ac_exeext &&
  12346. $as_test_x conftest$ac_exeext; then
  12347. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12348. }'`
  12349. # Check for a 64-bit object if we didn't find anything.
  12350. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12351. }'`; fi
  12352. else
  12353. echo "$as_me: failed program was:" >&5
  12354. sed 's/^/| /' conftest.$ac_ext >&5
  12355. fi
  12356. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12357. conftest$ac_exeext conftest.$ac_ext
  12358. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12359. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12360. 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"
  12361. else
  12362. if test "$host_cpu" = ia64; then
  12363. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12364. allow_undefined_flag_F77="-z nodefs"
  12365. 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"
  12366. else
  12367. # Determine the default libpath from the value encoded in an empty executable.
  12368. cat >conftest.$ac_ext <<_ACEOF
  12369. program main
  12370. end
  12371. _ACEOF
  12372. rm -f conftest.$ac_objext conftest$ac_exeext
  12373. if { (ac_try="$ac_link"
  12374. case "(($ac_try" in
  12375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12376. *) ac_try_echo=$ac_try;;
  12377. esac
  12378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12379. (eval "$ac_link") 2>conftest.er1
  12380. ac_status=$?
  12381. grep -v '^ *+' conftest.er1 >conftest.err
  12382. rm -f conftest.er1
  12383. cat conftest.err >&5
  12384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12385. (exit $ac_status); } && {
  12386. test -z "$ac_f77_werror_flag" ||
  12387. test ! -s conftest.err
  12388. } && test -s conftest$ac_exeext &&
  12389. $as_test_x conftest$ac_exeext; then
  12390. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12391. }'`
  12392. # Check for a 64-bit object if we didn't find anything.
  12393. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12394. }'`; fi
  12395. else
  12396. echo "$as_me: failed program was:" >&5
  12397. sed 's/^/| /' conftest.$ac_ext >&5
  12398. fi
  12399. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12400. conftest$ac_exeext conftest.$ac_ext
  12401. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12402. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12403. # Warning - without using the other run time loading flags,
  12404. # -berok will link without error, but may produce a broken library.
  12405. no_undefined_flag_F77=' ${wl}-bernotok'
  12406. allow_undefined_flag_F77=' ${wl}-berok'
  12407. # Exported symbols can be pulled into shared objects from archives
  12408. whole_archive_flag_spec_F77='$convenience'
  12409. archive_cmds_need_lc_F77=yes
  12410. # This is similar to how AIX traditionally builds its shared libraries.
  12411. 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'
  12412. fi
  12413. fi
  12414. ;;
  12415. amigaos*)
  12416. 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)'
  12417. hardcode_libdir_flag_spec_F77='-L$libdir'
  12418. hardcode_minus_L_F77=yes
  12419. # see comment about different semantics on the GNU ld section
  12420. ld_shlibs_F77=no
  12421. ;;
  12422. bsdi[45]*)
  12423. export_dynamic_flag_spec_F77=-rdynamic
  12424. ;;
  12425. cygwin* | mingw* | pw32*)
  12426. # When not using gcc, we currently assume that we are using
  12427. # Microsoft Visual C++.
  12428. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12429. # no search path for DLLs.
  12430. hardcode_libdir_flag_spec_F77=' '
  12431. allow_undefined_flag_F77=unsupported
  12432. # Tell ltmain to make .lib files, not .a files.
  12433. libext=lib
  12434. # Tell ltmain to make .dll files, not .so files.
  12435. shrext_cmds=".dll"
  12436. # FIXME: Setting linknames here is a bad hack.
  12437. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12438. # The linker will automatically build a .lib file if we build a DLL.
  12439. old_archive_From_new_cmds_F77='true'
  12440. # FIXME: Should let the user specify the lib program.
  12441. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12442. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12443. enable_shared_with_static_runtimes_F77=yes
  12444. ;;
  12445. darwin* | rhapsody*)
  12446. case $host_os in
  12447. rhapsody* | darwin1.[012])
  12448. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12449. ;;
  12450. *) # Darwin 1.3 on
  12451. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12452. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12453. else
  12454. case ${MACOSX_DEPLOYMENT_TARGET} in
  12455. 10.[012])
  12456. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12457. ;;
  12458. 10.*)
  12459. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12460. ;;
  12461. esac
  12462. fi
  12463. ;;
  12464. esac
  12465. archive_cmds_need_lc_F77=no
  12466. hardcode_direct_F77=no
  12467. hardcode_automatic_F77=yes
  12468. hardcode_shlibpath_var_F77=unsupported
  12469. whole_archive_flag_spec_F77=''
  12470. link_all_deplibs_F77=yes
  12471. if test "$GCC" = yes ; then
  12472. output_verbose_link_cmd='echo'
  12473. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12474. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12475. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12476. 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}'
  12477. 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}'
  12478. else
  12479. case $cc_basename in
  12480. xlc*)
  12481. output_verbose_link_cmd='echo'
  12482. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12483. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12484. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12485. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12486. 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}'
  12487. ;;
  12488. *)
  12489. ld_shlibs_F77=no
  12490. ;;
  12491. esac
  12492. fi
  12493. ;;
  12494. dgux*)
  12495. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12496. hardcode_libdir_flag_spec_F77='-L$libdir'
  12497. hardcode_shlibpath_var_F77=no
  12498. ;;
  12499. freebsd1*)
  12500. ld_shlibs_F77=no
  12501. ;;
  12502. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12503. # support. Future versions do this automatically, but an explicit c++rt0.o
  12504. # does not break anything, and helps significantly (at the cost of a little
  12505. # extra space).
  12506. freebsd2.2*)
  12507. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12508. hardcode_libdir_flag_spec_F77='-R$libdir'
  12509. hardcode_direct_F77=yes
  12510. hardcode_shlibpath_var_F77=no
  12511. ;;
  12512. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12513. freebsd2*)
  12514. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12515. hardcode_direct_F77=yes
  12516. hardcode_minus_L_F77=yes
  12517. hardcode_shlibpath_var_F77=no
  12518. ;;
  12519. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12520. freebsd* | kfreebsd*-gnu | dragonfly*)
  12521. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12522. hardcode_libdir_flag_spec_F77='-R$libdir'
  12523. hardcode_direct_F77=yes
  12524. hardcode_shlibpath_var_F77=no
  12525. ;;
  12526. hpux9*)
  12527. if test "$GCC" = yes; then
  12528. 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'
  12529. else
  12530. 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'
  12531. fi
  12532. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12533. hardcode_libdir_separator_F77=:
  12534. hardcode_direct_F77=yes
  12535. # hardcode_minus_L: Not really in the search PATH,
  12536. # but as the default location of the library.
  12537. hardcode_minus_L_F77=yes
  12538. export_dynamic_flag_spec_F77='${wl}-E'
  12539. ;;
  12540. hpux10*)
  12541. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12542. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12543. else
  12544. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12545. fi
  12546. if test "$with_gnu_ld" = no; then
  12547. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12548. hardcode_libdir_separator_F77=:
  12549. hardcode_direct_F77=yes
  12550. export_dynamic_flag_spec_F77='${wl}-E'
  12551. # hardcode_minus_L: Not really in the search PATH,
  12552. # but as the default location of the library.
  12553. hardcode_minus_L_F77=yes
  12554. fi
  12555. ;;
  12556. hpux11*)
  12557. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12558. case $host_cpu in
  12559. hppa*64*)
  12560. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12561. ;;
  12562. ia64*)
  12563. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12564. ;;
  12565. *)
  12566. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12567. ;;
  12568. esac
  12569. else
  12570. case $host_cpu in
  12571. hppa*64*)
  12572. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12573. ;;
  12574. ia64*)
  12575. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12576. ;;
  12577. *)
  12578. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12579. ;;
  12580. esac
  12581. fi
  12582. if test "$with_gnu_ld" = no; then
  12583. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12584. hardcode_libdir_separator_F77=:
  12585. case $host_cpu in
  12586. hppa*64*|ia64*)
  12587. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12588. hardcode_direct_F77=no
  12589. hardcode_shlibpath_var_F77=no
  12590. ;;
  12591. *)
  12592. hardcode_direct_F77=yes
  12593. export_dynamic_flag_spec_F77='${wl}-E'
  12594. # hardcode_minus_L: Not really in the search PATH,
  12595. # but as the default location of the library.
  12596. hardcode_minus_L_F77=yes
  12597. ;;
  12598. esac
  12599. fi
  12600. ;;
  12601. irix5* | irix6* | nonstopux*)
  12602. if test "$GCC" = yes; then
  12603. 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'
  12604. else
  12605. 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'
  12606. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12607. fi
  12608. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12609. hardcode_libdir_separator_F77=:
  12610. link_all_deplibs_F77=yes
  12611. ;;
  12612. netbsd*)
  12613. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12614. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12615. else
  12616. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12617. fi
  12618. hardcode_libdir_flag_spec_F77='-R$libdir'
  12619. hardcode_direct_F77=yes
  12620. hardcode_shlibpath_var_F77=no
  12621. ;;
  12622. newsos6)
  12623. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12624. hardcode_direct_F77=yes
  12625. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12626. hardcode_libdir_separator_F77=:
  12627. hardcode_shlibpath_var_F77=no
  12628. ;;
  12629. openbsd*)
  12630. hardcode_direct_F77=yes
  12631. hardcode_shlibpath_var_F77=no
  12632. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12633. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12634. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12635. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12636. export_dynamic_flag_spec_F77='${wl}-E'
  12637. else
  12638. case $host_os in
  12639. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12640. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12641. hardcode_libdir_flag_spec_F77='-R$libdir'
  12642. ;;
  12643. *)
  12644. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12645. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12646. ;;
  12647. esac
  12648. fi
  12649. ;;
  12650. os2*)
  12651. hardcode_libdir_flag_spec_F77='-L$libdir'
  12652. hardcode_minus_L_F77=yes
  12653. allow_undefined_flag_F77=unsupported
  12654. 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'
  12655. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12656. ;;
  12657. osf3*)
  12658. if test "$GCC" = yes; then
  12659. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12660. 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'
  12661. else
  12662. allow_undefined_flag_F77=' -expect_unresolved \*'
  12663. 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'
  12664. fi
  12665. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12666. hardcode_libdir_separator_F77=:
  12667. ;;
  12668. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12669. if test "$GCC" = yes; then
  12670. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12671. 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'
  12672. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12673. else
  12674. allow_undefined_flag_F77=' -expect_unresolved \*'
  12675. 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'
  12676. 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~
  12677. $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'
  12678. # Both c and cxx compiler support -rpath directly
  12679. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12680. fi
  12681. hardcode_libdir_separator_F77=:
  12682. ;;
  12683. solaris*)
  12684. no_undefined_flag_F77=' -z text'
  12685. if test "$GCC" = yes; then
  12686. wlarc='${wl}'
  12687. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12688. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12689. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12690. else
  12691. wlarc=''
  12692. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12693. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12694. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12695. fi
  12696. hardcode_libdir_flag_spec_F77='-R$libdir'
  12697. hardcode_shlibpath_var_F77=no
  12698. case $host_os in
  12699. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12700. *)
  12701. # The compiler driver will combine linker options so we
  12702. # cannot just pass the convience library names through
  12703. # without $wl, iff we do not link with $LD.
  12704. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12705. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12706. case $wlarc in
  12707. '')
  12708. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12709. *)
  12710. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12711. esac ;;
  12712. esac
  12713. link_all_deplibs_F77=yes
  12714. ;;
  12715. sunos4*)
  12716. if test "x$host_vendor" = xsequent; then
  12717. # Use $CC to link under sequent, because it throws in some extra .o
  12718. # files that make .init and .fini sections work.
  12719. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12720. else
  12721. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12722. fi
  12723. hardcode_libdir_flag_spec_F77='-L$libdir'
  12724. hardcode_direct_F77=yes
  12725. hardcode_minus_L_F77=yes
  12726. hardcode_shlibpath_var_F77=no
  12727. ;;
  12728. sysv4)
  12729. case $host_vendor in
  12730. sni)
  12731. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12732. hardcode_direct_F77=yes # is this really true???
  12733. ;;
  12734. siemens)
  12735. ## LD is ld it makes a PLAMLIB
  12736. ## CC just makes a GrossModule.
  12737. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12738. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12739. hardcode_direct_F77=no
  12740. ;;
  12741. motorola)
  12742. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12743. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12744. ;;
  12745. esac
  12746. runpath_var='LD_RUN_PATH'
  12747. hardcode_shlibpath_var_F77=no
  12748. ;;
  12749. sysv4.3*)
  12750. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12751. hardcode_shlibpath_var_F77=no
  12752. export_dynamic_flag_spec_F77='-Bexport'
  12753. ;;
  12754. sysv4*MP*)
  12755. if test -d /usr/nec; then
  12756. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12757. hardcode_shlibpath_var_F77=no
  12758. runpath_var=LD_RUN_PATH
  12759. hardcode_runpath_var=yes
  12760. ld_shlibs_F77=yes
  12761. fi
  12762. ;;
  12763. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  12764. no_undefined_flag_F77='${wl}-z,text'
  12765. archive_cmds_need_lc_F77=no
  12766. hardcode_shlibpath_var_F77=no
  12767. runpath_var='LD_RUN_PATH'
  12768. if test "$GCC" = yes; then
  12769. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12770. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12771. else
  12772. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12773. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12774. fi
  12775. ;;
  12776. sysv5* | sco3.2v5* | sco5v6*)
  12777. # Note: We can NOT use -z defs as we might desire, because we do not
  12778. # link with -lc, and that would cause any symbols used from libc to
  12779. # always be unresolved, which means just about no library would
  12780. # ever link correctly. If we're not using GNU ld we use -z text
  12781. # though, which does catch some bad symbols but isn't as heavy-handed
  12782. # as -z defs.
  12783. no_undefined_flag_F77='${wl}-z,text'
  12784. allow_undefined_flag_F77='${wl}-z,nodefs'
  12785. archive_cmds_need_lc_F77=no
  12786. hardcode_shlibpath_var_F77=no
  12787. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12788. hardcode_libdir_separator_F77=':'
  12789. link_all_deplibs_F77=yes
  12790. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12791. runpath_var='LD_RUN_PATH'
  12792. if test "$GCC" = yes; then
  12793. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12794. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12795. else
  12796. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12797. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12798. fi
  12799. ;;
  12800. uts4*)
  12801. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12802. hardcode_libdir_flag_spec_F77='-L$libdir'
  12803. hardcode_shlibpath_var_F77=no
  12804. ;;
  12805. *)
  12806. ld_shlibs_F77=no
  12807. ;;
  12808. esac
  12809. fi
  12810. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  12811. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  12812. test "$ld_shlibs_F77" = no && can_build_shared=no
  12813. #
  12814. # Do we need to explicitly link libc?
  12815. #
  12816. case "x$archive_cmds_need_lc_F77" in
  12817. x|xyes)
  12818. # Assume -lc should be added
  12819. archive_cmds_need_lc_F77=yes
  12820. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12821. case $archive_cmds_F77 in
  12822. *'~'*)
  12823. # FIXME: we may have to deal with multi-command sequences.
  12824. ;;
  12825. '$CC '*)
  12826. # Test whether the compiler implicitly links with -lc since on some
  12827. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12828. # to ld, don't add -lc before -lgcc.
  12829. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12830. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  12831. $rm conftest*
  12832. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12833. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12834. (eval $ac_compile) 2>&5
  12835. ac_status=$?
  12836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12837. (exit $ac_status); } 2>conftest.err; then
  12838. soname=conftest
  12839. lib=conftest
  12840. libobjs=conftest.$ac_objext
  12841. deplibs=
  12842. wl=$lt_prog_compiler_wl_F77
  12843. pic_flag=$lt_prog_compiler_pic_F77
  12844. compiler_flags=-v
  12845. linker_flags=-v
  12846. verstring=
  12847. output_objdir=.
  12848. libname=conftest
  12849. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  12850. allow_undefined_flag_F77=
  12851. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12852. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12853. ac_status=$?
  12854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12855. (exit $ac_status); }
  12856. then
  12857. archive_cmds_need_lc_F77=no
  12858. else
  12859. archive_cmds_need_lc_F77=yes
  12860. fi
  12861. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  12862. else
  12863. cat conftest.err 1>&5
  12864. fi
  12865. $rm conftest*
  12866. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  12867. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  12868. ;;
  12869. esac
  12870. fi
  12871. ;;
  12872. esac
  12873. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12874. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  12875. library_names_spec=
  12876. libname_spec='lib$name'
  12877. soname_spec=
  12878. shrext_cmds=".so"
  12879. postinstall_cmds=
  12880. postuninstall_cmds=
  12881. finish_cmds=
  12882. finish_eval=
  12883. shlibpath_var=
  12884. shlibpath_overrides_runpath=unknown
  12885. version_type=none
  12886. dynamic_linker="$host_os ld.so"
  12887. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12888. if test "$GCC" = yes; then
  12889. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12890. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  12891. # if the path contains ";" then we assume it to be the separator
  12892. # otherwise default to the standard path separator (i.e. ":") - it is
  12893. # assumed that no part of a normal pathname contains ";" but that should
  12894. # okay in the real world where ";" in dirpaths is itself problematic.
  12895. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12896. else
  12897. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12898. fi
  12899. else
  12900. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12901. fi
  12902. need_lib_prefix=unknown
  12903. hardcode_into_libs=no
  12904. # when you set need_version to no, make sure it does not cause -set_version
  12905. # flags to be left without arguments
  12906. need_version=unknown
  12907. case $host_os in
  12908. aix3*)
  12909. version_type=linux
  12910. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12911. shlibpath_var=LIBPATH
  12912. # AIX 3 has no versioning support, so we append a major version to the name.
  12913. soname_spec='${libname}${release}${shared_ext}$major'
  12914. ;;
  12915. aix4* | aix5*)
  12916. version_type=linux
  12917. need_lib_prefix=no
  12918. need_version=no
  12919. hardcode_into_libs=yes
  12920. if test "$host_cpu" = ia64; then
  12921. # AIX 5 supports IA64
  12922. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12923. shlibpath_var=LD_LIBRARY_PATH
  12924. else
  12925. # With GCC up to 2.95.x, collect2 would create an import file
  12926. # for dependence libraries. The import file would start with
  12927. # the line `#! .'. This would cause the generated library to
  12928. # depend on `.', always an invalid library. This was fixed in
  12929. # development snapshots of GCC prior to 3.0.
  12930. case $host_os in
  12931. aix4 | aix4.[01] | aix4.[01].*)
  12932. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12933. echo ' yes '
  12934. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12935. :
  12936. else
  12937. can_build_shared=no
  12938. fi
  12939. ;;
  12940. esac
  12941. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12942. # soname into executable. Probably we can add versioning support to
  12943. # collect2, so additional links can be useful in future.
  12944. if test "$aix_use_runtimelinking" = yes; then
  12945. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12946. # instead of lib<name>.a to let people know that these are not
  12947. # typical AIX shared libraries.
  12948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12949. else
  12950. # We preserve .a as extension for shared libraries through AIX4.2
  12951. # and later when we are not doing run time linking.
  12952. library_names_spec='${libname}${release}.a $libname.a'
  12953. soname_spec='${libname}${release}${shared_ext}$major'
  12954. fi
  12955. shlibpath_var=LIBPATH
  12956. fi
  12957. ;;
  12958. amigaos*)
  12959. library_names_spec='$libname.ixlibrary $libname.a'
  12960. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12961. 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'
  12962. ;;
  12963. beos*)
  12964. library_names_spec='${libname}${shared_ext}'
  12965. dynamic_linker="$host_os ld.so"
  12966. shlibpath_var=LIBRARY_PATH
  12967. ;;
  12968. bsdi[45]*)
  12969. version_type=linux
  12970. need_version=no
  12971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12972. soname_spec='${libname}${release}${shared_ext}$major'
  12973. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12974. shlibpath_var=LD_LIBRARY_PATH
  12975. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12976. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12977. # the default ld.so.conf also contains /usr/contrib/lib and
  12978. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12979. # libtool to hard-code these into programs
  12980. ;;
  12981. cygwin* | mingw* | pw32*)
  12982. version_type=windows
  12983. shrext_cmds=".dll"
  12984. need_version=no
  12985. need_lib_prefix=no
  12986. case $GCC,$host_os in
  12987. yes,cygwin* | yes,mingw* | yes,pw32*)
  12988. library_names_spec='$libname.dll.a'
  12989. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12990. postinstall_cmds='base_file=`basename \${file}`~
  12991. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12992. dldir=$destdir/`dirname \$dlpath`~
  12993. test -d \$dldir || mkdir -p \$dldir~
  12994. $install_prog $dir/$dlname \$dldir/$dlname~
  12995. chmod a+x \$dldir/$dlname'
  12996. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12997. dlpath=$dir/\$dldll~
  12998. $rm \$dlpath'
  12999. shlibpath_overrides_runpath=yes
  13000. case $host_os in
  13001. cygwin*)
  13002. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13003. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13004. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13005. ;;
  13006. mingw*)
  13007. # MinGW DLLs use traditional 'lib' prefix
  13008. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13009. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13010. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13011. # It is most probably a Windows format PATH printed by
  13012. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13013. # path with ; separators, and with drive letters. We can handle the
  13014. # drive letters (cygwin fileutils understands them), so leave them,
  13015. # especially as we might pass files found there to a mingw objdump,
  13016. # which wouldn't understand a cygwinified path. Ahh.
  13017. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13018. else
  13019. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13020. fi
  13021. ;;
  13022. pw32*)
  13023. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13024. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13025. ;;
  13026. esac
  13027. ;;
  13028. *)
  13029. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13030. ;;
  13031. esac
  13032. dynamic_linker='Win32 ld.exe'
  13033. # FIXME: first we should search . and the directory the executable is in
  13034. shlibpath_var=PATH
  13035. ;;
  13036. darwin* | rhapsody*)
  13037. dynamic_linker="$host_os dyld"
  13038. version_type=darwin
  13039. need_lib_prefix=no
  13040. need_version=no
  13041. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13042. soname_spec='${libname}${release}${major}$shared_ext'
  13043. shlibpath_overrides_runpath=yes
  13044. shlibpath_var=DYLD_LIBRARY_PATH
  13045. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13046. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13047. if test "$GCC" = yes; then
  13048. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  13049. else
  13050. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13051. fi
  13052. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13053. ;;
  13054. dgux*)
  13055. version_type=linux
  13056. need_lib_prefix=no
  13057. need_version=no
  13058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13059. soname_spec='${libname}${release}${shared_ext}$major'
  13060. shlibpath_var=LD_LIBRARY_PATH
  13061. ;;
  13062. freebsd1*)
  13063. dynamic_linker=no
  13064. ;;
  13065. kfreebsd*-gnu)
  13066. version_type=linux
  13067. need_lib_prefix=no
  13068. need_version=no
  13069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13070. soname_spec='${libname}${release}${shared_ext}$major'
  13071. shlibpath_var=LD_LIBRARY_PATH
  13072. shlibpath_overrides_runpath=no
  13073. hardcode_into_libs=yes
  13074. dynamic_linker='GNU ld.so'
  13075. ;;
  13076. freebsd* | dragonfly*)
  13077. # DragonFly does not have aout. When/if they implement a new
  13078. # versioning mechanism, adjust this.
  13079. if test -x /usr/bin/objformat; then
  13080. objformat=`/usr/bin/objformat`
  13081. else
  13082. case $host_os in
  13083. freebsd[123]*) objformat=aout ;;
  13084. *) objformat=elf ;;
  13085. esac
  13086. fi
  13087. version_type=freebsd-$objformat
  13088. case $version_type in
  13089. freebsd-elf*)
  13090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13091. need_version=no
  13092. need_lib_prefix=no
  13093. ;;
  13094. freebsd-*)
  13095. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13096. need_version=yes
  13097. ;;
  13098. esac
  13099. shlibpath_var=LD_LIBRARY_PATH
  13100. case $host_os in
  13101. freebsd2*)
  13102. shlibpath_overrides_runpath=yes
  13103. ;;
  13104. freebsd3.[01]* | freebsdelf3.[01]*)
  13105. shlibpath_overrides_runpath=yes
  13106. hardcode_into_libs=yes
  13107. ;;
  13108. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13109. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13110. shlibpath_overrides_runpath=no
  13111. hardcode_into_libs=yes
  13112. ;;
  13113. freebsd*) # from 4.6 on
  13114. shlibpath_overrides_runpath=yes
  13115. hardcode_into_libs=yes
  13116. ;;
  13117. esac
  13118. ;;
  13119. gnu*)
  13120. version_type=linux
  13121. need_lib_prefix=no
  13122. need_version=no
  13123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13124. soname_spec='${libname}${release}${shared_ext}$major'
  13125. shlibpath_var=LD_LIBRARY_PATH
  13126. hardcode_into_libs=yes
  13127. ;;
  13128. hpux9* | hpux10* | hpux11*)
  13129. # Give a soname corresponding to the major version so that dld.sl refuses to
  13130. # link against other versions.
  13131. version_type=sunos
  13132. need_lib_prefix=no
  13133. need_version=no
  13134. case $host_cpu in
  13135. ia64*)
  13136. shrext_cmds='.so'
  13137. hardcode_into_libs=yes
  13138. dynamic_linker="$host_os dld.so"
  13139. shlibpath_var=LD_LIBRARY_PATH
  13140. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13142. soname_spec='${libname}${release}${shared_ext}$major'
  13143. if test "X$HPUX_IA64_MODE" = X32; then
  13144. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13145. else
  13146. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13147. fi
  13148. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13149. ;;
  13150. hppa*64*)
  13151. shrext_cmds='.sl'
  13152. hardcode_into_libs=yes
  13153. dynamic_linker="$host_os dld.sl"
  13154. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13155. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13157. soname_spec='${libname}${release}${shared_ext}$major'
  13158. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13159. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13160. ;;
  13161. *)
  13162. shrext_cmds='.sl'
  13163. dynamic_linker="$host_os dld.sl"
  13164. shlibpath_var=SHLIB_PATH
  13165. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13167. soname_spec='${libname}${release}${shared_ext}$major'
  13168. ;;
  13169. esac
  13170. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13171. postinstall_cmds='chmod 555 $lib'
  13172. ;;
  13173. interix3*)
  13174. version_type=linux
  13175. need_lib_prefix=no
  13176. need_version=no
  13177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13178. soname_spec='${libname}${release}${shared_ext}$major'
  13179. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13180. shlibpath_var=LD_LIBRARY_PATH
  13181. shlibpath_overrides_runpath=no
  13182. hardcode_into_libs=yes
  13183. ;;
  13184. irix5* | irix6* | nonstopux*)
  13185. case $host_os in
  13186. nonstopux*) version_type=nonstopux ;;
  13187. *)
  13188. if test "$lt_cv_prog_gnu_ld" = yes; then
  13189. version_type=linux
  13190. else
  13191. version_type=irix
  13192. fi ;;
  13193. esac
  13194. need_lib_prefix=no
  13195. need_version=no
  13196. soname_spec='${libname}${release}${shared_ext}$major'
  13197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13198. case $host_os in
  13199. irix5* | nonstopux*)
  13200. libsuff= shlibsuff=
  13201. ;;
  13202. *)
  13203. case $LD in # libtool.m4 will add one of these switches to LD
  13204. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13205. libsuff= shlibsuff= libmagic=32-bit;;
  13206. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13207. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13208. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13209. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13210. *) libsuff= shlibsuff= libmagic=never-match;;
  13211. esac
  13212. ;;
  13213. esac
  13214. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13215. shlibpath_overrides_runpath=no
  13216. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13217. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13218. hardcode_into_libs=yes
  13219. ;;
  13220. # No shared lib support for Linux oldld, aout, or coff.
  13221. linux*oldld* | linux*aout* | linux*coff*)
  13222. dynamic_linker=no
  13223. ;;
  13224. # This must be Linux ELF.
  13225. linux*)
  13226. version_type=linux
  13227. need_lib_prefix=no
  13228. need_version=no
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13230. soname_spec='${libname}${release}${shared_ext}$major'
  13231. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. shlibpath_overrides_runpath=no
  13234. # This implies no fast_install, which is unacceptable.
  13235. # Some rework will be needed to allow for fast_install
  13236. # before this can be enabled.
  13237. hardcode_into_libs=yes
  13238. # Append ld.so.conf contents to the search path
  13239. if test -f /etc/ld.so.conf; then
  13240. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13241. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13242. fi
  13243. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13244. # powerpc, because MkLinux only supported shared libraries with the
  13245. # GNU dynamic linker. Since this was broken with cross compilers,
  13246. # most powerpc-linux boxes support dynamic linking these days and
  13247. # people can always --disable-shared, the test was removed, and we
  13248. # assume the GNU/Linux dynamic linker is in use.
  13249. dynamic_linker='GNU/Linux ld.so'
  13250. ;;
  13251. knetbsd*-gnu)
  13252. version_type=linux
  13253. need_lib_prefix=no
  13254. need_version=no
  13255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13256. soname_spec='${libname}${release}${shared_ext}$major'
  13257. shlibpath_var=LD_LIBRARY_PATH
  13258. shlibpath_overrides_runpath=no
  13259. hardcode_into_libs=yes
  13260. dynamic_linker='GNU ld.so'
  13261. ;;
  13262. netbsd*)
  13263. version_type=sunos
  13264. need_lib_prefix=no
  13265. need_version=no
  13266. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13268. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13269. dynamic_linker='NetBSD (a.out) ld.so'
  13270. else
  13271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13272. soname_spec='${libname}${release}${shared_ext}$major'
  13273. dynamic_linker='NetBSD ld.elf_so'
  13274. fi
  13275. shlibpath_var=LD_LIBRARY_PATH
  13276. shlibpath_overrides_runpath=yes
  13277. hardcode_into_libs=yes
  13278. ;;
  13279. newsos6)
  13280. version_type=linux
  13281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13282. shlibpath_var=LD_LIBRARY_PATH
  13283. shlibpath_overrides_runpath=yes
  13284. ;;
  13285. nto-qnx*)
  13286. version_type=linux
  13287. need_lib_prefix=no
  13288. need_version=no
  13289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13290. soname_spec='${libname}${release}${shared_ext}$major'
  13291. shlibpath_var=LD_LIBRARY_PATH
  13292. shlibpath_overrides_runpath=yes
  13293. ;;
  13294. openbsd*)
  13295. version_type=sunos
  13296. sys_lib_dlsearch_path_spec="/usr/lib"
  13297. need_lib_prefix=no
  13298. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13299. case $host_os in
  13300. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13301. *) need_version=no ;;
  13302. esac
  13303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13304. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13305. shlibpath_var=LD_LIBRARY_PATH
  13306. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13307. case $host_os in
  13308. openbsd2.[89] | openbsd2.[89].*)
  13309. shlibpath_overrides_runpath=no
  13310. ;;
  13311. *)
  13312. shlibpath_overrides_runpath=yes
  13313. ;;
  13314. esac
  13315. else
  13316. shlibpath_overrides_runpath=yes
  13317. fi
  13318. ;;
  13319. os2*)
  13320. libname_spec='$name'
  13321. shrext_cmds=".dll"
  13322. need_lib_prefix=no
  13323. library_names_spec='$libname${shared_ext} $libname.a'
  13324. dynamic_linker='OS/2 ld.exe'
  13325. shlibpath_var=LIBPATH
  13326. ;;
  13327. osf3* | osf4* | osf5*)
  13328. version_type=osf
  13329. need_lib_prefix=no
  13330. need_version=no
  13331. soname_spec='${libname}${release}${shared_ext}$major'
  13332. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13333. shlibpath_var=LD_LIBRARY_PATH
  13334. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13335. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13336. ;;
  13337. solaris*)
  13338. version_type=linux
  13339. need_lib_prefix=no
  13340. need_version=no
  13341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13342. soname_spec='${libname}${release}${shared_ext}$major'
  13343. shlibpath_var=LD_LIBRARY_PATH
  13344. shlibpath_overrides_runpath=yes
  13345. hardcode_into_libs=yes
  13346. # ldd complains unless libraries are executable
  13347. postinstall_cmds='chmod +x $lib'
  13348. ;;
  13349. sunos4*)
  13350. version_type=sunos
  13351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13352. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13353. shlibpath_var=LD_LIBRARY_PATH
  13354. shlibpath_overrides_runpath=yes
  13355. if test "$with_gnu_ld" = yes; then
  13356. need_lib_prefix=no
  13357. fi
  13358. need_version=yes
  13359. ;;
  13360. sysv4 | sysv4.3*)
  13361. version_type=linux
  13362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13363. soname_spec='${libname}${release}${shared_ext}$major'
  13364. shlibpath_var=LD_LIBRARY_PATH
  13365. case $host_vendor in
  13366. sni)
  13367. shlibpath_overrides_runpath=no
  13368. need_lib_prefix=no
  13369. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13370. runpath_var=LD_RUN_PATH
  13371. ;;
  13372. siemens)
  13373. need_lib_prefix=no
  13374. ;;
  13375. motorola)
  13376. need_lib_prefix=no
  13377. need_version=no
  13378. shlibpath_overrides_runpath=no
  13379. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13380. ;;
  13381. esac
  13382. ;;
  13383. sysv4*MP*)
  13384. if test -d /usr/nec ;then
  13385. version_type=linux
  13386. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13387. soname_spec='$libname${shared_ext}.$major'
  13388. shlibpath_var=LD_LIBRARY_PATH
  13389. fi
  13390. ;;
  13391. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13392. version_type=freebsd-elf
  13393. need_lib_prefix=no
  13394. need_version=no
  13395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13396. soname_spec='${libname}${release}${shared_ext}$major'
  13397. shlibpath_var=LD_LIBRARY_PATH
  13398. hardcode_into_libs=yes
  13399. if test "$with_gnu_ld" = yes; then
  13400. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13401. shlibpath_overrides_runpath=no
  13402. else
  13403. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13404. shlibpath_overrides_runpath=yes
  13405. case $host_os in
  13406. sco3.2v5*)
  13407. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13408. ;;
  13409. esac
  13410. fi
  13411. sys_lib_dlsearch_path_spec='/usr/lib'
  13412. ;;
  13413. uts4*)
  13414. version_type=linux
  13415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13416. soname_spec='${libname}${release}${shared_ext}$major'
  13417. shlibpath_var=LD_LIBRARY_PATH
  13418. ;;
  13419. *)
  13420. dynamic_linker=no
  13421. ;;
  13422. esac
  13423. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13424. echo "${ECHO_T}$dynamic_linker" >&6; }
  13425. test "$dynamic_linker" = no && can_build_shared=no
  13426. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13427. if test "$GCC" = yes; then
  13428. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13429. fi
  13430. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13431. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  13432. hardcode_action_F77=
  13433. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13434. test -n "$runpath_var_F77" || \
  13435. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13436. # We can hardcode non-existant directories.
  13437. if test "$hardcode_direct_F77" != no &&
  13438. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13439. # have to relink, otherwise we might link with an installed library
  13440. # when we should be linking with a yet-to-be-installed one
  13441. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13442. test "$hardcode_minus_L_F77" != no; then
  13443. # Linking always hardcodes the temporary library directory.
  13444. hardcode_action_F77=relink
  13445. else
  13446. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13447. hardcode_action_F77=immediate
  13448. fi
  13449. else
  13450. # We cannot hardcode anything, or else we can only hardcode existing
  13451. # directories.
  13452. hardcode_action_F77=unsupported
  13453. fi
  13454. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13455. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  13456. if test "$hardcode_action_F77" = relink; then
  13457. # Fast installation is not supported
  13458. enable_fast_install=no
  13459. elif test "$shlibpath_overrides_runpath" = yes ||
  13460. test "$enable_shared" = no; then
  13461. # Fast installation is not necessary
  13462. enable_fast_install=needless
  13463. fi
  13464. # The else clause should only fire when bootstrapping the
  13465. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13466. # with your package, and you will get complaints that there are
  13467. # no rules to generate ltmain.sh.
  13468. if test -f "$ltmain"; then
  13469. # See if we are running on zsh, and set the options which allow our commands through
  13470. # without removal of \ escapes.
  13471. if test -n "${ZSH_VERSION+set}" ; then
  13472. setopt NO_GLOB_SUBST
  13473. fi
  13474. # Now quote all the things that may contain metacharacters while being
  13475. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13476. # variables and quote the copies for generation of the libtool script.
  13477. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13478. SED SHELL STRIP \
  13479. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13480. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13481. deplibs_check_method reload_flag reload_cmds need_locks \
  13482. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13483. lt_cv_sys_global_symbol_to_c_name_address \
  13484. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13485. old_postinstall_cmds old_postuninstall_cmds \
  13486. compiler_F77 \
  13487. CC_F77 \
  13488. LD_F77 \
  13489. lt_prog_compiler_wl_F77 \
  13490. lt_prog_compiler_pic_F77 \
  13491. lt_prog_compiler_static_F77 \
  13492. lt_prog_compiler_no_builtin_flag_F77 \
  13493. export_dynamic_flag_spec_F77 \
  13494. thread_safe_flag_spec_F77 \
  13495. whole_archive_flag_spec_F77 \
  13496. enable_shared_with_static_runtimes_F77 \
  13497. old_archive_cmds_F77 \
  13498. old_archive_from_new_cmds_F77 \
  13499. predep_objects_F77 \
  13500. postdep_objects_F77 \
  13501. predeps_F77 \
  13502. postdeps_F77 \
  13503. compiler_lib_search_path_F77 \
  13504. archive_cmds_F77 \
  13505. archive_expsym_cmds_F77 \
  13506. postinstall_cmds_F77 \
  13507. postuninstall_cmds_F77 \
  13508. old_archive_from_expsyms_cmds_F77 \
  13509. allow_undefined_flag_F77 \
  13510. no_undefined_flag_F77 \
  13511. export_symbols_cmds_F77 \
  13512. hardcode_libdir_flag_spec_F77 \
  13513. hardcode_libdir_flag_spec_ld_F77 \
  13514. hardcode_libdir_separator_F77 \
  13515. hardcode_automatic_F77 \
  13516. module_cmds_F77 \
  13517. module_expsym_cmds_F77 \
  13518. lt_cv_prog_compiler_c_o_F77 \
  13519. exclude_expsyms_F77 \
  13520. include_expsyms_F77; do
  13521. case $var in
  13522. old_archive_cmds_F77 | \
  13523. old_archive_from_new_cmds_F77 | \
  13524. archive_cmds_F77 | \
  13525. archive_expsym_cmds_F77 | \
  13526. module_cmds_F77 | \
  13527. module_expsym_cmds_F77 | \
  13528. old_archive_from_expsyms_cmds_F77 | \
  13529. export_symbols_cmds_F77 | \
  13530. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13531. postinstall_cmds | postuninstall_cmds | \
  13532. old_postinstall_cmds | old_postuninstall_cmds | \
  13533. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13534. # Double-quote double-evaled strings.
  13535. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13536. ;;
  13537. *)
  13538. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13539. ;;
  13540. esac
  13541. done
  13542. case $lt_echo in
  13543. *'\$0 --fallback-echo"')
  13544. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13545. ;;
  13546. esac
  13547. cfgfile="$ofile"
  13548. cat <<__EOF__ >> "$cfgfile"
  13549. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13550. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13551. # Shell to use when invoking shell scripts.
  13552. SHELL=$lt_SHELL
  13553. # Whether or not to build shared libraries.
  13554. build_libtool_libs=$enable_shared
  13555. # Whether or not to build static libraries.
  13556. build_old_libs=$enable_static
  13557. # Whether or not to add -lc for building shared libraries.
  13558. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13559. # Whether or not to disallow shared libs when runtime libs are static
  13560. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13561. # Whether or not to optimize for fast installation.
  13562. fast_install=$enable_fast_install
  13563. # The host system.
  13564. host_alias=$host_alias
  13565. host=$host
  13566. host_os=$host_os
  13567. # The build system.
  13568. build_alias=$build_alias
  13569. build=$build
  13570. build_os=$build_os
  13571. # An echo program that does not interpret backslashes.
  13572. echo=$lt_echo
  13573. # The archiver.
  13574. AR=$lt_AR
  13575. AR_FLAGS=$lt_AR_FLAGS
  13576. # A C compiler.
  13577. LTCC=$lt_LTCC
  13578. # LTCC compiler flags.
  13579. LTCFLAGS=$lt_LTCFLAGS
  13580. # A language-specific compiler.
  13581. CC=$lt_compiler_F77
  13582. # Is the compiler the GNU C compiler?
  13583. with_gcc=$GCC_F77
  13584. # An ERE matcher.
  13585. EGREP=$lt_EGREP
  13586. # The linker used to build libraries.
  13587. LD=$lt_LD_F77
  13588. # Whether we need hard or soft links.
  13589. LN_S=$lt_LN_S
  13590. # A BSD-compatible nm program.
  13591. NM=$lt_NM
  13592. # A symbol stripping program
  13593. STRIP=$lt_STRIP
  13594. # Used to examine libraries when file_magic_cmd begins "file"
  13595. MAGIC_CMD=$MAGIC_CMD
  13596. # Used on cygwin: DLL creation program.
  13597. DLLTOOL="$DLLTOOL"
  13598. # Used on cygwin: object dumper.
  13599. OBJDUMP="$OBJDUMP"
  13600. # Used on cygwin: assembler.
  13601. AS="$AS"
  13602. # The name of the directory that contains temporary libtool files.
  13603. objdir=$objdir
  13604. # How to create reloadable object files.
  13605. reload_flag=$lt_reload_flag
  13606. reload_cmds=$lt_reload_cmds
  13607. # How to pass a linker flag through the compiler.
  13608. wl=$lt_lt_prog_compiler_wl_F77
  13609. # Object file suffix (normally "o").
  13610. objext="$ac_objext"
  13611. # Old archive suffix (normally "a").
  13612. libext="$libext"
  13613. # Shared library suffix (normally ".so").
  13614. shrext_cmds='$shrext_cmds'
  13615. # Executable file suffix (normally "").
  13616. exeext="$exeext"
  13617. # Additional compiler flags for building library objects.
  13618. pic_flag=$lt_lt_prog_compiler_pic_F77
  13619. pic_mode=$pic_mode
  13620. # What is the maximum length of a command?
  13621. max_cmd_len=$lt_cv_sys_max_cmd_len
  13622. # Does compiler simultaneously support -c and -o options?
  13623. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13624. # Must we lock files when doing compilation?
  13625. need_locks=$lt_need_locks
  13626. # Do we need the lib prefix for modules?
  13627. need_lib_prefix=$need_lib_prefix
  13628. # Do we need a version for libraries?
  13629. need_version=$need_version
  13630. # Whether dlopen is supported.
  13631. dlopen_support=$enable_dlopen
  13632. # Whether dlopen of programs is supported.
  13633. dlopen_self=$enable_dlopen_self
  13634. # Whether dlopen of statically linked programs is supported.
  13635. dlopen_self_static=$enable_dlopen_self_static
  13636. # Compiler flag to prevent dynamic linking.
  13637. link_static_flag=$lt_lt_prog_compiler_static_F77
  13638. # Compiler flag to turn off builtin functions.
  13639. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13640. # Compiler flag to allow reflexive dlopens.
  13641. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13642. # Compiler flag to generate shared objects directly from archives.
  13643. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13644. # Compiler flag to generate thread-safe objects.
  13645. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13646. # Library versioning type.
  13647. version_type=$version_type
  13648. # Format of library name prefix.
  13649. libname_spec=$lt_libname_spec
  13650. # List of archive names. First name is the real one, the rest are links.
  13651. # The last name is the one that the linker finds with -lNAME.
  13652. library_names_spec=$lt_library_names_spec
  13653. # The coded name of the library, if different from the real name.
  13654. soname_spec=$lt_soname_spec
  13655. # Commands used to build and install an old-style archive.
  13656. RANLIB=$lt_RANLIB
  13657. old_archive_cmds=$lt_old_archive_cmds_F77
  13658. old_postinstall_cmds=$lt_old_postinstall_cmds
  13659. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13660. # Create an old-style archive from a shared archive.
  13661. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13662. # Create a temporary old-style archive to link instead of a shared archive.
  13663. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13664. # Commands used to build and install a shared archive.
  13665. archive_cmds=$lt_archive_cmds_F77
  13666. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13667. postinstall_cmds=$lt_postinstall_cmds
  13668. postuninstall_cmds=$lt_postuninstall_cmds
  13669. # Commands used to build a loadable module (assumed same as above if empty)
  13670. module_cmds=$lt_module_cmds_F77
  13671. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13672. # Commands to strip libraries.
  13673. old_striplib=$lt_old_striplib
  13674. striplib=$lt_striplib
  13675. # Dependencies to place before the objects being linked to create a
  13676. # shared library.
  13677. predep_objects=$lt_predep_objects_F77
  13678. # Dependencies to place after the objects being linked to create a
  13679. # shared library.
  13680. postdep_objects=$lt_postdep_objects_F77
  13681. # Dependencies to place before the objects being linked to create a
  13682. # shared library.
  13683. predeps=$lt_predeps_F77
  13684. # Dependencies to place after the objects being linked to create a
  13685. # shared library.
  13686. postdeps=$lt_postdeps_F77
  13687. # The library search path used internally by the compiler when linking
  13688. # a shared library.
  13689. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13690. # Method to check whether dependent libraries are shared objects.
  13691. deplibs_check_method=$lt_deplibs_check_method
  13692. # Command to use when deplibs_check_method == file_magic.
  13693. file_magic_cmd=$lt_file_magic_cmd
  13694. # Flag that allows shared libraries with undefined symbols to be built.
  13695. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13696. # Flag that forces no undefined symbols.
  13697. no_undefined_flag=$lt_no_undefined_flag_F77
  13698. # Commands used to finish a libtool library installation in a directory.
  13699. finish_cmds=$lt_finish_cmds
  13700. # Same as above, but a single script fragment to be evaled but not shown.
  13701. finish_eval=$lt_finish_eval
  13702. # Take the output of nm and produce a listing of raw symbols and C names.
  13703. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13704. # Transform the output of nm in a proper C declaration
  13705. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13706. # Transform the output of nm in a C name address pair
  13707. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13708. # This is the shared library runtime path variable.
  13709. runpath_var=$runpath_var
  13710. # This is the shared library path variable.
  13711. shlibpath_var=$shlibpath_var
  13712. # Is shlibpath searched before the hard-coded library search path?
  13713. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13714. # How to hardcode a shared library path into an executable.
  13715. hardcode_action=$hardcode_action_F77
  13716. # Whether we should hardcode library paths into libraries.
  13717. hardcode_into_libs=$hardcode_into_libs
  13718. # Flag to hardcode \$libdir into a binary during linking.
  13719. # This must work even if \$libdir does not exist.
  13720. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13721. # If ld is used when linking, flag to hardcode \$libdir into
  13722. # a binary during linking. This must work even if \$libdir does
  13723. # not exist.
  13724. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13725. # Whether we need a single -rpath flag with a separated argument.
  13726. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13727. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13728. # resulting binary.
  13729. hardcode_direct=$hardcode_direct_F77
  13730. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13731. # resulting binary.
  13732. hardcode_minus_L=$hardcode_minus_L_F77
  13733. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13734. # the resulting binary.
  13735. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13736. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13737. # and all subsequent libraries and executables linked against it.
  13738. hardcode_automatic=$hardcode_automatic_F77
  13739. # Variables whose values should be saved in libtool wrapper scripts and
  13740. # restored at relink time.
  13741. variables_saved_for_relink="$variables_saved_for_relink"
  13742. # Whether libtool must link a program against all its dependency libraries.
  13743. link_all_deplibs=$link_all_deplibs_F77
  13744. # Compile-time system search path for libraries
  13745. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13746. # Run-time system search path for libraries
  13747. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13748. # Fix the shell variable \$srcfile for the compiler.
  13749. fix_srcfile_path="$fix_srcfile_path_F77"
  13750. # Set to yes if exported symbols are required.
  13751. always_export_symbols=$always_export_symbols_F77
  13752. # The commands to list exported symbols.
  13753. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13754. # The commands to extract the exported symbol list from a shared archive.
  13755. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13756. # Symbols that should not be listed in the preloaded symbols.
  13757. exclude_expsyms=$lt_exclude_expsyms_F77
  13758. # Symbols that must always be exported.
  13759. include_expsyms=$lt_include_expsyms_F77
  13760. # ### END LIBTOOL TAG CONFIG: $tagname
  13761. __EOF__
  13762. else
  13763. # If there is no Makefile yet, we rely on a make rule to execute
  13764. # `config.status --recheck' to rerun these tests and create the
  13765. # libtool script then.
  13766. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13767. if test -f "$ltmain_in"; then
  13768. test -f Makefile && make "$ltmain"
  13769. fi
  13770. fi
  13771. ac_ext=c
  13772. ac_cpp='$CPP $CPPFLAGS'
  13773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13776. CC="$lt_save_CC"
  13777. else
  13778. tagname=""
  13779. fi
  13780. ;;
  13781. GCJ)
  13782. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13783. # Source file extension for Java test sources.
  13784. ac_ext=java
  13785. # Object file extension for compiled Java test sources.
  13786. objext=o
  13787. objext_GCJ=$objext
  13788. # Code to be used in simple compile tests
  13789. lt_simple_compile_test_code="class foo {}\n"
  13790. # Code to be used in simple link tests
  13791. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  13792. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13793. # If no C compiler was specified, use CC.
  13794. LTCC=${LTCC-"$CC"}
  13795. # If no C compiler flags were specified, use CFLAGS.
  13796. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13797. # Allow CC to be a program name with arguments.
  13798. compiler=$CC
  13799. # save warnings/boilerplate of simple test code
  13800. ac_outfile=conftest.$ac_objext
  13801. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13802. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13803. _lt_compiler_boilerplate=`cat conftest.err`
  13804. $rm conftest*
  13805. ac_outfile=conftest.$ac_objext
  13806. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13807. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13808. _lt_linker_boilerplate=`cat conftest.err`
  13809. $rm conftest*
  13810. # Allow CC to be a program name with arguments.
  13811. lt_save_CC="$CC"
  13812. CC=${GCJ-"gcj"}
  13813. compiler=$CC
  13814. compiler_GCJ=$CC
  13815. for cc_temp in $compiler""; do
  13816. case $cc_temp in
  13817. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13818. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13819. \-*) ;;
  13820. *) break;;
  13821. esac
  13822. done
  13823. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13824. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  13825. archive_cmds_need_lc_GCJ=no
  13826. old_archive_cmds_GCJ=$old_archive_cmds
  13827. lt_prog_compiler_no_builtin_flag_GCJ=
  13828. if test "$GCC" = yes; then
  13829. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  13830. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13831. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  13832. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13833. echo $ECHO_N "(cached) $ECHO_C" >&6
  13834. else
  13835. lt_cv_prog_compiler_rtti_exceptions=no
  13836. ac_outfile=conftest.$ac_objext
  13837. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13838. lt_compiler_flag="-fno-rtti -fno-exceptions"
  13839. # Insert the option either (1) after the last *FLAGS variable, or
  13840. # (2) before a word containing "conftest.", or (3) at the end.
  13841. # Note that $ac_compile itself does not contain backslashes and begins
  13842. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13843. # The option is referenced via a variable to avoid confusing sed.
  13844. lt_compile=`echo "$ac_compile" | $SED \
  13845. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13846. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13847. -e 's:$: $lt_compiler_flag:'`
  13848. (eval echo "\"\$as_me:15504: $lt_compile\"" >&5)
  13849. (eval "$lt_compile" 2>conftest.err)
  13850. ac_status=$?
  13851. cat conftest.err >&5
  13852. echo "$as_me:15508: \$? = $ac_status" >&5
  13853. if (exit $ac_status) && test -s "$ac_outfile"; then
  13854. # The compiler can only warn and ignore the option if not recognized
  13855. # So say no if there are warnings other than the usual output.
  13856. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13857. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13858. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13859. lt_cv_prog_compiler_rtti_exceptions=yes
  13860. fi
  13861. fi
  13862. $rm conftest*
  13863. fi
  13864. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13865. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  13866. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13867. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  13868. else
  13869. :
  13870. fi
  13871. fi
  13872. lt_prog_compiler_wl_GCJ=
  13873. lt_prog_compiler_pic_GCJ=
  13874. lt_prog_compiler_static_GCJ=
  13875. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13876. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  13877. if test "$GCC" = yes; then
  13878. lt_prog_compiler_wl_GCJ='-Wl,'
  13879. lt_prog_compiler_static_GCJ='-static'
  13880. case $host_os in
  13881. aix*)
  13882. # All AIX code is PIC.
  13883. if test "$host_cpu" = ia64; then
  13884. # AIX 5 now supports IA64 processor
  13885. lt_prog_compiler_static_GCJ='-Bstatic'
  13886. fi
  13887. ;;
  13888. amigaos*)
  13889. # FIXME: we need at least 68020 code to build shared libraries, but
  13890. # adding the `-m68020' flag to GCC prevents building anything better,
  13891. # like `-m68040'.
  13892. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  13893. ;;
  13894. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13895. # PIC is the default for these OSes.
  13896. ;;
  13897. mingw* | pw32* | os2*)
  13898. # This hack is so that the source file can tell whether it is being
  13899. # built for inclusion in a dll (and should export symbols for example).
  13900. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13901. ;;
  13902. darwin* | rhapsody*)
  13903. # PIC is the default on this platform
  13904. # Common symbols not allowed in MH_DYLIB files
  13905. lt_prog_compiler_pic_GCJ='-fno-common'
  13906. ;;
  13907. interix3*)
  13908. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13909. # Instead, we relocate shared libraries at runtime.
  13910. ;;
  13911. msdosdjgpp*)
  13912. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13913. # on systems that don't support them.
  13914. lt_prog_compiler_can_build_shared_GCJ=no
  13915. enable_shared=no
  13916. ;;
  13917. sysv4*MP*)
  13918. if test -d /usr/nec; then
  13919. lt_prog_compiler_pic_GCJ=-Kconform_pic
  13920. fi
  13921. ;;
  13922. hpux*)
  13923. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13924. # not for PA HP-UX.
  13925. case $host_cpu in
  13926. hppa*64*|ia64*)
  13927. # +Z the default
  13928. ;;
  13929. *)
  13930. lt_prog_compiler_pic_GCJ='-fPIC'
  13931. ;;
  13932. esac
  13933. ;;
  13934. *)
  13935. lt_prog_compiler_pic_GCJ='-fPIC'
  13936. ;;
  13937. esac
  13938. else
  13939. # PORTME Check for flag to pass linker flags through the system compiler.
  13940. case $host_os in
  13941. aix*)
  13942. lt_prog_compiler_wl_GCJ='-Wl,'
  13943. if test "$host_cpu" = ia64; then
  13944. # AIX 5 now supports IA64 processor
  13945. lt_prog_compiler_static_GCJ='-Bstatic'
  13946. else
  13947. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  13948. fi
  13949. ;;
  13950. darwin*)
  13951. # PIC is the default on this platform
  13952. # Common symbols not allowed in MH_DYLIB files
  13953. case $cc_basename in
  13954. xlc*)
  13955. lt_prog_compiler_pic_GCJ='-qnocommon'
  13956. lt_prog_compiler_wl_GCJ='-Wl,'
  13957. ;;
  13958. esac
  13959. ;;
  13960. mingw* | pw32* | os2*)
  13961. # This hack is so that the source file can tell whether it is being
  13962. # built for inclusion in a dll (and should export symbols for example).
  13963. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13964. ;;
  13965. hpux9* | hpux10* | hpux11*)
  13966. lt_prog_compiler_wl_GCJ='-Wl,'
  13967. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13968. # not for PA HP-UX.
  13969. case $host_cpu in
  13970. hppa*64*|ia64*)
  13971. # +Z the default
  13972. ;;
  13973. *)
  13974. lt_prog_compiler_pic_GCJ='+Z'
  13975. ;;
  13976. esac
  13977. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13978. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  13979. ;;
  13980. irix5* | irix6* | nonstopux*)
  13981. lt_prog_compiler_wl_GCJ='-Wl,'
  13982. # PIC (with -KPIC) is the default.
  13983. lt_prog_compiler_static_GCJ='-non_shared'
  13984. ;;
  13985. newsos6)
  13986. lt_prog_compiler_pic_GCJ='-KPIC'
  13987. lt_prog_compiler_static_GCJ='-Bstatic'
  13988. ;;
  13989. linux*)
  13990. case $cc_basename in
  13991. icc* | ecc*)
  13992. lt_prog_compiler_wl_GCJ='-Wl,'
  13993. lt_prog_compiler_pic_GCJ='-KPIC'
  13994. lt_prog_compiler_static_GCJ='-static'
  13995. ;;
  13996. pgcc* | pgf77* | pgf90* | pgf95*)
  13997. # Portland Group compilers (*not* the Pentium gcc compiler,
  13998. # which looks to be a dead project)
  13999. lt_prog_compiler_wl_GCJ='-Wl,'
  14000. lt_prog_compiler_pic_GCJ='-fpic'
  14001. lt_prog_compiler_static_GCJ='-Bstatic'
  14002. ;;
  14003. ccc*)
  14004. lt_prog_compiler_wl_GCJ='-Wl,'
  14005. # All Alpha code is PIC.
  14006. lt_prog_compiler_static_GCJ='-non_shared'
  14007. ;;
  14008. esac
  14009. ;;
  14010. osf3* | osf4* | osf5*)
  14011. lt_prog_compiler_wl_GCJ='-Wl,'
  14012. # All OSF/1 code is PIC.
  14013. lt_prog_compiler_static_GCJ='-non_shared'
  14014. ;;
  14015. solaris*)
  14016. lt_prog_compiler_pic_GCJ='-KPIC'
  14017. lt_prog_compiler_static_GCJ='-Bstatic'
  14018. case $cc_basename in
  14019. f77* | f90* | f95*)
  14020. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14021. *)
  14022. lt_prog_compiler_wl_GCJ='-Wl,';;
  14023. esac
  14024. ;;
  14025. sunos4*)
  14026. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14027. lt_prog_compiler_pic_GCJ='-PIC'
  14028. lt_prog_compiler_static_GCJ='-Bstatic'
  14029. ;;
  14030. sysv4 | sysv4.2uw2* | sysv4.3*)
  14031. lt_prog_compiler_wl_GCJ='-Wl,'
  14032. lt_prog_compiler_pic_GCJ='-KPIC'
  14033. lt_prog_compiler_static_GCJ='-Bstatic'
  14034. ;;
  14035. sysv4*MP*)
  14036. if test -d /usr/nec ;then
  14037. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14038. lt_prog_compiler_static_GCJ='-Bstatic'
  14039. fi
  14040. ;;
  14041. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14042. lt_prog_compiler_wl_GCJ='-Wl,'
  14043. lt_prog_compiler_pic_GCJ='-KPIC'
  14044. lt_prog_compiler_static_GCJ='-Bstatic'
  14045. ;;
  14046. unicos*)
  14047. lt_prog_compiler_wl_GCJ='-Wl,'
  14048. lt_prog_compiler_can_build_shared_GCJ=no
  14049. ;;
  14050. uts4*)
  14051. lt_prog_compiler_pic_GCJ='-pic'
  14052. lt_prog_compiler_static_GCJ='-Bstatic'
  14053. ;;
  14054. *)
  14055. lt_prog_compiler_can_build_shared_GCJ=no
  14056. ;;
  14057. esac
  14058. fi
  14059. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14060. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  14061. #
  14062. # Check to make sure the PIC flag actually works.
  14063. #
  14064. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14065. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14066. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  14067. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14068. echo $ECHO_N "(cached) $ECHO_C" >&6
  14069. else
  14070. lt_prog_compiler_pic_works_GCJ=no
  14071. ac_outfile=conftest.$ac_objext
  14072. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14073. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14074. # Insert the option either (1) after the last *FLAGS variable, or
  14075. # (2) before a word containing "conftest.", or (3) at the end.
  14076. # Note that $ac_compile itself does not contain backslashes and begins
  14077. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14078. # The option is referenced via a variable to avoid confusing sed.
  14079. lt_compile=`echo "$ac_compile" | $SED \
  14080. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14081. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14082. -e 's:$: $lt_compiler_flag:'`
  14083. (eval echo "\"\$as_me:15772: $lt_compile\"" >&5)
  14084. (eval "$lt_compile" 2>conftest.err)
  14085. ac_status=$?
  14086. cat conftest.err >&5
  14087. echo "$as_me:15776: \$? = $ac_status" >&5
  14088. if (exit $ac_status) && test -s "$ac_outfile"; then
  14089. # The compiler can only warn and ignore the option if not recognized
  14090. # So say no if there are warnings other than the usual output.
  14091. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14092. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14093. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14094. lt_prog_compiler_pic_works_GCJ=yes
  14095. fi
  14096. fi
  14097. $rm conftest*
  14098. fi
  14099. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14100. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  14101. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14102. case $lt_prog_compiler_pic_GCJ in
  14103. "" | " "*) ;;
  14104. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14105. esac
  14106. else
  14107. lt_prog_compiler_pic_GCJ=
  14108. lt_prog_compiler_can_build_shared_GCJ=no
  14109. fi
  14110. fi
  14111. case $host_os in
  14112. # For platforms which do not support PIC, -DPIC is meaningless:
  14113. *djgpp*)
  14114. lt_prog_compiler_pic_GCJ=
  14115. ;;
  14116. *)
  14117. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14118. ;;
  14119. esac
  14120. #
  14121. # Check to make sure the static flag actually works.
  14122. #
  14123. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14124. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14125. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  14126. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14127. echo $ECHO_N "(cached) $ECHO_C" >&6
  14128. else
  14129. lt_prog_compiler_static_works_GCJ=no
  14130. save_LDFLAGS="$LDFLAGS"
  14131. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14132. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14133. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14134. # The linker can only warn and ignore the option if not recognized
  14135. # So say no if there are warnings
  14136. if test -s conftest.err; then
  14137. # Append any errors to the config.log.
  14138. cat conftest.err 1>&5
  14139. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14140. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14141. if diff conftest.exp conftest.er2 >/dev/null; then
  14142. lt_prog_compiler_static_works_GCJ=yes
  14143. fi
  14144. else
  14145. lt_prog_compiler_static_works_GCJ=yes
  14146. fi
  14147. fi
  14148. $rm conftest*
  14149. LDFLAGS="$save_LDFLAGS"
  14150. fi
  14151. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14152. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  14153. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14154. :
  14155. else
  14156. lt_prog_compiler_static_GCJ=
  14157. fi
  14158. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14159. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  14160. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14161. echo $ECHO_N "(cached) $ECHO_C" >&6
  14162. else
  14163. lt_cv_prog_compiler_c_o_GCJ=no
  14164. $rm -r conftest 2>/dev/null
  14165. mkdir conftest
  14166. cd conftest
  14167. mkdir out
  14168. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14169. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14170. # Insert the option either (1) after the last *FLAGS variable, or
  14171. # (2) before a word containing "conftest.", or (3) at the end.
  14172. # Note that $ac_compile itself does not contain backslashes and begins
  14173. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14174. lt_compile=`echo "$ac_compile" | $SED \
  14175. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14176. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14177. -e 's:$: $lt_compiler_flag:'`
  14178. (eval echo "\"\$as_me:15876: $lt_compile\"" >&5)
  14179. (eval "$lt_compile" 2>out/conftest.err)
  14180. ac_status=$?
  14181. cat out/conftest.err >&5
  14182. echo "$as_me:15880: \$? = $ac_status" >&5
  14183. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14184. then
  14185. # The compiler can only warn and ignore the option if not recognized
  14186. # So say no if there are warnings
  14187. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14188. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14189. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14190. lt_cv_prog_compiler_c_o_GCJ=yes
  14191. fi
  14192. fi
  14193. chmod u+w . 2>&5
  14194. $rm conftest*
  14195. # SGI C++ compiler will create directory out/ii_files/ for
  14196. # template instantiation
  14197. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14198. $rm out/* && rmdir out
  14199. cd ..
  14200. rmdir conftest
  14201. $rm conftest*
  14202. fi
  14203. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14204. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  14205. hard_links="nottested"
  14206. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14207. # do not overwrite the value of need_locks provided by the user
  14208. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14209. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  14210. hard_links=yes
  14211. $rm conftest*
  14212. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14213. touch conftest.a
  14214. ln conftest.a conftest.b 2>&5 || hard_links=no
  14215. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14216. { echo "$as_me:$LINENO: result: $hard_links" >&5
  14217. echo "${ECHO_T}$hard_links" >&6; }
  14218. if test "$hard_links" = no; then
  14219. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14220. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14221. need_locks=warn
  14222. fi
  14223. else
  14224. need_locks=no
  14225. fi
  14226. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14227. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  14228. runpath_var=
  14229. allow_undefined_flag_GCJ=
  14230. enable_shared_with_static_runtimes_GCJ=no
  14231. archive_cmds_GCJ=
  14232. archive_expsym_cmds_GCJ=
  14233. old_archive_From_new_cmds_GCJ=
  14234. old_archive_from_expsyms_cmds_GCJ=
  14235. export_dynamic_flag_spec_GCJ=
  14236. whole_archive_flag_spec_GCJ=
  14237. thread_safe_flag_spec_GCJ=
  14238. hardcode_libdir_flag_spec_GCJ=
  14239. hardcode_libdir_flag_spec_ld_GCJ=
  14240. hardcode_libdir_separator_GCJ=
  14241. hardcode_direct_GCJ=no
  14242. hardcode_minus_L_GCJ=no
  14243. hardcode_shlibpath_var_GCJ=unsupported
  14244. link_all_deplibs_GCJ=unknown
  14245. hardcode_automatic_GCJ=no
  14246. module_cmds_GCJ=
  14247. module_expsym_cmds_GCJ=
  14248. always_export_symbols_GCJ=no
  14249. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14250. # include_expsyms should be a list of space-separated symbols to be *always*
  14251. # included in the symbol list
  14252. include_expsyms_GCJ=
  14253. # exclude_expsyms can be an extended regexp of symbols to exclude
  14254. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14255. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14256. # as well as any symbol that contains `d'.
  14257. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14258. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14259. # platforms (ab)use it in PIC code, but their linkers get confused if
  14260. # the symbol is explicitly referenced. Since portable code cannot
  14261. # rely on this symbol name, it's probably fine to never include it in
  14262. # preloaded symbol tables.
  14263. extract_expsyms_cmds=
  14264. # Just being paranoid about ensuring that cc_basename is set.
  14265. for cc_temp in $compiler""; do
  14266. case $cc_temp in
  14267. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14268. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14269. \-*) ;;
  14270. *) break;;
  14271. esac
  14272. done
  14273. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14274. case $host_os in
  14275. cygwin* | mingw* | pw32*)
  14276. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14277. # When not using gcc, we currently assume that we are using
  14278. # Microsoft Visual C++.
  14279. if test "$GCC" != yes; then
  14280. with_gnu_ld=no
  14281. fi
  14282. ;;
  14283. interix*)
  14284. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14285. with_gnu_ld=yes
  14286. ;;
  14287. openbsd*)
  14288. with_gnu_ld=no
  14289. ;;
  14290. esac
  14291. ld_shlibs_GCJ=yes
  14292. if test "$with_gnu_ld" = yes; then
  14293. # If archive_cmds runs LD, not CC, wlarc should be empty
  14294. wlarc='${wl}'
  14295. # Set some defaults for GNU ld with shared library support. These
  14296. # are reset later if shared libraries are not supported. Putting them
  14297. # here allows them to be overridden if necessary.
  14298. runpath_var=LD_RUN_PATH
  14299. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14300. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14301. # ancient GNU ld didn't support --whole-archive et. al.
  14302. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14303. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14304. else
  14305. whole_archive_flag_spec_GCJ=
  14306. fi
  14307. supports_anon_versioning=no
  14308. case `$LD -v 2>/dev/null` in
  14309. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14310. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14311. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14312. *\ 2.11.*) ;; # other 2.11 versions
  14313. *) supports_anon_versioning=yes ;;
  14314. esac
  14315. # See if GNU ld supports shared libraries.
  14316. case $host_os in
  14317. aix3* | aix4* | aix5*)
  14318. # On AIX/PPC, the GNU linker is very broken
  14319. if test "$host_cpu" != ia64; then
  14320. ld_shlibs_GCJ=no
  14321. cat <<EOF 1>&2
  14322. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14323. *** to be unable to reliably create shared libraries on AIX.
  14324. *** Therefore, libtool is disabling shared libraries support. If you
  14325. *** really care for shared libraries, you may want to modify your PATH
  14326. *** so that a non-GNU linker is found, and then restart.
  14327. EOF
  14328. fi
  14329. ;;
  14330. amigaos*)
  14331. 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)'
  14332. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14333. hardcode_minus_L_GCJ=yes
  14334. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14335. # that the semantics of dynamic libraries on AmigaOS, at least up
  14336. # to version 4, is to share data among multiple programs linked
  14337. # with the same dynamic library. Since this doesn't match the
  14338. # behavior of shared libraries on other platforms, we can't use
  14339. # them.
  14340. ld_shlibs_GCJ=no
  14341. ;;
  14342. beos*)
  14343. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14344. allow_undefined_flag_GCJ=unsupported
  14345. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14346. # support --undefined. This deserves some investigation. FIXME
  14347. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14348. else
  14349. ld_shlibs_GCJ=no
  14350. fi
  14351. ;;
  14352. cygwin* | mingw* | pw32*)
  14353. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14354. # as there is no search path for DLLs.
  14355. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14356. allow_undefined_flag_GCJ=unsupported
  14357. always_export_symbols_GCJ=no
  14358. enable_shared_with_static_runtimes_GCJ=yes
  14359. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14360. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14361. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14362. # If the export-symbols file already is a .def file (1st line
  14363. # is EXPORTS), use it as is; otherwise, prepend...
  14364. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14365. cp $export_symbols $output_objdir/$soname.def;
  14366. else
  14367. echo EXPORTS > $output_objdir/$soname.def;
  14368. cat $export_symbols >> $output_objdir/$soname.def;
  14369. fi~
  14370. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14371. else
  14372. ld_shlibs_GCJ=no
  14373. fi
  14374. ;;
  14375. interix3*)
  14376. hardcode_direct_GCJ=no
  14377. hardcode_shlibpath_var_GCJ=no
  14378. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14379. export_dynamic_flag_spec_GCJ='${wl}-E'
  14380. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14381. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14382. # default) and relocated if they conflict, which is a slow very memory
  14383. # consuming and fragmenting process. To avoid this, we pick a random,
  14384. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14385. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14386. 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'
  14387. 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'
  14388. ;;
  14389. linux*)
  14390. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14391. tmp_addflag=
  14392. case $cc_basename,$host_cpu in
  14393. pgcc*) # Portland Group C compiler
  14394. 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'
  14395. tmp_addflag=' $pic_flag'
  14396. ;;
  14397. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14398. 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'
  14399. tmp_addflag=' $pic_flag -Mnomain' ;;
  14400. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14401. tmp_addflag=' -i_dynamic' ;;
  14402. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14403. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14404. ifc* | ifort*) # Intel Fortran compiler
  14405. tmp_addflag=' -nofor_main' ;;
  14406. esac
  14407. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14408. if test $supports_anon_versioning = yes; then
  14409. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14410. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14411. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14412. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14413. fi
  14414. else
  14415. ld_shlibs_GCJ=no
  14416. fi
  14417. ;;
  14418. netbsd*)
  14419. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14420. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14421. wlarc=
  14422. else
  14423. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14424. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14425. fi
  14426. ;;
  14427. solaris*)
  14428. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14429. ld_shlibs_GCJ=no
  14430. cat <<EOF 1>&2
  14431. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14432. *** create shared libraries on Solaris systems. Therefore, libtool
  14433. *** is disabling shared libraries support. We urge you to upgrade GNU
  14434. *** binutils to release 2.9.1 or newer. Another option is to modify
  14435. *** your PATH or compiler configuration so that the native linker is
  14436. *** used, and then restart.
  14437. EOF
  14438. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14439. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14440. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14441. else
  14442. ld_shlibs_GCJ=no
  14443. fi
  14444. ;;
  14445. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14446. case `$LD -v 2>&1` in
  14447. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14448. ld_shlibs_GCJ=no
  14449. cat <<_LT_EOF 1>&2
  14450. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14451. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14452. *** is disabling shared libraries support. We urge you to upgrade GNU
  14453. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14454. *** your PATH or compiler configuration so that the native linker is
  14455. *** used, and then restart.
  14456. _LT_EOF
  14457. ;;
  14458. *)
  14459. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14460. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14461. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14462. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14463. else
  14464. ld_shlibs_GCJ=no
  14465. fi
  14466. ;;
  14467. esac
  14468. ;;
  14469. sunos4*)
  14470. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14471. wlarc=
  14472. hardcode_direct_GCJ=yes
  14473. hardcode_shlibpath_var_GCJ=no
  14474. ;;
  14475. *)
  14476. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14477. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14478. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14479. else
  14480. ld_shlibs_GCJ=no
  14481. fi
  14482. ;;
  14483. esac
  14484. if test "$ld_shlibs_GCJ" = no; then
  14485. runpath_var=
  14486. hardcode_libdir_flag_spec_GCJ=
  14487. export_dynamic_flag_spec_GCJ=
  14488. whole_archive_flag_spec_GCJ=
  14489. fi
  14490. else
  14491. # PORTME fill in a description of your system's linker (not GNU ld)
  14492. case $host_os in
  14493. aix3*)
  14494. allow_undefined_flag_GCJ=unsupported
  14495. always_export_symbols_GCJ=yes
  14496. 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'
  14497. # Note: this linker hardcodes the directories in LIBPATH if there
  14498. # are no directories specified by -L.
  14499. hardcode_minus_L_GCJ=yes
  14500. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14501. # Neither direct hardcoding nor static linking is supported with a
  14502. # broken collect2.
  14503. hardcode_direct_GCJ=unsupported
  14504. fi
  14505. ;;
  14506. aix4* | aix5*)
  14507. if test "$host_cpu" = ia64; then
  14508. # On IA64, the linker does run time linking by default, so we don't
  14509. # have to do anything special.
  14510. aix_use_runtimelinking=no
  14511. exp_sym_flag='-Bexport'
  14512. no_entry_flag=""
  14513. else
  14514. # If we're using GNU nm, then we don't want the "-C" option.
  14515. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14516. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14517. 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'
  14518. else
  14519. 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'
  14520. fi
  14521. aix_use_runtimelinking=no
  14522. # Test if we are trying to use run time linking or normal
  14523. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14524. # need to do runtime linking.
  14525. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14526. for ld_flag in $LDFLAGS; do
  14527. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14528. aix_use_runtimelinking=yes
  14529. break
  14530. fi
  14531. done
  14532. ;;
  14533. esac
  14534. exp_sym_flag='-bexport'
  14535. no_entry_flag='-bnoentry'
  14536. fi
  14537. # When large executables or shared objects are built, AIX ld can
  14538. # have problems creating the table of contents. If linking a library
  14539. # or program results in "error TOC overflow" add -mminimal-toc to
  14540. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14541. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14542. archive_cmds_GCJ=''
  14543. hardcode_direct_GCJ=yes
  14544. hardcode_libdir_separator_GCJ=':'
  14545. link_all_deplibs_GCJ=yes
  14546. if test "$GCC" = yes; then
  14547. case $host_os in aix4.[012]|aix4.[012].*)
  14548. # We only want to do this on AIX 4.2 and lower, the check
  14549. # below for broken collect2 doesn't work under 4.3+
  14550. collect2name=`${CC} -print-prog-name=collect2`
  14551. if test -f "$collect2name" && \
  14552. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14553. then
  14554. # We have reworked collect2
  14555. hardcode_direct_GCJ=yes
  14556. else
  14557. # We have old collect2
  14558. hardcode_direct_GCJ=unsupported
  14559. # It fails to find uninstalled libraries when the uninstalled
  14560. # path is not listed in the libpath. Setting hardcode_minus_L
  14561. # to unsupported forces relinking
  14562. hardcode_minus_L_GCJ=yes
  14563. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14564. hardcode_libdir_separator_GCJ=
  14565. fi
  14566. ;;
  14567. esac
  14568. shared_flag='-shared'
  14569. if test "$aix_use_runtimelinking" = yes; then
  14570. shared_flag="$shared_flag "'${wl}-G'
  14571. fi
  14572. else
  14573. # not using gcc
  14574. if test "$host_cpu" = ia64; then
  14575. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14576. # chokes on -Wl,-G. The following line is correct:
  14577. shared_flag='-G'
  14578. else
  14579. if test "$aix_use_runtimelinking" = yes; then
  14580. shared_flag='${wl}-G'
  14581. else
  14582. shared_flag='${wl}-bM:SRE'
  14583. fi
  14584. fi
  14585. fi
  14586. # It seems that -bexpall does not export symbols beginning with
  14587. # underscore (_), so it is better to generate a list of symbols to export.
  14588. always_export_symbols_GCJ=yes
  14589. if test "$aix_use_runtimelinking" = yes; then
  14590. # Warning - without using the other runtime loading flags (-brtl),
  14591. # -berok will link without error, but may produce a broken library.
  14592. allow_undefined_flag_GCJ='-berok'
  14593. # Determine the default libpath from the value encoded in an empty executable.
  14594. cat >conftest.$ac_ext <<_ACEOF
  14595. /* confdefs.h. */
  14596. _ACEOF
  14597. cat confdefs.h >>conftest.$ac_ext
  14598. cat >>conftest.$ac_ext <<_ACEOF
  14599. /* end confdefs.h. */
  14600. int
  14601. main ()
  14602. {
  14603. ;
  14604. return 0;
  14605. }
  14606. _ACEOF
  14607. rm -f conftest.$ac_objext conftest$ac_exeext
  14608. if { (ac_try="$ac_link"
  14609. case "(($ac_try" in
  14610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14611. *) ac_try_echo=$ac_try;;
  14612. esac
  14613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14614. (eval "$ac_link") 2>conftest.er1
  14615. ac_status=$?
  14616. grep -v '^ *+' conftest.er1 >conftest.err
  14617. rm -f conftest.er1
  14618. cat conftest.err >&5
  14619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14620. (exit $ac_status); } && {
  14621. test -z "$ac_c_werror_flag" ||
  14622. test ! -s conftest.err
  14623. } && test -s conftest$ac_exeext &&
  14624. $as_test_x conftest$ac_exeext; then
  14625. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14626. }'`
  14627. # Check for a 64-bit object if we didn't find anything.
  14628. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14629. }'`; fi
  14630. else
  14631. echo "$as_me: failed program was:" >&5
  14632. sed 's/^/| /' conftest.$ac_ext >&5
  14633. fi
  14634. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14635. conftest$ac_exeext conftest.$ac_ext
  14636. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14637. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14638. 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"
  14639. else
  14640. if test "$host_cpu" = ia64; then
  14641. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14642. allow_undefined_flag_GCJ="-z nodefs"
  14643. 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"
  14644. else
  14645. # Determine the default libpath from the value encoded in an empty executable.
  14646. cat >conftest.$ac_ext <<_ACEOF
  14647. /* confdefs.h. */
  14648. _ACEOF
  14649. cat confdefs.h >>conftest.$ac_ext
  14650. cat >>conftest.$ac_ext <<_ACEOF
  14651. /* end confdefs.h. */
  14652. int
  14653. main ()
  14654. {
  14655. ;
  14656. return 0;
  14657. }
  14658. _ACEOF
  14659. rm -f conftest.$ac_objext conftest$ac_exeext
  14660. if { (ac_try="$ac_link"
  14661. case "(($ac_try" in
  14662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14663. *) ac_try_echo=$ac_try;;
  14664. esac
  14665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14666. (eval "$ac_link") 2>conftest.er1
  14667. ac_status=$?
  14668. grep -v '^ *+' conftest.er1 >conftest.err
  14669. rm -f conftest.er1
  14670. cat conftest.err >&5
  14671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14672. (exit $ac_status); } && {
  14673. test -z "$ac_c_werror_flag" ||
  14674. test ! -s conftest.err
  14675. } && test -s conftest$ac_exeext &&
  14676. $as_test_x conftest$ac_exeext; then
  14677. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14678. }'`
  14679. # Check for a 64-bit object if we didn't find anything.
  14680. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14681. }'`; fi
  14682. else
  14683. echo "$as_me: failed program was:" >&5
  14684. sed 's/^/| /' conftest.$ac_ext >&5
  14685. fi
  14686. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14687. conftest$ac_exeext conftest.$ac_ext
  14688. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14689. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14690. # Warning - without using the other run time loading flags,
  14691. # -berok will link without error, but may produce a broken library.
  14692. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14693. allow_undefined_flag_GCJ=' ${wl}-berok'
  14694. # Exported symbols can be pulled into shared objects from archives
  14695. whole_archive_flag_spec_GCJ='$convenience'
  14696. archive_cmds_need_lc_GCJ=yes
  14697. # This is similar to how AIX traditionally builds its shared libraries.
  14698. 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'
  14699. fi
  14700. fi
  14701. ;;
  14702. amigaos*)
  14703. 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)'
  14704. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14705. hardcode_minus_L_GCJ=yes
  14706. # see comment about different semantics on the GNU ld section
  14707. ld_shlibs_GCJ=no
  14708. ;;
  14709. bsdi[45]*)
  14710. export_dynamic_flag_spec_GCJ=-rdynamic
  14711. ;;
  14712. cygwin* | mingw* | pw32*)
  14713. # When not using gcc, we currently assume that we are using
  14714. # Microsoft Visual C++.
  14715. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14716. # no search path for DLLs.
  14717. hardcode_libdir_flag_spec_GCJ=' '
  14718. allow_undefined_flag_GCJ=unsupported
  14719. # Tell ltmain to make .lib files, not .a files.
  14720. libext=lib
  14721. # Tell ltmain to make .dll files, not .so files.
  14722. shrext_cmds=".dll"
  14723. # FIXME: Setting linknames here is a bad hack.
  14724. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14725. # The linker will automatically build a .lib file if we build a DLL.
  14726. old_archive_From_new_cmds_GCJ='true'
  14727. # FIXME: Should let the user specify the lib program.
  14728. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14729. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14730. enable_shared_with_static_runtimes_GCJ=yes
  14731. ;;
  14732. darwin* | rhapsody*)
  14733. case $host_os in
  14734. rhapsody* | darwin1.[012])
  14735. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14736. ;;
  14737. *) # Darwin 1.3 on
  14738. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14739. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14740. else
  14741. case ${MACOSX_DEPLOYMENT_TARGET} in
  14742. 10.[012])
  14743. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14744. ;;
  14745. 10.*)
  14746. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14747. ;;
  14748. esac
  14749. fi
  14750. ;;
  14751. esac
  14752. archive_cmds_need_lc_GCJ=no
  14753. hardcode_direct_GCJ=no
  14754. hardcode_automatic_GCJ=yes
  14755. hardcode_shlibpath_var_GCJ=unsupported
  14756. whole_archive_flag_spec_GCJ=''
  14757. link_all_deplibs_GCJ=yes
  14758. if test "$GCC" = yes ; then
  14759. output_verbose_link_cmd='echo'
  14760. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14761. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14762. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14763. 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}'
  14764. 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}'
  14765. else
  14766. case $cc_basename in
  14767. xlc*)
  14768. output_verbose_link_cmd='echo'
  14769. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14770. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14771. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14772. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14773. 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}'
  14774. ;;
  14775. *)
  14776. ld_shlibs_GCJ=no
  14777. ;;
  14778. esac
  14779. fi
  14780. ;;
  14781. dgux*)
  14782. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14783. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14784. hardcode_shlibpath_var_GCJ=no
  14785. ;;
  14786. freebsd1*)
  14787. ld_shlibs_GCJ=no
  14788. ;;
  14789. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14790. # support. Future versions do this automatically, but an explicit c++rt0.o
  14791. # does not break anything, and helps significantly (at the cost of a little
  14792. # extra space).
  14793. freebsd2.2*)
  14794. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14795. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14796. hardcode_direct_GCJ=yes
  14797. hardcode_shlibpath_var_GCJ=no
  14798. ;;
  14799. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14800. freebsd2*)
  14801. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14802. hardcode_direct_GCJ=yes
  14803. hardcode_minus_L_GCJ=yes
  14804. hardcode_shlibpath_var_GCJ=no
  14805. ;;
  14806. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14807. freebsd* | kfreebsd*-gnu | dragonfly*)
  14808. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14809. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14810. hardcode_direct_GCJ=yes
  14811. hardcode_shlibpath_var_GCJ=no
  14812. ;;
  14813. hpux9*)
  14814. if test "$GCC" = yes; then
  14815. 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'
  14816. else
  14817. 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'
  14818. fi
  14819. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14820. hardcode_libdir_separator_GCJ=:
  14821. hardcode_direct_GCJ=yes
  14822. # hardcode_minus_L: Not really in the search PATH,
  14823. # but as the default location of the library.
  14824. hardcode_minus_L_GCJ=yes
  14825. export_dynamic_flag_spec_GCJ='${wl}-E'
  14826. ;;
  14827. hpux10*)
  14828. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14829. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14830. else
  14831. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14832. fi
  14833. if test "$with_gnu_ld" = no; then
  14834. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14835. hardcode_libdir_separator_GCJ=:
  14836. hardcode_direct_GCJ=yes
  14837. export_dynamic_flag_spec_GCJ='${wl}-E'
  14838. # hardcode_minus_L: Not really in the search PATH,
  14839. # but as the default location of the library.
  14840. hardcode_minus_L_GCJ=yes
  14841. fi
  14842. ;;
  14843. hpux11*)
  14844. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14845. case $host_cpu in
  14846. hppa*64*)
  14847. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14848. ;;
  14849. ia64*)
  14850. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14851. ;;
  14852. *)
  14853. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14854. ;;
  14855. esac
  14856. else
  14857. case $host_cpu in
  14858. hppa*64*)
  14859. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14860. ;;
  14861. ia64*)
  14862. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14863. ;;
  14864. *)
  14865. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14866. ;;
  14867. esac
  14868. fi
  14869. if test "$with_gnu_ld" = no; then
  14870. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14871. hardcode_libdir_separator_GCJ=:
  14872. case $host_cpu in
  14873. hppa*64*|ia64*)
  14874. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  14875. hardcode_direct_GCJ=no
  14876. hardcode_shlibpath_var_GCJ=no
  14877. ;;
  14878. *)
  14879. hardcode_direct_GCJ=yes
  14880. export_dynamic_flag_spec_GCJ='${wl}-E'
  14881. # hardcode_minus_L: Not really in the search PATH,
  14882. # but as the default location of the library.
  14883. hardcode_minus_L_GCJ=yes
  14884. ;;
  14885. esac
  14886. fi
  14887. ;;
  14888. irix5* | irix6* | nonstopux*)
  14889. if test "$GCC" = yes; then
  14890. 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'
  14891. else
  14892. 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'
  14893. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  14894. fi
  14895. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14896. hardcode_libdir_separator_GCJ=:
  14897. link_all_deplibs_GCJ=yes
  14898. ;;
  14899. netbsd*)
  14900. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14901. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14902. else
  14903. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14904. fi
  14905. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14906. hardcode_direct_GCJ=yes
  14907. hardcode_shlibpath_var_GCJ=no
  14908. ;;
  14909. newsos6)
  14910. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14911. hardcode_direct_GCJ=yes
  14912. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14913. hardcode_libdir_separator_GCJ=:
  14914. hardcode_shlibpath_var_GCJ=no
  14915. ;;
  14916. openbsd*)
  14917. hardcode_direct_GCJ=yes
  14918. hardcode_shlibpath_var_GCJ=no
  14919. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14920. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14921. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14922. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14923. export_dynamic_flag_spec_GCJ='${wl}-E'
  14924. else
  14925. case $host_os in
  14926. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14927. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14928. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14929. ;;
  14930. *)
  14931. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14932. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14933. ;;
  14934. esac
  14935. fi
  14936. ;;
  14937. os2*)
  14938. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14939. hardcode_minus_L_GCJ=yes
  14940. allow_undefined_flag_GCJ=unsupported
  14941. 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'
  14942. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14943. ;;
  14944. osf3*)
  14945. if test "$GCC" = yes; then
  14946. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14947. 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'
  14948. else
  14949. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14950. 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'
  14951. fi
  14952. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14953. hardcode_libdir_separator_GCJ=:
  14954. ;;
  14955. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14956. if test "$GCC" = yes; then
  14957. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14958. 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'
  14959. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14960. else
  14961. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14962. 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'
  14963. 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~
  14964. $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'
  14965. # Both c and cxx compiler support -rpath directly
  14966. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  14967. fi
  14968. hardcode_libdir_separator_GCJ=:
  14969. ;;
  14970. solaris*)
  14971. no_undefined_flag_GCJ=' -z text'
  14972. if test "$GCC" = yes; then
  14973. wlarc='${wl}'
  14974. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14975. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14976. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14977. else
  14978. wlarc=''
  14979. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14980. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14981. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14982. fi
  14983. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14984. hardcode_shlibpath_var_GCJ=no
  14985. case $host_os in
  14986. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14987. *)
  14988. # The compiler driver will combine linker options so we
  14989. # cannot just pass the convience library names through
  14990. # without $wl, iff we do not link with $LD.
  14991. # Luckily, gcc supports the same syntax we need for Sun Studio.
  14992. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14993. case $wlarc in
  14994. '')
  14995. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  14996. *)
  14997. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  14998. esac ;;
  14999. esac
  15000. link_all_deplibs_GCJ=yes
  15001. ;;
  15002. sunos4*)
  15003. if test "x$host_vendor" = xsequent; then
  15004. # Use $CC to link under sequent, because it throws in some extra .o
  15005. # files that make .init and .fini sections work.
  15006. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15007. else
  15008. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15009. fi
  15010. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15011. hardcode_direct_GCJ=yes
  15012. hardcode_minus_L_GCJ=yes
  15013. hardcode_shlibpath_var_GCJ=no
  15014. ;;
  15015. sysv4)
  15016. case $host_vendor in
  15017. sni)
  15018. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15019. hardcode_direct_GCJ=yes # is this really true???
  15020. ;;
  15021. siemens)
  15022. ## LD is ld it makes a PLAMLIB
  15023. ## CC just makes a GrossModule.
  15024. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15025. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15026. hardcode_direct_GCJ=no
  15027. ;;
  15028. motorola)
  15029. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15030. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15031. ;;
  15032. esac
  15033. runpath_var='LD_RUN_PATH'
  15034. hardcode_shlibpath_var_GCJ=no
  15035. ;;
  15036. sysv4.3*)
  15037. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15038. hardcode_shlibpath_var_GCJ=no
  15039. export_dynamic_flag_spec_GCJ='-Bexport'
  15040. ;;
  15041. sysv4*MP*)
  15042. if test -d /usr/nec; then
  15043. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15044. hardcode_shlibpath_var_GCJ=no
  15045. runpath_var=LD_RUN_PATH
  15046. hardcode_runpath_var=yes
  15047. ld_shlibs_GCJ=yes
  15048. fi
  15049. ;;
  15050. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15051. no_undefined_flag_GCJ='${wl}-z,text'
  15052. archive_cmds_need_lc_GCJ=no
  15053. hardcode_shlibpath_var_GCJ=no
  15054. runpath_var='LD_RUN_PATH'
  15055. if test "$GCC" = yes; then
  15056. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15057. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15058. else
  15059. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15060. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15061. fi
  15062. ;;
  15063. sysv5* | sco3.2v5* | sco5v6*)
  15064. # Note: We can NOT use -z defs as we might desire, because we do not
  15065. # link with -lc, and that would cause any symbols used from libc to
  15066. # always be unresolved, which means just about no library would
  15067. # ever link correctly. If we're not using GNU ld we use -z text
  15068. # though, which does catch some bad symbols but isn't as heavy-handed
  15069. # as -z defs.
  15070. no_undefined_flag_GCJ='${wl}-z,text'
  15071. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15072. archive_cmds_need_lc_GCJ=no
  15073. hardcode_shlibpath_var_GCJ=no
  15074. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15075. hardcode_libdir_separator_GCJ=':'
  15076. link_all_deplibs_GCJ=yes
  15077. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15078. runpath_var='LD_RUN_PATH'
  15079. if test "$GCC" = yes; then
  15080. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15081. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15082. else
  15083. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15084. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15085. fi
  15086. ;;
  15087. uts4*)
  15088. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15089. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15090. hardcode_shlibpath_var_GCJ=no
  15091. ;;
  15092. *)
  15093. ld_shlibs_GCJ=no
  15094. ;;
  15095. esac
  15096. fi
  15097. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15098. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  15099. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15100. #
  15101. # Do we need to explicitly link libc?
  15102. #
  15103. case "x$archive_cmds_need_lc_GCJ" in
  15104. x|xyes)
  15105. # Assume -lc should be added
  15106. archive_cmds_need_lc_GCJ=yes
  15107. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15108. case $archive_cmds_GCJ in
  15109. *'~'*)
  15110. # FIXME: we may have to deal with multi-command sequences.
  15111. ;;
  15112. '$CC '*)
  15113. # Test whether the compiler implicitly links with -lc since on some
  15114. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15115. # to ld, don't add -lc before -lgcc.
  15116. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15117. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  15118. $rm conftest*
  15119. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15120. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15121. (eval $ac_compile) 2>&5
  15122. ac_status=$?
  15123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15124. (exit $ac_status); } 2>conftest.err; then
  15125. soname=conftest
  15126. lib=conftest
  15127. libobjs=conftest.$ac_objext
  15128. deplibs=
  15129. wl=$lt_prog_compiler_wl_GCJ
  15130. pic_flag=$lt_prog_compiler_pic_GCJ
  15131. compiler_flags=-v
  15132. linker_flags=-v
  15133. verstring=
  15134. output_objdir=.
  15135. libname=conftest
  15136. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15137. allow_undefined_flag_GCJ=
  15138. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15139. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15140. ac_status=$?
  15141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15142. (exit $ac_status); }
  15143. then
  15144. archive_cmds_need_lc_GCJ=no
  15145. else
  15146. archive_cmds_need_lc_GCJ=yes
  15147. fi
  15148. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15149. else
  15150. cat conftest.err 1>&5
  15151. fi
  15152. $rm conftest*
  15153. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15154. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  15155. ;;
  15156. esac
  15157. fi
  15158. ;;
  15159. esac
  15160. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15161. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  15162. library_names_spec=
  15163. libname_spec='lib$name'
  15164. soname_spec=
  15165. shrext_cmds=".so"
  15166. postinstall_cmds=
  15167. postuninstall_cmds=
  15168. finish_cmds=
  15169. finish_eval=
  15170. shlibpath_var=
  15171. shlibpath_overrides_runpath=unknown
  15172. version_type=none
  15173. dynamic_linker="$host_os ld.so"
  15174. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15175. if test "$GCC" = yes; then
  15176. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15177. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15178. # if the path contains ";" then we assume it to be the separator
  15179. # otherwise default to the standard path separator (i.e. ":") - it is
  15180. # assumed that no part of a normal pathname contains ";" but that should
  15181. # okay in the real world where ";" in dirpaths is itself problematic.
  15182. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15183. else
  15184. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15185. fi
  15186. else
  15187. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15188. fi
  15189. need_lib_prefix=unknown
  15190. hardcode_into_libs=no
  15191. # when you set need_version to no, make sure it does not cause -set_version
  15192. # flags to be left without arguments
  15193. need_version=unknown
  15194. case $host_os in
  15195. aix3*)
  15196. version_type=linux
  15197. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15198. shlibpath_var=LIBPATH
  15199. # AIX 3 has no versioning support, so we append a major version to the name.
  15200. soname_spec='${libname}${release}${shared_ext}$major'
  15201. ;;
  15202. aix4* | aix5*)
  15203. version_type=linux
  15204. need_lib_prefix=no
  15205. need_version=no
  15206. hardcode_into_libs=yes
  15207. if test "$host_cpu" = ia64; then
  15208. # AIX 5 supports IA64
  15209. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15210. shlibpath_var=LD_LIBRARY_PATH
  15211. else
  15212. # With GCC up to 2.95.x, collect2 would create an import file
  15213. # for dependence libraries. The import file would start with
  15214. # the line `#! .'. This would cause the generated library to
  15215. # depend on `.', always an invalid library. This was fixed in
  15216. # development snapshots of GCC prior to 3.0.
  15217. case $host_os in
  15218. aix4 | aix4.[01] | aix4.[01].*)
  15219. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15220. echo ' yes '
  15221. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15222. :
  15223. else
  15224. can_build_shared=no
  15225. fi
  15226. ;;
  15227. esac
  15228. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15229. # soname into executable. Probably we can add versioning support to
  15230. # collect2, so additional links can be useful in future.
  15231. if test "$aix_use_runtimelinking" = yes; then
  15232. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15233. # instead of lib<name>.a to let people know that these are not
  15234. # typical AIX shared libraries.
  15235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15236. else
  15237. # We preserve .a as extension for shared libraries through AIX4.2
  15238. # and later when we are not doing run time linking.
  15239. library_names_spec='${libname}${release}.a $libname.a'
  15240. soname_spec='${libname}${release}${shared_ext}$major'
  15241. fi
  15242. shlibpath_var=LIBPATH
  15243. fi
  15244. ;;
  15245. amigaos*)
  15246. library_names_spec='$libname.ixlibrary $libname.a'
  15247. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15248. 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'
  15249. ;;
  15250. beos*)
  15251. library_names_spec='${libname}${shared_ext}'
  15252. dynamic_linker="$host_os ld.so"
  15253. shlibpath_var=LIBRARY_PATH
  15254. ;;
  15255. bsdi[45]*)
  15256. version_type=linux
  15257. need_version=no
  15258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15259. soname_spec='${libname}${release}${shared_ext}$major'
  15260. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15261. shlibpath_var=LD_LIBRARY_PATH
  15262. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15263. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15264. # the default ld.so.conf also contains /usr/contrib/lib and
  15265. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15266. # libtool to hard-code these into programs
  15267. ;;
  15268. cygwin* | mingw* | pw32*)
  15269. version_type=windows
  15270. shrext_cmds=".dll"
  15271. need_version=no
  15272. need_lib_prefix=no
  15273. case $GCC,$host_os in
  15274. yes,cygwin* | yes,mingw* | yes,pw32*)
  15275. library_names_spec='$libname.dll.a'
  15276. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15277. postinstall_cmds='base_file=`basename \${file}`~
  15278. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15279. dldir=$destdir/`dirname \$dlpath`~
  15280. test -d \$dldir || mkdir -p \$dldir~
  15281. $install_prog $dir/$dlname \$dldir/$dlname~
  15282. chmod a+x \$dldir/$dlname'
  15283. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15284. dlpath=$dir/\$dldll~
  15285. $rm \$dlpath'
  15286. shlibpath_overrides_runpath=yes
  15287. case $host_os in
  15288. cygwin*)
  15289. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15290. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15291. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15292. ;;
  15293. mingw*)
  15294. # MinGW DLLs use traditional 'lib' prefix
  15295. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15296. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15297. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15298. # It is most probably a Windows format PATH printed by
  15299. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15300. # path with ; separators, and with drive letters. We can handle the
  15301. # drive letters (cygwin fileutils understands them), so leave them,
  15302. # especially as we might pass files found there to a mingw objdump,
  15303. # which wouldn't understand a cygwinified path. Ahh.
  15304. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15305. else
  15306. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15307. fi
  15308. ;;
  15309. pw32*)
  15310. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15311. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15312. ;;
  15313. esac
  15314. ;;
  15315. *)
  15316. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15317. ;;
  15318. esac
  15319. dynamic_linker='Win32 ld.exe'
  15320. # FIXME: first we should search . and the directory the executable is in
  15321. shlibpath_var=PATH
  15322. ;;
  15323. darwin* | rhapsody*)
  15324. dynamic_linker="$host_os dyld"
  15325. version_type=darwin
  15326. need_lib_prefix=no
  15327. need_version=no
  15328. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15329. soname_spec='${libname}${release}${major}$shared_ext'
  15330. shlibpath_overrides_runpath=yes
  15331. shlibpath_var=DYLD_LIBRARY_PATH
  15332. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15333. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15334. if test "$GCC" = yes; then
  15335. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  15336. else
  15337. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15338. fi
  15339. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15340. ;;
  15341. dgux*)
  15342. version_type=linux
  15343. need_lib_prefix=no
  15344. need_version=no
  15345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15346. soname_spec='${libname}${release}${shared_ext}$major'
  15347. shlibpath_var=LD_LIBRARY_PATH
  15348. ;;
  15349. freebsd1*)
  15350. dynamic_linker=no
  15351. ;;
  15352. kfreebsd*-gnu)
  15353. version_type=linux
  15354. need_lib_prefix=no
  15355. need_version=no
  15356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15357. soname_spec='${libname}${release}${shared_ext}$major'
  15358. shlibpath_var=LD_LIBRARY_PATH
  15359. shlibpath_overrides_runpath=no
  15360. hardcode_into_libs=yes
  15361. dynamic_linker='GNU ld.so'
  15362. ;;
  15363. freebsd* | dragonfly*)
  15364. # DragonFly does not have aout. When/if they implement a new
  15365. # versioning mechanism, adjust this.
  15366. if test -x /usr/bin/objformat; then
  15367. objformat=`/usr/bin/objformat`
  15368. else
  15369. case $host_os in
  15370. freebsd[123]*) objformat=aout ;;
  15371. *) objformat=elf ;;
  15372. esac
  15373. fi
  15374. version_type=freebsd-$objformat
  15375. case $version_type in
  15376. freebsd-elf*)
  15377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15378. need_version=no
  15379. need_lib_prefix=no
  15380. ;;
  15381. freebsd-*)
  15382. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15383. need_version=yes
  15384. ;;
  15385. esac
  15386. shlibpath_var=LD_LIBRARY_PATH
  15387. case $host_os in
  15388. freebsd2*)
  15389. shlibpath_overrides_runpath=yes
  15390. ;;
  15391. freebsd3.[01]* | freebsdelf3.[01]*)
  15392. shlibpath_overrides_runpath=yes
  15393. hardcode_into_libs=yes
  15394. ;;
  15395. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15396. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15397. shlibpath_overrides_runpath=no
  15398. hardcode_into_libs=yes
  15399. ;;
  15400. freebsd*) # from 4.6 on
  15401. shlibpath_overrides_runpath=yes
  15402. hardcode_into_libs=yes
  15403. ;;
  15404. esac
  15405. ;;
  15406. gnu*)
  15407. version_type=linux
  15408. need_lib_prefix=no
  15409. need_version=no
  15410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15411. soname_spec='${libname}${release}${shared_ext}$major'
  15412. shlibpath_var=LD_LIBRARY_PATH
  15413. hardcode_into_libs=yes
  15414. ;;
  15415. hpux9* | hpux10* | hpux11*)
  15416. # Give a soname corresponding to the major version so that dld.sl refuses to
  15417. # link against other versions.
  15418. version_type=sunos
  15419. need_lib_prefix=no
  15420. need_version=no
  15421. case $host_cpu in
  15422. ia64*)
  15423. shrext_cmds='.so'
  15424. hardcode_into_libs=yes
  15425. dynamic_linker="$host_os dld.so"
  15426. shlibpath_var=LD_LIBRARY_PATH
  15427. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15429. soname_spec='${libname}${release}${shared_ext}$major'
  15430. if test "X$HPUX_IA64_MODE" = X32; then
  15431. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15432. else
  15433. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15434. fi
  15435. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15436. ;;
  15437. hppa*64*)
  15438. shrext_cmds='.sl'
  15439. hardcode_into_libs=yes
  15440. dynamic_linker="$host_os dld.sl"
  15441. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15442. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15444. soname_spec='${libname}${release}${shared_ext}$major'
  15445. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15446. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15447. ;;
  15448. *)
  15449. shrext_cmds='.sl'
  15450. dynamic_linker="$host_os dld.sl"
  15451. shlibpath_var=SHLIB_PATH
  15452. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15454. soname_spec='${libname}${release}${shared_ext}$major'
  15455. ;;
  15456. esac
  15457. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15458. postinstall_cmds='chmod 555 $lib'
  15459. ;;
  15460. interix3*)
  15461. version_type=linux
  15462. need_lib_prefix=no
  15463. need_version=no
  15464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15465. soname_spec='${libname}${release}${shared_ext}$major'
  15466. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15467. shlibpath_var=LD_LIBRARY_PATH
  15468. shlibpath_overrides_runpath=no
  15469. hardcode_into_libs=yes
  15470. ;;
  15471. irix5* | irix6* | nonstopux*)
  15472. case $host_os in
  15473. nonstopux*) version_type=nonstopux ;;
  15474. *)
  15475. if test "$lt_cv_prog_gnu_ld" = yes; then
  15476. version_type=linux
  15477. else
  15478. version_type=irix
  15479. fi ;;
  15480. esac
  15481. need_lib_prefix=no
  15482. need_version=no
  15483. soname_spec='${libname}${release}${shared_ext}$major'
  15484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15485. case $host_os in
  15486. irix5* | nonstopux*)
  15487. libsuff= shlibsuff=
  15488. ;;
  15489. *)
  15490. case $LD in # libtool.m4 will add one of these switches to LD
  15491. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15492. libsuff= shlibsuff= libmagic=32-bit;;
  15493. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15494. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15495. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15496. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15497. *) libsuff= shlibsuff= libmagic=never-match;;
  15498. esac
  15499. ;;
  15500. esac
  15501. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15502. shlibpath_overrides_runpath=no
  15503. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15504. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15505. hardcode_into_libs=yes
  15506. ;;
  15507. # No shared lib support for Linux oldld, aout, or coff.
  15508. linux*oldld* | linux*aout* | linux*coff*)
  15509. dynamic_linker=no
  15510. ;;
  15511. # This must be Linux ELF.
  15512. linux*)
  15513. version_type=linux
  15514. need_lib_prefix=no
  15515. need_version=no
  15516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15517. soname_spec='${libname}${release}${shared_ext}$major'
  15518. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15519. shlibpath_var=LD_LIBRARY_PATH
  15520. shlibpath_overrides_runpath=no
  15521. # This implies no fast_install, which is unacceptable.
  15522. # Some rework will be needed to allow for fast_install
  15523. # before this can be enabled.
  15524. hardcode_into_libs=yes
  15525. # Append ld.so.conf contents to the search path
  15526. if test -f /etc/ld.so.conf; then
  15527. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15528. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15529. fi
  15530. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15531. # powerpc, because MkLinux only supported shared libraries with the
  15532. # GNU dynamic linker. Since this was broken with cross compilers,
  15533. # most powerpc-linux boxes support dynamic linking these days and
  15534. # people can always --disable-shared, the test was removed, and we
  15535. # assume the GNU/Linux dynamic linker is in use.
  15536. dynamic_linker='GNU/Linux ld.so'
  15537. ;;
  15538. knetbsd*-gnu)
  15539. version_type=linux
  15540. need_lib_prefix=no
  15541. need_version=no
  15542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15543. soname_spec='${libname}${release}${shared_ext}$major'
  15544. shlibpath_var=LD_LIBRARY_PATH
  15545. shlibpath_overrides_runpath=no
  15546. hardcode_into_libs=yes
  15547. dynamic_linker='GNU ld.so'
  15548. ;;
  15549. netbsd*)
  15550. version_type=sunos
  15551. need_lib_prefix=no
  15552. need_version=no
  15553. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15555. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15556. dynamic_linker='NetBSD (a.out) ld.so'
  15557. else
  15558. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15559. soname_spec='${libname}${release}${shared_ext}$major'
  15560. dynamic_linker='NetBSD ld.elf_so'
  15561. fi
  15562. shlibpath_var=LD_LIBRARY_PATH
  15563. shlibpath_overrides_runpath=yes
  15564. hardcode_into_libs=yes
  15565. ;;
  15566. newsos6)
  15567. version_type=linux
  15568. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15569. shlibpath_var=LD_LIBRARY_PATH
  15570. shlibpath_overrides_runpath=yes
  15571. ;;
  15572. nto-qnx*)
  15573. version_type=linux
  15574. need_lib_prefix=no
  15575. need_version=no
  15576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15577. soname_spec='${libname}${release}${shared_ext}$major'
  15578. shlibpath_var=LD_LIBRARY_PATH
  15579. shlibpath_overrides_runpath=yes
  15580. ;;
  15581. openbsd*)
  15582. version_type=sunos
  15583. sys_lib_dlsearch_path_spec="/usr/lib"
  15584. need_lib_prefix=no
  15585. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15586. case $host_os in
  15587. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15588. *) need_version=no ;;
  15589. esac
  15590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15591. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15592. shlibpath_var=LD_LIBRARY_PATH
  15593. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15594. case $host_os in
  15595. openbsd2.[89] | openbsd2.[89].*)
  15596. shlibpath_overrides_runpath=no
  15597. ;;
  15598. *)
  15599. shlibpath_overrides_runpath=yes
  15600. ;;
  15601. esac
  15602. else
  15603. shlibpath_overrides_runpath=yes
  15604. fi
  15605. ;;
  15606. os2*)
  15607. libname_spec='$name'
  15608. shrext_cmds=".dll"
  15609. need_lib_prefix=no
  15610. library_names_spec='$libname${shared_ext} $libname.a'
  15611. dynamic_linker='OS/2 ld.exe'
  15612. shlibpath_var=LIBPATH
  15613. ;;
  15614. osf3* | osf4* | osf5*)
  15615. version_type=osf
  15616. need_lib_prefix=no
  15617. need_version=no
  15618. soname_spec='${libname}${release}${shared_ext}$major'
  15619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15620. shlibpath_var=LD_LIBRARY_PATH
  15621. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15622. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15623. ;;
  15624. solaris*)
  15625. version_type=linux
  15626. need_lib_prefix=no
  15627. need_version=no
  15628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15629. soname_spec='${libname}${release}${shared_ext}$major'
  15630. shlibpath_var=LD_LIBRARY_PATH
  15631. shlibpath_overrides_runpath=yes
  15632. hardcode_into_libs=yes
  15633. # ldd complains unless libraries are executable
  15634. postinstall_cmds='chmod +x $lib'
  15635. ;;
  15636. sunos4*)
  15637. version_type=sunos
  15638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15639. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15640. shlibpath_var=LD_LIBRARY_PATH
  15641. shlibpath_overrides_runpath=yes
  15642. if test "$with_gnu_ld" = yes; then
  15643. need_lib_prefix=no
  15644. fi
  15645. need_version=yes
  15646. ;;
  15647. sysv4 | sysv4.3*)
  15648. version_type=linux
  15649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15650. soname_spec='${libname}${release}${shared_ext}$major'
  15651. shlibpath_var=LD_LIBRARY_PATH
  15652. case $host_vendor in
  15653. sni)
  15654. shlibpath_overrides_runpath=no
  15655. need_lib_prefix=no
  15656. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15657. runpath_var=LD_RUN_PATH
  15658. ;;
  15659. siemens)
  15660. need_lib_prefix=no
  15661. ;;
  15662. motorola)
  15663. need_lib_prefix=no
  15664. need_version=no
  15665. shlibpath_overrides_runpath=no
  15666. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15667. ;;
  15668. esac
  15669. ;;
  15670. sysv4*MP*)
  15671. if test -d /usr/nec ;then
  15672. version_type=linux
  15673. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15674. soname_spec='$libname${shared_ext}.$major'
  15675. shlibpath_var=LD_LIBRARY_PATH
  15676. fi
  15677. ;;
  15678. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15679. version_type=freebsd-elf
  15680. need_lib_prefix=no
  15681. need_version=no
  15682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15683. soname_spec='${libname}${release}${shared_ext}$major'
  15684. shlibpath_var=LD_LIBRARY_PATH
  15685. hardcode_into_libs=yes
  15686. if test "$with_gnu_ld" = yes; then
  15687. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15688. shlibpath_overrides_runpath=no
  15689. else
  15690. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15691. shlibpath_overrides_runpath=yes
  15692. case $host_os in
  15693. sco3.2v5*)
  15694. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15695. ;;
  15696. esac
  15697. fi
  15698. sys_lib_dlsearch_path_spec='/usr/lib'
  15699. ;;
  15700. uts4*)
  15701. version_type=linux
  15702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15703. soname_spec='${libname}${release}${shared_ext}$major'
  15704. shlibpath_var=LD_LIBRARY_PATH
  15705. ;;
  15706. *)
  15707. dynamic_linker=no
  15708. ;;
  15709. esac
  15710. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15711. echo "${ECHO_T}$dynamic_linker" >&6; }
  15712. test "$dynamic_linker" = no && can_build_shared=no
  15713. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15714. if test "$GCC" = yes; then
  15715. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15716. fi
  15717. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15718. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  15719. hardcode_action_GCJ=
  15720. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15721. test -n "$runpath_var_GCJ" || \
  15722. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15723. # We can hardcode non-existant directories.
  15724. if test "$hardcode_direct_GCJ" != no &&
  15725. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15726. # have to relink, otherwise we might link with an installed library
  15727. # when we should be linking with a yet-to-be-installed one
  15728. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15729. test "$hardcode_minus_L_GCJ" != no; then
  15730. # Linking always hardcodes the temporary library directory.
  15731. hardcode_action_GCJ=relink
  15732. else
  15733. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15734. hardcode_action_GCJ=immediate
  15735. fi
  15736. else
  15737. # We cannot hardcode anything, or else we can only hardcode existing
  15738. # directories.
  15739. hardcode_action_GCJ=unsupported
  15740. fi
  15741. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15742. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  15743. if test "$hardcode_action_GCJ" = relink; then
  15744. # Fast installation is not supported
  15745. enable_fast_install=no
  15746. elif test "$shlibpath_overrides_runpath" = yes ||
  15747. test "$enable_shared" = no; then
  15748. # Fast installation is not necessary
  15749. enable_fast_install=needless
  15750. fi
  15751. # The else clause should only fire when bootstrapping the
  15752. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15753. # with your package, and you will get complaints that there are
  15754. # no rules to generate ltmain.sh.
  15755. if test -f "$ltmain"; then
  15756. # See if we are running on zsh, and set the options which allow our commands through
  15757. # without removal of \ escapes.
  15758. if test -n "${ZSH_VERSION+set}" ; then
  15759. setopt NO_GLOB_SUBST
  15760. fi
  15761. # Now quote all the things that may contain metacharacters while being
  15762. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15763. # variables and quote the copies for generation of the libtool script.
  15764. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15765. SED SHELL STRIP \
  15766. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15767. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15768. deplibs_check_method reload_flag reload_cmds need_locks \
  15769. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15770. lt_cv_sys_global_symbol_to_c_name_address \
  15771. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15772. old_postinstall_cmds old_postuninstall_cmds \
  15773. compiler_GCJ \
  15774. CC_GCJ \
  15775. LD_GCJ \
  15776. lt_prog_compiler_wl_GCJ \
  15777. lt_prog_compiler_pic_GCJ \
  15778. lt_prog_compiler_static_GCJ \
  15779. lt_prog_compiler_no_builtin_flag_GCJ \
  15780. export_dynamic_flag_spec_GCJ \
  15781. thread_safe_flag_spec_GCJ \
  15782. whole_archive_flag_spec_GCJ \
  15783. enable_shared_with_static_runtimes_GCJ \
  15784. old_archive_cmds_GCJ \
  15785. old_archive_from_new_cmds_GCJ \
  15786. predep_objects_GCJ \
  15787. postdep_objects_GCJ \
  15788. predeps_GCJ \
  15789. postdeps_GCJ \
  15790. compiler_lib_search_path_GCJ \
  15791. archive_cmds_GCJ \
  15792. archive_expsym_cmds_GCJ \
  15793. postinstall_cmds_GCJ \
  15794. postuninstall_cmds_GCJ \
  15795. old_archive_from_expsyms_cmds_GCJ \
  15796. allow_undefined_flag_GCJ \
  15797. no_undefined_flag_GCJ \
  15798. export_symbols_cmds_GCJ \
  15799. hardcode_libdir_flag_spec_GCJ \
  15800. hardcode_libdir_flag_spec_ld_GCJ \
  15801. hardcode_libdir_separator_GCJ \
  15802. hardcode_automatic_GCJ \
  15803. module_cmds_GCJ \
  15804. module_expsym_cmds_GCJ \
  15805. lt_cv_prog_compiler_c_o_GCJ \
  15806. exclude_expsyms_GCJ \
  15807. include_expsyms_GCJ; do
  15808. case $var in
  15809. old_archive_cmds_GCJ | \
  15810. old_archive_from_new_cmds_GCJ | \
  15811. archive_cmds_GCJ | \
  15812. archive_expsym_cmds_GCJ | \
  15813. module_cmds_GCJ | \
  15814. module_expsym_cmds_GCJ | \
  15815. old_archive_from_expsyms_cmds_GCJ | \
  15816. export_symbols_cmds_GCJ | \
  15817. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15818. postinstall_cmds | postuninstall_cmds | \
  15819. old_postinstall_cmds | old_postuninstall_cmds | \
  15820. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15821. # Double-quote double-evaled strings.
  15822. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15823. ;;
  15824. *)
  15825. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15826. ;;
  15827. esac
  15828. done
  15829. case $lt_echo in
  15830. *'\$0 --fallback-echo"')
  15831. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15832. ;;
  15833. esac
  15834. cfgfile="$ofile"
  15835. cat <<__EOF__ >> "$cfgfile"
  15836. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15837. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15838. # Shell to use when invoking shell scripts.
  15839. SHELL=$lt_SHELL
  15840. # Whether or not to build shared libraries.
  15841. build_libtool_libs=$enable_shared
  15842. # Whether or not to build static libraries.
  15843. build_old_libs=$enable_static
  15844. # Whether or not to add -lc for building shared libraries.
  15845. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  15846. # Whether or not to disallow shared libs when runtime libs are static
  15847. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  15848. # Whether or not to optimize for fast installation.
  15849. fast_install=$enable_fast_install
  15850. # The host system.
  15851. host_alias=$host_alias
  15852. host=$host
  15853. host_os=$host_os
  15854. # The build system.
  15855. build_alias=$build_alias
  15856. build=$build
  15857. build_os=$build_os
  15858. # An echo program that does not interpret backslashes.
  15859. echo=$lt_echo
  15860. # The archiver.
  15861. AR=$lt_AR
  15862. AR_FLAGS=$lt_AR_FLAGS
  15863. # A C compiler.
  15864. LTCC=$lt_LTCC
  15865. # LTCC compiler flags.
  15866. LTCFLAGS=$lt_LTCFLAGS
  15867. # A language-specific compiler.
  15868. CC=$lt_compiler_GCJ
  15869. # Is the compiler the GNU C compiler?
  15870. with_gcc=$GCC_GCJ
  15871. # An ERE matcher.
  15872. EGREP=$lt_EGREP
  15873. # The linker used to build libraries.
  15874. LD=$lt_LD_GCJ
  15875. # Whether we need hard or soft links.
  15876. LN_S=$lt_LN_S
  15877. # A BSD-compatible nm program.
  15878. NM=$lt_NM
  15879. # A symbol stripping program
  15880. STRIP=$lt_STRIP
  15881. # Used to examine libraries when file_magic_cmd begins "file"
  15882. MAGIC_CMD=$MAGIC_CMD
  15883. # Used on cygwin: DLL creation program.
  15884. DLLTOOL="$DLLTOOL"
  15885. # Used on cygwin: object dumper.
  15886. OBJDUMP="$OBJDUMP"
  15887. # Used on cygwin: assembler.
  15888. AS="$AS"
  15889. # The name of the directory that contains temporary libtool files.
  15890. objdir=$objdir
  15891. # How to create reloadable object files.
  15892. reload_flag=$lt_reload_flag
  15893. reload_cmds=$lt_reload_cmds
  15894. # How to pass a linker flag through the compiler.
  15895. wl=$lt_lt_prog_compiler_wl_GCJ
  15896. # Object file suffix (normally "o").
  15897. objext="$ac_objext"
  15898. # Old archive suffix (normally "a").
  15899. libext="$libext"
  15900. # Shared library suffix (normally ".so").
  15901. shrext_cmds='$shrext_cmds'
  15902. # Executable file suffix (normally "").
  15903. exeext="$exeext"
  15904. # Additional compiler flags for building library objects.
  15905. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  15906. pic_mode=$pic_mode
  15907. # What is the maximum length of a command?
  15908. max_cmd_len=$lt_cv_sys_max_cmd_len
  15909. # Does compiler simultaneously support -c and -o options?
  15910. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  15911. # Must we lock files when doing compilation?
  15912. need_locks=$lt_need_locks
  15913. # Do we need the lib prefix for modules?
  15914. need_lib_prefix=$need_lib_prefix
  15915. # Do we need a version for libraries?
  15916. need_version=$need_version
  15917. # Whether dlopen is supported.
  15918. dlopen_support=$enable_dlopen
  15919. # Whether dlopen of programs is supported.
  15920. dlopen_self=$enable_dlopen_self
  15921. # Whether dlopen of statically linked programs is supported.
  15922. dlopen_self_static=$enable_dlopen_self_static
  15923. # Compiler flag to prevent dynamic linking.
  15924. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  15925. # Compiler flag to turn off builtin functions.
  15926. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  15927. # Compiler flag to allow reflexive dlopens.
  15928. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  15929. # Compiler flag to generate shared objects directly from archives.
  15930. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  15931. # Compiler flag to generate thread-safe objects.
  15932. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  15933. # Library versioning type.
  15934. version_type=$version_type
  15935. # Format of library name prefix.
  15936. libname_spec=$lt_libname_spec
  15937. # List of archive names. First name is the real one, the rest are links.
  15938. # The last name is the one that the linker finds with -lNAME.
  15939. library_names_spec=$lt_library_names_spec
  15940. # The coded name of the library, if different from the real name.
  15941. soname_spec=$lt_soname_spec
  15942. # Commands used to build and install an old-style archive.
  15943. RANLIB=$lt_RANLIB
  15944. old_archive_cmds=$lt_old_archive_cmds_GCJ
  15945. old_postinstall_cmds=$lt_old_postinstall_cmds
  15946. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15947. # Create an old-style archive from a shared archive.
  15948. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  15949. # Create a temporary old-style archive to link instead of a shared archive.
  15950. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  15951. # Commands used to build and install a shared archive.
  15952. archive_cmds=$lt_archive_cmds_GCJ
  15953. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  15954. postinstall_cmds=$lt_postinstall_cmds
  15955. postuninstall_cmds=$lt_postuninstall_cmds
  15956. # Commands used to build a loadable module (assumed same as above if empty)
  15957. module_cmds=$lt_module_cmds_GCJ
  15958. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  15959. # Commands to strip libraries.
  15960. old_striplib=$lt_old_striplib
  15961. striplib=$lt_striplib
  15962. # Dependencies to place before the objects being linked to create a
  15963. # shared library.
  15964. predep_objects=$lt_predep_objects_GCJ
  15965. # Dependencies to place after the objects being linked to create a
  15966. # shared library.
  15967. postdep_objects=$lt_postdep_objects_GCJ
  15968. # Dependencies to place before the objects being linked to create a
  15969. # shared library.
  15970. predeps=$lt_predeps_GCJ
  15971. # Dependencies to place after the objects being linked to create a
  15972. # shared library.
  15973. postdeps=$lt_postdeps_GCJ
  15974. # The library search path used internally by the compiler when linking
  15975. # a shared library.
  15976. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  15977. # Method to check whether dependent libraries are shared objects.
  15978. deplibs_check_method=$lt_deplibs_check_method
  15979. # Command to use when deplibs_check_method == file_magic.
  15980. file_magic_cmd=$lt_file_magic_cmd
  15981. # Flag that allows shared libraries with undefined symbols to be built.
  15982. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  15983. # Flag that forces no undefined symbols.
  15984. no_undefined_flag=$lt_no_undefined_flag_GCJ
  15985. # Commands used to finish a libtool library installation in a directory.
  15986. finish_cmds=$lt_finish_cmds
  15987. # Same as above, but a single script fragment to be evaled but not shown.
  15988. finish_eval=$lt_finish_eval
  15989. # Take the output of nm and produce a listing of raw symbols and C names.
  15990. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15991. # Transform the output of nm in a proper C declaration
  15992. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15993. # Transform the output of nm in a C name address pair
  15994. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15995. # This is the shared library runtime path variable.
  15996. runpath_var=$runpath_var
  15997. # This is the shared library path variable.
  15998. shlibpath_var=$shlibpath_var
  15999. # Is shlibpath searched before the hard-coded library search path?
  16000. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16001. # How to hardcode a shared library path into an executable.
  16002. hardcode_action=$hardcode_action_GCJ
  16003. # Whether we should hardcode library paths into libraries.
  16004. hardcode_into_libs=$hardcode_into_libs
  16005. # Flag to hardcode \$libdir into a binary during linking.
  16006. # This must work even if \$libdir does not exist.
  16007. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16008. # If ld is used when linking, flag to hardcode \$libdir into
  16009. # a binary during linking. This must work even if \$libdir does
  16010. # not exist.
  16011. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16012. # Whether we need a single -rpath flag with a separated argument.
  16013. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16014. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16015. # resulting binary.
  16016. hardcode_direct=$hardcode_direct_GCJ
  16017. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16018. # resulting binary.
  16019. hardcode_minus_L=$hardcode_minus_L_GCJ
  16020. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16021. # the resulting binary.
  16022. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16023. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16024. # and all subsequent libraries and executables linked against it.
  16025. hardcode_automatic=$hardcode_automatic_GCJ
  16026. # Variables whose values should be saved in libtool wrapper scripts and
  16027. # restored at relink time.
  16028. variables_saved_for_relink="$variables_saved_for_relink"
  16029. # Whether libtool must link a program against all its dependency libraries.
  16030. link_all_deplibs=$link_all_deplibs_GCJ
  16031. # Compile-time system search path for libraries
  16032. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16033. # Run-time system search path for libraries
  16034. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16035. # Fix the shell variable \$srcfile for the compiler.
  16036. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16037. # Set to yes if exported symbols are required.
  16038. always_export_symbols=$always_export_symbols_GCJ
  16039. # The commands to list exported symbols.
  16040. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16041. # The commands to extract the exported symbol list from a shared archive.
  16042. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16043. # Symbols that should not be listed in the preloaded symbols.
  16044. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16045. # Symbols that must always be exported.
  16046. include_expsyms=$lt_include_expsyms_GCJ
  16047. # ### END LIBTOOL TAG CONFIG: $tagname
  16048. __EOF__
  16049. else
  16050. # If there is no Makefile yet, we rely on a make rule to execute
  16051. # `config.status --recheck' to rerun these tests and create the
  16052. # libtool script then.
  16053. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16054. if test -f "$ltmain_in"; then
  16055. test -f Makefile && make "$ltmain"
  16056. fi
  16057. fi
  16058. ac_ext=c
  16059. ac_cpp='$CPP $CPPFLAGS'
  16060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16063. CC="$lt_save_CC"
  16064. else
  16065. tagname=""
  16066. fi
  16067. ;;
  16068. RC)
  16069. # Source file extension for RC test sources.
  16070. ac_ext=rc
  16071. # Object file extension for compiled RC test sources.
  16072. objext=o
  16073. objext_RC=$objext
  16074. # Code to be used in simple compile tests
  16075. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16076. # Code to be used in simple link tests
  16077. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16078. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16079. # If no C compiler was specified, use CC.
  16080. LTCC=${LTCC-"$CC"}
  16081. # If no C compiler flags were specified, use CFLAGS.
  16082. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16083. # Allow CC to be a program name with arguments.
  16084. compiler=$CC
  16085. # save warnings/boilerplate of simple test code
  16086. ac_outfile=conftest.$ac_objext
  16087. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16088. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16089. _lt_compiler_boilerplate=`cat conftest.err`
  16090. $rm conftest*
  16091. ac_outfile=conftest.$ac_objext
  16092. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16093. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16094. _lt_linker_boilerplate=`cat conftest.err`
  16095. $rm conftest*
  16096. # Allow CC to be a program name with arguments.
  16097. lt_save_CC="$CC"
  16098. CC=${RC-"windres"}
  16099. compiler=$CC
  16100. compiler_RC=$CC
  16101. for cc_temp in $compiler""; do
  16102. case $cc_temp in
  16103. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16104. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16105. \-*) ;;
  16106. *) break;;
  16107. esac
  16108. done
  16109. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16110. lt_cv_prog_compiler_c_o_RC=yes
  16111. # The else clause should only fire when bootstrapping the
  16112. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16113. # with your package, and you will get complaints that there are
  16114. # no rules to generate ltmain.sh.
  16115. if test -f "$ltmain"; then
  16116. # See if we are running on zsh, and set the options which allow our commands through
  16117. # without removal of \ escapes.
  16118. if test -n "${ZSH_VERSION+set}" ; then
  16119. setopt NO_GLOB_SUBST
  16120. fi
  16121. # Now quote all the things that may contain metacharacters while being
  16122. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16123. # variables and quote the copies for generation of the libtool script.
  16124. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16125. SED SHELL STRIP \
  16126. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16127. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16128. deplibs_check_method reload_flag reload_cmds need_locks \
  16129. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16130. lt_cv_sys_global_symbol_to_c_name_address \
  16131. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16132. old_postinstall_cmds old_postuninstall_cmds \
  16133. compiler_RC \
  16134. CC_RC \
  16135. LD_RC \
  16136. lt_prog_compiler_wl_RC \
  16137. lt_prog_compiler_pic_RC \
  16138. lt_prog_compiler_static_RC \
  16139. lt_prog_compiler_no_builtin_flag_RC \
  16140. export_dynamic_flag_spec_RC \
  16141. thread_safe_flag_spec_RC \
  16142. whole_archive_flag_spec_RC \
  16143. enable_shared_with_static_runtimes_RC \
  16144. old_archive_cmds_RC \
  16145. old_archive_from_new_cmds_RC \
  16146. predep_objects_RC \
  16147. postdep_objects_RC \
  16148. predeps_RC \
  16149. postdeps_RC \
  16150. compiler_lib_search_path_RC \
  16151. archive_cmds_RC \
  16152. archive_expsym_cmds_RC \
  16153. postinstall_cmds_RC \
  16154. postuninstall_cmds_RC \
  16155. old_archive_from_expsyms_cmds_RC \
  16156. allow_undefined_flag_RC \
  16157. no_undefined_flag_RC \
  16158. export_symbols_cmds_RC \
  16159. hardcode_libdir_flag_spec_RC \
  16160. hardcode_libdir_flag_spec_ld_RC \
  16161. hardcode_libdir_separator_RC \
  16162. hardcode_automatic_RC \
  16163. module_cmds_RC \
  16164. module_expsym_cmds_RC \
  16165. lt_cv_prog_compiler_c_o_RC \
  16166. exclude_expsyms_RC \
  16167. include_expsyms_RC; do
  16168. case $var in
  16169. old_archive_cmds_RC | \
  16170. old_archive_from_new_cmds_RC | \
  16171. archive_cmds_RC | \
  16172. archive_expsym_cmds_RC | \
  16173. module_cmds_RC | \
  16174. module_expsym_cmds_RC | \
  16175. old_archive_from_expsyms_cmds_RC | \
  16176. export_symbols_cmds_RC | \
  16177. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16178. postinstall_cmds | postuninstall_cmds | \
  16179. old_postinstall_cmds | old_postuninstall_cmds | \
  16180. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16181. # Double-quote double-evaled strings.
  16182. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16183. ;;
  16184. *)
  16185. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16186. ;;
  16187. esac
  16188. done
  16189. case $lt_echo in
  16190. *'\$0 --fallback-echo"')
  16191. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16192. ;;
  16193. esac
  16194. cfgfile="$ofile"
  16195. cat <<__EOF__ >> "$cfgfile"
  16196. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16197. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16198. # Shell to use when invoking shell scripts.
  16199. SHELL=$lt_SHELL
  16200. # Whether or not to build shared libraries.
  16201. build_libtool_libs=$enable_shared
  16202. # Whether or not to build static libraries.
  16203. build_old_libs=$enable_static
  16204. # Whether or not to add -lc for building shared libraries.
  16205. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16206. # Whether or not to disallow shared libs when runtime libs are static
  16207. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16208. # Whether or not to optimize for fast installation.
  16209. fast_install=$enable_fast_install
  16210. # The host system.
  16211. host_alias=$host_alias
  16212. host=$host
  16213. host_os=$host_os
  16214. # The build system.
  16215. build_alias=$build_alias
  16216. build=$build
  16217. build_os=$build_os
  16218. # An echo program that does not interpret backslashes.
  16219. echo=$lt_echo
  16220. # The archiver.
  16221. AR=$lt_AR
  16222. AR_FLAGS=$lt_AR_FLAGS
  16223. # A C compiler.
  16224. LTCC=$lt_LTCC
  16225. # LTCC compiler flags.
  16226. LTCFLAGS=$lt_LTCFLAGS
  16227. # A language-specific compiler.
  16228. CC=$lt_compiler_RC
  16229. # Is the compiler the GNU C compiler?
  16230. with_gcc=$GCC_RC
  16231. # An ERE matcher.
  16232. EGREP=$lt_EGREP
  16233. # The linker used to build libraries.
  16234. LD=$lt_LD_RC
  16235. # Whether we need hard or soft links.
  16236. LN_S=$lt_LN_S
  16237. # A BSD-compatible nm program.
  16238. NM=$lt_NM
  16239. # A symbol stripping program
  16240. STRIP=$lt_STRIP
  16241. # Used to examine libraries when file_magic_cmd begins "file"
  16242. MAGIC_CMD=$MAGIC_CMD
  16243. # Used on cygwin: DLL creation program.
  16244. DLLTOOL="$DLLTOOL"
  16245. # Used on cygwin: object dumper.
  16246. OBJDUMP="$OBJDUMP"
  16247. # Used on cygwin: assembler.
  16248. AS="$AS"
  16249. # The name of the directory that contains temporary libtool files.
  16250. objdir=$objdir
  16251. # How to create reloadable object files.
  16252. reload_flag=$lt_reload_flag
  16253. reload_cmds=$lt_reload_cmds
  16254. # How to pass a linker flag through the compiler.
  16255. wl=$lt_lt_prog_compiler_wl_RC
  16256. # Object file suffix (normally "o").
  16257. objext="$ac_objext"
  16258. # Old archive suffix (normally "a").
  16259. libext="$libext"
  16260. # Shared library suffix (normally ".so").
  16261. shrext_cmds='$shrext_cmds'
  16262. # Executable file suffix (normally "").
  16263. exeext="$exeext"
  16264. # Additional compiler flags for building library objects.
  16265. pic_flag=$lt_lt_prog_compiler_pic_RC
  16266. pic_mode=$pic_mode
  16267. # What is the maximum length of a command?
  16268. max_cmd_len=$lt_cv_sys_max_cmd_len
  16269. # Does compiler simultaneously support -c and -o options?
  16270. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16271. # Must we lock files when doing compilation?
  16272. need_locks=$lt_need_locks
  16273. # Do we need the lib prefix for modules?
  16274. need_lib_prefix=$need_lib_prefix
  16275. # Do we need a version for libraries?
  16276. need_version=$need_version
  16277. # Whether dlopen is supported.
  16278. dlopen_support=$enable_dlopen
  16279. # Whether dlopen of programs is supported.
  16280. dlopen_self=$enable_dlopen_self
  16281. # Whether dlopen of statically linked programs is supported.
  16282. dlopen_self_static=$enable_dlopen_self_static
  16283. # Compiler flag to prevent dynamic linking.
  16284. link_static_flag=$lt_lt_prog_compiler_static_RC
  16285. # Compiler flag to turn off builtin functions.
  16286. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16287. # Compiler flag to allow reflexive dlopens.
  16288. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16289. # Compiler flag to generate shared objects directly from archives.
  16290. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16291. # Compiler flag to generate thread-safe objects.
  16292. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16293. # Library versioning type.
  16294. version_type=$version_type
  16295. # Format of library name prefix.
  16296. libname_spec=$lt_libname_spec
  16297. # List of archive names. First name is the real one, the rest are links.
  16298. # The last name is the one that the linker finds with -lNAME.
  16299. library_names_spec=$lt_library_names_spec
  16300. # The coded name of the library, if different from the real name.
  16301. soname_spec=$lt_soname_spec
  16302. # Commands used to build and install an old-style archive.
  16303. RANLIB=$lt_RANLIB
  16304. old_archive_cmds=$lt_old_archive_cmds_RC
  16305. old_postinstall_cmds=$lt_old_postinstall_cmds
  16306. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16307. # Create an old-style archive from a shared archive.
  16308. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16309. # Create a temporary old-style archive to link instead of a shared archive.
  16310. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16311. # Commands used to build and install a shared archive.
  16312. archive_cmds=$lt_archive_cmds_RC
  16313. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16314. postinstall_cmds=$lt_postinstall_cmds
  16315. postuninstall_cmds=$lt_postuninstall_cmds
  16316. # Commands used to build a loadable module (assumed same as above if empty)
  16317. module_cmds=$lt_module_cmds_RC
  16318. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16319. # Commands to strip libraries.
  16320. old_striplib=$lt_old_striplib
  16321. striplib=$lt_striplib
  16322. # Dependencies to place before the objects being linked to create a
  16323. # shared library.
  16324. predep_objects=$lt_predep_objects_RC
  16325. # Dependencies to place after the objects being linked to create a
  16326. # shared library.
  16327. postdep_objects=$lt_postdep_objects_RC
  16328. # Dependencies to place before the objects being linked to create a
  16329. # shared library.
  16330. predeps=$lt_predeps_RC
  16331. # Dependencies to place after the objects being linked to create a
  16332. # shared library.
  16333. postdeps=$lt_postdeps_RC
  16334. # The library search path used internally by the compiler when linking
  16335. # a shared library.
  16336. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  16337. # Method to check whether dependent libraries are shared objects.
  16338. deplibs_check_method=$lt_deplibs_check_method
  16339. # Command to use when deplibs_check_method == file_magic.
  16340. file_magic_cmd=$lt_file_magic_cmd
  16341. # Flag that allows shared libraries with undefined symbols to be built.
  16342. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16343. # Flag that forces no undefined symbols.
  16344. no_undefined_flag=$lt_no_undefined_flag_RC
  16345. # Commands used to finish a libtool library installation in a directory.
  16346. finish_cmds=$lt_finish_cmds
  16347. # Same as above, but a single script fragment to be evaled but not shown.
  16348. finish_eval=$lt_finish_eval
  16349. # Take the output of nm and produce a listing of raw symbols and C names.
  16350. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16351. # Transform the output of nm in a proper C declaration
  16352. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16353. # Transform the output of nm in a C name address pair
  16354. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16355. # This is the shared library runtime path variable.
  16356. runpath_var=$runpath_var
  16357. # This is the shared library path variable.
  16358. shlibpath_var=$shlibpath_var
  16359. # Is shlibpath searched before the hard-coded library search path?
  16360. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16361. # How to hardcode a shared library path into an executable.
  16362. hardcode_action=$hardcode_action_RC
  16363. # Whether we should hardcode library paths into libraries.
  16364. hardcode_into_libs=$hardcode_into_libs
  16365. # Flag to hardcode \$libdir into a binary during linking.
  16366. # This must work even if \$libdir does not exist.
  16367. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16368. # If ld is used when linking, flag to hardcode \$libdir into
  16369. # a binary during linking. This must work even if \$libdir does
  16370. # not exist.
  16371. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16372. # Whether we need a single -rpath flag with a separated argument.
  16373. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16374. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16375. # resulting binary.
  16376. hardcode_direct=$hardcode_direct_RC
  16377. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16378. # resulting binary.
  16379. hardcode_minus_L=$hardcode_minus_L_RC
  16380. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16381. # the resulting binary.
  16382. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16383. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16384. # and all subsequent libraries and executables linked against it.
  16385. hardcode_automatic=$hardcode_automatic_RC
  16386. # Variables whose values should be saved in libtool wrapper scripts and
  16387. # restored at relink time.
  16388. variables_saved_for_relink="$variables_saved_for_relink"
  16389. # Whether libtool must link a program against all its dependency libraries.
  16390. link_all_deplibs=$link_all_deplibs_RC
  16391. # Compile-time system search path for libraries
  16392. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16393. # Run-time system search path for libraries
  16394. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16395. # Fix the shell variable \$srcfile for the compiler.
  16396. fix_srcfile_path="$fix_srcfile_path_RC"
  16397. # Set to yes if exported symbols are required.
  16398. always_export_symbols=$always_export_symbols_RC
  16399. # The commands to list exported symbols.
  16400. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16401. # The commands to extract the exported symbol list from a shared archive.
  16402. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16403. # Symbols that should not be listed in the preloaded symbols.
  16404. exclude_expsyms=$lt_exclude_expsyms_RC
  16405. # Symbols that must always be exported.
  16406. include_expsyms=$lt_include_expsyms_RC
  16407. # ### END LIBTOOL TAG CONFIG: $tagname
  16408. __EOF__
  16409. else
  16410. # If there is no Makefile yet, we rely on a make rule to execute
  16411. # `config.status --recheck' to rerun these tests and create the
  16412. # libtool script then.
  16413. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16414. if test -f "$ltmain_in"; then
  16415. test -f Makefile && make "$ltmain"
  16416. fi
  16417. fi
  16418. ac_ext=c
  16419. ac_cpp='$CPP $CPPFLAGS'
  16420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16423. CC="$lt_save_CC"
  16424. ;;
  16425. *)
  16426. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16427. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16428. { (exit 1); exit 1; }; }
  16429. ;;
  16430. esac
  16431. # Append the new tag name to the list of available tags.
  16432. if test -n "$tagname" ; then
  16433. available_tags="$available_tags $tagname"
  16434. fi
  16435. fi
  16436. done
  16437. IFS="$lt_save_ifs"
  16438. # Now substitute the updated list of available tags.
  16439. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16440. mv "${ofile}T" "$ofile"
  16441. chmod +x "$ofile"
  16442. else
  16443. rm -f "${ofile}T"
  16444. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16445. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16446. { (exit 1); exit 1; }; }
  16447. fi
  16448. fi
  16449. # This can be used to rebuild libtool when needed
  16450. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16451. # Always use our own libtool.
  16452. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16453. # Prevent multiple expansion
  16454. MAJOR_VERSION=3
  16455. MINOR_VERSION=0
  16456. MICRO_VERSION=RC1
  16457. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  16458. TCPREPLAY_RELEASE=1
  16459. cat >>confdefs.h <<\_ACEOF
  16460. #define PACKAGE tcpreplay
  16461. _ACEOF
  16462. cat >>confdefs.h <<_ACEOF
  16463. #define VERSION "$TCPREPLAY_VERSION"
  16464. _ACEOF
  16465. CFLAGS="$CFLAGS -Wall -O2 -funroll-loops -std=gnu99"
  16466. # Make sure we can run config.sub.
  16467. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  16468. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  16469. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  16470. { (exit 1); exit 1; }; }
  16471. { echo "$as_me:$LINENO: checking build system type" >&5
  16472. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  16473. if test "${ac_cv_build+set}" = set; then
  16474. echo $ECHO_N "(cached) $ECHO_C" >&6
  16475. else
  16476. ac_build_alias=$build_alias
  16477. test "x$ac_build_alias" = x &&
  16478. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  16479. test "x$ac_build_alias" = x &&
  16480. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  16481. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  16482. { (exit 1); exit 1; }; }
  16483. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  16484. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  16485. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  16486. { (exit 1); exit 1; }; }
  16487. fi
  16488. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  16489. echo "${ECHO_T}$ac_cv_build" >&6; }
  16490. case $ac_cv_build in
  16491. *-*-*) ;;
  16492. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  16493. echo "$as_me: error: invalid value of canonical build" >&2;}
  16494. { (exit 1); exit 1; }; };;
  16495. esac
  16496. build=$ac_cv_build
  16497. ac_save_IFS=$IFS; IFS='-'
  16498. set x $ac_cv_build
  16499. shift
  16500. build_cpu=$1
  16501. build_vendor=$2
  16502. shift; shift
  16503. # Remember, the first character of IFS is used to create $*,
  16504. # except with old shells:
  16505. build_os=$*
  16506. IFS=$ac_save_IFS
  16507. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  16508. { echo "$as_me:$LINENO: checking host system type" >&5
  16509. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  16510. if test "${ac_cv_host+set}" = set; then
  16511. echo $ECHO_N "(cached) $ECHO_C" >&6
  16512. else
  16513. if test "x$host_alias" = x; then
  16514. ac_cv_host=$ac_cv_build
  16515. else
  16516. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  16517. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  16518. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  16519. { (exit 1); exit 1; }; }
  16520. fi
  16521. fi
  16522. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  16523. echo "${ECHO_T}$ac_cv_host" >&6; }
  16524. case $ac_cv_host in
  16525. *-*-*) ;;
  16526. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  16527. echo "$as_me: error: invalid value of canonical host" >&2;}
  16528. { (exit 1); exit 1; }; };;
  16529. esac
  16530. host=$ac_cv_host
  16531. ac_save_IFS=$IFS; IFS='-'
  16532. set x $ac_cv_host
  16533. shift
  16534. host_cpu=$1
  16535. host_vendor=$2
  16536. shift; shift
  16537. # Remember, the first character of IFS is used to create $*,
  16538. # except with old shells:
  16539. host_os=$*
  16540. IFS=$ac_save_IFS
  16541. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  16542. { echo "$as_me:$LINENO: checking target system type" >&5
  16543. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  16544. if test "${ac_cv_target+set}" = set; then
  16545. echo $ECHO_N "(cached) $ECHO_C" >&6
  16546. else
  16547. if test "x$target_alias" = x; then
  16548. ac_cv_target=$ac_cv_host
  16549. else
  16550. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  16551. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  16552. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  16553. { (exit 1); exit 1; }; }
  16554. fi
  16555. fi
  16556. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  16557. echo "${ECHO_T}$ac_cv_target" >&6; }
  16558. case $ac_cv_target in
  16559. *-*-*) ;;
  16560. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  16561. echo "$as_me: error: invalid value of canonical target" >&2;}
  16562. { (exit 1); exit 1; }; };;
  16563. esac
  16564. target=$ac_cv_target
  16565. ac_save_IFS=$IFS; IFS='-'
  16566. set x $ac_cv_target
  16567. shift
  16568. target_cpu=$1
  16569. target_vendor=$2
  16570. shift; shift
  16571. # Remember, the first character of IFS is used to create $*,
  16572. # except with old shells:
  16573. target_os=$*
  16574. IFS=$ac_save_IFS
  16575. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  16576. # The aliases save the names the user supplied, while $host etc.
  16577. # will get canonicalized.
  16578. test -n "$target_alias" &&
  16579. test "$program_prefix$program_suffix$program_transform_name" = \
  16580. NONENONEs,x,x, &&
  16581. program_prefix=${target_alias}-
  16582. { echo "$as_me:$LINENO: checking for cygwin development environment" >&5
  16583. echo $ECHO_N "checking for cygwin development environment... $ECHO_C" >&6; }
  16584. if test `echo $target | grep -c cygwin` -gt 0 ; then
  16585. cat >>confdefs.h <<\_ACEOF
  16586. #define HAVE_WIN32 1
  16587. _ACEOF
  16588. { echo "$as_me:$LINENO: result: yes" >&5
  16589. echo "${ECHO_T}yes" >&6; }
  16590. else
  16591. { echo "$as_me:$LINENO: result: no" >&5
  16592. echo "${ECHO_T}no" >&6; }
  16593. fi
  16594. am__api_version='1.10'
  16595. # Find a good install program. We prefer a C program (faster),
  16596. # so one script is as good as another. But avoid the broken or
  16597. # incompatible versions:
  16598. # SysV /etc/install, /usr/sbin/install
  16599. # SunOS /usr/etc/install
  16600. # IRIX /sbin/install
  16601. # AIX /bin/install
  16602. # AmigaOS /C/install, which installs bootblocks on floppy discs
  16603. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  16604. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  16605. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  16606. # OS/2's system install, which has a completely different semantic
  16607. # ./install, which can be erroneously created by make from ./install.sh.
  16608. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  16609. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  16610. if test -z "$INSTALL"; then
  16611. if test "${ac_cv_path_install+set}" = set; then
  16612. echo $ECHO_N "(cached) $ECHO_C" >&6
  16613. else
  16614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16615. for as_dir in $PATH
  16616. do
  16617. IFS=$as_save_IFS
  16618. test -z "$as_dir" && as_dir=.
  16619. # Account for people who put trailing slashes in PATH elements.
  16620. case $as_dir/ in
  16621. ./ | .// | /cC/* | \
  16622. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  16623. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  16624. /usr/ucb/* ) ;;
  16625. *)
  16626. # OSF1 and SCO ODT 3.0 have their own names for install.
  16627. # Don't use installbsd from OSF since it installs stuff as root
  16628. # by default.
  16629. for ac_prog in ginstall scoinst install; do
  16630. for ac_exec_ext in '' $ac_executable_extensions; do
  16631. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  16632. if test $ac_prog = install &&
  16633. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16634. # AIX install. It has an incompatible calling convention.
  16635. :
  16636. elif test $ac_prog = install &&
  16637. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16638. # program-specific install script used by HP pwplus--don't use.
  16639. :
  16640. else
  16641. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  16642. break 3
  16643. fi
  16644. fi
  16645. done
  16646. done
  16647. ;;
  16648. esac
  16649. done
  16650. IFS=$as_save_IFS
  16651. fi
  16652. if test "${ac_cv_path_install+set}" = set; then
  16653. INSTALL=$ac_cv_path_install
  16654. else
  16655. # As a last resort, use the slow shell script. Don't cache a
  16656. # value for INSTALL within a source directory, because that will
  16657. # break other packages using the cache if that directory is
  16658. # removed, or if the value is a relative name.
  16659. INSTALL=$ac_install_sh
  16660. fi
  16661. fi
  16662. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  16663. echo "${ECHO_T}$INSTALL" >&6; }
  16664. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  16665. # It thinks the first close brace ends the variable substitution.
  16666. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  16667. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  16668. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  16669. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  16670. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  16671. # Just in case
  16672. sleep 1
  16673. echo timestamp > conftest.file
  16674. # Do `set' in a subshell so we don't clobber the current shell's
  16675. # arguments. Must try -L first in case configure is actually a
  16676. # symlink; some systems play weird games with the mod time of symlinks
  16677. # (eg FreeBSD returns the mod time of the symlink's containing
  16678. # directory).
  16679. if (
  16680. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  16681. if test "$*" = "X"; then
  16682. # -L didn't work.
  16683. set X `ls -t $srcdir/configure conftest.file`
  16684. fi
  16685. rm -f conftest.file
  16686. if test "$*" != "X $srcdir/configure conftest.file" \
  16687. && test "$*" != "X conftest.file $srcdir/configure"; then
  16688. # If neither matched, then we have a broken ls. This can happen
  16689. # if, for instance, CONFIG_SHELL is bash and it inherits a
  16690. # broken ls alias from the environment. This has actually
  16691. # happened. Such a system could not be considered "sane".
  16692. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  16693. alias in your environment" >&5
  16694. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  16695. alias in your environment" >&2;}
  16696. { (exit 1); exit 1; }; }
  16697. fi
  16698. test "$2" = conftest.file
  16699. )
  16700. then
  16701. # Ok.
  16702. :
  16703. else
  16704. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  16705. Check your system clock" >&5
  16706. echo "$as_me: error: newly created file is older than distributed files!
  16707. Check your system clock" >&2;}
  16708. { (exit 1); exit 1; }; }
  16709. fi
  16710. { echo "$as_me:$LINENO: result: yes" >&5
  16711. echo "${ECHO_T}yes" >&6; }
  16712. test "$program_prefix" != NONE &&
  16713. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  16714. # Use a double $ so make ignores it.
  16715. test "$program_suffix" != NONE &&
  16716. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  16717. # Double any \ or $. echo might interpret backslashes.
  16718. # By default was `s,x,x', remove it if useless.
  16719. cat <<\_ACEOF >conftest.sed
  16720. s/[\\$]/&&/g;s/;s,x,x,$//
  16721. _ACEOF
  16722. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  16723. rm -f conftest.sed
  16724. # expand $ac_aux_dir to an absolute path
  16725. am_aux_dir=`cd $ac_aux_dir && pwd`
  16726. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  16727. # Use eval to expand $SHELL
  16728. if eval "$MISSING --run true"; then
  16729. am_missing_run="$MISSING --run "
  16730. else
  16731. am_missing_run=
  16732. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  16733. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  16734. fi
  16735. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  16736. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  16737. if test -z "$MKDIR_P"; then
  16738. if test "${ac_cv_path_mkdir+set}" = set; then
  16739. echo $ECHO_N "(cached) $ECHO_C" >&6
  16740. else
  16741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16742. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  16743. do
  16744. IFS=$as_save_IFS
  16745. test -z "$as_dir" && as_dir=.
  16746. for ac_prog in mkdir gmkdir; do
  16747. for ac_exec_ext in '' $ac_executable_extensions; do
  16748. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  16749. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  16750. 'mkdir (GNU coreutils) '* | \
  16751. 'mkdir (coreutils) '* | \
  16752. 'mkdir (fileutils) '4.1*)
  16753. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  16754. break 3;;
  16755. esac
  16756. done
  16757. done
  16758. done
  16759. IFS=$as_save_IFS
  16760. fi
  16761. if test "${ac_cv_path_mkdir+set}" = set; then
  16762. MKDIR_P="$ac_cv_path_mkdir -p"
  16763. else
  16764. # As a last resort, use the slow shell script. Don't cache a
  16765. # value for MKDIR_P within a source directory, because that will
  16766. # break other packages using the cache if that directory is
  16767. # removed, or if the value is a relative name.
  16768. test -d ./--version && rmdir ./--version
  16769. MKDIR_P="$ac_install_sh -d"
  16770. fi
  16771. fi
  16772. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  16773. echo "${ECHO_T}$MKDIR_P" >&6; }
  16774. mkdir_p="$MKDIR_P"
  16775. case $mkdir_p in
  16776. [\\/$]* | ?:[\\/]*) ;;
  16777. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  16778. esac
  16779. for ac_prog in gawk mawk nawk awk
  16780. do
  16781. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16782. set dummy $ac_prog; ac_word=$2
  16783. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  16784. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16785. if test "${ac_cv_prog_AWK+set}" = set; then
  16786. echo $ECHO_N "(cached) $ECHO_C" >&6
  16787. else
  16788. if test -n "$AWK"; then
  16789. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  16790. else
  16791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16792. for as_dir in $PATH
  16793. do
  16794. IFS=$as_save_IFS
  16795. test -z "$as_dir" && as_dir=.
  16796. for ac_exec_ext in '' $ac_executable_extensions; do
  16797. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16798. ac_cv_prog_AWK="$ac_prog"
  16799. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16800. break 2
  16801. fi
  16802. done
  16803. done
  16804. IFS=$as_save_IFS
  16805. fi
  16806. fi
  16807. AWK=$ac_cv_prog_AWK
  16808. if test -n "$AWK"; then
  16809. { echo "$as_me:$LINENO: result: $AWK" >&5
  16810. echo "${ECHO_T}$AWK" >&6; }
  16811. else
  16812. { echo "$as_me:$LINENO: result: no" >&5
  16813. echo "${ECHO_T}no" >&6; }
  16814. fi
  16815. test -n "$AWK" && break
  16816. done
  16817. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  16818. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  16819. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  16820. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  16821. echo $ECHO_N "(cached) $ECHO_C" >&6
  16822. else
  16823. cat >conftest.make <<\_ACEOF
  16824. SHELL = /bin/sh
  16825. all:
  16826. @echo '@@@%%%=$(MAKE)=@@@%%%'
  16827. _ACEOF
  16828. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  16829. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  16830. *@@@%%%=?*=@@@%%%*)
  16831. eval ac_cv_prog_make_${ac_make}_set=yes;;
  16832. *)
  16833. eval ac_cv_prog_make_${ac_make}_set=no;;
  16834. esac
  16835. rm -f conftest.make
  16836. fi
  16837. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  16838. { echo "$as_me:$LINENO: result: yes" >&5
  16839. echo "${ECHO_T}yes" >&6; }
  16840. SET_MAKE=
  16841. else
  16842. { echo "$as_me:$LINENO: result: no" >&5
  16843. echo "${ECHO_T}no" >&6; }
  16844. SET_MAKE="MAKE=${MAKE-make}"
  16845. fi
  16846. rm -rf .tst 2>/dev/null
  16847. mkdir .tst 2>/dev/null
  16848. if test -d .tst; then
  16849. am__leading_dot=.
  16850. else
  16851. am__leading_dot=_
  16852. fi
  16853. rmdir .tst 2>/dev/null
  16854. DEPDIR="${am__leading_dot}deps"
  16855. ac_config_commands="$ac_config_commands depfiles"
  16856. am_make=${MAKE-make}
  16857. cat > confinc << 'END'
  16858. am__doit:
  16859. @echo done
  16860. .PHONY: am__doit
  16861. END
  16862. # If we don't find an include directive, just comment out the code.
  16863. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  16864. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  16865. am__include="#"
  16866. am__quote=
  16867. _am_result=none
  16868. # First try GNU make style include.
  16869. echo "include confinc" > confmf
  16870. # We grep out `Entering directory' and `Leaving directory'
  16871. # messages which can occur if `w' ends up in MAKEFLAGS.
  16872. # In particular we don't look at `^make:' because GNU make might
  16873. # be invoked under some other name (usually "gmake"), in which
  16874. # case it prints its new name instead of `make'.
  16875. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  16876. am__include=include
  16877. am__quote=
  16878. _am_result=GNU
  16879. fi
  16880. # Now try BSD make style include.
  16881. if test "$am__include" = "#"; then
  16882. echo '.include "confinc"' > confmf
  16883. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  16884. am__include=.include
  16885. am__quote="\""
  16886. _am_result=BSD
  16887. fi
  16888. fi
  16889. { echo "$as_me:$LINENO: result: $_am_result" >&5
  16890. echo "${ECHO_T}$_am_result" >&6; }
  16891. rm -f confinc confmf
  16892. # Check whether --enable-dependency-tracking was given.
  16893. if test "${enable_dependency_tracking+set}" = set; then
  16894. enableval=$enable_dependency_tracking;
  16895. fi
  16896. if test "x$enable_dependency_tracking" != xno; then
  16897. am_depcomp="$ac_aux_dir/depcomp"
  16898. AMDEPBACKSLASH='\'
  16899. fi
  16900. if test "x$enable_dependency_tracking" != xno; then
  16901. AMDEP_TRUE=
  16902. AMDEP_FALSE='#'
  16903. else
  16904. AMDEP_TRUE='#'
  16905. AMDEP_FALSE=
  16906. fi
  16907. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  16908. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  16909. # is not polluted with repeated "-I."
  16910. am__isrc=' -I$(srcdir)'
  16911. # test to see if srcdir already configured
  16912. if test -f $srcdir/config.status; then
  16913. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  16914. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  16915. { (exit 1); exit 1; }; }
  16916. fi
  16917. fi
  16918. # test whether we have cygpath
  16919. if test -z "$CYGPATH_W"; then
  16920. if (cygpath --version) >/dev/null 2>/dev/null; then
  16921. CYGPATH_W='cygpath -w'
  16922. else
  16923. CYGPATH_W=echo
  16924. fi
  16925. fi
  16926. # Define the identity of the package.
  16927. PACKAGE=tcpreplay
  16928. VERSION=$TCPREPLAY_VERSION
  16929. # Some tools Automake needs.
  16930. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  16931. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  16932. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  16933. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  16934. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  16935. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  16936. # Installed binaries are usually stripped using `strip' when the user
  16937. # run `make install-strip'. However `strip' might not be the right
  16938. # tool to use in cross-compilation environments, therefore Automake
  16939. # will honor the `STRIP' environment variable to overrule this program.
  16940. if test "$cross_compiling" != no; then
  16941. if test -n "$ac_tool_prefix"; then
  16942. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  16943. set dummy ${ac_tool_prefix}strip; ac_word=$2
  16944. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  16945. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16946. if test "${ac_cv_prog_STRIP+set}" = set; then
  16947. echo $ECHO_N "(cached) $ECHO_C" >&6
  16948. else
  16949. if test -n "$STRIP"; then
  16950. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  16951. else
  16952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16953. for as_dir in $PATH
  16954. do
  16955. IFS=$as_save_IFS
  16956. test -z "$as_dir" && as_dir=.
  16957. for ac_exec_ext in '' $ac_executable_extensions; do
  16958. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16959. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  16960. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16961. break 2
  16962. fi
  16963. done
  16964. done
  16965. IFS=$as_save_IFS
  16966. fi
  16967. fi
  16968. STRIP=$ac_cv_prog_STRIP
  16969. if test -n "$STRIP"; then
  16970. { echo "$as_me:$LINENO: result: $STRIP" >&5
  16971. echo "${ECHO_T}$STRIP" >&6; }
  16972. else
  16973. { echo "$as_me:$LINENO: result: no" >&5
  16974. echo "${ECHO_T}no" >&6; }
  16975. fi
  16976. fi
  16977. if test -z "$ac_cv_prog_STRIP"; then
  16978. ac_ct_STRIP=$STRIP
  16979. # Extract the first word of "strip", so it can be a program name with args.
  16980. set dummy strip; ac_word=$2
  16981. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  16982. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16983. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  16984. echo $ECHO_N "(cached) $ECHO_C" >&6
  16985. else
  16986. if test -n "$ac_ct_STRIP"; then
  16987. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  16988. else
  16989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16990. for as_dir in $PATH
  16991. do
  16992. IFS=$as_save_IFS
  16993. test -z "$as_dir" && as_dir=.
  16994. for ac_exec_ext in '' $ac_executable_extensions; do
  16995. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16996. ac_cv_prog_ac_ct_STRIP="strip"
  16997. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16998. break 2
  16999. fi
  17000. done
  17001. done
  17002. IFS=$as_save_IFS
  17003. fi
  17004. fi
  17005. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17006. if test -n "$ac_ct_STRIP"; then
  17007. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17008. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  17009. else
  17010. { echo "$as_me:$LINENO: result: no" >&5
  17011. echo "${ECHO_T}no" >&6; }
  17012. fi
  17013. if test "x$ac_ct_STRIP" = x; then
  17014. STRIP=":"
  17015. else
  17016. case $cross_compiling:$ac_tool_warned in
  17017. yes:)
  17018. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17019. whose name does not start with the host triplet. If you think this
  17020. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17021. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17022. whose name does not start with the host triplet. If you think this
  17023. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17024. ac_tool_warned=yes ;;
  17025. esac
  17026. STRIP=$ac_ct_STRIP
  17027. fi
  17028. else
  17029. STRIP="$ac_cv_prog_STRIP"
  17030. fi
  17031. fi
  17032. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  17033. # We need awk for the "check" target. The system "awk" is bad on
  17034. # some platforms.
  17035. # Always define AMTAR for backward compatibility.
  17036. AMTAR=${AMTAR-"${am_missing_run}tar"}
  17037. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  17038. depcc="$CC" am_compiler_list=
  17039. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17040. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  17041. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  17042. echo $ECHO_N "(cached) $ECHO_C" >&6
  17043. else
  17044. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17045. # We make a subdir and do the tests there. Otherwise we can end up
  17046. # making bogus files that we don't know about and never remove. For
  17047. # instance it was reported that on HP-UX the gcc test will end up
  17048. # making a dummy file named `D' -- because `-MD' means `put the output
  17049. # in D'.
  17050. mkdir conftest.dir
  17051. # Copy depcomp to subdir because otherwise we won't find it if we're
  17052. # using a relative directory.
  17053. cp "$am_depcomp" conftest.dir
  17054. cd conftest.dir
  17055. # We will build objects and dependencies in a subdirectory because
  17056. # it helps to detect inapplicable dependency modes. For instance
  17057. # both Tru64's cc and ICC support -MD to output dependencies as a
  17058. # side effect of compilation, but ICC will put the dependencies in
  17059. # the current directory while Tru64 will put them in the object
  17060. # directory.
  17061. mkdir sub
  17062. am_cv_CC_dependencies_compiler_type=none
  17063. if test "$am_compiler_list" = ""; then
  17064. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17065. fi
  17066. for depmode in $am_compiler_list; do
  17067. # Setup a source with many dependencies, because some compilers
  17068. # like to wrap large dependency lists on column 80 (with \), and
  17069. # we should not choose a depcomp mode which is confused by this.
  17070. #
  17071. # We need to recreate these files for each test, as the compiler may
  17072. # overwrite some of them when testing with obscure command lines.
  17073. # This happens at least with the AIX C compiler.
  17074. : > sub/conftest.c
  17075. for i in 1 2 3 4 5 6; do
  17076. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17077. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17078. # Solaris 8's {/usr,}/bin/sh.
  17079. touch sub/conftst$i.h
  17080. done
  17081. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17082. case $depmode in
  17083. nosideeffect)
  17084. # after this tag, mechanisms are not by side-effect, so they'll
  17085. # only be used when explicitly requested
  17086. if test "x$enable_dependency_tracking" = xyes; then
  17087. continue
  17088. else
  17089. break
  17090. fi
  17091. ;;
  17092. none) break ;;
  17093. esac
  17094. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17095. # mode. It turns out that the SunPro C++ compiler does not properly
  17096. # handle `-M -o', and we need to detect this.
  17097. if depmode=$depmode \
  17098. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17099. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17100. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17101. >/dev/null 2>conftest.err &&
  17102. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  17103. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17104. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17105. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17106. # icc doesn't choke on unknown options, it will just issue warnings
  17107. # or remarks (even with -Werror). So we grep stderr for any message
  17108. # that says an option was ignored or not supported.
  17109. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17110. # icc: Command line warning: ignoring option '-M'; no argument required
  17111. # The diagnosis changed in icc 8.0:
  17112. # icc: Command line remark: option '-MP' not supported
  17113. if (grep 'ignoring option' conftest.err ||
  17114. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17115. am_cv_CC_dependencies_compiler_type=$depmode
  17116. break
  17117. fi
  17118. fi
  17119. done
  17120. cd ..
  17121. rm -rf conftest.dir
  17122. else
  17123. am_cv_CC_dependencies_compiler_type=none
  17124. fi
  17125. fi
  17126. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  17127. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  17128. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  17129. if
  17130. test "x$enable_dependency_tracking" != xno \
  17131. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  17132. am__fastdepCC_TRUE=
  17133. am__fastdepCC_FALSE='#'
  17134. else
  17135. am__fastdepCC_TRUE='#'
  17136. am__fastdepCC_FALSE=
  17137. fi
  17138. depcc="$CXX" am_compiler_list=
  17139. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17140. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  17141. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  17142. echo $ECHO_N "(cached) $ECHO_C" >&6
  17143. else
  17144. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17145. # We make a subdir and do the tests there. Otherwise we can end up
  17146. # making bogus files that we don't know about and never remove. For
  17147. # instance it was reported that on HP-UX the gcc test will end up
  17148. # making a dummy file named `D' -- because `-MD' means `put the output
  17149. # in D'.
  17150. mkdir conftest.dir
  17151. # Copy depcomp to subdir because otherwise we won't find it if we're
  17152. # using a relative directory.
  17153. cp "$am_depcomp" conftest.dir
  17154. cd conftest.dir
  17155. # We will build objects and dependencies in a subdirectory because
  17156. # it helps to detect inapplicable dependency modes. For instance
  17157. # both Tru64's cc and ICC support -MD to output dependencies as a
  17158. # side effect of compilation, but ICC will put the dependencies in
  17159. # the current directory while Tru64 will put them in the object
  17160. # directory.
  17161. mkdir sub
  17162. am_cv_CXX_dependencies_compiler_type=none
  17163. if test "$am_compiler_list" = ""; then
  17164. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17165. fi
  17166. for depmode in $am_compiler_list; do
  17167. # Setup a source with many dependencies, because some compilers
  17168. # like to wrap large dependency lists on column 80 (with \), and
  17169. # we should not choose a depcomp mode which is confused by this.
  17170. #
  17171. # We need to recreate these files for each test, as the compiler may
  17172. # overwrite some of them when testing with obscure command lines.
  17173. # This happens at least with the AIX C compiler.
  17174. : > sub/conftest.c
  17175. for i in 1 2 3 4 5 6; do
  17176. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17177. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17178. # Solaris 8's {/usr,}/bin/sh.
  17179. touch sub/conftst$i.h
  17180. done
  17181. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17182. case $depmode in
  17183. nosideeffect)
  17184. # after this tag, mechanisms are not by side-effect, so they'll
  17185. # only be used when explicitly requested
  17186. if test "x$enable_dependency_tracking" = xyes; then
  17187. continue
  17188. else
  17189. break
  17190. fi
  17191. ;;
  17192. none) break ;;
  17193. esac
  17194. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17195. # mode. It turns out that the SunPro C++ compiler does not properly
  17196. # handle `-M -o', and we need to detect this.
  17197. if depmode=$depmode \
  17198. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17199. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17200. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17201. >/dev/null 2>conftest.err &&
  17202. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  17203. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17204. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17205. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17206. # icc doesn't choke on unknown options, it will just issue warnings
  17207. # or remarks (even with -Werror). So we grep stderr for any message
  17208. # that says an option was ignored or not supported.
  17209. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17210. # icc: Command line warning: ignoring option '-M'; no argument required
  17211. # The diagnosis changed in icc 8.0:
  17212. # icc: Command line remark: option '-MP' not supported
  17213. if (grep 'ignoring option' conftest.err ||
  17214. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17215. am_cv_CXX_dependencies_compiler_type=$depmode
  17216. break
  17217. fi
  17218. fi
  17219. done
  17220. cd ..
  17221. rm -rf conftest.dir
  17222. else
  17223. am_cv_CXX_dependencies_compiler_type=none
  17224. fi
  17225. fi
  17226. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  17227. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  17228. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  17229. if
  17230. test "x$enable_dependency_tracking" != xno \
  17231. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  17232. am__fastdepCXX_TRUE=
  17233. am__fastdepCXX_FALSE='#'
  17234. else
  17235. am__fastdepCXX_TRUE='#'
  17236. am__fastdepCXX_FALSE=
  17237. fi
  17238. # Find a good install program. We prefer a C program (faster),
  17239. # so one script is as good as another. But avoid the broken or
  17240. # incompatible versions:
  17241. # SysV /etc/install, /usr/sbin/install
  17242. # SunOS /usr/etc/install
  17243. # IRIX /sbin/install
  17244. # AIX /bin/install
  17245. # AmigaOS /C/install, which installs bootblocks on floppy discs
  17246. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  17247. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  17248. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17249. # OS/2's system install, which has a completely different semantic
  17250. # ./install, which can be erroneously created by make from ./install.sh.
  17251. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17252. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  17253. if test -z "$INSTALL"; then
  17254. if test "${ac_cv_path_install+set}" = set; then
  17255. echo $ECHO_N "(cached) $ECHO_C" >&6
  17256. else
  17257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17258. for as_dir in $PATH
  17259. do
  17260. IFS=$as_save_IFS
  17261. test -z "$as_dir" && as_dir=.
  17262. # Account for people who put trailing slashes in PATH elements.
  17263. case $as_dir/ in
  17264. ./ | .// | /cC/* | \
  17265. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17266. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17267. /usr/ucb/* ) ;;
  17268. *)
  17269. # OSF1 and SCO ODT 3.0 have their own names for install.
  17270. # Don't use installbsd from OSF since it installs stuff as root
  17271. # by default.
  17272. for ac_prog in ginstall scoinst install; do
  17273. for ac_exec_ext in '' $ac_executable_extensions; do
  17274. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  17275. if test $ac_prog = install &&
  17276. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17277. # AIX install. It has an incompatible calling convention.
  17278. :
  17279. elif test $ac_prog = install &&
  17280. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17281. # program-specific install script used by HP pwplus--don't use.
  17282. :
  17283. else
  17284. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17285. break 3
  17286. fi
  17287. fi
  17288. done
  17289. done
  17290. ;;
  17291. esac
  17292. done
  17293. IFS=$as_save_IFS
  17294. fi
  17295. if test "${ac_cv_path_install+set}" = set; then
  17296. INSTALL=$ac_cv_path_install
  17297. else
  17298. # As a last resort, use the slow shell script. Don't cache a
  17299. # value for INSTALL within a source directory, because that will
  17300. # break other packages using the cache if that directory is
  17301. # removed, or if the value is a relative name.
  17302. INSTALL=$ac_install_sh
  17303. fi
  17304. fi
  17305. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  17306. echo "${ECHO_T}$INSTALL" >&6; }
  17307. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17308. # It thinks the first close brace ends the variable substitution.
  17309. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  17310. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  17311. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17312. ac_ext=c
  17313. ac_cpp='$CPP $CPPFLAGS'
  17314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17317. if test -n "$ac_tool_prefix"; then
  17318. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17319. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17320. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17321. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17322. if test "${ac_cv_prog_CC+set}" = set; then
  17323. echo $ECHO_N "(cached) $ECHO_C" >&6
  17324. else
  17325. if test -n "$CC"; then
  17326. ac_cv_prog_CC="$CC" # Let the user override the test.
  17327. else
  17328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17329. for as_dir in $PATH
  17330. do
  17331. IFS=$as_save_IFS
  17332. test -z "$as_dir" && as_dir=.
  17333. for ac_exec_ext in '' $ac_executable_extensions; do
  17334. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17335. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17336. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17337. break 2
  17338. fi
  17339. done
  17340. done
  17341. IFS=$as_save_IFS
  17342. fi
  17343. fi
  17344. CC=$ac_cv_prog_CC
  17345. if test -n "$CC"; then
  17346. { echo "$as_me:$LINENO: result: $CC" >&5
  17347. echo "${ECHO_T}$CC" >&6; }
  17348. else
  17349. { echo "$as_me:$LINENO: result: no" >&5
  17350. echo "${ECHO_T}no" >&6; }
  17351. fi
  17352. fi
  17353. if test -z "$ac_cv_prog_CC"; then
  17354. ac_ct_CC=$CC
  17355. # Extract the first word of "gcc", so it can be a program name with args.
  17356. set dummy gcc; ac_word=$2
  17357. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17358. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17359. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17360. echo $ECHO_N "(cached) $ECHO_C" >&6
  17361. else
  17362. if test -n "$ac_ct_CC"; then
  17363. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17364. else
  17365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17366. for as_dir in $PATH
  17367. do
  17368. IFS=$as_save_IFS
  17369. test -z "$as_dir" && as_dir=.
  17370. for ac_exec_ext in '' $ac_executable_extensions; do
  17371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17372. ac_cv_prog_ac_ct_CC="gcc"
  17373. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17374. break 2
  17375. fi
  17376. done
  17377. done
  17378. IFS=$as_save_IFS
  17379. fi
  17380. fi
  17381. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17382. if test -n "$ac_ct_CC"; then
  17383. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17384. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17385. else
  17386. { echo "$as_me:$LINENO: result: no" >&5
  17387. echo "${ECHO_T}no" >&6; }
  17388. fi
  17389. if test "x$ac_ct_CC" = x; then
  17390. CC=""
  17391. else
  17392. case $cross_compiling:$ac_tool_warned in
  17393. yes:)
  17394. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17395. whose name does not start with the host triplet. If you think this
  17396. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17397. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17398. whose name does not start with the host triplet. If you think this
  17399. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17400. ac_tool_warned=yes ;;
  17401. esac
  17402. CC=$ac_ct_CC
  17403. fi
  17404. else
  17405. CC="$ac_cv_prog_CC"
  17406. fi
  17407. if test -z "$CC"; then
  17408. if test -n "$ac_tool_prefix"; then
  17409. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17410. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17411. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17412. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17413. if test "${ac_cv_prog_CC+set}" = set; then
  17414. echo $ECHO_N "(cached) $ECHO_C" >&6
  17415. else
  17416. if test -n "$CC"; then
  17417. ac_cv_prog_CC="$CC" # Let the user override the test.
  17418. else
  17419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17420. for as_dir in $PATH
  17421. do
  17422. IFS=$as_save_IFS
  17423. test -z "$as_dir" && as_dir=.
  17424. for ac_exec_ext in '' $ac_executable_extensions; do
  17425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17426. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17427. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17428. break 2
  17429. fi
  17430. done
  17431. done
  17432. IFS=$as_save_IFS
  17433. fi
  17434. fi
  17435. CC=$ac_cv_prog_CC
  17436. if test -n "$CC"; then
  17437. { echo "$as_me:$LINENO: result: $CC" >&5
  17438. echo "${ECHO_T}$CC" >&6; }
  17439. else
  17440. { echo "$as_me:$LINENO: result: no" >&5
  17441. echo "${ECHO_T}no" >&6; }
  17442. fi
  17443. fi
  17444. fi
  17445. if test -z "$CC"; then
  17446. # Extract the first word of "cc", so it can be a program name with args.
  17447. set dummy cc; ac_word=$2
  17448. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17449. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17450. if test "${ac_cv_prog_CC+set}" = set; then
  17451. echo $ECHO_N "(cached) $ECHO_C" >&6
  17452. else
  17453. if test -n "$CC"; then
  17454. ac_cv_prog_CC="$CC" # Let the user override the test.
  17455. else
  17456. ac_prog_rejected=no
  17457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17458. for as_dir in $PATH
  17459. do
  17460. IFS=$as_save_IFS
  17461. test -z "$as_dir" && as_dir=.
  17462. for ac_exec_ext in '' $ac_executable_extensions; do
  17463. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17464. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17465. ac_prog_rejected=yes
  17466. continue
  17467. fi
  17468. ac_cv_prog_CC="cc"
  17469. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17470. break 2
  17471. fi
  17472. done
  17473. done
  17474. IFS=$as_save_IFS
  17475. if test $ac_prog_rejected = yes; then
  17476. # We found a bogon in the path, so make sure we never use it.
  17477. set dummy $ac_cv_prog_CC
  17478. shift
  17479. if test $# != 0; then
  17480. # We chose a different compiler from the bogus one.
  17481. # However, it has the same basename, so the bogon will be chosen
  17482. # first if we set CC to just the basename; use the full file name.
  17483. shift
  17484. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  17485. fi
  17486. fi
  17487. fi
  17488. fi
  17489. CC=$ac_cv_prog_CC
  17490. if test -n "$CC"; then
  17491. { echo "$as_me:$LINENO: result: $CC" >&5
  17492. echo "${ECHO_T}$CC" >&6; }
  17493. else
  17494. { echo "$as_me:$LINENO: result: no" >&5
  17495. echo "${ECHO_T}no" >&6; }
  17496. fi
  17497. fi
  17498. if test -z "$CC"; then
  17499. if test -n "$ac_tool_prefix"; then
  17500. for ac_prog in cl.exe
  17501. do
  17502. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17503. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17504. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17505. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17506. if test "${ac_cv_prog_CC+set}" = set; then
  17507. echo $ECHO_N "(cached) $ECHO_C" >&6
  17508. else
  17509. if test -n "$CC"; then
  17510. ac_cv_prog_CC="$CC" # Let the user override the test.
  17511. else
  17512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17513. for as_dir in $PATH
  17514. do
  17515. IFS=$as_save_IFS
  17516. test -z "$as_dir" && as_dir=.
  17517. for ac_exec_ext in '' $ac_executable_extensions; do
  17518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17519. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17520. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17521. break 2
  17522. fi
  17523. done
  17524. done
  17525. IFS=$as_save_IFS
  17526. fi
  17527. fi
  17528. CC=$ac_cv_prog_CC
  17529. if test -n "$CC"; then
  17530. { echo "$as_me:$LINENO: result: $CC" >&5
  17531. echo "${ECHO_T}$CC" >&6; }
  17532. else
  17533. { echo "$as_me:$LINENO: result: no" >&5
  17534. echo "${ECHO_T}no" >&6; }
  17535. fi
  17536. test -n "$CC" && break
  17537. done
  17538. fi
  17539. if test -z "$CC"; then
  17540. ac_ct_CC=$CC
  17541. for ac_prog in cl.exe
  17542. do
  17543. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17544. set dummy $ac_prog; ac_word=$2
  17545. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17546. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17547. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17548. echo $ECHO_N "(cached) $ECHO_C" >&6
  17549. else
  17550. if test -n "$ac_ct_CC"; then
  17551. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17552. else
  17553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17554. for as_dir in $PATH
  17555. do
  17556. IFS=$as_save_IFS
  17557. test -z "$as_dir" && as_dir=.
  17558. for ac_exec_ext in '' $ac_executable_extensions; do
  17559. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17560. ac_cv_prog_ac_ct_CC="$ac_prog"
  17561. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17562. break 2
  17563. fi
  17564. done
  17565. done
  17566. IFS=$as_save_IFS
  17567. fi
  17568. fi
  17569. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17570. if test -n "$ac_ct_CC"; then
  17571. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17572. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17573. else
  17574. { echo "$as_me:$LINENO: result: no" >&5
  17575. echo "${ECHO_T}no" >&6; }
  17576. fi
  17577. test -n "$ac_ct_CC" && break
  17578. done
  17579. if test "x$ac_ct_CC" = x; then
  17580. CC=""
  17581. else
  17582. case $cross_compiling:$ac_tool_warned in
  17583. yes:)
  17584. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17585. whose name does not start with the host triplet. If you think this
  17586. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17587. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17588. whose name does not start with the host triplet. If you think this
  17589. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17590. ac_tool_warned=yes ;;
  17591. esac
  17592. CC=$ac_ct_CC
  17593. fi
  17594. fi
  17595. fi
  17596. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17597. See \`config.log' for more details." >&5
  17598. echo "$as_me: error: no acceptable C compiler found in \$PATH
  17599. See \`config.log' for more details." >&2;}
  17600. { (exit 1); exit 1; }; }
  17601. # Provide some information about the compiler.
  17602. echo "$as_me:$LINENO: checking for C compiler version" >&5
  17603. ac_compiler=`set X $ac_compile; echo $2`
  17604. { (ac_try="$ac_compiler --version >&5"
  17605. case "(($ac_try" in
  17606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17607. *) ac_try_echo=$ac_try;;
  17608. esac
  17609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17610. (eval "$ac_compiler --version >&5") 2>&5
  17611. ac_status=$?
  17612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17613. (exit $ac_status); }
  17614. { (ac_try="$ac_compiler -v >&5"
  17615. case "(($ac_try" in
  17616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17617. *) ac_try_echo=$ac_try;;
  17618. esac
  17619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17620. (eval "$ac_compiler -v >&5") 2>&5
  17621. ac_status=$?
  17622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17623. (exit $ac_status); }
  17624. { (ac_try="$ac_compiler -V >&5"
  17625. case "(($ac_try" in
  17626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17627. *) ac_try_echo=$ac_try;;
  17628. esac
  17629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17630. (eval "$ac_compiler -V >&5") 2>&5
  17631. ac_status=$?
  17632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17633. (exit $ac_status); }
  17634. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  17635. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  17636. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  17637. echo $ECHO_N "(cached) $ECHO_C" >&6
  17638. else
  17639. cat >conftest.$ac_ext <<_ACEOF
  17640. /* confdefs.h. */
  17641. _ACEOF
  17642. cat confdefs.h >>conftest.$ac_ext
  17643. cat >>conftest.$ac_ext <<_ACEOF
  17644. /* end confdefs.h. */
  17645. int
  17646. main ()
  17647. {
  17648. #ifndef __GNUC__
  17649. choke me
  17650. #endif
  17651. ;
  17652. return 0;
  17653. }
  17654. _ACEOF
  17655. rm -f conftest.$ac_objext
  17656. if { (ac_try="$ac_compile"
  17657. case "(($ac_try" in
  17658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17659. *) ac_try_echo=$ac_try;;
  17660. esac
  17661. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17662. (eval "$ac_compile") 2>conftest.er1
  17663. ac_status=$?
  17664. grep -v '^ *+' conftest.er1 >conftest.err
  17665. rm -f conftest.er1
  17666. cat conftest.err >&5
  17667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17668. (exit $ac_status); } && {
  17669. test -z "$ac_c_werror_flag" ||
  17670. test ! -s conftest.err
  17671. } && test -s conftest.$ac_objext; then
  17672. ac_compiler_gnu=yes
  17673. else
  17674. echo "$as_me: failed program was:" >&5
  17675. sed 's/^/| /' conftest.$ac_ext >&5
  17676. ac_compiler_gnu=no
  17677. fi
  17678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17679. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17680. fi
  17681. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17682. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  17683. GCC=`test $ac_compiler_gnu = yes && echo yes`
  17684. ac_test_CFLAGS=${CFLAGS+set}
  17685. ac_save_CFLAGS=$CFLAGS
  17686. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17687. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  17688. if test "${ac_cv_prog_cc_g+set}" = set; then
  17689. echo $ECHO_N "(cached) $ECHO_C" >&6
  17690. else
  17691. ac_save_c_werror_flag=$ac_c_werror_flag
  17692. ac_c_werror_flag=yes
  17693. ac_cv_prog_cc_g=no
  17694. CFLAGS="-g"
  17695. cat >conftest.$ac_ext <<_ACEOF
  17696. /* confdefs.h. */
  17697. _ACEOF
  17698. cat confdefs.h >>conftest.$ac_ext
  17699. cat >>conftest.$ac_ext <<_ACEOF
  17700. /* end confdefs.h. */
  17701. int
  17702. main ()
  17703. {
  17704. ;
  17705. return 0;
  17706. }
  17707. _ACEOF
  17708. rm -f conftest.$ac_objext
  17709. if { (ac_try="$ac_compile"
  17710. case "(($ac_try" in
  17711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17712. *) ac_try_echo=$ac_try;;
  17713. esac
  17714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17715. (eval "$ac_compile") 2>conftest.er1
  17716. ac_status=$?
  17717. grep -v '^ *+' conftest.er1 >conftest.err
  17718. rm -f conftest.er1
  17719. cat conftest.err >&5
  17720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17721. (exit $ac_status); } && {
  17722. test -z "$ac_c_werror_flag" ||
  17723. test ! -s conftest.err
  17724. } && test -s conftest.$ac_objext; then
  17725. ac_cv_prog_cc_g=yes
  17726. else
  17727. echo "$as_me: failed program was:" >&5
  17728. sed 's/^/| /' conftest.$ac_ext >&5
  17729. CFLAGS=""
  17730. cat >conftest.$ac_ext <<_ACEOF
  17731. /* confdefs.h. */
  17732. _ACEOF
  17733. cat confdefs.h >>conftest.$ac_ext
  17734. cat >>conftest.$ac_ext <<_ACEOF
  17735. /* end confdefs.h. */
  17736. int
  17737. main ()
  17738. {
  17739. ;
  17740. return 0;
  17741. }
  17742. _ACEOF
  17743. rm -f conftest.$ac_objext
  17744. if { (ac_try="$ac_compile"
  17745. case "(($ac_try" in
  17746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17747. *) ac_try_echo=$ac_try;;
  17748. esac
  17749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17750. (eval "$ac_compile") 2>conftest.er1
  17751. ac_status=$?
  17752. grep -v '^ *+' conftest.er1 >conftest.err
  17753. rm -f conftest.er1
  17754. cat conftest.err >&5
  17755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17756. (exit $ac_status); } && {
  17757. test -z "$ac_c_werror_flag" ||
  17758. test ! -s conftest.err
  17759. } && test -s conftest.$ac_objext; then
  17760. :
  17761. else
  17762. echo "$as_me: failed program was:" >&5
  17763. sed 's/^/| /' conftest.$ac_ext >&5
  17764. ac_c_werror_flag=$ac_save_c_werror_flag
  17765. CFLAGS="-g"
  17766. cat >conftest.$ac_ext <<_ACEOF
  17767. /* confdefs.h. */
  17768. _ACEOF
  17769. cat confdefs.h >>conftest.$ac_ext
  17770. cat >>conftest.$ac_ext <<_ACEOF
  17771. /* end confdefs.h. */
  17772. int
  17773. main ()
  17774. {
  17775. ;
  17776. return 0;
  17777. }
  17778. _ACEOF
  17779. rm -f conftest.$ac_objext
  17780. if { (ac_try="$ac_compile"
  17781. case "(($ac_try" in
  17782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17783. *) ac_try_echo=$ac_try;;
  17784. esac
  17785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17786. (eval "$ac_compile") 2>conftest.er1
  17787. ac_status=$?
  17788. grep -v '^ *+' conftest.er1 >conftest.err
  17789. rm -f conftest.er1
  17790. cat conftest.err >&5
  17791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17792. (exit $ac_status); } && {
  17793. test -z "$ac_c_werror_flag" ||
  17794. test ! -s conftest.err
  17795. } && test -s conftest.$ac_objext; then
  17796. ac_cv_prog_cc_g=yes
  17797. else
  17798. echo "$as_me: failed program was:" >&5
  17799. sed 's/^/| /' conftest.$ac_ext >&5
  17800. fi
  17801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17802. fi
  17803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17804. fi
  17805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17806. ac_c_werror_flag=$ac_save_c_werror_flag
  17807. fi
  17808. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  17809. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  17810. if test "$ac_test_CFLAGS" = set; then
  17811. CFLAGS=$ac_save_CFLAGS
  17812. elif test $ac_cv_prog_cc_g = yes; then
  17813. if test "$GCC" = yes; then
  17814. CFLAGS="-g -O2"
  17815. else
  17816. CFLAGS="-g"
  17817. fi
  17818. else
  17819. if test "$GCC" = yes; then
  17820. CFLAGS="-O2"
  17821. else
  17822. CFLAGS=
  17823. fi
  17824. fi
  17825. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  17826. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  17827. if test "${ac_cv_prog_cc_c89+set}" = set; then
  17828. echo $ECHO_N "(cached) $ECHO_C" >&6
  17829. else
  17830. ac_cv_prog_cc_c89=no
  17831. ac_save_CC=$CC
  17832. cat >conftest.$ac_ext <<_ACEOF
  17833. /* confdefs.h. */
  17834. _ACEOF
  17835. cat confdefs.h >>conftest.$ac_ext
  17836. cat >>conftest.$ac_ext <<_ACEOF
  17837. /* end confdefs.h. */
  17838. #include <stdarg.h>
  17839. #include <stdio.h>
  17840. #include <sys/types.h>
  17841. #include <sys/stat.h>
  17842. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  17843. struct buf { int x; };
  17844. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  17845. static char *e (p, i)
  17846. char **p;
  17847. int i;
  17848. {
  17849. return p[i];
  17850. }
  17851. static char *f (char * (*g) (char **, int), char **p, ...)
  17852. {
  17853. char *s;
  17854. va_list v;
  17855. va_start (v,p);
  17856. s = g (p, va_arg (v,int));
  17857. va_end (v);
  17858. return s;
  17859. }
  17860. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  17861. function prototypes and stuff, but not '\xHH' hex character constants.
  17862. These don't provoke an error unfortunately, instead are silently treated
  17863. as 'x'. The following induces an error, until -std is added to get
  17864. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  17865. array size at least. It's necessary to write '\x00'==0 to get something
  17866. that's true only with -std. */
  17867. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  17868. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  17869. inside strings and character constants. */
  17870. #define FOO(x) 'x'
  17871. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  17872. int test (int i, double x);
  17873. struct s1 {int (*f) (int a);};
  17874. struct s2 {int (*f) (double a);};
  17875. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  17876. int argc;
  17877. char **argv;
  17878. int
  17879. main ()
  17880. {
  17881. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  17882. ;
  17883. return 0;
  17884. }
  17885. _ACEOF
  17886. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  17887. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  17888. do
  17889. CC="$ac_save_CC $ac_arg"
  17890. rm -f conftest.$ac_objext
  17891. if { (ac_try="$ac_compile"
  17892. case "(($ac_try" in
  17893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17894. *) ac_try_echo=$ac_try;;
  17895. esac
  17896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17897. (eval "$ac_compile") 2>conftest.er1
  17898. ac_status=$?
  17899. grep -v '^ *+' conftest.er1 >conftest.err
  17900. rm -f conftest.er1
  17901. cat conftest.err >&5
  17902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17903. (exit $ac_status); } && {
  17904. test -z "$ac_c_werror_flag" ||
  17905. test ! -s conftest.err
  17906. } && test -s conftest.$ac_objext; then
  17907. ac_cv_prog_cc_c89=$ac_arg
  17908. else
  17909. echo "$as_me: failed program was:" >&5
  17910. sed 's/^/| /' conftest.$ac_ext >&5
  17911. fi
  17912. rm -f core conftest.err conftest.$ac_objext
  17913. test "x$ac_cv_prog_cc_c89" != "xno" && break
  17914. done
  17915. rm -f conftest.$ac_ext
  17916. CC=$ac_save_CC
  17917. fi
  17918. # AC_CACHE_VAL
  17919. case "x$ac_cv_prog_cc_c89" in
  17920. x)
  17921. { echo "$as_me:$LINENO: result: none needed" >&5
  17922. echo "${ECHO_T}none needed" >&6; } ;;
  17923. xno)
  17924. { echo "$as_me:$LINENO: result: unsupported" >&5
  17925. echo "${ECHO_T}unsupported" >&6; } ;;
  17926. *)
  17927. CC="$CC $ac_cv_prog_cc_c89"
  17928. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  17929. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  17930. esac
  17931. ac_ext=c
  17932. ac_cpp='$CPP $CPPFLAGS'
  17933. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17934. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17935. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17936. case $ac_cv_prog_cc_stdc in
  17937. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  17938. *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  17939. echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
  17940. if test "${ac_cv_prog_cc_c99+set}" = set; then
  17941. echo $ECHO_N "(cached) $ECHO_C" >&6
  17942. else
  17943. ac_cv_prog_cc_c99=no
  17944. ac_save_CC=$CC
  17945. cat >conftest.$ac_ext <<_ACEOF
  17946. /* confdefs.h. */
  17947. _ACEOF
  17948. cat confdefs.h >>conftest.$ac_ext
  17949. cat >>conftest.$ac_ext <<_ACEOF
  17950. /* end confdefs.h. */
  17951. #include <stdarg.h>
  17952. #include <stdbool.h>
  17953. #include <stdlib.h>
  17954. #include <wchar.h>
  17955. #include <stdio.h>
  17956. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  17957. #define debug(...) fprintf (stderr, __VA_ARGS__)
  17958. #define showlist(...) puts (#__VA_ARGS__)
  17959. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  17960. static void
  17961. test_varargs_macros (void)
  17962. {
  17963. int x = 1234;
  17964. int y = 5678;
  17965. debug ("Flag");
  17966. debug ("X = %d\n", x);
  17967. showlist (The first, second, and third items.);
  17968. report (x>y, "x is %d but y is %d", x, y);
  17969. }
  17970. // Check long long types.
  17971. #define BIG64 18446744073709551615ull
  17972. #define BIG32 4294967295ul
  17973. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  17974. #if !BIG_OK
  17975. your preprocessor is broken;
  17976. #endif
  17977. #if BIG_OK
  17978. #else
  17979. your preprocessor is broken;
  17980. #endif
  17981. static long long int bignum = -9223372036854775807LL;
  17982. static unsigned long long int ubignum = BIG64;
  17983. struct incomplete_array
  17984. {
  17985. int datasize;
  17986. double data[];
  17987. };
  17988. struct named_init {
  17989. int number;
  17990. const wchar_t *name;
  17991. double average;
  17992. };
  17993. typedef const char *ccp;
  17994. static inline int
  17995. test_restrict (ccp restrict text)
  17996. {
  17997. // See if C++-style comments work.
  17998. // Iterate through items via the restricted pointer.
  17999. // Also check for declarations in for loops.
  18000. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  18001. continue;
  18002. return 0;
  18003. }
  18004. // Check varargs and va_copy.
  18005. static void
  18006. test_varargs (const char *format, ...)
  18007. {
  18008. va_list args;
  18009. va_start (args, format);
  18010. va_list args_copy;
  18011. va_copy (args_copy, args);
  18012. const char *str;
  18013. int number;
  18014. float fnumber;
  18015. while (*format)
  18016. {
  18017. switch (*format++)
  18018. {
  18019. case 's': // string
  18020. str = va_arg (args_copy, const char *);
  18021. break;
  18022. case 'd': // int
  18023. number = va_arg (args_copy, int);
  18024. break;
  18025. case 'f': // float
  18026. fnumber = va_arg (args_copy, double);
  18027. break;
  18028. default:
  18029. break;
  18030. }
  18031. }
  18032. va_end (args_copy);
  18033. va_end (args);
  18034. }
  18035. int
  18036. main ()
  18037. {
  18038. // Check bool.
  18039. _Bool success = false;
  18040. // Check restrict.
  18041. if (test_restrict ("String literal") == 0)
  18042. success = true;
  18043. char *restrict newvar = "Another string";
  18044. // Check varargs.
  18045. test_varargs ("s, d' f .", "string", 65, 34.234);
  18046. test_varargs_macros ();
  18047. // Check flexible array members.
  18048. struct incomplete_array *ia =
  18049. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  18050. ia->datasize = 10;
  18051. for (int i = 0; i < ia->datasize; ++i)
  18052. ia->data[i] = i * 1.234;
  18053. // Check named initializers.
  18054. struct named_init ni = {
  18055. .number = 34,
  18056. .name = L"Test wide string",
  18057. .average = 543.34343,
  18058. };
  18059. ni.number = 58;
  18060. int dynamic_array[ni.number];
  18061. dynamic_array[ni.number - 1] = 543;
  18062. // work around unused variable warnings
  18063. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  18064. || dynamic_array[ni.number - 1] != 543);
  18065. ;
  18066. return 0;
  18067. }
  18068. _ACEOF
  18069. for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  18070. do
  18071. CC="$ac_save_CC $ac_arg"
  18072. rm -f conftest.$ac_objext
  18073. if { (ac_try="$ac_compile"
  18074. case "(($ac_try" in
  18075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18076. *) ac_try_echo=$ac_try;;
  18077. esac
  18078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18079. (eval "$ac_compile") 2>conftest.er1
  18080. ac_status=$?
  18081. grep -v '^ *+' conftest.er1 >conftest.err
  18082. rm -f conftest.er1
  18083. cat conftest.err >&5
  18084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18085. (exit $ac_status); } && {
  18086. test -z "$ac_c_werror_flag" ||
  18087. test ! -s conftest.err
  18088. } && test -s conftest.$ac_objext; then
  18089. ac_cv_prog_cc_c99=$ac_arg
  18090. else
  18091. echo "$as_me: failed program was:" >&5
  18092. sed 's/^/| /' conftest.$ac_ext >&5
  18093. fi
  18094. rm -f core conftest.err conftest.$ac_objext
  18095. test "x$ac_cv_prog_cc_c99" != "xno" && break
  18096. done
  18097. rm -f conftest.$ac_ext
  18098. CC=$ac_save_CC
  18099. fi
  18100. # AC_CACHE_VAL
  18101. case "x$ac_cv_prog_cc_c99" in
  18102. x)
  18103. { echo "$as_me:$LINENO: result: none needed" >&5
  18104. echo "${ECHO_T}none needed" >&6; } ;;
  18105. xno)
  18106. { echo "$as_me:$LINENO: result: unsupported" >&5
  18107. echo "${ECHO_T}unsupported" >&6; } ;;
  18108. *)
  18109. CC="$CC $ac_cv_prog_cc_c99"
  18110. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  18111. echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
  18112. esac
  18113. if test "x$ac_cv_prog_cc_c99" != xno; then
  18114. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  18115. else
  18116. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18117. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  18118. if test "${ac_cv_prog_cc_c89+set}" = set; then
  18119. echo $ECHO_N "(cached) $ECHO_C" >&6
  18120. else
  18121. ac_cv_prog_cc_c89=no
  18122. ac_save_CC=$CC
  18123. cat >conftest.$ac_ext <<_ACEOF
  18124. /* confdefs.h. */
  18125. _ACEOF
  18126. cat confdefs.h >>conftest.$ac_ext
  18127. cat >>conftest.$ac_ext <<_ACEOF
  18128. /* end confdefs.h. */
  18129. #include <stdarg.h>
  18130. #include <stdio.h>
  18131. #include <sys/types.h>
  18132. #include <sys/stat.h>
  18133. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  18134. struct buf { int x; };
  18135. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  18136. static char *e (p, i)
  18137. char **p;
  18138. int i;
  18139. {
  18140. return p[i];
  18141. }
  18142. static char *f (char * (*g) (char **, int), char **p, ...)
  18143. {
  18144. char *s;
  18145. va_list v;
  18146. va_start (v,p);
  18147. s = g (p, va_arg (v,int));
  18148. va_end (v);
  18149. return s;
  18150. }
  18151. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  18152. function prototypes and stuff, but not '\xHH' hex character constants.
  18153. These don't provoke an error unfortunately, instead are silently treated
  18154. as 'x'. The following induces an error, until -std is added to get
  18155. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  18156. array size at least. It's necessary to write '\x00'==0 to get something
  18157. that's true only with -std. */
  18158. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  18159. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  18160. inside strings and character constants. */
  18161. #define FOO(x) 'x'
  18162. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  18163. int test (int i, double x);
  18164. struct s1 {int (*f) (int a);};
  18165. struct s2 {int (*f) (double a);};
  18166. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  18167. int argc;
  18168. char **argv;
  18169. int
  18170. main ()
  18171. {
  18172. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  18173. ;
  18174. return 0;
  18175. }
  18176. _ACEOF
  18177. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  18178. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18179. do
  18180. CC="$ac_save_CC $ac_arg"
  18181. rm -f conftest.$ac_objext
  18182. if { (ac_try="$ac_compile"
  18183. case "(($ac_try" in
  18184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18185. *) ac_try_echo=$ac_try;;
  18186. esac
  18187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18188. (eval "$ac_compile") 2>conftest.er1
  18189. ac_status=$?
  18190. grep -v '^ *+' conftest.er1 >conftest.err
  18191. rm -f conftest.er1
  18192. cat conftest.err >&5
  18193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18194. (exit $ac_status); } && {
  18195. test -z "$ac_c_werror_flag" ||
  18196. test ! -s conftest.err
  18197. } && test -s conftest.$ac_objext; then
  18198. ac_cv_prog_cc_c89=$ac_arg
  18199. else
  18200. echo "$as_me: failed program was:" >&5
  18201. sed 's/^/| /' conftest.$ac_ext >&5
  18202. fi
  18203. rm -f core conftest.err conftest.$ac_objext
  18204. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18205. done
  18206. rm -f conftest.$ac_ext
  18207. CC=$ac_save_CC
  18208. fi
  18209. # AC_CACHE_VAL
  18210. case "x$ac_cv_prog_cc_c89" in
  18211. x)
  18212. { echo "$as_me:$LINENO: result: none needed" >&5
  18213. echo "${ECHO_T}none needed" >&6; } ;;
  18214. xno)
  18215. { echo "$as_me:$LINENO: result: unsupported" >&5
  18216. echo "${ECHO_T}unsupported" >&6; } ;;
  18217. *)
  18218. CC="$CC $ac_cv_prog_cc_c89"
  18219. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18220. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18221. esac
  18222. if test "x$ac_cv_prog_cc_c89" != xno; then
  18223. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  18224. else
  18225. ac_cv_prog_cc_stdc=no
  18226. fi
  18227. fi
  18228. ;;
  18229. esac
  18230. { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  18231. echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
  18232. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  18233. echo $ECHO_N "(cached) $ECHO_C" >&6
  18234. fi
  18235. case $ac_cv_prog_cc_stdc in
  18236. no) { echo "$as_me:$LINENO: result: unsupported" >&5
  18237. echo "${ECHO_T}unsupported" >&6; } ;;
  18238. '') { echo "$as_me:$LINENO: result: none needed" >&5
  18239. echo "${ECHO_T}none needed" >&6; } ;;
  18240. *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  18241. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
  18242. esac
  18243. ac_ext=cpp
  18244. ac_cpp='$CXXCPP $CPPFLAGS'
  18245. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18246. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18247. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18248. if test -z "$CXX"; then
  18249. if test -n "$CCC"; then
  18250. CXX=$CCC
  18251. else
  18252. if test -n "$ac_tool_prefix"; then
  18253. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18254. do
  18255. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18256. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18257. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18258. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18259. if test "${ac_cv_prog_CXX+set}" = set; then
  18260. echo $ECHO_N "(cached) $ECHO_C" >&6
  18261. else
  18262. if test -n "$CXX"; then
  18263. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18264. else
  18265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18266. for as_dir in $PATH
  18267. do
  18268. IFS=$as_save_IFS
  18269. test -z "$as_dir" && as_dir=.
  18270. for ac_exec_ext in '' $ac_executable_extensions; do
  18271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18272. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18273. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18274. break 2
  18275. fi
  18276. done
  18277. done
  18278. IFS=$as_save_IFS
  18279. fi
  18280. fi
  18281. CXX=$ac_cv_prog_CXX
  18282. if test -n "$CXX"; then
  18283. { echo "$as_me:$LINENO: result: $CXX" >&5
  18284. echo "${ECHO_T}$CXX" >&6; }
  18285. else
  18286. { echo "$as_me:$LINENO: result: no" >&5
  18287. echo "${ECHO_T}no" >&6; }
  18288. fi
  18289. test -n "$CXX" && break
  18290. done
  18291. fi
  18292. if test -z "$CXX"; then
  18293. ac_ct_CXX=$CXX
  18294. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18295. do
  18296. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18297. set dummy $ac_prog; ac_word=$2
  18298. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18299. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18300. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18301. echo $ECHO_N "(cached) $ECHO_C" >&6
  18302. else
  18303. if test -n "$ac_ct_CXX"; then
  18304. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18305. else
  18306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18307. for as_dir in $PATH
  18308. do
  18309. IFS=$as_save_IFS
  18310. test -z "$as_dir" && as_dir=.
  18311. for ac_exec_ext in '' $ac_executable_extensions; do
  18312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18313. ac_cv_prog_ac_ct_CXX="$ac_prog"
  18314. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18315. break 2
  18316. fi
  18317. done
  18318. done
  18319. IFS=$as_save_IFS
  18320. fi
  18321. fi
  18322. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18323. if test -n "$ac_ct_CXX"; then
  18324. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18325. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  18326. else
  18327. { echo "$as_me:$LINENO: result: no" >&5
  18328. echo "${ECHO_T}no" >&6; }
  18329. fi
  18330. test -n "$ac_ct_CXX" && break
  18331. done
  18332. if test "x$ac_ct_CXX" = x; then
  18333. CXX="g++"
  18334. else
  18335. case $cross_compiling:$ac_tool_warned in
  18336. yes:)
  18337. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18338. whose name does not start with the host triplet. If you think this
  18339. configuration is useful to you, please write to autoconf@gnu.org." >&5
  18340. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18341. whose name does not start with the host triplet. If you think this
  18342. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18343. ac_tool_warned=yes ;;
  18344. esac
  18345. CXX=$ac_ct_CXX
  18346. fi
  18347. fi
  18348. fi
  18349. fi
  18350. # Provide some information about the compiler.
  18351. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  18352. ac_compiler=`set X $ac_compile; echo $2`
  18353. { (ac_try="$ac_compiler --version >&5"
  18354. case "(($ac_try" in
  18355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18356. *) ac_try_echo=$ac_try;;
  18357. esac
  18358. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18359. (eval "$ac_compiler --version >&5") 2>&5
  18360. ac_status=$?
  18361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18362. (exit $ac_status); }
  18363. { (ac_try="$ac_compiler -v >&5"
  18364. case "(($ac_try" in
  18365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18366. *) ac_try_echo=$ac_try;;
  18367. esac
  18368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18369. (eval "$ac_compiler -v >&5") 2>&5
  18370. ac_status=$?
  18371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18372. (exit $ac_status); }
  18373. { (ac_try="$ac_compiler -V >&5"
  18374. case "(($ac_try" in
  18375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18376. *) ac_try_echo=$ac_try;;
  18377. esac
  18378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18379. (eval "$ac_compiler -V >&5") 2>&5
  18380. ac_status=$?
  18381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18382. (exit $ac_status); }
  18383. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18384. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  18385. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18386. echo $ECHO_N "(cached) $ECHO_C" >&6
  18387. else
  18388. cat >conftest.$ac_ext <<_ACEOF
  18389. /* confdefs.h. */
  18390. _ACEOF
  18391. cat confdefs.h >>conftest.$ac_ext
  18392. cat >>conftest.$ac_ext <<_ACEOF
  18393. /* end confdefs.h. */
  18394. int
  18395. main ()
  18396. {
  18397. #ifndef __GNUC__
  18398. choke me
  18399. #endif
  18400. ;
  18401. return 0;
  18402. }
  18403. _ACEOF
  18404. rm -f conftest.$ac_objext
  18405. if { (ac_try="$ac_compile"
  18406. case "(($ac_try" in
  18407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18408. *) ac_try_echo=$ac_try;;
  18409. esac
  18410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18411. (eval "$ac_compile") 2>conftest.er1
  18412. ac_status=$?
  18413. grep -v '^ *+' conftest.er1 >conftest.err
  18414. rm -f conftest.er1
  18415. cat conftest.err >&5
  18416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18417. (exit $ac_status); } && {
  18418. test -z "$ac_cxx_werror_flag" ||
  18419. test ! -s conftest.err
  18420. } && test -s conftest.$ac_objext; then
  18421. ac_compiler_gnu=yes
  18422. else
  18423. echo "$as_me: failed program was:" >&5
  18424. sed 's/^/| /' conftest.$ac_ext >&5
  18425. ac_compiler_gnu=no
  18426. fi
  18427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18428. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18429. fi
  18430. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18431. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  18432. GXX=`test $ac_compiler_gnu = yes && echo yes`
  18433. ac_test_CXXFLAGS=${CXXFLAGS+set}
  18434. ac_save_CXXFLAGS=$CXXFLAGS
  18435. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18436. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  18437. if test "${ac_cv_prog_cxx_g+set}" = set; then
  18438. echo $ECHO_N "(cached) $ECHO_C" >&6
  18439. else
  18440. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  18441. ac_cxx_werror_flag=yes
  18442. ac_cv_prog_cxx_g=no
  18443. CXXFLAGS="-g"
  18444. cat >conftest.$ac_ext <<_ACEOF
  18445. /* confdefs.h. */
  18446. _ACEOF
  18447. cat confdefs.h >>conftest.$ac_ext
  18448. cat >>conftest.$ac_ext <<_ACEOF
  18449. /* end confdefs.h. */
  18450. int
  18451. main ()
  18452. {
  18453. ;
  18454. return 0;
  18455. }
  18456. _ACEOF
  18457. rm -f conftest.$ac_objext
  18458. if { (ac_try="$ac_compile"
  18459. case "(($ac_try" in
  18460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18461. *) ac_try_echo=$ac_try;;
  18462. esac
  18463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18464. (eval "$ac_compile") 2>conftest.er1
  18465. ac_status=$?
  18466. grep -v '^ *+' conftest.er1 >conftest.err
  18467. rm -f conftest.er1
  18468. cat conftest.err >&5
  18469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18470. (exit $ac_status); } && {
  18471. test -z "$ac_cxx_werror_flag" ||
  18472. test ! -s conftest.err
  18473. } && test -s conftest.$ac_objext; then
  18474. ac_cv_prog_cxx_g=yes
  18475. else
  18476. echo "$as_me: failed program was:" >&5
  18477. sed 's/^/| /' conftest.$ac_ext >&5
  18478. CXXFLAGS=""
  18479. cat >conftest.$ac_ext <<_ACEOF
  18480. /* confdefs.h. */
  18481. _ACEOF
  18482. cat confdefs.h >>conftest.$ac_ext
  18483. cat >>conftest.$ac_ext <<_ACEOF
  18484. /* end confdefs.h. */
  18485. int
  18486. main ()
  18487. {
  18488. ;
  18489. return 0;
  18490. }
  18491. _ACEOF
  18492. rm -f conftest.$ac_objext
  18493. if { (ac_try="$ac_compile"
  18494. case "(($ac_try" in
  18495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18496. *) ac_try_echo=$ac_try;;
  18497. esac
  18498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18499. (eval "$ac_compile") 2>conftest.er1
  18500. ac_status=$?
  18501. grep -v '^ *+' conftest.er1 >conftest.err
  18502. rm -f conftest.er1
  18503. cat conftest.err >&5
  18504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18505. (exit $ac_status); } && {
  18506. test -z "$ac_cxx_werror_flag" ||
  18507. test ! -s conftest.err
  18508. } && test -s conftest.$ac_objext; then
  18509. :
  18510. else
  18511. echo "$as_me: failed program was:" >&5
  18512. sed 's/^/| /' conftest.$ac_ext >&5
  18513. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18514. CXXFLAGS="-g"
  18515. cat >conftest.$ac_ext <<_ACEOF
  18516. /* confdefs.h. */
  18517. _ACEOF
  18518. cat confdefs.h >>conftest.$ac_ext
  18519. cat >>conftest.$ac_ext <<_ACEOF
  18520. /* end confdefs.h. */
  18521. int
  18522. main ()
  18523. {
  18524. ;
  18525. return 0;
  18526. }
  18527. _ACEOF
  18528. rm -f conftest.$ac_objext
  18529. if { (ac_try="$ac_compile"
  18530. case "(($ac_try" in
  18531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18532. *) ac_try_echo=$ac_try;;
  18533. esac
  18534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18535. (eval "$ac_compile") 2>conftest.er1
  18536. ac_status=$?
  18537. grep -v '^ *+' conftest.er1 >conftest.err
  18538. rm -f conftest.er1
  18539. cat conftest.err >&5
  18540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18541. (exit $ac_status); } && {
  18542. test -z "$ac_cxx_werror_flag" ||
  18543. test ! -s conftest.err
  18544. } && test -s conftest.$ac_objext; then
  18545. ac_cv_prog_cxx_g=yes
  18546. else
  18547. echo "$as_me: failed program was:" >&5
  18548. sed 's/^/| /' conftest.$ac_ext >&5
  18549. fi
  18550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18551. fi
  18552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18553. fi
  18554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18555. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18556. fi
  18557. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18558. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  18559. if test "$ac_test_CXXFLAGS" = set; then
  18560. CXXFLAGS=$ac_save_CXXFLAGS
  18561. elif test $ac_cv_prog_cxx_g = yes; then
  18562. if test "$GXX" = yes; then
  18563. CXXFLAGS="-g -O2"
  18564. else
  18565. CXXFLAGS="-g"
  18566. fi
  18567. else
  18568. if test "$GXX" = yes; then
  18569. CXXFLAGS="-O2"
  18570. else
  18571. CXXFLAGS=
  18572. fi
  18573. fi
  18574. ac_ext=c
  18575. ac_cpp='$CPP $CPPFLAGS'
  18576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18579. ac_ext=c
  18580. ac_cpp='$CPP $CPPFLAGS'
  18581. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18582. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18583. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18584. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18585. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  18586. # On Suns, sometimes $CPP names a directory.
  18587. if test -n "$CPP" && test -d "$CPP"; then
  18588. CPP=
  18589. fi
  18590. if test -z "$CPP"; then
  18591. if test "${ac_cv_prog_CPP+set}" = set; then
  18592. echo $ECHO_N "(cached) $ECHO_C" >&6
  18593. else
  18594. # Double quotes because CPP needs to be expanded
  18595. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18596. do
  18597. ac_preproc_ok=false
  18598. for ac_c_preproc_warn_flag in '' yes
  18599. do
  18600. # Use a header file that comes with gcc, so configuring glibc
  18601. # with a fresh cross-compiler works.
  18602. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18603. # <limits.h> exists even on freestanding compilers.
  18604. # On the NeXT, cc -E runs the code through the compiler's parser,
  18605. # not just through cpp. "Syntax error" is here to catch this case.
  18606. cat >conftest.$ac_ext <<_ACEOF
  18607. /* confdefs.h. */
  18608. _ACEOF
  18609. cat confdefs.h >>conftest.$ac_ext
  18610. cat >>conftest.$ac_ext <<_ACEOF
  18611. /* end confdefs.h. */
  18612. #ifdef __STDC__
  18613. # include <limits.h>
  18614. #else
  18615. # include <assert.h>
  18616. #endif
  18617. Syntax error
  18618. _ACEOF
  18619. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18620. case "(($ac_try" in
  18621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18622. *) ac_try_echo=$ac_try;;
  18623. esac
  18624. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18625. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18626. ac_status=$?
  18627. grep -v '^ *+' conftest.er1 >conftest.err
  18628. rm -f conftest.er1
  18629. cat conftest.err >&5
  18630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18631. (exit $ac_status); } >/dev/null && {
  18632. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18633. test ! -s conftest.err
  18634. }; then
  18635. :
  18636. else
  18637. echo "$as_me: failed program was:" >&5
  18638. sed 's/^/| /' conftest.$ac_ext >&5
  18639. # Broken: fails on valid input.
  18640. continue
  18641. fi
  18642. rm -f conftest.err conftest.$ac_ext
  18643. # OK, works on sane cases. Now check whether nonexistent headers
  18644. # can be detected and how.
  18645. cat >conftest.$ac_ext <<_ACEOF
  18646. /* confdefs.h. */
  18647. _ACEOF
  18648. cat confdefs.h >>conftest.$ac_ext
  18649. cat >>conftest.$ac_ext <<_ACEOF
  18650. /* end confdefs.h. */
  18651. #include <ac_nonexistent.h>
  18652. _ACEOF
  18653. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18654. case "(($ac_try" in
  18655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18656. *) ac_try_echo=$ac_try;;
  18657. esac
  18658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18659. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18660. ac_status=$?
  18661. grep -v '^ *+' conftest.er1 >conftest.err
  18662. rm -f conftest.er1
  18663. cat conftest.err >&5
  18664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18665. (exit $ac_status); } >/dev/null && {
  18666. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18667. test ! -s conftest.err
  18668. }; then
  18669. # Broken: success on invalid input.
  18670. continue
  18671. else
  18672. echo "$as_me: failed program was:" >&5
  18673. sed 's/^/| /' conftest.$ac_ext >&5
  18674. # Passes both tests.
  18675. ac_preproc_ok=:
  18676. break
  18677. fi
  18678. rm -f conftest.err conftest.$ac_ext
  18679. done
  18680. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18681. rm -f conftest.err conftest.$ac_ext
  18682. if $ac_preproc_ok; then
  18683. break
  18684. fi
  18685. done
  18686. ac_cv_prog_CPP=$CPP
  18687. fi
  18688. CPP=$ac_cv_prog_CPP
  18689. else
  18690. ac_cv_prog_CPP=$CPP
  18691. fi
  18692. { echo "$as_me:$LINENO: result: $CPP" >&5
  18693. echo "${ECHO_T}$CPP" >&6; }
  18694. ac_preproc_ok=false
  18695. for ac_c_preproc_warn_flag in '' yes
  18696. do
  18697. # Use a header file that comes with gcc, so configuring glibc
  18698. # with a fresh cross-compiler works.
  18699. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18700. # <limits.h> exists even on freestanding compilers.
  18701. # On the NeXT, cc -E runs the code through the compiler's parser,
  18702. # not just through cpp. "Syntax error" is here to catch this case.
  18703. cat >conftest.$ac_ext <<_ACEOF
  18704. /* confdefs.h. */
  18705. _ACEOF
  18706. cat confdefs.h >>conftest.$ac_ext
  18707. cat >>conftest.$ac_ext <<_ACEOF
  18708. /* end confdefs.h. */
  18709. #ifdef __STDC__
  18710. # include <limits.h>
  18711. #else
  18712. # include <assert.h>
  18713. #endif
  18714. Syntax error
  18715. _ACEOF
  18716. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18717. case "(($ac_try" in
  18718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18719. *) ac_try_echo=$ac_try;;
  18720. esac
  18721. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18722. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18723. ac_status=$?
  18724. grep -v '^ *+' conftest.er1 >conftest.err
  18725. rm -f conftest.er1
  18726. cat conftest.err >&5
  18727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18728. (exit $ac_status); } >/dev/null && {
  18729. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18730. test ! -s conftest.err
  18731. }; then
  18732. :
  18733. else
  18734. echo "$as_me: failed program was:" >&5
  18735. sed 's/^/| /' conftest.$ac_ext >&5
  18736. # Broken: fails on valid input.
  18737. continue
  18738. fi
  18739. rm -f conftest.err conftest.$ac_ext
  18740. # OK, works on sane cases. Now check whether nonexistent headers
  18741. # can be detected and how.
  18742. cat >conftest.$ac_ext <<_ACEOF
  18743. /* confdefs.h. */
  18744. _ACEOF
  18745. cat confdefs.h >>conftest.$ac_ext
  18746. cat >>conftest.$ac_ext <<_ACEOF
  18747. /* end confdefs.h. */
  18748. #include <ac_nonexistent.h>
  18749. _ACEOF
  18750. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18751. case "(($ac_try" in
  18752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18753. *) ac_try_echo=$ac_try;;
  18754. esac
  18755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18756. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18757. ac_status=$?
  18758. grep -v '^ *+' conftest.er1 >conftest.err
  18759. rm -f conftest.er1
  18760. cat conftest.err >&5
  18761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18762. (exit $ac_status); } >/dev/null && {
  18763. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18764. test ! -s conftest.err
  18765. }; then
  18766. # Broken: success on invalid input.
  18767. continue
  18768. else
  18769. echo "$as_me: failed program was:" >&5
  18770. sed 's/^/| /' conftest.$ac_ext >&5
  18771. # Passes both tests.
  18772. ac_preproc_ok=:
  18773. break
  18774. fi
  18775. rm -f conftest.err conftest.$ac_ext
  18776. done
  18777. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18778. rm -f conftest.err conftest.$ac_ext
  18779. if $ac_preproc_ok; then
  18780. :
  18781. else
  18782. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  18783. See \`config.log' for more details." >&5
  18784. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  18785. See \`config.log' for more details." >&2;}
  18786. { (exit 1); exit 1; }; }
  18787. fi
  18788. ac_ext=c
  18789. ac_cpp='$CPP $CPPFLAGS'
  18790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18793. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  18794. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  18795. LN_S=$as_ln_s
  18796. if test "$LN_S" = "ln -s"; then
  18797. { echo "$as_me:$LINENO: result: yes" >&5
  18798. echo "${ECHO_T}yes" >&6; }
  18799. else
  18800. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  18801. echo "${ECHO_T}no, using $LN_S" >&6; }
  18802. fi
  18803. if test -n "$ac_tool_prefix"; then
  18804. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  18805. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  18806. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18807. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18808. if test "${ac_cv_prog_RANLIB+set}" = set; then
  18809. echo $ECHO_N "(cached) $ECHO_C" >&6
  18810. else
  18811. if test -n "$RANLIB"; then
  18812. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  18813. else
  18814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18815. for as_dir in $PATH
  18816. do
  18817. IFS=$as_save_IFS
  18818. test -z "$as_dir" && as_dir=.
  18819. for ac_exec_ext in '' $ac_executable_extensions; do
  18820. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18821. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  18822. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18823. break 2
  18824. fi
  18825. done
  18826. done
  18827. IFS=$as_save_IFS
  18828. fi
  18829. fi
  18830. RANLIB=$ac_cv_prog_RANLIB
  18831. if test -n "$RANLIB"; then
  18832. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  18833. echo "${ECHO_T}$RANLIB" >&6; }
  18834. else
  18835. { echo "$as_me:$LINENO: result: no" >&5
  18836. echo "${ECHO_T}no" >&6; }
  18837. fi
  18838. fi
  18839. if test -z "$ac_cv_prog_RANLIB"; then
  18840. ac_ct_RANLIB=$RANLIB
  18841. # Extract the first word of "ranlib", so it can be a program name with args.
  18842. set dummy ranlib; ac_word=$2
  18843. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18844. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18845. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  18846. echo $ECHO_N "(cached) $ECHO_C" >&6
  18847. else
  18848. if test -n "$ac_ct_RANLIB"; then
  18849. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  18850. else
  18851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18852. for as_dir in $PATH
  18853. do
  18854. IFS=$as_save_IFS
  18855. test -z "$as_dir" && as_dir=.
  18856. for ac_exec_ext in '' $ac_executable_extensions; do
  18857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18858. ac_cv_prog_ac_ct_RANLIB="ranlib"
  18859. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18860. break 2
  18861. fi
  18862. done
  18863. done
  18864. IFS=$as_save_IFS
  18865. fi
  18866. fi
  18867. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  18868. if test -n "$ac_ct_RANLIB"; then
  18869. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  18870. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  18871. else
  18872. { echo "$as_me:$LINENO: result: no" >&5
  18873. echo "${ECHO_T}no" >&6; }
  18874. fi
  18875. if test "x$ac_ct_RANLIB" = x; then
  18876. RANLIB=":"
  18877. else
  18878. case $cross_compiling:$ac_tool_warned in
  18879. yes:)
  18880. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18881. whose name does not start with the host triplet. If you think this
  18882. configuration is useful to you, please write to autoconf@gnu.org." >&5
  18883. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18884. whose name does not start with the host triplet. If you think this
  18885. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18886. ac_tool_warned=yes ;;
  18887. esac
  18888. RANLIB=$ac_ct_RANLIB
  18889. fi
  18890. else
  18891. RANLIB="$ac_cv_prog_RANLIB"
  18892. fi
  18893. for ac_prog in gawk mawk nawk awk
  18894. do
  18895. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18896. set dummy $ac_prog; ac_word=$2
  18897. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18898. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18899. if test "${ac_cv_prog_AWK+set}" = set; then
  18900. echo $ECHO_N "(cached) $ECHO_C" >&6
  18901. else
  18902. if test -n "$AWK"; then
  18903. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18904. else
  18905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18906. for as_dir in $PATH
  18907. do
  18908. IFS=$as_save_IFS
  18909. test -z "$as_dir" && as_dir=.
  18910. for ac_exec_ext in '' $ac_executable_extensions; do
  18911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18912. ac_cv_prog_AWK="$ac_prog"
  18913. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18914. break 2
  18915. fi
  18916. done
  18917. done
  18918. IFS=$as_save_IFS
  18919. fi
  18920. fi
  18921. AWK=$ac_cv_prog_AWK
  18922. if test -n "$AWK"; then
  18923. { echo "$as_me:$LINENO: result: $AWK" >&5
  18924. echo "${ECHO_T}$AWK" >&6; }
  18925. else
  18926. { echo "$as_me:$LINENO: result: no" >&5
  18927. echo "${ECHO_T}no" >&6; }
  18928. fi
  18929. test -n "$AWK" && break
  18930. done
  18931. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18932. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  18933. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  18934. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  18935. echo $ECHO_N "(cached) $ECHO_C" >&6
  18936. else
  18937. cat >conftest.make <<\_ACEOF
  18938. SHELL = /bin/sh
  18939. all:
  18940. @echo '@@@%%%=$(MAKE)=@@@%%%'
  18941. _ACEOF
  18942. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  18943. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  18944. *@@@%%%=?*=@@@%%%*)
  18945. eval ac_cv_prog_make_${ac_make}_set=yes;;
  18946. *)
  18947. eval ac_cv_prog_make_${ac_make}_set=no;;
  18948. esac
  18949. rm -f conftest.make
  18950. fi
  18951. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  18952. { echo "$as_me:$LINENO: result: yes" >&5
  18953. echo "${ECHO_T}yes" >&6; }
  18954. SET_MAKE=
  18955. else
  18956. { echo "$as_me:$LINENO: result: no" >&5
  18957. echo "${ECHO_T}no" >&6; }
  18958. SET_MAKE="MAKE=${MAKE-make}"
  18959. fi
  18960. # Extract the first word of "printf", so it can be a program name with args.
  18961. set dummy printf; ac_word=$2
  18962. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18963. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18964. if test "${ac_cv_path_PRINTF+set}" = set; then
  18965. echo $ECHO_N "(cached) $ECHO_C" >&6
  18966. else
  18967. case $PRINTF in
  18968. [\\/]* | ?:[\\/]*)
  18969. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  18970. ;;
  18971. *)
  18972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18973. for as_dir in $PATH
  18974. do
  18975. IFS=$as_save_IFS
  18976. test -z "$as_dir" && as_dir=.
  18977. for ac_exec_ext in '' $ac_executable_extensions; do
  18978. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18979. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  18980. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18981. break 2
  18982. fi
  18983. done
  18984. done
  18985. IFS=$as_save_IFS
  18986. ;;
  18987. esac
  18988. fi
  18989. PRINTF=$ac_cv_path_PRINTF
  18990. if test -n "$PRINTF"; then
  18991. { echo "$as_me:$LINENO: result: $PRINTF" >&5
  18992. echo "${ECHO_T}$PRINTF" >&6; }
  18993. else
  18994. { echo "$as_me:$LINENO: result: no" >&5
  18995. echo "${ECHO_T}no" >&6; }
  18996. fi
  18997. # Extract the first word of "autogen", so it can be a program name with args.
  18998. set dummy autogen; ac_word=$2
  18999. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19000. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19001. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  19002. echo $ECHO_N "(cached) $ECHO_C" >&6
  19003. else
  19004. case $AUTOGEN in
  19005. [\\/]* | ?:[\\/]*)
  19006. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  19007. ;;
  19008. *)
  19009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19010. for as_dir in $PATH
  19011. do
  19012. IFS=$as_save_IFS
  19013. test -z "$as_dir" && as_dir=.
  19014. for ac_exec_ext in '' $ac_executable_extensions; do
  19015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19016. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  19017. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19018. break 2
  19019. fi
  19020. done
  19021. done
  19022. IFS=$as_save_IFS
  19023. ;;
  19024. esac
  19025. fi
  19026. AUTOGEN=$ac_cv_path_AUTOGEN
  19027. if test -n "$AUTOGEN"; then
  19028. { echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  19029. echo "${ECHO_T}$AUTOGEN" >&6; }
  19030. else
  19031. { echo "$as_me:$LINENO: result: no" >&5
  19032. echo "${ECHO_T}no" >&6; }
  19033. fi
  19034. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19035. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  19036. if test "${ac_cv_header_stdc+set}" = set; then
  19037. echo $ECHO_N "(cached) $ECHO_C" >&6
  19038. else
  19039. cat >conftest.$ac_ext <<_ACEOF
  19040. /* confdefs.h. */
  19041. _ACEOF
  19042. cat confdefs.h >>conftest.$ac_ext
  19043. cat >>conftest.$ac_ext <<_ACEOF
  19044. /* end confdefs.h. */
  19045. #include <stdlib.h>
  19046. #include <stdarg.h>
  19047. #include <string.h>
  19048. #include <float.h>
  19049. int
  19050. main ()
  19051. {
  19052. ;
  19053. return 0;
  19054. }
  19055. _ACEOF
  19056. rm -f conftest.$ac_objext
  19057. if { (ac_try="$ac_compile"
  19058. case "(($ac_try" in
  19059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19060. *) ac_try_echo=$ac_try;;
  19061. esac
  19062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19063. (eval "$ac_compile") 2>conftest.er1
  19064. ac_status=$?
  19065. grep -v '^ *+' conftest.er1 >conftest.err
  19066. rm -f conftest.er1
  19067. cat conftest.err >&5
  19068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19069. (exit $ac_status); } && {
  19070. test -z "$ac_c_werror_flag" ||
  19071. test ! -s conftest.err
  19072. } && test -s conftest.$ac_objext; then
  19073. ac_cv_header_stdc=yes
  19074. else
  19075. echo "$as_me: failed program was:" >&5
  19076. sed 's/^/| /' conftest.$ac_ext >&5
  19077. ac_cv_header_stdc=no
  19078. fi
  19079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19080. if test $ac_cv_header_stdc = yes; then
  19081. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19082. cat >conftest.$ac_ext <<_ACEOF
  19083. /* confdefs.h. */
  19084. _ACEOF
  19085. cat confdefs.h >>conftest.$ac_ext
  19086. cat >>conftest.$ac_ext <<_ACEOF
  19087. /* end confdefs.h. */
  19088. #include <string.h>
  19089. _ACEOF
  19090. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19091. $EGREP "memchr" >/dev/null 2>&1; then
  19092. :
  19093. else
  19094. ac_cv_header_stdc=no
  19095. fi
  19096. rm -f conftest*
  19097. fi
  19098. if test $ac_cv_header_stdc = yes; then
  19099. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19100. cat >conftest.$ac_ext <<_ACEOF
  19101. /* confdefs.h. */
  19102. _ACEOF
  19103. cat confdefs.h >>conftest.$ac_ext
  19104. cat >>conftest.$ac_ext <<_ACEOF
  19105. /* end confdefs.h. */
  19106. #include <stdlib.h>
  19107. _ACEOF
  19108. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19109. $EGREP "free" >/dev/null 2>&1; then
  19110. :
  19111. else
  19112. ac_cv_header_stdc=no
  19113. fi
  19114. rm -f conftest*
  19115. fi
  19116. if test $ac_cv_header_stdc = yes; then
  19117. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19118. if test "$cross_compiling" = yes; then
  19119. :
  19120. else
  19121. cat >conftest.$ac_ext <<_ACEOF
  19122. /* confdefs.h. */
  19123. _ACEOF
  19124. cat confdefs.h >>conftest.$ac_ext
  19125. cat >>conftest.$ac_ext <<_ACEOF
  19126. /* end confdefs.h. */
  19127. #include <ctype.h>
  19128. #include <stdlib.h>
  19129. #if ((' ' & 0x0FF) == 0x020)
  19130. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19131. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19132. #else
  19133. # define ISLOWER(c) \
  19134. (('a' <= (c) && (c) <= 'i') \
  19135. || ('j' <= (c) && (c) <= 'r') \
  19136. || ('s' <= (c) && (c) <= 'z'))
  19137. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19138. #endif
  19139. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19140. int
  19141. main ()
  19142. {
  19143. int i;
  19144. for (i = 0; i < 256; i++)
  19145. if (XOR (islower (i), ISLOWER (i))
  19146. || toupper (i) != TOUPPER (i))
  19147. return 2;
  19148. return 0;
  19149. }
  19150. _ACEOF
  19151. rm -f conftest$ac_exeext
  19152. if { (ac_try="$ac_link"
  19153. case "(($ac_try" in
  19154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19155. *) ac_try_echo=$ac_try;;
  19156. esac
  19157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19158. (eval "$ac_link") 2>&5
  19159. ac_status=$?
  19160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19161. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19162. { (case "(($ac_try" in
  19163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19164. *) ac_try_echo=$ac_try;;
  19165. esac
  19166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19167. (eval "$ac_try") 2>&5
  19168. ac_status=$?
  19169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19170. (exit $ac_status); }; }; then
  19171. :
  19172. else
  19173. echo "$as_me: program exited with status $ac_status" >&5
  19174. echo "$as_me: failed program was:" >&5
  19175. sed 's/^/| /' conftest.$ac_ext >&5
  19176. ( exit $ac_status )
  19177. ac_cv_header_stdc=no
  19178. fi
  19179. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19180. fi
  19181. fi
  19182. fi
  19183. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  19184. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  19185. if test $ac_cv_header_stdc = yes; then
  19186. cat >>confdefs.h <<\_ACEOF
  19187. #define STDC_HEADERS 1
  19188. _ACEOF
  19189. fi
  19190. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  19191. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  19192. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  19193. echo $ECHO_N "(cached) $ECHO_C" >&6
  19194. else
  19195. cat >conftest.$ac_ext <<_ACEOF
  19196. /* confdefs.h. */
  19197. _ACEOF
  19198. cat confdefs.h >>conftest.$ac_ext
  19199. cat >>conftest.$ac_ext <<_ACEOF
  19200. /* end confdefs.h. */
  19201. #include <sys/types.h>
  19202. int
  19203. main ()
  19204. {
  19205. return makedev(0, 0);
  19206. ;
  19207. return 0;
  19208. }
  19209. _ACEOF
  19210. rm -f conftest.$ac_objext conftest$ac_exeext
  19211. if { (ac_try="$ac_link"
  19212. case "(($ac_try" in
  19213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19214. *) ac_try_echo=$ac_try;;
  19215. esac
  19216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19217. (eval "$ac_link") 2>conftest.er1
  19218. ac_status=$?
  19219. grep -v '^ *+' conftest.er1 >conftest.err
  19220. rm -f conftest.er1
  19221. cat conftest.err >&5
  19222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19223. (exit $ac_status); } && {
  19224. test -z "$ac_c_werror_flag" ||
  19225. test ! -s conftest.err
  19226. } && test -s conftest$ac_exeext &&
  19227. $as_test_x conftest$ac_exeext; then
  19228. ac_cv_header_sys_types_h_makedev=yes
  19229. else
  19230. echo "$as_me: failed program was:" >&5
  19231. sed 's/^/| /' conftest.$ac_ext >&5
  19232. ac_cv_header_sys_types_h_makedev=no
  19233. fi
  19234. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19235. conftest$ac_exeext conftest.$ac_ext
  19236. fi
  19237. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  19238. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  19239. if test $ac_cv_header_sys_types_h_makedev = no; then
  19240. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19241. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19242. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19243. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19244. echo $ECHO_N "(cached) $ECHO_C" >&6
  19245. fi
  19246. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19247. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19248. else
  19249. # Is the header compilable?
  19250. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  19251. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  19252. cat >conftest.$ac_ext <<_ACEOF
  19253. /* confdefs.h. */
  19254. _ACEOF
  19255. cat confdefs.h >>conftest.$ac_ext
  19256. cat >>conftest.$ac_ext <<_ACEOF
  19257. /* end confdefs.h. */
  19258. $ac_includes_default
  19259. #include <sys/mkdev.h>
  19260. _ACEOF
  19261. rm -f conftest.$ac_objext
  19262. if { (ac_try="$ac_compile"
  19263. case "(($ac_try" in
  19264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19265. *) ac_try_echo=$ac_try;;
  19266. esac
  19267. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19268. (eval "$ac_compile") 2>conftest.er1
  19269. ac_status=$?
  19270. grep -v '^ *+' conftest.er1 >conftest.err
  19271. rm -f conftest.er1
  19272. cat conftest.err >&5
  19273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19274. (exit $ac_status); } && {
  19275. test -z "$ac_c_werror_flag" ||
  19276. test ! -s conftest.err
  19277. } && test -s conftest.$ac_objext; then
  19278. ac_header_compiler=yes
  19279. else
  19280. echo "$as_me: failed program was:" >&5
  19281. sed 's/^/| /' conftest.$ac_ext >&5
  19282. ac_header_compiler=no
  19283. fi
  19284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19285. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19286. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19287. # Is the header present?
  19288. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  19289. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  19290. cat >conftest.$ac_ext <<_ACEOF
  19291. /* confdefs.h. */
  19292. _ACEOF
  19293. cat confdefs.h >>conftest.$ac_ext
  19294. cat >>conftest.$ac_ext <<_ACEOF
  19295. /* end confdefs.h. */
  19296. #include <sys/mkdev.h>
  19297. _ACEOF
  19298. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19299. case "(($ac_try" in
  19300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19301. *) ac_try_echo=$ac_try;;
  19302. esac
  19303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19304. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19305. ac_status=$?
  19306. grep -v '^ *+' conftest.er1 >conftest.err
  19307. rm -f conftest.er1
  19308. cat conftest.err >&5
  19309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19310. (exit $ac_status); } >/dev/null && {
  19311. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19312. test ! -s conftest.err
  19313. }; then
  19314. ac_header_preproc=yes
  19315. else
  19316. echo "$as_me: failed program was:" >&5
  19317. sed 's/^/| /' conftest.$ac_ext >&5
  19318. ac_header_preproc=no
  19319. fi
  19320. rm -f conftest.err conftest.$ac_ext
  19321. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19322. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19323. # So? What about this header?
  19324. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19325. yes:no: )
  19326. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19327. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19328. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  19329. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  19330. ac_header_preproc=yes
  19331. ;;
  19332. no:yes:* )
  19333. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  19334. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  19335. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  19336. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  19337. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  19338. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  19339. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  19340. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19341. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  19342. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  19343. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  19344. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  19345. ;;
  19346. esac
  19347. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19348. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19349. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19350. echo $ECHO_N "(cached) $ECHO_C" >&6
  19351. else
  19352. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  19353. fi
  19354. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19355. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19356. fi
  19357. if test $ac_cv_header_sys_mkdev_h = yes; then
  19358. cat >>confdefs.h <<\_ACEOF
  19359. #define MAJOR_IN_MKDEV 1
  19360. _ACEOF
  19361. fi
  19362. if test $ac_cv_header_sys_mkdev_h = no; then
  19363. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19364. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19365. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19366. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19367. echo $ECHO_N "(cached) $ECHO_C" >&6
  19368. fi
  19369. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19370. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19371. else
  19372. # Is the header compilable?
  19373. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  19374. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  19375. cat >conftest.$ac_ext <<_ACEOF
  19376. /* confdefs.h. */
  19377. _ACEOF
  19378. cat confdefs.h >>conftest.$ac_ext
  19379. cat >>conftest.$ac_ext <<_ACEOF
  19380. /* end confdefs.h. */
  19381. $ac_includes_default
  19382. #include <sys/sysmacros.h>
  19383. _ACEOF
  19384. rm -f conftest.$ac_objext
  19385. if { (ac_try="$ac_compile"
  19386. case "(($ac_try" in
  19387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19388. *) ac_try_echo=$ac_try;;
  19389. esac
  19390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19391. (eval "$ac_compile") 2>conftest.er1
  19392. ac_status=$?
  19393. grep -v '^ *+' conftest.er1 >conftest.err
  19394. rm -f conftest.er1
  19395. cat conftest.err >&5
  19396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19397. (exit $ac_status); } && {
  19398. test -z "$ac_c_werror_flag" ||
  19399. test ! -s conftest.err
  19400. } && test -s conftest.$ac_objext; then
  19401. ac_header_compiler=yes
  19402. else
  19403. echo "$as_me: failed program was:" >&5
  19404. sed 's/^/| /' conftest.$ac_ext >&5
  19405. ac_header_compiler=no
  19406. fi
  19407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19408. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19409. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19410. # Is the header present?
  19411. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  19412. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  19413. cat >conftest.$ac_ext <<_ACEOF
  19414. /* confdefs.h. */
  19415. _ACEOF
  19416. cat confdefs.h >>conftest.$ac_ext
  19417. cat >>conftest.$ac_ext <<_ACEOF
  19418. /* end confdefs.h. */
  19419. #include <sys/sysmacros.h>
  19420. _ACEOF
  19421. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19422. case "(($ac_try" in
  19423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19424. *) ac_try_echo=$ac_try;;
  19425. esac
  19426. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19427. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19428. ac_status=$?
  19429. grep -v '^ *+' conftest.er1 >conftest.err
  19430. rm -f conftest.er1
  19431. cat conftest.err >&5
  19432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19433. (exit $ac_status); } >/dev/null && {
  19434. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19435. test ! -s conftest.err
  19436. }; then
  19437. ac_header_preproc=yes
  19438. else
  19439. echo "$as_me: failed program was:" >&5
  19440. sed 's/^/| /' conftest.$ac_ext >&5
  19441. ac_header_preproc=no
  19442. fi
  19443. rm -f conftest.err conftest.$ac_ext
  19444. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19445. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19446. # So? What about this header?
  19447. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19448. yes:no: )
  19449. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19450. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19451. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  19452. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  19453. ac_header_preproc=yes
  19454. ;;
  19455. no:yes:* )
  19456. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  19457. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  19458. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  19459. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  19460. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  19461. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  19462. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  19463. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19464. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  19465. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  19466. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  19467. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  19468. ;;
  19469. esac
  19470. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19471. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19472. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19473. echo $ECHO_N "(cached) $ECHO_C" >&6
  19474. else
  19475. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  19476. fi
  19477. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19478. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19479. fi
  19480. if test $ac_cv_header_sys_sysmacros_h = yes; then
  19481. cat >>confdefs.h <<\_ACEOF
  19482. #define MAJOR_IN_SYSMACROS 1
  19483. _ACEOF
  19484. fi
  19485. fi
  19486. fi
  19487. { echo "$as_me:$LINENO: checking for size_t" >&5
  19488. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19489. if test "${ac_cv_type_size_t+set}" = set; then
  19490. echo $ECHO_N "(cached) $ECHO_C" >&6
  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. $ac_includes_default
  19499. typedef size_t ac__type_new_;
  19500. int
  19501. main ()
  19502. {
  19503. if ((ac__type_new_ *) 0)
  19504. return 0;
  19505. if (sizeof (ac__type_new_))
  19506. return 0;
  19507. ;
  19508. return 0;
  19509. }
  19510. _ACEOF
  19511. rm -f conftest.$ac_objext
  19512. if { (ac_try="$ac_compile"
  19513. case "(($ac_try" in
  19514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19515. *) ac_try_echo=$ac_try;;
  19516. esac
  19517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19518. (eval "$ac_compile") 2>conftest.er1
  19519. ac_status=$?
  19520. grep -v '^ *+' conftest.er1 >conftest.err
  19521. rm -f conftest.er1
  19522. cat conftest.err >&5
  19523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19524. (exit $ac_status); } && {
  19525. test -z "$ac_c_werror_flag" ||
  19526. test ! -s conftest.err
  19527. } && test -s conftest.$ac_objext; then
  19528. ac_cv_type_size_t=yes
  19529. else
  19530. echo "$as_me: failed program was:" >&5
  19531. sed 's/^/| /' conftest.$ac_ext >&5
  19532. ac_cv_type_size_t=no
  19533. fi
  19534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19535. fi
  19536. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19537. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19538. if test $ac_cv_type_size_t = yes; then
  19539. :
  19540. else
  19541. cat >>confdefs.h <<_ACEOF
  19542. #define size_t unsigned int
  19543. _ACEOF
  19544. fi
  19545. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  19546. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  19547. if test "${ac_cv_header_time+set}" = set; then
  19548. echo $ECHO_N "(cached) $ECHO_C" >&6
  19549. else
  19550. cat >conftest.$ac_ext <<_ACEOF
  19551. /* confdefs.h. */
  19552. _ACEOF
  19553. cat confdefs.h >>conftest.$ac_ext
  19554. cat >>conftest.$ac_ext <<_ACEOF
  19555. /* end confdefs.h. */
  19556. #include <sys/types.h>
  19557. #include <sys/time.h>
  19558. #include <time.h>
  19559. int
  19560. main ()
  19561. {
  19562. if ((struct tm *) 0)
  19563. return 0;
  19564. ;
  19565. return 0;
  19566. }
  19567. _ACEOF
  19568. rm -f conftest.$ac_objext
  19569. if { (ac_try="$ac_compile"
  19570. case "(($ac_try" in
  19571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19572. *) ac_try_echo=$ac_try;;
  19573. esac
  19574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19575. (eval "$ac_compile") 2>conftest.er1
  19576. ac_status=$?
  19577. grep -v '^ *+' conftest.er1 >conftest.err
  19578. rm -f conftest.er1
  19579. cat conftest.err >&5
  19580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19581. (exit $ac_status); } && {
  19582. test -z "$ac_c_werror_flag" ||
  19583. test ! -s conftest.err
  19584. } && test -s conftest.$ac_objext; then
  19585. ac_cv_header_time=yes
  19586. else
  19587. echo "$as_me: failed program was:" >&5
  19588. sed 's/^/| /' conftest.$ac_ext >&5
  19589. ac_cv_header_time=no
  19590. fi
  19591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19592. fi
  19593. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19594. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  19595. if test $ac_cv_header_time = yes; then
  19596. cat >>confdefs.h <<\_ACEOF
  19597. #define TIME_WITH_SYS_TIME 1
  19598. _ACEOF
  19599. fi
  19600. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19601. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  19602. if test "${ac_cv_c_const+set}" = set; then
  19603. echo $ECHO_N "(cached) $ECHO_C" >&6
  19604. else
  19605. cat >conftest.$ac_ext <<_ACEOF
  19606. /* confdefs.h. */
  19607. _ACEOF
  19608. cat confdefs.h >>conftest.$ac_ext
  19609. cat >>conftest.$ac_ext <<_ACEOF
  19610. /* end confdefs.h. */
  19611. int
  19612. main ()
  19613. {
  19614. /* FIXME: Include the comments suggested by Paul. */
  19615. #ifndef __cplusplus
  19616. /* Ultrix mips cc rejects this. */
  19617. typedef int charset[2];
  19618. const charset cs;
  19619. /* SunOS 4.1.1 cc rejects this. */
  19620. char const *const *pcpcc;
  19621. char **ppc;
  19622. /* NEC SVR4.0.2 mips cc rejects this. */
  19623. struct point {int x, y;};
  19624. static struct point const zero = {0,0};
  19625. /* AIX XL C 1.02.0.0 rejects this.
  19626. It does not let you subtract one const X* pointer from another in
  19627. an arm of an if-expression whose if-part is not a constant
  19628. expression */
  19629. const char *g = "string";
  19630. pcpcc = &g + (g ? g-g : 0);
  19631. /* HPUX 7.0 cc rejects these. */
  19632. ++pcpcc;
  19633. ppc = (char**) pcpcc;
  19634. pcpcc = (char const *const *) ppc;
  19635. { /* SCO 3.2v4 cc rejects this. */
  19636. char *t;
  19637. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19638. *t++ = 0;
  19639. if (s) return 0;
  19640. }
  19641. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19642. int x[] = {25, 17};
  19643. const int *foo = &x[0];
  19644. ++foo;
  19645. }
  19646. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19647. typedef const int *iptr;
  19648. iptr p = 0;
  19649. ++p;
  19650. }
  19651. { /* AIX XL C 1.02.0.0 rejects this saying
  19652. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19653. struct s { int j; const int *ap[3]; };
  19654. struct s *b; b->j = 5;
  19655. }
  19656. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19657. const int foo = 10;
  19658. if (!foo) return 0;
  19659. }
  19660. return !cs[0] && !zero.x;
  19661. #endif
  19662. ;
  19663. return 0;
  19664. }
  19665. _ACEOF
  19666. rm -f conftest.$ac_objext
  19667. if { (ac_try="$ac_compile"
  19668. case "(($ac_try" in
  19669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19670. *) ac_try_echo=$ac_try;;
  19671. esac
  19672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19673. (eval "$ac_compile") 2>conftest.er1
  19674. ac_status=$?
  19675. grep -v '^ *+' conftest.er1 >conftest.err
  19676. rm -f conftest.er1
  19677. cat conftest.err >&5
  19678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19679. (exit $ac_status); } && {
  19680. test -z "$ac_c_werror_flag" ||
  19681. test ! -s conftest.err
  19682. } && test -s conftest.$ac_objext; then
  19683. ac_cv_c_const=yes
  19684. else
  19685. echo "$as_me: failed program was:" >&5
  19686. sed 's/^/| /' conftest.$ac_ext >&5
  19687. ac_cv_c_const=no
  19688. fi
  19689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19690. fi
  19691. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  19692. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  19693. if test $ac_cv_c_const = no; then
  19694. cat >>confdefs.h <<\_ACEOF
  19695. #define const
  19696. _ACEOF
  19697. fi
  19698. { echo "$as_me:$LINENO: checking for inline" >&5
  19699. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  19700. if test "${ac_cv_c_inline+set}" = set; then
  19701. echo $ECHO_N "(cached) $ECHO_C" >&6
  19702. else
  19703. ac_cv_c_inline=no
  19704. for ac_kw in inline __inline__ __inline; do
  19705. cat >conftest.$ac_ext <<_ACEOF
  19706. /* confdefs.h. */
  19707. _ACEOF
  19708. cat confdefs.h >>conftest.$ac_ext
  19709. cat >>conftest.$ac_ext <<_ACEOF
  19710. /* end confdefs.h. */
  19711. #ifndef __cplusplus
  19712. typedef int foo_t;
  19713. static $ac_kw foo_t static_foo () {return 0; }
  19714. $ac_kw foo_t foo () {return 0; }
  19715. #endif
  19716. _ACEOF
  19717. rm -f conftest.$ac_objext
  19718. if { (ac_try="$ac_compile"
  19719. case "(($ac_try" in
  19720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19721. *) ac_try_echo=$ac_try;;
  19722. esac
  19723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19724. (eval "$ac_compile") 2>conftest.er1
  19725. ac_status=$?
  19726. grep -v '^ *+' conftest.er1 >conftest.err
  19727. rm -f conftest.er1
  19728. cat conftest.err >&5
  19729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19730. (exit $ac_status); } && {
  19731. test -z "$ac_c_werror_flag" ||
  19732. test ! -s conftest.err
  19733. } && test -s conftest.$ac_objext; then
  19734. ac_cv_c_inline=$ac_kw
  19735. else
  19736. echo "$as_me: failed program was:" >&5
  19737. sed 's/^/| /' conftest.$ac_ext >&5
  19738. fi
  19739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19740. test "$ac_cv_c_inline" != no && break
  19741. done
  19742. fi
  19743. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  19744. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  19745. case $ac_cv_c_inline in
  19746. inline | yes) ;;
  19747. *)
  19748. case $ac_cv_c_inline in
  19749. no) ac_val=;;
  19750. *) ac_val=$ac_cv_c_inline;;
  19751. esac
  19752. cat >>confdefs.h <<_ACEOF
  19753. #ifndef __cplusplus
  19754. #define inline $ac_val
  19755. #endif
  19756. _ACEOF
  19757. ;;
  19758. esac
  19759. # Check whether --enable-largefile was given.
  19760. if test "${enable_largefile+set}" = set; then
  19761. enableval=$enable_largefile;
  19762. fi
  19763. if test "$enable_largefile" != no; then
  19764. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  19765. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  19766. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19767. echo $ECHO_N "(cached) $ECHO_C" >&6
  19768. else
  19769. ac_cv_sys_largefile_CC=no
  19770. if test "$GCC" != yes; then
  19771. ac_save_CC=$CC
  19772. while :; do
  19773. # IRIX 6.2 and later do not support large files by default,
  19774. # so use the C compiler's -n32 option if that helps.
  19775. cat >conftest.$ac_ext <<_ACEOF
  19776. /* confdefs.h. */
  19777. _ACEOF
  19778. cat confdefs.h >>conftest.$ac_ext
  19779. cat >>conftest.$ac_ext <<_ACEOF
  19780. /* end confdefs.h. */
  19781. #include <sys/types.h>
  19782. /* Check that off_t can represent 2**63 - 1 correctly.
  19783. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19784. since some C++ compilers masquerading as C compilers
  19785. incorrectly reject 9223372036854775807. */
  19786. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19787. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19788. && LARGE_OFF_T % 2147483647 == 1)
  19789. ? 1 : -1];
  19790. int
  19791. main ()
  19792. {
  19793. ;
  19794. return 0;
  19795. }
  19796. _ACEOF
  19797. rm -f conftest.$ac_objext
  19798. if { (ac_try="$ac_compile"
  19799. case "(($ac_try" in
  19800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19801. *) ac_try_echo=$ac_try;;
  19802. esac
  19803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19804. (eval "$ac_compile") 2>conftest.er1
  19805. ac_status=$?
  19806. grep -v '^ *+' conftest.er1 >conftest.err
  19807. rm -f conftest.er1
  19808. cat conftest.err >&5
  19809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19810. (exit $ac_status); } && {
  19811. test -z "$ac_c_werror_flag" ||
  19812. test ! -s conftest.err
  19813. } && test -s conftest.$ac_objext; then
  19814. break
  19815. else
  19816. echo "$as_me: failed program was:" >&5
  19817. sed 's/^/| /' conftest.$ac_ext >&5
  19818. fi
  19819. rm -f core conftest.err conftest.$ac_objext
  19820. CC="$CC -n32"
  19821. rm -f conftest.$ac_objext
  19822. if { (ac_try="$ac_compile"
  19823. case "(($ac_try" in
  19824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19825. *) ac_try_echo=$ac_try;;
  19826. esac
  19827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19828. (eval "$ac_compile") 2>conftest.er1
  19829. ac_status=$?
  19830. grep -v '^ *+' conftest.er1 >conftest.err
  19831. rm -f conftest.er1
  19832. cat conftest.err >&5
  19833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19834. (exit $ac_status); } && {
  19835. test -z "$ac_c_werror_flag" ||
  19836. test ! -s conftest.err
  19837. } && test -s conftest.$ac_objext; then
  19838. ac_cv_sys_largefile_CC=' -n32'; break
  19839. else
  19840. echo "$as_me: failed program was:" >&5
  19841. sed 's/^/| /' conftest.$ac_ext >&5
  19842. fi
  19843. rm -f core conftest.err conftest.$ac_objext
  19844. break
  19845. done
  19846. CC=$ac_save_CC
  19847. rm -f conftest.$ac_ext
  19848. fi
  19849. fi
  19850. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  19851. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  19852. if test "$ac_cv_sys_largefile_CC" != no; then
  19853. CC=$CC$ac_cv_sys_largefile_CC
  19854. fi
  19855. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  19856. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  19857. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  19858. echo $ECHO_N "(cached) $ECHO_C" >&6
  19859. else
  19860. while :; do
  19861. cat >conftest.$ac_ext <<_ACEOF
  19862. /* confdefs.h. */
  19863. _ACEOF
  19864. cat confdefs.h >>conftest.$ac_ext
  19865. cat >>conftest.$ac_ext <<_ACEOF
  19866. /* end confdefs.h. */
  19867. #include <sys/types.h>
  19868. /* Check that off_t can represent 2**63 - 1 correctly.
  19869. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19870. since some C++ compilers masquerading as C compilers
  19871. incorrectly reject 9223372036854775807. */
  19872. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19873. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19874. && LARGE_OFF_T % 2147483647 == 1)
  19875. ? 1 : -1];
  19876. int
  19877. main ()
  19878. {
  19879. ;
  19880. return 0;
  19881. }
  19882. _ACEOF
  19883. rm -f conftest.$ac_objext
  19884. if { (ac_try="$ac_compile"
  19885. case "(($ac_try" in
  19886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19887. *) ac_try_echo=$ac_try;;
  19888. esac
  19889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19890. (eval "$ac_compile") 2>conftest.er1
  19891. ac_status=$?
  19892. grep -v '^ *+' conftest.er1 >conftest.err
  19893. rm -f conftest.er1
  19894. cat conftest.err >&5
  19895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19896. (exit $ac_status); } && {
  19897. test -z "$ac_c_werror_flag" ||
  19898. test ! -s conftest.err
  19899. } && test -s conftest.$ac_objext; then
  19900. ac_cv_sys_file_offset_bits=no; break
  19901. else
  19902. echo "$as_me: failed program was:" >&5
  19903. sed 's/^/| /' conftest.$ac_ext >&5
  19904. fi
  19905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19906. cat >conftest.$ac_ext <<_ACEOF
  19907. /* confdefs.h. */
  19908. _ACEOF
  19909. cat confdefs.h >>conftest.$ac_ext
  19910. cat >>conftest.$ac_ext <<_ACEOF
  19911. /* end confdefs.h. */
  19912. #define _FILE_OFFSET_BITS 64
  19913. #include <sys/types.h>
  19914. /* Check that off_t can represent 2**63 - 1 correctly.
  19915. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19916. since some C++ compilers masquerading as C compilers
  19917. incorrectly reject 9223372036854775807. */
  19918. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19919. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19920. && LARGE_OFF_T % 2147483647 == 1)
  19921. ? 1 : -1];
  19922. int
  19923. main ()
  19924. {
  19925. ;
  19926. return 0;
  19927. }
  19928. _ACEOF
  19929. rm -f conftest.$ac_objext
  19930. if { (ac_try="$ac_compile"
  19931. case "(($ac_try" in
  19932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19933. *) ac_try_echo=$ac_try;;
  19934. esac
  19935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19936. (eval "$ac_compile") 2>conftest.er1
  19937. ac_status=$?
  19938. grep -v '^ *+' conftest.er1 >conftest.err
  19939. rm -f conftest.er1
  19940. cat conftest.err >&5
  19941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19942. (exit $ac_status); } && {
  19943. test -z "$ac_c_werror_flag" ||
  19944. test ! -s conftest.err
  19945. } && test -s conftest.$ac_objext; then
  19946. ac_cv_sys_file_offset_bits=64; break
  19947. else
  19948. echo "$as_me: failed program was:" >&5
  19949. sed 's/^/| /' conftest.$ac_ext >&5
  19950. fi
  19951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19952. ac_cv_sys_file_offset_bits=unknown
  19953. break
  19954. done
  19955. fi
  19956. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  19957. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  19958. case $ac_cv_sys_file_offset_bits in #(
  19959. no | unknown) ;;
  19960. *)
  19961. cat >>confdefs.h <<_ACEOF
  19962. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  19963. _ACEOF
  19964. ;;
  19965. esac
  19966. rm -f conftest*
  19967. if test $ac_cv_sys_file_offset_bits = unknown; then
  19968. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  19969. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  19970. if test "${ac_cv_sys_large_files+set}" = set; then
  19971. echo $ECHO_N "(cached) $ECHO_C" >&6
  19972. else
  19973. while :; do
  19974. cat >conftest.$ac_ext <<_ACEOF
  19975. /* confdefs.h. */
  19976. _ACEOF
  19977. cat confdefs.h >>conftest.$ac_ext
  19978. cat >>conftest.$ac_ext <<_ACEOF
  19979. /* end confdefs.h. */
  19980. #include <sys/types.h>
  19981. /* Check that off_t can represent 2**63 - 1 correctly.
  19982. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19983. since some C++ compilers masquerading as C compilers
  19984. incorrectly reject 9223372036854775807. */
  19985. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19986. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19987. && LARGE_OFF_T % 2147483647 == 1)
  19988. ? 1 : -1];
  19989. int
  19990. main ()
  19991. {
  19992. ;
  19993. return 0;
  19994. }
  19995. _ACEOF
  19996. rm -f conftest.$ac_objext
  19997. if { (ac_try="$ac_compile"
  19998. case "(($ac_try" in
  19999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20000. *) ac_try_echo=$ac_try;;
  20001. esac
  20002. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20003. (eval "$ac_compile") 2>conftest.er1
  20004. ac_status=$?
  20005. grep -v '^ *+' conftest.er1 >conftest.err
  20006. rm -f conftest.er1
  20007. cat conftest.err >&5
  20008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20009. (exit $ac_status); } && {
  20010. test -z "$ac_c_werror_flag" ||
  20011. test ! -s conftest.err
  20012. } && test -s conftest.$ac_objext; then
  20013. ac_cv_sys_large_files=no; break
  20014. else
  20015. echo "$as_me: failed program was:" >&5
  20016. sed 's/^/| /' conftest.$ac_ext >&5
  20017. fi
  20018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20019. cat >conftest.$ac_ext <<_ACEOF
  20020. /* confdefs.h. */
  20021. _ACEOF
  20022. cat confdefs.h >>conftest.$ac_ext
  20023. cat >>conftest.$ac_ext <<_ACEOF
  20024. /* end confdefs.h. */
  20025. #define _LARGE_FILES 1
  20026. #include <sys/types.h>
  20027. /* Check that off_t can represent 2**63 - 1 correctly.
  20028. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20029. since some C++ compilers masquerading as C compilers
  20030. incorrectly reject 9223372036854775807. */
  20031. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20032. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20033. && LARGE_OFF_T % 2147483647 == 1)
  20034. ? 1 : -1];
  20035. int
  20036. main ()
  20037. {
  20038. ;
  20039. return 0;
  20040. }
  20041. _ACEOF
  20042. rm -f conftest.$ac_objext
  20043. if { (ac_try="$ac_compile"
  20044. case "(($ac_try" in
  20045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20046. *) ac_try_echo=$ac_try;;
  20047. esac
  20048. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20049. (eval "$ac_compile") 2>conftest.er1
  20050. ac_status=$?
  20051. grep -v '^ *+' conftest.er1 >conftest.err
  20052. rm -f conftest.er1
  20053. cat conftest.err >&5
  20054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20055. (exit $ac_status); } && {
  20056. test -z "$ac_c_werror_flag" ||
  20057. test ! -s conftest.err
  20058. } && test -s conftest.$ac_objext; then
  20059. ac_cv_sys_large_files=1; break
  20060. else
  20061. echo "$as_me: failed program was:" >&5
  20062. sed 's/^/| /' conftest.$ac_ext >&5
  20063. fi
  20064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20065. ac_cv_sys_large_files=unknown
  20066. break
  20067. done
  20068. fi
  20069. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20070. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20071. case $ac_cv_sys_large_files in #(
  20072. no | unknown) ;;
  20073. *)
  20074. cat >>confdefs.h <<_ACEOF
  20075. #define _LARGE_FILES $ac_cv_sys_large_files
  20076. _ACEOF
  20077. ;;
  20078. esac
  20079. rm -f conftest*
  20080. fi
  20081. fi
  20082. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20083. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  20084. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20085. echo $ECHO_N "(cached) $ECHO_C" >&6
  20086. else
  20087. while :; do
  20088. cat >conftest.$ac_ext <<_ACEOF
  20089. /* confdefs.h. */
  20090. _ACEOF
  20091. cat confdefs.h >>conftest.$ac_ext
  20092. cat >>conftest.$ac_ext <<_ACEOF
  20093. /* end confdefs.h. */
  20094. #include <stdio.h>
  20095. int
  20096. main ()
  20097. {
  20098. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20099. ;
  20100. return 0;
  20101. }
  20102. _ACEOF
  20103. rm -f conftest.$ac_objext conftest$ac_exeext
  20104. if { (ac_try="$ac_link"
  20105. case "(($ac_try" in
  20106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20107. *) ac_try_echo=$ac_try;;
  20108. esac
  20109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20110. (eval "$ac_link") 2>conftest.er1
  20111. ac_status=$?
  20112. grep -v '^ *+' conftest.er1 >conftest.err
  20113. rm -f conftest.er1
  20114. cat conftest.err >&5
  20115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20116. (exit $ac_status); } && {
  20117. test -z "$ac_c_werror_flag" ||
  20118. test ! -s conftest.err
  20119. } && test -s conftest$ac_exeext &&
  20120. $as_test_x conftest$ac_exeext; then
  20121. ac_cv_sys_largefile_source=no; break
  20122. else
  20123. echo "$as_me: failed program was:" >&5
  20124. sed 's/^/| /' conftest.$ac_ext >&5
  20125. fi
  20126. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20127. conftest$ac_exeext conftest.$ac_ext
  20128. cat >conftest.$ac_ext <<_ACEOF
  20129. /* confdefs.h. */
  20130. _ACEOF
  20131. cat confdefs.h >>conftest.$ac_ext
  20132. cat >>conftest.$ac_ext <<_ACEOF
  20133. /* end confdefs.h. */
  20134. #define _LARGEFILE_SOURCE 1
  20135. #include <stdio.h>
  20136. int
  20137. main ()
  20138. {
  20139. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20140. ;
  20141. return 0;
  20142. }
  20143. _ACEOF
  20144. rm -f conftest.$ac_objext conftest$ac_exeext
  20145. if { (ac_try="$ac_link"
  20146. case "(($ac_try" in
  20147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20148. *) ac_try_echo=$ac_try;;
  20149. esac
  20150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20151. (eval "$ac_link") 2>conftest.er1
  20152. ac_status=$?
  20153. grep -v '^ *+' conftest.er1 >conftest.err
  20154. rm -f conftest.er1
  20155. cat conftest.err >&5
  20156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20157. (exit $ac_status); } && {
  20158. test -z "$ac_c_werror_flag" ||
  20159. test ! -s conftest.err
  20160. } && test -s conftest$ac_exeext &&
  20161. $as_test_x conftest$ac_exeext; then
  20162. ac_cv_sys_largefile_source=1; break
  20163. else
  20164. echo "$as_me: failed program was:" >&5
  20165. sed 's/^/| /' conftest.$ac_ext >&5
  20166. fi
  20167. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20168. conftest$ac_exeext conftest.$ac_ext
  20169. ac_cv_sys_largefile_source=unknown
  20170. break
  20171. done
  20172. fi
  20173. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20174. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20175. case $ac_cv_sys_largefile_source in #(
  20176. no | unknown) ;;
  20177. *)
  20178. cat >>confdefs.h <<_ACEOF
  20179. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20180. _ACEOF
  20181. ;;
  20182. esac
  20183. rm -f conftest*
  20184. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20185. # in glibc 2.1.3, but that breaks too many other things.
  20186. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20187. if test $ac_cv_sys_largefile_source != unknown; then
  20188. cat >>confdefs.h <<\_ACEOF
  20189. #define HAVE_FSEEKO 1
  20190. _ACEOF
  20191. fi
  20192. { echo "$as_me:$LINENO: checking for u_int8_t" >&5
  20193. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
  20194. if test "${ac_cv_type_u_int8_t+set}" = set; then
  20195. echo $ECHO_N "(cached) $ECHO_C" >&6
  20196. else
  20197. cat >conftest.$ac_ext <<_ACEOF
  20198. /* confdefs.h. */
  20199. _ACEOF
  20200. cat confdefs.h >>conftest.$ac_ext
  20201. cat >>conftest.$ac_ext <<_ACEOF
  20202. /* end confdefs.h. */
  20203. $ac_includes_default
  20204. typedef u_int8_t ac__type_new_;
  20205. int
  20206. main ()
  20207. {
  20208. if ((ac__type_new_ *) 0)
  20209. return 0;
  20210. if (sizeof (ac__type_new_))
  20211. return 0;
  20212. ;
  20213. return 0;
  20214. }
  20215. _ACEOF
  20216. rm -f conftest.$ac_objext
  20217. if { (ac_try="$ac_compile"
  20218. case "(($ac_try" in
  20219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20220. *) ac_try_echo=$ac_try;;
  20221. esac
  20222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20223. (eval "$ac_compile") 2>conftest.er1
  20224. ac_status=$?
  20225. grep -v '^ *+' conftest.er1 >conftest.err
  20226. rm -f conftest.er1
  20227. cat conftest.err >&5
  20228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20229. (exit $ac_status); } && {
  20230. test -z "$ac_c_werror_flag" ||
  20231. test ! -s conftest.err
  20232. } && test -s conftest.$ac_objext; then
  20233. ac_cv_type_u_int8_t=yes
  20234. else
  20235. echo "$as_me: failed program was:" >&5
  20236. sed 's/^/| /' conftest.$ac_ext >&5
  20237. ac_cv_type_u_int8_t=no
  20238. fi
  20239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20240. fi
  20241. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  20242. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
  20243. if test $ac_cv_type_u_int8_t = yes; then
  20244. :
  20245. else
  20246. cat >>confdefs.h <<_ACEOF
  20247. #define u_int8_t uint8_t
  20248. _ACEOF
  20249. fi
  20250. { echo "$as_me:$LINENO: checking for u_int16_t" >&5
  20251. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
  20252. if test "${ac_cv_type_u_int16_t+set}" = set; then
  20253. echo $ECHO_N "(cached) $ECHO_C" >&6
  20254. else
  20255. cat >conftest.$ac_ext <<_ACEOF
  20256. /* confdefs.h. */
  20257. _ACEOF
  20258. cat confdefs.h >>conftest.$ac_ext
  20259. cat >>conftest.$ac_ext <<_ACEOF
  20260. /* end confdefs.h. */
  20261. $ac_includes_default
  20262. typedef u_int16_t ac__type_new_;
  20263. int
  20264. main ()
  20265. {
  20266. if ((ac__type_new_ *) 0)
  20267. return 0;
  20268. if (sizeof (ac__type_new_))
  20269. return 0;
  20270. ;
  20271. return 0;
  20272. }
  20273. _ACEOF
  20274. rm -f conftest.$ac_objext
  20275. if { (ac_try="$ac_compile"
  20276. case "(($ac_try" in
  20277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20278. *) ac_try_echo=$ac_try;;
  20279. esac
  20280. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20281. (eval "$ac_compile") 2>conftest.er1
  20282. ac_status=$?
  20283. grep -v '^ *+' conftest.er1 >conftest.err
  20284. rm -f conftest.er1
  20285. cat conftest.err >&5
  20286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20287. (exit $ac_status); } && {
  20288. test -z "$ac_c_werror_flag" ||
  20289. test ! -s conftest.err
  20290. } && test -s conftest.$ac_objext; then
  20291. ac_cv_type_u_int16_t=yes
  20292. else
  20293. echo "$as_me: failed program was:" >&5
  20294. sed 's/^/| /' conftest.$ac_ext >&5
  20295. ac_cv_type_u_int16_t=no
  20296. fi
  20297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20298. fi
  20299. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  20300. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
  20301. if test $ac_cv_type_u_int16_t = yes; then
  20302. :
  20303. else
  20304. cat >>confdefs.h <<_ACEOF
  20305. #define u_int16_t uint16_t
  20306. _ACEOF
  20307. fi
  20308. { echo "$as_me:$LINENO: checking for u_int32_t" >&5
  20309. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
  20310. if test "${ac_cv_type_u_int32_t+set}" = set; then
  20311. echo $ECHO_N "(cached) $ECHO_C" >&6
  20312. else
  20313. cat >conftest.$ac_ext <<_ACEOF
  20314. /* confdefs.h. */
  20315. _ACEOF
  20316. cat confdefs.h >>conftest.$ac_ext
  20317. cat >>conftest.$ac_ext <<_ACEOF
  20318. /* end confdefs.h. */
  20319. $ac_includes_default
  20320. typedef u_int32_t ac__type_new_;
  20321. int
  20322. main ()
  20323. {
  20324. if ((ac__type_new_ *) 0)
  20325. return 0;
  20326. if (sizeof (ac__type_new_))
  20327. return 0;
  20328. ;
  20329. return 0;
  20330. }
  20331. _ACEOF
  20332. rm -f conftest.$ac_objext
  20333. if { (ac_try="$ac_compile"
  20334. case "(($ac_try" in
  20335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20336. *) ac_try_echo=$ac_try;;
  20337. esac
  20338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20339. (eval "$ac_compile") 2>conftest.er1
  20340. ac_status=$?
  20341. grep -v '^ *+' conftest.er1 >conftest.err
  20342. rm -f conftest.er1
  20343. cat conftest.err >&5
  20344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20345. (exit $ac_status); } && {
  20346. test -z "$ac_c_werror_flag" ||
  20347. test ! -s conftest.err
  20348. } && test -s conftest.$ac_objext; then
  20349. ac_cv_type_u_int32_t=yes
  20350. else
  20351. echo "$as_me: failed program was:" >&5
  20352. sed 's/^/| /' conftest.$ac_ext >&5
  20353. ac_cv_type_u_int32_t=no
  20354. fi
  20355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20356. fi
  20357. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  20358. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
  20359. if test $ac_cv_type_u_int32_t = yes; then
  20360. :
  20361. else
  20362. cat >>confdefs.h <<_ACEOF
  20363. #define u_int32_t uint32_t
  20364. _ACEOF
  20365. fi
  20366. { echo "$as_me:$LINENO: checking for u_int64_t" >&5
  20367. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
  20368. if test "${ac_cv_type_u_int64_t+set}" = set; then
  20369. echo $ECHO_N "(cached) $ECHO_C" >&6
  20370. else
  20371. cat >conftest.$ac_ext <<_ACEOF
  20372. /* confdefs.h. */
  20373. _ACEOF
  20374. cat confdefs.h >>conftest.$ac_ext
  20375. cat >>conftest.$ac_ext <<_ACEOF
  20376. /* end confdefs.h. */
  20377. $ac_includes_default
  20378. typedef u_int64_t ac__type_new_;
  20379. int
  20380. main ()
  20381. {
  20382. if ((ac__type_new_ *) 0)
  20383. return 0;
  20384. if (sizeof (ac__type_new_))
  20385. return 0;
  20386. ;
  20387. return 0;
  20388. }
  20389. _ACEOF
  20390. rm -f conftest.$ac_objext
  20391. if { (ac_try="$ac_compile"
  20392. case "(($ac_try" in
  20393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20394. *) ac_try_echo=$ac_try;;
  20395. esac
  20396. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20397. (eval "$ac_compile") 2>conftest.er1
  20398. ac_status=$?
  20399. grep -v '^ *+' conftest.er1 >conftest.err
  20400. rm -f conftest.er1
  20401. cat conftest.err >&5
  20402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20403. (exit $ac_status); } && {
  20404. test -z "$ac_c_werror_flag" ||
  20405. test ! -s conftest.err
  20406. } && test -s conftest.$ac_objext; then
  20407. ac_cv_type_u_int64_t=yes
  20408. else
  20409. echo "$as_me: failed program was:" >&5
  20410. sed 's/^/| /' conftest.$ac_ext >&5
  20411. ac_cv_type_u_int64_t=no
  20412. fi
  20413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20414. fi
  20415. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  20416. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
  20417. if test $ac_cv_type_u_int64_t = yes; then
  20418. :
  20419. else
  20420. cat >>confdefs.h <<_ACEOF
  20421. #define u_int64_t uint64_t
  20422. _ACEOF
  20423. fi
  20424. { echo "$as_me:$LINENO: checking for $CC -Wextra support" >&5
  20425. echo $ECHO_N "checking for $CC -Wextra support... $ECHO_C" >&6; }
  20426. OLD_CFLAGS=$CFLAGS
  20427. CFLAGS="$CFLAGS -Wextra"
  20428. wextra=""
  20429. cat >conftest.$ac_ext <<_ACEOF
  20430. #include <stdlib.h>
  20431. int main(int argc, char *argv) { return(0); }
  20432. _ACEOF
  20433. rm -f conftest.$ac_objext
  20434. if { (ac_try="$ac_compile"
  20435. case "(($ac_try" in
  20436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20437. *) ac_try_echo=$ac_try;;
  20438. esac
  20439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20440. (eval "$ac_compile") 2>conftest.er1
  20441. ac_status=$?
  20442. grep -v '^ *+' conftest.er1 >conftest.err
  20443. rm -f conftest.er1
  20444. cat conftest.err >&5
  20445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20446. (exit $ac_status); } && {
  20447. test -z "$ac_c_werror_flag" ||
  20448. test ! -s conftest.err
  20449. } && test -s conftest.$ac_objext; then
  20450. { echo "$as_me:$LINENO: result: yes" >&5
  20451. echo "${ECHO_T}yes" >&6; }
  20452. wextra="-Wextra"
  20453. else
  20454. echo "$as_me: failed program was:" >&5
  20455. sed 's/^/| /' conftest.$ac_ext >&5
  20456. { echo "$as_me:$LINENO: result: no" >&5
  20457. echo "${ECHO_T}no" >&6; }
  20458. fi
  20459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20460. CFLAGS="$OLD_CFLAGS $wextra"
  20461. { echo "$as_me:$LINENO: checking for $CC -Wno-variadic-macros support" >&5
  20462. echo $ECHO_N "checking for $CC -Wno-variadic-macros support... $ECHO_C" >&6; }
  20463. OLD_CFLAGS=$CFLAGS
  20464. CFLAGS="$CFLAGS -Wno-variadic-macros"
  20465. wno_variadic_macros=""
  20466. cat >conftest.$ac_ext <<_ACEOF
  20467. #include <stdlib.h>
  20468. int main(int argc, char *argv) { return(0); }
  20469. _ACEOF
  20470. rm -f conftest.$ac_objext
  20471. if { (ac_try="$ac_compile"
  20472. case "(($ac_try" in
  20473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20474. *) ac_try_echo=$ac_try;;
  20475. esac
  20476. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20477. (eval "$ac_compile") 2>conftest.er1
  20478. ac_status=$?
  20479. grep -v '^ *+' conftest.er1 >conftest.err
  20480. rm -f conftest.er1
  20481. cat conftest.err >&5
  20482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20483. (exit $ac_status); } && {
  20484. test -z "$ac_c_werror_flag" ||
  20485. test ! -s conftest.err
  20486. } && test -s conftest.$ac_objext; then
  20487. { echo "$as_me:$LINENO: result: yes" >&5
  20488. echo "${ECHO_T}yes" >&6; }
  20489. wno_variadic_macros="-Wno-variadic-macros"
  20490. else
  20491. echo "$as_me: failed program was:" >&5
  20492. sed 's/^/| /' conftest.$ac_ext >&5
  20493. { echo "$as_me:$LINENO: result: no" >&5
  20494. echo "${ECHO_T}no" >&6; }
  20495. fi
  20496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20497. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  20498. { echo "$as_me:$LINENO: checking for $CC -Wfatal-errors support" >&5
  20499. echo $ECHO_N "checking for $CC -Wfatal-errors support... $ECHO_C" >&6; }
  20500. OLD_CFLAGS=$CFLAGS
  20501. CFLAGS="$CFLAGS -Wfatal-errors"
  20502. wfatal_errors=""
  20503. cat >conftest.$ac_ext <<_ACEOF
  20504. #include <stdlib.h>
  20505. int main(int argc, char *argv) { return(0); }
  20506. _ACEOF
  20507. rm -f conftest.$ac_objext
  20508. if { (ac_try="$ac_compile"
  20509. case "(($ac_try" in
  20510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20511. *) ac_try_echo=$ac_try;;
  20512. esac
  20513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20514. (eval "$ac_compile") 2>conftest.er1
  20515. ac_status=$?
  20516. grep -v '^ *+' conftest.er1 >conftest.err
  20517. rm -f conftest.er1
  20518. cat conftest.err >&5
  20519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20520. (exit $ac_status); } && {
  20521. test -z "$ac_c_werror_flag" ||
  20522. test ! -s conftest.err
  20523. } && test -s conftest.$ac_objext; then
  20524. { echo "$as_me:$LINENO: result: yes" >&5
  20525. echo "${ECHO_T}yes" >&6; }
  20526. wfatal_errors="-Wfatal-errors"
  20527. else
  20528. echo "$as_me: failed program was:" >&5
  20529. sed 's/^/| /' conftest.$ac_ext >&5
  20530. { echo "$as_me:$LINENO: result: no" >&5
  20531. echo "${ECHO_T}no" >&6; }
  20532. fi
  20533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20534. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  20535. 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
  20536. do
  20537. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20538. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20539. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20540. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20541. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20542. echo $ECHO_N "(cached) $ECHO_C" >&6
  20543. fi
  20544. ac_res=`eval echo '${'$as_ac_Header'}'`
  20545. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20546. echo "${ECHO_T}$ac_res" >&6; }
  20547. else
  20548. # Is the header compilable?
  20549. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20550. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20551. cat >conftest.$ac_ext <<_ACEOF
  20552. /* confdefs.h. */
  20553. _ACEOF
  20554. cat confdefs.h >>conftest.$ac_ext
  20555. cat >>conftest.$ac_ext <<_ACEOF
  20556. /* end confdefs.h. */
  20557. $ac_includes_default
  20558. #include <$ac_header>
  20559. _ACEOF
  20560. rm -f conftest.$ac_objext
  20561. if { (ac_try="$ac_compile"
  20562. case "(($ac_try" in
  20563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20564. *) ac_try_echo=$ac_try;;
  20565. esac
  20566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20567. (eval "$ac_compile") 2>conftest.er1
  20568. ac_status=$?
  20569. grep -v '^ *+' conftest.er1 >conftest.err
  20570. rm -f conftest.er1
  20571. cat conftest.err >&5
  20572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20573. (exit $ac_status); } && {
  20574. test -z "$ac_c_werror_flag" ||
  20575. test ! -s conftest.err
  20576. } && test -s conftest.$ac_objext; then
  20577. ac_header_compiler=yes
  20578. else
  20579. echo "$as_me: failed program was:" >&5
  20580. sed 's/^/| /' conftest.$ac_ext >&5
  20581. ac_header_compiler=no
  20582. fi
  20583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20584. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20585. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20586. # Is the header present?
  20587. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20588. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20589. cat >conftest.$ac_ext <<_ACEOF
  20590. /* confdefs.h. */
  20591. _ACEOF
  20592. cat confdefs.h >>conftest.$ac_ext
  20593. cat >>conftest.$ac_ext <<_ACEOF
  20594. /* end confdefs.h. */
  20595. #include <$ac_header>
  20596. _ACEOF
  20597. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20598. case "(($ac_try" in
  20599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20600. *) ac_try_echo=$ac_try;;
  20601. esac
  20602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20603. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20604. ac_status=$?
  20605. grep -v '^ *+' conftest.er1 >conftest.err
  20606. rm -f conftest.er1
  20607. cat conftest.err >&5
  20608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20609. (exit $ac_status); } >/dev/null && {
  20610. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20611. test ! -s conftest.err
  20612. }; then
  20613. ac_header_preproc=yes
  20614. else
  20615. echo "$as_me: failed program was:" >&5
  20616. sed 's/^/| /' conftest.$ac_ext >&5
  20617. ac_header_preproc=no
  20618. fi
  20619. rm -f conftest.err conftest.$ac_ext
  20620. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20621. echo "${ECHO_T}$ac_header_preproc" >&6; }
  20622. # So? What about this header?
  20623. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20624. yes:no: )
  20625. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20626. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20627. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20628. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20629. ac_header_preproc=yes
  20630. ;;
  20631. no:yes:* )
  20632. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20633. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20634. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20635. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20636. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20637. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20638. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20639. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20640. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20641. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20642. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20643. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20644. ;;
  20645. esac
  20646. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20647. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20648. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20649. echo $ECHO_N "(cached) $ECHO_C" >&6
  20650. else
  20651. eval "$as_ac_Header=\$ac_header_preproc"
  20652. fi
  20653. ac_res=`eval echo '${'$as_ac_Header'}'`
  20654. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20655. echo "${ECHO_T}$ac_res" >&6; }
  20656. fi
  20657. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20658. cat >>confdefs.h <<_ACEOF
  20659. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20660. _ACEOF
  20661. fi
  20662. done
  20663. for ac_header in sys/sysctl.h net/route.h
  20664. do
  20665. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20666. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20667. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20668. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20669. echo $ECHO_N "(cached) $ECHO_C" >&6
  20670. else
  20671. cat >conftest.$ac_ext <<_ACEOF
  20672. /* confdefs.h. */
  20673. _ACEOF
  20674. cat confdefs.h >>conftest.$ac_ext
  20675. cat >>conftest.$ac_ext <<_ACEOF
  20676. /* end confdefs.h. */
  20677. #if HAVE_SYS_PARAM_H
  20678. #include <sys/param.h>
  20679. #endif
  20680. #if HAVE_SYS_TYPES_H
  20681. #include <sys/types.h>
  20682. #endif
  20683. #if HAVE_SYS_SOCKET_H
  20684. #include <sys/socket.h>
  20685. #endif
  20686. #include <$ac_header>
  20687. _ACEOF
  20688. rm -f conftest.$ac_objext
  20689. if { (ac_try="$ac_compile"
  20690. case "(($ac_try" in
  20691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20692. *) ac_try_echo=$ac_try;;
  20693. esac
  20694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20695. (eval "$ac_compile") 2>conftest.er1
  20696. ac_status=$?
  20697. grep -v '^ *+' conftest.er1 >conftest.err
  20698. rm -f conftest.er1
  20699. cat conftest.err >&5
  20700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20701. (exit $ac_status); } && {
  20702. test -z "$ac_c_werror_flag" ||
  20703. test ! -s conftest.err
  20704. } && test -s conftest.$ac_objext; then
  20705. eval "$as_ac_Header=yes"
  20706. else
  20707. echo "$as_me: failed program was:" >&5
  20708. sed 's/^/| /' conftest.$ac_ext >&5
  20709. eval "$as_ac_Header=no"
  20710. fi
  20711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20712. fi
  20713. ac_res=`eval echo '${'$as_ac_Header'}'`
  20714. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20715. echo "${ECHO_T}$ac_res" >&6; }
  20716. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20717. cat >>confdefs.h <<_ACEOF
  20718. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20719. _ACEOF
  20720. fi
  20721. done
  20722. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  20723. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  20724. if test "${ac_cv_lib_socket_socket+set}" = set; then
  20725. echo $ECHO_N "(cached) $ECHO_C" >&6
  20726. else
  20727. ac_check_lib_save_LIBS=$LIBS
  20728. LIBS="-lsocket $LIBS"
  20729. cat >conftest.$ac_ext <<_ACEOF
  20730. /* confdefs.h. */
  20731. _ACEOF
  20732. cat confdefs.h >>conftest.$ac_ext
  20733. cat >>conftest.$ac_ext <<_ACEOF
  20734. /* end confdefs.h. */
  20735. /* Override any GCC internal prototype to avoid an error.
  20736. Use char because int might match the return type of a GCC
  20737. builtin and then its argument prototype would still apply. */
  20738. #ifdef __cplusplus
  20739. extern "C"
  20740. #endif
  20741. char socket ();
  20742. int
  20743. main ()
  20744. {
  20745. return socket ();
  20746. ;
  20747. return 0;
  20748. }
  20749. _ACEOF
  20750. rm -f conftest.$ac_objext conftest$ac_exeext
  20751. if { (ac_try="$ac_link"
  20752. case "(($ac_try" in
  20753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20754. *) ac_try_echo=$ac_try;;
  20755. esac
  20756. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20757. (eval "$ac_link") 2>conftest.er1
  20758. ac_status=$?
  20759. grep -v '^ *+' conftest.er1 >conftest.err
  20760. rm -f conftest.er1
  20761. cat conftest.err >&5
  20762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20763. (exit $ac_status); } && {
  20764. test -z "$ac_c_werror_flag" ||
  20765. test ! -s conftest.err
  20766. } && test -s conftest$ac_exeext &&
  20767. $as_test_x conftest$ac_exeext; then
  20768. ac_cv_lib_socket_socket=yes
  20769. else
  20770. echo "$as_me: failed program was:" >&5
  20771. sed 's/^/| /' conftest.$ac_ext >&5
  20772. ac_cv_lib_socket_socket=no
  20773. fi
  20774. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20775. conftest$ac_exeext conftest.$ac_ext
  20776. LIBS=$ac_check_lib_save_LIBS
  20777. fi
  20778. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  20779. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  20780. if test $ac_cv_lib_socket_socket = yes; then
  20781. cat >>confdefs.h <<_ACEOF
  20782. #define HAVE_LIBSOCKET 1
  20783. _ACEOF
  20784. LIBS="-lsocket $LIBS"
  20785. fi
  20786. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  20787. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  20788. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  20789. echo $ECHO_N "(cached) $ECHO_C" >&6
  20790. else
  20791. ac_check_lib_save_LIBS=$LIBS
  20792. LIBS="-lnsl $LIBS"
  20793. cat >conftest.$ac_ext <<_ACEOF
  20794. /* confdefs.h. */
  20795. _ACEOF
  20796. cat confdefs.h >>conftest.$ac_ext
  20797. cat >>conftest.$ac_ext <<_ACEOF
  20798. /* end confdefs.h. */
  20799. /* Override any GCC internal prototype to avoid an error.
  20800. Use char because int might match the return type of a GCC
  20801. builtin and then its argument prototype would still apply. */
  20802. #ifdef __cplusplus
  20803. extern "C"
  20804. #endif
  20805. char gethostbyname ();
  20806. int
  20807. main ()
  20808. {
  20809. return gethostbyname ();
  20810. ;
  20811. return 0;
  20812. }
  20813. _ACEOF
  20814. rm -f conftest.$ac_objext conftest$ac_exeext
  20815. if { (ac_try="$ac_link"
  20816. case "(($ac_try" in
  20817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20818. *) ac_try_echo=$ac_try;;
  20819. esac
  20820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20821. (eval "$ac_link") 2>conftest.er1
  20822. ac_status=$?
  20823. grep -v '^ *+' conftest.er1 >conftest.err
  20824. rm -f conftest.er1
  20825. cat conftest.err >&5
  20826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20827. (exit $ac_status); } && {
  20828. test -z "$ac_c_werror_flag" ||
  20829. test ! -s conftest.err
  20830. } && test -s conftest$ac_exeext &&
  20831. $as_test_x conftest$ac_exeext; then
  20832. ac_cv_lib_nsl_gethostbyname=yes
  20833. else
  20834. echo "$as_me: failed program was:" >&5
  20835. sed 's/^/| /' conftest.$ac_ext >&5
  20836. ac_cv_lib_nsl_gethostbyname=no
  20837. fi
  20838. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20839. conftest$ac_exeext conftest.$ac_ext
  20840. LIBS=$ac_check_lib_save_LIBS
  20841. fi
  20842. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20843. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  20844. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  20845. cat >>confdefs.h <<_ACEOF
  20846. #define HAVE_LIBNSL 1
  20847. _ACEOF
  20848. LIBS="-lnsl $LIBS"
  20849. fi
  20850. { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  20851. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
  20852. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  20853. echo $ECHO_N "(cached) $ECHO_C" >&6
  20854. else
  20855. ac_check_lib_save_LIBS=$LIBS
  20856. LIBS="-lrt $LIBS"
  20857. cat >conftest.$ac_ext <<_ACEOF
  20858. /* confdefs.h. */
  20859. _ACEOF
  20860. cat confdefs.h >>conftest.$ac_ext
  20861. cat >>conftest.$ac_ext <<_ACEOF
  20862. /* end confdefs.h. */
  20863. /* Override any GCC internal prototype to avoid an error.
  20864. Use char because int might match the return type of a GCC
  20865. builtin and then its argument prototype would still apply. */
  20866. #ifdef __cplusplus
  20867. extern "C"
  20868. #endif
  20869. char nanosleep ();
  20870. int
  20871. main ()
  20872. {
  20873. return nanosleep ();
  20874. ;
  20875. return 0;
  20876. }
  20877. _ACEOF
  20878. rm -f conftest.$ac_objext conftest$ac_exeext
  20879. if { (ac_try="$ac_link"
  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_link") 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_exeext &&
  20895. $as_test_x conftest$ac_exeext; then
  20896. ac_cv_lib_rt_nanosleep=yes
  20897. else
  20898. echo "$as_me: failed program was:" >&5
  20899. sed 's/^/| /' conftest.$ac_ext >&5
  20900. ac_cv_lib_rt_nanosleep=no
  20901. fi
  20902. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20903. conftest$ac_exeext conftest.$ac_ext
  20904. LIBS=$ac_check_lib_save_LIBS
  20905. fi
  20906. { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  20907. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
  20908. if test $ac_cv_lib_rt_nanosleep = yes; then
  20909. cat >>confdefs.h <<_ACEOF
  20910. #define HAVE_LIBRT 1
  20911. _ACEOF
  20912. LIBS="-lrt $LIBS"
  20913. fi
  20914. for ac_header in stdlib.h
  20915. do
  20916. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20917. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20918. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20919. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20920. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20921. echo $ECHO_N "(cached) $ECHO_C" >&6
  20922. fi
  20923. ac_res=`eval echo '${'$as_ac_Header'}'`
  20924. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20925. echo "${ECHO_T}$ac_res" >&6; }
  20926. else
  20927. # Is the header compilable?
  20928. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20929. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20930. cat >conftest.$ac_ext <<_ACEOF
  20931. /* confdefs.h. */
  20932. _ACEOF
  20933. cat confdefs.h >>conftest.$ac_ext
  20934. cat >>conftest.$ac_ext <<_ACEOF
  20935. /* end confdefs.h. */
  20936. $ac_includes_default
  20937. #include <$ac_header>
  20938. _ACEOF
  20939. rm -f conftest.$ac_objext
  20940. if { (ac_try="$ac_compile"
  20941. case "(($ac_try" in
  20942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20943. *) ac_try_echo=$ac_try;;
  20944. esac
  20945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20946. (eval "$ac_compile") 2>conftest.er1
  20947. ac_status=$?
  20948. grep -v '^ *+' conftest.er1 >conftest.err
  20949. rm -f conftest.er1
  20950. cat conftest.err >&5
  20951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20952. (exit $ac_status); } && {
  20953. test -z "$ac_c_werror_flag" ||
  20954. test ! -s conftest.err
  20955. } && test -s conftest.$ac_objext; then
  20956. ac_header_compiler=yes
  20957. else
  20958. echo "$as_me: failed program was:" >&5
  20959. sed 's/^/| /' conftest.$ac_ext >&5
  20960. ac_header_compiler=no
  20961. fi
  20962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20963. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20964. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20965. # Is the header present?
  20966. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20967. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20968. cat >conftest.$ac_ext <<_ACEOF
  20969. /* confdefs.h. */
  20970. _ACEOF
  20971. cat confdefs.h >>conftest.$ac_ext
  20972. cat >>conftest.$ac_ext <<_ACEOF
  20973. /* end confdefs.h. */
  20974. #include <$ac_header>
  20975. _ACEOF
  20976. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20977. case "(($ac_try" in
  20978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20979. *) ac_try_echo=$ac_try;;
  20980. esac
  20981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20982. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20983. ac_status=$?
  20984. grep -v '^ *+' conftest.er1 >conftest.err
  20985. rm -f conftest.er1
  20986. cat conftest.err >&5
  20987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20988. (exit $ac_status); } >/dev/null && {
  20989. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20990. test ! -s conftest.err
  20991. }; then
  20992. ac_header_preproc=yes
  20993. else
  20994. echo "$as_me: failed program was:" >&5
  20995. sed 's/^/| /' conftest.$ac_ext >&5
  20996. ac_header_preproc=no
  20997. fi
  20998. rm -f conftest.err conftest.$ac_ext
  20999. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21000. echo "${ECHO_T}$ac_header_preproc" >&6; }
  21001. # So? What about this header?
  21002. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21003. yes:no: )
  21004. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21005. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21006. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21007. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21008. ac_header_preproc=yes
  21009. ;;
  21010. no:yes:* )
  21011. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21012. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21013. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21014. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21015. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21016. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21017. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21018. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21019. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21020. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21021. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21022. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21023. ;;
  21024. esac
  21025. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21026. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21027. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21028. echo $ECHO_N "(cached) $ECHO_C" >&6
  21029. else
  21030. eval "$as_ac_Header=\$ac_header_preproc"
  21031. fi
  21032. ac_res=`eval echo '${'$as_ac_Header'}'`
  21033. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21034. echo "${ECHO_T}$ac_res" >&6; }
  21035. fi
  21036. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21037. cat >>confdefs.h <<_ACEOF
  21038. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21039. _ACEOF
  21040. fi
  21041. done
  21042. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  21043. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  21044. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  21045. echo $ECHO_N "(cached) $ECHO_C" >&6
  21046. else
  21047. if test "$cross_compiling" = yes; then
  21048. ac_cv_func_malloc_0_nonnull=no
  21049. else
  21050. cat >conftest.$ac_ext <<_ACEOF
  21051. /* confdefs.h. */
  21052. _ACEOF
  21053. cat confdefs.h >>conftest.$ac_ext
  21054. cat >>conftest.$ac_ext <<_ACEOF
  21055. /* end confdefs.h. */
  21056. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  21057. # include <stdlib.h>
  21058. #else
  21059. char *malloc ();
  21060. #endif
  21061. int
  21062. main ()
  21063. {
  21064. return ! malloc (0);
  21065. ;
  21066. return 0;
  21067. }
  21068. _ACEOF
  21069. rm -f conftest$ac_exeext
  21070. if { (ac_try="$ac_link"
  21071. case "(($ac_try" in
  21072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21073. *) ac_try_echo=$ac_try;;
  21074. esac
  21075. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21076. (eval "$ac_link") 2>&5
  21077. ac_status=$?
  21078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21079. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21080. { (case "(($ac_try" in
  21081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21082. *) ac_try_echo=$ac_try;;
  21083. esac
  21084. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21085. (eval "$ac_try") 2>&5
  21086. ac_status=$?
  21087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21088. (exit $ac_status); }; }; then
  21089. ac_cv_func_malloc_0_nonnull=yes
  21090. else
  21091. echo "$as_me: program exited with status $ac_status" >&5
  21092. echo "$as_me: failed program was:" >&5
  21093. sed 's/^/| /' conftest.$ac_ext >&5
  21094. ( exit $ac_status )
  21095. ac_cv_func_malloc_0_nonnull=no
  21096. fi
  21097. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21098. fi
  21099. fi
  21100. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  21101. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  21102. if test $ac_cv_func_malloc_0_nonnull = yes; then
  21103. cat >>confdefs.h <<\_ACEOF
  21104. #define HAVE_MALLOC 1
  21105. _ACEOF
  21106. else
  21107. cat >>confdefs.h <<\_ACEOF
  21108. #define HAVE_MALLOC 0
  21109. _ACEOF
  21110. case " $LIBOBJS " in
  21111. *" malloc.$ac_objext "* ) ;;
  21112. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  21113. ;;
  21114. esac
  21115. cat >>confdefs.h <<\_ACEOF
  21116. #define malloc rpl_malloc
  21117. _ACEOF
  21118. fi
  21119. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  21120. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  21121. if test "${ac_cv_func_memcmp_working+set}" = set; then
  21122. echo $ECHO_N "(cached) $ECHO_C" >&6
  21123. else
  21124. if test "$cross_compiling" = yes; then
  21125. ac_cv_func_memcmp_working=no
  21126. else
  21127. cat >conftest.$ac_ext <<_ACEOF
  21128. /* confdefs.h. */
  21129. _ACEOF
  21130. cat confdefs.h >>conftest.$ac_ext
  21131. cat >>conftest.$ac_ext <<_ACEOF
  21132. /* end confdefs.h. */
  21133. $ac_includes_default
  21134. int
  21135. main ()
  21136. {
  21137. /* Some versions of memcmp are not 8-bit clean. */
  21138. char c0 = '\100', c1 = '\200', c2 = '\201';
  21139. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  21140. return 1;
  21141. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  21142. or more and with at least one buffer not starting on a 4-byte boundary.
  21143. William Lewis provided this test program. */
  21144. {
  21145. char foo[21];
  21146. char bar[21];
  21147. int i;
  21148. for (i = 0; i < 4; i++)
  21149. {
  21150. char *a = foo + i;
  21151. char *b = bar + i;
  21152. strcpy (a, "--------01111111");
  21153. strcpy (b, "--------10000000");
  21154. if (memcmp (a, b, 16) >= 0)
  21155. return 1;
  21156. }
  21157. return 0;
  21158. }
  21159. ;
  21160. return 0;
  21161. }
  21162. _ACEOF
  21163. rm -f conftest$ac_exeext
  21164. if { (ac_try="$ac_link"
  21165. case "(($ac_try" in
  21166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21167. *) ac_try_echo=$ac_try;;
  21168. esac
  21169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21170. (eval "$ac_link") 2>&5
  21171. ac_status=$?
  21172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21173. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21174. { (case "(($ac_try" in
  21175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21176. *) ac_try_echo=$ac_try;;
  21177. esac
  21178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21179. (eval "$ac_try") 2>&5
  21180. ac_status=$?
  21181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21182. (exit $ac_status); }; }; then
  21183. ac_cv_func_memcmp_working=yes
  21184. else
  21185. echo "$as_me: program exited with status $ac_status" >&5
  21186. echo "$as_me: failed program was:" >&5
  21187. sed 's/^/| /' conftest.$ac_ext >&5
  21188. ( exit $ac_status )
  21189. ac_cv_func_memcmp_working=no
  21190. fi
  21191. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21192. fi
  21193. fi
  21194. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  21195. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  21196. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  21197. *" memcmp.$ac_objext "* ) ;;
  21198. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  21199. ;;
  21200. esac
  21201. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  21202. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  21203. if test "${ac_cv_type_signal+set}" = set; then
  21204. echo $ECHO_N "(cached) $ECHO_C" >&6
  21205. else
  21206. cat >conftest.$ac_ext <<_ACEOF
  21207. /* confdefs.h. */
  21208. _ACEOF
  21209. cat confdefs.h >>conftest.$ac_ext
  21210. cat >>conftest.$ac_ext <<_ACEOF
  21211. /* end confdefs.h. */
  21212. #include <sys/types.h>
  21213. #include <signal.h>
  21214. int
  21215. main ()
  21216. {
  21217. return *(signal (0, 0)) (0) == 1;
  21218. ;
  21219. return 0;
  21220. }
  21221. _ACEOF
  21222. rm -f conftest.$ac_objext
  21223. if { (ac_try="$ac_compile"
  21224. case "(($ac_try" in
  21225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21226. *) ac_try_echo=$ac_try;;
  21227. esac
  21228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21229. (eval "$ac_compile") 2>conftest.er1
  21230. ac_status=$?
  21231. grep -v '^ *+' conftest.er1 >conftest.err
  21232. rm -f conftest.er1
  21233. cat conftest.err >&5
  21234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21235. (exit $ac_status); } && {
  21236. test -z "$ac_c_werror_flag" ||
  21237. test ! -s conftest.err
  21238. } && test -s conftest.$ac_objext; then
  21239. ac_cv_type_signal=int
  21240. else
  21241. echo "$as_me: failed program was:" >&5
  21242. sed 's/^/| /' conftest.$ac_ext >&5
  21243. ac_cv_type_signal=void
  21244. fi
  21245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21246. fi
  21247. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  21248. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  21249. cat >>confdefs.h <<_ACEOF
  21250. #define RETSIGTYPE $ac_cv_type_signal
  21251. _ACEOF
  21252. for ac_func in vprintf
  21253. do
  21254. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21255. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21256. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21257. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21258. echo $ECHO_N "(cached) $ECHO_C" >&6
  21259. else
  21260. cat >conftest.$ac_ext <<_ACEOF
  21261. /* confdefs.h. */
  21262. _ACEOF
  21263. cat confdefs.h >>conftest.$ac_ext
  21264. cat >>conftest.$ac_ext <<_ACEOF
  21265. /* end confdefs.h. */
  21266. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21267. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21268. #define $ac_func innocuous_$ac_func
  21269. /* System header to define __stub macros and hopefully few prototypes,
  21270. which can conflict with char $ac_func (); below.
  21271. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21272. <limits.h> exists even on freestanding compilers. */
  21273. #ifdef __STDC__
  21274. # include <limits.h>
  21275. #else
  21276. # include <assert.h>
  21277. #endif
  21278. #undef $ac_func
  21279. /* Override any GCC internal prototype to avoid an error.
  21280. Use char because int might match the return type of a GCC
  21281. builtin and then its argument prototype would still apply. */
  21282. #ifdef __cplusplus
  21283. extern "C"
  21284. #endif
  21285. char $ac_func ();
  21286. /* The GNU C library defines this for functions which it implements
  21287. to always fail with ENOSYS. Some functions are actually named
  21288. something starting with __ and the normal name is an alias. */
  21289. #if defined __stub_$ac_func || defined __stub___$ac_func
  21290. choke me
  21291. #endif
  21292. int
  21293. main ()
  21294. {
  21295. return $ac_func ();
  21296. ;
  21297. return 0;
  21298. }
  21299. _ACEOF
  21300. rm -f conftest.$ac_objext conftest$ac_exeext
  21301. if { (ac_try="$ac_link"
  21302. case "(($ac_try" in
  21303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21304. *) ac_try_echo=$ac_try;;
  21305. esac
  21306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21307. (eval "$ac_link") 2>conftest.er1
  21308. ac_status=$?
  21309. grep -v '^ *+' conftest.er1 >conftest.err
  21310. rm -f conftest.er1
  21311. cat conftest.err >&5
  21312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21313. (exit $ac_status); } && {
  21314. test -z "$ac_c_werror_flag" ||
  21315. test ! -s conftest.err
  21316. } && test -s conftest$ac_exeext &&
  21317. $as_test_x conftest$ac_exeext; then
  21318. eval "$as_ac_var=yes"
  21319. else
  21320. echo "$as_me: failed program was:" >&5
  21321. sed 's/^/| /' conftest.$ac_ext >&5
  21322. eval "$as_ac_var=no"
  21323. fi
  21324. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21325. conftest$ac_exeext conftest.$ac_ext
  21326. fi
  21327. ac_res=`eval echo '${'$as_ac_var'}'`
  21328. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21329. echo "${ECHO_T}$ac_res" >&6; }
  21330. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21331. cat >>confdefs.h <<_ACEOF
  21332. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21333. _ACEOF
  21334. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  21335. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  21336. if test "${ac_cv_func__doprnt+set}" = set; then
  21337. echo $ECHO_N "(cached) $ECHO_C" >&6
  21338. else
  21339. cat >conftest.$ac_ext <<_ACEOF
  21340. /* confdefs.h. */
  21341. _ACEOF
  21342. cat confdefs.h >>conftest.$ac_ext
  21343. cat >>conftest.$ac_ext <<_ACEOF
  21344. /* end confdefs.h. */
  21345. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21346. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21347. #define _doprnt innocuous__doprnt
  21348. /* System header to define __stub macros and hopefully few prototypes,
  21349. which can conflict with char _doprnt (); below.
  21350. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21351. <limits.h> exists even on freestanding compilers. */
  21352. #ifdef __STDC__
  21353. # include <limits.h>
  21354. #else
  21355. # include <assert.h>
  21356. #endif
  21357. #undef _doprnt
  21358. /* Override any GCC internal prototype to avoid an error.
  21359. Use char because int might match the return type of a GCC
  21360. builtin and then its argument prototype would still apply. */
  21361. #ifdef __cplusplus
  21362. extern "C"
  21363. #endif
  21364. char _doprnt ();
  21365. /* The GNU C library defines this for functions which it implements
  21366. to always fail with ENOSYS. Some functions are actually named
  21367. something starting with __ and the normal name is an alias. */
  21368. #if defined __stub__doprnt || defined __stub____doprnt
  21369. choke me
  21370. #endif
  21371. int
  21372. main ()
  21373. {
  21374. return _doprnt ();
  21375. ;
  21376. return 0;
  21377. }
  21378. _ACEOF
  21379. rm -f conftest.$ac_objext conftest$ac_exeext
  21380. if { (ac_try="$ac_link"
  21381. case "(($ac_try" in
  21382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21383. *) ac_try_echo=$ac_try;;
  21384. esac
  21385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21386. (eval "$ac_link") 2>conftest.er1
  21387. ac_status=$?
  21388. grep -v '^ *+' conftest.er1 >conftest.err
  21389. rm -f conftest.er1
  21390. cat conftest.err >&5
  21391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21392. (exit $ac_status); } && {
  21393. test -z "$ac_c_werror_flag" ||
  21394. test ! -s conftest.err
  21395. } && test -s conftest$ac_exeext &&
  21396. $as_test_x conftest$ac_exeext; then
  21397. ac_cv_func__doprnt=yes
  21398. else
  21399. echo "$as_me: failed program was:" >&5
  21400. sed 's/^/| /' conftest.$ac_ext >&5
  21401. ac_cv_func__doprnt=no
  21402. fi
  21403. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21404. conftest$ac_exeext conftest.$ac_ext
  21405. fi
  21406. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21407. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  21408. if test $ac_cv_func__doprnt = yes; then
  21409. cat >>confdefs.h <<\_ACEOF
  21410. #define HAVE_DOPRNT 1
  21411. _ACEOF
  21412. fi
  21413. fi
  21414. done
  21415. { echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  21416. echo $ECHO_N "checking for struct timeval.tv_sec... $ECHO_C" >&6; }
  21417. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  21418. echo $ECHO_N "(cached) $ECHO_C" >&6
  21419. else
  21420. cat >conftest.$ac_ext <<_ACEOF
  21421. /* confdefs.h. */
  21422. _ACEOF
  21423. cat confdefs.h >>conftest.$ac_ext
  21424. cat >>conftest.$ac_ext <<_ACEOF
  21425. /* end confdefs.h. */
  21426. $ac_includes_default
  21427. int
  21428. main ()
  21429. {
  21430. static struct timeval ac_aggr;
  21431. if (ac_aggr.tv_sec)
  21432. return 0;
  21433. ;
  21434. return 0;
  21435. }
  21436. _ACEOF
  21437. rm -f conftest.$ac_objext
  21438. if { (ac_try="$ac_compile"
  21439. case "(($ac_try" in
  21440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21441. *) ac_try_echo=$ac_try;;
  21442. esac
  21443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21444. (eval "$ac_compile") 2>conftest.er1
  21445. ac_status=$?
  21446. grep -v '^ *+' conftest.er1 >conftest.err
  21447. rm -f conftest.er1
  21448. cat conftest.err >&5
  21449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21450. (exit $ac_status); } && {
  21451. test -z "$ac_c_werror_flag" ||
  21452. test ! -s conftest.err
  21453. } && test -s conftest.$ac_objext; then
  21454. ac_cv_member_struct_timeval_tv_sec=yes
  21455. else
  21456. echo "$as_me: failed program was:" >&5
  21457. sed 's/^/| /' conftest.$ac_ext >&5
  21458. cat >conftest.$ac_ext <<_ACEOF
  21459. /* confdefs.h. */
  21460. _ACEOF
  21461. cat confdefs.h >>conftest.$ac_ext
  21462. cat >>conftest.$ac_ext <<_ACEOF
  21463. /* end confdefs.h. */
  21464. $ac_includes_default
  21465. int
  21466. main ()
  21467. {
  21468. static struct timeval ac_aggr;
  21469. if (sizeof ac_aggr.tv_sec)
  21470. return 0;
  21471. ;
  21472. return 0;
  21473. }
  21474. _ACEOF
  21475. rm -f conftest.$ac_objext
  21476. if { (ac_try="$ac_compile"
  21477. case "(($ac_try" in
  21478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21479. *) ac_try_echo=$ac_try;;
  21480. esac
  21481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21482. (eval "$ac_compile") 2>conftest.er1
  21483. ac_status=$?
  21484. grep -v '^ *+' conftest.er1 >conftest.err
  21485. rm -f conftest.er1
  21486. cat conftest.err >&5
  21487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21488. (exit $ac_status); } && {
  21489. test -z "$ac_c_werror_flag" ||
  21490. test ! -s conftest.err
  21491. } && test -s conftest.$ac_objext; then
  21492. ac_cv_member_struct_timeval_tv_sec=yes
  21493. else
  21494. echo "$as_me: failed program was:" >&5
  21495. sed 's/^/| /' conftest.$ac_ext >&5
  21496. ac_cv_member_struct_timeval_tv_sec=no
  21497. fi
  21498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21499. fi
  21500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21501. fi
  21502. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  21503. echo "${ECHO_T}$ac_cv_member_struct_timeval_tv_sec" >&6; }
  21504. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  21505. cat >>confdefs.h <<_ACEOF
  21506. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  21507. _ACEOF
  21508. fi
  21509. for ac_func in gettimeofday ctime memset regcomp strdup strchr strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf
  21510. do
  21511. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21512. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21513. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21514. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21515. echo $ECHO_N "(cached) $ECHO_C" >&6
  21516. else
  21517. cat >conftest.$ac_ext <<_ACEOF
  21518. /* confdefs.h. */
  21519. _ACEOF
  21520. cat confdefs.h >>conftest.$ac_ext
  21521. cat >>conftest.$ac_ext <<_ACEOF
  21522. /* end confdefs.h. */
  21523. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21524. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21525. #define $ac_func innocuous_$ac_func
  21526. /* System header to define __stub macros and hopefully few prototypes,
  21527. which can conflict with char $ac_func (); below.
  21528. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21529. <limits.h> exists even on freestanding compilers. */
  21530. #ifdef __STDC__
  21531. # include <limits.h>
  21532. #else
  21533. # include <assert.h>
  21534. #endif
  21535. #undef $ac_func
  21536. /* Override any GCC internal prototype to avoid an error.
  21537. Use char because int might match the return type of a GCC
  21538. builtin and then its argument prototype would still apply. */
  21539. #ifdef __cplusplus
  21540. extern "C"
  21541. #endif
  21542. char $ac_func ();
  21543. /* The GNU C library defines this for functions which it implements
  21544. to always fail with ENOSYS. Some functions are actually named
  21545. something starting with __ and the normal name is an alias. */
  21546. #if defined __stub_$ac_func || defined __stub___$ac_func
  21547. choke me
  21548. #endif
  21549. int
  21550. main ()
  21551. {
  21552. return $ac_func ();
  21553. ;
  21554. return 0;
  21555. }
  21556. _ACEOF
  21557. rm -f conftest.$ac_objext conftest$ac_exeext
  21558. if { (ac_try="$ac_link"
  21559. case "(($ac_try" in
  21560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21561. *) ac_try_echo=$ac_try;;
  21562. esac
  21563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21564. (eval "$ac_link") 2>conftest.er1
  21565. ac_status=$?
  21566. grep -v '^ *+' conftest.er1 >conftest.err
  21567. rm -f conftest.er1
  21568. cat conftest.err >&5
  21569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21570. (exit $ac_status); } && {
  21571. test -z "$ac_c_werror_flag" ||
  21572. test ! -s conftest.err
  21573. } && test -s conftest$ac_exeext &&
  21574. $as_test_x conftest$ac_exeext; then
  21575. eval "$as_ac_var=yes"
  21576. else
  21577. echo "$as_me: failed program was:" >&5
  21578. sed 's/^/| /' conftest.$ac_ext >&5
  21579. eval "$as_ac_var=no"
  21580. fi
  21581. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21582. conftest$ac_exeext conftest.$ac_ext
  21583. fi
  21584. ac_res=`eval echo '${'$as_ac_var'}'`
  21585. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21586. echo "${ECHO_T}$ac_res" >&6; }
  21587. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21588. cat >>confdefs.h <<_ACEOF
  21589. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21590. _ACEOF
  21591. fi
  21592. done
  21593. for ac_func in strlcpy
  21594. do
  21595. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21596. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21597. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21598. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21599. echo $ECHO_N "(cached) $ECHO_C" >&6
  21600. else
  21601. cat >conftest.$ac_ext <<_ACEOF
  21602. /* confdefs.h. */
  21603. _ACEOF
  21604. cat confdefs.h >>conftest.$ac_ext
  21605. cat >>conftest.$ac_ext <<_ACEOF
  21606. /* end confdefs.h. */
  21607. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21608. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21609. #define $ac_func innocuous_$ac_func
  21610. /* System header to define __stub macros and hopefully few prototypes,
  21611. which can conflict with char $ac_func (); below.
  21612. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21613. <limits.h> exists even on freestanding compilers. */
  21614. #ifdef __STDC__
  21615. # include <limits.h>
  21616. #else
  21617. # include <assert.h>
  21618. #endif
  21619. #undef $ac_func
  21620. /* Override any GCC internal prototype to avoid an error.
  21621. Use char because int might match the return type of a GCC
  21622. builtin and then its argument prototype would still apply. */
  21623. #ifdef __cplusplus
  21624. extern "C"
  21625. #endif
  21626. char $ac_func ();
  21627. /* The GNU C library defines this for functions which it implements
  21628. to always fail with ENOSYS. Some functions are actually named
  21629. something starting with __ and the normal name is an alias. */
  21630. #if defined __stub_$ac_func || defined __stub___$ac_func
  21631. choke me
  21632. #endif
  21633. int
  21634. main ()
  21635. {
  21636. return $ac_func ();
  21637. ;
  21638. return 0;
  21639. }
  21640. _ACEOF
  21641. rm -f conftest.$ac_objext conftest$ac_exeext
  21642. if { (ac_try="$ac_link"
  21643. case "(($ac_try" in
  21644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21645. *) ac_try_echo=$ac_try;;
  21646. esac
  21647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21648. (eval "$ac_link") 2>conftest.er1
  21649. ac_status=$?
  21650. grep -v '^ *+' conftest.er1 >conftest.err
  21651. rm -f conftest.er1
  21652. cat conftest.err >&5
  21653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21654. (exit $ac_status); } && {
  21655. test -z "$ac_c_werror_flag" ||
  21656. test ! -s conftest.err
  21657. } && test -s conftest$ac_exeext &&
  21658. $as_test_x conftest$ac_exeext; then
  21659. eval "$as_ac_var=yes"
  21660. else
  21661. echo "$as_me: failed program was:" >&5
  21662. sed 's/^/| /' conftest.$ac_ext >&5
  21663. eval "$as_ac_var=no"
  21664. fi
  21665. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21666. conftest$ac_exeext conftest.$ac_ext
  21667. fi
  21668. ac_res=`eval echo '${'$as_ac_var'}'`
  21669. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21670. echo "${ECHO_T}$ac_res" >&6; }
  21671. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21672. cat >>confdefs.h <<_ACEOF
  21673. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21674. _ACEOF
  21675. have_strlcpy=true
  21676. else
  21677. have_strlcpy=false
  21678. fi
  21679. done
  21680. if test x$have_strlcpy = xtrue; then
  21681. SYSTEM_STRLCPY_TRUE=
  21682. SYSTEM_STRLCPY_FALSE='#'
  21683. else
  21684. SYSTEM_STRLCPY_TRUE='#'
  21685. SYSTEM_STRLCPY_FALSE=
  21686. fi
  21687. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  21688. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  21689. if test "${ac_cv_c_bigendian+set}" = set; then
  21690. echo $ECHO_N "(cached) $ECHO_C" >&6
  21691. else
  21692. # See if sys/param.h defines the BYTE_ORDER macro.
  21693. cat >conftest.$ac_ext <<_ACEOF
  21694. /* confdefs.h. */
  21695. _ACEOF
  21696. cat confdefs.h >>conftest.$ac_ext
  21697. cat >>conftest.$ac_ext <<_ACEOF
  21698. /* end confdefs.h. */
  21699. #include <sys/types.h>
  21700. #include <sys/param.h>
  21701. int
  21702. main ()
  21703. {
  21704. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  21705. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  21706. bogus endian macros
  21707. #endif
  21708. ;
  21709. return 0;
  21710. }
  21711. _ACEOF
  21712. rm -f conftest.$ac_objext
  21713. if { (ac_try="$ac_compile"
  21714. case "(($ac_try" in
  21715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21716. *) ac_try_echo=$ac_try;;
  21717. esac
  21718. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21719. (eval "$ac_compile") 2>conftest.er1
  21720. ac_status=$?
  21721. grep -v '^ *+' conftest.er1 >conftest.err
  21722. rm -f conftest.er1
  21723. cat conftest.err >&5
  21724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21725. (exit $ac_status); } && {
  21726. test -z "$ac_c_werror_flag" ||
  21727. test ! -s conftest.err
  21728. } && test -s conftest.$ac_objext; then
  21729. # It does; now see whether it defined to BIG_ENDIAN or not.
  21730. cat >conftest.$ac_ext <<_ACEOF
  21731. /* confdefs.h. */
  21732. _ACEOF
  21733. cat confdefs.h >>conftest.$ac_ext
  21734. cat >>conftest.$ac_ext <<_ACEOF
  21735. /* end confdefs.h. */
  21736. #include <sys/types.h>
  21737. #include <sys/param.h>
  21738. int
  21739. main ()
  21740. {
  21741. #if BYTE_ORDER != BIG_ENDIAN
  21742. not big endian
  21743. #endif
  21744. ;
  21745. return 0;
  21746. }
  21747. _ACEOF
  21748. rm -f conftest.$ac_objext
  21749. if { (ac_try="$ac_compile"
  21750. case "(($ac_try" in
  21751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21752. *) ac_try_echo=$ac_try;;
  21753. esac
  21754. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21755. (eval "$ac_compile") 2>conftest.er1
  21756. ac_status=$?
  21757. grep -v '^ *+' conftest.er1 >conftest.err
  21758. rm -f conftest.er1
  21759. cat conftest.err >&5
  21760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21761. (exit $ac_status); } && {
  21762. test -z "$ac_c_werror_flag" ||
  21763. test ! -s conftest.err
  21764. } && test -s conftest.$ac_objext; then
  21765. ac_cv_c_bigendian=yes
  21766. else
  21767. echo "$as_me: failed program was:" >&5
  21768. sed 's/^/| /' conftest.$ac_ext >&5
  21769. ac_cv_c_bigendian=no
  21770. fi
  21771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21772. else
  21773. echo "$as_me: failed program was:" >&5
  21774. sed 's/^/| /' conftest.$ac_ext >&5
  21775. # It does not; compile a test program.
  21776. if test "$cross_compiling" = yes; then
  21777. # try to guess the endianness by grepping values into an object file
  21778. ac_cv_c_bigendian=unknown
  21779. cat >conftest.$ac_ext <<_ACEOF
  21780. /* confdefs.h. */
  21781. _ACEOF
  21782. cat confdefs.h >>conftest.$ac_ext
  21783. cat >>conftest.$ac_ext <<_ACEOF
  21784. /* end confdefs.h. */
  21785. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  21786. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  21787. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  21788. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  21789. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  21790. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  21791. int
  21792. main ()
  21793. {
  21794. _ascii (); _ebcdic ();
  21795. ;
  21796. return 0;
  21797. }
  21798. _ACEOF
  21799. rm -f conftest.$ac_objext
  21800. if { (ac_try="$ac_compile"
  21801. case "(($ac_try" in
  21802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21803. *) ac_try_echo=$ac_try;;
  21804. esac
  21805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21806. (eval "$ac_compile") 2>conftest.er1
  21807. ac_status=$?
  21808. grep -v '^ *+' conftest.er1 >conftest.err
  21809. rm -f conftest.er1
  21810. cat conftest.err >&5
  21811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21812. (exit $ac_status); } && {
  21813. test -z "$ac_c_werror_flag" ||
  21814. test ! -s conftest.err
  21815. } && test -s conftest.$ac_objext; then
  21816. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  21817. ac_cv_c_bigendian=yes
  21818. fi
  21819. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  21820. if test "$ac_cv_c_bigendian" = unknown; then
  21821. ac_cv_c_bigendian=no
  21822. else
  21823. # finding both strings is unlikely to happen, but who knows?
  21824. ac_cv_c_bigendian=unknown
  21825. fi
  21826. fi
  21827. else
  21828. echo "$as_me: failed program was:" >&5
  21829. sed 's/^/| /' conftest.$ac_ext >&5
  21830. fi
  21831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21832. else
  21833. cat >conftest.$ac_ext <<_ACEOF
  21834. /* confdefs.h. */
  21835. _ACEOF
  21836. cat confdefs.h >>conftest.$ac_ext
  21837. cat >>conftest.$ac_ext <<_ACEOF
  21838. /* end confdefs.h. */
  21839. $ac_includes_default
  21840. int
  21841. main ()
  21842. {
  21843. /* Are we little or big endian? From Harbison&Steele. */
  21844. union
  21845. {
  21846. long int l;
  21847. char c[sizeof (long int)];
  21848. } u;
  21849. u.l = 1;
  21850. return u.c[sizeof (long int) - 1] == 1;
  21851. ;
  21852. return 0;
  21853. }
  21854. _ACEOF
  21855. rm -f conftest$ac_exeext
  21856. if { (ac_try="$ac_link"
  21857. case "(($ac_try" in
  21858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21859. *) ac_try_echo=$ac_try;;
  21860. esac
  21861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21862. (eval "$ac_link") 2>&5
  21863. ac_status=$?
  21864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21865. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21866. { (case "(($ac_try" in
  21867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21868. *) ac_try_echo=$ac_try;;
  21869. esac
  21870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21871. (eval "$ac_try") 2>&5
  21872. ac_status=$?
  21873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21874. (exit $ac_status); }; }; then
  21875. ac_cv_c_bigendian=no
  21876. else
  21877. echo "$as_me: program exited with status $ac_status" >&5
  21878. echo "$as_me: failed program was:" >&5
  21879. sed 's/^/| /' conftest.$ac_ext >&5
  21880. ( exit $ac_status )
  21881. ac_cv_c_bigendian=yes
  21882. fi
  21883. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21884. fi
  21885. fi
  21886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21887. fi
  21888. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  21889. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  21890. case $ac_cv_c_bigendian in
  21891. yes)
  21892. cat >>confdefs.h <<\_ACEOF
  21893. #define WORDS_BIGENDIAN 1
  21894. _ACEOF
  21895. ;;
  21896. no)
  21897. ;;
  21898. *)
  21899. { { echo "$as_me:$LINENO: error: unknown endianness
  21900. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  21901. echo "$as_me: error: unknown endianness
  21902. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  21903. { (exit 1); exit 1; }; } ;;
  21904. esac
  21905. if test x$ac_cv_c_bigendian = xyes ; then
  21906. WORDS_BIGENDIAN_TRUE=
  21907. WORDS_BIGENDIAN_FALSE='#'
  21908. else
  21909. WORDS_BIGENDIAN_TRUE='#'
  21910. WORDS_BIGENDIAN_FALSE=
  21911. fi
  21912. debug=no
  21913. # Check whether --enable-debug was given.
  21914. if test "${enable_debug+set}" = set; then
  21915. enableval=$enable_debug; if test x$enableval = xyes; then
  21916. debug=yes
  21917. CFLAGS="-ggdb -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros"
  21918. # We may also want to add:
  21919. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  21920. cat >>confdefs.h <<\_ACEOF
  21921. #define DEBUG 1
  21922. _ACEOF
  21923. fi
  21924. fi
  21925. # Check whether --enable-pedantic was given.
  21926. if test "${enable_pedantic+set}" = set; then
  21927. enableval=$enable_pedantic; if test x$enableval = xyes; then
  21928. CFLAGS="$CFLAGS -pedantic"
  21929. fi
  21930. fi
  21931. # Check whether --enable-efence was given.
  21932. if test "${enable_efence+set}" = set; then
  21933. enableval=$enable_efence; if test x$enableval = xyes; then
  21934. CFLAGS="$CFLAGS -lefence"
  21935. cat >>confdefs.h <<\_ACEOF
  21936. #define EFENCE 1
  21937. _ACEOF
  21938. fi
  21939. fi
  21940. # Check whether --enable-gprof was given.
  21941. if test "${enable_gprof+set}" = set; then
  21942. enableval=$enable_gprof; if test x$enableval = xyes; then
  21943. if test $debug = yes; then
  21944. CFLAGS="$CFLAGS -pg"
  21945. else
  21946. # GPROF requires gdb
  21947. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  21948. fi
  21949. cat >>confdefs.h <<\_ACEOF
  21950. #define GPROF 1
  21951. _ACEOF
  21952. fi
  21953. fi
  21954. # Check whether --enable-64bits was given.
  21955. if test "${enable_64bits+set}" = set; then
  21956. enableval=$enable_64bits; if test x$enableval = xyes; then
  21957. cat >>confdefs.h <<\_ACEOF
  21958. #define ENABLE_64BITS 1
  21959. _ACEOF
  21960. { echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  21961. echo "$as_me: Using u_int64_t for packet counters" >&6;}
  21962. else
  21963. { echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  21964. echo "$as_me: Using u_int32_t for packet counters" >&6;}
  21965. fi
  21966. fi
  21967. # Check whether --enable-force-bpf was given.
  21968. if test "${enable_force_bpf+set}" = set; then
  21969. enableval=$enable_force_bpf;
  21970. cat >>confdefs.h <<\_ACEOF
  21971. #define FORCE_INJECT_BPF 1
  21972. _ACEOF
  21973. fi
  21974. # Check whether --enable-force-pf was given.
  21975. if test "${enable_force_pf+set}" = set; then
  21976. enableval=$enable_force_pf;
  21977. cat >>confdefs.h <<\_ACEOF
  21978. #define FORCE_INJECT_PF 1
  21979. _ACEOF
  21980. fi
  21981. # Check whether --enable-force-libnet was given.
  21982. if test "${enable_force_libnet+set}" = set; then
  21983. enableval=$enable_force_libnet;
  21984. cat >>confdefs.h <<\_ACEOF
  21985. #define FORCE_INJECT_LIBNET 1
  21986. _ACEOF
  21987. fi
  21988. # Check whether --enable-force-inject was given.
  21989. if test "${enable_force_inject+set}" = set; then
  21990. enableval=$enable_force_inject;
  21991. cat >>confdefs.h <<\_ACEOF
  21992. #define FORCE_INJECT_PCAP_INJECT 1
  21993. _ACEOF
  21994. fi
  21995. # Check whether --enable-force-sendpacket was given.
  21996. if test "${enable_force_sendpacket+set}" = set; then
  21997. enableval=$enable_force_sendpacket;
  21998. cat >>confdefs.h <<\_ACEOF
  21999. #define FORCE_INJECT_PCAP_SENDPACKET 1
  22000. _ACEOF
  22001. fi
  22002. tcpreplay_edit=no
  22003. # Check whether --enable-tcpreplay-edit was given.
  22004. if test "${enable_tcpreplay_edit+set}" = set; then
  22005. enableval=$enable_tcpreplay_edit;
  22006. cat >>confdefs.h <<\_ACEOF
  22007. #define TCPREPLAY_EDIT 1
  22008. _ACEOF
  22009. tcpreplay_edit=yes
  22010. fi
  22011. if test x$tcpreplay_edit = xyes; then
  22012. ENABLE_TCPREPLAY_EDIT_TRUE=
  22013. ENABLE_TCPREPLAY_EDIT_FALSE='#'
  22014. else
  22015. ENABLE_TCPREPLAY_EDIT_TRUE='#'
  22016. ENABLE_TCPREPLAY_EDIT_FALSE=
  22017. fi
  22018. dynamic_link=no
  22019. # Check whether --enable-dynamic-link was given.
  22020. if test "${enable_dynamic_link+set}" = set; then
  22021. enableval=$enable_dynamic_link; if test x$enableval = xyes; then
  22022. cat >>confdefs.h <<\_ACEOF
  22023. #define ENABLE_DYNAMIC_LINK 1
  22024. _ACEOF
  22025. dynamic_link=yes
  22026. fi
  22027. fi
  22028. { echo "$as_me:$LINENO: checking for inet_aton" >&5
  22029. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
  22030. if test "${ac_cv_func_inet_aton+set}" = set; then
  22031. echo $ECHO_N "(cached) $ECHO_C" >&6
  22032. else
  22033. cat >conftest.$ac_ext <<_ACEOF
  22034. /* confdefs.h. */
  22035. _ACEOF
  22036. cat confdefs.h >>conftest.$ac_ext
  22037. cat >>conftest.$ac_ext <<_ACEOF
  22038. /* end confdefs.h. */
  22039. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  22040. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22041. #define inet_aton innocuous_inet_aton
  22042. /* System header to define __stub macros and hopefully few prototypes,
  22043. which can conflict with char inet_aton (); below.
  22044. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22045. <limits.h> exists even on freestanding compilers. */
  22046. #ifdef __STDC__
  22047. # include <limits.h>
  22048. #else
  22049. # include <assert.h>
  22050. #endif
  22051. #undef inet_aton
  22052. /* Override any GCC internal prototype to avoid an error.
  22053. Use char because int might match the return type of a GCC
  22054. builtin and then its argument prototype would still apply. */
  22055. #ifdef __cplusplus
  22056. extern "C"
  22057. #endif
  22058. char inet_aton ();
  22059. /* The GNU C library defines this for functions which it implements
  22060. to always fail with ENOSYS. Some functions are actually named
  22061. something starting with __ and the normal name is an alias. */
  22062. #if defined __stub_inet_aton || defined __stub___inet_aton
  22063. choke me
  22064. #endif
  22065. int
  22066. main ()
  22067. {
  22068. return inet_aton ();
  22069. ;
  22070. return 0;
  22071. }
  22072. _ACEOF
  22073. rm -f conftest.$ac_objext conftest$ac_exeext
  22074. if { (ac_try="$ac_link"
  22075. case "(($ac_try" in
  22076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22077. *) ac_try_echo=$ac_try;;
  22078. esac
  22079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22080. (eval "$ac_link") 2>conftest.er1
  22081. ac_status=$?
  22082. grep -v '^ *+' conftest.er1 >conftest.err
  22083. rm -f conftest.er1
  22084. cat conftest.err >&5
  22085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22086. (exit $ac_status); } && {
  22087. test -z "$ac_c_werror_flag" ||
  22088. test ! -s conftest.err
  22089. } && test -s conftest$ac_exeext &&
  22090. $as_test_x conftest$ac_exeext; then
  22091. ac_cv_func_inet_aton=yes
  22092. else
  22093. echo "$as_me: failed program was:" >&5
  22094. sed 's/^/| /' conftest.$ac_ext >&5
  22095. ac_cv_func_inet_aton=no
  22096. fi
  22097. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22098. conftest$ac_exeext conftest.$ac_ext
  22099. fi
  22100. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  22101. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
  22102. if test $ac_cv_func_inet_aton = yes; then
  22103. cat >>confdefs.h <<\_ACEOF
  22104. #define HAVE_INET_ATON 1
  22105. _ACEOF
  22106. inet_aton=yes
  22107. else
  22108. inet_aton=no
  22109. fi
  22110. { echo "$as_me:$LINENO: checking for inet_pton" >&5
  22111. echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
  22112. if test "${ac_cv_func_inet_pton+set}" = set; then
  22113. echo $ECHO_N "(cached) $ECHO_C" >&6
  22114. else
  22115. cat >conftest.$ac_ext <<_ACEOF
  22116. /* confdefs.h. */
  22117. _ACEOF
  22118. cat confdefs.h >>conftest.$ac_ext
  22119. cat >>conftest.$ac_ext <<_ACEOF
  22120. /* end confdefs.h. */
  22121. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  22122. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22123. #define inet_pton innocuous_inet_pton
  22124. /* System header to define __stub macros and hopefully few prototypes,
  22125. which can conflict with char inet_pton (); below.
  22126. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22127. <limits.h> exists even on freestanding compilers. */
  22128. #ifdef __STDC__
  22129. # include <limits.h>
  22130. #else
  22131. # include <assert.h>
  22132. #endif
  22133. #undef inet_pton
  22134. /* Override any GCC internal prototype to avoid an error.
  22135. Use char because int might match the return type of a GCC
  22136. builtin and then its argument prototype would still apply. */
  22137. #ifdef __cplusplus
  22138. extern "C"
  22139. #endif
  22140. char inet_pton ();
  22141. /* The GNU C library defines this for functions which it implements
  22142. to always fail with ENOSYS. Some functions are actually named
  22143. something starting with __ and the normal name is an alias. */
  22144. #if defined __stub_inet_pton || defined __stub___inet_pton
  22145. choke me
  22146. #endif
  22147. int
  22148. main ()
  22149. {
  22150. return inet_pton ();
  22151. ;
  22152. return 0;
  22153. }
  22154. _ACEOF
  22155. rm -f conftest.$ac_objext conftest$ac_exeext
  22156. if { (ac_try="$ac_link"
  22157. case "(($ac_try" in
  22158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22159. *) ac_try_echo=$ac_try;;
  22160. esac
  22161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22162. (eval "$ac_link") 2>conftest.er1
  22163. ac_status=$?
  22164. grep -v '^ *+' conftest.er1 >conftest.err
  22165. rm -f conftest.er1
  22166. cat conftest.err >&5
  22167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22168. (exit $ac_status); } && {
  22169. test -z "$ac_c_werror_flag" ||
  22170. test ! -s conftest.err
  22171. } && test -s conftest$ac_exeext &&
  22172. $as_test_x conftest$ac_exeext; then
  22173. ac_cv_func_inet_pton=yes
  22174. else
  22175. echo "$as_me: failed program was:" >&5
  22176. sed 's/^/| /' conftest.$ac_ext >&5
  22177. ac_cv_func_inet_pton=no
  22178. fi
  22179. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22180. conftest$ac_exeext conftest.$ac_ext
  22181. fi
  22182. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  22183. echo "${ECHO_T}$ac_cv_func_inet_pton" >&6; }
  22184. if test $ac_cv_func_inet_pton = yes; then
  22185. cat >>confdefs.h <<\_ACEOF
  22186. #define HAVE_INET_PTON 1
  22187. _ACEOF
  22188. inet_pton=yes
  22189. else
  22190. inet_pton=no
  22191. fi
  22192. { echo "$as_me:$LINENO: checking for inet_ntop" >&5
  22193. echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
  22194. if test "${ac_cv_func_inet_ntop+set}" = set; then
  22195. echo $ECHO_N "(cached) $ECHO_C" >&6
  22196. else
  22197. cat >conftest.$ac_ext <<_ACEOF
  22198. /* confdefs.h. */
  22199. _ACEOF
  22200. cat confdefs.h >>conftest.$ac_ext
  22201. cat >>conftest.$ac_ext <<_ACEOF
  22202. /* end confdefs.h. */
  22203. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  22204. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22205. #define inet_ntop innocuous_inet_ntop
  22206. /* System header to define __stub macros and hopefully few prototypes,
  22207. which can conflict with char inet_ntop (); below.
  22208. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22209. <limits.h> exists even on freestanding compilers. */
  22210. #ifdef __STDC__
  22211. # include <limits.h>
  22212. #else
  22213. # include <assert.h>
  22214. #endif
  22215. #undef inet_ntop
  22216. /* Override any GCC internal prototype to avoid an error.
  22217. Use char because int might match the return type of a GCC
  22218. builtin and then its argument prototype would still apply. */
  22219. #ifdef __cplusplus
  22220. extern "C"
  22221. #endif
  22222. char inet_ntop ();
  22223. /* The GNU C library defines this for functions which it implements
  22224. to always fail with ENOSYS. Some functions are actually named
  22225. something starting with __ and the normal name is an alias. */
  22226. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  22227. choke me
  22228. #endif
  22229. int
  22230. main ()
  22231. {
  22232. return inet_ntop ();
  22233. ;
  22234. return 0;
  22235. }
  22236. _ACEOF
  22237. rm -f conftest.$ac_objext conftest$ac_exeext
  22238. if { (ac_try="$ac_link"
  22239. case "(($ac_try" in
  22240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22241. *) ac_try_echo=$ac_try;;
  22242. esac
  22243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22244. (eval "$ac_link") 2>conftest.er1
  22245. ac_status=$?
  22246. grep -v '^ *+' conftest.er1 >conftest.err
  22247. rm -f conftest.er1
  22248. cat conftest.err >&5
  22249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22250. (exit $ac_status); } && {
  22251. test -z "$ac_c_werror_flag" ||
  22252. test ! -s conftest.err
  22253. } && test -s conftest$ac_exeext &&
  22254. $as_test_x conftest$ac_exeext; then
  22255. ac_cv_func_inet_ntop=yes
  22256. else
  22257. echo "$as_me: failed program was:" >&5
  22258. sed 's/^/| /' conftest.$ac_ext >&5
  22259. ac_cv_func_inet_ntop=no
  22260. fi
  22261. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22262. conftest$ac_exeext conftest.$ac_ext
  22263. fi
  22264. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  22265. echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
  22266. if test $ac_cv_func_inet_ntop = yes; then
  22267. cat >>confdefs.h <<\_ACEOF
  22268. #define HAVE_INET_NTOP 1
  22269. _ACEOF
  22270. inet_ntop=yes
  22271. else
  22272. inet_ntop=no
  22273. fi
  22274. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  22275. { { echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  22276. echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  22277. { (exit 1); exit 1; }; }
  22278. fi
  22279. if test "$inet_aton" = "no" ; then
  22280. { { echo "$as_me:$LINENO: error: We need inet_aton" >&5
  22281. echo "$as_me: error: We need inet_aton" >&2;}
  22282. { (exit 1); exit 1; }; }
  22283. fi
  22284. { echo "$as_me:$LINENO: checking for inet_addr" >&5
  22285. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
  22286. if test "${ac_cv_func_inet_addr+set}" = set; then
  22287. echo $ECHO_N "(cached) $ECHO_C" >&6
  22288. else
  22289. cat >conftest.$ac_ext <<_ACEOF
  22290. /* confdefs.h. */
  22291. _ACEOF
  22292. cat confdefs.h >>conftest.$ac_ext
  22293. cat >>conftest.$ac_ext <<_ACEOF
  22294. /* end confdefs.h. */
  22295. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  22296. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22297. #define inet_addr innocuous_inet_addr
  22298. /* System header to define __stub macros and hopefully few prototypes,
  22299. which can conflict with char inet_addr (); below.
  22300. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22301. <limits.h> exists even on freestanding compilers. */
  22302. #ifdef __STDC__
  22303. # include <limits.h>
  22304. #else
  22305. # include <assert.h>
  22306. #endif
  22307. #undef inet_addr
  22308. /* Override any GCC internal prototype to avoid an error.
  22309. Use char because int might match the return type of a GCC
  22310. builtin and then its argument prototype would still apply. */
  22311. #ifdef __cplusplus
  22312. extern "C"
  22313. #endif
  22314. char inet_addr ();
  22315. /* The GNU C library defines this for functions which it implements
  22316. to always fail with ENOSYS. Some functions are actually named
  22317. something starting with __ and the normal name is an alias. */
  22318. #if defined __stub_inet_addr || defined __stub___inet_addr
  22319. choke me
  22320. #endif
  22321. int
  22322. main ()
  22323. {
  22324. return inet_addr ();
  22325. ;
  22326. return 0;
  22327. }
  22328. _ACEOF
  22329. rm -f conftest.$ac_objext conftest$ac_exeext
  22330. if { (ac_try="$ac_link"
  22331. case "(($ac_try" in
  22332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22333. *) ac_try_echo=$ac_try;;
  22334. esac
  22335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22336. (eval "$ac_link") 2>conftest.er1
  22337. ac_status=$?
  22338. grep -v '^ *+' conftest.er1 >conftest.err
  22339. rm -f conftest.er1
  22340. cat conftest.err >&5
  22341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22342. (exit $ac_status); } && {
  22343. test -z "$ac_c_werror_flag" ||
  22344. test ! -s conftest.err
  22345. } && test -s conftest$ac_exeext &&
  22346. $as_test_x conftest$ac_exeext; then
  22347. ac_cv_func_inet_addr=yes
  22348. else
  22349. echo "$as_me: failed program was:" >&5
  22350. sed 's/^/| /' conftest.$ac_ext >&5
  22351. ac_cv_func_inet_addr=no
  22352. fi
  22353. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22354. conftest$ac_exeext conftest.$ac_ext
  22355. fi
  22356. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  22357. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
  22358. if test $ac_cv_func_inet_addr = yes; then
  22359. cat >>confdefs.h <<\_ACEOF
  22360. #define HAVE_INET_ADDR 1
  22361. _ACEOF
  22362. inet_addr=yes
  22363. else
  22364. inet_addr=no
  22365. fi
  22366. if test x$inet_addr = no ; then
  22367. { { echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  22368. echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  22369. { (exit 1); exit 1; }; }
  22370. fi
  22371. flowreplay=no
  22372. # Check whether --enable-flowreplay was given.
  22373. if test "${enable_flowreplay+set}" = set; then
  22374. enableval=$enable_flowreplay; if test x$enableval = xyes; then
  22375. flowreplay=yes
  22376. cat >>confdefs.h <<\_ACEOF
  22377. #define ENABLE_FLOWREPLAY 1
  22378. _ACEOF
  22379. fi
  22380. fi
  22381. if test x$flowreplay = xyes; then
  22382. ENABLE_FLOWREPLAY_TRUE=
  22383. ENABLE_FLOWREPLAY_FALSE='#'
  22384. else
  22385. ENABLE_FLOWREPLAY_TRUE='#'
  22386. ENABLE_FLOWREPLAY_FALSE=
  22387. fi
  22388. foundnet=no
  22389. trynetdir=/usr/local
  22390. { echo "$as_me:$LINENO: checking for libnet" >&5
  22391. echo $ECHO_N "checking for libnet... $ECHO_C" >&6; }
  22392. # Check whether --with-libnet was given.
  22393. if test "${with_libnet+set}" = set; then
  22394. withval=$with_libnet; trynetdir=$withval
  22395. fi
  22396. for testdir in $trynetdir /usr/local /opt/local /usr ; do
  22397. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  22398. LNETINC="${testdir}/include/libnet.h"
  22399. LNETINCDIR="$testdir/include"
  22400. if test $dynamic_link = yes; then
  22401. LNETLIB="-L${testdir}/lib -lnet"
  22402. elif test -f "${testdir}/lib64/libnet.a" ; then
  22403. LNETLIB="${testdir}/lib64/libnet.a"
  22404. else
  22405. LNETLIB="${testdir}/lib/libnet.a"
  22406. fi
  22407. foundnet=$testdir
  22408. fi
  22409. done
  22410. if test $foundnet = no ; then
  22411. { echo "$as_me:$LINENO: result: no" >&5
  22412. echo "${ECHO_T}no" >&6; }
  22413. else
  22414. { echo "$as_me:$LINENO: result: $foundnet" >&5
  22415. echo "${ECHO_T}$foundnet" >&6; }
  22416. cat >>confdefs.h <<\_ACEOF
  22417. #define HAVE_LIBNET 1
  22418. _ACEOF
  22419. fi
  22420. if test $foundnet = yes ; then
  22421. OLDLIBS="$LIBS"
  22422. OLDCFLAGS="$CFLAGS"
  22423. LIBS="$LNETLIB"
  22424. CFLAGS="$CFLAGS -I$LNETINCDIR"
  22425. { echo "$as_me:$LINENO: checking for libnet version" >&5
  22426. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6; }
  22427. if test "$cross_compiling" = yes; then
  22428. libnet_ver_10=no
  22429. else
  22430. cat >conftest.$ac_ext <<_ACEOF
  22431. /* confdefs.h. */
  22432. _ACEOF
  22433. cat confdefs.h >>conftest.$ac_ext
  22434. cat >>conftest.$ac_ext <<_ACEOF
  22435. /* end confdefs.h. */
  22436. #include <string.h>
  22437. #define LIBNET_LIL_ENDIAN 1
  22438. #include "$LNETINC"
  22439. #define LIB_TEST "1.0"
  22440. /*
  22441. * simple proggy to test the version of libnet
  22442. * returns zero if it's 1.0.x
  22443. * or one otherwise
  22444. */
  22445. int
  22446. main (int argc, char *argv[])
  22447. {
  22448. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22449. exit(0);
  22450. exit(1);
  22451. }
  22452. _ACEOF
  22453. rm -f conftest$ac_exeext
  22454. if { (ac_try="$ac_link"
  22455. case "(($ac_try" in
  22456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22457. *) ac_try_echo=$ac_try;;
  22458. esac
  22459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22460. (eval "$ac_link") 2>&5
  22461. ac_status=$?
  22462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22463. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22464. { (case "(($ac_try" in
  22465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22466. *) ac_try_echo=$ac_try;;
  22467. esac
  22468. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22469. (eval "$ac_try") 2>&5
  22470. ac_status=$?
  22471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22472. (exit $ac_status); }; }; then
  22473. libnet_ver_10=yes
  22474. { echo "$as_me:$LINENO: result: 1.0.x" >&5
  22475. echo "${ECHO_T}1.0.x" >&6; }
  22476. else
  22477. echo "$as_me: program exited with status $ac_status" >&5
  22478. echo "$as_me: failed program was:" >&5
  22479. sed 's/^/| /' conftest.$ac_ext >&5
  22480. ( exit $ac_status )
  22481. libnet_ver_10=no
  22482. fi
  22483. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22484. fi
  22485. if test "$cross_compiling" = yes; then
  22486. libnet_ver_11=no
  22487. else
  22488. cat >conftest.$ac_ext <<_ACEOF
  22489. /* confdefs.h. */
  22490. _ACEOF
  22491. cat confdefs.h >>conftest.$ac_ext
  22492. cat >>conftest.$ac_ext <<_ACEOF
  22493. /* end confdefs.h. */
  22494. #include <string.h>
  22495. #include "$LNETINC"
  22496. #define LIB_TEST "1.1"
  22497. /*
  22498. * simple proggy to test the version of libnet
  22499. * returns zero if it's 1.0.x
  22500. * or one otherwise
  22501. */
  22502. int
  22503. main (int argc, char *argv[])
  22504. {
  22505. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22506. exit(0);
  22507. exit(1);
  22508. }
  22509. _ACEOF
  22510. rm -f conftest$ac_exeext
  22511. if { (ac_try="$ac_link"
  22512. case "(($ac_try" in
  22513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22514. *) ac_try_echo=$ac_try;;
  22515. esac
  22516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22517. (eval "$ac_link") 2>&5
  22518. ac_status=$?
  22519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22520. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22521. { (case "(($ac_try" in
  22522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22523. *) ac_try_echo=$ac_try;;
  22524. esac
  22525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22526. (eval "$ac_try") 2>&5
  22527. ac_status=$?
  22528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22529. (exit $ac_status); }; }; then
  22530. libnet_ver_11=yes
  22531. { echo "$as_me:$LINENO: result: 1.1.x" >&5
  22532. echo "${ECHO_T}1.1.x" >&6; }
  22533. else
  22534. echo "$as_me: program exited with status $ac_status" >&5
  22535. echo "$as_me: failed program was:" >&5
  22536. sed 's/^/| /' conftest.$ac_ext >&5
  22537. ( exit $ac_status )
  22538. libnet_ver_11=no
  22539. fi
  22540. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22541. fi
  22542. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  22543. { echo "$as_me:$LINENO: result: unknown" >&5
  22544. echo "${ECHO_T}unknown" >&6; }
  22545. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  22546. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  22547. { (exit 1); exit 1; }; }
  22548. fi
  22549. if test $libnet_ver_10 = yes ; then
  22550. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  22551. Please upgrade to 1.1.0 or better" >&5
  22552. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  22553. Please upgrade to 1.1.0 or better" >&2;}
  22554. { (exit 1); exit 1; }; }
  22555. fi
  22556. LIBS="$OLDLIBS"
  22557. CFLAGS="$OLDCFLAGS"
  22558. fi
  22559. foundpcap=no
  22560. trypcapdir=/usr/local
  22561. { echo "$as_me:$LINENO: checking for libpcap" >&5
  22562. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6; }
  22563. # Check whether --with-libpcap was given.
  22564. if test "${with_libpcap+set}" = set; then
  22565. withval=$with_libpcap; trypcapdir=$withval
  22566. fi
  22567. for testdir in $trypcapdir /usr/local /opt/local /usr ; do
  22568. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  22569. LPCAPINC="${testdir}/include/pcap.h"
  22570. LPCAPINCDIR="${testdir}/include"
  22571. if test $dynamic_link = yes; then
  22572. if test -f "${testdir}/lib/libpcap.a" ; then
  22573. LPCAPLIB="-L${testdir}/lib -lpcap"
  22574. elif test -f "${testdir}/lib64/libpcap.a" ; then
  22575. LPCAPLIB="-L${testdir}/lib64 -lpcap"
  22576. else
  22577. { { echo "$as_me:$LINENO: error: Unable to find libpcap in ${testdir}" >&5
  22578. echo "$as_me: error: Unable to find libpcap in ${testdir}" >&2;}
  22579. { (exit 1); exit 1; }; }
  22580. fi
  22581. elif test -f "${testdir}/lib64/libpcap.a" ; then
  22582. LPCAPLIB="${testdir}/lib64/libpcap.a"
  22583. elif test -f "${testdir}/lib/libpcap.a" ; then
  22584. LPCAPLIB="${testdir}/lib/libpcap.a"
  22585. elif test -f "${testdir}/lib/libwpcap.a" ; then
  22586. LPCAPLIB="${testdir}/lib/libwpcap.a"
  22587. cat >>confdefs.h <<\_ACEOF
  22588. #define HAVE_WINPCAP 1
  22589. _ACEOF
  22590. else
  22591. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  22592. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  22593. { (exit 1); exit 1; }; }
  22594. fi
  22595. foundpcap=$testdir
  22596. fi
  22597. done
  22598. if test $foundpcap = no ; then
  22599. { echo "$as_me:$LINENO: result: no" >&5
  22600. echo "${ECHO_T}no" >&6; }
  22601. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  22602. echo "$as_me: error: libpcap not found" >&2;}
  22603. { (exit 1); exit 1; }; }
  22604. else
  22605. { echo "$as_me:$LINENO: result: $foundpcap" >&5
  22606. echo "${ECHO_T}$foundpcap" >&6; }
  22607. fi
  22608. OLDLIBS="$LIBS"
  22609. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  22610. LIBS="$LPCAPLIB"
  22611. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  22612. have_libnet=no
  22613. { echo "$as_me:$LINENO: checking for libpcap version" >&5
  22614. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6; }
  22615. if test "$cross_compiling" = yes; then
  22616. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  22617. See \`config.log' for more details." >&5
  22618. echo "$as_me: error: cannot run test program while cross compiling
  22619. See \`config.log' for more details." >&2;}
  22620. { (exit 1); exit 1; }; }
  22621. else
  22622. cat >conftest.$ac_ext <<_ACEOF
  22623. /* confdefs.h. */
  22624. _ACEOF
  22625. cat confdefs.h >>conftest.$ac_ext
  22626. cat >>conftest.$ac_ext <<_ACEOF
  22627. /* end confdefs.h. */
  22628. #include <string.h>
  22629. #include <stdlib.h>
  22630. #include <stdio.h>
  22631. #include "$LPCAPINC"
  22632. #define PCAP_TEST "0.8"
  22633. int
  22634. main ()
  22635. {
  22636. /*
  22637. * simple proggy to test the version of libpcap
  22638. * returns zero if version >= 0.8.0
  22639. * or one otherwise
  22640. */
  22641. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  22642. exit(0);
  22643. /* winpcap? */
  22644. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  22645. exit(0);
  22646. exit(1);
  22647. ;
  22648. return 0;
  22649. }
  22650. _ACEOF
  22651. rm -f conftest$ac_exeext
  22652. if { (ac_try="$ac_link"
  22653. case "(($ac_try" in
  22654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22655. *) ac_try_echo=$ac_try;;
  22656. esac
  22657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22658. (eval "$ac_link") 2>&5
  22659. ac_status=$?
  22660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22661. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22662. { (case "(($ac_try" in
  22663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22664. *) ac_try_echo=$ac_try;;
  22665. esac
  22666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22667. (eval "$ac_try") 2>&5
  22668. ac_status=$?
  22669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22670. (exit $ac_status); }; }; then
  22671. libpcap_ver8=yes
  22672. else
  22673. echo "$as_me: program exited with status $ac_status" >&5
  22674. echo "$as_me: failed program was:" >&5
  22675. sed 's/^/| /' conftest.$ac_ext >&5
  22676. ( exit $ac_status )
  22677. libpcap_ver8=no
  22678. fi
  22679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22680. fi
  22681. if test "$cross_compiling" = yes; then
  22682. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  22683. See \`config.log' for more details." >&5
  22684. echo "$as_me: error: cannot run test program while cross compiling
  22685. See \`config.log' for more details." >&2;}
  22686. { (exit 1); exit 1; }; }
  22687. else
  22688. cat >conftest.$ac_ext <<_ACEOF
  22689. /* confdefs.h. */
  22690. _ACEOF
  22691. cat confdefs.h >>conftest.$ac_ext
  22692. cat >>conftest.$ac_ext <<_ACEOF
  22693. /* end confdefs.h. */
  22694. #include <string.h>
  22695. #include <stdlib.h>
  22696. #include <stdio.h>
  22697. #include "$LPCAPINC"
  22698. #define PCAP_TEST "0.7.2"
  22699. extern const char pcap_version[]; /* double up since autoconf escapes things */
  22700. int
  22701. main ()
  22702. {
  22703. /*
  22704. * simple proggy to test the version of libpcap
  22705. * returns zero if version >= 0.7.2
  22706. * or one otherwise
  22707. */
  22708. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  22709. exit(0);
  22710. exit(1);
  22711. ;
  22712. return 0;
  22713. }
  22714. _ACEOF
  22715. rm -f conftest$ac_exeext
  22716. if { (ac_try="$ac_link"
  22717. case "(($ac_try" in
  22718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22719. *) ac_try_echo=$ac_try;;
  22720. esac
  22721. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22722. (eval "$ac_link") 2>&5
  22723. ac_status=$?
  22724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22725. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22726. { (case "(($ac_try" in
  22727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22728. *) ac_try_echo=$ac_try;;
  22729. esac
  22730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22731. (eval "$ac_try") 2>&5
  22732. ac_status=$?
  22733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22734. (exit $ac_status); }; }; then
  22735. libpcap_ver7=yes
  22736. else
  22737. echo "$as_me: program exited with status $ac_status" >&5
  22738. echo "$as_me: failed program was:" >&5
  22739. sed 's/^/| /' conftest.$ac_ext >&5
  22740. ( exit $ac_status )
  22741. libpcap_ver7=no
  22742. fi
  22743. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22744. fi
  22745. if test $libpcap_ver8 = yes ; then
  22746. { echo "$as_me:$LINENO: result: >= 0.8.0" >&5
  22747. echo "${ECHO_T}>= 0.8.0" >&6; }
  22748. elif test $libpcap_ver7 = yes ; then
  22749. { echo "$as_me:$LINENO: result: >= 0.7.2" >&5
  22750. echo "${ECHO_T}>= 0.7.2" >&6; }
  22751. else
  22752. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported
  22753. Please upgrade to version 0.7.2 or better" >&5
  22754. echo "$as_me: error: Libpcap versions < 0.7.2 are not supported
  22755. Please upgrade to version 0.7.2 or better" >&2;}
  22756. { (exit 1); exit 1; }; }
  22757. fi
  22758. { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  22759. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
  22760. cat >conftest.$ac_ext <<_ACEOF
  22761. /* confdefs.h. */
  22762. _ACEOF
  22763. cat confdefs.h >>conftest.$ac_ext
  22764. cat >>conftest.$ac_ext <<_ACEOF
  22765. /* end confdefs.h. */
  22766. #include <stdio.h>
  22767. #include <stdlib.h>
  22768. #include <string.h>
  22769. #include "$LPCAPINC"
  22770. int
  22771. main ()
  22772. {
  22773. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  22774. exit(0);
  22775. exit(1);
  22776. ;
  22777. return 0;
  22778. }
  22779. _ACEOF
  22780. rm -f conftest.$ac_objext conftest$ac_exeext
  22781. if { (ac_try="$ac_link"
  22782. case "(($ac_try" in
  22783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22784. *) ac_try_echo=$ac_try;;
  22785. esac
  22786. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22787. (eval "$ac_link") 2>conftest.er1
  22788. ac_status=$?
  22789. grep -v '^ *+' conftest.er1 >conftest.err
  22790. rm -f conftest.er1
  22791. cat conftest.err >&5
  22792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22793. (exit $ac_status); } && {
  22794. test -z "$ac_c_werror_flag" ||
  22795. test ! -s conftest.err
  22796. } && test -s conftest$ac_exeext &&
  22797. $as_test_x conftest$ac_exeext; then
  22798. have_dlt_to_desc=yes
  22799. { echo "$as_me:$LINENO: result: yes" >&5
  22800. echo "${ECHO_T}yes" >&6; }
  22801. else
  22802. echo "$as_me: failed program was:" >&5
  22803. sed 's/^/| /' conftest.$ac_ext >&5
  22804. have_dlt_to_desc=no
  22805. { echo "$as_me:$LINENO: result: no" >&5
  22806. echo "${ECHO_T}no" >&6; }
  22807. fi
  22808. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22809. conftest$ac_exeext conftest.$ac_ext
  22810. if test $have_dlt_to_desc = yes ; then
  22811. cat >>confdefs.h <<\_ACEOF
  22812. #define HAVE_DLT_VAL_TO_DESC 1
  22813. _ACEOF
  22814. fi
  22815. { echo "$as_me:$LINENO: checking for pcap_dump_fopen" >&5
  22816. echo $ECHO_N "checking for pcap_dump_fopen... $ECHO_C" >&6; }
  22817. cat >conftest.$ac_ext <<_ACEOF
  22818. /* confdefs.h. */
  22819. _ACEOF
  22820. cat confdefs.h >>conftest.$ac_ext
  22821. cat >>conftest.$ac_ext <<_ACEOF
  22822. /* end confdefs.h. */
  22823. #include <stdio.h>
  22824. #include <stdlib.h>
  22825. #include <string.h>
  22826. #include "$LPCAPINC"
  22827. int
  22828. main ()
  22829. {
  22830. pcap_dumper_t *dump;
  22831. pcap_t *pcap;
  22832. FILE *foo;
  22833. dump = pcap_dump_fopen(pcap, foo);
  22834. ;
  22835. return 0;
  22836. }
  22837. _ACEOF
  22838. rm -f conftest.$ac_objext conftest$ac_exeext
  22839. if { (ac_try="$ac_link"
  22840. case "(($ac_try" in
  22841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22842. *) ac_try_echo=$ac_try;;
  22843. esac
  22844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22845. (eval "$ac_link") 2>conftest.er1
  22846. ac_status=$?
  22847. grep -v '^ *+' conftest.er1 >conftest.err
  22848. rm -f conftest.er1
  22849. cat conftest.err >&5
  22850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22851. (exit $ac_status); } && {
  22852. test -z "$ac_c_werror_flag" ||
  22853. test ! -s conftest.err
  22854. } && test -s conftest$ac_exeext &&
  22855. $as_test_x conftest$ac_exeext; then
  22856. have_pcap_dump_fopen=yes
  22857. { echo "$as_me:$LINENO: result: yes" >&5
  22858. echo "${ECHO_T}yes" >&6; }
  22859. else
  22860. echo "$as_me: failed program was:" >&5
  22861. sed 's/^/| /' conftest.$ac_ext >&5
  22862. have_pcap_dump_fopen=no
  22863. { echo "$as_me:$LINENO: result: no" >&5
  22864. echo "${ECHO_T}no" >&6; }
  22865. fi
  22866. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22867. conftest$ac_exeext conftest.$ac_ext
  22868. if test $have_pcap_dump_fopen = yes ; then
  22869. cat >>confdefs.h <<\_ACEOF
  22870. #define HAVE_PCAP_DUMP_FOPEN 1
  22871. _ACEOF
  22872. else
  22873. { echo "$as_me:$LINENO: --verbose mode requires libpcap >= 0.9.0" >&5
  22874. echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  22875. fi
  22876. { echo "$as_me:$LINENO: checking for pcap_snapshot_override" >&5
  22877. echo $ECHO_N "checking for pcap_snapshot_override... $ECHO_C" >&6; }
  22878. cat >conftest.$ac_ext <<_ACEOF
  22879. /* confdefs.h. */
  22880. _ACEOF
  22881. cat confdefs.h >>conftest.$ac_ext
  22882. cat >>conftest.$ac_ext <<_ACEOF
  22883. /* end confdefs.h. */
  22884. #include <stdio.h>
  22885. #include <stdlib.h>
  22886. #include <string.h>
  22887. #include "$LPCAPINC"
  22888. int
  22889. main ()
  22890. {
  22891. pcap_t *pcap;
  22892. pcap_snapshot_override(pcap, 1);
  22893. exit(0);
  22894. ;
  22895. return 0;
  22896. }
  22897. _ACEOF
  22898. rm -f conftest.$ac_objext conftest$ac_exeext
  22899. if { (ac_try="$ac_link"
  22900. case "(($ac_try" in
  22901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22902. *) ac_try_echo=$ac_try;;
  22903. esac
  22904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22905. (eval "$ac_link") 2>conftest.er1
  22906. ac_status=$?
  22907. grep -v '^ *+' conftest.er1 >conftest.err
  22908. rm -f conftest.er1
  22909. cat conftest.err >&5
  22910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22911. (exit $ac_status); } && {
  22912. test -z "$ac_c_werror_flag" ||
  22913. test ! -s conftest.err
  22914. } && test -s conftest$ac_exeext &&
  22915. $as_test_x conftest$ac_exeext; then
  22916. have_pcap_snapshot_override=yes
  22917. { echo "$as_me:$LINENO: result: yes" >&5
  22918. echo "${ECHO_T}yes" >&6; }
  22919. else
  22920. echo "$as_me: failed program was:" >&5
  22921. sed 's/^/| /' conftest.$ac_ext >&5
  22922. have_pcap_snapshot_override=no
  22923. { echo "$as_me:$LINENO: result: no" >&5
  22924. echo "${ECHO_T}no" >&6; }
  22925. fi
  22926. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22927. conftest$ac_exeext conftest.$ac_ext
  22928. if test $have_pcap_snapshot_override = yes ; then
  22929. cat >>confdefs.h <<\_ACEOF
  22930. #define HAVE_PCAP_SNAPSHOT_OVERRIDE 1
  22931. _ACEOF
  22932. fi
  22933. have_pcap_inject=no
  22934. { echo "$as_me:$LINENO: checking for pcap_inject sending support" >&5
  22935. echo $ECHO_N "checking for pcap_inject sending support... $ECHO_C" >&6; }
  22936. cat >conftest.$ac_ext <<_ACEOF
  22937. /* confdefs.h. */
  22938. _ACEOF
  22939. cat confdefs.h >>conftest.$ac_ext
  22940. cat >>conftest.$ac_ext <<_ACEOF
  22941. /* end confdefs.h. */
  22942. #include <stdio.h>
  22943. #include <stdlib.h>
  22944. #include <string.h>
  22945. #include "$LPCAPINC"
  22946. int
  22947. main ()
  22948. {
  22949. pcap_t *pcap;
  22950. char *buf;
  22951. pcap_inject(pcap, (void *)buf, 0);
  22952. ;
  22953. return 0;
  22954. }
  22955. _ACEOF
  22956. rm -f conftest.$ac_objext
  22957. if { (ac_try="$ac_compile"
  22958. case "(($ac_try" in
  22959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22960. *) ac_try_echo=$ac_try;;
  22961. esac
  22962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22963. (eval "$ac_compile") 2>conftest.er1
  22964. ac_status=$?
  22965. grep -v '^ *+' conftest.er1 >conftest.err
  22966. rm -f conftest.er1
  22967. cat conftest.err >&5
  22968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22969. (exit $ac_status); } && {
  22970. test -z "$ac_c_werror_flag" ||
  22971. test ! -s conftest.err
  22972. } && test -s conftest.$ac_objext; then
  22973. cat >>confdefs.h <<\_ACEOF
  22974. #define HAVE_PCAP_INJECT 1
  22975. _ACEOF
  22976. { echo "$as_me:$LINENO: result: yes" >&5
  22977. echo "${ECHO_T}yes" >&6; }
  22978. have_pcap_inject=yes
  22979. else
  22980. echo "$as_me: failed program was:" >&5
  22981. sed 's/^/| /' conftest.$ac_ext >&5
  22982. { echo "$as_me:$LINENO: result: no" >&5
  22983. echo "${ECHO_T}no" >&6; }
  22984. fi
  22985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22986. have_pcap_version=no
  22987. { echo "$as_me:$LINENO: checking for pcap_version" >&5
  22988. echo $ECHO_N "checking for pcap_version... $ECHO_C" >&6; }
  22989. cat >conftest.$ac_ext <<_ACEOF
  22990. /* confdefs.h. */
  22991. _ACEOF
  22992. cat confdefs.h >>conftest.$ac_ext
  22993. cat >>conftest.$ac_ext <<_ACEOF
  22994. /* end confdefs.h. */
  22995. #include <stdio.h>
  22996. #include <stdlib.h>
  22997. #include <string.h>
  22998. #include "$LPCAPINC"
  22999. extern char pcap_version[];
  23000. int
  23001. main ()
  23002. {
  23003. printf("%s", pcap_version);
  23004. ;
  23005. return 0;
  23006. }
  23007. _ACEOF
  23008. rm -f conftest.$ac_objext
  23009. if { (ac_try="$ac_compile"
  23010. case "(($ac_try" in
  23011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23012. *) ac_try_echo=$ac_try;;
  23013. esac
  23014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23015. (eval "$ac_compile") 2>conftest.er1
  23016. ac_status=$?
  23017. grep -v '^ *+' conftest.er1 >conftest.err
  23018. rm -f conftest.er1
  23019. cat conftest.err >&5
  23020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23021. (exit $ac_status); } && {
  23022. test -z "$ac_c_werror_flag" ||
  23023. test ! -s conftest.err
  23024. } && test -s conftest.$ac_objext; then
  23025. cat >>confdefs.h <<\_ACEOF
  23026. #define HAVE_PCAP_VERSION 1
  23027. _ACEOF
  23028. { echo "$as_me:$LINENO: result: yes" >&5
  23029. echo "${ECHO_T}yes" >&6; }
  23030. else
  23031. echo "$as_me: failed program was:" >&5
  23032. sed 's/^/| /' conftest.$ac_ext >&5
  23033. { echo "$as_me:$LINENO: result: no" >&5
  23034. echo "${ECHO_T}no" >&6; }
  23035. fi
  23036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23037. have_pcap_sendpacket=no
  23038. { echo "$as_me:$LINENO: checking for pcap_sendpacket sending support" >&5
  23039. echo $ECHO_N "checking for pcap_sendpacket sending support... $ECHO_C" >&6; }
  23040. cat >conftest.$ac_ext <<_ACEOF
  23041. /* confdefs.h. */
  23042. _ACEOF
  23043. cat confdefs.h >>conftest.$ac_ext
  23044. cat >>conftest.$ac_ext <<_ACEOF
  23045. /* end confdefs.h. */
  23046. #include <stdio.h>
  23047. #include <stdlib.h>
  23048. #include <string.h>
  23049. #include "$LPCAPINC"
  23050. int
  23051. main ()
  23052. {
  23053. pcap_t *pcap;
  23054. u_char *buf;
  23055. pcap_sendpacket(pcap, buf, 0);
  23056. ;
  23057. return 0;
  23058. }
  23059. _ACEOF
  23060. rm -f conftest.$ac_objext
  23061. if { (ac_try="$ac_compile"
  23062. case "(($ac_try" in
  23063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23064. *) ac_try_echo=$ac_try;;
  23065. esac
  23066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23067. (eval "$ac_compile") 2>conftest.er1
  23068. ac_status=$?
  23069. grep -v '^ *+' conftest.er1 >conftest.err
  23070. rm -f conftest.er1
  23071. cat conftest.err >&5
  23072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23073. (exit $ac_status); } && {
  23074. test -z "$ac_c_werror_flag" ||
  23075. test ! -s conftest.err
  23076. } && test -s conftest.$ac_objext; then
  23077. cat >>confdefs.h <<\_ACEOF
  23078. #define HAVE_PCAP_SENDPACKET 1
  23079. _ACEOF
  23080. { echo "$as_me:$LINENO: result: yes" >&5
  23081. echo "${ECHO_T}yes" >&6; }
  23082. have_pcap_sendpacket=yes
  23083. else
  23084. echo "$as_me: failed program was:" >&5
  23085. sed 's/^/| /' conftest.$ac_ext >&5
  23086. { echo "$as_me:$LINENO: result: no" >&5
  23087. echo "${ECHO_T}no" >&6; }
  23088. fi
  23089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23090. have_pf=no
  23091. { echo "$as_me:$LINENO: checking for PF_PACKET socket sending support" >&5
  23092. echo $ECHO_N "checking for PF_PACKET socket sending support... $ECHO_C" >&6; }
  23093. cat >conftest.$ac_ext <<_ACEOF
  23094. /* confdefs.h. */
  23095. _ACEOF
  23096. cat confdefs.h >>conftest.$ac_ext
  23097. cat >>conftest.$ac_ext <<_ACEOF
  23098. /* end confdefs.h. */
  23099. #include <sys/socket.h>
  23100. #include <netpacket/packet.h>
  23101. #include <net/ethernet.h> /* the L2 protocols */
  23102. #include <netinet/in.h> /* htons */
  23103. int
  23104. main ()
  23105. {
  23106. int pf_socket;
  23107. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  23108. ;
  23109. return 0;
  23110. }
  23111. _ACEOF
  23112. rm -f conftest.$ac_objext
  23113. if { (ac_try="$ac_compile"
  23114. case "(($ac_try" in
  23115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23116. *) ac_try_echo=$ac_try;;
  23117. esac
  23118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23119. (eval "$ac_compile") 2>conftest.er1
  23120. ac_status=$?
  23121. grep -v '^ *+' conftest.er1 >conftest.err
  23122. rm -f conftest.er1
  23123. cat conftest.err >&5
  23124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23125. (exit $ac_status); } && {
  23126. test -z "$ac_c_werror_flag" ||
  23127. test ! -s conftest.err
  23128. } && test -s conftest.$ac_objext; then
  23129. cat >>confdefs.h <<\_ACEOF
  23130. #define HAVE_PF_PACKET 1
  23131. _ACEOF
  23132. { echo "$as_me:$LINENO: result: yes" >&5
  23133. echo "${ECHO_T}yes" >&6; }
  23134. have_pf=yes
  23135. else
  23136. echo "$as_me: failed program was:" >&5
  23137. sed 's/^/| /' conftest.$ac_ext >&5
  23138. { echo "$as_me:$LINENO: result: no" >&5
  23139. echo "${ECHO_T}no" >&6; }
  23140. fi
  23141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23142. have_bpf=no
  23143. { echo "$as_me:$LINENO: checking for BPF device sending support" >&5
  23144. echo $ECHO_N "checking for BPF device sending support... $ECHO_C" >&6; }
  23145. if test "$cross_compiling" = yes; then
  23146. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23147. See \`config.log' for more details." >&5
  23148. echo "$as_me: error: cannot run test program while cross compiling
  23149. See \`config.log' for more details." >&2;}
  23150. { (exit 1); exit 1; }; }
  23151. else
  23152. cat >conftest.$ac_ext <<_ACEOF
  23153. /* confdefs.h. */
  23154. _ACEOF
  23155. cat confdefs.h >>conftest.$ac_ext
  23156. cat >>conftest.$ac_ext <<_ACEOF
  23157. /* end confdefs.h. */
  23158. #include <stdio.h>
  23159. #include <stdlib.h>
  23160. #include <net/bpf.h>
  23161. #include <sys/types.h>
  23162. #include <sys/socket.h>
  23163. #include <fcntl.h>
  23164. #include <sys/time.h>
  23165. #include <sys/ioctl.h>
  23166. #include <net/bpf.h>
  23167. #include <errno.h>
  23168. int
  23169. main(int argc, char *argv[]) {
  23170. int fd;
  23171. fd = open("/dev/bpf0", O_RDONLY, 0);
  23172. /* if we opened it, we're good */
  23173. if (fd > 1)
  23174. exit(0);
  23175. /* if we got EBUSY or permission denied it exists, so we're good */
  23176. if (fd < 0 && (errno == EBUSY || errno == 13))
  23177. exit(0);
  23178. /* else suck, no good */
  23179. exit(-1);
  23180. }
  23181. _ACEOF
  23182. rm -f conftest$ac_exeext
  23183. if { (ac_try="$ac_link"
  23184. case "(($ac_try" in
  23185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23186. *) ac_try_echo=$ac_try;;
  23187. esac
  23188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23189. (eval "$ac_link") 2>&5
  23190. ac_status=$?
  23191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23192. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23193. { (case "(($ac_try" in
  23194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23195. *) ac_try_echo=$ac_try;;
  23196. esac
  23197. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23198. (eval "$ac_try") 2>&5
  23199. ac_status=$?
  23200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23201. (exit $ac_status); }; }; then
  23202. cat >>confdefs.h <<\_ACEOF
  23203. #define HAVE_BPF 1
  23204. _ACEOF
  23205. { echo "$as_me:$LINENO: result: yes" >&5
  23206. echo "${ECHO_T}yes" >&6; }
  23207. have_bpf=yes
  23208. else
  23209. echo "$as_me: program exited with status $ac_status" >&5
  23210. echo "$as_me: failed program was:" >&5
  23211. sed 's/^/| /' conftest.$ac_ext >&5
  23212. fi
  23213. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23214. fi
  23215. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  23216. -a $have_libnet = no -a $have_pf = no ; then
  23217. { { echo "$as_me:$LINENO: error: Unable to find a supported method to send packets" >&5
  23218. echo "$as_me: error: Unable to find a supported method to send packets" >&2;}
  23219. { (exit 1); exit 1; }; }
  23220. fi
  23221. enable_tcpbridge=yes
  23222. if test $have_bpf = no -a $have_libnet = no -a $have_pf = no ; then
  23223. { echo "$as_me:$LINENO: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&5
  23224. echo "$as_me: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&6;}
  23225. enable_tcpbridge=no
  23226. fi
  23227. # ADT: Commented for now
  23228. # AM_CONDITIONAL(ENABLE_TCPBRIDGE, [test $enable_tcpbridge = yes])
  23229. { echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  23230. echo $ECHO_N "checking for DLT_LINUX_SLL in libpcap... $ECHO_C" >&6; }
  23231. cat >conftest.$ac_ext <<_ACEOF
  23232. /* confdefs.h. */
  23233. _ACEOF
  23234. cat confdefs.h >>conftest.$ac_ext
  23235. cat >>conftest.$ac_ext <<_ACEOF
  23236. /* end confdefs.h. */
  23237. #include "$LPCAPINC"
  23238. int
  23239. main ()
  23240. {
  23241. int foo;
  23242. foo = DLT_LINUX_SLL
  23243. ;
  23244. return 0;
  23245. }
  23246. _ACEOF
  23247. rm -f conftest.$ac_objext
  23248. if { (ac_try="$ac_compile"
  23249. case "(($ac_try" in
  23250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23251. *) ac_try_echo=$ac_try;;
  23252. esac
  23253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23254. (eval "$ac_compile") 2>conftest.er1
  23255. ac_status=$?
  23256. grep -v '^ *+' conftest.er1 >conftest.err
  23257. rm -f conftest.er1
  23258. cat conftest.err >&5
  23259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23260. (exit $ac_status); } && {
  23261. test -z "$ac_c_werror_flag" ||
  23262. test ! -s conftest.err
  23263. } && test -s conftest.$ac_objext; then
  23264. cat >>confdefs.h <<\_ACEOF
  23265. #define HAVE_DLT_LINUX_SLL 1
  23266. _ACEOF
  23267. { echo "$as_me:$LINENO: result: yes" >&5
  23268. echo "${ECHO_T}yes" >&6; }
  23269. else
  23270. echo "$as_me: failed program was:" >&5
  23271. sed 's/^/| /' conftest.$ac_ext >&5
  23272. { echo "$as_me:$LINENO: result: no" >&5
  23273. echo "${ECHO_T}no" >&6; }
  23274. fi
  23275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23276. { echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  23277. echo $ECHO_N "checking for DLT_C_HDLC in libpcap... $ECHO_C" >&6; }
  23278. cat >conftest.$ac_ext <<_ACEOF
  23279. /* confdefs.h. */
  23280. _ACEOF
  23281. cat confdefs.h >>conftest.$ac_ext
  23282. cat >>conftest.$ac_ext <<_ACEOF
  23283. /* end confdefs.h. */
  23284. #include "$LPCAPINC"
  23285. int
  23286. main ()
  23287. {
  23288. int foo;
  23289. foo = DLT_C_HDLC
  23290. ;
  23291. return 0;
  23292. }
  23293. _ACEOF
  23294. rm -f conftest.$ac_objext
  23295. if { (ac_try="$ac_compile"
  23296. case "(($ac_try" in
  23297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23298. *) ac_try_echo=$ac_try;;
  23299. esac
  23300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23301. (eval "$ac_compile") 2>conftest.er1
  23302. ac_status=$?
  23303. grep -v '^ *+' conftest.er1 >conftest.err
  23304. rm -f conftest.er1
  23305. cat conftest.err >&5
  23306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23307. (exit $ac_status); } && {
  23308. test -z "$ac_c_werror_flag" ||
  23309. test ! -s conftest.err
  23310. } && test -s conftest.$ac_objext; then
  23311. cat >>confdefs.h <<\_ACEOF
  23312. #define HAVE_DLT_C_HDLC 1
  23313. _ACEOF
  23314. { echo "$as_me:$LINENO: result: yes" >&5
  23315. echo "${ECHO_T}yes" >&6; }
  23316. else
  23317. echo "$as_me: failed program was:" >&5
  23318. sed 's/^/| /' conftest.$ac_ext >&5
  23319. { echo "$as_me:$LINENO: result: no" >&5
  23320. echo "${ECHO_T}no" >&6; }
  23321. fi
  23322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23323. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  23324. { echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  23325. echo $ECHO_N "checking for $PCAP_BPF_H_FILE... $ECHO_C" >&6; }
  23326. cat >conftest.$ac_ext <<_ACEOF
  23327. /* confdefs.h. */
  23328. _ACEOF
  23329. cat confdefs.h >>conftest.$ac_ext
  23330. cat >>conftest.$ac_ext <<_ACEOF
  23331. /* end confdefs.h. */
  23332. #include <sys/types.h>
  23333. #include <sys/time.h>
  23334. #include "$PCAP_BPF_H_FILE"
  23335. int
  23336. main ()
  23337. {
  23338. int foo;
  23339. foo = BPF_MAJOR_VERSION;
  23340. ;
  23341. return 0;
  23342. }
  23343. _ACEOF
  23344. rm -f conftest.$ac_objext
  23345. if { (ac_try="$ac_compile"
  23346. case "(($ac_try" in
  23347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23348. *) ac_try_echo=$ac_try;;
  23349. esac
  23350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23351. (eval "$ac_compile") 2>conftest.er1
  23352. ac_status=$?
  23353. grep -v '^ *+' conftest.er1 >conftest.err
  23354. rm -f conftest.er1
  23355. cat conftest.err >&5
  23356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23357. (exit $ac_status); } && {
  23358. test -z "$ac_c_werror_flag" ||
  23359. test ! -s conftest.err
  23360. } && test -s conftest.$ac_objext; then
  23361. cat >>confdefs.h <<\_ACEOF
  23362. #define INCLUDE_PCAP_BPF_HEADER 1
  23363. _ACEOF
  23364. { echo "$as_me:$LINENO: result: yes" >&5
  23365. echo "${ECHO_T}yes" >&6; }
  23366. else
  23367. echo "$as_me: failed program was:" >&5
  23368. sed 's/^/| /' conftest.$ac_ext >&5
  23369. { echo "$as_me:$LINENO: result: no" >&5
  23370. echo "${ECHO_T}no" >&6; }
  23371. fi
  23372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23373. foundbpfheader=no
  23374. { echo "$as_me:$LINENO: checking for libpcap bpf header" >&5
  23375. echo $ECHO_N "checking for libpcap bpf header... $ECHO_C" >&6; }
  23376. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  23377. if test -f "${testfile}" -a $foundbpfheader = no ; then
  23378. cat >conftest.$ac_ext <<_ACEOF
  23379. /* confdefs.h. */
  23380. _ACEOF
  23381. cat confdefs.h >>conftest.$ac_ext
  23382. cat >>conftest.$ac_ext <<_ACEOF
  23383. /* end confdefs.h. */
  23384. #include <sys/types.h>
  23385. #include <sys/time.h>
  23386. #include "$testfile"
  23387. int
  23388. main ()
  23389. {
  23390. int foo;
  23391. foo = BPF_MAJOR_VERSION;
  23392. ;
  23393. return 0;
  23394. }
  23395. _ACEOF
  23396. rm -f conftest.$ac_objext
  23397. if { (ac_try="$ac_compile"
  23398. case "(($ac_try" in
  23399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23400. *) ac_try_echo=$ac_try;;
  23401. esac
  23402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23403. (eval "$ac_compile") 2>conftest.er1
  23404. ac_status=$?
  23405. grep -v '^ *+' conftest.er1 >conftest.err
  23406. rm -f conftest.er1
  23407. cat conftest.err >&5
  23408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23409. (exit $ac_status); } && {
  23410. test -z "$ac_c_werror_flag" ||
  23411. test ! -s conftest.err
  23412. } && test -s conftest.$ac_objext; then
  23413. foundbpfheader=yes
  23414. PCAP_BPF_H_FILE=$testfile
  23415. cat >>confdefs.h <<\_ACEOF
  23416. #define INCLUDE_PCAP_BPF_HEADER 1
  23417. _ACEOF
  23418. { echo "$as_me:$LINENO: result: $testfile" >&5
  23419. echo "${ECHO_T}$testfile" >&6; }
  23420. else
  23421. echo "$as_me: failed program was:" >&5
  23422. sed 's/^/| /' conftest.$ac_ext >&5
  23423. { echo "$as_me:$LINENO: result: no" >&5
  23424. echo "${ECHO_T}no" >&6; }
  23425. fi
  23426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23427. fi
  23428. done
  23429. LIBS="$OLDLIBS"
  23430. CFLAGS="$OLDCFLAGS"
  23431. pcapnav_ver=no
  23432. pcncfg=no
  23433. # Check whether --with-pcapnav-config was given.
  23434. if test "${with_pcapnav_config+set}" = set; then
  23435. withval=$with_pcapnav_config; { echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  23436. echo $ECHO_N "checking for pcapnav-config... $ECHO_C" >&6; }
  23437. if test -x $withval ; then
  23438. pcncfg=$withval
  23439. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23440. echo "${ECHO_T}$pcncfg" >&6; }
  23441. elif test x$withval = xno ; then
  23442. { echo "$as_me:$LINENO: result: no" >&5
  23443. echo "${ECHO_T}no" >&6; }
  23444. else
  23445. { echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  23446. echo "${ECHO_T}Can't find pcapnav-config: disabling offset jump feature" >&6; }
  23447. fi
  23448. else
  23449. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  23450. set dummy pcapnav-config; ac_word=$2
  23451. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23452. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23453. if test "${ac_cv_path_pcncfg+set}" = set; then
  23454. echo $ECHO_N "(cached) $ECHO_C" >&6
  23455. else
  23456. case $pcncfg in
  23457. [\\/]* | ?:[\\/]*)
  23458. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  23459. ;;
  23460. *)
  23461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23462. for as_dir in $PATH
  23463. do
  23464. IFS=$as_save_IFS
  23465. test -z "$as_dir" && as_dir=.
  23466. for ac_exec_ext in '' $ac_executable_extensions; do
  23467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23468. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  23469. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23470. break 2
  23471. fi
  23472. done
  23473. done
  23474. IFS=$as_save_IFS
  23475. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  23476. ;;
  23477. esac
  23478. fi
  23479. pcncfg=$ac_cv_path_pcncfg
  23480. if test -n "$pcncfg"; then
  23481. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23482. echo "${ECHO_T}$pcncfg" >&6; }
  23483. else
  23484. { echo "$as_me:$LINENO: result: no" >&5
  23485. echo "${ECHO_T}no" >&6; }
  23486. fi
  23487. fi
  23488. if test $pcncfg != no ; then
  23489. LNAVLIB=`$pcncfg --libs`
  23490. LNAV_CFLAGS=`$pcncfg --cflags`
  23491. PCAPNAV_VERSION=`$pcncfg --version`
  23492. cat >>confdefs.h <<_ACEOF
  23493. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  23494. _ACEOF
  23495. { echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  23496. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6; }
  23497. if test "$cross_compiling" = yes; then
  23498. libpcapnav_ver=no
  23499. else
  23500. cat >conftest.$ac_ext <<_ACEOF
  23501. /* confdefs.h. */
  23502. _ACEOF
  23503. cat confdefs.h >>conftest.$ac_ext
  23504. cat >>conftest.$ac_ext <<_ACEOF
  23505. /* end confdefs.h. */
  23506. #include <string.h>
  23507. #define PCAPNAV_TEST "0.4"
  23508. /*
  23509. * simple proggy to test the version of libpcapnav
  23510. * returns zero if version >= 0.4
  23511. * or one otherwise
  23512. */
  23513. int
  23514. main (int argc, char *argv[])
  23515. {
  23516. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  23517. exit(0);
  23518. exit(1);
  23519. }
  23520. _ACEOF
  23521. rm -f conftest$ac_exeext
  23522. if { (ac_try="$ac_link"
  23523. case "(($ac_try" in
  23524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23525. *) ac_try_echo=$ac_try;;
  23526. esac
  23527. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23528. (eval "$ac_link") 2>&5
  23529. ac_status=$?
  23530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23531. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23532. { (case "(($ac_try" in
  23533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23534. *) ac_try_echo=$ac_try;;
  23535. esac
  23536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23537. (eval "$ac_try") 2>&5
  23538. ac_status=$?
  23539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23540. (exit $ac_status); }; }; then
  23541. libpcapnav_ver=yes
  23542. { echo "$as_me:$LINENO: result: >= 0.4" >&5
  23543. echo "${ECHO_T}>= 0.4" >&6; }
  23544. else
  23545. echo "$as_me: program exited with status $ac_status" >&5
  23546. echo "$as_me: failed program was:" >&5
  23547. sed 's/^/| /' conftest.$ac_ext >&5
  23548. ( exit $ac_status )
  23549. libpcapnav_ver=no
  23550. { echo "$as_me:$LINENO: result: < 0.4" >&5
  23551. echo "${ECHO_T}< 0.4" >&6; }
  23552. fi
  23553. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23554. fi
  23555. if test x$libpcapnav_ver = xno ; then
  23556. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  23557. Please upgrade to version 0.4 or better.
  23558. Disabling offset jump feature." >&5
  23559. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  23560. Please upgrade to version 0.4 or better.
  23561. Disabling offset jump feature." >&2;}
  23562. else
  23563. cat >>confdefs.h <<\_ACEOF
  23564. #define HAVE_PCAPNAV 1
  23565. _ACEOF
  23566. fi
  23567. fi # checking pcapnav version
  23568. { echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  23569. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6; }
  23570. if test "${unaligned_fail+set}" = set; then
  23571. echo $ECHO_N "(cached) $ECHO_C" >&6
  23572. else
  23573. case "$host_cpu" in
  23574. # XXX: should also check that they don't do weird things (like on arm)
  23575. alpha*|arm*|hp*|mips*|sparc*|ia64)
  23576. unaligned_fail=yes
  23577. ;;
  23578. *)
  23579. cat >conftest.c <<EOF
  23580. #include <sys/types.h>
  23581. #include <sys/wait.h>
  23582. #include <stdio.h>
  23583. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  23584. main() {
  23585. unsigned int i;
  23586. pid_t pid;
  23587. int status;
  23588. /* avoid "core dumped" message */
  23589. pid = fork();
  23590. if (pid < 0)
  23591. exit(2);
  23592. if (pid > 0) {
  23593. /* parent */
  23594. pid = waitpid(pid, &status, 0);
  23595. if (pid < 0)
  23596. exit(3);
  23597. exit(!WIFEXITED(status));
  23598. }
  23599. /* child */
  23600. i = *(unsigned int *)&a[1];
  23601. printf("%d\n", i);
  23602. exit(0);
  23603. }
  23604. EOF
  23605. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  23606. conftest.c $LIBS >/dev/null 2>&1
  23607. if test ! -x conftest ; then
  23608. unaligned_fail=yes
  23609. else
  23610. ./conftest >conftest.out
  23611. if test ! -s conftest.out ; then
  23612. unaligned_fail=yes
  23613. else
  23614. unaligned_fail=no
  23615. fi
  23616. fi
  23617. rm -f conftest* core core.conftest
  23618. ;;
  23619. esac
  23620. fi
  23621. { echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  23622. echo "${ECHO_T}$unaligned_fail" >&6; }
  23623. if test $unaligned_fail = yes ; then
  23624. cat >>confdefs.h <<\_ACEOF
  23625. #define FORCE_ALIGN 1
  23626. _ACEOF
  23627. fi
  23628. td=no
  23629. # Check whether --with-tcpdump was given.
  23630. if test "${with_tcpdump+set}" = set; then
  23631. withval=$with_tcpdump; if test -x $withval ; then
  23632. td=$withval
  23633. { echo "$as_me:$LINENO: result: Using tcpdump in $td" >&5
  23634. echo "${ECHO_T}Using tcpdump in $td" >&6; }
  23635. else
  23636. { echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  23637. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6; }
  23638. fi
  23639. else
  23640. # Extract the first word of "tcpdump", so it can be a program name with args.
  23641. set dummy tcpdump; ac_word=$2
  23642. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23643. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23644. if test "${ac_cv_path_td+set}" = set; then
  23645. echo $ECHO_N "(cached) $ECHO_C" >&6
  23646. else
  23647. case $td in
  23648. [\\/]* | ?:[\\/]*)
  23649. ac_cv_path_td="$td" # Let the user override the test with a path.
  23650. ;;
  23651. *)
  23652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23653. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  23654. for as_dir in $as_dummy
  23655. do
  23656. IFS=$as_save_IFS
  23657. test -z "$as_dir" && as_dir=.
  23658. for ac_exec_ext in '' $ac_executable_extensions; do
  23659. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23660. ac_cv_path_td="$as_dir/$ac_word$ac_exec_ext"
  23661. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23662. break 2
  23663. fi
  23664. done
  23665. done
  23666. IFS=$as_save_IFS
  23667. test -z "$ac_cv_path_td" && ac_cv_path_td=""no""
  23668. ;;
  23669. esac
  23670. fi
  23671. td=$ac_cv_path_td
  23672. if test -n "$td"; then
  23673. { echo "$as_me:$LINENO: result: $td" >&5
  23674. echo "${ECHO_T}$td" >&6; }
  23675. else
  23676. { echo "$as_me:$LINENO: result: no" >&5
  23677. echo "${ECHO_T}no" >&6; }
  23678. fi
  23679. fi
  23680. if test "$td" = "no"; then
  23681. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  23682. Disabling --verbose" >&5
  23683. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  23684. Disabling --verbose" >&2;}
  23685. else
  23686. cat >>confdefs.h <<\_ACEOF
  23687. #define HAVE_TCPDUMP 1
  23688. _ACEOF
  23689. cat >>confdefs.h <<_ACEOF
  23690. #define TCPDUMP_BINARY "$td"
  23691. _ACEOF
  23692. fi
  23693. if test "$td" != "no" -a x$have_pcap_dump_fopen = xyes; then
  23694. ENABLE_TCPDUMP_TRUE=
  23695. ENABLE_TCPDUMP_FALSE='#'
  23696. else
  23697. ENABLE_TCPDUMP_TRUE='#'
  23698. ENABLE_TCPDUMP_FALSE=
  23699. fi
  23700. if test x$td != xno -a x$have_pcap_dump_fopen = xyes ; then
  23701. cat >>confdefs.h <<\_ACEOF
  23702. #define ENABLE_VERBOSE 1
  23703. _ACEOF
  23704. else
  23705. { echo "$as_me:$LINENO: WARNING: Your version of libpcap is too old for --verbose support" >&5
  23706. echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  23707. fi
  23708. { echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  23709. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6; }
  23710. if test "$host" != "$build" ; then
  23711. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  23712. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  23713. fi
  23714. # Check whether --with-testnic was given.
  23715. if test "${with_testnic+set}" = set; then
  23716. withval=$with_testnic; nic1=$withval
  23717. nic2=$withval
  23718. { echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  23719. echo "${ECHO_T}Using --with-testnic=$withval" >&6; }
  23720. else
  23721. case $host in
  23722. *-*-linux*)
  23723. nic1=eth0
  23724. nic2=eth0
  23725. { echo "$as_me:$LINENO: result: Linux" >&5
  23726. echo "${ECHO_T}Linux" >&6; }
  23727. ;;
  23728. *-*-solaris*)
  23729. nic1=hme0
  23730. nic2=hme0
  23731. { echo "$as_me:$LINENO: result: Solaris" >&5
  23732. echo "${ECHO_T}Solaris" >&6; }
  23733. ;;
  23734. *-*-sunos*)
  23735. nic1=hme0
  23736. nic2=hme0
  23737. { echo "$as_me:$LINENO: result: SunOS" >&5
  23738. echo "${ECHO_T}SunOS" >&6; }
  23739. ;;
  23740. *-apple-darwin*)
  23741. nic1=en0
  23742. nic2=en0
  23743. { echo "$as_me:$LINENO: result: Apple OS X" >&5
  23744. echo "${ECHO_T}Apple OS X" >&6; }
  23745. ;;
  23746. *-*-openbsd*)
  23747. nic1=xl0
  23748. nic2=xl0
  23749. { echo "$as_me:$LINENO: result: OpenBSD" >&5
  23750. echo "${ECHO_T}OpenBSD" >&6; }
  23751. ;;
  23752. *-*-cygwin)
  23753. { echo "$as_me:$LINENO: result: Win32/Cygwin" >&5
  23754. echo "${ECHO_T}Win32/Cygwin" >&6; }
  23755. nic1=%0
  23756. nic2=%0
  23757. ;;
  23758. *)
  23759. { echo "$as_me:$LINENO: result: $host is unknown! Using first non-loopback interface" >&5
  23760. echo "${ECHO_T}$host is unknown! Using first non-loopback interface" >&6; }
  23761. nic1=%0
  23762. nic2=%0
  23763. ;;
  23764. esac
  23765. fi
  23766. # Check whether --with-testnic2 was given.
  23767. if test "${with_testnic2+set}" = set; then
  23768. withval=$with_testnic2; nic2=$withval
  23769. fi
  23770. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  23771. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  23772. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  23773. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  23774. NEED_LIBOPTS_DIR=''
  23775. LIBOPTS_DIR=libopts
  23776. # Check whether --enable-local-libopts was given.
  23777. if test "${enable_local_libopts+set}" = set; then
  23778. enableval=$enable_local_libopts;
  23779. if test x$enableval = xyes ; then
  23780. { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  23781. echo "$as_me: Using supplied libopts tearoff" >&6;}
  23782. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  23783. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  23784. NEED_LIBOPTS_DIR=true
  23785. fi
  23786. fi
  23787. # Check whether --enable-libopts-install was given.
  23788. if test "${enable_libopts_install+set}" = set; then
  23789. enableval=$enable_libopts_install;
  23790. fi
  23791. if test "X${enable_libopts_install}" != Xno; then
  23792. INSTALL_LIBOPTS_TRUE=
  23793. INSTALL_LIBOPTS_FALSE='#'
  23794. else
  23795. INSTALL_LIBOPTS_TRUE='#'
  23796. INSTALL_LIBOPTS_FALSE=
  23797. fi
  23798. if test -z "${NEED_LIBOPTS_DIR}" ; then
  23799. { echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  23800. echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6; }
  23801. # Check whether --with-autoopts-config was given.
  23802. if test "${with_autoopts_config+set}" = set; then
  23803. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  23804. else
  23805. { echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  23806. echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6; }
  23807. if test "${lo_cv_with_autoopts_config+set}" = set; then
  23808. echo $ECHO_N "(cached) $ECHO_C" >&6
  23809. else
  23810. if autoopts-config --help 2>/dev/null 1>&2
  23811. then lo_cv_with_autoopts_config=autoopts-config
  23812. elif libopts-config --help 2>/dev/null 1>&2
  23813. then lo_cv_with_autoopts_config=libopts-config
  23814. else lo_cv_with_autoopts_config=no ; fi
  23815. fi
  23816. { echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  23817. echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6; }
  23818. fi
  23819. # end of AC_ARG_WITH
  23820. if test "${lo_cv_test_autoopts+set}" = set; then
  23821. echo $ECHO_N "(cached) $ECHO_C" >&6
  23822. else
  23823. if test -z "${lo_cv_with_autoopts_config}" \
  23824. -o X"${lo_cv_with_autoopts_config}" = Xno
  23825. then
  23826. if autoopts-config --help 2>/dev/null 1>&2
  23827. then lo_cv_with_autoopts_config=autoopts-config
  23828. elif libopts-config --help 2>/dev/null 1>&2
  23829. then lo_cv_with_autoopts_config=libopts-config
  23830. else lo_cv_with_autoopts_config=false ; fi
  23831. fi
  23832. lo_cv_test_autoopts=`
  23833. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  23834. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  23835. then lo_cv_test_autoopts=no ; fi
  23836. fi
  23837. # end of CACHE_VAL
  23838. { echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  23839. echo "${ECHO_T}${lo_cv_test_autoopts}" >&6; }
  23840. if test "X${lo_cv_test_autoopts}" != Xno
  23841. then
  23842. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  23843. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  23844. else
  23845. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  23846. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  23847. NEED_LIBOPTS_DIR=true
  23848. fi
  23849. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  23850. if test -n "${NEED_LIBOPTS_DIR}"; then
  23851. NEED_LIBOPTS_TRUE=
  23852. NEED_LIBOPTS_FALSE='#'
  23853. else
  23854. NEED_LIBOPTS_TRUE='#'
  23855. NEED_LIBOPTS_FALSE=
  23856. fi
  23857. LIBOPTS_DIR=libopts
  23858. ac_config_files="$ac_config_files libopts/Makefile"
  23859. if test -n "${NEED_LIBOPTS_DIR}" ; then
  23860. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  23861. # =================
  23862. # AC_HEADER_STDC
  23863. # =================
  23864. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  23865. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  23866. if test "${ac_cv_header_stdc+set}" = set; then
  23867. echo $ECHO_N "(cached) $ECHO_C" >&6
  23868. else
  23869. cat >conftest.$ac_ext <<_ACEOF
  23870. /* confdefs.h. */
  23871. _ACEOF
  23872. cat confdefs.h >>conftest.$ac_ext
  23873. cat >>conftest.$ac_ext <<_ACEOF
  23874. /* end confdefs.h. */
  23875. #include <stdlib.h>
  23876. #include <stdarg.h>
  23877. #include <string.h>
  23878. #include <float.h>
  23879. int
  23880. main ()
  23881. {
  23882. ;
  23883. return 0;
  23884. }
  23885. _ACEOF
  23886. rm -f conftest.$ac_objext
  23887. if { (ac_try="$ac_compile"
  23888. case "(($ac_try" in
  23889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23890. *) ac_try_echo=$ac_try;;
  23891. esac
  23892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23893. (eval "$ac_compile") 2>conftest.er1
  23894. ac_status=$?
  23895. grep -v '^ *+' conftest.er1 >conftest.err
  23896. rm -f conftest.er1
  23897. cat conftest.err >&5
  23898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23899. (exit $ac_status); } && {
  23900. test -z "$ac_c_werror_flag" ||
  23901. test ! -s conftest.err
  23902. } && test -s conftest.$ac_objext; then
  23903. ac_cv_header_stdc=yes
  23904. else
  23905. echo "$as_me: failed program was:" >&5
  23906. sed 's/^/| /' conftest.$ac_ext >&5
  23907. ac_cv_header_stdc=no
  23908. fi
  23909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23910. if test $ac_cv_header_stdc = yes; then
  23911. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  23912. cat >conftest.$ac_ext <<_ACEOF
  23913. /* confdefs.h. */
  23914. _ACEOF
  23915. cat confdefs.h >>conftest.$ac_ext
  23916. cat >>conftest.$ac_ext <<_ACEOF
  23917. /* end confdefs.h. */
  23918. #include <string.h>
  23919. _ACEOF
  23920. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23921. $EGREP "memchr" >/dev/null 2>&1; then
  23922. :
  23923. else
  23924. ac_cv_header_stdc=no
  23925. fi
  23926. rm -f conftest*
  23927. fi
  23928. if test $ac_cv_header_stdc = yes; then
  23929. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  23930. cat >conftest.$ac_ext <<_ACEOF
  23931. /* confdefs.h. */
  23932. _ACEOF
  23933. cat confdefs.h >>conftest.$ac_ext
  23934. cat >>conftest.$ac_ext <<_ACEOF
  23935. /* end confdefs.h. */
  23936. #include <stdlib.h>
  23937. _ACEOF
  23938. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23939. $EGREP "free" >/dev/null 2>&1; then
  23940. :
  23941. else
  23942. ac_cv_header_stdc=no
  23943. fi
  23944. rm -f conftest*
  23945. fi
  23946. if test $ac_cv_header_stdc = yes; then
  23947. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  23948. if test "$cross_compiling" = yes; then
  23949. :
  23950. else
  23951. cat >conftest.$ac_ext <<_ACEOF
  23952. /* confdefs.h. */
  23953. _ACEOF
  23954. cat confdefs.h >>conftest.$ac_ext
  23955. cat >>conftest.$ac_ext <<_ACEOF
  23956. /* end confdefs.h. */
  23957. #include <ctype.h>
  23958. #include <stdlib.h>
  23959. #if ((' ' & 0x0FF) == 0x020)
  23960. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  23961. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  23962. #else
  23963. # define ISLOWER(c) \
  23964. (('a' <= (c) && (c) <= 'i') \
  23965. || ('j' <= (c) && (c) <= 'r') \
  23966. || ('s' <= (c) && (c) <= 'z'))
  23967. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  23968. #endif
  23969. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  23970. int
  23971. main ()
  23972. {
  23973. int i;
  23974. for (i = 0; i < 256; i++)
  23975. if (XOR (islower (i), ISLOWER (i))
  23976. || toupper (i) != TOUPPER (i))
  23977. return 2;
  23978. return 0;
  23979. }
  23980. _ACEOF
  23981. rm -f conftest$ac_exeext
  23982. if { (ac_try="$ac_link"
  23983. case "(($ac_try" in
  23984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23985. *) ac_try_echo=$ac_try;;
  23986. esac
  23987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23988. (eval "$ac_link") 2>&5
  23989. ac_status=$?
  23990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23991. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23992. { (case "(($ac_try" in
  23993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23994. *) ac_try_echo=$ac_try;;
  23995. esac
  23996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23997. (eval "$ac_try") 2>&5
  23998. ac_status=$?
  23999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24000. (exit $ac_status); }; }; then
  24001. :
  24002. else
  24003. echo "$as_me: program exited with status $ac_status" >&5
  24004. echo "$as_me: failed program was:" >&5
  24005. sed 's/^/| /' conftest.$ac_ext >&5
  24006. ( exit $ac_status )
  24007. ac_cv_header_stdc=no
  24008. fi
  24009. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24010. fi
  24011. fi
  24012. fi
  24013. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24014. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  24015. if test $ac_cv_header_stdc = yes; then
  24016. cat >>confdefs.h <<\_ACEOF
  24017. #define STDC_HEADERS 1
  24018. _ACEOF
  24019. fi
  24020. # =================
  24021. # AC_HEADER_DIRENT
  24022. # =================
  24023. ac_header_dirent=no
  24024. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24025. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  24026. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  24027. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  24028. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24029. echo $ECHO_N "(cached) $ECHO_C" >&6
  24030. else
  24031. cat >conftest.$ac_ext <<_ACEOF
  24032. /* confdefs.h. */
  24033. _ACEOF
  24034. cat confdefs.h >>conftest.$ac_ext
  24035. cat >>conftest.$ac_ext <<_ACEOF
  24036. /* end confdefs.h. */
  24037. #include <sys/types.h>
  24038. #include <$ac_hdr>
  24039. int
  24040. main ()
  24041. {
  24042. if ((DIR *) 0)
  24043. return 0;
  24044. ;
  24045. return 0;
  24046. }
  24047. _ACEOF
  24048. rm -f conftest.$ac_objext
  24049. if { (ac_try="$ac_compile"
  24050. case "(($ac_try" in
  24051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24052. *) ac_try_echo=$ac_try;;
  24053. esac
  24054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24055. (eval "$ac_compile") 2>conftest.er1
  24056. ac_status=$?
  24057. grep -v '^ *+' conftest.er1 >conftest.err
  24058. rm -f conftest.er1
  24059. cat conftest.err >&5
  24060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24061. (exit $ac_status); } && {
  24062. test -z "$ac_c_werror_flag" ||
  24063. test ! -s conftest.err
  24064. } && test -s conftest.$ac_objext; then
  24065. eval "$as_ac_Header=yes"
  24066. else
  24067. echo "$as_me: failed program was:" >&5
  24068. sed 's/^/| /' conftest.$ac_ext >&5
  24069. eval "$as_ac_Header=no"
  24070. fi
  24071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24072. fi
  24073. ac_res=`eval echo '${'$as_ac_Header'}'`
  24074. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24075. echo "${ECHO_T}$ac_res" >&6; }
  24076. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24077. cat >>confdefs.h <<_ACEOF
  24078. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  24079. _ACEOF
  24080. ac_header_dirent=$ac_hdr; break
  24081. fi
  24082. done
  24083. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24084. if test $ac_header_dirent = dirent.h; then
  24085. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24086. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24087. if test "${ac_cv_search_opendir+set}" = set; then
  24088. echo $ECHO_N "(cached) $ECHO_C" >&6
  24089. else
  24090. ac_func_search_save_LIBS=$LIBS
  24091. cat >conftest.$ac_ext <<_ACEOF
  24092. /* confdefs.h. */
  24093. _ACEOF
  24094. cat confdefs.h >>conftest.$ac_ext
  24095. cat >>conftest.$ac_ext <<_ACEOF
  24096. /* end confdefs.h. */
  24097. /* Override any GCC internal prototype to avoid an error.
  24098. Use char because int might match the return type of a GCC
  24099. builtin and then its argument prototype would still apply. */
  24100. #ifdef __cplusplus
  24101. extern "C"
  24102. #endif
  24103. char opendir ();
  24104. int
  24105. main ()
  24106. {
  24107. return opendir ();
  24108. ;
  24109. return 0;
  24110. }
  24111. _ACEOF
  24112. for ac_lib in '' dir; do
  24113. if test -z "$ac_lib"; then
  24114. ac_res="none required"
  24115. else
  24116. ac_res=-l$ac_lib
  24117. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24118. fi
  24119. rm -f conftest.$ac_objext conftest$ac_exeext
  24120. if { (ac_try="$ac_link"
  24121. case "(($ac_try" in
  24122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24123. *) ac_try_echo=$ac_try;;
  24124. esac
  24125. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24126. (eval "$ac_link") 2>conftest.er1
  24127. ac_status=$?
  24128. grep -v '^ *+' conftest.er1 >conftest.err
  24129. rm -f conftest.er1
  24130. cat conftest.err >&5
  24131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24132. (exit $ac_status); } && {
  24133. test -z "$ac_c_werror_flag" ||
  24134. test ! -s conftest.err
  24135. } && test -s conftest$ac_exeext &&
  24136. $as_test_x conftest$ac_exeext; then
  24137. ac_cv_search_opendir=$ac_res
  24138. else
  24139. echo "$as_me: failed program was:" >&5
  24140. sed 's/^/| /' conftest.$ac_ext >&5
  24141. fi
  24142. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24143. conftest$ac_exeext
  24144. if test "${ac_cv_search_opendir+set}" = set; then
  24145. break
  24146. fi
  24147. done
  24148. if test "${ac_cv_search_opendir+set}" = set; then
  24149. :
  24150. else
  24151. ac_cv_search_opendir=no
  24152. fi
  24153. rm conftest.$ac_ext
  24154. LIBS=$ac_func_search_save_LIBS
  24155. fi
  24156. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24157. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24158. ac_res=$ac_cv_search_opendir
  24159. if test "$ac_res" != no; then
  24160. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24161. fi
  24162. else
  24163. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24164. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24165. if test "${ac_cv_search_opendir+set}" = set; then
  24166. echo $ECHO_N "(cached) $ECHO_C" >&6
  24167. else
  24168. ac_func_search_save_LIBS=$LIBS
  24169. cat >conftest.$ac_ext <<_ACEOF
  24170. /* confdefs.h. */
  24171. _ACEOF
  24172. cat confdefs.h >>conftest.$ac_ext
  24173. cat >>conftest.$ac_ext <<_ACEOF
  24174. /* end confdefs.h. */
  24175. /* Override any GCC internal prototype to avoid an error.
  24176. Use char because int might match the return type of a GCC
  24177. builtin and then its argument prototype would still apply. */
  24178. #ifdef __cplusplus
  24179. extern "C"
  24180. #endif
  24181. char opendir ();
  24182. int
  24183. main ()
  24184. {
  24185. return opendir ();
  24186. ;
  24187. return 0;
  24188. }
  24189. _ACEOF
  24190. for ac_lib in '' x; do
  24191. if test -z "$ac_lib"; then
  24192. ac_res="none required"
  24193. else
  24194. ac_res=-l$ac_lib
  24195. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24196. fi
  24197. rm -f conftest.$ac_objext conftest$ac_exeext
  24198. if { (ac_try="$ac_link"
  24199. case "(($ac_try" in
  24200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24201. *) ac_try_echo=$ac_try;;
  24202. esac
  24203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24204. (eval "$ac_link") 2>conftest.er1
  24205. ac_status=$?
  24206. grep -v '^ *+' conftest.er1 >conftest.err
  24207. rm -f conftest.er1
  24208. cat conftest.err >&5
  24209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24210. (exit $ac_status); } && {
  24211. test -z "$ac_c_werror_flag" ||
  24212. test ! -s conftest.err
  24213. } && test -s conftest$ac_exeext &&
  24214. $as_test_x conftest$ac_exeext; then
  24215. ac_cv_search_opendir=$ac_res
  24216. else
  24217. echo "$as_me: failed program was:" >&5
  24218. sed 's/^/| /' conftest.$ac_ext >&5
  24219. fi
  24220. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24221. conftest$ac_exeext
  24222. if test "${ac_cv_search_opendir+set}" = set; then
  24223. break
  24224. fi
  24225. done
  24226. if test "${ac_cv_search_opendir+set}" = set; then
  24227. :
  24228. else
  24229. ac_cv_search_opendir=no
  24230. fi
  24231. rm conftest.$ac_ext
  24232. LIBS=$ac_func_search_save_LIBS
  24233. fi
  24234. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24235. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24236. ac_res=$ac_cv_search_opendir
  24237. if test "$ac_res" != no; then
  24238. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24239. fi
  24240. fi
  24241. # =================
  24242. # AC_CHECK_HEADERS
  24243. # =================
  24244. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  24245. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  24246. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  24247. utime.h
  24248. do
  24249. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24250. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24251. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24252. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24253. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24254. echo $ECHO_N "(cached) $ECHO_C" >&6
  24255. fi
  24256. ac_res=`eval echo '${'$as_ac_Header'}'`
  24257. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24258. echo "${ECHO_T}$ac_res" >&6; }
  24259. else
  24260. # Is the header compilable?
  24261. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24262. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24263. cat >conftest.$ac_ext <<_ACEOF
  24264. /* confdefs.h. */
  24265. _ACEOF
  24266. cat confdefs.h >>conftest.$ac_ext
  24267. cat >>conftest.$ac_ext <<_ACEOF
  24268. /* end confdefs.h. */
  24269. $ac_includes_default
  24270. #include <$ac_header>
  24271. _ACEOF
  24272. rm -f conftest.$ac_objext
  24273. if { (ac_try="$ac_compile"
  24274. case "(($ac_try" in
  24275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24276. *) ac_try_echo=$ac_try;;
  24277. esac
  24278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24279. (eval "$ac_compile") 2>conftest.er1
  24280. ac_status=$?
  24281. grep -v '^ *+' conftest.er1 >conftest.err
  24282. rm -f conftest.er1
  24283. cat conftest.err >&5
  24284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24285. (exit $ac_status); } && {
  24286. test -z "$ac_c_werror_flag" ||
  24287. test ! -s conftest.err
  24288. } && test -s conftest.$ac_objext; then
  24289. ac_header_compiler=yes
  24290. else
  24291. echo "$as_me: failed program was:" >&5
  24292. sed 's/^/| /' conftest.$ac_ext >&5
  24293. ac_header_compiler=no
  24294. fi
  24295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24296. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24297. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24298. # Is the header present?
  24299. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24300. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24301. cat >conftest.$ac_ext <<_ACEOF
  24302. /* confdefs.h. */
  24303. _ACEOF
  24304. cat confdefs.h >>conftest.$ac_ext
  24305. cat >>conftest.$ac_ext <<_ACEOF
  24306. /* end confdefs.h. */
  24307. #include <$ac_header>
  24308. _ACEOF
  24309. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24310. case "(($ac_try" in
  24311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24312. *) ac_try_echo=$ac_try;;
  24313. esac
  24314. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24315. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24316. ac_status=$?
  24317. grep -v '^ *+' conftest.er1 >conftest.err
  24318. rm -f conftest.er1
  24319. cat conftest.err >&5
  24320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24321. (exit $ac_status); } >/dev/null && {
  24322. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24323. test ! -s conftest.err
  24324. }; then
  24325. ac_header_preproc=yes
  24326. else
  24327. echo "$as_me: failed program was:" >&5
  24328. sed 's/^/| /' conftest.$ac_ext >&5
  24329. ac_header_preproc=no
  24330. fi
  24331. rm -f conftest.err conftest.$ac_ext
  24332. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24333. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24334. # So? What about this header?
  24335. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24336. yes:no: )
  24337. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24338. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24339. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24340. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24341. ac_header_preproc=yes
  24342. ;;
  24343. no:yes:* )
  24344. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24345. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24346. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24347. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24348. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24349. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24350. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24351. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24352. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24353. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24354. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24355. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24356. ;;
  24357. esac
  24358. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24359. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24360. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24361. echo $ECHO_N "(cached) $ECHO_C" >&6
  24362. else
  24363. eval "$as_ac_Header=\$ac_header_preproc"
  24364. fi
  24365. ac_res=`eval echo '${'$as_ac_Header'}'`
  24366. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24367. echo "${ECHO_T}$ac_res" >&6; }
  24368. fi
  24369. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24370. cat >>confdefs.h <<_ACEOF
  24371. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24372. _ACEOF
  24373. fi
  24374. done
  24375. # --------------------------------------------
  24376. # Verify certain entries from AC_CHECK_HEADERS
  24377. # --------------------------------------------
  24378. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  24379. string errno stdlib memory setjmp
  24380. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  24381. test "${as_ac_var}" = set || \
  24382. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  24383. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  24384. { (exit 1); exit 1; }; }
  24385. done
  24386. # ================================================
  24387. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  24388. # if varargs.h is present define HAVE_VARARGS_H.
  24389. # ================================================
  24390. for ac_header in stdarg.h varargs.h
  24391. do
  24392. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24393. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24394. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24395. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24396. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24397. echo $ECHO_N "(cached) $ECHO_C" >&6
  24398. fi
  24399. ac_res=`eval echo '${'$as_ac_Header'}'`
  24400. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24401. echo "${ECHO_T}$ac_res" >&6; }
  24402. else
  24403. # Is the header compilable?
  24404. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24405. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24406. cat >conftest.$ac_ext <<_ACEOF
  24407. /* confdefs.h. */
  24408. _ACEOF
  24409. cat confdefs.h >>conftest.$ac_ext
  24410. cat >>conftest.$ac_ext <<_ACEOF
  24411. /* end confdefs.h. */
  24412. $ac_includes_default
  24413. #include <$ac_header>
  24414. _ACEOF
  24415. rm -f conftest.$ac_objext
  24416. if { (ac_try="$ac_compile"
  24417. case "(($ac_try" in
  24418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24419. *) ac_try_echo=$ac_try;;
  24420. esac
  24421. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24422. (eval "$ac_compile") 2>conftest.er1
  24423. ac_status=$?
  24424. grep -v '^ *+' conftest.er1 >conftest.err
  24425. rm -f conftest.er1
  24426. cat conftest.err >&5
  24427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24428. (exit $ac_status); } && {
  24429. test -z "$ac_c_werror_flag" ||
  24430. test ! -s conftest.err
  24431. } && test -s conftest.$ac_objext; then
  24432. ac_header_compiler=yes
  24433. else
  24434. echo "$as_me: failed program was:" >&5
  24435. sed 's/^/| /' conftest.$ac_ext >&5
  24436. ac_header_compiler=no
  24437. fi
  24438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24439. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24440. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24441. # Is the header present?
  24442. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24443. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24444. cat >conftest.$ac_ext <<_ACEOF
  24445. /* confdefs.h. */
  24446. _ACEOF
  24447. cat confdefs.h >>conftest.$ac_ext
  24448. cat >>conftest.$ac_ext <<_ACEOF
  24449. /* end confdefs.h. */
  24450. #include <$ac_header>
  24451. _ACEOF
  24452. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24453. case "(($ac_try" in
  24454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24455. *) ac_try_echo=$ac_try;;
  24456. esac
  24457. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24458. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24459. ac_status=$?
  24460. grep -v '^ *+' conftest.er1 >conftest.err
  24461. rm -f conftest.er1
  24462. cat conftest.err >&5
  24463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24464. (exit $ac_status); } >/dev/null && {
  24465. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24466. test ! -s conftest.err
  24467. }; then
  24468. ac_header_preproc=yes
  24469. else
  24470. echo "$as_me: failed program was:" >&5
  24471. sed 's/^/| /' conftest.$ac_ext >&5
  24472. ac_header_preproc=no
  24473. fi
  24474. rm -f conftest.err conftest.$ac_ext
  24475. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24476. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24477. # So? What about this header?
  24478. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24479. yes:no: )
  24480. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24481. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24482. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24483. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24484. ac_header_preproc=yes
  24485. ;;
  24486. no:yes:* )
  24487. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24488. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24489. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24490. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24491. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24492. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24493. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24494. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24495. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24496. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24497. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24498. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24499. ;;
  24500. esac
  24501. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24502. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24503. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24504. echo $ECHO_N "(cached) $ECHO_C" >&6
  24505. else
  24506. eval "$as_ac_Header=\$ac_header_preproc"
  24507. fi
  24508. ac_res=`eval echo '${'$as_ac_Header'}'`
  24509. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24510. echo "${ECHO_T}$ac_res" >&6; }
  24511. fi
  24512. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24513. cat >>confdefs.h <<_ACEOF
  24514. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24515. _ACEOF
  24516. break
  24517. fi
  24518. done
  24519. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24520. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  24521. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  24522. { (exit 1); exit 1; }; }
  24523. fi
  24524. # ================================================
  24525. # Similarly for the string.h and strings.h headers
  24526. # ================================================
  24527. for ac_header in string.h strings.h
  24528. do
  24529. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24530. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24531. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24532. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24533. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24534. echo $ECHO_N "(cached) $ECHO_C" >&6
  24535. fi
  24536. ac_res=`eval echo '${'$as_ac_Header'}'`
  24537. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24538. echo "${ECHO_T}$ac_res" >&6; }
  24539. else
  24540. # Is the header compilable?
  24541. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24542. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24543. cat >conftest.$ac_ext <<_ACEOF
  24544. /* confdefs.h. */
  24545. _ACEOF
  24546. cat confdefs.h >>conftest.$ac_ext
  24547. cat >>conftest.$ac_ext <<_ACEOF
  24548. /* end confdefs.h. */
  24549. $ac_includes_default
  24550. #include <$ac_header>
  24551. _ACEOF
  24552. rm -f conftest.$ac_objext
  24553. if { (ac_try="$ac_compile"
  24554. case "(($ac_try" in
  24555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24556. *) ac_try_echo=$ac_try;;
  24557. esac
  24558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24559. (eval "$ac_compile") 2>conftest.er1
  24560. ac_status=$?
  24561. grep -v '^ *+' conftest.er1 >conftest.err
  24562. rm -f conftest.er1
  24563. cat conftest.err >&5
  24564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24565. (exit $ac_status); } && {
  24566. test -z "$ac_c_werror_flag" ||
  24567. test ! -s conftest.err
  24568. } && test -s conftest.$ac_objext; then
  24569. ac_header_compiler=yes
  24570. else
  24571. echo "$as_me: failed program was:" >&5
  24572. sed 's/^/| /' conftest.$ac_ext >&5
  24573. ac_header_compiler=no
  24574. fi
  24575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24576. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24577. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24578. # Is the header present?
  24579. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24580. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24581. cat >conftest.$ac_ext <<_ACEOF
  24582. /* confdefs.h. */
  24583. _ACEOF
  24584. cat confdefs.h >>conftest.$ac_ext
  24585. cat >>conftest.$ac_ext <<_ACEOF
  24586. /* end confdefs.h. */
  24587. #include <$ac_header>
  24588. _ACEOF
  24589. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24590. case "(($ac_try" in
  24591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24592. *) ac_try_echo=$ac_try;;
  24593. esac
  24594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24595. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24596. ac_status=$?
  24597. grep -v '^ *+' conftest.er1 >conftest.err
  24598. rm -f conftest.er1
  24599. cat conftest.err >&5
  24600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24601. (exit $ac_status); } >/dev/null && {
  24602. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24603. test ! -s conftest.err
  24604. }; then
  24605. ac_header_preproc=yes
  24606. else
  24607. echo "$as_me: failed program was:" >&5
  24608. sed 's/^/| /' conftest.$ac_ext >&5
  24609. ac_header_preproc=no
  24610. fi
  24611. rm -f conftest.err conftest.$ac_ext
  24612. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24613. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24614. # So? What about this header?
  24615. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24616. yes:no: )
  24617. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24618. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24619. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24620. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24621. ac_header_preproc=yes
  24622. ;;
  24623. no:yes:* )
  24624. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24625. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24626. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24627. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24628. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24629. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24630. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24631. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24632. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24633. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24634. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24635. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24636. ;;
  24637. esac
  24638. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24639. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24640. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24641. echo $ECHO_N "(cached) $ECHO_C" >&6
  24642. else
  24643. eval "$as_ac_Header=\$ac_header_preproc"
  24644. fi
  24645. ac_res=`eval echo '${'$as_ac_Header'}'`
  24646. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24647. echo "${ECHO_T}$ac_res" >&6; }
  24648. fi
  24649. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24650. cat >>confdefs.h <<_ACEOF
  24651. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24652. _ACEOF
  24653. break
  24654. fi
  24655. done
  24656. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24657. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  24658. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  24659. { (exit 1); exit 1; }; }
  24660. fi
  24661. # =====================
  24662. # ...and limits headers
  24663. # =====================
  24664. for ac_header in limits.h sys/limits.h values.h
  24665. do
  24666. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24667. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24668. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24669. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24670. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24671. echo $ECHO_N "(cached) $ECHO_C" >&6
  24672. fi
  24673. ac_res=`eval echo '${'$as_ac_Header'}'`
  24674. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24675. echo "${ECHO_T}$ac_res" >&6; }
  24676. else
  24677. # Is the header compilable?
  24678. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24679. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24680. cat >conftest.$ac_ext <<_ACEOF
  24681. /* confdefs.h. */
  24682. _ACEOF
  24683. cat confdefs.h >>conftest.$ac_ext
  24684. cat >>conftest.$ac_ext <<_ACEOF
  24685. /* end confdefs.h. */
  24686. $ac_includes_default
  24687. #include <$ac_header>
  24688. _ACEOF
  24689. rm -f conftest.$ac_objext
  24690. if { (ac_try="$ac_compile"
  24691. case "(($ac_try" in
  24692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24693. *) ac_try_echo=$ac_try;;
  24694. esac
  24695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24696. (eval "$ac_compile") 2>conftest.er1
  24697. ac_status=$?
  24698. grep -v '^ *+' conftest.er1 >conftest.err
  24699. rm -f conftest.er1
  24700. cat conftest.err >&5
  24701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24702. (exit $ac_status); } && {
  24703. test -z "$ac_c_werror_flag" ||
  24704. test ! -s conftest.err
  24705. } && test -s conftest.$ac_objext; then
  24706. ac_header_compiler=yes
  24707. else
  24708. echo "$as_me: failed program was:" >&5
  24709. sed 's/^/| /' conftest.$ac_ext >&5
  24710. ac_header_compiler=no
  24711. fi
  24712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24713. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24714. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24715. # Is the header present?
  24716. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24717. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24718. cat >conftest.$ac_ext <<_ACEOF
  24719. /* confdefs.h. */
  24720. _ACEOF
  24721. cat confdefs.h >>conftest.$ac_ext
  24722. cat >>conftest.$ac_ext <<_ACEOF
  24723. /* end confdefs.h. */
  24724. #include <$ac_header>
  24725. _ACEOF
  24726. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24727. case "(($ac_try" in
  24728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24729. *) ac_try_echo=$ac_try;;
  24730. esac
  24731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24732. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24733. ac_status=$?
  24734. grep -v '^ *+' conftest.er1 >conftest.err
  24735. rm -f conftest.er1
  24736. cat conftest.err >&5
  24737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24738. (exit $ac_status); } >/dev/null && {
  24739. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24740. test ! -s conftest.err
  24741. }; then
  24742. ac_header_preproc=yes
  24743. else
  24744. echo "$as_me: failed program was:" >&5
  24745. sed 's/^/| /' conftest.$ac_ext >&5
  24746. ac_header_preproc=no
  24747. fi
  24748. rm -f conftest.err conftest.$ac_ext
  24749. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24750. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24751. # So? What about this header?
  24752. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24753. yes:no: )
  24754. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24755. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24756. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24757. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24758. ac_header_preproc=yes
  24759. ;;
  24760. no:yes:* )
  24761. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24762. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24763. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24764. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24765. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24766. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24767. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24768. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24769. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24770. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24771. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24772. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24773. ;;
  24774. esac
  24775. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24776. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24777. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24778. echo $ECHO_N "(cached) $ECHO_C" >&6
  24779. else
  24780. eval "$as_ac_Header=\$ac_header_preproc"
  24781. fi
  24782. ac_res=`eval echo '${'$as_ac_Header'}'`
  24783. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24784. echo "${ECHO_T}$ac_res" >&6; }
  24785. fi
  24786. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24787. cat >>confdefs.h <<_ACEOF
  24788. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24789. _ACEOF
  24790. break
  24791. fi
  24792. done
  24793. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24794. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  24795. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  24796. { (exit 1); exit 1; }; }
  24797. fi
  24798. # ========================
  24799. # ...and int types headers
  24800. # ========================
  24801. for ac_header in stdint.h inttypes.h
  24802. do
  24803. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24804. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24805. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24806. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24807. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24808. echo $ECHO_N "(cached) $ECHO_C" >&6
  24809. fi
  24810. ac_res=`eval echo '${'$as_ac_Header'}'`
  24811. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24812. echo "${ECHO_T}$ac_res" >&6; }
  24813. else
  24814. # Is the header compilable?
  24815. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24816. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24817. cat >conftest.$ac_ext <<_ACEOF
  24818. /* confdefs.h. */
  24819. _ACEOF
  24820. cat confdefs.h >>conftest.$ac_ext
  24821. cat >>conftest.$ac_ext <<_ACEOF
  24822. /* end confdefs.h. */
  24823. $ac_includes_default
  24824. #include <$ac_header>
  24825. _ACEOF
  24826. rm -f conftest.$ac_objext
  24827. if { (ac_try="$ac_compile"
  24828. case "(($ac_try" in
  24829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24830. *) ac_try_echo=$ac_try;;
  24831. esac
  24832. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24833. (eval "$ac_compile") 2>conftest.er1
  24834. ac_status=$?
  24835. grep -v '^ *+' conftest.er1 >conftest.err
  24836. rm -f conftest.er1
  24837. cat conftest.err >&5
  24838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24839. (exit $ac_status); } && {
  24840. test -z "$ac_c_werror_flag" ||
  24841. test ! -s conftest.err
  24842. } && test -s conftest.$ac_objext; then
  24843. ac_header_compiler=yes
  24844. else
  24845. echo "$as_me: failed program was:" >&5
  24846. sed 's/^/| /' conftest.$ac_ext >&5
  24847. ac_header_compiler=no
  24848. fi
  24849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24850. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24851. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24852. # Is the header present?
  24853. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24854. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24855. cat >conftest.$ac_ext <<_ACEOF
  24856. /* confdefs.h. */
  24857. _ACEOF
  24858. cat confdefs.h >>conftest.$ac_ext
  24859. cat >>conftest.$ac_ext <<_ACEOF
  24860. /* end confdefs.h. */
  24861. #include <$ac_header>
  24862. _ACEOF
  24863. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24864. case "(($ac_try" in
  24865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24866. *) ac_try_echo=$ac_try;;
  24867. esac
  24868. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24869. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24870. ac_status=$?
  24871. grep -v '^ *+' conftest.er1 >conftest.err
  24872. rm -f conftest.er1
  24873. cat conftest.err >&5
  24874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24875. (exit $ac_status); } >/dev/null && {
  24876. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24877. test ! -s conftest.err
  24878. }; then
  24879. ac_header_preproc=yes
  24880. else
  24881. echo "$as_me: failed program was:" >&5
  24882. sed 's/^/| /' conftest.$ac_ext >&5
  24883. ac_header_preproc=no
  24884. fi
  24885. rm -f conftest.err conftest.$ac_ext
  24886. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24887. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24888. # So? What about this header?
  24889. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24890. yes:no: )
  24891. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24892. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24893. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24894. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24895. ac_header_preproc=yes
  24896. ;;
  24897. no:yes:* )
  24898. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24899. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24900. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24901. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24902. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24903. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24904. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24905. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24906. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24907. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24908. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24909. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24910. ;;
  24911. esac
  24912. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24913. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24914. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24915. echo $ECHO_N "(cached) $ECHO_C" >&6
  24916. else
  24917. eval "$as_ac_Header=\$ac_header_preproc"
  24918. fi
  24919. ac_res=`eval echo '${'$as_ac_Header'}'`
  24920. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24921. echo "${ECHO_T}$ac_res" >&6; }
  24922. fi
  24923. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24924. cat >>confdefs.h <<_ACEOF
  24925. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24926. _ACEOF
  24927. break
  24928. fi
  24929. done
  24930. { echo "$as_me:$LINENO: checking for int8_t" >&5
  24931. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  24932. if test "${ac_cv_type_int8_t+set}" = set; then
  24933. echo $ECHO_N "(cached) $ECHO_C" >&6
  24934. else
  24935. cat >conftest.$ac_ext <<_ACEOF
  24936. /* confdefs.h. */
  24937. _ACEOF
  24938. cat confdefs.h >>conftest.$ac_ext
  24939. cat >>conftest.$ac_ext <<_ACEOF
  24940. /* end confdefs.h. */
  24941. $ac_includes_default
  24942. typedef int8_t ac__type_new_;
  24943. int
  24944. main ()
  24945. {
  24946. if ((ac__type_new_ *) 0)
  24947. return 0;
  24948. if (sizeof (ac__type_new_))
  24949. return 0;
  24950. ;
  24951. return 0;
  24952. }
  24953. _ACEOF
  24954. rm -f conftest.$ac_objext
  24955. if { (ac_try="$ac_compile"
  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_compile") 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); } && {
  24968. test -z "$ac_c_werror_flag" ||
  24969. test ! -s conftest.err
  24970. } && test -s conftest.$ac_objext; then
  24971. ac_cv_type_int8_t=yes
  24972. else
  24973. echo "$as_me: failed program was:" >&5
  24974. sed 's/^/| /' conftest.$ac_ext >&5
  24975. ac_cv_type_int8_t=no
  24976. fi
  24977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24978. fi
  24979. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  24980. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  24981. if test $ac_cv_type_int8_t = yes; then
  24982. cat >>confdefs.h <<_ACEOF
  24983. #define HAVE_INT8_T 1
  24984. _ACEOF
  24985. fi
  24986. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  24987. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  24988. if test "${ac_cv_type_uint8_t+set}" = set; then
  24989. echo $ECHO_N "(cached) $ECHO_C" >&6
  24990. else
  24991. cat >conftest.$ac_ext <<_ACEOF
  24992. /* confdefs.h. */
  24993. _ACEOF
  24994. cat confdefs.h >>conftest.$ac_ext
  24995. cat >>conftest.$ac_ext <<_ACEOF
  24996. /* end confdefs.h. */
  24997. $ac_includes_default
  24998. typedef uint8_t ac__type_new_;
  24999. int
  25000. main ()
  25001. {
  25002. if ((ac__type_new_ *) 0)
  25003. return 0;
  25004. if (sizeof (ac__type_new_))
  25005. return 0;
  25006. ;
  25007. return 0;
  25008. }
  25009. _ACEOF
  25010. rm -f conftest.$ac_objext
  25011. if { (ac_try="$ac_compile"
  25012. case "(($ac_try" in
  25013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25014. *) ac_try_echo=$ac_try;;
  25015. esac
  25016. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25017. (eval "$ac_compile") 2>conftest.er1
  25018. ac_status=$?
  25019. grep -v '^ *+' conftest.er1 >conftest.err
  25020. rm -f conftest.er1
  25021. cat conftest.err >&5
  25022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25023. (exit $ac_status); } && {
  25024. test -z "$ac_c_werror_flag" ||
  25025. test ! -s conftest.err
  25026. } && test -s conftest.$ac_objext; then
  25027. ac_cv_type_uint8_t=yes
  25028. else
  25029. echo "$as_me: failed program was:" >&5
  25030. sed 's/^/| /' conftest.$ac_ext >&5
  25031. ac_cv_type_uint8_t=no
  25032. fi
  25033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25034. fi
  25035. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  25036. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  25037. if test $ac_cv_type_uint8_t = yes; then
  25038. cat >>confdefs.h <<_ACEOF
  25039. #define HAVE_UINT8_T 1
  25040. _ACEOF
  25041. fi
  25042. { echo "$as_me:$LINENO: checking for int16_t" >&5
  25043. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  25044. if test "${ac_cv_type_int16_t+set}" = set; then
  25045. echo $ECHO_N "(cached) $ECHO_C" >&6
  25046. else
  25047. cat >conftest.$ac_ext <<_ACEOF
  25048. /* confdefs.h. */
  25049. _ACEOF
  25050. cat confdefs.h >>conftest.$ac_ext
  25051. cat >>conftest.$ac_ext <<_ACEOF
  25052. /* end confdefs.h. */
  25053. $ac_includes_default
  25054. typedef int16_t ac__type_new_;
  25055. int
  25056. main ()
  25057. {
  25058. if ((ac__type_new_ *) 0)
  25059. return 0;
  25060. if (sizeof (ac__type_new_))
  25061. return 0;
  25062. ;
  25063. return 0;
  25064. }
  25065. _ACEOF
  25066. rm -f conftest.$ac_objext
  25067. if { (ac_try="$ac_compile"
  25068. case "(($ac_try" in
  25069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25070. *) ac_try_echo=$ac_try;;
  25071. esac
  25072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25073. (eval "$ac_compile") 2>conftest.er1
  25074. ac_status=$?
  25075. grep -v '^ *+' conftest.er1 >conftest.err
  25076. rm -f conftest.er1
  25077. cat conftest.err >&5
  25078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25079. (exit $ac_status); } && {
  25080. test -z "$ac_c_werror_flag" ||
  25081. test ! -s conftest.err
  25082. } && test -s conftest.$ac_objext; then
  25083. ac_cv_type_int16_t=yes
  25084. else
  25085. echo "$as_me: failed program was:" >&5
  25086. sed 's/^/| /' conftest.$ac_ext >&5
  25087. ac_cv_type_int16_t=no
  25088. fi
  25089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25090. fi
  25091. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  25092. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  25093. if test $ac_cv_type_int16_t = yes; then
  25094. cat >>confdefs.h <<_ACEOF
  25095. #define HAVE_INT16_T 1
  25096. _ACEOF
  25097. fi
  25098. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  25099. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  25100. if test "${ac_cv_type_uint16_t+set}" = set; then
  25101. echo $ECHO_N "(cached) $ECHO_C" >&6
  25102. else
  25103. cat >conftest.$ac_ext <<_ACEOF
  25104. /* confdefs.h. */
  25105. _ACEOF
  25106. cat confdefs.h >>conftest.$ac_ext
  25107. cat >>conftest.$ac_ext <<_ACEOF
  25108. /* end confdefs.h. */
  25109. $ac_includes_default
  25110. typedef uint16_t ac__type_new_;
  25111. int
  25112. main ()
  25113. {
  25114. if ((ac__type_new_ *) 0)
  25115. return 0;
  25116. if (sizeof (ac__type_new_))
  25117. return 0;
  25118. ;
  25119. return 0;
  25120. }
  25121. _ACEOF
  25122. rm -f conftest.$ac_objext
  25123. if { (ac_try="$ac_compile"
  25124. case "(($ac_try" in
  25125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25126. *) ac_try_echo=$ac_try;;
  25127. esac
  25128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25129. (eval "$ac_compile") 2>conftest.er1
  25130. ac_status=$?
  25131. grep -v '^ *+' conftest.er1 >conftest.err
  25132. rm -f conftest.er1
  25133. cat conftest.err >&5
  25134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25135. (exit $ac_status); } && {
  25136. test -z "$ac_c_werror_flag" ||
  25137. test ! -s conftest.err
  25138. } && test -s conftest.$ac_objext; then
  25139. ac_cv_type_uint16_t=yes
  25140. else
  25141. echo "$as_me: failed program was:" >&5
  25142. sed 's/^/| /' conftest.$ac_ext >&5
  25143. ac_cv_type_uint16_t=no
  25144. fi
  25145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25146. fi
  25147. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  25148. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  25149. if test $ac_cv_type_uint16_t = yes; then
  25150. cat >>confdefs.h <<_ACEOF
  25151. #define HAVE_UINT16_T 1
  25152. _ACEOF
  25153. fi
  25154. { echo "$as_me:$LINENO: checking for int32_t" >&5
  25155. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  25156. if test "${ac_cv_type_int32_t+set}" = set; then
  25157. echo $ECHO_N "(cached) $ECHO_C" >&6
  25158. else
  25159. cat >conftest.$ac_ext <<_ACEOF
  25160. /* confdefs.h. */
  25161. _ACEOF
  25162. cat confdefs.h >>conftest.$ac_ext
  25163. cat >>conftest.$ac_ext <<_ACEOF
  25164. /* end confdefs.h. */
  25165. $ac_includes_default
  25166. typedef int32_t ac__type_new_;
  25167. int
  25168. main ()
  25169. {
  25170. if ((ac__type_new_ *) 0)
  25171. return 0;
  25172. if (sizeof (ac__type_new_))
  25173. return 0;
  25174. ;
  25175. return 0;
  25176. }
  25177. _ACEOF
  25178. rm -f conftest.$ac_objext
  25179. if { (ac_try="$ac_compile"
  25180. case "(($ac_try" in
  25181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25182. *) ac_try_echo=$ac_try;;
  25183. esac
  25184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25185. (eval "$ac_compile") 2>conftest.er1
  25186. ac_status=$?
  25187. grep -v '^ *+' conftest.er1 >conftest.err
  25188. rm -f conftest.er1
  25189. cat conftest.err >&5
  25190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25191. (exit $ac_status); } && {
  25192. test -z "$ac_c_werror_flag" ||
  25193. test ! -s conftest.err
  25194. } && test -s conftest.$ac_objext; then
  25195. ac_cv_type_int32_t=yes
  25196. else
  25197. echo "$as_me: failed program was:" >&5
  25198. sed 's/^/| /' conftest.$ac_ext >&5
  25199. ac_cv_type_int32_t=no
  25200. fi
  25201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25202. fi
  25203. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  25204. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  25205. if test $ac_cv_type_int32_t = yes; then
  25206. cat >>confdefs.h <<_ACEOF
  25207. #define HAVE_INT32_T 1
  25208. _ACEOF
  25209. fi
  25210. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  25211. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  25212. if test "${ac_cv_type_uint32_t+set}" = set; then
  25213. echo $ECHO_N "(cached) $ECHO_C" >&6
  25214. else
  25215. cat >conftest.$ac_ext <<_ACEOF
  25216. /* confdefs.h. */
  25217. _ACEOF
  25218. cat confdefs.h >>conftest.$ac_ext
  25219. cat >>conftest.$ac_ext <<_ACEOF
  25220. /* end confdefs.h. */
  25221. $ac_includes_default
  25222. typedef uint32_t ac__type_new_;
  25223. int
  25224. main ()
  25225. {
  25226. if ((ac__type_new_ *) 0)
  25227. return 0;
  25228. if (sizeof (ac__type_new_))
  25229. return 0;
  25230. ;
  25231. return 0;
  25232. }
  25233. _ACEOF
  25234. rm -f conftest.$ac_objext
  25235. if { (ac_try="$ac_compile"
  25236. case "(($ac_try" in
  25237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25238. *) ac_try_echo=$ac_try;;
  25239. esac
  25240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25241. (eval "$ac_compile") 2>conftest.er1
  25242. ac_status=$?
  25243. grep -v '^ *+' conftest.er1 >conftest.err
  25244. rm -f conftest.er1
  25245. cat conftest.err >&5
  25246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25247. (exit $ac_status); } && {
  25248. test -z "$ac_c_werror_flag" ||
  25249. test ! -s conftest.err
  25250. } && test -s conftest.$ac_objext; then
  25251. ac_cv_type_uint32_t=yes
  25252. else
  25253. echo "$as_me: failed program was:" >&5
  25254. sed 's/^/| /' conftest.$ac_ext >&5
  25255. ac_cv_type_uint32_t=no
  25256. fi
  25257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25258. fi
  25259. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  25260. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  25261. if test $ac_cv_type_uint32_t = yes; then
  25262. cat >>confdefs.h <<_ACEOF
  25263. #define HAVE_UINT32_T 1
  25264. _ACEOF
  25265. fi
  25266. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  25267. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  25268. if test "${ac_cv_type_intptr_t+set}" = set; then
  25269. echo $ECHO_N "(cached) $ECHO_C" >&6
  25270. else
  25271. cat >conftest.$ac_ext <<_ACEOF
  25272. /* confdefs.h. */
  25273. _ACEOF
  25274. cat confdefs.h >>conftest.$ac_ext
  25275. cat >>conftest.$ac_ext <<_ACEOF
  25276. /* end confdefs.h. */
  25277. $ac_includes_default
  25278. typedef intptr_t ac__type_new_;
  25279. int
  25280. main ()
  25281. {
  25282. if ((ac__type_new_ *) 0)
  25283. return 0;
  25284. if (sizeof (ac__type_new_))
  25285. return 0;
  25286. ;
  25287. return 0;
  25288. }
  25289. _ACEOF
  25290. rm -f conftest.$ac_objext
  25291. if { (ac_try="$ac_compile"
  25292. case "(($ac_try" in
  25293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25294. *) ac_try_echo=$ac_try;;
  25295. esac
  25296. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25297. (eval "$ac_compile") 2>conftest.er1
  25298. ac_status=$?
  25299. grep -v '^ *+' conftest.er1 >conftest.err
  25300. rm -f conftest.er1
  25301. cat conftest.err >&5
  25302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25303. (exit $ac_status); } && {
  25304. test -z "$ac_c_werror_flag" ||
  25305. test ! -s conftest.err
  25306. } && test -s conftest.$ac_objext; then
  25307. ac_cv_type_intptr_t=yes
  25308. else
  25309. echo "$as_me: failed program was:" >&5
  25310. sed 's/^/| /' conftest.$ac_ext >&5
  25311. ac_cv_type_intptr_t=no
  25312. fi
  25313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25314. fi
  25315. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  25316. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  25317. if test $ac_cv_type_intptr_t = yes; then
  25318. cat >>confdefs.h <<_ACEOF
  25319. #define HAVE_INTPTR_T 1
  25320. _ACEOF
  25321. fi
  25322. { echo "$as_me:$LINENO: checking for uint_t" >&5
  25323. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  25324. if test "${ac_cv_type_uint_t+set}" = set; then
  25325. echo $ECHO_N "(cached) $ECHO_C" >&6
  25326. else
  25327. cat >conftest.$ac_ext <<_ACEOF
  25328. /* confdefs.h. */
  25329. _ACEOF
  25330. cat confdefs.h >>conftest.$ac_ext
  25331. cat >>conftest.$ac_ext <<_ACEOF
  25332. /* end confdefs.h. */
  25333. $ac_includes_default
  25334. typedef uint_t ac__type_new_;
  25335. int
  25336. main ()
  25337. {
  25338. if ((ac__type_new_ *) 0)
  25339. return 0;
  25340. if (sizeof (ac__type_new_))
  25341. return 0;
  25342. ;
  25343. return 0;
  25344. }
  25345. _ACEOF
  25346. rm -f conftest.$ac_objext
  25347. if { (ac_try="$ac_compile"
  25348. case "(($ac_try" in
  25349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25350. *) ac_try_echo=$ac_try;;
  25351. esac
  25352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25353. (eval "$ac_compile") 2>conftest.er1
  25354. ac_status=$?
  25355. grep -v '^ *+' conftest.er1 >conftest.err
  25356. rm -f conftest.er1
  25357. cat conftest.err >&5
  25358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25359. (exit $ac_status); } && {
  25360. test -z "$ac_c_werror_flag" ||
  25361. test ! -s conftest.err
  25362. } && test -s conftest.$ac_objext; then
  25363. ac_cv_type_uint_t=yes
  25364. else
  25365. echo "$as_me: failed program was:" >&5
  25366. sed 's/^/| /' conftest.$ac_ext >&5
  25367. ac_cv_type_uint_t=no
  25368. fi
  25369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25370. fi
  25371. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  25372. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  25373. if test $ac_cv_type_uint_t = yes; then
  25374. cat >>confdefs.h <<_ACEOF
  25375. #define HAVE_UINT_T 1
  25376. _ACEOF
  25377. fi
  25378. # ====================
  25379. # uintptr type & sizes
  25380. # ====================
  25381. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  25382. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  25383. if test "${ac_cv_type_uintptr_t+set}" = set; then
  25384. echo $ECHO_N "(cached) $ECHO_C" >&6
  25385. else
  25386. cat >conftest.$ac_ext <<_ACEOF
  25387. /* confdefs.h. */
  25388. _ACEOF
  25389. cat confdefs.h >>conftest.$ac_ext
  25390. cat >>conftest.$ac_ext <<_ACEOF
  25391. /* end confdefs.h. */
  25392. $ac_includes_default
  25393. typedef uintptr_t ac__type_new_;
  25394. int
  25395. main ()
  25396. {
  25397. if ((ac__type_new_ *) 0)
  25398. return 0;
  25399. if (sizeof (ac__type_new_))
  25400. return 0;
  25401. ;
  25402. return 0;
  25403. }
  25404. _ACEOF
  25405. rm -f conftest.$ac_objext
  25406. if { (ac_try="$ac_compile"
  25407. case "(($ac_try" in
  25408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25409. *) ac_try_echo=$ac_try;;
  25410. esac
  25411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25412. (eval "$ac_compile") 2>conftest.er1
  25413. ac_status=$?
  25414. grep -v '^ *+' conftest.er1 >conftest.err
  25415. rm -f conftest.er1
  25416. cat conftest.err >&5
  25417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25418. (exit $ac_status); } && {
  25419. test -z "$ac_c_werror_flag" ||
  25420. test ! -s conftest.err
  25421. } && test -s conftest.$ac_objext; then
  25422. ac_cv_type_uintptr_t=yes
  25423. else
  25424. echo "$as_me: failed program was:" >&5
  25425. sed 's/^/| /' conftest.$ac_ext >&5
  25426. ac_cv_type_uintptr_t=no
  25427. fi
  25428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25429. fi
  25430. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  25431. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  25432. if test $ac_cv_type_uintptr_t = yes; then
  25433. cat >>confdefs.h <<_ACEOF
  25434. #define HAVE_UINTPTR_T 1
  25435. _ACEOF
  25436. else
  25437. cat >>confdefs.h <<\_ACEOF
  25438. #define uintptr_t unsigned long
  25439. _ACEOF
  25440. fi
  25441. { echo "$as_me:$LINENO: checking for char*" >&5
  25442. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  25443. if test "${ac_cv_type_charp+set}" = set; then
  25444. echo $ECHO_N "(cached) $ECHO_C" >&6
  25445. else
  25446. cat >conftest.$ac_ext <<_ACEOF
  25447. /* confdefs.h. */
  25448. _ACEOF
  25449. cat confdefs.h >>conftest.$ac_ext
  25450. cat >>conftest.$ac_ext <<_ACEOF
  25451. /* end confdefs.h. */
  25452. $ac_includes_default
  25453. typedef char* ac__type_new_;
  25454. int
  25455. main ()
  25456. {
  25457. if ((ac__type_new_ *) 0)
  25458. return 0;
  25459. if (sizeof (ac__type_new_))
  25460. return 0;
  25461. ;
  25462. return 0;
  25463. }
  25464. _ACEOF
  25465. rm -f conftest.$ac_objext
  25466. if { (ac_try="$ac_compile"
  25467. case "(($ac_try" in
  25468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25469. *) ac_try_echo=$ac_try;;
  25470. esac
  25471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25472. (eval "$ac_compile") 2>conftest.er1
  25473. ac_status=$?
  25474. grep -v '^ *+' conftest.er1 >conftest.err
  25475. rm -f conftest.er1
  25476. cat conftest.err >&5
  25477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25478. (exit $ac_status); } && {
  25479. test -z "$ac_c_werror_flag" ||
  25480. test ! -s conftest.err
  25481. } && test -s conftest.$ac_objext; then
  25482. ac_cv_type_charp=yes
  25483. else
  25484. echo "$as_me: failed program was:" >&5
  25485. sed 's/^/| /' conftest.$ac_ext >&5
  25486. ac_cv_type_charp=no
  25487. fi
  25488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25489. fi
  25490. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  25491. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  25492. # The cast to long int works around a bug in the HP C Compiler
  25493. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25494. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25495. # This bug is HP SR number 8606223364.
  25496. { echo "$as_me:$LINENO: checking size of char*" >&5
  25497. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  25498. if test "${ac_cv_sizeof_charp+set}" = set; then
  25499. echo $ECHO_N "(cached) $ECHO_C" >&6
  25500. else
  25501. if test "$cross_compiling" = yes; then
  25502. # Depending upon the size, compute the lo and hi bounds.
  25503. cat >conftest.$ac_ext <<_ACEOF
  25504. /* confdefs.h. */
  25505. _ACEOF
  25506. cat confdefs.h >>conftest.$ac_ext
  25507. cat >>conftest.$ac_ext <<_ACEOF
  25508. /* end confdefs.h. */
  25509. $ac_includes_default
  25510. typedef char* ac__type_sizeof_;
  25511. int
  25512. main ()
  25513. {
  25514. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  25515. test_array [0] = 0
  25516. ;
  25517. return 0;
  25518. }
  25519. _ACEOF
  25520. rm -f conftest.$ac_objext
  25521. if { (ac_try="$ac_compile"
  25522. case "(($ac_try" in
  25523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25524. *) ac_try_echo=$ac_try;;
  25525. esac
  25526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25527. (eval "$ac_compile") 2>conftest.er1
  25528. ac_status=$?
  25529. grep -v '^ *+' conftest.er1 >conftest.err
  25530. rm -f conftest.er1
  25531. cat conftest.err >&5
  25532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25533. (exit $ac_status); } && {
  25534. test -z "$ac_c_werror_flag" ||
  25535. test ! -s conftest.err
  25536. } && test -s conftest.$ac_objext; then
  25537. ac_lo=0 ac_mid=0
  25538. while :; do
  25539. cat >conftest.$ac_ext <<_ACEOF
  25540. /* confdefs.h. */
  25541. _ACEOF
  25542. cat confdefs.h >>conftest.$ac_ext
  25543. cat >>conftest.$ac_ext <<_ACEOF
  25544. /* end confdefs.h. */
  25545. $ac_includes_default
  25546. typedef char* ac__type_sizeof_;
  25547. int
  25548. main ()
  25549. {
  25550. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  25551. test_array [0] = 0
  25552. ;
  25553. return 0;
  25554. }
  25555. _ACEOF
  25556. rm -f conftest.$ac_objext
  25557. if { (ac_try="$ac_compile"
  25558. case "(($ac_try" in
  25559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25560. *) ac_try_echo=$ac_try;;
  25561. esac
  25562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25563. (eval "$ac_compile") 2>conftest.er1
  25564. ac_status=$?
  25565. grep -v '^ *+' conftest.er1 >conftest.err
  25566. rm -f conftest.er1
  25567. cat conftest.err >&5
  25568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25569. (exit $ac_status); } && {
  25570. test -z "$ac_c_werror_flag" ||
  25571. test ! -s conftest.err
  25572. } && test -s conftest.$ac_objext; then
  25573. ac_hi=$ac_mid; break
  25574. else
  25575. echo "$as_me: failed program was:" >&5
  25576. sed 's/^/| /' conftest.$ac_ext >&5
  25577. ac_lo=`expr $ac_mid + 1`
  25578. if test $ac_lo -le $ac_mid; then
  25579. ac_lo= ac_hi=
  25580. break
  25581. fi
  25582. ac_mid=`expr 2 '*' $ac_mid + 1`
  25583. fi
  25584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25585. done
  25586. else
  25587. echo "$as_me: failed program was:" >&5
  25588. sed 's/^/| /' conftest.$ac_ext >&5
  25589. cat >conftest.$ac_ext <<_ACEOF
  25590. /* confdefs.h. */
  25591. _ACEOF
  25592. cat confdefs.h >>conftest.$ac_ext
  25593. cat >>conftest.$ac_ext <<_ACEOF
  25594. /* end confdefs.h. */
  25595. $ac_includes_default
  25596. typedef char* ac__type_sizeof_;
  25597. int
  25598. main ()
  25599. {
  25600. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  25601. test_array [0] = 0
  25602. ;
  25603. return 0;
  25604. }
  25605. _ACEOF
  25606. rm -f conftest.$ac_objext
  25607. if { (ac_try="$ac_compile"
  25608. case "(($ac_try" in
  25609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25610. *) ac_try_echo=$ac_try;;
  25611. esac
  25612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25613. (eval "$ac_compile") 2>conftest.er1
  25614. ac_status=$?
  25615. grep -v '^ *+' conftest.er1 >conftest.err
  25616. rm -f conftest.er1
  25617. cat conftest.err >&5
  25618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25619. (exit $ac_status); } && {
  25620. test -z "$ac_c_werror_flag" ||
  25621. test ! -s conftest.err
  25622. } && test -s conftest.$ac_objext; then
  25623. ac_hi=-1 ac_mid=-1
  25624. while :; do
  25625. cat >conftest.$ac_ext <<_ACEOF
  25626. /* confdefs.h. */
  25627. _ACEOF
  25628. cat confdefs.h >>conftest.$ac_ext
  25629. cat >>conftest.$ac_ext <<_ACEOF
  25630. /* end confdefs.h. */
  25631. $ac_includes_default
  25632. typedef char* ac__type_sizeof_;
  25633. int
  25634. main ()
  25635. {
  25636. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  25637. test_array [0] = 0
  25638. ;
  25639. return 0;
  25640. }
  25641. _ACEOF
  25642. rm -f conftest.$ac_objext
  25643. if { (ac_try="$ac_compile"
  25644. case "(($ac_try" in
  25645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25646. *) ac_try_echo=$ac_try;;
  25647. esac
  25648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25649. (eval "$ac_compile") 2>conftest.er1
  25650. ac_status=$?
  25651. grep -v '^ *+' conftest.er1 >conftest.err
  25652. rm -f conftest.er1
  25653. cat conftest.err >&5
  25654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25655. (exit $ac_status); } && {
  25656. test -z "$ac_c_werror_flag" ||
  25657. test ! -s conftest.err
  25658. } && test -s conftest.$ac_objext; then
  25659. ac_lo=$ac_mid; break
  25660. else
  25661. echo "$as_me: failed program was:" >&5
  25662. sed 's/^/| /' conftest.$ac_ext >&5
  25663. ac_hi=`expr '(' $ac_mid ')' - 1`
  25664. if test $ac_mid -le $ac_hi; then
  25665. ac_lo= ac_hi=
  25666. break
  25667. fi
  25668. ac_mid=`expr 2 '*' $ac_mid`
  25669. fi
  25670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25671. done
  25672. else
  25673. echo "$as_me: failed program was:" >&5
  25674. sed 's/^/| /' conftest.$ac_ext >&5
  25675. ac_lo= ac_hi=
  25676. fi
  25677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25678. fi
  25679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25680. # Binary search between lo and hi bounds.
  25681. while test "x$ac_lo" != "x$ac_hi"; do
  25682. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  25683. cat >conftest.$ac_ext <<_ACEOF
  25684. /* confdefs.h. */
  25685. _ACEOF
  25686. cat confdefs.h >>conftest.$ac_ext
  25687. cat >>conftest.$ac_ext <<_ACEOF
  25688. /* end confdefs.h. */
  25689. $ac_includes_default
  25690. typedef char* ac__type_sizeof_;
  25691. int
  25692. main ()
  25693. {
  25694. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  25695. test_array [0] = 0
  25696. ;
  25697. return 0;
  25698. }
  25699. _ACEOF
  25700. rm -f conftest.$ac_objext
  25701. if { (ac_try="$ac_compile"
  25702. case "(($ac_try" in
  25703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25704. *) ac_try_echo=$ac_try;;
  25705. esac
  25706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25707. (eval "$ac_compile") 2>conftest.er1
  25708. ac_status=$?
  25709. grep -v '^ *+' conftest.er1 >conftest.err
  25710. rm -f conftest.er1
  25711. cat conftest.err >&5
  25712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25713. (exit $ac_status); } && {
  25714. test -z "$ac_c_werror_flag" ||
  25715. test ! -s conftest.err
  25716. } && test -s conftest.$ac_objext; then
  25717. ac_hi=$ac_mid
  25718. else
  25719. echo "$as_me: failed program was:" >&5
  25720. sed 's/^/| /' conftest.$ac_ext >&5
  25721. ac_lo=`expr '(' $ac_mid ')' + 1`
  25722. fi
  25723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25724. done
  25725. case $ac_lo in
  25726. ?*) ac_cv_sizeof_charp=$ac_lo;;
  25727. '') if test "$ac_cv_type_charp" = yes; then
  25728. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  25729. See \`config.log' for more details." >&5
  25730. echo "$as_me: error: cannot compute sizeof (char*)
  25731. See \`config.log' for more details." >&2;}
  25732. { (exit 77); exit 77; }; }
  25733. else
  25734. ac_cv_sizeof_charp=0
  25735. fi ;;
  25736. esac
  25737. else
  25738. cat >conftest.$ac_ext <<_ACEOF
  25739. /* confdefs.h. */
  25740. _ACEOF
  25741. cat confdefs.h >>conftest.$ac_ext
  25742. cat >>conftest.$ac_ext <<_ACEOF
  25743. /* end confdefs.h. */
  25744. $ac_includes_default
  25745. typedef char* ac__type_sizeof_;
  25746. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  25747. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  25748. #include <stdio.h>
  25749. #include <stdlib.h>
  25750. int
  25751. main ()
  25752. {
  25753. FILE *f = fopen ("conftest.val", "w");
  25754. if (! f)
  25755. return 1;
  25756. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  25757. {
  25758. long int i = longval ();
  25759. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  25760. return 1;
  25761. fprintf (f, "%ld\n", i);
  25762. }
  25763. else
  25764. {
  25765. unsigned long int i = ulongval ();
  25766. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  25767. return 1;
  25768. fprintf (f, "%lu\n", i);
  25769. }
  25770. return ferror (f) || fclose (f) != 0;
  25771. ;
  25772. return 0;
  25773. }
  25774. _ACEOF
  25775. rm -f conftest$ac_exeext
  25776. if { (ac_try="$ac_link"
  25777. case "(($ac_try" in
  25778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25779. *) ac_try_echo=$ac_try;;
  25780. esac
  25781. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25782. (eval "$ac_link") 2>&5
  25783. ac_status=$?
  25784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25785. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25786. { (case "(($ac_try" in
  25787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25788. *) ac_try_echo=$ac_try;;
  25789. esac
  25790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25791. (eval "$ac_try") 2>&5
  25792. ac_status=$?
  25793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25794. (exit $ac_status); }; }; then
  25795. ac_cv_sizeof_charp=`cat conftest.val`
  25796. else
  25797. echo "$as_me: program exited with status $ac_status" >&5
  25798. echo "$as_me: failed program was:" >&5
  25799. sed 's/^/| /' conftest.$ac_ext >&5
  25800. ( exit $ac_status )
  25801. if test "$ac_cv_type_charp" = yes; then
  25802. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  25803. See \`config.log' for more details." >&5
  25804. echo "$as_me: error: cannot compute sizeof (char*)
  25805. See \`config.log' for more details." >&2;}
  25806. { (exit 77); exit 77; }; }
  25807. else
  25808. ac_cv_sizeof_charp=0
  25809. fi
  25810. fi
  25811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25812. fi
  25813. rm -f conftest.val
  25814. fi
  25815. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  25816. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  25817. cat >>confdefs.h <<_ACEOF
  25818. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  25819. _ACEOF
  25820. { echo "$as_me:$LINENO: checking for int" >&5
  25821. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  25822. if test "${ac_cv_type_int+set}" = set; then
  25823. echo $ECHO_N "(cached) $ECHO_C" >&6
  25824. else
  25825. cat >conftest.$ac_ext <<_ACEOF
  25826. /* confdefs.h. */
  25827. _ACEOF
  25828. cat confdefs.h >>conftest.$ac_ext
  25829. cat >>conftest.$ac_ext <<_ACEOF
  25830. /* end confdefs.h. */
  25831. $ac_includes_default
  25832. typedef int ac__type_new_;
  25833. int
  25834. main ()
  25835. {
  25836. if ((ac__type_new_ *) 0)
  25837. return 0;
  25838. if (sizeof (ac__type_new_))
  25839. return 0;
  25840. ;
  25841. return 0;
  25842. }
  25843. _ACEOF
  25844. rm -f conftest.$ac_objext
  25845. if { (ac_try="$ac_compile"
  25846. case "(($ac_try" in
  25847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25848. *) ac_try_echo=$ac_try;;
  25849. esac
  25850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25851. (eval "$ac_compile") 2>conftest.er1
  25852. ac_status=$?
  25853. grep -v '^ *+' conftest.er1 >conftest.err
  25854. rm -f conftest.er1
  25855. cat conftest.err >&5
  25856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25857. (exit $ac_status); } && {
  25858. test -z "$ac_c_werror_flag" ||
  25859. test ! -s conftest.err
  25860. } && test -s conftest.$ac_objext; then
  25861. ac_cv_type_int=yes
  25862. else
  25863. echo "$as_me: failed program was:" >&5
  25864. sed 's/^/| /' conftest.$ac_ext >&5
  25865. ac_cv_type_int=no
  25866. fi
  25867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25868. fi
  25869. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  25870. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  25871. # The cast to long int works around a bug in the HP C Compiler
  25872. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25873. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25874. # This bug is HP SR number 8606223364.
  25875. { echo "$as_me:$LINENO: checking size of int" >&5
  25876. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  25877. if test "${ac_cv_sizeof_int+set}" = set; then
  25878. echo $ECHO_N "(cached) $ECHO_C" >&6
  25879. else
  25880. if test "$cross_compiling" = yes; then
  25881. # Depending upon the size, compute the lo and hi bounds.
  25882. cat >conftest.$ac_ext <<_ACEOF
  25883. /* confdefs.h. */
  25884. _ACEOF
  25885. cat confdefs.h >>conftest.$ac_ext
  25886. cat >>conftest.$ac_ext <<_ACEOF
  25887. /* end confdefs.h. */
  25888. $ac_includes_default
  25889. typedef int ac__type_sizeof_;
  25890. int
  25891. main ()
  25892. {
  25893. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  25894. test_array [0] = 0
  25895. ;
  25896. return 0;
  25897. }
  25898. _ACEOF
  25899. rm -f conftest.$ac_objext
  25900. if { (ac_try="$ac_compile"
  25901. case "(($ac_try" in
  25902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25903. *) ac_try_echo=$ac_try;;
  25904. esac
  25905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25906. (eval "$ac_compile") 2>conftest.er1
  25907. ac_status=$?
  25908. grep -v '^ *+' conftest.er1 >conftest.err
  25909. rm -f conftest.er1
  25910. cat conftest.err >&5
  25911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25912. (exit $ac_status); } && {
  25913. test -z "$ac_c_werror_flag" ||
  25914. test ! -s conftest.err
  25915. } && test -s conftest.$ac_objext; then
  25916. ac_lo=0 ac_mid=0
  25917. while :; do
  25918. cat >conftest.$ac_ext <<_ACEOF
  25919. /* confdefs.h. */
  25920. _ACEOF
  25921. cat confdefs.h >>conftest.$ac_ext
  25922. cat >>conftest.$ac_ext <<_ACEOF
  25923. /* end confdefs.h. */
  25924. $ac_includes_default
  25925. typedef int ac__type_sizeof_;
  25926. int
  25927. main ()
  25928. {
  25929. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  25930. test_array [0] = 0
  25931. ;
  25932. return 0;
  25933. }
  25934. _ACEOF
  25935. rm -f conftest.$ac_objext
  25936. if { (ac_try="$ac_compile"
  25937. case "(($ac_try" in
  25938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25939. *) ac_try_echo=$ac_try;;
  25940. esac
  25941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25942. (eval "$ac_compile") 2>conftest.er1
  25943. ac_status=$?
  25944. grep -v '^ *+' conftest.er1 >conftest.err
  25945. rm -f conftest.er1
  25946. cat conftest.err >&5
  25947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25948. (exit $ac_status); } && {
  25949. test -z "$ac_c_werror_flag" ||
  25950. test ! -s conftest.err
  25951. } && test -s conftest.$ac_objext; then
  25952. ac_hi=$ac_mid; break
  25953. else
  25954. echo "$as_me: failed program was:" >&5
  25955. sed 's/^/| /' conftest.$ac_ext >&5
  25956. ac_lo=`expr $ac_mid + 1`
  25957. if test $ac_lo -le $ac_mid; then
  25958. ac_lo= ac_hi=
  25959. break
  25960. fi
  25961. ac_mid=`expr 2 '*' $ac_mid + 1`
  25962. fi
  25963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25964. done
  25965. else
  25966. echo "$as_me: failed program was:" >&5
  25967. sed 's/^/| /' conftest.$ac_ext >&5
  25968. cat >conftest.$ac_ext <<_ACEOF
  25969. /* confdefs.h. */
  25970. _ACEOF
  25971. cat confdefs.h >>conftest.$ac_ext
  25972. cat >>conftest.$ac_ext <<_ACEOF
  25973. /* end confdefs.h. */
  25974. $ac_includes_default
  25975. typedef int ac__type_sizeof_;
  25976. int
  25977. main ()
  25978. {
  25979. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  25980. test_array [0] = 0
  25981. ;
  25982. return 0;
  25983. }
  25984. _ACEOF
  25985. rm -f conftest.$ac_objext
  25986. if { (ac_try="$ac_compile"
  25987. case "(($ac_try" in
  25988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25989. *) ac_try_echo=$ac_try;;
  25990. esac
  25991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25992. (eval "$ac_compile") 2>conftest.er1
  25993. ac_status=$?
  25994. grep -v '^ *+' conftest.er1 >conftest.err
  25995. rm -f conftest.er1
  25996. cat conftest.err >&5
  25997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25998. (exit $ac_status); } && {
  25999. test -z "$ac_c_werror_flag" ||
  26000. test ! -s conftest.err
  26001. } && test -s conftest.$ac_objext; then
  26002. ac_hi=-1 ac_mid=-1
  26003. while :; do
  26004. cat >conftest.$ac_ext <<_ACEOF
  26005. /* confdefs.h. */
  26006. _ACEOF
  26007. cat confdefs.h >>conftest.$ac_ext
  26008. cat >>conftest.$ac_ext <<_ACEOF
  26009. /* end confdefs.h. */
  26010. $ac_includes_default
  26011. typedef int ac__type_sizeof_;
  26012. int
  26013. main ()
  26014. {
  26015. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26016. test_array [0] = 0
  26017. ;
  26018. return 0;
  26019. }
  26020. _ACEOF
  26021. rm -f conftest.$ac_objext
  26022. if { (ac_try="$ac_compile"
  26023. case "(($ac_try" in
  26024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26025. *) ac_try_echo=$ac_try;;
  26026. esac
  26027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26028. (eval "$ac_compile") 2>conftest.er1
  26029. ac_status=$?
  26030. grep -v '^ *+' conftest.er1 >conftest.err
  26031. rm -f conftest.er1
  26032. cat conftest.err >&5
  26033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26034. (exit $ac_status); } && {
  26035. test -z "$ac_c_werror_flag" ||
  26036. test ! -s conftest.err
  26037. } && test -s conftest.$ac_objext; then
  26038. ac_lo=$ac_mid; break
  26039. else
  26040. echo "$as_me: failed program was:" >&5
  26041. sed 's/^/| /' conftest.$ac_ext >&5
  26042. ac_hi=`expr '(' $ac_mid ')' - 1`
  26043. if test $ac_mid -le $ac_hi; then
  26044. ac_lo= ac_hi=
  26045. break
  26046. fi
  26047. ac_mid=`expr 2 '*' $ac_mid`
  26048. fi
  26049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26050. done
  26051. else
  26052. echo "$as_me: failed program was:" >&5
  26053. sed 's/^/| /' conftest.$ac_ext >&5
  26054. ac_lo= ac_hi=
  26055. fi
  26056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26057. fi
  26058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26059. # Binary search between lo and hi bounds.
  26060. while test "x$ac_lo" != "x$ac_hi"; do
  26061. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26062. cat >conftest.$ac_ext <<_ACEOF
  26063. /* confdefs.h. */
  26064. _ACEOF
  26065. cat confdefs.h >>conftest.$ac_ext
  26066. cat >>conftest.$ac_ext <<_ACEOF
  26067. /* end confdefs.h. */
  26068. $ac_includes_default
  26069. typedef int ac__type_sizeof_;
  26070. int
  26071. main ()
  26072. {
  26073. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26074. test_array [0] = 0
  26075. ;
  26076. return 0;
  26077. }
  26078. _ACEOF
  26079. rm -f conftest.$ac_objext
  26080. if { (ac_try="$ac_compile"
  26081. case "(($ac_try" in
  26082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26083. *) ac_try_echo=$ac_try;;
  26084. esac
  26085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26086. (eval "$ac_compile") 2>conftest.er1
  26087. ac_status=$?
  26088. grep -v '^ *+' conftest.er1 >conftest.err
  26089. rm -f conftest.er1
  26090. cat conftest.err >&5
  26091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26092. (exit $ac_status); } && {
  26093. test -z "$ac_c_werror_flag" ||
  26094. test ! -s conftest.err
  26095. } && test -s conftest.$ac_objext; then
  26096. ac_hi=$ac_mid
  26097. else
  26098. echo "$as_me: failed program was:" >&5
  26099. sed 's/^/| /' conftest.$ac_ext >&5
  26100. ac_lo=`expr '(' $ac_mid ')' + 1`
  26101. fi
  26102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26103. done
  26104. case $ac_lo in
  26105. ?*) ac_cv_sizeof_int=$ac_lo;;
  26106. '') if test "$ac_cv_type_int" = yes; then
  26107. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26108. See \`config.log' for more details." >&5
  26109. echo "$as_me: error: cannot compute sizeof (int)
  26110. See \`config.log' for more details." >&2;}
  26111. { (exit 77); exit 77; }; }
  26112. else
  26113. ac_cv_sizeof_int=0
  26114. fi ;;
  26115. esac
  26116. else
  26117. cat >conftest.$ac_ext <<_ACEOF
  26118. /* confdefs.h. */
  26119. _ACEOF
  26120. cat confdefs.h >>conftest.$ac_ext
  26121. cat >>conftest.$ac_ext <<_ACEOF
  26122. /* end confdefs.h. */
  26123. $ac_includes_default
  26124. typedef int ac__type_sizeof_;
  26125. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26126. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26127. #include <stdio.h>
  26128. #include <stdlib.h>
  26129. int
  26130. main ()
  26131. {
  26132. FILE *f = fopen ("conftest.val", "w");
  26133. if (! f)
  26134. return 1;
  26135. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26136. {
  26137. long int i = longval ();
  26138. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26139. return 1;
  26140. fprintf (f, "%ld\n", i);
  26141. }
  26142. else
  26143. {
  26144. unsigned long int i = ulongval ();
  26145. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26146. return 1;
  26147. fprintf (f, "%lu\n", i);
  26148. }
  26149. return ferror (f) || fclose (f) != 0;
  26150. ;
  26151. return 0;
  26152. }
  26153. _ACEOF
  26154. rm -f conftest$ac_exeext
  26155. if { (ac_try="$ac_link"
  26156. case "(($ac_try" in
  26157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26158. *) ac_try_echo=$ac_try;;
  26159. esac
  26160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26161. (eval "$ac_link") 2>&5
  26162. ac_status=$?
  26163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26164. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26165. { (case "(($ac_try" in
  26166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26167. *) ac_try_echo=$ac_try;;
  26168. esac
  26169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26170. (eval "$ac_try") 2>&5
  26171. ac_status=$?
  26172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26173. (exit $ac_status); }; }; then
  26174. ac_cv_sizeof_int=`cat conftest.val`
  26175. else
  26176. echo "$as_me: program exited with status $ac_status" >&5
  26177. echo "$as_me: failed program was:" >&5
  26178. sed 's/^/| /' conftest.$ac_ext >&5
  26179. ( exit $ac_status )
  26180. if test "$ac_cv_type_int" = yes; then
  26181. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26182. See \`config.log' for more details." >&5
  26183. echo "$as_me: error: cannot compute sizeof (int)
  26184. See \`config.log' for more details." >&2;}
  26185. { (exit 77); exit 77; }; }
  26186. else
  26187. ac_cv_sizeof_int=0
  26188. fi
  26189. fi
  26190. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26191. fi
  26192. rm -f conftest.val
  26193. fi
  26194. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  26195. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  26196. cat >>confdefs.h <<_ACEOF
  26197. #define SIZEOF_INT $ac_cv_sizeof_int
  26198. _ACEOF
  26199. { echo "$as_me:$LINENO: checking for long" >&5
  26200. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  26201. if test "${ac_cv_type_long+set}" = set; then
  26202. echo $ECHO_N "(cached) $ECHO_C" >&6
  26203. else
  26204. cat >conftest.$ac_ext <<_ACEOF
  26205. /* confdefs.h. */
  26206. _ACEOF
  26207. cat confdefs.h >>conftest.$ac_ext
  26208. cat >>conftest.$ac_ext <<_ACEOF
  26209. /* end confdefs.h. */
  26210. $ac_includes_default
  26211. typedef long ac__type_new_;
  26212. int
  26213. main ()
  26214. {
  26215. if ((ac__type_new_ *) 0)
  26216. return 0;
  26217. if (sizeof (ac__type_new_))
  26218. return 0;
  26219. ;
  26220. return 0;
  26221. }
  26222. _ACEOF
  26223. rm -f conftest.$ac_objext
  26224. if { (ac_try="$ac_compile"
  26225. case "(($ac_try" in
  26226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26227. *) ac_try_echo=$ac_try;;
  26228. esac
  26229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26230. (eval "$ac_compile") 2>conftest.er1
  26231. ac_status=$?
  26232. grep -v '^ *+' conftest.er1 >conftest.err
  26233. rm -f conftest.er1
  26234. cat conftest.err >&5
  26235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26236. (exit $ac_status); } && {
  26237. test -z "$ac_c_werror_flag" ||
  26238. test ! -s conftest.err
  26239. } && test -s conftest.$ac_objext; then
  26240. ac_cv_type_long=yes
  26241. else
  26242. echo "$as_me: failed program was:" >&5
  26243. sed 's/^/| /' conftest.$ac_ext >&5
  26244. ac_cv_type_long=no
  26245. fi
  26246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26247. fi
  26248. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  26249. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  26250. # The cast to long int works around a bug in the HP C Compiler
  26251. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26252. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26253. # This bug is HP SR number 8606223364.
  26254. { echo "$as_me:$LINENO: checking size of long" >&5
  26255. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  26256. if test "${ac_cv_sizeof_long+set}" = set; then
  26257. echo $ECHO_N "(cached) $ECHO_C" >&6
  26258. else
  26259. if test "$cross_compiling" = yes; then
  26260. # Depending upon the size, compute the lo and hi bounds.
  26261. cat >conftest.$ac_ext <<_ACEOF
  26262. /* confdefs.h. */
  26263. _ACEOF
  26264. cat confdefs.h >>conftest.$ac_ext
  26265. cat >>conftest.$ac_ext <<_ACEOF
  26266. /* end confdefs.h. */
  26267. $ac_includes_default
  26268. typedef long ac__type_sizeof_;
  26269. int
  26270. main ()
  26271. {
  26272. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26273. test_array [0] = 0
  26274. ;
  26275. return 0;
  26276. }
  26277. _ACEOF
  26278. rm -f conftest.$ac_objext
  26279. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  26286. ac_status=$?
  26287. grep -v '^ *+' conftest.er1 >conftest.err
  26288. rm -f conftest.er1
  26289. cat conftest.err >&5
  26290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26291. (exit $ac_status); } && {
  26292. test -z "$ac_c_werror_flag" ||
  26293. test ! -s conftest.err
  26294. } && test -s conftest.$ac_objext; then
  26295. ac_lo=0 ac_mid=0
  26296. while :; do
  26297. cat >conftest.$ac_ext <<_ACEOF
  26298. /* confdefs.h. */
  26299. _ACEOF
  26300. cat confdefs.h >>conftest.$ac_ext
  26301. cat >>conftest.$ac_ext <<_ACEOF
  26302. /* end confdefs.h. */
  26303. $ac_includes_default
  26304. typedef long ac__type_sizeof_;
  26305. int
  26306. main ()
  26307. {
  26308. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26309. test_array [0] = 0
  26310. ;
  26311. return 0;
  26312. }
  26313. _ACEOF
  26314. rm -f conftest.$ac_objext
  26315. if { (ac_try="$ac_compile"
  26316. case "(($ac_try" in
  26317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26318. *) ac_try_echo=$ac_try;;
  26319. esac
  26320. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26321. (eval "$ac_compile") 2>conftest.er1
  26322. ac_status=$?
  26323. grep -v '^ *+' conftest.er1 >conftest.err
  26324. rm -f conftest.er1
  26325. cat conftest.err >&5
  26326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26327. (exit $ac_status); } && {
  26328. test -z "$ac_c_werror_flag" ||
  26329. test ! -s conftest.err
  26330. } && test -s conftest.$ac_objext; then
  26331. ac_hi=$ac_mid; break
  26332. else
  26333. echo "$as_me: failed program was:" >&5
  26334. sed 's/^/| /' conftest.$ac_ext >&5
  26335. ac_lo=`expr $ac_mid + 1`
  26336. if test $ac_lo -le $ac_mid; then
  26337. ac_lo= ac_hi=
  26338. break
  26339. fi
  26340. ac_mid=`expr 2 '*' $ac_mid + 1`
  26341. fi
  26342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26343. done
  26344. else
  26345. echo "$as_me: failed program was:" >&5
  26346. sed 's/^/| /' conftest.$ac_ext >&5
  26347. cat >conftest.$ac_ext <<_ACEOF
  26348. /* confdefs.h. */
  26349. _ACEOF
  26350. cat confdefs.h >>conftest.$ac_ext
  26351. cat >>conftest.$ac_ext <<_ACEOF
  26352. /* end confdefs.h. */
  26353. $ac_includes_default
  26354. typedef long ac__type_sizeof_;
  26355. int
  26356. main ()
  26357. {
  26358. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26359. test_array [0] = 0
  26360. ;
  26361. return 0;
  26362. }
  26363. _ACEOF
  26364. rm -f conftest.$ac_objext
  26365. if { (ac_try="$ac_compile"
  26366. case "(($ac_try" in
  26367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26368. *) ac_try_echo=$ac_try;;
  26369. esac
  26370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26371. (eval "$ac_compile") 2>conftest.er1
  26372. ac_status=$?
  26373. grep -v '^ *+' conftest.er1 >conftest.err
  26374. rm -f conftest.er1
  26375. cat conftest.err >&5
  26376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26377. (exit $ac_status); } && {
  26378. test -z "$ac_c_werror_flag" ||
  26379. test ! -s conftest.err
  26380. } && test -s conftest.$ac_objext; then
  26381. ac_hi=-1 ac_mid=-1
  26382. while :; do
  26383. cat >conftest.$ac_ext <<_ACEOF
  26384. /* confdefs.h. */
  26385. _ACEOF
  26386. cat confdefs.h >>conftest.$ac_ext
  26387. cat >>conftest.$ac_ext <<_ACEOF
  26388. /* end confdefs.h. */
  26389. $ac_includes_default
  26390. typedef long ac__type_sizeof_;
  26391. int
  26392. main ()
  26393. {
  26394. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26395. test_array [0] = 0
  26396. ;
  26397. return 0;
  26398. }
  26399. _ACEOF
  26400. rm -f conftest.$ac_objext
  26401. if { (ac_try="$ac_compile"
  26402. case "(($ac_try" in
  26403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26404. *) ac_try_echo=$ac_try;;
  26405. esac
  26406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26407. (eval "$ac_compile") 2>conftest.er1
  26408. ac_status=$?
  26409. grep -v '^ *+' conftest.er1 >conftest.err
  26410. rm -f conftest.er1
  26411. cat conftest.err >&5
  26412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26413. (exit $ac_status); } && {
  26414. test -z "$ac_c_werror_flag" ||
  26415. test ! -s conftest.err
  26416. } && test -s conftest.$ac_objext; then
  26417. ac_lo=$ac_mid; break
  26418. else
  26419. echo "$as_me: failed program was:" >&5
  26420. sed 's/^/| /' conftest.$ac_ext >&5
  26421. ac_hi=`expr '(' $ac_mid ')' - 1`
  26422. if test $ac_mid -le $ac_hi; then
  26423. ac_lo= ac_hi=
  26424. break
  26425. fi
  26426. ac_mid=`expr 2 '*' $ac_mid`
  26427. fi
  26428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26429. done
  26430. else
  26431. echo "$as_me: failed program was:" >&5
  26432. sed 's/^/| /' conftest.$ac_ext >&5
  26433. ac_lo= ac_hi=
  26434. fi
  26435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26436. fi
  26437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26438. # Binary search between lo and hi bounds.
  26439. while test "x$ac_lo" != "x$ac_hi"; do
  26440. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26441. cat >conftest.$ac_ext <<_ACEOF
  26442. /* confdefs.h. */
  26443. _ACEOF
  26444. cat confdefs.h >>conftest.$ac_ext
  26445. cat >>conftest.$ac_ext <<_ACEOF
  26446. /* end confdefs.h. */
  26447. $ac_includes_default
  26448. typedef long ac__type_sizeof_;
  26449. int
  26450. main ()
  26451. {
  26452. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26453. test_array [0] = 0
  26454. ;
  26455. return 0;
  26456. }
  26457. _ACEOF
  26458. rm -f conftest.$ac_objext
  26459. if { (ac_try="$ac_compile"
  26460. case "(($ac_try" in
  26461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26462. *) ac_try_echo=$ac_try;;
  26463. esac
  26464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26465. (eval "$ac_compile") 2>conftest.er1
  26466. ac_status=$?
  26467. grep -v '^ *+' conftest.er1 >conftest.err
  26468. rm -f conftest.er1
  26469. cat conftest.err >&5
  26470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26471. (exit $ac_status); } && {
  26472. test -z "$ac_c_werror_flag" ||
  26473. test ! -s conftest.err
  26474. } && test -s conftest.$ac_objext; then
  26475. ac_hi=$ac_mid
  26476. else
  26477. echo "$as_me: failed program was:" >&5
  26478. sed 's/^/| /' conftest.$ac_ext >&5
  26479. ac_lo=`expr '(' $ac_mid ')' + 1`
  26480. fi
  26481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26482. done
  26483. case $ac_lo in
  26484. ?*) ac_cv_sizeof_long=$ac_lo;;
  26485. '') if test "$ac_cv_type_long" = yes; then
  26486. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  26487. See \`config.log' for more details." >&5
  26488. echo "$as_me: error: cannot compute sizeof (long)
  26489. See \`config.log' for more details." >&2;}
  26490. { (exit 77); exit 77; }; }
  26491. else
  26492. ac_cv_sizeof_long=0
  26493. fi ;;
  26494. esac
  26495. else
  26496. cat >conftest.$ac_ext <<_ACEOF
  26497. /* confdefs.h. */
  26498. _ACEOF
  26499. cat confdefs.h >>conftest.$ac_ext
  26500. cat >>conftest.$ac_ext <<_ACEOF
  26501. /* end confdefs.h. */
  26502. $ac_includes_default
  26503. typedef long ac__type_sizeof_;
  26504. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26505. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26506. #include <stdio.h>
  26507. #include <stdlib.h>
  26508. int
  26509. main ()
  26510. {
  26511. FILE *f = fopen ("conftest.val", "w");
  26512. if (! f)
  26513. return 1;
  26514. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26515. {
  26516. long int i = longval ();
  26517. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26518. return 1;
  26519. fprintf (f, "%ld\n", i);
  26520. }
  26521. else
  26522. {
  26523. unsigned long int i = ulongval ();
  26524. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26525. return 1;
  26526. fprintf (f, "%lu\n", i);
  26527. }
  26528. return ferror (f) || fclose (f) != 0;
  26529. ;
  26530. return 0;
  26531. }
  26532. _ACEOF
  26533. rm -f conftest$ac_exeext
  26534. if { (ac_try="$ac_link"
  26535. case "(($ac_try" in
  26536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26537. *) ac_try_echo=$ac_try;;
  26538. esac
  26539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26540. (eval "$ac_link") 2>&5
  26541. ac_status=$?
  26542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26543. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26544. { (case "(($ac_try" in
  26545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26546. *) ac_try_echo=$ac_try;;
  26547. esac
  26548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26549. (eval "$ac_try") 2>&5
  26550. ac_status=$?
  26551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26552. (exit $ac_status); }; }; then
  26553. ac_cv_sizeof_long=`cat conftest.val`
  26554. else
  26555. echo "$as_me: program exited with status $ac_status" >&5
  26556. echo "$as_me: failed program was:" >&5
  26557. sed 's/^/| /' conftest.$ac_ext >&5
  26558. ( exit $ac_status )
  26559. if test "$ac_cv_type_long" = yes; then
  26560. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  26561. See \`config.log' for more details." >&5
  26562. echo "$as_me: error: cannot compute sizeof (long)
  26563. See \`config.log' for more details." >&2;}
  26564. { (exit 77); exit 77; }; }
  26565. else
  26566. ac_cv_sizeof_long=0
  26567. fi
  26568. fi
  26569. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26570. fi
  26571. rm -f conftest.val
  26572. fi
  26573. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  26574. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  26575. cat >>confdefs.h <<_ACEOF
  26576. #define SIZEOF_LONG $ac_cv_sizeof_long
  26577. _ACEOF
  26578. { echo "$as_me:$LINENO: checking for short" >&5
  26579. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  26580. if test "${ac_cv_type_short+set}" = set; then
  26581. echo $ECHO_N "(cached) $ECHO_C" >&6
  26582. else
  26583. cat >conftest.$ac_ext <<_ACEOF
  26584. /* confdefs.h. */
  26585. _ACEOF
  26586. cat confdefs.h >>conftest.$ac_ext
  26587. cat >>conftest.$ac_ext <<_ACEOF
  26588. /* end confdefs.h. */
  26589. $ac_includes_default
  26590. typedef short ac__type_new_;
  26591. int
  26592. main ()
  26593. {
  26594. if ((ac__type_new_ *) 0)
  26595. return 0;
  26596. if (sizeof (ac__type_new_))
  26597. return 0;
  26598. ;
  26599. return 0;
  26600. }
  26601. _ACEOF
  26602. rm -f conftest.$ac_objext
  26603. if { (ac_try="$ac_compile"
  26604. case "(($ac_try" in
  26605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26606. *) ac_try_echo=$ac_try;;
  26607. esac
  26608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26609. (eval "$ac_compile") 2>conftest.er1
  26610. ac_status=$?
  26611. grep -v '^ *+' conftest.er1 >conftest.err
  26612. rm -f conftest.er1
  26613. cat conftest.err >&5
  26614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26615. (exit $ac_status); } && {
  26616. test -z "$ac_c_werror_flag" ||
  26617. test ! -s conftest.err
  26618. } && test -s conftest.$ac_objext; then
  26619. ac_cv_type_short=yes
  26620. else
  26621. echo "$as_me: failed program was:" >&5
  26622. sed 's/^/| /' conftest.$ac_ext >&5
  26623. ac_cv_type_short=no
  26624. fi
  26625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26626. fi
  26627. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  26628. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  26629. # The cast to long int works around a bug in the HP C Compiler
  26630. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26631. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26632. # This bug is HP SR number 8606223364.
  26633. { echo "$as_me:$LINENO: checking size of short" >&5
  26634. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  26635. if test "${ac_cv_sizeof_short+set}" = set; then
  26636. echo $ECHO_N "(cached) $ECHO_C" >&6
  26637. else
  26638. if test "$cross_compiling" = yes; then
  26639. # Depending upon the size, compute the lo and hi bounds.
  26640. cat >conftest.$ac_ext <<_ACEOF
  26641. /* confdefs.h. */
  26642. _ACEOF
  26643. cat confdefs.h >>conftest.$ac_ext
  26644. cat >>conftest.$ac_ext <<_ACEOF
  26645. /* end confdefs.h. */
  26646. $ac_includes_default
  26647. typedef short ac__type_sizeof_;
  26648. int
  26649. main ()
  26650. {
  26651. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26652. test_array [0] = 0
  26653. ;
  26654. return 0;
  26655. }
  26656. _ACEOF
  26657. rm -f conftest.$ac_objext
  26658. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  26665. ac_status=$?
  26666. grep -v '^ *+' conftest.er1 >conftest.err
  26667. rm -f conftest.er1
  26668. cat conftest.err >&5
  26669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26670. (exit $ac_status); } && {
  26671. test -z "$ac_c_werror_flag" ||
  26672. test ! -s conftest.err
  26673. } && test -s conftest.$ac_objext; then
  26674. ac_lo=0 ac_mid=0
  26675. while :; do
  26676. cat >conftest.$ac_ext <<_ACEOF
  26677. /* confdefs.h. */
  26678. _ACEOF
  26679. cat confdefs.h >>conftest.$ac_ext
  26680. cat >>conftest.$ac_ext <<_ACEOF
  26681. /* end confdefs.h. */
  26682. $ac_includes_default
  26683. typedef short ac__type_sizeof_;
  26684. int
  26685. main ()
  26686. {
  26687. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26688. test_array [0] = 0
  26689. ;
  26690. return 0;
  26691. }
  26692. _ACEOF
  26693. rm -f conftest.$ac_objext
  26694. if { (ac_try="$ac_compile"
  26695. case "(($ac_try" in
  26696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26697. *) ac_try_echo=$ac_try;;
  26698. esac
  26699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26700. (eval "$ac_compile") 2>conftest.er1
  26701. ac_status=$?
  26702. grep -v '^ *+' conftest.er1 >conftest.err
  26703. rm -f conftest.er1
  26704. cat conftest.err >&5
  26705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26706. (exit $ac_status); } && {
  26707. test -z "$ac_c_werror_flag" ||
  26708. test ! -s conftest.err
  26709. } && test -s conftest.$ac_objext; then
  26710. ac_hi=$ac_mid; break
  26711. else
  26712. echo "$as_me: failed program was:" >&5
  26713. sed 's/^/| /' conftest.$ac_ext >&5
  26714. ac_lo=`expr $ac_mid + 1`
  26715. if test $ac_lo -le $ac_mid; then
  26716. ac_lo= ac_hi=
  26717. break
  26718. fi
  26719. ac_mid=`expr 2 '*' $ac_mid + 1`
  26720. fi
  26721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26722. done
  26723. else
  26724. echo "$as_me: failed program was:" >&5
  26725. sed 's/^/| /' conftest.$ac_ext >&5
  26726. cat >conftest.$ac_ext <<_ACEOF
  26727. /* confdefs.h. */
  26728. _ACEOF
  26729. cat confdefs.h >>conftest.$ac_ext
  26730. cat >>conftest.$ac_ext <<_ACEOF
  26731. /* end confdefs.h. */
  26732. $ac_includes_default
  26733. typedef short ac__type_sizeof_;
  26734. int
  26735. main ()
  26736. {
  26737. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26738. test_array [0] = 0
  26739. ;
  26740. return 0;
  26741. }
  26742. _ACEOF
  26743. rm -f conftest.$ac_objext
  26744. if { (ac_try="$ac_compile"
  26745. case "(($ac_try" in
  26746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26747. *) ac_try_echo=$ac_try;;
  26748. esac
  26749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26750. (eval "$ac_compile") 2>conftest.er1
  26751. ac_status=$?
  26752. grep -v '^ *+' conftest.er1 >conftest.err
  26753. rm -f conftest.er1
  26754. cat conftest.err >&5
  26755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26756. (exit $ac_status); } && {
  26757. test -z "$ac_c_werror_flag" ||
  26758. test ! -s conftest.err
  26759. } && test -s conftest.$ac_objext; then
  26760. ac_hi=-1 ac_mid=-1
  26761. while :; do
  26762. cat >conftest.$ac_ext <<_ACEOF
  26763. /* confdefs.h. */
  26764. _ACEOF
  26765. cat confdefs.h >>conftest.$ac_ext
  26766. cat >>conftest.$ac_ext <<_ACEOF
  26767. /* end confdefs.h. */
  26768. $ac_includes_default
  26769. typedef short ac__type_sizeof_;
  26770. int
  26771. main ()
  26772. {
  26773. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26774. test_array [0] = 0
  26775. ;
  26776. return 0;
  26777. }
  26778. _ACEOF
  26779. rm -f conftest.$ac_objext
  26780. if { (ac_try="$ac_compile"
  26781. case "(($ac_try" in
  26782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26783. *) ac_try_echo=$ac_try;;
  26784. esac
  26785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26786. (eval "$ac_compile") 2>conftest.er1
  26787. ac_status=$?
  26788. grep -v '^ *+' conftest.er1 >conftest.err
  26789. rm -f conftest.er1
  26790. cat conftest.err >&5
  26791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26792. (exit $ac_status); } && {
  26793. test -z "$ac_c_werror_flag" ||
  26794. test ! -s conftest.err
  26795. } && test -s conftest.$ac_objext; then
  26796. ac_lo=$ac_mid; break
  26797. else
  26798. echo "$as_me: failed program was:" >&5
  26799. sed 's/^/| /' conftest.$ac_ext >&5
  26800. ac_hi=`expr '(' $ac_mid ')' - 1`
  26801. if test $ac_mid -le $ac_hi; then
  26802. ac_lo= ac_hi=
  26803. break
  26804. fi
  26805. ac_mid=`expr 2 '*' $ac_mid`
  26806. fi
  26807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26808. done
  26809. else
  26810. echo "$as_me: failed program was:" >&5
  26811. sed 's/^/| /' conftest.$ac_ext >&5
  26812. ac_lo= ac_hi=
  26813. fi
  26814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26815. fi
  26816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26817. # Binary search between lo and hi bounds.
  26818. while test "x$ac_lo" != "x$ac_hi"; do
  26819. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26820. cat >conftest.$ac_ext <<_ACEOF
  26821. /* confdefs.h. */
  26822. _ACEOF
  26823. cat confdefs.h >>conftest.$ac_ext
  26824. cat >>conftest.$ac_ext <<_ACEOF
  26825. /* end confdefs.h. */
  26826. $ac_includes_default
  26827. typedef short ac__type_sizeof_;
  26828. int
  26829. main ()
  26830. {
  26831. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26832. test_array [0] = 0
  26833. ;
  26834. return 0;
  26835. }
  26836. _ACEOF
  26837. rm -f conftest.$ac_objext
  26838. if { (ac_try="$ac_compile"
  26839. case "(($ac_try" in
  26840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26841. *) ac_try_echo=$ac_try;;
  26842. esac
  26843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26844. (eval "$ac_compile") 2>conftest.er1
  26845. ac_status=$?
  26846. grep -v '^ *+' conftest.er1 >conftest.err
  26847. rm -f conftest.er1
  26848. cat conftest.err >&5
  26849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26850. (exit $ac_status); } && {
  26851. test -z "$ac_c_werror_flag" ||
  26852. test ! -s conftest.err
  26853. } && test -s conftest.$ac_objext; then
  26854. ac_hi=$ac_mid
  26855. else
  26856. echo "$as_me: failed program was:" >&5
  26857. sed 's/^/| /' conftest.$ac_ext >&5
  26858. ac_lo=`expr '(' $ac_mid ')' + 1`
  26859. fi
  26860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26861. done
  26862. case $ac_lo in
  26863. ?*) ac_cv_sizeof_short=$ac_lo;;
  26864. '') if test "$ac_cv_type_short" = yes; then
  26865. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  26866. See \`config.log' for more details." >&5
  26867. echo "$as_me: error: cannot compute sizeof (short)
  26868. See \`config.log' for more details." >&2;}
  26869. { (exit 77); exit 77; }; }
  26870. else
  26871. ac_cv_sizeof_short=0
  26872. fi ;;
  26873. esac
  26874. else
  26875. cat >conftest.$ac_ext <<_ACEOF
  26876. /* confdefs.h. */
  26877. _ACEOF
  26878. cat confdefs.h >>conftest.$ac_ext
  26879. cat >>conftest.$ac_ext <<_ACEOF
  26880. /* end confdefs.h. */
  26881. $ac_includes_default
  26882. typedef short ac__type_sizeof_;
  26883. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26884. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26885. #include <stdio.h>
  26886. #include <stdlib.h>
  26887. int
  26888. main ()
  26889. {
  26890. FILE *f = fopen ("conftest.val", "w");
  26891. if (! f)
  26892. return 1;
  26893. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26894. {
  26895. long int i = longval ();
  26896. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26897. return 1;
  26898. fprintf (f, "%ld\n", i);
  26899. }
  26900. else
  26901. {
  26902. unsigned long int i = ulongval ();
  26903. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26904. return 1;
  26905. fprintf (f, "%lu\n", i);
  26906. }
  26907. return ferror (f) || fclose (f) != 0;
  26908. ;
  26909. return 0;
  26910. }
  26911. _ACEOF
  26912. rm -f conftest$ac_exeext
  26913. if { (ac_try="$ac_link"
  26914. case "(($ac_try" in
  26915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26916. *) ac_try_echo=$ac_try;;
  26917. esac
  26918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26919. (eval "$ac_link") 2>&5
  26920. ac_status=$?
  26921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26922. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26923. { (case "(($ac_try" in
  26924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26925. *) ac_try_echo=$ac_try;;
  26926. esac
  26927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26928. (eval "$ac_try") 2>&5
  26929. ac_status=$?
  26930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26931. (exit $ac_status); }; }; then
  26932. ac_cv_sizeof_short=`cat conftest.val`
  26933. else
  26934. echo "$as_me: program exited with status $ac_status" >&5
  26935. echo "$as_me: failed program was:" >&5
  26936. sed 's/^/| /' conftest.$ac_ext >&5
  26937. ( exit $ac_status )
  26938. if test "$ac_cv_type_short" = yes; then
  26939. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  26940. See \`config.log' for more details." >&5
  26941. echo "$as_me: error: cannot compute sizeof (short)
  26942. See \`config.log' for more details." >&2;}
  26943. { (exit 77); exit 77; }; }
  26944. else
  26945. ac_cv_sizeof_short=0
  26946. fi
  26947. fi
  26948. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26949. fi
  26950. rm -f conftest.val
  26951. fi
  26952. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  26953. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  26954. cat >>confdefs.h <<_ACEOF
  26955. #define SIZEOF_SHORT $ac_cv_sizeof_short
  26956. _ACEOF
  26957. # ----------------------------------------------------------------------
  26958. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  26959. # ----------------------------------------------------------------------
  26960. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  26961. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  26962. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  26963. echo $ECHO_N "(cached) $ECHO_C" >&6
  26964. else
  26965. ac_check_lib_save_LIBS=$LIBS
  26966. LIBS="-lgen $LIBS"
  26967. cat >conftest.$ac_ext <<_ACEOF
  26968. /* confdefs.h. */
  26969. _ACEOF
  26970. cat confdefs.h >>conftest.$ac_ext
  26971. cat >>conftest.$ac_ext <<_ACEOF
  26972. /* end confdefs.h. */
  26973. /* Override any GCC internal prototype to avoid an error.
  26974. Use char because int might match the return type of a GCC
  26975. builtin and then its argument prototype would still apply. */
  26976. #ifdef __cplusplus
  26977. extern "C"
  26978. #endif
  26979. char pathfind ();
  26980. int
  26981. main ()
  26982. {
  26983. return pathfind ();
  26984. ;
  26985. return 0;
  26986. }
  26987. _ACEOF
  26988. rm -f conftest.$ac_objext conftest$ac_exeext
  26989. if { (ac_try="$ac_link"
  26990. case "(($ac_try" in
  26991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26992. *) ac_try_echo=$ac_try;;
  26993. esac
  26994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26995. (eval "$ac_link") 2>conftest.er1
  26996. ac_status=$?
  26997. grep -v '^ *+' conftest.er1 >conftest.err
  26998. rm -f conftest.er1
  26999. cat conftest.err >&5
  27000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27001. (exit $ac_status); } && {
  27002. test -z "$ac_c_werror_flag" ||
  27003. test ! -s conftest.err
  27004. } && test -s conftest$ac_exeext &&
  27005. $as_test_x conftest$ac_exeext; then
  27006. ac_cv_lib_gen_pathfind=yes
  27007. else
  27008. echo "$as_me: failed program was:" >&5
  27009. sed 's/^/| /' conftest.$ac_ext >&5
  27010. ac_cv_lib_gen_pathfind=no
  27011. fi
  27012. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27013. conftest$ac_exeext conftest.$ac_ext
  27014. LIBS=$ac_check_lib_save_LIBS
  27015. fi
  27016. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  27017. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  27018. if test $ac_cv_lib_gen_pathfind = yes; then
  27019. cat >>confdefs.h <<_ACEOF
  27020. #define HAVE_LIBGEN 1
  27021. _ACEOF
  27022. LIBS="-lgen $LIBS"
  27023. fi
  27024. for ac_func in vprintf
  27025. do
  27026. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27027. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27028. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27029. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27030. echo $ECHO_N "(cached) $ECHO_C" >&6
  27031. else
  27032. cat >conftest.$ac_ext <<_ACEOF
  27033. /* confdefs.h. */
  27034. _ACEOF
  27035. cat confdefs.h >>conftest.$ac_ext
  27036. cat >>conftest.$ac_ext <<_ACEOF
  27037. /* end confdefs.h. */
  27038. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27039. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27040. #define $ac_func innocuous_$ac_func
  27041. /* System header to define __stub macros and hopefully few prototypes,
  27042. which can conflict with char $ac_func (); below.
  27043. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27044. <limits.h> exists even on freestanding compilers. */
  27045. #ifdef __STDC__
  27046. # include <limits.h>
  27047. #else
  27048. # include <assert.h>
  27049. #endif
  27050. #undef $ac_func
  27051. /* Override any GCC internal prototype to avoid an error.
  27052. Use char because int might match the return type of a GCC
  27053. builtin and then its argument prototype would still apply. */
  27054. #ifdef __cplusplus
  27055. extern "C"
  27056. #endif
  27057. char $ac_func ();
  27058. /* The GNU C library defines this for functions which it implements
  27059. to always fail with ENOSYS. Some functions are actually named
  27060. something starting with __ and the normal name is an alias. */
  27061. #if defined __stub_$ac_func || defined __stub___$ac_func
  27062. choke me
  27063. #endif
  27064. int
  27065. main ()
  27066. {
  27067. return $ac_func ();
  27068. ;
  27069. return 0;
  27070. }
  27071. _ACEOF
  27072. rm -f conftest.$ac_objext conftest$ac_exeext
  27073. if { (ac_try="$ac_link"
  27074. case "(($ac_try" in
  27075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27076. *) ac_try_echo=$ac_try;;
  27077. esac
  27078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27079. (eval "$ac_link") 2>conftest.er1
  27080. ac_status=$?
  27081. grep -v '^ *+' conftest.er1 >conftest.err
  27082. rm -f conftest.er1
  27083. cat conftest.err >&5
  27084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27085. (exit $ac_status); } && {
  27086. test -z "$ac_c_werror_flag" ||
  27087. test ! -s conftest.err
  27088. } && test -s conftest$ac_exeext &&
  27089. $as_test_x conftest$ac_exeext; then
  27090. eval "$as_ac_var=yes"
  27091. else
  27092. echo "$as_me: failed program was:" >&5
  27093. sed 's/^/| /' conftest.$ac_ext >&5
  27094. eval "$as_ac_var=no"
  27095. fi
  27096. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27097. conftest$ac_exeext conftest.$ac_ext
  27098. fi
  27099. ac_res=`eval echo '${'$as_ac_var'}'`
  27100. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27101. echo "${ECHO_T}$ac_res" >&6; }
  27102. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27103. cat >>confdefs.h <<_ACEOF
  27104. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27105. _ACEOF
  27106. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  27107. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  27108. if test "${ac_cv_func__doprnt+set}" = set; then
  27109. echo $ECHO_N "(cached) $ECHO_C" >&6
  27110. else
  27111. cat >conftest.$ac_ext <<_ACEOF
  27112. /* confdefs.h. */
  27113. _ACEOF
  27114. cat confdefs.h >>conftest.$ac_ext
  27115. cat >>conftest.$ac_ext <<_ACEOF
  27116. /* end confdefs.h. */
  27117. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  27118. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27119. #define _doprnt innocuous__doprnt
  27120. /* System header to define __stub macros and hopefully few prototypes,
  27121. which can conflict with char _doprnt (); below.
  27122. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27123. <limits.h> exists even on freestanding compilers. */
  27124. #ifdef __STDC__
  27125. # include <limits.h>
  27126. #else
  27127. # include <assert.h>
  27128. #endif
  27129. #undef _doprnt
  27130. /* Override any GCC internal prototype to avoid an error.
  27131. Use char because int might match the return type of a GCC
  27132. builtin and then its argument prototype would still apply. */
  27133. #ifdef __cplusplus
  27134. extern "C"
  27135. #endif
  27136. char _doprnt ();
  27137. /* The GNU C library defines this for functions which it implements
  27138. to always fail with ENOSYS. Some functions are actually named
  27139. something starting with __ and the normal name is an alias. */
  27140. #if defined __stub__doprnt || defined __stub____doprnt
  27141. choke me
  27142. #endif
  27143. int
  27144. main ()
  27145. {
  27146. return _doprnt ();
  27147. ;
  27148. return 0;
  27149. }
  27150. _ACEOF
  27151. rm -f conftest.$ac_objext conftest$ac_exeext
  27152. if { (ac_try="$ac_link"
  27153. case "(($ac_try" in
  27154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27155. *) ac_try_echo=$ac_try;;
  27156. esac
  27157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27158. (eval "$ac_link") 2>conftest.er1
  27159. ac_status=$?
  27160. grep -v '^ *+' conftest.er1 >conftest.err
  27161. rm -f conftest.er1
  27162. cat conftest.err >&5
  27163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27164. (exit $ac_status); } && {
  27165. test -z "$ac_c_werror_flag" ||
  27166. test ! -s conftest.err
  27167. } && test -s conftest$ac_exeext &&
  27168. $as_test_x conftest$ac_exeext; then
  27169. ac_cv_func__doprnt=yes
  27170. else
  27171. echo "$as_me: failed program was:" >&5
  27172. sed 's/^/| /' conftest.$ac_ext >&5
  27173. ac_cv_func__doprnt=no
  27174. fi
  27175. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27176. conftest$ac_exeext conftest.$ac_ext
  27177. fi
  27178. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  27179. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  27180. if test $ac_cv_func__doprnt = yes; then
  27181. cat >>confdefs.h <<\_ACEOF
  27182. #define HAVE_DOPRNT 1
  27183. _ACEOF
  27184. fi
  27185. fi
  27186. done
  27187. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  27188. do
  27189. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27190. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27191. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27192. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27193. echo $ECHO_N "(cached) $ECHO_C" >&6
  27194. else
  27195. cat >conftest.$ac_ext <<_ACEOF
  27196. /* confdefs.h. */
  27197. _ACEOF
  27198. cat confdefs.h >>conftest.$ac_ext
  27199. cat >>conftest.$ac_ext <<_ACEOF
  27200. /* end confdefs.h. */
  27201. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27202. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27203. #define $ac_func innocuous_$ac_func
  27204. /* System header to define __stub macros and hopefully few prototypes,
  27205. which can conflict with char $ac_func (); below.
  27206. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27207. <limits.h> exists even on freestanding compilers. */
  27208. #ifdef __STDC__
  27209. # include <limits.h>
  27210. #else
  27211. # include <assert.h>
  27212. #endif
  27213. #undef $ac_func
  27214. /* Override any GCC internal prototype to avoid an error.
  27215. Use char because int might match the return type of a GCC
  27216. builtin and then its argument prototype would still apply. */
  27217. #ifdef __cplusplus
  27218. extern "C"
  27219. #endif
  27220. char $ac_func ();
  27221. /* The GNU C library defines this for functions which it implements
  27222. to always fail with ENOSYS. Some functions are actually named
  27223. something starting with __ and the normal name is an alias. */
  27224. #if defined __stub_$ac_func || defined __stub___$ac_func
  27225. choke me
  27226. #endif
  27227. int
  27228. main ()
  27229. {
  27230. return $ac_func ();
  27231. ;
  27232. return 0;
  27233. }
  27234. _ACEOF
  27235. rm -f conftest.$ac_objext conftest$ac_exeext
  27236. if { (ac_try="$ac_link"
  27237. case "(($ac_try" in
  27238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27239. *) ac_try_echo=$ac_try;;
  27240. esac
  27241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27242. (eval "$ac_link") 2>conftest.er1
  27243. ac_status=$?
  27244. grep -v '^ *+' conftest.er1 >conftest.err
  27245. rm -f conftest.er1
  27246. cat conftest.err >&5
  27247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27248. (exit $ac_status); } && {
  27249. test -z "$ac_c_werror_flag" ||
  27250. test ! -s conftest.err
  27251. } && test -s conftest$ac_exeext &&
  27252. $as_test_x conftest$ac_exeext; then
  27253. eval "$as_ac_var=yes"
  27254. else
  27255. echo "$as_me: failed program was:" >&5
  27256. sed 's/^/| /' conftest.$ac_ext >&5
  27257. eval "$as_ac_var=no"
  27258. fi
  27259. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27260. conftest$ac_exeext conftest.$ac_ext
  27261. fi
  27262. ac_res=`eval echo '${'$as_ac_var'}'`
  27263. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27264. echo "${ECHO_T}$ac_res" >&6; }
  27265. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27266. cat >>confdefs.h <<_ACEOF
  27267. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27268. _ACEOF
  27269. fi
  27270. done
  27271. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  27272. fi
  27273. # Check to see if a reg expr header is specified.
  27274. # Check whether --with-regex-header was given.
  27275. if test "${with_regex_header+set}" = set; then
  27276. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  27277. else
  27278. { echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  27279. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6; }
  27280. if test "${libopts_cv_with_regex_header+set}" = set; then
  27281. echo $ECHO_N "(cached) $ECHO_C" >&6
  27282. else
  27283. libopts_cv_with_regex_header=no
  27284. fi
  27285. { echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  27286. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6; }
  27287. fi
  27288. # end of AC_ARG_WITH
  27289. if test "X${libopts_cv_with_regex_header}" != Xno
  27290. then
  27291. cat >>confdefs.h <<_ACEOF
  27292. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  27293. _ACEOF
  27294. else
  27295. cat >>confdefs.h <<\_ACEOF
  27296. #define REGEX_HEADER <regex.h>
  27297. _ACEOF
  27298. fi
  27299. # Check to see if a working libregex can be found.
  27300. # Check whether --with-libregex was given.
  27301. if test "${with_libregex+set}" = set; then
  27302. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  27303. else
  27304. { echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  27305. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6; }
  27306. if test "${libopts_cv_with_libregex_root+set}" = set; then
  27307. echo $ECHO_N "(cached) $ECHO_C" >&6
  27308. else
  27309. libopts_cv_with_libregex_root=no
  27310. fi
  27311. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  27312. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6; }
  27313. fi
  27314. # end of AC_ARG_WITH libregex
  27315. if test "${with_libguile+set}" = set && \
  27316. test "${withval}" = no
  27317. then ## disabled by request
  27318. libopts_cv_with_libregex_root=no
  27319. libopts_cv_with_libregex_cflags=no
  27320. libopts_cv_with_libregex_libs=no
  27321. else
  27322. # Check whether --with-libregex-cflags was given.
  27323. if test "${with_libregex_cflags+set}" = set; then
  27324. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  27325. else
  27326. { echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  27327. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6; }
  27328. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  27329. echo $ECHO_N "(cached) $ECHO_C" >&6
  27330. else
  27331. libopts_cv_with_libregex_cflags=no
  27332. fi
  27333. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  27334. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6; }
  27335. fi
  27336. # end of AC_ARG_WITH libregex-cflags
  27337. # Check whether --with-libregex-libs was given.
  27338. if test "${with_libregex_libs+set}" = set; then
  27339. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  27340. else
  27341. { echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  27342. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6; }
  27343. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  27344. echo $ECHO_N "(cached) $ECHO_C" >&6
  27345. else
  27346. libopts_cv_with_libregex_libs=no
  27347. fi
  27348. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  27349. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6; }
  27350. fi
  27351. # end of AC_ARG_WITH libregex-libs
  27352. case "X${libopts_cv_with_libregex_cflags}" in
  27353. Xyes|Xno|X )
  27354. case "X${libopts_cv_with_libregex_root}" in
  27355. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  27356. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  27357. esac
  27358. esac
  27359. case "X${libopts_cv_with_libregex_libs}" in
  27360. Xyes|Xno|X )
  27361. case "X${libopts_cv_with_libregex_root}" in
  27362. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  27363. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  27364. esac
  27365. esac
  27366. libopts_save_CPPFLAGS="${CPPFLAGS}"
  27367. libopts_save_LIBS="${LIBS}"
  27368. fi ## disabled by request
  27369. case "X${libopts_cv_with_libregex_cflags}" in
  27370. Xyes|Xno|X )
  27371. libopts_cv_with_libregex_cflags="" ;;
  27372. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  27373. esac
  27374. case "X${libopts_cv_with_libregex_libs}" in
  27375. Xyes|Xno|X )
  27376. libopts_cv_with_libregex_libs="" ;;
  27377. * )
  27378. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  27379. esac
  27380. LIBREGEX_CFLAGS=""
  27381. LIBREGEX_LIBS=""
  27382. { echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  27383. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6; }
  27384. if test "${libopts_cv_with_libregex+set}" = set; then
  27385. echo $ECHO_N "(cached) $ECHO_C" >&6
  27386. else
  27387. if test "$cross_compiling" = yes; then
  27388. libopts_cv_with_libregex=no
  27389. else
  27390. cat >conftest.$ac_ext <<_ACEOF
  27391. /* confdefs.h. */
  27392. _ACEOF
  27393. cat confdefs.h >>conftest.$ac_ext
  27394. cat >>conftest.$ac_ext <<_ACEOF
  27395. /* end confdefs.h. */
  27396. #include <stdio.h>
  27397. #include <stdlib.h>
  27398. #include <sys/types.h>
  27399. #include REGEX_HEADER
  27400. static regex_t re;
  27401. void comp_re( char const* pzPat ) {
  27402. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  27403. if (res == 0) return;
  27404. exit( res ); }
  27405. int main() {
  27406. regmatch_t m[2];
  27407. comp_re( "^.*\$" );
  27408. comp_re( "()|no.*" );
  27409. comp_re( "." );
  27410. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  27411. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  27412. fputs( "error: regex -->.<-- did not match\n", stderr );
  27413. return 1;
  27414. }
  27415. return 0; }
  27416. _ACEOF
  27417. rm -f conftest$ac_exeext
  27418. if { (ac_try="$ac_link"
  27419. case "(($ac_try" in
  27420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27421. *) ac_try_echo=$ac_try;;
  27422. esac
  27423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27424. (eval "$ac_link") 2>&5
  27425. ac_status=$?
  27426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27427. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27428. { (case "(($ac_try" in
  27429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27430. *) ac_try_echo=$ac_try;;
  27431. esac
  27432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27433. (eval "$ac_try") 2>&5
  27434. ac_status=$?
  27435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27436. (exit $ac_status); }; }; then
  27437. libopts_cv_with_libregex=yes
  27438. else
  27439. echo "$as_me: program exited with status $ac_status" >&5
  27440. echo "$as_me: failed program was:" >&5
  27441. sed 's/^/| /' conftest.$ac_ext >&5
  27442. ( exit $ac_status )
  27443. libopts_cv_with_libregex=no
  27444. fi
  27445. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27446. fi
  27447. # end of AC_TRY_RUN
  27448. fi
  27449. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  27450. { echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  27451. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6; }
  27452. if test "X${libopts_cv_with_libregex}" != Xno
  27453. then
  27454. cat >>confdefs.h <<\_ACEOF
  27455. #define WITH_LIBREGEX 1
  27456. _ACEOF
  27457. else
  27458. CPPFLAGS="${libopts_save_CPPFLAGS}"
  27459. LIBS="${libopts_save_LIBS}"
  27460. fi
  27461. # Check to see if pathfind(3) works.
  27462. { echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  27463. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6; }
  27464. if test "${libopts_cv_run_pathfind+set}" = set; then
  27465. echo $ECHO_N "(cached) $ECHO_C" >&6
  27466. else
  27467. if test "$cross_compiling" = yes; then
  27468. libopts_cv_run_pathfind=no
  27469. else
  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. #include <string.h>
  27477. #include <stdlib.h>
  27478. int main (int argc, char** argv) {
  27479. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  27480. return (pz == 0) ? 1 : 0;
  27481. }
  27482. _ACEOF
  27483. rm -f conftest$ac_exeext
  27484. if { (ac_try="$ac_link"
  27485. case "(($ac_try" in
  27486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27487. *) ac_try_echo=$ac_try;;
  27488. esac
  27489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27490. (eval "$ac_link") 2>&5
  27491. ac_status=$?
  27492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27493. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27494. { (case "(($ac_try" in
  27495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27496. *) ac_try_echo=$ac_try;;
  27497. esac
  27498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27499. (eval "$ac_try") 2>&5
  27500. ac_status=$?
  27501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27502. (exit $ac_status); }; }; then
  27503. libopts_cv_run_pathfind=yes
  27504. else
  27505. echo "$as_me: program exited with status $ac_status" >&5
  27506. echo "$as_me: failed program was:" >&5
  27507. sed 's/^/| /' conftest.$ac_ext >&5
  27508. ( exit $ac_status )
  27509. libopts_cv_run_pathfind=no
  27510. fi
  27511. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27512. fi
  27513. # end of TRY_RUN
  27514. fi
  27515. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  27516. { echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  27517. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6; }
  27518. if test "X${libopts_cv_run_pathfind}" != Xno
  27519. then
  27520. cat >>confdefs.h <<\_ACEOF
  27521. #define HAVE_PATHFIND 1
  27522. _ACEOF
  27523. fi
  27524. # Check to see if /dev/zero is readable device.
  27525. { echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  27526. echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6; }
  27527. if test "${libopts_cv_test_dev_zero+set}" = set; then
  27528. echo $ECHO_N "(cached) $ECHO_C" >&6
  27529. else
  27530. libopts_cv_test_dev_zero=`exec 2> /dev/null
  27531. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  27532. test -z "${dzero}" && exit 1
  27533. echo ${dzero}`
  27534. if test $? -ne 0
  27535. then libopts_cv_test_dev_zero=no
  27536. elif test -z "$libopts_cv_test_dev_zero"
  27537. then libopts_cv_test_dev_zero=no
  27538. fi
  27539. fi
  27540. # end of CACHE_VAL of libopts_cv_test_dev_zero
  27541. { echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  27542. echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6; }
  27543. if test "X${libopts_cv_test_dev_zero}" != Xno
  27544. then
  27545. cat >>confdefs.h <<\_ACEOF
  27546. #define HAVE_DEV_ZERO 1
  27547. _ACEOF
  27548. fi
  27549. # Check to see if we have a functional realpath(3C).
  27550. { echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  27551. echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6; }
  27552. if test "${libopts_cv_run_realpath+set}" = set; then
  27553. echo $ECHO_N "(cached) $ECHO_C" >&6
  27554. else
  27555. if test "$cross_compiling" = yes; then
  27556. libopts_cv_run_realpath=no
  27557. else
  27558. cat >conftest.$ac_ext <<_ACEOF
  27559. /* confdefs.h. */
  27560. _ACEOF
  27561. cat confdefs.h >>conftest.$ac_ext
  27562. cat >>conftest.$ac_ext <<_ACEOF
  27563. /* end confdefs.h. */
  27564. #include <limits.h>
  27565. #include <stdlib.h>
  27566. int main (int argc, char** argv) {
  27567. #ifndef PATH_MAX
  27568. choke me!!
  27569. #else
  27570. char zPath[PATH_MAX+1];
  27571. #endif
  27572. char *pz = realpath(argv[0], zPath);
  27573. return (pz == zPath) ? 0 : 1;
  27574. }
  27575. _ACEOF
  27576. rm -f conftest$ac_exeext
  27577. if { (ac_try="$ac_link"
  27578. case "(($ac_try" in
  27579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27580. *) ac_try_echo=$ac_try;;
  27581. esac
  27582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27583. (eval "$ac_link") 2>&5
  27584. ac_status=$?
  27585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27586. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27587. { (case "(($ac_try" in
  27588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27589. *) ac_try_echo=$ac_try;;
  27590. esac
  27591. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27592. (eval "$ac_try") 2>&5
  27593. ac_status=$?
  27594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27595. (exit $ac_status); }; }; then
  27596. libopts_cv_run_realpath=yes
  27597. else
  27598. echo "$as_me: program exited with status $ac_status" >&5
  27599. echo "$as_me: failed program was:" >&5
  27600. sed 's/^/| /' conftest.$ac_ext >&5
  27601. ( exit $ac_status )
  27602. libopts_cv_run_realpath=no
  27603. fi
  27604. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27605. fi
  27606. # end of TRY_RUN
  27607. fi
  27608. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  27609. { echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  27610. echo "${ECHO_T}${libopts_cv_run_realpath}" >&6; }
  27611. if test "X${libopts_cv_run_realpath}" != Xno
  27612. then
  27613. cat >>confdefs.h <<\_ACEOF
  27614. #define HAVE_REALPATH 1
  27615. _ACEOF
  27616. fi
  27617. # Check to see if strftime() works.
  27618. { echo "$as_me:$LINENO: checking whether strftime() works" >&5
  27619. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6; }
  27620. if test "${libopts_cv_run_strftime+set}" = set; then
  27621. echo $ECHO_N "(cached) $ECHO_C" >&6
  27622. else
  27623. if test "$cross_compiling" = yes; then
  27624. libopts_cv_run_strftime=no
  27625. else
  27626. cat >conftest.$ac_ext <<_ACEOF
  27627. /* confdefs.h. */
  27628. _ACEOF
  27629. cat confdefs.h >>conftest.$ac_ext
  27630. cat >>conftest.$ac_ext <<_ACEOF
  27631. /* end confdefs.h. */
  27632. #include <time.h>
  27633. #include <string.h>
  27634. char t_buf[ 64 ];
  27635. int main() {
  27636. static char const z[] = "Thursday Aug 28 240";
  27637. struct tm tm;
  27638. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  27639. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  27640. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  27641. tm.tm_mday = 28; /* day of the month [1, 31] */
  27642. tm.tm_mon = 7; /* months since January [0, 11] */
  27643. tm.tm_year = 86; /* years since 1900 */
  27644. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  27645. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  27646. tm.tm_isdst = 1; /* flag for daylight savings time */
  27647. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  27648. return (strcmp( t_buf, z ) != 0); }
  27649. _ACEOF
  27650. rm -f conftest$ac_exeext
  27651. if { (ac_try="$ac_link"
  27652. case "(($ac_try" in
  27653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27654. *) ac_try_echo=$ac_try;;
  27655. esac
  27656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27657. (eval "$ac_link") 2>&5
  27658. ac_status=$?
  27659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27660. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27661. { (case "(($ac_try" in
  27662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27663. *) ac_try_echo=$ac_try;;
  27664. esac
  27665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27666. (eval "$ac_try") 2>&5
  27667. ac_status=$?
  27668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27669. (exit $ac_status); }; }; then
  27670. libopts_cv_run_strftime=yes
  27671. else
  27672. echo "$as_me: program exited with status $ac_status" >&5
  27673. echo "$as_me: failed program was:" >&5
  27674. sed 's/^/| /' conftest.$ac_ext >&5
  27675. ( exit $ac_status )
  27676. libopts_cv_run_strftime=no
  27677. fi
  27678. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27679. fi
  27680. # end of TRY_RUN
  27681. fi
  27682. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  27683. { echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  27684. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6; }
  27685. if test "X${libopts_cv_run_strftime}" != Xno
  27686. then
  27687. cat >>confdefs.h <<\_ACEOF
  27688. #define HAVE_STRFTIME 1
  27689. _ACEOF
  27690. fi
  27691. # Check to see if fopen accepts "b" mode.
  27692. { echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  27693. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6; }
  27694. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  27695. echo $ECHO_N "(cached) $ECHO_C" >&6
  27696. else
  27697. if test "$cross_compiling" = yes; then
  27698. libopts_cv_run_fopen_binary=no
  27699. else
  27700. cat >conftest.$ac_ext <<_ACEOF
  27701. /* confdefs.h. */
  27702. _ACEOF
  27703. cat confdefs.h >>conftest.$ac_ext
  27704. cat >>conftest.$ac_ext <<_ACEOF
  27705. /* end confdefs.h. */
  27706. #include <stdio.h>
  27707. int main (int argc, char** argv) {
  27708. FILE* fp = fopen("conftest.$ac_ext", "rb");
  27709. return (fp == NULL) ? 1 : fclose(fp); }
  27710. _ACEOF
  27711. rm -f conftest$ac_exeext
  27712. if { (ac_try="$ac_link"
  27713. case "(($ac_try" in
  27714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27715. *) ac_try_echo=$ac_try;;
  27716. esac
  27717. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27718. (eval "$ac_link") 2>&5
  27719. ac_status=$?
  27720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27721. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27722. { (case "(($ac_try" in
  27723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27724. *) ac_try_echo=$ac_try;;
  27725. esac
  27726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27727. (eval "$ac_try") 2>&5
  27728. ac_status=$?
  27729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27730. (exit $ac_status); }; }; then
  27731. libopts_cv_run_fopen_binary=yes
  27732. else
  27733. echo "$as_me: program exited with status $ac_status" >&5
  27734. echo "$as_me: failed program was:" >&5
  27735. sed 's/^/| /' conftest.$ac_ext >&5
  27736. ( exit $ac_status )
  27737. libopts_cv_run_fopen_binary=no
  27738. fi
  27739. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27740. fi
  27741. # end of TRY_RUN
  27742. fi
  27743. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  27744. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  27745. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6; }
  27746. if test "X${libopts_cv_run_fopen_binary}" != Xno
  27747. then
  27748. cat >>confdefs.h <<\_ACEOF
  27749. #define FOPEN_BINARY_FLAG "b"
  27750. _ACEOF
  27751. else
  27752. cat >>confdefs.h <<\_ACEOF
  27753. #define FOPEN_BINARY_FLAG ""
  27754. _ACEOF
  27755. fi
  27756. # Check to see if fopen accepts "t" mode.
  27757. { echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  27758. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6; }
  27759. if test "${libopts_cv_run_fopen_text+set}" = set; then
  27760. echo $ECHO_N "(cached) $ECHO_C" >&6
  27761. else
  27762. if test "$cross_compiling" = yes; then
  27763. libopts_cv_run_fopen_text=no
  27764. else
  27765. cat >conftest.$ac_ext <<_ACEOF
  27766. /* confdefs.h. */
  27767. _ACEOF
  27768. cat confdefs.h >>conftest.$ac_ext
  27769. cat >>conftest.$ac_ext <<_ACEOF
  27770. /* end confdefs.h. */
  27771. #include <stdio.h>
  27772. int main (int argc, char** argv) {
  27773. FILE* fp = fopen("conftest.$ac_ext", "rt");
  27774. return (fp == NULL) ? 1 : fclose(fp); }
  27775. _ACEOF
  27776. rm -f conftest$ac_exeext
  27777. if { (ac_try="$ac_link"
  27778. case "(($ac_try" in
  27779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27780. *) ac_try_echo=$ac_try;;
  27781. esac
  27782. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27783. (eval "$ac_link") 2>&5
  27784. ac_status=$?
  27785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27786. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27787. { (case "(($ac_try" in
  27788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27789. *) ac_try_echo=$ac_try;;
  27790. esac
  27791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27792. (eval "$ac_try") 2>&5
  27793. ac_status=$?
  27794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27795. (exit $ac_status); }; }; then
  27796. libopts_cv_run_fopen_text=yes
  27797. else
  27798. echo "$as_me: program exited with status $ac_status" >&5
  27799. echo "$as_me: failed program was:" >&5
  27800. sed 's/^/| /' conftest.$ac_ext >&5
  27801. ( exit $ac_status )
  27802. libopts_cv_run_fopen_text=no
  27803. fi
  27804. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27805. fi
  27806. # end of TRY_RUN
  27807. fi
  27808. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  27809. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  27810. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6; }
  27811. if test "X${libopts_cv_run_fopen_text}" != Xno
  27812. then
  27813. cat >>confdefs.h <<\_ACEOF
  27814. #define FOPEN_TEXT_FLAG "t"
  27815. _ACEOF
  27816. else
  27817. cat >>confdefs.h <<\_ACEOF
  27818. #define FOPEN_TEXT_FLAG ""
  27819. _ACEOF
  27820. fi
  27821. else
  27822. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  27823. # =================
  27824. # AC_HEADER_STDC
  27825. # =================
  27826. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  27827. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  27828. if test "${ac_cv_header_stdc+set}" = set; then
  27829. echo $ECHO_N "(cached) $ECHO_C" >&6
  27830. else
  27831. cat >conftest.$ac_ext <<_ACEOF
  27832. /* confdefs.h. */
  27833. _ACEOF
  27834. cat confdefs.h >>conftest.$ac_ext
  27835. cat >>conftest.$ac_ext <<_ACEOF
  27836. /* end confdefs.h. */
  27837. #include <stdlib.h>
  27838. #include <stdarg.h>
  27839. #include <string.h>
  27840. #include <float.h>
  27841. int
  27842. main ()
  27843. {
  27844. ;
  27845. return 0;
  27846. }
  27847. _ACEOF
  27848. rm -f conftest.$ac_objext
  27849. if { (ac_try="$ac_compile"
  27850. case "(($ac_try" in
  27851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27852. *) ac_try_echo=$ac_try;;
  27853. esac
  27854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27855. (eval "$ac_compile") 2>conftest.er1
  27856. ac_status=$?
  27857. grep -v '^ *+' conftest.er1 >conftest.err
  27858. rm -f conftest.er1
  27859. cat conftest.err >&5
  27860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27861. (exit $ac_status); } && {
  27862. test -z "$ac_c_werror_flag" ||
  27863. test ! -s conftest.err
  27864. } && test -s conftest.$ac_objext; then
  27865. ac_cv_header_stdc=yes
  27866. else
  27867. echo "$as_me: failed program was:" >&5
  27868. sed 's/^/| /' conftest.$ac_ext >&5
  27869. ac_cv_header_stdc=no
  27870. fi
  27871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27872. if test $ac_cv_header_stdc = yes; then
  27873. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  27874. cat >conftest.$ac_ext <<_ACEOF
  27875. /* confdefs.h. */
  27876. _ACEOF
  27877. cat confdefs.h >>conftest.$ac_ext
  27878. cat >>conftest.$ac_ext <<_ACEOF
  27879. /* end confdefs.h. */
  27880. #include <string.h>
  27881. _ACEOF
  27882. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27883. $EGREP "memchr" >/dev/null 2>&1; then
  27884. :
  27885. else
  27886. ac_cv_header_stdc=no
  27887. fi
  27888. rm -f conftest*
  27889. fi
  27890. if test $ac_cv_header_stdc = yes; then
  27891. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  27892. cat >conftest.$ac_ext <<_ACEOF
  27893. /* confdefs.h. */
  27894. _ACEOF
  27895. cat confdefs.h >>conftest.$ac_ext
  27896. cat >>conftest.$ac_ext <<_ACEOF
  27897. /* end confdefs.h. */
  27898. #include <stdlib.h>
  27899. _ACEOF
  27900. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27901. $EGREP "free" >/dev/null 2>&1; then
  27902. :
  27903. else
  27904. ac_cv_header_stdc=no
  27905. fi
  27906. rm -f conftest*
  27907. fi
  27908. if test $ac_cv_header_stdc = yes; then
  27909. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  27910. if test "$cross_compiling" = yes; then
  27911. :
  27912. else
  27913. cat >conftest.$ac_ext <<_ACEOF
  27914. /* confdefs.h. */
  27915. _ACEOF
  27916. cat confdefs.h >>conftest.$ac_ext
  27917. cat >>conftest.$ac_ext <<_ACEOF
  27918. /* end confdefs.h. */
  27919. #include <ctype.h>
  27920. #include <stdlib.h>
  27921. #if ((' ' & 0x0FF) == 0x020)
  27922. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  27923. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  27924. #else
  27925. # define ISLOWER(c) \
  27926. (('a' <= (c) && (c) <= 'i') \
  27927. || ('j' <= (c) && (c) <= 'r') \
  27928. || ('s' <= (c) && (c) <= 'z'))
  27929. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  27930. #endif
  27931. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  27932. int
  27933. main ()
  27934. {
  27935. int i;
  27936. for (i = 0; i < 256; i++)
  27937. if (XOR (islower (i), ISLOWER (i))
  27938. || toupper (i) != TOUPPER (i))
  27939. return 2;
  27940. return 0;
  27941. }
  27942. _ACEOF
  27943. rm -f conftest$ac_exeext
  27944. if { (ac_try="$ac_link"
  27945. case "(($ac_try" in
  27946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27947. *) ac_try_echo=$ac_try;;
  27948. esac
  27949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27950. (eval "$ac_link") 2>&5
  27951. ac_status=$?
  27952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27953. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27954. { (case "(($ac_try" in
  27955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27956. *) ac_try_echo=$ac_try;;
  27957. esac
  27958. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27959. (eval "$ac_try") 2>&5
  27960. ac_status=$?
  27961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27962. (exit $ac_status); }; }; then
  27963. :
  27964. else
  27965. echo "$as_me: program exited with status $ac_status" >&5
  27966. echo "$as_me: failed program was:" >&5
  27967. sed 's/^/| /' conftest.$ac_ext >&5
  27968. ( exit $ac_status )
  27969. ac_cv_header_stdc=no
  27970. fi
  27971. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27972. fi
  27973. fi
  27974. fi
  27975. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  27976. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  27977. if test $ac_cv_header_stdc = yes; then
  27978. cat >>confdefs.h <<\_ACEOF
  27979. #define STDC_HEADERS 1
  27980. _ACEOF
  27981. fi
  27982. # =================
  27983. # AC_HEADER_DIRENT
  27984. # =================
  27985. ac_header_dirent=no
  27986. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  27987. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  27988. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  27989. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  27990. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27991. echo $ECHO_N "(cached) $ECHO_C" >&6
  27992. else
  27993. cat >conftest.$ac_ext <<_ACEOF
  27994. /* confdefs.h. */
  27995. _ACEOF
  27996. cat confdefs.h >>conftest.$ac_ext
  27997. cat >>conftest.$ac_ext <<_ACEOF
  27998. /* end confdefs.h. */
  27999. #include <sys/types.h>
  28000. #include <$ac_hdr>
  28001. int
  28002. main ()
  28003. {
  28004. if ((DIR *) 0)
  28005. return 0;
  28006. ;
  28007. return 0;
  28008. }
  28009. _ACEOF
  28010. rm -f conftest.$ac_objext
  28011. if { (ac_try="$ac_compile"
  28012. case "(($ac_try" in
  28013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28014. *) ac_try_echo=$ac_try;;
  28015. esac
  28016. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28017. (eval "$ac_compile") 2>conftest.er1
  28018. ac_status=$?
  28019. grep -v '^ *+' conftest.er1 >conftest.err
  28020. rm -f conftest.er1
  28021. cat conftest.err >&5
  28022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28023. (exit $ac_status); } && {
  28024. test -z "$ac_c_werror_flag" ||
  28025. test ! -s conftest.err
  28026. } && test -s conftest.$ac_objext; then
  28027. eval "$as_ac_Header=yes"
  28028. else
  28029. echo "$as_me: failed program was:" >&5
  28030. sed 's/^/| /' conftest.$ac_ext >&5
  28031. eval "$as_ac_Header=no"
  28032. fi
  28033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28034. fi
  28035. ac_res=`eval echo '${'$as_ac_Header'}'`
  28036. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28037. echo "${ECHO_T}$ac_res" >&6; }
  28038. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28039. cat >>confdefs.h <<_ACEOF
  28040. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  28041. _ACEOF
  28042. ac_header_dirent=$ac_hdr; break
  28043. fi
  28044. done
  28045. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  28046. if test $ac_header_dirent = dirent.h; then
  28047. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28048. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28049. if test "${ac_cv_search_opendir+set}" = set; then
  28050. echo $ECHO_N "(cached) $ECHO_C" >&6
  28051. else
  28052. ac_func_search_save_LIBS=$LIBS
  28053. cat >conftest.$ac_ext <<_ACEOF
  28054. /* confdefs.h. */
  28055. _ACEOF
  28056. cat confdefs.h >>conftest.$ac_ext
  28057. cat >>conftest.$ac_ext <<_ACEOF
  28058. /* end confdefs.h. */
  28059. /* Override any GCC internal prototype to avoid an error.
  28060. Use char because int might match the return type of a GCC
  28061. builtin and then its argument prototype would still apply. */
  28062. #ifdef __cplusplus
  28063. extern "C"
  28064. #endif
  28065. char opendir ();
  28066. int
  28067. main ()
  28068. {
  28069. return opendir ();
  28070. ;
  28071. return 0;
  28072. }
  28073. _ACEOF
  28074. for ac_lib in '' dir; do
  28075. if test -z "$ac_lib"; then
  28076. ac_res="none required"
  28077. else
  28078. ac_res=-l$ac_lib
  28079. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28080. fi
  28081. rm -f conftest.$ac_objext conftest$ac_exeext
  28082. if { (ac_try="$ac_link"
  28083. case "(($ac_try" in
  28084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28085. *) ac_try_echo=$ac_try;;
  28086. esac
  28087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28088. (eval "$ac_link") 2>conftest.er1
  28089. ac_status=$?
  28090. grep -v '^ *+' conftest.er1 >conftest.err
  28091. rm -f conftest.er1
  28092. cat conftest.err >&5
  28093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28094. (exit $ac_status); } && {
  28095. test -z "$ac_c_werror_flag" ||
  28096. test ! -s conftest.err
  28097. } && test -s conftest$ac_exeext &&
  28098. $as_test_x conftest$ac_exeext; then
  28099. ac_cv_search_opendir=$ac_res
  28100. else
  28101. echo "$as_me: failed program was:" >&5
  28102. sed 's/^/| /' conftest.$ac_ext >&5
  28103. fi
  28104. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28105. conftest$ac_exeext
  28106. if test "${ac_cv_search_opendir+set}" = set; then
  28107. break
  28108. fi
  28109. done
  28110. if test "${ac_cv_search_opendir+set}" = set; then
  28111. :
  28112. else
  28113. ac_cv_search_opendir=no
  28114. fi
  28115. rm conftest.$ac_ext
  28116. LIBS=$ac_func_search_save_LIBS
  28117. fi
  28118. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28119. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28120. ac_res=$ac_cv_search_opendir
  28121. if test "$ac_res" != no; then
  28122. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28123. fi
  28124. else
  28125. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28126. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28127. if test "${ac_cv_search_opendir+set}" = set; then
  28128. echo $ECHO_N "(cached) $ECHO_C" >&6
  28129. else
  28130. ac_func_search_save_LIBS=$LIBS
  28131. cat >conftest.$ac_ext <<_ACEOF
  28132. /* confdefs.h. */
  28133. _ACEOF
  28134. cat confdefs.h >>conftest.$ac_ext
  28135. cat >>conftest.$ac_ext <<_ACEOF
  28136. /* end confdefs.h. */
  28137. /* Override any GCC internal prototype to avoid an error.
  28138. Use char because int might match the return type of a GCC
  28139. builtin and then its argument prototype would still apply. */
  28140. #ifdef __cplusplus
  28141. extern "C"
  28142. #endif
  28143. char opendir ();
  28144. int
  28145. main ()
  28146. {
  28147. return opendir ();
  28148. ;
  28149. return 0;
  28150. }
  28151. _ACEOF
  28152. for ac_lib in '' x; do
  28153. if test -z "$ac_lib"; then
  28154. ac_res="none required"
  28155. else
  28156. ac_res=-l$ac_lib
  28157. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28158. fi
  28159. rm -f conftest.$ac_objext conftest$ac_exeext
  28160. if { (ac_try="$ac_link"
  28161. case "(($ac_try" in
  28162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28163. *) ac_try_echo=$ac_try;;
  28164. esac
  28165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28166. (eval "$ac_link") 2>conftest.er1
  28167. ac_status=$?
  28168. grep -v '^ *+' conftest.er1 >conftest.err
  28169. rm -f conftest.er1
  28170. cat conftest.err >&5
  28171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28172. (exit $ac_status); } && {
  28173. test -z "$ac_c_werror_flag" ||
  28174. test ! -s conftest.err
  28175. } && test -s conftest$ac_exeext &&
  28176. $as_test_x conftest$ac_exeext; then
  28177. ac_cv_search_opendir=$ac_res
  28178. else
  28179. echo "$as_me: failed program was:" >&5
  28180. sed 's/^/| /' conftest.$ac_ext >&5
  28181. fi
  28182. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28183. conftest$ac_exeext
  28184. if test "${ac_cv_search_opendir+set}" = set; then
  28185. break
  28186. fi
  28187. done
  28188. if test "${ac_cv_search_opendir+set}" = set; then
  28189. :
  28190. else
  28191. ac_cv_search_opendir=no
  28192. fi
  28193. rm conftest.$ac_ext
  28194. LIBS=$ac_func_search_save_LIBS
  28195. fi
  28196. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28197. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28198. ac_res=$ac_cv_search_opendir
  28199. if test "$ac_res" != no; then
  28200. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28201. fi
  28202. fi
  28203. # =================
  28204. # AC_CHECK_HEADERS
  28205. # =================
  28206. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  28207. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  28208. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  28209. utime.h
  28210. do
  28211. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28212. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28213. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28214. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28215. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28216. echo $ECHO_N "(cached) $ECHO_C" >&6
  28217. fi
  28218. ac_res=`eval echo '${'$as_ac_Header'}'`
  28219. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28220. echo "${ECHO_T}$ac_res" >&6; }
  28221. else
  28222. # Is the header compilable?
  28223. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28224. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28225. cat >conftest.$ac_ext <<_ACEOF
  28226. /* confdefs.h. */
  28227. _ACEOF
  28228. cat confdefs.h >>conftest.$ac_ext
  28229. cat >>conftest.$ac_ext <<_ACEOF
  28230. /* end confdefs.h. */
  28231. $ac_includes_default
  28232. #include <$ac_header>
  28233. _ACEOF
  28234. rm -f conftest.$ac_objext
  28235. if { (ac_try="$ac_compile"
  28236. case "(($ac_try" in
  28237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28238. *) ac_try_echo=$ac_try;;
  28239. esac
  28240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28241. (eval "$ac_compile") 2>conftest.er1
  28242. ac_status=$?
  28243. grep -v '^ *+' conftest.er1 >conftest.err
  28244. rm -f conftest.er1
  28245. cat conftest.err >&5
  28246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28247. (exit $ac_status); } && {
  28248. test -z "$ac_c_werror_flag" ||
  28249. test ! -s conftest.err
  28250. } && test -s conftest.$ac_objext; then
  28251. ac_header_compiler=yes
  28252. else
  28253. echo "$as_me: failed program was:" >&5
  28254. sed 's/^/| /' conftest.$ac_ext >&5
  28255. ac_header_compiler=no
  28256. fi
  28257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28258. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28259. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28260. # Is the header present?
  28261. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28262. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28263. cat >conftest.$ac_ext <<_ACEOF
  28264. /* confdefs.h. */
  28265. _ACEOF
  28266. cat confdefs.h >>conftest.$ac_ext
  28267. cat >>conftest.$ac_ext <<_ACEOF
  28268. /* end confdefs.h. */
  28269. #include <$ac_header>
  28270. _ACEOF
  28271. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28272. case "(($ac_try" in
  28273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28274. *) ac_try_echo=$ac_try;;
  28275. esac
  28276. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28277. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28278. ac_status=$?
  28279. grep -v '^ *+' conftest.er1 >conftest.err
  28280. rm -f conftest.er1
  28281. cat conftest.err >&5
  28282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28283. (exit $ac_status); } >/dev/null && {
  28284. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28285. test ! -s conftest.err
  28286. }; then
  28287. ac_header_preproc=yes
  28288. else
  28289. echo "$as_me: failed program was:" >&5
  28290. sed 's/^/| /' conftest.$ac_ext >&5
  28291. ac_header_preproc=no
  28292. fi
  28293. rm -f conftest.err conftest.$ac_ext
  28294. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28295. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28296. # So? What about this header?
  28297. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28298. yes:no: )
  28299. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28300. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28301. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28302. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28303. ac_header_preproc=yes
  28304. ;;
  28305. no:yes:* )
  28306. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28307. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28308. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28309. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28310. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28311. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28312. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28313. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28314. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28315. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28316. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28317. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28318. ;;
  28319. esac
  28320. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28321. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28322. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28323. echo $ECHO_N "(cached) $ECHO_C" >&6
  28324. else
  28325. eval "$as_ac_Header=\$ac_header_preproc"
  28326. fi
  28327. ac_res=`eval echo '${'$as_ac_Header'}'`
  28328. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28329. echo "${ECHO_T}$ac_res" >&6; }
  28330. fi
  28331. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28332. cat >>confdefs.h <<_ACEOF
  28333. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28334. _ACEOF
  28335. fi
  28336. done
  28337. # --------------------------------------------
  28338. # Verify certain entries from AC_CHECK_HEADERS
  28339. # --------------------------------------------
  28340. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  28341. string errno stdlib memory setjmp
  28342. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  28343. test "${as_ac_var}" = set || \
  28344. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  28345. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  28346. { (exit 1); exit 1; }; }
  28347. done
  28348. # ================================================
  28349. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  28350. # if varargs.h is present define HAVE_VARARGS_H.
  28351. # ================================================
  28352. for ac_header in stdarg.h varargs.h
  28353. do
  28354. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28355. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28356. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28357. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28358. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28359. echo $ECHO_N "(cached) $ECHO_C" >&6
  28360. fi
  28361. ac_res=`eval echo '${'$as_ac_Header'}'`
  28362. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28363. echo "${ECHO_T}$ac_res" >&6; }
  28364. else
  28365. # Is the header compilable?
  28366. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28367. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28368. cat >conftest.$ac_ext <<_ACEOF
  28369. /* confdefs.h. */
  28370. _ACEOF
  28371. cat confdefs.h >>conftest.$ac_ext
  28372. cat >>conftest.$ac_ext <<_ACEOF
  28373. /* end confdefs.h. */
  28374. $ac_includes_default
  28375. #include <$ac_header>
  28376. _ACEOF
  28377. rm -f conftest.$ac_objext
  28378. if { (ac_try="$ac_compile"
  28379. case "(($ac_try" in
  28380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28381. *) ac_try_echo=$ac_try;;
  28382. esac
  28383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28384. (eval "$ac_compile") 2>conftest.er1
  28385. ac_status=$?
  28386. grep -v '^ *+' conftest.er1 >conftest.err
  28387. rm -f conftest.er1
  28388. cat conftest.err >&5
  28389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28390. (exit $ac_status); } && {
  28391. test -z "$ac_c_werror_flag" ||
  28392. test ! -s conftest.err
  28393. } && test -s conftest.$ac_objext; then
  28394. ac_header_compiler=yes
  28395. else
  28396. echo "$as_me: failed program was:" >&5
  28397. sed 's/^/| /' conftest.$ac_ext >&5
  28398. ac_header_compiler=no
  28399. fi
  28400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28401. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28402. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28403. # Is the header present?
  28404. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28405. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28406. cat >conftest.$ac_ext <<_ACEOF
  28407. /* confdefs.h. */
  28408. _ACEOF
  28409. cat confdefs.h >>conftest.$ac_ext
  28410. cat >>conftest.$ac_ext <<_ACEOF
  28411. /* end confdefs.h. */
  28412. #include <$ac_header>
  28413. _ACEOF
  28414. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28415. case "(($ac_try" in
  28416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28417. *) ac_try_echo=$ac_try;;
  28418. esac
  28419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28420. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28421. ac_status=$?
  28422. grep -v '^ *+' conftest.er1 >conftest.err
  28423. rm -f conftest.er1
  28424. cat conftest.err >&5
  28425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28426. (exit $ac_status); } >/dev/null && {
  28427. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28428. test ! -s conftest.err
  28429. }; then
  28430. ac_header_preproc=yes
  28431. else
  28432. echo "$as_me: failed program was:" >&5
  28433. sed 's/^/| /' conftest.$ac_ext >&5
  28434. ac_header_preproc=no
  28435. fi
  28436. rm -f conftest.err conftest.$ac_ext
  28437. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28438. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28439. # So? What about this header?
  28440. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28441. yes:no: )
  28442. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28443. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28444. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28445. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28446. ac_header_preproc=yes
  28447. ;;
  28448. no:yes:* )
  28449. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28450. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28451. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28452. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28453. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28454. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28455. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28456. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28457. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28458. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28459. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28460. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28461. ;;
  28462. esac
  28463. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28464. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28465. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28466. echo $ECHO_N "(cached) $ECHO_C" >&6
  28467. else
  28468. eval "$as_ac_Header=\$ac_header_preproc"
  28469. fi
  28470. ac_res=`eval echo '${'$as_ac_Header'}'`
  28471. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28472. echo "${ECHO_T}$ac_res" >&6; }
  28473. fi
  28474. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28475. cat >>confdefs.h <<_ACEOF
  28476. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28477. _ACEOF
  28478. break
  28479. fi
  28480. done
  28481. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  28482. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  28483. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  28484. { (exit 1); exit 1; }; }
  28485. fi
  28486. # ================================================
  28487. # Similarly for the string.h and strings.h headers
  28488. # ================================================
  28489. for ac_header in string.h strings.h
  28490. do
  28491. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28492. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28493. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28494. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28495. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28496. echo $ECHO_N "(cached) $ECHO_C" >&6
  28497. fi
  28498. ac_res=`eval echo '${'$as_ac_Header'}'`
  28499. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28500. echo "${ECHO_T}$ac_res" >&6; }
  28501. else
  28502. # Is the header compilable?
  28503. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28504. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28505. cat >conftest.$ac_ext <<_ACEOF
  28506. /* confdefs.h. */
  28507. _ACEOF
  28508. cat confdefs.h >>conftest.$ac_ext
  28509. cat >>conftest.$ac_ext <<_ACEOF
  28510. /* end confdefs.h. */
  28511. $ac_includes_default
  28512. #include <$ac_header>
  28513. _ACEOF
  28514. rm -f conftest.$ac_objext
  28515. if { (ac_try="$ac_compile"
  28516. case "(($ac_try" in
  28517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28518. *) ac_try_echo=$ac_try;;
  28519. esac
  28520. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28521. (eval "$ac_compile") 2>conftest.er1
  28522. ac_status=$?
  28523. grep -v '^ *+' conftest.er1 >conftest.err
  28524. rm -f conftest.er1
  28525. cat conftest.err >&5
  28526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28527. (exit $ac_status); } && {
  28528. test -z "$ac_c_werror_flag" ||
  28529. test ! -s conftest.err
  28530. } && test -s conftest.$ac_objext; then
  28531. ac_header_compiler=yes
  28532. else
  28533. echo "$as_me: failed program was:" >&5
  28534. sed 's/^/| /' conftest.$ac_ext >&5
  28535. ac_header_compiler=no
  28536. fi
  28537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28538. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28539. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28540. # Is the header present?
  28541. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28542. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28543. cat >conftest.$ac_ext <<_ACEOF
  28544. /* confdefs.h. */
  28545. _ACEOF
  28546. cat confdefs.h >>conftest.$ac_ext
  28547. cat >>conftest.$ac_ext <<_ACEOF
  28548. /* end confdefs.h. */
  28549. #include <$ac_header>
  28550. _ACEOF
  28551. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28552. case "(($ac_try" in
  28553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28554. *) ac_try_echo=$ac_try;;
  28555. esac
  28556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28557. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28558. ac_status=$?
  28559. grep -v '^ *+' conftest.er1 >conftest.err
  28560. rm -f conftest.er1
  28561. cat conftest.err >&5
  28562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28563. (exit $ac_status); } >/dev/null && {
  28564. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28565. test ! -s conftest.err
  28566. }; then
  28567. ac_header_preproc=yes
  28568. else
  28569. echo "$as_me: failed program was:" >&5
  28570. sed 's/^/| /' conftest.$ac_ext >&5
  28571. ac_header_preproc=no
  28572. fi
  28573. rm -f conftest.err conftest.$ac_ext
  28574. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28575. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28576. # So? What about this header?
  28577. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28578. yes:no: )
  28579. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28580. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28581. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28582. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28583. ac_header_preproc=yes
  28584. ;;
  28585. no:yes:* )
  28586. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28587. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28588. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28589. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28590. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28591. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28592. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28593. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28594. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28595. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28596. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28597. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28598. ;;
  28599. esac
  28600. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28601. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28602. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28603. echo $ECHO_N "(cached) $ECHO_C" >&6
  28604. else
  28605. eval "$as_ac_Header=\$ac_header_preproc"
  28606. fi
  28607. ac_res=`eval echo '${'$as_ac_Header'}'`
  28608. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28609. echo "${ECHO_T}$ac_res" >&6; }
  28610. fi
  28611. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28612. cat >>confdefs.h <<_ACEOF
  28613. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28614. _ACEOF
  28615. break
  28616. fi
  28617. done
  28618. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  28619. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  28620. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  28621. { (exit 1); exit 1; }; }
  28622. fi
  28623. # =====================
  28624. # ...and limits headers
  28625. # =====================
  28626. for ac_header in limits.h sys/limits.h values.h
  28627. do
  28628. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28629. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28630. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28631. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28632. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28633. echo $ECHO_N "(cached) $ECHO_C" >&6
  28634. fi
  28635. ac_res=`eval echo '${'$as_ac_Header'}'`
  28636. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28637. echo "${ECHO_T}$ac_res" >&6; }
  28638. else
  28639. # Is the header compilable?
  28640. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28641. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28642. cat >conftest.$ac_ext <<_ACEOF
  28643. /* confdefs.h. */
  28644. _ACEOF
  28645. cat confdefs.h >>conftest.$ac_ext
  28646. cat >>conftest.$ac_ext <<_ACEOF
  28647. /* end confdefs.h. */
  28648. $ac_includes_default
  28649. #include <$ac_header>
  28650. _ACEOF
  28651. rm -f conftest.$ac_objext
  28652. if { (ac_try="$ac_compile"
  28653. case "(($ac_try" in
  28654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28655. *) ac_try_echo=$ac_try;;
  28656. esac
  28657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28658. (eval "$ac_compile") 2>conftest.er1
  28659. ac_status=$?
  28660. grep -v '^ *+' conftest.er1 >conftest.err
  28661. rm -f conftest.er1
  28662. cat conftest.err >&5
  28663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28664. (exit $ac_status); } && {
  28665. test -z "$ac_c_werror_flag" ||
  28666. test ! -s conftest.err
  28667. } && test -s conftest.$ac_objext; then
  28668. ac_header_compiler=yes
  28669. else
  28670. echo "$as_me: failed program was:" >&5
  28671. sed 's/^/| /' conftest.$ac_ext >&5
  28672. ac_header_compiler=no
  28673. fi
  28674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28675. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28676. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28677. # Is the header present?
  28678. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28679. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28680. cat >conftest.$ac_ext <<_ACEOF
  28681. /* confdefs.h. */
  28682. _ACEOF
  28683. cat confdefs.h >>conftest.$ac_ext
  28684. cat >>conftest.$ac_ext <<_ACEOF
  28685. /* end confdefs.h. */
  28686. #include <$ac_header>
  28687. _ACEOF
  28688. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28689. case "(($ac_try" in
  28690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28691. *) ac_try_echo=$ac_try;;
  28692. esac
  28693. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28694. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28695. ac_status=$?
  28696. grep -v '^ *+' conftest.er1 >conftest.err
  28697. rm -f conftest.er1
  28698. cat conftest.err >&5
  28699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28700. (exit $ac_status); } >/dev/null && {
  28701. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28702. test ! -s conftest.err
  28703. }; then
  28704. ac_header_preproc=yes
  28705. else
  28706. echo "$as_me: failed program was:" >&5
  28707. sed 's/^/| /' conftest.$ac_ext >&5
  28708. ac_header_preproc=no
  28709. fi
  28710. rm -f conftest.err conftest.$ac_ext
  28711. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28712. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28713. # So? What about this header?
  28714. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28715. yes:no: )
  28716. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28717. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28718. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28719. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28720. ac_header_preproc=yes
  28721. ;;
  28722. no:yes:* )
  28723. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28724. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28725. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28726. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28727. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28728. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28729. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28730. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28731. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28732. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28733. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28734. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28735. ;;
  28736. esac
  28737. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28738. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28739. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28740. echo $ECHO_N "(cached) $ECHO_C" >&6
  28741. else
  28742. eval "$as_ac_Header=\$ac_header_preproc"
  28743. fi
  28744. ac_res=`eval echo '${'$as_ac_Header'}'`
  28745. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28746. echo "${ECHO_T}$ac_res" >&6; }
  28747. fi
  28748. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28749. cat >>confdefs.h <<_ACEOF
  28750. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28751. _ACEOF
  28752. break
  28753. fi
  28754. done
  28755. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  28756. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  28757. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  28758. { (exit 1); exit 1; }; }
  28759. fi
  28760. # ========================
  28761. # ...and int types headers
  28762. # ========================
  28763. for ac_header in stdint.h inttypes.h
  28764. do
  28765. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28766. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28767. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28768. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28769. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28770. echo $ECHO_N "(cached) $ECHO_C" >&6
  28771. fi
  28772. ac_res=`eval echo '${'$as_ac_Header'}'`
  28773. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28774. echo "${ECHO_T}$ac_res" >&6; }
  28775. else
  28776. # Is the header compilable?
  28777. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28778. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28779. cat >conftest.$ac_ext <<_ACEOF
  28780. /* confdefs.h. */
  28781. _ACEOF
  28782. cat confdefs.h >>conftest.$ac_ext
  28783. cat >>conftest.$ac_ext <<_ACEOF
  28784. /* end confdefs.h. */
  28785. $ac_includes_default
  28786. #include <$ac_header>
  28787. _ACEOF
  28788. rm -f conftest.$ac_objext
  28789. if { (ac_try="$ac_compile"
  28790. case "(($ac_try" in
  28791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28792. *) ac_try_echo=$ac_try;;
  28793. esac
  28794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28795. (eval "$ac_compile") 2>conftest.er1
  28796. ac_status=$?
  28797. grep -v '^ *+' conftest.er1 >conftest.err
  28798. rm -f conftest.er1
  28799. cat conftest.err >&5
  28800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28801. (exit $ac_status); } && {
  28802. test -z "$ac_c_werror_flag" ||
  28803. test ! -s conftest.err
  28804. } && test -s conftest.$ac_objext; then
  28805. ac_header_compiler=yes
  28806. else
  28807. echo "$as_me: failed program was:" >&5
  28808. sed 's/^/| /' conftest.$ac_ext >&5
  28809. ac_header_compiler=no
  28810. fi
  28811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28812. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28813. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28814. # Is the header present?
  28815. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28816. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28817. cat >conftest.$ac_ext <<_ACEOF
  28818. /* confdefs.h. */
  28819. _ACEOF
  28820. cat confdefs.h >>conftest.$ac_ext
  28821. cat >>conftest.$ac_ext <<_ACEOF
  28822. /* end confdefs.h. */
  28823. #include <$ac_header>
  28824. _ACEOF
  28825. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28826. case "(($ac_try" in
  28827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28828. *) ac_try_echo=$ac_try;;
  28829. esac
  28830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28831. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28832. ac_status=$?
  28833. grep -v '^ *+' conftest.er1 >conftest.err
  28834. rm -f conftest.er1
  28835. cat conftest.err >&5
  28836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28837. (exit $ac_status); } >/dev/null && {
  28838. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28839. test ! -s conftest.err
  28840. }; then
  28841. ac_header_preproc=yes
  28842. else
  28843. echo "$as_me: failed program was:" >&5
  28844. sed 's/^/| /' conftest.$ac_ext >&5
  28845. ac_header_preproc=no
  28846. fi
  28847. rm -f conftest.err conftest.$ac_ext
  28848. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28849. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28850. # So? What about this header?
  28851. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28852. yes:no: )
  28853. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28854. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28855. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28856. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28857. ac_header_preproc=yes
  28858. ;;
  28859. no:yes:* )
  28860. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28861. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28862. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28863. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28864. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28865. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28866. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28867. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28868. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28869. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28870. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28871. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28872. ;;
  28873. esac
  28874. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28875. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28876. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28877. echo $ECHO_N "(cached) $ECHO_C" >&6
  28878. else
  28879. eval "$as_ac_Header=\$ac_header_preproc"
  28880. fi
  28881. ac_res=`eval echo '${'$as_ac_Header'}'`
  28882. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28883. echo "${ECHO_T}$ac_res" >&6; }
  28884. fi
  28885. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28886. cat >>confdefs.h <<_ACEOF
  28887. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28888. _ACEOF
  28889. break
  28890. fi
  28891. done
  28892. { echo "$as_me:$LINENO: checking for int8_t" >&5
  28893. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  28894. if test "${ac_cv_type_int8_t+set}" = set; then
  28895. echo $ECHO_N "(cached) $ECHO_C" >&6
  28896. else
  28897. cat >conftest.$ac_ext <<_ACEOF
  28898. /* confdefs.h. */
  28899. _ACEOF
  28900. cat confdefs.h >>conftest.$ac_ext
  28901. cat >>conftest.$ac_ext <<_ACEOF
  28902. /* end confdefs.h. */
  28903. $ac_includes_default
  28904. typedef int8_t ac__type_new_;
  28905. int
  28906. main ()
  28907. {
  28908. if ((ac__type_new_ *) 0)
  28909. return 0;
  28910. if (sizeof (ac__type_new_))
  28911. return 0;
  28912. ;
  28913. return 0;
  28914. }
  28915. _ACEOF
  28916. rm -f conftest.$ac_objext
  28917. if { (ac_try="$ac_compile"
  28918. case "(($ac_try" in
  28919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28920. *) ac_try_echo=$ac_try;;
  28921. esac
  28922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28923. (eval "$ac_compile") 2>conftest.er1
  28924. ac_status=$?
  28925. grep -v '^ *+' conftest.er1 >conftest.err
  28926. rm -f conftest.er1
  28927. cat conftest.err >&5
  28928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28929. (exit $ac_status); } && {
  28930. test -z "$ac_c_werror_flag" ||
  28931. test ! -s conftest.err
  28932. } && test -s conftest.$ac_objext; then
  28933. ac_cv_type_int8_t=yes
  28934. else
  28935. echo "$as_me: failed program was:" >&5
  28936. sed 's/^/| /' conftest.$ac_ext >&5
  28937. ac_cv_type_int8_t=no
  28938. fi
  28939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28940. fi
  28941. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  28942. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  28943. if test $ac_cv_type_int8_t = yes; then
  28944. cat >>confdefs.h <<_ACEOF
  28945. #define HAVE_INT8_T 1
  28946. _ACEOF
  28947. fi
  28948. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  28949. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  28950. if test "${ac_cv_type_uint8_t+set}" = set; then
  28951. echo $ECHO_N "(cached) $ECHO_C" >&6
  28952. else
  28953. cat >conftest.$ac_ext <<_ACEOF
  28954. /* confdefs.h. */
  28955. _ACEOF
  28956. cat confdefs.h >>conftest.$ac_ext
  28957. cat >>conftest.$ac_ext <<_ACEOF
  28958. /* end confdefs.h. */
  28959. $ac_includes_default
  28960. typedef uint8_t ac__type_new_;
  28961. int
  28962. main ()
  28963. {
  28964. if ((ac__type_new_ *) 0)
  28965. return 0;
  28966. if (sizeof (ac__type_new_))
  28967. return 0;
  28968. ;
  28969. return 0;
  28970. }
  28971. _ACEOF
  28972. rm -f conftest.$ac_objext
  28973. if { (ac_try="$ac_compile"
  28974. case "(($ac_try" in
  28975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28976. *) ac_try_echo=$ac_try;;
  28977. esac
  28978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28979. (eval "$ac_compile") 2>conftest.er1
  28980. ac_status=$?
  28981. grep -v '^ *+' conftest.er1 >conftest.err
  28982. rm -f conftest.er1
  28983. cat conftest.err >&5
  28984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28985. (exit $ac_status); } && {
  28986. test -z "$ac_c_werror_flag" ||
  28987. test ! -s conftest.err
  28988. } && test -s conftest.$ac_objext; then
  28989. ac_cv_type_uint8_t=yes
  28990. else
  28991. echo "$as_me: failed program was:" >&5
  28992. sed 's/^/| /' conftest.$ac_ext >&5
  28993. ac_cv_type_uint8_t=no
  28994. fi
  28995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28996. fi
  28997. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  28998. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  28999. if test $ac_cv_type_uint8_t = yes; then
  29000. cat >>confdefs.h <<_ACEOF
  29001. #define HAVE_UINT8_T 1
  29002. _ACEOF
  29003. fi
  29004. { echo "$as_me:$LINENO: checking for int16_t" >&5
  29005. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  29006. if test "${ac_cv_type_int16_t+set}" = set; then
  29007. echo $ECHO_N "(cached) $ECHO_C" >&6
  29008. else
  29009. cat >conftest.$ac_ext <<_ACEOF
  29010. /* confdefs.h. */
  29011. _ACEOF
  29012. cat confdefs.h >>conftest.$ac_ext
  29013. cat >>conftest.$ac_ext <<_ACEOF
  29014. /* end confdefs.h. */
  29015. $ac_includes_default
  29016. typedef int16_t ac__type_new_;
  29017. int
  29018. main ()
  29019. {
  29020. if ((ac__type_new_ *) 0)
  29021. return 0;
  29022. if (sizeof (ac__type_new_))
  29023. return 0;
  29024. ;
  29025. return 0;
  29026. }
  29027. _ACEOF
  29028. rm -f conftest.$ac_objext
  29029. if { (ac_try="$ac_compile"
  29030. case "(($ac_try" in
  29031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29032. *) ac_try_echo=$ac_try;;
  29033. esac
  29034. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29035. (eval "$ac_compile") 2>conftest.er1
  29036. ac_status=$?
  29037. grep -v '^ *+' conftest.er1 >conftest.err
  29038. rm -f conftest.er1
  29039. cat conftest.err >&5
  29040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29041. (exit $ac_status); } && {
  29042. test -z "$ac_c_werror_flag" ||
  29043. test ! -s conftest.err
  29044. } && test -s conftest.$ac_objext; then
  29045. ac_cv_type_int16_t=yes
  29046. else
  29047. echo "$as_me: failed program was:" >&5
  29048. sed 's/^/| /' conftest.$ac_ext >&5
  29049. ac_cv_type_int16_t=no
  29050. fi
  29051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29052. fi
  29053. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  29054. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  29055. if test $ac_cv_type_int16_t = yes; then
  29056. cat >>confdefs.h <<_ACEOF
  29057. #define HAVE_INT16_T 1
  29058. _ACEOF
  29059. fi
  29060. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  29061. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  29062. if test "${ac_cv_type_uint16_t+set}" = set; then
  29063. echo $ECHO_N "(cached) $ECHO_C" >&6
  29064. else
  29065. cat >conftest.$ac_ext <<_ACEOF
  29066. /* confdefs.h. */
  29067. _ACEOF
  29068. cat confdefs.h >>conftest.$ac_ext
  29069. cat >>conftest.$ac_ext <<_ACEOF
  29070. /* end confdefs.h. */
  29071. $ac_includes_default
  29072. typedef uint16_t ac__type_new_;
  29073. int
  29074. main ()
  29075. {
  29076. if ((ac__type_new_ *) 0)
  29077. return 0;
  29078. if (sizeof (ac__type_new_))
  29079. return 0;
  29080. ;
  29081. return 0;
  29082. }
  29083. _ACEOF
  29084. rm -f conftest.$ac_objext
  29085. if { (ac_try="$ac_compile"
  29086. case "(($ac_try" in
  29087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29088. *) ac_try_echo=$ac_try;;
  29089. esac
  29090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29091. (eval "$ac_compile") 2>conftest.er1
  29092. ac_status=$?
  29093. grep -v '^ *+' conftest.er1 >conftest.err
  29094. rm -f conftest.er1
  29095. cat conftest.err >&5
  29096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29097. (exit $ac_status); } && {
  29098. test -z "$ac_c_werror_flag" ||
  29099. test ! -s conftest.err
  29100. } && test -s conftest.$ac_objext; then
  29101. ac_cv_type_uint16_t=yes
  29102. else
  29103. echo "$as_me: failed program was:" >&5
  29104. sed 's/^/| /' conftest.$ac_ext >&5
  29105. ac_cv_type_uint16_t=no
  29106. fi
  29107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29108. fi
  29109. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  29110. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  29111. if test $ac_cv_type_uint16_t = yes; then
  29112. cat >>confdefs.h <<_ACEOF
  29113. #define HAVE_UINT16_T 1
  29114. _ACEOF
  29115. fi
  29116. { echo "$as_me:$LINENO: checking for int32_t" >&5
  29117. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  29118. if test "${ac_cv_type_int32_t+set}" = set; then
  29119. echo $ECHO_N "(cached) $ECHO_C" >&6
  29120. else
  29121. cat >conftest.$ac_ext <<_ACEOF
  29122. /* confdefs.h. */
  29123. _ACEOF
  29124. cat confdefs.h >>conftest.$ac_ext
  29125. cat >>conftest.$ac_ext <<_ACEOF
  29126. /* end confdefs.h. */
  29127. $ac_includes_default
  29128. typedef int32_t ac__type_new_;
  29129. int
  29130. main ()
  29131. {
  29132. if ((ac__type_new_ *) 0)
  29133. return 0;
  29134. if (sizeof (ac__type_new_))
  29135. return 0;
  29136. ;
  29137. return 0;
  29138. }
  29139. _ACEOF
  29140. rm -f conftest.$ac_objext
  29141. if { (ac_try="$ac_compile"
  29142. case "(($ac_try" in
  29143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29144. *) ac_try_echo=$ac_try;;
  29145. esac
  29146. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29147. (eval "$ac_compile") 2>conftest.er1
  29148. ac_status=$?
  29149. grep -v '^ *+' conftest.er1 >conftest.err
  29150. rm -f conftest.er1
  29151. cat conftest.err >&5
  29152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29153. (exit $ac_status); } && {
  29154. test -z "$ac_c_werror_flag" ||
  29155. test ! -s conftest.err
  29156. } && test -s conftest.$ac_objext; then
  29157. ac_cv_type_int32_t=yes
  29158. else
  29159. echo "$as_me: failed program was:" >&5
  29160. sed 's/^/| /' conftest.$ac_ext >&5
  29161. ac_cv_type_int32_t=no
  29162. fi
  29163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29164. fi
  29165. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  29166. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  29167. if test $ac_cv_type_int32_t = yes; then
  29168. cat >>confdefs.h <<_ACEOF
  29169. #define HAVE_INT32_T 1
  29170. _ACEOF
  29171. fi
  29172. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  29173. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  29174. if test "${ac_cv_type_uint32_t+set}" = set; then
  29175. echo $ECHO_N "(cached) $ECHO_C" >&6
  29176. else
  29177. cat >conftest.$ac_ext <<_ACEOF
  29178. /* confdefs.h. */
  29179. _ACEOF
  29180. cat confdefs.h >>conftest.$ac_ext
  29181. cat >>conftest.$ac_ext <<_ACEOF
  29182. /* end confdefs.h. */
  29183. $ac_includes_default
  29184. typedef uint32_t ac__type_new_;
  29185. int
  29186. main ()
  29187. {
  29188. if ((ac__type_new_ *) 0)
  29189. return 0;
  29190. if (sizeof (ac__type_new_))
  29191. return 0;
  29192. ;
  29193. return 0;
  29194. }
  29195. _ACEOF
  29196. rm -f conftest.$ac_objext
  29197. if { (ac_try="$ac_compile"
  29198. case "(($ac_try" in
  29199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29200. *) ac_try_echo=$ac_try;;
  29201. esac
  29202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29203. (eval "$ac_compile") 2>conftest.er1
  29204. ac_status=$?
  29205. grep -v '^ *+' conftest.er1 >conftest.err
  29206. rm -f conftest.er1
  29207. cat conftest.err >&5
  29208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29209. (exit $ac_status); } && {
  29210. test -z "$ac_c_werror_flag" ||
  29211. test ! -s conftest.err
  29212. } && test -s conftest.$ac_objext; then
  29213. ac_cv_type_uint32_t=yes
  29214. else
  29215. echo "$as_me: failed program was:" >&5
  29216. sed 's/^/| /' conftest.$ac_ext >&5
  29217. ac_cv_type_uint32_t=no
  29218. fi
  29219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29220. fi
  29221. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  29222. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  29223. if test $ac_cv_type_uint32_t = yes; then
  29224. cat >>confdefs.h <<_ACEOF
  29225. #define HAVE_UINT32_T 1
  29226. _ACEOF
  29227. fi
  29228. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  29229. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  29230. if test "${ac_cv_type_intptr_t+set}" = set; then
  29231. echo $ECHO_N "(cached) $ECHO_C" >&6
  29232. else
  29233. cat >conftest.$ac_ext <<_ACEOF
  29234. /* confdefs.h. */
  29235. _ACEOF
  29236. cat confdefs.h >>conftest.$ac_ext
  29237. cat >>conftest.$ac_ext <<_ACEOF
  29238. /* end confdefs.h. */
  29239. $ac_includes_default
  29240. typedef intptr_t ac__type_new_;
  29241. int
  29242. main ()
  29243. {
  29244. if ((ac__type_new_ *) 0)
  29245. return 0;
  29246. if (sizeof (ac__type_new_))
  29247. return 0;
  29248. ;
  29249. return 0;
  29250. }
  29251. _ACEOF
  29252. rm -f conftest.$ac_objext
  29253. if { (ac_try="$ac_compile"
  29254. case "(($ac_try" in
  29255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29256. *) ac_try_echo=$ac_try;;
  29257. esac
  29258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29259. (eval "$ac_compile") 2>conftest.er1
  29260. ac_status=$?
  29261. grep -v '^ *+' conftest.er1 >conftest.err
  29262. rm -f conftest.er1
  29263. cat conftest.err >&5
  29264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29265. (exit $ac_status); } && {
  29266. test -z "$ac_c_werror_flag" ||
  29267. test ! -s conftest.err
  29268. } && test -s conftest.$ac_objext; then
  29269. ac_cv_type_intptr_t=yes
  29270. else
  29271. echo "$as_me: failed program was:" >&5
  29272. sed 's/^/| /' conftest.$ac_ext >&5
  29273. ac_cv_type_intptr_t=no
  29274. fi
  29275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29276. fi
  29277. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  29278. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  29279. if test $ac_cv_type_intptr_t = yes; then
  29280. cat >>confdefs.h <<_ACEOF
  29281. #define HAVE_INTPTR_T 1
  29282. _ACEOF
  29283. fi
  29284. { echo "$as_me:$LINENO: checking for uint_t" >&5
  29285. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  29286. if test "${ac_cv_type_uint_t+set}" = set; then
  29287. echo $ECHO_N "(cached) $ECHO_C" >&6
  29288. else
  29289. cat >conftest.$ac_ext <<_ACEOF
  29290. /* confdefs.h. */
  29291. _ACEOF
  29292. cat confdefs.h >>conftest.$ac_ext
  29293. cat >>conftest.$ac_ext <<_ACEOF
  29294. /* end confdefs.h. */
  29295. $ac_includes_default
  29296. typedef uint_t ac__type_new_;
  29297. int
  29298. main ()
  29299. {
  29300. if ((ac__type_new_ *) 0)
  29301. return 0;
  29302. if (sizeof (ac__type_new_))
  29303. return 0;
  29304. ;
  29305. return 0;
  29306. }
  29307. _ACEOF
  29308. rm -f conftest.$ac_objext
  29309. if { (ac_try="$ac_compile"
  29310. case "(($ac_try" in
  29311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29312. *) ac_try_echo=$ac_try;;
  29313. esac
  29314. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29315. (eval "$ac_compile") 2>conftest.er1
  29316. ac_status=$?
  29317. grep -v '^ *+' conftest.er1 >conftest.err
  29318. rm -f conftest.er1
  29319. cat conftest.err >&5
  29320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29321. (exit $ac_status); } && {
  29322. test -z "$ac_c_werror_flag" ||
  29323. test ! -s conftest.err
  29324. } && test -s conftest.$ac_objext; then
  29325. ac_cv_type_uint_t=yes
  29326. else
  29327. echo "$as_me: failed program was:" >&5
  29328. sed 's/^/| /' conftest.$ac_ext >&5
  29329. ac_cv_type_uint_t=no
  29330. fi
  29331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29332. fi
  29333. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  29334. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  29335. if test $ac_cv_type_uint_t = yes; then
  29336. cat >>confdefs.h <<_ACEOF
  29337. #define HAVE_UINT_T 1
  29338. _ACEOF
  29339. fi
  29340. # ====================
  29341. # uintptr type & sizes
  29342. # ====================
  29343. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  29344. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  29345. if test "${ac_cv_type_uintptr_t+set}" = set; then
  29346. echo $ECHO_N "(cached) $ECHO_C" >&6
  29347. else
  29348. cat >conftest.$ac_ext <<_ACEOF
  29349. /* confdefs.h. */
  29350. _ACEOF
  29351. cat confdefs.h >>conftest.$ac_ext
  29352. cat >>conftest.$ac_ext <<_ACEOF
  29353. /* end confdefs.h. */
  29354. $ac_includes_default
  29355. typedef uintptr_t ac__type_new_;
  29356. int
  29357. main ()
  29358. {
  29359. if ((ac__type_new_ *) 0)
  29360. return 0;
  29361. if (sizeof (ac__type_new_))
  29362. return 0;
  29363. ;
  29364. return 0;
  29365. }
  29366. _ACEOF
  29367. rm -f conftest.$ac_objext
  29368. if { (ac_try="$ac_compile"
  29369. case "(($ac_try" in
  29370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29371. *) ac_try_echo=$ac_try;;
  29372. esac
  29373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29374. (eval "$ac_compile") 2>conftest.er1
  29375. ac_status=$?
  29376. grep -v '^ *+' conftest.er1 >conftest.err
  29377. rm -f conftest.er1
  29378. cat conftest.err >&5
  29379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29380. (exit $ac_status); } && {
  29381. test -z "$ac_c_werror_flag" ||
  29382. test ! -s conftest.err
  29383. } && test -s conftest.$ac_objext; then
  29384. ac_cv_type_uintptr_t=yes
  29385. else
  29386. echo "$as_me: failed program was:" >&5
  29387. sed 's/^/| /' conftest.$ac_ext >&5
  29388. ac_cv_type_uintptr_t=no
  29389. fi
  29390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29391. fi
  29392. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  29393. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  29394. if test $ac_cv_type_uintptr_t = yes; then
  29395. cat >>confdefs.h <<_ACEOF
  29396. #define HAVE_UINTPTR_T 1
  29397. _ACEOF
  29398. else
  29399. cat >>confdefs.h <<\_ACEOF
  29400. #define uintptr_t unsigned long
  29401. _ACEOF
  29402. fi
  29403. { echo "$as_me:$LINENO: checking for char*" >&5
  29404. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  29405. if test "${ac_cv_type_charp+set}" = set; then
  29406. echo $ECHO_N "(cached) $ECHO_C" >&6
  29407. else
  29408. cat >conftest.$ac_ext <<_ACEOF
  29409. /* confdefs.h. */
  29410. _ACEOF
  29411. cat confdefs.h >>conftest.$ac_ext
  29412. cat >>conftest.$ac_ext <<_ACEOF
  29413. /* end confdefs.h. */
  29414. $ac_includes_default
  29415. typedef char* ac__type_new_;
  29416. int
  29417. main ()
  29418. {
  29419. if ((ac__type_new_ *) 0)
  29420. return 0;
  29421. if (sizeof (ac__type_new_))
  29422. return 0;
  29423. ;
  29424. return 0;
  29425. }
  29426. _ACEOF
  29427. rm -f conftest.$ac_objext
  29428. if { (ac_try="$ac_compile"
  29429. case "(($ac_try" in
  29430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29431. *) ac_try_echo=$ac_try;;
  29432. esac
  29433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29434. (eval "$ac_compile") 2>conftest.er1
  29435. ac_status=$?
  29436. grep -v '^ *+' conftest.er1 >conftest.err
  29437. rm -f conftest.er1
  29438. cat conftest.err >&5
  29439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29440. (exit $ac_status); } && {
  29441. test -z "$ac_c_werror_flag" ||
  29442. test ! -s conftest.err
  29443. } && test -s conftest.$ac_objext; then
  29444. ac_cv_type_charp=yes
  29445. else
  29446. echo "$as_me: failed program was:" >&5
  29447. sed 's/^/| /' conftest.$ac_ext >&5
  29448. ac_cv_type_charp=no
  29449. fi
  29450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29451. fi
  29452. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  29453. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  29454. # The cast to long int works around a bug in the HP C Compiler
  29455. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29456. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29457. # This bug is HP SR number 8606223364.
  29458. { echo "$as_me:$LINENO: checking size of char*" >&5
  29459. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  29460. if test "${ac_cv_sizeof_charp+set}" = set; then
  29461. echo $ECHO_N "(cached) $ECHO_C" >&6
  29462. else
  29463. if test "$cross_compiling" = yes; then
  29464. # Depending upon the size, compute the lo and hi bounds.
  29465. cat >conftest.$ac_ext <<_ACEOF
  29466. /* confdefs.h. */
  29467. _ACEOF
  29468. cat confdefs.h >>conftest.$ac_ext
  29469. cat >>conftest.$ac_ext <<_ACEOF
  29470. /* end confdefs.h. */
  29471. $ac_includes_default
  29472. typedef char* ac__type_sizeof_;
  29473. int
  29474. main ()
  29475. {
  29476. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  29477. test_array [0] = 0
  29478. ;
  29479. return 0;
  29480. }
  29481. _ACEOF
  29482. rm -f conftest.$ac_objext
  29483. if { (ac_try="$ac_compile"
  29484. case "(($ac_try" in
  29485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29486. *) ac_try_echo=$ac_try;;
  29487. esac
  29488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29489. (eval "$ac_compile") 2>conftest.er1
  29490. ac_status=$?
  29491. grep -v '^ *+' conftest.er1 >conftest.err
  29492. rm -f conftest.er1
  29493. cat conftest.err >&5
  29494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29495. (exit $ac_status); } && {
  29496. test -z "$ac_c_werror_flag" ||
  29497. test ! -s conftest.err
  29498. } && test -s conftest.$ac_objext; then
  29499. ac_lo=0 ac_mid=0
  29500. while :; do
  29501. cat >conftest.$ac_ext <<_ACEOF
  29502. /* confdefs.h. */
  29503. _ACEOF
  29504. cat confdefs.h >>conftest.$ac_ext
  29505. cat >>conftest.$ac_ext <<_ACEOF
  29506. /* end confdefs.h. */
  29507. $ac_includes_default
  29508. typedef char* ac__type_sizeof_;
  29509. int
  29510. main ()
  29511. {
  29512. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  29513. test_array [0] = 0
  29514. ;
  29515. return 0;
  29516. }
  29517. _ACEOF
  29518. rm -f conftest.$ac_objext
  29519. if { (ac_try="$ac_compile"
  29520. case "(($ac_try" in
  29521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29522. *) ac_try_echo=$ac_try;;
  29523. esac
  29524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29525. (eval "$ac_compile") 2>conftest.er1
  29526. ac_status=$?
  29527. grep -v '^ *+' conftest.er1 >conftest.err
  29528. rm -f conftest.er1
  29529. cat conftest.err >&5
  29530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29531. (exit $ac_status); } && {
  29532. test -z "$ac_c_werror_flag" ||
  29533. test ! -s conftest.err
  29534. } && test -s conftest.$ac_objext; then
  29535. ac_hi=$ac_mid; break
  29536. else
  29537. echo "$as_me: failed program was:" >&5
  29538. sed 's/^/| /' conftest.$ac_ext >&5
  29539. ac_lo=`expr $ac_mid + 1`
  29540. if test $ac_lo -le $ac_mid; then
  29541. ac_lo= ac_hi=
  29542. break
  29543. fi
  29544. ac_mid=`expr 2 '*' $ac_mid + 1`
  29545. fi
  29546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29547. done
  29548. else
  29549. echo "$as_me: failed program was:" >&5
  29550. sed 's/^/| /' conftest.$ac_ext >&5
  29551. cat >conftest.$ac_ext <<_ACEOF
  29552. /* confdefs.h. */
  29553. _ACEOF
  29554. cat confdefs.h >>conftest.$ac_ext
  29555. cat >>conftest.$ac_ext <<_ACEOF
  29556. /* end confdefs.h. */
  29557. $ac_includes_default
  29558. typedef char* ac__type_sizeof_;
  29559. int
  29560. main ()
  29561. {
  29562. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  29563. test_array [0] = 0
  29564. ;
  29565. return 0;
  29566. }
  29567. _ACEOF
  29568. rm -f conftest.$ac_objext
  29569. if { (ac_try="$ac_compile"
  29570. case "(($ac_try" in
  29571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29572. *) ac_try_echo=$ac_try;;
  29573. esac
  29574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29575. (eval "$ac_compile") 2>conftest.er1
  29576. ac_status=$?
  29577. grep -v '^ *+' conftest.er1 >conftest.err
  29578. rm -f conftest.er1
  29579. cat conftest.err >&5
  29580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29581. (exit $ac_status); } && {
  29582. test -z "$ac_c_werror_flag" ||
  29583. test ! -s conftest.err
  29584. } && test -s conftest.$ac_objext; then
  29585. ac_hi=-1 ac_mid=-1
  29586. while :; do
  29587. cat >conftest.$ac_ext <<_ACEOF
  29588. /* confdefs.h. */
  29589. _ACEOF
  29590. cat confdefs.h >>conftest.$ac_ext
  29591. cat >>conftest.$ac_ext <<_ACEOF
  29592. /* end confdefs.h. */
  29593. $ac_includes_default
  29594. typedef char* ac__type_sizeof_;
  29595. int
  29596. main ()
  29597. {
  29598. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  29599. test_array [0] = 0
  29600. ;
  29601. return 0;
  29602. }
  29603. _ACEOF
  29604. rm -f conftest.$ac_objext
  29605. if { (ac_try="$ac_compile"
  29606. case "(($ac_try" in
  29607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29608. *) ac_try_echo=$ac_try;;
  29609. esac
  29610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29611. (eval "$ac_compile") 2>conftest.er1
  29612. ac_status=$?
  29613. grep -v '^ *+' conftest.er1 >conftest.err
  29614. rm -f conftest.er1
  29615. cat conftest.err >&5
  29616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29617. (exit $ac_status); } && {
  29618. test -z "$ac_c_werror_flag" ||
  29619. test ! -s conftest.err
  29620. } && test -s conftest.$ac_objext; then
  29621. ac_lo=$ac_mid; break
  29622. else
  29623. echo "$as_me: failed program was:" >&5
  29624. sed 's/^/| /' conftest.$ac_ext >&5
  29625. ac_hi=`expr '(' $ac_mid ')' - 1`
  29626. if test $ac_mid -le $ac_hi; then
  29627. ac_lo= ac_hi=
  29628. break
  29629. fi
  29630. ac_mid=`expr 2 '*' $ac_mid`
  29631. fi
  29632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29633. done
  29634. else
  29635. echo "$as_me: failed program was:" >&5
  29636. sed 's/^/| /' conftest.$ac_ext >&5
  29637. ac_lo= ac_hi=
  29638. fi
  29639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29640. fi
  29641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29642. # Binary search between lo and hi bounds.
  29643. while test "x$ac_lo" != "x$ac_hi"; do
  29644. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  29645. cat >conftest.$ac_ext <<_ACEOF
  29646. /* confdefs.h. */
  29647. _ACEOF
  29648. cat confdefs.h >>conftest.$ac_ext
  29649. cat >>conftest.$ac_ext <<_ACEOF
  29650. /* end confdefs.h. */
  29651. $ac_includes_default
  29652. typedef char* ac__type_sizeof_;
  29653. int
  29654. main ()
  29655. {
  29656. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  29657. test_array [0] = 0
  29658. ;
  29659. return 0;
  29660. }
  29661. _ACEOF
  29662. rm -f conftest.$ac_objext
  29663. if { (ac_try="$ac_compile"
  29664. case "(($ac_try" in
  29665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29666. *) ac_try_echo=$ac_try;;
  29667. esac
  29668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29669. (eval "$ac_compile") 2>conftest.er1
  29670. ac_status=$?
  29671. grep -v '^ *+' conftest.er1 >conftest.err
  29672. rm -f conftest.er1
  29673. cat conftest.err >&5
  29674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29675. (exit $ac_status); } && {
  29676. test -z "$ac_c_werror_flag" ||
  29677. test ! -s conftest.err
  29678. } && test -s conftest.$ac_objext; then
  29679. ac_hi=$ac_mid
  29680. else
  29681. echo "$as_me: failed program was:" >&5
  29682. sed 's/^/| /' conftest.$ac_ext >&5
  29683. ac_lo=`expr '(' $ac_mid ')' + 1`
  29684. fi
  29685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29686. done
  29687. case $ac_lo in
  29688. ?*) ac_cv_sizeof_charp=$ac_lo;;
  29689. '') if test "$ac_cv_type_charp" = yes; then
  29690. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  29691. See \`config.log' for more details." >&5
  29692. echo "$as_me: error: cannot compute sizeof (char*)
  29693. See \`config.log' for more details." >&2;}
  29694. { (exit 77); exit 77; }; }
  29695. else
  29696. ac_cv_sizeof_charp=0
  29697. fi ;;
  29698. esac
  29699. else
  29700. cat >conftest.$ac_ext <<_ACEOF
  29701. /* confdefs.h. */
  29702. _ACEOF
  29703. cat confdefs.h >>conftest.$ac_ext
  29704. cat >>conftest.$ac_ext <<_ACEOF
  29705. /* end confdefs.h. */
  29706. $ac_includes_default
  29707. typedef char* ac__type_sizeof_;
  29708. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  29709. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  29710. #include <stdio.h>
  29711. #include <stdlib.h>
  29712. int
  29713. main ()
  29714. {
  29715. FILE *f = fopen ("conftest.val", "w");
  29716. if (! f)
  29717. return 1;
  29718. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  29719. {
  29720. long int i = longval ();
  29721. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  29722. return 1;
  29723. fprintf (f, "%ld\n", i);
  29724. }
  29725. else
  29726. {
  29727. unsigned long int i = ulongval ();
  29728. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  29729. return 1;
  29730. fprintf (f, "%lu\n", i);
  29731. }
  29732. return ferror (f) || fclose (f) != 0;
  29733. ;
  29734. return 0;
  29735. }
  29736. _ACEOF
  29737. rm -f conftest$ac_exeext
  29738. if { (ac_try="$ac_link"
  29739. case "(($ac_try" in
  29740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29741. *) ac_try_echo=$ac_try;;
  29742. esac
  29743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29744. (eval "$ac_link") 2>&5
  29745. ac_status=$?
  29746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29747. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29748. { (case "(($ac_try" in
  29749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29750. *) ac_try_echo=$ac_try;;
  29751. esac
  29752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29753. (eval "$ac_try") 2>&5
  29754. ac_status=$?
  29755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29756. (exit $ac_status); }; }; then
  29757. ac_cv_sizeof_charp=`cat conftest.val`
  29758. else
  29759. echo "$as_me: program exited with status $ac_status" >&5
  29760. echo "$as_me: failed program was:" >&5
  29761. sed 's/^/| /' conftest.$ac_ext >&5
  29762. ( exit $ac_status )
  29763. if test "$ac_cv_type_charp" = yes; then
  29764. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  29765. See \`config.log' for more details." >&5
  29766. echo "$as_me: error: cannot compute sizeof (char*)
  29767. See \`config.log' for more details." >&2;}
  29768. { (exit 77); exit 77; }; }
  29769. else
  29770. ac_cv_sizeof_charp=0
  29771. fi
  29772. fi
  29773. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29774. fi
  29775. rm -f conftest.val
  29776. fi
  29777. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  29778. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  29779. cat >>confdefs.h <<_ACEOF
  29780. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  29781. _ACEOF
  29782. { echo "$as_me:$LINENO: checking for int" >&5
  29783. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  29784. if test "${ac_cv_type_int+set}" = set; then
  29785. echo $ECHO_N "(cached) $ECHO_C" >&6
  29786. else
  29787. cat >conftest.$ac_ext <<_ACEOF
  29788. /* confdefs.h. */
  29789. _ACEOF
  29790. cat confdefs.h >>conftest.$ac_ext
  29791. cat >>conftest.$ac_ext <<_ACEOF
  29792. /* end confdefs.h. */
  29793. $ac_includes_default
  29794. typedef int ac__type_new_;
  29795. int
  29796. main ()
  29797. {
  29798. if ((ac__type_new_ *) 0)
  29799. return 0;
  29800. if (sizeof (ac__type_new_))
  29801. return 0;
  29802. ;
  29803. return 0;
  29804. }
  29805. _ACEOF
  29806. rm -f conftest.$ac_objext
  29807. if { (ac_try="$ac_compile"
  29808. case "(($ac_try" in
  29809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29810. *) ac_try_echo=$ac_try;;
  29811. esac
  29812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29813. (eval "$ac_compile") 2>conftest.er1
  29814. ac_status=$?
  29815. grep -v '^ *+' conftest.er1 >conftest.err
  29816. rm -f conftest.er1
  29817. cat conftest.err >&5
  29818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29819. (exit $ac_status); } && {
  29820. test -z "$ac_c_werror_flag" ||
  29821. test ! -s conftest.err
  29822. } && test -s conftest.$ac_objext; then
  29823. ac_cv_type_int=yes
  29824. else
  29825. echo "$as_me: failed program was:" >&5
  29826. sed 's/^/| /' conftest.$ac_ext >&5
  29827. ac_cv_type_int=no
  29828. fi
  29829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29830. fi
  29831. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  29832. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  29833. # The cast to long int works around a bug in the HP C Compiler
  29834. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29835. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29836. # This bug is HP SR number 8606223364.
  29837. { echo "$as_me:$LINENO: checking size of int" >&5
  29838. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  29839. if test "${ac_cv_sizeof_int+set}" = set; then
  29840. echo $ECHO_N "(cached) $ECHO_C" >&6
  29841. else
  29842. if test "$cross_compiling" = yes; then
  29843. # Depending upon the size, compute the lo and hi bounds.
  29844. cat >conftest.$ac_ext <<_ACEOF
  29845. /* confdefs.h. */
  29846. _ACEOF
  29847. cat confdefs.h >>conftest.$ac_ext
  29848. cat >>conftest.$ac_ext <<_ACEOF
  29849. /* end confdefs.h. */
  29850. $ac_includes_default
  29851. typedef int ac__type_sizeof_;
  29852. int
  29853. main ()
  29854. {
  29855. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  29856. test_array [0] = 0
  29857. ;
  29858. return 0;
  29859. }
  29860. _ACEOF
  29861. rm -f conftest.$ac_objext
  29862. if { (ac_try="$ac_compile"
  29863. case "(($ac_try" in
  29864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29865. *) ac_try_echo=$ac_try;;
  29866. esac
  29867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29868. (eval "$ac_compile") 2>conftest.er1
  29869. ac_status=$?
  29870. grep -v '^ *+' conftest.er1 >conftest.err
  29871. rm -f conftest.er1
  29872. cat conftest.err >&5
  29873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29874. (exit $ac_status); } && {
  29875. test -z "$ac_c_werror_flag" ||
  29876. test ! -s conftest.err
  29877. } && test -s conftest.$ac_objext; then
  29878. ac_lo=0 ac_mid=0
  29879. while :; do
  29880. cat >conftest.$ac_ext <<_ACEOF
  29881. /* confdefs.h. */
  29882. _ACEOF
  29883. cat confdefs.h >>conftest.$ac_ext
  29884. cat >>conftest.$ac_ext <<_ACEOF
  29885. /* end confdefs.h. */
  29886. $ac_includes_default
  29887. typedef int ac__type_sizeof_;
  29888. int
  29889. main ()
  29890. {
  29891. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  29892. test_array [0] = 0
  29893. ;
  29894. return 0;
  29895. }
  29896. _ACEOF
  29897. rm -f conftest.$ac_objext
  29898. if { (ac_try="$ac_compile"
  29899. case "(($ac_try" in
  29900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29901. *) ac_try_echo=$ac_try;;
  29902. esac
  29903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29904. (eval "$ac_compile") 2>conftest.er1
  29905. ac_status=$?
  29906. grep -v '^ *+' conftest.er1 >conftest.err
  29907. rm -f conftest.er1
  29908. cat conftest.err >&5
  29909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29910. (exit $ac_status); } && {
  29911. test -z "$ac_c_werror_flag" ||
  29912. test ! -s conftest.err
  29913. } && test -s conftest.$ac_objext; then
  29914. ac_hi=$ac_mid; break
  29915. else
  29916. echo "$as_me: failed program was:" >&5
  29917. sed 's/^/| /' conftest.$ac_ext >&5
  29918. ac_lo=`expr $ac_mid + 1`
  29919. if test $ac_lo -le $ac_mid; then
  29920. ac_lo= ac_hi=
  29921. break
  29922. fi
  29923. ac_mid=`expr 2 '*' $ac_mid + 1`
  29924. fi
  29925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29926. done
  29927. else
  29928. echo "$as_me: failed program was:" >&5
  29929. sed 's/^/| /' conftest.$ac_ext >&5
  29930. cat >conftest.$ac_ext <<_ACEOF
  29931. /* confdefs.h. */
  29932. _ACEOF
  29933. cat confdefs.h >>conftest.$ac_ext
  29934. cat >>conftest.$ac_ext <<_ACEOF
  29935. /* end confdefs.h. */
  29936. $ac_includes_default
  29937. typedef int ac__type_sizeof_;
  29938. int
  29939. main ()
  29940. {
  29941. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  29942. test_array [0] = 0
  29943. ;
  29944. return 0;
  29945. }
  29946. _ACEOF
  29947. rm -f conftest.$ac_objext
  29948. if { (ac_try="$ac_compile"
  29949. case "(($ac_try" in
  29950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29951. *) ac_try_echo=$ac_try;;
  29952. esac
  29953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29954. (eval "$ac_compile") 2>conftest.er1
  29955. ac_status=$?
  29956. grep -v '^ *+' conftest.er1 >conftest.err
  29957. rm -f conftest.er1
  29958. cat conftest.err >&5
  29959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29960. (exit $ac_status); } && {
  29961. test -z "$ac_c_werror_flag" ||
  29962. test ! -s conftest.err
  29963. } && test -s conftest.$ac_objext; then
  29964. ac_hi=-1 ac_mid=-1
  29965. while :; do
  29966. cat >conftest.$ac_ext <<_ACEOF
  29967. /* confdefs.h. */
  29968. _ACEOF
  29969. cat confdefs.h >>conftest.$ac_ext
  29970. cat >>conftest.$ac_ext <<_ACEOF
  29971. /* end confdefs.h. */
  29972. $ac_includes_default
  29973. typedef int ac__type_sizeof_;
  29974. int
  29975. main ()
  29976. {
  29977. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  29978. test_array [0] = 0
  29979. ;
  29980. return 0;
  29981. }
  29982. _ACEOF
  29983. rm -f conftest.$ac_objext
  29984. if { (ac_try="$ac_compile"
  29985. case "(($ac_try" in
  29986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29987. *) ac_try_echo=$ac_try;;
  29988. esac
  29989. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29990. (eval "$ac_compile") 2>conftest.er1
  29991. ac_status=$?
  29992. grep -v '^ *+' conftest.er1 >conftest.err
  29993. rm -f conftest.er1
  29994. cat conftest.err >&5
  29995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29996. (exit $ac_status); } && {
  29997. test -z "$ac_c_werror_flag" ||
  29998. test ! -s conftest.err
  29999. } && test -s conftest.$ac_objext; then
  30000. ac_lo=$ac_mid; break
  30001. else
  30002. echo "$as_me: failed program was:" >&5
  30003. sed 's/^/| /' conftest.$ac_ext >&5
  30004. ac_hi=`expr '(' $ac_mid ')' - 1`
  30005. if test $ac_mid -le $ac_hi; then
  30006. ac_lo= ac_hi=
  30007. break
  30008. fi
  30009. ac_mid=`expr 2 '*' $ac_mid`
  30010. fi
  30011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30012. done
  30013. else
  30014. echo "$as_me: failed program was:" >&5
  30015. sed 's/^/| /' conftest.$ac_ext >&5
  30016. ac_lo= ac_hi=
  30017. fi
  30018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30019. fi
  30020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30021. # Binary search between lo and hi bounds.
  30022. while test "x$ac_lo" != "x$ac_hi"; do
  30023. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30024. cat >conftest.$ac_ext <<_ACEOF
  30025. /* confdefs.h. */
  30026. _ACEOF
  30027. cat confdefs.h >>conftest.$ac_ext
  30028. cat >>conftest.$ac_ext <<_ACEOF
  30029. /* end confdefs.h. */
  30030. $ac_includes_default
  30031. typedef int ac__type_sizeof_;
  30032. int
  30033. main ()
  30034. {
  30035. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30036. test_array [0] = 0
  30037. ;
  30038. return 0;
  30039. }
  30040. _ACEOF
  30041. rm -f conftest.$ac_objext
  30042. if { (ac_try="$ac_compile"
  30043. case "(($ac_try" in
  30044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30045. *) ac_try_echo=$ac_try;;
  30046. esac
  30047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30048. (eval "$ac_compile") 2>conftest.er1
  30049. ac_status=$?
  30050. grep -v '^ *+' conftest.er1 >conftest.err
  30051. rm -f conftest.er1
  30052. cat conftest.err >&5
  30053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30054. (exit $ac_status); } && {
  30055. test -z "$ac_c_werror_flag" ||
  30056. test ! -s conftest.err
  30057. } && test -s conftest.$ac_objext; then
  30058. ac_hi=$ac_mid
  30059. else
  30060. echo "$as_me: failed program was:" >&5
  30061. sed 's/^/| /' conftest.$ac_ext >&5
  30062. ac_lo=`expr '(' $ac_mid ')' + 1`
  30063. fi
  30064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30065. done
  30066. case $ac_lo in
  30067. ?*) ac_cv_sizeof_int=$ac_lo;;
  30068. '') if test "$ac_cv_type_int" = yes; then
  30069. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30070. See \`config.log' for more details." >&5
  30071. echo "$as_me: error: cannot compute sizeof (int)
  30072. See \`config.log' for more details." >&2;}
  30073. { (exit 77); exit 77; }; }
  30074. else
  30075. ac_cv_sizeof_int=0
  30076. fi ;;
  30077. esac
  30078. else
  30079. cat >conftest.$ac_ext <<_ACEOF
  30080. /* confdefs.h. */
  30081. _ACEOF
  30082. cat confdefs.h >>conftest.$ac_ext
  30083. cat >>conftest.$ac_ext <<_ACEOF
  30084. /* end confdefs.h. */
  30085. $ac_includes_default
  30086. typedef int ac__type_sizeof_;
  30087. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30088. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30089. #include <stdio.h>
  30090. #include <stdlib.h>
  30091. int
  30092. main ()
  30093. {
  30094. FILE *f = fopen ("conftest.val", "w");
  30095. if (! f)
  30096. return 1;
  30097. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30098. {
  30099. long int i = longval ();
  30100. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30101. return 1;
  30102. fprintf (f, "%ld\n", i);
  30103. }
  30104. else
  30105. {
  30106. unsigned long int i = ulongval ();
  30107. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30108. return 1;
  30109. fprintf (f, "%lu\n", i);
  30110. }
  30111. return ferror (f) || fclose (f) != 0;
  30112. ;
  30113. return 0;
  30114. }
  30115. _ACEOF
  30116. rm -f conftest$ac_exeext
  30117. if { (ac_try="$ac_link"
  30118. case "(($ac_try" in
  30119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30120. *) ac_try_echo=$ac_try;;
  30121. esac
  30122. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30123. (eval "$ac_link") 2>&5
  30124. ac_status=$?
  30125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30126. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30127. { (case "(($ac_try" in
  30128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30129. *) ac_try_echo=$ac_try;;
  30130. esac
  30131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30132. (eval "$ac_try") 2>&5
  30133. ac_status=$?
  30134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30135. (exit $ac_status); }; }; then
  30136. ac_cv_sizeof_int=`cat conftest.val`
  30137. else
  30138. echo "$as_me: program exited with status $ac_status" >&5
  30139. echo "$as_me: failed program was:" >&5
  30140. sed 's/^/| /' conftest.$ac_ext >&5
  30141. ( exit $ac_status )
  30142. if test "$ac_cv_type_int" = yes; then
  30143. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30144. See \`config.log' for more details." >&5
  30145. echo "$as_me: error: cannot compute sizeof (int)
  30146. See \`config.log' for more details." >&2;}
  30147. { (exit 77); exit 77; }; }
  30148. else
  30149. ac_cv_sizeof_int=0
  30150. fi
  30151. fi
  30152. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30153. fi
  30154. rm -f conftest.val
  30155. fi
  30156. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  30157. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  30158. cat >>confdefs.h <<_ACEOF
  30159. #define SIZEOF_INT $ac_cv_sizeof_int
  30160. _ACEOF
  30161. { echo "$as_me:$LINENO: checking for long" >&5
  30162. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  30163. if test "${ac_cv_type_long+set}" = set; then
  30164. echo $ECHO_N "(cached) $ECHO_C" >&6
  30165. else
  30166. cat >conftest.$ac_ext <<_ACEOF
  30167. /* confdefs.h. */
  30168. _ACEOF
  30169. cat confdefs.h >>conftest.$ac_ext
  30170. cat >>conftest.$ac_ext <<_ACEOF
  30171. /* end confdefs.h. */
  30172. $ac_includes_default
  30173. typedef long ac__type_new_;
  30174. int
  30175. main ()
  30176. {
  30177. if ((ac__type_new_ *) 0)
  30178. return 0;
  30179. if (sizeof (ac__type_new_))
  30180. return 0;
  30181. ;
  30182. return 0;
  30183. }
  30184. _ACEOF
  30185. rm -f conftest.$ac_objext
  30186. if { (ac_try="$ac_compile"
  30187. case "(($ac_try" in
  30188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30189. *) ac_try_echo=$ac_try;;
  30190. esac
  30191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30192. (eval "$ac_compile") 2>conftest.er1
  30193. ac_status=$?
  30194. grep -v '^ *+' conftest.er1 >conftest.err
  30195. rm -f conftest.er1
  30196. cat conftest.err >&5
  30197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30198. (exit $ac_status); } && {
  30199. test -z "$ac_c_werror_flag" ||
  30200. test ! -s conftest.err
  30201. } && test -s conftest.$ac_objext; then
  30202. ac_cv_type_long=yes
  30203. else
  30204. echo "$as_me: failed program was:" >&5
  30205. sed 's/^/| /' conftest.$ac_ext >&5
  30206. ac_cv_type_long=no
  30207. fi
  30208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30209. fi
  30210. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  30211. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  30212. # The cast to long int works around a bug in the HP C Compiler
  30213. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30214. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30215. # This bug is HP SR number 8606223364.
  30216. { echo "$as_me:$LINENO: checking size of long" >&5
  30217. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  30218. if test "${ac_cv_sizeof_long+set}" = set; then
  30219. echo $ECHO_N "(cached) $ECHO_C" >&6
  30220. else
  30221. if test "$cross_compiling" = yes; then
  30222. # Depending upon the size, compute the lo and hi bounds.
  30223. cat >conftest.$ac_ext <<_ACEOF
  30224. /* confdefs.h. */
  30225. _ACEOF
  30226. cat confdefs.h >>conftest.$ac_ext
  30227. cat >>conftest.$ac_ext <<_ACEOF
  30228. /* end confdefs.h. */
  30229. $ac_includes_default
  30230. typedef long ac__type_sizeof_;
  30231. int
  30232. main ()
  30233. {
  30234. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30235. test_array [0] = 0
  30236. ;
  30237. return 0;
  30238. }
  30239. _ACEOF
  30240. rm -f conftest.$ac_objext
  30241. if { (ac_try="$ac_compile"
  30242. case "(($ac_try" in
  30243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30244. *) ac_try_echo=$ac_try;;
  30245. esac
  30246. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30247. (eval "$ac_compile") 2>conftest.er1
  30248. ac_status=$?
  30249. grep -v '^ *+' conftest.er1 >conftest.err
  30250. rm -f conftest.er1
  30251. cat conftest.err >&5
  30252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30253. (exit $ac_status); } && {
  30254. test -z "$ac_c_werror_flag" ||
  30255. test ! -s conftest.err
  30256. } && test -s conftest.$ac_objext; then
  30257. ac_lo=0 ac_mid=0
  30258. while :; do
  30259. cat >conftest.$ac_ext <<_ACEOF
  30260. /* confdefs.h. */
  30261. _ACEOF
  30262. cat confdefs.h >>conftest.$ac_ext
  30263. cat >>conftest.$ac_ext <<_ACEOF
  30264. /* end confdefs.h. */
  30265. $ac_includes_default
  30266. typedef long ac__type_sizeof_;
  30267. int
  30268. main ()
  30269. {
  30270. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30271. test_array [0] = 0
  30272. ;
  30273. return 0;
  30274. }
  30275. _ACEOF
  30276. rm -f conftest.$ac_objext
  30277. if { (ac_try="$ac_compile"
  30278. case "(($ac_try" in
  30279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30280. *) ac_try_echo=$ac_try;;
  30281. esac
  30282. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30283. (eval "$ac_compile") 2>conftest.er1
  30284. ac_status=$?
  30285. grep -v '^ *+' conftest.er1 >conftest.err
  30286. rm -f conftest.er1
  30287. cat conftest.err >&5
  30288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30289. (exit $ac_status); } && {
  30290. test -z "$ac_c_werror_flag" ||
  30291. test ! -s conftest.err
  30292. } && test -s conftest.$ac_objext; then
  30293. ac_hi=$ac_mid; break
  30294. else
  30295. echo "$as_me: failed program was:" >&5
  30296. sed 's/^/| /' conftest.$ac_ext >&5
  30297. ac_lo=`expr $ac_mid + 1`
  30298. if test $ac_lo -le $ac_mid; then
  30299. ac_lo= ac_hi=
  30300. break
  30301. fi
  30302. ac_mid=`expr 2 '*' $ac_mid + 1`
  30303. fi
  30304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30305. done
  30306. else
  30307. echo "$as_me: failed program was:" >&5
  30308. sed 's/^/| /' conftest.$ac_ext >&5
  30309. cat >conftest.$ac_ext <<_ACEOF
  30310. /* confdefs.h. */
  30311. _ACEOF
  30312. cat confdefs.h >>conftest.$ac_ext
  30313. cat >>conftest.$ac_ext <<_ACEOF
  30314. /* end confdefs.h. */
  30315. $ac_includes_default
  30316. typedef long ac__type_sizeof_;
  30317. int
  30318. main ()
  30319. {
  30320. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30321. test_array [0] = 0
  30322. ;
  30323. return 0;
  30324. }
  30325. _ACEOF
  30326. rm -f conftest.$ac_objext
  30327. if { (ac_try="$ac_compile"
  30328. case "(($ac_try" in
  30329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30330. *) ac_try_echo=$ac_try;;
  30331. esac
  30332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30333. (eval "$ac_compile") 2>conftest.er1
  30334. ac_status=$?
  30335. grep -v '^ *+' conftest.er1 >conftest.err
  30336. rm -f conftest.er1
  30337. cat conftest.err >&5
  30338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30339. (exit $ac_status); } && {
  30340. test -z "$ac_c_werror_flag" ||
  30341. test ! -s conftest.err
  30342. } && test -s conftest.$ac_objext; then
  30343. ac_hi=-1 ac_mid=-1
  30344. while :; do
  30345. cat >conftest.$ac_ext <<_ACEOF
  30346. /* confdefs.h. */
  30347. _ACEOF
  30348. cat confdefs.h >>conftest.$ac_ext
  30349. cat >>conftest.$ac_ext <<_ACEOF
  30350. /* end confdefs.h. */
  30351. $ac_includes_default
  30352. typedef long ac__type_sizeof_;
  30353. int
  30354. main ()
  30355. {
  30356. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30357. test_array [0] = 0
  30358. ;
  30359. return 0;
  30360. }
  30361. _ACEOF
  30362. rm -f conftest.$ac_objext
  30363. if { (ac_try="$ac_compile"
  30364. case "(($ac_try" in
  30365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30366. *) ac_try_echo=$ac_try;;
  30367. esac
  30368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30369. (eval "$ac_compile") 2>conftest.er1
  30370. ac_status=$?
  30371. grep -v '^ *+' conftest.er1 >conftest.err
  30372. rm -f conftest.er1
  30373. cat conftest.err >&5
  30374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30375. (exit $ac_status); } && {
  30376. test -z "$ac_c_werror_flag" ||
  30377. test ! -s conftest.err
  30378. } && test -s conftest.$ac_objext; then
  30379. ac_lo=$ac_mid; break
  30380. else
  30381. echo "$as_me: failed program was:" >&5
  30382. sed 's/^/| /' conftest.$ac_ext >&5
  30383. ac_hi=`expr '(' $ac_mid ')' - 1`
  30384. if test $ac_mid -le $ac_hi; then
  30385. ac_lo= ac_hi=
  30386. break
  30387. fi
  30388. ac_mid=`expr 2 '*' $ac_mid`
  30389. fi
  30390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30391. done
  30392. else
  30393. echo "$as_me: failed program was:" >&5
  30394. sed 's/^/| /' conftest.$ac_ext >&5
  30395. ac_lo= ac_hi=
  30396. fi
  30397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30398. fi
  30399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30400. # Binary search between lo and hi bounds.
  30401. while test "x$ac_lo" != "x$ac_hi"; do
  30402. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30403. cat >conftest.$ac_ext <<_ACEOF
  30404. /* confdefs.h. */
  30405. _ACEOF
  30406. cat confdefs.h >>conftest.$ac_ext
  30407. cat >>conftest.$ac_ext <<_ACEOF
  30408. /* end confdefs.h. */
  30409. $ac_includes_default
  30410. typedef long ac__type_sizeof_;
  30411. int
  30412. main ()
  30413. {
  30414. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30415. test_array [0] = 0
  30416. ;
  30417. return 0;
  30418. }
  30419. _ACEOF
  30420. rm -f conftest.$ac_objext
  30421. if { (ac_try="$ac_compile"
  30422. case "(($ac_try" in
  30423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30424. *) ac_try_echo=$ac_try;;
  30425. esac
  30426. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30427. (eval "$ac_compile") 2>conftest.er1
  30428. ac_status=$?
  30429. grep -v '^ *+' conftest.er1 >conftest.err
  30430. rm -f conftest.er1
  30431. cat conftest.err >&5
  30432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30433. (exit $ac_status); } && {
  30434. test -z "$ac_c_werror_flag" ||
  30435. test ! -s conftest.err
  30436. } && test -s conftest.$ac_objext; then
  30437. ac_hi=$ac_mid
  30438. else
  30439. echo "$as_me: failed program was:" >&5
  30440. sed 's/^/| /' conftest.$ac_ext >&5
  30441. ac_lo=`expr '(' $ac_mid ')' + 1`
  30442. fi
  30443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30444. done
  30445. case $ac_lo in
  30446. ?*) ac_cv_sizeof_long=$ac_lo;;
  30447. '') if test "$ac_cv_type_long" = yes; then
  30448. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  30449. See \`config.log' for more details." >&5
  30450. echo "$as_me: error: cannot compute sizeof (long)
  30451. See \`config.log' for more details." >&2;}
  30452. { (exit 77); exit 77; }; }
  30453. else
  30454. ac_cv_sizeof_long=0
  30455. fi ;;
  30456. esac
  30457. else
  30458. cat >conftest.$ac_ext <<_ACEOF
  30459. /* confdefs.h. */
  30460. _ACEOF
  30461. cat confdefs.h >>conftest.$ac_ext
  30462. cat >>conftest.$ac_ext <<_ACEOF
  30463. /* end confdefs.h. */
  30464. $ac_includes_default
  30465. typedef long ac__type_sizeof_;
  30466. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30467. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30468. #include <stdio.h>
  30469. #include <stdlib.h>
  30470. int
  30471. main ()
  30472. {
  30473. FILE *f = fopen ("conftest.val", "w");
  30474. if (! f)
  30475. return 1;
  30476. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30477. {
  30478. long int i = longval ();
  30479. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30480. return 1;
  30481. fprintf (f, "%ld\n", i);
  30482. }
  30483. else
  30484. {
  30485. unsigned long int i = ulongval ();
  30486. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30487. return 1;
  30488. fprintf (f, "%lu\n", i);
  30489. }
  30490. return ferror (f) || fclose (f) != 0;
  30491. ;
  30492. return 0;
  30493. }
  30494. _ACEOF
  30495. rm -f conftest$ac_exeext
  30496. if { (ac_try="$ac_link"
  30497. case "(($ac_try" in
  30498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30499. *) ac_try_echo=$ac_try;;
  30500. esac
  30501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30502. (eval "$ac_link") 2>&5
  30503. ac_status=$?
  30504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30505. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30506. { (case "(($ac_try" in
  30507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30508. *) ac_try_echo=$ac_try;;
  30509. esac
  30510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30511. (eval "$ac_try") 2>&5
  30512. ac_status=$?
  30513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30514. (exit $ac_status); }; }; then
  30515. ac_cv_sizeof_long=`cat conftest.val`
  30516. else
  30517. echo "$as_me: program exited with status $ac_status" >&5
  30518. echo "$as_me: failed program was:" >&5
  30519. sed 's/^/| /' conftest.$ac_ext >&5
  30520. ( exit $ac_status )
  30521. if test "$ac_cv_type_long" = yes; then
  30522. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  30523. See \`config.log' for more details." >&5
  30524. echo "$as_me: error: cannot compute sizeof (long)
  30525. See \`config.log' for more details." >&2;}
  30526. { (exit 77); exit 77; }; }
  30527. else
  30528. ac_cv_sizeof_long=0
  30529. fi
  30530. fi
  30531. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30532. fi
  30533. rm -f conftest.val
  30534. fi
  30535. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  30536. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  30537. cat >>confdefs.h <<_ACEOF
  30538. #define SIZEOF_LONG $ac_cv_sizeof_long
  30539. _ACEOF
  30540. { echo "$as_me:$LINENO: checking for short" >&5
  30541. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  30542. if test "${ac_cv_type_short+set}" = set; then
  30543. echo $ECHO_N "(cached) $ECHO_C" >&6
  30544. else
  30545. cat >conftest.$ac_ext <<_ACEOF
  30546. /* confdefs.h. */
  30547. _ACEOF
  30548. cat confdefs.h >>conftest.$ac_ext
  30549. cat >>conftest.$ac_ext <<_ACEOF
  30550. /* end confdefs.h. */
  30551. $ac_includes_default
  30552. typedef short ac__type_new_;
  30553. int
  30554. main ()
  30555. {
  30556. if ((ac__type_new_ *) 0)
  30557. return 0;
  30558. if (sizeof (ac__type_new_))
  30559. return 0;
  30560. ;
  30561. return 0;
  30562. }
  30563. _ACEOF
  30564. rm -f conftest.$ac_objext
  30565. if { (ac_try="$ac_compile"
  30566. case "(($ac_try" in
  30567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30568. *) ac_try_echo=$ac_try;;
  30569. esac
  30570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30571. (eval "$ac_compile") 2>conftest.er1
  30572. ac_status=$?
  30573. grep -v '^ *+' conftest.er1 >conftest.err
  30574. rm -f conftest.er1
  30575. cat conftest.err >&5
  30576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30577. (exit $ac_status); } && {
  30578. test -z "$ac_c_werror_flag" ||
  30579. test ! -s conftest.err
  30580. } && test -s conftest.$ac_objext; then
  30581. ac_cv_type_short=yes
  30582. else
  30583. echo "$as_me: failed program was:" >&5
  30584. sed 's/^/| /' conftest.$ac_ext >&5
  30585. ac_cv_type_short=no
  30586. fi
  30587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30588. fi
  30589. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  30590. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  30591. # The cast to long int works around a bug in the HP C Compiler
  30592. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30593. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30594. # This bug is HP SR number 8606223364.
  30595. { echo "$as_me:$LINENO: checking size of short" >&5
  30596. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  30597. if test "${ac_cv_sizeof_short+set}" = set; then
  30598. echo $ECHO_N "(cached) $ECHO_C" >&6
  30599. else
  30600. if test "$cross_compiling" = yes; then
  30601. # Depending upon the size, compute the lo and hi bounds.
  30602. cat >conftest.$ac_ext <<_ACEOF
  30603. /* confdefs.h. */
  30604. _ACEOF
  30605. cat confdefs.h >>conftest.$ac_ext
  30606. cat >>conftest.$ac_ext <<_ACEOF
  30607. /* end confdefs.h. */
  30608. $ac_includes_default
  30609. typedef short ac__type_sizeof_;
  30610. int
  30611. main ()
  30612. {
  30613. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30614. test_array [0] = 0
  30615. ;
  30616. return 0;
  30617. }
  30618. _ACEOF
  30619. rm -f conftest.$ac_objext
  30620. if { (ac_try="$ac_compile"
  30621. case "(($ac_try" in
  30622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30623. *) ac_try_echo=$ac_try;;
  30624. esac
  30625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30626. (eval "$ac_compile") 2>conftest.er1
  30627. ac_status=$?
  30628. grep -v '^ *+' conftest.er1 >conftest.err
  30629. rm -f conftest.er1
  30630. cat conftest.err >&5
  30631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30632. (exit $ac_status); } && {
  30633. test -z "$ac_c_werror_flag" ||
  30634. test ! -s conftest.err
  30635. } && test -s conftest.$ac_objext; then
  30636. ac_lo=0 ac_mid=0
  30637. while :; do
  30638. cat >conftest.$ac_ext <<_ACEOF
  30639. /* confdefs.h. */
  30640. _ACEOF
  30641. cat confdefs.h >>conftest.$ac_ext
  30642. cat >>conftest.$ac_ext <<_ACEOF
  30643. /* end confdefs.h. */
  30644. $ac_includes_default
  30645. typedef short ac__type_sizeof_;
  30646. int
  30647. main ()
  30648. {
  30649. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30650. test_array [0] = 0
  30651. ;
  30652. return 0;
  30653. }
  30654. _ACEOF
  30655. rm -f conftest.$ac_objext
  30656. if { (ac_try="$ac_compile"
  30657. case "(($ac_try" in
  30658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30659. *) ac_try_echo=$ac_try;;
  30660. esac
  30661. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30662. (eval "$ac_compile") 2>conftest.er1
  30663. ac_status=$?
  30664. grep -v '^ *+' conftest.er1 >conftest.err
  30665. rm -f conftest.er1
  30666. cat conftest.err >&5
  30667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30668. (exit $ac_status); } && {
  30669. test -z "$ac_c_werror_flag" ||
  30670. test ! -s conftest.err
  30671. } && test -s conftest.$ac_objext; then
  30672. ac_hi=$ac_mid; break
  30673. else
  30674. echo "$as_me: failed program was:" >&5
  30675. sed 's/^/| /' conftest.$ac_ext >&5
  30676. ac_lo=`expr $ac_mid + 1`
  30677. if test $ac_lo -le $ac_mid; then
  30678. ac_lo= ac_hi=
  30679. break
  30680. fi
  30681. ac_mid=`expr 2 '*' $ac_mid + 1`
  30682. fi
  30683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30684. done
  30685. else
  30686. echo "$as_me: failed program was:" >&5
  30687. sed 's/^/| /' conftest.$ac_ext >&5
  30688. cat >conftest.$ac_ext <<_ACEOF
  30689. /* confdefs.h. */
  30690. _ACEOF
  30691. cat confdefs.h >>conftest.$ac_ext
  30692. cat >>conftest.$ac_ext <<_ACEOF
  30693. /* end confdefs.h. */
  30694. $ac_includes_default
  30695. typedef short ac__type_sizeof_;
  30696. int
  30697. main ()
  30698. {
  30699. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30700. test_array [0] = 0
  30701. ;
  30702. return 0;
  30703. }
  30704. _ACEOF
  30705. rm -f conftest.$ac_objext
  30706. if { (ac_try="$ac_compile"
  30707. case "(($ac_try" in
  30708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30709. *) ac_try_echo=$ac_try;;
  30710. esac
  30711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30712. (eval "$ac_compile") 2>conftest.er1
  30713. ac_status=$?
  30714. grep -v '^ *+' conftest.er1 >conftest.err
  30715. rm -f conftest.er1
  30716. cat conftest.err >&5
  30717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30718. (exit $ac_status); } && {
  30719. test -z "$ac_c_werror_flag" ||
  30720. test ! -s conftest.err
  30721. } && test -s conftest.$ac_objext; then
  30722. ac_hi=-1 ac_mid=-1
  30723. while :; do
  30724. cat >conftest.$ac_ext <<_ACEOF
  30725. /* confdefs.h. */
  30726. _ACEOF
  30727. cat confdefs.h >>conftest.$ac_ext
  30728. cat >>conftest.$ac_ext <<_ACEOF
  30729. /* end confdefs.h. */
  30730. $ac_includes_default
  30731. typedef short ac__type_sizeof_;
  30732. int
  30733. main ()
  30734. {
  30735. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30736. test_array [0] = 0
  30737. ;
  30738. return 0;
  30739. }
  30740. _ACEOF
  30741. rm -f conftest.$ac_objext
  30742. if { (ac_try="$ac_compile"
  30743. case "(($ac_try" in
  30744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30745. *) ac_try_echo=$ac_try;;
  30746. esac
  30747. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30748. (eval "$ac_compile") 2>conftest.er1
  30749. ac_status=$?
  30750. grep -v '^ *+' conftest.er1 >conftest.err
  30751. rm -f conftest.er1
  30752. cat conftest.err >&5
  30753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30754. (exit $ac_status); } && {
  30755. test -z "$ac_c_werror_flag" ||
  30756. test ! -s conftest.err
  30757. } && test -s conftest.$ac_objext; then
  30758. ac_lo=$ac_mid; break
  30759. else
  30760. echo "$as_me: failed program was:" >&5
  30761. sed 's/^/| /' conftest.$ac_ext >&5
  30762. ac_hi=`expr '(' $ac_mid ')' - 1`
  30763. if test $ac_mid -le $ac_hi; then
  30764. ac_lo= ac_hi=
  30765. break
  30766. fi
  30767. ac_mid=`expr 2 '*' $ac_mid`
  30768. fi
  30769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30770. done
  30771. else
  30772. echo "$as_me: failed program was:" >&5
  30773. sed 's/^/| /' conftest.$ac_ext >&5
  30774. ac_lo= ac_hi=
  30775. fi
  30776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30777. fi
  30778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30779. # Binary search between lo and hi bounds.
  30780. while test "x$ac_lo" != "x$ac_hi"; do
  30781. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30782. cat >conftest.$ac_ext <<_ACEOF
  30783. /* confdefs.h. */
  30784. _ACEOF
  30785. cat confdefs.h >>conftest.$ac_ext
  30786. cat >>conftest.$ac_ext <<_ACEOF
  30787. /* end confdefs.h. */
  30788. $ac_includes_default
  30789. typedef short ac__type_sizeof_;
  30790. int
  30791. main ()
  30792. {
  30793. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30794. test_array [0] = 0
  30795. ;
  30796. return 0;
  30797. }
  30798. _ACEOF
  30799. rm -f conftest.$ac_objext
  30800. if { (ac_try="$ac_compile"
  30801. case "(($ac_try" in
  30802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30803. *) ac_try_echo=$ac_try;;
  30804. esac
  30805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30806. (eval "$ac_compile") 2>conftest.er1
  30807. ac_status=$?
  30808. grep -v '^ *+' conftest.er1 >conftest.err
  30809. rm -f conftest.er1
  30810. cat conftest.err >&5
  30811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30812. (exit $ac_status); } && {
  30813. test -z "$ac_c_werror_flag" ||
  30814. test ! -s conftest.err
  30815. } && test -s conftest.$ac_objext; then
  30816. ac_hi=$ac_mid
  30817. else
  30818. echo "$as_me: failed program was:" >&5
  30819. sed 's/^/| /' conftest.$ac_ext >&5
  30820. ac_lo=`expr '(' $ac_mid ')' + 1`
  30821. fi
  30822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30823. done
  30824. case $ac_lo in
  30825. ?*) ac_cv_sizeof_short=$ac_lo;;
  30826. '') if test "$ac_cv_type_short" = yes; then
  30827. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  30828. See \`config.log' for more details." >&5
  30829. echo "$as_me: error: cannot compute sizeof (short)
  30830. See \`config.log' for more details." >&2;}
  30831. { (exit 77); exit 77; }; }
  30832. else
  30833. ac_cv_sizeof_short=0
  30834. fi ;;
  30835. esac
  30836. else
  30837. cat >conftest.$ac_ext <<_ACEOF
  30838. /* confdefs.h. */
  30839. _ACEOF
  30840. cat confdefs.h >>conftest.$ac_ext
  30841. cat >>conftest.$ac_ext <<_ACEOF
  30842. /* end confdefs.h. */
  30843. $ac_includes_default
  30844. typedef short ac__type_sizeof_;
  30845. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30846. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30847. #include <stdio.h>
  30848. #include <stdlib.h>
  30849. int
  30850. main ()
  30851. {
  30852. FILE *f = fopen ("conftest.val", "w");
  30853. if (! f)
  30854. return 1;
  30855. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30856. {
  30857. long int i = longval ();
  30858. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30859. return 1;
  30860. fprintf (f, "%ld\n", i);
  30861. }
  30862. else
  30863. {
  30864. unsigned long int i = ulongval ();
  30865. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30866. return 1;
  30867. fprintf (f, "%lu\n", i);
  30868. }
  30869. return ferror (f) || fclose (f) != 0;
  30870. ;
  30871. return 0;
  30872. }
  30873. _ACEOF
  30874. rm -f conftest$ac_exeext
  30875. if { (ac_try="$ac_link"
  30876. case "(($ac_try" in
  30877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30878. *) ac_try_echo=$ac_try;;
  30879. esac
  30880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30881. (eval "$ac_link") 2>&5
  30882. ac_status=$?
  30883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30884. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30885. { (case "(($ac_try" in
  30886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30887. *) ac_try_echo=$ac_try;;
  30888. esac
  30889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30890. (eval "$ac_try") 2>&5
  30891. ac_status=$?
  30892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30893. (exit $ac_status); }; }; then
  30894. ac_cv_sizeof_short=`cat conftest.val`
  30895. else
  30896. echo "$as_me: program exited with status $ac_status" >&5
  30897. echo "$as_me: failed program was:" >&5
  30898. sed 's/^/| /' conftest.$ac_ext >&5
  30899. ( exit $ac_status )
  30900. if test "$ac_cv_type_short" = yes; then
  30901. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  30902. See \`config.log' for more details." >&5
  30903. echo "$as_me: error: cannot compute sizeof (short)
  30904. See \`config.log' for more details." >&2;}
  30905. { (exit 77); exit 77; }; }
  30906. else
  30907. ac_cv_sizeof_short=0
  30908. fi
  30909. fi
  30910. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30911. fi
  30912. rm -f conftest.val
  30913. fi
  30914. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  30915. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  30916. cat >>confdefs.h <<_ACEOF
  30917. #define SIZEOF_SHORT $ac_cv_sizeof_short
  30918. _ACEOF
  30919. # ----------------------------------------------------------------------
  30920. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  30921. # ----------------------------------------------------------------------
  30922. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  30923. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  30924. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  30925. echo $ECHO_N "(cached) $ECHO_C" >&6
  30926. else
  30927. ac_check_lib_save_LIBS=$LIBS
  30928. LIBS="-lgen $LIBS"
  30929. cat >conftest.$ac_ext <<_ACEOF
  30930. /* confdefs.h. */
  30931. _ACEOF
  30932. cat confdefs.h >>conftest.$ac_ext
  30933. cat >>conftest.$ac_ext <<_ACEOF
  30934. /* end confdefs.h. */
  30935. /* Override any GCC internal prototype to avoid an error.
  30936. Use char because int might match the return type of a GCC
  30937. builtin and then its argument prototype would still apply. */
  30938. #ifdef __cplusplus
  30939. extern "C"
  30940. #endif
  30941. char pathfind ();
  30942. int
  30943. main ()
  30944. {
  30945. return pathfind ();
  30946. ;
  30947. return 0;
  30948. }
  30949. _ACEOF
  30950. rm -f conftest.$ac_objext conftest$ac_exeext
  30951. if { (ac_try="$ac_link"
  30952. case "(($ac_try" in
  30953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30954. *) ac_try_echo=$ac_try;;
  30955. esac
  30956. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30957. (eval "$ac_link") 2>conftest.er1
  30958. ac_status=$?
  30959. grep -v '^ *+' conftest.er1 >conftest.err
  30960. rm -f conftest.er1
  30961. cat conftest.err >&5
  30962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30963. (exit $ac_status); } && {
  30964. test -z "$ac_c_werror_flag" ||
  30965. test ! -s conftest.err
  30966. } && test -s conftest$ac_exeext &&
  30967. $as_test_x conftest$ac_exeext; then
  30968. ac_cv_lib_gen_pathfind=yes
  30969. else
  30970. echo "$as_me: failed program was:" >&5
  30971. sed 's/^/| /' conftest.$ac_ext >&5
  30972. ac_cv_lib_gen_pathfind=no
  30973. fi
  30974. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30975. conftest$ac_exeext conftest.$ac_ext
  30976. LIBS=$ac_check_lib_save_LIBS
  30977. fi
  30978. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  30979. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  30980. if test $ac_cv_lib_gen_pathfind = yes; then
  30981. cat >>confdefs.h <<_ACEOF
  30982. #define HAVE_LIBGEN 1
  30983. _ACEOF
  30984. LIBS="-lgen $LIBS"
  30985. fi
  30986. for ac_func in vprintf
  30987. do
  30988. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30989. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  30990. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  30991. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  30992. echo $ECHO_N "(cached) $ECHO_C" >&6
  30993. else
  30994. cat >conftest.$ac_ext <<_ACEOF
  30995. /* confdefs.h. */
  30996. _ACEOF
  30997. cat confdefs.h >>conftest.$ac_ext
  30998. cat >>conftest.$ac_ext <<_ACEOF
  30999. /* end confdefs.h. */
  31000. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31001. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31002. #define $ac_func innocuous_$ac_func
  31003. /* System header to define __stub macros and hopefully few prototypes,
  31004. which can conflict with char $ac_func (); below.
  31005. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31006. <limits.h> exists even on freestanding compilers. */
  31007. #ifdef __STDC__
  31008. # include <limits.h>
  31009. #else
  31010. # include <assert.h>
  31011. #endif
  31012. #undef $ac_func
  31013. /* Override any GCC internal prototype to avoid an error.
  31014. Use char because int might match the return type of a GCC
  31015. builtin and then its argument prototype would still apply. */
  31016. #ifdef __cplusplus
  31017. extern "C"
  31018. #endif
  31019. char $ac_func ();
  31020. /* The GNU C library defines this for functions which it implements
  31021. to always fail with ENOSYS. Some functions are actually named
  31022. something starting with __ and the normal name is an alias. */
  31023. #if defined __stub_$ac_func || defined __stub___$ac_func
  31024. choke me
  31025. #endif
  31026. int
  31027. main ()
  31028. {
  31029. return $ac_func ();
  31030. ;
  31031. return 0;
  31032. }
  31033. _ACEOF
  31034. rm -f conftest.$ac_objext conftest$ac_exeext
  31035. if { (ac_try="$ac_link"
  31036. case "(($ac_try" in
  31037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31038. *) ac_try_echo=$ac_try;;
  31039. esac
  31040. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31041. (eval "$ac_link") 2>conftest.er1
  31042. ac_status=$?
  31043. grep -v '^ *+' conftest.er1 >conftest.err
  31044. rm -f conftest.er1
  31045. cat conftest.err >&5
  31046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31047. (exit $ac_status); } && {
  31048. test -z "$ac_c_werror_flag" ||
  31049. test ! -s conftest.err
  31050. } && test -s conftest$ac_exeext &&
  31051. $as_test_x conftest$ac_exeext; then
  31052. eval "$as_ac_var=yes"
  31053. else
  31054. echo "$as_me: failed program was:" >&5
  31055. sed 's/^/| /' conftest.$ac_ext >&5
  31056. eval "$as_ac_var=no"
  31057. fi
  31058. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31059. conftest$ac_exeext conftest.$ac_ext
  31060. fi
  31061. ac_res=`eval echo '${'$as_ac_var'}'`
  31062. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31063. echo "${ECHO_T}$ac_res" >&6; }
  31064. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31065. cat >>confdefs.h <<_ACEOF
  31066. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31067. _ACEOF
  31068. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  31069. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  31070. if test "${ac_cv_func__doprnt+set}" = set; then
  31071. echo $ECHO_N "(cached) $ECHO_C" >&6
  31072. else
  31073. cat >conftest.$ac_ext <<_ACEOF
  31074. /* confdefs.h. */
  31075. _ACEOF
  31076. cat confdefs.h >>conftest.$ac_ext
  31077. cat >>conftest.$ac_ext <<_ACEOF
  31078. /* end confdefs.h. */
  31079. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  31080. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31081. #define _doprnt innocuous__doprnt
  31082. /* System header to define __stub macros and hopefully few prototypes,
  31083. which can conflict with char _doprnt (); below.
  31084. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31085. <limits.h> exists even on freestanding compilers. */
  31086. #ifdef __STDC__
  31087. # include <limits.h>
  31088. #else
  31089. # include <assert.h>
  31090. #endif
  31091. #undef _doprnt
  31092. /* Override any GCC internal prototype to avoid an error.
  31093. Use char because int might match the return type of a GCC
  31094. builtin and then its argument prototype would still apply. */
  31095. #ifdef __cplusplus
  31096. extern "C"
  31097. #endif
  31098. char _doprnt ();
  31099. /* The GNU C library defines this for functions which it implements
  31100. to always fail with ENOSYS. Some functions are actually named
  31101. something starting with __ and the normal name is an alias. */
  31102. #if defined __stub__doprnt || defined __stub____doprnt
  31103. choke me
  31104. #endif
  31105. int
  31106. main ()
  31107. {
  31108. return _doprnt ();
  31109. ;
  31110. return 0;
  31111. }
  31112. _ACEOF
  31113. rm -f conftest.$ac_objext conftest$ac_exeext
  31114. if { (ac_try="$ac_link"
  31115. case "(($ac_try" in
  31116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31117. *) ac_try_echo=$ac_try;;
  31118. esac
  31119. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31120. (eval "$ac_link") 2>conftest.er1
  31121. ac_status=$?
  31122. grep -v '^ *+' conftest.er1 >conftest.err
  31123. rm -f conftest.er1
  31124. cat conftest.err >&5
  31125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31126. (exit $ac_status); } && {
  31127. test -z "$ac_c_werror_flag" ||
  31128. test ! -s conftest.err
  31129. } && test -s conftest$ac_exeext &&
  31130. $as_test_x conftest$ac_exeext; then
  31131. ac_cv_func__doprnt=yes
  31132. else
  31133. echo "$as_me: failed program was:" >&5
  31134. sed 's/^/| /' conftest.$ac_ext >&5
  31135. ac_cv_func__doprnt=no
  31136. fi
  31137. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31138. conftest$ac_exeext conftest.$ac_ext
  31139. fi
  31140. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  31141. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  31142. if test $ac_cv_func__doprnt = yes; then
  31143. cat >>confdefs.h <<\_ACEOF
  31144. #define HAVE_DOPRNT 1
  31145. _ACEOF
  31146. fi
  31147. fi
  31148. done
  31149. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  31150. do
  31151. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31152. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31153. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31154. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31155. echo $ECHO_N "(cached) $ECHO_C" >&6
  31156. else
  31157. cat >conftest.$ac_ext <<_ACEOF
  31158. /* confdefs.h. */
  31159. _ACEOF
  31160. cat confdefs.h >>conftest.$ac_ext
  31161. cat >>conftest.$ac_ext <<_ACEOF
  31162. /* end confdefs.h. */
  31163. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31164. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31165. #define $ac_func innocuous_$ac_func
  31166. /* System header to define __stub macros and hopefully few prototypes,
  31167. which can conflict with char $ac_func (); below.
  31168. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31169. <limits.h> exists even on freestanding compilers. */
  31170. #ifdef __STDC__
  31171. # include <limits.h>
  31172. #else
  31173. # include <assert.h>
  31174. #endif
  31175. #undef $ac_func
  31176. /* Override any GCC internal prototype to avoid an error.
  31177. Use char because int might match the return type of a GCC
  31178. builtin and then its argument prototype would still apply. */
  31179. #ifdef __cplusplus
  31180. extern "C"
  31181. #endif
  31182. char $ac_func ();
  31183. /* The GNU C library defines this for functions which it implements
  31184. to always fail with ENOSYS. Some functions are actually named
  31185. something starting with __ and the normal name is an alias. */
  31186. #if defined __stub_$ac_func || defined __stub___$ac_func
  31187. choke me
  31188. #endif
  31189. int
  31190. main ()
  31191. {
  31192. return $ac_func ();
  31193. ;
  31194. return 0;
  31195. }
  31196. _ACEOF
  31197. rm -f conftest.$ac_objext conftest$ac_exeext
  31198. if { (ac_try="$ac_link"
  31199. case "(($ac_try" in
  31200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31201. *) ac_try_echo=$ac_try;;
  31202. esac
  31203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31204. (eval "$ac_link") 2>conftest.er1
  31205. ac_status=$?
  31206. grep -v '^ *+' conftest.er1 >conftest.err
  31207. rm -f conftest.er1
  31208. cat conftest.err >&5
  31209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31210. (exit $ac_status); } && {
  31211. test -z "$ac_c_werror_flag" ||
  31212. test ! -s conftest.err
  31213. } && test -s conftest$ac_exeext &&
  31214. $as_test_x conftest$ac_exeext; then
  31215. eval "$as_ac_var=yes"
  31216. else
  31217. echo "$as_me: failed program was:" >&5
  31218. sed 's/^/| /' conftest.$ac_ext >&5
  31219. eval "$as_ac_var=no"
  31220. fi
  31221. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31222. conftest$ac_exeext conftest.$ac_ext
  31223. fi
  31224. ac_res=`eval echo '${'$as_ac_var'}'`
  31225. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31226. echo "${ECHO_T}$ac_res" >&6; }
  31227. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31228. cat >>confdefs.h <<_ACEOF
  31229. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31230. _ACEOF
  31231. fi
  31232. done
  31233. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  31234. fi
  31235. fi
  31236. # end of AC_DEFUN of LIBOPTS_CHECK
  31237. 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"
  31238. cat >confcache <<\_ACEOF
  31239. # This file is a shell script that caches the results of configure
  31240. # tests run on this system so they can be shared between configure
  31241. # scripts and configure runs, see configure's option --config-cache.
  31242. # It is not useful on other systems. If it contains results you don't
  31243. # want to keep, you may remove or edit it.
  31244. #
  31245. # config.status only pays attention to the cache file if you give it
  31246. # the --recheck option to rerun configure.
  31247. #
  31248. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  31249. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  31250. # following values.
  31251. _ACEOF
  31252. # The following way of writing the cache mishandles newlines in values,
  31253. # but we know of no workaround that is simple, portable, and efficient.
  31254. # So, we kill variables containing newlines.
  31255. # Ultrix sh set writes to stderr and can't be redirected directly,
  31256. # and sets the high bit in the cache file unless we assign to the vars.
  31257. (
  31258. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  31259. eval ac_val=\$$ac_var
  31260. case $ac_val in #(
  31261. *${as_nl}*)
  31262. case $ac_var in #(
  31263. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  31264. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  31265. esac
  31266. case $ac_var in #(
  31267. _ | IFS | as_nl) ;; #(
  31268. *) $as_unset $ac_var ;;
  31269. esac ;;
  31270. esac
  31271. done
  31272. (set) 2>&1 |
  31273. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  31274. *${as_nl}ac_space=\ *)
  31275. # `set' does not quote correctly, so add quotes (double-quote
  31276. # substitution turns \\\\ into \\, and sed turns \\ into \).
  31277. sed -n \
  31278. "s/'/'\\\\''/g;
  31279. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  31280. ;; #(
  31281. *)
  31282. # `set' quotes correctly as required by POSIX, so do not add quotes.
  31283. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  31284. ;;
  31285. esac |
  31286. sort
  31287. ) |
  31288. sed '
  31289. /^ac_cv_env_/b end
  31290. t clear
  31291. :clear
  31292. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  31293. t end
  31294. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  31295. :end' >>confcache
  31296. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  31297. if test -w "$cache_file"; then
  31298. test "x$cache_file" != "x/dev/null" &&
  31299. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  31300. echo "$as_me: updating cache $cache_file" >&6;}
  31301. cat confcache >$cache_file
  31302. else
  31303. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  31304. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  31305. fi
  31306. fi
  31307. rm -f confcache
  31308. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  31309. # Let make expand exec_prefix.
  31310. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  31311. DEFS=-DHAVE_CONFIG_H
  31312. ac_libobjs=
  31313. ac_ltlibobjs=
  31314. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  31315. # 1. Remove the extension, and $U if already installed.
  31316. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  31317. ac_i=`echo "$ac_i" | sed "$ac_script"`
  31318. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  31319. # will be set to the directory where LIBOBJS objects are built.
  31320. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  31321. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  31322. done
  31323. LIBOBJS=$ac_libobjs
  31324. LTLIBOBJS=$ac_ltlibobjs
  31325. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  31326. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  31327. Usually this means the macro was only invoked conditionally." >&5
  31328. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  31329. Usually this means the macro was only invoked conditionally." >&2;}
  31330. { (exit 1); exit 1; }; }
  31331. fi
  31332. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  31333. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  31334. Usually this means the macro was only invoked conditionally." >&5
  31335. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  31336. Usually this means the macro was only invoked conditionally." >&2;}
  31337. { (exit 1); exit 1; }; }
  31338. fi
  31339. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31340. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31341. Usually this means the macro was only invoked conditionally." >&5
  31342. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31343. Usually this means the macro was only invoked conditionally." >&2;}
  31344. { (exit 1); exit 1; }; }
  31345. fi
  31346. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31347. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31348. Usually this means the macro was only invoked conditionally." >&5
  31349. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31350. Usually this means the macro was only invoked conditionally." >&2;}
  31351. { (exit 1); exit 1; }; }
  31352. fi
  31353. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  31354. { { echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31355. Usually this means the macro was only invoked conditionally." >&5
  31356. echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31357. Usually this means the macro was only invoked conditionally." >&2;}
  31358. { (exit 1); exit 1; }; }
  31359. fi
  31360. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  31361. { { echo "$as_me:$LINENO: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31362. Usually this means the macro was only invoked conditionally." >&5
  31363. echo "$as_me: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31364. Usually this means the macro was only invoked conditionally." >&2;}
  31365. { (exit 1); exit 1; }; }
  31366. fi
  31367. if test -z "${ENABLE_TCPREPLAY_EDIT_TRUE}" && test -z "${ENABLE_TCPREPLAY_EDIT_FALSE}"; then
  31368. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31369. Usually this means the macro was only invoked conditionally." >&5
  31370. echo "$as_me: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31371. Usually this means the macro was only invoked conditionally." >&2;}
  31372. { (exit 1); exit 1; }; }
  31373. fi
  31374. if test -z "${ENABLE_FLOWREPLAY_TRUE}" && test -z "${ENABLE_FLOWREPLAY_FALSE}"; then
  31375. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FLOWREPLAY\" was never defined.
  31376. Usually this means the macro was only invoked conditionally." >&5
  31377. echo "$as_me: error: conditional \"ENABLE_FLOWREPLAY\" was never defined.
  31378. Usually this means the macro was only invoked conditionally." >&2;}
  31379. { (exit 1); exit 1; }; }
  31380. fi
  31381. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  31382. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31383. Usually this means the macro was only invoked conditionally." >&5
  31384. echo "$as_me: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31385. Usually this means the macro was only invoked conditionally." >&2;}
  31386. { (exit 1); exit 1; }; }
  31387. fi
  31388. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  31389. { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31390. Usually this means the macro was only invoked conditionally." >&5
  31391. echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31392. Usually this means the macro was only invoked conditionally." >&2;}
  31393. { (exit 1); exit 1; }; }
  31394. fi
  31395. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  31396. { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  31397. Usually this means the macro was only invoked conditionally." >&5
  31398. echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  31399. Usually this means the macro was only invoked conditionally." >&2;}
  31400. { (exit 1); exit 1; }; }
  31401. fi
  31402. : ${CONFIG_STATUS=./config.status}
  31403. ac_clean_files_save=$ac_clean_files
  31404. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  31405. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  31406. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  31407. cat >$CONFIG_STATUS <<_ACEOF
  31408. #! $SHELL
  31409. # Generated by $as_me.
  31410. # Run this file to recreate the current configuration.
  31411. # Compiler output produced by configure, useful for debugging
  31412. # configure, is in config.log if it exists.
  31413. debug=false
  31414. ac_cs_recheck=false
  31415. ac_cs_silent=false
  31416. SHELL=\${CONFIG_SHELL-$SHELL}
  31417. _ACEOF
  31418. cat >>$CONFIG_STATUS <<\_ACEOF
  31419. ## --------------------- ##
  31420. ## M4sh Initialization. ##
  31421. ## --------------------- ##
  31422. # Be more Bourne compatible
  31423. DUALCASE=1; export DUALCASE # for MKS sh
  31424. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  31425. emulate sh
  31426. NULLCMD=:
  31427. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  31428. # is contrary to our usage. Disable this feature.
  31429. alias -g '${1+"$@"}'='"$@"'
  31430. setopt NO_GLOB_SUBST
  31431. else
  31432. case `(set -o) 2>/dev/null` in
  31433. *posix*) set -o posix ;;
  31434. esac
  31435. fi
  31436. # PATH needs CR
  31437. # Avoid depending upon Character Ranges.
  31438. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31439. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31440. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31441. as_cr_digits='0123456789'
  31442. as_cr_alnum=$as_cr_Letters$as_cr_digits
  31443. # The user is always right.
  31444. if test "${PATH_SEPARATOR+set}" != set; then
  31445. echo "#! /bin/sh" >conf$$.sh
  31446. echo "exit 0" >>conf$$.sh
  31447. chmod +x conf$$.sh
  31448. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  31449. PATH_SEPARATOR=';'
  31450. else
  31451. PATH_SEPARATOR=:
  31452. fi
  31453. rm -f conf$$.sh
  31454. fi
  31455. # Support unset when possible.
  31456. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  31457. as_unset=unset
  31458. else
  31459. as_unset=false
  31460. fi
  31461. # IFS
  31462. # We need space, tab and new line, in precisely that order. Quoting is
  31463. # there to prevent editors from complaining about space-tab.
  31464. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  31465. # splitting by setting IFS to empty value.)
  31466. as_nl='
  31467. '
  31468. IFS=" "" $as_nl"
  31469. # Find who we are. Look in the path if we contain no directory separator.
  31470. case $0 in
  31471. *[\\/]* ) as_myself=$0 ;;
  31472. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31473. for as_dir in $PATH
  31474. do
  31475. IFS=$as_save_IFS
  31476. test -z "$as_dir" && as_dir=.
  31477. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  31478. done
  31479. IFS=$as_save_IFS
  31480. ;;
  31481. esac
  31482. # We did not find ourselves, most probably we were run as `sh COMMAND'
  31483. # in which case we are not to be found in the path.
  31484. if test "x$as_myself" = x; then
  31485. as_myself=$0
  31486. fi
  31487. if test ! -f "$as_myself"; then
  31488. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  31489. { (exit 1); exit 1; }
  31490. fi
  31491. # Work around bugs in pre-3.0 UWIN ksh.
  31492. for as_var in ENV MAIL MAILPATH
  31493. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  31494. done
  31495. PS1='$ '
  31496. PS2='> '
  31497. PS4='+ '
  31498. # NLS nuisances.
  31499. for as_var in \
  31500. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  31501. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  31502. LC_TELEPHONE LC_TIME
  31503. do
  31504. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  31505. eval $as_var=C; export $as_var
  31506. else
  31507. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  31508. fi
  31509. done
  31510. # Required to use basename.
  31511. if expr a : '\(a\)' >/dev/null 2>&1 &&
  31512. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  31513. as_expr=expr
  31514. else
  31515. as_expr=false
  31516. fi
  31517. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  31518. as_basename=basename
  31519. else
  31520. as_basename=false
  31521. fi
  31522. # Name of the executable.
  31523. as_me=`$as_basename -- "$0" ||
  31524. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  31525. X"$0" : 'X\(//\)$' \| \
  31526. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  31527. echo X/"$0" |
  31528. sed '/^.*\/\([^/][^/]*\)\/*$/{
  31529. s//\1/
  31530. q
  31531. }
  31532. /^X\/\(\/\/\)$/{
  31533. s//\1/
  31534. q
  31535. }
  31536. /^X\/\(\/\).*/{
  31537. s//\1/
  31538. q
  31539. }
  31540. s/.*/./; q'`
  31541. # CDPATH.
  31542. $as_unset CDPATH
  31543. as_lineno_1=$LINENO
  31544. as_lineno_2=$LINENO
  31545. test "x$as_lineno_1" != "x$as_lineno_2" &&
  31546. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  31547. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  31548. # uniformly replaced by the line number. The first 'sed' inserts a
  31549. # line-number line after each line using $LINENO; the second 'sed'
  31550. # does the real work. The second script uses 'N' to pair each
  31551. # line-number line with the line containing $LINENO, and appends
  31552. # trailing '-' during substitution so that $LINENO is not a special
  31553. # case at line end.
  31554. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  31555. # scripts with optimization help from Paolo Bonzini. Blame Lee
  31556. # E. McMahon (1931-1989) for sed's syntax. :-)
  31557. sed -n '
  31558. p
  31559. /[$]LINENO/=
  31560. ' <$as_myself |
  31561. sed '
  31562. s/[$]LINENO.*/&-/
  31563. t lineno
  31564. b
  31565. :lineno
  31566. N
  31567. :loop
  31568. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  31569. t loop
  31570. s/-\n.*//
  31571. ' >$as_me.lineno &&
  31572. chmod +x "$as_me.lineno" ||
  31573. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  31574. { (exit 1); exit 1; }; }
  31575. # Don't try to exec as it changes $[0], causing all sort of problems
  31576. # (the dirname of $[0] is not the place where we might find the
  31577. # original and so on. Autoconf is especially sensitive to this).
  31578. . "./$as_me.lineno"
  31579. # Exit status is that of the last command.
  31580. exit
  31581. }
  31582. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  31583. as_dirname=dirname
  31584. else
  31585. as_dirname=false
  31586. fi
  31587. ECHO_C= ECHO_N= ECHO_T=
  31588. case `echo -n x` in
  31589. -n*)
  31590. case `echo 'x\c'` in
  31591. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  31592. *) ECHO_C='\c';;
  31593. esac;;
  31594. *)
  31595. ECHO_N='-n';;
  31596. esac
  31597. if expr a : '\(a\)' >/dev/null 2>&1 &&
  31598. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  31599. as_expr=expr
  31600. else
  31601. as_expr=false
  31602. fi
  31603. rm -f conf$$ conf$$.exe conf$$.file
  31604. if test -d conf$$.dir; then
  31605. rm -f conf$$.dir/conf$$.file
  31606. else
  31607. rm -f conf$$.dir
  31608. mkdir conf$$.dir
  31609. fi
  31610. echo >conf$$.file
  31611. if ln -s conf$$.file conf$$ 2>/dev/null; then
  31612. as_ln_s='ln -s'
  31613. # ... but there are two gotchas:
  31614. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  31615. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  31616. # In both cases, we have to default to `cp -p'.
  31617. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  31618. as_ln_s='cp -p'
  31619. elif ln conf$$.file conf$$ 2>/dev/null; then
  31620. as_ln_s=ln
  31621. else
  31622. as_ln_s='cp -p'
  31623. fi
  31624. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  31625. rmdir conf$$.dir 2>/dev/null
  31626. if mkdir -p . 2>/dev/null; then
  31627. as_mkdir_p=:
  31628. else
  31629. test -d ./-p && rmdir ./-p
  31630. as_mkdir_p=false
  31631. fi
  31632. if test -x / >/dev/null 2>&1; then
  31633. as_test_x='test -x'
  31634. else
  31635. if ls -dL / >/dev/null 2>&1; then
  31636. as_ls_L_option=L
  31637. else
  31638. as_ls_L_option=
  31639. fi
  31640. as_test_x='
  31641. eval sh -c '\''
  31642. if test -d "$1"; then
  31643. test -d "$1/.";
  31644. else
  31645. case $1 in
  31646. -*)set "./$1";;
  31647. esac;
  31648. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  31649. ???[sx]*):;;*)false;;esac;fi
  31650. '\'' sh
  31651. '
  31652. fi
  31653. as_executable_p=$as_test_x
  31654. # Sed expression to map a string onto a valid CPP name.
  31655. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  31656. # Sed expression to map a string onto a valid variable name.
  31657. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  31658. exec 6>&1
  31659. # Save the log message, to keep $[0] and so on meaningful, and to
  31660. # report actual input values of CONFIG_FILES etc. instead of their
  31661. # values after options handling.
  31662. ac_log="
  31663. This file was extended by $as_me, which was
  31664. generated by GNU Autoconf 2.61. Invocation command line was
  31665. CONFIG_FILES = $CONFIG_FILES
  31666. CONFIG_HEADERS = $CONFIG_HEADERS
  31667. CONFIG_LINKS = $CONFIG_LINKS
  31668. CONFIG_COMMANDS = $CONFIG_COMMANDS
  31669. $ $0 $@
  31670. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  31671. "
  31672. _ACEOF
  31673. cat >>$CONFIG_STATUS <<_ACEOF
  31674. # Files that config.status was made for.
  31675. config_files="$ac_config_files"
  31676. config_headers="$ac_config_headers"
  31677. config_commands="$ac_config_commands"
  31678. _ACEOF
  31679. cat >>$CONFIG_STATUS <<\_ACEOF
  31680. ac_cs_usage="\
  31681. \`$as_me' instantiates files from templates according to the
  31682. current configuration.
  31683. Usage: $0 [OPTIONS] [FILE]...
  31684. -h, --help print this help, then exit
  31685. -V, --version print version number and configuration settings, then exit
  31686. -q, --quiet do not print progress messages
  31687. -d, --debug don't remove temporary files
  31688. --recheck update $as_me by reconfiguring in the same conditions
  31689. --file=FILE[:TEMPLATE]
  31690. instantiate the configuration file FILE
  31691. --header=FILE[:TEMPLATE]
  31692. instantiate the configuration header FILE
  31693. Configuration files:
  31694. $config_files
  31695. Configuration headers:
  31696. $config_headers
  31697. Configuration commands:
  31698. $config_commands
  31699. Report bugs to <bug-autoconf@gnu.org>."
  31700. _ACEOF
  31701. cat >>$CONFIG_STATUS <<_ACEOF
  31702. ac_cs_version="\\
  31703. config.status
  31704. configured by $0, generated by GNU Autoconf 2.61,
  31705. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  31706. Copyright (C) 2006 Free Software Foundation, Inc.
  31707. This config.status script is free software; the Free Software Foundation
  31708. gives unlimited permission to copy, distribute and modify it."
  31709. ac_pwd='$ac_pwd'
  31710. srcdir='$srcdir'
  31711. INSTALL='$INSTALL'
  31712. MKDIR_P='$MKDIR_P'
  31713. _ACEOF
  31714. cat >>$CONFIG_STATUS <<\_ACEOF
  31715. # If no file are specified by the user, then we need to provide default
  31716. # value. By we need to know if files were specified by the user.
  31717. ac_need_defaults=:
  31718. while test $# != 0
  31719. do
  31720. case $1 in
  31721. --*=*)
  31722. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  31723. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  31724. ac_shift=:
  31725. ;;
  31726. *)
  31727. ac_option=$1
  31728. ac_optarg=$2
  31729. ac_shift=shift
  31730. ;;
  31731. esac
  31732. case $ac_option in
  31733. # Handling of the options.
  31734. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  31735. ac_cs_recheck=: ;;
  31736. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  31737. echo "$ac_cs_version"; exit ;;
  31738. --debug | --debu | --deb | --de | --d | -d )
  31739. debug=: ;;
  31740. --file | --fil | --fi | --f )
  31741. $ac_shift
  31742. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  31743. ac_need_defaults=false;;
  31744. --header | --heade | --head | --hea )
  31745. $ac_shift
  31746. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  31747. ac_need_defaults=false;;
  31748. --he | --h)
  31749. # Conflict between --help and --header
  31750. { echo "$as_me: error: ambiguous option: $1
  31751. Try \`$0 --help' for more information." >&2
  31752. { (exit 1); exit 1; }; };;
  31753. --help | --hel | -h )
  31754. echo "$ac_cs_usage"; exit ;;
  31755. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  31756. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  31757. ac_cs_silent=: ;;
  31758. # This is an error.
  31759. -*) { echo "$as_me: error: unrecognized option: $1
  31760. Try \`$0 --help' for more information." >&2
  31761. { (exit 1); exit 1; }; } ;;
  31762. *) ac_config_targets="$ac_config_targets $1"
  31763. ac_need_defaults=false ;;
  31764. esac
  31765. shift
  31766. done
  31767. ac_configure_extra_args=
  31768. if $ac_cs_silent; then
  31769. exec 6>/dev/null
  31770. ac_configure_extra_args="$ac_configure_extra_args --silent"
  31771. fi
  31772. _ACEOF
  31773. cat >>$CONFIG_STATUS <<_ACEOF
  31774. if \$ac_cs_recheck; then
  31775. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  31776. CONFIG_SHELL=$SHELL
  31777. export CONFIG_SHELL
  31778. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  31779. fi
  31780. _ACEOF
  31781. cat >>$CONFIG_STATUS <<\_ACEOF
  31782. exec 5>>config.log
  31783. {
  31784. echo
  31785. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  31786. ## Running $as_me. ##
  31787. _ASBOX
  31788. echo "$ac_log"
  31789. } >&5
  31790. _ACEOF
  31791. cat >>$CONFIG_STATUS <<_ACEOF
  31792. #
  31793. # INIT-COMMANDS
  31794. #
  31795. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  31796. _ACEOF
  31797. cat >>$CONFIG_STATUS <<\_ACEOF
  31798. # Handling of arguments.
  31799. for ac_config_target in $ac_config_targets
  31800. do
  31801. case $ac_config_target in
  31802. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  31803. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  31804. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  31805. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  31806. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  31807. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  31808. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  31809. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  31810. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  31811. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  31812. "src/flow/Makefile") CONFIG_FILES="$CONFIG_FILES src/flow/Makefile" ;;
  31813. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  31814. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  31815. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  31816. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  31817. "tcpreplay.spec") CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  31818. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  31819. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  31820. { (exit 1); exit 1; }; };;
  31821. esac
  31822. done
  31823. # If the user did not use the arguments to specify the items to instantiate,
  31824. # then the envvar interface is used. Set only those that are not.
  31825. # We use the long form for the default assignment because of an extremely
  31826. # bizarre bug on SunOS 4.1.3.
  31827. if $ac_need_defaults; then
  31828. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  31829. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  31830. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  31831. fi
  31832. # Have a temporary directory for convenience. Make it in the build tree
  31833. # simply because there is no reason against having it here, and in addition,
  31834. # creating and moving files from /tmp can sometimes cause problems.
  31835. # Hook for its removal unless debugging.
  31836. # Note that there is a small window in which the directory will not be cleaned:
  31837. # after its creation but before its name has been assigned to `$tmp'.
  31838. $debug ||
  31839. {
  31840. tmp=
  31841. trap 'exit_status=$?
  31842. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  31843. ' 0
  31844. trap '{ (exit 1); exit 1; }' 1 2 13 15
  31845. }
  31846. # Create a (secure) tmp directory for tmp files.
  31847. {
  31848. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  31849. test -n "$tmp" && test -d "$tmp"
  31850. } ||
  31851. {
  31852. tmp=./conf$$-$RANDOM
  31853. (umask 077 && mkdir "$tmp")
  31854. } ||
  31855. {
  31856. echo "$me: cannot create a temporary directory in ." >&2
  31857. { (exit 1); exit 1; }
  31858. }
  31859. #
  31860. # Set up the sed scripts for CONFIG_FILES section.
  31861. #
  31862. # No need to generate the scripts if there are no CONFIG_FILES.
  31863. # This happens for instance when ./config.status config.h
  31864. if test -n "$CONFIG_FILES"; then
  31865. _ACEOF
  31866. ac_delim='%!_!# '
  31867. for ac_last_try in false false false false false :; do
  31868. cat >conf$$subs.sed <<_ACEOF
  31869. SHELL!$SHELL$ac_delim
  31870. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  31871. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  31872. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  31873. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  31874. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  31875. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  31876. exec_prefix!$exec_prefix$ac_delim
  31877. prefix!$prefix$ac_delim
  31878. program_transform_name!$program_transform_name$ac_delim
  31879. bindir!$bindir$ac_delim
  31880. sbindir!$sbindir$ac_delim
  31881. libexecdir!$libexecdir$ac_delim
  31882. datarootdir!$datarootdir$ac_delim
  31883. datadir!$datadir$ac_delim
  31884. sysconfdir!$sysconfdir$ac_delim
  31885. sharedstatedir!$sharedstatedir$ac_delim
  31886. localstatedir!$localstatedir$ac_delim
  31887. includedir!$includedir$ac_delim
  31888. oldincludedir!$oldincludedir$ac_delim
  31889. docdir!$docdir$ac_delim
  31890. infodir!$infodir$ac_delim
  31891. htmldir!$htmldir$ac_delim
  31892. dvidir!$dvidir$ac_delim
  31893. pdfdir!$pdfdir$ac_delim
  31894. psdir!$psdir$ac_delim
  31895. libdir!$libdir$ac_delim
  31896. localedir!$localedir$ac_delim
  31897. mandir!$mandir$ac_delim
  31898. DEFS!$DEFS$ac_delim
  31899. ECHO_C!$ECHO_C$ac_delim
  31900. ECHO_N!$ECHO_N$ac_delim
  31901. ECHO_T!$ECHO_T$ac_delim
  31902. LIBS!$LIBS$ac_delim
  31903. build_alias!$build_alias$ac_delim
  31904. host_alias!$host_alias$ac_delim
  31905. target_alias!$target_alias$ac_delim
  31906. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  31907. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  31908. MAINT!$MAINT$ac_delim
  31909. build!$build$ac_delim
  31910. build_cpu!$build_cpu$ac_delim
  31911. build_vendor!$build_vendor$ac_delim
  31912. build_os!$build_os$ac_delim
  31913. host!$host$ac_delim
  31914. host_cpu!$host_cpu$ac_delim
  31915. host_vendor!$host_vendor$ac_delim
  31916. host_os!$host_os$ac_delim
  31917. CC!$CC$ac_delim
  31918. CFLAGS!$CFLAGS$ac_delim
  31919. LDFLAGS!$LDFLAGS$ac_delim
  31920. CPPFLAGS!$CPPFLAGS$ac_delim
  31921. ac_ct_CC!$ac_ct_CC$ac_delim
  31922. EXEEXT!$EXEEXT$ac_delim
  31923. OBJEXT!$OBJEXT$ac_delim
  31924. GREP!$GREP$ac_delim
  31925. EGREP!$EGREP$ac_delim
  31926. LN_S!$LN_S$ac_delim
  31927. ECHO!$ECHO$ac_delim
  31928. AR!$AR$ac_delim
  31929. RANLIB!$RANLIB$ac_delim
  31930. STRIP!$STRIP$ac_delim
  31931. CPP!$CPP$ac_delim
  31932. CXX!$CXX$ac_delim
  31933. CXXFLAGS!$CXXFLAGS$ac_delim
  31934. ac_ct_CXX!$ac_ct_CXX$ac_delim
  31935. CXXCPP!$CXXCPP$ac_delim
  31936. F77!$F77$ac_delim
  31937. FFLAGS!$FFLAGS$ac_delim
  31938. ac_ct_F77!$ac_ct_F77$ac_delim
  31939. LIBTOOL!$LIBTOOL$ac_delim
  31940. TCPREPLAY_VERSION!$TCPREPLAY_VERSION$ac_delim
  31941. TCPREPLAY_RELEASE!$TCPREPLAY_RELEASE$ac_delim
  31942. target!$target$ac_delim
  31943. target_cpu!$target_cpu$ac_delim
  31944. target_vendor!$target_vendor$ac_delim
  31945. target_os!$target_os$ac_delim
  31946. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  31947. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  31948. INSTALL_DATA!$INSTALL_DATA$ac_delim
  31949. am__isrc!$am__isrc$ac_delim
  31950. CYGPATH_W!$CYGPATH_W$ac_delim
  31951. PACKAGE!$PACKAGE$ac_delim
  31952. VERSION!$VERSION$ac_delim
  31953. ACLOCAL!$ACLOCAL$ac_delim
  31954. AUTOCONF!$AUTOCONF$ac_delim
  31955. AUTOMAKE!$AUTOMAKE$ac_delim
  31956. AUTOHEADER!$AUTOHEADER$ac_delim
  31957. MAKEINFO!$MAKEINFO$ac_delim
  31958. install_sh!$install_sh$ac_delim
  31959. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  31960. mkdir_p!$mkdir_p$ac_delim
  31961. AWK!$AWK$ac_delim
  31962. SET_MAKE!$SET_MAKE$ac_delim
  31963. am__leading_dot!$am__leading_dot$ac_delim
  31964. AMTAR!$AMTAR$ac_delim
  31965. am__tar!$am__tar$ac_delim
  31966. _ACEOF
  31967. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  31968. break
  31969. elif $ac_last_try; then
  31970. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  31971. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  31972. { (exit 1); exit 1; }; }
  31973. else
  31974. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  31975. fi
  31976. done
  31977. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  31978. if test -n "$ac_eof"; then
  31979. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  31980. ac_eof=`expr $ac_eof + 1`
  31981. fi
  31982. cat >>$CONFIG_STATUS <<_ACEOF
  31983. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  31984. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  31985. _ACEOF
  31986. sed '
  31987. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  31988. s/^/s,@/; s/!/@,|#_!!_#|/
  31989. :n
  31990. t n
  31991. s/'"$ac_delim"'$/,g/; t
  31992. s/$/\\/; p
  31993. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  31994. ' >>$CONFIG_STATUS <conf$$subs.sed
  31995. rm -f conf$$subs.sed
  31996. cat >>$CONFIG_STATUS <<_ACEOF
  31997. CEOF$ac_eof
  31998. _ACEOF
  31999. ac_delim='%!_!# '
  32000. for ac_last_try in false false false false false :; do
  32001. cat >conf$$subs.sed <<_ACEOF
  32002. am__untar!$am__untar$ac_delim
  32003. DEPDIR!$DEPDIR$ac_delim
  32004. am__include!$am__include$ac_delim
  32005. am__quote!$am__quote$ac_delim
  32006. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  32007. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  32008. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  32009. CCDEPMODE!$CCDEPMODE$ac_delim
  32010. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  32011. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  32012. CXXDEPMODE!$CXXDEPMODE$ac_delim
  32013. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  32014. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  32015. PRINTF!$PRINTF$ac_delim
  32016. AUTOGEN!$AUTOGEN$ac_delim
  32017. LIBOBJS!$LIBOBJS$ac_delim
  32018. SYSTEM_STRLCPY_TRUE!$SYSTEM_STRLCPY_TRUE$ac_delim
  32019. SYSTEM_STRLCPY_FALSE!$SYSTEM_STRLCPY_FALSE$ac_delim
  32020. WORDS_BIGENDIAN_TRUE!$WORDS_BIGENDIAN_TRUE$ac_delim
  32021. WORDS_BIGENDIAN_FALSE!$WORDS_BIGENDIAN_FALSE$ac_delim
  32022. debug_flag!$debug_flag$ac_delim
  32023. ENABLE_TCPREPLAY_EDIT_TRUE!$ENABLE_TCPREPLAY_EDIT_TRUE$ac_delim
  32024. ENABLE_TCPREPLAY_EDIT_FALSE!$ENABLE_TCPREPLAY_EDIT_FALSE$ac_delim
  32025. ENABLE_FLOWREPLAY_TRUE!$ENABLE_FLOWREPLAY_TRUE$ac_delim
  32026. ENABLE_FLOWREPLAY_FALSE!$ENABLE_FLOWREPLAY_FALSE$ac_delim
  32027. LNETINC!$LNETINC$ac_delim
  32028. LNETLIB!$LNETLIB$ac_delim
  32029. LPCAPINC!$LPCAPINC$ac_delim
  32030. LPCAPLIB!$LPCAPLIB$ac_delim
  32031. PCAP_BPF_H_FILE!$PCAP_BPF_H_FILE$ac_delim
  32032. pcncfg!$pcncfg$ac_delim
  32033. LNAVLIB!$LNAVLIB$ac_delim
  32034. LNAV_CFLAGS!$LNAV_CFLAGS$ac_delim
  32035. td!$td$ac_delim
  32036. ENABLE_TCPDUMP_TRUE!$ENABLE_TCPDUMP_TRUE$ac_delim
  32037. ENABLE_TCPDUMP_FALSE!$ENABLE_TCPDUMP_FALSE$ac_delim
  32038. nic1!$nic1$ac_delim
  32039. nic2!$nic2$ac_delim
  32040. LIBOPTS_DIR!$LIBOPTS_DIR$ac_delim
  32041. INSTALL_LIBOPTS_TRUE!$INSTALL_LIBOPTS_TRUE$ac_delim
  32042. INSTALL_LIBOPTS_FALSE!$INSTALL_LIBOPTS_FALSE$ac_delim
  32043. NEED_LIBOPTS_TRUE!$NEED_LIBOPTS_TRUE$ac_delim
  32044. NEED_LIBOPTS_FALSE!$NEED_LIBOPTS_FALSE$ac_delim
  32045. LIBOPTS_LDADD!$LIBOPTS_LDADD$ac_delim
  32046. LIBOPTS_CFLAGS!$LIBOPTS_CFLAGS$ac_delim
  32047. LTLIBOBJS!$LTLIBOBJS$ac_delim
  32048. _ACEOF
  32049. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
  32050. break
  32051. elif $ac_last_try; then
  32052. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32053. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32054. { (exit 1); exit 1; }; }
  32055. else
  32056. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32057. fi
  32058. done
  32059. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32060. if test -n "$ac_eof"; then
  32061. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32062. ac_eof=`expr $ac_eof + 1`
  32063. fi
  32064. cat >>$CONFIG_STATUS <<_ACEOF
  32065. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  32066. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  32067. _ACEOF
  32068. sed '
  32069. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32070. s/^/s,@/; s/!/@,|#_!!_#|/
  32071. :n
  32072. t n
  32073. s/'"$ac_delim"'$/,g/; t
  32074. s/$/\\/; p
  32075. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32076. ' >>$CONFIG_STATUS <conf$$subs.sed
  32077. rm -f conf$$subs.sed
  32078. cat >>$CONFIG_STATUS <<_ACEOF
  32079. :end
  32080. s/|#_!!_#|//g
  32081. CEOF$ac_eof
  32082. _ACEOF
  32083. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  32084. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  32085. # trailing colons and then remove the whole line if VPATH becomes empty
  32086. # (actually we leave an empty line to preserve line numbers).
  32087. if test "x$srcdir" = x.; then
  32088. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  32089. s/:*\$(srcdir):*/:/
  32090. s/:*\${srcdir}:*/:/
  32091. s/:*@srcdir@:*/:/
  32092. s/^\([^=]*=[ ]*\):*/\1/
  32093. s/:*$//
  32094. s/^[^=]*=[ ]*$//
  32095. }'
  32096. fi
  32097. cat >>$CONFIG_STATUS <<\_ACEOF
  32098. fi # test -n "$CONFIG_FILES"
  32099. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  32100. do
  32101. case $ac_tag in
  32102. :[FHLC]) ac_mode=$ac_tag; continue;;
  32103. esac
  32104. case $ac_mode$ac_tag in
  32105. :[FHL]*:*);;
  32106. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  32107. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  32108. { (exit 1); exit 1; }; };;
  32109. :[FH]-) ac_tag=-:-;;
  32110. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  32111. esac
  32112. ac_save_IFS=$IFS
  32113. IFS=:
  32114. set x $ac_tag
  32115. IFS=$ac_save_IFS
  32116. shift
  32117. ac_file=$1
  32118. shift
  32119. case $ac_mode in
  32120. :L) ac_source=$1;;
  32121. :[FH])
  32122. ac_file_inputs=
  32123. for ac_f
  32124. do
  32125. case $ac_f in
  32126. -) ac_f="$tmp/stdin";;
  32127. *) # Look for the file first in the build tree, then in the source tree
  32128. # (if the path is not absolute). The absolute path cannot be DOS-style,
  32129. # because $ac_f cannot contain `:'.
  32130. test -f "$ac_f" ||
  32131. case $ac_f in
  32132. [\\/$]*) false;;
  32133. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  32134. esac ||
  32135. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  32136. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  32137. { (exit 1); exit 1; }; };;
  32138. esac
  32139. ac_file_inputs="$ac_file_inputs $ac_f"
  32140. done
  32141. # Let's still pretend it is `configure' which instantiates (i.e., don't
  32142. # use $as_me), people would be surprised to read:
  32143. # /* config.h. Generated by config.status. */
  32144. configure_input="Generated from "`IFS=:
  32145. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  32146. if test x"$ac_file" != x-; then
  32147. configure_input="$ac_file. $configure_input"
  32148. { echo "$as_me:$LINENO: creating $ac_file" >&5
  32149. echo "$as_me: creating $ac_file" >&6;}
  32150. fi
  32151. case $ac_tag in
  32152. *:-:* | *:-) cat >"$tmp/stdin";;
  32153. esac
  32154. ;;
  32155. esac
  32156. ac_dir=`$as_dirname -- "$ac_file" ||
  32157. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32158. X"$ac_file" : 'X\(//\)[^/]' \| \
  32159. X"$ac_file" : 'X\(//\)$' \| \
  32160. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  32161. echo X"$ac_file" |
  32162. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32163. s//\1/
  32164. q
  32165. }
  32166. /^X\(\/\/\)[^/].*/{
  32167. s//\1/
  32168. q
  32169. }
  32170. /^X\(\/\/\)$/{
  32171. s//\1/
  32172. q
  32173. }
  32174. /^X\(\/\).*/{
  32175. s//\1/
  32176. q
  32177. }
  32178. s/.*/./; q'`
  32179. { as_dir="$ac_dir"
  32180. case $as_dir in #(
  32181. -*) as_dir=./$as_dir;;
  32182. esac
  32183. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32184. as_dirs=
  32185. while :; do
  32186. case $as_dir in #(
  32187. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  32188. *) as_qdir=$as_dir;;
  32189. esac
  32190. as_dirs="'$as_qdir' $as_dirs"
  32191. as_dir=`$as_dirname -- "$as_dir" ||
  32192. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32193. X"$as_dir" : 'X\(//\)[^/]' \| \
  32194. X"$as_dir" : 'X\(//\)$' \| \
  32195. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32196. echo X"$as_dir" |
  32197. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32198. s//\1/
  32199. q
  32200. }
  32201. /^X\(\/\/\)[^/].*/{
  32202. s//\1/
  32203. q
  32204. }
  32205. /^X\(\/\/\)$/{
  32206. s//\1/
  32207. q
  32208. }
  32209. /^X\(\/\).*/{
  32210. s//\1/
  32211. q
  32212. }
  32213. s/.*/./; q'`
  32214. test -d "$as_dir" && break
  32215. done
  32216. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32217. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32218. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32219. { (exit 1); exit 1; }; }; }
  32220. ac_builddir=.
  32221. case "$ac_dir" in
  32222. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32223. *)
  32224. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  32225. # A ".." for each directory in $ac_dir_suffix.
  32226. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  32227. case $ac_top_builddir_sub in
  32228. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32229. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  32230. esac ;;
  32231. esac
  32232. ac_abs_top_builddir=$ac_pwd
  32233. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  32234. # for backward compatibility:
  32235. ac_top_builddir=$ac_top_build_prefix
  32236. case $srcdir in
  32237. .) # We are building in place.
  32238. ac_srcdir=.
  32239. ac_top_srcdir=$ac_top_builddir_sub
  32240. ac_abs_top_srcdir=$ac_pwd ;;
  32241. [\\/]* | ?:[\\/]* ) # Absolute name.
  32242. ac_srcdir=$srcdir$ac_dir_suffix;
  32243. ac_top_srcdir=$srcdir
  32244. ac_abs_top_srcdir=$srcdir ;;
  32245. *) # Relative name.
  32246. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  32247. ac_top_srcdir=$ac_top_build_prefix$srcdir
  32248. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  32249. esac
  32250. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  32251. case $ac_mode in
  32252. :F)
  32253. #
  32254. # CONFIG_FILE
  32255. #
  32256. case $INSTALL in
  32257. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  32258. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  32259. esac
  32260. ac_MKDIR_P=$MKDIR_P
  32261. case $MKDIR_P in
  32262. [\\/$]* | ?:[\\/]* ) ;;
  32263. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  32264. esac
  32265. _ACEOF
  32266. cat >>$CONFIG_STATUS <<\_ACEOF
  32267. # If the template does not know about datarootdir, expand it.
  32268. # FIXME: This hack should be removed a few years after 2.60.
  32269. ac_datarootdir_hack=; ac_datarootdir_seen=
  32270. case `sed -n '/datarootdir/ {
  32271. p
  32272. q
  32273. }
  32274. /@datadir@/p
  32275. /@docdir@/p
  32276. /@infodir@/p
  32277. /@localedir@/p
  32278. /@mandir@/p
  32279. ' $ac_file_inputs` in
  32280. *datarootdir*) ac_datarootdir_seen=yes;;
  32281. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  32282. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  32283. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  32284. _ACEOF
  32285. cat >>$CONFIG_STATUS <<_ACEOF
  32286. ac_datarootdir_hack='
  32287. s&@datadir@&$datadir&g
  32288. s&@docdir@&$docdir&g
  32289. s&@infodir@&$infodir&g
  32290. s&@localedir@&$localedir&g
  32291. s&@mandir@&$mandir&g
  32292. s&\\\${datarootdir}&$datarootdir&g' ;;
  32293. esac
  32294. _ACEOF
  32295. # Neutralize VPATH when `$srcdir' = `.'.
  32296. # Shell code in configure.ac might set extrasub.
  32297. # FIXME: do we really want to maintain this feature?
  32298. cat >>$CONFIG_STATUS <<_ACEOF
  32299. sed "$ac_vpsub
  32300. $extrasub
  32301. _ACEOF
  32302. cat >>$CONFIG_STATUS <<\_ACEOF
  32303. :t
  32304. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32305. s&@configure_input@&$configure_input&;t t
  32306. s&@top_builddir@&$ac_top_builddir_sub&;t t
  32307. s&@srcdir@&$ac_srcdir&;t t
  32308. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  32309. s&@top_srcdir@&$ac_top_srcdir&;t t
  32310. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  32311. s&@builddir@&$ac_builddir&;t t
  32312. s&@abs_builddir@&$ac_abs_builddir&;t t
  32313. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  32314. s&@INSTALL@&$ac_INSTALL&;t t
  32315. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  32316. $ac_datarootdir_hack
  32317. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  32318. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  32319. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  32320. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  32321. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32322. which seems to be undefined. Please make sure it is defined." >&5
  32323. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32324. which seems to be undefined. Please make sure it is defined." >&2;}
  32325. rm -f "$tmp/stdin"
  32326. case $ac_file in
  32327. -) cat "$tmp/out"; rm -f "$tmp/out";;
  32328. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  32329. esac
  32330. ;;
  32331. :H)
  32332. #
  32333. # CONFIG_HEADER
  32334. #
  32335. _ACEOF
  32336. # Transform confdefs.h into a sed script `conftest.defines', that
  32337. # substitutes the proper values into config.h.in to produce config.h.
  32338. rm -f conftest.defines conftest.tail
  32339. # First, append a space to every undef/define line, to ease matching.
  32340. echo 's/$/ /' >conftest.defines
  32341. # Then, protect against being on the right side of a sed subst, or in
  32342. # an unquoted here document, in config.status. If some macros were
  32343. # called several times there might be several #defines for the same
  32344. # symbol, which is useless. But do not sort them, since the last
  32345. # AC_DEFINE must be honored.
  32346. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  32347. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  32348. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  32349. # PARAMS is the parameter list in the macro definition--in most cases, it's
  32350. # just an empty string.
  32351. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  32352. ac_dB='\\)[ (].*,\\1define\\2'
  32353. ac_dC=' '
  32354. ac_dD=' ,'
  32355. uniq confdefs.h |
  32356. sed -n '
  32357. t rset
  32358. :rset
  32359. s/^[ ]*#[ ]*define[ ][ ]*//
  32360. t ok
  32361. d
  32362. :ok
  32363. s/[\\&,]/\\&/g
  32364. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  32365. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  32366. ' >>conftest.defines
  32367. # Remove the space that was appended to ease matching.
  32368. # Then replace #undef with comments. This is necessary, for
  32369. # example, in the case of _POSIX_SOURCE, which is predefined and required
  32370. # on some systems where configure will not decide to define it.
  32371. # (The regexp can be short, since the line contains either #define or #undef.)
  32372. echo 's/ $//
  32373. s,^[ #]*u.*,/* & */,' >>conftest.defines
  32374. # Break up conftest.defines:
  32375. ac_max_sed_lines=50
  32376. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  32377. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  32378. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  32379. # et cetera.
  32380. ac_in='$ac_file_inputs'
  32381. ac_out='"$tmp/out1"'
  32382. ac_nxt='"$tmp/out2"'
  32383. while :
  32384. do
  32385. # Write a here document:
  32386. cat >>$CONFIG_STATUS <<_ACEOF
  32387. # First, check the format of the line:
  32388. cat >"\$tmp/defines.sed" <<\\CEOF
  32389. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  32390. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  32391. b
  32392. :def
  32393. _ACEOF
  32394. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  32395. echo 'CEOF
  32396. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  32397. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  32398. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  32399. grep . conftest.tail >/dev/null || break
  32400. rm -f conftest.defines
  32401. mv conftest.tail conftest.defines
  32402. done
  32403. rm -f conftest.defines conftest.tail
  32404. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  32405. cat >>$CONFIG_STATUS <<\_ACEOF
  32406. if test x"$ac_file" != x-; then
  32407. echo "/* $configure_input */" >"$tmp/config.h"
  32408. cat "$ac_result" >>"$tmp/config.h"
  32409. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  32410. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  32411. echo "$as_me: $ac_file is unchanged" >&6;}
  32412. else
  32413. rm -f $ac_file
  32414. mv "$tmp/config.h" $ac_file
  32415. fi
  32416. else
  32417. echo "/* $configure_input */"
  32418. cat "$ac_result"
  32419. fi
  32420. rm -f "$tmp/out12"
  32421. # Compute $ac_file's index in $config_headers.
  32422. _am_stamp_count=1
  32423. for _am_header in $config_headers :; do
  32424. case $_am_header in
  32425. $ac_file | $ac_file:* )
  32426. break ;;
  32427. * )
  32428. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  32429. esac
  32430. done
  32431. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  32432. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32433. X$ac_file : 'X\(//\)[^/]' \| \
  32434. X$ac_file : 'X\(//\)$' \| \
  32435. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  32436. echo X$ac_file |
  32437. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32438. s//\1/
  32439. q
  32440. }
  32441. /^X\(\/\/\)[^/].*/{
  32442. s//\1/
  32443. q
  32444. }
  32445. /^X\(\/\/\)$/{
  32446. s//\1/
  32447. q
  32448. }
  32449. /^X\(\/\).*/{
  32450. s//\1/
  32451. q
  32452. }
  32453. s/.*/./; q'`/stamp-h$_am_stamp_count
  32454. ;;
  32455. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  32456. echo "$as_me: executing $ac_file commands" >&6;}
  32457. ;;
  32458. esac
  32459. case $ac_file$ac_mode in
  32460. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  32461. # Strip MF so we end up with the name of the file.
  32462. mf=`echo "$mf" | sed -e 's/:.*$//'`
  32463. # Check whether this is an Automake generated Makefile or not.
  32464. # We used to match only the files named `Makefile.in', but
  32465. # some people rename them; so instead we look at the file content.
  32466. # Grep'ing the first line is not enough: some people post-process
  32467. # each Makefile.in and add a new line on top of each file to say so.
  32468. # Grep'ing the whole file is not good either: AIX grep has a line
  32469. # limit of 2048, but all sed's we know have understand at least 4000.
  32470. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  32471. dirpart=`$as_dirname -- "$mf" ||
  32472. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32473. X"$mf" : 'X\(//\)[^/]' \| \
  32474. X"$mf" : 'X\(//\)$' \| \
  32475. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  32476. echo X"$mf" |
  32477. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32478. s//\1/
  32479. q
  32480. }
  32481. /^X\(\/\/\)[^/].*/{
  32482. s//\1/
  32483. q
  32484. }
  32485. /^X\(\/\/\)$/{
  32486. s//\1/
  32487. q
  32488. }
  32489. /^X\(\/\).*/{
  32490. s//\1/
  32491. q
  32492. }
  32493. s/.*/./; q'`
  32494. else
  32495. continue
  32496. fi
  32497. # Extract the definition of DEPDIR, am__include, and am__quote
  32498. # from the Makefile without running `make'.
  32499. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  32500. test -z "$DEPDIR" && continue
  32501. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  32502. test -z "am__include" && continue
  32503. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  32504. # When using ansi2knr, U may be empty or an underscore; expand it
  32505. U=`sed -n 's/^U = //p' < "$mf"`
  32506. # Find all dependency output files, they are included files with
  32507. # $(DEPDIR) in their names. We invoke sed twice because it is the
  32508. # simplest approach to changing $(DEPDIR) to its actual value in the
  32509. # expansion.
  32510. for file in `sed -n "
  32511. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  32512. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  32513. # Make sure the directory exists.
  32514. test -f "$dirpart/$file" && continue
  32515. fdir=`$as_dirname -- "$file" ||
  32516. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32517. X"$file" : 'X\(//\)[^/]' \| \
  32518. X"$file" : 'X\(//\)$' \| \
  32519. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  32520. echo X"$file" |
  32521. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32522. s//\1/
  32523. q
  32524. }
  32525. /^X\(\/\/\)[^/].*/{
  32526. s//\1/
  32527. q
  32528. }
  32529. /^X\(\/\/\)$/{
  32530. s//\1/
  32531. q
  32532. }
  32533. /^X\(\/\).*/{
  32534. s//\1/
  32535. q
  32536. }
  32537. s/.*/./; q'`
  32538. { as_dir=$dirpart/$fdir
  32539. case $as_dir in #(
  32540. -*) as_dir=./$as_dir;;
  32541. esac
  32542. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32543. as_dirs=
  32544. while :; do
  32545. case $as_dir in #(
  32546. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  32547. *) as_qdir=$as_dir;;
  32548. esac
  32549. as_dirs="'$as_qdir' $as_dirs"
  32550. as_dir=`$as_dirname -- "$as_dir" ||
  32551. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32552. X"$as_dir" : 'X\(//\)[^/]' \| \
  32553. X"$as_dir" : 'X\(//\)$' \| \
  32554. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32555. echo X"$as_dir" |
  32556. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32557. s//\1/
  32558. q
  32559. }
  32560. /^X\(\/\/\)[^/].*/{
  32561. s//\1/
  32562. q
  32563. }
  32564. /^X\(\/\/\)$/{
  32565. s//\1/
  32566. q
  32567. }
  32568. /^X\(\/\).*/{
  32569. s//\1/
  32570. q
  32571. }
  32572. s/.*/./; q'`
  32573. test -d "$as_dir" && break
  32574. done
  32575. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32576. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32577. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32578. { (exit 1); exit 1; }; }; }
  32579. # echo "creating $dirpart/$file"
  32580. echo '# dummy' > "$dirpart/$file"
  32581. done
  32582. done
  32583. ;;
  32584. esac
  32585. done # for ac_tag
  32586. { (exit 0); exit 0; }
  32587. _ACEOF
  32588. chmod +x $CONFIG_STATUS
  32589. ac_clean_files=$ac_clean_files_save
  32590. # configure is writing to config.log, and then calls config.status.
  32591. # config.status does its own redirection, appending to config.log.
  32592. # Unfortunately, on DOS this fails, as config.log is still kept open
  32593. # by configure, so config.status won't be able to write to it; its
  32594. # output is simply discarded. So we exec the FD to /dev/null,
  32595. # effectively closing config.log, so it can be properly (re)opened and
  32596. # appended to by config.status. When coming back to configure, we
  32597. # need to make the FD available again.
  32598. if test "$no_create" != yes; then
  32599. ac_cs_success=:
  32600. ac_config_status_args=
  32601. test "$silent" = yes &&
  32602. ac_config_status_args="$ac_config_status_args --quiet"
  32603. exec 5>/dev/null
  32604. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  32605. exec 5>>config.log
  32606. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  32607. # would make configure fail if this is the last instruction.
  32608. $ac_cs_success || { (exit 1); exit 1; }
  32609. fi