configure 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Check that we are running under the correct shell.
  215. SHELL=${CONFIG_SHELL-/bin/sh}
  216. case X$ECHO in
  217. X*--fallback-echo)
  218. # Remove one level of quotation (which was required for Make).
  219. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  220. ;;
  221. esac
  222. echo=${ECHO-echo}
  223. if test "X$1" = X--no-reexec; then
  224. # Discard the --no-reexec flag, and continue.
  225. shift
  226. elif test "X$1" = X--fallback-echo; then
  227. # Avoid inline document here, it may be left over
  228. :
  229. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  230. # Yippee, $echo works!
  231. :
  232. else
  233. # Restart under the correct shell.
  234. exec $SHELL "$0" --no-reexec ${1+"$@"}
  235. fi
  236. if test "X$1" = X--fallback-echo; then
  237. # used as fallback echo
  238. shift
  239. cat <<EOF
  240. $*
  241. EOF
  242. exit 0
  243. fi
  244. # The HP-UX ksh and POSIX shell print the target directory to stdout
  245. # if CDPATH is set.
  246. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  247. if test -z "$ECHO"; then
  248. if test "X${echo_test_string+set}" != Xset; then
  249. # find a string as large as possible, as long as the shell can cope with it
  250. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  251. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  252. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  253. echo_test_string=`eval $cmd` &&
  254. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  255. then
  256. break
  257. fi
  258. done
  259. fi
  260. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  261. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  262. test "X$echo_testing_string" = "X$echo_test_string"; then
  263. :
  264. else
  265. # The Solaris, AIX, and Digital Unix default echo programs unquote
  266. # backslashes. This makes it impossible to quote backslashes using
  267. # echo "$something" | sed 's/\\/\\\\/g'
  268. #
  269. # So, first we look for a working echo in the user's PATH.
  270. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  271. for dir in $PATH /usr/ucb; do
  272. IFS="$lt_save_ifs"
  273. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  274. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  275. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  276. test "X$echo_testing_string" = "X$echo_test_string"; then
  277. echo="$dir/echo"
  278. break
  279. fi
  280. done
  281. IFS="$lt_save_ifs"
  282. if test "X$echo" = Xecho; then
  283. # We didn't find a better echo, so look for alternatives.
  284. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  285. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  286. test "X$echo_testing_string" = "X$echo_test_string"; then
  287. # This shell has a builtin print -r that does the trick.
  288. echo='print -r'
  289. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  290. test "X$CONFIG_SHELL" != X/bin/ksh; then
  291. # If we have ksh, try running configure again with it.
  292. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  293. export ORIGINAL_CONFIG_SHELL
  294. CONFIG_SHELL=/bin/ksh
  295. export CONFIG_SHELL
  296. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  297. else
  298. # Try using printf.
  299. echo='printf %s\n'
  300. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  301. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  302. test "X$echo_testing_string" = "X$echo_test_string"; then
  303. # Cool, printf works
  304. :
  305. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  306. test "X$echo_testing_string" = 'X\t' &&
  307. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  308. test "X$echo_testing_string" = "X$echo_test_string"; then
  309. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  310. export CONFIG_SHELL
  311. SHELL="$CONFIG_SHELL"
  312. export SHELL
  313. echo="$CONFIG_SHELL $0 --fallback-echo"
  314. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  315. test "X$echo_testing_string" = 'X\t' &&
  316. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  317. test "X$echo_testing_string" = "X$echo_test_string"; then
  318. echo="$CONFIG_SHELL $0 --fallback-echo"
  319. else
  320. # maybe with a smaller string...
  321. prev=:
  322. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  323. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  324. then
  325. break
  326. fi
  327. prev="$cmd"
  328. done
  329. if test "$prev" != 'sed 50q "$0"'; then
  330. echo_test_string=`eval $prev`
  331. export echo_test_string
  332. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  333. else
  334. # Oops. We lost completely, so just stick with echo.
  335. echo=echo
  336. fi
  337. fi
  338. fi
  339. fi
  340. fi
  341. fi
  342. # Copy echo and quote the copy suitably for passing to libtool from
  343. # the Makefile, instead of quoting the original, which is used later.
  344. ECHO=$echo
  345. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  346. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  347. fi
  348. tagnames=${tagnames+${tagnames},}CXX
  349. tagnames=${tagnames+${tagnames},}F77
  350. # Name of the host.
  351. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  352. # so uname gets run too.
  353. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  354. exec 6>&1
  355. #
  356. # Initializations.
  357. #
  358. ac_default_prefix=/usr/local
  359. ac_config_libobj_dir=.
  360. cross_compiling=no
  361. subdirs=
  362. MFLAGS=
  363. MAKEFLAGS=
  364. SHELL=${CONFIG_SHELL-/bin/sh}
  365. # Maximum number of lines to put in a shell here document.
  366. # This variable seems obsolete. It should probably be removed, and
  367. # only ac_max_sed_lines should be used.
  368. : ${ac_max_here_lines=38}
  369. # Identity of this package.
  370. PACKAGE_NAME=
  371. PACKAGE_TARNAME=
  372. PACKAGE_VERSION=
  373. PACKAGE_STRING=
  374. PACKAGE_BUGREPORT=
  375. ac_unique_file="tcpreplay"
  376. ac_unique_file="src/tcpreplay.c"
  377. # Factoring default headers for most tests.
  378. ac_includes_default="\
  379. #include <stdio.h>
  380. #if HAVE_SYS_TYPES_H
  381. # include <sys/types.h>
  382. #endif
  383. #if HAVE_SYS_STAT_H
  384. # include <sys/stat.h>
  385. #endif
  386. #if STDC_HEADERS
  387. # include <stdlib.h>
  388. # include <stddef.h>
  389. #else
  390. # if HAVE_STDLIB_H
  391. # include <stdlib.h>
  392. # endif
  393. #endif
  394. #if HAVE_STRING_H
  395. # if !STDC_HEADERS && HAVE_MEMORY_H
  396. # include <memory.h>
  397. # endif
  398. # include <string.h>
  399. #endif
  400. #if HAVE_STRINGS_H
  401. # include <strings.h>
  402. #endif
  403. #if HAVE_INTTYPES_H
  404. # include <inttypes.h>
  405. #else
  406. # if HAVE_STDINT_H
  407. # include <stdint.h>
  408. # endif
  409. #endif
  410. #if HAVE_UNISTD_H
  411. # include <unistd.h>
  412. #endif"
  413. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TCPREPLAY_VERSION TCPREPLAY_RELEASE target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PRINTF FIG2DEV LYX DVIPS TEXI2DVI LATEX2HTML DVIPDFM AUTOGEN LIBOBJS SYSTEM_STRLCPY_TRUE SYSTEM_STRLCPY_FALSE HAVE_DOCTOOLS_TRUE HAVE_DOCTOOLS_FALSE debug_flag ENABLE_FLOWREPLAY_TRUE ENABLE_FLOWREPLAY_FALSE LNETINC LNETLIB LPCAPINC LPCAPLIB ENABLE_TCPBRIDGE_TRUE ENABLE_TCPBRIDGE_FALSE PCAP_BPF_H_FILE pcncfg LNAVLIB LNAV_CFLAGS td nic1 nic2 LIBOPTS_DIR NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS LTLIBOBJS'
  414. ac_subst_files=''
  415. # Initialize some variables set by options.
  416. ac_init_help=
  417. ac_init_version=false
  418. # The variables have the same names as the options, with
  419. # dashes changed to underlines.
  420. cache_file=/dev/null
  421. exec_prefix=NONE
  422. no_create=
  423. no_recursion=
  424. prefix=NONE
  425. program_prefix=NONE
  426. program_suffix=NONE
  427. program_transform_name=s,x,x,
  428. silent=
  429. site=
  430. srcdir=
  431. verbose=
  432. x_includes=NONE
  433. x_libraries=NONE
  434. # Installation directory options.
  435. # These are left unexpanded so users can "make install exec_prefix=/foo"
  436. # and all the variables that are supposed to be based on exec_prefix
  437. # by default will actually change.
  438. # Use braces instead of parens because sh, perl, etc. also accept them.
  439. bindir='${exec_prefix}/bin'
  440. sbindir='${exec_prefix}/sbin'
  441. libexecdir='${exec_prefix}/libexec'
  442. datadir='${prefix}/share'
  443. sysconfdir='${prefix}/etc'
  444. sharedstatedir='${prefix}/com'
  445. localstatedir='${prefix}/var'
  446. libdir='${exec_prefix}/lib'
  447. includedir='${prefix}/include'
  448. oldincludedir='/usr/include'
  449. infodir='${prefix}/info'
  450. mandir='${prefix}/man'
  451. ac_prev=
  452. for ac_option
  453. do
  454. # If the previous option needs an argument, assign it.
  455. if test -n "$ac_prev"; then
  456. eval "$ac_prev=\$ac_option"
  457. ac_prev=
  458. continue
  459. fi
  460. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  461. # Accept the important Cygnus configure options, so we can diagnose typos.
  462. case $ac_option in
  463. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  464. ac_prev=bindir ;;
  465. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  466. bindir=$ac_optarg ;;
  467. -build | --build | --buil | --bui | --bu)
  468. ac_prev=build_alias ;;
  469. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  470. build_alias=$ac_optarg ;;
  471. -cache-file | --cache-file | --cache-fil | --cache-fi \
  472. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  473. ac_prev=cache_file ;;
  474. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  475. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  476. cache_file=$ac_optarg ;;
  477. --config-cache | -C)
  478. cache_file=config.cache ;;
  479. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  480. ac_prev=datadir ;;
  481. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  482. | --da=*)
  483. datadir=$ac_optarg ;;
  484. -disable-* | --disable-*)
  485. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  486. # Reject names that are not valid shell variable names.
  487. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  488. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  489. { (exit 1); exit 1; }; }
  490. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  491. eval "enable_$ac_feature=no" ;;
  492. -enable-* | --enable-*)
  493. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  494. # Reject names that are not valid shell variable names.
  495. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  496. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  497. { (exit 1); exit 1; }; }
  498. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  499. case $ac_option in
  500. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  501. *) ac_optarg=yes ;;
  502. esac
  503. eval "enable_$ac_feature='$ac_optarg'" ;;
  504. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  505. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  506. | --exec | --exe | --ex)
  507. ac_prev=exec_prefix ;;
  508. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  509. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  510. | --exec=* | --exe=* | --ex=*)
  511. exec_prefix=$ac_optarg ;;
  512. -gas | --gas | --ga | --g)
  513. # Obsolete; use --with-gas.
  514. with_gas=yes ;;
  515. -help | --help | --hel | --he | -h)
  516. ac_init_help=long ;;
  517. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  518. ac_init_help=recursive ;;
  519. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  520. ac_init_help=short ;;
  521. -host | --host | --hos | --ho)
  522. ac_prev=host_alias ;;
  523. -host=* | --host=* | --hos=* | --ho=*)
  524. host_alias=$ac_optarg ;;
  525. -includedir | --includedir | --includedi | --included | --include \
  526. | --includ | --inclu | --incl | --inc)
  527. ac_prev=includedir ;;
  528. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  529. | --includ=* | --inclu=* | --incl=* | --inc=*)
  530. includedir=$ac_optarg ;;
  531. -infodir | --infodir | --infodi | --infod | --info | --inf)
  532. ac_prev=infodir ;;
  533. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  534. infodir=$ac_optarg ;;
  535. -libdir | --libdir | --libdi | --libd)
  536. ac_prev=libdir ;;
  537. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  538. libdir=$ac_optarg ;;
  539. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  540. | --libexe | --libex | --libe)
  541. ac_prev=libexecdir ;;
  542. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  543. | --libexe=* | --libex=* | --libe=*)
  544. libexecdir=$ac_optarg ;;
  545. -localstatedir | --localstatedir | --localstatedi | --localstated \
  546. | --localstate | --localstat | --localsta | --localst \
  547. | --locals | --local | --loca | --loc | --lo)
  548. ac_prev=localstatedir ;;
  549. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  550. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  551. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  552. localstatedir=$ac_optarg ;;
  553. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  554. ac_prev=mandir ;;
  555. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  556. mandir=$ac_optarg ;;
  557. -nfp | --nfp | --nf)
  558. # Obsolete; use --without-fp.
  559. with_fp=no ;;
  560. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  561. | --no-cr | --no-c | -n)
  562. no_create=yes ;;
  563. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  564. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  565. no_recursion=yes ;;
  566. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  567. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  568. | --oldin | --oldi | --old | --ol | --o)
  569. ac_prev=oldincludedir ;;
  570. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  571. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  572. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  573. oldincludedir=$ac_optarg ;;
  574. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  575. ac_prev=prefix ;;
  576. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  577. prefix=$ac_optarg ;;
  578. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  579. | --program-pre | --program-pr | --program-p)
  580. ac_prev=program_prefix ;;
  581. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  582. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  583. program_prefix=$ac_optarg ;;
  584. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  585. | --program-suf | --program-su | --program-s)
  586. ac_prev=program_suffix ;;
  587. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  588. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  589. program_suffix=$ac_optarg ;;
  590. -program-transform-name | --program-transform-name \
  591. | --program-transform-nam | --program-transform-na \
  592. | --program-transform-n | --program-transform- \
  593. | --program-transform | --program-transfor \
  594. | --program-transfo | --program-transf \
  595. | --program-trans | --program-tran \
  596. | --progr-tra | --program-tr | --program-t)
  597. ac_prev=program_transform_name ;;
  598. -program-transform-name=* | --program-transform-name=* \
  599. | --program-transform-nam=* | --program-transform-na=* \
  600. | --program-transform-n=* | --program-transform-=* \
  601. | --program-transform=* | --program-transfor=* \
  602. | --program-transfo=* | --program-transf=* \
  603. | --program-trans=* | --program-tran=* \
  604. | --progr-tra=* | --program-tr=* | --program-t=*)
  605. program_transform_name=$ac_optarg ;;
  606. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  607. | -silent | --silent | --silen | --sile | --sil)
  608. silent=yes ;;
  609. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  610. ac_prev=sbindir ;;
  611. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  612. | --sbi=* | --sb=*)
  613. sbindir=$ac_optarg ;;
  614. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  615. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  616. | --sharedst | --shareds | --shared | --share | --shar \
  617. | --sha | --sh)
  618. ac_prev=sharedstatedir ;;
  619. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  620. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  621. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  622. | --sha=* | --sh=*)
  623. sharedstatedir=$ac_optarg ;;
  624. -site | --site | --sit)
  625. ac_prev=site ;;
  626. -site=* | --site=* | --sit=*)
  627. site=$ac_optarg ;;
  628. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  629. ac_prev=srcdir ;;
  630. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  631. srcdir=$ac_optarg ;;
  632. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  633. | --syscon | --sysco | --sysc | --sys | --sy)
  634. ac_prev=sysconfdir ;;
  635. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  636. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  637. sysconfdir=$ac_optarg ;;
  638. -target | --target | --targe | --targ | --tar | --ta | --t)
  639. ac_prev=target_alias ;;
  640. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  641. target_alias=$ac_optarg ;;
  642. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  643. verbose=yes ;;
  644. -version | --version | --versio | --versi | --vers | -V)
  645. ac_init_version=: ;;
  646. -with-* | --with-*)
  647. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  648. # Reject names that are not valid shell variable names.
  649. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  650. { echo "$as_me: error: invalid package name: $ac_package" >&2
  651. { (exit 1); exit 1; }; }
  652. ac_package=`echo $ac_package| sed 's/-/_/g'`
  653. case $ac_option in
  654. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  655. *) ac_optarg=yes ;;
  656. esac
  657. eval "with_$ac_package='$ac_optarg'" ;;
  658. -without-* | --without-*)
  659. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  660. # Reject names that are not valid shell variable names.
  661. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  662. { echo "$as_me: error: invalid package name: $ac_package" >&2
  663. { (exit 1); exit 1; }; }
  664. ac_package=`echo $ac_package | sed 's/-/_/g'`
  665. eval "with_$ac_package=no" ;;
  666. --x)
  667. # Obsolete; use --with-x.
  668. with_x=yes ;;
  669. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  670. | --x-incl | --x-inc | --x-in | --x-i)
  671. ac_prev=x_includes ;;
  672. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  673. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  674. x_includes=$ac_optarg ;;
  675. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  676. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  677. ac_prev=x_libraries ;;
  678. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  679. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  680. x_libraries=$ac_optarg ;;
  681. -*) { echo "$as_me: error: unrecognized option: $ac_option
  682. Try \`$0 --help' for more information." >&2
  683. { (exit 1); exit 1; }; }
  684. ;;
  685. *=*)
  686. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  687. # Reject names that are not valid shell variable names.
  688. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  689. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  690. { (exit 1); exit 1; }; }
  691. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  692. eval "$ac_envvar='$ac_optarg'"
  693. export $ac_envvar ;;
  694. *)
  695. # FIXME: should be removed in autoconf 3.0.
  696. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  697. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  698. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  699. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  700. ;;
  701. esac
  702. done
  703. if test -n "$ac_prev"; then
  704. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  705. { echo "$as_me: error: missing argument to $ac_option" >&2
  706. { (exit 1); exit 1; }; }
  707. fi
  708. # Be sure to have absolute paths.
  709. for ac_var in exec_prefix prefix
  710. do
  711. eval ac_val=$`echo $ac_var`
  712. case $ac_val in
  713. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  714. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  715. { (exit 1); exit 1; }; };;
  716. esac
  717. done
  718. # Be sure to have absolute paths.
  719. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  720. localstatedir libdir includedir oldincludedir infodir mandir
  721. do
  722. eval ac_val=$`echo $ac_var`
  723. case $ac_val in
  724. [\\/$]* | ?:[\\/]* ) ;;
  725. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  726. { (exit 1); exit 1; }; };;
  727. esac
  728. done
  729. # There might be people who depend on the old broken behavior: `$host'
  730. # used to hold the argument of --host etc.
  731. # FIXME: To remove some day.
  732. build=$build_alias
  733. host=$host_alias
  734. target=$target_alias
  735. # FIXME: To remove some day.
  736. if test "x$host_alias" != x; then
  737. if test "x$build_alias" = x; then
  738. cross_compiling=maybe
  739. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  740. If a cross compiler is detected then cross compile mode will be used." >&2
  741. elif test "x$build_alias" != "x$host_alias"; then
  742. cross_compiling=yes
  743. fi
  744. fi
  745. ac_tool_prefix=
  746. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  747. test "$silent" = yes && exec 6>/dev/null
  748. # Find the source files, if location was not specified.
  749. if test -z "$srcdir"; then
  750. ac_srcdir_defaulted=yes
  751. # Try the directory containing this script, then its parent.
  752. ac_confdir=`(dirname "$0") 2>/dev/null ||
  753. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  754. X"$0" : 'X\(//\)[^/]' \| \
  755. X"$0" : 'X\(//\)$' \| \
  756. X"$0" : 'X\(/\)' \| \
  757. . : '\(.\)' 2>/dev/null ||
  758. echo X"$0" |
  759. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  760. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  761. /^X\(\/\/\)$/{ s//\1/; q; }
  762. /^X\(\/\).*/{ s//\1/; q; }
  763. s/.*/./; q'`
  764. srcdir=$ac_confdir
  765. if test ! -r $srcdir/$ac_unique_file; then
  766. srcdir=..
  767. fi
  768. else
  769. ac_srcdir_defaulted=no
  770. fi
  771. if test ! -r $srcdir/$ac_unique_file; then
  772. if test "$ac_srcdir_defaulted" = yes; then
  773. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  774. { (exit 1); exit 1; }; }
  775. else
  776. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  777. { (exit 1); exit 1; }; }
  778. fi
  779. fi
  780. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  781. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  782. { (exit 1); exit 1; }; }
  783. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  784. ac_env_build_alias_set=${build_alias+set}
  785. ac_env_build_alias_value=$build_alias
  786. ac_cv_env_build_alias_set=${build_alias+set}
  787. ac_cv_env_build_alias_value=$build_alias
  788. ac_env_host_alias_set=${host_alias+set}
  789. ac_env_host_alias_value=$host_alias
  790. ac_cv_env_host_alias_set=${host_alias+set}
  791. ac_cv_env_host_alias_value=$host_alias
  792. ac_env_target_alias_set=${target_alias+set}
  793. ac_env_target_alias_value=$target_alias
  794. ac_cv_env_target_alias_set=${target_alias+set}
  795. ac_cv_env_target_alias_value=$target_alias
  796. ac_env_CC_set=${CC+set}
  797. ac_env_CC_value=$CC
  798. ac_cv_env_CC_set=${CC+set}
  799. ac_cv_env_CC_value=$CC
  800. ac_env_CFLAGS_set=${CFLAGS+set}
  801. ac_env_CFLAGS_value=$CFLAGS
  802. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  803. ac_cv_env_CFLAGS_value=$CFLAGS
  804. ac_env_LDFLAGS_set=${LDFLAGS+set}
  805. ac_env_LDFLAGS_value=$LDFLAGS
  806. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  807. ac_cv_env_LDFLAGS_value=$LDFLAGS
  808. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  809. ac_env_CPPFLAGS_value=$CPPFLAGS
  810. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  811. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  812. ac_env_CPP_set=${CPP+set}
  813. ac_env_CPP_value=$CPP
  814. ac_cv_env_CPP_set=${CPP+set}
  815. ac_cv_env_CPP_value=$CPP
  816. ac_env_CXX_set=${CXX+set}
  817. ac_env_CXX_value=$CXX
  818. ac_cv_env_CXX_set=${CXX+set}
  819. ac_cv_env_CXX_value=$CXX
  820. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  821. ac_env_CXXFLAGS_value=$CXXFLAGS
  822. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  823. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  824. ac_env_CXXCPP_set=${CXXCPP+set}
  825. ac_env_CXXCPP_value=$CXXCPP
  826. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  827. ac_cv_env_CXXCPP_value=$CXXCPP
  828. ac_env_F77_set=${F77+set}
  829. ac_env_F77_value=$F77
  830. ac_cv_env_F77_set=${F77+set}
  831. ac_cv_env_F77_value=$F77
  832. ac_env_FFLAGS_set=${FFLAGS+set}
  833. ac_env_FFLAGS_value=$FFLAGS
  834. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  835. ac_cv_env_FFLAGS_value=$FFLAGS
  836. #
  837. # Report the --help message.
  838. #
  839. if test "$ac_init_help" = "long"; then
  840. # Omit some internal or obsolete options to make the list less imposing.
  841. # This message is too long to be a string in the A/UX 3.1 sh.
  842. cat <<_ACEOF
  843. \`configure' configures this package to adapt to many kinds of systems.
  844. Usage: $0 [OPTION]... [VAR=VALUE]...
  845. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  846. VAR=VALUE. See below for descriptions of some of the useful variables.
  847. Defaults for the options are specified in brackets.
  848. Configuration:
  849. -h, --help display this help and exit
  850. --help=short display options specific to this package
  851. --help=recursive display the short help of all the included packages
  852. -V, --version display version information and exit
  853. -q, --quiet, --silent do not print \`checking...' messages
  854. --cache-file=FILE cache test results in FILE [disabled]
  855. -C, --config-cache alias for \`--cache-file=config.cache'
  856. -n, --no-create do not create output files
  857. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  858. _ACEOF
  859. cat <<_ACEOF
  860. Installation directories:
  861. --prefix=PREFIX install architecture-independent files in PREFIX
  862. [$ac_default_prefix]
  863. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  864. [PREFIX]
  865. By default, \`make install' will install all the files in
  866. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  867. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  868. for instance \`--prefix=\$HOME'.
  869. For better control, use the options below.
  870. Fine tuning of the installation directories:
  871. --bindir=DIR user executables [EPREFIX/bin]
  872. --sbindir=DIR system admin executables [EPREFIX/sbin]
  873. --libexecdir=DIR program executables [EPREFIX/libexec]
  874. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  875. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  876. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  877. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  878. --libdir=DIR object code libraries [EPREFIX/lib]
  879. --includedir=DIR C header files [PREFIX/include]
  880. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  881. --infodir=DIR info documentation [PREFIX/info]
  882. --mandir=DIR man documentation [PREFIX/man]
  883. _ACEOF
  884. cat <<\_ACEOF
  885. Program names:
  886. --program-prefix=PREFIX prepend PREFIX to installed program names
  887. --program-suffix=SUFFIX append SUFFIX to installed program names
  888. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  889. System types:
  890. --build=BUILD configure for building on BUILD [guessed]
  891. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  892. --target=TARGET configure for building compilers for TARGET [HOST]
  893. _ACEOF
  894. fi
  895. if test -n "$ac_init_help"; then
  896. cat <<\_ACEOF
  897. Optional Features:
  898. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  899. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  900. --enable-maintainer-mode enable make rules and dependencies not useful
  901. (and sometimes confusing) to the casual installer
  902. --enable-shared[=PKGS]
  903. build shared libraries [default=yes]
  904. --enable-static[=PKGS]
  905. build static libraries [default=yes]
  906. --enable-fast-install[=PKGS]
  907. optimize for fast installation [default=yes]
  908. --disable-libtool-lock avoid locking (might break parallel builds)
  909. --disable-dependency-tracking speeds up one-time build
  910. --enable-dependency-tracking do not reject slow dependency extractors
  911. --disable-largefile omit support for large files
  912. --enable-debug Enable debugging code and support for the -d option
  913. --enable-pedantic Enable gcc's -pedantic option
  914. --enable-efence Enable Electric Fence memory debugger
  915. --enable-gprof Enable GNU Profiler
  916. --enable-64bits Use 64bit packet counters
  917. --disable-bpf Disable BPF for sending packets
  918. --disable-pf Disable Linux PF_PACKET for sending packets
  919. --disable-libnet Disable Libnet for sending packets
  920. --disable-pcap Disable Libpcap for sending packets
  921. --enable-dynamic-link Dynamically link libraries
  922. --enable-flowreplay Enable building flowreplay (alpha)
  923. --enable-local-libopts Force using the supplied libopts tearoff code
  924. Optional Packages:
  925. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  926. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  927. --with-dmalloc use dmalloc, as in
  928. http://www.dmalloc.com/dmalloc.tar.gz
  929. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  930. --with-pic try to use only PIC/non-PIC objects [default=use
  931. both]
  932. --with-tags[=TAGS]
  933. include additional configurations [automatic]
  934. --with-lyx=FILE Path to Lyx binary
  935. --with-libnet=DIR Use libnet in DIR
  936. --with-libpcap=DIR Use libpcap in DIR
  937. --with-pcapnav-config=FILE
  938. Use given pcapnav-config
  939. --with-tcpdump=FILE Path to tcpdump binary
  940. --with-testnic=NIC Select which network card to use for testing
  941. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  942. testing
  943. --with-autoopts-config specify the config-info script
  944. --with-regex-header a reg expr header is specified
  945. --with-libregex libregex installation prefix
  946. --with-libregex-cflags libregex compile flags
  947. --with-libregex-libs libregex link command arguments
  948. Some influential environment variables:
  949. CC C compiler command
  950. CFLAGS C compiler flags
  951. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  952. nonstandard directory <lib dir>
  953. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  954. headers in a nonstandard directory <include dir>
  955. CPP C preprocessor
  956. CXX C++ compiler command
  957. CXXFLAGS C++ compiler flags
  958. CXXCPP C++ preprocessor
  959. F77 Fortran 77 compiler command
  960. FFLAGS Fortran 77 compiler flags
  961. Use these variables to override the choices made by `configure' or to help
  962. it to find libraries and programs with nonstandard names/locations.
  963. _ACEOF
  964. fi
  965. if test "$ac_init_help" = "recursive"; then
  966. # If there are subdirs, report their specific --help.
  967. ac_popdir=`pwd`
  968. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  969. test -d $ac_dir || continue
  970. ac_builddir=.
  971. if test "$ac_dir" != .; then
  972. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  973. # A "../" for each directory in $ac_dir_suffix.
  974. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  975. else
  976. ac_dir_suffix= ac_top_builddir=
  977. fi
  978. case $srcdir in
  979. .) # No --srcdir option. We are building in place.
  980. ac_srcdir=.
  981. if test -z "$ac_top_builddir"; then
  982. ac_top_srcdir=.
  983. else
  984. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  985. fi ;;
  986. [\\/]* | ?:[\\/]* ) # Absolute path.
  987. ac_srcdir=$srcdir$ac_dir_suffix;
  988. ac_top_srcdir=$srcdir ;;
  989. *) # Relative path.
  990. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  991. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  992. esac
  993. # Do not use `cd foo && pwd` to compute absolute paths, because
  994. # the directories may not exist.
  995. case `pwd` in
  996. .) ac_abs_builddir="$ac_dir";;
  997. *)
  998. case "$ac_dir" in
  999. .) ac_abs_builddir=`pwd`;;
  1000. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1001. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1002. esac;;
  1003. esac
  1004. case $ac_abs_builddir in
  1005. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1006. *)
  1007. case ${ac_top_builddir}. in
  1008. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1009. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1010. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1011. esac;;
  1012. esac
  1013. case $ac_abs_builddir in
  1014. .) ac_abs_srcdir=$ac_srcdir;;
  1015. *)
  1016. case $ac_srcdir in
  1017. .) ac_abs_srcdir=$ac_abs_builddir;;
  1018. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1019. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1020. esac;;
  1021. esac
  1022. case $ac_abs_builddir in
  1023. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1024. *)
  1025. case $ac_top_srcdir in
  1026. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1027. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1028. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1029. esac;;
  1030. esac
  1031. cd $ac_dir
  1032. # Check for guested configure; otherwise get Cygnus style configure.
  1033. if test -f $ac_srcdir/configure.gnu; then
  1034. echo
  1035. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1036. elif test -f $ac_srcdir/configure; then
  1037. echo
  1038. $SHELL $ac_srcdir/configure --help=recursive
  1039. elif test -f $ac_srcdir/configure.ac ||
  1040. test -f $ac_srcdir/configure.in; then
  1041. echo
  1042. $ac_configure --help
  1043. else
  1044. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1045. fi
  1046. cd $ac_popdir
  1047. done
  1048. fi
  1049. test -n "$ac_init_help" && exit 0
  1050. if $ac_init_version; then
  1051. cat <<\_ACEOF
  1052. Copyright (C) 2003 Free Software Foundation, Inc.
  1053. This configure script is free software; the Free Software Foundation
  1054. gives unlimited permission to copy, distribute and modify it.
  1055. _ACEOF
  1056. exit 0
  1057. fi
  1058. exec 5>config.log
  1059. cat >&5 <<_ACEOF
  1060. This file contains any messages produced by compilers while
  1061. running configure, to aid debugging if configure makes a mistake.
  1062. It was created by $as_me, which was
  1063. generated by GNU Autoconf 2.59. Invocation command line was
  1064. $ $0 $@
  1065. _ACEOF
  1066. {
  1067. cat <<_ASUNAME
  1068. ## --------- ##
  1069. ## Platform. ##
  1070. ## --------- ##
  1071. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1072. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1073. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1074. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1075. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1076. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1077. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1078. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1079. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1080. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1081. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1082. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1083. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1084. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1085. _ASUNAME
  1086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1087. for as_dir in $PATH
  1088. do
  1089. IFS=$as_save_IFS
  1090. test -z "$as_dir" && as_dir=.
  1091. echo "PATH: $as_dir"
  1092. done
  1093. } >&5
  1094. cat >&5 <<_ACEOF
  1095. ## ----------- ##
  1096. ## Core tests. ##
  1097. ## ----------- ##
  1098. _ACEOF
  1099. # Keep a trace of the command line.
  1100. # Strip out --no-create and --no-recursion so they do not pile up.
  1101. # Strip out --silent because we don't want to record it for future runs.
  1102. # Also quote any args containing shell meta-characters.
  1103. # Make two passes to allow for proper duplicate-argument suppression.
  1104. ac_configure_args=
  1105. ac_configure_args0=
  1106. ac_configure_args1=
  1107. ac_sep=
  1108. ac_must_keep_next=false
  1109. for ac_pass in 1 2
  1110. do
  1111. for ac_arg
  1112. do
  1113. case $ac_arg in
  1114. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1115. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1116. | -silent | --silent | --silen | --sile | --sil)
  1117. continue ;;
  1118. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1119. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1120. esac
  1121. case $ac_pass in
  1122. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1123. 2)
  1124. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1125. if test $ac_must_keep_next = true; then
  1126. ac_must_keep_next=false # Got value, back to normal.
  1127. else
  1128. case $ac_arg in
  1129. *=* | --config-cache | -C | -disable-* | --disable-* \
  1130. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1131. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1132. | -with-* | --with-* | -without-* | --without-* | --x)
  1133. case "$ac_configure_args0 " in
  1134. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1135. esac
  1136. ;;
  1137. -* ) ac_must_keep_next=true ;;
  1138. esac
  1139. fi
  1140. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1141. # Get rid of the leading space.
  1142. ac_sep=" "
  1143. ;;
  1144. esac
  1145. done
  1146. done
  1147. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1148. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1149. # When interrupted or exit'd, cleanup temporary files, and complete
  1150. # config.log. We remove comments because anyway the quotes in there
  1151. # would cause problems or look ugly.
  1152. # WARNING: Be sure not to use single quotes in there, as some shells,
  1153. # such as our DU 5.0 friend, will then `close' the trap.
  1154. trap 'exit_status=$?
  1155. # Save into config.log some information that might help in debugging.
  1156. {
  1157. echo
  1158. cat <<\_ASBOX
  1159. ## ---------------- ##
  1160. ## Cache variables. ##
  1161. ## ---------------- ##
  1162. _ASBOX
  1163. echo
  1164. # The following way of writing the cache mishandles newlines in values,
  1165. {
  1166. (set) 2>&1 |
  1167. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1168. *ac_space=\ *)
  1169. sed -n \
  1170. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1171. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1172. ;;
  1173. *)
  1174. sed -n \
  1175. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1176. ;;
  1177. esac;
  1178. }
  1179. echo
  1180. cat <<\_ASBOX
  1181. ## ----------------- ##
  1182. ## Output variables. ##
  1183. ## ----------------- ##
  1184. _ASBOX
  1185. echo
  1186. for ac_var in $ac_subst_vars
  1187. do
  1188. eval ac_val=$`echo $ac_var`
  1189. echo "$ac_var='"'"'$ac_val'"'"'"
  1190. done | sort
  1191. echo
  1192. if test -n "$ac_subst_files"; then
  1193. cat <<\_ASBOX
  1194. ## ------------- ##
  1195. ## Output files. ##
  1196. ## ------------- ##
  1197. _ASBOX
  1198. echo
  1199. for ac_var in $ac_subst_files
  1200. do
  1201. eval ac_val=$`echo $ac_var`
  1202. echo "$ac_var='"'"'$ac_val'"'"'"
  1203. done | sort
  1204. echo
  1205. fi
  1206. if test -s confdefs.h; then
  1207. cat <<\_ASBOX
  1208. ## ----------- ##
  1209. ## confdefs.h. ##
  1210. ## ----------- ##
  1211. _ASBOX
  1212. echo
  1213. sed "/^$/d" confdefs.h | sort
  1214. echo
  1215. fi
  1216. test "$ac_signal" != 0 &&
  1217. echo "$as_me: caught signal $ac_signal"
  1218. echo "$as_me: exit $exit_status"
  1219. } >&5
  1220. rm -f core *.core &&
  1221. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1222. exit $exit_status
  1223. ' 0
  1224. for ac_signal in 1 2 13 15; do
  1225. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1226. done
  1227. ac_signal=0
  1228. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1229. rm -rf conftest* confdefs.h
  1230. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1231. echo >confdefs.h
  1232. # Predefined preprocessor variables.
  1233. cat >>confdefs.h <<_ACEOF
  1234. #define PACKAGE_NAME "$PACKAGE_NAME"
  1235. _ACEOF
  1236. cat >>confdefs.h <<_ACEOF
  1237. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1238. _ACEOF
  1239. cat >>confdefs.h <<_ACEOF
  1240. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1241. _ACEOF
  1242. cat >>confdefs.h <<_ACEOF
  1243. #define PACKAGE_STRING "$PACKAGE_STRING"
  1244. _ACEOF
  1245. cat >>confdefs.h <<_ACEOF
  1246. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1247. _ACEOF
  1248. # Let the site file select an alternate cache file if it wants to.
  1249. # Prefer explicitly selected file to automatically selected ones.
  1250. if test -z "$CONFIG_SITE"; then
  1251. if test "x$prefix" != xNONE; then
  1252. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1253. else
  1254. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1255. fi
  1256. fi
  1257. for ac_site_file in $CONFIG_SITE; do
  1258. if test -r "$ac_site_file"; then
  1259. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1260. echo "$as_me: loading site script $ac_site_file" >&6;}
  1261. sed 's/^/| /' "$ac_site_file" >&5
  1262. . "$ac_site_file"
  1263. fi
  1264. done
  1265. if test -r "$cache_file"; then
  1266. # Some versions of bash will fail to source /dev/null (special
  1267. # files actually), so we avoid doing that.
  1268. if test -f "$cache_file"; then
  1269. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1270. echo "$as_me: loading cache $cache_file" >&6;}
  1271. case $cache_file in
  1272. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1273. *) . ./$cache_file;;
  1274. esac
  1275. fi
  1276. else
  1277. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1278. echo "$as_me: creating cache $cache_file" >&6;}
  1279. >$cache_file
  1280. fi
  1281. # Check that the precious variables saved in the cache have kept the same
  1282. # value.
  1283. ac_cache_corrupted=false
  1284. for ac_var in `(set) 2>&1 |
  1285. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1286. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1287. eval ac_new_set=\$ac_env_${ac_var}_set
  1288. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1289. eval ac_new_val="\$ac_env_${ac_var}_value"
  1290. case $ac_old_set,$ac_new_set in
  1291. set,)
  1292. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1293. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1294. ac_cache_corrupted=: ;;
  1295. ,set)
  1296. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1297. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1298. ac_cache_corrupted=: ;;
  1299. ,);;
  1300. *)
  1301. if test "x$ac_old_val" != "x$ac_new_val"; then
  1302. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1303. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1304. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1305. echo "$as_me: former value: $ac_old_val" >&2;}
  1306. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1307. echo "$as_me: current value: $ac_new_val" >&2;}
  1308. ac_cache_corrupted=:
  1309. fi;;
  1310. esac
  1311. # Pass precious variables to config.status.
  1312. if test "$ac_new_set" = set; then
  1313. case $ac_new_val in
  1314. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1315. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1316. *) ac_arg=$ac_var=$ac_new_val ;;
  1317. esac
  1318. case " $ac_configure_args " in
  1319. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1320. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1321. esac
  1322. fi
  1323. done
  1324. if $ac_cache_corrupted; then
  1325. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1326. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1327. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1328. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1329. { (exit 1); exit 1; }; }
  1330. fi
  1331. ac_ext=c
  1332. ac_cpp='$CPP $CPPFLAGS'
  1333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1336. ac_config_headers="$ac_config_headers src/config.h"
  1337. ac_aux_dir=
  1338. for ac_dir in config $srcdir/config; do
  1339. if test -f $ac_dir/install-sh; then
  1340. ac_aux_dir=$ac_dir
  1341. ac_install_sh="$ac_aux_dir/install-sh -c"
  1342. break
  1343. elif test -f $ac_dir/install.sh; then
  1344. ac_aux_dir=$ac_dir
  1345. ac_install_sh="$ac_aux_dir/install.sh -c"
  1346. break
  1347. elif test -f $ac_dir/shtool; then
  1348. ac_aux_dir=$ac_dir
  1349. ac_install_sh="$ac_aux_dir/shtool install -c"
  1350. break
  1351. fi
  1352. done
  1353. if test -z "$ac_aux_dir"; then
  1354. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
  1355. echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
  1356. { (exit 1); exit 1; }; }
  1357. fi
  1358. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1359. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1360. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1361. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1362. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1363. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1364. if test "${enable_maintainer_mode+set}" = set; then
  1365. enableval="$enable_maintainer_mode"
  1366. USE_MAINTAINER_MODE=$enableval
  1367. else
  1368. USE_MAINTAINER_MODE=no
  1369. fi;
  1370. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1371. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1372. if test $USE_MAINTAINER_MODE = yes; then
  1373. MAINTAINER_MODE_TRUE=
  1374. MAINTAINER_MODE_FALSE='#'
  1375. else
  1376. MAINTAINER_MODE_TRUE='#'
  1377. MAINTAINER_MODE_FALSE=
  1378. fi
  1379. MAINT=$MAINTAINER_MODE_TRUE
  1380. echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1381. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
  1382. # Check whether --with-dmalloc or --without-dmalloc was given.
  1383. if test "${with_dmalloc+set}" = set; then
  1384. withval="$with_dmalloc"
  1385. if test "$withval" = yes; then
  1386. echo "$as_me:$LINENO: result: yes" >&5
  1387. echo "${ECHO_T}yes" >&6
  1388. cat >>confdefs.h <<\_ACEOF
  1389. #define WITH_DMALLOC 1
  1390. _ACEOF
  1391. LIBS="$LIBS -ldmalloc"
  1392. LDFLAGS="$LDFLAGS -g"
  1393. else
  1394. echo "$as_me:$LINENO: result: no" >&5
  1395. echo "${ECHO_T}no" >&6
  1396. fi
  1397. else
  1398. echo "$as_me:$LINENO: result: no" >&5
  1399. echo "${ECHO_T}no" >&6
  1400. fi;
  1401. # Check whether --enable-shared or --disable-shared was given.
  1402. if test "${enable_shared+set}" = set; then
  1403. enableval="$enable_shared"
  1404. p=${PACKAGE-default}
  1405. case $enableval in
  1406. yes) enable_shared=yes ;;
  1407. no) enable_shared=no ;;
  1408. *)
  1409. enable_shared=no
  1410. # Look at the argument we got. We use all the common list separators.
  1411. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1412. for pkg in $enableval; do
  1413. IFS="$lt_save_ifs"
  1414. if test "X$pkg" = "X$p"; then
  1415. enable_shared=yes
  1416. fi
  1417. done
  1418. IFS="$lt_save_ifs"
  1419. ;;
  1420. esac
  1421. else
  1422. enable_shared=yes
  1423. fi;
  1424. # Check whether --enable-static or --disable-static was given.
  1425. if test "${enable_static+set}" = set; then
  1426. enableval="$enable_static"
  1427. p=${PACKAGE-default}
  1428. case $enableval in
  1429. yes) enable_static=yes ;;
  1430. no) enable_static=no ;;
  1431. *)
  1432. enable_static=no
  1433. # Look at the argument we got. We use all the common list separators.
  1434. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1435. for pkg in $enableval; do
  1436. IFS="$lt_save_ifs"
  1437. if test "X$pkg" = "X$p"; then
  1438. enable_static=yes
  1439. fi
  1440. done
  1441. IFS="$lt_save_ifs"
  1442. ;;
  1443. esac
  1444. else
  1445. enable_static=yes
  1446. fi;
  1447. # Check whether --enable-fast-install or --disable-fast-install was given.
  1448. if test "${enable_fast_install+set}" = set; then
  1449. enableval="$enable_fast_install"
  1450. p=${PACKAGE-default}
  1451. case $enableval in
  1452. yes) enable_fast_install=yes ;;
  1453. no) enable_fast_install=no ;;
  1454. *)
  1455. enable_fast_install=no
  1456. # Look at the argument we got. We use all the common list separators.
  1457. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1458. for pkg in $enableval; do
  1459. IFS="$lt_save_ifs"
  1460. if test "X$pkg" = "X$p"; then
  1461. enable_fast_install=yes
  1462. fi
  1463. done
  1464. IFS="$lt_save_ifs"
  1465. ;;
  1466. esac
  1467. else
  1468. enable_fast_install=yes
  1469. fi;
  1470. # Make sure we can run config.sub.
  1471. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1472. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1473. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1474. { (exit 1); exit 1; }; }
  1475. echo "$as_me:$LINENO: checking build system type" >&5
  1476. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1477. if test "${ac_cv_build+set}" = set; then
  1478. echo $ECHO_N "(cached) $ECHO_C" >&6
  1479. else
  1480. ac_cv_build_alias=$build_alias
  1481. test -z "$ac_cv_build_alias" &&
  1482. ac_cv_build_alias=`$ac_config_guess`
  1483. test -z "$ac_cv_build_alias" &&
  1484. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1485. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1486. { (exit 1); exit 1; }; }
  1487. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1488. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1489. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1490. { (exit 1); exit 1; }; }
  1491. fi
  1492. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1493. echo "${ECHO_T}$ac_cv_build" >&6
  1494. build=$ac_cv_build
  1495. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1496. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1497. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1498. echo "$as_me:$LINENO: checking host system type" >&5
  1499. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1500. if test "${ac_cv_host+set}" = set; then
  1501. echo $ECHO_N "(cached) $ECHO_C" >&6
  1502. else
  1503. ac_cv_host_alias=$host_alias
  1504. test -z "$ac_cv_host_alias" &&
  1505. ac_cv_host_alias=$ac_cv_build_alias
  1506. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1507. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1508. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1509. { (exit 1); exit 1; }; }
  1510. fi
  1511. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1512. echo "${ECHO_T}$ac_cv_host" >&6
  1513. host=$ac_cv_host
  1514. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1515. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1516. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1517. ac_ext=c
  1518. ac_cpp='$CPP $CPPFLAGS'
  1519. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1520. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1521. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1522. if test -n "$ac_tool_prefix"; then
  1523. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1524. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1525. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1526. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1527. if test "${ac_cv_prog_CC+set}" = set; then
  1528. echo $ECHO_N "(cached) $ECHO_C" >&6
  1529. else
  1530. if test -n "$CC"; then
  1531. ac_cv_prog_CC="$CC" # Let the user override the test.
  1532. else
  1533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1534. for as_dir in $PATH
  1535. do
  1536. IFS=$as_save_IFS
  1537. test -z "$as_dir" && as_dir=.
  1538. for ac_exec_ext in '' $ac_executable_extensions; do
  1539. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1540. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1541. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1542. break 2
  1543. fi
  1544. done
  1545. done
  1546. fi
  1547. fi
  1548. CC=$ac_cv_prog_CC
  1549. if test -n "$CC"; then
  1550. echo "$as_me:$LINENO: result: $CC" >&5
  1551. echo "${ECHO_T}$CC" >&6
  1552. else
  1553. echo "$as_me:$LINENO: result: no" >&5
  1554. echo "${ECHO_T}no" >&6
  1555. fi
  1556. fi
  1557. if test -z "$ac_cv_prog_CC"; then
  1558. ac_ct_CC=$CC
  1559. # Extract the first word of "gcc", so it can be a program name with args.
  1560. set dummy gcc; ac_word=$2
  1561. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1562. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1563. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1564. echo $ECHO_N "(cached) $ECHO_C" >&6
  1565. else
  1566. if test -n "$ac_ct_CC"; then
  1567. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1568. else
  1569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1570. for as_dir in $PATH
  1571. do
  1572. IFS=$as_save_IFS
  1573. test -z "$as_dir" && as_dir=.
  1574. for ac_exec_ext in '' $ac_executable_extensions; do
  1575. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1576. ac_cv_prog_ac_ct_CC="gcc"
  1577. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1578. break 2
  1579. fi
  1580. done
  1581. done
  1582. fi
  1583. fi
  1584. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1585. if test -n "$ac_ct_CC"; then
  1586. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1587. echo "${ECHO_T}$ac_ct_CC" >&6
  1588. else
  1589. echo "$as_me:$LINENO: result: no" >&5
  1590. echo "${ECHO_T}no" >&6
  1591. fi
  1592. CC=$ac_ct_CC
  1593. else
  1594. CC="$ac_cv_prog_CC"
  1595. fi
  1596. if test -z "$CC"; then
  1597. if test -n "$ac_tool_prefix"; then
  1598. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1599. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1600. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1601. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1602. if test "${ac_cv_prog_CC+set}" = set; then
  1603. echo $ECHO_N "(cached) $ECHO_C" >&6
  1604. else
  1605. if test -n "$CC"; then
  1606. ac_cv_prog_CC="$CC" # Let the user override the test.
  1607. else
  1608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1609. for as_dir in $PATH
  1610. do
  1611. IFS=$as_save_IFS
  1612. test -z "$as_dir" && as_dir=.
  1613. for ac_exec_ext in '' $ac_executable_extensions; do
  1614. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1615. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1616. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1617. break 2
  1618. fi
  1619. done
  1620. done
  1621. fi
  1622. fi
  1623. CC=$ac_cv_prog_CC
  1624. if test -n "$CC"; then
  1625. echo "$as_me:$LINENO: result: $CC" >&5
  1626. echo "${ECHO_T}$CC" >&6
  1627. else
  1628. echo "$as_me:$LINENO: result: no" >&5
  1629. echo "${ECHO_T}no" >&6
  1630. fi
  1631. fi
  1632. if test -z "$ac_cv_prog_CC"; then
  1633. ac_ct_CC=$CC
  1634. # Extract the first word of "cc", so it can be a program name with args.
  1635. set dummy cc; ac_word=$2
  1636. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1637. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1638. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1639. echo $ECHO_N "(cached) $ECHO_C" >&6
  1640. else
  1641. if test -n "$ac_ct_CC"; then
  1642. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1643. else
  1644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1645. for as_dir in $PATH
  1646. do
  1647. IFS=$as_save_IFS
  1648. test -z "$as_dir" && as_dir=.
  1649. for ac_exec_ext in '' $ac_executable_extensions; do
  1650. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1651. ac_cv_prog_ac_ct_CC="cc"
  1652. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1653. break 2
  1654. fi
  1655. done
  1656. done
  1657. fi
  1658. fi
  1659. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1660. if test -n "$ac_ct_CC"; then
  1661. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1662. echo "${ECHO_T}$ac_ct_CC" >&6
  1663. else
  1664. echo "$as_me:$LINENO: result: no" >&5
  1665. echo "${ECHO_T}no" >&6
  1666. fi
  1667. CC=$ac_ct_CC
  1668. else
  1669. CC="$ac_cv_prog_CC"
  1670. fi
  1671. fi
  1672. if test -z "$CC"; then
  1673. # Extract the first word of "cc", so it can be a program name with args.
  1674. set dummy cc; ac_word=$2
  1675. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1676. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1677. if test "${ac_cv_prog_CC+set}" = set; then
  1678. echo $ECHO_N "(cached) $ECHO_C" >&6
  1679. else
  1680. if test -n "$CC"; then
  1681. ac_cv_prog_CC="$CC" # Let the user override the test.
  1682. else
  1683. ac_prog_rejected=no
  1684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1685. for as_dir in $PATH
  1686. do
  1687. IFS=$as_save_IFS
  1688. test -z "$as_dir" && as_dir=.
  1689. for ac_exec_ext in '' $ac_executable_extensions; do
  1690. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1691. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1692. ac_prog_rejected=yes
  1693. continue
  1694. fi
  1695. ac_cv_prog_CC="cc"
  1696. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1697. break 2
  1698. fi
  1699. done
  1700. done
  1701. if test $ac_prog_rejected = yes; then
  1702. # We found a bogon in the path, so make sure we never use it.
  1703. set dummy $ac_cv_prog_CC
  1704. shift
  1705. if test $# != 0; then
  1706. # We chose a different compiler from the bogus one.
  1707. # However, it has the same basename, so the bogon will be chosen
  1708. # first if we set CC to just the basename; use the full file name.
  1709. shift
  1710. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1711. fi
  1712. fi
  1713. fi
  1714. fi
  1715. CC=$ac_cv_prog_CC
  1716. if test -n "$CC"; then
  1717. echo "$as_me:$LINENO: result: $CC" >&5
  1718. echo "${ECHO_T}$CC" >&6
  1719. else
  1720. echo "$as_me:$LINENO: result: no" >&5
  1721. echo "${ECHO_T}no" >&6
  1722. fi
  1723. fi
  1724. if test -z "$CC"; then
  1725. if test -n "$ac_tool_prefix"; then
  1726. for ac_prog in cl
  1727. do
  1728. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1729. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1730. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1731. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1732. if test "${ac_cv_prog_CC+set}" = set; then
  1733. echo $ECHO_N "(cached) $ECHO_C" >&6
  1734. else
  1735. if test -n "$CC"; then
  1736. ac_cv_prog_CC="$CC" # Let the user override the test.
  1737. else
  1738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1739. for as_dir in $PATH
  1740. do
  1741. IFS=$as_save_IFS
  1742. test -z "$as_dir" && as_dir=.
  1743. for ac_exec_ext in '' $ac_executable_extensions; do
  1744. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1745. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1746. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1747. break 2
  1748. fi
  1749. done
  1750. done
  1751. fi
  1752. fi
  1753. CC=$ac_cv_prog_CC
  1754. if test -n "$CC"; then
  1755. echo "$as_me:$LINENO: result: $CC" >&5
  1756. echo "${ECHO_T}$CC" >&6
  1757. else
  1758. echo "$as_me:$LINENO: result: no" >&5
  1759. echo "${ECHO_T}no" >&6
  1760. fi
  1761. test -n "$CC" && break
  1762. done
  1763. fi
  1764. if test -z "$CC"; then
  1765. ac_ct_CC=$CC
  1766. for ac_prog in cl
  1767. do
  1768. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1769. set dummy $ac_prog; ac_word=$2
  1770. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1771. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1772. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1773. echo $ECHO_N "(cached) $ECHO_C" >&6
  1774. else
  1775. if test -n "$ac_ct_CC"; then
  1776. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1777. else
  1778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1779. for as_dir in $PATH
  1780. do
  1781. IFS=$as_save_IFS
  1782. test -z "$as_dir" && as_dir=.
  1783. for ac_exec_ext in '' $ac_executable_extensions; do
  1784. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1785. ac_cv_prog_ac_ct_CC="$ac_prog"
  1786. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1787. break 2
  1788. fi
  1789. done
  1790. done
  1791. fi
  1792. fi
  1793. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1794. if test -n "$ac_ct_CC"; then
  1795. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1796. echo "${ECHO_T}$ac_ct_CC" >&6
  1797. else
  1798. echo "$as_me:$LINENO: result: no" >&5
  1799. echo "${ECHO_T}no" >&6
  1800. fi
  1801. test -n "$ac_ct_CC" && break
  1802. done
  1803. CC=$ac_ct_CC
  1804. fi
  1805. fi
  1806. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1807. See \`config.log' for more details." >&5
  1808. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1809. See \`config.log' for more details." >&2;}
  1810. { (exit 1); exit 1; }; }
  1811. # Provide some information about the compiler.
  1812. echo "$as_me:$LINENO:" \
  1813. "checking for C compiler version" >&5
  1814. ac_compiler=`set X $ac_compile; echo $2`
  1815. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1816. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1817. ac_status=$?
  1818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1819. (exit $ac_status); }
  1820. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1821. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1822. ac_status=$?
  1823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1824. (exit $ac_status); }
  1825. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1826. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1827. ac_status=$?
  1828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1829. (exit $ac_status); }
  1830. cat >conftest.$ac_ext <<_ACEOF
  1831. /* confdefs.h. */
  1832. _ACEOF
  1833. cat confdefs.h >>conftest.$ac_ext
  1834. cat >>conftest.$ac_ext <<_ACEOF
  1835. /* end confdefs.h. */
  1836. int
  1837. main ()
  1838. {
  1839. ;
  1840. return 0;
  1841. }
  1842. _ACEOF
  1843. ac_clean_files_save=$ac_clean_files
  1844. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1845. # Try to create an executable without -o first, disregard a.out.
  1846. # It will help us diagnose broken compilers, and finding out an intuition
  1847. # of exeext.
  1848. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1849. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1850. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1851. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1852. (eval $ac_link_default) 2>&5
  1853. ac_status=$?
  1854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1855. (exit $ac_status); }; then
  1856. # Find the output, starting from the most likely. This scheme is
  1857. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1858. # resort.
  1859. # Be careful to initialize this variable, since it used to be cached.
  1860. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1861. ac_cv_exeext=
  1862. # b.out is created by i960 compilers.
  1863. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1864. do
  1865. test -f "$ac_file" || continue
  1866. case $ac_file in
  1867. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1868. ;;
  1869. conftest.$ac_ext )
  1870. # This is the source file.
  1871. ;;
  1872. [ab].out )
  1873. # We found the default executable, but exeext='' is most
  1874. # certainly right.
  1875. break;;
  1876. *.* )
  1877. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1878. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1879. # but it would be cool to find out if it's true. Does anybody
  1880. # maintain Libtool? --akim.
  1881. export ac_cv_exeext
  1882. break;;
  1883. * )
  1884. break;;
  1885. esac
  1886. done
  1887. else
  1888. echo "$as_me: failed program was:" >&5
  1889. sed 's/^/| /' conftest.$ac_ext >&5
  1890. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1891. See \`config.log' for more details." >&5
  1892. echo "$as_me: error: C compiler cannot create executables
  1893. See \`config.log' for more details." >&2;}
  1894. { (exit 77); exit 77; }; }
  1895. fi
  1896. ac_exeext=$ac_cv_exeext
  1897. echo "$as_me:$LINENO: result: $ac_file" >&5
  1898. echo "${ECHO_T}$ac_file" >&6
  1899. # Check the compiler produces executables we can run. If not, either
  1900. # the compiler is broken, or we cross compile.
  1901. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1902. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1903. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1904. # If not cross compiling, check that we can run a simple program.
  1905. if test "$cross_compiling" != yes; then
  1906. if { ac_try='./$ac_file'
  1907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1908. (eval $ac_try) 2>&5
  1909. ac_status=$?
  1910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1911. (exit $ac_status); }; }; then
  1912. cross_compiling=no
  1913. else
  1914. if test "$cross_compiling" = maybe; then
  1915. cross_compiling=yes
  1916. else
  1917. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1918. If you meant to cross compile, use \`--host'.
  1919. See \`config.log' for more details." >&5
  1920. echo "$as_me: error: cannot run C compiled programs.
  1921. If you meant to cross compile, use \`--host'.
  1922. See \`config.log' for more details." >&2;}
  1923. { (exit 1); exit 1; }; }
  1924. fi
  1925. fi
  1926. fi
  1927. echo "$as_me:$LINENO: result: yes" >&5
  1928. echo "${ECHO_T}yes" >&6
  1929. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1930. ac_clean_files=$ac_clean_files_save
  1931. # Check the compiler produces executables we can run. If not, either
  1932. # the compiler is broken, or we cross compile.
  1933. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1934. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1935. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1936. echo "${ECHO_T}$cross_compiling" >&6
  1937. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1938. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1939. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1940. (eval $ac_link) 2>&5
  1941. ac_status=$?
  1942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1943. (exit $ac_status); }; then
  1944. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1945. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1946. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1947. # `rm'.
  1948. for ac_file in conftest.exe conftest conftest.*; do
  1949. test -f "$ac_file" || continue
  1950. case $ac_file in
  1951. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1952. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1953. export ac_cv_exeext
  1954. break;;
  1955. * ) break;;
  1956. esac
  1957. done
  1958. else
  1959. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1960. See \`config.log' for more details." >&5
  1961. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1962. See \`config.log' for more details." >&2;}
  1963. { (exit 1); exit 1; }; }
  1964. fi
  1965. rm -f conftest$ac_cv_exeext
  1966. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1967. echo "${ECHO_T}$ac_cv_exeext" >&6
  1968. rm -f conftest.$ac_ext
  1969. EXEEXT=$ac_cv_exeext
  1970. ac_exeext=$EXEEXT
  1971. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1972. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1973. if test "${ac_cv_objext+set}" = set; then
  1974. echo $ECHO_N "(cached) $ECHO_C" >&6
  1975. else
  1976. cat >conftest.$ac_ext <<_ACEOF
  1977. /* confdefs.h. */
  1978. _ACEOF
  1979. cat confdefs.h >>conftest.$ac_ext
  1980. cat >>conftest.$ac_ext <<_ACEOF
  1981. /* end confdefs.h. */
  1982. int
  1983. main ()
  1984. {
  1985. ;
  1986. return 0;
  1987. }
  1988. _ACEOF
  1989. rm -f conftest.o conftest.obj
  1990. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1991. (eval $ac_compile) 2>&5
  1992. ac_status=$?
  1993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1994. (exit $ac_status); }; then
  1995. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1996. case $ac_file in
  1997. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1998. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1999. break;;
  2000. esac
  2001. done
  2002. else
  2003. echo "$as_me: failed program was:" >&5
  2004. sed 's/^/| /' conftest.$ac_ext >&5
  2005. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2006. See \`config.log' for more details." >&5
  2007. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2008. See \`config.log' for more details." >&2;}
  2009. { (exit 1); exit 1; }; }
  2010. fi
  2011. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2012. fi
  2013. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2014. echo "${ECHO_T}$ac_cv_objext" >&6
  2015. OBJEXT=$ac_cv_objext
  2016. ac_objext=$OBJEXT
  2017. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2018. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2019. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2020. echo $ECHO_N "(cached) $ECHO_C" >&6
  2021. else
  2022. cat >conftest.$ac_ext <<_ACEOF
  2023. /* confdefs.h. */
  2024. _ACEOF
  2025. cat confdefs.h >>conftest.$ac_ext
  2026. cat >>conftest.$ac_ext <<_ACEOF
  2027. /* end confdefs.h. */
  2028. int
  2029. main ()
  2030. {
  2031. #ifndef __GNUC__
  2032. choke me
  2033. #endif
  2034. ;
  2035. return 0;
  2036. }
  2037. _ACEOF
  2038. rm -f conftest.$ac_objext
  2039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2040. (eval $ac_compile) 2>conftest.er1
  2041. ac_status=$?
  2042. grep -v '^ *+' conftest.er1 >conftest.err
  2043. rm -f conftest.er1
  2044. cat conftest.err >&5
  2045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2046. (exit $ac_status); } &&
  2047. { ac_try='test -z "$ac_c_werror_flag"
  2048. || test ! -s conftest.err'
  2049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2050. (eval $ac_try) 2>&5
  2051. ac_status=$?
  2052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2053. (exit $ac_status); }; } &&
  2054. { ac_try='test -s conftest.$ac_objext'
  2055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2056. (eval $ac_try) 2>&5
  2057. ac_status=$?
  2058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2059. (exit $ac_status); }; }; then
  2060. ac_compiler_gnu=yes
  2061. else
  2062. echo "$as_me: failed program was:" >&5
  2063. sed 's/^/| /' conftest.$ac_ext >&5
  2064. ac_compiler_gnu=no
  2065. fi
  2066. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2067. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2068. fi
  2069. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2070. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2071. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2072. ac_test_CFLAGS=${CFLAGS+set}
  2073. ac_save_CFLAGS=$CFLAGS
  2074. CFLAGS="-g"
  2075. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2076. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2077. if test "${ac_cv_prog_cc_g+set}" = set; then
  2078. echo $ECHO_N "(cached) $ECHO_C" >&6
  2079. else
  2080. cat >conftest.$ac_ext <<_ACEOF
  2081. /* confdefs.h. */
  2082. _ACEOF
  2083. cat confdefs.h >>conftest.$ac_ext
  2084. cat >>conftest.$ac_ext <<_ACEOF
  2085. /* end confdefs.h. */
  2086. int
  2087. main ()
  2088. {
  2089. ;
  2090. return 0;
  2091. }
  2092. _ACEOF
  2093. rm -f conftest.$ac_objext
  2094. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2095. (eval $ac_compile) 2>conftest.er1
  2096. ac_status=$?
  2097. grep -v '^ *+' conftest.er1 >conftest.err
  2098. rm -f conftest.er1
  2099. cat conftest.err >&5
  2100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2101. (exit $ac_status); } &&
  2102. { ac_try='test -z "$ac_c_werror_flag"
  2103. || test ! -s conftest.err'
  2104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2105. (eval $ac_try) 2>&5
  2106. ac_status=$?
  2107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2108. (exit $ac_status); }; } &&
  2109. { ac_try='test -s conftest.$ac_objext'
  2110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2111. (eval $ac_try) 2>&5
  2112. ac_status=$?
  2113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2114. (exit $ac_status); }; }; then
  2115. ac_cv_prog_cc_g=yes
  2116. else
  2117. echo "$as_me: failed program was:" >&5
  2118. sed 's/^/| /' conftest.$ac_ext >&5
  2119. ac_cv_prog_cc_g=no
  2120. fi
  2121. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2122. fi
  2123. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2124. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2125. if test "$ac_test_CFLAGS" = set; then
  2126. CFLAGS=$ac_save_CFLAGS
  2127. elif test $ac_cv_prog_cc_g = yes; then
  2128. if test "$GCC" = yes; then
  2129. CFLAGS="-g -O2"
  2130. else
  2131. CFLAGS="-g"
  2132. fi
  2133. else
  2134. if test "$GCC" = yes; then
  2135. CFLAGS="-O2"
  2136. else
  2137. CFLAGS=
  2138. fi
  2139. fi
  2140. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2141. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2142. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2143. echo $ECHO_N "(cached) $ECHO_C" >&6
  2144. else
  2145. ac_cv_prog_cc_stdc=no
  2146. ac_save_CC=$CC
  2147. cat >conftest.$ac_ext <<_ACEOF
  2148. /* confdefs.h. */
  2149. _ACEOF
  2150. cat confdefs.h >>conftest.$ac_ext
  2151. cat >>conftest.$ac_ext <<_ACEOF
  2152. /* end confdefs.h. */
  2153. #include <stdarg.h>
  2154. #include <stdio.h>
  2155. #include <sys/types.h>
  2156. #include <sys/stat.h>
  2157. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2158. struct buf { int x; };
  2159. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2160. static char *e (p, i)
  2161. char **p;
  2162. int i;
  2163. {
  2164. return p[i];
  2165. }
  2166. static char *f (char * (*g) (char **, int), char **p, ...)
  2167. {
  2168. char *s;
  2169. va_list v;
  2170. va_start (v,p);
  2171. s = g (p, va_arg (v,int));
  2172. va_end (v);
  2173. return s;
  2174. }
  2175. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2176. function prototypes and stuff, but not '\xHH' hex character constants.
  2177. These don't provoke an error unfortunately, instead are silently treated
  2178. as 'x'. The following induces an error, until -std1 is added to get
  2179. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2180. array size at least. It's necessary to write '\x00'==0 to get something
  2181. that's true only with -std1. */
  2182. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2183. int test (int i, double x);
  2184. struct s1 {int (*f) (int a);};
  2185. struct s2 {int (*f) (double a);};
  2186. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2187. int argc;
  2188. char **argv;
  2189. int
  2190. main ()
  2191. {
  2192. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2193. ;
  2194. return 0;
  2195. }
  2196. _ACEOF
  2197. # Don't try gcc -ansi; that turns off useful extensions and
  2198. # breaks some systems' header files.
  2199. # AIX -qlanglvl=ansi
  2200. # Ultrix and OSF/1 -std1
  2201. # HP-UX 10.20 and later -Ae
  2202. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2203. # SVR4 -Xc -D__EXTENSIONS__
  2204. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2205. do
  2206. CC="$ac_save_CC $ac_arg"
  2207. rm -f conftest.$ac_objext
  2208. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2209. (eval $ac_compile) 2>conftest.er1
  2210. ac_status=$?
  2211. grep -v '^ *+' conftest.er1 >conftest.err
  2212. rm -f conftest.er1
  2213. cat conftest.err >&5
  2214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2215. (exit $ac_status); } &&
  2216. { ac_try='test -z "$ac_c_werror_flag"
  2217. || test ! -s conftest.err'
  2218. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2219. (eval $ac_try) 2>&5
  2220. ac_status=$?
  2221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2222. (exit $ac_status); }; } &&
  2223. { ac_try='test -s conftest.$ac_objext'
  2224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2225. (eval $ac_try) 2>&5
  2226. ac_status=$?
  2227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2228. (exit $ac_status); }; }; then
  2229. ac_cv_prog_cc_stdc=$ac_arg
  2230. break
  2231. else
  2232. echo "$as_me: failed program was:" >&5
  2233. sed 's/^/| /' conftest.$ac_ext >&5
  2234. fi
  2235. rm -f conftest.err conftest.$ac_objext
  2236. done
  2237. rm -f conftest.$ac_ext conftest.$ac_objext
  2238. CC=$ac_save_CC
  2239. fi
  2240. case "x$ac_cv_prog_cc_stdc" in
  2241. x|xno)
  2242. echo "$as_me:$LINENO: result: none needed" >&5
  2243. echo "${ECHO_T}none needed" >&6 ;;
  2244. *)
  2245. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2246. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2247. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2248. esac
  2249. # Some people use a C++ compiler to compile C. Since we use `exit',
  2250. # in C++ we need to declare it. In case someone uses the same compiler
  2251. # for both compiling C and C++ we need to have the C++ compiler decide
  2252. # the declaration of exit, since it's the most demanding environment.
  2253. cat >conftest.$ac_ext <<_ACEOF
  2254. #ifndef __cplusplus
  2255. choke me
  2256. #endif
  2257. _ACEOF
  2258. rm -f conftest.$ac_objext
  2259. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2260. (eval $ac_compile) 2>conftest.er1
  2261. ac_status=$?
  2262. grep -v '^ *+' conftest.er1 >conftest.err
  2263. rm -f conftest.er1
  2264. cat conftest.err >&5
  2265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2266. (exit $ac_status); } &&
  2267. { ac_try='test -z "$ac_c_werror_flag"
  2268. || test ! -s conftest.err'
  2269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2270. (eval $ac_try) 2>&5
  2271. ac_status=$?
  2272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2273. (exit $ac_status); }; } &&
  2274. { ac_try='test -s conftest.$ac_objext'
  2275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2276. (eval $ac_try) 2>&5
  2277. ac_status=$?
  2278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2279. (exit $ac_status); }; }; then
  2280. for ac_declaration in \
  2281. '' \
  2282. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2283. 'extern "C" void std::exit (int); using std::exit;' \
  2284. 'extern "C" void exit (int) throw ();' \
  2285. 'extern "C" void exit (int);' \
  2286. 'void exit (int);'
  2287. do
  2288. cat >conftest.$ac_ext <<_ACEOF
  2289. /* confdefs.h. */
  2290. _ACEOF
  2291. cat confdefs.h >>conftest.$ac_ext
  2292. cat >>conftest.$ac_ext <<_ACEOF
  2293. /* end confdefs.h. */
  2294. $ac_declaration
  2295. #include <stdlib.h>
  2296. int
  2297. main ()
  2298. {
  2299. exit (42);
  2300. ;
  2301. return 0;
  2302. }
  2303. _ACEOF
  2304. rm -f conftest.$ac_objext
  2305. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2306. (eval $ac_compile) 2>conftest.er1
  2307. ac_status=$?
  2308. grep -v '^ *+' conftest.er1 >conftest.err
  2309. rm -f conftest.er1
  2310. cat conftest.err >&5
  2311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2312. (exit $ac_status); } &&
  2313. { ac_try='test -z "$ac_c_werror_flag"
  2314. || test ! -s conftest.err'
  2315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2316. (eval $ac_try) 2>&5
  2317. ac_status=$?
  2318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2319. (exit $ac_status); }; } &&
  2320. { ac_try='test -s conftest.$ac_objext'
  2321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2322. (eval $ac_try) 2>&5
  2323. ac_status=$?
  2324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2325. (exit $ac_status); }; }; then
  2326. :
  2327. else
  2328. echo "$as_me: failed program was:" >&5
  2329. sed 's/^/| /' conftest.$ac_ext >&5
  2330. continue
  2331. fi
  2332. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2333. cat >conftest.$ac_ext <<_ACEOF
  2334. /* confdefs.h. */
  2335. _ACEOF
  2336. cat confdefs.h >>conftest.$ac_ext
  2337. cat >>conftest.$ac_ext <<_ACEOF
  2338. /* end confdefs.h. */
  2339. $ac_declaration
  2340. int
  2341. main ()
  2342. {
  2343. exit (42);
  2344. ;
  2345. return 0;
  2346. }
  2347. _ACEOF
  2348. rm -f conftest.$ac_objext
  2349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2350. (eval $ac_compile) 2>conftest.er1
  2351. ac_status=$?
  2352. grep -v '^ *+' conftest.er1 >conftest.err
  2353. rm -f conftest.er1
  2354. cat conftest.err >&5
  2355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2356. (exit $ac_status); } &&
  2357. { ac_try='test -z "$ac_c_werror_flag"
  2358. || test ! -s conftest.err'
  2359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2360. (eval $ac_try) 2>&5
  2361. ac_status=$?
  2362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2363. (exit $ac_status); }; } &&
  2364. { ac_try='test -s conftest.$ac_objext'
  2365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2366. (eval $ac_try) 2>&5
  2367. ac_status=$?
  2368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2369. (exit $ac_status); }; }; then
  2370. break
  2371. else
  2372. echo "$as_me: failed program was:" >&5
  2373. sed 's/^/| /' conftest.$ac_ext >&5
  2374. fi
  2375. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2376. done
  2377. rm -f conftest*
  2378. if test -n "$ac_declaration"; then
  2379. echo '#ifdef __cplusplus' >>confdefs.h
  2380. echo $ac_declaration >>confdefs.h
  2381. echo '#endif' >>confdefs.h
  2382. fi
  2383. else
  2384. echo "$as_me: failed program was:" >&5
  2385. sed 's/^/| /' conftest.$ac_ext >&5
  2386. fi
  2387. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2388. ac_ext=c
  2389. ac_cpp='$CPP $CPPFLAGS'
  2390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2393. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2394. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  2395. if test "${lt_cv_path_SED+set}" = set; then
  2396. echo $ECHO_N "(cached) $ECHO_C" >&6
  2397. else
  2398. # Loop through the user's path and test for sed and gsed.
  2399. # Then use that list of sed's as ones to test for truncation.
  2400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2401. for as_dir in $PATH
  2402. do
  2403. IFS=$as_save_IFS
  2404. test -z "$as_dir" && as_dir=.
  2405. for lt_ac_prog in sed gsed; do
  2406. for ac_exec_ext in '' $ac_executable_extensions; do
  2407. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  2408. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  2409. fi
  2410. done
  2411. done
  2412. done
  2413. lt_ac_max=0
  2414. lt_ac_count=0
  2415. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  2416. # along with /bin/sed that truncates output.
  2417. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  2418. test ! -f $lt_ac_sed && continue
  2419. cat /dev/null > conftest.in
  2420. lt_ac_count=0
  2421. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  2422. # Check for GNU sed and select it if it is found.
  2423. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  2424. lt_cv_path_SED=$lt_ac_sed
  2425. break
  2426. fi
  2427. while true; do
  2428. cat conftest.in conftest.in >conftest.tmp
  2429. mv conftest.tmp conftest.in
  2430. cp conftest.in conftest.nl
  2431. echo >>conftest.nl
  2432. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  2433. cmp -s conftest.out conftest.nl || break
  2434. # 10000 chars as input seems more than enough
  2435. test $lt_ac_count -gt 10 && break
  2436. lt_ac_count=`expr $lt_ac_count + 1`
  2437. if test $lt_ac_count -gt $lt_ac_max; then
  2438. lt_ac_max=$lt_ac_count
  2439. lt_cv_path_SED=$lt_ac_sed
  2440. fi
  2441. done
  2442. done
  2443. fi
  2444. SED=$lt_cv_path_SED
  2445. echo "$as_me:$LINENO: result: $SED" >&5
  2446. echo "${ECHO_T}$SED" >&6
  2447. echo "$as_me:$LINENO: checking for egrep" >&5
  2448. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2449. if test "${ac_cv_prog_egrep+set}" = set; then
  2450. echo $ECHO_N "(cached) $ECHO_C" >&6
  2451. else
  2452. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2453. then ac_cv_prog_egrep='grep -E'
  2454. else ac_cv_prog_egrep='egrep'
  2455. fi
  2456. fi
  2457. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2458. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2459. EGREP=$ac_cv_prog_egrep
  2460. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2461. if test "${with_gnu_ld+set}" = set; then
  2462. withval="$with_gnu_ld"
  2463. test "$withval" = no || with_gnu_ld=yes
  2464. else
  2465. with_gnu_ld=no
  2466. fi;
  2467. ac_prog=ld
  2468. if test "$GCC" = yes; then
  2469. # Check if gcc -print-prog-name=ld gives a path.
  2470. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  2471. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  2472. case $host in
  2473. *-*-mingw*)
  2474. # gcc leaves a trailing carriage return which upsets mingw
  2475. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2476. *)
  2477. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2478. esac
  2479. case $ac_prog in
  2480. # Accept absolute paths.
  2481. [\\/]* | ?:[\\/]*)
  2482. re_direlt='/[^/][^/]*/\.\./'
  2483. # Canonicalize the pathname of ld
  2484. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2485. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2486. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2487. done
  2488. test -z "$LD" && LD="$ac_prog"
  2489. ;;
  2490. "")
  2491. # If it fails, then pretend we aren't using GCC.
  2492. ac_prog=ld
  2493. ;;
  2494. *)
  2495. # If it is relative, then search for the first ld in PATH.
  2496. with_gnu_ld=unknown
  2497. ;;
  2498. esac
  2499. elif test "$with_gnu_ld" = yes; then
  2500. echo "$as_me:$LINENO: checking for GNU ld" >&5
  2501. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2502. else
  2503. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2504. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2505. fi
  2506. if test "${lt_cv_path_LD+set}" = set; then
  2507. echo $ECHO_N "(cached) $ECHO_C" >&6
  2508. else
  2509. if test -z "$LD"; then
  2510. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2511. for ac_dir in $PATH; do
  2512. IFS="$lt_save_ifs"
  2513. test -z "$ac_dir" && ac_dir=.
  2514. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2515. lt_cv_path_LD="$ac_dir/$ac_prog"
  2516. # Check to see if the program is GNU ld. I'd rather use --version,
  2517. # but apparently some variants of GNU ld only accept -v.
  2518. # Break only if it was the GNU/non-GNU ld that we prefer.
  2519. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2520. *GNU* | *'with BFD'*)
  2521. test "$with_gnu_ld" != no && break
  2522. ;;
  2523. *)
  2524. test "$with_gnu_ld" != yes && break
  2525. ;;
  2526. esac
  2527. fi
  2528. done
  2529. IFS="$lt_save_ifs"
  2530. else
  2531. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2532. fi
  2533. fi
  2534. LD="$lt_cv_path_LD"
  2535. if test -n "$LD"; then
  2536. echo "$as_me:$LINENO: result: $LD" >&5
  2537. echo "${ECHO_T}$LD" >&6
  2538. else
  2539. echo "$as_me:$LINENO: result: no" >&5
  2540. echo "${ECHO_T}no" >&6
  2541. fi
  2542. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  2543. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  2544. { (exit 1); exit 1; }; }
  2545. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  2546. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  2547. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  2548. echo $ECHO_N "(cached) $ECHO_C" >&6
  2549. else
  2550. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  2551. case `$LD -v 2>&1 </dev/null` in
  2552. *GNU* | *'with BFD'*)
  2553. lt_cv_prog_gnu_ld=yes
  2554. ;;
  2555. *)
  2556. lt_cv_prog_gnu_ld=no
  2557. ;;
  2558. esac
  2559. fi
  2560. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  2561. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  2562. with_gnu_ld=$lt_cv_prog_gnu_ld
  2563. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  2564. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  2565. if test "${lt_cv_ld_reload_flag+set}" = set; then
  2566. echo $ECHO_N "(cached) $ECHO_C" >&6
  2567. else
  2568. lt_cv_ld_reload_flag='-r'
  2569. fi
  2570. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  2571. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  2572. reload_flag=$lt_cv_ld_reload_flag
  2573. case $reload_flag in
  2574. "" | " "*) ;;
  2575. *) reload_flag=" $reload_flag" ;;
  2576. esac
  2577. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2578. case $host_os in
  2579. darwin*)
  2580. if test "$GCC" = yes; then
  2581. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2582. else
  2583. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2584. fi
  2585. ;;
  2586. esac
  2587. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  2588. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  2589. if test "${lt_cv_path_NM+set}" = set; then
  2590. echo $ECHO_N "(cached) $ECHO_C" >&6
  2591. else
  2592. if test -n "$NM"; then
  2593. # Let the user override the test.
  2594. lt_cv_path_NM="$NM"
  2595. else
  2596. lt_nm_to_check="${ac_tool_prefix}nm"
  2597. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  2598. lt_nm_to_check="$lt_nm_to_check nm"
  2599. fi
  2600. for lt_tmp_nm in $lt_nm_to_check; do
  2601. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2602. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  2603. IFS="$lt_save_ifs"
  2604. test -z "$ac_dir" && ac_dir=.
  2605. tmp_nm="$ac_dir/$lt_tmp_nm"
  2606. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2607. # Check to see if the nm accepts a BSD-compat flag.
  2608. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2609. # nm: unknown option "B" ignored
  2610. # Tru64's nm complains that /dev/null is an invalid object file
  2611. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2612. */dev/null* | *'Invalid file or object type'*)
  2613. lt_cv_path_NM="$tmp_nm -B"
  2614. break
  2615. ;;
  2616. *)
  2617. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2618. */dev/null*)
  2619. lt_cv_path_NM="$tmp_nm -p"
  2620. break
  2621. ;;
  2622. *)
  2623. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2624. continue # so that we can try to find one that supports BSD flags
  2625. ;;
  2626. esac
  2627. ;;
  2628. esac
  2629. fi
  2630. done
  2631. IFS="$lt_save_ifs"
  2632. done
  2633. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2634. fi
  2635. fi
  2636. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  2637. echo "${ECHO_T}$lt_cv_path_NM" >&6
  2638. NM="$lt_cv_path_NM"
  2639. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2640. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2641. LN_S=$as_ln_s
  2642. if test "$LN_S" = "ln -s"; then
  2643. echo "$as_me:$LINENO: result: yes" >&5
  2644. echo "${ECHO_T}yes" >&6
  2645. else
  2646. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2647. echo "${ECHO_T}no, using $LN_S" >&6
  2648. fi
  2649. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  2650. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  2651. if test "${lt_cv_deplibs_check_method+set}" = set; then
  2652. echo $ECHO_N "(cached) $ECHO_C" >&6
  2653. else
  2654. lt_cv_file_magic_cmd='$MAGIC_CMD'
  2655. lt_cv_file_magic_test_file=
  2656. lt_cv_deplibs_check_method='unknown'
  2657. # Need to set the preceding variable on all platforms that support
  2658. # interlibrary dependencies.
  2659. # 'none' -- dependencies not supported.
  2660. # `unknown' -- same as none, but documents that we really don't know.
  2661. # 'pass_all' -- all dependencies passed with no checks.
  2662. # 'test_compile' -- check by making test program.
  2663. # 'file_magic [[regex]]' -- check by looking for files in library path
  2664. # which responds to the $file_magic_cmd with a given extended regex.
  2665. # If you have `file' or equivalent on your system and you're not sure
  2666. # whether `pass_all' will *always* work, you probably want this one.
  2667. case $host_os in
  2668. aix4* | aix5*)
  2669. lt_cv_deplibs_check_method=pass_all
  2670. ;;
  2671. beos*)
  2672. lt_cv_deplibs_check_method=pass_all
  2673. ;;
  2674. bsdi[45]*)
  2675. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  2676. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2677. lt_cv_file_magic_test_file=/shlib/libc.so
  2678. ;;
  2679. cygwin*)
  2680. # func_win32_libid is a shell function defined in ltmain.sh
  2681. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2682. lt_cv_file_magic_cmd='func_win32_libid'
  2683. ;;
  2684. mingw* | pw32*)
  2685. # Base MSYS/MinGW do not provide the 'file' command needed by
  2686. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  2687. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2688. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2689. ;;
  2690. darwin* | rhapsody*)
  2691. lt_cv_deplibs_check_method=pass_all
  2692. ;;
  2693. freebsd* | kfreebsd*-gnu | dragonfly*)
  2694. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2695. case $host_cpu in
  2696. i*86 )
  2697. # Not sure whether the presence of OpenBSD here was a mistake.
  2698. # Let's accept both of them until this is cleared up.
  2699. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  2700. lt_cv_file_magic_cmd=/usr/bin/file
  2701. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2702. ;;
  2703. esac
  2704. else
  2705. lt_cv_deplibs_check_method=pass_all
  2706. fi
  2707. ;;
  2708. gnu*)
  2709. lt_cv_deplibs_check_method=pass_all
  2710. ;;
  2711. hpux10.20* | hpux11*)
  2712. lt_cv_file_magic_cmd=/usr/bin/file
  2713. case $host_cpu in
  2714. ia64*)
  2715. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  2716. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2717. ;;
  2718. hppa*64*)
  2719. 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]'
  2720. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2721. ;;
  2722. *)
  2723. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2724. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2725. ;;
  2726. esac
  2727. ;;
  2728. interix3*)
  2729. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2730. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  2731. ;;
  2732. irix5* | irix6* | nonstopux*)
  2733. case $LD in
  2734. *-32|*"-32 ") libmagic=32-bit;;
  2735. *-n32|*"-n32 ") libmagic=N32;;
  2736. *-64|*"-64 ") libmagic=64-bit;;
  2737. *) libmagic=never-match;;
  2738. esac
  2739. lt_cv_deplibs_check_method=pass_all
  2740. ;;
  2741. # This must be Linux ELF.
  2742. linux*)
  2743. lt_cv_deplibs_check_method=pass_all
  2744. ;;
  2745. netbsd*)
  2746. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2747. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2748. else
  2749. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  2750. fi
  2751. ;;
  2752. newos6*)
  2753. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  2754. lt_cv_file_magic_cmd=/usr/bin/file
  2755. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2756. ;;
  2757. nto-qnx*)
  2758. lt_cv_deplibs_check_method=unknown
  2759. ;;
  2760. openbsd*)
  2761. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2762. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  2763. else
  2764. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2765. fi
  2766. ;;
  2767. osf3* | osf4* | osf5*)
  2768. lt_cv_deplibs_check_method=pass_all
  2769. ;;
  2770. solaris*)
  2771. lt_cv_deplibs_check_method=pass_all
  2772. ;;
  2773. sysv4 | sysv4.3*)
  2774. case $host_vendor in
  2775. motorola)
  2776. 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]'
  2777. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2778. ;;
  2779. ncr)
  2780. lt_cv_deplibs_check_method=pass_all
  2781. ;;
  2782. sequent)
  2783. lt_cv_file_magic_cmd='/bin/file'
  2784. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  2785. ;;
  2786. sni)
  2787. lt_cv_file_magic_cmd='/bin/file'
  2788. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  2789. lt_cv_file_magic_test_file=/lib/libc.so
  2790. ;;
  2791. siemens)
  2792. lt_cv_deplibs_check_method=pass_all
  2793. ;;
  2794. pc)
  2795. lt_cv_deplibs_check_method=pass_all
  2796. ;;
  2797. esac
  2798. ;;
  2799. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2800. lt_cv_deplibs_check_method=pass_all
  2801. ;;
  2802. esac
  2803. fi
  2804. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  2805. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  2806. file_magic_cmd=$lt_cv_file_magic_cmd
  2807. deplibs_check_method=$lt_cv_deplibs_check_method
  2808. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2809. # If no C compiler was specified, use CC.
  2810. LTCC=${LTCC-"$CC"}
  2811. # If no C compiler flags were specified, use CFLAGS.
  2812. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  2813. # Allow CC to be a program name with arguments.
  2814. compiler=$CC
  2815. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  2816. if test "${enable_libtool_lock+set}" = set; then
  2817. enableval="$enable_libtool_lock"
  2818. fi;
  2819. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2820. # Some flags need to be propagated to the compiler or linker for good
  2821. # libtool support.
  2822. case $host in
  2823. ia64-*-hpux*)
  2824. # Find out which ABI we are using.
  2825. echo 'int i;' > conftest.$ac_ext
  2826. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2827. (eval $ac_compile) 2>&5
  2828. ac_status=$?
  2829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2830. (exit $ac_status); }; then
  2831. case `/usr/bin/file conftest.$ac_objext` in
  2832. *ELF-32*)
  2833. HPUX_IA64_MODE="32"
  2834. ;;
  2835. *ELF-64*)
  2836. HPUX_IA64_MODE="64"
  2837. ;;
  2838. esac
  2839. fi
  2840. rm -rf conftest*
  2841. ;;
  2842. *-*-irix6*)
  2843. # Find out which ABI we are using.
  2844. echo '#line 3157 "configure"' > conftest.$ac_ext
  2845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2846. (eval $ac_compile) 2>&5
  2847. ac_status=$?
  2848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2849. (exit $ac_status); }; then
  2850. if test "$lt_cv_prog_gnu_ld" = yes; then
  2851. case `/usr/bin/file conftest.$ac_objext` in
  2852. *32-bit*)
  2853. LD="${LD-ld} -melf32bsmip"
  2854. ;;
  2855. *N32*)
  2856. LD="${LD-ld} -melf32bmipn32"
  2857. ;;
  2858. *64-bit*)
  2859. LD="${LD-ld} -melf64bmip"
  2860. ;;
  2861. esac
  2862. else
  2863. case `/usr/bin/file conftest.$ac_objext` in
  2864. *32-bit*)
  2865. LD="${LD-ld} -32"
  2866. ;;
  2867. *N32*)
  2868. LD="${LD-ld} -n32"
  2869. ;;
  2870. *64-bit*)
  2871. LD="${LD-ld} -64"
  2872. ;;
  2873. esac
  2874. fi
  2875. fi
  2876. rm -rf conftest*
  2877. ;;
  2878. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  2879. # Find out which ABI we are using.
  2880. echo 'int i;' > conftest.$ac_ext
  2881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2882. (eval $ac_compile) 2>&5
  2883. ac_status=$?
  2884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2885. (exit $ac_status); }; then
  2886. case `/usr/bin/file conftest.o` in
  2887. *32-bit*)
  2888. case $host in
  2889. x86_64-*linux*)
  2890. LD="${LD-ld} -m elf_i386"
  2891. ;;
  2892. ppc64-*linux*|powerpc64-*linux*)
  2893. LD="${LD-ld} -m elf32ppclinux"
  2894. ;;
  2895. s390x-*linux*)
  2896. LD="${LD-ld} -m elf_s390"
  2897. ;;
  2898. sparc64-*linux*)
  2899. LD="${LD-ld} -m elf32_sparc"
  2900. ;;
  2901. esac
  2902. ;;
  2903. *64-bit*)
  2904. case $host in
  2905. x86_64-*linux*)
  2906. LD="${LD-ld} -m elf_x86_64"
  2907. ;;
  2908. ppc*-*linux*|powerpc*-*linux*)
  2909. LD="${LD-ld} -m elf64ppc"
  2910. ;;
  2911. s390*-*linux*)
  2912. LD="${LD-ld} -m elf64_s390"
  2913. ;;
  2914. sparc*-*linux*)
  2915. LD="${LD-ld} -m elf64_sparc"
  2916. ;;
  2917. esac
  2918. ;;
  2919. esac
  2920. fi
  2921. rm -rf conftest*
  2922. ;;
  2923. *-*-sco3.2v5*)
  2924. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2925. SAVE_CFLAGS="$CFLAGS"
  2926. CFLAGS="$CFLAGS -belf"
  2927. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  2928. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  2929. if test "${lt_cv_cc_needs_belf+set}" = set; then
  2930. echo $ECHO_N "(cached) $ECHO_C" >&6
  2931. else
  2932. ac_ext=c
  2933. ac_cpp='$CPP $CPPFLAGS'
  2934. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2935. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2936. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2937. cat >conftest.$ac_ext <<_ACEOF
  2938. /* confdefs.h. */
  2939. _ACEOF
  2940. cat confdefs.h >>conftest.$ac_ext
  2941. cat >>conftest.$ac_ext <<_ACEOF
  2942. /* end confdefs.h. */
  2943. int
  2944. main ()
  2945. {
  2946. ;
  2947. return 0;
  2948. }
  2949. _ACEOF
  2950. rm -f conftest.$ac_objext conftest$ac_exeext
  2951. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2952. (eval $ac_link) 2>conftest.er1
  2953. ac_status=$?
  2954. grep -v '^ *+' conftest.er1 >conftest.err
  2955. rm -f conftest.er1
  2956. cat conftest.err >&5
  2957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2958. (exit $ac_status); } &&
  2959. { ac_try='test -z "$ac_c_werror_flag"
  2960. || test ! -s conftest.err'
  2961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2962. (eval $ac_try) 2>&5
  2963. ac_status=$?
  2964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2965. (exit $ac_status); }; } &&
  2966. { ac_try='test -s conftest$ac_exeext'
  2967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2968. (eval $ac_try) 2>&5
  2969. ac_status=$?
  2970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2971. (exit $ac_status); }; }; then
  2972. lt_cv_cc_needs_belf=yes
  2973. else
  2974. echo "$as_me: failed program was:" >&5
  2975. sed 's/^/| /' conftest.$ac_ext >&5
  2976. lt_cv_cc_needs_belf=no
  2977. fi
  2978. rm -f conftest.err conftest.$ac_objext \
  2979. conftest$ac_exeext conftest.$ac_ext
  2980. ac_ext=c
  2981. ac_cpp='$CPP $CPPFLAGS'
  2982. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2983. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2984. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2985. fi
  2986. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  2987. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  2988. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2989. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2990. CFLAGS="$SAVE_CFLAGS"
  2991. fi
  2992. ;;
  2993. sparc*-*solaris*)
  2994. # Find out which ABI we are using.
  2995. echo 'int i;' > conftest.$ac_ext
  2996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2997. (eval $ac_compile) 2>&5
  2998. ac_status=$?
  2999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3000. (exit $ac_status); }; then
  3001. case `/usr/bin/file conftest.o` in
  3002. *64-bit*)
  3003. case $lt_cv_prog_gnu_ld in
  3004. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  3005. *) LD="${LD-ld} -64" ;;
  3006. esac
  3007. ;;
  3008. esac
  3009. fi
  3010. rm -rf conftest*
  3011. ;;
  3012. esac
  3013. need_locks="$enable_libtool_lock"
  3014. ac_ext=c
  3015. ac_cpp='$CPP $CPPFLAGS'
  3016. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3017. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3018. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3019. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3020. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3021. # On Suns, sometimes $CPP names a directory.
  3022. if test -n "$CPP" && test -d "$CPP"; then
  3023. CPP=
  3024. fi
  3025. if test -z "$CPP"; then
  3026. if test "${ac_cv_prog_CPP+set}" = set; then
  3027. echo $ECHO_N "(cached) $ECHO_C" >&6
  3028. else
  3029. # Double quotes because CPP needs to be expanded
  3030. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3031. do
  3032. ac_preproc_ok=false
  3033. for ac_c_preproc_warn_flag in '' yes
  3034. do
  3035. # Use a header file that comes with gcc, so configuring glibc
  3036. # with a fresh cross-compiler works.
  3037. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3038. # <limits.h> exists even on freestanding compilers.
  3039. # On the NeXT, cc -E runs the code through the compiler's parser,
  3040. # not just through cpp. "Syntax error" is here to catch this case.
  3041. cat >conftest.$ac_ext <<_ACEOF
  3042. /* confdefs.h. */
  3043. _ACEOF
  3044. cat confdefs.h >>conftest.$ac_ext
  3045. cat >>conftest.$ac_ext <<_ACEOF
  3046. /* end confdefs.h. */
  3047. #ifdef __STDC__
  3048. # include <limits.h>
  3049. #else
  3050. # include <assert.h>
  3051. #endif
  3052. Syntax error
  3053. _ACEOF
  3054. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3055. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3056. ac_status=$?
  3057. grep -v '^ *+' conftest.er1 >conftest.err
  3058. rm -f conftest.er1
  3059. cat conftest.err >&5
  3060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3061. (exit $ac_status); } >/dev/null; then
  3062. if test -s conftest.err; then
  3063. ac_cpp_err=$ac_c_preproc_warn_flag
  3064. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3065. else
  3066. ac_cpp_err=
  3067. fi
  3068. else
  3069. ac_cpp_err=yes
  3070. fi
  3071. if test -z "$ac_cpp_err"; then
  3072. :
  3073. else
  3074. echo "$as_me: failed program was:" >&5
  3075. sed 's/^/| /' conftest.$ac_ext >&5
  3076. # Broken: fails on valid input.
  3077. continue
  3078. fi
  3079. rm -f conftest.err conftest.$ac_ext
  3080. # OK, works on sane cases. Now check whether non-existent headers
  3081. # can be detected and how.
  3082. cat >conftest.$ac_ext <<_ACEOF
  3083. /* confdefs.h. */
  3084. _ACEOF
  3085. cat confdefs.h >>conftest.$ac_ext
  3086. cat >>conftest.$ac_ext <<_ACEOF
  3087. /* end confdefs.h. */
  3088. #include <ac_nonexistent.h>
  3089. _ACEOF
  3090. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3091. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3092. ac_status=$?
  3093. grep -v '^ *+' conftest.er1 >conftest.err
  3094. rm -f conftest.er1
  3095. cat conftest.err >&5
  3096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3097. (exit $ac_status); } >/dev/null; then
  3098. if test -s conftest.err; then
  3099. ac_cpp_err=$ac_c_preproc_warn_flag
  3100. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3101. else
  3102. ac_cpp_err=
  3103. fi
  3104. else
  3105. ac_cpp_err=yes
  3106. fi
  3107. if test -z "$ac_cpp_err"; then
  3108. # Broken: success on invalid input.
  3109. continue
  3110. else
  3111. echo "$as_me: failed program was:" >&5
  3112. sed 's/^/| /' conftest.$ac_ext >&5
  3113. # Passes both tests.
  3114. ac_preproc_ok=:
  3115. break
  3116. fi
  3117. rm -f conftest.err conftest.$ac_ext
  3118. done
  3119. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3120. rm -f conftest.err conftest.$ac_ext
  3121. if $ac_preproc_ok; then
  3122. break
  3123. fi
  3124. done
  3125. ac_cv_prog_CPP=$CPP
  3126. fi
  3127. CPP=$ac_cv_prog_CPP
  3128. else
  3129. ac_cv_prog_CPP=$CPP
  3130. fi
  3131. echo "$as_me:$LINENO: result: $CPP" >&5
  3132. echo "${ECHO_T}$CPP" >&6
  3133. ac_preproc_ok=false
  3134. for ac_c_preproc_warn_flag in '' yes
  3135. do
  3136. # Use a header file that comes with gcc, so configuring glibc
  3137. # with a fresh cross-compiler works.
  3138. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3139. # <limits.h> exists even on freestanding compilers.
  3140. # On the NeXT, cc -E runs the code through the compiler's parser,
  3141. # not just through cpp. "Syntax error" is here to catch this case.
  3142. cat >conftest.$ac_ext <<_ACEOF
  3143. /* confdefs.h. */
  3144. _ACEOF
  3145. cat confdefs.h >>conftest.$ac_ext
  3146. cat >>conftest.$ac_ext <<_ACEOF
  3147. /* end confdefs.h. */
  3148. #ifdef __STDC__
  3149. # include <limits.h>
  3150. #else
  3151. # include <assert.h>
  3152. #endif
  3153. Syntax error
  3154. _ACEOF
  3155. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3156. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3157. ac_status=$?
  3158. grep -v '^ *+' conftest.er1 >conftest.err
  3159. rm -f conftest.er1
  3160. cat conftest.err >&5
  3161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3162. (exit $ac_status); } >/dev/null; then
  3163. if test -s conftest.err; then
  3164. ac_cpp_err=$ac_c_preproc_warn_flag
  3165. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3166. else
  3167. ac_cpp_err=
  3168. fi
  3169. else
  3170. ac_cpp_err=yes
  3171. fi
  3172. if test -z "$ac_cpp_err"; then
  3173. :
  3174. else
  3175. echo "$as_me: failed program was:" >&5
  3176. sed 's/^/| /' conftest.$ac_ext >&5
  3177. # Broken: fails on valid input.
  3178. continue
  3179. fi
  3180. rm -f conftest.err conftest.$ac_ext
  3181. # OK, works on sane cases. Now check whether non-existent headers
  3182. # can be detected and how.
  3183. cat >conftest.$ac_ext <<_ACEOF
  3184. /* confdefs.h. */
  3185. _ACEOF
  3186. cat confdefs.h >>conftest.$ac_ext
  3187. cat >>conftest.$ac_ext <<_ACEOF
  3188. /* end confdefs.h. */
  3189. #include <ac_nonexistent.h>
  3190. _ACEOF
  3191. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3192. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3193. ac_status=$?
  3194. grep -v '^ *+' conftest.er1 >conftest.err
  3195. rm -f conftest.er1
  3196. cat conftest.err >&5
  3197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3198. (exit $ac_status); } >/dev/null; then
  3199. if test -s conftest.err; then
  3200. ac_cpp_err=$ac_c_preproc_warn_flag
  3201. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3202. else
  3203. ac_cpp_err=
  3204. fi
  3205. else
  3206. ac_cpp_err=yes
  3207. fi
  3208. if test -z "$ac_cpp_err"; then
  3209. # Broken: success on invalid input.
  3210. continue
  3211. else
  3212. echo "$as_me: failed program was:" >&5
  3213. sed 's/^/| /' conftest.$ac_ext >&5
  3214. # Passes both tests.
  3215. ac_preproc_ok=:
  3216. break
  3217. fi
  3218. rm -f conftest.err conftest.$ac_ext
  3219. done
  3220. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3221. rm -f conftest.err conftest.$ac_ext
  3222. if $ac_preproc_ok; then
  3223. :
  3224. else
  3225. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3226. See \`config.log' for more details." >&5
  3227. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3228. See \`config.log' for more details." >&2;}
  3229. { (exit 1); exit 1; }; }
  3230. fi
  3231. ac_ext=c
  3232. ac_cpp='$CPP $CPPFLAGS'
  3233. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3234. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3235. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3236. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3237. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3238. if test "${ac_cv_header_stdc+set}" = set; then
  3239. echo $ECHO_N "(cached) $ECHO_C" >&6
  3240. else
  3241. cat >conftest.$ac_ext <<_ACEOF
  3242. /* confdefs.h. */
  3243. _ACEOF
  3244. cat confdefs.h >>conftest.$ac_ext
  3245. cat >>conftest.$ac_ext <<_ACEOF
  3246. /* end confdefs.h. */
  3247. #include <stdlib.h>
  3248. #include <stdarg.h>
  3249. #include <string.h>
  3250. #include <float.h>
  3251. int
  3252. main ()
  3253. {
  3254. ;
  3255. return 0;
  3256. }
  3257. _ACEOF
  3258. rm -f conftest.$ac_objext
  3259. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3260. (eval $ac_compile) 2>conftest.er1
  3261. ac_status=$?
  3262. grep -v '^ *+' conftest.er1 >conftest.err
  3263. rm -f conftest.er1
  3264. cat conftest.err >&5
  3265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3266. (exit $ac_status); } &&
  3267. { ac_try='test -z "$ac_c_werror_flag"
  3268. || test ! -s conftest.err'
  3269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3270. (eval $ac_try) 2>&5
  3271. ac_status=$?
  3272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3273. (exit $ac_status); }; } &&
  3274. { ac_try='test -s conftest.$ac_objext'
  3275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3276. (eval $ac_try) 2>&5
  3277. ac_status=$?
  3278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3279. (exit $ac_status); }; }; then
  3280. ac_cv_header_stdc=yes
  3281. else
  3282. echo "$as_me: failed program was:" >&5
  3283. sed 's/^/| /' conftest.$ac_ext >&5
  3284. ac_cv_header_stdc=no
  3285. fi
  3286. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3287. if test $ac_cv_header_stdc = yes; then
  3288. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3289. cat >conftest.$ac_ext <<_ACEOF
  3290. /* confdefs.h. */
  3291. _ACEOF
  3292. cat confdefs.h >>conftest.$ac_ext
  3293. cat >>conftest.$ac_ext <<_ACEOF
  3294. /* end confdefs.h. */
  3295. #include <string.h>
  3296. _ACEOF
  3297. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3298. $EGREP "memchr" >/dev/null 2>&1; then
  3299. :
  3300. else
  3301. ac_cv_header_stdc=no
  3302. fi
  3303. rm -f conftest*
  3304. fi
  3305. if test $ac_cv_header_stdc = yes; then
  3306. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3307. cat >conftest.$ac_ext <<_ACEOF
  3308. /* confdefs.h. */
  3309. _ACEOF
  3310. cat confdefs.h >>conftest.$ac_ext
  3311. cat >>conftest.$ac_ext <<_ACEOF
  3312. /* end confdefs.h. */
  3313. #include <stdlib.h>
  3314. _ACEOF
  3315. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3316. $EGREP "free" >/dev/null 2>&1; then
  3317. :
  3318. else
  3319. ac_cv_header_stdc=no
  3320. fi
  3321. rm -f conftest*
  3322. fi
  3323. if test $ac_cv_header_stdc = yes; then
  3324. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3325. if test "$cross_compiling" = yes; then
  3326. :
  3327. else
  3328. cat >conftest.$ac_ext <<_ACEOF
  3329. /* confdefs.h. */
  3330. _ACEOF
  3331. cat confdefs.h >>conftest.$ac_ext
  3332. cat >>conftest.$ac_ext <<_ACEOF
  3333. /* end confdefs.h. */
  3334. #include <ctype.h>
  3335. #if ((' ' & 0x0FF) == 0x020)
  3336. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3337. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3338. #else
  3339. # define ISLOWER(c) \
  3340. (('a' <= (c) && (c) <= 'i') \
  3341. || ('j' <= (c) && (c) <= 'r') \
  3342. || ('s' <= (c) && (c) <= 'z'))
  3343. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3344. #endif
  3345. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3346. int
  3347. main ()
  3348. {
  3349. int i;
  3350. for (i = 0; i < 256; i++)
  3351. if (XOR (islower (i), ISLOWER (i))
  3352. || toupper (i) != TOUPPER (i))
  3353. exit(2);
  3354. exit (0);
  3355. }
  3356. _ACEOF
  3357. rm -f conftest$ac_exeext
  3358. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3359. (eval $ac_link) 2>&5
  3360. ac_status=$?
  3361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3362. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3363. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3364. (eval $ac_try) 2>&5
  3365. ac_status=$?
  3366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3367. (exit $ac_status); }; }; then
  3368. :
  3369. else
  3370. echo "$as_me: program exited with status $ac_status" >&5
  3371. echo "$as_me: failed program was:" >&5
  3372. sed 's/^/| /' conftest.$ac_ext >&5
  3373. ( exit $ac_status )
  3374. ac_cv_header_stdc=no
  3375. fi
  3376. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3377. fi
  3378. fi
  3379. fi
  3380. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3381. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3382. if test $ac_cv_header_stdc = yes; then
  3383. cat >>confdefs.h <<\_ACEOF
  3384. #define STDC_HEADERS 1
  3385. _ACEOF
  3386. fi
  3387. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3388. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3389. inttypes.h stdint.h unistd.h
  3390. do
  3391. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3392. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3393. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3394. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3395. echo $ECHO_N "(cached) $ECHO_C" >&6
  3396. else
  3397. cat >conftest.$ac_ext <<_ACEOF
  3398. /* confdefs.h. */
  3399. _ACEOF
  3400. cat confdefs.h >>conftest.$ac_ext
  3401. cat >>conftest.$ac_ext <<_ACEOF
  3402. /* end confdefs.h. */
  3403. $ac_includes_default
  3404. #include <$ac_header>
  3405. _ACEOF
  3406. rm -f conftest.$ac_objext
  3407. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3408. (eval $ac_compile) 2>conftest.er1
  3409. ac_status=$?
  3410. grep -v '^ *+' conftest.er1 >conftest.err
  3411. rm -f conftest.er1
  3412. cat conftest.err >&5
  3413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3414. (exit $ac_status); } &&
  3415. { ac_try='test -z "$ac_c_werror_flag"
  3416. || test ! -s conftest.err'
  3417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3418. (eval $ac_try) 2>&5
  3419. ac_status=$?
  3420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3421. (exit $ac_status); }; } &&
  3422. { ac_try='test -s conftest.$ac_objext'
  3423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3424. (eval $ac_try) 2>&5
  3425. ac_status=$?
  3426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3427. (exit $ac_status); }; }; then
  3428. eval "$as_ac_Header=yes"
  3429. else
  3430. echo "$as_me: failed program was:" >&5
  3431. sed 's/^/| /' conftest.$ac_ext >&5
  3432. eval "$as_ac_Header=no"
  3433. fi
  3434. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3435. fi
  3436. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3437. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3438. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3439. cat >>confdefs.h <<_ACEOF
  3440. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3441. _ACEOF
  3442. fi
  3443. done
  3444. for ac_header in dlfcn.h
  3445. do
  3446. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3447. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3448. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3449. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3450. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3451. echo $ECHO_N "(cached) $ECHO_C" >&6
  3452. fi
  3453. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3454. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3455. else
  3456. # Is the header compilable?
  3457. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3458. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3459. cat >conftest.$ac_ext <<_ACEOF
  3460. /* confdefs.h. */
  3461. _ACEOF
  3462. cat confdefs.h >>conftest.$ac_ext
  3463. cat >>conftest.$ac_ext <<_ACEOF
  3464. /* end confdefs.h. */
  3465. $ac_includes_default
  3466. #include <$ac_header>
  3467. _ACEOF
  3468. rm -f conftest.$ac_objext
  3469. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3470. (eval $ac_compile) 2>conftest.er1
  3471. ac_status=$?
  3472. grep -v '^ *+' conftest.er1 >conftest.err
  3473. rm -f conftest.er1
  3474. cat conftest.err >&5
  3475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3476. (exit $ac_status); } &&
  3477. { ac_try='test -z "$ac_c_werror_flag"
  3478. || test ! -s conftest.err'
  3479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3480. (eval $ac_try) 2>&5
  3481. ac_status=$?
  3482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3483. (exit $ac_status); }; } &&
  3484. { ac_try='test -s conftest.$ac_objext'
  3485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3486. (eval $ac_try) 2>&5
  3487. ac_status=$?
  3488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3489. (exit $ac_status); }; }; then
  3490. ac_header_compiler=yes
  3491. else
  3492. echo "$as_me: failed program was:" >&5
  3493. sed 's/^/| /' conftest.$ac_ext >&5
  3494. ac_header_compiler=no
  3495. fi
  3496. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3497. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3498. echo "${ECHO_T}$ac_header_compiler" >&6
  3499. # Is the header present?
  3500. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3501. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3502. cat >conftest.$ac_ext <<_ACEOF
  3503. /* confdefs.h. */
  3504. _ACEOF
  3505. cat confdefs.h >>conftest.$ac_ext
  3506. cat >>conftest.$ac_ext <<_ACEOF
  3507. /* end confdefs.h. */
  3508. #include <$ac_header>
  3509. _ACEOF
  3510. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3511. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3512. ac_status=$?
  3513. grep -v '^ *+' conftest.er1 >conftest.err
  3514. rm -f conftest.er1
  3515. cat conftest.err >&5
  3516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3517. (exit $ac_status); } >/dev/null; then
  3518. if test -s conftest.err; then
  3519. ac_cpp_err=$ac_c_preproc_warn_flag
  3520. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3521. else
  3522. ac_cpp_err=
  3523. fi
  3524. else
  3525. ac_cpp_err=yes
  3526. fi
  3527. if test -z "$ac_cpp_err"; then
  3528. ac_header_preproc=yes
  3529. else
  3530. echo "$as_me: failed program was:" >&5
  3531. sed 's/^/| /' conftest.$ac_ext >&5
  3532. ac_header_preproc=no
  3533. fi
  3534. rm -f conftest.err conftest.$ac_ext
  3535. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3536. echo "${ECHO_T}$ac_header_preproc" >&6
  3537. # So? What about this header?
  3538. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3539. yes:no: )
  3540. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3541. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3542. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3543. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3544. ac_header_preproc=yes
  3545. ;;
  3546. no:yes:* )
  3547. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3548. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3549. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3550. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3551. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3552. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3553. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3554. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3555. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3556. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3557. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3558. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3559. (
  3560. cat <<\_ASBOX
  3561. ## ------------------------------------------ ##
  3562. ## Report this to the AC_PACKAGE_NAME lists. ##
  3563. ## ------------------------------------------ ##
  3564. _ASBOX
  3565. ) |
  3566. sed "s/^/$as_me: WARNING: /" >&2
  3567. ;;
  3568. esac
  3569. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3570. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3571. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3572. echo $ECHO_N "(cached) $ECHO_C" >&6
  3573. else
  3574. eval "$as_ac_Header=\$ac_header_preproc"
  3575. fi
  3576. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3577. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3578. fi
  3579. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3580. cat >>confdefs.h <<_ACEOF
  3581. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3582. _ACEOF
  3583. fi
  3584. done
  3585. ac_ext=cc
  3586. ac_cpp='$CXXCPP $CPPFLAGS'
  3587. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3588. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3589. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3590. if test -n "$ac_tool_prefix"; then
  3591. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3592. do
  3593. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3594. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3595. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3596. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3597. if test "${ac_cv_prog_CXX+set}" = set; then
  3598. echo $ECHO_N "(cached) $ECHO_C" >&6
  3599. else
  3600. if test -n "$CXX"; then
  3601. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3602. else
  3603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3604. for as_dir in $PATH
  3605. do
  3606. IFS=$as_save_IFS
  3607. test -z "$as_dir" && as_dir=.
  3608. for ac_exec_ext in '' $ac_executable_extensions; do
  3609. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3610. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3611. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3612. break 2
  3613. fi
  3614. done
  3615. done
  3616. fi
  3617. fi
  3618. CXX=$ac_cv_prog_CXX
  3619. if test -n "$CXX"; then
  3620. echo "$as_me:$LINENO: result: $CXX" >&5
  3621. echo "${ECHO_T}$CXX" >&6
  3622. else
  3623. echo "$as_me:$LINENO: result: no" >&5
  3624. echo "${ECHO_T}no" >&6
  3625. fi
  3626. test -n "$CXX" && break
  3627. done
  3628. fi
  3629. if test -z "$CXX"; then
  3630. ac_ct_CXX=$CXX
  3631. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3632. do
  3633. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3634. set dummy $ac_prog; ac_word=$2
  3635. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3636. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3637. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3638. echo $ECHO_N "(cached) $ECHO_C" >&6
  3639. else
  3640. if test -n "$ac_ct_CXX"; then
  3641. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3642. else
  3643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3644. for as_dir in $PATH
  3645. do
  3646. IFS=$as_save_IFS
  3647. test -z "$as_dir" && as_dir=.
  3648. for ac_exec_ext in '' $ac_executable_extensions; do
  3649. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3650. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3651. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3652. break 2
  3653. fi
  3654. done
  3655. done
  3656. fi
  3657. fi
  3658. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3659. if test -n "$ac_ct_CXX"; then
  3660. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3661. echo "${ECHO_T}$ac_ct_CXX" >&6
  3662. else
  3663. echo "$as_me:$LINENO: result: no" >&5
  3664. echo "${ECHO_T}no" >&6
  3665. fi
  3666. test -n "$ac_ct_CXX" && break
  3667. done
  3668. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  3669. CXX=$ac_ct_CXX
  3670. fi
  3671. # Provide some information about the compiler.
  3672. echo "$as_me:$LINENO:" \
  3673. "checking for C++ compiler version" >&5
  3674. ac_compiler=`set X $ac_compile; echo $2`
  3675. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3676. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3677. ac_status=$?
  3678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3679. (exit $ac_status); }
  3680. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3681. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3682. ac_status=$?
  3683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3684. (exit $ac_status); }
  3685. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3686. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3687. ac_status=$?
  3688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3689. (exit $ac_status); }
  3690. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3691. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  3692. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3693. echo $ECHO_N "(cached) $ECHO_C" >&6
  3694. else
  3695. cat >conftest.$ac_ext <<_ACEOF
  3696. /* confdefs.h. */
  3697. _ACEOF
  3698. cat confdefs.h >>conftest.$ac_ext
  3699. cat >>conftest.$ac_ext <<_ACEOF
  3700. /* end confdefs.h. */
  3701. int
  3702. main ()
  3703. {
  3704. #ifndef __GNUC__
  3705. choke me
  3706. #endif
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. rm -f conftest.$ac_objext
  3712. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3713. (eval $ac_compile) 2>conftest.er1
  3714. ac_status=$?
  3715. grep -v '^ *+' conftest.er1 >conftest.err
  3716. rm -f conftest.er1
  3717. cat conftest.err >&5
  3718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3719. (exit $ac_status); } &&
  3720. { ac_try='test -z "$ac_cxx_werror_flag"
  3721. || test ! -s conftest.err'
  3722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3723. (eval $ac_try) 2>&5
  3724. ac_status=$?
  3725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3726. (exit $ac_status); }; } &&
  3727. { ac_try='test -s conftest.$ac_objext'
  3728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3729. (eval $ac_try) 2>&5
  3730. ac_status=$?
  3731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3732. (exit $ac_status); }; }; then
  3733. ac_compiler_gnu=yes
  3734. else
  3735. echo "$as_me: failed program was:" >&5
  3736. sed 's/^/| /' conftest.$ac_ext >&5
  3737. ac_compiler_gnu=no
  3738. fi
  3739. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3740. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3741. fi
  3742. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3743. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  3744. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3745. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3746. ac_save_CXXFLAGS=$CXXFLAGS
  3747. CXXFLAGS="-g"
  3748. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3749. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  3750. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3751. echo $ECHO_N "(cached) $ECHO_C" >&6
  3752. else
  3753. cat >conftest.$ac_ext <<_ACEOF
  3754. /* confdefs.h. */
  3755. _ACEOF
  3756. cat confdefs.h >>conftest.$ac_ext
  3757. cat >>conftest.$ac_ext <<_ACEOF
  3758. /* end confdefs.h. */
  3759. int
  3760. main ()
  3761. {
  3762. ;
  3763. return 0;
  3764. }
  3765. _ACEOF
  3766. rm -f conftest.$ac_objext
  3767. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3768. (eval $ac_compile) 2>conftest.er1
  3769. ac_status=$?
  3770. grep -v '^ *+' conftest.er1 >conftest.err
  3771. rm -f conftest.er1
  3772. cat conftest.err >&5
  3773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3774. (exit $ac_status); } &&
  3775. { ac_try='test -z "$ac_cxx_werror_flag"
  3776. || test ! -s conftest.err'
  3777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3778. (eval $ac_try) 2>&5
  3779. ac_status=$?
  3780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3781. (exit $ac_status); }; } &&
  3782. { ac_try='test -s conftest.$ac_objext'
  3783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3784. (eval $ac_try) 2>&5
  3785. ac_status=$?
  3786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3787. (exit $ac_status); }; }; then
  3788. ac_cv_prog_cxx_g=yes
  3789. else
  3790. echo "$as_me: failed program was:" >&5
  3791. sed 's/^/| /' conftest.$ac_ext >&5
  3792. ac_cv_prog_cxx_g=no
  3793. fi
  3794. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3795. fi
  3796. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3797. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  3798. if test "$ac_test_CXXFLAGS" = set; then
  3799. CXXFLAGS=$ac_save_CXXFLAGS
  3800. elif test $ac_cv_prog_cxx_g = yes; then
  3801. if test "$GXX" = yes; then
  3802. CXXFLAGS="-g -O2"
  3803. else
  3804. CXXFLAGS="-g"
  3805. fi
  3806. else
  3807. if test "$GXX" = yes; then
  3808. CXXFLAGS="-O2"
  3809. else
  3810. CXXFLAGS=
  3811. fi
  3812. fi
  3813. for ac_declaration in \
  3814. '' \
  3815. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3816. 'extern "C" void std::exit (int); using std::exit;' \
  3817. 'extern "C" void exit (int) throw ();' \
  3818. 'extern "C" void exit (int);' \
  3819. 'void exit (int);'
  3820. do
  3821. cat >conftest.$ac_ext <<_ACEOF
  3822. /* confdefs.h. */
  3823. _ACEOF
  3824. cat confdefs.h >>conftest.$ac_ext
  3825. cat >>conftest.$ac_ext <<_ACEOF
  3826. /* end confdefs.h. */
  3827. $ac_declaration
  3828. #include <stdlib.h>
  3829. int
  3830. main ()
  3831. {
  3832. exit (42);
  3833. ;
  3834. return 0;
  3835. }
  3836. _ACEOF
  3837. rm -f conftest.$ac_objext
  3838. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3839. (eval $ac_compile) 2>conftest.er1
  3840. ac_status=$?
  3841. grep -v '^ *+' conftest.er1 >conftest.err
  3842. rm -f conftest.er1
  3843. cat conftest.err >&5
  3844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3845. (exit $ac_status); } &&
  3846. { ac_try='test -z "$ac_cxx_werror_flag"
  3847. || test ! -s conftest.err'
  3848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3849. (eval $ac_try) 2>&5
  3850. ac_status=$?
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); }; } &&
  3853. { ac_try='test -s conftest.$ac_objext'
  3854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3855. (eval $ac_try) 2>&5
  3856. ac_status=$?
  3857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3858. (exit $ac_status); }; }; then
  3859. :
  3860. else
  3861. echo "$as_me: failed program was:" >&5
  3862. sed 's/^/| /' conftest.$ac_ext >&5
  3863. continue
  3864. fi
  3865. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3866. cat >conftest.$ac_ext <<_ACEOF
  3867. /* confdefs.h. */
  3868. _ACEOF
  3869. cat confdefs.h >>conftest.$ac_ext
  3870. cat >>conftest.$ac_ext <<_ACEOF
  3871. /* end confdefs.h. */
  3872. $ac_declaration
  3873. int
  3874. main ()
  3875. {
  3876. exit (42);
  3877. ;
  3878. return 0;
  3879. }
  3880. _ACEOF
  3881. rm -f conftest.$ac_objext
  3882. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3883. (eval $ac_compile) 2>conftest.er1
  3884. ac_status=$?
  3885. grep -v '^ *+' conftest.er1 >conftest.err
  3886. rm -f conftest.er1
  3887. cat conftest.err >&5
  3888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889. (exit $ac_status); } &&
  3890. { ac_try='test -z "$ac_cxx_werror_flag"
  3891. || test ! -s conftest.err'
  3892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3893. (eval $ac_try) 2>&5
  3894. ac_status=$?
  3895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3896. (exit $ac_status); }; } &&
  3897. { ac_try='test -s conftest.$ac_objext'
  3898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3899. (eval $ac_try) 2>&5
  3900. ac_status=$?
  3901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3902. (exit $ac_status); }; }; then
  3903. break
  3904. else
  3905. echo "$as_me: failed program was:" >&5
  3906. sed 's/^/| /' conftest.$ac_ext >&5
  3907. fi
  3908. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3909. done
  3910. rm -f conftest*
  3911. if test -n "$ac_declaration"; then
  3912. echo '#ifdef __cplusplus' >>confdefs.h
  3913. echo $ac_declaration >>confdefs.h
  3914. echo '#endif' >>confdefs.h
  3915. fi
  3916. ac_ext=cc
  3917. ac_cpp='$CXXCPP $CPPFLAGS'
  3918. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3919. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3920. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3921. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3922. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3923. (test "X$CXX" != "Xg++"))) ; then
  3924. ac_ext=cc
  3925. ac_cpp='$CXXCPP $CPPFLAGS'
  3926. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3927. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3928. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3929. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  3930. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  3931. if test -z "$CXXCPP"; then
  3932. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  3933. echo $ECHO_N "(cached) $ECHO_C" >&6
  3934. else
  3935. # Double quotes because CXXCPP needs to be expanded
  3936. for CXXCPP in "$CXX -E" "/lib/cpp"
  3937. do
  3938. ac_preproc_ok=false
  3939. for ac_cxx_preproc_warn_flag in '' yes
  3940. do
  3941. # Use a header file that comes with gcc, so configuring glibc
  3942. # with a fresh cross-compiler works.
  3943. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3944. # <limits.h> exists even on freestanding compilers.
  3945. # On the NeXT, cc -E runs the code through the compiler's parser,
  3946. # not just through cpp. "Syntax error" is here to catch this case.
  3947. cat >conftest.$ac_ext <<_ACEOF
  3948. /* confdefs.h. */
  3949. _ACEOF
  3950. cat confdefs.h >>conftest.$ac_ext
  3951. cat >>conftest.$ac_ext <<_ACEOF
  3952. /* end confdefs.h. */
  3953. #ifdef __STDC__
  3954. # include <limits.h>
  3955. #else
  3956. # include <assert.h>
  3957. #endif
  3958. Syntax error
  3959. _ACEOF
  3960. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3961. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3962. ac_status=$?
  3963. grep -v '^ *+' conftest.er1 >conftest.err
  3964. rm -f conftest.er1
  3965. cat conftest.err >&5
  3966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3967. (exit $ac_status); } >/dev/null; then
  3968. if test -s conftest.err; then
  3969. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3970. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  3971. else
  3972. ac_cpp_err=
  3973. fi
  3974. else
  3975. ac_cpp_err=yes
  3976. fi
  3977. if test -z "$ac_cpp_err"; then
  3978. :
  3979. else
  3980. echo "$as_me: failed program was:" >&5
  3981. sed 's/^/| /' conftest.$ac_ext >&5
  3982. # Broken: fails on valid input.
  3983. continue
  3984. fi
  3985. rm -f conftest.err conftest.$ac_ext
  3986. # OK, works on sane cases. Now check whether non-existent headers
  3987. # can be detected and how.
  3988. cat >conftest.$ac_ext <<_ACEOF
  3989. /* confdefs.h. */
  3990. _ACEOF
  3991. cat confdefs.h >>conftest.$ac_ext
  3992. cat >>conftest.$ac_ext <<_ACEOF
  3993. /* end confdefs.h. */
  3994. #include <ac_nonexistent.h>
  3995. _ACEOF
  3996. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3997. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3998. ac_status=$?
  3999. grep -v '^ *+' conftest.er1 >conftest.err
  4000. rm -f conftest.er1
  4001. cat conftest.err >&5
  4002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4003. (exit $ac_status); } >/dev/null; then
  4004. if test -s conftest.err; then
  4005. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4006. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4007. else
  4008. ac_cpp_err=
  4009. fi
  4010. else
  4011. ac_cpp_err=yes
  4012. fi
  4013. if test -z "$ac_cpp_err"; then
  4014. # Broken: success on invalid input.
  4015. continue
  4016. else
  4017. echo "$as_me: failed program was:" >&5
  4018. sed 's/^/| /' conftest.$ac_ext >&5
  4019. # Passes both tests.
  4020. ac_preproc_ok=:
  4021. break
  4022. fi
  4023. rm -f conftest.err conftest.$ac_ext
  4024. done
  4025. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4026. rm -f conftest.err conftest.$ac_ext
  4027. if $ac_preproc_ok; then
  4028. break
  4029. fi
  4030. done
  4031. ac_cv_prog_CXXCPP=$CXXCPP
  4032. fi
  4033. CXXCPP=$ac_cv_prog_CXXCPP
  4034. else
  4035. ac_cv_prog_CXXCPP=$CXXCPP
  4036. fi
  4037. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4038. echo "${ECHO_T}$CXXCPP" >&6
  4039. ac_preproc_ok=false
  4040. for ac_cxx_preproc_warn_flag in '' yes
  4041. do
  4042. # Use a header file that comes with gcc, so configuring glibc
  4043. # with a fresh cross-compiler works.
  4044. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4045. # <limits.h> exists even on freestanding compilers.
  4046. # On the NeXT, cc -E runs the code through the compiler's parser,
  4047. # not just through cpp. "Syntax error" is here to catch this case.
  4048. cat >conftest.$ac_ext <<_ACEOF
  4049. /* confdefs.h. */
  4050. _ACEOF
  4051. cat confdefs.h >>conftest.$ac_ext
  4052. cat >>conftest.$ac_ext <<_ACEOF
  4053. /* end confdefs.h. */
  4054. #ifdef __STDC__
  4055. # include <limits.h>
  4056. #else
  4057. # include <assert.h>
  4058. #endif
  4059. Syntax error
  4060. _ACEOF
  4061. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4062. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4063. ac_status=$?
  4064. grep -v '^ *+' conftest.er1 >conftest.err
  4065. rm -f conftest.er1
  4066. cat conftest.err >&5
  4067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4068. (exit $ac_status); } >/dev/null; then
  4069. if test -s conftest.err; then
  4070. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4071. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4072. else
  4073. ac_cpp_err=
  4074. fi
  4075. else
  4076. ac_cpp_err=yes
  4077. fi
  4078. if test -z "$ac_cpp_err"; then
  4079. :
  4080. else
  4081. echo "$as_me: failed program was:" >&5
  4082. sed 's/^/| /' conftest.$ac_ext >&5
  4083. # Broken: fails on valid input.
  4084. continue
  4085. fi
  4086. rm -f conftest.err conftest.$ac_ext
  4087. # OK, works on sane cases. Now check whether non-existent headers
  4088. # can be detected and how.
  4089. cat >conftest.$ac_ext <<_ACEOF
  4090. /* confdefs.h. */
  4091. _ACEOF
  4092. cat confdefs.h >>conftest.$ac_ext
  4093. cat >>conftest.$ac_ext <<_ACEOF
  4094. /* end confdefs.h. */
  4095. #include <ac_nonexistent.h>
  4096. _ACEOF
  4097. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4098. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4099. ac_status=$?
  4100. grep -v '^ *+' conftest.er1 >conftest.err
  4101. rm -f conftest.er1
  4102. cat conftest.err >&5
  4103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4104. (exit $ac_status); } >/dev/null; then
  4105. if test -s conftest.err; then
  4106. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4107. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4108. else
  4109. ac_cpp_err=
  4110. fi
  4111. else
  4112. ac_cpp_err=yes
  4113. fi
  4114. if test -z "$ac_cpp_err"; then
  4115. # Broken: success on invalid input.
  4116. continue
  4117. else
  4118. echo "$as_me: failed program was:" >&5
  4119. sed 's/^/| /' conftest.$ac_ext >&5
  4120. # Passes both tests.
  4121. ac_preproc_ok=:
  4122. break
  4123. fi
  4124. rm -f conftest.err conftest.$ac_ext
  4125. done
  4126. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4127. rm -f conftest.err conftest.$ac_ext
  4128. if $ac_preproc_ok; then
  4129. :
  4130. else
  4131. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4132. See \`config.log' for more details." >&5
  4133. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4134. See \`config.log' for more details." >&2;}
  4135. { (exit 1); exit 1; }; }
  4136. fi
  4137. ac_ext=cc
  4138. ac_cpp='$CXXCPP $CPPFLAGS'
  4139. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4140. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4141. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4142. fi
  4143. ac_ext=f
  4144. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4145. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4146. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4147. if test -n "$ac_tool_prefix"; then
  4148. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4149. do
  4150. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4151. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4152. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4153. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4154. if test "${ac_cv_prog_F77+set}" = set; then
  4155. echo $ECHO_N "(cached) $ECHO_C" >&6
  4156. else
  4157. if test -n "$F77"; then
  4158. ac_cv_prog_F77="$F77" # Let the user override the test.
  4159. else
  4160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4161. for as_dir in $PATH
  4162. do
  4163. IFS=$as_save_IFS
  4164. test -z "$as_dir" && as_dir=.
  4165. for ac_exec_ext in '' $ac_executable_extensions; do
  4166. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4167. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4168. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4169. break 2
  4170. fi
  4171. done
  4172. done
  4173. fi
  4174. fi
  4175. F77=$ac_cv_prog_F77
  4176. if test -n "$F77"; then
  4177. echo "$as_me:$LINENO: result: $F77" >&5
  4178. echo "${ECHO_T}$F77" >&6
  4179. else
  4180. echo "$as_me:$LINENO: result: no" >&5
  4181. echo "${ECHO_T}no" >&6
  4182. fi
  4183. test -n "$F77" && break
  4184. done
  4185. fi
  4186. if test -z "$F77"; then
  4187. ac_ct_F77=$F77
  4188. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4189. do
  4190. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4191. set dummy $ac_prog; ac_word=$2
  4192. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4193. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4194. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4195. echo $ECHO_N "(cached) $ECHO_C" >&6
  4196. else
  4197. if test -n "$ac_ct_F77"; then
  4198. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4199. else
  4200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4201. for as_dir in $PATH
  4202. do
  4203. IFS=$as_save_IFS
  4204. test -z "$as_dir" && as_dir=.
  4205. for ac_exec_ext in '' $ac_executable_extensions; do
  4206. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4207. ac_cv_prog_ac_ct_F77="$ac_prog"
  4208. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4209. break 2
  4210. fi
  4211. done
  4212. done
  4213. fi
  4214. fi
  4215. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4216. if test -n "$ac_ct_F77"; then
  4217. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4218. echo "${ECHO_T}$ac_ct_F77" >&6
  4219. else
  4220. echo "$as_me:$LINENO: result: no" >&5
  4221. echo "${ECHO_T}no" >&6
  4222. fi
  4223. test -n "$ac_ct_F77" && break
  4224. done
  4225. F77=$ac_ct_F77
  4226. fi
  4227. # Provide some information about the compiler.
  4228. echo "$as_me:4647:" \
  4229. "checking for Fortran 77 compiler version" >&5
  4230. ac_compiler=`set X $ac_compile; echo $2`
  4231. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4232. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4233. ac_status=$?
  4234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4235. (exit $ac_status); }
  4236. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4237. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4238. ac_status=$?
  4239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4240. (exit $ac_status); }
  4241. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4242. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4243. ac_status=$?
  4244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4245. (exit $ac_status); }
  4246. rm -f a.out
  4247. # If we don't use `.F' as extension, the preprocessor is not run on the
  4248. # input file. (Note that this only needs to work for GNU compilers.)
  4249. ac_save_ext=$ac_ext
  4250. ac_ext=F
  4251. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4252. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4253. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4254. echo $ECHO_N "(cached) $ECHO_C" >&6
  4255. else
  4256. cat >conftest.$ac_ext <<_ACEOF
  4257. program main
  4258. #ifndef __GNUC__
  4259. choke me
  4260. #endif
  4261. end
  4262. _ACEOF
  4263. rm -f conftest.$ac_objext
  4264. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4265. (eval $ac_compile) 2>conftest.er1
  4266. ac_status=$?
  4267. grep -v '^ *+' conftest.er1 >conftest.err
  4268. rm -f conftest.er1
  4269. cat conftest.err >&5
  4270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4271. (exit $ac_status); } &&
  4272. { ac_try='test -z "$ac_f77_werror_flag"
  4273. || test ! -s conftest.err'
  4274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4275. (eval $ac_try) 2>&5
  4276. ac_status=$?
  4277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4278. (exit $ac_status); }; } &&
  4279. { ac_try='test -s conftest.$ac_objext'
  4280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4281. (eval $ac_try) 2>&5
  4282. ac_status=$?
  4283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4284. (exit $ac_status); }; }; then
  4285. ac_compiler_gnu=yes
  4286. else
  4287. echo "$as_me: failed program was:" >&5
  4288. sed 's/^/| /' conftest.$ac_ext >&5
  4289. ac_compiler_gnu=no
  4290. fi
  4291. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4292. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4293. fi
  4294. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4295. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  4296. ac_ext=$ac_save_ext
  4297. ac_test_FFLAGS=${FFLAGS+set}
  4298. ac_save_FFLAGS=$FFLAGS
  4299. FFLAGS=
  4300. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4301. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  4302. if test "${ac_cv_prog_f77_g+set}" = set; then
  4303. echo $ECHO_N "(cached) $ECHO_C" >&6
  4304. else
  4305. FFLAGS=-g
  4306. cat >conftest.$ac_ext <<_ACEOF
  4307. program main
  4308. end
  4309. _ACEOF
  4310. rm -f conftest.$ac_objext
  4311. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4312. (eval $ac_compile) 2>conftest.er1
  4313. ac_status=$?
  4314. grep -v '^ *+' conftest.er1 >conftest.err
  4315. rm -f conftest.er1
  4316. cat conftest.err >&5
  4317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4318. (exit $ac_status); } &&
  4319. { ac_try='test -z "$ac_f77_werror_flag"
  4320. || test ! -s conftest.err'
  4321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4322. (eval $ac_try) 2>&5
  4323. ac_status=$?
  4324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4325. (exit $ac_status); }; } &&
  4326. { ac_try='test -s conftest.$ac_objext'
  4327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4328. (eval $ac_try) 2>&5
  4329. ac_status=$?
  4330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4331. (exit $ac_status); }; }; then
  4332. ac_cv_prog_f77_g=yes
  4333. else
  4334. echo "$as_me: failed program was:" >&5
  4335. sed 's/^/| /' conftest.$ac_ext >&5
  4336. ac_cv_prog_f77_g=no
  4337. fi
  4338. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4339. fi
  4340. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  4341. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  4342. if test "$ac_test_FFLAGS" = set; then
  4343. FFLAGS=$ac_save_FFLAGS
  4344. elif test $ac_cv_prog_f77_g = yes; then
  4345. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4346. FFLAGS="-g -O2"
  4347. else
  4348. FFLAGS="-g"
  4349. fi
  4350. else
  4351. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4352. FFLAGS="-O2"
  4353. else
  4354. FFLAGS=
  4355. fi
  4356. fi
  4357. G77=`test $ac_compiler_gnu = yes && echo yes`
  4358. ac_ext=c
  4359. ac_cpp='$CPP $CPPFLAGS'
  4360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4363. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4364. # find the maximum length of command line arguments
  4365. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4366. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  4367. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4368. echo $ECHO_N "(cached) $ECHO_C" >&6
  4369. else
  4370. i=0
  4371. teststring="ABCD"
  4372. case $build_os in
  4373. msdosdjgpp*)
  4374. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4375. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4376. # during glob expansion). Even if it were fixed, the result of this
  4377. # check would be larger than it should be.
  4378. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4379. ;;
  4380. gnu*)
  4381. # Under GNU Hurd, this test is not required because there is
  4382. # no limit to the length of command line arguments.
  4383. # Libtool will interpret -1 as no limit whatsoever
  4384. lt_cv_sys_max_cmd_len=-1;
  4385. ;;
  4386. cygwin* | mingw*)
  4387. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4388. # about 5 minutes as the teststring grows exponentially.
  4389. # Worse, since 9x/ME are not pre-emptively multitasking,
  4390. # you end up with a "frozen" computer, even though with patience
  4391. # the test eventually succeeds (with a max line length of 256k).
  4392. # Instead, let's just punt: use the minimum linelength reported by
  4393. # all of the supported platforms: 8192 (on NT/2K/XP).
  4394. lt_cv_sys_max_cmd_len=8192;
  4395. ;;
  4396. amigaos*)
  4397. # On AmigaOS with pdksh, this test takes hours, literally.
  4398. # So we just punt and use a minimum line length of 8192.
  4399. lt_cv_sys_max_cmd_len=8192;
  4400. ;;
  4401. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4402. # This has been around since 386BSD, at least. Likely further.
  4403. if test -x /sbin/sysctl; then
  4404. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4405. elif test -x /usr/sbin/sysctl; then
  4406. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4407. else
  4408. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4409. fi
  4410. # And add a safety zone
  4411. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4412. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4413. ;;
  4414. interix*)
  4415. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4416. lt_cv_sys_max_cmd_len=196608
  4417. ;;
  4418. osf*)
  4419. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4420. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4421. # nice to cause kernel panics so lets avoid the loop below.
  4422. # First set a reasonable default.
  4423. lt_cv_sys_max_cmd_len=16384
  4424. #
  4425. if test -x /sbin/sysconfig; then
  4426. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4427. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4428. esac
  4429. fi
  4430. ;;
  4431. sco3.2v5*)
  4432. lt_cv_sys_max_cmd_len=102400
  4433. ;;
  4434. sysv5* | sco5v6* | sysv4.2uw2*)
  4435. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4436. if test -n "$kargmax"; then
  4437. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4438. else
  4439. lt_cv_sys_max_cmd_len=32768
  4440. fi
  4441. ;;
  4442. *)
  4443. # If test is not a shell built-in, we'll probably end up computing a
  4444. # maximum length that is only half of the actual maximum length, but
  4445. # we can't tell.
  4446. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4447. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  4448. = "XX$teststring") >/dev/null 2>&1 &&
  4449. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4450. lt_cv_sys_max_cmd_len=$new_result &&
  4451. test $i != 17 # 1/2 MB should be enough
  4452. do
  4453. i=`expr $i + 1`
  4454. teststring=$teststring$teststring
  4455. done
  4456. teststring=
  4457. # Add a significant safety factor because C++ compilers can tack on massive
  4458. # amounts of additional arguments before passing them to the linker.
  4459. # It appears as though 1/2 is a usable value.
  4460. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4461. ;;
  4462. esac
  4463. fi
  4464. if test -n $lt_cv_sys_max_cmd_len ; then
  4465. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4466. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  4467. else
  4468. echo "$as_me:$LINENO: result: none" >&5
  4469. echo "${ECHO_T}none" >&6
  4470. fi
  4471. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4472. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4473. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  4474. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4475. echo $ECHO_N "(cached) $ECHO_C" >&6
  4476. else
  4477. # These are sane defaults that work on at least a few old systems.
  4478. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4479. # Character class describing NM global symbol codes.
  4480. symcode='[BCDEGRST]'
  4481. # Regexp to match symbols that can be accessed directly from C.
  4482. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4483. # Transform an extracted symbol line into a proper C declaration
  4484. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4485. # Transform an extracted symbol line into symbol name and symbol address
  4486. 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'"
  4487. # Define system-specific variables.
  4488. case $host_os in
  4489. aix*)
  4490. symcode='[BCDT]'
  4491. ;;
  4492. cygwin* | mingw* | pw32*)
  4493. symcode='[ABCDGISTW]'
  4494. ;;
  4495. hpux*) # Its linker distinguishes data from code symbols
  4496. if test "$host_cpu" = ia64; then
  4497. symcode='[ABCDEGRST]'
  4498. fi
  4499. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4500. 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'"
  4501. ;;
  4502. linux*)
  4503. if test "$host_cpu" = ia64; then
  4504. symcode='[ABCDGIRSTW]'
  4505. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4506. 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'"
  4507. fi
  4508. ;;
  4509. irix* | nonstopux*)
  4510. symcode='[BCDEGRST]'
  4511. ;;
  4512. osf*)
  4513. symcode='[BCDEGQRST]'
  4514. ;;
  4515. solaris*)
  4516. symcode='[BDRT]'
  4517. ;;
  4518. sco3.2v5*)
  4519. symcode='[DT]'
  4520. ;;
  4521. sysv4.2uw2*)
  4522. symcode='[DT]'
  4523. ;;
  4524. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4525. symcode='[ABDT]'
  4526. ;;
  4527. sysv4)
  4528. symcode='[DFNSTU]'
  4529. ;;
  4530. esac
  4531. # Handle CRLF in mingw tool chain
  4532. opt_cr=
  4533. case $build_os in
  4534. mingw*)
  4535. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4536. ;;
  4537. esac
  4538. # If we're using GNU nm, then use its standard symbol codes.
  4539. case `$NM -V 2>&1` in
  4540. *GNU* | *'with BFD'*)
  4541. symcode='[ABCDGIRSTW]' ;;
  4542. esac
  4543. # Try without a prefix undercore, then with it.
  4544. for ac_symprfx in "" "_"; do
  4545. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4546. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4547. # Write the raw and C identifiers.
  4548. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4549. # Check to see that the pipe works correctly.
  4550. pipe_works=no
  4551. rm -f conftest*
  4552. cat > conftest.$ac_ext <<EOF
  4553. #ifdef __cplusplus
  4554. extern "C" {
  4555. #endif
  4556. char nm_test_var;
  4557. void nm_test_func(){}
  4558. #ifdef __cplusplus
  4559. }
  4560. #endif
  4561. int main(){nm_test_var='a';nm_test_func();return(0);}
  4562. EOF
  4563. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4564. (eval $ac_compile) 2>&5
  4565. ac_status=$?
  4566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4567. (exit $ac_status); }; then
  4568. # Now try to grab the symbols.
  4569. nlist=conftest.nm
  4570. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4571. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4572. ac_status=$?
  4573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4574. (exit $ac_status); } && test -s "$nlist"; then
  4575. # Try sorting and uniquifying the output.
  4576. if sort "$nlist" | uniq > "$nlist"T; then
  4577. mv -f "$nlist"T "$nlist"
  4578. else
  4579. rm -f "$nlist"T
  4580. fi
  4581. # Make sure that we snagged all the symbols we need.
  4582. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4583. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4584. cat <<EOF > conftest.$ac_ext
  4585. #ifdef __cplusplus
  4586. extern "C" {
  4587. #endif
  4588. EOF
  4589. # Now generate the symbol file.
  4590. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4591. cat <<EOF >> conftest.$ac_ext
  4592. #if defined (__STDC__) && __STDC__
  4593. # define lt_ptr_t void *
  4594. #else
  4595. # define lt_ptr_t char *
  4596. # define const
  4597. #endif
  4598. /* The mapping between symbol names and symbols. */
  4599. const struct {
  4600. const char *name;
  4601. lt_ptr_t address;
  4602. }
  4603. lt_preloaded_symbols[] =
  4604. {
  4605. EOF
  4606. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4607. cat <<\EOF >> conftest.$ac_ext
  4608. {0, (lt_ptr_t) 0}
  4609. };
  4610. #ifdef __cplusplus
  4611. }
  4612. #endif
  4613. EOF
  4614. # Now try linking the two files.
  4615. mv conftest.$ac_objext conftstm.$ac_objext
  4616. lt_save_LIBS="$LIBS"
  4617. lt_save_CFLAGS="$CFLAGS"
  4618. LIBS="conftstm.$ac_objext"
  4619. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4620. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4621. (eval $ac_link) 2>&5
  4622. ac_status=$?
  4623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4624. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4625. pipe_works=yes
  4626. fi
  4627. LIBS="$lt_save_LIBS"
  4628. CFLAGS="$lt_save_CFLAGS"
  4629. else
  4630. echo "cannot find nm_test_func in $nlist" >&5
  4631. fi
  4632. else
  4633. echo "cannot find nm_test_var in $nlist" >&5
  4634. fi
  4635. else
  4636. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4637. fi
  4638. else
  4639. echo "$progname: failed program was:" >&5
  4640. cat conftest.$ac_ext >&5
  4641. fi
  4642. rm -f conftest* conftst*
  4643. # Do not use the global_symbol_pipe unless it works.
  4644. if test "$pipe_works" = yes; then
  4645. break
  4646. else
  4647. lt_cv_sys_global_symbol_pipe=
  4648. fi
  4649. done
  4650. fi
  4651. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4652. lt_cv_sys_global_symbol_to_cdecl=
  4653. fi
  4654. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4655. echo "$as_me:$LINENO: result: failed" >&5
  4656. echo "${ECHO_T}failed" >&6
  4657. else
  4658. echo "$as_me:$LINENO: result: ok" >&5
  4659. echo "${ECHO_T}ok" >&6
  4660. fi
  4661. echo "$as_me:$LINENO: checking for objdir" >&5
  4662. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  4663. if test "${lt_cv_objdir+set}" = set; then
  4664. echo $ECHO_N "(cached) $ECHO_C" >&6
  4665. else
  4666. rm -f .libs 2>/dev/null
  4667. mkdir .libs 2>/dev/null
  4668. if test -d .libs; then
  4669. lt_cv_objdir=.libs
  4670. else
  4671. # MS-DOS does not allow filenames that begin with a dot.
  4672. lt_cv_objdir=_libs
  4673. fi
  4674. rmdir .libs 2>/dev/null
  4675. fi
  4676. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  4677. echo "${ECHO_T}$lt_cv_objdir" >&6
  4678. objdir=$lt_cv_objdir
  4679. case $host_os in
  4680. aix3*)
  4681. # AIX sometimes has problems with the GCC collect2 program. For some
  4682. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4683. # vanish in a puff of smoke.
  4684. if test "X${COLLECT_NAMES+set}" != Xset; then
  4685. COLLECT_NAMES=
  4686. export COLLECT_NAMES
  4687. fi
  4688. ;;
  4689. esac
  4690. # Sed substitution that helps us do robust quoting. It backslashifies
  4691. # metacharacters that are still active within double-quoted strings.
  4692. Xsed='sed -e 1s/^X//'
  4693. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  4694. # Same as above, but do not quote variable references.
  4695. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  4696. # Sed substitution to delay expansion of an escaped shell variable in a
  4697. # double_quote_subst'ed string.
  4698. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4699. # Sed substitution to avoid accidental globbing in evaled expressions
  4700. no_glob_subst='s/\*/\\\*/g'
  4701. # Constants:
  4702. rm="rm -f"
  4703. # Global variables:
  4704. default_ofile=libtool
  4705. can_build_shared=yes
  4706. # All known linkers require a `.a' archive for static linking (except MSVC,
  4707. # which needs '.lib').
  4708. libext=a
  4709. ltmain="$ac_aux_dir/ltmain.sh"
  4710. ofile="$default_ofile"
  4711. with_gnu_ld="$lt_cv_prog_gnu_ld"
  4712. if test -n "$ac_tool_prefix"; then
  4713. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4714. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4715. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4716. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4717. if test "${ac_cv_prog_AR+set}" = set; then
  4718. echo $ECHO_N "(cached) $ECHO_C" >&6
  4719. else
  4720. if test -n "$AR"; then
  4721. ac_cv_prog_AR="$AR" # Let the user override the test.
  4722. else
  4723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4724. for as_dir in $PATH
  4725. do
  4726. IFS=$as_save_IFS
  4727. test -z "$as_dir" && as_dir=.
  4728. for ac_exec_ext in '' $ac_executable_extensions; do
  4729. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4730. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4731. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4732. break 2
  4733. fi
  4734. done
  4735. done
  4736. fi
  4737. fi
  4738. AR=$ac_cv_prog_AR
  4739. if test -n "$AR"; then
  4740. echo "$as_me:$LINENO: result: $AR" >&5
  4741. echo "${ECHO_T}$AR" >&6
  4742. else
  4743. echo "$as_me:$LINENO: result: no" >&5
  4744. echo "${ECHO_T}no" >&6
  4745. fi
  4746. fi
  4747. if test -z "$ac_cv_prog_AR"; then
  4748. ac_ct_AR=$AR
  4749. # Extract the first word of "ar", so it can be a program name with args.
  4750. set dummy ar; ac_word=$2
  4751. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4752. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4753. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4754. echo $ECHO_N "(cached) $ECHO_C" >&6
  4755. else
  4756. if test -n "$ac_ct_AR"; then
  4757. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4758. else
  4759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4760. for as_dir in $PATH
  4761. do
  4762. IFS=$as_save_IFS
  4763. test -z "$as_dir" && as_dir=.
  4764. for ac_exec_ext in '' $ac_executable_extensions; do
  4765. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4766. ac_cv_prog_ac_ct_AR="ar"
  4767. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4768. break 2
  4769. fi
  4770. done
  4771. done
  4772. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  4773. fi
  4774. fi
  4775. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4776. if test -n "$ac_ct_AR"; then
  4777. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4778. echo "${ECHO_T}$ac_ct_AR" >&6
  4779. else
  4780. echo "$as_me:$LINENO: result: no" >&5
  4781. echo "${ECHO_T}no" >&6
  4782. fi
  4783. AR=$ac_ct_AR
  4784. else
  4785. AR="$ac_cv_prog_AR"
  4786. fi
  4787. if test -n "$ac_tool_prefix"; then
  4788. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4789. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4790. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4792. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4793. echo $ECHO_N "(cached) $ECHO_C" >&6
  4794. else
  4795. if test -n "$RANLIB"; then
  4796. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4797. else
  4798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4799. for as_dir in $PATH
  4800. do
  4801. IFS=$as_save_IFS
  4802. test -z "$as_dir" && as_dir=.
  4803. for ac_exec_ext in '' $ac_executable_extensions; do
  4804. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4805. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4806. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4807. break 2
  4808. fi
  4809. done
  4810. done
  4811. fi
  4812. fi
  4813. RANLIB=$ac_cv_prog_RANLIB
  4814. if test -n "$RANLIB"; then
  4815. echo "$as_me:$LINENO: result: $RANLIB" >&5
  4816. echo "${ECHO_T}$RANLIB" >&6
  4817. else
  4818. echo "$as_me:$LINENO: result: no" >&5
  4819. echo "${ECHO_T}no" >&6
  4820. fi
  4821. fi
  4822. if test -z "$ac_cv_prog_RANLIB"; then
  4823. ac_ct_RANLIB=$RANLIB
  4824. # Extract the first word of "ranlib", so it can be a program name with args.
  4825. set dummy ranlib; ac_word=$2
  4826. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4827. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4828. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4829. echo $ECHO_N "(cached) $ECHO_C" >&6
  4830. else
  4831. if test -n "$ac_ct_RANLIB"; then
  4832. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4833. else
  4834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4835. for as_dir in $PATH
  4836. do
  4837. IFS=$as_save_IFS
  4838. test -z "$as_dir" && as_dir=.
  4839. for ac_exec_ext in '' $ac_executable_extensions; do
  4840. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4841. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4842. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4843. break 2
  4844. fi
  4845. done
  4846. done
  4847. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  4848. fi
  4849. fi
  4850. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4851. if test -n "$ac_ct_RANLIB"; then
  4852. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4853. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  4854. else
  4855. echo "$as_me:$LINENO: result: no" >&5
  4856. echo "${ECHO_T}no" >&6
  4857. fi
  4858. RANLIB=$ac_ct_RANLIB
  4859. else
  4860. RANLIB="$ac_cv_prog_RANLIB"
  4861. fi
  4862. if test -n "$ac_tool_prefix"; then
  4863. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4864. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4865. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4866. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4867. if test "${ac_cv_prog_STRIP+set}" = set; then
  4868. echo $ECHO_N "(cached) $ECHO_C" >&6
  4869. else
  4870. if test -n "$STRIP"; then
  4871. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4872. else
  4873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4874. for as_dir in $PATH
  4875. do
  4876. IFS=$as_save_IFS
  4877. test -z "$as_dir" && as_dir=.
  4878. for ac_exec_ext in '' $ac_executable_extensions; do
  4879. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4880. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4881. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4882. break 2
  4883. fi
  4884. done
  4885. done
  4886. fi
  4887. fi
  4888. STRIP=$ac_cv_prog_STRIP
  4889. if test -n "$STRIP"; then
  4890. echo "$as_me:$LINENO: result: $STRIP" >&5
  4891. echo "${ECHO_T}$STRIP" >&6
  4892. else
  4893. echo "$as_me:$LINENO: result: no" >&5
  4894. echo "${ECHO_T}no" >&6
  4895. fi
  4896. fi
  4897. if test -z "$ac_cv_prog_STRIP"; then
  4898. ac_ct_STRIP=$STRIP
  4899. # Extract the first word of "strip", so it can be a program name with args.
  4900. set dummy strip; ac_word=$2
  4901. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4902. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4903. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4904. echo $ECHO_N "(cached) $ECHO_C" >&6
  4905. else
  4906. if test -n "$ac_ct_STRIP"; then
  4907. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4908. else
  4909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4910. for as_dir in $PATH
  4911. do
  4912. IFS=$as_save_IFS
  4913. test -z "$as_dir" && as_dir=.
  4914. for ac_exec_ext in '' $ac_executable_extensions; do
  4915. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4916. ac_cv_prog_ac_ct_STRIP="strip"
  4917. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4918. break 2
  4919. fi
  4920. done
  4921. done
  4922. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  4923. fi
  4924. fi
  4925. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4926. if test -n "$ac_ct_STRIP"; then
  4927. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4928. echo "${ECHO_T}$ac_ct_STRIP" >&6
  4929. else
  4930. echo "$as_me:$LINENO: result: no" >&5
  4931. echo "${ECHO_T}no" >&6
  4932. fi
  4933. STRIP=$ac_ct_STRIP
  4934. else
  4935. STRIP="$ac_cv_prog_STRIP"
  4936. fi
  4937. old_CC="$CC"
  4938. old_CFLAGS="$CFLAGS"
  4939. # Set sane defaults for various variables
  4940. test -z "$AR" && AR=ar
  4941. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4942. test -z "$AS" && AS=as
  4943. test -z "$CC" && CC=cc
  4944. test -z "$LTCC" && LTCC=$CC
  4945. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  4946. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4947. test -z "$LD" && LD=ld
  4948. test -z "$LN_S" && LN_S="ln -s"
  4949. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  4950. test -z "$NM" && NM=nm
  4951. test -z "$SED" && SED=sed
  4952. test -z "$OBJDUMP" && OBJDUMP=objdump
  4953. test -z "$RANLIB" && RANLIB=:
  4954. test -z "$STRIP" && STRIP=:
  4955. test -z "$ac_objext" && ac_objext=o
  4956. # Determine commands to create old-style static archives.
  4957. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  4958. old_postinstall_cmds='chmod 644 $oldlib'
  4959. old_postuninstall_cmds=
  4960. if test -n "$RANLIB"; then
  4961. case $host_os in
  4962. openbsd*)
  4963. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4964. ;;
  4965. *)
  4966. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4967. ;;
  4968. esac
  4969. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4970. fi
  4971. for cc_temp in $compiler""; do
  4972. case $cc_temp in
  4973. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  4974. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  4975. \-*) ;;
  4976. *) break;;
  4977. esac
  4978. done
  4979. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  4980. # Only perform the check for file, if the check method requires it
  4981. case $deplibs_check_method in
  4982. file_magic*)
  4983. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  4984. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  4985. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  4986. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4987. echo $ECHO_N "(cached) $ECHO_C" >&6
  4988. else
  4989. case $MAGIC_CMD in
  4990. [\\/*] | ?:[\\/]*)
  4991. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4992. ;;
  4993. *)
  4994. lt_save_MAGIC_CMD="$MAGIC_CMD"
  4995. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4996. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  4997. for ac_dir in $ac_dummy; do
  4998. IFS="$lt_save_ifs"
  4999. test -z "$ac_dir" && ac_dir=.
  5000. if test -f $ac_dir/${ac_tool_prefix}file; then
  5001. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5002. if test -n "$file_magic_test_file"; then
  5003. case $deplibs_check_method in
  5004. "file_magic "*)
  5005. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5006. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5007. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5008. $EGREP "$file_magic_regex" > /dev/null; then
  5009. :
  5010. else
  5011. cat <<EOF 1>&2
  5012. *** Warning: the command libtool uses to detect shared libraries,
  5013. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5014. *** The result is that libtool may fail to recognize shared libraries
  5015. *** as such. This will affect the creation of libtool libraries that
  5016. *** depend on shared libraries, but programs linked with such libtool
  5017. *** libraries will work regardless of this problem. Nevertheless, you
  5018. *** may want to report the problem to your system manager and/or to
  5019. *** bug-libtool@gnu.org
  5020. EOF
  5021. fi ;;
  5022. esac
  5023. fi
  5024. break
  5025. fi
  5026. done
  5027. IFS="$lt_save_ifs"
  5028. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5029. ;;
  5030. esac
  5031. fi
  5032. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5033. if test -n "$MAGIC_CMD"; then
  5034. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5035. echo "${ECHO_T}$MAGIC_CMD" >&6
  5036. else
  5037. echo "$as_me:$LINENO: result: no" >&5
  5038. echo "${ECHO_T}no" >&6
  5039. fi
  5040. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5041. if test -n "$ac_tool_prefix"; then
  5042. echo "$as_me:$LINENO: checking for file" >&5
  5043. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5044. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5045. echo $ECHO_N "(cached) $ECHO_C" >&6
  5046. else
  5047. case $MAGIC_CMD in
  5048. [\\/*] | ?:[\\/]*)
  5049. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5050. ;;
  5051. *)
  5052. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5053. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5054. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5055. for ac_dir in $ac_dummy; do
  5056. IFS="$lt_save_ifs"
  5057. test -z "$ac_dir" && ac_dir=.
  5058. if test -f $ac_dir/file; then
  5059. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5060. if test -n "$file_magic_test_file"; then
  5061. case $deplibs_check_method in
  5062. "file_magic "*)
  5063. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5064. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5065. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5066. $EGREP "$file_magic_regex" > /dev/null; then
  5067. :
  5068. else
  5069. cat <<EOF 1>&2
  5070. *** Warning: the command libtool uses to detect shared libraries,
  5071. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5072. *** The result is that libtool may fail to recognize shared libraries
  5073. *** as such. This will affect the creation of libtool libraries that
  5074. *** depend on shared libraries, but programs linked with such libtool
  5075. *** libraries will work regardless of this problem. Nevertheless, you
  5076. *** may want to report the problem to your system manager and/or to
  5077. *** bug-libtool@gnu.org
  5078. EOF
  5079. fi ;;
  5080. esac
  5081. fi
  5082. break
  5083. fi
  5084. done
  5085. IFS="$lt_save_ifs"
  5086. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5087. ;;
  5088. esac
  5089. fi
  5090. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5091. if test -n "$MAGIC_CMD"; then
  5092. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5093. echo "${ECHO_T}$MAGIC_CMD" >&6
  5094. else
  5095. echo "$as_me:$LINENO: result: no" >&5
  5096. echo "${ECHO_T}no" >&6
  5097. fi
  5098. else
  5099. MAGIC_CMD=:
  5100. fi
  5101. fi
  5102. fi
  5103. ;;
  5104. esac
  5105. enable_dlopen=no
  5106. enable_win32_dll=no
  5107. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5108. if test "${enable_libtool_lock+set}" = set; then
  5109. enableval="$enable_libtool_lock"
  5110. fi;
  5111. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5112. # Check whether --with-pic or --without-pic was given.
  5113. if test "${with_pic+set}" = set; then
  5114. withval="$with_pic"
  5115. pic_mode="$withval"
  5116. else
  5117. pic_mode=default
  5118. fi;
  5119. test -z "$pic_mode" && pic_mode=default
  5120. # Use C for the default configuration in the libtool script
  5121. tagname=
  5122. lt_save_CC="$CC"
  5123. ac_ext=c
  5124. ac_cpp='$CPP $CPPFLAGS'
  5125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5128. # Source file extension for C test sources.
  5129. ac_ext=c
  5130. # Object file extension for compiled C test sources.
  5131. objext=o
  5132. objext=$objext
  5133. # Code to be used in simple compile tests
  5134. lt_simple_compile_test_code="int some_variable = 0;\n"
  5135. # Code to be used in simple link tests
  5136. lt_simple_link_test_code='int main(){return(0);}\n'
  5137. # If no C compiler was specified, use CC.
  5138. LTCC=${LTCC-"$CC"}
  5139. # If no C compiler flags were specified, use CFLAGS.
  5140. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5141. # Allow CC to be a program name with arguments.
  5142. compiler=$CC
  5143. # save warnings/boilerplate of simple test code
  5144. ac_outfile=conftest.$ac_objext
  5145. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5146. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5147. _lt_compiler_boilerplate=`cat conftest.err`
  5148. $rm conftest*
  5149. ac_outfile=conftest.$ac_objext
  5150. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5151. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5152. _lt_linker_boilerplate=`cat conftest.err`
  5153. $rm conftest*
  5154. lt_prog_compiler_no_builtin_flag=
  5155. if test "$GCC" = yes; then
  5156. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5157. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5158. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5159. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5160. echo $ECHO_N "(cached) $ECHO_C" >&6
  5161. else
  5162. lt_cv_prog_compiler_rtti_exceptions=no
  5163. ac_outfile=conftest.$ac_objext
  5164. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5165. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5166. # Insert the option either (1) after the last *FLAGS variable, or
  5167. # (2) before a word containing "conftest.", or (3) at the end.
  5168. # Note that $ac_compile itself does not contain backslashes and begins
  5169. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5170. # The option is referenced via a variable to avoid confusing sed.
  5171. lt_compile=`echo "$ac_compile" | $SED \
  5172. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5173. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5174. -e 's:$: $lt_compiler_flag:'`
  5175. (eval echo "\"\$as_me:5710: $lt_compile\"" >&5)
  5176. (eval "$lt_compile" 2>conftest.err)
  5177. ac_status=$?
  5178. cat conftest.err >&5
  5179. echo "$as_me:5714: \$? = $ac_status" >&5
  5180. if (exit $ac_status) && test -s "$ac_outfile"; then
  5181. # The compiler can only warn and ignore the option if not recognized
  5182. # So say no if there are warnings other than the usual output.
  5183. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5184. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5185. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5186. lt_cv_prog_compiler_rtti_exceptions=yes
  5187. fi
  5188. fi
  5189. $rm conftest*
  5190. fi
  5191. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5192. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5193. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5194. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5195. else
  5196. :
  5197. fi
  5198. fi
  5199. lt_prog_compiler_wl=
  5200. lt_prog_compiler_pic=
  5201. lt_prog_compiler_static=
  5202. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5203. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5204. if test "$GCC" = yes; then
  5205. lt_prog_compiler_wl='-Wl,'
  5206. lt_prog_compiler_static='-static'
  5207. case $host_os in
  5208. aix*)
  5209. # All AIX code is PIC.
  5210. if test "$host_cpu" = ia64; then
  5211. # AIX 5 now supports IA64 processor
  5212. lt_prog_compiler_static='-Bstatic'
  5213. fi
  5214. ;;
  5215. amigaos*)
  5216. # FIXME: we need at least 68020 code to build shared libraries, but
  5217. # adding the `-m68020' flag to GCC prevents building anything better,
  5218. # like `-m68040'.
  5219. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5220. ;;
  5221. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5222. # PIC is the default for these OSes.
  5223. ;;
  5224. mingw* | pw32* | os2*)
  5225. # This hack is so that the source file can tell whether it is being
  5226. # built for inclusion in a dll (and should export symbols for example).
  5227. lt_prog_compiler_pic='-DDLL_EXPORT'
  5228. ;;
  5229. darwin* | rhapsody*)
  5230. # PIC is the default on this platform
  5231. # Common symbols not allowed in MH_DYLIB files
  5232. lt_prog_compiler_pic='-fno-common'
  5233. ;;
  5234. interix3*)
  5235. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5236. # Instead, we relocate shared libraries at runtime.
  5237. ;;
  5238. msdosdjgpp*)
  5239. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5240. # on systems that don't support them.
  5241. lt_prog_compiler_can_build_shared=no
  5242. enable_shared=no
  5243. ;;
  5244. sysv4*MP*)
  5245. if test -d /usr/nec; then
  5246. lt_prog_compiler_pic=-Kconform_pic
  5247. fi
  5248. ;;
  5249. hpux*)
  5250. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5251. # not for PA HP-UX.
  5252. case $host_cpu in
  5253. hppa*64*|ia64*)
  5254. # +Z the default
  5255. ;;
  5256. *)
  5257. lt_prog_compiler_pic='-fPIC'
  5258. ;;
  5259. esac
  5260. ;;
  5261. *)
  5262. lt_prog_compiler_pic='-fPIC'
  5263. ;;
  5264. esac
  5265. else
  5266. # PORTME Check for flag to pass linker flags through the system compiler.
  5267. case $host_os in
  5268. aix*)
  5269. lt_prog_compiler_wl='-Wl,'
  5270. if test "$host_cpu" = ia64; then
  5271. # AIX 5 now supports IA64 processor
  5272. lt_prog_compiler_static='-Bstatic'
  5273. else
  5274. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5275. fi
  5276. ;;
  5277. darwin*)
  5278. # PIC is the default on this platform
  5279. # Common symbols not allowed in MH_DYLIB files
  5280. case $cc_basename in
  5281. xlc*)
  5282. lt_prog_compiler_pic='-qnocommon'
  5283. lt_prog_compiler_wl='-Wl,'
  5284. ;;
  5285. esac
  5286. ;;
  5287. mingw* | pw32* | os2*)
  5288. # This hack is so that the source file can tell whether it is being
  5289. # built for inclusion in a dll (and should export symbols for example).
  5290. lt_prog_compiler_pic='-DDLL_EXPORT'
  5291. ;;
  5292. hpux9* | hpux10* | hpux11*)
  5293. lt_prog_compiler_wl='-Wl,'
  5294. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5295. # not for PA HP-UX.
  5296. case $host_cpu in
  5297. hppa*64*|ia64*)
  5298. # +Z the default
  5299. ;;
  5300. *)
  5301. lt_prog_compiler_pic='+Z'
  5302. ;;
  5303. esac
  5304. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5305. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5306. ;;
  5307. irix5* | irix6* | nonstopux*)
  5308. lt_prog_compiler_wl='-Wl,'
  5309. # PIC (with -KPIC) is the default.
  5310. lt_prog_compiler_static='-non_shared'
  5311. ;;
  5312. newsos6)
  5313. lt_prog_compiler_pic='-KPIC'
  5314. lt_prog_compiler_static='-Bstatic'
  5315. ;;
  5316. linux*)
  5317. case $cc_basename in
  5318. icc* | ecc*)
  5319. lt_prog_compiler_wl='-Wl,'
  5320. lt_prog_compiler_pic='-KPIC'
  5321. lt_prog_compiler_static='-static'
  5322. ;;
  5323. pgcc* | pgf77* | pgf90* | pgf95*)
  5324. # Portland Group compilers (*not* the Pentium gcc compiler,
  5325. # which looks to be a dead project)
  5326. lt_prog_compiler_wl='-Wl,'
  5327. lt_prog_compiler_pic='-fpic'
  5328. lt_prog_compiler_static='-Bstatic'
  5329. ;;
  5330. ccc*)
  5331. lt_prog_compiler_wl='-Wl,'
  5332. # All Alpha code is PIC.
  5333. lt_prog_compiler_static='-non_shared'
  5334. ;;
  5335. esac
  5336. ;;
  5337. osf3* | osf4* | osf5*)
  5338. lt_prog_compiler_wl='-Wl,'
  5339. # All OSF/1 code is PIC.
  5340. lt_prog_compiler_static='-non_shared'
  5341. ;;
  5342. solaris*)
  5343. lt_prog_compiler_pic='-KPIC'
  5344. lt_prog_compiler_static='-Bstatic'
  5345. case $cc_basename in
  5346. f77* | f90* | f95*)
  5347. lt_prog_compiler_wl='-Qoption ld ';;
  5348. *)
  5349. lt_prog_compiler_wl='-Wl,';;
  5350. esac
  5351. ;;
  5352. sunos4*)
  5353. lt_prog_compiler_wl='-Qoption ld '
  5354. lt_prog_compiler_pic='-PIC'
  5355. lt_prog_compiler_static='-Bstatic'
  5356. ;;
  5357. sysv4 | sysv4.2uw2* | sysv4.3*)
  5358. lt_prog_compiler_wl='-Wl,'
  5359. lt_prog_compiler_pic='-KPIC'
  5360. lt_prog_compiler_static='-Bstatic'
  5361. ;;
  5362. sysv4*MP*)
  5363. if test -d /usr/nec ;then
  5364. lt_prog_compiler_pic='-Kconform_pic'
  5365. lt_prog_compiler_static='-Bstatic'
  5366. fi
  5367. ;;
  5368. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5369. lt_prog_compiler_wl='-Wl,'
  5370. lt_prog_compiler_pic='-KPIC'
  5371. lt_prog_compiler_static='-Bstatic'
  5372. ;;
  5373. unicos*)
  5374. lt_prog_compiler_wl='-Wl,'
  5375. lt_prog_compiler_can_build_shared=no
  5376. ;;
  5377. uts4*)
  5378. lt_prog_compiler_pic='-pic'
  5379. lt_prog_compiler_static='-Bstatic'
  5380. ;;
  5381. *)
  5382. lt_prog_compiler_can_build_shared=no
  5383. ;;
  5384. esac
  5385. fi
  5386. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5387. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  5388. #
  5389. # Check to make sure the PIC flag actually works.
  5390. #
  5391. if test -n "$lt_prog_compiler_pic"; then
  5392. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5393. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  5394. if test "${lt_prog_compiler_pic_works+set}" = set; then
  5395. echo $ECHO_N "(cached) $ECHO_C" >&6
  5396. else
  5397. lt_prog_compiler_pic_works=no
  5398. ac_outfile=conftest.$ac_objext
  5399. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5400. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5401. # Insert the option either (1) after the last *FLAGS variable, or
  5402. # (2) before a word containing "conftest.", or (3) at the end.
  5403. # Note that $ac_compile itself does not contain backslashes and begins
  5404. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5405. # The option is referenced via a variable to avoid confusing sed.
  5406. lt_compile=`echo "$ac_compile" | $SED \
  5407. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5408. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5409. -e 's:$: $lt_compiler_flag:'`
  5410. (eval echo "\"\$as_me:5978: $lt_compile\"" >&5)
  5411. (eval "$lt_compile" 2>conftest.err)
  5412. ac_status=$?
  5413. cat conftest.err >&5
  5414. echo "$as_me:5982: \$? = $ac_status" >&5
  5415. if (exit $ac_status) && test -s "$ac_outfile"; then
  5416. # The compiler can only warn and ignore the option if not recognized
  5417. # So say no if there are warnings other than the usual output.
  5418. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5419. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5420. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5421. lt_prog_compiler_pic_works=yes
  5422. fi
  5423. fi
  5424. $rm conftest*
  5425. fi
  5426. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  5427. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  5428. if test x"$lt_prog_compiler_pic_works" = xyes; then
  5429. case $lt_prog_compiler_pic in
  5430. "" | " "*) ;;
  5431. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  5432. esac
  5433. else
  5434. lt_prog_compiler_pic=
  5435. lt_prog_compiler_can_build_shared=no
  5436. fi
  5437. fi
  5438. case $host_os in
  5439. # For platforms which do not support PIC, -DPIC is meaningless:
  5440. *djgpp*)
  5441. lt_prog_compiler_pic=
  5442. ;;
  5443. *)
  5444. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5445. ;;
  5446. esac
  5447. #
  5448. # Check to make sure the static flag actually works.
  5449. #
  5450. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  5451. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  5452. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  5453. if test "${lt_prog_compiler_static_works+set}" = set; then
  5454. echo $ECHO_N "(cached) $ECHO_C" >&6
  5455. else
  5456. lt_prog_compiler_static_works=no
  5457. save_LDFLAGS="$LDFLAGS"
  5458. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  5459. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5460. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5461. # The linker can only warn and ignore the option if not recognized
  5462. # So say no if there are warnings
  5463. if test -s conftest.err; then
  5464. # Append any errors to the config.log.
  5465. cat conftest.err 1>&5
  5466. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  5467. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5468. if diff conftest.exp conftest.er2 >/dev/null; then
  5469. lt_prog_compiler_static_works=yes
  5470. fi
  5471. else
  5472. lt_prog_compiler_static_works=yes
  5473. fi
  5474. fi
  5475. $rm conftest*
  5476. LDFLAGS="$save_LDFLAGS"
  5477. fi
  5478. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  5479. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  5480. if test x"$lt_prog_compiler_static_works" = xyes; then
  5481. :
  5482. else
  5483. lt_prog_compiler_static=
  5484. fi
  5485. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  5486. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  5487. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  5488. echo $ECHO_N "(cached) $ECHO_C" >&6
  5489. else
  5490. lt_cv_prog_compiler_c_o=no
  5491. $rm -r conftest 2>/dev/null
  5492. mkdir conftest
  5493. cd conftest
  5494. mkdir out
  5495. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5496. lt_compiler_flag="-o out/conftest2.$ac_objext"
  5497. # Insert the option either (1) after the last *FLAGS variable, or
  5498. # (2) before a word containing "conftest.", or (3) at the end.
  5499. # Note that $ac_compile itself does not contain backslashes and begins
  5500. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5501. lt_compile=`echo "$ac_compile" | $SED \
  5502. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5503. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5504. -e 's:$: $lt_compiler_flag:'`
  5505. (eval echo "\"\$as_me:6082: $lt_compile\"" >&5)
  5506. (eval "$lt_compile" 2>out/conftest.err)
  5507. ac_status=$?
  5508. cat out/conftest.err >&5
  5509. echo "$as_me:6086: \$? = $ac_status" >&5
  5510. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5511. then
  5512. # The compiler can only warn and ignore the option if not recognized
  5513. # So say no if there are warnings
  5514. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  5515. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  5516. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5517. lt_cv_prog_compiler_c_o=yes
  5518. fi
  5519. fi
  5520. chmod u+w . 2>&5
  5521. $rm conftest*
  5522. # SGI C++ compiler will create directory out/ii_files/ for
  5523. # template instantiation
  5524. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  5525. $rm out/* && rmdir out
  5526. cd ..
  5527. rmdir conftest
  5528. $rm conftest*
  5529. fi
  5530. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  5531. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  5532. hard_links="nottested"
  5533. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  5534. # do not overwrite the value of need_locks provided by the user
  5535. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  5536. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  5537. hard_links=yes
  5538. $rm conftest*
  5539. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5540. touch conftest.a
  5541. ln conftest.a conftest.b 2>&5 || hard_links=no
  5542. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5543. echo "$as_me:$LINENO: result: $hard_links" >&5
  5544. echo "${ECHO_T}$hard_links" >&6
  5545. if test "$hard_links" = no; then
  5546. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  5547. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  5548. need_locks=warn
  5549. fi
  5550. else
  5551. need_locks=no
  5552. fi
  5553. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  5554. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  5555. runpath_var=
  5556. allow_undefined_flag=
  5557. enable_shared_with_static_runtimes=no
  5558. archive_cmds=
  5559. archive_expsym_cmds=
  5560. old_archive_From_new_cmds=
  5561. old_archive_from_expsyms_cmds=
  5562. export_dynamic_flag_spec=
  5563. whole_archive_flag_spec=
  5564. thread_safe_flag_spec=
  5565. hardcode_libdir_flag_spec=
  5566. hardcode_libdir_flag_spec_ld=
  5567. hardcode_libdir_separator=
  5568. hardcode_direct=no
  5569. hardcode_minus_L=no
  5570. hardcode_shlibpath_var=unsupported
  5571. link_all_deplibs=unknown
  5572. hardcode_automatic=no
  5573. module_cmds=
  5574. module_expsym_cmds=
  5575. always_export_symbols=no
  5576. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5577. # include_expsyms should be a list of space-separated symbols to be *always*
  5578. # included in the symbol list
  5579. include_expsyms=
  5580. # exclude_expsyms can be an extended regexp of symbols to exclude
  5581. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5582. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5583. # as well as any symbol that contains `d'.
  5584. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  5585. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5586. # platforms (ab)use it in PIC code, but their linkers get confused if
  5587. # the symbol is explicitly referenced. Since portable code cannot
  5588. # rely on this symbol name, it's probably fine to never include it in
  5589. # preloaded symbol tables.
  5590. extract_expsyms_cmds=
  5591. # Just being paranoid about ensuring that cc_basename is set.
  5592. for cc_temp in $compiler""; do
  5593. case $cc_temp in
  5594. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5595. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5596. \-*) ;;
  5597. *) break;;
  5598. esac
  5599. done
  5600. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5601. case $host_os in
  5602. cygwin* | mingw* | pw32*)
  5603. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5604. # When not using gcc, we currently assume that we are using
  5605. # Microsoft Visual C++.
  5606. if test "$GCC" != yes; then
  5607. with_gnu_ld=no
  5608. fi
  5609. ;;
  5610. interix*)
  5611. # we just hope/assume this is gcc and not c89 (= MSVC++)
  5612. with_gnu_ld=yes
  5613. ;;
  5614. openbsd*)
  5615. with_gnu_ld=no
  5616. ;;
  5617. esac
  5618. ld_shlibs=yes
  5619. if test "$with_gnu_ld" = yes; then
  5620. # If archive_cmds runs LD, not CC, wlarc should be empty
  5621. wlarc='${wl}'
  5622. # Set some defaults for GNU ld with shared library support. These
  5623. # are reset later if shared libraries are not supported. Putting them
  5624. # here allows them to be overridden if necessary.
  5625. runpath_var=LD_RUN_PATH
  5626. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  5627. export_dynamic_flag_spec='${wl}--export-dynamic'
  5628. # ancient GNU ld didn't support --whole-archive et. al.
  5629. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5630. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5631. else
  5632. whole_archive_flag_spec=
  5633. fi
  5634. supports_anon_versioning=no
  5635. case `$LD -v 2>/dev/null` in
  5636. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  5637. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5638. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5639. *\ 2.11.*) ;; # other 2.11 versions
  5640. *) supports_anon_versioning=yes ;;
  5641. esac
  5642. # See if GNU ld supports shared libraries.
  5643. case $host_os in
  5644. aix3* | aix4* | aix5*)
  5645. # On AIX/PPC, the GNU linker is very broken
  5646. if test "$host_cpu" != ia64; then
  5647. ld_shlibs=no
  5648. cat <<EOF 1>&2
  5649. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5650. *** to be unable to reliably create shared libraries on AIX.
  5651. *** Therefore, libtool is disabling shared libraries support. If you
  5652. *** really care for shared libraries, you may want to modify your PATH
  5653. *** so that a non-GNU linker is found, and then restart.
  5654. EOF
  5655. fi
  5656. ;;
  5657. amigaos*)
  5658. 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)'
  5659. hardcode_libdir_flag_spec='-L$libdir'
  5660. hardcode_minus_L=yes
  5661. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5662. # that the semantics of dynamic libraries on AmigaOS, at least up
  5663. # to version 4, is to share data among multiple programs linked
  5664. # with the same dynamic library. Since this doesn't match the
  5665. # behavior of shared libraries on other platforms, we can't use
  5666. # them.
  5667. ld_shlibs=no
  5668. ;;
  5669. beos*)
  5670. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5671. allow_undefined_flag=unsupported
  5672. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5673. # support --undefined. This deserves some investigation. FIXME
  5674. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5675. else
  5676. ld_shlibs=no
  5677. fi
  5678. ;;
  5679. cygwin* | mingw* | pw32*)
  5680. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  5681. # as there is no search path for DLLs.
  5682. hardcode_libdir_flag_spec='-L$libdir'
  5683. allow_undefined_flag=unsupported
  5684. always_export_symbols=no
  5685. enable_shared_with_static_runtimes=yes
  5686. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  5687. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5688. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5689. # If the export-symbols file already is a .def file (1st line
  5690. # is EXPORTS), use it as is; otherwise, prepend...
  5691. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5692. cp $export_symbols $output_objdir/$soname.def;
  5693. else
  5694. echo EXPORTS > $output_objdir/$soname.def;
  5695. cat $export_symbols >> $output_objdir/$soname.def;
  5696. fi~
  5697. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5698. else
  5699. ld_shlibs=no
  5700. fi
  5701. ;;
  5702. interix3*)
  5703. hardcode_direct=no
  5704. hardcode_shlibpath_var=no
  5705. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  5706. export_dynamic_flag_spec='${wl}-E'
  5707. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5708. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5709. # default) and relocated if they conflict, which is a slow very memory
  5710. # consuming and fragmenting process. To avoid this, we pick a random,
  5711. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5712. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5713. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5714. 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'
  5715. ;;
  5716. linux*)
  5717. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5718. tmp_addflag=
  5719. case $cc_basename,$host_cpu in
  5720. pgcc*) # Portland Group C compiler
  5721. 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'
  5722. tmp_addflag=' $pic_flag'
  5723. ;;
  5724. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5725. 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'
  5726. tmp_addflag=' $pic_flag -Mnomain' ;;
  5727. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5728. tmp_addflag=' -i_dynamic' ;;
  5729. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5730. tmp_addflag=' -i_dynamic -nofor_main' ;;
  5731. ifc* | ifort*) # Intel Fortran compiler
  5732. tmp_addflag=' -nofor_main' ;;
  5733. esac
  5734. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5735. if test $supports_anon_versioning = yes; then
  5736. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  5737. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5738. $echo "local: *; };" >> $output_objdir/$libname.ver~
  5739. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5740. fi
  5741. else
  5742. ld_shlibs=no
  5743. fi
  5744. ;;
  5745. netbsd*)
  5746. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5747. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5748. wlarc=
  5749. else
  5750. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5751. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5752. fi
  5753. ;;
  5754. solaris*)
  5755. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5756. ld_shlibs=no
  5757. cat <<EOF 1>&2
  5758. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5759. *** create shared libraries on Solaris systems. Therefore, libtool
  5760. *** is disabling shared libraries support. We urge you to upgrade GNU
  5761. *** binutils to release 2.9.1 or newer. Another option is to modify
  5762. *** your PATH or compiler configuration so that the native linker is
  5763. *** used, and then restart.
  5764. EOF
  5765. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5766. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5767. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5768. else
  5769. ld_shlibs=no
  5770. fi
  5771. ;;
  5772. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5773. case `$LD -v 2>&1` in
  5774. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  5775. ld_shlibs=no
  5776. cat <<_LT_EOF 1>&2
  5777. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5778. *** reliably create shared libraries on SCO systems. Therefore, libtool
  5779. *** is disabling shared libraries support. We urge you to upgrade GNU
  5780. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5781. *** your PATH or compiler configuration so that the native linker is
  5782. *** used, and then restart.
  5783. _LT_EOF
  5784. ;;
  5785. *)
  5786. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5787. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  5788. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  5789. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  5790. else
  5791. ld_shlibs=no
  5792. fi
  5793. ;;
  5794. esac
  5795. ;;
  5796. sunos4*)
  5797. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5798. wlarc=
  5799. hardcode_direct=yes
  5800. hardcode_shlibpath_var=no
  5801. ;;
  5802. *)
  5803. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5804. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5805. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5806. else
  5807. ld_shlibs=no
  5808. fi
  5809. ;;
  5810. esac
  5811. if test "$ld_shlibs" = no; then
  5812. runpath_var=
  5813. hardcode_libdir_flag_spec=
  5814. export_dynamic_flag_spec=
  5815. whole_archive_flag_spec=
  5816. fi
  5817. else
  5818. # PORTME fill in a description of your system's linker (not GNU ld)
  5819. case $host_os in
  5820. aix3*)
  5821. allow_undefined_flag=unsupported
  5822. always_export_symbols=yes
  5823. 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'
  5824. # Note: this linker hardcodes the directories in LIBPATH if there
  5825. # are no directories specified by -L.
  5826. hardcode_minus_L=yes
  5827. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5828. # Neither direct hardcoding nor static linking is supported with a
  5829. # broken collect2.
  5830. hardcode_direct=unsupported
  5831. fi
  5832. ;;
  5833. aix4* | aix5*)
  5834. if test "$host_cpu" = ia64; then
  5835. # On IA64, the linker does run time linking by default, so we don't
  5836. # have to do anything special.
  5837. aix_use_runtimelinking=no
  5838. exp_sym_flag='-Bexport'
  5839. no_entry_flag=""
  5840. else
  5841. # If we're using GNU nm, then we don't want the "-C" option.
  5842. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5843. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5844. 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'
  5845. else
  5846. 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'
  5847. fi
  5848. aix_use_runtimelinking=no
  5849. # Test if we are trying to use run time linking or normal
  5850. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5851. # need to do runtime linking.
  5852. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  5853. for ld_flag in $LDFLAGS; do
  5854. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5855. aix_use_runtimelinking=yes
  5856. break
  5857. fi
  5858. done
  5859. ;;
  5860. esac
  5861. exp_sym_flag='-bexport'
  5862. no_entry_flag='-bnoentry'
  5863. fi
  5864. # When large executables or shared objects are built, AIX ld can
  5865. # have problems creating the table of contents. If linking a library
  5866. # or program results in "error TOC overflow" add -mminimal-toc to
  5867. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5868. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5869. archive_cmds=''
  5870. hardcode_direct=yes
  5871. hardcode_libdir_separator=':'
  5872. link_all_deplibs=yes
  5873. if test "$GCC" = yes; then
  5874. case $host_os in aix4.[012]|aix4.[012].*)
  5875. # We only want to do this on AIX 4.2 and lower, the check
  5876. # below for broken collect2 doesn't work under 4.3+
  5877. collect2name=`${CC} -print-prog-name=collect2`
  5878. if test -f "$collect2name" && \
  5879. strings "$collect2name" | grep resolve_lib_name >/dev/null
  5880. then
  5881. # We have reworked collect2
  5882. hardcode_direct=yes
  5883. else
  5884. # We have old collect2
  5885. hardcode_direct=unsupported
  5886. # It fails to find uninstalled libraries when the uninstalled
  5887. # path is not listed in the libpath. Setting hardcode_minus_L
  5888. # to unsupported forces relinking
  5889. hardcode_minus_L=yes
  5890. hardcode_libdir_flag_spec='-L$libdir'
  5891. hardcode_libdir_separator=
  5892. fi
  5893. ;;
  5894. esac
  5895. shared_flag='-shared'
  5896. if test "$aix_use_runtimelinking" = yes; then
  5897. shared_flag="$shared_flag "'${wl}-G'
  5898. fi
  5899. else
  5900. # not using gcc
  5901. if test "$host_cpu" = ia64; then
  5902. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5903. # chokes on -Wl,-G. The following line is correct:
  5904. shared_flag='-G'
  5905. else
  5906. if test "$aix_use_runtimelinking" = yes; then
  5907. shared_flag='${wl}-G'
  5908. else
  5909. shared_flag='${wl}-bM:SRE'
  5910. fi
  5911. fi
  5912. fi
  5913. # It seems that -bexpall does not export symbols beginning with
  5914. # underscore (_), so it is better to generate a list of symbols to export.
  5915. always_export_symbols=yes
  5916. if test "$aix_use_runtimelinking" = yes; then
  5917. # Warning - without using the other runtime loading flags (-brtl),
  5918. # -berok will link without error, but may produce a broken library.
  5919. allow_undefined_flag='-berok'
  5920. # Determine the default libpath from the value encoded in an empty executable.
  5921. cat >conftest.$ac_ext <<_ACEOF
  5922. /* confdefs.h. */
  5923. _ACEOF
  5924. cat confdefs.h >>conftest.$ac_ext
  5925. cat >>conftest.$ac_ext <<_ACEOF
  5926. /* end confdefs.h. */
  5927. int
  5928. main ()
  5929. {
  5930. ;
  5931. return 0;
  5932. }
  5933. _ACEOF
  5934. rm -f conftest.$ac_objext conftest$ac_exeext
  5935. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5936. (eval $ac_link) 2>conftest.er1
  5937. ac_status=$?
  5938. grep -v '^ *+' conftest.er1 >conftest.err
  5939. rm -f conftest.er1
  5940. cat conftest.err >&5
  5941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5942. (exit $ac_status); } &&
  5943. { ac_try='test -z "$ac_c_werror_flag"
  5944. || test ! -s conftest.err'
  5945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5946. (eval $ac_try) 2>&5
  5947. ac_status=$?
  5948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5949. (exit $ac_status); }; } &&
  5950. { ac_try='test -s conftest$ac_exeext'
  5951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5952. (eval $ac_try) 2>&5
  5953. ac_status=$?
  5954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5955. (exit $ac_status); }; }; then
  5956. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5957. }'`
  5958. # Check for a 64-bit object if we didn't find anything.
  5959. 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; }
  5960. }'`; fi
  5961. else
  5962. echo "$as_me: failed program was:" >&5
  5963. sed 's/^/| /' conftest.$ac_ext >&5
  5964. fi
  5965. rm -f conftest.err conftest.$ac_objext \
  5966. conftest$ac_exeext conftest.$ac_ext
  5967. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  5968. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  5969. 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"
  5970. else
  5971. if test "$host_cpu" = ia64; then
  5972. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  5973. allow_undefined_flag="-z nodefs"
  5974. 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"
  5975. else
  5976. # Determine the default libpath from the value encoded in an empty executable.
  5977. cat >conftest.$ac_ext <<_ACEOF
  5978. /* confdefs.h. */
  5979. _ACEOF
  5980. cat confdefs.h >>conftest.$ac_ext
  5981. cat >>conftest.$ac_ext <<_ACEOF
  5982. /* end confdefs.h. */
  5983. int
  5984. main ()
  5985. {
  5986. ;
  5987. return 0;
  5988. }
  5989. _ACEOF
  5990. rm -f conftest.$ac_objext conftest$ac_exeext
  5991. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5992. (eval $ac_link) 2>conftest.er1
  5993. ac_status=$?
  5994. grep -v '^ *+' conftest.er1 >conftest.err
  5995. rm -f conftest.er1
  5996. cat conftest.err >&5
  5997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5998. (exit $ac_status); } &&
  5999. { ac_try='test -z "$ac_c_werror_flag"
  6000. || test ! -s conftest.err'
  6001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6002. (eval $ac_try) 2>&5
  6003. ac_status=$?
  6004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005. (exit $ac_status); }; } &&
  6006. { ac_try='test -s conftest$ac_exeext'
  6007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6008. (eval $ac_try) 2>&5
  6009. ac_status=$?
  6010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6011. (exit $ac_status); }; }; then
  6012. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6013. }'`
  6014. # Check for a 64-bit object if we didn't find anything.
  6015. 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; }
  6016. }'`; fi
  6017. else
  6018. echo "$as_me: failed program was:" >&5
  6019. sed 's/^/| /' conftest.$ac_ext >&5
  6020. fi
  6021. rm -f conftest.err conftest.$ac_objext \
  6022. conftest$ac_exeext conftest.$ac_ext
  6023. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6024. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6025. # Warning - without using the other run time loading flags,
  6026. # -berok will link without error, but may produce a broken library.
  6027. no_undefined_flag=' ${wl}-bernotok'
  6028. allow_undefined_flag=' ${wl}-berok'
  6029. # Exported symbols can be pulled into shared objects from archives
  6030. whole_archive_flag_spec='$convenience'
  6031. archive_cmds_need_lc=yes
  6032. # This is similar to how AIX traditionally builds its shared libraries.
  6033. 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'
  6034. fi
  6035. fi
  6036. ;;
  6037. amigaos*)
  6038. 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)'
  6039. hardcode_libdir_flag_spec='-L$libdir'
  6040. hardcode_minus_L=yes
  6041. # see comment about different semantics on the GNU ld section
  6042. ld_shlibs=no
  6043. ;;
  6044. bsdi[45]*)
  6045. export_dynamic_flag_spec=-rdynamic
  6046. ;;
  6047. cygwin* | mingw* | pw32*)
  6048. # When not using gcc, we currently assume that we are using
  6049. # Microsoft Visual C++.
  6050. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6051. # no search path for DLLs.
  6052. hardcode_libdir_flag_spec=' '
  6053. allow_undefined_flag=unsupported
  6054. # Tell ltmain to make .lib files, not .a files.
  6055. libext=lib
  6056. # Tell ltmain to make .dll files, not .so files.
  6057. shrext_cmds=".dll"
  6058. # FIXME: Setting linknames here is a bad hack.
  6059. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6060. # The linker will automatically build a .lib file if we build a DLL.
  6061. old_archive_From_new_cmds='true'
  6062. # FIXME: Should let the user specify the lib program.
  6063. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6064. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6065. enable_shared_with_static_runtimes=yes
  6066. ;;
  6067. darwin* | rhapsody*)
  6068. case $host_os in
  6069. rhapsody* | darwin1.[012])
  6070. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6071. ;;
  6072. *) # Darwin 1.3 on
  6073. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6074. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6075. else
  6076. case ${MACOSX_DEPLOYMENT_TARGET} in
  6077. 10.[012])
  6078. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6079. ;;
  6080. 10.*)
  6081. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6082. ;;
  6083. esac
  6084. fi
  6085. ;;
  6086. esac
  6087. archive_cmds_need_lc=no
  6088. hardcode_direct=no
  6089. hardcode_automatic=yes
  6090. hardcode_shlibpath_var=unsupported
  6091. whole_archive_flag_spec=''
  6092. link_all_deplibs=yes
  6093. if test "$GCC" = yes ; then
  6094. output_verbose_link_cmd='echo'
  6095. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6096. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6097. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6098. 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}'
  6099. 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}'
  6100. else
  6101. case $cc_basename in
  6102. xlc*)
  6103. output_verbose_link_cmd='echo'
  6104. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6105. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6106. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6107. 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}'
  6108. 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}'
  6109. ;;
  6110. *)
  6111. ld_shlibs=no
  6112. ;;
  6113. esac
  6114. fi
  6115. ;;
  6116. dgux*)
  6117. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6118. hardcode_libdir_flag_spec='-L$libdir'
  6119. hardcode_shlibpath_var=no
  6120. ;;
  6121. freebsd1*)
  6122. ld_shlibs=no
  6123. ;;
  6124. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6125. # support. Future versions do this automatically, but an explicit c++rt0.o
  6126. # does not break anything, and helps significantly (at the cost of a little
  6127. # extra space).
  6128. freebsd2.2*)
  6129. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6130. hardcode_libdir_flag_spec='-R$libdir'
  6131. hardcode_direct=yes
  6132. hardcode_shlibpath_var=no
  6133. ;;
  6134. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6135. freebsd2*)
  6136. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6137. hardcode_direct=yes
  6138. hardcode_minus_L=yes
  6139. hardcode_shlibpath_var=no
  6140. ;;
  6141. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6142. freebsd* | kfreebsd*-gnu | dragonfly*)
  6143. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6144. hardcode_libdir_flag_spec='-R$libdir'
  6145. hardcode_direct=yes
  6146. hardcode_shlibpath_var=no
  6147. ;;
  6148. hpux9*)
  6149. if test "$GCC" = yes; then
  6150. 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'
  6151. else
  6152. 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'
  6153. fi
  6154. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6155. hardcode_libdir_separator=:
  6156. hardcode_direct=yes
  6157. # hardcode_minus_L: Not really in the search PATH,
  6158. # but as the default location of the library.
  6159. hardcode_minus_L=yes
  6160. export_dynamic_flag_spec='${wl}-E'
  6161. ;;
  6162. hpux10*)
  6163. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6164. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6165. else
  6166. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6167. fi
  6168. if test "$with_gnu_ld" = no; then
  6169. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6170. hardcode_libdir_separator=:
  6171. hardcode_direct=yes
  6172. export_dynamic_flag_spec='${wl}-E'
  6173. # hardcode_minus_L: Not really in the search PATH,
  6174. # but as the default location of the library.
  6175. hardcode_minus_L=yes
  6176. fi
  6177. ;;
  6178. hpux11*)
  6179. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6180. case $host_cpu in
  6181. hppa*64*)
  6182. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6183. ;;
  6184. ia64*)
  6185. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6186. ;;
  6187. *)
  6188. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6189. ;;
  6190. esac
  6191. else
  6192. case $host_cpu in
  6193. hppa*64*)
  6194. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6195. ;;
  6196. ia64*)
  6197. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6198. ;;
  6199. *)
  6200. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6201. ;;
  6202. esac
  6203. fi
  6204. if test "$with_gnu_ld" = no; then
  6205. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6206. hardcode_libdir_separator=:
  6207. case $host_cpu in
  6208. hppa*64*|ia64*)
  6209. hardcode_libdir_flag_spec_ld='+b $libdir'
  6210. hardcode_direct=no
  6211. hardcode_shlibpath_var=no
  6212. ;;
  6213. *)
  6214. hardcode_direct=yes
  6215. export_dynamic_flag_spec='${wl}-E'
  6216. # hardcode_minus_L: Not really in the search PATH,
  6217. # but as the default location of the library.
  6218. hardcode_minus_L=yes
  6219. ;;
  6220. esac
  6221. fi
  6222. ;;
  6223. irix5* | irix6* | nonstopux*)
  6224. if test "$GCC" = yes; then
  6225. 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'
  6226. else
  6227. 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'
  6228. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6229. fi
  6230. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6231. hardcode_libdir_separator=:
  6232. link_all_deplibs=yes
  6233. ;;
  6234. netbsd*)
  6235. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6236. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6237. else
  6238. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6239. fi
  6240. hardcode_libdir_flag_spec='-R$libdir'
  6241. hardcode_direct=yes
  6242. hardcode_shlibpath_var=no
  6243. ;;
  6244. newsos6)
  6245. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6246. hardcode_direct=yes
  6247. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6248. hardcode_libdir_separator=:
  6249. hardcode_shlibpath_var=no
  6250. ;;
  6251. openbsd*)
  6252. hardcode_direct=yes
  6253. hardcode_shlibpath_var=no
  6254. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6255. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6256. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6257. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6258. export_dynamic_flag_spec='${wl}-E'
  6259. else
  6260. case $host_os in
  6261. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6262. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6263. hardcode_libdir_flag_spec='-R$libdir'
  6264. ;;
  6265. *)
  6266. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6267. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6268. ;;
  6269. esac
  6270. fi
  6271. ;;
  6272. os2*)
  6273. hardcode_libdir_flag_spec='-L$libdir'
  6274. hardcode_minus_L=yes
  6275. allow_undefined_flag=unsupported
  6276. 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'
  6277. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6278. ;;
  6279. osf3*)
  6280. if test "$GCC" = yes; then
  6281. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6282. 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'
  6283. else
  6284. allow_undefined_flag=' -expect_unresolved \*'
  6285. 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'
  6286. fi
  6287. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6288. hardcode_libdir_separator=:
  6289. ;;
  6290. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6291. if test "$GCC" = yes; then
  6292. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6293. 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'
  6294. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6295. else
  6296. allow_undefined_flag=' -expect_unresolved \*'
  6297. 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'
  6298. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6299. $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'
  6300. # Both c and cxx compiler support -rpath directly
  6301. hardcode_libdir_flag_spec='-rpath $libdir'
  6302. fi
  6303. hardcode_libdir_separator=:
  6304. ;;
  6305. solaris*)
  6306. no_undefined_flag=' -z text'
  6307. if test "$GCC" = yes; then
  6308. wlarc='${wl}'
  6309. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6310. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6311. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6312. else
  6313. wlarc=''
  6314. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6315. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6316. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6317. fi
  6318. hardcode_libdir_flag_spec='-R$libdir'
  6319. hardcode_shlibpath_var=no
  6320. case $host_os in
  6321. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6322. *)
  6323. # The compiler driver will combine linker options so we
  6324. # cannot just pass the convience library names through
  6325. # without $wl, iff we do not link with $LD.
  6326. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6327. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6328. case $wlarc in
  6329. '')
  6330. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6331. *)
  6332. 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' ;;
  6333. esac ;;
  6334. esac
  6335. link_all_deplibs=yes
  6336. ;;
  6337. sunos4*)
  6338. if test "x$host_vendor" = xsequent; then
  6339. # Use $CC to link under sequent, because it throws in some extra .o
  6340. # files that make .init and .fini sections work.
  6341. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6342. else
  6343. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6344. fi
  6345. hardcode_libdir_flag_spec='-L$libdir'
  6346. hardcode_direct=yes
  6347. hardcode_minus_L=yes
  6348. hardcode_shlibpath_var=no
  6349. ;;
  6350. sysv4)
  6351. case $host_vendor in
  6352. sni)
  6353. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6354. hardcode_direct=yes # is this really true???
  6355. ;;
  6356. siemens)
  6357. ## LD is ld it makes a PLAMLIB
  6358. ## CC just makes a GrossModule.
  6359. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6360. reload_cmds='$CC -r -o $output$reload_objs'
  6361. hardcode_direct=no
  6362. ;;
  6363. motorola)
  6364. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6365. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6366. ;;
  6367. esac
  6368. runpath_var='LD_RUN_PATH'
  6369. hardcode_shlibpath_var=no
  6370. ;;
  6371. sysv4.3*)
  6372. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6373. hardcode_shlibpath_var=no
  6374. export_dynamic_flag_spec='-Bexport'
  6375. ;;
  6376. sysv4*MP*)
  6377. if test -d /usr/nec; then
  6378. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6379. hardcode_shlibpath_var=no
  6380. runpath_var=LD_RUN_PATH
  6381. hardcode_runpath_var=yes
  6382. ld_shlibs=yes
  6383. fi
  6384. ;;
  6385. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  6386. no_undefined_flag='${wl}-z,text'
  6387. archive_cmds_need_lc=no
  6388. hardcode_shlibpath_var=no
  6389. runpath_var='LD_RUN_PATH'
  6390. if test "$GCC" = yes; then
  6391. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6392. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6393. else
  6394. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6395. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6396. fi
  6397. ;;
  6398. sysv5* | sco3.2v5* | sco5v6*)
  6399. # Note: We can NOT use -z defs as we might desire, because we do not
  6400. # link with -lc, and that would cause any symbols used from libc to
  6401. # always be unresolved, which means just about no library would
  6402. # ever link correctly. If we're not using GNU ld we use -z text
  6403. # though, which does catch some bad symbols but isn't as heavy-handed
  6404. # as -z defs.
  6405. no_undefined_flag='${wl}-z,text'
  6406. allow_undefined_flag='${wl}-z,nodefs'
  6407. archive_cmds_need_lc=no
  6408. hardcode_shlibpath_var=no
  6409. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6410. hardcode_libdir_separator=':'
  6411. link_all_deplibs=yes
  6412. export_dynamic_flag_spec='${wl}-Bexport'
  6413. runpath_var='LD_RUN_PATH'
  6414. if test "$GCC" = yes; then
  6415. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6416. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6417. else
  6418. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6419. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6420. fi
  6421. ;;
  6422. uts4*)
  6423. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6424. hardcode_libdir_flag_spec='-L$libdir'
  6425. hardcode_shlibpath_var=no
  6426. ;;
  6427. *)
  6428. ld_shlibs=no
  6429. ;;
  6430. esac
  6431. fi
  6432. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  6433. echo "${ECHO_T}$ld_shlibs" >&6
  6434. test "$ld_shlibs" = no && can_build_shared=no
  6435. #
  6436. # Do we need to explicitly link libc?
  6437. #
  6438. case "x$archive_cmds_need_lc" in
  6439. x|xyes)
  6440. # Assume -lc should be added
  6441. archive_cmds_need_lc=yes
  6442. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6443. case $archive_cmds in
  6444. *'~'*)
  6445. # FIXME: we may have to deal with multi-command sequences.
  6446. ;;
  6447. '$CC '*)
  6448. # Test whether the compiler implicitly links with -lc since on some
  6449. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6450. # to ld, don't add -lc before -lgcc.
  6451. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6452. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6453. $rm conftest*
  6454. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6455. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6456. (eval $ac_compile) 2>&5
  6457. ac_status=$?
  6458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6459. (exit $ac_status); } 2>conftest.err; then
  6460. soname=conftest
  6461. lib=conftest
  6462. libobjs=conftest.$ac_objext
  6463. deplibs=
  6464. wl=$lt_prog_compiler_wl
  6465. pic_flag=$lt_prog_compiler_pic
  6466. compiler_flags=-v
  6467. linker_flags=-v
  6468. verstring=
  6469. output_objdir=.
  6470. libname=conftest
  6471. lt_save_allow_undefined_flag=$allow_undefined_flag
  6472. allow_undefined_flag=
  6473. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6474. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6475. ac_status=$?
  6476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6477. (exit $ac_status); }
  6478. then
  6479. archive_cmds_need_lc=no
  6480. else
  6481. archive_cmds_need_lc=yes
  6482. fi
  6483. allow_undefined_flag=$lt_save_allow_undefined_flag
  6484. else
  6485. cat conftest.err 1>&5
  6486. fi
  6487. $rm conftest*
  6488. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  6489. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  6490. ;;
  6491. esac
  6492. fi
  6493. ;;
  6494. esac
  6495. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  6496. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  6497. library_names_spec=
  6498. libname_spec='lib$name'
  6499. soname_spec=
  6500. shrext_cmds=".so"
  6501. postinstall_cmds=
  6502. postuninstall_cmds=
  6503. finish_cmds=
  6504. finish_eval=
  6505. shlibpath_var=
  6506. shlibpath_overrides_runpath=unknown
  6507. version_type=none
  6508. dynamic_linker="$host_os ld.so"
  6509. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6510. if test "$GCC" = yes; then
  6511. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6512. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  6513. # if the path contains ";" then we assume it to be the separator
  6514. # otherwise default to the standard path separator (i.e. ":") - it is
  6515. # assumed that no part of a normal pathname contains ";" but that should
  6516. # okay in the real world where ";" in dirpaths is itself problematic.
  6517. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6518. else
  6519. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6520. fi
  6521. else
  6522. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6523. fi
  6524. need_lib_prefix=unknown
  6525. hardcode_into_libs=no
  6526. # when you set need_version to no, make sure it does not cause -set_version
  6527. # flags to be left without arguments
  6528. need_version=unknown
  6529. case $host_os in
  6530. aix3*)
  6531. version_type=linux
  6532. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  6533. shlibpath_var=LIBPATH
  6534. # AIX 3 has no versioning support, so we append a major version to the name.
  6535. soname_spec='${libname}${release}${shared_ext}$major'
  6536. ;;
  6537. aix4* | aix5*)
  6538. version_type=linux
  6539. need_lib_prefix=no
  6540. need_version=no
  6541. hardcode_into_libs=yes
  6542. if test "$host_cpu" = ia64; then
  6543. # AIX 5 supports IA64
  6544. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  6545. shlibpath_var=LD_LIBRARY_PATH
  6546. else
  6547. # With GCC up to 2.95.x, collect2 would create an import file
  6548. # for dependence libraries. The import file would start with
  6549. # the line `#! .'. This would cause the generated library to
  6550. # depend on `.', always an invalid library. This was fixed in
  6551. # development snapshots of GCC prior to 3.0.
  6552. case $host_os in
  6553. aix4 | aix4.[01] | aix4.[01].*)
  6554. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  6555. echo ' yes '
  6556. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  6557. :
  6558. else
  6559. can_build_shared=no
  6560. fi
  6561. ;;
  6562. esac
  6563. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  6564. # soname into executable. Probably we can add versioning support to
  6565. # collect2, so additional links can be useful in future.
  6566. if test "$aix_use_runtimelinking" = yes; then
  6567. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  6568. # instead of lib<name>.a to let people know that these are not
  6569. # typical AIX shared libraries.
  6570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6571. else
  6572. # We preserve .a as extension for shared libraries through AIX4.2
  6573. # and later when we are not doing run time linking.
  6574. library_names_spec='${libname}${release}.a $libname.a'
  6575. soname_spec='${libname}${release}${shared_ext}$major'
  6576. fi
  6577. shlibpath_var=LIBPATH
  6578. fi
  6579. ;;
  6580. amigaos*)
  6581. library_names_spec='$libname.ixlibrary $libname.a'
  6582. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6583. 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'
  6584. ;;
  6585. beos*)
  6586. library_names_spec='${libname}${shared_ext}'
  6587. dynamic_linker="$host_os ld.so"
  6588. shlibpath_var=LIBRARY_PATH
  6589. ;;
  6590. bsdi[45]*)
  6591. version_type=linux
  6592. need_version=no
  6593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6594. soname_spec='${libname}${release}${shared_ext}$major'
  6595. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  6596. shlibpath_var=LD_LIBRARY_PATH
  6597. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  6598. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  6599. # the default ld.so.conf also contains /usr/contrib/lib and
  6600. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  6601. # libtool to hard-code these into programs
  6602. ;;
  6603. cygwin* | mingw* | pw32*)
  6604. version_type=windows
  6605. shrext_cmds=".dll"
  6606. need_version=no
  6607. need_lib_prefix=no
  6608. case $GCC,$host_os in
  6609. yes,cygwin* | yes,mingw* | yes,pw32*)
  6610. library_names_spec='$libname.dll.a'
  6611. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  6612. postinstall_cmds='base_file=`basename \${file}`~
  6613. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  6614. dldir=$destdir/`dirname \$dlpath`~
  6615. test -d \$dldir || mkdir -p \$dldir~
  6616. $install_prog $dir/$dlname \$dldir/$dlname~
  6617. chmod a+x \$dldir/$dlname'
  6618. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  6619. dlpath=$dir/\$dldll~
  6620. $rm \$dlpath'
  6621. shlibpath_overrides_runpath=yes
  6622. case $host_os in
  6623. cygwin*)
  6624. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  6625. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6626. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  6627. ;;
  6628. mingw*)
  6629. # MinGW DLLs use traditional 'lib' prefix
  6630. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6631. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6632. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  6633. # It is most probably a Windows format PATH printed by
  6634. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  6635. # path with ; separators, and with drive letters. We can handle the
  6636. # drive letters (cygwin fileutils understands them), so leave them,
  6637. # especially as we might pass files found there to a mingw objdump,
  6638. # which wouldn't understand a cygwinified path. Ahh.
  6639. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6640. else
  6641. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6642. fi
  6643. ;;
  6644. pw32*)
  6645. # pw32 DLLs use 'pw' prefix rather than 'lib'
  6646. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6647. ;;
  6648. esac
  6649. ;;
  6650. *)
  6651. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  6652. ;;
  6653. esac
  6654. dynamic_linker='Win32 ld.exe'
  6655. # FIXME: first we should search . and the directory the executable is in
  6656. shlibpath_var=PATH
  6657. ;;
  6658. darwin* | rhapsody*)
  6659. dynamic_linker="$host_os dyld"
  6660. version_type=darwin
  6661. need_lib_prefix=no
  6662. need_version=no
  6663. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  6664. soname_spec='${libname}${release}${major}$shared_ext'
  6665. shlibpath_overrides_runpath=yes
  6666. shlibpath_var=DYLD_LIBRARY_PATH
  6667. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  6668. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  6669. if test "$GCC" = yes; then
  6670. 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"`
  6671. else
  6672. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  6673. fi
  6674. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  6675. ;;
  6676. dgux*)
  6677. version_type=linux
  6678. need_lib_prefix=no
  6679. need_version=no
  6680. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  6681. soname_spec='${libname}${release}${shared_ext}$major'
  6682. shlibpath_var=LD_LIBRARY_PATH
  6683. ;;
  6684. freebsd1*)
  6685. dynamic_linker=no
  6686. ;;
  6687. kfreebsd*-gnu)
  6688. version_type=linux
  6689. need_lib_prefix=no
  6690. need_version=no
  6691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6692. soname_spec='${libname}${release}${shared_ext}$major'
  6693. shlibpath_var=LD_LIBRARY_PATH
  6694. shlibpath_overrides_runpath=no
  6695. hardcode_into_libs=yes
  6696. dynamic_linker='GNU ld.so'
  6697. ;;
  6698. freebsd* | dragonfly*)
  6699. # DragonFly does not have aout. When/if they implement a new
  6700. # versioning mechanism, adjust this.
  6701. if test -x /usr/bin/objformat; then
  6702. objformat=`/usr/bin/objformat`
  6703. else
  6704. case $host_os in
  6705. freebsd[123]*) objformat=aout ;;
  6706. *) objformat=elf ;;
  6707. esac
  6708. fi
  6709. version_type=freebsd-$objformat
  6710. case $version_type in
  6711. freebsd-elf*)
  6712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  6713. need_version=no
  6714. need_lib_prefix=no
  6715. ;;
  6716. freebsd-*)
  6717. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  6718. need_version=yes
  6719. ;;
  6720. esac
  6721. shlibpath_var=LD_LIBRARY_PATH
  6722. case $host_os in
  6723. freebsd2*)
  6724. shlibpath_overrides_runpath=yes
  6725. ;;
  6726. freebsd3.[01]* | freebsdelf3.[01]*)
  6727. shlibpath_overrides_runpath=yes
  6728. hardcode_into_libs=yes
  6729. ;;
  6730. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  6731. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  6732. shlibpath_overrides_runpath=no
  6733. hardcode_into_libs=yes
  6734. ;;
  6735. freebsd*) # from 4.6 on
  6736. shlibpath_overrides_runpath=yes
  6737. hardcode_into_libs=yes
  6738. ;;
  6739. esac
  6740. ;;
  6741. gnu*)
  6742. version_type=linux
  6743. need_lib_prefix=no
  6744. need_version=no
  6745. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  6746. soname_spec='${libname}${release}${shared_ext}$major'
  6747. shlibpath_var=LD_LIBRARY_PATH
  6748. hardcode_into_libs=yes
  6749. ;;
  6750. hpux9* | hpux10* | hpux11*)
  6751. # Give a soname corresponding to the major version so that dld.sl refuses to
  6752. # link against other versions.
  6753. version_type=sunos
  6754. need_lib_prefix=no
  6755. need_version=no
  6756. case $host_cpu in
  6757. ia64*)
  6758. shrext_cmds='.so'
  6759. hardcode_into_libs=yes
  6760. dynamic_linker="$host_os dld.so"
  6761. shlibpath_var=LD_LIBRARY_PATH
  6762. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6764. soname_spec='${libname}${release}${shared_ext}$major'
  6765. if test "X$HPUX_IA64_MODE" = X32; then
  6766. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  6767. else
  6768. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  6769. fi
  6770. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6771. ;;
  6772. hppa*64*)
  6773. shrext_cmds='.sl'
  6774. hardcode_into_libs=yes
  6775. dynamic_linker="$host_os dld.sl"
  6776. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  6777. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6779. soname_spec='${libname}${release}${shared_ext}$major'
  6780. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  6781. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6782. ;;
  6783. *)
  6784. shrext_cmds='.sl'
  6785. dynamic_linker="$host_os dld.sl"
  6786. shlibpath_var=SHLIB_PATH
  6787. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  6788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6789. soname_spec='${libname}${release}${shared_ext}$major'
  6790. ;;
  6791. esac
  6792. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  6793. postinstall_cmds='chmod 555 $lib'
  6794. ;;
  6795. interix3*)
  6796. version_type=linux
  6797. need_lib_prefix=no
  6798. need_version=no
  6799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6800. soname_spec='${libname}${release}${shared_ext}$major'
  6801. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  6802. shlibpath_var=LD_LIBRARY_PATH
  6803. shlibpath_overrides_runpath=no
  6804. hardcode_into_libs=yes
  6805. ;;
  6806. irix5* | irix6* | nonstopux*)
  6807. case $host_os in
  6808. nonstopux*) version_type=nonstopux ;;
  6809. *)
  6810. if test "$lt_cv_prog_gnu_ld" = yes; then
  6811. version_type=linux
  6812. else
  6813. version_type=irix
  6814. fi ;;
  6815. esac
  6816. need_lib_prefix=no
  6817. need_version=no
  6818. soname_spec='${libname}${release}${shared_ext}$major'
  6819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  6820. case $host_os in
  6821. irix5* | nonstopux*)
  6822. libsuff= shlibsuff=
  6823. ;;
  6824. *)
  6825. case $LD in # libtool.m4 will add one of these switches to LD
  6826. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  6827. libsuff= shlibsuff= libmagic=32-bit;;
  6828. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  6829. libsuff=32 shlibsuff=N32 libmagic=N32;;
  6830. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  6831. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  6832. *) libsuff= shlibsuff= libmagic=never-match;;
  6833. esac
  6834. ;;
  6835. esac
  6836. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  6837. shlibpath_overrides_runpath=no
  6838. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  6839. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  6840. hardcode_into_libs=yes
  6841. ;;
  6842. # No shared lib support for Linux oldld, aout, or coff.
  6843. linux*oldld* | linux*aout* | linux*coff*)
  6844. dynamic_linker=no
  6845. ;;
  6846. # This must be Linux ELF.
  6847. linux*)
  6848. version_type=linux
  6849. need_lib_prefix=no
  6850. need_version=no
  6851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6852. soname_spec='${libname}${release}${shared_ext}$major'
  6853. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  6854. shlibpath_var=LD_LIBRARY_PATH
  6855. shlibpath_overrides_runpath=no
  6856. # This implies no fast_install, which is unacceptable.
  6857. # Some rework will be needed to allow for fast_install
  6858. # before this can be enabled.
  6859. hardcode_into_libs=yes
  6860. # Append ld.so.conf contents to the search path
  6861. if test -f /etc/ld.so.conf; then
  6862. 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' ' '`
  6863. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  6864. fi
  6865. # We used to test for /lib/ld.so.1 and disable shared libraries on
  6866. # powerpc, because MkLinux only supported shared libraries with the
  6867. # GNU dynamic linker. Since this was broken with cross compilers,
  6868. # most powerpc-linux boxes support dynamic linking these days and
  6869. # people can always --disable-shared, the test was removed, and we
  6870. # assume the GNU/Linux dynamic linker is in use.
  6871. dynamic_linker='GNU/Linux ld.so'
  6872. ;;
  6873. knetbsd*-gnu)
  6874. version_type=linux
  6875. need_lib_prefix=no
  6876. need_version=no
  6877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6878. soname_spec='${libname}${release}${shared_ext}$major'
  6879. shlibpath_var=LD_LIBRARY_PATH
  6880. shlibpath_overrides_runpath=no
  6881. hardcode_into_libs=yes
  6882. dynamic_linker='GNU ld.so'
  6883. ;;
  6884. netbsd*)
  6885. version_type=sunos
  6886. need_lib_prefix=no
  6887. need_version=no
  6888. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6890. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6891. dynamic_linker='NetBSD (a.out) ld.so'
  6892. else
  6893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6894. soname_spec='${libname}${release}${shared_ext}$major'
  6895. dynamic_linker='NetBSD ld.elf_so'
  6896. fi
  6897. shlibpath_var=LD_LIBRARY_PATH
  6898. shlibpath_overrides_runpath=yes
  6899. hardcode_into_libs=yes
  6900. ;;
  6901. newsos6)
  6902. version_type=linux
  6903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6904. shlibpath_var=LD_LIBRARY_PATH
  6905. shlibpath_overrides_runpath=yes
  6906. ;;
  6907. nto-qnx*)
  6908. version_type=linux
  6909. need_lib_prefix=no
  6910. need_version=no
  6911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6912. soname_spec='${libname}${release}${shared_ext}$major'
  6913. shlibpath_var=LD_LIBRARY_PATH
  6914. shlibpath_overrides_runpath=yes
  6915. ;;
  6916. openbsd*)
  6917. version_type=sunos
  6918. sys_lib_dlsearch_path_spec="/usr/lib"
  6919. need_lib_prefix=no
  6920. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  6921. case $host_os in
  6922. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  6923. *) need_version=no ;;
  6924. esac
  6925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6926. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6927. shlibpath_var=LD_LIBRARY_PATH
  6928. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6929. case $host_os in
  6930. openbsd2.[89] | openbsd2.[89].*)
  6931. shlibpath_overrides_runpath=no
  6932. ;;
  6933. *)
  6934. shlibpath_overrides_runpath=yes
  6935. ;;
  6936. esac
  6937. else
  6938. shlibpath_overrides_runpath=yes
  6939. fi
  6940. ;;
  6941. os2*)
  6942. libname_spec='$name'
  6943. shrext_cmds=".dll"
  6944. need_lib_prefix=no
  6945. library_names_spec='$libname${shared_ext} $libname.a'
  6946. dynamic_linker='OS/2 ld.exe'
  6947. shlibpath_var=LIBPATH
  6948. ;;
  6949. osf3* | osf4* | osf5*)
  6950. version_type=osf
  6951. need_lib_prefix=no
  6952. need_version=no
  6953. soname_spec='${libname}${release}${shared_ext}$major'
  6954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6955. shlibpath_var=LD_LIBRARY_PATH
  6956. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  6957. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  6958. ;;
  6959. solaris*)
  6960. version_type=linux
  6961. need_lib_prefix=no
  6962. need_version=no
  6963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6964. soname_spec='${libname}${release}${shared_ext}$major'
  6965. shlibpath_var=LD_LIBRARY_PATH
  6966. shlibpath_overrides_runpath=yes
  6967. hardcode_into_libs=yes
  6968. # ldd complains unless libraries are executable
  6969. postinstall_cmds='chmod +x $lib'
  6970. ;;
  6971. sunos4*)
  6972. version_type=sunos
  6973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6974. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  6975. shlibpath_var=LD_LIBRARY_PATH
  6976. shlibpath_overrides_runpath=yes
  6977. if test "$with_gnu_ld" = yes; then
  6978. need_lib_prefix=no
  6979. fi
  6980. need_version=yes
  6981. ;;
  6982. sysv4 | sysv4.3*)
  6983. version_type=linux
  6984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6985. soname_spec='${libname}${release}${shared_ext}$major'
  6986. shlibpath_var=LD_LIBRARY_PATH
  6987. case $host_vendor in
  6988. sni)
  6989. shlibpath_overrides_runpath=no
  6990. need_lib_prefix=no
  6991. export_dynamic_flag_spec='${wl}-Blargedynsym'
  6992. runpath_var=LD_RUN_PATH
  6993. ;;
  6994. siemens)
  6995. need_lib_prefix=no
  6996. ;;
  6997. motorola)
  6998. need_lib_prefix=no
  6999. need_version=no
  7000. shlibpath_overrides_runpath=no
  7001. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7002. ;;
  7003. esac
  7004. ;;
  7005. sysv4*MP*)
  7006. if test -d /usr/nec ;then
  7007. version_type=linux
  7008. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7009. soname_spec='$libname${shared_ext}.$major'
  7010. shlibpath_var=LD_LIBRARY_PATH
  7011. fi
  7012. ;;
  7013. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7014. version_type=freebsd-elf
  7015. need_lib_prefix=no
  7016. need_version=no
  7017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7018. soname_spec='${libname}${release}${shared_ext}$major'
  7019. shlibpath_var=LD_LIBRARY_PATH
  7020. hardcode_into_libs=yes
  7021. if test "$with_gnu_ld" = yes; then
  7022. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7023. shlibpath_overrides_runpath=no
  7024. else
  7025. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7026. shlibpath_overrides_runpath=yes
  7027. case $host_os in
  7028. sco3.2v5*)
  7029. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7030. ;;
  7031. esac
  7032. fi
  7033. sys_lib_dlsearch_path_spec='/usr/lib'
  7034. ;;
  7035. uts4*)
  7036. version_type=linux
  7037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7038. soname_spec='${libname}${release}${shared_ext}$major'
  7039. shlibpath_var=LD_LIBRARY_PATH
  7040. ;;
  7041. *)
  7042. dynamic_linker=no
  7043. ;;
  7044. esac
  7045. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7046. echo "${ECHO_T}$dynamic_linker" >&6
  7047. test "$dynamic_linker" = no && can_build_shared=no
  7048. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7049. if test "$GCC" = yes; then
  7050. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7051. fi
  7052. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7053. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7054. hardcode_action=
  7055. if test -n "$hardcode_libdir_flag_spec" || \
  7056. test -n "$runpath_var" || \
  7057. test "X$hardcode_automatic" = "Xyes" ; then
  7058. # We can hardcode non-existant directories.
  7059. if test "$hardcode_direct" != no &&
  7060. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7061. # have to relink, otherwise we might link with an installed library
  7062. # when we should be linking with a yet-to-be-installed one
  7063. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7064. test "$hardcode_minus_L" != no; then
  7065. # Linking always hardcodes the temporary library directory.
  7066. hardcode_action=relink
  7067. else
  7068. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7069. hardcode_action=immediate
  7070. fi
  7071. else
  7072. # We cannot hardcode anything, or else we can only hardcode existing
  7073. # directories.
  7074. hardcode_action=unsupported
  7075. fi
  7076. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7077. echo "${ECHO_T}$hardcode_action" >&6
  7078. if test "$hardcode_action" = relink; then
  7079. # Fast installation is not supported
  7080. enable_fast_install=no
  7081. elif test "$shlibpath_overrides_runpath" = yes ||
  7082. test "$enable_shared" = no; then
  7083. # Fast installation is not necessary
  7084. enable_fast_install=needless
  7085. fi
  7086. striplib=
  7087. old_striplib=
  7088. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7089. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7090. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7091. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7092. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7093. echo "$as_me:$LINENO: result: yes" >&5
  7094. echo "${ECHO_T}yes" >&6
  7095. else
  7096. # FIXME - insert some real tests, host_os isn't really good enough
  7097. case $host_os in
  7098. darwin*)
  7099. if test -n "$STRIP" ; then
  7100. striplib="$STRIP -x"
  7101. echo "$as_me:$LINENO: result: yes" >&5
  7102. echo "${ECHO_T}yes" >&6
  7103. else
  7104. echo "$as_me:$LINENO: result: no" >&5
  7105. echo "${ECHO_T}no" >&6
  7106. fi
  7107. ;;
  7108. *)
  7109. echo "$as_me:$LINENO: result: no" >&5
  7110. echo "${ECHO_T}no" >&6
  7111. ;;
  7112. esac
  7113. fi
  7114. if test "x$enable_dlopen" != xyes; then
  7115. enable_dlopen=unknown
  7116. enable_dlopen_self=unknown
  7117. enable_dlopen_self_static=unknown
  7118. else
  7119. lt_cv_dlopen=no
  7120. lt_cv_dlopen_libs=
  7121. case $host_os in
  7122. beos*)
  7123. lt_cv_dlopen="load_add_on"
  7124. lt_cv_dlopen_libs=
  7125. lt_cv_dlopen_self=yes
  7126. ;;
  7127. mingw* | pw32*)
  7128. lt_cv_dlopen="LoadLibrary"
  7129. lt_cv_dlopen_libs=
  7130. ;;
  7131. cygwin*)
  7132. lt_cv_dlopen="dlopen"
  7133. lt_cv_dlopen_libs=
  7134. ;;
  7135. darwin*)
  7136. # if libdl is installed we need to link against it
  7137. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7138. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7139. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7140. echo $ECHO_N "(cached) $ECHO_C" >&6
  7141. else
  7142. ac_check_lib_save_LIBS=$LIBS
  7143. LIBS="-ldl $LIBS"
  7144. cat >conftest.$ac_ext <<_ACEOF
  7145. /* confdefs.h. */
  7146. _ACEOF
  7147. cat confdefs.h >>conftest.$ac_ext
  7148. cat >>conftest.$ac_ext <<_ACEOF
  7149. /* end confdefs.h. */
  7150. /* Override any gcc2 internal prototype to avoid an error. */
  7151. #ifdef __cplusplus
  7152. extern "C"
  7153. #endif
  7154. /* We use char because int might match the return type of a gcc2
  7155. builtin and then its argument prototype would still apply. */
  7156. char dlopen ();
  7157. int
  7158. main ()
  7159. {
  7160. dlopen ();
  7161. ;
  7162. return 0;
  7163. }
  7164. _ACEOF
  7165. rm -f conftest.$ac_objext conftest$ac_exeext
  7166. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7167. (eval $ac_link) 2>conftest.er1
  7168. ac_status=$?
  7169. grep -v '^ *+' conftest.er1 >conftest.err
  7170. rm -f conftest.er1
  7171. cat conftest.err >&5
  7172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7173. (exit $ac_status); } &&
  7174. { ac_try='test -z "$ac_c_werror_flag"
  7175. || test ! -s conftest.err'
  7176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7177. (eval $ac_try) 2>&5
  7178. ac_status=$?
  7179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7180. (exit $ac_status); }; } &&
  7181. { ac_try='test -s conftest$ac_exeext'
  7182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7183. (eval $ac_try) 2>&5
  7184. ac_status=$?
  7185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7186. (exit $ac_status); }; }; then
  7187. ac_cv_lib_dl_dlopen=yes
  7188. else
  7189. echo "$as_me: failed program was:" >&5
  7190. sed 's/^/| /' conftest.$ac_ext >&5
  7191. ac_cv_lib_dl_dlopen=no
  7192. fi
  7193. rm -f conftest.err conftest.$ac_objext \
  7194. conftest$ac_exeext conftest.$ac_ext
  7195. LIBS=$ac_check_lib_save_LIBS
  7196. fi
  7197. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7198. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7199. if test $ac_cv_lib_dl_dlopen = yes; then
  7200. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7201. else
  7202. lt_cv_dlopen="dyld"
  7203. lt_cv_dlopen_libs=
  7204. lt_cv_dlopen_self=yes
  7205. fi
  7206. ;;
  7207. *)
  7208. echo "$as_me:$LINENO: checking for shl_load" >&5
  7209. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7210. if test "${ac_cv_func_shl_load+set}" = set; then
  7211. echo $ECHO_N "(cached) $ECHO_C" >&6
  7212. else
  7213. cat >conftest.$ac_ext <<_ACEOF
  7214. /* confdefs.h. */
  7215. _ACEOF
  7216. cat confdefs.h >>conftest.$ac_ext
  7217. cat >>conftest.$ac_ext <<_ACEOF
  7218. /* end confdefs.h. */
  7219. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7220. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7221. #define shl_load innocuous_shl_load
  7222. /* System header to define __stub macros and hopefully few prototypes,
  7223. which can conflict with char shl_load (); below.
  7224. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7225. <limits.h> exists even on freestanding compilers. */
  7226. #ifdef __STDC__
  7227. # include <limits.h>
  7228. #else
  7229. # include <assert.h>
  7230. #endif
  7231. #undef shl_load
  7232. /* Override any gcc2 internal prototype to avoid an error. */
  7233. #ifdef __cplusplus
  7234. extern "C"
  7235. {
  7236. #endif
  7237. /* We use char because int might match the return type of a gcc2
  7238. builtin and then its argument prototype would still apply. */
  7239. char shl_load ();
  7240. /* The GNU C library defines this for functions which it implements
  7241. to always fail with ENOSYS. Some functions are actually named
  7242. something starting with __ and the normal name is an alias. */
  7243. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7244. choke me
  7245. #else
  7246. char (*f) () = shl_load;
  7247. #endif
  7248. #ifdef __cplusplus
  7249. }
  7250. #endif
  7251. int
  7252. main ()
  7253. {
  7254. return f != shl_load;
  7255. ;
  7256. return 0;
  7257. }
  7258. _ACEOF
  7259. rm -f conftest.$ac_objext conftest$ac_exeext
  7260. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7261. (eval $ac_link) 2>conftest.er1
  7262. ac_status=$?
  7263. grep -v '^ *+' conftest.er1 >conftest.err
  7264. rm -f conftest.er1
  7265. cat conftest.err >&5
  7266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7267. (exit $ac_status); } &&
  7268. { ac_try='test -z "$ac_c_werror_flag"
  7269. || test ! -s conftest.err'
  7270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7271. (eval $ac_try) 2>&5
  7272. ac_status=$?
  7273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7274. (exit $ac_status); }; } &&
  7275. { ac_try='test -s conftest$ac_exeext'
  7276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7277. (eval $ac_try) 2>&5
  7278. ac_status=$?
  7279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7280. (exit $ac_status); }; }; then
  7281. ac_cv_func_shl_load=yes
  7282. else
  7283. echo "$as_me: failed program was:" >&5
  7284. sed 's/^/| /' conftest.$ac_ext >&5
  7285. ac_cv_func_shl_load=no
  7286. fi
  7287. rm -f conftest.err conftest.$ac_objext \
  7288. conftest$ac_exeext conftest.$ac_ext
  7289. fi
  7290. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7291. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7292. if test $ac_cv_func_shl_load = yes; then
  7293. lt_cv_dlopen="shl_load"
  7294. else
  7295. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7296. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7297. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7298. echo $ECHO_N "(cached) $ECHO_C" >&6
  7299. else
  7300. ac_check_lib_save_LIBS=$LIBS
  7301. LIBS="-ldld $LIBS"
  7302. cat >conftest.$ac_ext <<_ACEOF
  7303. /* confdefs.h. */
  7304. _ACEOF
  7305. cat confdefs.h >>conftest.$ac_ext
  7306. cat >>conftest.$ac_ext <<_ACEOF
  7307. /* end confdefs.h. */
  7308. /* Override any gcc2 internal prototype to avoid an error. */
  7309. #ifdef __cplusplus
  7310. extern "C"
  7311. #endif
  7312. /* We use char because int might match the return type of a gcc2
  7313. builtin and then its argument prototype would still apply. */
  7314. char shl_load ();
  7315. int
  7316. main ()
  7317. {
  7318. shl_load ();
  7319. ;
  7320. return 0;
  7321. }
  7322. _ACEOF
  7323. rm -f conftest.$ac_objext conftest$ac_exeext
  7324. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7325. (eval $ac_link) 2>conftest.er1
  7326. ac_status=$?
  7327. grep -v '^ *+' conftest.er1 >conftest.err
  7328. rm -f conftest.er1
  7329. cat conftest.err >&5
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. (exit $ac_status); } &&
  7332. { ac_try='test -z "$ac_c_werror_flag"
  7333. || test ! -s conftest.err'
  7334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7335. (eval $ac_try) 2>&5
  7336. ac_status=$?
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. (exit $ac_status); }; } &&
  7339. { ac_try='test -s conftest$ac_exeext'
  7340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7341. (eval $ac_try) 2>&5
  7342. ac_status=$?
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. (exit $ac_status); }; }; then
  7345. ac_cv_lib_dld_shl_load=yes
  7346. else
  7347. echo "$as_me: failed program was:" >&5
  7348. sed 's/^/| /' conftest.$ac_ext >&5
  7349. ac_cv_lib_dld_shl_load=no
  7350. fi
  7351. rm -f conftest.err conftest.$ac_objext \
  7352. conftest$ac_exeext conftest.$ac_ext
  7353. LIBS=$ac_check_lib_save_LIBS
  7354. fi
  7355. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7356. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7357. if test $ac_cv_lib_dld_shl_load = yes; then
  7358. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7359. else
  7360. echo "$as_me:$LINENO: checking for dlopen" >&5
  7361. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7362. if test "${ac_cv_func_dlopen+set}" = set; then
  7363. echo $ECHO_N "(cached) $ECHO_C" >&6
  7364. else
  7365. cat >conftest.$ac_ext <<_ACEOF
  7366. /* confdefs.h. */
  7367. _ACEOF
  7368. cat confdefs.h >>conftest.$ac_ext
  7369. cat >>conftest.$ac_ext <<_ACEOF
  7370. /* end confdefs.h. */
  7371. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7372. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7373. #define dlopen innocuous_dlopen
  7374. /* System header to define __stub macros and hopefully few prototypes,
  7375. which can conflict with char dlopen (); below.
  7376. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7377. <limits.h> exists even on freestanding compilers. */
  7378. #ifdef __STDC__
  7379. # include <limits.h>
  7380. #else
  7381. # include <assert.h>
  7382. #endif
  7383. #undef dlopen
  7384. /* Override any gcc2 internal prototype to avoid an error. */
  7385. #ifdef __cplusplus
  7386. extern "C"
  7387. {
  7388. #endif
  7389. /* We use char because int might match the return type of a gcc2
  7390. builtin and then its argument prototype would still apply. */
  7391. char dlopen ();
  7392. /* The GNU C library defines this for functions which it implements
  7393. to always fail with ENOSYS. Some functions are actually named
  7394. something starting with __ and the normal name is an alias. */
  7395. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  7396. choke me
  7397. #else
  7398. char (*f) () = dlopen;
  7399. #endif
  7400. #ifdef __cplusplus
  7401. }
  7402. #endif
  7403. int
  7404. main ()
  7405. {
  7406. return f != dlopen;
  7407. ;
  7408. return 0;
  7409. }
  7410. _ACEOF
  7411. rm -f conftest.$ac_objext conftest$ac_exeext
  7412. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7413. (eval $ac_link) 2>conftest.er1
  7414. ac_status=$?
  7415. grep -v '^ *+' conftest.er1 >conftest.err
  7416. rm -f conftest.er1
  7417. cat conftest.err >&5
  7418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7419. (exit $ac_status); } &&
  7420. { ac_try='test -z "$ac_c_werror_flag"
  7421. || test ! -s conftest.err'
  7422. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7423. (eval $ac_try) 2>&5
  7424. ac_status=$?
  7425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7426. (exit $ac_status); }; } &&
  7427. { ac_try='test -s conftest$ac_exeext'
  7428. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7429. (eval $ac_try) 2>&5
  7430. ac_status=$?
  7431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7432. (exit $ac_status); }; }; then
  7433. ac_cv_func_dlopen=yes
  7434. else
  7435. echo "$as_me: failed program was:" >&5
  7436. sed 's/^/| /' conftest.$ac_ext >&5
  7437. ac_cv_func_dlopen=no
  7438. fi
  7439. rm -f conftest.err conftest.$ac_objext \
  7440. conftest$ac_exeext conftest.$ac_ext
  7441. fi
  7442. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  7443. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  7444. if test $ac_cv_func_dlopen = yes; then
  7445. lt_cv_dlopen="dlopen"
  7446. else
  7447. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7448. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7449. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7450. echo $ECHO_N "(cached) $ECHO_C" >&6
  7451. else
  7452. ac_check_lib_save_LIBS=$LIBS
  7453. LIBS="-ldl $LIBS"
  7454. cat >conftest.$ac_ext <<_ACEOF
  7455. /* confdefs.h. */
  7456. _ACEOF
  7457. cat confdefs.h >>conftest.$ac_ext
  7458. cat >>conftest.$ac_ext <<_ACEOF
  7459. /* end confdefs.h. */
  7460. /* Override any gcc2 internal prototype to avoid an error. */
  7461. #ifdef __cplusplus
  7462. extern "C"
  7463. #endif
  7464. /* We use char because int might match the return type of a gcc2
  7465. builtin and then its argument prototype would still apply. */
  7466. char dlopen ();
  7467. int
  7468. main ()
  7469. {
  7470. dlopen ();
  7471. ;
  7472. return 0;
  7473. }
  7474. _ACEOF
  7475. rm -f conftest.$ac_objext conftest$ac_exeext
  7476. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7477. (eval $ac_link) 2>conftest.er1
  7478. ac_status=$?
  7479. grep -v '^ *+' conftest.er1 >conftest.err
  7480. rm -f conftest.er1
  7481. cat conftest.err >&5
  7482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. (exit $ac_status); } &&
  7484. { ac_try='test -z "$ac_c_werror_flag"
  7485. || test ! -s conftest.err'
  7486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7487. (eval $ac_try) 2>&5
  7488. ac_status=$?
  7489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7490. (exit $ac_status); }; } &&
  7491. { ac_try='test -s conftest$ac_exeext'
  7492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7493. (eval $ac_try) 2>&5
  7494. ac_status=$?
  7495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. (exit $ac_status); }; }; then
  7497. ac_cv_lib_dl_dlopen=yes
  7498. else
  7499. echo "$as_me: failed program was:" >&5
  7500. sed 's/^/| /' conftest.$ac_ext >&5
  7501. ac_cv_lib_dl_dlopen=no
  7502. fi
  7503. rm -f conftest.err conftest.$ac_objext \
  7504. conftest$ac_exeext conftest.$ac_ext
  7505. LIBS=$ac_check_lib_save_LIBS
  7506. fi
  7507. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7508. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7509. if test $ac_cv_lib_dl_dlopen = yes; then
  7510. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7511. else
  7512. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  7513. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  7514. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  7515. echo $ECHO_N "(cached) $ECHO_C" >&6
  7516. else
  7517. ac_check_lib_save_LIBS=$LIBS
  7518. LIBS="-lsvld $LIBS"
  7519. cat >conftest.$ac_ext <<_ACEOF
  7520. /* confdefs.h. */
  7521. _ACEOF
  7522. cat confdefs.h >>conftest.$ac_ext
  7523. cat >>conftest.$ac_ext <<_ACEOF
  7524. /* end confdefs.h. */
  7525. /* Override any gcc2 internal prototype to avoid an error. */
  7526. #ifdef __cplusplus
  7527. extern "C"
  7528. #endif
  7529. /* We use char because int might match the return type of a gcc2
  7530. builtin and then its argument prototype would still apply. */
  7531. char dlopen ();
  7532. int
  7533. main ()
  7534. {
  7535. dlopen ();
  7536. ;
  7537. return 0;
  7538. }
  7539. _ACEOF
  7540. rm -f conftest.$ac_objext conftest$ac_exeext
  7541. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7542. (eval $ac_link) 2>conftest.er1
  7543. ac_status=$?
  7544. grep -v '^ *+' conftest.er1 >conftest.err
  7545. rm -f conftest.er1
  7546. cat conftest.err >&5
  7547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7548. (exit $ac_status); } &&
  7549. { ac_try='test -z "$ac_c_werror_flag"
  7550. || test ! -s conftest.err'
  7551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7552. (eval $ac_try) 2>&5
  7553. ac_status=$?
  7554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7555. (exit $ac_status); }; } &&
  7556. { ac_try='test -s conftest$ac_exeext'
  7557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7558. (eval $ac_try) 2>&5
  7559. ac_status=$?
  7560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7561. (exit $ac_status); }; }; then
  7562. ac_cv_lib_svld_dlopen=yes
  7563. else
  7564. echo "$as_me: failed program was:" >&5
  7565. sed 's/^/| /' conftest.$ac_ext >&5
  7566. ac_cv_lib_svld_dlopen=no
  7567. fi
  7568. rm -f conftest.err conftest.$ac_objext \
  7569. conftest$ac_exeext conftest.$ac_ext
  7570. LIBS=$ac_check_lib_save_LIBS
  7571. fi
  7572. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  7573. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  7574. if test $ac_cv_lib_svld_dlopen = yes; then
  7575. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  7576. else
  7577. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  7578. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  7579. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  7580. echo $ECHO_N "(cached) $ECHO_C" >&6
  7581. else
  7582. ac_check_lib_save_LIBS=$LIBS
  7583. LIBS="-ldld $LIBS"
  7584. cat >conftest.$ac_ext <<_ACEOF
  7585. /* confdefs.h. */
  7586. _ACEOF
  7587. cat confdefs.h >>conftest.$ac_ext
  7588. cat >>conftest.$ac_ext <<_ACEOF
  7589. /* end confdefs.h. */
  7590. /* Override any gcc2 internal prototype to avoid an error. */
  7591. #ifdef __cplusplus
  7592. extern "C"
  7593. #endif
  7594. /* We use char because int might match the return type of a gcc2
  7595. builtin and then its argument prototype would still apply. */
  7596. char dld_link ();
  7597. int
  7598. main ()
  7599. {
  7600. dld_link ();
  7601. ;
  7602. return 0;
  7603. }
  7604. _ACEOF
  7605. rm -f conftest.$ac_objext conftest$ac_exeext
  7606. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7607. (eval $ac_link) 2>conftest.er1
  7608. ac_status=$?
  7609. grep -v '^ *+' conftest.er1 >conftest.err
  7610. rm -f conftest.er1
  7611. cat conftest.err >&5
  7612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7613. (exit $ac_status); } &&
  7614. { ac_try='test -z "$ac_c_werror_flag"
  7615. || test ! -s conftest.err'
  7616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7617. (eval $ac_try) 2>&5
  7618. ac_status=$?
  7619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7620. (exit $ac_status); }; } &&
  7621. { ac_try='test -s conftest$ac_exeext'
  7622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7623. (eval $ac_try) 2>&5
  7624. ac_status=$?
  7625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7626. (exit $ac_status); }; }; then
  7627. ac_cv_lib_dld_dld_link=yes
  7628. else
  7629. echo "$as_me: failed program was:" >&5
  7630. sed 's/^/| /' conftest.$ac_ext >&5
  7631. ac_cv_lib_dld_dld_link=no
  7632. fi
  7633. rm -f conftest.err conftest.$ac_objext \
  7634. conftest$ac_exeext conftest.$ac_ext
  7635. LIBS=$ac_check_lib_save_LIBS
  7636. fi
  7637. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  7638. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  7639. if test $ac_cv_lib_dld_dld_link = yes; then
  7640. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  7641. fi
  7642. fi
  7643. fi
  7644. fi
  7645. fi
  7646. fi
  7647. ;;
  7648. esac
  7649. if test "x$lt_cv_dlopen" != xno; then
  7650. enable_dlopen=yes
  7651. else
  7652. enable_dlopen=no
  7653. fi
  7654. case $lt_cv_dlopen in
  7655. dlopen)
  7656. save_CPPFLAGS="$CPPFLAGS"
  7657. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  7658. save_LDFLAGS="$LDFLAGS"
  7659. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  7660. save_LIBS="$LIBS"
  7661. LIBS="$lt_cv_dlopen_libs $LIBS"
  7662. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  7663. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  7664. if test "${lt_cv_dlopen_self+set}" = set; then
  7665. echo $ECHO_N "(cached) $ECHO_C" >&6
  7666. else
  7667. if test "$cross_compiling" = yes; then :
  7668. lt_cv_dlopen_self=cross
  7669. else
  7670. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7671. lt_status=$lt_dlunknown
  7672. cat > conftest.$ac_ext <<EOF
  7673. #line 8427 "configure"
  7674. #include "confdefs.h"
  7675. #if HAVE_DLFCN_H
  7676. #include <dlfcn.h>
  7677. #endif
  7678. #include <stdio.h>
  7679. #ifdef RTLD_GLOBAL
  7680. # define LT_DLGLOBAL RTLD_GLOBAL
  7681. #else
  7682. # ifdef DL_GLOBAL
  7683. # define LT_DLGLOBAL DL_GLOBAL
  7684. # else
  7685. # define LT_DLGLOBAL 0
  7686. # endif
  7687. #endif
  7688. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7689. find out it does not work in some platform. */
  7690. #ifndef LT_DLLAZY_OR_NOW
  7691. # ifdef RTLD_LAZY
  7692. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7693. # else
  7694. # ifdef DL_LAZY
  7695. # define LT_DLLAZY_OR_NOW DL_LAZY
  7696. # else
  7697. # ifdef RTLD_NOW
  7698. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7699. # else
  7700. # ifdef DL_NOW
  7701. # define LT_DLLAZY_OR_NOW DL_NOW
  7702. # else
  7703. # define LT_DLLAZY_OR_NOW 0
  7704. # endif
  7705. # endif
  7706. # endif
  7707. # endif
  7708. #endif
  7709. #ifdef __cplusplus
  7710. extern "C" void exit (int);
  7711. #endif
  7712. void fnord() { int i=42;}
  7713. int main ()
  7714. {
  7715. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7716. int status = $lt_dlunknown;
  7717. if (self)
  7718. {
  7719. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7720. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7721. /* dlclose (self); */
  7722. }
  7723. else
  7724. puts (dlerror ());
  7725. exit (status);
  7726. }
  7727. EOF
  7728. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7729. (eval $ac_link) 2>&5
  7730. ac_status=$?
  7731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7732. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7733. (./conftest; exit; ) >&5 2>/dev/null
  7734. lt_status=$?
  7735. case x$lt_status in
  7736. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  7737. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  7738. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  7739. esac
  7740. else :
  7741. # compilation failed
  7742. lt_cv_dlopen_self=no
  7743. fi
  7744. fi
  7745. rm -fr conftest*
  7746. fi
  7747. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  7748. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  7749. if test "x$lt_cv_dlopen_self" = xyes; then
  7750. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  7751. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  7752. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  7753. if test "${lt_cv_dlopen_self_static+set}" = set; then
  7754. echo $ECHO_N "(cached) $ECHO_C" >&6
  7755. else
  7756. if test "$cross_compiling" = yes; then :
  7757. lt_cv_dlopen_self_static=cross
  7758. else
  7759. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7760. lt_status=$lt_dlunknown
  7761. cat > conftest.$ac_ext <<EOF
  7762. #line 8527 "configure"
  7763. #include "confdefs.h"
  7764. #if HAVE_DLFCN_H
  7765. #include <dlfcn.h>
  7766. #endif
  7767. #include <stdio.h>
  7768. #ifdef RTLD_GLOBAL
  7769. # define LT_DLGLOBAL RTLD_GLOBAL
  7770. #else
  7771. # ifdef DL_GLOBAL
  7772. # define LT_DLGLOBAL DL_GLOBAL
  7773. # else
  7774. # define LT_DLGLOBAL 0
  7775. # endif
  7776. #endif
  7777. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7778. find out it does not work in some platform. */
  7779. #ifndef LT_DLLAZY_OR_NOW
  7780. # ifdef RTLD_LAZY
  7781. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7782. # else
  7783. # ifdef DL_LAZY
  7784. # define LT_DLLAZY_OR_NOW DL_LAZY
  7785. # else
  7786. # ifdef RTLD_NOW
  7787. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7788. # else
  7789. # ifdef DL_NOW
  7790. # define LT_DLLAZY_OR_NOW DL_NOW
  7791. # else
  7792. # define LT_DLLAZY_OR_NOW 0
  7793. # endif
  7794. # endif
  7795. # endif
  7796. # endif
  7797. #endif
  7798. #ifdef __cplusplus
  7799. extern "C" void exit (int);
  7800. #endif
  7801. void fnord() { int i=42;}
  7802. int main ()
  7803. {
  7804. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7805. int status = $lt_dlunknown;
  7806. if (self)
  7807. {
  7808. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7809. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7810. /* dlclose (self); */
  7811. }
  7812. else
  7813. puts (dlerror ());
  7814. exit (status);
  7815. }
  7816. EOF
  7817. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7818. (eval $ac_link) 2>&5
  7819. ac_status=$?
  7820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7821. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7822. (./conftest; exit; ) >&5 2>/dev/null
  7823. lt_status=$?
  7824. case x$lt_status in
  7825. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  7826. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  7827. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  7828. esac
  7829. else :
  7830. # compilation failed
  7831. lt_cv_dlopen_self_static=no
  7832. fi
  7833. fi
  7834. rm -fr conftest*
  7835. fi
  7836. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  7837. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  7838. fi
  7839. CPPFLAGS="$save_CPPFLAGS"
  7840. LDFLAGS="$save_LDFLAGS"
  7841. LIBS="$save_LIBS"
  7842. ;;
  7843. esac
  7844. case $lt_cv_dlopen_self in
  7845. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  7846. *) enable_dlopen_self=unknown ;;
  7847. esac
  7848. case $lt_cv_dlopen_self_static in
  7849. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  7850. *) enable_dlopen_self_static=unknown ;;
  7851. esac
  7852. fi
  7853. # Report which library types will actually be built
  7854. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  7855. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  7856. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  7857. echo "${ECHO_T}$can_build_shared" >&6
  7858. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  7859. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  7860. test "$can_build_shared" = "no" && enable_shared=no
  7861. # On AIX, shared libraries and static libraries use the same namespace, and
  7862. # are all built from PIC.
  7863. case $host_os in
  7864. aix3*)
  7865. test "$enable_shared" = yes && enable_static=no
  7866. if test -n "$RANLIB"; then
  7867. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7868. postinstall_cmds='$RANLIB $lib'
  7869. fi
  7870. ;;
  7871. aix4* | aix5*)
  7872. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7873. test "$enable_shared" = yes && enable_static=no
  7874. fi
  7875. ;;
  7876. esac
  7877. echo "$as_me:$LINENO: result: $enable_shared" >&5
  7878. echo "${ECHO_T}$enable_shared" >&6
  7879. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  7880. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  7881. # Make sure either enable_shared or enable_static is yes.
  7882. test "$enable_shared" = yes || enable_static=yes
  7883. echo "$as_me:$LINENO: result: $enable_static" >&5
  7884. echo "${ECHO_T}$enable_static" >&6
  7885. # The else clause should only fire when bootstrapping the
  7886. # libtool distribution, otherwise you forgot to ship ltmain.sh
  7887. # with your package, and you will get complaints that there are
  7888. # no rules to generate ltmain.sh.
  7889. if test -f "$ltmain"; then
  7890. # See if we are running on zsh, and set the options which allow our commands through
  7891. # without removal of \ escapes.
  7892. if test -n "${ZSH_VERSION+set}" ; then
  7893. setopt NO_GLOB_SUBST
  7894. fi
  7895. # Now quote all the things that may contain metacharacters while being
  7896. # careful not to overquote the AC_SUBSTed values. We take copies of the
  7897. # variables and quote the copies for generation of the libtool script.
  7898. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  7899. SED SHELL STRIP \
  7900. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  7901. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  7902. deplibs_check_method reload_flag reload_cmds need_locks \
  7903. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  7904. lt_cv_sys_global_symbol_to_c_name_address \
  7905. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7906. old_postinstall_cmds old_postuninstall_cmds \
  7907. compiler \
  7908. CC \
  7909. LD \
  7910. lt_prog_compiler_wl \
  7911. lt_prog_compiler_pic \
  7912. lt_prog_compiler_static \
  7913. lt_prog_compiler_no_builtin_flag \
  7914. export_dynamic_flag_spec \
  7915. thread_safe_flag_spec \
  7916. whole_archive_flag_spec \
  7917. enable_shared_with_static_runtimes \
  7918. old_archive_cmds \
  7919. old_archive_from_new_cmds \
  7920. predep_objects \
  7921. postdep_objects \
  7922. predeps \
  7923. postdeps \
  7924. compiler_lib_search_path \
  7925. archive_cmds \
  7926. archive_expsym_cmds \
  7927. postinstall_cmds \
  7928. postuninstall_cmds \
  7929. old_archive_from_expsyms_cmds \
  7930. allow_undefined_flag \
  7931. no_undefined_flag \
  7932. export_symbols_cmds \
  7933. hardcode_libdir_flag_spec \
  7934. hardcode_libdir_flag_spec_ld \
  7935. hardcode_libdir_separator \
  7936. hardcode_automatic \
  7937. module_cmds \
  7938. module_expsym_cmds \
  7939. lt_cv_prog_compiler_c_o \
  7940. exclude_expsyms \
  7941. include_expsyms; do
  7942. case $var in
  7943. old_archive_cmds | \
  7944. old_archive_from_new_cmds | \
  7945. archive_cmds | \
  7946. archive_expsym_cmds | \
  7947. module_cmds | \
  7948. module_expsym_cmds | \
  7949. old_archive_from_expsyms_cmds | \
  7950. export_symbols_cmds | \
  7951. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7952. postinstall_cmds | postuninstall_cmds | \
  7953. old_postinstall_cmds | old_postuninstall_cmds | \
  7954. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7955. # Double-quote double-evaled strings.
  7956. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7957. ;;
  7958. *)
  7959. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7960. ;;
  7961. esac
  7962. done
  7963. case $lt_echo in
  7964. *'\$0 --fallback-echo"')
  7965. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  7966. ;;
  7967. esac
  7968. cfgfile="${ofile}T"
  7969. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7970. $rm -f "$cfgfile"
  7971. { echo "$as_me:$LINENO: creating $ofile" >&5
  7972. echo "$as_me: creating $ofile" >&6;}
  7973. cat <<__EOF__ >> "$cfgfile"
  7974. #! $SHELL
  7975. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7976. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7977. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7978. #
  7979. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7980. # Free Software Foundation, Inc.
  7981. #
  7982. # This file is part of GNU Libtool:
  7983. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7984. #
  7985. # This program is free software; you can redistribute it and/or modify
  7986. # it under the terms of the GNU General Public License as published by
  7987. # the Free Software Foundation; either version 2 of the License, or
  7988. # (at your option) any later version.
  7989. #
  7990. # This program is distributed in the hope that it will be useful, but
  7991. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7992. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7993. # General Public License for more details.
  7994. #
  7995. # You should have received a copy of the GNU General Public License
  7996. # along with this program; if not, write to the Free Software
  7997. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7998. #
  7999. # As a special exception to the GNU General Public License, if you
  8000. # distribute this file as part of a program that contains a
  8001. # configuration script generated by Autoconf, you may include it under
  8002. # the same distribution terms that you use for the rest of that program.
  8003. # A sed program that does not truncate output.
  8004. SED=$lt_SED
  8005. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8006. Xsed="$SED -e 1s/^X//"
  8007. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8008. # if CDPATH is set.
  8009. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8010. # The names of the tagged configurations supported by this script.
  8011. available_tags=
  8012. # ### BEGIN LIBTOOL CONFIG
  8013. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8014. # Shell to use when invoking shell scripts.
  8015. SHELL=$lt_SHELL
  8016. # Whether or not to build shared libraries.
  8017. build_libtool_libs=$enable_shared
  8018. # Whether or not to build static libraries.
  8019. build_old_libs=$enable_static
  8020. # Whether or not to add -lc for building shared libraries.
  8021. build_libtool_need_lc=$archive_cmds_need_lc
  8022. # Whether or not to disallow shared libs when runtime libs are static
  8023. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8024. # Whether or not to optimize for fast installation.
  8025. fast_install=$enable_fast_install
  8026. # The host system.
  8027. host_alias=$host_alias
  8028. host=$host
  8029. host_os=$host_os
  8030. # The build system.
  8031. build_alias=$build_alias
  8032. build=$build
  8033. build_os=$build_os
  8034. # An echo program that does not interpret backslashes.
  8035. echo=$lt_echo
  8036. # The archiver.
  8037. AR=$lt_AR
  8038. AR_FLAGS=$lt_AR_FLAGS
  8039. # A C compiler.
  8040. LTCC=$lt_LTCC
  8041. # LTCC compiler flags.
  8042. LTCFLAGS=$lt_LTCFLAGS
  8043. # A language-specific compiler.
  8044. CC=$lt_compiler
  8045. # Is the compiler the GNU C compiler?
  8046. with_gcc=$GCC
  8047. # An ERE matcher.
  8048. EGREP=$lt_EGREP
  8049. # The linker used to build libraries.
  8050. LD=$lt_LD
  8051. # Whether we need hard or soft links.
  8052. LN_S=$lt_LN_S
  8053. # A BSD-compatible nm program.
  8054. NM=$lt_NM
  8055. # A symbol stripping program
  8056. STRIP=$lt_STRIP
  8057. # Used to examine libraries when file_magic_cmd begins "file"
  8058. MAGIC_CMD=$MAGIC_CMD
  8059. # Used on cygwin: DLL creation program.
  8060. DLLTOOL="$DLLTOOL"
  8061. # Used on cygwin: object dumper.
  8062. OBJDUMP="$OBJDUMP"
  8063. # Used on cygwin: assembler.
  8064. AS="$AS"
  8065. # The name of the directory that contains temporary libtool files.
  8066. objdir=$objdir
  8067. # How to create reloadable object files.
  8068. reload_flag=$lt_reload_flag
  8069. reload_cmds=$lt_reload_cmds
  8070. # How to pass a linker flag through the compiler.
  8071. wl=$lt_lt_prog_compiler_wl
  8072. # Object file suffix (normally "o").
  8073. objext="$ac_objext"
  8074. # Old archive suffix (normally "a").
  8075. libext="$libext"
  8076. # Shared library suffix (normally ".so").
  8077. shrext_cmds='$shrext_cmds'
  8078. # Executable file suffix (normally "").
  8079. exeext="$exeext"
  8080. # Additional compiler flags for building library objects.
  8081. pic_flag=$lt_lt_prog_compiler_pic
  8082. pic_mode=$pic_mode
  8083. # What is the maximum length of a command?
  8084. max_cmd_len=$lt_cv_sys_max_cmd_len
  8085. # Does compiler simultaneously support -c and -o options?
  8086. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8087. # Must we lock files when doing compilation?
  8088. need_locks=$lt_need_locks
  8089. # Do we need the lib prefix for modules?
  8090. need_lib_prefix=$need_lib_prefix
  8091. # Do we need a version for libraries?
  8092. need_version=$need_version
  8093. # Whether dlopen is supported.
  8094. dlopen_support=$enable_dlopen
  8095. # Whether dlopen of programs is supported.
  8096. dlopen_self=$enable_dlopen_self
  8097. # Whether dlopen of statically linked programs is supported.
  8098. dlopen_self_static=$enable_dlopen_self_static
  8099. # Compiler flag to prevent dynamic linking.
  8100. link_static_flag=$lt_lt_prog_compiler_static
  8101. # Compiler flag to turn off builtin functions.
  8102. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8103. # Compiler flag to allow reflexive dlopens.
  8104. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8105. # Compiler flag to generate shared objects directly from archives.
  8106. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8107. # Compiler flag to generate thread-safe objects.
  8108. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8109. # Library versioning type.
  8110. version_type=$version_type
  8111. # Format of library name prefix.
  8112. libname_spec=$lt_libname_spec
  8113. # List of archive names. First name is the real one, the rest are links.
  8114. # The last name is the one that the linker finds with -lNAME.
  8115. library_names_spec=$lt_library_names_spec
  8116. # The coded name of the library, if different from the real name.
  8117. soname_spec=$lt_soname_spec
  8118. # Commands used to build and install an old-style archive.
  8119. RANLIB=$lt_RANLIB
  8120. old_archive_cmds=$lt_old_archive_cmds
  8121. old_postinstall_cmds=$lt_old_postinstall_cmds
  8122. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8123. # Create an old-style archive from a shared archive.
  8124. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8125. # Create a temporary old-style archive to link instead of a shared archive.
  8126. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8127. # Commands used to build and install a shared archive.
  8128. archive_cmds=$lt_archive_cmds
  8129. archive_expsym_cmds=$lt_archive_expsym_cmds
  8130. postinstall_cmds=$lt_postinstall_cmds
  8131. postuninstall_cmds=$lt_postuninstall_cmds
  8132. # Commands used to build a loadable module (assumed same as above if empty)
  8133. module_cmds=$lt_module_cmds
  8134. module_expsym_cmds=$lt_module_expsym_cmds
  8135. # Commands to strip libraries.
  8136. old_striplib=$lt_old_striplib
  8137. striplib=$lt_striplib
  8138. # Dependencies to place before the objects being linked to create a
  8139. # shared library.
  8140. predep_objects=$lt_predep_objects
  8141. # Dependencies to place after the objects being linked to create a
  8142. # shared library.
  8143. postdep_objects=$lt_postdep_objects
  8144. # Dependencies to place before the objects being linked to create a
  8145. # shared library.
  8146. predeps=$lt_predeps
  8147. # Dependencies to place after the objects being linked to create a
  8148. # shared library.
  8149. postdeps=$lt_postdeps
  8150. # The library search path used internally by the compiler when linking
  8151. # a shared library.
  8152. compiler_lib_search_path=$lt_compiler_lib_search_path
  8153. # Method to check whether dependent libraries are shared objects.
  8154. deplibs_check_method=$lt_deplibs_check_method
  8155. # Command to use when deplibs_check_method == file_magic.
  8156. file_magic_cmd=$lt_file_magic_cmd
  8157. # Flag that allows shared libraries with undefined symbols to be built.
  8158. allow_undefined_flag=$lt_allow_undefined_flag
  8159. # Flag that forces no undefined symbols.
  8160. no_undefined_flag=$lt_no_undefined_flag
  8161. # Commands used to finish a libtool library installation in a directory.
  8162. finish_cmds=$lt_finish_cmds
  8163. # Same as above, but a single script fragment to be evaled but not shown.
  8164. finish_eval=$lt_finish_eval
  8165. # Take the output of nm and produce a listing of raw symbols and C names.
  8166. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8167. # Transform the output of nm in a proper C declaration
  8168. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8169. # Transform the output of nm in a C name address pair
  8170. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8171. # This is the shared library runtime path variable.
  8172. runpath_var=$runpath_var
  8173. # This is the shared library path variable.
  8174. shlibpath_var=$shlibpath_var
  8175. # Is shlibpath searched before the hard-coded library search path?
  8176. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8177. # How to hardcode a shared library path into an executable.
  8178. hardcode_action=$hardcode_action
  8179. # Whether we should hardcode library paths into libraries.
  8180. hardcode_into_libs=$hardcode_into_libs
  8181. # Flag to hardcode \$libdir into a binary during linking.
  8182. # This must work even if \$libdir does not exist.
  8183. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8184. # If ld is used when linking, flag to hardcode \$libdir into
  8185. # a binary during linking. This must work even if \$libdir does
  8186. # not exist.
  8187. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8188. # Whether we need a single -rpath flag with a separated argument.
  8189. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8190. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8191. # resulting binary.
  8192. hardcode_direct=$hardcode_direct
  8193. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8194. # resulting binary.
  8195. hardcode_minus_L=$hardcode_minus_L
  8196. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8197. # the resulting binary.
  8198. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8199. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8200. # and all subsequent libraries and executables linked against it.
  8201. hardcode_automatic=$hardcode_automatic
  8202. # Variables whose values should be saved in libtool wrapper scripts and
  8203. # restored at relink time.
  8204. variables_saved_for_relink="$variables_saved_for_relink"
  8205. # Whether libtool must link a program against all its dependency libraries.
  8206. link_all_deplibs=$link_all_deplibs
  8207. # Compile-time system search path for libraries
  8208. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8209. # Run-time system search path for libraries
  8210. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8211. # Fix the shell variable \$srcfile for the compiler.
  8212. fix_srcfile_path="$fix_srcfile_path"
  8213. # Set to yes if exported symbols are required.
  8214. always_export_symbols=$always_export_symbols
  8215. # The commands to list exported symbols.
  8216. export_symbols_cmds=$lt_export_symbols_cmds
  8217. # The commands to extract the exported symbol list from a shared archive.
  8218. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8219. # Symbols that should not be listed in the preloaded symbols.
  8220. exclude_expsyms=$lt_exclude_expsyms
  8221. # Symbols that must always be exported.
  8222. include_expsyms=$lt_include_expsyms
  8223. # ### END LIBTOOL CONFIG
  8224. __EOF__
  8225. case $host_os in
  8226. aix3*)
  8227. cat <<\EOF >> "$cfgfile"
  8228. # AIX sometimes has problems with the GCC collect2 program. For some
  8229. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8230. # vanish in a puff of smoke.
  8231. if test "X${COLLECT_NAMES+set}" != Xset; then
  8232. COLLECT_NAMES=
  8233. export COLLECT_NAMES
  8234. fi
  8235. EOF
  8236. ;;
  8237. esac
  8238. # We use sed instead of cat because bash on DJGPP gets confused if
  8239. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8240. # text mode, it properly converts lines to CR/LF. This bash problem
  8241. # is reportedly fixed, but why not run on old versions too?
  8242. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8243. mv -f "$cfgfile" "$ofile" || \
  8244. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8245. chmod +x "$ofile"
  8246. else
  8247. # If there is no Makefile yet, we rely on a make rule to execute
  8248. # `config.status --recheck' to rerun these tests and create the
  8249. # libtool script then.
  8250. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8251. if test -f "$ltmain_in"; then
  8252. test -f Makefile && make "$ltmain"
  8253. fi
  8254. fi
  8255. ac_ext=c
  8256. ac_cpp='$CPP $CPPFLAGS'
  8257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8260. CC="$lt_save_CC"
  8261. # Check whether --with-tags or --without-tags was given.
  8262. if test "${with_tags+set}" = set; then
  8263. withval="$with_tags"
  8264. tagnames="$withval"
  8265. fi;
  8266. if test -f "$ltmain" && test -n "$tagnames"; then
  8267. if test ! -f "${ofile}"; then
  8268. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8269. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8270. fi
  8271. if test -z "$LTCC"; then
  8272. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8273. if test -z "$LTCC"; then
  8274. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8275. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8276. else
  8277. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8278. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8279. fi
  8280. fi
  8281. if test -z "$LTCFLAGS"; then
  8282. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  8283. fi
  8284. # Extract list of available tagged configurations in $ofile.
  8285. # Note that this assumes the entire list is on one line.
  8286. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8287. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8288. for tagname in $tagnames; do
  8289. IFS="$lt_save_ifs"
  8290. # Check whether tagname contains only valid characters
  8291. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8292. "") ;;
  8293. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8294. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8295. { (exit 1); exit 1; }; }
  8296. ;;
  8297. esac
  8298. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8299. then
  8300. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8301. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8302. { (exit 1); exit 1; }; }
  8303. fi
  8304. # Update the list of available tags.
  8305. if test -n "$tagname"; then
  8306. echo appending configuration tag \"$tagname\" to $ofile
  8307. case $tagname in
  8308. CXX)
  8309. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8310. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8311. (test "X$CXX" != "Xg++"))) ; then
  8312. ac_ext=cc
  8313. ac_cpp='$CXXCPP $CPPFLAGS'
  8314. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8315. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8316. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8317. archive_cmds_need_lc_CXX=no
  8318. allow_undefined_flag_CXX=
  8319. always_export_symbols_CXX=no
  8320. archive_expsym_cmds_CXX=
  8321. export_dynamic_flag_spec_CXX=
  8322. hardcode_direct_CXX=no
  8323. hardcode_libdir_flag_spec_CXX=
  8324. hardcode_libdir_flag_spec_ld_CXX=
  8325. hardcode_libdir_separator_CXX=
  8326. hardcode_minus_L_CXX=no
  8327. hardcode_shlibpath_var_CXX=unsupported
  8328. hardcode_automatic_CXX=no
  8329. module_cmds_CXX=
  8330. module_expsym_cmds_CXX=
  8331. link_all_deplibs_CXX=unknown
  8332. old_archive_cmds_CXX=$old_archive_cmds
  8333. no_undefined_flag_CXX=
  8334. whole_archive_flag_spec_CXX=
  8335. enable_shared_with_static_runtimes_CXX=no
  8336. # Dependencies to place before and after the object being linked:
  8337. predep_objects_CXX=
  8338. postdep_objects_CXX=
  8339. predeps_CXX=
  8340. postdeps_CXX=
  8341. compiler_lib_search_path_CXX=
  8342. # Source file extension for C++ test sources.
  8343. ac_ext=cpp
  8344. # Object file extension for compiled C++ test sources.
  8345. objext=o
  8346. objext_CXX=$objext
  8347. # Code to be used in simple compile tests
  8348. lt_simple_compile_test_code="int some_variable = 0;\n"
  8349. # Code to be used in simple link tests
  8350. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  8351. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8352. # If no C compiler was specified, use CC.
  8353. LTCC=${LTCC-"$CC"}
  8354. # If no C compiler flags were specified, use CFLAGS.
  8355. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8356. # Allow CC to be a program name with arguments.
  8357. compiler=$CC
  8358. # save warnings/boilerplate of simple test code
  8359. ac_outfile=conftest.$ac_objext
  8360. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8361. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8362. _lt_compiler_boilerplate=`cat conftest.err`
  8363. $rm conftest*
  8364. ac_outfile=conftest.$ac_objext
  8365. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8366. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8367. _lt_linker_boilerplate=`cat conftest.err`
  8368. $rm conftest*
  8369. # Allow CC to be a program name with arguments.
  8370. lt_save_CC=$CC
  8371. lt_save_LD=$LD
  8372. lt_save_GCC=$GCC
  8373. GCC=$GXX
  8374. lt_save_with_gnu_ld=$with_gnu_ld
  8375. lt_save_path_LD=$lt_cv_path_LD
  8376. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8377. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8378. else
  8379. $as_unset lt_cv_prog_gnu_ld
  8380. fi
  8381. if test -n "${lt_cv_path_LDCXX+set}"; then
  8382. lt_cv_path_LD=$lt_cv_path_LDCXX
  8383. else
  8384. $as_unset lt_cv_path_LD
  8385. fi
  8386. test -z "${LDCXX+set}" || LD=$LDCXX
  8387. CC=${CXX-"c++"}
  8388. compiler=$CC
  8389. compiler_CXX=$CC
  8390. for cc_temp in $compiler""; do
  8391. case $cc_temp in
  8392. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8393. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8394. \-*) ;;
  8395. *) break;;
  8396. esac
  8397. done
  8398. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8399. # We don't want -fno-exception wen compiling C++ code, so set the
  8400. # no_builtin_flag separately
  8401. if test "$GXX" = yes; then
  8402. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8403. else
  8404. lt_prog_compiler_no_builtin_flag_CXX=
  8405. fi
  8406. if test "$GXX" = yes; then
  8407. # Set up default GNU C++ configuration
  8408. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8409. if test "${with_gnu_ld+set}" = set; then
  8410. withval="$with_gnu_ld"
  8411. test "$withval" = no || with_gnu_ld=yes
  8412. else
  8413. with_gnu_ld=no
  8414. fi;
  8415. ac_prog=ld
  8416. if test "$GCC" = yes; then
  8417. # Check if gcc -print-prog-name=ld gives a path.
  8418. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8419. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8420. case $host in
  8421. *-*-mingw*)
  8422. # gcc leaves a trailing carriage return which upsets mingw
  8423. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8424. *)
  8425. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8426. esac
  8427. case $ac_prog in
  8428. # Accept absolute paths.
  8429. [\\/]* | ?:[\\/]*)
  8430. re_direlt='/[^/][^/]*/\.\./'
  8431. # Canonicalize the pathname of ld
  8432. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8433. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8434. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8435. done
  8436. test -z "$LD" && LD="$ac_prog"
  8437. ;;
  8438. "")
  8439. # If it fails, then pretend we aren't using GCC.
  8440. ac_prog=ld
  8441. ;;
  8442. *)
  8443. # If it is relative, then search for the first ld in PATH.
  8444. with_gnu_ld=unknown
  8445. ;;
  8446. esac
  8447. elif test "$with_gnu_ld" = yes; then
  8448. echo "$as_me:$LINENO: checking for GNU ld" >&5
  8449. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8450. else
  8451. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8452. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8453. fi
  8454. if test "${lt_cv_path_LD+set}" = set; then
  8455. echo $ECHO_N "(cached) $ECHO_C" >&6
  8456. else
  8457. if test -z "$LD"; then
  8458. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8459. for ac_dir in $PATH; do
  8460. IFS="$lt_save_ifs"
  8461. test -z "$ac_dir" && ac_dir=.
  8462. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8463. lt_cv_path_LD="$ac_dir/$ac_prog"
  8464. # Check to see if the program is GNU ld. I'd rather use --version,
  8465. # but apparently some variants of GNU ld only accept -v.
  8466. # Break only if it was the GNU/non-GNU ld that we prefer.
  8467. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8468. *GNU* | *'with BFD'*)
  8469. test "$with_gnu_ld" != no && break
  8470. ;;
  8471. *)
  8472. test "$with_gnu_ld" != yes && break
  8473. ;;
  8474. esac
  8475. fi
  8476. done
  8477. IFS="$lt_save_ifs"
  8478. else
  8479. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8480. fi
  8481. fi
  8482. LD="$lt_cv_path_LD"
  8483. if test -n "$LD"; then
  8484. echo "$as_me:$LINENO: result: $LD" >&5
  8485. echo "${ECHO_T}$LD" >&6
  8486. else
  8487. echo "$as_me:$LINENO: result: no" >&5
  8488. echo "${ECHO_T}no" >&6
  8489. fi
  8490. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8491. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8492. { (exit 1); exit 1; }; }
  8493. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8494. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8495. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  8496. echo $ECHO_N "(cached) $ECHO_C" >&6
  8497. else
  8498. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  8499. case `$LD -v 2>&1 </dev/null` in
  8500. *GNU* | *'with BFD'*)
  8501. lt_cv_prog_gnu_ld=yes
  8502. ;;
  8503. *)
  8504. lt_cv_prog_gnu_ld=no
  8505. ;;
  8506. esac
  8507. fi
  8508. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  8509. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  8510. with_gnu_ld=$lt_cv_prog_gnu_ld
  8511. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8512. # archiving commands below assume that GNU ld is being used.
  8513. if test "$with_gnu_ld" = yes; then
  8514. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8515. 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'
  8516. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8517. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8518. # If archive_cmds runs LD, not CC, wlarc should be empty
  8519. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8520. # investigate it a little bit more. (MM)
  8521. wlarc='${wl}'
  8522. # ancient GNU ld didn't support --whole-archive et. al.
  8523. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  8524. grep 'no-whole-archive' > /dev/null; then
  8525. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8526. else
  8527. whole_archive_flag_spec_CXX=
  8528. fi
  8529. else
  8530. with_gnu_ld=no
  8531. wlarc=
  8532. # A generic and very simple default shared library creation
  8533. # command for GNU C++ for the case where it uses the native
  8534. # linker, instead of GNU ld. If possible, this setting should
  8535. # overridden to take advantage of the native linker features on
  8536. # the platform it is being used on.
  8537. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8538. fi
  8539. # Commands to make compiler produce verbose output that lists
  8540. # what "hidden" libraries, object files and flags are used when
  8541. # linking a shared library.
  8542. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  8543. else
  8544. GXX=no
  8545. with_gnu_ld=no
  8546. wlarc=
  8547. fi
  8548. # PORTME: fill in a description of your system's C++ link characteristics
  8549. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8550. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  8551. ld_shlibs_CXX=yes
  8552. case $host_os in
  8553. aix3*)
  8554. # FIXME: insert proper C++ library support
  8555. ld_shlibs_CXX=no
  8556. ;;
  8557. aix4* | aix5*)
  8558. if test "$host_cpu" = ia64; then
  8559. # On IA64, the linker does run time linking by default, so we don't
  8560. # have to do anything special.
  8561. aix_use_runtimelinking=no
  8562. exp_sym_flag='-Bexport'
  8563. no_entry_flag=""
  8564. else
  8565. aix_use_runtimelinking=no
  8566. # Test if we are trying to use run time linking or normal
  8567. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8568. # need to do runtime linking.
  8569. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8570. for ld_flag in $LDFLAGS; do
  8571. case $ld_flag in
  8572. *-brtl*)
  8573. aix_use_runtimelinking=yes
  8574. break
  8575. ;;
  8576. esac
  8577. done
  8578. ;;
  8579. esac
  8580. exp_sym_flag='-bexport'
  8581. no_entry_flag='-bnoentry'
  8582. fi
  8583. # When large executables or shared objects are built, AIX ld can
  8584. # have problems creating the table of contents. If linking a library
  8585. # or program results in "error TOC overflow" add -mminimal-toc to
  8586. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8587. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8588. archive_cmds_CXX=''
  8589. hardcode_direct_CXX=yes
  8590. hardcode_libdir_separator_CXX=':'
  8591. link_all_deplibs_CXX=yes
  8592. if test "$GXX" = yes; then
  8593. case $host_os in aix4.[012]|aix4.[012].*)
  8594. # We only want to do this on AIX 4.2 and lower, the check
  8595. # below for broken collect2 doesn't work under 4.3+
  8596. collect2name=`${CC} -print-prog-name=collect2`
  8597. if test -f "$collect2name" && \
  8598. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8599. then
  8600. # We have reworked collect2
  8601. hardcode_direct_CXX=yes
  8602. else
  8603. # We have old collect2
  8604. hardcode_direct_CXX=unsupported
  8605. # It fails to find uninstalled libraries when the uninstalled
  8606. # path is not listed in the libpath. Setting hardcode_minus_L
  8607. # to unsupported forces relinking
  8608. hardcode_minus_L_CXX=yes
  8609. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8610. hardcode_libdir_separator_CXX=
  8611. fi
  8612. ;;
  8613. esac
  8614. shared_flag='-shared'
  8615. if test "$aix_use_runtimelinking" = yes; then
  8616. shared_flag="$shared_flag "'${wl}-G'
  8617. fi
  8618. else
  8619. # not using gcc
  8620. if test "$host_cpu" = ia64; then
  8621. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8622. # chokes on -Wl,-G. The following line is correct:
  8623. shared_flag='-G'
  8624. else
  8625. if test "$aix_use_runtimelinking" = yes; then
  8626. shared_flag='${wl}-G'
  8627. else
  8628. shared_flag='${wl}-bM:SRE'
  8629. fi
  8630. fi
  8631. fi
  8632. # It seems that -bexpall does not export symbols beginning with
  8633. # underscore (_), so it is better to generate a list of symbols to export.
  8634. always_export_symbols_CXX=yes
  8635. if test "$aix_use_runtimelinking" = yes; then
  8636. # Warning - without using the other runtime loading flags (-brtl),
  8637. # -berok will link without error, but may produce a broken library.
  8638. allow_undefined_flag_CXX='-berok'
  8639. # Determine the default libpath from the value encoded in an empty executable.
  8640. cat >conftest.$ac_ext <<_ACEOF
  8641. /* confdefs.h. */
  8642. _ACEOF
  8643. cat confdefs.h >>conftest.$ac_ext
  8644. cat >>conftest.$ac_ext <<_ACEOF
  8645. /* end confdefs.h. */
  8646. int
  8647. main ()
  8648. {
  8649. ;
  8650. return 0;
  8651. }
  8652. _ACEOF
  8653. rm -f conftest.$ac_objext conftest$ac_exeext
  8654. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8655. (eval $ac_link) 2>conftest.er1
  8656. ac_status=$?
  8657. grep -v '^ *+' conftest.er1 >conftest.err
  8658. rm -f conftest.er1
  8659. cat conftest.err >&5
  8660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8661. (exit $ac_status); } &&
  8662. { ac_try='test -z "$ac_cxx_werror_flag"
  8663. || test ! -s conftest.err'
  8664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8665. (eval $ac_try) 2>&5
  8666. ac_status=$?
  8667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8668. (exit $ac_status); }; } &&
  8669. { ac_try='test -s conftest$ac_exeext'
  8670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8671. (eval $ac_try) 2>&5
  8672. ac_status=$?
  8673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8674. (exit $ac_status); }; }; then
  8675. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8676. }'`
  8677. # Check for a 64-bit object if we didn't find anything.
  8678. 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; }
  8679. }'`; fi
  8680. else
  8681. echo "$as_me: failed program was:" >&5
  8682. sed 's/^/| /' conftest.$ac_ext >&5
  8683. fi
  8684. rm -f conftest.err conftest.$ac_objext \
  8685. conftest$ac_exeext conftest.$ac_ext
  8686. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8687. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8688. 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"
  8689. else
  8690. if test "$host_cpu" = ia64; then
  8691. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  8692. allow_undefined_flag_CXX="-z nodefs"
  8693. 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"
  8694. else
  8695. # Determine the default libpath from the value encoded in an empty executable.
  8696. cat >conftest.$ac_ext <<_ACEOF
  8697. /* confdefs.h. */
  8698. _ACEOF
  8699. cat confdefs.h >>conftest.$ac_ext
  8700. cat >>conftest.$ac_ext <<_ACEOF
  8701. /* end confdefs.h. */
  8702. int
  8703. main ()
  8704. {
  8705. ;
  8706. return 0;
  8707. }
  8708. _ACEOF
  8709. rm -f conftest.$ac_objext conftest$ac_exeext
  8710. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8711. (eval $ac_link) 2>conftest.er1
  8712. ac_status=$?
  8713. grep -v '^ *+' conftest.er1 >conftest.err
  8714. rm -f conftest.er1
  8715. cat conftest.err >&5
  8716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8717. (exit $ac_status); } &&
  8718. { ac_try='test -z "$ac_cxx_werror_flag"
  8719. || test ! -s conftest.err'
  8720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8721. (eval $ac_try) 2>&5
  8722. ac_status=$?
  8723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8724. (exit $ac_status); }; } &&
  8725. { ac_try='test -s conftest$ac_exeext'
  8726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8727. (eval $ac_try) 2>&5
  8728. ac_status=$?
  8729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8730. (exit $ac_status); }; }; then
  8731. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8732. }'`
  8733. # Check for a 64-bit object if we didn't find anything.
  8734. 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; }
  8735. }'`; fi
  8736. else
  8737. echo "$as_me: failed program was:" >&5
  8738. sed 's/^/| /' conftest.$ac_ext >&5
  8739. fi
  8740. rm -f conftest.err conftest.$ac_objext \
  8741. conftest$ac_exeext conftest.$ac_ext
  8742. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8743. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8744. # Warning - without using the other run time loading flags,
  8745. # -berok will link without error, but may produce a broken library.
  8746. no_undefined_flag_CXX=' ${wl}-bernotok'
  8747. allow_undefined_flag_CXX=' ${wl}-berok'
  8748. # Exported symbols can be pulled into shared objects from archives
  8749. whole_archive_flag_spec_CXX='$convenience'
  8750. archive_cmds_need_lc_CXX=yes
  8751. # This is similar to how AIX traditionally builds its shared libraries.
  8752. 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'
  8753. fi
  8754. fi
  8755. ;;
  8756. beos*)
  8757. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8758. allow_undefined_flag_CXX=unsupported
  8759. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8760. # support --undefined. This deserves some investigation. FIXME
  8761. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8762. else
  8763. ld_shlibs_CXX=no
  8764. fi
  8765. ;;
  8766. chorus*)
  8767. case $cc_basename in
  8768. *)
  8769. # FIXME: insert proper C++ library support
  8770. ld_shlibs_CXX=no
  8771. ;;
  8772. esac
  8773. ;;
  8774. cygwin* | mingw* | pw32*)
  8775. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  8776. # as there is no search path for DLLs.
  8777. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8778. allow_undefined_flag_CXX=unsupported
  8779. always_export_symbols_CXX=no
  8780. enable_shared_with_static_runtimes_CXX=yes
  8781. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8782. 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'
  8783. # If the export-symbols file already is a .def file (1st line
  8784. # is EXPORTS), use it as is; otherwise, prepend...
  8785. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8786. cp $export_symbols $output_objdir/$soname.def;
  8787. else
  8788. echo EXPORTS > $output_objdir/$soname.def;
  8789. cat $export_symbols >> $output_objdir/$soname.def;
  8790. fi~
  8791. $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'
  8792. else
  8793. ld_shlibs_CXX=no
  8794. fi
  8795. ;;
  8796. darwin* | rhapsody*)
  8797. case $host_os in
  8798. rhapsody* | darwin1.[012])
  8799. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  8800. ;;
  8801. *) # Darwin 1.3 on
  8802. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8803. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8804. else
  8805. case ${MACOSX_DEPLOYMENT_TARGET} in
  8806. 10.[012])
  8807. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8808. ;;
  8809. 10.*)
  8810. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  8811. ;;
  8812. esac
  8813. fi
  8814. ;;
  8815. esac
  8816. archive_cmds_need_lc_CXX=no
  8817. hardcode_direct_CXX=no
  8818. hardcode_automatic_CXX=yes
  8819. hardcode_shlibpath_var_CXX=unsupported
  8820. whole_archive_flag_spec_CXX=''
  8821. link_all_deplibs_CXX=yes
  8822. if test "$GXX" = yes ; then
  8823. lt_int_apple_cc_single_mod=no
  8824. output_verbose_link_cmd='echo'
  8825. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  8826. lt_int_apple_cc_single_mod=yes
  8827. fi
  8828. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8829. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8830. else
  8831. 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'
  8832. fi
  8833. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8834. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  8835. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8836. 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}'
  8837. else
  8838. 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}'
  8839. fi
  8840. 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}'
  8841. else
  8842. case $cc_basename in
  8843. xlc*)
  8844. output_verbose_link_cmd='echo'
  8845. 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'
  8846. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8847. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  8848. 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}'
  8849. 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}'
  8850. ;;
  8851. *)
  8852. ld_shlibs_CXX=no
  8853. ;;
  8854. esac
  8855. fi
  8856. ;;
  8857. dgux*)
  8858. case $cc_basename in
  8859. ec++*)
  8860. # FIXME: insert proper C++ library support
  8861. ld_shlibs_CXX=no
  8862. ;;
  8863. ghcx*)
  8864. # Green Hills C++ Compiler
  8865. # FIXME: insert proper C++ library support
  8866. ld_shlibs_CXX=no
  8867. ;;
  8868. *)
  8869. # FIXME: insert proper C++ library support
  8870. ld_shlibs_CXX=no
  8871. ;;
  8872. esac
  8873. ;;
  8874. freebsd[12]*)
  8875. # C++ shared libraries reported to be fairly broken before switch to ELF
  8876. ld_shlibs_CXX=no
  8877. ;;
  8878. freebsd-elf*)
  8879. archive_cmds_need_lc_CXX=no
  8880. ;;
  8881. freebsd* | kfreebsd*-gnu | dragonfly*)
  8882. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  8883. # conventions
  8884. ld_shlibs_CXX=yes
  8885. ;;
  8886. gnu*)
  8887. ;;
  8888. hpux9*)
  8889. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8890. hardcode_libdir_separator_CXX=:
  8891. export_dynamic_flag_spec_CXX='${wl}-E'
  8892. hardcode_direct_CXX=yes
  8893. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8894. # but as the default
  8895. # location of the library.
  8896. case $cc_basename in
  8897. CC*)
  8898. # FIXME: insert proper C++ library support
  8899. ld_shlibs_CXX=no
  8900. ;;
  8901. aCC*)
  8902. 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'
  8903. # Commands to make compiler produce verbose output that lists
  8904. # what "hidden" libraries, object files and flags are used when
  8905. # linking a shared library.
  8906. #
  8907. # There doesn't appear to be a way to prevent this compiler from
  8908. # explicitly linking system object files so we need to strip them
  8909. # from the output so that they don't get included in the library
  8910. # dependencies.
  8911. 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'
  8912. ;;
  8913. *)
  8914. if test "$GXX" = yes; then
  8915. 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'
  8916. else
  8917. # FIXME: insert proper C++ library support
  8918. ld_shlibs_CXX=no
  8919. fi
  8920. ;;
  8921. esac
  8922. ;;
  8923. hpux10*|hpux11*)
  8924. if test $with_gnu_ld = no; then
  8925. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8926. hardcode_libdir_separator_CXX=:
  8927. case $host_cpu in
  8928. hppa*64*|ia64*)
  8929. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  8930. ;;
  8931. *)
  8932. export_dynamic_flag_spec_CXX='${wl}-E'
  8933. ;;
  8934. esac
  8935. fi
  8936. case $host_cpu in
  8937. hppa*64*|ia64*)
  8938. hardcode_direct_CXX=no
  8939. hardcode_shlibpath_var_CXX=no
  8940. ;;
  8941. *)
  8942. hardcode_direct_CXX=yes
  8943. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8944. # but as the default
  8945. # location of the library.
  8946. ;;
  8947. esac
  8948. case $cc_basename in
  8949. CC*)
  8950. # FIXME: insert proper C++ library support
  8951. ld_shlibs_CXX=no
  8952. ;;
  8953. aCC*)
  8954. case $host_cpu in
  8955. hppa*64*)
  8956. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8957. ;;
  8958. ia64*)
  8959. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8960. ;;
  8961. *)
  8962. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8963. ;;
  8964. esac
  8965. # Commands to make compiler produce verbose output that lists
  8966. # what "hidden" libraries, object files and flags are used when
  8967. # linking a shared library.
  8968. #
  8969. # There doesn't appear to be a way to prevent this compiler from
  8970. # explicitly linking system object files so we need to strip them
  8971. # from the output so that they don't get included in the library
  8972. # dependencies.
  8973. 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'
  8974. ;;
  8975. *)
  8976. if test "$GXX" = yes; then
  8977. if test $with_gnu_ld = no; then
  8978. case $host_cpu in
  8979. hppa*64*)
  8980. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8981. ;;
  8982. ia64*)
  8983. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8984. ;;
  8985. *)
  8986. 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'
  8987. ;;
  8988. esac
  8989. fi
  8990. else
  8991. # FIXME: insert proper C++ library support
  8992. ld_shlibs_CXX=no
  8993. fi
  8994. ;;
  8995. esac
  8996. ;;
  8997. interix3*)
  8998. hardcode_direct_CXX=no
  8999. hardcode_shlibpath_var_CXX=no
  9000. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9001. export_dynamic_flag_spec_CXX='${wl}-E'
  9002. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9003. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9004. # default) and relocated if they conflict, which is a slow very memory
  9005. # consuming and fragmenting process. To avoid this, we pick a random,
  9006. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9007. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9008. 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'
  9009. 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'
  9010. ;;
  9011. irix5* | irix6*)
  9012. case $cc_basename in
  9013. CC*)
  9014. # SGI C++
  9015. 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'
  9016. # Archives containing C++ object files must be created using
  9017. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9018. # necessary to make sure instantiated templates are included
  9019. # in the archive.
  9020. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9021. ;;
  9022. *)
  9023. if test "$GXX" = yes; then
  9024. if test "$with_gnu_ld" = no; then
  9025. 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'
  9026. else
  9027. 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'
  9028. fi
  9029. fi
  9030. link_all_deplibs_CXX=yes
  9031. ;;
  9032. esac
  9033. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9034. hardcode_libdir_separator_CXX=:
  9035. ;;
  9036. linux*)
  9037. case $cc_basename in
  9038. KCC*)
  9039. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9040. # KCC will only create a shared library if the output file
  9041. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9042. # to its proper name (with version) after linking.
  9043. 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'
  9044. 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'
  9045. # Commands to make compiler produce verbose output that lists
  9046. # what "hidden" libraries, object files and flags are used when
  9047. # linking a shared library.
  9048. #
  9049. # There doesn't appear to be a way to prevent this compiler from
  9050. # explicitly linking system object files so we need to strip them
  9051. # from the output so that they don't get included in the library
  9052. # dependencies.
  9053. 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'
  9054. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9055. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9056. # Archives containing C++ object files must be created using
  9057. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9058. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9059. ;;
  9060. icpc*)
  9061. # Intel C++
  9062. with_gnu_ld=yes
  9063. # version 8.0 and above of icpc choke on multiply defined symbols
  9064. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9065. # earlier do not add the objects themselves.
  9066. case `$CC -V 2>&1` in
  9067. *"Version 7."*)
  9068. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9069. 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'
  9070. ;;
  9071. *) # Version 8.0 or newer
  9072. tmp_idyn=
  9073. case $host_cpu in
  9074. ia64*) tmp_idyn=' -i_dynamic';;
  9075. esac
  9076. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9077. 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'
  9078. ;;
  9079. esac
  9080. archive_cmds_need_lc_CXX=no
  9081. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9082. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9083. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9084. ;;
  9085. pgCC*)
  9086. # Portland Group C++ compiler
  9087. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9088. 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'
  9089. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9090. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9091. 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'
  9092. ;;
  9093. cxx*)
  9094. # Compaq C++
  9095. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9096. 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'
  9097. runpath_var=LD_RUN_PATH
  9098. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9099. hardcode_libdir_separator_CXX=:
  9100. # Commands to make compiler produce verbose output that lists
  9101. # what "hidden" libraries, object files and flags are used when
  9102. # linking a shared library.
  9103. #
  9104. # There doesn't appear to be a way to prevent this compiler from
  9105. # explicitly linking system object files so we need to strip them
  9106. # from the output so that they don't get included in the library
  9107. # dependencies.
  9108. 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'
  9109. ;;
  9110. esac
  9111. ;;
  9112. lynxos*)
  9113. # FIXME: insert proper C++ library support
  9114. ld_shlibs_CXX=no
  9115. ;;
  9116. m88k*)
  9117. # FIXME: insert proper C++ library support
  9118. ld_shlibs_CXX=no
  9119. ;;
  9120. mvs*)
  9121. case $cc_basename in
  9122. cxx*)
  9123. # FIXME: insert proper C++ library support
  9124. ld_shlibs_CXX=no
  9125. ;;
  9126. *)
  9127. # FIXME: insert proper C++ library support
  9128. ld_shlibs_CXX=no
  9129. ;;
  9130. esac
  9131. ;;
  9132. netbsd*)
  9133. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9134. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9135. wlarc=
  9136. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9137. hardcode_direct_CXX=yes
  9138. hardcode_shlibpath_var_CXX=no
  9139. fi
  9140. # Workaround some broken pre-1.5 toolchains
  9141. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9142. ;;
  9143. openbsd2*)
  9144. # C++ shared libraries are fairly broken
  9145. ld_shlibs_CXX=no
  9146. ;;
  9147. openbsd*)
  9148. hardcode_direct_CXX=yes
  9149. hardcode_shlibpath_var_CXX=no
  9150. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9151. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9152. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9153. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9154. export_dynamic_flag_spec_CXX='${wl}-E'
  9155. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9156. fi
  9157. output_verbose_link_cmd='echo'
  9158. ;;
  9159. osf3*)
  9160. case $cc_basename in
  9161. KCC*)
  9162. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9163. # KCC will only create a shared library if the output file
  9164. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9165. # to its proper name (with version) after linking.
  9166. 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'
  9167. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9168. hardcode_libdir_separator_CXX=:
  9169. # Archives containing C++ object files must be created using
  9170. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9171. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9172. ;;
  9173. RCC*)
  9174. # Rational C++ 2.4.1
  9175. # FIXME: insert proper C++ library support
  9176. ld_shlibs_CXX=no
  9177. ;;
  9178. cxx*)
  9179. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9180. 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'
  9181. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9182. hardcode_libdir_separator_CXX=:
  9183. # Commands to make compiler produce verbose output that lists
  9184. # what "hidden" libraries, object files and flags are used when
  9185. # linking a shared library.
  9186. #
  9187. # There doesn't appear to be a way to prevent this compiler from
  9188. # explicitly linking system object files so we need to strip them
  9189. # from the output so that they don't get included in the library
  9190. # dependencies.
  9191. 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'
  9192. ;;
  9193. *)
  9194. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9195. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9196. 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'
  9197. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9198. hardcode_libdir_separator_CXX=:
  9199. # Commands to make compiler produce verbose output that lists
  9200. # what "hidden" libraries, object files and flags are used when
  9201. # linking a shared library.
  9202. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9203. else
  9204. # FIXME: insert proper C++ library support
  9205. ld_shlibs_CXX=no
  9206. fi
  9207. ;;
  9208. esac
  9209. ;;
  9210. osf4* | osf5*)
  9211. case $cc_basename in
  9212. KCC*)
  9213. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9214. # KCC will only create a shared library if the output file
  9215. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9216. # to its proper name (with version) after linking.
  9217. 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'
  9218. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9219. hardcode_libdir_separator_CXX=:
  9220. # Archives containing C++ object files must be created using
  9221. # the KAI C++ compiler.
  9222. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9223. ;;
  9224. RCC*)
  9225. # Rational C++ 2.4.1
  9226. # FIXME: insert proper C++ library support
  9227. ld_shlibs_CXX=no
  9228. ;;
  9229. cxx*)
  9230. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9231. 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'
  9232. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9233. echo "-hidden">> $lib.exp~
  9234. $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~
  9235. $rm $lib.exp'
  9236. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9237. hardcode_libdir_separator_CXX=:
  9238. # Commands to make compiler produce verbose output that lists
  9239. # what "hidden" libraries, object files and flags are used when
  9240. # linking a shared library.
  9241. #
  9242. # There doesn't appear to be a way to prevent this compiler from
  9243. # explicitly linking system object files so we need to strip them
  9244. # from the output so that they don't get included in the library
  9245. # dependencies.
  9246. 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'
  9247. ;;
  9248. *)
  9249. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9250. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9251. 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'
  9252. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9253. hardcode_libdir_separator_CXX=:
  9254. # Commands to make compiler produce verbose output that lists
  9255. # what "hidden" libraries, object files and flags are used when
  9256. # linking a shared library.
  9257. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9258. else
  9259. # FIXME: insert proper C++ library support
  9260. ld_shlibs_CXX=no
  9261. fi
  9262. ;;
  9263. esac
  9264. ;;
  9265. psos*)
  9266. # FIXME: insert proper C++ library support
  9267. ld_shlibs_CXX=no
  9268. ;;
  9269. sunos4*)
  9270. case $cc_basename in
  9271. CC*)
  9272. # Sun C++ 4.x
  9273. # FIXME: insert proper C++ library support
  9274. ld_shlibs_CXX=no
  9275. ;;
  9276. lcc*)
  9277. # Lucid
  9278. # FIXME: insert proper C++ library support
  9279. ld_shlibs_CXX=no
  9280. ;;
  9281. *)
  9282. # FIXME: insert proper C++ library support
  9283. ld_shlibs_CXX=no
  9284. ;;
  9285. esac
  9286. ;;
  9287. solaris*)
  9288. case $cc_basename in
  9289. CC*)
  9290. # Sun C++ 4.2, 5.x and Centerline C++
  9291. archive_cmds_need_lc_CXX=yes
  9292. no_undefined_flag_CXX=' -zdefs'
  9293. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9294. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9295. $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'
  9296. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9297. hardcode_shlibpath_var_CXX=no
  9298. case $host_os in
  9299. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9300. *)
  9301. # The C++ compiler is used as linker so we must use $wl
  9302. # flag to pass the commands to the underlying system
  9303. # linker. We must also pass each convience library through
  9304. # to the system linker between allextract/defaultextract.
  9305. # The C++ compiler will combine linker options so we
  9306. # cannot just pass the convience library names through
  9307. # without $wl.
  9308. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9309. 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'
  9310. ;;
  9311. esac
  9312. link_all_deplibs_CXX=yes
  9313. output_verbose_link_cmd='echo'
  9314. # Archives containing C++ object files must be created using
  9315. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9316. # necessary to make sure instantiated templates are included
  9317. # in the archive.
  9318. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9319. ;;
  9320. gcx*)
  9321. # Green Hills C++ Compiler
  9322. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9323. # The C++ compiler must be used to create the archive.
  9324. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9325. ;;
  9326. *)
  9327. # GNU C++ compiler with Solaris linker
  9328. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9329. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9330. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9331. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9332. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9333. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9334. # Commands to make compiler produce verbose output that lists
  9335. # what "hidden" libraries, object files and flags are used when
  9336. # linking a shared library.
  9337. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9338. else
  9339. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9340. # platform.
  9341. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9342. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9343. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9344. # Commands to make compiler produce verbose output that lists
  9345. # what "hidden" libraries, object files and flags are used when
  9346. # linking a shared library.
  9347. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9348. fi
  9349. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9350. fi
  9351. ;;
  9352. esac
  9353. ;;
  9354. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9355. no_undefined_flag_CXX='${wl}-z,text'
  9356. archive_cmds_need_lc_CXX=no
  9357. hardcode_shlibpath_var_CXX=no
  9358. runpath_var='LD_RUN_PATH'
  9359. case $cc_basename in
  9360. CC*)
  9361. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9362. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9363. ;;
  9364. *)
  9365. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9366. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9367. ;;
  9368. esac
  9369. ;;
  9370. sysv5* | sco3.2v5* | sco5v6*)
  9371. # Note: We can NOT use -z defs as we might desire, because we do not
  9372. # link with -lc, and that would cause any symbols used from libc to
  9373. # always be unresolved, which means just about no library would
  9374. # ever link correctly. If we're not using GNU ld we use -z text
  9375. # though, which does catch some bad symbols but isn't as heavy-handed
  9376. # as -z defs.
  9377. # For security reasons, it is highly recommended that you always
  9378. # use absolute paths for naming shared libraries, and exclude the
  9379. # DT_RUNPATH tag from executables and libraries. But doing so
  9380. # requires that you compile everything twice, which is a pain.
  9381. # So that behaviour is only enabled if SCOABSPATH is set to a
  9382. # non-empty value in the environment. Most likely only useful for
  9383. # creating official distributions of packages.
  9384. # This is a hack until libtool officially supports absolute path
  9385. # names for shared libraries.
  9386. no_undefined_flag_CXX='${wl}-z,text'
  9387. allow_undefined_flag_CXX='${wl}-z,nodefs'
  9388. archive_cmds_need_lc_CXX=no
  9389. hardcode_shlibpath_var_CXX=no
  9390. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  9391. hardcode_libdir_separator_CXX=':'
  9392. link_all_deplibs_CXX=yes
  9393. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  9394. runpath_var='LD_RUN_PATH'
  9395. case $cc_basename in
  9396. CC*)
  9397. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9398. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9399. ;;
  9400. *)
  9401. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9402. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9403. ;;
  9404. esac
  9405. ;;
  9406. tandem*)
  9407. case $cc_basename in
  9408. NCC*)
  9409. # NonStop-UX NCC 3.20
  9410. # FIXME: insert proper C++ library support
  9411. ld_shlibs_CXX=no
  9412. ;;
  9413. *)
  9414. # FIXME: insert proper C++ library support
  9415. ld_shlibs_CXX=no
  9416. ;;
  9417. esac
  9418. ;;
  9419. vxworks*)
  9420. # FIXME: insert proper C++ library support
  9421. ld_shlibs_CXX=no
  9422. ;;
  9423. *)
  9424. # FIXME: insert proper C++ library support
  9425. ld_shlibs_CXX=no
  9426. ;;
  9427. esac
  9428. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9429. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9430. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9431. GCC_CXX="$GXX"
  9432. LD_CXX="$LD"
  9433. cat > conftest.$ac_ext <<EOF
  9434. class Foo
  9435. {
  9436. public:
  9437. Foo (void) { a = 0; }
  9438. private:
  9439. int a;
  9440. };
  9441. EOF
  9442. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9443. (eval $ac_compile) 2>&5
  9444. ac_status=$?
  9445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9446. (exit $ac_status); }; then
  9447. # Parse the compiler output and extract the necessary
  9448. # objects, libraries and library flags.
  9449. # Sentinel used to keep track of whether or not we are before
  9450. # the conftest object file.
  9451. pre_test_object_deps_done=no
  9452. # The `*' in the case matches for architectures that use `case' in
  9453. # $output_verbose_cmd can trigger glob expansion during the loop
  9454. # eval without this substitution.
  9455. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  9456. for p in `eval $output_verbose_link_cmd`; do
  9457. case $p in
  9458. -L* | -R* | -l*)
  9459. # Some compilers place space between "-{L,R}" and the path.
  9460. # Remove the space.
  9461. if test $p = "-L" \
  9462. || test $p = "-R"; then
  9463. prev=$p
  9464. continue
  9465. else
  9466. prev=
  9467. fi
  9468. if test "$pre_test_object_deps_done" = no; then
  9469. case $p in
  9470. -L* | -R*)
  9471. # Internal compiler library paths should come after those
  9472. # provided the user. The postdeps already come after the
  9473. # user supplied libs so there is no need to process them.
  9474. if test -z "$compiler_lib_search_path_CXX"; then
  9475. compiler_lib_search_path_CXX="${prev}${p}"
  9476. else
  9477. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9478. fi
  9479. ;;
  9480. # The "-l" case would never come before the object being
  9481. # linked, so don't bother handling this case.
  9482. esac
  9483. else
  9484. if test -z "$postdeps_CXX"; then
  9485. postdeps_CXX="${prev}${p}"
  9486. else
  9487. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  9488. fi
  9489. fi
  9490. ;;
  9491. *.$objext)
  9492. # This assumes that the test object file only shows up
  9493. # once in the compiler output.
  9494. if test "$p" = "conftest.$objext"; then
  9495. pre_test_object_deps_done=yes
  9496. continue
  9497. fi
  9498. if test "$pre_test_object_deps_done" = no; then
  9499. if test -z "$predep_objects_CXX"; then
  9500. predep_objects_CXX="$p"
  9501. else
  9502. predep_objects_CXX="$predep_objects_CXX $p"
  9503. fi
  9504. else
  9505. if test -z "$postdep_objects_CXX"; then
  9506. postdep_objects_CXX="$p"
  9507. else
  9508. postdep_objects_CXX="$postdep_objects_CXX $p"
  9509. fi
  9510. fi
  9511. ;;
  9512. *) ;; # Ignore the rest.
  9513. esac
  9514. done
  9515. # Clean up.
  9516. rm -f a.out a.exe
  9517. else
  9518. echo "libtool.m4: error: problem compiling CXX test program"
  9519. fi
  9520. $rm -f confest.$objext
  9521. # PORTME: override above test on systems where it is broken
  9522. case $host_os in
  9523. interix3*)
  9524. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  9525. # hack all around it, let's just trust "g++" to DTRT.
  9526. predep_objects_CXX=
  9527. postdep_objects_CXX=
  9528. postdeps_CXX=
  9529. ;;
  9530. solaris*)
  9531. case $cc_basename in
  9532. CC*)
  9533. # Adding this requires a known-good setup of shared libraries for
  9534. # Sun compiler versions before 5.6, else PIC objects from an old
  9535. # archive will be linked into the output, leading to subtle bugs.
  9536. postdeps_CXX='-lCstd -lCrun'
  9537. ;;
  9538. esac
  9539. ;;
  9540. esac
  9541. case " $postdeps_CXX " in
  9542. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  9543. esac
  9544. lt_prog_compiler_wl_CXX=
  9545. lt_prog_compiler_pic_CXX=
  9546. lt_prog_compiler_static_CXX=
  9547. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  9548. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  9549. # C++ specific cases for pic, static, wl, etc.
  9550. if test "$GXX" = yes; then
  9551. lt_prog_compiler_wl_CXX='-Wl,'
  9552. lt_prog_compiler_static_CXX='-static'
  9553. case $host_os in
  9554. aix*)
  9555. # All AIX code is PIC.
  9556. if test "$host_cpu" = ia64; then
  9557. # AIX 5 now supports IA64 processor
  9558. lt_prog_compiler_static_CXX='-Bstatic'
  9559. fi
  9560. ;;
  9561. amigaos*)
  9562. # FIXME: we need at least 68020 code to build shared libraries, but
  9563. # adding the `-m68020' flag to GCC prevents building anything better,
  9564. # like `-m68040'.
  9565. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  9566. ;;
  9567. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9568. # PIC is the default for these OSes.
  9569. ;;
  9570. mingw* | os2* | pw32*)
  9571. # This hack is so that the source file can tell whether it is being
  9572. # built for inclusion in a dll (and should export symbols for example).
  9573. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  9574. ;;
  9575. darwin* | rhapsody*)
  9576. # PIC is the default on this platform
  9577. # Common symbols not allowed in MH_DYLIB files
  9578. lt_prog_compiler_pic_CXX='-fno-common'
  9579. ;;
  9580. *djgpp*)
  9581. # DJGPP does not support shared libraries at all
  9582. lt_prog_compiler_pic_CXX=
  9583. ;;
  9584. interix3*)
  9585. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9586. # Instead, we relocate shared libraries at runtime.
  9587. ;;
  9588. sysv4*MP*)
  9589. if test -d /usr/nec; then
  9590. lt_prog_compiler_pic_CXX=-Kconform_pic
  9591. fi
  9592. ;;
  9593. hpux*)
  9594. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9595. # not for PA HP-UX.
  9596. case $host_cpu in
  9597. hppa*64*|ia64*)
  9598. ;;
  9599. *)
  9600. lt_prog_compiler_pic_CXX='-fPIC'
  9601. ;;
  9602. esac
  9603. ;;
  9604. *)
  9605. lt_prog_compiler_pic_CXX='-fPIC'
  9606. ;;
  9607. esac
  9608. else
  9609. case $host_os in
  9610. aix4* | aix5*)
  9611. # All AIX code is PIC.
  9612. if test "$host_cpu" = ia64; then
  9613. # AIX 5 now supports IA64 processor
  9614. lt_prog_compiler_static_CXX='-Bstatic'
  9615. else
  9616. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  9617. fi
  9618. ;;
  9619. chorus*)
  9620. case $cc_basename in
  9621. cxch68*)
  9622. # Green Hills C++ Compiler
  9623. # _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"
  9624. ;;
  9625. esac
  9626. ;;
  9627. darwin*)
  9628. # PIC is the default on this platform
  9629. # Common symbols not allowed in MH_DYLIB files
  9630. case $cc_basename in
  9631. xlc*)
  9632. lt_prog_compiler_pic_CXX='-qnocommon'
  9633. lt_prog_compiler_wl_CXX='-Wl,'
  9634. ;;
  9635. esac
  9636. ;;
  9637. dgux*)
  9638. case $cc_basename in
  9639. ec++*)
  9640. lt_prog_compiler_pic_CXX='-KPIC'
  9641. ;;
  9642. ghcx*)
  9643. # Green Hills C++ Compiler
  9644. lt_prog_compiler_pic_CXX='-pic'
  9645. ;;
  9646. *)
  9647. ;;
  9648. esac
  9649. ;;
  9650. freebsd* | kfreebsd*-gnu | dragonfly*)
  9651. # FreeBSD uses GNU C++
  9652. ;;
  9653. hpux9* | hpux10* | hpux11*)
  9654. case $cc_basename in
  9655. CC*)
  9656. lt_prog_compiler_wl_CXX='-Wl,'
  9657. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  9658. if test "$host_cpu" != ia64; then
  9659. lt_prog_compiler_pic_CXX='+Z'
  9660. fi
  9661. ;;
  9662. aCC*)
  9663. lt_prog_compiler_wl_CXX='-Wl,'
  9664. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  9665. case $host_cpu in
  9666. hppa*64*|ia64*)
  9667. # +Z the default
  9668. ;;
  9669. *)
  9670. lt_prog_compiler_pic_CXX='+Z'
  9671. ;;
  9672. esac
  9673. ;;
  9674. *)
  9675. ;;
  9676. esac
  9677. ;;
  9678. interix*)
  9679. # This is c89, which is MS Visual C++ (no shared libs)
  9680. # Anyone wants to do a port?
  9681. ;;
  9682. irix5* | irix6* | nonstopux*)
  9683. case $cc_basename in
  9684. CC*)
  9685. lt_prog_compiler_wl_CXX='-Wl,'
  9686. lt_prog_compiler_static_CXX='-non_shared'
  9687. # CC pic flag -KPIC is the default.
  9688. ;;
  9689. *)
  9690. ;;
  9691. esac
  9692. ;;
  9693. linux*)
  9694. case $cc_basename in
  9695. KCC*)
  9696. # KAI C++ Compiler
  9697. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9698. lt_prog_compiler_pic_CXX='-fPIC'
  9699. ;;
  9700. icpc* | ecpc*)
  9701. # Intel C++
  9702. lt_prog_compiler_wl_CXX='-Wl,'
  9703. lt_prog_compiler_pic_CXX='-KPIC'
  9704. lt_prog_compiler_static_CXX='-static'
  9705. ;;
  9706. pgCC*)
  9707. # Portland Group C++ compiler.
  9708. lt_prog_compiler_wl_CXX='-Wl,'
  9709. lt_prog_compiler_pic_CXX='-fpic'
  9710. lt_prog_compiler_static_CXX='-Bstatic'
  9711. ;;
  9712. cxx*)
  9713. # Compaq C++
  9714. # Make sure the PIC flag is empty. It appears that all Alpha
  9715. # Linux and Compaq Tru64 Unix objects are PIC.
  9716. lt_prog_compiler_pic_CXX=
  9717. lt_prog_compiler_static_CXX='-non_shared'
  9718. ;;
  9719. *)
  9720. ;;
  9721. esac
  9722. ;;
  9723. lynxos*)
  9724. ;;
  9725. m88k*)
  9726. ;;
  9727. mvs*)
  9728. case $cc_basename in
  9729. cxx*)
  9730. lt_prog_compiler_pic_CXX='-W c,exportall'
  9731. ;;
  9732. *)
  9733. ;;
  9734. esac
  9735. ;;
  9736. netbsd*)
  9737. ;;
  9738. osf3* | osf4* | osf5*)
  9739. case $cc_basename in
  9740. KCC*)
  9741. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9742. ;;
  9743. RCC*)
  9744. # Rational C++ 2.4.1
  9745. lt_prog_compiler_pic_CXX='-pic'
  9746. ;;
  9747. cxx*)
  9748. # Digital/Compaq C++
  9749. lt_prog_compiler_wl_CXX='-Wl,'
  9750. # Make sure the PIC flag is empty. It appears that all Alpha
  9751. # Linux and Compaq Tru64 Unix objects are PIC.
  9752. lt_prog_compiler_pic_CXX=
  9753. lt_prog_compiler_static_CXX='-non_shared'
  9754. ;;
  9755. *)
  9756. ;;
  9757. esac
  9758. ;;
  9759. psos*)
  9760. ;;
  9761. solaris*)
  9762. case $cc_basename in
  9763. CC*)
  9764. # Sun C++ 4.2, 5.x and Centerline C++
  9765. lt_prog_compiler_pic_CXX='-KPIC'
  9766. lt_prog_compiler_static_CXX='-Bstatic'
  9767. lt_prog_compiler_wl_CXX='-Qoption ld '
  9768. ;;
  9769. gcx*)
  9770. # Green Hills C++ Compiler
  9771. lt_prog_compiler_pic_CXX='-PIC'
  9772. ;;
  9773. *)
  9774. ;;
  9775. esac
  9776. ;;
  9777. sunos4*)
  9778. case $cc_basename in
  9779. CC*)
  9780. # Sun C++ 4.x
  9781. lt_prog_compiler_pic_CXX='-pic'
  9782. lt_prog_compiler_static_CXX='-Bstatic'
  9783. ;;
  9784. lcc*)
  9785. # Lucid
  9786. lt_prog_compiler_pic_CXX='-pic'
  9787. ;;
  9788. *)
  9789. ;;
  9790. esac
  9791. ;;
  9792. tandem*)
  9793. case $cc_basename in
  9794. NCC*)
  9795. # NonStop-UX NCC 3.20
  9796. lt_prog_compiler_pic_CXX='-KPIC'
  9797. ;;
  9798. *)
  9799. ;;
  9800. esac
  9801. ;;
  9802. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9803. case $cc_basename in
  9804. CC*)
  9805. lt_prog_compiler_wl_CXX='-Wl,'
  9806. lt_prog_compiler_pic_CXX='-KPIC'
  9807. lt_prog_compiler_static_CXX='-Bstatic'
  9808. ;;
  9809. esac
  9810. ;;
  9811. vxworks*)
  9812. ;;
  9813. *)
  9814. lt_prog_compiler_can_build_shared_CXX=no
  9815. ;;
  9816. esac
  9817. fi
  9818. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  9819. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  9820. #
  9821. # Check to make sure the PIC flag actually works.
  9822. #
  9823. if test -n "$lt_prog_compiler_pic_CXX"; then
  9824. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  9825. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  9826. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  9827. echo $ECHO_N "(cached) $ECHO_C" >&6
  9828. else
  9829. lt_prog_compiler_pic_works_CXX=no
  9830. ac_outfile=conftest.$ac_objext
  9831. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9832. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  9833. # Insert the option either (1) after the last *FLAGS variable, or
  9834. # (2) before a word containing "conftest.", or (3) at the end.
  9835. # Note that $ac_compile itself does not contain backslashes and begins
  9836. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9837. # The option is referenced via a variable to avoid confusing sed.
  9838. lt_compile=`echo "$ac_compile" | $SED \
  9839. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9840. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9841. -e 's:$: $lt_compiler_flag:'`
  9842. (eval echo "\"\$as_me:10867: $lt_compile\"" >&5)
  9843. (eval "$lt_compile" 2>conftest.err)
  9844. ac_status=$?
  9845. cat conftest.err >&5
  9846. echo "$as_me:10871: \$? = $ac_status" >&5
  9847. if (exit $ac_status) && test -s "$ac_outfile"; then
  9848. # The compiler can only warn and ignore the option if not recognized
  9849. # So say no if there are warnings other than the usual output.
  9850. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  9851. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9852. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9853. lt_prog_compiler_pic_works_CXX=yes
  9854. fi
  9855. fi
  9856. $rm conftest*
  9857. fi
  9858. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  9859. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  9860. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  9861. case $lt_prog_compiler_pic_CXX in
  9862. "" | " "*) ;;
  9863. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  9864. esac
  9865. else
  9866. lt_prog_compiler_pic_CXX=
  9867. lt_prog_compiler_can_build_shared_CXX=no
  9868. fi
  9869. fi
  9870. case $host_os in
  9871. # For platforms which do not support PIC, -DPIC is meaningless:
  9872. *djgpp*)
  9873. lt_prog_compiler_pic_CXX=
  9874. ;;
  9875. *)
  9876. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  9877. ;;
  9878. esac
  9879. #
  9880. # Check to make sure the static flag actually works.
  9881. #
  9882. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  9883. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9884. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  9885. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  9886. echo $ECHO_N "(cached) $ECHO_C" >&6
  9887. else
  9888. lt_prog_compiler_static_works_CXX=no
  9889. save_LDFLAGS="$LDFLAGS"
  9890. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9891. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  9892. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9893. # The linker can only warn and ignore the option if not recognized
  9894. # So say no if there are warnings
  9895. if test -s conftest.err; then
  9896. # Append any errors to the config.log.
  9897. cat conftest.err 1>&5
  9898. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  9899. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9900. if diff conftest.exp conftest.er2 >/dev/null; then
  9901. lt_prog_compiler_static_works_CXX=yes
  9902. fi
  9903. else
  9904. lt_prog_compiler_static_works_CXX=yes
  9905. fi
  9906. fi
  9907. $rm conftest*
  9908. LDFLAGS="$save_LDFLAGS"
  9909. fi
  9910. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  9911. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  9912. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  9913. :
  9914. else
  9915. lt_prog_compiler_static_CXX=
  9916. fi
  9917. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  9918. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  9919. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  9920. echo $ECHO_N "(cached) $ECHO_C" >&6
  9921. else
  9922. lt_cv_prog_compiler_c_o_CXX=no
  9923. $rm -r conftest 2>/dev/null
  9924. mkdir conftest
  9925. cd conftest
  9926. mkdir out
  9927. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9928. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9929. # Insert the option either (1) after the last *FLAGS variable, or
  9930. # (2) before a word containing "conftest.", or (3) at the end.
  9931. # Note that $ac_compile itself does not contain backslashes and begins
  9932. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9933. lt_compile=`echo "$ac_compile" | $SED \
  9934. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9935. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9936. -e 's:$: $lt_compiler_flag:'`
  9937. (eval echo "\"\$as_me:10971: $lt_compile\"" >&5)
  9938. (eval "$lt_compile" 2>out/conftest.err)
  9939. ac_status=$?
  9940. cat out/conftest.err >&5
  9941. echo "$as_me:10975: \$? = $ac_status" >&5
  9942. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9943. then
  9944. # The compiler can only warn and ignore the option if not recognized
  9945. # So say no if there are warnings
  9946. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  9947. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9948. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9949. lt_cv_prog_compiler_c_o_CXX=yes
  9950. fi
  9951. fi
  9952. chmod u+w . 2>&5
  9953. $rm conftest*
  9954. # SGI C++ compiler will create directory out/ii_files/ for
  9955. # template instantiation
  9956. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  9957. $rm out/* && rmdir out
  9958. cd ..
  9959. rmdir conftest
  9960. $rm conftest*
  9961. fi
  9962. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  9963. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  9964. hard_links="nottested"
  9965. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  9966. # do not overwrite the value of need_locks provided by the user
  9967. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  9968. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  9969. hard_links=yes
  9970. $rm conftest*
  9971. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9972. touch conftest.a
  9973. ln conftest.a conftest.b 2>&5 || hard_links=no
  9974. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9975. echo "$as_me:$LINENO: result: $hard_links" >&5
  9976. echo "${ECHO_T}$hard_links" >&6
  9977. if test "$hard_links" = no; then
  9978. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9979. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9980. need_locks=warn
  9981. fi
  9982. else
  9983. need_locks=no
  9984. fi
  9985. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9986. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9987. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9988. case $host_os in
  9989. aix4* | aix5*)
  9990. # If we're using GNU nm, then we don't want the "-C" option.
  9991. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9992. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9993. 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'
  9994. else
  9995. 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'
  9996. fi
  9997. ;;
  9998. pw32*)
  9999. export_symbols_cmds_CXX="$ltdll_cmds"
  10000. ;;
  10001. cygwin* | mingw*)
  10002. 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'
  10003. ;;
  10004. *)
  10005. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10006. ;;
  10007. esac
  10008. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10009. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10010. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10011. #
  10012. # Do we need to explicitly link libc?
  10013. #
  10014. case "x$archive_cmds_need_lc_CXX" in
  10015. x|xyes)
  10016. # Assume -lc should be added
  10017. archive_cmds_need_lc_CXX=yes
  10018. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10019. case $archive_cmds_CXX in
  10020. *'~'*)
  10021. # FIXME: we may have to deal with multi-command sequences.
  10022. ;;
  10023. '$CC '*)
  10024. # Test whether the compiler implicitly links with -lc since on some
  10025. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10026. # to ld, don't add -lc before -lgcc.
  10027. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10028. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10029. $rm conftest*
  10030. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10031. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10032. (eval $ac_compile) 2>&5
  10033. ac_status=$?
  10034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10035. (exit $ac_status); } 2>conftest.err; then
  10036. soname=conftest
  10037. lib=conftest
  10038. libobjs=conftest.$ac_objext
  10039. deplibs=
  10040. wl=$lt_prog_compiler_wl_CXX
  10041. pic_flag=$lt_prog_compiler_pic_CXX
  10042. compiler_flags=-v
  10043. linker_flags=-v
  10044. verstring=
  10045. output_objdir=.
  10046. libname=conftest
  10047. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10048. allow_undefined_flag_CXX=
  10049. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10050. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10051. ac_status=$?
  10052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10053. (exit $ac_status); }
  10054. then
  10055. archive_cmds_need_lc_CXX=no
  10056. else
  10057. archive_cmds_need_lc_CXX=yes
  10058. fi
  10059. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10060. else
  10061. cat conftest.err 1>&5
  10062. fi
  10063. $rm conftest*
  10064. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10065. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10066. ;;
  10067. esac
  10068. fi
  10069. ;;
  10070. esac
  10071. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10072. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10073. library_names_spec=
  10074. libname_spec='lib$name'
  10075. soname_spec=
  10076. shrext_cmds=".so"
  10077. postinstall_cmds=
  10078. postuninstall_cmds=
  10079. finish_cmds=
  10080. finish_eval=
  10081. shlibpath_var=
  10082. shlibpath_overrides_runpath=unknown
  10083. version_type=none
  10084. dynamic_linker="$host_os ld.so"
  10085. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10086. if test "$GCC" = yes; then
  10087. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10088. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10089. # if the path contains ";" then we assume it to be the separator
  10090. # otherwise default to the standard path separator (i.e. ":") - it is
  10091. # assumed that no part of a normal pathname contains ";" but that should
  10092. # okay in the real world where ";" in dirpaths is itself problematic.
  10093. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10094. else
  10095. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10096. fi
  10097. else
  10098. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10099. fi
  10100. need_lib_prefix=unknown
  10101. hardcode_into_libs=no
  10102. # when you set need_version to no, make sure it does not cause -set_version
  10103. # flags to be left without arguments
  10104. need_version=unknown
  10105. case $host_os in
  10106. aix3*)
  10107. version_type=linux
  10108. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10109. shlibpath_var=LIBPATH
  10110. # AIX 3 has no versioning support, so we append a major version to the name.
  10111. soname_spec='${libname}${release}${shared_ext}$major'
  10112. ;;
  10113. aix4* | aix5*)
  10114. version_type=linux
  10115. need_lib_prefix=no
  10116. need_version=no
  10117. hardcode_into_libs=yes
  10118. if test "$host_cpu" = ia64; then
  10119. # AIX 5 supports IA64
  10120. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10121. shlibpath_var=LD_LIBRARY_PATH
  10122. else
  10123. # With GCC up to 2.95.x, collect2 would create an import file
  10124. # for dependence libraries. The import file would start with
  10125. # the line `#! .'. This would cause the generated library to
  10126. # depend on `.', always an invalid library. This was fixed in
  10127. # development snapshots of GCC prior to 3.0.
  10128. case $host_os in
  10129. aix4 | aix4.[01] | aix4.[01].*)
  10130. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10131. echo ' yes '
  10132. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10133. :
  10134. else
  10135. can_build_shared=no
  10136. fi
  10137. ;;
  10138. esac
  10139. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10140. # soname into executable. Probably we can add versioning support to
  10141. # collect2, so additional links can be useful in future.
  10142. if test "$aix_use_runtimelinking" = yes; then
  10143. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10144. # instead of lib<name>.a to let people know that these are not
  10145. # typical AIX shared libraries.
  10146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10147. else
  10148. # We preserve .a as extension for shared libraries through AIX4.2
  10149. # and later when we are not doing run time linking.
  10150. library_names_spec='${libname}${release}.a $libname.a'
  10151. soname_spec='${libname}${release}${shared_ext}$major'
  10152. fi
  10153. shlibpath_var=LIBPATH
  10154. fi
  10155. ;;
  10156. amigaos*)
  10157. library_names_spec='$libname.ixlibrary $libname.a'
  10158. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10159. 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'
  10160. ;;
  10161. beos*)
  10162. library_names_spec='${libname}${shared_ext}'
  10163. dynamic_linker="$host_os ld.so"
  10164. shlibpath_var=LIBRARY_PATH
  10165. ;;
  10166. bsdi[45]*)
  10167. version_type=linux
  10168. need_version=no
  10169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10170. soname_spec='${libname}${release}${shared_ext}$major'
  10171. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10172. shlibpath_var=LD_LIBRARY_PATH
  10173. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10174. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10175. # the default ld.so.conf also contains /usr/contrib/lib and
  10176. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10177. # libtool to hard-code these into programs
  10178. ;;
  10179. cygwin* | mingw* | pw32*)
  10180. version_type=windows
  10181. shrext_cmds=".dll"
  10182. need_version=no
  10183. need_lib_prefix=no
  10184. case $GCC,$host_os in
  10185. yes,cygwin* | yes,mingw* | yes,pw32*)
  10186. library_names_spec='$libname.dll.a'
  10187. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10188. postinstall_cmds='base_file=`basename \${file}`~
  10189. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10190. dldir=$destdir/`dirname \$dlpath`~
  10191. test -d \$dldir || mkdir -p \$dldir~
  10192. $install_prog $dir/$dlname \$dldir/$dlname~
  10193. chmod a+x \$dldir/$dlname'
  10194. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10195. dlpath=$dir/\$dldll~
  10196. $rm \$dlpath'
  10197. shlibpath_overrides_runpath=yes
  10198. case $host_os in
  10199. cygwin*)
  10200. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10201. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10202. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10203. ;;
  10204. mingw*)
  10205. # MinGW DLLs use traditional 'lib' prefix
  10206. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10207. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10208. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10209. # It is most probably a Windows format PATH printed by
  10210. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10211. # path with ; separators, and with drive letters. We can handle the
  10212. # drive letters (cygwin fileutils understands them), so leave them,
  10213. # especially as we might pass files found there to a mingw objdump,
  10214. # which wouldn't understand a cygwinified path. Ahh.
  10215. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10216. else
  10217. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10218. fi
  10219. ;;
  10220. pw32*)
  10221. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10222. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10223. ;;
  10224. esac
  10225. ;;
  10226. *)
  10227. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10228. ;;
  10229. esac
  10230. dynamic_linker='Win32 ld.exe'
  10231. # FIXME: first we should search . and the directory the executable is in
  10232. shlibpath_var=PATH
  10233. ;;
  10234. darwin* | rhapsody*)
  10235. dynamic_linker="$host_os dyld"
  10236. version_type=darwin
  10237. need_lib_prefix=no
  10238. need_version=no
  10239. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10240. soname_spec='${libname}${release}${major}$shared_ext'
  10241. shlibpath_overrides_runpath=yes
  10242. shlibpath_var=DYLD_LIBRARY_PATH
  10243. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10244. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10245. if test "$GCC" = yes; then
  10246. 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"`
  10247. else
  10248. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10249. fi
  10250. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10251. ;;
  10252. dgux*)
  10253. version_type=linux
  10254. need_lib_prefix=no
  10255. need_version=no
  10256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10257. soname_spec='${libname}${release}${shared_ext}$major'
  10258. shlibpath_var=LD_LIBRARY_PATH
  10259. ;;
  10260. freebsd1*)
  10261. dynamic_linker=no
  10262. ;;
  10263. kfreebsd*-gnu)
  10264. version_type=linux
  10265. need_lib_prefix=no
  10266. need_version=no
  10267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10268. soname_spec='${libname}${release}${shared_ext}$major'
  10269. shlibpath_var=LD_LIBRARY_PATH
  10270. shlibpath_overrides_runpath=no
  10271. hardcode_into_libs=yes
  10272. dynamic_linker='GNU ld.so'
  10273. ;;
  10274. freebsd* | dragonfly*)
  10275. # DragonFly does not have aout. When/if they implement a new
  10276. # versioning mechanism, adjust this.
  10277. if test -x /usr/bin/objformat; then
  10278. objformat=`/usr/bin/objformat`
  10279. else
  10280. case $host_os in
  10281. freebsd[123]*) objformat=aout ;;
  10282. *) objformat=elf ;;
  10283. esac
  10284. fi
  10285. version_type=freebsd-$objformat
  10286. case $version_type in
  10287. freebsd-elf*)
  10288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10289. need_version=no
  10290. need_lib_prefix=no
  10291. ;;
  10292. freebsd-*)
  10293. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10294. need_version=yes
  10295. ;;
  10296. esac
  10297. shlibpath_var=LD_LIBRARY_PATH
  10298. case $host_os in
  10299. freebsd2*)
  10300. shlibpath_overrides_runpath=yes
  10301. ;;
  10302. freebsd3.[01]* | freebsdelf3.[01]*)
  10303. shlibpath_overrides_runpath=yes
  10304. hardcode_into_libs=yes
  10305. ;;
  10306. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10307. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10308. shlibpath_overrides_runpath=no
  10309. hardcode_into_libs=yes
  10310. ;;
  10311. freebsd*) # from 4.6 on
  10312. shlibpath_overrides_runpath=yes
  10313. hardcode_into_libs=yes
  10314. ;;
  10315. esac
  10316. ;;
  10317. gnu*)
  10318. version_type=linux
  10319. need_lib_prefix=no
  10320. need_version=no
  10321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10322. soname_spec='${libname}${release}${shared_ext}$major'
  10323. shlibpath_var=LD_LIBRARY_PATH
  10324. hardcode_into_libs=yes
  10325. ;;
  10326. hpux9* | hpux10* | hpux11*)
  10327. # Give a soname corresponding to the major version so that dld.sl refuses to
  10328. # link against other versions.
  10329. version_type=sunos
  10330. need_lib_prefix=no
  10331. need_version=no
  10332. case $host_cpu in
  10333. ia64*)
  10334. shrext_cmds='.so'
  10335. hardcode_into_libs=yes
  10336. dynamic_linker="$host_os dld.so"
  10337. shlibpath_var=LD_LIBRARY_PATH
  10338. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10340. soname_spec='${libname}${release}${shared_ext}$major'
  10341. if test "X$HPUX_IA64_MODE" = X32; then
  10342. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10343. else
  10344. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10345. fi
  10346. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10347. ;;
  10348. hppa*64*)
  10349. shrext_cmds='.sl'
  10350. hardcode_into_libs=yes
  10351. dynamic_linker="$host_os dld.sl"
  10352. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10353. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10355. soname_spec='${libname}${release}${shared_ext}$major'
  10356. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10357. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10358. ;;
  10359. *)
  10360. shrext_cmds='.sl'
  10361. dynamic_linker="$host_os dld.sl"
  10362. shlibpath_var=SHLIB_PATH
  10363. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10365. soname_spec='${libname}${release}${shared_ext}$major'
  10366. ;;
  10367. esac
  10368. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10369. postinstall_cmds='chmod 555 $lib'
  10370. ;;
  10371. interix3*)
  10372. version_type=linux
  10373. need_lib_prefix=no
  10374. need_version=no
  10375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10376. soname_spec='${libname}${release}${shared_ext}$major'
  10377. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10378. shlibpath_var=LD_LIBRARY_PATH
  10379. shlibpath_overrides_runpath=no
  10380. hardcode_into_libs=yes
  10381. ;;
  10382. irix5* | irix6* | nonstopux*)
  10383. case $host_os in
  10384. nonstopux*) version_type=nonstopux ;;
  10385. *)
  10386. if test "$lt_cv_prog_gnu_ld" = yes; then
  10387. version_type=linux
  10388. else
  10389. version_type=irix
  10390. fi ;;
  10391. esac
  10392. need_lib_prefix=no
  10393. need_version=no
  10394. soname_spec='${libname}${release}${shared_ext}$major'
  10395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10396. case $host_os in
  10397. irix5* | nonstopux*)
  10398. libsuff= shlibsuff=
  10399. ;;
  10400. *)
  10401. case $LD in # libtool.m4 will add one of these switches to LD
  10402. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10403. libsuff= shlibsuff= libmagic=32-bit;;
  10404. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10405. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10406. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10407. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10408. *) libsuff= shlibsuff= libmagic=never-match;;
  10409. esac
  10410. ;;
  10411. esac
  10412. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10413. shlibpath_overrides_runpath=no
  10414. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10415. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10416. hardcode_into_libs=yes
  10417. ;;
  10418. # No shared lib support for Linux oldld, aout, or coff.
  10419. linux*oldld* | linux*aout* | linux*coff*)
  10420. dynamic_linker=no
  10421. ;;
  10422. # This must be Linux ELF.
  10423. linux*)
  10424. version_type=linux
  10425. need_lib_prefix=no
  10426. need_version=no
  10427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10428. soname_spec='${libname}${release}${shared_ext}$major'
  10429. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10430. shlibpath_var=LD_LIBRARY_PATH
  10431. shlibpath_overrides_runpath=no
  10432. # This implies no fast_install, which is unacceptable.
  10433. # Some rework will be needed to allow for fast_install
  10434. # before this can be enabled.
  10435. hardcode_into_libs=yes
  10436. # Append ld.so.conf contents to the search path
  10437. if test -f /etc/ld.so.conf; then
  10438. 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' ' '`
  10439. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10440. fi
  10441. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10442. # powerpc, because MkLinux only supported shared libraries with the
  10443. # GNU dynamic linker. Since this was broken with cross compilers,
  10444. # most powerpc-linux boxes support dynamic linking these days and
  10445. # people can always --disable-shared, the test was removed, and we
  10446. # assume the GNU/Linux dynamic linker is in use.
  10447. dynamic_linker='GNU/Linux ld.so'
  10448. ;;
  10449. knetbsd*-gnu)
  10450. version_type=linux
  10451. need_lib_prefix=no
  10452. need_version=no
  10453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10454. soname_spec='${libname}${release}${shared_ext}$major'
  10455. shlibpath_var=LD_LIBRARY_PATH
  10456. shlibpath_overrides_runpath=no
  10457. hardcode_into_libs=yes
  10458. dynamic_linker='GNU ld.so'
  10459. ;;
  10460. netbsd*)
  10461. version_type=sunos
  10462. need_lib_prefix=no
  10463. need_version=no
  10464. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10466. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10467. dynamic_linker='NetBSD (a.out) ld.so'
  10468. else
  10469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10470. soname_spec='${libname}${release}${shared_ext}$major'
  10471. dynamic_linker='NetBSD ld.elf_so'
  10472. fi
  10473. shlibpath_var=LD_LIBRARY_PATH
  10474. shlibpath_overrides_runpath=yes
  10475. hardcode_into_libs=yes
  10476. ;;
  10477. newsos6)
  10478. version_type=linux
  10479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10480. shlibpath_var=LD_LIBRARY_PATH
  10481. shlibpath_overrides_runpath=yes
  10482. ;;
  10483. nto-qnx*)
  10484. version_type=linux
  10485. need_lib_prefix=no
  10486. need_version=no
  10487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10488. soname_spec='${libname}${release}${shared_ext}$major'
  10489. shlibpath_var=LD_LIBRARY_PATH
  10490. shlibpath_overrides_runpath=yes
  10491. ;;
  10492. openbsd*)
  10493. version_type=sunos
  10494. sys_lib_dlsearch_path_spec="/usr/lib"
  10495. need_lib_prefix=no
  10496. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10497. case $host_os in
  10498. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10499. *) need_version=no ;;
  10500. esac
  10501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10502. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10503. shlibpath_var=LD_LIBRARY_PATH
  10504. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10505. case $host_os in
  10506. openbsd2.[89] | openbsd2.[89].*)
  10507. shlibpath_overrides_runpath=no
  10508. ;;
  10509. *)
  10510. shlibpath_overrides_runpath=yes
  10511. ;;
  10512. esac
  10513. else
  10514. shlibpath_overrides_runpath=yes
  10515. fi
  10516. ;;
  10517. os2*)
  10518. libname_spec='$name'
  10519. shrext_cmds=".dll"
  10520. need_lib_prefix=no
  10521. library_names_spec='$libname${shared_ext} $libname.a'
  10522. dynamic_linker='OS/2 ld.exe'
  10523. shlibpath_var=LIBPATH
  10524. ;;
  10525. osf3* | osf4* | osf5*)
  10526. version_type=osf
  10527. need_lib_prefix=no
  10528. need_version=no
  10529. soname_spec='${libname}${release}${shared_ext}$major'
  10530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10531. shlibpath_var=LD_LIBRARY_PATH
  10532. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10533. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10534. ;;
  10535. solaris*)
  10536. version_type=linux
  10537. need_lib_prefix=no
  10538. need_version=no
  10539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10540. soname_spec='${libname}${release}${shared_ext}$major'
  10541. shlibpath_var=LD_LIBRARY_PATH
  10542. shlibpath_overrides_runpath=yes
  10543. hardcode_into_libs=yes
  10544. # ldd complains unless libraries are executable
  10545. postinstall_cmds='chmod +x $lib'
  10546. ;;
  10547. sunos4*)
  10548. version_type=sunos
  10549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10550. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10551. shlibpath_var=LD_LIBRARY_PATH
  10552. shlibpath_overrides_runpath=yes
  10553. if test "$with_gnu_ld" = yes; then
  10554. need_lib_prefix=no
  10555. fi
  10556. need_version=yes
  10557. ;;
  10558. sysv4 | sysv4.3*)
  10559. version_type=linux
  10560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10561. soname_spec='${libname}${release}${shared_ext}$major'
  10562. shlibpath_var=LD_LIBRARY_PATH
  10563. case $host_vendor in
  10564. sni)
  10565. shlibpath_overrides_runpath=no
  10566. need_lib_prefix=no
  10567. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10568. runpath_var=LD_RUN_PATH
  10569. ;;
  10570. siemens)
  10571. need_lib_prefix=no
  10572. ;;
  10573. motorola)
  10574. need_lib_prefix=no
  10575. need_version=no
  10576. shlibpath_overrides_runpath=no
  10577. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10578. ;;
  10579. esac
  10580. ;;
  10581. sysv4*MP*)
  10582. if test -d /usr/nec ;then
  10583. version_type=linux
  10584. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10585. soname_spec='$libname${shared_ext}.$major'
  10586. shlibpath_var=LD_LIBRARY_PATH
  10587. fi
  10588. ;;
  10589. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10590. version_type=freebsd-elf
  10591. need_lib_prefix=no
  10592. need_version=no
  10593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10594. soname_spec='${libname}${release}${shared_ext}$major'
  10595. shlibpath_var=LD_LIBRARY_PATH
  10596. hardcode_into_libs=yes
  10597. if test "$with_gnu_ld" = yes; then
  10598. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10599. shlibpath_overrides_runpath=no
  10600. else
  10601. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10602. shlibpath_overrides_runpath=yes
  10603. case $host_os in
  10604. sco3.2v5*)
  10605. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10606. ;;
  10607. esac
  10608. fi
  10609. sys_lib_dlsearch_path_spec='/usr/lib'
  10610. ;;
  10611. uts4*)
  10612. version_type=linux
  10613. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10614. soname_spec='${libname}${release}${shared_ext}$major'
  10615. shlibpath_var=LD_LIBRARY_PATH
  10616. ;;
  10617. *)
  10618. dynamic_linker=no
  10619. ;;
  10620. esac
  10621. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10622. echo "${ECHO_T}$dynamic_linker" >&6
  10623. test "$dynamic_linker" = no && can_build_shared=no
  10624. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10625. if test "$GCC" = yes; then
  10626. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10627. fi
  10628. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10629. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  10630. hardcode_action_CXX=
  10631. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  10632. test -n "$runpath_var_CXX" || \
  10633. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  10634. # We can hardcode non-existant directories.
  10635. if test "$hardcode_direct_CXX" != no &&
  10636. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10637. # have to relink, otherwise we might link with an installed library
  10638. # when we should be linking with a yet-to-be-installed one
  10639. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  10640. test "$hardcode_minus_L_CXX" != no; then
  10641. # Linking always hardcodes the temporary library directory.
  10642. hardcode_action_CXX=relink
  10643. else
  10644. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10645. hardcode_action_CXX=immediate
  10646. fi
  10647. else
  10648. # We cannot hardcode anything, or else we can only hardcode existing
  10649. # directories.
  10650. hardcode_action_CXX=unsupported
  10651. fi
  10652. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  10653. echo "${ECHO_T}$hardcode_action_CXX" >&6
  10654. if test "$hardcode_action_CXX" = relink; then
  10655. # Fast installation is not supported
  10656. enable_fast_install=no
  10657. elif test "$shlibpath_overrides_runpath" = yes ||
  10658. test "$enable_shared" = no; then
  10659. # Fast installation is not necessary
  10660. enable_fast_install=needless
  10661. fi
  10662. # The else clause should only fire when bootstrapping the
  10663. # libtool distribution, otherwise you forgot to ship ltmain.sh
  10664. # with your package, and you will get complaints that there are
  10665. # no rules to generate ltmain.sh.
  10666. if test -f "$ltmain"; then
  10667. # See if we are running on zsh, and set the options which allow our commands through
  10668. # without removal of \ escapes.
  10669. if test -n "${ZSH_VERSION+set}" ; then
  10670. setopt NO_GLOB_SUBST
  10671. fi
  10672. # Now quote all the things that may contain metacharacters while being
  10673. # careful not to overquote the AC_SUBSTed values. We take copies of the
  10674. # variables and quote the copies for generation of the libtool script.
  10675. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  10676. SED SHELL STRIP \
  10677. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  10678. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  10679. deplibs_check_method reload_flag reload_cmds need_locks \
  10680. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  10681. lt_cv_sys_global_symbol_to_c_name_address \
  10682. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10683. old_postinstall_cmds old_postuninstall_cmds \
  10684. compiler_CXX \
  10685. CC_CXX \
  10686. LD_CXX \
  10687. lt_prog_compiler_wl_CXX \
  10688. lt_prog_compiler_pic_CXX \
  10689. lt_prog_compiler_static_CXX \
  10690. lt_prog_compiler_no_builtin_flag_CXX \
  10691. export_dynamic_flag_spec_CXX \
  10692. thread_safe_flag_spec_CXX \
  10693. whole_archive_flag_spec_CXX \
  10694. enable_shared_with_static_runtimes_CXX \
  10695. old_archive_cmds_CXX \
  10696. old_archive_from_new_cmds_CXX \
  10697. predep_objects_CXX \
  10698. postdep_objects_CXX \
  10699. predeps_CXX \
  10700. postdeps_CXX \
  10701. compiler_lib_search_path_CXX \
  10702. archive_cmds_CXX \
  10703. archive_expsym_cmds_CXX \
  10704. postinstall_cmds_CXX \
  10705. postuninstall_cmds_CXX \
  10706. old_archive_from_expsyms_cmds_CXX \
  10707. allow_undefined_flag_CXX \
  10708. no_undefined_flag_CXX \
  10709. export_symbols_cmds_CXX \
  10710. hardcode_libdir_flag_spec_CXX \
  10711. hardcode_libdir_flag_spec_ld_CXX \
  10712. hardcode_libdir_separator_CXX \
  10713. hardcode_automatic_CXX \
  10714. module_cmds_CXX \
  10715. module_expsym_cmds_CXX \
  10716. lt_cv_prog_compiler_c_o_CXX \
  10717. exclude_expsyms_CXX \
  10718. include_expsyms_CXX; do
  10719. case $var in
  10720. old_archive_cmds_CXX | \
  10721. old_archive_from_new_cmds_CXX | \
  10722. archive_cmds_CXX | \
  10723. archive_expsym_cmds_CXX | \
  10724. module_cmds_CXX | \
  10725. module_expsym_cmds_CXX | \
  10726. old_archive_from_expsyms_cmds_CXX | \
  10727. export_symbols_cmds_CXX | \
  10728. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  10729. postinstall_cmds | postuninstall_cmds | \
  10730. old_postinstall_cmds | old_postuninstall_cmds | \
  10731. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10732. # Double-quote double-evaled strings.
  10733. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10734. ;;
  10735. *)
  10736. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10737. ;;
  10738. esac
  10739. done
  10740. case $lt_echo in
  10741. *'\$0 --fallback-echo"')
  10742. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  10743. ;;
  10744. esac
  10745. cfgfile="$ofile"
  10746. cat <<__EOF__ >> "$cfgfile"
  10747. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  10748. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10749. # Shell to use when invoking shell scripts.
  10750. SHELL=$lt_SHELL
  10751. # Whether or not to build shared libraries.
  10752. build_libtool_libs=$enable_shared
  10753. # Whether or not to build static libraries.
  10754. build_old_libs=$enable_static
  10755. # Whether or not to add -lc for building shared libraries.
  10756. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  10757. # Whether or not to disallow shared libs when runtime libs are static
  10758. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  10759. # Whether or not to optimize for fast installation.
  10760. fast_install=$enable_fast_install
  10761. # The host system.
  10762. host_alias=$host_alias
  10763. host=$host
  10764. host_os=$host_os
  10765. # The build system.
  10766. build_alias=$build_alias
  10767. build=$build
  10768. build_os=$build_os
  10769. # An echo program that does not interpret backslashes.
  10770. echo=$lt_echo
  10771. # The archiver.
  10772. AR=$lt_AR
  10773. AR_FLAGS=$lt_AR_FLAGS
  10774. # A C compiler.
  10775. LTCC=$lt_LTCC
  10776. # LTCC compiler flags.
  10777. LTCFLAGS=$lt_LTCFLAGS
  10778. # A language-specific compiler.
  10779. CC=$lt_compiler_CXX
  10780. # Is the compiler the GNU C compiler?
  10781. with_gcc=$GCC_CXX
  10782. # An ERE matcher.
  10783. EGREP=$lt_EGREP
  10784. # The linker used to build libraries.
  10785. LD=$lt_LD_CXX
  10786. # Whether we need hard or soft links.
  10787. LN_S=$lt_LN_S
  10788. # A BSD-compatible nm program.
  10789. NM=$lt_NM
  10790. # A symbol stripping program
  10791. STRIP=$lt_STRIP
  10792. # Used to examine libraries when file_magic_cmd begins "file"
  10793. MAGIC_CMD=$MAGIC_CMD
  10794. # Used on cygwin: DLL creation program.
  10795. DLLTOOL="$DLLTOOL"
  10796. # Used on cygwin: object dumper.
  10797. OBJDUMP="$OBJDUMP"
  10798. # Used on cygwin: assembler.
  10799. AS="$AS"
  10800. # The name of the directory that contains temporary libtool files.
  10801. objdir=$objdir
  10802. # How to create reloadable object files.
  10803. reload_flag=$lt_reload_flag
  10804. reload_cmds=$lt_reload_cmds
  10805. # How to pass a linker flag through the compiler.
  10806. wl=$lt_lt_prog_compiler_wl_CXX
  10807. # Object file suffix (normally "o").
  10808. objext="$ac_objext"
  10809. # Old archive suffix (normally "a").
  10810. libext="$libext"
  10811. # Shared library suffix (normally ".so").
  10812. shrext_cmds='$shrext_cmds'
  10813. # Executable file suffix (normally "").
  10814. exeext="$exeext"
  10815. # Additional compiler flags for building library objects.
  10816. pic_flag=$lt_lt_prog_compiler_pic_CXX
  10817. pic_mode=$pic_mode
  10818. # What is the maximum length of a command?
  10819. max_cmd_len=$lt_cv_sys_max_cmd_len
  10820. # Does compiler simultaneously support -c and -o options?
  10821. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  10822. # Must we lock files when doing compilation?
  10823. need_locks=$lt_need_locks
  10824. # Do we need the lib prefix for modules?
  10825. need_lib_prefix=$need_lib_prefix
  10826. # Do we need a version for libraries?
  10827. need_version=$need_version
  10828. # Whether dlopen is supported.
  10829. dlopen_support=$enable_dlopen
  10830. # Whether dlopen of programs is supported.
  10831. dlopen_self=$enable_dlopen_self
  10832. # Whether dlopen of statically linked programs is supported.
  10833. dlopen_self_static=$enable_dlopen_self_static
  10834. # Compiler flag to prevent dynamic linking.
  10835. link_static_flag=$lt_lt_prog_compiler_static_CXX
  10836. # Compiler flag to turn off builtin functions.
  10837. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  10838. # Compiler flag to allow reflexive dlopens.
  10839. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  10840. # Compiler flag to generate shared objects directly from archives.
  10841. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  10842. # Compiler flag to generate thread-safe objects.
  10843. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  10844. # Library versioning type.
  10845. version_type=$version_type
  10846. # Format of library name prefix.
  10847. libname_spec=$lt_libname_spec
  10848. # List of archive names. First name is the real one, the rest are links.
  10849. # The last name is the one that the linker finds with -lNAME.
  10850. library_names_spec=$lt_library_names_spec
  10851. # The coded name of the library, if different from the real name.
  10852. soname_spec=$lt_soname_spec
  10853. # Commands used to build and install an old-style archive.
  10854. RANLIB=$lt_RANLIB
  10855. old_archive_cmds=$lt_old_archive_cmds_CXX
  10856. old_postinstall_cmds=$lt_old_postinstall_cmds
  10857. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10858. # Create an old-style archive from a shared archive.
  10859. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  10860. # Create a temporary old-style archive to link instead of a shared archive.
  10861. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  10862. # Commands used to build and install a shared archive.
  10863. archive_cmds=$lt_archive_cmds_CXX
  10864. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  10865. postinstall_cmds=$lt_postinstall_cmds
  10866. postuninstall_cmds=$lt_postuninstall_cmds
  10867. # Commands used to build a loadable module (assumed same as above if empty)
  10868. module_cmds=$lt_module_cmds_CXX
  10869. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  10870. # Commands to strip libraries.
  10871. old_striplib=$lt_old_striplib
  10872. striplib=$lt_striplib
  10873. # Dependencies to place before the objects being linked to create a
  10874. # shared library.
  10875. predep_objects=$lt_predep_objects_CXX
  10876. # Dependencies to place after the objects being linked to create a
  10877. # shared library.
  10878. postdep_objects=$lt_postdep_objects_CXX
  10879. # Dependencies to place before the objects being linked to create a
  10880. # shared library.
  10881. predeps=$lt_predeps_CXX
  10882. # Dependencies to place after the objects being linked to create a
  10883. # shared library.
  10884. postdeps=$lt_postdeps_CXX
  10885. # The library search path used internally by the compiler when linking
  10886. # a shared library.
  10887. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  10888. # Method to check whether dependent libraries are shared objects.
  10889. deplibs_check_method=$lt_deplibs_check_method
  10890. # Command to use when deplibs_check_method == file_magic.
  10891. file_magic_cmd=$lt_file_magic_cmd
  10892. # Flag that allows shared libraries with undefined symbols to be built.
  10893. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  10894. # Flag that forces no undefined symbols.
  10895. no_undefined_flag=$lt_no_undefined_flag_CXX
  10896. # Commands used to finish a libtool library installation in a directory.
  10897. finish_cmds=$lt_finish_cmds
  10898. # Same as above, but a single script fragment to be evaled but not shown.
  10899. finish_eval=$lt_finish_eval
  10900. # Take the output of nm and produce a listing of raw symbols and C names.
  10901. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10902. # Transform the output of nm in a proper C declaration
  10903. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10904. # Transform the output of nm in a C name address pair
  10905. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10906. # This is the shared library runtime path variable.
  10907. runpath_var=$runpath_var
  10908. # This is the shared library path variable.
  10909. shlibpath_var=$shlibpath_var
  10910. # Is shlibpath searched before the hard-coded library search path?
  10911. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10912. # How to hardcode a shared library path into an executable.
  10913. hardcode_action=$hardcode_action_CXX
  10914. # Whether we should hardcode library paths into libraries.
  10915. hardcode_into_libs=$hardcode_into_libs
  10916. # Flag to hardcode \$libdir into a binary during linking.
  10917. # This must work even if \$libdir does not exist.
  10918. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  10919. # If ld is used when linking, flag to hardcode \$libdir into
  10920. # a binary during linking. This must work even if \$libdir does
  10921. # not exist.
  10922. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  10923. # Whether we need a single -rpath flag with a separated argument.
  10924. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  10925. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  10926. # resulting binary.
  10927. hardcode_direct=$hardcode_direct_CXX
  10928. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  10929. # resulting binary.
  10930. hardcode_minus_L=$hardcode_minus_L_CXX
  10931. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  10932. # the resulting binary.
  10933. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  10934. # Set to yes if building a shared library automatically hardcodes DIR into the library
  10935. # and all subsequent libraries and executables linked against it.
  10936. hardcode_automatic=$hardcode_automatic_CXX
  10937. # Variables whose values should be saved in libtool wrapper scripts and
  10938. # restored at relink time.
  10939. variables_saved_for_relink="$variables_saved_for_relink"
  10940. # Whether libtool must link a program against all its dependency libraries.
  10941. link_all_deplibs=$link_all_deplibs_CXX
  10942. # Compile-time system search path for libraries
  10943. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10944. # Run-time system search path for libraries
  10945. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10946. # Fix the shell variable \$srcfile for the compiler.
  10947. fix_srcfile_path="$fix_srcfile_path_CXX"
  10948. # Set to yes if exported symbols are required.
  10949. always_export_symbols=$always_export_symbols_CXX
  10950. # The commands to list exported symbols.
  10951. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  10952. # The commands to extract the exported symbol list from a shared archive.
  10953. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10954. # Symbols that should not be listed in the preloaded symbols.
  10955. exclude_expsyms=$lt_exclude_expsyms_CXX
  10956. # Symbols that must always be exported.
  10957. include_expsyms=$lt_include_expsyms_CXX
  10958. # ### END LIBTOOL TAG CONFIG: $tagname
  10959. __EOF__
  10960. else
  10961. # If there is no Makefile yet, we rely on a make rule to execute
  10962. # `config.status --recheck' to rerun these tests and create the
  10963. # libtool script then.
  10964. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  10965. if test -f "$ltmain_in"; then
  10966. test -f Makefile && make "$ltmain"
  10967. fi
  10968. fi
  10969. ac_ext=c
  10970. ac_cpp='$CPP $CPPFLAGS'
  10971. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10972. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10973. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10974. CC=$lt_save_CC
  10975. LDCXX=$LD
  10976. LD=$lt_save_LD
  10977. GCC=$lt_save_GCC
  10978. with_gnu_ldcxx=$with_gnu_ld
  10979. with_gnu_ld=$lt_save_with_gnu_ld
  10980. lt_cv_path_LDCXX=$lt_cv_path_LD
  10981. lt_cv_path_LD=$lt_save_path_LD
  10982. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10983. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10984. else
  10985. tagname=""
  10986. fi
  10987. ;;
  10988. F77)
  10989. if test -n "$F77" && test "X$F77" != "Xno"; then
  10990. ac_ext=f
  10991. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  10992. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10993. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  10994. archive_cmds_need_lc_F77=no
  10995. allow_undefined_flag_F77=
  10996. always_export_symbols_F77=no
  10997. archive_expsym_cmds_F77=
  10998. export_dynamic_flag_spec_F77=
  10999. hardcode_direct_F77=no
  11000. hardcode_libdir_flag_spec_F77=
  11001. hardcode_libdir_flag_spec_ld_F77=
  11002. hardcode_libdir_separator_F77=
  11003. hardcode_minus_L_F77=no
  11004. hardcode_automatic_F77=no
  11005. module_cmds_F77=
  11006. module_expsym_cmds_F77=
  11007. link_all_deplibs_F77=unknown
  11008. old_archive_cmds_F77=$old_archive_cmds
  11009. no_undefined_flag_F77=
  11010. whole_archive_flag_spec_F77=
  11011. enable_shared_with_static_runtimes_F77=no
  11012. # Source file extension for f77 test sources.
  11013. ac_ext=f
  11014. # Object file extension for compiled f77 test sources.
  11015. objext=o
  11016. objext_F77=$objext
  11017. # Code to be used in simple compile tests
  11018. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11019. # Code to be used in simple link tests
  11020. lt_simple_link_test_code=" program t\n end\n"
  11021. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11022. # If no C compiler was specified, use CC.
  11023. LTCC=${LTCC-"$CC"}
  11024. # If no C compiler flags were specified, use CFLAGS.
  11025. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11026. # Allow CC to be a program name with arguments.
  11027. compiler=$CC
  11028. # save warnings/boilerplate of simple test code
  11029. ac_outfile=conftest.$ac_objext
  11030. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11031. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11032. _lt_compiler_boilerplate=`cat conftest.err`
  11033. $rm conftest*
  11034. ac_outfile=conftest.$ac_objext
  11035. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11036. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11037. _lt_linker_boilerplate=`cat conftest.err`
  11038. $rm conftest*
  11039. # Allow CC to be a program name with arguments.
  11040. lt_save_CC="$CC"
  11041. CC=${F77-"f77"}
  11042. compiler=$CC
  11043. compiler_F77=$CC
  11044. for cc_temp in $compiler""; do
  11045. case $cc_temp in
  11046. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11047. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11048. \-*) ;;
  11049. *) break;;
  11050. esac
  11051. done
  11052. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11053. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11054. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11055. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11056. echo "${ECHO_T}$can_build_shared" >&6
  11057. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11058. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11059. test "$can_build_shared" = "no" && enable_shared=no
  11060. # On AIX, shared libraries and static libraries use the same namespace, and
  11061. # are all built from PIC.
  11062. case $host_os in
  11063. aix3*)
  11064. test "$enable_shared" = yes && enable_static=no
  11065. if test -n "$RANLIB"; then
  11066. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11067. postinstall_cmds='$RANLIB $lib'
  11068. fi
  11069. ;;
  11070. aix4* | aix5*)
  11071. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11072. test "$enable_shared" = yes && enable_static=no
  11073. fi
  11074. ;;
  11075. esac
  11076. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11077. echo "${ECHO_T}$enable_shared" >&6
  11078. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11079. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11080. # Make sure either enable_shared or enable_static is yes.
  11081. test "$enable_shared" = yes || enable_static=yes
  11082. echo "$as_me:$LINENO: result: $enable_static" >&5
  11083. echo "${ECHO_T}$enable_static" >&6
  11084. GCC_F77="$G77"
  11085. LD_F77="$LD"
  11086. lt_prog_compiler_wl_F77=
  11087. lt_prog_compiler_pic_F77=
  11088. lt_prog_compiler_static_F77=
  11089. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11090. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11091. if test "$GCC" = yes; then
  11092. lt_prog_compiler_wl_F77='-Wl,'
  11093. lt_prog_compiler_static_F77='-static'
  11094. case $host_os in
  11095. aix*)
  11096. # All AIX code is PIC.
  11097. if test "$host_cpu" = ia64; then
  11098. # AIX 5 now supports IA64 processor
  11099. lt_prog_compiler_static_F77='-Bstatic'
  11100. fi
  11101. ;;
  11102. amigaos*)
  11103. # FIXME: we need at least 68020 code to build shared libraries, but
  11104. # adding the `-m68020' flag to GCC prevents building anything better,
  11105. # like `-m68040'.
  11106. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11107. ;;
  11108. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11109. # PIC is the default for these OSes.
  11110. ;;
  11111. mingw* | pw32* | os2*)
  11112. # This hack is so that the source file can tell whether it is being
  11113. # built for inclusion in a dll (and should export symbols for example).
  11114. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11115. ;;
  11116. darwin* | rhapsody*)
  11117. # PIC is the default on this platform
  11118. # Common symbols not allowed in MH_DYLIB files
  11119. lt_prog_compiler_pic_F77='-fno-common'
  11120. ;;
  11121. interix3*)
  11122. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11123. # Instead, we relocate shared libraries at runtime.
  11124. ;;
  11125. msdosdjgpp*)
  11126. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11127. # on systems that don't support them.
  11128. lt_prog_compiler_can_build_shared_F77=no
  11129. enable_shared=no
  11130. ;;
  11131. sysv4*MP*)
  11132. if test -d /usr/nec; then
  11133. lt_prog_compiler_pic_F77=-Kconform_pic
  11134. fi
  11135. ;;
  11136. hpux*)
  11137. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11138. # not for PA HP-UX.
  11139. case $host_cpu in
  11140. hppa*64*|ia64*)
  11141. # +Z the default
  11142. ;;
  11143. *)
  11144. lt_prog_compiler_pic_F77='-fPIC'
  11145. ;;
  11146. esac
  11147. ;;
  11148. *)
  11149. lt_prog_compiler_pic_F77='-fPIC'
  11150. ;;
  11151. esac
  11152. else
  11153. # PORTME Check for flag to pass linker flags through the system compiler.
  11154. case $host_os in
  11155. aix*)
  11156. lt_prog_compiler_wl_F77='-Wl,'
  11157. if test "$host_cpu" = ia64; then
  11158. # AIX 5 now supports IA64 processor
  11159. lt_prog_compiler_static_F77='-Bstatic'
  11160. else
  11161. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11162. fi
  11163. ;;
  11164. darwin*)
  11165. # PIC is the default on this platform
  11166. # Common symbols not allowed in MH_DYLIB files
  11167. case $cc_basename in
  11168. xlc*)
  11169. lt_prog_compiler_pic_F77='-qnocommon'
  11170. lt_prog_compiler_wl_F77='-Wl,'
  11171. ;;
  11172. esac
  11173. ;;
  11174. mingw* | pw32* | os2*)
  11175. # This hack is so that the source file can tell whether it is being
  11176. # built for inclusion in a dll (and should export symbols for example).
  11177. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11178. ;;
  11179. hpux9* | hpux10* | hpux11*)
  11180. lt_prog_compiler_wl_F77='-Wl,'
  11181. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11182. # not for PA HP-UX.
  11183. case $host_cpu in
  11184. hppa*64*|ia64*)
  11185. # +Z the default
  11186. ;;
  11187. *)
  11188. lt_prog_compiler_pic_F77='+Z'
  11189. ;;
  11190. esac
  11191. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11192. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11193. ;;
  11194. irix5* | irix6* | nonstopux*)
  11195. lt_prog_compiler_wl_F77='-Wl,'
  11196. # PIC (with -KPIC) is the default.
  11197. lt_prog_compiler_static_F77='-non_shared'
  11198. ;;
  11199. newsos6)
  11200. lt_prog_compiler_pic_F77='-KPIC'
  11201. lt_prog_compiler_static_F77='-Bstatic'
  11202. ;;
  11203. linux*)
  11204. case $cc_basename in
  11205. icc* | ecc*)
  11206. lt_prog_compiler_wl_F77='-Wl,'
  11207. lt_prog_compiler_pic_F77='-KPIC'
  11208. lt_prog_compiler_static_F77='-static'
  11209. ;;
  11210. pgcc* | pgf77* | pgf90* | pgf95*)
  11211. # Portland Group compilers (*not* the Pentium gcc compiler,
  11212. # which looks to be a dead project)
  11213. lt_prog_compiler_wl_F77='-Wl,'
  11214. lt_prog_compiler_pic_F77='-fpic'
  11215. lt_prog_compiler_static_F77='-Bstatic'
  11216. ;;
  11217. ccc*)
  11218. lt_prog_compiler_wl_F77='-Wl,'
  11219. # All Alpha code is PIC.
  11220. lt_prog_compiler_static_F77='-non_shared'
  11221. ;;
  11222. esac
  11223. ;;
  11224. osf3* | osf4* | osf5*)
  11225. lt_prog_compiler_wl_F77='-Wl,'
  11226. # All OSF/1 code is PIC.
  11227. lt_prog_compiler_static_F77='-non_shared'
  11228. ;;
  11229. solaris*)
  11230. lt_prog_compiler_pic_F77='-KPIC'
  11231. lt_prog_compiler_static_F77='-Bstatic'
  11232. case $cc_basename in
  11233. f77* | f90* | f95*)
  11234. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11235. *)
  11236. lt_prog_compiler_wl_F77='-Wl,';;
  11237. esac
  11238. ;;
  11239. sunos4*)
  11240. lt_prog_compiler_wl_F77='-Qoption ld '
  11241. lt_prog_compiler_pic_F77='-PIC'
  11242. lt_prog_compiler_static_F77='-Bstatic'
  11243. ;;
  11244. sysv4 | sysv4.2uw2* | sysv4.3*)
  11245. lt_prog_compiler_wl_F77='-Wl,'
  11246. lt_prog_compiler_pic_F77='-KPIC'
  11247. lt_prog_compiler_static_F77='-Bstatic'
  11248. ;;
  11249. sysv4*MP*)
  11250. if test -d /usr/nec ;then
  11251. lt_prog_compiler_pic_F77='-Kconform_pic'
  11252. lt_prog_compiler_static_F77='-Bstatic'
  11253. fi
  11254. ;;
  11255. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11256. lt_prog_compiler_wl_F77='-Wl,'
  11257. lt_prog_compiler_pic_F77='-KPIC'
  11258. lt_prog_compiler_static_F77='-Bstatic'
  11259. ;;
  11260. unicos*)
  11261. lt_prog_compiler_wl_F77='-Wl,'
  11262. lt_prog_compiler_can_build_shared_F77=no
  11263. ;;
  11264. uts4*)
  11265. lt_prog_compiler_pic_F77='-pic'
  11266. lt_prog_compiler_static_F77='-Bstatic'
  11267. ;;
  11268. *)
  11269. lt_prog_compiler_can_build_shared_F77=no
  11270. ;;
  11271. esac
  11272. fi
  11273. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11274. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11275. #
  11276. # Check to make sure the PIC flag actually works.
  11277. #
  11278. if test -n "$lt_prog_compiler_pic_F77"; then
  11279. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11280. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11281. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11282. echo $ECHO_N "(cached) $ECHO_C" >&6
  11283. else
  11284. lt_prog_compiler_pic_works_F77=no
  11285. ac_outfile=conftest.$ac_objext
  11286. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11287. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11288. # Insert the option either (1) after the last *FLAGS variable, or
  11289. # (2) before a word containing "conftest.", or (3) at the end.
  11290. # Note that $ac_compile itself does not contain backslashes and begins
  11291. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11292. # The option is referenced via a variable to avoid confusing sed.
  11293. lt_compile=`echo "$ac_compile" | $SED \
  11294. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11295. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11296. -e 's:$: $lt_compiler_flag:'`
  11297. (eval echo "\"\$as_me:12541: $lt_compile\"" >&5)
  11298. (eval "$lt_compile" 2>conftest.err)
  11299. ac_status=$?
  11300. cat conftest.err >&5
  11301. echo "$as_me:12545: \$? = $ac_status" >&5
  11302. if (exit $ac_status) && test -s "$ac_outfile"; then
  11303. # The compiler can only warn and ignore the option if not recognized
  11304. # So say no if there are warnings other than the usual output.
  11305. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11306. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11307. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11308. lt_prog_compiler_pic_works_F77=yes
  11309. fi
  11310. fi
  11311. $rm conftest*
  11312. fi
  11313. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  11314. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  11315. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  11316. case $lt_prog_compiler_pic_F77 in
  11317. "" | " "*) ;;
  11318. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  11319. esac
  11320. else
  11321. lt_prog_compiler_pic_F77=
  11322. lt_prog_compiler_can_build_shared_F77=no
  11323. fi
  11324. fi
  11325. case $host_os in
  11326. # For platforms which do not support PIC, -DPIC is meaningless:
  11327. *djgpp*)
  11328. lt_prog_compiler_pic_F77=
  11329. ;;
  11330. *)
  11331. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  11332. ;;
  11333. esac
  11334. #
  11335. # Check to make sure the static flag actually works.
  11336. #
  11337. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  11338. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11339. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  11340. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  11341. echo $ECHO_N "(cached) $ECHO_C" >&6
  11342. else
  11343. lt_prog_compiler_static_works_F77=no
  11344. save_LDFLAGS="$LDFLAGS"
  11345. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11346. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  11347. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11348. # The linker can only warn and ignore the option if not recognized
  11349. # So say no if there are warnings
  11350. if test -s conftest.err; then
  11351. # Append any errors to the config.log.
  11352. cat conftest.err 1>&5
  11353. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11354. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11355. if diff conftest.exp conftest.er2 >/dev/null; then
  11356. lt_prog_compiler_static_works_F77=yes
  11357. fi
  11358. else
  11359. lt_prog_compiler_static_works_F77=yes
  11360. fi
  11361. fi
  11362. $rm conftest*
  11363. LDFLAGS="$save_LDFLAGS"
  11364. fi
  11365. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  11366. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  11367. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  11368. :
  11369. else
  11370. lt_prog_compiler_static_F77=
  11371. fi
  11372. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11373. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11374. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  11375. echo $ECHO_N "(cached) $ECHO_C" >&6
  11376. else
  11377. lt_cv_prog_compiler_c_o_F77=no
  11378. $rm -r conftest 2>/dev/null
  11379. mkdir conftest
  11380. cd conftest
  11381. mkdir out
  11382. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11383. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11384. # Insert the option either (1) after the last *FLAGS variable, or
  11385. # (2) before a word containing "conftest.", or (3) at the end.
  11386. # Note that $ac_compile itself does not contain backslashes and begins
  11387. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11388. lt_compile=`echo "$ac_compile" | $SED \
  11389. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11390. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11391. -e 's:$: $lt_compiler_flag:'`
  11392. (eval echo "\"\$as_me:12645: $lt_compile\"" >&5)
  11393. (eval "$lt_compile" 2>out/conftest.err)
  11394. ac_status=$?
  11395. cat out/conftest.err >&5
  11396. echo "$as_me:12649: \$? = $ac_status" >&5
  11397. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11398. then
  11399. # The compiler can only warn and ignore the option if not recognized
  11400. # So say no if there are warnings
  11401. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11402. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11403. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11404. lt_cv_prog_compiler_c_o_F77=yes
  11405. fi
  11406. fi
  11407. chmod u+w . 2>&5
  11408. $rm conftest*
  11409. # SGI C++ compiler will create directory out/ii_files/ for
  11410. # template instantiation
  11411. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11412. $rm out/* && rmdir out
  11413. cd ..
  11414. rmdir conftest
  11415. $rm conftest*
  11416. fi
  11417. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  11418. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  11419. hard_links="nottested"
  11420. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  11421. # do not overwrite the value of need_locks provided by the user
  11422. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11423. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11424. hard_links=yes
  11425. $rm conftest*
  11426. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11427. touch conftest.a
  11428. ln conftest.a conftest.b 2>&5 || hard_links=no
  11429. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11430. echo "$as_me:$LINENO: result: $hard_links" >&5
  11431. echo "${ECHO_T}$hard_links" >&6
  11432. if test "$hard_links" = no; then
  11433. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11434. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11435. need_locks=warn
  11436. fi
  11437. else
  11438. need_locks=no
  11439. fi
  11440. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11441. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11442. runpath_var=
  11443. allow_undefined_flag_F77=
  11444. enable_shared_with_static_runtimes_F77=no
  11445. archive_cmds_F77=
  11446. archive_expsym_cmds_F77=
  11447. old_archive_From_new_cmds_F77=
  11448. old_archive_from_expsyms_cmds_F77=
  11449. export_dynamic_flag_spec_F77=
  11450. whole_archive_flag_spec_F77=
  11451. thread_safe_flag_spec_F77=
  11452. hardcode_libdir_flag_spec_F77=
  11453. hardcode_libdir_flag_spec_ld_F77=
  11454. hardcode_libdir_separator_F77=
  11455. hardcode_direct_F77=no
  11456. hardcode_minus_L_F77=no
  11457. hardcode_shlibpath_var_F77=unsupported
  11458. link_all_deplibs_F77=unknown
  11459. hardcode_automatic_F77=no
  11460. module_cmds_F77=
  11461. module_expsym_cmds_F77=
  11462. always_export_symbols_F77=no
  11463. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11464. # include_expsyms should be a list of space-separated symbols to be *always*
  11465. # included in the symbol list
  11466. include_expsyms_F77=
  11467. # exclude_expsyms can be an extended regexp of symbols to exclude
  11468. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11469. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11470. # as well as any symbol that contains `d'.
  11471. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  11472. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11473. # platforms (ab)use it in PIC code, but their linkers get confused if
  11474. # the symbol is explicitly referenced. Since portable code cannot
  11475. # rely on this symbol name, it's probably fine to never include it in
  11476. # preloaded symbol tables.
  11477. extract_expsyms_cmds=
  11478. # Just being paranoid about ensuring that cc_basename is set.
  11479. for cc_temp in $compiler""; do
  11480. case $cc_temp in
  11481. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11482. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11483. \-*) ;;
  11484. *) break;;
  11485. esac
  11486. done
  11487. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11488. case $host_os in
  11489. cygwin* | mingw* | pw32*)
  11490. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11491. # When not using gcc, we currently assume that we are using
  11492. # Microsoft Visual C++.
  11493. if test "$GCC" != yes; then
  11494. with_gnu_ld=no
  11495. fi
  11496. ;;
  11497. interix*)
  11498. # we just hope/assume this is gcc and not c89 (= MSVC++)
  11499. with_gnu_ld=yes
  11500. ;;
  11501. openbsd*)
  11502. with_gnu_ld=no
  11503. ;;
  11504. esac
  11505. ld_shlibs_F77=yes
  11506. if test "$with_gnu_ld" = yes; then
  11507. # If archive_cmds runs LD, not CC, wlarc should be empty
  11508. wlarc='${wl}'
  11509. # Set some defaults for GNU ld with shared library support. These
  11510. # are reset later if shared libraries are not supported. Putting them
  11511. # here allows them to be overridden if necessary.
  11512. runpath_var=LD_RUN_PATH
  11513. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  11514. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  11515. # ancient GNU ld didn't support --whole-archive et. al.
  11516. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11517. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11518. else
  11519. whole_archive_flag_spec_F77=
  11520. fi
  11521. supports_anon_versioning=no
  11522. case `$LD -v 2>/dev/null` in
  11523. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11524. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11525. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11526. *\ 2.11.*) ;; # other 2.11 versions
  11527. *) supports_anon_versioning=yes ;;
  11528. esac
  11529. # See if GNU ld supports shared libraries.
  11530. case $host_os in
  11531. aix3* | aix4* | aix5*)
  11532. # On AIX/PPC, the GNU linker is very broken
  11533. if test "$host_cpu" != ia64; then
  11534. ld_shlibs_F77=no
  11535. cat <<EOF 1>&2
  11536. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11537. *** to be unable to reliably create shared libraries on AIX.
  11538. *** Therefore, libtool is disabling shared libraries support. If you
  11539. *** really care for shared libraries, you may want to modify your PATH
  11540. *** so that a non-GNU linker is found, and then restart.
  11541. EOF
  11542. fi
  11543. ;;
  11544. amigaos*)
  11545. 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)'
  11546. hardcode_libdir_flag_spec_F77='-L$libdir'
  11547. hardcode_minus_L_F77=yes
  11548. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11549. # that the semantics of dynamic libraries on AmigaOS, at least up
  11550. # to version 4, is to share data among multiple programs linked
  11551. # with the same dynamic library. Since this doesn't match the
  11552. # behavior of shared libraries on other platforms, we can't use
  11553. # them.
  11554. ld_shlibs_F77=no
  11555. ;;
  11556. beos*)
  11557. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11558. allow_undefined_flag_F77=unsupported
  11559. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11560. # support --undefined. This deserves some investigation. FIXME
  11561. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11562. else
  11563. ld_shlibs_F77=no
  11564. fi
  11565. ;;
  11566. cygwin* | mingw* | pw32*)
  11567. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  11568. # as there is no search path for DLLs.
  11569. hardcode_libdir_flag_spec_F77='-L$libdir'
  11570. allow_undefined_flag_F77=unsupported
  11571. always_export_symbols_F77=no
  11572. enable_shared_with_static_runtimes_F77=yes
  11573. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11574. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11575. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11576. # If the export-symbols file already is a .def file (1st line
  11577. # is EXPORTS), use it as is; otherwise, prepend...
  11578. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11579. cp $export_symbols $output_objdir/$soname.def;
  11580. else
  11581. echo EXPORTS > $output_objdir/$soname.def;
  11582. cat $export_symbols >> $output_objdir/$soname.def;
  11583. fi~
  11584. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11585. else
  11586. ld_shlibs_F77=no
  11587. fi
  11588. ;;
  11589. interix3*)
  11590. hardcode_direct_F77=no
  11591. hardcode_shlibpath_var_F77=no
  11592. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  11593. export_dynamic_flag_spec_F77='${wl}-E'
  11594. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11595. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11596. # default) and relocated if they conflict, which is a slow very memory
  11597. # consuming and fragmenting process. To avoid this, we pick a random,
  11598. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11599. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11600. 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'
  11601. 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'
  11602. ;;
  11603. linux*)
  11604. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11605. tmp_addflag=
  11606. case $cc_basename,$host_cpu in
  11607. pgcc*) # Portland Group C compiler
  11608. 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'
  11609. tmp_addflag=' $pic_flag'
  11610. ;;
  11611. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11612. 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'
  11613. tmp_addflag=' $pic_flag -Mnomain' ;;
  11614. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11615. tmp_addflag=' -i_dynamic' ;;
  11616. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11617. tmp_addflag=' -i_dynamic -nofor_main' ;;
  11618. ifc* | ifort*) # Intel Fortran compiler
  11619. tmp_addflag=' -nofor_main' ;;
  11620. esac
  11621. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11622. if test $supports_anon_versioning = yes; then
  11623. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  11624. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11625. $echo "local: *; };" >> $output_objdir/$libname.ver~
  11626. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11627. fi
  11628. else
  11629. ld_shlibs_F77=no
  11630. fi
  11631. ;;
  11632. netbsd*)
  11633. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11634. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11635. wlarc=
  11636. else
  11637. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11638. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11639. fi
  11640. ;;
  11641. solaris*)
  11642. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11643. ld_shlibs_F77=no
  11644. cat <<EOF 1>&2
  11645. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11646. *** create shared libraries on Solaris systems. Therefore, libtool
  11647. *** is disabling shared libraries support. We urge you to upgrade GNU
  11648. *** binutils to release 2.9.1 or newer. Another option is to modify
  11649. *** your PATH or compiler configuration so that the native linker is
  11650. *** used, and then restart.
  11651. EOF
  11652. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11653. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11654. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11655. else
  11656. ld_shlibs_F77=no
  11657. fi
  11658. ;;
  11659. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11660. case `$LD -v 2>&1` in
  11661. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11662. ld_shlibs_F77=no
  11663. cat <<_LT_EOF 1>&2
  11664. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11665. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11666. *** is disabling shared libraries support. We urge you to upgrade GNU
  11667. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11668. *** your PATH or compiler configuration so that the native linker is
  11669. *** used, and then restart.
  11670. _LT_EOF
  11671. ;;
  11672. *)
  11673. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11674. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  11675. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  11676. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  11677. else
  11678. ld_shlibs_F77=no
  11679. fi
  11680. ;;
  11681. esac
  11682. ;;
  11683. sunos4*)
  11684. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11685. wlarc=
  11686. hardcode_direct_F77=yes
  11687. hardcode_shlibpath_var_F77=no
  11688. ;;
  11689. *)
  11690. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11691. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11692. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11693. else
  11694. ld_shlibs_F77=no
  11695. fi
  11696. ;;
  11697. esac
  11698. if test "$ld_shlibs_F77" = no; then
  11699. runpath_var=
  11700. hardcode_libdir_flag_spec_F77=
  11701. export_dynamic_flag_spec_F77=
  11702. whole_archive_flag_spec_F77=
  11703. fi
  11704. else
  11705. # PORTME fill in a description of your system's linker (not GNU ld)
  11706. case $host_os in
  11707. aix3*)
  11708. allow_undefined_flag_F77=unsupported
  11709. always_export_symbols_F77=yes
  11710. 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'
  11711. # Note: this linker hardcodes the directories in LIBPATH if there
  11712. # are no directories specified by -L.
  11713. hardcode_minus_L_F77=yes
  11714. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11715. # Neither direct hardcoding nor static linking is supported with a
  11716. # broken collect2.
  11717. hardcode_direct_F77=unsupported
  11718. fi
  11719. ;;
  11720. aix4* | aix5*)
  11721. if test "$host_cpu" = ia64; then
  11722. # On IA64, the linker does run time linking by default, so we don't
  11723. # have to do anything special.
  11724. aix_use_runtimelinking=no
  11725. exp_sym_flag='-Bexport'
  11726. no_entry_flag=""
  11727. else
  11728. # If we're using GNU nm, then we don't want the "-C" option.
  11729. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11730. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11731. 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'
  11732. else
  11733. 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'
  11734. fi
  11735. aix_use_runtimelinking=no
  11736. # Test if we are trying to use run time linking or normal
  11737. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11738. # need to do runtime linking.
  11739. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  11740. for ld_flag in $LDFLAGS; do
  11741. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11742. aix_use_runtimelinking=yes
  11743. break
  11744. fi
  11745. done
  11746. ;;
  11747. esac
  11748. exp_sym_flag='-bexport'
  11749. no_entry_flag='-bnoentry'
  11750. fi
  11751. # When large executables or shared objects are built, AIX ld can
  11752. # have problems creating the table of contents. If linking a library
  11753. # or program results in "error TOC overflow" add -mminimal-toc to
  11754. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11755. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11756. archive_cmds_F77=''
  11757. hardcode_direct_F77=yes
  11758. hardcode_libdir_separator_F77=':'
  11759. link_all_deplibs_F77=yes
  11760. if test "$GCC" = yes; then
  11761. case $host_os in aix4.[012]|aix4.[012].*)
  11762. # We only want to do this on AIX 4.2 and lower, the check
  11763. # below for broken collect2 doesn't work under 4.3+
  11764. collect2name=`${CC} -print-prog-name=collect2`
  11765. if test -f "$collect2name" && \
  11766. strings "$collect2name" | grep resolve_lib_name >/dev/null
  11767. then
  11768. # We have reworked collect2
  11769. hardcode_direct_F77=yes
  11770. else
  11771. # We have old collect2
  11772. hardcode_direct_F77=unsupported
  11773. # It fails to find uninstalled libraries when the uninstalled
  11774. # path is not listed in the libpath. Setting hardcode_minus_L
  11775. # to unsupported forces relinking
  11776. hardcode_minus_L_F77=yes
  11777. hardcode_libdir_flag_spec_F77='-L$libdir'
  11778. hardcode_libdir_separator_F77=
  11779. fi
  11780. ;;
  11781. esac
  11782. shared_flag='-shared'
  11783. if test "$aix_use_runtimelinking" = yes; then
  11784. shared_flag="$shared_flag "'${wl}-G'
  11785. fi
  11786. else
  11787. # not using gcc
  11788. if test "$host_cpu" = ia64; then
  11789. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11790. # chokes on -Wl,-G. The following line is correct:
  11791. shared_flag='-G'
  11792. else
  11793. if test "$aix_use_runtimelinking" = yes; then
  11794. shared_flag='${wl}-G'
  11795. else
  11796. shared_flag='${wl}-bM:SRE'
  11797. fi
  11798. fi
  11799. fi
  11800. # It seems that -bexpall does not export symbols beginning with
  11801. # underscore (_), so it is better to generate a list of symbols to export.
  11802. always_export_symbols_F77=yes
  11803. if test "$aix_use_runtimelinking" = yes; then
  11804. # Warning - without using the other runtime loading flags (-brtl),
  11805. # -berok will link without error, but may produce a broken library.
  11806. allow_undefined_flag_F77='-berok'
  11807. # Determine the default libpath from the value encoded in an empty executable.
  11808. cat >conftest.$ac_ext <<_ACEOF
  11809. program main
  11810. end
  11811. _ACEOF
  11812. rm -f conftest.$ac_objext conftest$ac_exeext
  11813. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11814. (eval $ac_link) 2>conftest.er1
  11815. ac_status=$?
  11816. grep -v '^ *+' conftest.er1 >conftest.err
  11817. rm -f conftest.er1
  11818. cat conftest.err >&5
  11819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11820. (exit $ac_status); } &&
  11821. { ac_try='test -z "$ac_f77_werror_flag"
  11822. || test ! -s conftest.err'
  11823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11824. (eval $ac_try) 2>&5
  11825. ac_status=$?
  11826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11827. (exit $ac_status); }; } &&
  11828. { ac_try='test -s conftest$ac_exeext'
  11829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11830. (eval $ac_try) 2>&5
  11831. ac_status=$?
  11832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11833. (exit $ac_status); }; }; then
  11834. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11835. }'`
  11836. # Check for a 64-bit object if we didn't find anything.
  11837. 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; }
  11838. }'`; fi
  11839. else
  11840. echo "$as_me: failed program was:" >&5
  11841. sed 's/^/| /' conftest.$ac_ext >&5
  11842. fi
  11843. rm -f conftest.err conftest.$ac_objext \
  11844. conftest$ac_exeext conftest.$ac_ext
  11845. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11846. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  11847. 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"
  11848. else
  11849. if test "$host_cpu" = ia64; then
  11850. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  11851. allow_undefined_flag_F77="-z nodefs"
  11852. 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"
  11853. else
  11854. # Determine the default libpath from the value encoded in an empty executable.
  11855. cat >conftest.$ac_ext <<_ACEOF
  11856. program main
  11857. end
  11858. _ACEOF
  11859. rm -f conftest.$ac_objext conftest$ac_exeext
  11860. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11861. (eval $ac_link) 2>conftest.er1
  11862. ac_status=$?
  11863. grep -v '^ *+' conftest.er1 >conftest.err
  11864. rm -f conftest.er1
  11865. cat conftest.err >&5
  11866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11867. (exit $ac_status); } &&
  11868. { ac_try='test -z "$ac_f77_werror_flag"
  11869. || test ! -s conftest.err'
  11870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11871. (eval $ac_try) 2>&5
  11872. ac_status=$?
  11873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11874. (exit $ac_status); }; } &&
  11875. { ac_try='test -s conftest$ac_exeext'
  11876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11877. (eval $ac_try) 2>&5
  11878. ac_status=$?
  11879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11880. (exit $ac_status); }; }; then
  11881. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11882. }'`
  11883. # Check for a 64-bit object if we didn't find anything.
  11884. 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; }
  11885. }'`; fi
  11886. else
  11887. echo "$as_me: failed program was:" >&5
  11888. sed 's/^/| /' conftest.$ac_ext >&5
  11889. fi
  11890. rm -f conftest.err conftest.$ac_objext \
  11891. conftest$ac_exeext conftest.$ac_ext
  11892. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11893. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  11894. # Warning - without using the other run time loading flags,
  11895. # -berok will link without error, but may produce a broken library.
  11896. no_undefined_flag_F77=' ${wl}-bernotok'
  11897. allow_undefined_flag_F77=' ${wl}-berok'
  11898. # Exported symbols can be pulled into shared objects from archives
  11899. whole_archive_flag_spec_F77='$convenience'
  11900. archive_cmds_need_lc_F77=yes
  11901. # This is similar to how AIX traditionally builds its shared libraries.
  11902. 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'
  11903. fi
  11904. fi
  11905. ;;
  11906. amigaos*)
  11907. 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)'
  11908. hardcode_libdir_flag_spec_F77='-L$libdir'
  11909. hardcode_minus_L_F77=yes
  11910. # see comment about different semantics on the GNU ld section
  11911. ld_shlibs_F77=no
  11912. ;;
  11913. bsdi[45]*)
  11914. export_dynamic_flag_spec_F77=-rdynamic
  11915. ;;
  11916. cygwin* | mingw* | pw32*)
  11917. # When not using gcc, we currently assume that we are using
  11918. # Microsoft Visual C++.
  11919. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11920. # no search path for DLLs.
  11921. hardcode_libdir_flag_spec_F77=' '
  11922. allow_undefined_flag_F77=unsupported
  11923. # Tell ltmain to make .lib files, not .a files.
  11924. libext=lib
  11925. # Tell ltmain to make .dll files, not .so files.
  11926. shrext_cmds=".dll"
  11927. # FIXME: Setting linknames here is a bad hack.
  11928. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  11929. # The linker will automatically build a .lib file if we build a DLL.
  11930. old_archive_From_new_cmds_F77='true'
  11931. # FIXME: Should let the user specify the lib program.
  11932. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  11933. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  11934. enable_shared_with_static_runtimes_F77=yes
  11935. ;;
  11936. darwin* | rhapsody*)
  11937. case $host_os in
  11938. rhapsody* | darwin1.[012])
  11939. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  11940. ;;
  11941. *) # Darwin 1.3 on
  11942. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11943. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11944. else
  11945. case ${MACOSX_DEPLOYMENT_TARGET} in
  11946. 10.[012])
  11947. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11948. ;;
  11949. 10.*)
  11950. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  11951. ;;
  11952. esac
  11953. fi
  11954. ;;
  11955. esac
  11956. archive_cmds_need_lc_F77=no
  11957. hardcode_direct_F77=no
  11958. hardcode_automatic_F77=yes
  11959. hardcode_shlibpath_var_F77=unsupported
  11960. whole_archive_flag_spec_F77=''
  11961. link_all_deplibs_F77=yes
  11962. if test "$GCC" = yes ; then
  11963. output_verbose_link_cmd='echo'
  11964. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11965. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11966. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11967. 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}'
  11968. 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}'
  11969. else
  11970. case $cc_basename in
  11971. xlc*)
  11972. output_verbose_link_cmd='echo'
  11973. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  11974. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11975. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11976. 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}'
  11977. 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}'
  11978. ;;
  11979. *)
  11980. ld_shlibs_F77=no
  11981. ;;
  11982. esac
  11983. fi
  11984. ;;
  11985. dgux*)
  11986. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11987. hardcode_libdir_flag_spec_F77='-L$libdir'
  11988. hardcode_shlibpath_var_F77=no
  11989. ;;
  11990. freebsd1*)
  11991. ld_shlibs_F77=no
  11992. ;;
  11993. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11994. # support. Future versions do this automatically, but an explicit c++rt0.o
  11995. # does not break anything, and helps significantly (at the cost of a little
  11996. # extra space).
  11997. freebsd2.2*)
  11998. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11999. hardcode_libdir_flag_spec_F77='-R$libdir'
  12000. hardcode_direct_F77=yes
  12001. hardcode_shlibpath_var_F77=no
  12002. ;;
  12003. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12004. freebsd2*)
  12005. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12006. hardcode_direct_F77=yes
  12007. hardcode_minus_L_F77=yes
  12008. hardcode_shlibpath_var_F77=no
  12009. ;;
  12010. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12011. freebsd* | kfreebsd*-gnu | dragonfly*)
  12012. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12013. hardcode_libdir_flag_spec_F77='-R$libdir'
  12014. hardcode_direct_F77=yes
  12015. hardcode_shlibpath_var_F77=no
  12016. ;;
  12017. hpux9*)
  12018. if test "$GCC" = yes; then
  12019. 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'
  12020. else
  12021. 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'
  12022. fi
  12023. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12024. hardcode_libdir_separator_F77=:
  12025. hardcode_direct_F77=yes
  12026. # hardcode_minus_L: Not really in the search PATH,
  12027. # but as the default location of the library.
  12028. hardcode_minus_L_F77=yes
  12029. export_dynamic_flag_spec_F77='${wl}-E'
  12030. ;;
  12031. hpux10*)
  12032. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12033. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12034. else
  12035. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12036. fi
  12037. if test "$with_gnu_ld" = no; then
  12038. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12039. hardcode_libdir_separator_F77=:
  12040. hardcode_direct_F77=yes
  12041. export_dynamic_flag_spec_F77='${wl}-E'
  12042. # hardcode_minus_L: Not really in the search PATH,
  12043. # but as the default location of the library.
  12044. hardcode_minus_L_F77=yes
  12045. fi
  12046. ;;
  12047. hpux11*)
  12048. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12049. case $host_cpu in
  12050. hppa*64*)
  12051. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12052. ;;
  12053. ia64*)
  12054. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12055. ;;
  12056. *)
  12057. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12058. ;;
  12059. esac
  12060. else
  12061. case $host_cpu in
  12062. hppa*64*)
  12063. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12064. ;;
  12065. ia64*)
  12066. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12067. ;;
  12068. *)
  12069. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12070. ;;
  12071. esac
  12072. fi
  12073. if test "$with_gnu_ld" = no; then
  12074. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12075. hardcode_libdir_separator_F77=:
  12076. case $host_cpu in
  12077. hppa*64*|ia64*)
  12078. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12079. hardcode_direct_F77=no
  12080. hardcode_shlibpath_var_F77=no
  12081. ;;
  12082. *)
  12083. hardcode_direct_F77=yes
  12084. export_dynamic_flag_spec_F77='${wl}-E'
  12085. # hardcode_minus_L: Not really in the search PATH,
  12086. # but as the default location of the library.
  12087. hardcode_minus_L_F77=yes
  12088. ;;
  12089. esac
  12090. fi
  12091. ;;
  12092. irix5* | irix6* | nonstopux*)
  12093. if test "$GCC" = yes; then
  12094. 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'
  12095. else
  12096. 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'
  12097. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12098. fi
  12099. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12100. hardcode_libdir_separator_F77=:
  12101. link_all_deplibs_F77=yes
  12102. ;;
  12103. netbsd*)
  12104. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12105. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12106. else
  12107. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12108. fi
  12109. hardcode_libdir_flag_spec_F77='-R$libdir'
  12110. hardcode_direct_F77=yes
  12111. hardcode_shlibpath_var_F77=no
  12112. ;;
  12113. newsos6)
  12114. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12115. hardcode_direct_F77=yes
  12116. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12117. hardcode_libdir_separator_F77=:
  12118. hardcode_shlibpath_var_F77=no
  12119. ;;
  12120. openbsd*)
  12121. hardcode_direct_F77=yes
  12122. hardcode_shlibpath_var_F77=no
  12123. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12124. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12125. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12126. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12127. export_dynamic_flag_spec_F77='${wl}-E'
  12128. else
  12129. case $host_os in
  12130. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12131. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12132. hardcode_libdir_flag_spec_F77='-R$libdir'
  12133. ;;
  12134. *)
  12135. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12136. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12137. ;;
  12138. esac
  12139. fi
  12140. ;;
  12141. os2*)
  12142. hardcode_libdir_flag_spec_F77='-L$libdir'
  12143. hardcode_minus_L_F77=yes
  12144. allow_undefined_flag_F77=unsupported
  12145. 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'
  12146. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12147. ;;
  12148. osf3*)
  12149. if test "$GCC" = yes; then
  12150. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12151. 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'
  12152. else
  12153. allow_undefined_flag_F77=' -expect_unresolved \*'
  12154. 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'
  12155. fi
  12156. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12157. hardcode_libdir_separator_F77=:
  12158. ;;
  12159. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12160. if test "$GCC" = yes; then
  12161. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12162. 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'
  12163. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12164. else
  12165. allow_undefined_flag_F77=' -expect_unresolved \*'
  12166. 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'
  12167. 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~
  12168. $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'
  12169. # Both c and cxx compiler support -rpath directly
  12170. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12171. fi
  12172. hardcode_libdir_separator_F77=:
  12173. ;;
  12174. solaris*)
  12175. no_undefined_flag_F77=' -z text'
  12176. if test "$GCC" = yes; then
  12177. wlarc='${wl}'
  12178. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12179. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12180. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12181. else
  12182. wlarc=''
  12183. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12184. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12185. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12186. fi
  12187. hardcode_libdir_flag_spec_F77='-R$libdir'
  12188. hardcode_shlibpath_var_F77=no
  12189. case $host_os in
  12190. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12191. *)
  12192. # The compiler driver will combine linker options so we
  12193. # cannot just pass the convience library names through
  12194. # without $wl, iff we do not link with $LD.
  12195. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12196. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12197. case $wlarc in
  12198. '')
  12199. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12200. *)
  12201. 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' ;;
  12202. esac ;;
  12203. esac
  12204. link_all_deplibs_F77=yes
  12205. ;;
  12206. sunos4*)
  12207. if test "x$host_vendor" = xsequent; then
  12208. # Use $CC to link under sequent, because it throws in some extra .o
  12209. # files that make .init and .fini sections work.
  12210. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12211. else
  12212. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12213. fi
  12214. hardcode_libdir_flag_spec_F77='-L$libdir'
  12215. hardcode_direct_F77=yes
  12216. hardcode_minus_L_F77=yes
  12217. hardcode_shlibpath_var_F77=no
  12218. ;;
  12219. sysv4)
  12220. case $host_vendor in
  12221. sni)
  12222. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12223. hardcode_direct_F77=yes # is this really true???
  12224. ;;
  12225. siemens)
  12226. ## LD is ld it makes a PLAMLIB
  12227. ## CC just makes a GrossModule.
  12228. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12229. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12230. hardcode_direct_F77=no
  12231. ;;
  12232. motorola)
  12233. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12234. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12235. ;;
  12236. esac
  12237. runpath_var='LD_RUN_PATH'
  12238. hardcode_shlibpath_var_F77=no
  12239. ;;
  12240. sysv4.3*)
  12241. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12242. hardcode_shlibpath_var_F77=no
  12243. export_dynamic_flag_spec_F77='-Bexport'
  12244. ;;
  12245. sysv4*MP*)
  12246. if test -d /usr/nec; then
  12247. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12248. hardcode_shlibpath_var_F77=no
  12249. runpath_var=LD_RUN_PATH
  12250. hardcode_runpath_var=yes
  12251. ld_shlibs_F77=yes
  12252. fi
  12253. ;;
  12254. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  12255. no_undefined_flag_F77='${wl}-z,text'
  12256. archive_cmds_need_lc_F77=no
  12257. hardcode_shlibpath_var_F77=no
  12258. runpath_var='LD_RUN_PATH'
  12259. if test "$GCC" = yes; then
  12260. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12261. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12262. else
  12263. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12264. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12265. fi
  12266. ;;
  12267. sysv5* | sco3.2v5* | sco5v6*)
  12268. # Note: We can NOT use -z defs as we might desire, because we do not
  12269. # link with -lc, and that would cause any symbols used from libc to
  12270. # always be unresolved, which means just about no library would
  12271. # ever link correctly. If we're not using GNU ld we use -z text
  12272. # though, which does catch some bad symbols but isn't as heavy-handed
  12273. # as -z defs.
  12274. no_undefined_flag_F77='${wl}-z,text'
  12275. allow_undefined_flag_F77='${wl}-z,nodefs'
  12276. archive_cmds_need_lc_F77=no
  12277. hardcode_shlibpath_var_F77=no
  12278. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12279. hardcode_libdir_separator_F77=':'
  12280. link_all_deplibs_F77=yes
  12281. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12282. runpath_var='LD_RUN_PATH'
  12283. if test "$GCC" = yes; then
  12284. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12285. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12286. else
  12287. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12288. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12289. fi
  12290. ;;
  12291. uts4*)
  12292. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12293. hardcode_libdir_flag_spec_F77='-L$libdir'
  12294. hardcode_shlibpath_var_F77=no
  12295. ;;
  12296. *)
  12297. ld_shlibs_F77=no
  12298. ;;
  12299. esac
  12300. fi
  12301. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  12302. echo "${ECHO_T}$ld_shlibs_F77" >&6
  12303. test "$ld_shlibs_F77" = no && can_build_shared=no
  12304. #
  12305. # Do we need to explicitly link libc?
  12306. #
  12307. case "x$archive_cmds_need_lc_F77" in
  12308. x|xyes)
  12309. # Assume -lc should be added
  12310. archive_cmds_need_lc_F77=yes
  12311. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12312. case $archive_cmds_F77 in
  12313. *'~'*)
  12314. # FIXME: we may have to deal with multi-command sequences.
  12315. ;;
  12316. '$CC '*)
  12317. # Test whether the compiler implicitly links with -lc since on some
  12318. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12319. # to ld, don't add -lc before -lgcc.
  12320. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12321. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  12322. $rm conftest*
  12323. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12324. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12325. (eval $ac_compile) 2>&5
  12326. ac_status=$?
  12327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12328. (exit $ac_status); } 2>conftest.err; then
  12329. soname=conftest
  12330. lib=conftest
  12331. libobjs=conftest.$ac_objext
  12332. deplibs=
  12333. wl=$lt_prog_compiler_wl_F77
  12334. pic_flag=$lt_prog_compiler_pic_F77
  12335. compiler_flags=-v
  12336. linker_flags=-v
  12337. verstring=
  12338. output_objdir=.
  12339. libname=conftest
  12340. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  12341. allow_undefined_flag_F77=
  12342. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12343. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12344. ac_status=$?
  12345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12346. (exit $ac_status); }
  12347. then
  12348. archive_cmds_need_lc_F77=no
  12349. else
  12350. archive_cmds_need_lc_F77=yes
  12351. fi
  12352. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  12353. else
  12354. cat conftest.err 1>&5
  12355. fi
  12356. $rm conftest*
  12357. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  12358. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  12359. ;;
  12360. esac
  12361. fi
  12362. ;;
  12363. esac
  12364. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12365. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  12366. library_names_spec=
  12367. libname_spec='lib$name'
  12368. soname_spec=
  12369. shrext_cmds=".so"
  12370. postinstall_cmds=
  12371. postuninstall_cmds=
  12372. finish_cmds=
  12373. finish_eval=
  12374. shlibpath_var=
  12375. shlibpath_overrides_runpath=unknown
  12376. version_type=none
  12377. dynamic_linker="$host_os ld.so"
  12378. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12379. if test "$GCC" = yes; then
  12380. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12381. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  12382. # if the path contains ";" then we assume it to be the separator
  12383. # otherwise default to the standard path separator (i.e. ":") - it is
  12384. # assumed that no part of a normal pathname contains ";" but that should
  12385. # okay in the real world where ";" in dirpaths is itself problematic.
  12386. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12387. else
  12388. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12389. fi
  12390. else
  12391. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12392. fi
  12393. need_lib_prefix=unknown
  12394. hardcode_into_libs=no
  12395. # when you set need_version to no, make sure it does not cause -set_version
  12396. # flags to be left without arguments
  12397. need_version=unknown
  12398. case $host_os in
  12399. aix3*)
  12400. version_type=linux
  12401. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12402. shlibpath_var=LIBPATH
  12403. # AIX 3 has no versioning support, so we append a major version to the name.
  12404. soname_spec='${libname}${release}${shared_ext}$major'
  12405. ;;
  12406. aix4* | aix5*)
  12407. version_type=linux
  12408. need_lib_prefix=no
  12409. need_version=no
  12410. hardcode_into_libs=yes
  12411. if test "$host_cpu" = ia64; then
  12412. # AIX 5 supports IA64
  12413. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12414. shlibpath_var=LD_LIBRARY_PATH
  12415. else
  12416. # With GCC up to 2.95.x, collect2 would create an import file
  12417. # for dependence libraries. The import file would start with
  12418. # the line `#! .'. This would cause the generated library to
  12419. # depend on `.', always an invalid library. This was fixed in
  12420. # development snapshots of GCC prior to 3.0.
  12421. case $host_os in
  12422. aix4 | aix4.[01] | aix4.[01].*)
  12423. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12424. echo ' yes '
  12425. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12426. :
  12427. else
  12428. can_build_shared=no
  12429. fi
  12430. ;;
  12431. esac
  12432. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12433. # soname into executable. Probably we can add versioning support to
  12434. # collect2, so additional links can be useful in future.
  12435. if test "$aix_use_runtimelinking" = yes; then
  12436. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12437. # instead of lib<name>.a to let people know that these are not
  12438. # typical AIX shared libraries.
  12439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12440. else
  12441. # We preserve .a as extension for shared libraries through AIX4.2
  12442. # and later when we are not doing run time linking.
  12443. library_names_spec='${libname}${release}.a $libname.a'
  12444. soname_spec='${libname}${release}${shared_ext}$major'
  12445. fi
  12446. shlibpath_var=LIBPATH
  12447. fi
  12448. ;;
  12449. amigaos*)
  12450. library_names_spec='$libname.ixlibrary $libname.a'
  12451. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12452. 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'
  12453. ;;
  12454. beos*)
  12455. library_names_spec='${libname}${shared_ext}'
  12456. dynamic_linker="$host_os ld.so"
  12457. shlibpath_var=LIBRARY_PATH
  12458. ;;
  12459. bsdi[45]*)
  12460. version_type=linux
  12461. need_version=no
  12462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12463. soname_spec='${libname}${release}${shared_ext}$major'
  12464. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12465. shlibpath_var=LD_LIBRARY_PATH
  12466. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12467. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12468. # the default ld.so.conf also contains /usr/contrib/lib and
  12469. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12470. # libtool to hard-code these into programs
  12471. ;;
  12472. cygwin* | mingw* | pw32*)
  12473. version_type=windows
  12474. shrext_cmds=".dll"
  12475. need_version=no
  12476. need_lib_prefix=no
  12477. case $GCC,$host_os in
  12478. yes,cygwin* | yes,mingw* | yes,pw32*)
  12479. library_names_spec='$libname.dll.a'
  12480. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12481. postinstall_cmds='base_file=`basename \${file}`~
  12482. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12483. dldir=$destdir/`dirname \$dlpath`~
  12484. test -d \$dldir || mkdir -p \$dldir~
  12485. $install_prog $dir/$dlname \$dldir/$dlname~
  12486. chmod a+x \$dldir/$dlname'
  12487. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12488. dlpath=$dir/\$dldll~
  12489. $rm \$dlpath'
  12490. shlibpath_overrides_runpath=yes
  12491. case $host_os in
  12492. cygwin*)
  12493. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12494. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12495. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12496. ;;
  12497. mingw*)
  12498. # MinGW DLLs use traditional 'lib' prefix
  12499. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12500. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12501. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12502. # It is most probably a Windows format PATH printed by
  12503. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12504. # path with ; separators, and with drive letters. We can handle the
  12505. # drive letters (cygwin fileutils understands them), so leave them,
  12506. # especially as we might pass files found there to a mingw objdump,
  12507. # which wouldn't understand a cygwinified path. Ahh.
  12508. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12509. else
  12510. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12511. fi
  12512. ;;
  12513. pw32*)
  12514. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12515. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12516. ;;
  12517. esac
  12518. ;;
  12519. *)
  12520. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12521. ;;
  12522. esac
  12523. dynamic_linker='Win32 ld.exe'
  12524. # FIXME: first we should search . and the directory the executable is in
  12525. shlibpath_var=PATH
  12526. ;;
  12527. darwin* | rhapsody*)
  12528. dynamic_linker="$host_os dyld"
  12529. version_type=darwin
  12530. need_lib_prefix=no
  12531. need_version=no
  12532. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12533. soname_spec='${libname}${release}${major}$shared_ext'
  12534. shlibpath_overrides_runpath=yes
  12535. shlibpath_var=DYLD_LIBRARY_PATH
  12536. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12537. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  12538. if test "$GCC" = yes; then
  12539. 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"`
  12540. else
  12541. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  12542. fi
  12543. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12544. ;;
  12545. dgux*)
  12546. version_type=linux
  12547. need_lib_prefix=no
  12548. need_version=no
  12549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12550. soname_spec='${libname}${release}${shared_ext}$major'
  12551. shlibpath_var=LD_LIBRARY_PATH
  12552. ;;
  12553. freebsd1*)
  12554. dynamic_linker=no
  12555. ;;
  12556. kfreebsd*-gnu)
  12557. version_type=linux
  12558. need_lib_prefix=no
  12559. need_version=no
  12560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12561. soname_spec='${libname}${release}${shared_ext}$major'
  12562. shlibpath_var=LD_LIBRARY_PATH
  12563. shlibpath_overrides_runpath=no
  12564. hardcode_into_libs=yes
  12565. dynamic_linker='GNU ld.so'
  12566. ;;
  12567. freebsd* | dragonfly*)
  12568. # DragonFly does not have aout. When/if they implement a new
  12569. # versioning mechanism, adjust this.
  12570. if test -x /usr/bin/objformat; then
  12571. objformat=`/usr/bin/objformat`
  12572. else
  12573. case $host_os in
  12574. freebsd[123]*) objformat=aout ;;
  12575. *) objformat=elf ;;
  12576. esac
  12577. fi
  12578. version_type=freebsd-$objformat
  12579. case $version_type in
  12580. freebsd-elf*)
  12581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12582. need_version=no
  12583. need_lib_prefix=no
  12584. ;;
  12585. freebsd-*)
  12586. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12587. need_version=yes
  12588. ;;
  12589. esac
  12590. shlibpath_var=LD_LIBRARY_PATH
  12591. case $host_os in
  12592. freebsd2*)
  12593. shlibpath_overrides_runpath=yes
  12594. ;;
  12595. freebsd3.[01]* | freebsdelf3.[01]*)
  12596. shlibpath_overrides_runpath=yes
  12597. hardcode_into_libs=yes
  12598. ;;
  12599. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12600. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12601. shlibpath_overrides_runpath=no
  12602. hardcode_into_libs=yes
  12603. ;;
  12604. freebsd*) # from 4.6 on
  12605. shlibpath_overrides_runpath=yes
  12606. hardcode_into_libs=yes
  12607. ;;
  12608. esac
  12609. ;;
  12610. gnu*)
  12611. version_type=linux
  12612. need_lib_prefix=no
  12613. need_version=no
  12614. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12615. soname_spec='${libname}${release}${shared_ext}$major'
  12616. shlibpath_var=LD_LIBRARY_PATH
  12617. hardcode_into_libs=yes
  12618. ;;
  12619. hpux9* | hpux10* | hpux11*)
  12620. # Give a soname corresponding to the major version so that dld.sl refuses to
  12621. # link against other versions.
  12622. version_type=sunos
  12623. need_lib_prefix=no
  12624. need_version=no
  12625. case $host_cpu in
  12626. ia64*)
  12627. shrext_cmds='.so'
  12628. hardcode_into_libs=yes
  12629. dynamic_linker="$host_os dld.so"
  12630. shlibpath_var=LD_LIBRARY_PATH
  12631. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12633. soname_spec='${libname}${release}${shared_ext}$major'
  12634. if test "X$HPUX_IA64_MODE" = X32; then
  12635. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12636. else
  12637. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12638. fi
  12639. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12640. ;;
  12641. hppa*64*)
  12642. shrext_cmds='.sl'
  12643. hardcode_into_libs=yes
  12644. dynamic_linker="$host_os dld.sl"
  12645. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12646. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12648. soname_spec='${libname}${release}${shared_ext}$major'
  12649. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12650. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12651. ;;
  12652. *)
  12653. shrext_cmds='.sl'
  12654. dynamic_linker="$host_os dld.sl"
  12655. shlibpath_var=SHLIB_PATH
  12656. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12658. soname_spec='${libname}${release}${shared_ext}$major'
  12659. ;;
  12660. esac
  12661. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12662. postinstall_cmds='chmod 555 $lib'
  12663. ;;
  12664. interix3*)
  12665. version_type=linux
  12666. need_lib_prefix=no
  12667. need_version=no
  12668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12669. soname_spec='${libname}${release}${shared_ext}$major'
  12670. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12671. shlibpath_var=LD_LIBRARY_PATH
  12672. shlibpath_overrides_runpath=no
  12673. hardcode_into_libs=yes
  12674. ;;
  12675. irix5* | irix6* | nonstopux*)
  12676. case $host_os in
  12677. nonstopux*) version_type=nonstopux ;;
  12678. *)
  12679. if test "$lt_cv_prog_gnu_ld" = yes; then
  12680. version_type=linux
  12681. else
  12682. version_type=irix
  12683. fi ;;
  12684. esac
  12685. need_lib_prefix=no
  12686. need_version=no
  12687. soname_spec='${libname}${release}${shared_ext}$major'
  12688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12689. case $host_os in
  12690. irix5* | nonstopux*)
  12691. libsuff= shlibsuff=
  12692. ;;
  12693. *)
  12694. case $LD in # libtool.m4 will add one of these switches to LD
  12695. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12696. libsuff= shlibsuff= libmagic=32-bit;;
  12697. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12698. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12699. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12700. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12701. *) libsuff= shlibsuff= libmagic=never-match;;
  12702. esac
  12703. ;;
  12704. esac
  12705. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12706. shlibpath_overrides_runpath=no
  12707. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12708. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12709. hardcode_into_libs=yes
  12710. ;;
  12711. # No shared lib support for Linux oldld, aout, or coff.
  12712. linux*oldld* | linux*aout* | linux*coff*)
  12713. dynamic_linker=no
  12714. ;;
  12715. # This must be Linux ELF.
  12716. linux*)
  12717. version_type=linux
  12718. need_lib_prefix=no
  12719. need_version=no
  12720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12721. soname_spec='${libname}${release}${shared_ext}$major'
  12722. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12723. shlibpath_var=LD_LIBRARY_PATH
  12724. shlibpath_overrides_runpath=no
  12725. # This implies no fast_install, which is unacceptable.
  12726. # Some rework will be needed to allow for fast_install
  12727. # before this can be enabled.
  12728. hardcode_into_libs=yes
  12729. # Append ld.so.conf contents to the search path
  12730. if test -f /etc/ld.so.conf; then
  12731. 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' ' '`
  12732. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12733. fi
  12734. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12735. # powerpc, because MkLinux only supported shared libraries with the
  12736. # GNU dynamic linker. Since this was broken with cross compilers,
  12737. # most powerpc-linux boxes support dynamic linking these days and
  12738. # people can always --disable-shared, the test was removed, and we
  12739. # assume the GNU/Linux dynamic linker is in use.
  12740. dynamic_linker='GNU/Linux ld.so'
  12741. ;;
  12742. knetbsd*-gnu)
  12743. version_type=linux
  12744. need_lib_prefix=no
  12745. need_version=no
  12746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12747. soname_spec='${libname}${release}${shared_ext}$major'
  12748. shlibpath_var=LD_LIBRARY_PATH
  12749. shlibpath_overrides_runpath=no
  12750. hardcode_into_libs=yes
  12751. dynamic_linker='GNU ld.so'
  12752. ;;
  12753. netbsd*)
  12754. version_type=sunos
  12755. need_lib_prefix=no
  12756. need_version=no
  12757. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12759. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12760. dynamic_linker='NetBSD (a.out) ld.so'
  12761. else
  12762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12763. soname_spec='${libname}${release}${shared_ext}$major'
  12764. dynamic_linker='NetBSD ld.elf_so'
  12765. fi
  12766. shlibpath_var=LD_LIBRARY_PATH
  12767. shlibpath_overrides_runpath=yes
  12768. hardcode_into_libs=yes
  12769. ;;
  12770. newsos6)
  12771. version_type=linux
  12772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12773. shlibpath_var=LD_LIBRARY_PATH
  12774. shlibpath_overrides_runpath=yes
  12775. ;;
  12776. nto-qnx*)
  12777. version_type=linux
  12778. need_lib_prefix=no
  12779. need_version=no
  12780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12781. soname_spec='${libname}${release}${shared_ext}$major'
  12782. shlibpath_var=LD_LIBRARY_PATH
  12783. shlibpath_overrides_runpath=yes
  12784. ;;
  12785. openbsd*)
  12786. version_type=sunos
  12787. sys_lib_dlsearch_path_spec="/usr/lib"
  12788. need_lib_prefix=no
  12789. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12790. case $host_os in
  12791. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12792. *) need_version=no ;;
  12793. esac
  12794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12795. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12796. shlibpath_var=LD_LIBRARY_PATH
  12797. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12798. case $host_os in
  12799. openbsd2.[89] | openbsd2.[89].*)
  12800. shlibpath_overrides_runpath=no
  12801. ;;
  12802. *)
  12803. shlibpath_overrides_runpath=yes
  12804. ;;
  12805. esac
  12806. else
  12807. shlibpath_overrides_runpath=yes
  12808. fi
  12809. ;;
  12810. os2*)
  12811. libname_spec='$name'
  12812. shrext_cmds=".dll"
  12813. need_lib_prefix=no
  12814. library_names_spec='$libname${shared_ext} $libname.a'
  12815. dynamic_linker='OS/2 ld.exe'
  12816. shlibpath_var=LIBPATH
  12817. ;;
  12818. osf3* | osf4* | osf5*)
  12819. version_type=osf
  12820. need_lib_prefix=no
  12821. need_version=no
  12822. soname_spec='${libname}${release}${shared_ext}$major'
  12823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12824. shlibpath_var=LD_LIBRARY_PATH
  12825. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12826. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12827. ;;
  12828. solaris*)
  12829. version_type=linux
  12830. need_lib_prefix=no
  12831. need_version=no
  12832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12833. soname_spec='${libname}${release}${shared_ext}$major'
  12834. shlibpath_var=LD_LIBRARY_PATH
  12835. shlibpath_overrides_runpath=yes
  12836. hardcode_into_libs=yes
  12837. # ldd complains unless libraries are executable
  12838. postinstall_cmds='chmod +x $lib'
  12839. ;;
  12840. sunos4*)
  12841. version_type=sunos
  12842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12843. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12844. shlibpath_var=LD_LIBRARY_PATH
  12845. shlibpath_overrides_runpath=yes
  12846. if test "$with_gnu_ld" = yes; then
  12847. need_lib_prefix=no
  12848. fi
  12849. need_version=yes
  12850. ;;
  12851. sysv4 | sysv4.3*)
  12852. version_type=linux
  12853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12854. soname_spec='${libname}${release}${shared_ext}$major'
  12855. shlibpath_var=LD_LIBRARY_PATH
  12856. case $host_vendor in
  12857. sni)
  12858. shlibpath_overrides_runpath=no
  12859. need_lib_prefix=no
  12860. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12861. runpath_var=LD_RUN_PATH
  12862. ;;
  12863. siemens)
  12864. need_lib_prefix=no
  12865. ;;
  12866. motorola)
  12867. need_lib_prefix=no
  12868. need_version=no
  12869. shlibpath_overrides_runpath=no
  12870. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12871. ;;
  12872. esac
  12873. ;;
  12874. sysv4*MP*)
  12875. if test -d /usr/nec ;then
  12876. version_type=linux
  12877. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12878. soname_spec='$libname${shared_ext}.$major'
  12879. shlibpath_var=LD_LIBRARY_PATH
  12880. fi
  12881. ;;
  12882. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12883. version_type=freebsd-elf
  12884. need_lib_prefix=no
  12885. need_version=no
  12886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12887. soname_spec='${libname}${release}${shared_ext}$major'
  12888. shlibpath_var=LD_LIBRARY_PATH
  12889. hardcode_into_libs=yes
  12890. if test "$with_gnu_ld" = yes; then
  12891. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12892. shlibpath_overrides_runpath=no
  12893. else
  12894. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12895. shlibpath_overrides_runpath=yes
  12896. case $host_os in
  12897. sco3.2v5*)
  12898. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12899. ;;
  12900. esac
  12901. fi
  12902. sys_lib_dlsearch_path_spec='/usr/lib'
  12903. ;;
  12904. uts4*)
  12905. version_type=linux
  12906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12907. soname_spec='${libname}${release}${shared_ext}$major'
  12908. shlibpath_var=LD_LIBRARY_PATH
  12909. ;;
  12910. *)
  12911. dynamic_linker=no
  12912. ;;
  12913. esac
  12914. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12915. echo "${ECHO_T}$dynamic_linker" >&6
  12916. test "$dynamic_linker" = no && can_build_shared=no
  12917. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12918. if test "$GCC" = yes; then
  12919. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12920. fi
  12921. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12922. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  12923. hardcode_action_F77=
  12924. if test -n "$hardcode_libdir_flag_spec_F77" || \
  12925. test -n "$runpath_var_F77" || \
  12926. test "X$hardcode_automatic_F77" = "Xyes" ; then
  12927. # We can hardcode non-existant directories.
  12928. if test "$hardcode_direct_F77" != no &&
  12929. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12930. # have to relink, otherwise we might link with an installed library
  12931. # when we should be linking with a yet-to-be-installed one
  12932. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  12933. test "$hardcode_minus_L_F77" != no; then
  12934. # Linking always hardcodes the temporary library directory.
  12935. hardcode_action_F77=relink
  12936. else
  12937. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12938. hardcode_action_F77=immediate
  12939. fi
  12940. else
  12941. # We cannot hardcode anything, or else we can only hardcode existing
  12942. # directories.
  12943. hardcode_action_F77=unsupported
  12944. fi
  12945. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  12946. echo "${ECHO_T}$hardcode_action_F77" >&6
  12947. if test "$hardcode_action_F77" = relink; then
  12948. # Fast installation is not supported
  12949. enable_fast_install=no
  12950. elif test "$shlibpath_overrides_runpath" = yes ||
  12951. test "$enable_shared" = no; then
  12952. # Fast installation is not necessary
  12953. enable_fast_install=needless
  12954. fi
  12955. # The else clause should only fire when bootstrapping the
  12956. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12957. # with your package, and you will get complaints that there are
  12958. # no rules to generate ltmain.sh.
  12959. if test -f "$ltmain"; then
  12960. # See if we are running on zsh, and set the options which allow our commands through
  12961. # without removal of \ escapes.
  12962. if test -n "${ZSH_VERSION+set}" ; then
  12963. setopt NO_GLOB_SUBST
  12964. fi
  12965. # Now quote all the things that may contain metacharacters while being
  12966. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12967. # variables and quote the copies for generation of the libtool script.
  12968. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12969. SED SHELL STRIP \
  12970. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12971. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12972. deplibs_check_method reload_flag reload_cmds need_locks \
  12973. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12974. lt_cv_sys_global_symbol_to_c_name_address \
  12975. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12976. old_postinstall_cmds old_postuninstall_cmds \
  12977. compiler_F77 \
  12978. CC_F77 \
  12979. LD_F77 \
  12980. lt_prog_compiler_wl_F77 \
  12981. lt_prog_compiler_pic_F77 \
  12982. lt_prog_compiler_static_F77 \
  12983. lt_prog_compiler_no_builtin_flag_F77 \
  12984. export_dynamic_flag_spec_F77 \
  12985. thread_safe_flag_spec_F77 \
  12986. whole_archive_flag_spec_F77 \
  12987. enable_shared_with_static_runtimes_F77 \
  12988. old_archive_cmds_F77 \
  12989. old_archive_from_new_cmds_F77 \
  12990. predep_objects_F77 \
  12991. postdep_objects_F77 \
  12992. predeps_F77 \
  12993. postdeps_F77 \
  12994. compiler_lib_search_path_F77 \
  12995. archive_cmds_F77 \
  12996. archive_expsym_cmds_F77 \
  12997. postinstall_cmds_F77 \
  12998. postuninstall_cmds_F77 \
  12999. old_archive_from_expsyms_cmds_F77 \
  13000. allow_undefined_flag_F77 \
  13001. no_undefined_flag_F77 \
  13002. export_symbols_cmds_F77 \
  13003. hardcode_libdir_flag_spec_F77 \
  13004. hardcode_libdir_flag_spec_ld_F77 \
  13005. hardcode_libdir_separator_F77 \
  13006. hardcode_automatic_F77 \
  13007. module_cmds_F77 \
  13008. module_expsym_cmds_F77 \
  13009. lt_cv_prog_compiler_c_o_F77 \
  13010. exclude_expsyms_F77 \
  13011. include_expsyms_F77; do
  13012. case $var in
  13013. old_archive_cmds_F77 | \
  13014. old_archive_from_new_cmds_F77 | \
  13015. archive_cmds_F77 | \
  13016. archive_expsym_cmds_F77 | \
  13017. module_cmds_F77 | \
  13018. module_expsym_cmds_F77 | \
  13019. old_archive_from_expsyms_cmds_F77 | \
  13020. export_symbols_cmds_F77 | \
  13021. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13022. postinstall_cmds | postuninstall_cmds | \
  13023. old_postinstall_cmds | old_postuninstall_cmds | \
  13024. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13025. # Double-quote double-evaled strings.
  13026. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13027. ;;
  13028. *)
  13029. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13030. ;;
  13031. esac
  13032. done
  13033. case $lt_echo in
  13034. *'\$0 --fallback-echo"')
  13035. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13036. ;;
  13037. esac
  13038. cfgfile="$ofile"
  13039. cat <<__EOF__ >> "$cfgfile"
  13040. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13041. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13042. # Shell to use when invoking shell scripts.
  13043. SHELL=$lt_SHELL
  13044. # Whether or not to build shared libraries.
  13045. build_libtool_libs=$enable_shared
  13046. # Whether or not to build static libraries.
  13047. build_old_libs=$enable_static
  13048. # Whether or not to add -lc for building shared libraries.
  13049. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13050. # Whether or not to disallow shared libs when runtime libs are static
  13051. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13052. # Whether or not to optimize for fast installation.
  13053. fast_install=$enable_fast_install
  13054. # The host system.
  13055. host_alias=$host_alias
  13056. host=$host
  13057. host_os=$host_os
  13058. # The build system.
  13059. build_alias=$build_alias
  13060. build=$build
  13061. build_os=$build_os
  13062. # An echo program that does not interpret backslashes.
  13063. echo=$lt_echo
  13064. # The archiver.
  13065. AR=$lt_AR
  13066. AR_FLAGS=$lt_AR_FLAGS
  13067. # A C compiler.
  13068. LTCC=$lt_LTCC
  13069. # LTCC compiler flags.
  13070. LTCFLAGS=$lt_LTCFLAGS
  13071. # A language-specific compiler.
  13072. CC=$lt_compiler_F77
  13073. # Is the compiler the GNU C compiler?
  13074. with_gcc=$GCC_F77
  13075. # An ERE matcher.
  13076. EGREP=$lt_EGREP
  13077. # The linker used to build libraries.
  13078. LD=$lt_LD_F77
  13079. # Whether we need hard or soft links.
  13080. LN_S=$lt_LN_S
  13081. # A BSD-compatible nm program.
  13082. NM=$lt_NM
  13083. # A symbol stripping program
  13084. STRIP=$lt_STRIP
  13085. # Used to examine libraries when file_magic_cmd begins "file"
  13086. MAGIC_CMD=$MAGIC_CMD
  13087. # Used on cygwin: DLL creation program.
  13088. DLLTOOL="$DLLTOOL"
  13089. # Used on cygwin: object dumper.
  13090. OBJDUMP="$OBJDUMP"
  13091. # Used on cygwin: assembler.
  13092. AS="$AS"
  13093. # The name of the directory that contains temporary libtool files.
  13094. objdir=$objdir
  13095. # How to create reloadable object files.
  13096. reload_flag=$lt_reload_flag
  13097. reload_cmds=$lt_reload_cmds
  13098. # How to pass a linker flag through the compiler.
  13099. wl=$lt_lt_prog_compiler_wl_F77
  13100. # Object file suffix (normally "o").
  13101. objext="$ac_objext"
  13102. # Old archive suffix (normally "a").
  13103. libext="$libext"
  13104. # Shared library suffix (normally ".so").
  13105. shrext_cmds='$shrext_cmds'
  13106. # Executable file suffix (normally "").
  13107. exeext="$exeext"
  13108. # Additional compiler flags for building library objects.
  13109. pic_flag=$lt_lt_prog_compiler_pic_F77
  13110. pic_mode=$pic_mode
  13111. # What is the maximum length of a command?
  13112. max_cmd_len=$lt_cv_sys_max_cmd_len
  13113. # Does compiler simultaneously support -c and -o options?
  13114. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13115. # Must we lock files when doing compilation?
  13116. need_locks=$lt_need_locks
  13117. # Do we need the lib prefix for modules?
  13118. need_lib_prefix=$need_lib_prefix
  13119. # Do we need a version for libraries?
  13120. need_version=$need_version
  13121. # Whether dlopen is supported.
  13122. dlopen_support=$enable_dlopen
  13123. # Whether dlopen of programs is supported.
  13124. dlopen_self=$enable_dlopen_self
  13125. # Whether dlopen of statically linked programs is supported.
  13126. dlopen_self_static=$enable_dlopen_self_static
  13127. # Compiler flag to prevent dynamic linking.
  13128. link_static_flag=$lt_lt_prog_compiler_static_F77
  13129. # Compiler flag to turn off builtin functions.
  13130. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13131. # Compiler flag to allow reflexive dlopens.
  13132. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13133. # Compiler flag to generate shared objects directly from archives.
  13134. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13135. # Compiler flag to generate thread-safe objects.
  13136. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13137. # Library versioning type.
  13138. version_type=$version_type
  13139. # Format of library name prefix.
  13140. libname_spec=$lt_libname_spec
  13141. # List of archive names. First name is the real one, the rest are links.
  13142. # The last name is the one that the linker finds with -lNAME.
  13143. library_names_spec=$lt_library_names_spec
  13144. # The coded name of the library, if different from the real name.
  13145. soname_spec=$lt_soname_spec
  13146. # Commands used to build and install an old-style archive.
  13147. RANLIB=$lt_RANLIB
  13148. old_archive_cmds=$lt_old_archive_cmds_F77
  13149. old_postinstall_cmds=$lt_old_postinstall_cmds
  13150. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13151. # Create an old-style archive from a shared archive.
  13152. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13153. # Create a temporary old-style archive to link instead of a shared archive.
  13154. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13155. # Commands used to build and install a shared archive.
  13156. archive_cmds=$lt_archive_cmds_F77
  13157. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13158. postinstall_cmds=$lt_postinstall_cmds
  13159. postuninstall_cmds=$lt_postuninstall_cmds
  13160. # Commands used to build a loadable module (assumed same as above if empty)
  13161. module_cmds=$lt_module_cmds_F77
  13162. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13163. # Commands to strip libraries.
  13164. old_striplib=$lt_old_striplib
  13165. striplib=$lt_striplib
  13166. # Dependencies to place before the objects being linked to create a
  13167. # shared library.
  13168. predep_objects=$lt_predep_objects_F77
  13169. # Dependencies to place after the objects being linked to create a
  13170. # shared library.
  13171. postdep_objects=$lt_postdep_objects_F77
  13172. # Dependencies to place before the objects being linked to create a
  13173. # shared library.
  13174. predeps=$lt_predeps_F77
  13175. # Dependencies to place after the objects being linked to create a
  13176. # shared library.
  13177. postdeps=$lt_postdeps_F77
  13178. # The library search path used internally by the compiler when linking
  13179. # a shared library.
  13180. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13181. # Method to check whether dependent libraries are shared objects.
  13182. deplibs_check_method=$lt_deplibs_check_method
  13183. # Command to use when deplibs_check_method == file_magic.
  13184. file_magic_cmd=$lt_file_magic_cmd
  13185. # Flag that allows shared libraries with undefined symbols to be built.
  13186. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13187. # Flag that forces no undefined symbols.
  13188. no_undefined_flag=$lt_no_undefined_flag_F77
  13189. # Commands used to finish a libtool library installation in a directory.
  13190. finish_cmds=$lt_finish_cmds
  13191. # Same as above, but a single script fragment to be evaled but not shown.
  13192. finish_eval=$lt_finish_eval
  13193. # Take the output of nm and produce a listing of raw symbols and C names.
  13194. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13195. # Transform the output of nm in a proper C declaration
  13196. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13197. # Transform the output of nm in a C name address pair
  13198. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13199. # This is the shared library runtime path variable.
  13200. runpath_var=$runpath_var
  13201. # This is the shared library path variable.
  13202. shlibpath_var=$shlibpath_var
  13203. # Is shlibpath searched before the hard-coded library search path?
  13204. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13205. # How to hardcode a shared library path into an executable.
  13206. hardcode_action=$hardcode_action_F77
  13207. # Whether we should hardcode library paths into libraries.
  13208. hardcode_into_libs=$hardcode_into_libs
  13209. # Flag to hardcode \$libdir into a binary during linking.
  13210. # This must work even if \$libdir does not exist.
  13211. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13212. # If ld is used when linking, flag to hardcode \$libdir into
  13213. # a binary during linking. This must work even if \$libdir does
  13214. # not exist.
  13215. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13216. # Whether we need a single -rpath flag with a separated argument.
  13217. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13218. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13219. # resulting binary.
  13220. hardcode_direct=$hardcode_direct_F77
  13221. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13222. # resulting binary.
  13223. hardcode_minus_L=$hardcode_minus_L_F77
  13224. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13225. # the resulting binary.
  13226. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13227. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13228. # and all subsequent libraries and executables linked against it.
  13229. hardcode_automatic=$hardcode_automatic_F77
  13230. # Variables whose values should be saved in libtool wrapper scripts and
  13231. # restored at relink time.
  13232. variables_saved_for_relink="$variables_saved_for_relink"
  13233. # Whether libtool must link a program against all its dependency libraries.
  13234. link_all_deplibs=$link_all_deplibs_F77
  13235. # Compile-time system search path for libraries
  13236. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13237. # Run-time system search path for libraries
  13238. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13239. # Fix the shell variable \$srcfile for the compiler.
  13240. fix_srcfile_path="$fix_srcfile_path_F77"
  13241. # Set to yes if exported symbols are required.
  13242. always_export_symbols=$always_export_symbols_F77
  13243. # The commands to list exported symbols.
  13244. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13245. # The commands to extract the exported symbol list from a shared archive.
  13246. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13247. # Symbols that should not be listed in the preloaded symbols.
  13248. exclude_expsyms=$lt_exclude_expsyms_F77
  13249. # Symbols that must always be exported.
  13250. include_expsyms=$lt_include_expsyms_F77
  13251. # ### END LIBTOOL TAG CONFIG: $tagname
  13252. __EOF__
  13253. else
  13254. # If there is no Makefile yet, we rely on a make rule to execute
  13255. # `config.status --recheck' to rerun these tests and create the
  13256. # libtool script then.
  13257. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13258. if test -f "$ltmain_in"; then
  13259. test -f Makefile && make "$ltmain"
  13260. fi
  13261. fi
  13262. ac_ext=c
  13263. ac_cpp='$CPP $CPPFLAGS'
  13264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13267. CC="$lt_save_CC"
  13268. else
  13269. tagname=""
  13270. fi
  13271. ;;
  13272. GCJ)
  13273. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13274. # Source file extension for Java test sources.
  13275. ac_ext=java
  13276. # Object file extension for compiled Java test sources.
  13277. objext=o
  13278. objext_GCJ=$objext
  13279. # Code to be used in simple compile tests
  13280. lt_simple_compile_test_code="class foo {}\n"
  13281. # Code to be used in simple link tests
  13282. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  13283. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13284. # If no C compiler was specified, use CC.
  13285. LTCC=${LTCC-"$CC"}
  13286. # If no C compiler flags were specified, use CFLAGS.
  13287. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13288. # Allow CC to be a program name with arguments.
  13289. compiler=$CC
  13290. # save warnings/boilerplate of simple test code
  13291. ac_outfile=conftest.$ac_objext
  13292. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13293. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13294. _lt_compiler_boilerplate=`cat conftest.err`
  13295. $rm conftest*
  13296. ac_outfile=conftest.$ac_objext
  13297. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13298. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13299. _lt_linker_boilerplate=`cat conftest.err`
  13300. $rm conftest*
  13301. # Allow CC to be a program name with arguments.
  13302. lt_save_CC="$CC"
  13303. CC=${GCJ-"gcj"}
  13304. compiler=$CC
  13305. compiler_GCJ=$CC
  13306. for cc_temp in $compiler""; do
  13307. case $cc_temp in
  13308. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13309. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13310. \-*) ;;
  13311. *) break;;
  13312. esac
  13313. done
  13314. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13315. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  13316. archive_cmds_need_lc_GCJ=no
  13317. old_archive_cmds_GCJ=$old_archive_cmds
  13318. lt_prog_compiler_no_builtin_flag_GCJ=
  13319. if test "$GCC" = yes; then
  13320. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  13321. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13322. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  13323. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13324. echo $ECHO_N "(cached) $ECHO_C" >&6
  13325. else
  13326. lt_cv_prog_compiler_rtti_exceptions=no
  13327. ac_outfile=conftest.$ac_objext
  13328. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13329. lt_compiler_flag="-fno-rtti -fno-exceptions"
  13330. # Insert the option either (1) after the last *FLAGS variable, or
  13331. # (2) before a word containing "conftest.", or (3) at the end.
  13332. # Note that $ac_compile itself does not contain backslashes and begins
  13333. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13334. # The option is referenced via a variable to avoid confusing sed.
  13335. lt_compile=`echo "$ac_compile" | $SED \
  13336. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13337. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13338. -e 's:$: $lt_compiler_flag:'`
  13339. (eval echo "\"\$as_me:14848: $lt_compile\"" >&5)
  13340. (eval "$lt_compile" 2>conftest.err)
  13341. ac_status=$?
  13342. cat conftest.err >&5
  13343. echo "$as_me:14852: \$? = $ac_status" >&5
  13344. if (exit $ac_status) && test -s "$ac_outfile"; then
  13345. # The compiler can only warn and ignore the option if not recognized
  13346. # So say no if there are warnings other than the usual output.
  13347. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13348. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13349. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13350. lt_cv_prog_compiler_rtti_exceptions=yes
  13351. fi
  13352. fi
  13353. $rm conftest*
  13354. fi
  13355. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13356. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  13357. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13358. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  13359. else
  13360. :
  13361. fi
  13362. fi
  13363. lt_prog_compiler_wl_GCJ=
  13364. lt_prog_compiler_pic_GCJ=
  13365. lt_prog_compiler_static_GCJ=
  13366. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13367. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13368. if test "$GCC" = yes; then
  13369. lt_prog_compiler_wl_GCJ='-Wl,'
  13370. lt_prog_compiler_static_GCJ='-static'
  13371. case $host_os in
  13372. aix*)
  13373. # All AIX code is PIC.
  13374. if test "$host_cpu" = ia64; then
  13375. # AIX 5 now supports IA64 processor
  13376. lt_prog_compiler_static_GCJ='-Bstatic'
  13377. fi
  13378. ;;
  13379. amigaos*)
  13380. # FIXME: we need at least 68020 code to build shared libraries, but
  13381. # adding the `-m68020' flag to GCC prevents building anything better,
  13382. # like `-m68040'.
  13383. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  13384. ;;
  13385. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13386. # PIC is the default for these OSes.
  13387. ;;
  13388. mingw* | pw32* | os2*)
  13389. # This hack is so that the source file can tell whether it is being
  13390. # built for inclusion in a dll (and should export symbols for example).
  13391. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13392. ;;
  13393. darwin* | rhapsody*)
  13394. # PIC is the default on this platform
  13395. # Common symbols not allowed in MH_DYLIB files
  13396. lt_prog_compiler_pic_GCJ='-fno-common'
  13397. ;;
  13398. interix3*)
  13399. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13400. # Instead, we relocate shared libraries at runtime.
  13401. ;;
  13402. msdosdjgpp*)
  13403. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13404. # on systems that don't support them.
  13405. lt_prog_compiler_can_build_shared_GCJ=no
  13406. enable_shared=no
  13407. ;;
  13408. sysv4*MP*)
  13409. if test -d /usr/nec; then
  13410. lt_prog_compiler_pic_GCJ=-Kconform_pic
  13411. fi
  13412. ;;
  13413. hpux*)
  13414. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13415. # not for PA HP-UX.
  13416. case $host_cpu in
  13417. hppa*64*|ia64*)
  13418. # +Z the default
  13419. ;;
  13420. *)
  13421. lt_prog_compiler_pic_GCJ='-fPIC'
  13422. ;;
  13423. esac
  13424. ;;
  13425. *)
  13426. lt_prog_compiler_pic_GCJ='-fPIC'
  13427. ;;
  13428. esac
  13429. else
  13430. # PORTME Check for flag to pass linker flags through the system compiler.
  13431. case $host_os in
  13432. aix*)
  13433. lt_prog_compiler_wl_GCJ='-Wl,'
  13434. if test "$host_cpu" = ia64; then
  13435. # AIX 5 now supports IA64 processor
  13436. lt_prog_compiler_static_GCJ='-Bstatic'
  13437. else
  13438. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  13439. fi
  13440. ;;
  13441. darwin*)
  13442. # PIC is the default on this platform
  13443. # Common symbols not allowed in MH_DYLIB files
  13444. case $cc_basename in
  13445. xlc*)
  13446. lt_prog_compiler_pic_GCJ='-qnocommon'
  13447. lt_prog_compiler_wl_GCJ='-Wl,'
  13448. ;;
  13449. esac
  13450. ;;
  13451. mingw* | pw32* | os2*)
  13452. # This hack is so that the source file can tell whether it is being
  13453. # built for inclusion in a dll (and should export symbols for example).
  13454. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13455. ;;
  13456. hpux9* | hpux10* | hpux11*)
  13457. lt_prog_compiler_wl_GCJ='-Wl,'
  13458. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13459. # not for PA HP-UX.
  13460. case $host_cpu in
  13461. hppa*64*|ia64*)
  13462. # +Z the default
  13463. ;;
  13464. *)
  13465. lt_prog_compiler_pic_GCJ='+Z'
  13466. ;;
  13467. esac
  13468. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13469. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  13470. ;;
  13471. irix5* | irix6* | nonstopux*)
  13472. lt_prog_compiler_wl_GCJ='-Wl,'
  13473. # PIC (with -KPIC) is the default.
  13474. lt_prog_compiler_static_GCJ='-non_shared'
  13475. ;;
  13476. newsos6)
  13477. lt_prog_compiler_pic_GCJ='-KPIC'
  13478. lt_prog_compiler_static_GCJ='-Bstatic'
  13479. ;;
  13480. linux*)
  13481. case $cc_basename in
  13482. icc* | ecc*)
  13483. lt_prog_compiler_wl_GCJ='-Wl,'
  13484. lt_prog_compiler_pic_GCJ='-KPIC'
  13485. lt_prog_compiler_static_GCJ='-static'
  13486. ;;
  13487. pgcc* | pgf77* | pgf90* | pgf95*)
  13488. # Portland Group compilers (*not* the Pentium gcc compiler,
  13489. # which looks to be a dead project)
  13490. lt_prog_compiler_wl_GCJ='-Wl,'
  13491. lt_prog_compiler_pic_GCJ='-fpic'
  13492. lt_prog_compiler_static_GCJ='-Bstatic'
  13493. ;;
  13494. ccc*)
  13495. lt_prog_compiler_wl_GCJ='-Wl,'
  13496. # All Alpha code is PIC.
  13497. lt_prog_compiler_static_GCJ='-non_shared'
  13498. ;;
  13499. esac
  13500. ;;
  13501. osf3* | osf4* | osf5*)
  13502. lt_prog_compiler_wl_GCJ='-Wl,'
  13503. # All OSF/1 code is PIC.
  13504. lt_prog_compiler_static_GCJ='-non_shared'
  13505. ;;
  13506. solaris*)
  13507. lt_prog_compiler_pic_GCJ='-KPIC'
  13508. lt_prog_compiler_static_GCJ='-Bstatic'
  13509. case $cc_basename in
  13510. f77* | f90* | f95*)
  13511. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  13512. *)
  13513. lt_prog_compiler_wl_GCJ='-Wl,';;
  13514. esac
  13515. ;;
  13516. sunos4*)
  13517. lt_prog_compiler_wl_GCJ='-Qoption ld '
  13518. lt_prog_compiler_pic_GCJ='-PIC'
  13519. lt_prog_compiler_static_GCJ='-Bstatic'
  13520. ;;
  13521. sysv4 | sysv4.2uw2* | sysv4.3*)
  13522. lt_prog_compiler_wl_GCJ='-Wl,'
  13523. lt_prog_compiler_pic_GCJ='-KPIC'
  13524. lt_prog_compiler_static_GCJ='-Bstatic'
  13525. ;;
  13526. sysv4*MP*)
  13527. if test -d /usr/nec ;then
  13528. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  13529. lt_prog_compiler_static_GCJ='-Bstatic'
  13530. fi
  13531. ;;
  13532. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13533. lt_prog_compiler_wl_GCJ='-Wl,'
  13534. lt_prog_compiler_pic_GCJ='-KPIC'
  13535. lt_prog_compiler_static_GCJ='-Bstatic'
  13536. ;;
  13537. unicos*)
  13538. lt_prog_compiler_wl_GCJ='-Wl,'
  13539. lt_prog_compiler_can_build_shared_GCJ=no
  13540. ;;
  13541. uts4*)
  13542. lt_prog_compiler_pic_GCJ='-pic'
  13543. lt_prog_compiler_static_GCJ='-Bstatic'
  13544. ;;
  13545. *)
  13546. lt_prog_compiler_can_build_shared_GCJ=no
  13547. ;;
  13548. esac
  13549. fi
  13550. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  13551. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  13552. #
  13553. # Check to make sure the PIC flag actually works.
  13554. #
  13555. if test -n "$lt_prog_compiler_pic_GCJ"; then
  13556. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  13557. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  13558. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  13559. echo $ECHO_N "(cached) $ECHO_C" >&6
  13560. else
  13561. lt_prog_compiler_pic_works_GCJ=no
  13562. ac_outfile=conftest.$ac_objext
  13563. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13564. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  13565. # Insert the option either (1) after the last *FLAGS variable, or
  13566. # (2) before a word containing "conftest.", or (3) at the end.
  13567. # Note that $ac_compile itself does not contain backslashes and begins
  13568. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13569. # The option is referenced via a variable to avoid confusing sed.
  13570. lt_compile=`echo "$ac_compile" | $SED \
  13571. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13572. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13573. -e 's:$: $lt_compiler_flag:'`
  13574. (eval echo "\"\$as_me:15116: $lt_compile\"" >&5)
  13575. (eval "$lt_compile" 2>conftest.err)
  13576. ac_status=$?
  13577. cat conftest.err >&5
  13578. echo "$as_me:15120: \$? = $ac_status" >&5
  13579. if (exit $ac_status) && test -s "$ac_outfile"; then
  13580. # The compiler can only warn and ignore the option if not recognized
  13581. # So say no if there are warnings other than the usual output.
  13582. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13583. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13584. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13585. lt_prog_compiler_pic_works_GCJ=yes
  13586. fi
  13587. fi
  13588. $rm conftest*
  13589. fi
  13590. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  13591. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  13592. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  13593. case $lt_prog_compiler_pic_GCJ in
  13594. "" | " "*) ;;
  13595. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  13596. esac
  13597. else
  13598. lt_prog_compiler_pic_GCJ=
  13599. lt_prog_compiler_can_build_shared_GCJ=no
  13600. fi
  13601. fi
  13602. case $host_os in
  13603. # For platforms which do not support PIC, -DPIC is meaningless:
  13604. *djgpp*)
  13605. lt_prog_compiler_pic_GCJ=
  13606. ;;
  13607. *)
  13608. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  13609. ;;
  13610. esac
  13611. #
  13612. # Check to make sure the static flag actually works.
  13613. #
  13614. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  13615. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13616. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  13617. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  13618. echo $ECHO_N "(cached) $ECHO_C" >&6
  13619. else
  13620. lt_prog_compiler_static_works_GCJ=no
  13621. save_LDFLAGS="$LDFLAGS"
  13622. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13623. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  13624. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13625. # The linker can only warn and ignore the option if not recognized
  13626. # So say no if there are warnings
  13627. if test -s conftest.err; then
  13628. # Append any errors to the config.log.
  13629. cat conftest.err 1>&5
  13630. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13631. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13632. if diff conftest.exp conftest.er2 >/dev/null; then
  13633. lt_prog_compiler_static_works_GCJ=yes
  13634. fi
  13635. else
  13636. lt_prog_compiler_static_works_GCJ=yes
  13637. fi
  13638. fi
  13639. $rm conftest*
  13640. LDFLAGS="$save_LDFLAGS"
  13641. fi
  13642. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  13643. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  13644. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  13645. :
  13646. else
  13647. lt_prog_compiler_static_GCJ=
  13648. fi
  13649. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13650. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  13651. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  13652. echo $ECHO_N "(cached) $ECHO_C" >&6
  13653. else
  13654. lt_cv_prog_compiler_c_o_GCJ=no
  13655. $rm -r conftest 2>/dev/null
  13656. mkdir conftest
  13657. cd conftest
  13658. mkdir out
  13659. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13660. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13661. # Insert the option either (1) after the last *FLAGS variable, or
  13662. # (2) before a word containing "conftest.", or (3) at the end.
  13663. # Note that $ac_compile itself does not contain backslashes and begins
  13664. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13665. lt_compile=`echo "$ac_compile" | $SED \
  13666. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13667. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13668. -e 's:$: $lt_compiler_flag:'`
  13669. (eval echo "\"\$as_me:15220: $lt_compile\"" >&5)
  13670. (eval "$lt_compile" 2>out/conftest.err)
  13671. ac_status=$?
  13672. cat out/conftest.err >&5
  13673. echo "$as_me:15224: \$? = $ac_status" >&5
  13674. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13675. then
  13676. # The compiler can only warn and ignore the option if not recognized
  13677. # So say no if there are warnings
  13678. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13679. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13680. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13681. lt_cv_prog_compiler_c_o_GCJ=yes
  13682. fi
  13683. fi
  13684. chmod u+w . 2>&5
  13685. $rm conftest*
  13686. # SGI C++ compiler will create directory out/ii_files/ for
  13687. # template instantiation
  13688. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13689. $rm out/* && rmdir out
  13690. cd ..
  13691. rmdir conftest
  13692. $rm conftest*
  13693. fi
  13694. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  13695. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  13696. hard_links="nottested"
  13697. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  13698. # do not overwrite the value of need_locks provided by the user
  13699. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13700. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  13701. hard_links=yes
  13702. $rm conftest*
  13703. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13704. touch conftest.a
  13705. ln conftest.a conftest.b 2>&5 || hard_links=no
  13706. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13707. echo "$as_me:$LINENO: result: $hard_links" >&5
  13708. echo "${ECHO_T}$hard_links" >&6
  13709. if test "$hard_links" = no; then
  13710. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13711. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13712. need_locks=warn
  13713. fi
  13714. else
  13715. need_locks=no
  13716. fi
  13717. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13718. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  13719. runpath_var=
  13720. allow_undefined_flag_GCJ=
  13721. enable_shared_with_static_runtimes_GCJ=no
  13722. archive_cmds_GCJ=
  13723. archive_expsym_cmds_GCJ=
  13724. old_archive_From_new_cmds_GCJ=
  13725. old_archive_from_expsyms_cmds_GCJ=
  13726. export_dynamic_flag_spec_GCJ=
  13727. whole_archive_flag_spec_GCJ=
  13728. thread_safe_flag_spec_GCJ=
  13729. hardcode_libdir_flag_spec_GCJ=
  13730. hardcode_libdir_flag_spec_ld_GCJ=
  13731. hardcode_libdir_separator_GCJ=
  13732. hardcode_direct_GCJ=no
  13733. hardcode_minus_L_GCJ=no
  13734. hardcode_shlibpath_var_GCJ=unsupported
  13735. link_all_deplibs_GCJ=unknown
  13736. hardcode_automatic_GCJ=no
  13737. module_cmds_GCJ=
  13738. module_expsym_cmds_GCJ=
  13739. always_export_symbols_GCJ=no
  13740. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13741. # include_expsyms should be a list of space-separated symbols to be *always*
  13742. # included in the symbol list
  13743. include_expsyms_GCJ=
  13744. # exclude_expsyms can be an extended regexp of symbols to exclude
  13745. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13746. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13747. # as well as any symbol that contains `d'.
  13748. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  13749. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13750. # platforms (ab)use it in PIC code, but their linkers get confused if
  13751. # the symbol is explicitly referenced. Since portable code cannot
  13752. # rely on this symbol name, it's probably fine to never include it in
  13753. # preloaded symbol tables.
  13754. extract_expsyms_cmds=
  13755. # Just being paranoid about ensuring that cc_basename is set.
  13756. for cc_temp in $compiler""; do
  13757. case $cc_temp in
  13758. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13759. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13760. \-*) ;;
  13761. *) break;;
  13762. esac
  13763. done
  13764. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13765. case $host_os in
  13766. cygwin* | mingw* | pw32*)
  13767. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13768. # When not using gcc, we currently assume that we are using
  13769. # Microsoft Visual C++.
  13770. if test "$GCC" != yes; then
  13771. with_gnu_ld=no
  13772. fi
  13773. ;;
  13774. interix*)
  13775. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13776. with_gnu_ld=yes
  13777. ;;
  13778. openbsd*)
  13779. with_gnu_ld=no
  13780. ;;
  13781. esac
  13782. ld_shlibs_GCJ=yes
  13783. if test "$with_gnu_ld" = yes; then
  13784. # If archive_cmds runs LD, not CC, wlarc should be empty
  13785. wlarc='${wl}'
  13786. # Set some defaults for GNU ld with shared library support. These
  13787. # are reset later if shared libraries are not supported. Putting them
  13788. # here allows them to be overridden if necessary.
  13789. runpath_var=LD_RUN_PATH
  13790. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  13791. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  13792. # ancient GNU ld didn't support --whole-archive et. al.
  13793. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13794. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13795. else
  13796. whole_archive_flag_spec_GCJ=
  13797. fi
  13798. supports_anon_versioning=no
  13799. case `$LD -v 2>/dev/null` in
  13800. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13801. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13802. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13803. *\ 2.11.*) ;; # other 2.11 versions
  13804. *) supports_anon_versioning=yes ;;
  13805. esac
  13806. # See if GNU ld supports shared libraries.
  13807. case $host_os in
  13808. aix3* | aix4* | aix5*)
  13809. # On AIX/PPC, the GNU linker is very broken
  13810. if test "$host_cpu" != ia64; then
  13811. ld_shlibs_GCJ=no
  13812. cat <<EOF 1>&2
  13813. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13814. *** to be unable to reliably create shared libraries on AIX.
  13815. *** Therefore, libtool is disabling shared libraries support. If you
  13816. *** really care for shared libraries, you may want to modify your PATH
  13817. *** so that a non-GNU linker is found, and then restart.
  13818. EOF
  13819. fi
  13820. ;;
  13821. amigaos*)
  13822. 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)'
  13823. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13824. hardcode_minus_L_GCJ=yes
  13825. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13826. # that the semantics of dynamic libraries on AmigaOS, at least up
  13827. # to version 4, is to share data among multiple programs linked
  13828. # with the same dynamic library. Since this doesn't match the
  13829. # behavior of shared libraries on other platforms, we can't use
  13830. # them.
  13831. ld_shlibs_GCJ=no
  13832. ;;
  13833. beos*)
  13834. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13835. allow_undefined_flag_GCJ=unsupported
  13836. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13837. # support --undefined. This deserves some investigation. FIXME
  13838. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13839. else
  13840. ld_shlibs_GCJ=no
  13841. fi
  13842. ;;
  13843. cygwin* | mingw* | pw32*)
  13844. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  13845. # as there is no search path for DLLs.
  13846. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13847. allow_undefined_flag_GCJ=unsupported
  13848. always_export_symbols_GCJ=no
  13849. enable_shared_with_static_runtimes_GCJ=yes
  13850. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13851. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13852. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13853. # If the export-symbols file already is a .def file (1st line
  13854. # is EXPORTS), use it as is; otherwise, prepend...
  13855. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13856. cp $export_symbols $output_objdir/$soname.def;
  13857. else
  13858. echo EXPORTS > $output_objdir/$soname.def;
  13859. cat $export_symbols >> $output_objdir/$soname.def;
  13860. fi~
  13861. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13862. else
  13863. ld_shlibs_GCJ=no
  13864. fi
  13865. ;;
  13866. interix3*)
  13867. hardcode_direct_GCJ=no
  13868. hardcode_shlibpath_var_GCJ=no
  13869. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  13870. export_dynamic_flag_spec_GCJ='${wl}-E'
  13871. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13872. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13873. # default) and relocated if they conflict, which is a slow very memory
  13874. # consuming and fragmenting process. To avoid this, we pick a random,
  13875. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13876. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13877. 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'
  13878. 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'
  13879. ;;
  13880. linux*)
  13881. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13882. tmp_addflag=
  13883. case $cc_basename,$host_cpu in
  13884. pgcc*) # Portland Group C compiler
  13885. 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'
  13886. tmp_addflag=' $pic_flag'
  13887. ;;
  13888. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13889. 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'
  13890. tmp_addflag=' $pic_flag -Mnomain' ;;
  13891. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13892. tmp_addflag=' -i_dynamic' ;;
  13893. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13894. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13895. ifc* | ifort*) # Intel Fortran compiler
  13896. tmp_addflag=' -nofor_main' ;;
  13897. esac
  13898. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13899. if test $supports_anon_versioning = yes; then
  13900. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  13901. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13902. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13903. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13904. fi
  13905. else
  13906. ld_shlibs_GCJ=no
  13907. fi
  13908. ;;
  13909. netbsd*)
  13910. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13911. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13912. wlarc=
  13913. else
  13914. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13915. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13916. fi
  13917. ;;
  13918. solaris*)
  13919. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13920. ld_shlibs_GCJ=no
  13921. cat <<EOF 1>&2
  13922. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13923. *** create shared libraries on Solaris systems. Therefore, libtool
  13924. *** is disabling shared libraries support. We urge you to upgrade GNU
  13925. *** binutils to release 2.9.1 or newer. Another option is to modify
  13926. *** your PATH or compiler configuration so that the native linker is
  13927. *** used, and then restart.
  13928. EOF
  13929. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13930. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13931. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13932. else
  13933. ld_shlibs_GCJ=no
  13934. fi
  13935. ;;
  13936. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13937. case `$LD -v 2>&1` in
  13938. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13939. ld_shlibs_GCJ=no
  13940. cat <<_LT_EOF 1>&2
  13941. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13942. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13943. *** is disabling shared libraries support. We urge you to upgrade GNU
  13944. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13945. *** your PATH or compiler configuration so that the native linker is
  13946. *** used, and then restart.
  13947. _LT_EOF
  13948. ;;
  13949. *)
  13950. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13951. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13952. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13953. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13954. else
  13955. ld_shlibs_GCJ=no
  13956. fi
  13957. ;;
  13958. esac
  13959. ;;
  13960. sunos4*)
  13961. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13962. wlarc=
  13963. hardcode_direct_GCJ=yes
  13964. hardcode_shlibpath_var_GCJ=no
  13965. ;;
  13966. *)
  13967. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13968. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13969. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13970. else
  13971. ld_shlibs_GCJ=no
  13972. fi
  13973. ;;
  13974. esac
  13975. if test "$ld_shlibs_GCJ" = no; then
  13976. runpath_var=
  13977. hardcode_libdir_flag_spec_GCJ=
  13978. export_dynamic_flag_spec_GCJ=
  13979. whole_archive_flag_spec_GCJ=
  13980. fi
  13981. else
  13982. # PORTME fill in a description of your system's linker (not GNU ld)
  13983. case $host_os in
  13984. aix3*)
  13985. allow_undefined_flag_GCJ=unsupported
  13986. always_export_symbols_GCJ=yes
  13987. 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'
  13988. # Note: this linker hardcodes the directories in LIBPATH if there
  13989. # are no directories specified by -L.
  13990. hardcode_minus_L_GCJ=yes
  13991. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13992. # Neither direct hardcoding nor static linking is supported with a
  13993. # broken collect2.
  13994. hardcode_direct_GCJ=unsupported
  13995. fi
  13996. ;;
  13997. aix4* | aix5*)
  13998. if test "$host_cpu" = ia64; then
  13999. # On IA64, the linker does run time linking by default, so we don't
  14000. # have to do anything special.
  14001. aix_use_runtimelinking=no
  14002. exp_sym_flag='-Bexport'
  14003. no_entry_flag=""
  14004. else
  14005. # If we're using GNU nm, then we don't want the "-C" option.
  14006. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14007. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14008. 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'
  14009. else
  14010. 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'
  14011. fi
  14012. aix_use_runtimelinking=no
  14013. # Test if we are trying to use run time linking or normal
  14014. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14015. # need to do runtime linking.
  14016. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14017. for ld_flag in $LDFLAGS; do
  14018. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14019. aix_use_runtimelinking=yes
  14020. break
  14021. fi
  14022. done
  14023. ;;
  14024. esac
  14025. exp_sym_flag='-bexport'
  14026. no_entry_flag='-bnoentry'
  14027. fi
  14028. # When large executables or shared objects are built, AIX ld can
  14029. # have problems creating the table of contents. If linking a library
  14030. # or program results in "error TOC overflow" add -mminimal-toc to
  14031. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14032. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14033. archive_cmds_GCJ=''
  14034. hardcode_direct_GCJ=yes
  14035. hardcode_libdir_separator_GCJ=':'
  14036. link_all_deplibs_GCJ=yes
  14037. if test "$GCC" = yes; then
  14038. case $host_os in aix4.[012]|aix4.[012].*)
  14039. # We only want to do this on AIX 4.2 and lower, the check
  14040. # below for broken collect2 doesn't work under 4.3+
  14041. collect2name=`${CC} -print-prog-name=collect2`
  14042. if test -f "$collect2name" && \
  14043. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14044. then
  14045. # We have reworked collect2
  14046. hardcode_direct_GCJ=yes
  14047. else
  14048. # We have old collect2
  14049. hardcode_direct_GCJ=unsupported
  14050. # It fails to find uninstalled libraries when the uninstalled
  14051. # path is not listed in the libpath. Setting hardcode_minus_L
  14052. # to unsupported forces relinking
  14053. hardcode_minus_L_GCJ=yes
  14054. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14055. hardcode_libdir_separator_GCJ=
  14056. fi
  14057. ;;
  14058. esac
  14059. shared_flag='-shared'
  14060. if test "$aix_use_runtimelinking" = yes; then
  14061. shared_flag="$shared_flag "'${wl}-G'
  14062. fi
  14063. else
  14064. # not using gcc
  14065. if test "$host_cpu" = ia64; then
  14066. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14067. # chokes on -Wl,-G. The following line is correct:
  14068. shared_flag='-G'
  14069. else
  14070. if test "$aix_use_runtimelinking" = yes; then
  14071. shared_flag='${wl}-G'
  14072. else
  14073. shared_flag='${wl}-bM:SRE'
  14074. fi
  14075. fi
  14076. fi
  14077. # It seems that -bexpall does not export symbols beginning with
  14078. # underscore (_), so it is better to generate a list of symbols to export.
  14079. always_export_symbols_GCJ=yes
  14080. if test "$aix_use_runtimelinking" = yes; then
  14081. # Warning - without using the other runtime loading flags (-brtl),
  14082. # -berok will link without error, but may produce a broken library.
  14083. allow_undefined_flag_GCJ='-berok'
  14084. # Determine the default libpath from the value encoded in an empty executable.
  14085. cat >conftest.$ac_ext <<_ACEOF
  14086. /* confdefs.h. */
  14087. _ACEOF
  14088. cat confdefs.h >>conftest.$ac_ext
  14089. cat >>conftest.$ac_ext <<_ACEOF
  14090. /* end confdefs.h. */
  14091. int
  14092. main ()
  14093. {
  14094. ;
  14095. return 0;
  14096. }
  14097. _ACEOF
  14098. rm -f conftest.$ac_objext conftest$ac_exeext
  14099. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14100. (eval $ac_link) 2>conftest.er1
  14101. ac_status=$?
  14102. grep -v '^ *+' conftest.er1 >conftest.err
  14103. rm -f conftest.er1
  14104. cat conftest.err >&5
  14105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14106. (exit $ac_status); } &&
  14107. { ac_try='test -z "$ac_c_werror_flag"
  14108. || test ! -s conftest.err'
  14109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14110. (eval $ac_try) 2>&5
  14111. ac_status=$?
  14112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14113. (exit $ac_status); }; } &&
  14114. { ac_try='test -s conftest$ac_exeext'
  14115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14116. (eval $ac_try) 2>&5
  14117. ac_status=$?
  14118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14119. (exit $ac_status); }; }; then
  14120. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14121. }'`
  14122. # Check for a 64-bit object if we didn't find anything.
  14123. 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; }
  14124. }'`; fi
  14125. else
  14126. echo "$as_me: failed program was:" >&5
  14127. sed 's/^/| /' conftest.$ac_ext >&5
  14128. fi
  14129. rm -f conftest.err conftest.$ac_objext \
  14130. conftest$ac_exeext conftest.$ac_ext
  14131. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14132. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14133. 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"
  14134. else
  14135. if test "$host_cpu" = ia64; then
  14136. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14137. allow_undefined_flag_GCJ="-z nodefs"
  14138. 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"
  14139. else
  14140. # Determine the default libpath from the value encoded in an empty executable.
  14141. cat >conftest.$ac_ext <<_ACEOF
  14142. /* confdefs.h. */
  14143. _ACEOF
  14144. cat confdefs.h >>conftest.$ac_ext
  14145. cat >>conftest.$ac_ext <<_ACEOF
  14146. /* end confdefs.h. */
  14147. int
  14148. main ()
  14149. {
  14150. ;
  14151. return 0;
  14152. }
  14153. _ACEOF
  14154. rm -f conftest.$ac_objext conftest$ac_exeext
  14155. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14156. (eval $ac_link) 2>conftest.er1
  14157. ac_status=$?
  14158. grep -v '^ *+' conftest.er1 >conftest.err
  14159. rm -f conftest.er1
  14160. cat conftest.err >&5
  14161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14162. (exit $ac_status); } &&
  14163. { ac_try='test -z "$ac_c_werror_flag"
  14164. || test ! -s conftest.err'
  14165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14166. (eval $ac_try) 2>&5
  14167. ac_status=$?
  14168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14169. (exit $ac_status); }; } &&
  14170. { ac_try='test -s conftest$ac_exeext'
  14171. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14172. (eval $ac_try) 2>&5
  14173. ac_status=$?
  14174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14175. (exit $ac_status); }; }; then
  14176. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14177. }'`
  14178. # Check for a 64-bit object if we didn't find anything.
  14179. 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; }
  14180. }'`; fi
  14181. else
  14182. echo "$as_me: failed program was:" >&5
  14183. sed 's/^/| /' conftest.$ac_ext >&5
  14184. fi
  14185. rm -f conftest.err conftest.$ac_objext \
  14186. conftest$ac_exeext conftest.$ac_ext
  14187. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14188. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14189. # Warning - without using the other run time loading flags,
  14190. # -berok will link without error, but may produce a broken library.
  14191. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14192. allow_undefined_flag_GCJ=' ${wl}-berok'
  14193. # Exported symbols can be pulled into shared objects from archives
  14194. whole_archive_flag_spec_GCJ='$convenience'
  14195. archive_cmds_need_lc_GCJ=yes
  14196. # This is similar to how AIX traditionally builds its shared libraries.
  14197. 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'
  14198. fi
  14199. fi
  14200. ;;
  14201. amigaos*)
  14202. 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)'
  14203. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14204. hardcode_minus_L_GCJ=yes
  14205. # see comment about different semantics on the GNU ld section
  14206. ld_shlibs_GCJ=no
  14207. ;;
  14208. bsdi[45]*)
  14209. export_dynamic_flag_spec_GCJ=-rdynamic
  14210. ;;
  14211. cygwin* | mingw* | pw32*)
  14212. # When not using gcc, we currently assume that we are using
  14213. # Microsoft Visual C++.
  14214. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14215. # no search path for DLLs.
  14216. hardcode_libdir_flag_spec_GCJ=' '
  14217. allow_undefined_flag_GCJ=unsupported
  14218. # Tell ltmain to make .lib files, not .a files.
  14219. libext=lib
  14220. # Tell ltmain to make .dll files, not .so files.
  14221. shrext_cmds=".dll"
  14222. # FIXME: Setting linknames here is a bad hack.
  14223. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14224. # The linker will automatically build a .lib file if we build a DLL.
  14225. old_archive_From_new_cmds_GCJ='true'
  14226. # FIXME: Should let the user specify the lib program.
  14227. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14228. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14229. enable_shared_with_static_runtimes_GCJ=yes
  14230. ;;
  14231. darwin* | rhapsody*)
  14232. case $host_os in
  14233. rhapsody* | darwin1.[012])
  14234. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14235. ;;
  14236. *) # Darwin 1.3 on
  14237. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14238. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14239. else
  14240. case ${MACOSX_DEPLOYMENT_TARGET} in
  14241. 10.[012])
  14242. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14243. ;;
  14244. 10.*)
  14245. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14246. ;;
  14247. esac
  14248. fi
  14249. ;;
  14250. esac
  14251. archive_cmds_need_lc_GCJ=no
  14252. hardcode_direct_GCJ=no
  14253. hardcode_automatic_GCJ=yes
  14254. hardcode_shlibpath_var_GCJ=unsupported
  14255. whole_archive_flag_spec_GCJ=''
  14256. link_all_deplibs_GCJ=yes
  14257. if test "$GCC" = yes ; then
  14258. output_verbose_link_cmd='echo'
  14259. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14260. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14261. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14262. 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}'
  14263. 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}'
  14264. else
  14265. case $cc_basename in
  14266. xlc*)
  14267. output_verbose_link_cmd='echo'
  14268. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14269. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14270. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14271. 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}'
  14272. 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}'
  14273. ;;
  14274. *)
  14275. ld_shlibs_GCJ=no
  14276. ;;
  14277. esac
  14278. fi
  14279. ;;
  14280. dgux*)
  14281. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14282. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14283. hardcode_shlibpath_var_GCJ=no
  14284. ;;
  14285. freebsd1*)
  14286. ld_shlibs_GCJ=no
  14287. ;;
  14288. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14289. # support. Future versions do this automatically, but an explicit c++rt0.o
  14290. # does not break anything, and helps significantly (at the cost of a little
  14291. # extra space).
  14292. freebsd2.2*)
  14293. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14294. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14295. hardcode_direct_GCJ=yes
  14296. hardcode_shlibpath_var_GCJ=no
  14297. ;;
  14298. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14299. freebsd2*)
  14300. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14301. hardcode_direct_GCJ=yes
  14302. hardcode_minus_L_GCJ=yes
  14303. hardcode_shlibpath_var_GCJ=no
  14304. ;;
  14305. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14306. freebsd* | kfreebsd*-gnu | dragonfly*)
  14307. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14308. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14309. hardcode_direct_GCJ=yes
  14310. hardcode_shlibpath_var_GCJ=no
  14311. ;;
  14312. hpux9*)
  14313. if test "$GCC" = yes; then
  14314. 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'
  14315. else
  14316. 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'
  14317. fi
  14318. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14319. hardcode_libdir_separator_GCJ=:
  14320. hardcode_direct_GCJ=yes
  14321. # hardcode_minus_L: Not really in the search PATH,
  14322. # but as the default location of the library.
  14323. hardcode_minus_L_GCJ=yes
  14324. export_dynamic_flag_spec_GCJ='${wl}-E'
  14325. ;;
  14326. hpux10*)
  14327. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14328. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14329. else
  14330. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14331. fi
  14332. if test "$with_gnu_ld" = no; then
  14333. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14334. hardcode_libdir_separator_GCJ=:
  14335. hardcode_direct_GCJ=yes
  14336. export_dynamic_flag_spec_GCJ='${wl}-E'
  14337. # hardcode_minus_L: Not really in the search PATH,
  14338. # but as the default location of the library.
  14339. hardcode_minus_L_GCJ=yes
  14340. fi
  14341. ;;
  14342. hpux11*)
  14343. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14344. case $host_cpu in
  14345. hppa*64*)
  14346. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14347. ;;
  14348. ia64*)
  14349. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14350. ;;
  14351. *)
  14352. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14353. ;;
  14354. esac
  14355. else
  14356. case $host_cpu in
  14357. hppa*64*)
  14358. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14359. ;;
  14360. ia64*)
  14361. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14362. ;;
  14363. *)
  14364. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14365. ;;
  14366. esac
  14367. fi
  14368. if test "$with_gnu_ld" = no; then
  14369. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14370. hardcode_libdir_separator_GCJ=:
  14371. case $host_cpu in
  14372. hppa*64*|ia64*)
  14373. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  14374. hardcode_direct_GCJ=no
  14375. hardcode_shlibpath_var_GCJ=no
  14376. ;;
  14377. *)
  14378. hardcode_direct_GCJ=yes
  14379. export_dynamic_flag_spec_GCJ='${wl}-E'
  14380. # hardcode_minus_L: Not really in the search PATH,
  14381. # but as the default location of the library.
  14382. hardcode_minus_L_GCJ=yes
  14383. ;;
  14384. esac
  14385. fi
  14386. ;;
  14387. irix5* | irix6* | nonstopux*)
  14388. if test "$GCC" = yes; then
  14389. 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'
  14390. else
  14391. 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'
  14392. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  14393. fi
  14394. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14395. hardcode_libdir_separator_GCJ=:
  14396. link_all_deplibs_GCJ=yes
  14397. ;;
  14398. netbsd*)
  14399. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14400. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14401. else
  14402. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14403. fi
  14404. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14405. hardcode_direct_GCJ=yes
  14406. hardcode_shlibpath_var_GCJ=no
  14407. ;;
  14408. newsos6)
  14409. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14410. hardcode_direct_GCJ=yes
  14411. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14412. hardcode_libdir_separator_GCJ=:
  14413. hardcode_shlibpath_var_GCJ=no
  14414. ;;
  14415. openbsd*)
  14416. hardcode_direct_GCJ=yes
  14417. hardcode_shlibpath_var_GCJ=no
  14418. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14419. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14420. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14421. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14422. export_dynamic_flag_spec_GCJ='${wl}-E'
  14423. else
  14424. case $host_os in
  14425. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14426. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14427. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14428. ;;
  14429. *)
  14430. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14431. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14432. ;;
  14433. esac
  14434. fi
  14435. ;;
  14436. os2*)
  14437. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14438. hardcode_minus_L_GCJ=yes
  14439. allow_undefined_flag_GCJ=unsupported
  14440. 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'
  14441. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14442. ;;
  14443. osf3*)
  14444. if test "$GCC" = yes; then
  14445. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14446. 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'
  14447. else
  14448. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14449. 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'
  14450. fi
  14451. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14452. hardcode_libdir_separator_GCJ=:
  14453. ;;
  14454. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14455. if test "$GCC" = yes; then
  14456. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14457. 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'
  14458. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14459. else
  14460. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14461. 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'
  14462. 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~
  14463. $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'
  14464. # Both c and cxx compiler support -rpath directly
  14465. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  14466. fi
  14467. hardcode_libdir_separator_GCJ=:
  14468. ;;
  14469. solaris*)
  14470. no_undefined_flag_GCJ=' -z text'
  14471. if test "$GCC" = yes; then
  14472. wlarc='${wl}'
  14473. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14474. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14475. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14476. else
  14477. wlarc=''
  14478. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14479. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14480. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14481. fi
  14482. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14483. hardcode_shlibpath_var_GCJ=no
  14484. case $host_os in
  14485. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14486. *)
  14487. # The compiler driver will combine linker options so we
  14488. # cannot just pass the convience library names through
  14489. # without $wl, iff we do not link with $LD.
  14490. # Luckily, gcc supports the same syntax we need for Sun Studio.
  14491. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14492. case $wlarc in
  14493. '')
  14494. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  14495. *)
  14496. 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' ;;
  14497. esac ;;
  14498. esac
  14499. link_all_deplibs_GCJ=yes
  14500. ;;
  14501. sunos4*)
  14502. if test "x$host_vendor" = xsequent; then
  14503. # Use $CC to link under sequent, because it throws in some extra .o
  14504. # files that make .init and .fini sections work.
  14505. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14506. else
  14507. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14508. fi
  14509. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14510. hardcode_direct_GCJ=yes
  14511. hardcode_minus_L_GCJ=yes
  14512. hardcode_shlibpath_var_GCJ=no
  14513. ;;
  14514. sysv4)
  14515. case $host_vendor in
  14516. sni)
  14517. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14518. hardcode_direct_GCJ=yes # is this really true???
  14519. ;;
  14520. siemens)
  14521. ## LD is ld it makes a PLAMLIB
  14522. ## CC just makes a GrossModule.
  14523. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14524. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  14525. hardcode_direct_GCJ=no
  14526. ;;
  14527. motorola)
  14528. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14529. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  14530. ;;
  14531. esac
  14532. runpath_var='LD_RUN_PATH'
  14533. hardcode_shlibpath_var_GCJ=no
  14534. ;;
  14535. sysv4.3*)
  14536. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14537. hardcode_shlibpath_var_GCJ=no
  14538. export_dynamic_flag_spec_GCJ='-Bexport'
  14539. ;;
  14540. sysv4*MP*)
  14541. if test -d /usr/nec; then
  14542. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14543. hardcode_shlibpath_var_GCJ=no
  14544. runpath_var=LD_RUN_PATH
  14545. hardcode_runpath_var=yes
  14546. ld_shlibs_GCJ=yes
  14547. fi
  14548. ;;
  14549. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  14550. no_undefined_flag_GCJ='${wl}-z,text'
  14551. archive_cmds_need_lc_GCJ=no
  14552. hardcode_shlibpath_var_GCJ=no
  14553. runpath_var='LD_RUN_PATH'
  14554. if test "$GCC" = yes; then
  14555. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14556. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14557. else
  14558. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14559. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14560. fi
  14561. ;;
  14562. sysv5* | sco3.2v5* | sco5v6*)
  14563. # Note: We can NOT use -z defs as we might desire, because we do not
  14564. # link with -lc, and that would cause any symbols used from libc to
  14565. # always be unresolved, which means just about no library would
  14566. # ever link correctly. If we're not using GNU ld we use -z text
  14567. # though, which does catch some bad symbols but isn't as heavy-handed
  14568. # as -z defs.
  14569. no_undefined_flag_GCJ='${wl}-z,text'
  14570. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  14571. archive_cmds_need_lc_GCJ=no
  14572. hardcode_shlibpath_var_GCJ=no
  14573. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  14574. hardcode_libdir_separator_GCJ=':'
  14575. link_all_deplibs_GCJ=yes
  14576. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  14577. runpath_var='LD_RUN_PATH'
  14578. if test "$GCC" = yes; then
  14579. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14580. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14581. else
  14582. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14583. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14584. fi
  14585. ;;
  14586. uts4*)
  14587. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14588. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14589. hardcode_shlibpath_var_GCJ=no
  14590. ;;
  14591. *)
  14592. ld_shlibs_GCJ=no
  14593. ;;
  14594. esac
  14595. fi
  14596. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  14597. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  14598. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  14599. #
  14600. # Do we need to explicitly link libc?
  14601. #
  14602. case "x$archive_cmds_need_lc_GCJ" in
  14603. x|xyes)
  14604. # Assume -lc should be added
  14605. archive_cmds_need_lc_GCJ=yes
  14606. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14607. case $archive_cmds_GCJ in
  14608. *'~'*)
  14609. # FIXME: we may have to deal with multi-command sequences.
  14610. ;;
  14611. '$CC '*)
  14612. # Test whether the compiler implicitly links with -lc since on some
  14613. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14614. # to ld, don't add -lc before -lgcc.
  14615. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14616. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  14617. $rm conftest*
  14618. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14619. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14620. (eval $ac_compile) 2>&5
  14621. ac_status=$?
  14622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14623. (exit $ac_status); } 2>conftest.err; then
  14624. soname=conftest
  14625. lib=conftest
  14626. libobjs=conftest.$ac_objext
  14627. deplibs=
  14628. wl=$lt_prog_compiler_wl_GCJ
  14629. pic_flag=$lt_prog_compiler_pic_GCJ
  14630. compiler_flags=-v
  14631. linker_flags=-v
  14632. verstring=
  14633. output_objdir=.
  14634. libname=conftest
  14635. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  14636. allow_undefined_flag_GCJ=
  14637. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14638. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14639. ac_status=$?
  14640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14641. (exit $ac_status); }
  14642. then
  14643. archive_cmds_need_lc_GCJ=no
  14644. else
  14645. archive_cmds_need_lc_GCJ=yes
  14646. fi
  14647. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  14648. else
  14649. cat conftest.err 1>&5
  14650. fi
  14651. $rm conftest*
  14652. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  14653. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  14654. ;;
  14655. esac
  14656. fi
  14657. ;;
  14658. esac
  14659. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14660. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  14661. library_names_spec=
  14662. libname_spec='lib$name'
  14663. soname_spec=
  14664. shrext_cmds=".so"
  14665. postinstall_cmds=
  14666. postuninstall_cmds=
  14667. finish_cmds=
  14668. finish_eval=
  14669. shlibpath_var=
  14670. shlibpath_overrides_runpath=unknown
  14671. version_type=none
  14672. dynamic_linker="$host_os ld.so"
  14673. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14674. if test "$GCC" = yes; then
  14675. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14676. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14677. # if the path contains ";" then we assume it to be the separator
  14678. # otherwise default to the standard path separator (i.e. ":") - it is
  14679. # assumed that no part of a normal pathname contains ";" but that should
  14680. # okay in the real world where ";" in dirpaths is itself problematic.
  14681. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14682. else
  14683. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14684. fi
  14685. else
  14686. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14687. fi
  14688. need_lib_prefix=unknown
  14689. hardcode_into_libs=no
  14690. # when you set need_version to no, make sure it does not cause -set_version
  14691. # flags to be left without arguments
  14692. need_version=unknown
  14693. case $host_os in
  14694. aix3*)
  14695. version_type=linux
  14696. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14697. shlibpath_var=LIBPATH
  14698. # AIX 3 has no versioning support, so we append a major version to the name.
  14699. soname_spec='${libname}${release}${shared_ext}$major'
  14700. ;;
  14701. aix4* | aix5*)
  14702. version_type=linux
  14703. need_lib_prefix=no
  14704. need_version=no
  14705. hardcode_into_libs=yes
  14706. if test "$host_cpu" = ia64; then
  14707. # AIX 5 supports IA64
  14708. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14709. shlibpath_var=LD_LIBRARY_PATH
  14710. else
  14711. # With GCC up to 2.95.x, collect2 would create an import file
  14712. # for dependence libraries. The import file would start with
  14713. # the line `#! .'. This would cause the generated library to
  14714. # depend on `.', always an invalid library. This was fixed in
  14715. # development snapshots of GCC prior to 3.0.
  14716. case $host_os in
  14717. aix4 | aix4.[01] | aix4.[01].*)
  14718. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14719. echo ' yes '
  14720. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14721. :
  14722. else
  14723. can_build_shared=no
  14724. fi
  14725. ;;
  14726. esac
  14727. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14728. # soname into executable. Probably we can add versioning support to
  14729. # collect2, so additional links can be useful in future.
  14730. if test "$aix_use_runtimelinking" = yes; then
  14731. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14732. # instead of lib<name>.a to let people know that these are not
  14733. # typical AIX shared libraries.
  14734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14735. else
  14736. # We preserve .a as extension for shared libraries through AIX4.2
  14737. # and later when we are not doing run time linking.
  14738. library_names_spec='${libname}${release}.a $libname.a'
  14739. soname_spec='${libname}${release}${shared_ext}$major'
  14740. fi
  14741. shlibpath_var=LIBPATH
  14742. fi
  14743. ;;
  14744. amigaos*)
  14745. library_names_spec='$libname.ixlibrary $libname.a'
  14746. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14747. 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'
  14748. ;;
  14749. beos*)
  14750. library_names_spec='${libname}${shared_ext}'
  14751. dynamic_linker="$host_os ld.so"
  14752. shlibpath_var=LIBRARY_PATH
  14753. ;;
  14754. bsdi[45]*)
  14755. version_type=linux
  14756. need_version=no
  14757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14758. soname_spec='${libname}${release}${shared_ext}$major'
  14759. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14760. shlibpath_var=LD_LIBRARY_PATH
  14761. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14762. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14763. # the default ld.so.conf also contains /usr/contrib/lib and
  14764. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14765. # libtool to hard-code these into programs
  14766. ;;
  14767. cygwin* | mingw* | pw32*)
  14768. version_type=windows
  14769. shrext_cmds=".dll"
  14770. need_version=no
  14771. need_lib_prefix=no
  14772. case $GCC,$host_os in
  14773. yes,cygwin* | yes,mingw* | yes,pw32*)
  14774. library_names_spec='$libname.dll.a'
  14775. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14776. postinstall_cmds='base_file=`basename \${file}`~
  14777. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14778. dldir=$destdir/`dirname \$dlpath`~
  14779. test -d \$dldir || mkdir -p \$dldir~
  14780. $install_prog $dir/$dlname \$dldir/$dlname~
  14781. chmod a+x \$dldir/$dlname'
  14782. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14783. dlpath=$dir/\$dldll~
  14784. $rm \$dlpath'
  14785. shlibpath_overrides_runpath=yes
  14786. case $host_os in
  14787. cygwin*)
  14788. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14789. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14790. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14791. ;;
  14792. mingw*)
  14793. # MinGW DLLs use traditional 'lib' prefix
  14794. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14795. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14796. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14797. # It is most probably a Windows format PATH printed by
  14798. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14799. # path with ; separators, and with drive letters. We can handle the
  14800. # drive letters (cygwin fileutils understands them), so leave them,
  14801. # especially as we might pass files found there to a mingw objdump,
  14802. # which wouldn't understand a cygwinified path. Ahh.
  14803. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14804. else
  14805. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14806. fi
  14807. ;;
  14808. pw32*)
  14809. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14810. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14811. ;;
  14812. esac
  14813. ;;
  14814. *)
  14815. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14816. ;;
  14817. esac
  14818. dynamic_linker='Win32 ld.exe'
  14819. # FIXME: first we should search . and the directory the executable is in
  14820. shlibpath_var=PATH
  14821. ;;
  14822. darwin* | rhapsody*)
  14823. dynamic_linker="$host_os dyld"
  14824. version_type=darwin
  14825. need_lib_prefix=no
  14826. need_version=no
  14827. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14828. soname_spec='${libname}${release}${major}$shared_ext'
  14829. shlibpath_overrides_runpath=yes
  14830. shlibpath_var=DYLD_LIBRARY_PATH
  14831. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14832. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14833. if test "$GCC" = yes; then
  14834. 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"`
  14835. else
  14836. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14837. fi
  14838. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14839. ;;
  14840. dgux*)
  14841. version_type=linux
  14842. need_lib_prefix=no
  14843. need_version=no
  14844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14845. soname_spec='${libname}${release}${shared_ext}$major'
  14846. shlibpath_var=LD_LIBRARY_PATH
  14847. ;;
  14848. freebsd1*)
  14849. dynamic_linker=no
  14850. ;;
  14851. kfreebsd*-gnu)
  14852. version_type=linux
  14853. need_lib_prefix=no
  14854. need_version=no
  14855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14856. soname_spec='${libname}${release}${shared_ext}$major'
  14857. shlibpath_var=LD_LIBRARY_PATH
  14858. shlibpath_overrides_runpath=no
  14859. hardcode_into_libs=yes
  14860. dynamic_linker='GNU ld.so'
  14861. ;;
  14862. freebsd* | dragonfly*)
  14863. # DragonFly does not have aout. When/if they implement a new
  14864. # versioning mechanism, adjust this.
  14865. if test -x /usr/bin/objformat; then
  14866. objformat=`/usr/bin/objformat`
  14867. else
  14868. case $host_os in
  14869. freebsd[123]*) objformat=aout ;;
  14870. *) objformat=elf ;;
  14871. esac
  14872. fi
  14873. version_type=freebsd-$objformat
  14874. case $version_type in
  14875. freebsd-elf*)
  14876. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14877. need_version=no
  14878. need_lib_prefix=no
  14879. ;;
  14880. freebsd-*)
  14881. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14882. need_version=yes
  14883. ;;
  14884. esac
  14885. shlibpath_var=LD_LIBRARY_PATH
  14886. case $host_os in
  14887. freebsd2*)
  14888. shlibpath_overrides_runpath=yes
  14889. ;;
  14890. freebsd3.[01]* | freebsdelf3.[01]*)
  14891. shlibpath_overrides_runpath=yes
  14892. hardcode_into_libs=yes
  14893. ;;
  14894. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14895. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14896. shlibpath_overrides_runpath=no
  14897. hardcode_into_libs=yes
  14898. ;;
  14899. freebsd*) # from 4.6 on
  14900. shlibpath_overrides_runpath=yes
  14901. hardcode_into_libs=yes
  14902. ;;
  14903. esac
  14904. ;;
  14905. gnu*)
  14906. version_type=linux
  14907. need_lib_prefix=no
  14908. need_version=no
  14909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14910. soname_spec='${libname}${release}${shared_ext}$major'
  14911. shlibpath_var=LD_LIBRARY_PATH
  14912. hardcode_into_libs=yes
  14913. ;;
  14914. hpux9* | hpux10* | hpux11*)
  14915. # Give a soname corresponding to the major version so that dld.sl refuses to
  14916. # link against other versions.
  14917. version_type=sunos
  14918. need_lib_prefix=no
  14919. need_version=no
  14920. case $host_cpu in
  14921. ia64*)
  14922. shrext_cmds='.so'
  14923. hardcode_into_libs=yes
  14924. dynamic_linker="$host_os dld.so"
  14925. shlibpath_var=LD_LIBRARY_PATH
  14926. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14928. soname_spec='${libname}${release}${shared_ext}$major'
  14929. if test "X$HPUX_IA64_MODE" = X32; then
  14930. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14931. else
  14932. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14933. fi
  14934. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14935. ;;
  14936. hppa*64*)
  14937. shrext_cmds='.sl'
  14938. hardcode_into_libs=yes
  14939. dynamic_linker="$host_os dld.sl"
  14940. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14941. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14943. soname_spec='${libname}${release}${shared_ext}$major'
  14944. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14945. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14946. ;;
  14947. *)
  14948. shrext_cmds='.sl'
  14949. dynamic_linker="$host_os dld.sl"
  14950. shlibpath_var=SHLIB_PATH
  14951. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14953. soname_spec='${libname}${release}${shared_ext}$major'
  14954. ;;
  14955. esac
  14956. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14957. postinstall_cmds='chmod 555 $lib'
  14958. ;;
  14959. interix3*)
  14960. version_type=linux
  14961. need_lib_prefix=no
  14962. need_version=no
  14963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14964. soname_spec='${libname}${release}${shared_ext}$major'
  14965. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14966. shlibpath_var=LD_LIBRARY_PATH
  14967. shlibpath_overrides_runpath=no
  14968. hardcode_into_libs=yes
  14969. ;;
  14970. irix5* | irix6* | nonstopux*)
  14971. case $host_os in
  14972. nonstopux*) version_type=nonstopux ;;
  14973. *)
  14974. if test "$lt_cv_prog_gnu_ld" = yes; then
  14975. version_type=linux
  14976. else
  14977. version_type=irix
  14978. fi ;;
  14979. esac
  14980. need_lib_prefix=no
  14981. need_version=no
  14982. soname_spec='${libname}${release}${shared_ext}$major'
  14983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14984. case $host_os in
  14985. irix5* | nonstopux*)
  14986. libsuff= shlibsuff=
  14987. ;;
  14988. *)
  14989. case $LD in # libtool.m4 will add one of these switches to LD
  14990. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14991. libsuff= shlibsuff= libmagic=32-bit;;
  14992. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14993. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14994. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14995. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14996. *) libsuff= shlibsuff= libmagic=never-match;;
  14997. esac
  14998. ;;
  14999. esac
  15000. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15001. shlibpath_overrides_runpath=no
  15002. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15003. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15004. hardcode_into_libs=yes
  15005. ;;
  15006. # No shared lib support for Linux oldld, aout, or coff.
  15007. linux*oldld* | linux*aout* | linux*coff*)
  15008. dynamic_linker=no
  15009. ;;
  15010. # This must be Linux ELF.
  15011. linux*)
  15012. version_type=linux
  15013. need_lib_prefix=no
  15014. need_version=no
  15015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15016. soname_spec='${libname}${release}${shared_ext}$major'
  15017. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15018. shlibpath_var=LD_LIBRARY_PATH
  15019. shlibpath_overrides_runpath=no
  15020. # This implies no fast_install, which is unacceptable.
  15021. # Some rework will be needed to allow for fast_install
  15022. # before this can be enabled.
  15023. hardcode_into_libs=yes
  15024. # Append ld.so.conf contents to the search path
  15025. if test -f /etc/ld.so.conf; then
  15026. 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' ' '`
  15027. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15028. fi
  15029. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15030. # powerpc, because MkLinux only supported shared libraries with the
  15031. # GNU dynamic linker. Since this was broken with cross compilers,
  15032. # most powerpc-linux boxes support dynamic linking these days and
  15033. # people can always --disable-shared, the test was removed, and we
  15034. # assume the GNU/Linux dynamic linker is in use.
  15035. dynamic_linker='GNU/Linux ld.so'
  15036. ;;
  15037. knetbsd*-gnu)
  15038. version_type=linux
  15039. need_lib_prefix=no
  15040. need_version=no
  15041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15042. soname_spec='${libname}${release}${shared_ext}$major'
  15043. shlibpath_var=LD_LIBRARY_PATH
  15044. shlibpath_overrides_runpath=no
  15045. hardcode_into_libs=yes
  15046. dynamic_linker='GNU ld.so'
  15047. ;;
  15048. netbsd*)
  15049. version_type=sunos
  15050. need_lib_prefix=no
  15051. need_version=no
  15052. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15054. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15055. dynamic_linker='NetBSD (a.out) ld.so'
  15056. else
  15057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15058. soname_spec='${libname}${release}${shared_ext}$major'
  15059. dynamic_linker='NetBSD ld.elf_so'
  15060. fi
  15061. shlibpath_var=LD_LIBRARY_PATH
  15062. shlibpath_overrides_runpath=yes
  15063. hardcode_into_libs=yes
  15064. ;;
  15065. newsos6)
  15066. version_type=linux
  15067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15068. shlibpath_var=LD_LIBRARY_PATH
  15069. shlibpath_overrides_runpath=yes
  15070. ;;
  15071. nto-qnx*)
  15072. version_type=linux
  15073. need_lib_prefix=no
  15074. need_version=no
  15075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15076. soname_spec='${libname}${release}${shared_ext}$major'
  15077. shlibpath_var=LD_LIBRARY_PATH
  15078. shlibpath_overrides_runpath=yes
  15079. ;;
  15080. openbsd*)
  15081. version_type=sunos
  15082. sys_lib_dlsearch_path_spec="/usr/lib"
  15083. need_lib_prefix=no
  15084. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15085. case $host_os in
  15086. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15087. *) need_version=no ;;
  15088. esac
  15089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15090. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15091. shlibpath_var=LD_LIBRARY_PATH
  15092. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15093. case $host_os in
  15094. openbsd2.[89] | openbsd2.[89].*)
  15095. shlibpath_overrides_runpath=no
  15096. ;;
  15097. *)
  15098. shlibpath_overrides_runpath=yes
  15099. ;;
  15100. esac
  15101. else
  15102. shlibpath_overrides_runpath=yes
  15103. fi
  15104. ;;
  15105. os2*)
  15106. libname_spec='$name'
  15107. shrext_cmds=".dll"
  15108. need_lib_prefix=no
  15109. library_names_spec='$libname${shared_ext} $libname.a'
  15110. dynamic_linker='OS/2 ld.exe'
  15111. shlibpath_var=LIBPATH
  15112. ;;
  15113. osf3* | osf4* | osf5*)
  15114. version_type=osf
  15115. need_lib_prefix=no
  15116. need_version=no
  15117. soname_spec='${libname}${release}${shared_ext}$major'
  15118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15119. shlibpath_var=LD_LIBRARY_PATH
  15120. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15121. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15122. ;;
  15123. solaris*)
  15124. version_type=linux
  15125. need_lib_prefix=no
  15126. need_version=no
  15127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15128. soname_spec='${libname}${release}${shared_ext}$major'
  15129. shlibpath_var=LD_LIBRARY_PATH
  15130. shlibpath_overrides_runpath=yes
  15131. hardcode_into_libs=yes
  15132. # ldd complains unless libraries are executable
  15133. postinstall_cmds='chmod +x $lib'
  15134. ;;
  15135. sunos4*)
  15136. version_type=sunos
  15137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15138. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15139. shlibpath_var=LD_LIBRARY_PATH
  15140. shlibpath_overrides_runpath=yes
  15141. if test "$with_gnu_ld" = yes; then
  15142. need_lib_prefix=no
  15143. fi
  15144. need_version=yes
  15145. ;;
  15146. sysv4 | sysv4.3*)
  15147. version_type=linux
  15148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15149. soname_spec='${libname}${release}${shared_ext}$major'
  15150. shlibpath_var=LD_LIBRARY_PATH
  15151. case $host_vendor in
  15152. sni)
  15153. shlibpath_overrides_runpath=no
  15154. need_lib_prefix=no
  15155. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15156. runpath_var=LD_RUN_PATH
  15157. ;;
  15158. siemens)
  15159. need_lib_prefix=no
  15160. ;;
  15161. motorola)
  15162. need_lib_prefix=no
  15163. need_version=no
  15164. shlibpath_overrides_runpath=no
  15165. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15166. ;;
  15167. esac
  15168. ;;
  15169. sysv4*MP*)
  15170. if test -d /usr/nec ;then
  15171. version_type=linux
  15172. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15173. soname_spec='$libname${shared_ext}.$major'
  15174. shlibpath_var=LD_LIBRARY_PATH
  15175. fi
  15176. ;;
  15177. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15178. version_type=freebsd-elf
  15179. need_lib_prefix=no
  15180. need_version=no
  15181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15182. soname_spec='${libname}${release}${shared_ext}$major'
  15183. shlibpath_var=LD_LIBRARY_PATH
  15184. hardcode_into_libs=yes
  15185. if test "$with_gnu_ld" = yes; then
  15186. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15187. shlibpath_overrides_runpath=no
  15188. else
  15189. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15190. shlibpath_overrides_runpath=yes
  15191. case $host_os in
  15192. sco3.2v5*)
  15193. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15194. ;;
  15195. esac
  15196. fi
  15197. sys_lib_dlsearch_path_spec='/usr/lib'
  15198. ;;
  15199. uts4*)
  15200. version_type=linux
  15201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15202. soname_spec='${libname}${release}${shared_ext}$major'
  15203. shlibpath_var=LD_LIBRARY_PATH
  15204. ;;
  15205. *)
  15206. dynamic_linker=no
  15207. ;;
  15208. esac
  15209. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15210. echo "${ECHO_T}$dynamic_linker" >&6
  15211. test "$dynamic_linker" = no && can_build_shared=no
  15212. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15213. if test "$GCC" = yes; then
  15214. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15215. fi
  15216. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15217. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15218. hardcode_action_GCJ=
  15219. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15220. test -n "$runpath_var_GCJ" || \
  15221. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15222. # We can hardcode non-existant directories.
  15223. if test "$hardcode_direct_GCJ" != no &&
  15224. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15225. # have to relink, otherwise we might link with an installed library
  15226. # when we should be linking with a yet-to-be-installed one
  15227. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15228. test "$hardcode_minus_L_GCJ" != no; then
  15229. # Linking always hardcodes the temporary library directory.
  15230. hardcode_action_GCJ=relink
  15231. else
  15232. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15233. hardcode_action_GCJ=immediate
  15234. fi
  15235. else
  15236. # We cannot hardcode anything, or else we can only hardcode existing
  15237. # directories.
  15238. hardcode_action_GCJ=unsupported
  15239. fi
  15240. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15241. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15242. if test "$hardcode_action_GCJ" = relink; then
  15243. # Fast installation is not supported
  15244. enable_fast_install=no
  15245. elif test "$shlibpath_overrides_runpath" = yes ||
  15246. test "$enable_shared" = no; then
  15247. # Fast installation is not necessary
  15248. enable_fast_install=needless
  15249. fi
  15250. # The else clause should only fire when bootstrapping the
  15251. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15252. # with your package, and you will get complaints that there are
  15253. # no rules to generate ltmain.sh.
  15254. if test -f "$ltmain"; then
  15255. # See if we are running on zsh, and set the options which allow our commands through
  15256. # without removal of \ escapes.
  15257. if test -n "${ZSH_VERSION+set}" ; then
  15258. setopt NO_GLOB_SUBST
  15259. fi
  15260. # Now quote all the things that may contain metacharacters while being
  15261. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15262. # variables and quote the copies for generation of the libtool script.
  15263. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15264. SED SHELL STRIP \
  15265. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15266. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15267. deplibs_check_method reload_flag reload_cmds need_locks \
  15268. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15269. lt_cv_sys_global_symbol_to_c_name_address \
  15270. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15271. old_postinstall_cmds old_postuninstall_cmds \
  15272. compiler_GCJ \
  15273. CC_GCJ \
  15274. LD_GCJ \
  15275. lt_prog_compiler_wl_GCJ \
  15276. lt_prog_compiler_pic_GCJ \
  15277. lt_prog_compiler_static_GCJ \
  15278. lt_prog_compiler_no_builtin_flag_GCJ \
  15279. export_dynamic_flag_spec_GCJ \
  15280. thread_safe_flag_spec_GCJ \
  15281. whole_archive_flag_spec_GCJ \
  15282. enable_shared_with_static_runtimes_GCJ \
  15283. old_archive_cmds_GCJ \
  15284. old_archive_from_new_cmds_GCJ \
  15285. predep_objects_GCJ \
  15286. postdep_objects_GCJ \
  15287. predeps_GCJ \
  15288. postdeps_GCJ \
  15289. compiler_lib_search_path_GCJ \
  15290. archive_cmds_GCJ \
  15291. archive_expsym_cmds_GCJ \
  15292. postinstall_cmds_GCJ \
  15293. postuninstall_cmds_GCJ \
  15294. old_archive_from_expsyms_cmds_GCJ \
  15295. allow_undefined_flag_GCJ \
  15296. no_undefined_flag_GCJ \
  15297. export_symbols_cmds_GCJ \
  15298. hardcode_libdir_flag_spec_GCJ \
  15299. hardcode_libdir_flag_spec_ld_GCJ \
  15300. hardcode_libdir_separator_GCJ \
  15301. hardcode_automatic_GCJ \
  15302. module_cmds_GCJ \
  15303. module_expsym_cmds_GCJ \
  15304. lt_cv_prog_compiler_c_o_GCJ \
  15305. exclude_expsyms_GCJ \
  15306. include_expsyms_GCJ; do
  15307. case $var in
  15308. old_archive_cmds_GCJ | \
  15309. old_archive_from_new_cmds_GCJ | \
  15310. archive_cmds_GCJ | \
  15311. archive_expsym_cmds_GCJ | \
  15312. module_cmds_GCJ | \
  15313. module_expsym_cmds_GCJ | \
  15314. old_archive_from_expsyms_cmds_GCJ | \
  15315. export_symbols_cmds_GCJ | \
  15316. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15317. postinstall_cmds | postuninstall_cmds | \
  15318. old_postinstall_cmds | old_postuninstall_cmds | \
  15319. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15320. # Double-quote double-evaled strings.
  15321. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15322. ;;
  15323. *)
  15324. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15325. ;;
  15326. esac
  15327. done
  15328. case $lt_echo in
  15329. *'\$0 --fallback-echo"')
  15330. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15331. ;;
  15332. esac
  15333. cfgfile="$ofile"
  15334. cat <<__EOF__ >> "$cfgfile"
  15335. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15336. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15337. # Shell to use when invoking shell scripts.
  15338. SHELL=$lt_SHELL
  15339. # Whether or not to build shared libraries.
  15340. build_libtool_libs=$enable_shared
  15341. # Whether or not to build static libraries.
  15342. build_old_libs=$enable_static
  15343. # Whether or not to add -lc for building shared libraries.
  15344. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  15345. # Whether or not to disallow shared libs when runtime libs are static
  15346. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  15347. # Whether or not to optimize for fast installation.
  15348. fast_install=$enable_fast_install
  15349. # The host system.
  15350. host_alias=$host_alias
  15351. host=$host
  15352. host_os=$host_os
  15353. # The build system.
  15354. build_alias=$build_alias
  15355. build=$build
  15356. build_os=$build_os
  15357. # An echo program that does not interpret backslashes.
  15358. echo=$lt_echo
  15359. # The archiver.
  15360. AR=$lt_AR
  15361. AR_FLAGS=$lt_AR_FLAGS
  15362. # A C compiler.
  15363. LTCC=$lt_LTCC
  15364. # LTCC compiler flags.
  15365. LTCFLAGS=$lt_LTCFLAGS
  15366. # A language-specific compiler.
  15367. CC=$lt_compiler_GCJ
  15368. # Is the compiler the GNU C compiler?
  15369. with_gcc=$GCC_GCJ
  15370. # An ERE matcher.
  15371. EGREP=$lt_EGREP
  15372. # The linker used to build libraries.
  15373. LD=$lt_LD_GCJ
  15374. # Whether we need hard or soft links.
  15375. LN_S=$lt_LN_S
  15376. # A BSD-compatible nm program.
  15377. NM=$lt_NM
  15378. # A symbol stripping program
  15379. STRIP=$lt_STRIP
  15380. # Used to examine libraries when file_magic_cmd begins "file"
  15381. MAGIC_CMD=$MAGIC_CMD
  15382. # Used on cygwin: DLL creation program.
  15383. DLLTOOL="$DLLTOOL"
  15384. # Used on cygwin: object dumper.
  15385. OBJDUMP="$OBJDUMP"
  15386. # Used on cygwin: assembler.
  15387. AS="$AS"
  15388. # The name of the directory that contains temporary libtool files.
  15389. objdir=$objdir
  15390. # How to create reloadable object files.
  15391. reload_flag=$lt_reload_flag
  15392. reload_cmds=$lt_reload_cmds
  15393. # How to pass a linker flag through the compiler.
  15394. wl=$lt_lt_prog_compiler_wl_GCJ
  15395. # Object file suffix (normally "o").
  15396. objext="$ac_objext"
  15397. # Old archive suffix (normally "a").
  15398. libext="$libext"
  15399. # Shared library suffix (normally ".so").
  15400. shrext_cmds='$shrext_cmds'
  15401. # Executable file suffix (normally "").
  15402. exeext="$exeext"
  15403. # Additional compiler flags for building library objects.
  15404. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  15405. pic_mode=$pic_mode
  15406. # What is the maximum length of a command?
  15407. max_cmd_len=$lt_cv_sys_max_cmd_len
  15408. # Does compiler simultaneously support -c and -o options?
  15409. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  15410. # Must we lock files when doing compilation?
  15411. need_locks=$lt_need_locks
  15412. # Do we need the lib prefix for modules?
  15413. need_lib_prefix=$need_lib_prefix
  15414. # Do we need a version for libraries?
  15415. need_version=$need_version
  15416. # Whether dlopen is supported.
  15417. dlopen_support=$enable_dlopen
  15418. # Whether dlopen of programs is supported.
  15419. dlopen_self=$enable_dlopen_self
  15420. # Whether dlopen of statically linked programs is supported.
  15421. dlopen_self_static=$enable_dlopen_self_static
  15422. # Compiler flag to prevent dynamic linking.
  15423. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  15424. # Compiler flag to turn off builtin functions.
  15425. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  15426. # Compiler flag to allow reflexive dlopens.
  15427. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  15428. # Compiler flag to generate shared objects directly from archives.
  15429. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  15430. # Compiler flag to generate thread-safe objects.
  15431. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  15432. # Library versioning type.
  15433. version_type=$version_type
  15434. # Format of library name prefix.
  15435. libname_spec=$lt_libname_spec
  15436. # List of archive names. First name is the real one, the rest are links.
  15437. # The last name is the one that the linker finds with -lNAME.
  15438. library_names_spec=$lt_library_names_spec
  15439. # The coded name of the library, if different from the real name.
  15440. soname_spec=$lt_soname_spec
  15441. # Commands used to build and install an old-style archive.
  15442. RANLIB=$lt_RANLIB
  15443. old_archive_cmds=$lt_old_archive_cmds_GCJ
  15444. old_postinstall_cmds=$lt_old_postinstall_cmds
  15445. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15446. # Create an old-style archive from a shared archive.
  15447. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  15448. # Create a temporary old-style archive to link instead of a shared archive.
  15449. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  15450. # Commands used to build and install a shared archive.
  15451. archive_cmds=$lt_archive_cmds_GCJ
  15452. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  15453. postinstall_cmds=$lt_postinstall_cmds
  15454. postuninstall_cmds=$lt_postuninstall_cmds
  15455. # Commands used to build a loadable module (assumed same as above if empty)
  15456. module_cmds=$lt_module_cmds_GCJ
  15457. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  15458. # Commands to strip libraries.
  15459. old_striplib=$lt_old_striplib
  15460. striplib=$lt_striplib
  15461. # Dependencies to place before the objects being linked to create a
  15462. # shared library.
  15463. predep_objects=$lt_predep_objects_GCJ
  15464. # Dependencies to place after the objects being linked to create a
  15465. # shared library.
  15466. postdep_objects=$lt_postdep_objects_GCJ
  15467. # Dependencies to place before the objects being linked to create a
  15468. # shared library.
  15469. predeps=$lt_predeps_GCJ
  15470. # Dependencies to place after the objects being linked to create a
  15471. # shared library.
  15472. postdeps=$lt_postdeps_GCJ
  15473. # The library search path used internally by the compiler when linking
  15474. # a shared library.
  15475. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  15476. # Method to check whether dependent libraries are shared objects.
  15477. deplibs_check_method=$lt_deplibs_check_method
  15478. # Command to use when deplibs_check_method == file_magic.
  15479. file_magic_cmd=$lt_file_magic_cmd
  15480. # Flag that allows shared libraries with undefined symbols to be built.
  15481. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  15482. # Flag that forces no undefined symbols.
  15483. no_undefined_flag=$lt_no_undefined_flag_GCJ
  15484. # Commands used to finish a libtool library installation in a directory.
  15485. finish_cmds=$lt_finish_cmds
  15486. # Same as above, but a single script fragment to be evaled but not shown.
  15487. finish_eval=$lt_finish_eval
  15488. # Take the output of nm and produce a listing of raw symbols and C names.
  15489. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15490. # Transform the output of nm in a proper C declaration
  15491. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15492. # Transform the output of nm in a C name address pair
  15493. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15494. # This is the shared library runtime path variable.
  15495. runpath_var=$runpath_var
  15496. # This is the shared library path variable.
  15497. shlibpath_var=$shlibpath_var
  15498. # Is shlibpath searched before the hard-coded library search path?
  15499. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15500. # How to hardcode a shared library path into an executable.
  15501. hardcode_action=$hardcode_action_GCJ
  15502. # Whether we should hardcode library paths into libraries.
  15503. hardcode_into_libs=$hardcode_into_libs
  15504. # Flag to hardcode \$libdir into a binary during linking.
  15505. # This must work even if \$libdir does not exist.
  15506. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  15507. # If ld is used when linking, flag to hardcode \$libdir into
  15508. # a binary during linking. This must work even if \$libdir does
  15509. # not exist.
  15510. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  15511. # Whether we need a single -rpath flag with a separated argument.
  15512. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  15513. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15514. # resulting binary.
  15515. hardcode_direct=$hardcode_direct_GCJ
  15516. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15517. # resulting binary.
  15518. hardcode_minus_L=$hardcode_minus_L_GCJ
  15519. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15520. # the resulting binary.
  15521. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  15522. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15523. # and all subsequent libraries and executables linked against it.
  15524. hardcode_automatic=$hardcode_automatic_GCJ
  15525. # Variables whose values should be saved in libtool wrapper scripts and
  15526. # restored at relink time.
  15527. variables_saved_for_relink="$variables_saved_for_relink"
  15528. # Whether libtool must link a program against all its dependency libraries.
  15529. link_all_deplibs=$link_all_deplibs_GCJ
  15530. # Compile-time system search path for libraries
  15531. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15532. # Run-time system search path for libraries
  15533. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15534. # Fix the shell variable \$srcfile for the compiler.
  15535. fix_srcfile_path="$fix_srcfile_path_GCJ"
  15536. # Set to yes if exported symbols are required.
  15537. always_export_symbols=$always_export_symbols_GCJ
  15538. # The commands to list exported symbols.
  15539. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  15540. # The commands to extract the exported symbol list from a shared archive.
  15541. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15542. # Symbols that should not be listed in the preloaded symbols.
  15543. exclude_expsyms=$lt_exclude_expsyms_GCJ
  15544. # Symbols that must always be exported.
  15545. include_expsyms=$lt_include_expsyms_GCJ
  15546. # ### END LIBTOOL TAG CONFIG: $tagname
  15547. __EOF__
  15548. else
  15549. # If there is no Makefile yet, we rely on a make rule to execute
  15550. # `config.status --recheck' to rerun these tests and create the
  15551. # libtool script then.
  15552. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15553. if test -f "$ltmain_in"; then
  15554. test -f Makefile && make "$ltmain"
  15555. fi
  15556. fi
  15557. ac_ext=c
  15558. ac_cpp='$CPP $CPPFLAGS'
  15559. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15560. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15561. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15562. CC="$lt_save_CC"
  15563. else
  15564. tagname=""
  15565. fi
  15566. ;;
  15567. RC)
  15568. # Source file extension for RC test sources.
  15569. ac_ext=rc
  15570. # Object file extension for compiled RC test sources.
  15571. objext=o
  15572. objext_RC=$objext
  15573. # Code to be used in simple compile tests
  15574. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  15575. # Code to be used in simple link tests
  15576. lt_simple_link_test_code="$lt_simple_compile_test_code"
  15577. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15578. # If no C compiler was specified, use CC.
  15579. LTCC=${LTCC-"$CC"}
  15580. # If no C compiler flags were specified, use CFLAGS.
  15581. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15582. # Allow CC to be a program name with arguments.
  15583. compiler=$CC
  15584. # save warnings/boilerplate of simple test code
  15585. ac_outfile=conftest.$ac_objext
  15586. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  15587. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15588. _lt_compiler_boilerplate=`cat conftest.err`
  15589. $rm conftest*
  15590. ac_outfile=conftest.$ac_objext
  15591. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  15592. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15593. _lt_linker_boilerplate=`cat conftest.err`
  15594. $rm conftest*
  15595. # Allow CC to be a program name with arguments.
  15596. lt_save_CC="$CC"
  15597. CC=${RC-"windres"}
  15598. compiler=$CC
  15599. compiler_RC=$CC
  15600. for cc_temp in $compiler""; do
  15601. case $cc_temp in
  15602. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15603. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15604. \-*) ;;
  15605. *) break;;
  15606. esac
  15607. done
  15608. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15609. lt_cv_prog_compiler_c_o_RC=yes
  15610. # The else clause should only fire when bootstrapping the
  15611. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15612. # with your package, and you will get complaints that there are
  15613. # no rules to generate ltmain.sh.
  15614. if test -f "$ltmain"; then
  15615. # See if we are running on zsh, and set the options which allow our commands through
  15616. # without removal of \ escapes.
  15617. if test -n "${ZSH_VERSION+set}" ; then
  15618. setopt NO_GLOB_SUBST
  15619. fi
  15620. # Now quote all the things that may contain metacharacters while being
  15621. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15622. # variables and quote the copies for generation of the libtool script.
  15623. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15624. SED SHELL STRIP \
  15625. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15626. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15627. deplibs_check_method reload_flag reload_cmds need_locks \
  15628. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15629. lt_cv_sys_global_symbol_to_c_name_address \
  15630. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15631. old_postinstall_cmds old_postuninstall_cmds \
  15632. compiler_RC \
  15633. CC_RC \
  15634. LD_RC \
  15635. lt_prog_compiler_wl_RC \
  15636. lt_prog_compiler_pic_RC \
  15637. lt_prog_compiler_static_RC \
  15638. lt_prog_compiler_no_builtin_flag_RC \
  15639. export_dynamic_flag_spec_RC \
  15640. thread_safe_flag_spec_RC \
  15641. whole_archive_flag_spec_RC \
  15642. enable_shared_with_static_runtimes_RC \
  15643. old_archive_cmds_RC \
  15644. old_archive_from_new_cmds_RC \
  15645. predep_objects_RC \
  15646. postdep_objects_RC \
  15647. predeps_RC \
  15648. postdeps_RC \
  15649. compiler_lib_search_path_RC \
  15650. archive_cmds_RC \
  15651. archive_expsym_cmds_RC \
  15652. postinstall_cmds_RC \
  15653. postuninstall_cmds_RC \
  15654. old_archive_from_expsyms_cmds_RC \
  15655. allow_undefined_flag_RC \
  15656. no_undefined_flag_RC \
  15657. export_symbols_cmds_RC \
  15658. hardcode_libdir_flag_spec_RC \
  15659. hardcode_libdir_flag_spec_ld_RC \
  15660. hardcode_libdir_separator_RC \
  15661. hardcode_automatic_RC \
  15662. module_cmds_RC \
  15663. module_expsym_cmds_RC \
  15664. lt_cv_prog_compiler_c_o_RC \
  15665. exclude_expsyms_RC \
  15666. include_expsyms_RC; do
  15667. case $var in
  15668. old_archive_cmds_RC | \
  15669. old_archive_from_new_cmds_RC | \
  15670. archive_cmds_RC | \
  15671. archive_expsym_cmds_RC | \
  15672. module_cmds_RC | \
  15673. module_expsym_cmds_RC | \
  15674. old_archive_from_expsyms_cmds_RC | \
  15675. export_symbols_cmds_RC | \
  15676. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15677. postinstall_cmds | postuninstall_cmds | \
  15678. old_postinstall_cmds | old_postuninstall_cmds | \
  15679. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15680. # Double-quote double-evaled strings.
  15681. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15682. ;;
  15683. *)
  15684. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15685. ;;
  15686. esac
  15687. done
  15688. case $lt_echo in
  15689. *'\$0 --fallback-echo"')
  15690. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15691. ;;
  15692. esac
  15693. cfgfile="$ofile"
  15694. cat <<__EOF__ >> "$cfgfile"
  15695. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15696. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15697. # Shell to use when invoking shell scripts.
  15698. SHELL=$lt_SHELL
  15699. # Whether or not to build shared libraries.
  15700. build_libtool_libs=$enable_shared
  15701. # Whether or not to build static libraries.
  15702. build_old_libs=$enable_static
  15703. # Whether or not to add -lc for building shared libraries.
  15704. build_libtool_need_lc=$archive_cmds_need_lc_RC
  15705. # Whether or not to disallow shared libs when runtime libs are static
  15706. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  15707. # Whether or not to optimize for fast installation.
  15708. fast_install=$enable_fast_install
  15709. # The host system.
  15710. host_alias=$host_alias
  15711. host=$host
  15712. host_os=$host_os
  15713. # The build system.
  15714. build_alias=$build_alias
  15715. build=$build
  15716. build_os=$build_os
  15717. # An echo program that does not interpret backslashes.
  15718. echo=$lt_echo
  15719. # The archiver.
  15720. AR=$lt_AR
  15721. AR_FLAGS=$lt_AR_FLAGS
  15722. # A C compiler.
  15723. LTCC=$lt_LTCC
  15724. # LTCC compiler flags.
  15725. LTCFLAGS=$lt_LTCFLAGS
  15726. # A language-specific compiler.
  15727. CC=$lt_compiler_RC
  15728. # Is the compiler the GNU C compiler?
  15729. with_gcc=$GCC_RC
  15730. # An ERE matcher.
  15731. EGREP=$lt_EGREP
  15732. # The linker used to build libraries.
  15733. LD=$lt_LD_RC
  15734. # Whether we need hard or soft links.
  15735. LN_S=$lt_LN_S
  15736. # A BSD-compatible nm program.
  15737. NM=$lt_NM
  15738. # A symbol stripping program
  15739. STRIP=$lt_STRIP
  15740. # Used to examine libraries when file_magic_cmd begins "file"
  15741. MAGIC_CMD=$MAGIC_CMD
  15742. # Used on cygwin: DLL creation program.
  15743. DLLTOOL="$DLLTOOL"
  15744. # Used on cygwin: object dumper.
  15745. OBJDUMP="$OBJDUMP"
  15746. # Used on cygwin: assembler.
  15747. AS="$AS"
  15748. # The name of the directory that contains temporary libtool files.
  15749. objdir=$objdir
  15750. # How to create reloadable object files.
  15751. reload_flag=$lt_reload_flag
  15752. reload_cmds=$lt_reload_cmds
  15753. # How to pass a linker flag through the compiler.
  15754. wl=$lt_lt_prog_compiler_wl_RC
  15755. # Object file suffix (normally "o").
  15756. objext="$ac_objext"
  15757. # Old archive suffix (normally "a").
  15758. libext="$libext"
  15759. # Shared library suffix (normally ".so").
  15760. shrext_cmds='$shrext_cmds'
  15761. # Executable file suffix (normally "").
  15762. exeext="$exeext"
  15763. # Additional compiler flags for building library objects.
  15764. pic_flag=$lt_lt_prog_compiler_pic_RC
  15765. pic_mode=$pic_mode
  15766. # What is the maximum length of a command?
  15767. max_cmd_len=$lt_cv_sys_max_cmd_len
  15768. # Does compiler simultaneously support -c and -o options?
  15769. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  15770. # Must we lock files when doing compilation?
  15771. need_locks=$lt_need_locks
  15772. # Do we need the lib prefix for modules?
  15773. need_lib_prefix=$need_lib_prefix
  15774. # Do we need a version for libraries?
  15775. need_version=$need_version
  15776. # Whether dlopen is supported.
  15777. dlopen_support=$enable_dlopen
  15778. # Whether dlopen of programs is supported.
  15779. dlopen_self=$enable_dlopen_self
  15780. # Whether dlopen of statically linked programs is supported.
  15781. dlopen_self_static=$enable_dlopen_self_static
  15782. # Compiler flag to prevent dynamic linking.
  15783. link_static_flag=$lt_lt_prog_compiler_static_RC
  15784. # Compiler flag to turn off builtin functions.
  15785. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  15786. # Compiler flag to allow reflexive dlopens.
  15787. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  15788. # Compiler flag to generate shared objects directly from archives.
  15789. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  15790. # Compiler flag to generate thread-safe objects.
  15791. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  15792. # Library versioning type.
  15793. version_type=$version_type
  15794. # Format of library name prefix.
  15795. libname_spec=$lt_libname_spec
  15796. # List of archive names. First name is the real one, the rest are links.
  15797. # The last name is the one that the linker finds with -lNAME.
  15798. library_names_spec=$lt_library_names_spec
  15799. # The coded name of the library, if different from the real name.
  15800. soname_spec=$lt_soname_spec
  15801. # Commands used to build and install an old-style archive.
  15802. RANLIB=$lt_RANLIB
  15803. old_archive_cmds=$lt_old_archive_cmds_RC
  15804. old_postinstall_cmds=$lt_old_postinstall_cmds
  15805. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15806. # Create an old-style archive from a shared archive.
  15807. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  15808. # Create a temporary old-style archive to link instead of a shared archive.
  15809. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  15810. # Commands used to build and install a shared archive.
  15811. archive_cmds=$lt_archive_cmds_RC
  15812. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  15813. postinstall_cmds=$lt_postinstall_cmds
  15814. postuninstall_cmds=$lt_postuninstall_cmds
  15815. # Commands used to build a loadable module (assumed same as above if empty)
  15816. module_cmds=$lt_module_cmds_RC
  15817. module_expsym_cmds=$lt_module_expsym_cmds_RC
  15818. # Commands to strip libraries.
  15819. old_striplib=$lt_old_striplib
  15820. striplib=$lt_striplib
  15821. # Dependencies to place before the objects being linked to create a
  15822. # shared library.
  15823. predep_objects=$lt_predep_objects_RC
  15824. # Dependencies to place after the objects being linked to create a
  15825. # shared library.
  15826. postdep_objects=$lt_postdep_objects_RC
  15827. # Dependencies to place before the objects being linked to create a
  15828. # shared library.
  15829. predeps=$lt_predeps_RC
  15830. # Dependencies to place after the objects being linked to create a
  15831. # shared library.
  15832. postdeps=$lt_postdeps_RC
  15833. # The library search path used internally by the compiler when linking
  15834. # a shared library.
  15835. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  15836. # Method to check whether dependent libraries are shared objects.
  15837. deplibs_check_method=$lt_deplibs_check_method
  15838. # Command to use when deplibs_check_method == file_magic.
  15839. file_magic_cmd=$lt_file_magic_cmd
  15840. # Flag that allows shared libraries with undefined symbols to be built.
  15841. allow_undefined_flag=$lt_allow_undefined_flag_RC
  15842. # Flag that forces no undefined symbols.
  15843. no_undefined_flag=$lt_no_undefined_flag_RC
  15844. # Commands used to finish a libtool library installation in a directory.
  15845. finish_cmds=$lt_finish_cmds
  15846. # Same as above, but a single script fragment to be evaled but not shown.
  15847. finish_eval=$lt_finish_eval
  15848. # Take the output of nm and produce a listing of raw symbols and C names.
  15849. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15850. # Transform the output of nm in a proper C declaration
  15851. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15852. # Transform the output of nm in a C name address pair
  15853. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15854. # This is the shared library runtime path variable.
  15855. runpath_var=$runpath_var
  15856. # This is the shared library path variable.
  15857. shlibpath_var=$shlibpath_var
  15858. # Is shlibpath searched before the hard-coded library search path?
  15859. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15860. # How to hardcode a shared library path into an executable.
  15861. hardcode_action=$hardcode_action_RC
  15862. # Whether we should hardcode library paths into libraries.
  15863. hardcode_into_libs=$hardcode_into_libs
  15864. # Flag to hardcode \$libdir into a binary during linking.
  15865. # This must work even if \$libdir does not exist.
  15866. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  15867. # If ld is used when linking, flag to hardcode \$libdir into
  15868. # a binary during linking. This must work even if \$libdir does
  15869. # not exist.
  15870. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  15871. # Whether we need a single -rpath flag with a separated argument.
  15872. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  15873. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15874. # resulting binary.
  15875. hardcode_direct=$hardcode_direct_RC
  15876. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15877. # resulting binary.
  15878. hardcode_minus_L=$hardcode_minus_L_RC
  15879. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15880. # the resulting binary.
  15881. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  15882. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15883. # and all subsequent libraries and executables linked against it.
  15884. hardcode_automatic=$hardcode_automatic_RC
  15885. # Variables whose values should be saved in libtool wrapper scripts and
  15886. # restored at relink time.
  15887. variables_saved_for_relink="$variables_saved_for_relink"
  15888. # Whether libtool must link a program against all its dependency libraries.
  15889. link_all_deplibs=$link_all_deplibs_RC
  15890. # Compile-time system search path for libraries
  15891. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15892. # Run-time system search path for libraries
  15893. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15894. # Fix the shell variable \$srcfile for the compiler.
  15895. fix_srcfile_path="$fix_srcfile_path_RC"
  15896. # Set to yes if exported symbols are required.
  15897. always_export_symbols=$always_export_symbols_RC
  15898. # The commands to list exported symbols.
  15899. export_symbols_cmds=$lt_export_symbols_cmds_RC
  15900. # The commands to extract the exported symbol list from a shared archive.
  15901. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15902. # Symbols that should not be listed in the preloaded symbols.
  15903. exclude_expsyms=$lt_exclude_expsyms_RC
  15904. # Symbols that must always be exported.
  15905. include_expsyms=$lt_include_expsyms_RC
  15906. # ### END LIBTOOL TAG CONFIG: $tagname
  15907. __EOF__
  15908. else
  15909. # If there is no Makefile yet, we rely on a make rule to execute
  15910. # `config.status --recheck' to rerun these tests and create the
  15911. # libtool script then.
  15912. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15913. if test -f "$ltmain_in"; then
  15914. test -f Makefile && make "$ltmain"
  15915. fi
  15916. fi
  15917. ac_ext=c
  15918. ac_cpp='$CPP $CPPFLAGS'
  15919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15922. CC="$lt_save_CC"
  15923. ;;
  15924. *)
  15925. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  15926. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  15927. { (exit 1); exit 1; }; }
  15928. ;;
  15929. esac
  15930. # Append the new tag name to the list of available tags.
  15931. if test -n "$tagname" ; then
  15932. available_tags="$available_tags $tagname"
  15933. fi
  15934. fi
  15935. done
  15936. IFS="$lt_save_ifs"
  15937. # Now substitute the updated list of available tags.
  15938. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  15939. mv "${ofile}T" "$ofile"
  15940. chmod +x "$ofile"
  15941. else
  15942. rm -f "${ofile}T"
  15943. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  15944. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  15945. { (exit 1); exit 1; }; }
  15946. fi
  15947. fi
  15948. # This can be used to rebuild libtool when needed
  15949. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  15950. # Always use our own libtool.
  15951. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  15952. # Prevent multiple expansion
  15953. MAJOR_VERSION=3
  15954. MINOR_VERSION=0
  15955. MICRO_VERSION=beta11
  15956. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  15957. TCPREPLAY_RELEASE=1
  15958. cat >>confdefs.h <<\_ACEOF
  15959. #define PACKAGE tcpreplay
  15960. _ACEOF
  15961. cat >>confdefs.h <<_ACEOF
  15962. #define VERSION "$TCPREPLAY_VERSION"
  15963. _ACEOF
  15964. CFLAGS="$CFLAGS -Wall -O2 -funroll-loops -std=gnu99" # -std=c99 -Wno-variadic-macros"
  15965. echo "$as_me:$LINENO: checking target system type" >&5
  15966. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  15967. if test "${ac_cv_target+set}" = set; then
  15968. echo $ECHO_N "(cached) $ECHO_C" >&6
  15969. else
  15970. ac_cv_target_alias=$target_alias
  15971. test "x$ac_cv_target_alias" = "x" &&
  15972. ac_cv_target_alias=$ac_cv_host_alias
  15973. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  15974. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  15975. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  15976. { (exit 1); exit 1; }; }
  15977. fi
  15978. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  15979. echo "${ECHO_T}$ac_cv_target" >&6
  15980. target=$ac_cv_target
  15981. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  15982. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  15983. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  15984. # The aliases save the names the user supplied, while $host etc.
  15985. # will get canonicalized.
  15986. test -n "$target_alias" &&
  15987. test "$program_prefix$program_suffix$program_transform_name" = \
  15988. NONENONEs,x,x, &&
  15989. program_prefix=${target_alias}-
  15990. am__api_version="1.9"
  15991. # Find a good install program. We prefer a C program (faster),
  15992. # so one script is as good as another. But avoid the broken or
  15993. # incompatible versions:
  15994. # SysV /etc/install, /usr/sbin/install
  15995. # SunOS /usr/etc/install
  15996. # IRIX /sbin/install
  15997. # AIX /bin/install
  15998. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15999. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  16000. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  16001. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  16002. # OS/2's system install, which has a completely different semantic
  16003. # ./install, which can be erroneously created by make from ./install.sh.
  16004. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  16005. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  16006. if test -z "$INSTALL"; then
  16007. if test "${ac_cv_path_install+set}" = set; then
  16008. echo $ECHO_N "(cached) $ECHO_C" >&6
  16009. else
  16010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16011. for as_dir in $PATH
  16012. do
  16013. IFS=$as_save_IFS
  16014. test -z "$as_dir" && as_dir=.
  16015. # Account for people who put trailing slashes in PATH elements.
  16016. case $as_dir/ in
  16017. ./ | .// | /cC/* | \
  16018. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  16019. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  16020. /usr/ucb/* ) ;;
  16021. *)
  16022. # OSF1 and SCO ODT 3.0 have their own names for install.
  16023. # Don't use installbsd from OSF since it installs stuff as root
  16024. # by default.
  16025. for ac_prog in ginstall scoinst install; do
  16026. for ac_exec_ext in '' $ac_executable_extensions; do
  16027. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  16028. if test $ac_prog = install &&
  16029. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16030. # AIX install. It has an incompatible calling convention.
  16031. :
  16032. elif test $ac_prog = install &&
  16033. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16034. # program-specific install script used by HP pwplus--don't use.
  16035. :
  16036. else
  16037. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  16038. break 3
  16039. fi
  16040. fi
  16041. done
  16042. done
  16043. ;;
  16044. esac
  16045. done
  16046. fi
  16047. if test "${ac_cv_path_install+set}" = set; then
  16048. INSTALL=$ac_cv_path_install
  16049. else
  16050. # As a last resort, use the slow shell script. We don't cache a
  16051. # path for INSTALL within a source directory, because that will
  16052. # break other packages using the cache if that directory is
  16053. # removed, or if the path is relative.
  16054. INSTALL=$ac_install_sh
  16055. fi
  16056. fi
  16057. echo "$as_me:$LINENO: result: $INSTALL" >&5
  16058. echo "${ECHO_T}$INSTALL" >&6
  16059. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  16060. # It thinks the first close brace ends the variable substitution.
  16061. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  16062. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  16063. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  16064. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  16065. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  16066. # Just in case
  16067. sleep 1
  16068. echo timestamp > conftest.file
  16069. # Do `set' in a subshell so we don't clobber the current shell's
  16070. # arguments. Must try -L first in case configure is actually a
  16071. # symlink; some systems play weird games with the mod time of symlinks
  16072. # (eg FreeBSD returns the mod time of the symlink's containing
  16073. # directory).
  16074. if (
  16075. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  16076. if test "$*" = "X"; then
  16077. # -L didn't work.
  16078. set X `ls -t $srcdir/configure conftest.file`
  16079. fi
  16080. rm -f conftest.file
  16081. if test "$*" != "X $srcdir/configure conftest.file" \
  16082. && test "$*" != "X conftest.file $srcdir/configure"; then
  16083. # If neither matched, then we have a broken ls. This can happen
  16084. # if, for instance, CONFIG_SHELL is bash and it inherits a
  16085. # broken ls alias from the environment. This has actually
  16086. # happened. Such a system could not be considered "sane".
  16087. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  16088. alias in your environment" >&5
  16089. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  16090. alias in your environment" >&2;}
  16091. { (exit 1); exit 1; }; }
  16092. fi
  16093. test "$2" = conftest.file
  16094. )
  16095. then
  16096. # Ok.
  16097. :
  16098. else
  16099. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  16100. Check your system clock" >&5
  16101. echo "$as_me: error: newly created file is older than distributed files!
  16102. Check your system clock" >&2;}
  16103. { (exit 1); exit 1; }; }
  16104. fi
  16105. echo "$as_me:$LINENO: result: yes" >&5
  16106. echo "${ECHO_T}yes" >&6
  16107. test "$program_prefix" != NONE &&
  16108. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  16109. # Use a double $ so make ignores it.
  16110. test "$program_suffix" != NONE &&
  16111. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  16112. # Double any \ or $. echo might interpret backslashes.
  16113. # By default was `s,x,x', remove it if useless.
  16114. cat <<\_ACEOF >conftest.sed
  16115. s/[\\$]/&&/g;s/;s,x,x,$//
  16116. _ACEOF
  16117. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  16118. rm conftest.sed
  16119. # expand $ac_aux_dir to an absolute path
  16120. am_aux_dir=`cd $ac_aux_dir && pwd`
  16121. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  16122. # Use eval to expand $SHELL
  16123. if eval "$MISSING --run true"; then
  16124. am_missing_run="$MISSING --run "
  16125. else
  16126. am_missing_run=
  16127. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  16128. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  16129. fi
  16130. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  16131. # We used to keeping the `.' as first argument, in order to
  16132. # allow $(mkdir_p) to be used without argument. As in
  16133. # $(mkdir_p) $(somedir)
  16134. # where $(somedir) is conditionally defined. However this is wrong
  16135. # for two reasons:
  16136. # 1. if the package is installed by a user who cannot write `.'
  16137. # make install will fail,
  16138. # 2. the above comment should most certainly read
  16139. # $(mkdir_p) $(DESTDIR)$(somedir)
  16140. # so it does not work when $(somedir) is undefined and
  16141. # $(DESTDIR) is not.
  16142. # To support the latter case, we have to write
  16143. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  16144. # so the `.' trick is pointless.
  16145. mkdir_p='mkdir -p --'
  16146. else
  16147. # On NextStep and OpenStep, the `mkdir' command does not
  16148. # recognize any option. It will interpret all options as
  16149. # directories to create, and then abort because `.' already
  16150. # exists.
  16151. for d in ./-p ./--version;
  16152. do
  16153. test -d $d && rmdir $d
  16154. done
  16155. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  16156. if test -f "$ac_aux_dir/mkinstalldirs"; then
  16157. mkdir_p='$(mkinstalldirs)'
  16158. else
  16159. mkdir_p='$(install_sh) -d'
  16160. fi
  16161. fi
  16162. for ac_prog in gawk mawk nawk awk
  16163. do
  16164. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16165. set dummy $ac_prog; ac_word=$2
  16166. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16167. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16168. if test "${ac_cv_prog_AWK+set}" = set; then
  16169. echo $ECHO_N "(cached) $ECHO_C" >&6
  16170. else
  16171. if test -n "$AWK"; then
  16172. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  16173. else
  16174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16175. for as_dir in $PATH
  16176. do
  16177. IFS=$as_save_IFS
  16178. test -z "$as_dir" && as_dir=.
  16179. for ac_exec_ext in '' $ac_executable_extensions; do
  16180. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16181. ac_cv_prog_AWK="$ac_prog"
  16182. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16183. break 2
  16184. fi
  16185. done
  16186. done
  16187. fi
  16188. fi
  16189. AWK=$ac_cv_prog_AWK
  16190. if test -n "$AWK"; then
  16191. echo "$as_me:$LINENO: result: $AWK" >&5
  16192. echo "${ECHO_T}$AWK" >&6
  16193. else
  16194. echo "$as_me:$LINENO: result: no" >&5
  16195. echo "${ECHO_T}no" >&6
  16196. fi
  16197. test -n "$AWK" && break
  16198. done
  16199. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  16200. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  16201. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  16202. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  16203. echo $ECHO_N "(cached) $ECHO_C" >&6
  16204. else
  16205. cat >conftest.make <<\_ACEOF
  16206. all:
  16207. @echo 'ac_maketemp="$(MAKE)"'
  16208. _ACEOF
  16209. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  16210. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  16211. if test -n "$ac_maketemp"; then
  16212. eval ac_cv_prog_make_${ac_make}_set=yes
  16213. else
  16214. eval ac_cv_prog_make_${ac_make}_set=no
  16215. fi
  16216. rm -f conftest.make
  16217. fi
  16218. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  16219. echo "$as_me:$LINENO: result: yes" >&5
  16220. echo "${ECHO_T}yes" >&6
  16221. SET_MAKE=
  16222. else
  16223. echo "$as_me:$LINENO: result: no" >&5
  16224. echo "${ECHO_T}no" >&6
  16225. SET_MAKE="MAKE=${MAKE-make}"
  16226. fi
  16227. rm -rf .tst 2>/dev/null
  16228. mkdir .tst 2>/dev/null
  16229. if test -d .tst; then
  16230. am__leading_dot=.
  16231. else
  16232. am__leading_dot=_
  16233. fi
  16234. rmdir .tst 2>/dev/null
  16235. DEPDIR="${am__leading_dot}deps"
  16236. ac_config_commands="$ac_config_commands depfiles"
  16237. am_make=${MAKE-make}
  16238. cat > confinc << 'END'
  16239. am__doit:
  16240. @echo done
  16241. .PHONY: am__doit
  16242. END
  16243. # If we don't find an include directive, just comment out the code.
  16244. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  16245. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  16246. am__include="#"
  16247. am__quote=
  16248. _am_result=none
  16249. # First try GNU make style include.
  16250. echo "include confinc" > confmf
  16251. # We grep out `Entering directory' and `Leaving directory'
  16252. # messages which can occur if `w' ends up in MAKEFLAGS.
  16253. # In particular we don't look at `^make:' because GNU make might
  16254. # be invoked under some other name (usually "gmake"), in which
  16255. # case it prints its new name instead of `make'.
  16256. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  16257. am__include=include
  16258. am__quote=
  16259. _am_result=GNU
  16260. fi
  16261. # Now try BSD make style include.
  16262. if test "$am__include" = "#"; then
  16263. echo '.include "confinc"' > confmf
  16264. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  16265. am__include=.include
  16266. am__quote="\""
  16267. _am_result=BSD
  16268. fi
  16269. fi
  16270. echo "$as_me:$LINENO: result: $_am_result" >&5
  16271. echo "${ECHO_T}$_am_result" >&6
  16272. rm -f confinc confmf
  16273. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  16274. if test "${enable_dependency_tracking+set}" = set; then
  16275. enableval="$enable_dependency_tracking"
  16276. fi;
  16277. if test "x$enable_dependency_tracking" != xno; then
  16278. am_depcomp="$ac_aux_dir/depcomp"
  16279. AMDEPBACKSLASH='\'
  16280. fi
  16281. if test "x$enable_dependency_tracking" != xno; then
  16282. AMDEP_TRUE=
  16283. AMDEP_FALSE='#'
  16284. else
  16285. AMDEP_TRUE='#'
  16286. AMDEP_FALSE=
  16287. fi
  16288. # test to see if srcdir already configured
  16289. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  16290. test -f $srcdir/config.status; then
  16291. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  16292. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  16293. { (exit 1); exit 1; }; }
  16294. fi
  16295. # test whether we have cygpath
  16296. if test -z "$CYGPATH_W"; then
  16297. if (cygpath --version) >/dev/null 2>/dev/null; then
  16298. CYGPATH_W='cygpath -w'
  16299. else
  16300. CYGPATH_W=echo
  16301. fi
  16302. fi
  16303. # Define the identity of the package.
  16304. PACKAGE=tcpreplay
  16305. VERSION=$TCPREPLAY_VERSION
  16306. # Some tools Automake needs.
  16307. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  16308. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  16309. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  16310. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  16311. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  16312. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  16313. # Installed binaries are usually stripped using `strip' when the user
  16314. # run `make install-strip'. However `strip' might not be the right
  16315. # tool to use in cross-compilation environments, therefore Automake
  16316. # will honor the `STRIP' environment variable to overrule this program.
  16317. if test "$cross_compiling" != no; then
  16318. if test -n "$ac_tool_prefix"; then
  16319. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  16320. set dummy ${ac_tool_prefix}strip; ac_word=$2
  16321. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16322. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16323. if test "${ac_cv_prog_STRIP+set}" = set; then
  16324. echo $ECHO_N "(cached) $ECHO_C" >&6
  16325. else
  16326. if test -n "$STRIP"; then
  16327. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  16328. else
  16329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16330. for as_dir in $PATH
  16331. do
  16332. IFS=$as_save_IFS
  16333. test -z "$as_dir" && as_dir=.
  16334. for ac_exec_ext in '' $ac_executable_extensions; do
  16335. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16336. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  16337. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16338. break 2
  16339. fi
  16340. done
  16341. done
  16342. fi
  16343. fi
  16344. STRIP=$ac_cv_prog_STRIP
  16345. if test -n "$STRIP"; then
  16346. echo "$as_me:$LINENO: result: $STRIP" >&5
  16347. echo "${ECHO_T}$STRIP" >&6
  16348. else
  16349. echo "$as_me:$LINENO: result: no" >&5
  16350. echo "${ECHO_T}no" >&6
  16351. fi
  16352. fi
  16353. if test -z "$ac_cv_prog_STRIP"; then
  16354. ac_ct_STRIP=$STRIP
  16355. # Extract the first word of "strip", so it can be a program name with args.
  16356. set dummy strip; ac_word=$2
  16357. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16358. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16359. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  16360. echo $ECHO_N "(cached) $ECHO_C" >&6
  16361. else
  16362. if test -n "$ac_ct_STRIP"; then
  16363. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  16364. else
  16365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16366. for as_dir in $PATH
  16367. do
  16368. IFS=$as_save_IFS
  16369. test -z "$as_dir" && as_dir=.
  16370. for ac_exec_ext in '' $ac_executable_extensions; do
  16371. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16372. ac_cv_prog_ac_ct_STRIP="strip"
  16373. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16374. break 2
  16375. fi
  16376. done
  16377. done
  16378. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  16379. fi
  16380. fi
  16381. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  16382. if test -n "$ac_ct_STRIP"; then
  16383. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  16384. echo "${ECHO_T}$ac_ct_STRIP" >&6
  16385. else
  16386. echo "$as_me:$LINENO: result: no" >&5
  16387. echo "${ECHO_T}no" >&6
  16388. fi
  16389. STRIP=$ac_ct_STRIP
  16390. else
  16391. STRIP="$ac_cv_prog_STRIP"
  16392. fi
  16393. fi
  16394. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  16395. # We need awk for the "check" target. The system "awk" is bad on
  16396. # some platforms.
  16397. # Always define AMTAR for backward compatibility.
  16398. AMTAR=${AMTAR-"${am_missing_run}tar"}
  16399. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  16400. depcc="$CC" am_compiler_list=
  16401. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  16402. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  16403. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  16404. echo $ECHO_N "(cached) $ECHO_C" >&6
  16405. else
  16406. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16407. # We make a subdir and do the tests there. Otherwise we can end up
  16408. # making bogus files that we don't know about and never remove. For
  16409. # instance it was reported that on HP-UX the gcc test will end up
  16410. # making a dummy file named `D' -- because `-MD' means `put the output
  16411. # in D'.
  16412. mkdir conftest.dir
  16413. # Copy depcomp to subdir because otherwise we won't find it if we're
  16414. # using a relative directory.
  16415. cp "$am_depcomp" conftest.dir
  16416. cd conftest.dir
  16417. # We will build objects and dependencies in a subdirectory because
  16418. # it helps to detect inapplicable dependency modes. For instance
  16419. # both Tru64's cc and ICC support -MD to output dependencies as a
  16420. # side effect of compilation, but ICC will put the dependencies in
  16421. # the current directory while Tru64 will put them in the object
  16422. # directory.
  16423. mkdir sub
  16424. am_cv_CC_dependencies_compiler_type=none
  16425. if test "$am_compiler_list" = ""; then
  16426. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16427. fi
  16428. for depmode in $am_compiler_list; do
  16429. # Setup a source with many dependencies, because some compilers
  16430. # like to wrap large dependency lists on column 80 (with \), and
  16431. # we should not choose a depcomp mode which is confused by this.
  16432. #
  16433. # We need to recreate these files for each test, as the compiler may
  16434. # overwrite some of them when testing with obscure command lines.
  16435. # This happens at least with the AIX C compiler.
  16436. : > sub/conftest.c
  16437. for i in 1 2 3 4 5 6; do
  16438. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  16439. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  16440. # Solaris 8's {/usr,}/bin/sh.
  16441. touch sub/conftst$i.h
  16442. done
  16443. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16444. case $depmode in
  16445. nosideeffect)
  16446. # after this tag, mechanisms are not by side-effect, so they'll
  16447. # only be used when explicitly requested
  16448. if test "x$enable_dependency_tracking" = xyes; then
  16449. continue
  16450. else
  16451. break
  16452. fi
  16453. ;;
  16454. none) break ;;
  16455. esac
  16456. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16457. # mode. It turns out that the SunPro C++ compiler does not properly
  16458. # handle `-M -o', and we need to detect this.
  16459. if depmode=$depmode \
  16460. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  16461. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16462. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  16463. >/dev/null 2>conftest.err &&
  16464. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16465. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  16466. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16467. # icc doesn't choke on unknown options, it will just issue warnings
  16468. # or remarks (even with -Werror). So we grep stderr for any message
  16469. # that says an option was ignored or not supported.
  16470. # When given -MP, icc 7.0 and 7.1 complain thusly:
  16471. # icc: Command line warning: ignoring option '-M'; no argument required
  16472. # The diagnosis changed in icc 8.0:
  16473. # icc: Command line remark: option '-MP' not supported
  16474. if (grep 'ignoring option' conftest.err ||
  16475. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  16476. am_cv_CC_dependencies_compiler_type=$depmode
  16477. break
  16478. fi
  16479. fi
  16480. done
  16481. cd ..
  16482. rm -rf conftest.dir
  16483. else
  16484. am_cv_CC_dependencies_compiler_type=none
  16485. fi
  16486. fi
  16487. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  16488. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  16489. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  16490. if
  16491. test "x$enable_dependency_tracking" != xno \
  16492. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  16493. am__fastdepCC_TRUE=
  16494. am__fastdepCC_FALSE='#'
  16495. else
  16496. am__fastdepCC_TRUE='#'
  16497. am__fastdepCC_FALSE=
  16498. fi
  16499. depcc="$CXX" am_compiler_list=
  16500. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  16501. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  16502. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  16503. echo $ECHO_N "(cached) $ECHO_C" >&6
  16504. else
  16505. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16506. # We make a subdir and do the tests there. Otherwise we can end up
  16507. # making bogus files that we don't know about and never remove. For
  16508. # instance it was reported that on HP-UX the gcc test will end up
  16509. # making a dummy file named `D' -- because `-MD' means `put the output
  16510. # in D'.
  16511. mkdir conftest.dir
  16512. # Copy depcomp to subdir because otherwise we won't find it if we're
  16513. # using a relative directory.
  16514. cp "$am_depcomp" conftest.dir
  16515. cd conftest.dir
  16516. # We will build objects and dependencies in a subdirectory because
  16517. # it helps to detect inapplicable dependency modes. For instance
  16518. # both Tru64's cc and ICC support -MD to output dependencies as a
  16519. # side effect of compilation, but ICC will put the dependencies in
  16520. # the current directory while Tru64 will put them in the object
  16521. # directory.
  16522. mkdir sub
  16523. am_cv_CXX_dependencies_compiler_type=none
  16524. if test "$am_compiler_list" = ""; then
  16525. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16526. fi
  16527. for depmode in $am_compiler_list; do
  16528. # Setup a source with many dependencies, because some compilers
  16529. # like to wrap large dependency lists on column 80 (with \), and
  16530. # we should not choose a depcomp mode which is confused by this.
  16531. #
  16532. # We need to recreate these files for each test, as the compiler may
  16533. # overwrite some of them when testing with obscure command lines.
  16534. # This happens at least with the AIX C compiler.
  16535. : > sub/conftest.c
  16536. for i in 1 2 3 4 5 6; do
  16537. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  16538. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  16539. # Solaris 8's {/usr,}/bin/sh.
  16540. touch sub/conftst$i.h
  16541. done
  16542. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16543. case $depmode in
  16544. nosideeffect)
  16545. # after this tag, mechanisms are not by side-effect, so they'll
  16546. # only be used when explicitly requested
  16547. if test "x$enable_dependency_tracking" = xyes; then
  16548. continue
  16549. else
  16550. break
  16551. fi
  16552. ;;
  16553. none) break ;;
  16554. esac
  16555. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16556. # mode. It turns out that the SunPro C++ compiler does not properly
  16557. # handle `-M -o', and we need to detect this.
  16558. if depmode=$depmode \
  16559. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  16560. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16561. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  16562. >/dev/null 2>conftest.err &&
  16563. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16564. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  16565. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16566. # icc doesn't choke on unknown options, it will just issue warnings
  16567. # or remarks (even with -Werror). So we grep stderr for any message
  16568. # that says an option was ignored or not supported.
  16569. # When given -MP, icc 7.0 and 7.1 complain thusly:
  16570. # icc: Command line warning: ignoring option '-M'; no argument required
  16571. # The diagnosis changed in icc 8.0:
  16572. # icc: Command line remark: option '-MP' not supported
  16573. if (grep 'ignoring option' conftest.err ||
  16574. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  16575. am_cv_CXX_dependencies_compiler_type=$depmode
  16576. break
  16577. fi
  16578. fi
  16579. done
  16580. cd ..
  16581. rm -rf conftest.dir
  16582. else
  16583. am_cv_CXX_dependencies_compiler_type=none
  16584. fi
  16585. fi
  16586. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  16587. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  16588. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  16589. if
  16590. test "x$enable_dependency_tracking" != xno \
  16591. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  16592. am__fastdepCXX_TRUE=
  16593. am__fastdepCXX_FALSE='#'
  16594. else
  16595. am__fastdepCXX_TRUE='#'
  16596. am__fastdepCXX_FALSE=
  16597. fi
  16598. # Find a good install program. We prefer a C program (faster),
  16599. # so one script is as good as another. But avoid the broken or
  16600. # incompatible versions:
  16601. # SysV /etc/install, /usr/sbin/install
  16602. # SunOS /usr/etc/install
  16603. # IRIX /sbin/install
  16604. # AIX /bin/install
  16605. # AmigaOS /C/install, which installs bootblocks on floppy discs
  16606. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  16607. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  16608. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  16609. # OS/2's system install, which has a completely different semantic
  16610. # ./install, which can be erroneously created by make from ./install.sh.
  16611. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  16612. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  16613. if test -z "$INSTALL"; then
  16614. if test "${ac_cv_path_install+set}" = set; then
  16615. echo $ECHO_N "(cached) $ECHO_C" >&6
  16616. else
  16617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16618. for as_dir in $PATH
  16619. do
  16620. IFS=$as_save_IFS
  16621. test -z "$as_dir" && as_dir=.
  16622. # Account for people who put trailing slashes in PATH elements.
  16623. case $as_dir/ in
  16624. ./ | .// | /cC/* | \
  16625. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  16626. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  16627. /usr/ucb/* ) ;;
  16628. *)
  16629. # OSF1 and SCO ODT 3.0 have their own names for install.
  16630. # Don't use installbsd from OSF since it installs stuff as root
  16631. # by default.
  16632. for ac_prog in ginstall scoinst install; do
  16633. for ac_exec_ext in '' $ac_executable_extensions; do
  16634. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  16635. if test $ac_prog = install &&
  16636. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16637. # AIX install. It has an incompatible calling convention.
  16638. :
  16639. elif test $ac_prog = install &&
  16640. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16641. # program-specific install script used by HP pwplus--don't use.
  16642. :
  16643. else
  16644. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  16645. break 3
  16646. fi
  16647. fi
  16648. done
  16649. done
  16650. ;;
  16651. esac
  16652. done
  16653. fi
  16654. if test "${ac_cv_path_install+set}" = set; then
  16655. INSTALL=$ac_cv_path_install
  16656. else
  16657. # As a last resort, use the slow shell script. We don't cache a
  16658. # path for INSTALL within a source directory, because that will
  16659. # break other packages using the cache if that directory is
  16660. # removed, or if the path is relative.
  16661. INSTALL=$ac_install_sh
  16662. fi
  16663. fi
  16664. echo "$as_me:$LINENO: result: $INSTALL" >&5
  16665. echo "${ECHO_T}$INSTALL" >&6
  16666. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  16667. # It thinks the first close brace ends the variable substitution.
  16668. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  16669. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  16670. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  16671. ac_ext=c
  16672. ac_cpp='$CPP $CPPFLAGS'
  16673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16676. if test -n "$ac_tool_prefix"; then
  16677. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  16678. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  16679. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16680. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16681. if test "${ac_cv_prog_CC+set}" = set; then
  16682. echo $ECHO_N "(cached) $ECHO_C" >&6
  16683. else
  16684. if test -n "$CC"; then
  16685. ac_cv_prog_CC="$CC" # Let the user override the test.
  16686. else
  16687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16688. for as_dir in $PATH
  16689. do
  16690. IFS=$as_save_IFS
  16691. test -z "$as_dir" && as_dir=.
  16692. for ac_exec_ext in '' $ac_executable_extensions; do
  16693. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16694. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  16695. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16696. break 2
  16697. fi
  16698. done
  16699. done
  16700. fi
  16701. fi
  16702. CC=$ac_cv_prog_CC
  16703. if test -n "$CC"; then
  16704. echo "$as_me:$LINENO: result: $CC" >&5
  16705. echo "${ECHO_T}$CC" >&6
  16706. else
  16707. echo "$as_me:$LINENO: result: no" >&5
  16708. echo "${ECHO_T}no" >&6
  16709. fi
  16710. fi
  16711. if test -z "$ac_cv_prog_CC"; then
  16712. ac_ct_CC=$CC
  16713. # Extract the first word of "gcc", so it can be a program name with args.
  16714. set dummy gcc; ac_word=$2
  16715. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16716. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16717. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16718. echo $ECHO_N "(cached) $ECHO_C" >&6
  16719. else
  16720. if test -n "$ac_ct_CC"; then
  16721. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16722. else
  16723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16724. for as_dir in $PATH
  16725. do
  16726. IFS=$as_save_IFS
  16727. test -z "$as_dir" && as_dir=.
  16728. for ac_exec_ext in '' $ac_executable_extensions; do
  16729. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16730. ac_cv_prog_ac_ct_CC="gcc"
  16731. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16732. break 2
  16733. fi
  16734. done
  16735. done
  16736. fi
  16737. fi
  16738. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16739. if test -n "$ac_ct_CC"; then
  16740. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16741. echo "${ECHO_T}$ac_ct_CC" >&6
  16742. else
  16743. echo "$as_me:$LINENO: result: no" >&5
  16744. echo "${ECHO_T}no" >&6
  16745. fi
  16746. CC=$ac_ct_CC
  16747. else
  16748. CC="$ac_cv_prog_CC"
  16749. fi
  16750. if test -z "$CC"; then
  16751. if test -n "$ac_tool_prefix"; then
  16752. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  16753. set dummy ${ac_tool_prefix}cc; ac_word=$2
  16754. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16755. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16756. if test "${ac_cv_prog_CC+set}" = set; then
  16757. echo $ECHO_N "(cached) $ECHO_C" >&6
  16758. else
  16759. if test -n "$CC"; then
  16760. ac_cv_prog_CC="$CC" # Let the user override the test.
  16761. else
  16762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16763. for as_dir in $PATH
  16764. do
  16765. IFS=$as_save_IFS
  16766. test -z "$as_dir" && as_dir=.
  16767. for ac_exec_ext in '' $ac_executable_extensions; do
  16768. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16769. ac_cv_prog_CC="${ac_tool_prefix}cc"
  16770. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16771. break 2
  16772. fi
  16773. done
  16774. done
  16775. fi
  16776. fi
  16777. CC=$ac_cv_prog_CC
  16778. if test -n "$CC"; then
  16779. echo "$as_me:$LINENO: result: $CC" >&5
  16780. echo "${ECHO_T}$CC" >&6
  16781. else
  16782. echo "$as_me:$LINENO: result: no" >&5
  16783. echo "${ECHO_T}no" >&6
  16784. fi
  16785. fi
  16786. if test -z "$ac_cv_prog_CC"; then
  16787. ac_ct_CC=$CC
  16788. # Extract the first word of "cc", so it can be a program name with args.
  16789. set dummy cc; ac_word=$2
  16790. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16792. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16793. echo $ECHO_N "(cached) $ECHO_C" >&6
  16794. else
  16795. if test -n "$ac_ct_CC"; then
  16796. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16797. else
  16798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16799. for as_dir in $PATH
  16800. do
  16801. IFS=$as_save_IFS
  16802. test -z "$as_dir" && as_dir=.
  16803. for ac_exec_ext in '' $ac_executable_extensions; do
  16804. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16805. ac_cv_prog_ac_ct_CC="cc"
  16806. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16807. break 2
  16808. fi
  16809. done
  16810. done
  16811. fi
  16812. fi
  16813. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16814. if test -n "$ac_ct_CC"; then
  16815. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16816. echo "${ECHO_T}$ac_ct_CC" >&6
  16817. else
  16818. echo "$as_me:$LINENO: result: no" >&5
  16819. echo "${ECHO_T}no" >&6
  16820. fi
  16821. CC=$ac_ct_CC
  16822. else
  16823. CC="$ac_cv_prog_CC"
  16824. fi
  16825. fi
  16826. if test -z "$CC"; then
  16827. # Extract the first word of "cc", so it can be a program name with args.
  16828. set dummy cc; ac_word=$2
  16829. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16830. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16831. if test "${ac_cv_prog_CC+set}" = set; then
  16832. echo $ECHO_N "(cached) $ECHO_C" >&6
  16833. else
  16834. if test -n "$CC"; then
  16835. ac_cv_prog_CC="$CC" # Let the user override the test.
  16836. else
  16837. ac_prog_rejected=no
  16838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16839. for as_dir in $PATH
  16840. do
  16841. IFS=$as_save_IFS
  16842. test -z "$as_dir" && as_dir=.
  16843. for ac_exec_ext in '' $ac_executable_extensions; do
  16844. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16845. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  16846. ac_prog_rejected=yes
  16847. continue
  16848. fi
  16849. ac_cv_prog_CC="cc"
  16850. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16851. break 2
  16852. fi
  16853. done
  16854. done
  16855. if test $ac_prog_rejected = yes; then
  16856. # We found a bogon in the path, so make sure we never use it.
  16857. set dummy $ac_cv_prog_CC
  16858. shift
  16859. if test $# != 0; then
  16860. # We chose a different compiler from the bogus one.
  16861. # However, it has the same basename, so the bogon will be chosen
  16862. # first if we set CC to just the basename; use the full file name.
  16863. shift
  16864. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  16865. fi
  16866. fi
  16867. fi
  16868. fi
  16869. CC=$ac_cv_prog_CC
  16870. if test -n "$CC"; then
  16871. echo "$as_me:$LINENO: result: $CC" >&5
  16872. echo "${ECHO_T}$CC" >&6
  16873. else
  16874. echo "$as_me:$LINENO: result: no" >&5
  16875. echo "${ECHO_T}no" >&6
  16876. fi
  16877. fi
  16878. if test -z "$CC"; then
  16879. if test -n "$ac_tool_prefix"; then
  16880. for ac_prog in cl
  16881. do
  16882. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  16883. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  16884. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16885. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16886. if test "${ac_cv_prog_CC+set}" = set; then
  16887. echo $ECHO_N "(cached) $ECHO_C" >&6
  16888. else
  16889. if test -n "$CC"; then
  16890. ac_cv_prog_CC="$CC" # Let the user override the test.
  16891. else
  16892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16893. for as_dir in $PATH
  16894. do
  16895. IFS=$as_save_IFS
  16896. test -z "$as_dir" && as_dir=.
  16897. for ac_exec_ext in '' $ac_executable_extensions; do
  16898. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16899. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  16900. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16901. break 2
  16902. fi
  16903. done
  16904. done
  16905. fi
  16906. fi
  16907. CC=$ac_cv_prog_CC
  16908. if test -n "$CC"; then
  16909. echo "$as_me:$LINENO: result: $CC" >&5
  16910. echo "${ECHO_T}$CC" >&6
  16911. else
  16912. echo "$as_me:$LINENO: result: no" >&5
  16913. echo "${ECHO_T}no" >&6
  16914. fi
  16915. test -n "$CC" && break
  16916. done
  16917. fi
  16918. if test -z "$CC"; then
  16919. ac_ct_CC=$CC
  16920. for ac_prog in cl
  16921. do
  16922. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16923. set dummy $ac_prog; ac_word=$2
  16924. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16925. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16926. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16927. echo $ECHO_N "(cached) $ECHO_C" >&6
  16928. else
  16929. if test -n "$ac_ct_CC"; then
  16930. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16931. else
  16932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16933. for as_dir in $PATH
  16934. do
  16935. IFS=$as_save_IFS
  16936. test -z "$as_dir" && as_dir=.
  16937. for ac_exec_ext in '' $ac_executable_extensions; do
  16938. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16939. ac_cv_prog_ac_ct_CC="$ac_prog"
  16940. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16941. break 2
  16942. fi
  16943. done
  16944. done
  16945. fi
  16946. fi
  16947. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16948. if test -n "$ac_ct_CC"; then
  16949. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16950. echo "${ECHO_T}$ac_ct_CC" >&6
  16951. else
  16952. echo "$as_me:$LINENO: result: no" >&5
  16953. echo "${ECHO_T}no" >&6
  16954. fi
  16955. test -n "$ac_ct_CC" && break
  16956. done
  16957. CC=$ac_ct_CC
  16958. fi
  16959. fi
  16960. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  16961. See \`config.log' for more details." >&5
  16962. echo "$as_me: error: no acceptable C compiler found in \$PATH
  16963. See \`config.log' for more details." >&2;}
  16964. { (exit 1); exit 1; }; }
  16965. # Provide some information about the compiler.
  16966. echo "$as_me:$LINENO:" \
  16967. "checking for C compiler version" >&5
  16968. ac_compiler=`set X $ac_compile; echo $2`
  16969. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  16970. (eval $ac_compiler --version </dev/null >&5) 2>&5
  16971. ac_status=$?
  16972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16973. (exit $ac_status); }
  16974. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  16975. (eval $ac_compiler -v </dev/null >&5) 2>&5
  16976. ac_status=$?
  16977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16978. (exit $ac_status); }
  16979. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  16980. (eval $ac_compiler -V </dev/null >&5) 2>&5
  16981. ac_status=$?
  16982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16983. (exit $ac_status); }
  16984. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  16985. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  16986. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  16987. echo $ECHO_N "(cached) $ECHO_C" >&6
  16988. else
  16989. cat >conftest.$ac_ext <<_ACEOF
  16990. /* confdefs.h. */
  16991. _ACEOF
  16992. cat confdefs.h >>conftest.$ac_ext
  16993. cat >>conftest.$ac_ext <<_ACEOF
  16994. /* end confdefs.h. */
  16995. int
  16996. main ()
  16997. {
  16998. #ifndef __GNUC__
  16999. choke me
  17000. #endif
  17001. ;
  17002. return 0;
  17003. }
  17004. _ACEOF
  17005. rm -f conftest.$ac_objext
  17006. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17007. (eval $ac_compile) 2>conftest.er1
  17008. ac_status=$?
  17009. grep -v '^ *+' conftest.er1 >conftest.err
  17010. rm -f conftest.er1
  17011. cat conftest.err >&5
  17012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17013. (exit $ac_status); } &&
  17014. { ac_try='test -z "$ac_c_werror_flag"
  17015. || test ! -s conftest.err'
  17016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17017. (eval $ac_try) 2>&5
  17018. ac_status=$?
  17019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17020. (exit $ac_status); }; } &&
  17021. { ac_try='test -s conftest.$ac_objext'
  17022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17023. (eval $ac_try) 2>&5
  17024. ac_status=$?
  17025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17026. (exit $ac_status); }; }; then
  17027. ac_compiler_gnu=yes
  17028. else
  17029. echo "$as_me: failed program was:" >&5
  17030. sed 's/^/| /' conftest.$ac_ext >&5
  17031. ac_compiler_gnu=no
  17032. fi
  17033. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17034. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17035. fi
  17036. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17037. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  17038. GCC=`test $ac_compiler_gnu = yes && echo yes`
  17039. ac_test_CFLAGS=${CFLAGS+set}
  17040. ac_save_CFLAGS=$CFLAGS
  17041. CFLAGS="-g"
  17042. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17043. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  17044. if test "${ac_cv_prog_cc_g+set}" = set; then
  17045. echo $ECHO_N "(cached) $ECHO_C" >&6
  17046. else
  17047. cat >conftest.$ac_ext <<_ACEOF
  17048. /* confdefs.h. */
  17049. _ACEOF
  17050. cat confdefs.h >>conftest.$ac_ext
  17051. cat >>conftest.$ac_ext <<_ACEOF
  17052. /* end confdefs.h. */
  17053. int
  17054. main ()
  17055. {
  17056. ;
  17057. return 0;
  17058. }
  17059. _ACEOF
  17060. rm -f conftest.$ac_objext
  17061. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17062. (eval $ac_compile) 2>conftest.er1
  17063. ac_status=$?
  17064. grep -v '^ *+' conftest.er1 >conftest.err
  17065. rm -f conftest.er1
  17066. cat conftest.err >&5
  17067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17068. (exit $ac_status); } &&
  17069. { ac_try='test -z "$ac_c_werror_flag"
  17070. || test ! -s conftest.err'
  17071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17072. (eval $ac_try) 2>&5
  17073. ac_status=$?
  17074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17075. (exit $ac_status); }; } &&
  17076. { ac_try='test -s conftest.$ac_objext'
  17077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17078. (eval $ac_try) 2>&5
  17079. ac_status=$?
  17080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17081. (exit $ac_status); }; }; then
  17082. ac_cv_prog_cc_g=yes
  17083. else
  17084. echo "$as_me: failed program was:" >&5
  17085. sed 's/^/| /' conftest.$ac_ext >&5
  17086. ac_cv_prog_cc_g=no
  17087. fi
  17088. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17089. fi
  17090. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  17091. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  17092. if test "$ac_test_CFLAGS" = set; then
  17093. CFLAGS=$ac_save_CFLAGS
  17094. elif test $ac_cv_prog_cc_g = yes; then
  17095. if test "$GCC" = yes; then
  17096. CFLAGS="-g -O2"
  17097. else
  17098. CFLAGS="-g"
  17099. fi
  17100. else
  17101. if test "$GCC" = yes; then
  17102. CFLAGS="-O2"
  17103. else
  17104. CFLAGS=
  17105. fi
  17106. fi
  17107. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  17108. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  17109. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  17110. echo $ECHO_N "(cached) $ECHO_C" >&6
  17111. else
  17112. ac_cv_prog_cc_stdc=no
  17113. ac_save_CC=$CC
  17114. cat >conftest.$ac_ext <<_ACEOF
  17115. /* confdefs.h. */
  17116. _ACEOF
  17117. cat confdefs.h >>conftest.$ac_ext
  17118. cat >>conftest.$ac_ext <<_ACEOF
  17119. /* end confdefs.h. */
  17120. #include <stdarg.h>
  17121. #include <stdio.h>
  17122. #include <sys/types.h>
  17123. #include <sys/stat.h>
  17124. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  17125. struct buf { int x; };
  17126. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  17127. static char *e (p, i)
  17128. char **p;
  17129. int i;
  17130. {
  17131. return p[i];
  17132. }
  17133. static char *f (char * (*g) (char **, int), char **p, ...)
  17134. {
  17135. char *s;
  17136. va_list v;
  17137. va_start (v,p);
  17138. s = g (p, va_arg (v,int));
  17139. va_end (v);
  17140. return s;
  17141. }
  17142. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  17143. function prototypes and stuff, but not '\xHH' hex character constants.
  17144. These don't provoke an error unfortunately, instead are silently treated
  17145. as 'x'. The following induces an error, until -std1 is added to get
  17146. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  17147. array size at least. It's necessary to write '\x00'==0 to get something
  17148. that's true only with -std1. */
  17149. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  17150. int test (int i, double x);
  17151. struct s1 {int (*f) (int a);};
  17152. struct s2 {int (*f) (double a);};
  17153. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  17154. int argc;
  17155. char **argv;
  17156. int
  17157. main ()
  17158. {
  17159. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  17160. ;
  17161. return 0;
  17162. }
  17163. _ACEOF
  17164. # Don't try gcc -ansi; that turns off useful extensions and
  17165. # breaks some systems' header files.
  17166. # AIX -qlanglvl=ansi
  17167. # Ultrix and OSF/1 -std1
  17168. # HP-UX 10.20 and later -Ae
  17169. # HP-UX older versions -Aa -D_HPUX_SOURCE
  17170. # SVR4 -Xc -D__EXTENSIONS__
  17171. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  17172. do
  17173. CC="$ac_save_CC $ac_arg"
  17174. rm -f conftest.$ac_objext
  17175. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17176. (eval $ac_compile) 2>conftest.er1
  17177. ac_status=$?
  17178. grep -v '^ *+' conftest.er1 >conftest.err
  17179. rm -f conftest.er1
  17180. cat conftest.err >&5
  17181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17182. (exit $ac_status); } &&
  17183. { ac_try='test -z "$ac_c_werror_flag"
  17184. || test ! -s conftest.err'
  17185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17186. (eval $ac_try) 2>&5
  17187. ac_status=$?
  17188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17189. (exit $ac_status); }; } &&
  17190. { ac_try='test -s conftest.$ac_objext'
  17191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17192. (eval $ac_try) 2>&5
  17193. ac_status=$?
  17194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17195. (exit $ac_status); }; }; then
  17196. ac_cv_prog_cc_stdc=$ac_arg
  17197. break
  17198. else
  17199. echo "$as_me: failed program was:" >&5
  17200. sed 's/^/| /' conftest.$ac_ext >&5
  17201. fi
  17202. rm -f conftest.err conftest.$ac_objext
  17203. done
  17204. rm -f conftest.$ac_ext conftest.$ac_objext
  17205. CC=$ac_save_CC
  17206. fi
  17207. case "x$ac_cv_prog_cc_stdc" in
  17208. x|xno)
  17209. echo "$as_me:$LINENO: result: none needed" >&5
  17210. echo "${ECHO_T}none needed" >&6 ;;
  17211. *)
  17212. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  17213. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  17214. CC="$CC $ac_cv_prog_cc_stdc" ;;
  17215. esac
  17216. # Some people use a C++ compiler to compile C. Since we use `exit',
  17217. # in C++ we need to declare it. In case someone uses the same compiler
  17218. # for both compiling C and C++ we need to have the C++ compiler decide
  17219. # the declaration of exit, since it's the most demanding environment.
  17220. cat >conftest.$ac_ext <<_ACEOF
  17221. #ifndef __cplusplus
  17222. choke me
  17223. #endif
  17224. _ACEOF
  17225. rm -f conftest.$ac_objext
  17226. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17227. (eval $ac_compile) 2>conftest.er1
  17228. ac_status=$?
  17229. grep -v '^ *+' conftest.er1 >conftest.err
  17230. rm -f conftest.er1
  17231. cat conftest.err >&5
  17232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17233. (exit $ac_status); } &&
  17234. { ac_try='test -z "$ac_c_werror_flag"
  17235. || test ! -s conftest.err'
  17236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17237. (eval $ac_try) 2>&5
  17238. ac_status=$?
  17239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17240. (exit $ac_status); }; } &&
  17241. { ac_try='test -s conftest.$ac_objext'
  17242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17243. (eval $ac_try) 2>&5
  17244. ac_status=$?
  17245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17246. (exit $ac_status); }; }; then
  17247. for ac_declaration in \
  17248. '' \
  17249. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  17250. 'extern "C" void std::exit (int); using std::exit;' \
  17251. 'extern "C" void exit (int) throw ();' \
  17252. 'extern "C" void exit (int);' \
  17253. 'void exit (int);'
  17254. do
  17255. cat >conftest.$ac_ext <<_ACEOF
  17256. /* confdefs.h. */
  17257. _ACEOF
  17258. cat confdefs.h >>conftest.$ac_ext
  17259. cat >>conftest.$ac_ext <<_ACEOF
  17260. /* end confdefs.h. */
  17261. $ac_declaration
  17262. #include <stdlib.h>
  17263. int
  17264. main ()
  17265. {
  17266. exit (42);
  17267. ;
  17268. return 0;
  17269. }
  17270. _ACEOF
  17271. rm -f conftest.$ac_objext
  17272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17273. (eval $ac_compile) 2>conftest.er1
  17274. ac_status=$?
  17275. grep -v '^ *+' conftest.er1 >conftest.err
  17276. rm -f conftest.er1
  17277. cat conftest.err >&5
  17278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17279. (exit $ac_status); } &&
  17280. { ac_try='test -z "$ac_c_werror_flag"
  17281. || test ! -s conftest.err'
  17282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17283. (eval $ac_try) 2>&5
  17284. ac_status=$?
  17285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17286. (exit $ac_status); }; } &&
  17287. { ac_try='test -s conftest.$ac_objext'
  17288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17289. (eval $ac_try) 2>&5
  17290. ac_status=$?
  17291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17292. (exit $ac_status); }; }; then
  17293. :
  17294. else
  17295. echo "$as_me: failed program was:" >&5
  17296. sed 's/^/| /' conftest.$ac_ext >&5
  17297. continue
  17298. fi
  17299. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17300. cat >conftest.$ac_ext <<_ACEOF
  17301. /* confdefs.h. */
  17302. _ACEOF
  17303. cat confdefs.h >>conftest.$ac_ext
  17304. cat >>conftest.$ac_ext <<_ACEOF
  17305. /* end confdefs.h. */
  17306. $ac_declaration
  17307. int
  17308. main ()
  17309. {
  17310. exit (42);
  17311. ;
  17312. return 0;
  17313. }
  17314. _ACEOF
  17315. rm -f conftest.$ac_objext
  17316. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17317. (eval $ac_compile) 2>conftest.er1
  17318. ac_status=$?
  17319. grep -v '^ *+' conftest.er1 >conftest.err
  17320. rm -f conftest.er1
  17321. cat conftest.err >&5
  17322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17323. (exit $ac_status); } &&
  17324. { ac_try='test -z "$ac_c_werror_flag"
  17325. || test ! -s conftest.err'
  17326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17327. (eval $ac_try) 2>&5
  17328. ac_status=$?
  17329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17330. (exit $ac_status); }; } &&
  17331. { ac_try='test -s conftest.$ac_objext'
  17332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17333. (eval $ac_try) 2>&5
  17334. ac_status=$?
  17335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17336. (exit $ac_status); }; }; then
  17337. break
  17338. else
  17339. echo "$as_me: failed program was:" >&5
  17340. sed 's/^/| /' conftest.$ac_ext >&5
  17341. fi
  17342. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17343. done
  17344. rm -f conftest*
  17345. if test -n "$ac_declaration"; then
  17346. echo '#ifdef __cplusplus' >>confdefs.h
  17347. echo $ac_declaration >>confdefs.h
  17348. echo '#endif' >>confdefs.h
  17349. fi
  17350. else
  17351. echo "$as_me: failed program was:" >&5
  17352. sed 's/^/| /' conftest.$ac_ext >&5
  17353. fi
  17354. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17355. ac_ext=c
  17356. ac_cpp='$CPP $CPPFLAGS'
  17357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17360. ac_ext=cc
  17361. ac_cpp='$CXXCPP $CPPFLAGS'
  17362. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17363. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17364. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17365. if test -n "$ac_tool_prefix"; then
  17366. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  17367. do
  17368. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17369. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17370. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17371. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17372. if test "${ac_cv_prog_CXX+set}" = set; then
  17373. echo $ECHO_N "(cached) $ECHO_C" >&6
  17374. else
  17375. if test -n "$CXX"; then
  17376. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  17377. else
  17378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17379. for as_dir in $PATH
  17380. do
  17381. IFS=$as_save_IFS
  17382. test -z "$as_dir" && as_dir=.
  17383. for ac_exec_ext in '' $ac_executable_extensions; do
  17384. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17385. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  17386. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17387. break 2
  17388. fi
  17389. done
  17390. done
  17391. fi
  17392. fi
  17393. CXX=$ac_cv_prog_CXX
  17394. if test -n "$CXX"; then
  17395. echo "$as_me:$LINENO: result: $CXX" >&5
  17396. echo "${ECHO_T}$CXX" >&6
  17397. else
  17398. echo "$as_me:$LINENO: result: no" >&5
  17399. echo "${ECHO_T}no" >&6
  17400. fi
  17401. test -n "$CXX" && break
  17402. done
  17403. fi
  17404. if test -z "$CXX"; then
  17405. ac_ct_CXX=$CXX
  17406. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  17407. do
  17408. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17409. set dummy $ac_prog; ac_word=$2
  17410. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17411. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17412. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  17413. echo $ECHO_N "(cached) $ECHO_C" >&6
  17414. else
  17415. if test -n "$ac_ct_CXX"; then
  17416. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  17417. else
  17418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17419. for as_dir in $PATH
  17420. do
  17421. IFS=$as_save_IFS
  17422. test -z "$as_dir" && as_dir=.
  17423. for ac_exec_ext in '' $ac_executable_extensions; do
  17424. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17425. ac_cv_prog_ac_ct_CXX="$ac_prog"
  17426. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17427. break 2
  17428. fi
  17429. done
  17430. done
  17431. fi
  17432. fi
  17433. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  17434. if test -n "$ac_ct_CXX"; then
  17435. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  17436. echo "${ECHO_T}$ac_ct_CXX" >&6
  17437. else
  17438. echo "$as_me:$LINENO: result: no" >&5
  17439. echo "${ECHO_T}no" >&6
  17440. fi
  17441. test -n "$ac_ct_CXX" && break
  17442. done
  17443. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  17444. CXX=$ac_ct_CXX
  17445. fi
  17446. # Provide some information about the compiler.
  17447. echo "$as_me:$LINENO:" \
  17448. "checking for C++ compiler version" >&5
  17449. ac_compiler=`set X $ac_compile; echo $2`
  17450. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  17451. (eval $ac_compiler --version </dev/null >&5) 2>&5
  17452. ac_status=$?
  17453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17454. (exit $ac_status); }
  17455. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  17456. (eval $ac_compiler -v </dev/null >&5) 2>&5
  17457. ac_status=$?
  17458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17459. (exit $ac_status); }
  17460. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  17461. (eval $ac_compiler -V </dev/null >&5) 2>&5
  17462. ac_status=$?
  17463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17464. (exit $ac_status); }
  17465. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  17466. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  17467. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  17468. echo $ECHO_N "(cached) $ECHO_C" >&6
  17469. else
  17470. cat >conftest.$ac_ext <<_ACEOF
  17471. /* confdefs.h. */
  17472. _ACEOF
  17473. cat confdefs.h >>conftest.$ac_ext
  17474. cat >>conftest.$ac_ext <<_ACEOF
  17475. /* end confdefs.h. */
  17476. int
  17477. main ()
  17478. {
  17479. #ifndef __GNUC__
  17480. choke me
  17481. #endif
  17482. ;
  17483. return 0;
  17484. }
  17485. _ACEOF
  17486. rm -f conftest.$ac_objext
  17487. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17488. (eval $ac_compile) 2>conftest.er1
  17489. ac_status=$?
  17490. grep -v '^ *+' conftest.er1 >conftest.err
  17491. rm -f conftest.er1
  17492. cat conftest.err >&5
  17493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17494. (exit $ac_status); } &&
  17495. { ac_try='test -z "$ac_cxx_werror_flag"
  17496. || test ! -s conftest.err'
  17497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17498. (eval $ac_try) 2>&5
  17499. ac_status=$?
  17500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17501. (exit $ac_status); }; } &&
  17502. { ac_try='test -s conftest.$ac_objext'
  17503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17504. (eval $ac_try) 2>&5
  17505. ac_status=$?
  17506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17507. (exit $ac_status); }; }; then
  17508. ac_compiler_gnu=yes
  17509. else
  17510. echo "$as_me: failed program was:" >&5
  17511. sed 's/^/| /' conftest.$ac_ext >&5
  17512. ac_compiler_gnu=no
  17513. fi
  17514. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17515. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  17516. fi
  17517. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  17518. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  17519. GXX=`test $ac_compiler_gnu = yes && echo yes`
  17520. ac_test_CXXFLAGS=${CXXFLAGS+set}
  17521. ac_save_CXXFLAGS=$CXXFLAGS
  17522. CXXFLAGS="-g"
  17523. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  17524. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  17525. if test "${ac_cv_prog_cxx_g+set}" = set; then
  17526. echo $ECHO_N "(cached) $ECHO_C" >&6
  17527. else
  17528. cat >conftest.$ac_ext <<_ACEOF
  17529. /* confdefs.h. */
  17530. _ACEOF
  17531. cat confdefs.h >>conftest.$ac_ext
  17532. cat >>conftest.$ac_ext <<_ACEOF
  17533. /* end confdefs.h. */
  17534. int
  17535. main ()
  17536. {
  17537. ;
  17538. return 0;
  17539. }
  17540. _ACEOF
  17541. rm -f conftest.$ac_objext
  17542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17543. (eval $ac_compile) 2>conftest.er1
  17544. ac_status=$?
  17545. grep -v '^ *+' conftest.er1 >conftest.err
  17546. rm -f conftest.er1
  17547. cat conftest.err >&5
  17548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17549. (exit $ac_status); } &&
  17550. { ac_try='test -z "$ac_cxx_werror_flag"
  17551. || test ! -s conftest.err'
  17552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17553. (eval $ac_try) 2>&5
  17554. ac_status=$?
  17555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17556. (exit $ac_status); }; } &&
  17557. { ac_try='test -s conftest.$ac_objext'
  17558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17559. (eval $ac_try) 2>&5
  17560. ac_status=$?
  17561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17562. (exit $ac_status); }; }; then
  17563. ac_cv_prog_cxx_g=yes
  17564. else
  17565. echo "$as_me: failed program was:" >&5
  17566. sed 's/^/| /' conftest.$ac_ext >&5
  17567. ac_cv_prog_cxx_g=no
  17568. fi
  17569. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17570. fi
  17571. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  17572. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  17573. if test "$ac_test_CXXFLAGS" = set; then
  17574. CXXFLAGS=$ac_save_CXXFLAGS
  17575. elif test $ac_cv_prog_cxx_g = yes; then
  17576. if test "$GXX" = yes; then
  17577. CXXFLAGS="-g -O2"
  17578. else
  17579. CXXFLAGS="-g"
  17580. fi
  17581. else
  17582. if test "$GXX" = yes; then
  17583. CXXFLAGS="-O2"
  17584. else
  17585. CXXFLAGS=
  17586. fi
  17587. fi
  17588. for ac_declaration in \
  17589. '' \
  17590. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  17591. 'extern "C" void std::exit (int); using std::exit;' \
  17592. 'extern "C" void exit (int) throw ();' \
  17593. 'extern "C" void exit (int);' \
  17594. 'void exit (int);'
  17595. do
  17596. cat >conftest.$ac_ext <<_ACEOF
  17597. /* confdefs.h. */
  17598. _ACEOF
  17599. cat confdefs.h >>conftest.$ac_ext
  17600. cat >>conftest.$ac_ext <<_ACEOF
  17601. /* end confdefs.h. */
  17602. $ac_declaration
  17603. #include <stdlib.h>
  17604. int
  17605. main ()
  17606. {
  17607. exit (42);
  17608. ;
  17609. return 0;
  17610. }
  17611. _ACEOF
  17612. rm -f conftest.$ac_objext
  17613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17614. (eval $ac_compile) 2>conftest.er1
  17615. ac_status=$?
  17616. grep -v '^ *+' conftest.er1 >conftest.err
  17617. rm -f conftest.er1
  17618. cat conftest.err >&5
  17619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17620. (exit $ac_status); } &&
  17621. { ac_try='test -z "$ac_cxx_werror_flag"
  17622. || test ! -s conftest.err'
  17623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17624. (eval $ac_try) 2>&5
  17625. ac_status=$?
  17626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17627. (exit $ac_status); }; } &&
  17628. { ac_try='test -s conftest.$ac_objext'
  17629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17630. (eval $ac_try) 2>&5
  17631. ac_status=$?
  17632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17633. (exit $ac_status); }; }; then
  17634. :
  17635. else
  17636. echo "$as_me: failed program was:" >&5
  17637. sed 's/^/| /' conftest.$ac_ext >&5
  17638. continue
  17639. fi
  17640. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17641. cat >conftest.$ac_ext <<_ACEOF
  17642. /* confdefs.h. */
  17643. _ACEOF
  17644. cat confdefs.h >>conftest.$ac_ext
  17645. cat >>conftest.$ac_ext <<_ACEOF
  17646. /* end confdefs.h. */
  17647. $ac_declaration
  17648. int
  17649. main ()
  17650. {
  17651. exit (42);
  17652. ;
  17653. return 0;
  17654. }
  17655. _ACEOF
  17656. rm -f conftest.$ac_objext
  17657. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17658. (eval $ac_compile) 2>conftest.er1
  17659. ac_status=$?
  17660. grep -v '^ *+' conftest.er1 >conftest.err
  17661. rm -f conftest.er1
  17662. cat conftest.err >&5
  17663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17664. (exit $ac_status); } &&
  17665. { ac_try='test -z "$ac_cxx_werror_flag"
  17666. || test ! -s conftest.err'
  17667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17668. (eval $ac_try) 2>&5
  17669. ac_status=$?
  17670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17671. (exit $ac_status); }; } &&
  17672. { ac_try='test -s conftest.$ac_objext'
  17673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17674. (eval $ac_try) 2>&5
  17675. ac_status=$?
  17676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17677. (exit $ac_status); }; }; then
  17678. break
  17679. else
  17680. echo "$as_me: failed program was:" >&5
  17681. sed 's/^/| /' conftest.$ac_ext >&5
  17682. fi
  17683. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17684. done
  17685. rm -f conftest*
  17686. if test -n "$ac_declaration"; then
  17687. echo '#ifdef __cplusplus' >>confdefs.h
  17688. echo $ac_declaration >>confdefs.h
  17689. echo '#endif' >>confdefs.h
  17690. fi
  17691. ac_ext=c
  17692. ac_cpp='$CPP $CPPFLAGS'
  17693. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17694. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17695. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17696. ac_ext=c
  17697. ac_cpp='$CPP $CPPFLAGS'
  17698. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17699. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17700. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17701. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  17702. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  17703. # On Suns, sometimes $CPP names a directory.
  17704. if test -n "$CPP" && test -d "$CPP"; then
  17705. CPP=
  17706. fi
  17707. if test -z "$CPP"; then
  17708. if test "${ac_cv_prog_CPP+set}" = set; then
  17709. echo $ECHO_N "(cached) $ECHO_C" >&6
  17710. else
  17711. # Double quotes because CPP needs to be expanded
  17712. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  17713. do
  17714. ac_preproc_ok=false
  17715. for ac_c_preproc_warn_flag in '' yes
  17716. do
  17717. # Use a header file that comes with gcc, so configuring glibc
  17718. # with a fresh cross-compiler works.
  17719. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17720. # <limits.h> exists even on freestanding compilers.
  17721. # On the NeXT, cc -E runs the code through the compiler's parser,
  17722. # not just through cpp. "Syntax error" is here to catch this case.
  17723. cat >conftest.$ac_ext <<_ACEOF
  17724. /* confdefs.h. */
  17725. _ACEOF
  17726. cat confdefs.h >>conftest.$ac_ext
  17727. cat >>conftest.$ac_ext <<_ACEOF
  17728. /* end confdefs.h. */
  17729. #ifdef __STDC__
  17730. # include <limits.h>
  17731. #else
  17732. # include <assert.h>
  17733. #endif
  17734. Syntax error
  17735. _ACEOF
  17736. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17737. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17738. ac_status=$?
  17739. grep -v '^ *+' conftest.er1 >conftest.err
  17740. rm -f conftest.er1
  17741. cat conftest.err >&5
  17742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17743. (exit $ac_status); } >/dev/null; then
  17744. if test -s conftest.err; then
  17745. ac_cpp_err=$ac_c_preproc_warn_flag
  17746. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17747. else
  17748. ac_cpp_err=
  17749. fi
  17750. else
  17751. ac_cpp_err=yes
  17752. fi
  17753. if test -z "$ac_cpp_err"; then
  17754. :
  17755. else
  17756. echo "$as_me: failed program was:" >&5
  17757. sed 's/^/| /' conftest.$ac_ext >&5
  17758. # Broken: fails on valid input.
  17759. continue
  17760. fi
  17761. rm -f conftest.err conftest.$ac_ext
  17762. # OK, works on sane cases. Now check whether non-existent headers
  17763. # can be detected and how.
  17764. cat >conftest.$ac_ext <<_ACEOF
  17765. /* confdefs.h. */
  17766. _ACEOF
  17767. cat confdefs.h >>conftest.$ac_ext
  17768. cat >>conftest.$ac_ext <<_ACEOF
  17769. /* end confdefs.h. */
  17770. #include <ac_nonexistent.h>
  17771. _ACEOF
  17772. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17773. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17774. ac_status=$?
  17775. grep -v '^ *+' conftest.er1 >conftest.err
  17776. rm -f conftest.er1
  17777. cat conftest.err >&5
  17778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17779. (exit $ac_status); } >/dev/null; then
  17780. if test -s conftest.err; then
  17781. ac_cpp_err=$ac_c_preproc_warn_flag
  17782. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17783. else
  17784. ac_cpp_err=
  17785. fi
  17786. else
  17787. ac_cpp_err=yes
  17788. fi
  17789. if test -z "$ac_cpp_err"; then
  17790. # Broken: success on invalid input.
  17791. continue
  17792. else
  17793. echo "$as_me: failed program was:" >&5
  17794. sed 's/^/| /' conftest.$ac_ext >&5
  17795. # Passes both tests.
  17796. ac_preproc_ok=:
  17797. break
  17798. fi
  17799. rm -f conftest.err conftest.$ac_ext
  17800. done
  17801. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17802. rm -f conftest.err conftest.$ac_ext
  17803. if $ac_preproc_ok; then
  17804. break
  17805. fi
  17806. done
  17807. ac_cv_prog_CPP=$CPP
  17808. fi
  17809. CPP=$ac_cv_prog_CPP
  17810. else
  17811. ac_cv_prog_CPP=$CPP
  17812. fi
  17813. echo "$as_me:$LINENO: result: $CPP" >&5
  17814. echo "${ECHO_T}$CPP" >&6
  17815. ac_preproc_ok=false
  17816. for ac_c_preproc_warn_flag in '' yes
  17817. do
  17818. # Use a header file that comes with gcc, so configuring glibc
  17819. # with a fresh cross-compiler works.
  17820. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17821. # <limits.h> exists even on freestanding compilers.
  17822. # On the NeXT, cc -E runs the code through the compiler's parser,
  17823. # not just through cpp. "Syntax error" is here to catch this case.
  17824. cat >conftest.$ac_ext <<_ACEOF
  17825. /* confdefs.h. */
  17826. _ACEOF
  17827. cat confdefs.h >>conftest.$ac_ext
  17828. cat >>conftest.$ac_ext <<_ACEOF
  17829. /* end confdefs.h. */
  17830. #ifdef __STDC__
  17831. # include <limits.h>
  17832. #else
  17833. # include <assert.h>
  17834. #endif
  17835. Syntax error
  17836. _ACEOF
  17837. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17838. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17839. ac_status=$?
  17840. grep -v '^ *+' conftest.er1 >conftest.err
  17841. rm -f conftest.er1
  17842. cat conftest.err >&5
  17843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17844. (exit $ac_status); } >/dev/null; then
  17845. if test -s conftest.err; then
  17846. ac_cpp_err=$ac_c_preproc_warn_flag
  17847. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17848. else
  17849. ac_cpp_err=
  17850. fi
  17851. else
  17852. ac_cpp_err=yes
  17853. fi
  17854. if test -z "$ac_cpp_err"; then
  17855. :
  17856. else
  17857. echo "$as_me: failed program was:" >&5
  17858. sed 's/^/| /' conftest.$ac_ext >&5
  17859. # Broken: fails on valid input.
  17860. continue
  17861. fi
  17862. rm -f conftest.err conftest.$ac_ext
  17863. # OK, works on sane cases. Now check whether non-existent headers
  17864. # can be detected and how.
  17865. cat >conftest.$ac_ext <<_ACEOF
  17866. /* confdefs.h. */
  17867. _ACEOF
  17868. cat confdefs.h >>conftest.$ac_ext
  17869. cat >>conftest.$ac_ext <<_ACEOF
  17870. /* end confdefs.h. */
  17871. #include <ac_nonexistent.h>
  17872. _ACEOF
  17873. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17874. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17875. ac_status=$?
  17876. grep -v '^ *+' conftest.er1 >conftest.err
  17877. rm -f conftest.er1
  17878. cat conftest.err >&5
  17879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17880. (exit $ac_status); } >/dev/null; then
  17881. if test -s conftest.err; then
  17882. ac_cpp_err=$ac_c_preproc_warn_flag
  17883. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17884. else
  17885. ac_cpp_err=
  17886. fi
  17887. else
  17888. ac_cpp_err=yes
  17889. fi
  17890. if test -z "$ac_cpp_err"; then
  17891. # Broken: success on invalid input.
  17892. continue
  17893. else
  17894. echo "$as_me: failed program was:" >&5
  17895. sed 's/^/| /' conftest.$ac_ext >&5
  17896. # Passes both tests.
  17897. ac_preproc_ok=:
  17898. break
  17899. fi
  17900. rm -f conftest.err conftest.$ac_ext
  17901. done
  17902. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17903. rm -f conftest.err conftest.$ac_ext
  17904. if $ac_preproc_ok; then
  17905. :
  17906. else
  17907. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  17908. See \`config.log' for more details." >&5
  17909. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  17910. See \`config.log' for more details." >&2;}
  17911. { (exit 1); exit 1; }; }
  17912. fi
  17913. ac_ext=c
  17914. ac_cpp='$CPP $CPPFLAGS'
  17915. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17916. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17917. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17918. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  17919. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  17920. LN_S=$as_ln_s
  17921. if test "$LN_S" = "ln -s"; then
  17922. echo "$as_me:$LINENO: result: yes" >&5
  17923. echo "${ECHO_T}yes" >&6
  17924. else
  17925. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  17926. echo "${ECHO_T}no, using $LN_S" >&6
  17927. fi
  17928. if test -n "$ac_tool_prefix"; then
  17929. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  17930. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  17931. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17932. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17933. if test "${ac_cv_prog_RANLIB+set}" = set; then
  17934. echo $ECHO_N "(cached) $ECHO_C" >&6
  17935. else
  17936. if test -n "$RANLIB"; then
  17937. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  17938. else
  17939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17940. for as_dir in $PATH
  17941. do
  17942. IFS=$as_save_IFS
  17943. test -z "$as_dir" && as_dir=.
  17944. for ac_exec_ext in '' $ac_executable_extensions; do
  17945. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17946. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  17947. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17948. break 2
  17949. fi
  17950. done
  17951. done
  17952. fi
  17953. fi
  17954. RANLIB=$ac_cv_prog_RANLIB
  17955. if test -n "$RANLIB"; then
  17956. echo "$as_me:$LINENO: result: $RANLIB" >&5
  17957. echo "${ECHO_T}$RANLIB" >&6
  17958. else
  17959. echo "$as_me:$LINENO: result: no" >&5
  17960. echo "${ECHO_T}no" >&6
  17961. fi
  17962. fi
  17963. if test -z "$ac_cv_prog_RANLIB"; then
  17964. ac_ct_RANLIB=$RANLIB
  17965. # Extract the first word of "ranlib", so it can be a program name with args.
  17966. set dummy ranlib; ac_word=$2
  17967. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17968. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17969. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  17970. echo $ECHO_N "(cached) $ECHO_C" >&6
  17971. else
  17972. if test -n "$ac_ct_RANLIB"; then
  17973. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  17974. else
  17975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17976. for as_dir in $PATH
  17977. do
  17978. IFS=$as_save_IFS
  17979. test -z "$as_dir" && as_dir=.
  17980. for ac_exec_ext in '' $ac_executable_extensions; do
  17981. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17982. ac_cv_prog_ac_ct_RANLIB="ranlib"
  17983. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17984. break 2
  17985. fi
  17986. done
  17987. done
  17988. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  17989. fi
  17990. fi
  17991. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  17992. if test -n "$ac_ct_RANLIB"; then
  17993. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  17994. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  17995. else
  17996. echo "$as_me:$LINENO: result: no" >&5
  17997. echo "${ECHO_T}no" >&6
  17998. fi
  17999. RANLIB=$ac_ct_RANLIB
  18000. else
  18001. RANLIB="$ac_cv_prog_RANLIB"
  18002. fi
  18003. for ac_prog in gawk mawk nawk awk
  18004. do
  18005. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18006. set dummy $ac_prog; ac_word=$2
  18007. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18008. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18009. if test "${ac_cv_prog_AWK+set}" = set; then
  18010. echo $ECHO_N "(cached) $ECHO_C" >&6
  18011. else
  18012. if test -n "$AWK"; then
  18013. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18014. else
  18015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18016. for as_dir in $PATH
  18017. do
  18018. IFS=$as_save_IFS
  18019. test -z "$as_dir" && as_dir=.
  18020. for ac_exec_ext in '' $ac_executable_extensions; do
  18021. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18022. ac_cv_prog_AWK="$ac_prog"
  18023. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18024. break 2
  18025. fi
  18026. done
  18027. done
  18028. fi
  18029. fi
  18030. AWK=$ac_cv_prog_AWK
  18031. if test -n "$AWK"; then
  18032. echo "$as_me:$LINENO: result: $AWK" >&5
  18033. echo "${ECHO_T}$AWK" >&6
  18034. else
  18035. echo "$as_me:$LINENO: result: no" >&5
  18036. echo "${ECHO_T}no" >&6
  18037. fi
  18038. test -n "$AWK" && break
  18039. done
  18040. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18041. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  18042. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  18043. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  18044. echo $ECHO_N "(cached) $ECHO_C" >&6
  18045. else
  18046. cat >conftest.make <<\_ACEOF
  18047. all:
  18048. @echo 'ac_maketemp="$(MAKE)"'
  18049. _ACEOF
  18050. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  18051. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  18052. if test -n "$ac_maketemp"; then
  18053. eval ac_cv_prog_make_${ac_make}_set=yes
  18054. else
  18055. eval ac_cv_prog_make_${ac_make}_set=no
  18056. fi
  18057. rm -f conftest.make
  18058. fi
  18059. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  18060. echo "$as_me:$LINENO: result: yes" >&5
  18061. echo "${ECHO_T}yes" >&6
  18062. SET_MAKE=
  18063. else
  18064. echo "$as_me:$LINENO: result: no" >&5
  18065. echo "${ECHO_T}no" >&6
  18066. SET_MAKE="MAKE=${MAKE-make}"
  18067. fi
  18068. # Extract the first word of "printf", so it can be a program name with args.
  18069. set dummy printf; ac_word=$2
  18070. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18071. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18072. if test "${ac_cv_path_PRINTF+set}" = set; then
  18073. echo $ECHO_N "(cached) $ECHO_C" >&6
  18074. else
  18075. case $PRINTF in
  18076. [\\/]* | ?:[\\/]*)
  18077. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  18078. ;;
  18079. *)
  18080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18081. for as_dir in $PATH
  18082. do
  18083. IFS=$as_save_IFS
  18084. test -z "$as_dir" && as_dir=.
  18085. for ac_exec_ext in '' $ac_executable_extensions; do
  18086. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18087. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  18088. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18089. break 2
  18090. fi
  18091. done
  18092. done
  18093. ;;
  18094. esac
  18095. fi
  18096. PRINTF=$ac_cv_path_PRINTF
  18097. if test -n "$PRINTF"; then
  18098. echo "$as_me:$LINENO: result: $PRINTF" >&5
  18099. echo "${ECHO_T}$PRINTF" >&6
  18100. else
  18101. echo "$as_me:$LINENO: result: no" >&5
  18102. echo "${ECHO_T}no" >&6
  18103. fi
  18104. # Extract the first word of "fig2dev", so it can be a program name with args.
  18105. set dummy fig2dev; ac_word=$2
  18106. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18107. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18108. if test "${ac_cv_path_FIG2DEV+set}" = set; then
  18109. echo $ECHO_N "(cached) $ECHO_C" >&6
  18110. else
  18111. case $FIG2DEV in
  18112. [\\/]* | ?:[\\/]*)
  18113. ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
  18114. ;;
  18115. *)
  18116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18117. for as_dir in $PATH
  18118. do
  18119. IFS=$as_save_IFS
  18120. test -z "$as_dir" && as_dir=.
  18121. for ac_exec_ext in '' $ac_executable_extensions; do
  18122. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18123. ac_cv_path_FIG2DEV="$as_dir/$ac_word$ac_exec_ext"
  18124. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18125. break 2
  18126. fi
  18127. done
  18128. done
  18129. ;;
  18130. esac
  18131. fi
  18132. FIG2DEV=$ac_cv_path_FIG2DEV
  18133. if test -n "$FIG2DEV"; then
  18134. echo "$as_me:$LINENO: result: $FIG2DEV" >&5
  18135. echo "${ECHO_T}$FIG2DEV" >&6
  18136. else
  18137. echo "$as_me:$LINENO: result: no" >&5
  18138. echo "${ECHO_T}no" >&6
  18139. fi
  18140. # Check whether --with-lyx or --without-lyx was given.
  18141. if test "${with_lyx+set}" = set; then
  18142. withval="$with_lyx"
  18143. echo "$as_me:$LINENO: checking for lyx" >&5
  18144. echo $ECHO_N "checking for lyx... $ECHO_C" >&6
  18145. if test -x $withval ; then
  18146. td=$withval
  18147. echo "$as_me:$LINENO: result: $td" >&5
  18148. echo "${ECHO_T}$td" >&6
  18149. else
  18150. echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  18151. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6
  18152. fi
  18153. else
  18154. case $host in
  18155. powerpc-apple-darwin*)
  18156. lyx=/Applications/Lyx.app/Contents/MacOS/LyX
  18157. if test -x $lyx ; then
  18158. echo "$as_me:$LINENO: checking for lyx" >&5
  18159. echo $ECHO_N "checking for lyx... $ECHO_C" >&6
  18160. LYX=$lyx
  18161. echo "$as_me:$LINENO: result: $lyx" >&5
  18162. echo "${ECHO_T}$lyx" >&6
  18163. else
  18164. # Extract the first word of "lyx", so it can be a program name with args.
  18165. set dummy lyx; ac_word=$2
  18166. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18167. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18168. if test "${ac_cv_path_LYX+set}" = set; then
  18169. echo $ECHO_N "(cached) $ECHO_C" >&6
  18170. else
  18171. case $LYX in
  18172. [\\/]* | ?:[\\/]*)
  18173. ac_cv_path_LYX="$LYX" # Let the user override the test with a path.
  18174. ;;
  18175. *)
  18176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18177. for as_dir in $PATH
  18178. do
  18179. IFS=$as_save_IFS
  18180. test -z "$as_dir" && as_dir=.
  18181. for ac_exec_ext in '' $ac_executable_extensions; do
  18182. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18183. ac_cv_path_LYX="$as_dir/$ac_word$ac_exec_ext"
  18184. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18185. break 2
  18186. fi
  18187. done
  18188. done
  18189. ;;
  18190. esac
  18191. fi
  18192. LYX=$ac_cv_path_LYX
  18193. if test -n "$LYX"; then
  18194. echo "$as_me:$LINENO: result: $LYX" >&5
  18195. echo "${ECHO_T}$LYX" >&6
  18196. else
  18197. echo "$as_me:$LINENO: result: no" >&5
  18198. echo "${ECHO_T}no" >&6
  18199. fi
  18200. fi
  18201. ;;
  18202. *)
  18203. # Extract the first word of "lyx", so it can be a program name with args.
  18204. set dummy lyx; ac_word=$2
  18205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18207. if test "${ac_cv_path_LYX+set}" = set; then
  18208. echo $ECHO_N "(cached) $ECHO_C" >&6
  18209. else
  18210. case $LYX in
  18211. [\\/]* | ?:[\\/]*)
  18212. ac_cv_path_LYX="$LYX" # Let the user override the test with a path.
  18213. ;;
  18214. *)
  18215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18216. for as_dir in $PATH
  18217. do
  18218. IFS=$as_save_IFS
  18219. test -z "$as_dir" && as_dir=.
  18220. for ac_exec_ext in '' $ac_executable_extensions; do
  18221. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18222. ac_cv_path_LYX="$as_dir/$ac_word$ac_exec_ext"
  18223. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18224. break 2
  18225. fi
  18226. done
  18227. done
  18228. ;;
  18229. esac
  18230. fi
  18231. LYX=$ac_cv_path_LYX
  18232. if test -n "$LYX"; then
  18233. echo "$as_me:$LINENO: result: $LYX" >&5
  18234. echo "${ECHO_T}$LYX" >&6
  18235. else
  18236. echo "$as_me:$LINENO: result: no" >&5
  18237. echo "${ECHO_T}no" >&6
  18238. fi
  18239. ;;
  18240. esac
  18241. fi;
  18242. # Extract the first word of "dvips", so it can be a program name with args.
  18243. set dummy dvips; ac_word=$2
  18244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18246. if test "${ac_cv_path_DVIPS+set}" = set; then
  18247. echo $ECHO_N "(cached) $ECHO_C" >&6
  18248. else
  18249. case $DVIPS in
  18250. [\\/]* | ?:[\\/]*)
  18251. ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
  18252. ;;
  18253. *)
  18254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18255. for as_dir in $PATH
  18256. do
  18257. IFS=$as_save_IFS
  18258. test -z "$as_dir" && as_dir=.
  18259. for ac_exec_ext in '' $ac_executable_extensions; do
  18260. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18261. ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
  18262. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18263. break 2
  18264. fi
  18265. done
  18266. done
  18267. ;;
  18268. esac
  18269. fi
  18270. DVIPS=$ac_cv_path_DVIPS
  18271. if test -n "$DVIPS"; then
  18272. echo "$as_me:$LINENO: result: $DVIPS" >&5
  18273. echo "${ECHO_T}$DVIPS" >&6
  18274. else
  18275. echo "$as_me:$LINENO: result: no" >&5
  18276. echo "${ECHO_T}no" >&6
  18277. fi
  18278. # Extract the first word of "texi2dvi", so it can be a program name with args.
  18279. set dummy texi2dvi; ac_word=$2
  18280. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18282. if test "${ac_cv_path_TEXI2DVI+set}" = set; then
  18283. echo $ECHO_N "(cached) $ECHO_C" >&6
  18284. else
  18285. case $TEXI2DVI in
  18286. [\\/]* | ?:[\\/]*)
  18287. ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
  18288. ;;
  18289. *)
  18290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18291. for as_dir in $PATH
  18292. do
  18293. IFS=$as_save_IFS
  18294. test -z "$as_dir" && as_dir=.
  18295. for ac_exec_ext in '' $ac_executable_extensions; do
  18296. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18297. ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
  18298. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18299. break 2
  18300. fi
  18301. done
  18302. done
  18303. ;;
  18304. esac
  18305. fi
  18306. TEXI2DVI=$ac_cv_path_TEXI2DVI
  18307. if test -n "$TEXI2DVI"; then
  18308. echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
  18309. echo "${ECHO_T}$TEXI2DVI" >&6
  18310. else
  18311. echo "$as_me:$LINENO: result: no" >&5
  18312. echo "${ECHO_T}no" >&6
  18313. fi
  18314. # Extract the first word of "latex2html", so it can be a program name with args.
  18315. set dummy latex2html; ac_word=$2
  18316. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18317. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18318. if test "${ac_cv_path_LATEX2HTML+set}" = set; then
  18319. echo $ECHO_N "(cached) $ECHO_C" >&6
  18320. else
  18321. case $LATEX2HTML in
  18322. [\\/]* | ?:[\\/]*)
  18323. ac_cv_path_LATEX2HTML="$LATEX2HTML" # Let the user override the test with a path.
  18324. ;;
  18325. *)
  18326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18327. for as_dir in $PATH
  18328. do
  18329. IFS=$as_save_IFS
  18330. test -z "$as_dir" && as_dir=.
  18331. for ac_exec_ext in '' $ac_executable_extensions; do
  18332. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18333. ac_cv_path_LATEX2HTML="$as_dir/$ac_word$ac_exec_ext"
  18334. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18335. break 2
  18336. fi
  18337. done
  18338. done
  18339. ;;
  18340. esac
  18341. fi
  18342. LATEX2HTML=$ac_cv_path_LATEX2HTML
  18343. if test -n "$LATEX2HTML"; then
  18344. echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
  18345. echo "${ECHO_T}$LATEX2HTML" >&6
  18346. else
  18347. echo "$as_me:$LINENO: result: no" >&5
  18348. echo "${ECHO_T}no" >&6
  18349. fi
  18350. # Extract the first word of "dvipdfm", so it can be a program name with args.
  18351. set dummy dvipdfm; ac_word=$2
  18352. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18353. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18354. if test "${ac_cv_path_DVIPDFM+set}" = set; then
  18355. echo $ECHO_N "(cached) $ECHO_C" >&6
  18356. else
  18357. case $DVIPDFM in
  18358. [\\/]* | ?:[\\/]*)
  18359. ac_cv_path_DVIPDFM="$DVIPDFM" # Let the user override the test with a path.
  18360. ;;
  18361. *)
  18362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18363. for as_dir in $PATH
  18364. do
  18365. IFS=$as_save_IFS
  18366. test -z "$as_dir" && as_dir=.
  18367. for ac_exec_ext in '' $ac_executable_extensions; do
  18368. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18369. ac_cv_path_DVIPDFM="$as_dir/$ac_word$ac_exec_ext"
  18370. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18371. break 2
  18372. fi
  18373. done
  18374. done
  18375. ;;
  18376. esac
  18377. fi
  18378. DVIPDFM=$ac_cv_path_DVIPDFM
  18379. if test -n "$DVIPDFM"; then
  18380. echo "$as_me:$LINENO: result: $DVIPDFM" >&5
  18381. echo "${ECHO_T}$DVIPDFM" >&6
  18382. else
  18383. echo "$as_me:$LINENO: result: no" >&5
  18384. echo "${ECHO_T}no" >&6
  18385. fi
  18386. # Extract the first word of "autogen", so it can be a program name with args.
  18387. set dummy autogen; ac_word=$2
  18388. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18389. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18390. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  18391. echo $ECHO_N "(cached) $ECHO_C" >&6
  18392. else
  18393. case $AUTOGEN in
  18394. [\\/]* | ?:[\\/]*)
  18395. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  18396. ;;
  18397. *)
  18398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18399. for as_dir in $PATH
  18400. do
  18401. IFS=$as_save_IFS
  18402. test -z "$as_dir" && as_dir=.
  18403. for ac_exec_ext in '' $ac_executable_extensions; do
  18404. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18405. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  18406. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18407. break 2
  18408. fi
  18409. done
  18410. done
  18411. ;;
  18412. esac
  18413. fi
  18414. AUTOGEN=$ac_cv_path_AUTOGEN
  18415. if test -n "$AUTOGEN"; then
  18416. echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  18417. echo "${ECHO_T}$AUTOGEN" >&6
  18418. else
  18419. echo "$as_me:$LINENO: result: no" >&5
  18420. echo "${ECHO_T}no" >&6
  18421. fi
  18422. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18423. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  18424. if test "${ac_cv_header_stdc+set}" = set; then
  18425. echo $ECHO_N "(cached) $ECHO_C" >&6
  18426. else
  18427. cat >conftest.$ac_ext <<_ACEOF
  18428. /* confdefs.h. */
  18429. _ACEOF
  18430. cat confdefs.h >>conftest.$ac_ext
  18431. cat >>conftest.$ac_ext <<_ACEOF
  18432. /* end confdefs.h. */
  18433. #include <stdlib.h>
  18434. #include <stdarg.h>
  18435. #include <string.h>
  18436. #include <float.h>
  18437. int
  18438. main ()
  18439. {
  18440. ;
  18441. return 0;
  18442. }
  18443. _ACEOF
  18444. rm -f conftest.$ac_objext
  18445. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18446. (eval $ac_compile) 2>conftest.er1
  18447. ac_status=$?
  18448. grep -v '^ *+' conftest.er1 >conftest.err
  18449. rm -f conftest.er1
  18450. cat conftest.err >&5
  18451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18452. (exit $ac_status); } &&
  18453. { ac_try='test -z "$ac_c_werror_flag"
  18454. || test ! -s conftest.err'
  18455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18456. (eval $ac_try) 2>&5
  18457. ac_status=$?
  18458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18459. (exit $ac_status); }; } &&
  18460. { ac_try='test -s conftest.$ac_objext'
  18461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18462. (eval $ac_try) 2>&5
  18463. ac_status=$?
  18464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18465. (exit $ac_status); }; }; then
  18466. ac_cv_header_stdc=yes
  18467. else
  18468. echo "$as_me: failed program was:" >&5
  18469. sed 's/^/| /' conftest.$ac_ext >&5
  18470. ac_cv_header_stdc=no
  18471. fi
  18472. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18473. if test $ac_cv_header_stdc = yes; then
  18474. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18475. cat >conftest.$ac_ext <<_ACEOF
  18476. /* confdefs.h. */
  18477. _ACEOF
  18478. cat confdefs.h >>conftest.$ac_ext
  18479. cat >>conftest.$ac_ext <<_ACEOF
  18480. /* end confdefs.h. */
  18481. #include <string.h>
  18482. _ACEOF
  18483. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18484. $EGREP "memchr" >/dev/null 2>&1; then
  18485. :
  18486. else
  18487. ac_cv_header_stdc=no
  18488. fi
  18489. rm -f conftest*
  18490. fi
  18491. if test $ac_cv_header_stdc = yes; then
  18492. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18493. cat >conftest.$ac_ext <<_ACEOF
  18494. /* confdefs.h. */
  18495. _ACEOF
  18496. cat confdefs.h >>conftest.$ac_ext
  18497. cat >>conftest.$ac_ext <<_ACEOF
  18498. /* end confdefs.h. */
  18499. #include <stdlib.h>
  18500. _ACEOF
  18501. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18502. $EGREP "free" >/dev/null 2>&1; then
  18503. :
  18504. else
  18505. ac_cv_header_stdc=no
  18506. fi
  18507. rm -f conftest*
  18508. fi
  18509. if test $ac_cv_header_stdc = yes; then
  18510. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18511. if test "$cross_compiling" = yes; then
  18512. :
  18513. else
  18514. cat >conftest.$ac_ext <<_ACEOF
  18515. /* confdefs.h. */
  18516. _ACEOF
  18517. cat confdefs.h >>conftest.$ac_ext
  18518. cat >>conftest.$ac_ext <<_ACEOF
  18519. /* end confdefs.h. */
  18520. #include <ctype.h>
  18521. #if ((' ' & 0x0FF) == 0x020)
  18522. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18523. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18524. #else
  18525. # define ISLOWER(c) \
  18526. (('a' <= (c) && (c) <= 'i') \
  18527. || ('j' <= (c) && (c) <= 'r') \
  18528. || ('s' <= (c) && (c) <= 'z'))
  18529. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18530. #endif
  18531. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18532. int
  18533. main ()
  18534. {
  18535. int i;
  18536. for (i = 0; i < 256; i++)
  18537. if (XOR (islower (i), ISLOWER (i))
  18538. || toupper (i) != TOUPPER (i))
  18539. exit(2);
  18540. exit (0);
  18541. }
  18542. _ACEOF
  18543. rm -f conftest$ac_exeext
  18544. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18545. (eval $ac_link) 2>&5
  18546. ac_status=$?
  18547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18548. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18550. (eval $ac_try) 2>&5
  18551. ac_status=$?
  18552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18553. (exit $ac_status); }; }; then
  18554. :
  18555. else
  18556. echo "$as_me: program exited with status $ac_status" >&5
  18557. echo "$as_me: failed program was:" >&5
  18558. sed 's/^/| /' conftest.$ac_ext >&5
  18559. ( exit $ac_status )
  18560. ac_cv_header_stdc=no
  18561. fi
  18562. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18563. fi
  18564. fi
  18565. fi
  18566. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18567. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  18568. if test $ac_cv_header_stdc = yes; then
  18569. cat >>confdefs.h <<\_ACEOF
  18570. #define STDC_HEADERS 1
  18571. _ACEOF
  18572. fi
  18573. echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  18574. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
  18575. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  18576. echo $ECHO_N "(cached) $ECHO_C" >&6
  18577. else
  18578. cat >conftest.$ac_ext <<_ACEOF
  18579. /* confdefs.h. */
  18580. _ACEOF
  18581. cat confdefs.h >>conftest.$ac_ext
  18582. cat >>conftest.$ac_ext <<_ACEOF
  18583. /* end confdefs.h. */
  18584. #include <sys/types.h>
  18585. int
  18586. main ()
  18587. {
  18588. return makedev(0, 0);
  18589. ;
  18590. return 0;
  18591. }
  18592. _ACEOF
  18593. rm -f conftest.$ac_objext conftest$ac_exeext
  18594. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18595. (eval $ac_link) 2>conftest.er1
  18596. ac_status=$?
  18597. grep -v '^ *+' conftest.er1 >conftest.err
  18598. rm -f conftest.er1
  18599. cat conftest.err >&5
  18600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18601. (exit $ac_status); } &&
  18602. { ac_try='test -z "$ac_c_werror_flag"
  18603. || test ! -s conftest.err'
  18604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18605. (eval $ac_try) 2>&5
  18606. ac_status=$?
  18607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18608. (exit $ac_status); }; } &&
  18609. { ac_try='test -s conftest$ac_exeext'
  18610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18611. (eval $ac_try) 2>&5
  18612. ac_status=$?
  18613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18614. (exit $ac_status); }; }; then
  18615. ac_cv_header_sys_types_h_makedev=yes
  18616. else
  18617. echo "$as_me: failed program was:" >&5
  18618. sed 's/^/| /' conftest.$ac_ext >&5
  18619. ac_cv_header_sys_types_h_makedev=no
  18620. fi
  18621. rm -f conftest.err conftest.$ac_objext \
  18622. conftest$ac_exeext conftest.$ac_ext
  18623. fi
  18624. echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  18625. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
  18626. if test $ac_cv_header_sys_types_h_makedev = no; then
  18627. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18628. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18629. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  18630. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18631. echo $ECHO_N "(cached) $ECHO_C" >&6
  18632. fi
  18633. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18634. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  18635. else
  18636. # Is the header compilable?
  18637. echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  18638. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
  18639. cat >conftest.$ac_ext <<_ACEOF
  18640. /* confdefs.h. */
  18641. _ACEOF
  18642. cat confdefs.h >>conftest.$ac_ext
  18643. cat >>conftest.$ac_ext <<_ACEOF
  18644. /* end confdefs.h. */
  18645. $ac_includes_default
  18646. #include <sys/mkdev.h>
  18647. _ACEOF
  18648. rm -f conftest.$ac_objext
  18649. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18650. (eval $ac_compile) 2>conftest.er1
  18651. ac_status=$?
  18652. grep -v '^ *+' conftest.er1 >conftest.err
  18653. rm -f conftest.er1
  18654. cat conftest.err >&5
  18655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18656. (exit $ac_status); } &&
  18657. { ac_try='test -z "$ac_c_werror_flag"
  18658. || test ! -s conftest.err'
  18659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18660. (eval $ac_try) 2>&5
  18661. ac_status=$?
  18662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18663. (exit $ac_status); }; } &&
  18664. { ac_try='test -s conftest.$ac_objext'
  18665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18666. (eval $ac_try) 2>&5
  18667. ac_status=$?
  18668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18669. (exit $ac_status); }; }; then
  18670. ac_header_compiler=yes
  18671. else
  18672. echo "$as_me: failed program was:" >&5
  18673. sed 's/^/| /' conftest.$ac_ext >&5
  18674. ac_header_compiler=no
  18675. fi
  18676. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18677. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18678. echo "${ECHO_T}$ac_header_compiler" >&6
  18679. # Is the header present?
  18680. echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  18681. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
  18682. cat >conftest.$ac_ext <<_ACEOF
  18683. /* confdefs.h. */
  18684. _ACEOF
  18685. cat confdefs.h >>conftest.$ac_ext
  18686. cat >>conftest.$ac_ext <<_ACEOF
  18687. /* end confdefs.h. */
  18688. #include <sys/mkdev.h>
  18689. _ACEOF
  18690. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18691. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18692. ac_status=$?
  18693. grep -v '^ *+' conftest.er1 >conftest.err
  18694. rm -f conftest.er1
  18695. cat conftest.err >&5
  18696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18697. (exit $ac_status); } >/dev/null; then
  18698. if test -s conftest.err; then
  18699. ac_cpp_err=$ac_c_preproc_warn_flag
  18700. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18701. else
  18702. ac_cpp_err=
  18703. fi
  18704. else
  18705. ac_cpp_err=yes
  18706. fi
  18707. if test -z "$ac_cpp_err"; then
  18708. ac_header_preproc=yes
  18709. else
  18710. echo "$as_me: failed program was:" >&5
  18711. sed 's/^/| /' conftest.$ac_ext >&5
  18712. ac_header_preproc=no
  18713. fi
  18714. rm -f conftest.err conftest.$ac_ext
  18715. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18716. echo "${ECHO_T}$ac_header_preproc" >&6
  18717. # So? What about this header?
  18718. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18719. yes:no: )
  18720. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18721. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18722. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  18723. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  18724. ac_header_preproc=yes
  18725. ;;
  18726. no:yes:* )
  18727. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  18728. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  18729. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  18730. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  18731. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  18732. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  18733. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  18734. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18735. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  18736. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  18737. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  18738. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  18739. (
  18740. cat <<\_ASBOX
  18741. ## ------------------------------------------ ##
  18742. ## Report this to the AC_PACKAGE_NAME lists. ##
  18743. ## ------------------------------------------ ##
  18744. _ASBOX
  18745. ) |
  18746. sed "s/^/$as_me: WARNING: /" >&2
  18747. ;;
  18748. esac
  18749. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18750. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  18751. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18752. echo $ECHO_N "(cached) $ECHO_C" >&6
  18753. else
  18754. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  18755. fi
  18756. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18757. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  18758. fi
  18759. if test $ac_cv_header_sys_mkdev_h = yes; then
  18760. cat >>confdefs.h <<\_ACEOF
  18761. #define MAJOR_IN_MKDEV 1
  18762. _ACEOF
  18763. fi
  18764. if test $ac_cv_header_sys_mkdev_h = no; then
  18765. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18766. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18767. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  18768. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18769. echo $ECHO_N "(cached) $ECHO_C" >&6
  18770. fi
  18771. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18772. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  18773. else
  18774. # Is the header compilable?
  18775. echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  18776. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
  18777. cat >conftest.$ac_ext <<_ACEOF
  18778. /* confdefs.h. */
  18779. _ACEOF
  18780. cat confdefs.h >>conftest.$ac_ext
  18781. cat >>conftest.$ac_ext <<_ACEOF
  18782. /* end confdefs.h. */
  18783. $ac_includes_default
  18784. #include <sys/sysmacros.h>
  18785. _ACEOF
  18786. rm -f conftest.$ac_objext
  18787. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18788. (eval $ac_compile) 2>conftest.er1
  18789. ac_status=$?
  18790. grep -v '^ *+' conftest.er1 >conftest.err
  18791. rm -f conftest.er1
  18792. cat conftest.err >&5
  18793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18794. (exit $ac_status); } &&
  18795. { ac_try='test -z "$ac_c_werror_flag"
  18796. || test ! -s conftest.err'
  18797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18798. (eval $ac_try) 2>&5
  18799. ac_status=$?
  18800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18801. (exit $ac_status); }; } &&
  18802. { ac_try='test -s conftest.$ac_objext'
  18803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18804. (eval $ac_try) 2>&5
  18805. ac_status=$?
  18806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18807. (exit $ac_status); }; }; then
  18808. ac_header_compiler=yes
  18809. else
  18810. echo "$as_me: failed program was:" >&5
  18811. sed 's/^/| /' conftest.$ac_ext >&5
  18812. ac_header_compiler=no
  18813. fi
  18814. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18815. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18816. echo "${ECHO_T}$ac_header_compiler" >&6
  18817. # Is the header present?
  18818. echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  18819. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
  18820. cat >conftest.$ac_ext <<_ACEOF
  18821. /* confdefs.h. */
  18822. _ACEOF
  18823. cat confdefs.h >>conftest.$ac_ext
  18824. cat >>conftest.$ac_ext <<_ACEOF
  18825. /* end confdefs.h. */
  18826. #include <sys/sysmacros.h>
  18827. _ACEOF
  18828. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18829. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18830. ac_status=$?
  18831. grep -v '^ *+' conftest.er1 >conftest.err
  18832. rm -f conftest.er1
  18833. cat conftest.err >&5
  18834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18835. (exit $ac_status); } >/dev/null; then
  18836. if test -s conftest.err; then
  18837. ac_cpp_err=$ac_c_preproc_warn_flag
  18838. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18839. else
  18840. ac_cpp_err=
  18841. fi
  18842. else
  18843. ac_cpp_err=yes
  18844. fi
  18845. if test -z "$ac_cpp_err"; then
  18846. ac_header_preproc=yes
  18847. else
  18848. echo "$as_me: failed program was:" >&5
  18849. sed 's/^/| /' conftest.$ac_ext >&5
  18850. ac_header_preproc=no
  18851. fi
  18852. rm -f conftest.err conftest.$ac_ext
  18853. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18854. echo "${ECHO_T}$ac_header_preproc" >&6
  18855. # So? What about this header?
  18856. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18857. yes:no: )
  18858. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18859. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18860. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  18861. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  18862. ac_header_preproc=yes
  18863. ;;
  18864. no:yes:* )
  18865. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  18866. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  18867. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  18868. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  18869. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  18870. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  18871. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  18872. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18873. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  18874. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  18875. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  18876. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  18877. (
  18878. cat <<\_ASBOX
  18879. ## ------------------------------------------ ##
  18880. ## Report this to the AC_PACKAGE_NAME lists. ##
  18881. ## ------------------------------------------ ##
  18882. _ASBOX
  18883. ) |
  18884. sed "s/^/$as_me: WARNING: /" >&2
  18885. ;;
  18886. esac
  18887. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18888. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  18889. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18890. echo $ECHO_N "(cached) $ECHO_C" >&6
  18891. else
  18892. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  18893. fi
  18894. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18895. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  18896. fi
  18897. if test $ac_cv_header_sys_sysmacros_h = yes; then
  18898. cat >>confdefs.h <<\_ACEOF
  18899. #define MAJOR_IN_SYSMACROS 1
  18900. _ACEOF
  18901. fi
  18902. fi
  18903. fi
  18904. echo "$as_me:$LINENO: checking for size_t" >&5
  18905. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  18906. if test "${ac_cv_type_size_t+set}" = set; then
  18907. echo $ECHO_N "(cached) $ECHO_C" >&6
  18908. else
  18909. cat >conftest.$ac_ext <<_ACEOF
  18910. /* confdefs.h. */
  18911. _ACEOF
  18912. cat confdefs.h >>conftest.$ac_ext
  18913. cat >>conftest.$ac_ext <<_ACEOF
  18914. /* end confdefs.h. */
  18915. $ac_includes_default
  18916. int
  18917. main ()
  18918. {
  18919. if ((size_t *) 0)
  18920. return 0;
  18921. if (sizeof (size_t))
  18922. return 0;
  18923. ;
  18924. return 0;
  18925. }
  18926. _ACEOF
  18927. rm -f conftest.$ac_objext
  18928. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18929. (eval $ac_compile) 2>conftest.er1
  18930. ac_status=$?
  18931. grep -v '^ *+' conftest.er1 >conftest.err
  18932. rm -f conftest.er1
  18933. cat conftest.err >&5
  18934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18935. (exit $ac_status); } &&
  18936. { ac_try='test -z "$ac_c_werror_flag"
  18937. || test ! -s conftest.err'
  18938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18939. (eval $ac_try) 2>&5
  18940. ac_status=$?
  18941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18942. (exit $ac_status); }; } &&
  18943. { ac_try='test -s conftest.$ac_objext'
  18944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18945. (eval $ac_try) 2>&5
  18946. ac_status=$?
  18947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18948. (exit $ac_status); }; }; then
  18949. ac_cv_type_size_t=yes
  18950. else
  18951. echo "$as_me: failed program was:" >&5
  18952. sed 's/^/| /' conftest.$ac_ext >&5
  18953. ac_cv_type_size_t=no
  18954. fi
  18955. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18956. fi
  18957. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  18958. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  18959. if test $ac_cv_type_size_t = yes; then
  18960. :
  18961. else
  18962. cat >>confdefs.h <<_ACEOF
  18963. #define size_t unsigned
  18964. _ACEOF
  18965. fi
  18966. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  18967. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  18968. if test "${ac_cv_header_time+set}" = set; then
  18969. echo $ECHO_N "(cached) $ECHO_C" >&6
  18970. else
  18971. cat >conftest.$ac_ext <<_ACEOF
  18972. /* confdefs.h. */
  18973. _ACEOF
  18974. cat confdefs.h >>conftest.$ac_ext
  18975. cat >>conftest.$ac_ext <<_ACEOF
  18976. /* end confdefs.h. */
  18977. #include <sys/types.h>
  18978. #include <sys/time.h>
  18979. #include <time.h>
  18980. int
  18981. main ()
  18982. {
  18983. if ((struct tm *) 0)
  18984. return 0;
  18985. ;
  18986. return 0;
  18987. }
  18988. _ACEOF
  18989. rm -f conftest.$ac_objext
  18990. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18991. (eval $ac_compile) 2>conftest.er1
  18992. ac_status=$?
  18993. grep -v '^ *+' conftest.er1 >conftest.err
  18994. rm -f conftest.er1
  18995. cat conftest.err >&5
  18996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18997. (exit $ac_status); } &&
  18998. { ac_try='test -z "$ac_c_werror_flag"
  18999. || test ! -s conftest.err'
  19000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19001. (eval $ac_try) 2>&5
  19002. ac_status=$?
  19003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19004. (exit $ac_status); }; } &&
  19005. { ac_try='test -s conftest.$ac_objext'
  19006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19007. (eval $ac_try) 2>&5
  19008. ac_status=$?
  19009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19010. (exit $ac_status); }; }; then
  19011. ac_cv_header_time=yes
  19012. else
  19013. echo "$as_me: failed program was:" >&5
  19014. sed 's/^/| /' conftest.$ac_ext >&5
  19015. ac_cv_header_time=no
  19016. fi
  19017. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19018. fi
  19019. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19020. echo "${ECHO_T}$ac_cv_header_time" >&6
  19021. if test $ac_cv_header_time = yes; then
  19022. cat >>confdefs.h <<\_ACEOF
  19023. #define TIME_WITH_SYS_TIME 1
  19024. _ACEOF
  19025. fi
  19026. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19027. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  19028. if test "${ac_cv_c_const+set}" = set; then
  19029. echo $ECHO_N "(cached) $ECHO_C" >&6
  19030. else
  19031. cat >conftest.$ac_ext <<_ACEOF
  19032. /* confdefs.h. */
  19033. _ACEOF
  19034. cat confdefs.h >>conftest.$ac_ext
  19035. cat >>conftest.$ac_ext <<_ACEOF
  19036. /* end confdefs.h. */
  19037. int
  19038. main ()
  19039. {
  19040. /* FIXME: Include the comments suggested by Paul. */
  19041. #ifndef __cplusplus
  19042. /* Ultrix mips cc rejects this. */
  19043. typedef int charset[2];
  19044. const charset x;
  19045. /* SunOS 4.1.1 cc rejects this. */
  19046. char const *const *ccp;
  19047. char **p;
  19048. /* NEC SVR4.0.2 mips cc rejects this. */
  19049. struct point {int x, y;};
  19050. static struct point const zero = {0,0};
  19051. /* AIX XL C 1.02.0.0 rejects this.
  19052. It does not let you subtract one const X* pointer from another in
  19053. an arm of an if-expression whose if-part is not a constant
  19054. expression */
  19055. const char *g = "string";
  19056. ccp = &g + (g ? g-g : 0);
  19057. /* HPUX 7.0 cc rejects these. */
  19058. ++ccp;
  19059. p = (char**) ccp;
  19060. ccp = (char const *const *) p;
  19061. { /* SCO 3.2v4 cc rejects this. */
  19062. char *t;
  19063. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19064. *t++ = 0;
  19065. }
  19066. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19067. int x[] = {25, 17};
  19068. const int *foo = &x[0];
  19069. ++foo;
  19070. }
  19071. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19072. typedef const int *iptr;
  19073. iptr p = 0;
  19074. ++p;
  19075. }
  19076. { /* AIX XL C 1.02.0.0 rejects this saying
  19077. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19078. struct s { int j; const int *ap[3]; };
  19079. struct s *b; b->j = 5;
  19080. }
  19081. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19082. const int foo = 10;
  19083. }
  19084. #endif
  19085. ;
  19086. return 0;
  19087. }
  19088. _ACEOF
  19089. rm -f conftest.$ac_objext
  19090. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19091. (eval $ac_compile) 2>conftest.er1
  19092. ac_status=$?
  19093. grep -v '^ *+' conftest.er1 >conftest.err
  19094. rm -f conftest.er1
  19095. cat conftest.err >&5
  19096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19097. (exit $ac_status); } &&
  19098. { ac_try='test -z "$ac_c_werror_flag"
  19099. || test ! -s conftest.err'
  19100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19101. (eval $ac_try) 2>&5
  19102. ac_status=$?
  19103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19104. (exit $ac_status); }; } &&
  19105. { ac_try='test -s conftest.$ac_objext'
  19106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19107. (eval $ac_try) 2>&5
  19108. ac_status=$?
  19109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19110. (exit $ac_status); }; }; then
  19111. ac_cv_c_const=yes
  19112. else
  19113. echo "$as_me: failed program was:" >&5
  19114. sed 's/^/| /' conftest.$ac_ext >&5
  19115. ac_cv_c_const=no
  19116. fi
  19117. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19118. fi
  19119. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  19120. echo "${ECHO_T}$ac_cv_c_const" >&6
  19121. if test $ac_cv_c_const = no; then
  19122. cat >>confdefs.h <<\_ACEOF
  19123. #define const
  19124. _ACEOF
  19125. fi
  19126. echo "$as_me:$LINENO: checking for inline" >&5
  19127. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  19128. if test "${ac_cv_c_inline+set}" = set; then
  19129. echo $ECHO_N "(cached) $ECHO_C" >&6
  19130. else
  19131. ac_cv_c_inline=no
  19132. for ac_kw in inline __inline__ __inline; do
  19133. cat >conftest.$ac_ext <<_ACEOF
  19134. /* confdefs.h. */
  19135. _ACEOF
  19136. cat confdefs.h >>conftest.$ac_ext
  19137. cat >>conftest.$ac_ext <<_ACEOF
  19138. /* end confdefs.h. */
  19139. #ifndef __cplusplus
  19140. typedef int foo_t;
  19141. static $ac_kw foo_t static_foo () {return 0; }
  19142. $ac_kw foo_t foo () {return 0; }
  19143. #endif
  19144. _ACEOF
  19145. rm -f conftest.$ac_objext
  19146. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19147. (eval $ac_compile) 2>conftest.er1
  19148. ac_status=$?
  19149. grep -v '^ *+' conftest.er1 >conftest.err
  19150. rm -f conftest.er1
  19151. cat conftest.err >&5
  19152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19153. (exit $ac_status); } &&
  19154. { ac_try='test -z "$ac_c_werror_flag"
  19155. || test ! -s conftest.err'
  19156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19157. (eval $ac_try) 2>&5
  19158. ac_status=$?
  19159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19160. (exit $ac_status); }; } &&
  19161. { ac_try='test -s conftest.$ac_objext'
  19162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19163. (eval $ac_try) 2>&5
  19164. ac_status=$?
  19165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19166. (exit $ac_status); }; }; then
  19167. ac_cv_c_inline=$ac_kw; break
  19168. else
  19169. echo "$as_me: failed program was:" >&5
  19170. sed 's/^/| /' conftest.$ac_ext >&5
  19171. fi
  19172. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19173. done
  19174. fi
  19175. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  19176. echo "${ECHO_T}$ac_cv_c_inline" >&6
  19177. case $ac_cv_c_inline in
  19178. inline | yes) ;;
  19179. *)
  19180. case $ac_cv_c_inline in
  19181. no) ac_val=;;
  19182. *) ac_val=$ac_cv_c_inline;;
  19183. esac
  19184. cat >>confdefs.h <<_ACEOF
  19185. #ifndef __cplusplus
  19186. #define inline $ac_val
  19187. #endif
  19188. _ACEOF
  19189. ;;
  19190. esac
  19191. # Check whether --enable-largefile or --disable-largefile was given.
  19192. if test "${enable_largefile+set}" = set; then
  19193. enableval="$enable_largefile"
  19194. fi;
  19195. if test "$enable_largefile" != no; then
  19196. echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  19197. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  19198. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19199. echo $ECHO_N "(cached) $ECHO_C" >&6
  19200. else
  19201. ac_cv_sys_largefile_CC=no
  19202. if test "$GCC" != yes; then
  19203. ac_save_CC=$CC
  19204. while :; do
  19205. # IRIX 6.2 and later do not support large files by default,
  19206. # so use the C compiler's -n32 option if that helps.
  19207. cat >conftest.$ac_ext <<_ACEOF
  19208. /* confdefs.h. */
  19209. _ACEOF
  19210. cat confdefs.h >>conftest.$ac_ext
  19211. cat >>conftest.$ac_ext <<_ACEOF
  19212. /* end confdefs.h. */
  19213. #include <sys/types.h>
  19214. /* Check that off_t can represent 2**63 - 1 correctly.
  19215. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19216. since some C++ compilers masquerading as C compilers
  19217. incorrectly reject 9223372036854775807. */
  19218. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19219. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19220. && LARGE_OFF_T % 2147483647 == 1)
  19221. ? 1 : -1];
  19222. int
  19223. main ()
  19224. {
  19225. ;
  19226. return 0;
  19227. }
  19228. _ACEOF
  19229. rm -f conftest.$ac_objext
  19230. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19231. (eval $ac_compile) 2>conftest.er1
  19232. ac_status=$?
  19233. grep -v '^ *+' conftest.er1 >conftest.err
  19234. rm -f conftest.er1
  19235. cat conftest.err >&5
  19236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19237. (exit $ac_status); } &&
  19238. { ac_try='test -z "$ac_c_werror_flag"
  19239. || test ! -s conftest.err'
  19240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19241. (eval $ac_try) 2>&5
  19242. ac_status=$?
  19243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19244. (exit $ac_status); }; } &&
  19245. { ac_try='test -s conftest.$ac_objext'
  19246. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19247. (eval $ac_try) 2>&5
  19248. ac_status=$?
  19249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19250. (exit $ac_status); }; }; then
  19251. break
  19252. else
  19253. echo "$as_me: failed program was:" >&5
  19254. sed 's/^/| /' conftest.$ac_ext >&5
  19255. fi
  19256. rm -f conftest.err conftest.$ac_objext
  19257. CC="$CC -n32"
  19258. rm -f conftest.$ac_objext
  19259. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19260. (eval $ac_compile) 2>conftest.er1
  19261. ac_status=$?
  19262. grep -v '^ *+' conftest.er1 >conftest.err
  19263. rm -f conftest.er1
  19264. cat conftest.err >&5
  19265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19266. (exit $ac_status); } &&
  19267. { ac_try='test -z "$ac_c_werror_flag"
  19268. || test ! -s conftest.err'
  19269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19270. (eval $ac_try) 2>&5
  19271. ac_status=$?
  19272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19273. (exit $ac_status); }; } &&
  19274. { ac_try='test -s conftest.$ac_objext'
  19275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19276. (eval $ac_try) 2>&5
  19277. ac_status=$?
  19278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19279. (exit $ac_status); }; }; then
  19280. ac_cv_sys_largefile_CC=' -n32'; break
  19281. else
  19282. echo "$as_me: failed program was:" >&5
  19283. sed 's/^/| /' conftest.$ac_ext >&5
  19284. fi
  19285. rm -f conftest.err conftest.$ac_objext
  19286. break
  19287. done
  19288. CC=$ac_save_CC
  19289. rm -f conftest.$ac_ext
  19290. fi
  19291. fi
  19292. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  19293. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  19294. if test "$ac_cv_sys_largefile_CC" != no; then
  19295. CC=$CC$ac_cv_sys_largefile_CC
  19296. fi
  19297. echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  19298. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  19299. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  19300. echo $ECHO_N "(cached) $ECHO_C" >&6
  19301. else
  19302. while :; do
  19303. ac_cv_sys_file_offset_bits=no
  19304. cat >conftest.$ac_ext <<_ACEOF
  19305. /* confdefs.h. */
  19306. _ACEOF
  19307. cat confdefs.h >>conftest.$ac_ext
  19308. cat >>conftest.$ac_ext <<_ACEOF
  19309. /* end confdefs.h. */
  19310. #include <sys/types.h>
  19311. /* Check that off_t can represent 2**63 - 1 correctly.
  19312. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19313. since some C++ compilers masquerading as C compilers
  19314. incorrectly reject 9223372036854775807. */
  19315. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19316. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19317. && LARGE_OFF_T % 2147483647 == 1)
  19318. ? 1 : -1];
  19319. int
  19320. main ()
  19321. {
  19322. ;
  19323. return 0;
  19324. }
  19325. _ACEOF
  19326. rm -f conftest.$ac_objext
  19327. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19328. (eval $ac_compile) 2>conftest.er1
  19329. ac_status=$?
  19330. grep -v '^ *+' conftest.er1 >conftest.err
  19331. rm -f conftest.er1
  19332. cat conftest.err >&5
  19333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19334. (exit $ac_status); } &&
  19335. { ac_try='test -z "$ac_c_werror_flag"
  19336. || test ! -s conftest.err'
  19337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19338. (eval $ac_try) 2>&5
  19339. ac_status=$?
  19340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19341. (exit $ac_status); }; } &&
  19342. { ac_try='test -s conftest.$ac_objext'
  19343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19344. (eval $ac_try) 2>&5
  19345. ac_status=$?
  19346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19347. (exit $ac_status); }; }; then
  19348. break
  19349. else
  19350. echo "$as_me: failed program was:" >&5
  19351. sed 's/^/| /' conftest.$ac_ext >&5
  19352. fi
  19353. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19354. cat >conftest.$ac_ext <<_ACEOF
  19355. /* confdefs.h. */
  19356. _ACEOF
  19357. cat confdefs.h >>conftest.$ac_ext
  19358. cat >>conftest.$ac_ext <<_ACEOF
  19359. /* end confdefs.h. */
  19360. #define _FILE_OFFSET_BITS 64
  19361. #include <sys/types.h>
  19362. /* Check that off_t can represent 2**63 - 1 correctly.
  19363. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19364. since some C++ compilers masquerading as C compilers
  19365. incorrectly reject 9223372036854775807. */
  19366. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19367. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19368. && LARGE_OFF_T % 2147483647 == 1)
  19369. ? 1 : -1];
  19370. int
  19371. main ()
  19372. {
  19373. ;
  19374. return 0;
  19375. }
  19376. _ACEOF
  19377. rm -f conftest.$ac_objext
  19378. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19379. (eval $ac_compile) 2>conftest.er1
  19380. ac_status=$?
  19381. grep -v '^ *+' conftest.er1 >conftest.err
  19382. rm -f conftest.er1
  19383. cat conftest.err >&5
  19384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19385. (exit $ac_status); } &&
  19386. { ac_try='test -z "$ac_c_werror_flag"
  19387. || test ! -s conftest.err'
  19388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19389. (eval $ac_try) 2>&5
  19390. ac_status=$?
  19391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19392. (exit $ac_status); }; } &&
  19393. { ac_try='test -s conftest.$ac_objext'
  19394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19395. (eval $ac_try) 2>&5
  19396. ac_status=$?
  19397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19398. (exit $ac_status); }; }; then
  19399. ac_cv_sys_file_offset_bits=64; break
  19400. else
  19401. echo "$as_me: failed program was:" >&5
  19402. sed 's/^/| /' conftest.$ac_ext >&5
  19403. fi
  19404. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19405. break
  19406. done
  19407. fi
  19408. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  19409. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  19410. if test "$ac_cv_sys_file_offset_bits" != no; then
  19411. cat >>confdefs.h <<_ACEOF
  19412. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  19413. _ACEOF
  19414. fi
  19415. rm -f conftest*
  19416. echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  19417. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  19418. if test "${ac_cv_sys_large_files+set}" = set; then
  19419. echo $ECHO_N "(cached) $ECHO_C" >&6
  19420. else
  19421. while :; do
  19422. ac_cv_sys_large_files=no
  19423. cat >conftest.$ac_ext <<_ACEOF
  19424. /* confdefs.h. */
  19425. _ACEOF
  19426. cat confdefs.h >>conftest.$ac_ext
  19427. cat >>conftest.$ac_ext <<_ACEOF
  19428. /* end confdefs.h. */
  19429. #include <sys/types.h>
  19430. /* Check that off_t can represent 2**63 - 1 correctly.
  19431. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19432. since some C++ compilers masquerading as C compilers
  19433. incorrectly reject 9223372036854775807. */
  19434. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19435. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19436. && LARGE_OFF_T % 2147483647 == 1)
  19437. ? 1 : -1];
  19438. int
  19439. main ()
  19440. {
  19441. ;
  19442. return 0;
  19443. }
  19444. _ACEOF
  19445. rm -f conftest.$ac_objext
  19446. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19447. (eval $ac_compile) 2>conftest.er1
  19448. ac_status=$?
  19449. grep -v '^ *+' conftest.er1 >conftest.err
  19450. rm -f conftest.er1
  19451. cat conftest.err >&5
  19452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19453. (exit $ac_status); } &&
  19454. { ac_try='test -z "$ac_c_werror_flag"
  19455. || test ! -s conftest.err'
  19456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19457. (eval $ac_try) 2>&5
  19458. ac_status=$?
  19459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19460. (exit $ac_status); }; } &&
  19461. { ac_try='test -s conftest.$ac_objext'
  19462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19463. (eval $ac_try) 2>&5
  19464. ac_status=$?
  19465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19466. (exit $ac_status); }; }; then
  19467. break
  19468. else
  19469. echo "$as_me: failed program was:" >&5
  19470. sed 's/^/| /' conftest.$ac_ext >&5
  19471. fi
  19472. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19473. cat >conftest.$ac_ext <<_ACEOF
  19474. /* confdefs.h. */
  19475. _ACEOF
  19476. cat confdefs.h >>conftest.$ac_ext
  19477. cat >>conftest.$ac_ext <<_ACEOF
  19478. /* end confdefs.h. */
  19479. #define _LARGE_FILES 1
  19480. #include <sys/types.h>
  19481. /* Check that off_t can represent 2**63 - 1 correctly.
  19482. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19483. since some C++ compilers masquerading as C compilers
  19484. incorrectly reject 9223372036854775807. */
  19485. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19486. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19487. && LARGE_OFF_T % 2147483647 == 1)
  19488. ? 1 : -1];
  19489. int
  19490. main ()
  19491. {
  19492. ;
  19493. return 0;
  19494. }
  19495. _ACEOF
  19496. rm -f conftest.$ac_objext
  19497. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19498. (eval $ac_compile) 2>conftest.er1
  19499. ac_status=$?
  19500. grep -v '^ *+' conftest.er1 >conftest.err
  19501. rm -f conftest.er1
  19502. cat conftest.err >&5
  19503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19504. (exit $ac_status); } &&
  19505. { ac_try='test -z "$ac_c_werror_flag"
  19506. || test ! -s conftest.err'
  19507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19508. (eval $ac_try) 2>&5
  19509. ac_status=$?
  19510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19511. (exit $ac_status); }; } &&
  19512. { ac_try='test -s conftest.$ac_objext'
  19513. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19514. (eval $ac_try) 2>&5
  19515. ac_status=$?
  19516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19517. (exit $ac_status); }; }; then
  19518. ac_cv_sys_large_files=1; break
  19519. else
  19520. echo "$as_me: failed program was:" >&5
  19521. sed 's/^/| /' conftest.$ac_ext >&5
  19522. fi
  19523. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19524. break
  19525. done
  19526. fi
  19527. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  19528. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  19529. if test "$ac_cv_sys_large_files" != no; then
  19530. cat >>confdefs.h <<_ACEOF
  19531. #define _LARGE_FILES $ac_cv_sys_large_files
  19532. _ACEOF
  19533. fi
  19534. rm -f conftest*
  19535. fi
  19536. echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  19537. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
  19538. if test "${ac_cv_sys_largefile_source+set}" = set; then
  19539. echo $ECHO_N "(cached) $ECHO_C" >&6
  19540. else
  19541. while :; do
  19542. ac_cv_sys_largefile_source=no
  19543. cat >conftest.$ac_ext <<_ACEOF
  19544. /* confdefs.h. */
  19545. _ACEOF
  19546. cat confdefs.h >>conftest.$ac_ext
  19547. cat >>conftest.$ac_ext <<_ACEOF
  19548. /* end confdefs.h. */
  19549. #include <stdio.h>
  19550. int
  19551. main ()
  19552. {
  19553. return !fseeko;
  19554. ;
  19555. return 0;
  19556. }
  19557. _ACEOF
  19558. rm -f conftest.$ac_objext
  19559. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19560. (eval $ac_compile) 2>conftest.er1
  19561. ac_status=$?
  19562. grep -v '^ *+' conftest.er1 >conftest.err
  19563. rm -f conftest.er1
  19564. cat conftest.err >&5
  19565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19566. (exit $ac_status); } &&
  19567. { ac_try='test -z "$ac_c_werror_flag"
  19568. || test ! -s conftest.err'
  19569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19570. (eval $ac_try) 2>&5
  19571. ac_status=$?
  19572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19573. (exit $ac_status); }; } &&
  19574. { ac_try='test -s conftest.$ac_objext'
  19575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19576. (eval $ac_try) 2>&5
  19577. ac_status=$?
  19578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19579. (exit $ac_status); }; }; then
  19580. break
  19581. else
  19582. echo "$as_me: failed program was:" >&5
  19583. sed 's/^/| /' conftest.$ac_ext >&5
  19584. fi
  19585. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19586. cat >conftest.$ac_ext <<_ACEOF
  19587. /* confdefs.h. */
  19588. _ACEOF
  19589. cat confdefs.h >>conftest.$ac_ext
  19590. cat >>conftest.$ac_ext <<_ACEOF
  19591. /* end confdefs.h. */
  19592. #define _LARGEFILE_SOURCE 1
  19593. #include <stdio.h>
  19594. int
  19595. main ()
  19596. {
  19597. return !fseeko;
  19598. ;
  19599. return 0;
  19600. }
  19601. _ACEOF
  19602. rm -f conftest.$ac_objext
  19603. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19604. (eval $ac_compile) 2>conftest.er1
  19605. ac_status=$?
  19606. grep -v '^ *+' conftest.er1 >conftest.err
  19607. rm -f conftest.er1
  19608. cat conftest.err >&5
  19609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19610. (exit $ac_status); } &&
  19611. { ac_try='test -z "$ac_c_werror_flag"
  19612. || test ! -s conftest.err'
  19613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19614. (eval $ac_try) 2>&5
  19615. ac_status=$?
  19616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19617. (exit $ac_status); }; } &&
  19618. { ac_try='test -s conftest.$ac_objext'
  19619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19620. (eval $ac_try) 2>&5
  19621. ac_status=$?
  19622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19623. (exit $ac_status); }; }; then
  19624. ac_cv_sys_largefile_source=1; break
  19625. else
  19626. echo "$as_me: failed program was:" >&5
  19627. sed 's/^/| /' conftest.$ac_ext >&5
  19628. fi
  19629. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19630. break
  19631. done
  19632. fi
  19633. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  19634. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
  19635. if test "$ac_cv_sys_largefile_source" != no; then
  19636. cat >>confdefs.h <<_ACEOF
  19637. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  19638. _ACEOF
  19639. fi
  19640. rm -f conftest*
  19641. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  19642. # in glibc 2.1.3, but that breaks too many other things.
  19643. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  19644. echo "$as_me:$LINENO: checking for fseeko" >&5
  19645. echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
  19646. if test "${ac_cv_func_fseeko+set}" = set; then
  19647. echo $ECHO_N "(cached) $ECHO_C" >&6
  19648. else
  19649. cat >conftest.$ac_ext <<_ACEOF
  19650. /* confdefs.h. */
  19651. _ACEOF
  19652. cat confdefs.h >>conftest.$ac_ext
  19653. cat >>conftest.$ac_ext <<_ACEOF
  19654. /* end confdefs.h. */
  19655. #include <stdio.h>
  19656. int
  19657. main ()
  19658. {
  19659. return fseeko && fseeko (stdin, 0, 0);
  19660. ;
  19661. return 0;
  19662. }
  19663. _ACEOF
  19664. rm -f conftest.$ac_objext conftest$ac_exeext
  19665. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19666. (eval $ac_link) 2>conftest.er1
  19667. ac_status=$?
  19668. grep -v '^ *+' conftest.er1 >conftest.err
  19669. rm -f conftest.er1
  19670. cat conftest.err >&5
  19671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19672. (exit $ac_status); } &&
  19673. { ac_try='test -z "$ac_c_werror_flag"
  19674. || test ! -s conftest.err'
  19675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19676. (eval $ac_try) 2>&5
  19677. ac_status=$?
  19678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19679. (exit $ac_status); }; } &&
  19680. { ac_try='test -s conftest$ac_exeext'
  19681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19682. (eval $ac_try) 2>&5
  19683. ac_status=$?
  19684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19685. (exit $ac_status); }; }; then
  19686. ac_cv_func_fseeko=yes
  19687. else
  19688. echo "$as_me: failed program was:" >&5
  19689. sed 's/^/| /' conftest.$ac_ext >&5
  19690. ac_cv_func_fseeko=no
  19691. fi
  19692. rm -f conftest.err conftest.$ac_objext \
  19693. conftest$ac_exeext conftest.$ac_ext
  19694. fi
  19695. echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
  19696. echo "${ECHO_T}$ac_cv_func_fseeko" >&6
  19697. if test $ac_cv_func_fseeko = yes; then
  19698. cat >>confdefs.h <<\_ACEOF
  19699. #define HAVE_FSEEKO 1
  19700. _ACEOF
  19701. fi
  19702. echo "$as_me:$LINENO: checking for u_int8_t" >&5
  19703. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
  19704. if test "${ac_cv_type_u_int8_t+set}" = set; then
  19705. echo $ECHO_N "(cached) $ECHO_C" >&6
  19706. else
  19707. cat >conftest.$ac_ext <<_ACEOF
  19708. /* confdefs.h. */
  19709. _ACEOF
  19710. cat confdefs.h >>conftest.$ac_ext
  19711. cat >>conftest.$ac_ext <<_ACEOF
  19712. /* end confdefs.h. */
  19713. $ac_includes_default
  19714. int
  19715. main ()
  19716. {
  19717. if ((u_int8_t *) 0)
  19718. return 0;
  19719. if (sizeof (u_int8_t))
  19720. return 0;
  19721. ;
  19722. return 0;
  19723. }
  19724. _ACEOF
  19725. rm -f conftest.$ac_objext
  19726. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19727. (eval $ac_compile) 2>conftest.er1
  19728. ac_status=$?
  19729. grep -v '^ *+' conftest.er1 >conftest.err
  19730. rm -f conftest.er1
  19731. cat conftest.err >&5
  19732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19733. (exit $ac_status); } &&
  19734. { ac_try='test -z "$ac_c_werror_flag"
  19735. || test ! -s conftest.err'
  19736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19737. (eval $ac_try) 2>&5
  19738. ac_status=$?
  19739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19740. (exit $ac_status); }; } &&
  19741. { ac_try='test -s conftest.$ac_objext'
  19742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19743. (eval $ac_try) 2>&5
  19744. ac_status=$?
  19745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19746. (exit $ac_status); }; }; then
  19747. ac_cv_type_u_int8_t=yes
  19748. else
  19749. echo "$as_me: failed program was:" >&5
  19750. sed 's/^/| /' conftest.$ac_ext >&5
  19751. ac_cv_type_u_int8_t=no
  19752. fi
  19753. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19754. fi
  19755. echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  19756. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
  19757. if test $ac_cv_type_u_int8_t = yes; then
  19758. :
  19759. else
  19760. cat >>confdefs.h <<_ACEOF
  19761. #define u_int8_t uint8_t
  19762. _ACEOF
  19763. fi
  19764. echo "$as_me:$LINENO: checking for u_int16_t" >&5
  19765. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
  19766. if test "${ac_cv_type_u_int16_t+set}" = set; then
  19767. echo $ECHO_N "(cached) $ECHO_C" >&6
  19768. else
  19769. cat >conftest.$ac_ext <<_ACEOF
  19770. /* confdefs.h. */
  19771. _ACEOF
  19772. cat confdefs.h >>conftest.$ac_ext
  19773. cat >>conftest.$ac_ext <<_ACEOF
  19774. /* end confdefs.h. */
  19775. $ac_includes_default
  19776. int
  19777. main ()
  19778. {
  19779. if ((u_int16_t *) 0)
  19780. return 0;
  19781. if (sizeof (u_int16_t))
  19782. return 0;
  19783. ;
  19784. return 0;
  19785. }
  19786. _ACEOF
  19787. rm -f conftest.$ac_objext
  19788. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19789. (eval $ac_compile) 2>conftest.er1
  19790. ac_status=$?
  19791. grep -v '^ *+' conftest.er1 >conftest.err
  19792. rm -f conftest.er1
  19793. cat conftest.err >&5
  19794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19795. (exit $ac_status); } &&
  19796. { ac_try='test -z "$ac_c_werror_flag"
  19797. || test ! -s conftest.err'
  19798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19799. (eval $ac_try) 2>&5
  19800. ac_status=$?
  19801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19802. (exit $ac_status); }; } &&
  19803. { ac_try='test -s conftest.$ac_objext'
  19804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19805. (eval $ac_try) 2>&5
  19806. ac_status=$?
  19807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19808. (exit $ac_status); }; }; then
  19809. ac_cv_type_u_int16_t=yes
  19810. else
  19811. echo "$as_me: failed program was:" >&5
  19812. sed 's/^/| /' conftest.$ac_ext >&5
  19813. ac_cv_type_u_int16_t=no
  19814. fi
  19815. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19816. fi
  19817. echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  19818. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
  19819. if test $ac_cv_type_u_int16_t = yes; then
  19820. :
  19821. else
  19822. cat >>confdefs.h <<_ACEOF
  19823. #define u_int16_t uint16_t
  19824. _ACEOF
  19825. fi
  19826. echo "$as_me:$LINENO: checking for u_int32_t" >&5
  19827. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  19828. if test "${ac_cv_type_u_int32_t+set}" = set; then
  19829. echo $ECHO_N "(cached) $ECHO_C" >&6
  19830. else
  19831. cat >conftest.$ac_ext <<_ACEOF
  19832. /* confdefs.h. */
  19833. _ACEOF
  19834. cat confdefs.h >>conftest.$ac_ext
  19835. cat >>conftest.$ac_ext <<_ACEOF
  19836. /* end confdefs.h. */
  19837. $ac_includes_default
  19838. int
  19839. main ()
  19840. {
  19841. if ((u_int32_t *) 0)
  19842. return 0;
  19843. if (sizeof (u_int32_t))
  19844. return 0;
  19845. ;
  19846. return 0;
  19847. }
  19848. _ACEOF
  19849. rm -f conftest.$ac_objext
  19850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19851. (eval $ac_compile) 2>conftest.er1
  19852. ac_status=$?
  19853. grep -v '^ *+' conftest.er1 >conftest.err
  19854. rm -f conftest.er1
  19855. cat conftest.err >&5
  19856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19857. (exit $ac_status); } &&
  19858. { ac_try='test -z "$ac_c_werror_flag"
  19859. || test ! -s conftest.err'
  19860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19861. (eval $ac_try) 2>&5
  19862. ac_status=$?
  19863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19864. (exit $ac_status); }; } &&
  19865. { ac_try='test -s conftest.$ac_objext'
  19866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19867. (eval $ac_try) 2>&5
  19868. ac_status=$?
  19869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19870. (exit $ac_status); }; }; then
  19871. ac_cv_type_u_int32_t=yes
  19872. else
  19873. echo "$as_me: failed program was:" >&5
  19874. sed 's/^/| /' conftest.$ac_ext >&5
  19875. ac_cv_type_u_int32_t=no
  19876. fi
  19877. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19878. fi
  19879. echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  19880. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
  19881. if test $ac_cv_type_u_int32_t = yes; then
  19882. :
  19883. else
  19884. cat >>confdefs.h <<_ACEOF
  19885. #define u_int32_t uint32_t
  19886. _ACEOF
  19887. fi
  19888. echo "$as_me:$LINENO: checking for u_int64_t" >&5
  19889. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
  19890. if test "${ac_cv_type_u_int64_t+set}" = set; then
  19891. echo $ECHO_N "(cached) $ECHO_C" >&6
  19892. else
  19893. cat >conftest.$ac_ext <<_ACEOF
  19894. /* confdefs.h. */
  19895. _ACEOF
  19896. cat confdefs.h >>conftest.$ac_ext
  19897. cat >>conftest.$ac_ext <<_ACEOF
  19898. /* end confdefs.h. */
  19899. $ac_includes_default
  19900. int
  19901. main ()
  19902. {
  19903. if ((u_int64_t *) 0)
  19904. return 0;
  19905. if (sizeof (u_int64_t))
  19906. return 0;
  19907. ;
  19908. return 0;
  19909. }
  19910. _ACEOF
  19911. rm -f conftest.$ac_objext
  19912. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19913. (eval $ac_compile) 2>conftest.er1
  19914. ac_status=$?
  19915. grep -v '^ *+' conftest.er1 >conftest.err
  19916. rm -f conftest.er1
  19917. cat conftest.err >&5
  19918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19919. (exit $ac_status); } &&
  19920. { ac_try='test -z "$ac_c_werror_flag"
  19921. || test ! -s conftest.err'
  19922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19923. (eval $ac_try) 2>&5
  19924. ac_status=$?
  19925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19926. (exit $ac_status); }; } &&
  19927. { ac_try='test -s conftest.$ac_objext'
  19928. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19929. (eval $ac_try) 2>&5
  19930. ac_status=$?
  19931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19932. (exit $ac_status); }; }; then
  19933. ac_cv_type_u_int64_t=yes
  19934. else
  19935. echo "$as_me: failed program was:" >&5
  19936. sed 's/^/| /' conftest.$ac_ext >&5
  19937. ac_cv_type_u_int64_t=no
  19938. fi
  19939. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19940. fi
  19941. echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  19942. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
  19943. if test $ac_cv_type_u_int64_t = yes; then
  19944. :
  19945. else
  19946. cat >>confdefs.h <<_ACEOF
  19947. #define u_int64_t uint64_t
  19948. _ACEOF
  19949. fi
  19950. 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
  19951. do
  19952. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19953. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19954. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19955. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19956. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19957. echo $ECHO_N "(cached) $ECHO_C" >&6
  19958. fi
  19959. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19960. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19961. else
  19962. # Is the header compilable?
  19963. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19964. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19965. cat >conftest.$ac_ext <<_ACEOF
  19966. /* confdefs.h. */
  19967. _ACEOF
  19968. cat confdefs.h >>conftest.$ac_ext
  19969. cat >>conftest.$ac_ext <<_ACEOF
  19970. /* end confdefs.h. */
  19971. $ac_includes_default
  19972. #include <$ac_header>
  19973. _ACEOF
  19974. rm -f conftest.$ac_objext
  19975. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19976. (eval $ac_compile) 2>conftest.er1
  19977. ac_status=$?
  19978. grep -v '^ *+' conftest.er1 >conftest.err
  19979. rm -f conftest.er1
  19980. cat conftest.err >&5
  19981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19982. (exit $ac_status); } &&
  19983. { ac_try='test -z "$ac_c_werror_flag"
  19984. || test ! -s conftest.err'
  19985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19986. (eval $ac_try) 2>&5
  19987. ac_status=$?
  19988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19989. (exit $ac_status); }; } &&
  19990. { ac_try='test -s conftest.$ac_objext'
  19991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19992. (eval $ac_try) 2>&5
  19993. ac_status=$?
  19994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19995. (exit $ac_status); }; }; then
  19996. ac_header_compiler=yes
  19997. else
  19998. echo "$as_me: failed program was:" >&5
  19999. sed 's/^/| /' conftest.$ac_ext >&5
  20000. ac_header_compiler=no
  20001. fi
  20002. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20003. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20004. echo "${ECHO_T}$ac_header_compiler" >&6
  20005. # Is the header present?
  20006. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20007. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20008. cat >conftest.$ac_ext <<_ACEOF
  20009. /* confdefs.h. */
  20010. _ACEOF
  20011. cat confdefs.h >>conftest.$ac_ext
  20012. cat >>conftest.$ac_ext <<_ACEOF
  20013. /* end confdefs.h. */
  20014. #include <$ac_header>
  20015. _ACEOF
  20016. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20017. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20018. ac_status=$?
  20019. grep -v '^ *+' conftest.er1 >conftest.err
  20020. rm -f conftest.er1
  20021. cat conftest.err >&5
  20022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20023. (exit $ac_status); } >/dev/null; then
  20024. if test -s conftest.err; then
  20025. ac_cpp_err=$ac_c_preproc_warn_flag
  20026. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20027. else
  20028. ac_cpp_err=
  20029. fi
  20030. else
  20031. ac_cpp_err=yes
  20032. fi
  20033. if test -z "$ac_cpp_err"; then
  20034. ac_header_preproc=yes
  20035. else
  20036. echo "$as_me: failed program was:" >&5
  20037. sed 's/^/| /' conftest.$ac_ext >&5
  20038. ac_header_preproc=no
  20039. fi
  20040. rm -f conftest.err conftest.$ac_ext
  20041. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20042. echo "${ECHO_T}$ac_header_preproc" >&6
  20043. # So? What about this header?
  20044. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20045. yes:no: )
  20046. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20047. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20048. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20049. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20050. ac_header_preproc=yes
  20051. ;;
  20052. no:yes:* )
  20053. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20054. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20055. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20056. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20057. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20058. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20059. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20060. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20061. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20062. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20063. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20064. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20065. (
  20066. cat <<\_ASBOX
  20067. ## ------------------------------------------ ##
  20068. ## Report this to the AC_PACKAGE_NAME lists. ##
  20069. ## ------------------------------------------ ##
  20070. _ASBOX
  20071. ) |
  20072. sed "s/^/$as_me: WARNING: /" >&2
  20073. ;;
  20074. esac
  20075. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20076. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20077. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20078. echo $ECHO_N "(cached) $ECHO_C" >&6
  20079. else
  20080. eval "$as_ac_Header=\$ac_header_preproc"
  20081. fi
  20082. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20083. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20084. fi
  20085. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20086. cat >>confdefs.h <<_ACEOF
  20087. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20088. _ACEOF
  20089. fi
  20090. done
  20091. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  20092. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  20093. if test "${ac_cv_lib_socket_socket+set}" = set; then
  20094. echo $ECHO_N "(cached) $ECHO_C" >&6
  20095. else
  20096. ac_check_lib_save_LIBS=$LIBS
  20097. LIBS="-lsocket $LIBS"
  20098. cat >conftest.$ac_ext <<_ACEOF
  20099. /* confdefs.h. */
  20100. _ACEOF
  20101. cat confdefs.h >>conftest.$ac_ext
  20102. cat >>conftest.$ac_ext <<_ACEOF
  20103. /* end confdefs.h. */
  20104. /* Override any gcc2 internal prototype to avoid an error. */
  20105. #ifdef __cplusplus
  20106. extern "C"
  20107. #endif
  20108. /* We use char because int might match the return type of a gcc2
  20109. builtin and then its argument prototype would still apply. */
  20110. char socket ();
  20111. int
  20112. main ()
  20113. {
  20114. socket ();
  20115. ;
  20116. return 0;
  20117. }
  20118. _ACEOF
  20119. rm -f conftest.$ac_objext conftest$ac_exeext
  20120. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20121. (eval $ac_link) 2>conftest.er1
  20122. ac_status=$?
  20123. grep -v '^ *+' conftest.er1 >conftest.err
  20124. rm -f conftest.er1
  20125. cat conftest.err >&5
  20126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20127. (exit $ac_status); } &&
  20128. { ac_try='test -z "$ac_c_werror_flag"
  20129. || test ! -s conftest.err'
  20130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20131. (eval $ac_try) 2>&5
  20132. ac_status=$?
  20133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20134. (exit $ac_status); }; } &&
  20135. { ac_try='test -s conftest$ac_exeext'
  20136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20137. (eval $ac_try) 2>&5
  20138. ac_status=$?
  20139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20140. (exit $ac_status); }; }; then
  20141. ac_cv_lib_socket_socket=yes
  20142. else
  20143. echo "$as_me: failed program was:" >&5
  20144. sed 's/^/| /' conftest.$ac_ext >&5
  20145. ac_cv_lib_socket_socket=no
  20146. fi
  20147. rm -f conftest.err conftest.$ac_objext \
  20148. conftest$ac_exeext conftest.$ac_ext
  20149. LIBS=$ac_check_lib_save_LIBS
  20150. fi
  20151. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  20152. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  20153. if test $ac_cv_lib_socket_socket = yes; then
  20154. cat >>confdefs.h <<_ACEOF
  20155. #define HAVE_LIBSOCKET 1
  20156. _ACEOF
  20157. LIBS="-lsocket $LIBS"
  20158. fi
  20159. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  20160. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  20161. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  20162. echo $ECHO_N "(cached) $ECHO_C" >&6
  20163. else
  20164. ac_check_lib_save_LIBS=$LIBS
  20165. LIBS="-lnsl $LIBS"
  20166. cat >conftest.$ac_ext <<_ACEOF
  20167. /* confdefs.h. */
  20168. _ACEOF
  20169. cat confdefs.h >>conftest.$ac_ext
  20170. cat >>conftest.$ac_ext <<_ACEOF
  20171. /* end confdefs.h. */
  20172. /* Override any gcc2 internal prototype to avoid an error. */
  20173. #ifdef __cplusplus
  20174. extern "C"
  20175. #endif
  20176. /* We use char because int might match the return type of a gcc2
  20177. builtin and then its argument prototype would still apply. */
  20178. char gethostbyname ();
  20179. int
  20180. main ()
  20181. {
  20182. gethostbyname ();
  20183. ;
  20184. return 0;
  20185. }
  20186. _ACEOF
  20187. rm -f conftest.$ac_objext conftest$ac_exeext
  20188. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20189. (eval $ac_link) 2>conftest.er1
  20190. ac_status=$?
  20191. grep -v '^ *+' conftest.er1 >conftest.err
  20192. rm -f conftest.er1
  20193. cat conftest.err >&5
  20194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20195. (exit $ac_status); } &&
  20196. { ac_try='test -z "$ac_c_werror_flag"
  20197. || test ! -s conftest.err'
  20198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20199. (eval $ac_try) 2>&5
  20200. ac_status=$?
  20201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20202. (exit $ac_status); }; } &&
  20203. { ac_try='test -s conftest$ac_exeext'
  20204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20205. (eval $ac_try) 2>&5
  20206. ac_status=$?
  20207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20208. (exit $ac_status); }; }; then
  20209. ac_cv_lib_nsl_gethostbyname=yes
  20210. else
  20211. echo "$as_me: failed program was:" >&5
  20212. sed 's/^/| /' conftest.$ac_ext >&5
  20213. ac_cv_lib_nsl_gethostbyname=no
  20214. fi
  20215. rm -f conftest.err conftest.$ac_objext \
  20216. conftest$ac_exeext conftest.$ac_ext
  20217. LIBS=$ac_check_lib_save_LIBS
  20218. fi
  20219. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20220. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  20221. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  20222. cat >>confdefs.h <<_ACEOF
  20223. #define HAVE_LIBNSL 1
  20224. _ACEOF
  20225. LIBS="-lnsl $LIBS"
  20226. fi
  20227. echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  20228. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
  20229. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  20230. echo $ECHO_N "(cached) $ECHO_C" >&6
  20231. else
  20232. ac_check_lib_save_LIBS=$LIBS
  20233. LIBS="-lrt $LIBS"
  20234. cat >conftest.$ac_ext <<_ACEOF
  20235. /* confdefs.h. */
  20236. _ACEOF
  20237. cat confdefs.h >>conftest.$ac_ext
  20238. cat >>conftest.$ac_ext <<_ACEOF
  20239. /* end confdefs.h. */
  20240. /* Override any gcc2 internal prototype to avoid an error. */
  20241. #ifdef __cplusplus
  20242. extern "C"
  20243. #endif
  20244. /* We use char because int might match the return type of a gcc2
  20245. builtin and then its argument prototype would still apply. */
  20246. char nanosleep ();
  20247. int
  20248. main ()
  20249. {
  20250. nanosleep ();
  20251. ;
  20252. return 0;
  20253. }
  20254. _ACEOF
  20255. rm -f conftest.$ac_objext conftest$ac_exeext
  20256. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20257. (eval $ac_link) 2>conftest.er1
  20258. ac_status=$?
  20259. grep -v '^ *+' conftest.er1 >conftest.err
  20260. rm -f conftest.er1
  20261. cat conftest.err >&5
  20262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20263. (exit $ac_status); } &&
  20264. { ac_try='test -z "$ac_c_werror_flag"
  20265. || test ! -s conftest.err'
  20266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20267. (eval $ac_try) 2>&5
  20268. ac_status=$?
  20269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20270. (exit $ac_status); }; } &&
  20271. { ac_try='test -s conftest$ac_exeext'
  20272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20273. (eval $ac_try) 2>&5
  20274. ac_status=$?
  20275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20276. (exit $ac_status); }; }; then
  20277. ac_cv_lib_rt_nanosleep=yes
  20278. else
  20279. echo "$as_me: failed program was:" >&5
  20280. sed 's/^/| /' conftest.$ac_ext >&5
  20281. ac_cv_lib_rt_nanosleep=no
  20282. fi
  20283. rm -f conftest.err conftest.$ac_objext \
  20284. conftest$ac_exeext conftest.$ac_ext
  20285. LIBS=$ac_check_lib_save_LIBS
  20286. fi
  20287. echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  20288. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
  20289. if test $ac_cv_lib_rt_nanosleep = yes; then
  20290. cat >>confdefs.h <<_ACEOF
  20291. #define HAVE_LIBRT 1
  20292. _ACEOF
  20293. LIBS="-lrt $LIBS"
  20294. fi
  20295. for ac_header in stdlib.h
  20296. do
  20297. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20298. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20299. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20300. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20301. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20302. echo $ECHO_N "(cached) $ECHO_C" >&6
  20303. fi
  20304. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20305. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20306. else
  20307. # Is the header compilable?
  20308. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20309. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20310. cat >conftest.$ac_ext <<_ACEOF
  20311. /* confdefs.h. */
  20312. _ACEOF
  20313. cat confdefs.h >>conftest.$ac_ext
  20314. cat >>conftest.$ac_ext <<_ACEOF
  20315. /* end confdefs.h. */
  20316. $ac_includes_default
  20317. #include <$ac_header>
  20318. _ACEOF
  20319. rm -f conftest.$ac_objext
  20320. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20321. (eval $ac_compile) 2>conftest.er1
  20322. ac_status=$?
  20323. grep -v '^ *+' conftest.er1 >conftest.err
  20324. rm -f conftest.er1
  20325. cat conftest.err >&5
  20326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20327. (exit $ac_status); } &&
  20328. { ac_try='test -z "$ac_c_werror_flag"
  20329. || test ! -s conftest.err'
  20330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20331. (eval $ac_try) 2>&5
  20332. ac_status=$?
  20333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20334. (exit $ac_status); }; } &&
  20335. { ac_try='test -s conftest.$ac_objext'
  20336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20337. (eval $ac_try) 2>&5
  20338. ac_status=$?
  20339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20340. (exit $ac_status); }; }; then
  20341. ac_header_compiler=yes
  20342. else
  20343. echo "$as_me: failed program was:" >&5
  20344. sed 's/^/| /' conftest.$ac_ext >&5
  20345. ac_header_compiler=no
  20346. fi
  20347. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20348. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20349. echo "${ECHO_T}$ac_header_compiler" >&6
  20350. # Is the header present?
  20351. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20352. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20353. cat >conftest.$ac_ext <<_ACEOF
  20354. /* confdefs.h. */
  20355. _ACEOF
  20356. cat confdefs.h >>conftest.$ac_ext
  20357. cat >>conftest.$ac_ext <<_ACEOF
  20358. /* end confdefs.h. */
  20359. #include <$ac_header>
  20360. _ACEOF
  20361. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20362. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20363. ac_status=$?
  20364. grep -v '^ *+' conftest.er1 >conftest.err
  20365. rm -f conftest.er1
  20366. cat conftest.err >&5
  20367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20368. (exit $ac_status); } >/dev/null; then
  20369. if test -s conftest.err; then
  20370. ac_cpp_err=$ac_c_preproc_warn_flag
  20371. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20372. else
  20373. ac_cpp_err=
  20374. fi
  20375. else
  20376. ac_cpp_err=yes
  20377. fi
  20378. if test -z "$ac_cpp_err"; then
  20379. ac_header_preproc=yes
  20380. else
  20381. echo "$as_me: failed program was:" >&5
  20382. sed 's/^/| /' conftest.$ac_ext >&5
  20383. ac_header_preproc=no
  20384. fi
  20385. rm -f conftest.err conftest.$ac_ext
  20386. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20387. echo "${ECHO_T}$ac_header_preproc" >&6
  20388. # So? What about this header?
  20389. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20390. yes:no: )
  20391. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20392. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20393. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20394. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20395. ac_header_preproc=yes
  20396. ;;
  20397. no:yes:* )
  20398. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20399. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20400. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20401. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20402. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20403. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20404. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20405. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20406. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20407. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20408. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20409. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20410. (
  20411. cat <<\_ASBOX
  20412. ## ------------------------------------------ ##
  20413. ## Report this to the AC_PACKAGE_NAME lists. ##
  20414. ## ------------------------------------------ ##
  20415. _ASBOX
  20416. ) |
  20417. sed "s/^/$as_me: WARNING: /" >&2
  20418. ;;
  20419. esac
  20420. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20421. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20422. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20423. echo $ECHO_N "(cached) $ECHO_C" >&6
  20424. else
  20425. eval "$as_ac_Header=\$ac_header_preproc"
  20426. fi
  20427. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20428. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20429. fi
  20430. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20431. cat >>confdefs.h <<_ACEOF
  20432. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20433. _ACEOF
  20434. fi
  20435. done
  20436. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  20437. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  20438. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  20439. echo $ECHO_N "(cached) $ECHO_C" >&6
  20440. else
  20441. if test "$cross_compiling" = yes; then
  20442. ac_cv_func_malloc_0_nonnull=no
  20443. else
  20444. cat >conftest.$ac_ext <<_ACEOF
  20445. /* confdefs.h. */
  20446. _ACEOF
  20447. cat confdefs.h >>conftest.$ac_ext
  20448. cat >>conftest.$ac_ext <<_ACEOF
  20449. /* end confdefs.h. */
  20450. #if STDC_HEADERS || HAVE_STDLIB_H
  20451. # include <stdlib.h>
  20452. #else
  20453. char *malloc ();
  20454. #endif
  20455. int
  20456. main ()
  20457. {
  20458. exit (malloc (0) ? 0 : 1);
  20459. ;
  20460. return 0;
  20461. }
  20462. _ACEOF
  20463. rm -f conftest$ac_exeext
  20464. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20465. (eval $ac_link) 2>&5
  20466. ac_status=$?
  20467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20468. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20470. (eval $ac_try) 2>&5
  20471. ac_status=$?
  20472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20473. (exit $ac_status); }; }; then
  20474. ac_cv_func_malloc_0_nonnull=yes
  20475. else
  20476. echo "$as_me: program exited with status $ac_status" >&5
  20477. echo "$as_me: failed program was:" >&5
  20478. sed 's/^/| /' conftest.$ac_ext >&5
  20479. ( exit $ac_status )
  20480. ac_cv_func_malloc_0_nonnull=no
  20481. fi
  20482. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20483. fi
  20484. fi
  20485. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  20486. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  20487. if test $ac_cv_func_malloc_0_nonnull = yes; then
  20488. cat >>confdefs.h <<\_ACEOF
  20489. #define HAVE_MALLOC 1
  20490. _ACEOF
  20491. else
  20492. cat >>confdefs.h <<\_ACEOF
  20493. #define HAVE_MALLOC 0
  20494. _ACEOF
  20495. case $LIBOBJS in
  20496. "malloc.$ac_objext" | \
  20497. *" malloc.$ac_objext" | \
  20498. "malloc.$ac_objext "* | \
  20499. *" malloc.$ac_objext "* ) ;;
  20500. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  20501. esac
  20502. cat >>confdefs.h <<\_ACEOF
  20503. #define malloc rpl_malloc
  20504. _ACEOF
  20505. fi
  20506. echo "$as_me:$LINENO: checking for working memcmp" >&5
  20507. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  20508. if test "${ac_cv_func_memcmp_working+set}" = set; then
  20509. echo $ECHO_N "(cached) $ECHO_C" >&6
  20510. else
  20511. if test "$cross_compiling" = yes; then
  20512. ac_cv_func_memcmp_working=no
  20513. else
  20514. cat >conftest.$ac_ext <<_ACEOF
  20515. /* confdefs.h. */
  20516. _ACEOF
  20517. cat confdefs.h >>conftest.$ac_ext
  20518. cat >>conftest.$ac_ext <<_ACEOF
  20519. /* end confdefs.h. */
  20520. $ac_includes_default
  20521. int
  20522. main ()
  20523. {
  20524. /* Some versions of memcmp are not 8-bit clean. */
  20525. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  20526. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  20527. exit (1);
  20528. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  20529. or more and with at least one buffer not starting on a 4-byte boundary.
  20530. William Lewis provided this test program. */
  20531. {
  20532. char foo[21];
  20533. char bar[21];
  20534. int i;
  20535. for (i = 0; i < 4; i++)
  20536. {
  20537. char *a = foo + i;
  20538. char *b = bar + i;
  20539. strcpy (a, "--------01111111");
  20540. strcpy (b, "--------10000000");
  20541. if (memcmp (a, b, 16) >= 0)
  20542. exit (1);
  20543. }
  20544. exit (0);
  20545. }
  20546. ;
  20547. return 0;
  20548. }
  20549. _ACEOF
  20550. rm -f conftest$ac_exeext
  20551. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20552. (eval $ac_link) 2>&5
  20553. ac_status=$?
  20554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20555. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20557. (eval $ac_try) 2>&5
  20558. ac_status=$?
  20559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20560. (exit $ac_status); }; }; then
  20561. ac_cv_func_memcmp_working=yes
  20562. else
  20563. echo "$as_me: program exited with status $ac_status" >&5
  20564. echo "$as_me: failed program was:" >&5
  20565. sed 's/^/| /' conftest.$ac_ext >&5
  20566. ( exit $ac_status )
  20567. ac_cv_func_memcmp_working=no
  20568. fi
  20569. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20570. fi
  20571. fi
  20572. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  20573. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  20574. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  20575. "memcmp.$ac_objext" | \
  20576. *" memcmp.$ac_objext" | \
  20577. "memcmp.$ac_objext "* | \
  20578. *" memcmp.$ac_objext "* ) ;;
  20579. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  20580. esac
  20581. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  20582. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  20583. if test "${ac_cv_type_signal+set}" = set; then
  20584. echo $ECHO_N "(cached) $ECHO_C" >&6
  20585. else
  20586. cat >conftest.$ac_ext <<_ACEOF
  20587. /* confdefs.h. */
  20588. _ACEOF
  20589. cat confdefs.h >>conftest.$ac_ext
  20590. cat >>conftest.$ac_ext <<_ACEOF
  20591. /* end confdefs.h. */
  20592. #include <sys/types.h>
  20593. #include <signal.h>
  20594. #ifdef signal
  20595. # undef signal
  20596. #endif
  20597. #ifdef __cplusplus
  20598. extern "C" void (*signal (int, void (*)(int)))(int);
  20599. #else
  20600. void (*signal ()) ();
  20601. #endif
  20602. int
  20603. main ()
  20604. {
  20605. int i;
  20606. ;
  20607. return 0;
  20608. }
  20609. _ACEOF
  20610. rm -f conftest.$ac_objext
  20611. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20612. (eval $ac_compile) 2>conftest.er1
  20613. ac_status=$?
  20614. grep -v '^ *+' conftest.er1 >conftest.err
  20615. rm -f conftest.er1
  20616. cat conftest.err >&5
  20617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20618. (exit $ac_status); } &&
  20619. { ac_try='test -z "$ac_c_werror_flag"
  20620. || test ! -s conftest.err'
  20621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20622. (eval $ac_try) 2>&5
  20623. ac_status=$?
  20624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20625. (exit $ac_status); }; } &&
  20626. { ac_try='test -s conftest.$ac_objext'
  20627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20628. (eval $ac_try) 2>&5
  20629. ac_status=$?
  20630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20631. (exit $ac_status); }; }; then
  20632. ac_cv_type_signal=void
  20633. else
  20634. echo "$as_me: failed program was:" >&5
  20635. sed 's/^/| /' conftest.$ac_ext >&5
  20636. ac_cv_type_signal=int
  20637. fi
  20638. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20639. fi
  20640. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  20641. echo "${ECHO_T}$ac_cv_type_signal" >&6
  20642. cat >>confdefs.h <<_ACEOF
  20643. #define RETSIGTYPE $ac_cv_type_signal
  20644. _ACEOF
  20645. for ac_func in vprintf
  20646. do
  20647. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20648. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20649. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20650. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20651. echo $ECHO_N "(cached) $ECHO_C" >&6
  20652. else
  20653. cat >conftest.$ac_ext <<_ACEOF
  20654. /* confdefs.h. */
  20655. _ACEOF
  20656. cat confdefs.h >>conftest.$ac_ext
  20657. cat >>conftest.$ac_ext <<_ACEOF
  20658. /* end confdefs.h. */
  20659. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20660. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20661. #define $ac_func innocuous_$ac_func
  20662. /* System header to define __stub macros and hopefully few prototypes,
  20663. which can conflict with char $ac_func (); below.
  20664. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20665. <limits.h> exists even on freestanding compilers. */
  20666. #ifdef __STDC__
  20667. # include <limits.h>
  20668. #else
  20669. # include <assert.h>
  20670. #endif
  20671. #undef $ac_func
  20672. /* Override any gcc2 internal prototype to avoid an error. */
  20673. #ifdef __cplusplus
  20674. extern "C"
  20675. {
  20676. #endif
  20677. /* We use char because int might match the return type of a gcc2
  20678. builtin and then its argument prototype would still apply. */
  20679. char $ac_func ();
  20680. /* The GNU C library defines this for functions which it implements
  20681. to always fail with ENOSYS. Some functions are actually named
  20682. something starting with __ and the normal name is an alias. */
  20683. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20684. choke me
  20685. #else
  20686. char (*f) () = $ac_func;
  20687. #endif
  20688. #ifdef __cplusplus
  20689. }
  20690. #endif
  20691. int
  20692. main ()
  20693. {
  20694. return f != $ac_func;
  20695. ;
  20696. return 0;
  20697. }
  20698. _ACEOF
  20699. rm -f conftest.$ac_objext conftest$ac_exeext
  20700. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20701. (eval $ac_link) 2>conftest.er1
  20702. ac_status=$?
  20703. grep -v '^ *+' conftest.er1 >conftest.err
  20704. rm -f conftest.er1
  20705. cat conftest.err >&5
  20706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20707. (exit $ac_status); } &&
  20708. { ac_try='test -z "$ac_c_werror_flag"
  20709. || test ! -s conftest.err'
  20710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20711. (eval $ac_try) 2>&5
  20712. ac_status=$?
  20713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20714. (exit $ac_status); }; } &&
  20715. { ac_try='test -s conftest$ac_exeext'
  20716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20717. (eval $ac_try) 2>&5
  20718. ac_status=$?
  20719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20720. (exit $ac_status); }; }; then
  20721. eval "$as_ac_var=yes"
  20722. else
  20723. echo "$as_me: failed program was:" >&5
  20724. sed 's/^/| /' conftest.$ac_ext >&5
  20725. eval "$as_ac_var=no"
  20726. fi
  20727. rm -f conftest.err conftest.$ac_objext \
  20728. conftest$ac_exeext conftest.$ac_ext
  20729. fi
  20730. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20731. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20732. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20733. cat >>confdefs.h <<_ACEOF
  20734. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20735. _ACEOF
  20736. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20737. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20738. if test "${ac_cv_func__doprnt+set}" = set; then
  20739. echo $ECHO_N "(cached) $ECHO_C" >&6
  20740. else
  20741. cat >conftest.$ac_ext <<_ACEOF
  20742. /* confdefs.h. */
  20743. _ACEOF
  20744. cat confdefs.h >>conftest.$ac_ext
  20745. cat >>conftest.$ac_ext <<_ACEOF
  20746. /* end confdefs.h. */
  20747. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20748. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20749. #define _doprnt innocuous__doprnt
  20750. /* System header to define __stub macros and hopefully few prototypes,
  20751. which can conflict with char _doprnt (); below.
  20752. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20753. <limits.h> exists even on freestanding compilers. */
  20754. #ifdef __STDC__
  20755. # include <limits.h>
  20756. #else
  20757. # include <assert.h>
  20758. #endif
  20759. #undef _doprnt
  20760. /* Override any gcc2 internal prototype to avoid an error. */
  20761. #ifdef __cplusplus
  20762. extern "C"
  20763. {
  20764. #endif
  20765. /* We use char because int might match the return type of a gcc2
  20766. builtin and then its argument prototype would still apply. */
  20767. char _doprnt ();
  20768. /* The GNU C library defines this for functions which it implements
  20769. to always fail with ENOSYS. Some functions are actually named
  20770. something starting with __ and the normal name is an alias. */
  20771. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20772. choke me
  20773. #else
  20774. char (*f) () = _doprnt;
  20775. #endif
  20776. #ifdef __cplusplus
  20777. }
  20778. #endif
  20779. int
  20780. main ()
  20781. {
  20782. return f != _doprnt;
  20783. ;
  20784. return 0;
  20785. }
  20786. _ACEOF
  20787. rm -f conftest.$ac_objext conftest$ac_exeext
  20788. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20789. (eval $ac_link) 2>conftest.er1
  20790. ac_status=$?
  20791. grep -v '^ *+' conftest.er1 >conftest.err
  20792. rm -f conftest.er1
  20793. cat conftest.err >&5
  20794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20795. (exit $ac_status); } &&
  20796. { ac_try='test -z "$ac_c_werror_flag"
  20797. || test ! -s conftest.err'
  20798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20799. (eval $ac_try) 2>&5
  20800. ac_status=$?
  20801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20802. (exit $ac_status); }; } &&
  20803. { ac_try='test -s conftest$ac_exeext'
  20804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20805. (eval $ac_try) 2>&5
  20806. ac_status=$?
  20807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20808. (exit $ac_status); }; }; then
  20809. ac_cv_func__doprnt=yes
  20810. else
  20811. echo "$as_me: failed program was:" >&5
  20812. sed 's/^/| /' conftest.$ac_ext >&5
  20813. ac_cv_func__doprnt=no
  20814. fi
  20815. rm -f conftest.err conftest.$ac_objext \
  20816. conftest$ac_exeext conftest.$ac_ext
  20817. fi
  20818. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20819. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20820. if test $ac_cv_func__doprnt = yes; then
  20821. cat >>confdefs.h <<\_ACEOF
  20822. #define HAVE_DOPRNT 1
  20823. _ACEOF
  20824. fi
  20825. fi
  20826. done
  20827. for ac_func in gettimeofday ctime memset regcomp strdup strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf
  20828. do
  20829. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20830. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20831. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20832. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20833. echo $ECHO_N "(cached) $ECHO_C" >&6
  20834. else
  20835. cat >conftest.$ac_ext <<_ACEOF
  20836. /* confdefs.h. */
  20837. _ACEOF
  20838. cat confdefs.h >>conftest.$ac_ext
  20839. cat >>conftest.$ac_ext <<_ACEOF
  20840. /* end confdefs.h. */
  20841. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20842. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20843. #define $ac_func innocuous_$ac_func
  20844. /* System header to define __stub macros and hopefully few prototypes,
  20845. which can conflict with char $ac_func (); below.
  20846. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20847. <limits.h> exists even on freestanding compilers. */
  20848. #ifdef __STDC__
  20849. # include <limits.h>
  20850. #else
  20851. # include <assert.h>
  20852. #endif
  20853. #undef $ac_func
  20854. /* Override any gcc2 internal prototype to avoid an error. */
  20855. #ifdef __cplusplus
  20856. extern "C"
  20857. {
  20858. #endif
  20859. /* We use char because int might match the return type of a gcc2
  20860. builtin and then its argument prototype would still apply. */
  20861. char $ac_func ();
  20862. /* The GNU C library defines this for functions which it implements
  20863. to always fail with ENOSYS. Some functions are actually named
  20864. something starting with __ and the normal name is an alias. */
  20865. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20866. choke me
  20867. #else
  20868. char (*f) () = $ac_func;
  20869. #endif
  20870. #ifdef __cplusplus
  20871. }
  20872. #endif
  20873. int
  20874. main ()
  20875. {
  20876. return f != $ac_func;
  20877. ;
  20878. return 0;
  20879. }
  20880. _ACEOF
  20881. rm -f conftest.$ac_objext conftest$ac_exeext
  20882. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20883. (eval $ac_link) 2>conftest.er1
  20884. ac_status=$?
  20885. grep -v '^ *+' conftest.er1 >conftest.err
  20886. rm -f conftest.er1
  20887. cat conftest.err >&5
  20888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20889. (exit $ac_status); } &&
  20890. { ac_try='test -z "$ac_c_werror_flag"
  20891. || test ! -s conftest.err'
  20892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20893. (eval $ac_try) 2>&5
  20894. ac_status=$?
  20895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20896. (exit $ac_status); }; } &&
  20897. { ac_try='test -s conftest$ac_exeext'
  20898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20899. (eval $ac_try) 2>&5
  20900. ac_status=$?
  20901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20902. (exit $ac_status); }; }; then
  20903. eval "$as_ac_var=yes"
  20904. else
  20905. echo "$as_me: failed program was:" >&5
  20906. sed 's/^/| /' conftest.$ac_ext >&5
  20907. eval "$as_ac_var=no"
  20908. fi
  20909. rm -f conftest.err conftest.$ac_objext \
  20910. conftest$ac_exeext conftest.$ac_ext
  20911. fi
  20912. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20913. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20914. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20915. cat >>confdefs.h <<_ACEOF
  20916. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20917. _ACEOF
  20918. fi
  20919. done
  20920. for ac_func in strlcpy
  20921. do
  20922. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20923. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20924. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20925. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20926. echo $ECHO_N "(cached) $ECHO_C" >&6
  20927. else
  20928. cat >conftest.$ac_ext <<_ACEOF
  20929. /* confdefs.h. */
  20930. _ACEOF
  20931. cat confdefs.h >>conftest.$ac_ext
  20932. cat >>conftest.$ac_ext <<_ACEOF
  20933. /* end confdefs.h. */
  20934. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20935. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20936. #define $ac_func innocuous_$ac_func
  20937. /* System header to define __stub macros and hopefully few prototypes,
  20938. which can conflict with char $ac_func (); below.
  20939. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20940. <limits.h> exists even on freestanding compilers. */
  20941. #ifdef __STDC__
  20942. # include <limits.h>
  20943. #else
  20944. # include <assert.h>
  20945. #endif
  20946. #undef $ac_func
  20947. /* Override any gcc2 internal prototype to avoid an error. */
  20948. #ifdef __cplusplus
  20949. extern "C"
  20950. {
  20951. #endif
  20952. /* We use char because int might match the return type of a gcc2
  20953. builtin and then its argument prototype would still apply. */
  20954. char $ac_func ();
  20955. /* The GNU C library defines this for functions which it implements
  20956. to always fail with ENOSYS. Some functions are actually named
  20957. something starting with __ and the normal name is an alias. */
  20958. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20959. choke me
  20960. #else
  20961. char (*f) () = $ac_func;
  20962. #endif
  20963. #ifdef __cplusplus
  20964. }
  20965. #endif
  20966. int
  20967. main ()
  20968. {
  20969. return f != $ac_func;
  20970. ;
  20971. return 0;
  20972. }
  20973. _ACEOF
  20974. rm -f conftest.$ac_objext conftest$ac_exeext
  20975. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20976. (eval $ac_link) 2>conftest.er1
  20977. ac_status=$?
  20978. grep -v '^ *+' conftest.er1 >conftest.err
  20979. rm -f conftest.er1
  20980. cat conftest.err >&5
  20981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20982. (exit $ac_status); } &&
  20983. { ac_try='test -z "$ac_c_werror_flag"
  20984. || test ! -s conftest.err'
  20985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20986. (eval $ac_try) 2>&5
  20987. ac_status=$?
  20988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20989. (exit $ac_status); }; } &&
  20990. { ac_try='test -s conftest$ac_exeext'
  20991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20992. (eval $ac_try) 2>&5
  20993. ac_status=$?
  20994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20995. (exit $ac_status); }; }; then
  20996. eval "$as_ac_var=yes"
  20997. else
  20998. echo "$as_me: failed program was:" >&5
  20999. sed 's/^/| /' conftest.$ac_ext >&5
  21000. eval "$as_ac_var=no"
  21001. fi
  21002. rm -f conftest.err conftest.$ac_objext \
  21003. conftest$ac_exeext conftest.$ac_ext
  21004. fi
  21005. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21006. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21007. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21008. cat >>confdefs.h <<_ACEOF
  21009. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21010. _ACEOF
  21011. have_strlcpy=true
  21012. else
  21013. have_strlcpy=false
  21014. fi
  21015. done
  21016. if test x$have_strlcpy = xtrue; then
  21017. SYSTEM_STRLCPY_TRUE=
  21018. SYSTEM_STRLCPY_FALSE='#'
  21019. else
  21020. SYSTEM_STRLCPY_TRUE='#'
  21021. SYSTEM_STRLCPY_FALSE=
  21022. fi
  21023. echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  21024. echo $ECHO_N "checking for struct timeval.tv_sec... $ECHO_C" >&6
  21025. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  21026. echo $ECHO_N "(cached) $ECHO_C" >&6
  21027. else
  21028. cat >conftest.$ac_ext <<_ACEOF
  21029. /* confdefs.h. */
  21030. _ACEOF
  21031. cat confdefs.h >>conftest.$ac_ext
  21032. cat >>conftest.$ac_ext <<_ACEOF
  21033. /* end confdefs.h. */
  21034. $ac_includes_default
  21035. int
  21036. main ()
  21037. {
  21038. static struct timeval ac_aggr;
  21039. if (ac_aggr.tv_sec)
  21040. return 0;
  21041. ;
  21042. return 0;
  21043. }
  21044. _ACEOF
  21045. rm -f conftest.$ac_objext
  21046. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21047. (eval $ac_compile) 2>conftest.er1
  21048. ac_status=$?
  21049. grep -v '^ *+' conftest.er1 >conftest.err
  21050. rm -f conftest.er1
  21051. cat conftest.err >&5
  21052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21053. (exit $ac_status); } &&
  21054. { ac_try='test -z "$ac_c_werror_flag"
  21055. || test ! -s conftest.err'
  21056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21057. (eval $ac_try) 2>&5
  21058. ac_status=$?
  21059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21060. (exit $ac_status); }; } &&
  21061. { ac_try='test -s conftest.$ac_objext'
  21062. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21063. (eval $ac_try) 2>&5
  21064. ac_status=$?
  21065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21066. (exit $ac_status); }; }; then
  21067. ac_cv_member_struct_timeval_tv_sec=yes
  21068. else
  21069. echo "$as_me: failed program was:" >&5
  21070. sed 's/^/| /' conftest.$ac_ext >&5
  21071. cat >conftest.$ac_ext <<_ACEOF
  21072. /* confdefs.h. */
  21073. _ACEOF
  21074. cat confdefs.h >>conftest.$ac_ext
  21075. cat >>conftest.$ac_ext <<_ACEOF
  21076. /* end confdefs.h. */
  21077. $ac_includes_default
  21078. int
  21079. main ()
  21080. {
  21081. static struct timeval ac_aggr;
  21082. if (sizeof ac_aggr.tv_sec)
  21083. return 0;
  21084. ;
  21085. return 0;
  21086. }
  21087. _ACEOF
  21088. rm -f conftest.$ac_objext
  21089. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21090. (eval $ac_compile) 2>conftest.er1
  21091. ac_status=$?
  21092. grep -v '^ *+' conftest.er1 >conftest.err
  21093. rm -f conftest.er1
  21094. cat conftest.err >&5
  21095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21096. (exit $ac_status); } &&
  21097. { ac_try='test -z "$ac_c_werror_flag"
  21098. || test ! -s conftest.err'
  21099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21100. (eval $ac_try) 2>&5
  21101. ac_status=$?
  21102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21103. (exit $ac_status); }; } &&
  21104. { ac_try='test -s conftest.$ac_objext'
  21105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21106. (eval $ac_try) 2>&5
  21107. ac_status=$?
  21108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21109. (exit $ac_status); }; }; then
  21110. ac_cv_member_struct_timeval_tv_sec=yes
  21111. else
  21112. echo "$as_me: failed program was:" >&5
  21113. sed 's/^/| /' conftest.$ac_ext >&5
  21114. ac_cv_member_struct_timeval_tv_sec=no
  21115. fi
  21116. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21117. fi
  21118. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21119. fi
  21120. echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  21121. echo "${ECHO_T}$ac_cv_member_struct_timeval_tv_sec" >&6
  21122. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  21123. cat >>confdefs.h <<_ACEOF
  21124. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  21125. _ACEOF
  21126. fi
  21127. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  21128. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  21129. if test "${ac_cv_c_bigendian+set}" = set; then
  21130. echo $ECHO_N "(cached) $ECHO_C" >&6
  21131. else
  21132. # See if sys/param.h defines the BYTE_ORDER macro.
  21133. cat >conftest.$ac_ext <<_ACEOF
  21134. /* confdefs.h. */
  21135. _ACEOF
  21136. cat confdefs.h >>conftest.$ac_ext
  21137. cat >>conftest.$ac_ext <<_ACEOF
  21138. /* end confdefs.h. */
  21139. #include <sys/types.h>
  21140. #include <sys/param.h>
  21141. int
  21142. main ()
  21143. {
  21144. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  21145. bogus endian macros
  21146. #endif
  21147. ;
  21148. return 0;
  21149. }
  21150. _ACEOF
  21151. rm -f conftest.$ac_objext
  21152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21153. (eval $ac_compile) 2>conftest.er1
  21154. ac_status=$?
  21155. grep -v '^ *+' conftest.er1 >conftest.err
  21156. rm -f conftest.er1
  21157. cat conftest.err >&5
  21158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21159. (exit $ac_status); } &&
  21160. { ac_try='test -z "$ac_c_werror_flag"
  21161. || test ! -s conftest.err'
  21162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21163. (eval $ac_try) 2>&5
  21164. ac_status=$?
  21165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21166. (exit $ac_status); }; } &&
  21167. { ac_try='test -s conftest.$ac_objext'
  21168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21169. (eval $ac_try) 2>&5
  21170. ac_status=$?
  21171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21172. (exit $ac_status); }; }; then
  21173. # It does; now see whether it defined to BIG_ENDIAN or not.
  21174. cat >conftest.$ac_ext <<_ACEOF
  21175. /* confdefs.h. */
  21176. _ACEOF
  21177. cat confdefs.h >>conftest.$ac_ext
  21178. cat >>conftest.$ac_ext <<_ACEOF
  21179. /* end confdefs.h. */
  21180. #include <sys/types.h>
  21181. #include <sys/param.h>
  21182. int
  21183. main ()
  21184. {
  21185. #if BYTE_ORDER != BIG_ENDIAN
  21186. not big endian
  21187. #endif
  21188. ;
  21189. return 0;
  21190. }
  21191. _ACEOF
  21192. rm -f conftest.$ac_objext
  21193. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21194. (eval $ac_compile) 2>conftest.er1
  21195. ac_status=$?
  21196. grep -v '^ *+' conftest.er1 >conftest.err
  21197. rm -f conftest.er1
  21198. cat conftest.err >&5
  21199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21200. (exit $ac_status); } &&
  21201. { ac_try='test -z "$ac_c_werror_flag"
  21202. || test ! -s conftest.err'
  21203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21204. (eval $ac_try) 2>&5
  21205. ac_status=$?
  21206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21207. (exit $ac_status); }; } &&
  21208. { ac_try='test -s conftest.$ac_objext'
  21209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21210. (eval $ac_try) 2>&5
  21211. ac_status=$?
  21212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21213. (exit $ac_status); }; }; then
  21214. ac_cv_c_bigendian=yes
  21215. else
  21216. echo "$as_me: failed program was:" >&5
  21217. sed 's/^/| /' conftest.$ac_ext >&5
  21218. ac_cv_c_bigendian=no
  21219. fi
  21220. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21221. else
  21222. echo "$as_me: failed program was:" >&5
  21223. sed 's/^/| /' conftest.$ac_ext >&5
  21224. # It does not; compile a test program.
  21225. if test "$cross_compiling" = yes; then
  21226. # try to guess the endianness by grepping values into an object file
  21227. ac_cv_c_bigendian=unknown
  21228. cat >conftest.$ac_ext <<_ACEOF
  21229. /* confdefs.h. */
  21230. _ACEOF
  21231. cat confdefs.h >>conftest.$ac_ext
  21232. cat >>conftest.$ac_ext <<_ACEOF
  21233. /* end confdefs.h. */
  21234. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  21235. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  21236. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  21237. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  21238. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  21239. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  21240. int
  21241. main ()
  21242. {
  21243. _ascii (); _ebcdic ();
  21244. ;
  21245. return 0;
  21246. }
  21247. _ACEOF
  21248. rm -f conftest.$ac_objext
  21249. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21250. (eval $ac_compile) 2>conftest.er1
  21251. ac_status=$?
  21252. grep -v '^ *+' conftest.er1 >conftest.err
  21253. rm -f conftest.er1
  21254. cat conftest.err >&5
  21255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21256. (exit $ac_status); } &&
  21257. { ac_try='test -z "$ac_c_werror_flag"
  21258. || test ! -s conftest.err'
  21259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21260. (eval $ac_try) 2>&5
  21261. ac_status=$?
  21262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21263. (exit $ac_status); }; } &&
  21264. { ac_try='test -s conftest.$ac_objext'
  21265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21266. (eval $ac_try) 2>&5
  21267. ac_status=$?
  21268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21269. (exit $ac_status); }; }; then
  21270. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  21271. ac_cv_c_bigendian=yes
  21272. fi
  21273. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  21274. if test "$ac_cv_c_bigendian" = unknown; then
  21275. ac_cv_c_bigendian=no
  21276. else
  21277. # finding both strings is unlikely to happen, but who knows?
  21278. ac_cv_c_bigendian=unknown
  21279. fi
  21280. fi
  21281. else
  21282. echo "$as_me: failed program was:" >&5
  21283. sed 's/^/| /' conftest.$ac_ext >&5
  21284. fi
  21285. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21286. else
  21287. cat >conftest.$ac_ext <<_ACEOF
  21288. /* confdefs.h. */
  21289. _ACEOF
  21290. cat confdefs.h >>conftest.$ac_ext
  21291. cat >>conftest.$ac_ext <<_ACEOF
  21292. /* end confdefs.h. */
  21293. int
  21294. main ()
  21295. {
  21296. /* Are we little or big endian? From Harbison&Steele. */
  21297. union
  21298. {
  21299. long l;
  21300. char c[sizeof (long)];
  21301. } u;
  21302. u.l = 1;
  21303. exit (u.c[sizeof (long) - 1] == 1);
  21304. }
  21305. _ACEOF
  21306. rm -f conftest$ac_exeext
  21307. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21308. (eval $ac_link) 2>&5
  21309. ac_status=$?
  21310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21311. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21312. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21313. (eval $ac_try) 2>&5
  21314. ac_status=$?
  21315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21316. (exit $ac_status); }; }; then
  21317. ac_cv_c_bigendian=no
  21318. else
  21319. echo "$as_me: program exited with status $ac_status" >&5
  21320. echo "$as_me: failed program was:" >&5
  21321. sed 's/^/| /' conftest.$ac_ext >&5
  21322. ( exit $ac_status )
  21323. ac_cv_c_bigendian=yes
  21324. fi
  21325. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21326. fi
  21327. fi
  21328. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21329. fi
  21330. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  21331. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  21332. case $ac_cv_c_bigendian in
  21333. yes)
  21334. cat >>confdefs.h <<\_ACEOF
  21335. #define WORDS_BIGENDIAN 1
  21336. _ACEOF
  21337. ;;
  21338. no)
  21339. ;;
  21340. *)
  21341. { { echo "$as_me:$LINENO: error: unknown endianness
  21342. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  21343. echo "$as_me: error: unknown endianness
  21344. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  21345. { (exit 1); exit 1; }; } ;;
  21346. esac
  21347. doctools=no
  21348. if test -n "$FIG2DEV" -a -n "$LYX" -a -n "$DVIPS" -a -n "$TEXI2DVI" \
  21349. -a -n "$LATEX2HTML" -a -n "$DVIPDFM" ; then
  21350. doctools=yes
  21351. fi
  21352. if test $doctools = yes; then
  21353. HAVE_DOCTOOLS_TRUE=
  21354. HAVE_DOCTOOLS_FALSE='#'
  21355. else
  21356. HAVE_DOCTOOLS_TRUE='#'
  21357. HAVE_DOCTOOLS_FALSE=
  21358. fi
  21359. debug=no
  21360. # Check whether --enable-debug or --disable-debug was given.
  21361. if test "${enable_debug+set}" = set; then
  21362. enableval="$enable_debug"
  21363. if test x$enableval = xyes; then
  21364. debug=yes
  21365. # check for gcc 4.0 flags -Wfatal-errors & -Wno-variadic-macros support
  21366. CFLAGS="-ggdb -std=gnu99 -Wall -Wextra -Wfatal-errors -Wno-variadic-macros"
  21367. cat >conftest.$ac_ext <<_ACEOF
  21368. #include <stdlib.h>
  21369. int main(int argc, char *argv) { return(0); }
  21370. _ACEOF
  21371. rm -f conftest.$ac_objext
  21372. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21373. (eval $ac_compile) 2>conftest.er1
  21374. ac_status=$?
  21375. grep -v '^ *+' conftest.er1 >conftest.err
  21376. rm -f conftest.er1
  21377. cat conftest.err >&5
  21378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21379. (exit $ac_status); } &&
  21380. { ac_try='test -z "$ac_c_werror_flag"
  21381. || test ! -s conftest.err'
  21382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21383. (eval $ac_try) 2>&5
  21384. ac_status=$?
  21385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21386. (exit $ac_status); }; } &&
  21387. { ac_try='test -s conftest.$ac_objext'
  21388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21389. (eval $ac_try) 2>&5
  21390. ac_status=$?
  21391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21392. (exit $ac_status); }; }; then
  21393. CFLAGS="-ggdb -std=gnu99 -Wall -Wextra -Wfatal-errors -Wno-variadic-macros"
  21394. else
  21395. echo "$as_me: failed program was:" >&5
  21396. sed 's/^/| /' conftest.$ac_ext >&5
  21397. CFLAGS="-ggdb -std=gnu99 -Wall -Wextra"
  21398. fi
  21399. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21400. # We may also want to add:
  21401. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  21402. cat >>confdefs.h <<\_ACEOF
  21403. #define DEBUG 1
  21404. _ACEOF
  21405. fi
  21406. fi;
  21407. # Check whether --enable-pedantic or --disable-pedantic was given.
  21408. if test "${enable_pedantic+set}" = set; then
  21409. enableval="$enable_pedantic"
  21410. if test x$enableval = xyes; then
  21411. CFLAGS="$CFLAGS -pedantic"
  21412. fi
  21413. fi;
  21414. # Check whether --enable-efence or --disable-efence was given.
  21415. if test "${enable_efence+set}" = set; then
  21416. enableval="$enable_efence"
  21417. if test x$enableval = xyes; then
  21418. CFLAGS="$CFLAGS -lefence"
  21419. cat >>confdefs.h <<\_ACEOF
  21420. #define EFENCE 1
  21421. _ACEOF
  21422. fi
  21423. fi;
  21424. # Check whether --enable-gprof or --disable-gprof was given.
  21425. if test "${enable_gprof+set}" = set; then
  21426. enableval="$enable_gprof"
  21427. if test x$enableval = xyes; then
  21428. if test $debug = yes; then
  21429. CFLAGS="$CFLAGS -pg"
  21430. else
  21431. # GPROF requires gdb
  21432. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  21433. fi
  21434. cat >>confdefs.h <<\_ACEOF
  21435. #define GPROF 1
  21436. _ACEOF
  21437. fi
  21438. fi;
  21439. # Check whether --enable-64bits or --disable-64bits was given.
  21440. if test "${enable_64bits+set}" = set; then
  21441. enableval="$enable_64bits"
  21442. if test x$enableval = xyes; then
  21443. cat >>confdefs.h <<\_ACEOF
  21444. #define ENABLE_64BITS 1
  21445. _ACEOF
  21446. { echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  21447. echo "$as_me: Using u_int64_t for packet counters" >&6;}
  21448. else
  21449. { echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  21450. echo "$as_me: Using u_int32_t for packet counters" >&6;}
  21451. fi
  21452. fi;
  21453. disable_bpf=no
  21454. # Check whether --enable-bpf or --disable-bpf was given.
  21455. if test "${enable_bpf+set}" = set; then
  21456. enableval="$enable_bpf"
  21457. disable_bpf=yes
  21458. fi;
  21459. disable_pf=no
  21460. # Check whether --enable-pf or --disable-pf was given.
  21461. if test "${enable_pf+set}" = set; then
  21462. enableval="$enable_pf"
  21463. if test x$enableval = xno ; then
  21464. disable_pf=yes
  21465. fi
  21466. fi;
  21467. disable_libnet=no
  21468. # Check whether --enable-libnet or --disable-libnet was given.
  21469. if test "${enable_libnet+set}" = set; then
  21470. enableval="$enable_libnet"
  21471. if test x$enableval = xno ; then
  21472. disable_libnet=yes
  21473. fi
  21474. fi;
  21475. disable_pcap=no
  21476. # Check whether --enable-pcap or --disable-pcap was given.
  21477. if test "${enable_pcap+set}" = set; then
  21478. enableval="$enable_pcap"
  21479. if test x$enableval = xno ; then
  21480. disable_pcap=yes
  21481. fi
  21482. fi;
  21483. dynamic_link=no
  21484. # Check whether --enable-dynamic-link or --disable-dynamic-link was given.
  21485. if test "${enable_dynamic_link+set}" = set; then
  21486. enableval="$enable_dynamic_link"
  21487. if test x$enableval = xyes; then
  21488. cat >>confdefs.h <<\_ACEOF
  21489. #define ENABLE_DYNAMIC_LINK 1
  21490. _ACEOF
  21491. dynamic_link=yes
  21492. fi
  21493. fi;
  21494. echo "$as_me:$LINENO: checking for inet_aton" >&5
  21495. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
  21496. if test "${ac_cv_func_inet_aton+set}" = set; then
  21497. echo $ECHO_N "(cached) $ECHO_C" >&6
  21498. else
  21499. cat >conftest.$ac_ext <<_ACEOF
  21500. /* confdefs.h. */
  21501. _ACEOF
  21502. cat confdefs.h >>conftest.$ac_ext
  21503. cat >>conftest.$ac_ext <<_ACEOF
  21504. /* end confdefs.h. */
  21505. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  21506. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21507. #define inet_aton innocuous_inet_aton
  21508. /* System header to define __stub macros and hopefully few prototypes,
  21509. which can conflict with char inet_aton (); below.
  21510. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21511. <limits.h> exists even on freestanding compilers. */
  21512. #ifdef __STDC__
  21513. # include <limits.h>
  21514. #else
  21515. # include <assert.h>
  21516. #endif
  21517. #undef inet_aton
  21518. /* Override any gcc2 internal prototype to avoid an error. */
  21519. #ifdef __cplusplus
  21520. extern "C"
  21521. {
  21522. #endif
  21523. /* We use char because int might match the return type of a gcc2
  21524. builtin and then its argument prototype would still apply. */
  21525. char inet_aton ();
  21526. /* The GNU C library defines this for functions which it implements
  21527. to always fail with ENOSYS. Some functions are actually named
  21528. something starting with __ and the normal name is an alias. */
  21529. #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
  21530. choke me
  21531. #else
  21532. char (*f) () = inet_aton;
  21533. #endif
  21534. #ifdef __cplusplus
  21535. }
  21536. #endif
  21537. int
  21538. main ()
  21539. {
  21540. return f != inet_aton;
  21541. ;
  21542. return 0;
  21543. }
  21544. _ACEOF
  21545. rm -f conftest.$ac_objext conftest$ac_exeext
  21546. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21547. (eval $ac_link) 2>conftest.er1
  21548. ac_status=$?
  21549. grep -v '^ *+' conftest.er1 >conftest.err
  21550. rm -f conftest.er1
  21551. cat conftest.err >&5
  21552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21553. (exit $ac_status); } &&
  21554. { ac_try='test -z "$ac_c_werror_flag"
  21555. || test ! -s conftest.err'
  21556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21557. (eval $ac_try) 2>&5
  21558. ac_status=$?
  21559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21560. (exit $ac_status); }; } &&
  21561. { ac_try='test -s conftest$ac_exeext'
  21562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21563. (eval $ac_try) 2>&5
  21564. ac_status=$?
  21565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21566. (exit $ac_status); }; }; then
  21567. ac_cv_func_inet_aton=yes
  21568. else
  21569. echo "$as_me: failed program was:" >&5
  21570. sed 's/^/| /' conftest.$ac_ext >&5
  21571. ac_cv_func_inet_aton=no
  21572. fi
  21573. rm -f conftest.err conftest.$ac_objext \
  21574. conftest$ac_exeext conftest.$ac_ext
  21575. fi
  21576. echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  21577. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
  21578. if test $ac_cv_func_inet_aton = yes; then
  21579. cat >>confdefs.h <<\_ACEOF
  21580. #define HAVE_INET_ATON 1
  21581. _ACEOF
  21582. inet_aton=yes
  21583. else
  21584. inet_aton=no
  21585. fi
  21586. echo "$as_me:$LINENO: checking for inet_pton" >&5
  21587. echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
  21588. if test "${ac_cv_func_inet_pton+set}" = set; then
  21589. echo $ECHO_N "(cached) $ECHO_C" >&6
  21590. else
  21591. cat >conftest.$ac_ext <<_ACEOF
  21592. /* confdefs.h. */
  21593. _ACEOF
  21594. cat confdefs.h >>conftest.$ac_ext
  21595. cat >>conftest.$ac_ext <<_ACEOF
  21596. /* end confdefs.h. */
  21597. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  21598. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21599. #define inet_pton innocuous_inet_pton
  21600. /* System header to define __stub macros and hopefully few prototypes,
  21601. which can conflict with char inet_pton (); below.
  21602. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21603. <limits.h> exists even on freestanding compilers. */
  21604. #ifdef __STDC__
  21605. # include <limits.h>
  21606. #else
  21607. # include <assert.h>
  21608. #endif
  21609. #undef inet_pton
  21610. /* Override any gcc2 internal prototype to avoid an error. */
  21611. #ifdef __cplusplus
  21612. extern "C"
  21613. {
  21614. #endif
  21615. /* We use char because int might match the return type of a gcc2
  21616. builtin and then its argument prototype would still apply. */
  21617. char inet_pton ();
  21618. /* The GNU C library defines this for functions which it implements
  21619. to always fail with ENOSYS. Some functions are actually named
  21620. something starting with __ and the normal name is an alias. */
  21621. #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
  21622. choke me
  21623. #else
  21624. char (*f) () = inet_pton;
  21625. #endif
  21626. #ifdef __cplusplus
  21627. }
  21628. #endif
  21629. int
  21630. main ()
  21631. {
  21632. return f != inet_pton;
  21633. ;
  21634. return 0;
  21635. }
  21636. _ACEOF
  21637. rm -f conftest.$ac_objext conftest$ac_exeext
  21638. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21639. (eval $ac_link) 2>conftest.er1
  21640. ac_status=$?
  21641. grep -v '^ *+' conftest.er1 >conftest.err
  21642. rm -f conftest.er1
  21643. cat conftest.err >&5
  21644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21645. (exit $ac_status); } &&
  21646. { ac_try='test -z "$ac_c_werror_flag"
  21647. || test ! -s conftest.err'
  21648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21649. (eval $ac_try) 2>&5
  21650. ac_status=$?
  21651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21652. (exit $ac_status); }; } &&
  21653. { ac_try='test -s conftest$ac_exeext'
  21654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21655. (eval $ac_try) 2>&5
  21656. ac_status=$?
  21657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21658. (exit $ac_status); }; }; then
  21659. ac_cv_func_inet_pton=yes
  21660. else
  21661. echo "$as_me: failed program was:" >&5
  21662. sed 's/^/| /' conftest.$ac_ext >&5
  21663. ac_cv_func_inet_pton=no
  21664. fi
  21665. rm -f conftest.err conftest.$ac_objext \
  21666. conftest$ac_exeext conftest.$ac_ext
  21667. fi
  21668. echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  21669. echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
  21670. if test $ac_cv_func_inet_pton = yes; then
  21671. cat >>confdefs.h <<\_ACEOF
  21672. #define HAVE_INET_PTON 1
  21673. _ACEOF
  21674. inet_pton=yes
  21675. else
  21676. inet_pton=no
  21677. fi
  21678. echo "$as_me:$LINENO: checking for inet_ntop" >&5
  21679. echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
  21680. if test "${ac_cv_func_inet_ntop+set}" = set; then
  21681. echo $ECHO_N "(cached) $ECHO_C" >&6
  21682. else
  21683. cat >conftest.$ac_ext <<_ACEOF
  21684. /* confdefs.h. */
  21685. _ACEOF
  21686. cat confdefs.h >>conftest.$ac_ext
  21687. cat >>conftest.$ac_ext <<_ACEOF
  21688. /* end confdefs.h. */
  21689. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  21690. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21691. #define inet_ntop innocuous_inet_ntop
  21692. /* System header to define __stub macros and hopefully few prototypes,
  21693. which can conflict with char inet_ntop (); below.
  21694. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21695. <limits.h> exists even on freestanding compilers. */
  21696. #ifdef __STDC__
  21697. # include <limits.h>
  21698. #else
  21699. # include <assert.h>
  21700. #endif
  21701. #undef inet_ntop
  21702. /* Override any gcc2 internal prototype to avoid an error. */
  21703. #ifdef __cplusplus
  21704. extern "C"
  21705. {
  21706. #endif
  21707. /* We use char because int might match the return type of a gcc2
  21708. builtin and then its argument prototype would still apply. */
  21709. char inet_ntop ();
  21710. /* The GNU C library defines this for functions which it implements
  21711. to always fail with ENOSYS. Some functions are actually named
  21712. something starting with __ and the normal name is an alias. */
  21713. #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
  21714. choke me
  21715. #else
  21716. char (*f) () = inet_ntop;
  21717. #endif
  21718. #ifdef __cplusplus
  21719. }
  21720. #endif
  21721. int
  21722. main ()
  21723. {
  21724. return f != inet_ntop;
  21725. ;
  21726. return 0;
  21727. }
  21728. _ACEOF
  21729. rm -f conftest.$ac_objext conftest$ac_exeext
  21730. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21731. (eval $ac_link) 2>conftest.er1
  21732. ac_status=$?
  21733. grep -v '^ *+' conftest.er1 >conftest.err
  21734. rm -f conftest.er1
  21735. cat conftest.err >&5
  21736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21737. (exit $ac_status); } &&
  21738. { ac_try='test -z "$ac_c_werror_flag"
  21739. || test ! -s conftest.err'
  21740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21741. (eval $ac_try) 2>&5
  21742. ac_status=$?
  21743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21744. (exit $ac_status); }; } &&
  21745. { ac_try='test -s conftest$ac_exeext'
  21746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21747. (eval $ac_try) 2>&5
  21748. ac_status=$?
  21749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21750. (exit $ac_status); }; }; then
  21751. ac_cv_func_inet_ntop=yes
  21752. else
  21753. echo "$as_me: failed program was:" >&5
  21754. sed 's/^/| /' conftest.$ac_ext >&5
  21755. ac_cv_func_inet_ntop=no
  21756. fi
  21757. rm -f conftest.err conftest.$ac_objext \
  21758. conftest$ac_exeext conftest.$ac_ext
  21759. fi
  21760. echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  21761. echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
  21762. if test $ac_cv_func_inet_ntop = yes; then
  21763. cat >>confdefs.h <<\_ACEOF
  21764. #define HAVE_INET_NTOP 1
  21765. _ACEOF
  21766. inet_ntop=yes
  21767. else
  21768. inet_ntop=no
  21769. fi
  21770. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  21771. { { echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  21772. echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  21773. { (exit 1); exit 1; }; }
  21774. fi
  21775. if test "$inet_aton" = "no" ; then
  21776. { { echo "$as_me:$LINENO: error: We need inet_aton" >&5
  21777. echo "$as_me: error: We need inet_aton" >&2;}
  21778. { (exit 1); exit 1; }; }
  21779. fi
  21780. echo "$as_me:$LINENO: checking for inet_addr" >&5
  21781. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
  21782. if test "${ac_cv_func_inet_addr+set}" = set; then
  21783. echo $ECHO_N "(cached) $ECHO_C" >&6
  21784. else
  21785. cat >conftest.$ac_ext <<_ACEOF
  21786. /* confdefs.h. */
  21787. _ACEOF
  21788. cat confdefs.h >>conftest.$ac_ext
  21789. cat >>conftest.$ac_ext <<_ACEOF
  21790. /* end confdefs.h. */
  21791. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  21792. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21793. #define inet_addr innocuous_inet_addr
  21794. /* System header to define __stub macros and hopefully few prototypes,
  21795. which can conflict with char inet_addr (); below.
  21796. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21797. <limits.h> exists even on freestanding compilers. */
  21798. #ifdef __STDC__
  21799. # include <limits.h>
  21800. #else
  21801. # include <assert.h>
  21802. #endif
  21803. #undef inet_addr
  21804. /* Override any gcc2 internal prototype to avoid an error. */
  21805. #ifdef __cplusplus
  21806. extern "C"
  21807. {
  21808. #endif
  21809. /* We use char because int might match the return type of a gcc2
  21810. builtin and then its argument prototype would still apply. */
  21811. char inet_addr ();
  21812. /* The GNU C library defines this for functions which it implements
  21813. to always fail with ENOSYS. Some functions are actually named
  21814. something starting with __ and the normal name is an alias. */
  21815. #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
  21816. choke me
  21817. #else
  21818. char (*f) () = inet_addr;
  21819. #endif
  21820. #ifdef __cplusplus
  21821. }
  21822. #endif
  21823. int
  21824. main ()
  21825. {
  21826. return f != inet_addr;
  21827. ;
  21828. return 0;
  21829. }
  21830. _ACEOF
  21831. rm -f conftest.$ac_objext conftest$ac_exeext
  21832. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21833. (eval $ac_link) 2>conftest.er1
  21834. ac_status=$?
  21835. grep -v '^ *+' conftest.er1 >conftest.err
  21836. rm -f conftest.er1
  21837. cat conftest.err >&5
  21838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21839. (exit $ac_status); } &&
  21840. { ac_try='test -z "$ac_c_werror_flag"
  21841. || test ! -s conftest.err'
  21842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21843. (eval $ac_try) 2>&5
  21844. ac_status=$?
  21845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21846. (exit $ac_status); }; } &&
  21847. { ac_try='test -s conftest$ac_exeext'
  21848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21849. (eval $ac_try) 2>&5
  21850. ac_status=$?
  21851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21852. (exit $ac_status); }; }; then
  21853. ac_cv_func_inet_addr=yes
  21854. else
  21855. echo "$as_me: failed program was:" >&5
  21856. sed 's/^/| /' conftest.$ac_ext >&5
  21857. ac_cv_func_inet_addr=no
  21858. fi
  21859. rm -f conftest.err conftest.$ac_objext \
  21860. conftest$ac_exeext conftest.$ac_ext
  21861. fi
  21862. echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  21863. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
  21864. if test $ac_cv_func_inet_addr = yes; then
  21865. cat >>confdefs.h <<\_ACEOF
  21866. #define HAVE_INET_ADDR 1
  21867. _ACEOF
  21868. inet_addr=yes
  21869. else
  21870. inet_addr=no
  21871. fi
  21872. if test x$inet_addr = no ; then
  21873. { { echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  21874. echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  21875. { (exit 1); exit 1; }; }
  21876. fi
  21877. flowreplay=no
  21878. # Check whether --enable-flowreplay or --disable-flowreplay was given.
  21879. if test "${enable_flowreplay+set}" = set; then
  21880. enableval="$enable_flowreplay"
  21881. if test x$enableval = xyes; then
  21882. flowreplay=yes
  21883. cat >>confdefs.h <<\_ACEOF
  21884. #define ENABLE_FLOWREPLAY 1
  21885. _ACEOF
  21886. fi
  21887. fi;
  21888. if test x$flowreplay = xyes; then
  21889. ENABLE_FLOWREPLAY_TRUE=
  21890. ENABLE_FLOWREPLAY_FALSE='#'
  21891. else
  21892. ENABLE_FLOWREPLAY_TRUE='#'
  21893. ENABLE_FLOWREPLAY_FALSE=
  21894. fi
  21895. foundnet=no
  21896. if test $disable_libnet = no ; then
  21897. trynetdir=/usr/local
  21898. echo "$as_me:$LINENO: checking for libnet" >&5
  21899. echo $ECHO_N "checking for libnet... $ECHO_C" >&6
  21900. # Check whether --with-libnet or --without-libnet was given.
  21901. if test "${with_libnet+set}" = set; then
  21902. withval="$with_libnet"
  21903. trynetdir=$withval
  21904. fi;
  21905. for testdir in $trynetdir /usr/local /usr ; do
  21906. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  21907. LNETINC="${testdir}/include/libnet.h"
  21908. LNETINCDIR="$testdir/include"
  21909. if test $dynamic_link = yes; then
  21910. LNETLIB="-L${testdir}/lib -lnet"
  21911. elif test -f "${testdir}/lib64/libnet.a" ; then
  21912. LNETLIB="${testdir}/lib64/libnet.a"
  21913. else
  21914. LNETLIB="${testdir}/lib/libnet.a"
  21915. fi
  21916. foundnet=$testdir
  21917. fi
  21918. done
  21919. if test $foundnet = no ; then
  21920. echo "$as_me:$LINENO: result: no" >&5
  21921. echo "${ECHO_T}no" >&6
  21922. else
  21923. echo "$as_me:$LINENO: result: $foundnet" >&5
  21924. echo "${ECHO_T}$foundnet" >&6
  21925. cat >>confdefs.h <<\_ACEOF
  21926. #define HAVE_LIBNET 1
  21927. _ACEOF
  21928. fi
  21929. fi
  21930. if test $foundnet = yes ; then
  21931. OLDLIBS="$LIBS"
  21932. OLDCFLAGS="$CFLAGS"
  21933. LIBS="$LNETLIB"
  21934. CFLAGS="$CFLAGS -I$LNETINCDIR"
  21935. echo "$as_me:$LINENO: checking for libnet version" >&5
  21936. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6
  21937. if test "$cross_compiling" = yes; then
  21938. libnet_ver_10=no
  21939. else
  21940. cat >conftest.$ac_ext <<_ACEOF
  21941. /* confdefs.h. */
  21942. _ACEOF
  21943. cat confdefs.h >>conftest.$ac_ext
  21944. cat >>conftest.$ac_ext <<_ACEOF
  21945. /* end confdefs.h. */
  21946. #include <string.h>
  21947. #define LIBNET_LIL_ENDIAN 1
  21948. #include "$LNETINC"
  21949. #define LIB_TEST "1.0"
  21950. /*
  21951. * simple proggy to test the version of libnet
  21952. * returns zero if it's 1.0.x
  21953. * or one otherwise
  21954. */
  21955. int
  21956. main (int argc, char *argv[])
  21957. {
  21958. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  21959. exit(0);
  21960. exit(1);
  21961. }
  21962. _ACEOF
  21963. rm -f conftest$ac_exeext
  21964. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21965. (eval $ac_link) 2>&5
  21966. ac_status=$?
  21967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21968. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21970. (eval $ac_try) 2>&5
  21971. ac_status=$?
  21972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21973. (exit $ac_status); }; }; then
  21974. libnet_ver_10=yes
  21975. echo "$as_me:$LINENO: result: 1.0.x" >&5
  21976. echo "${ECHO_T}1.0.x" >&6
  21977. else
  21978. echo "$as_me: program exited with status $ac_status" >&5
  21979. echo "$as_me: failed program was:" >&5
  21980. sed 's/^/| /' conftest.$ac_ext >&5
  21981. ( exit $ac_status )
  21982. libnet_ver_10=no
  21983. fi
  21984. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21985. fi
  21986. if test "$cross_compiling" = yes; then
  21987. libnet_ver_11=no
  21988. else
  21989. cat >conftest.$ac_ext <<_ACEOF
  21990. /* confdefs.h. */
  21991. _ACEOF
  21992. cat confdefs.h >>conftest.$ac_ext
  21993. cat >>conftest.$ac_ext <<_ACEOF
  21994. /* end confdefs.h. */
  21995. #include <string.h>
  21996. #include "$LNETINC"
  21997. #define LIB_TEST "1.1"
  21998. /*
  21999. * simple proggy to test the version of libnet
  22000. * returns zero if it's 1.0.x
  22001. * or one otherwise
  22002. */
  22003. int
  22004. main (int argc, char *argv[])
  22005. {
  22006. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22007. exit(0);
  22008. exit(1);
  22009. }
  22010. _ACEOF
  22011. rm -f conftest$ac_exeext
  22012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22013. (eval $ac_link) 2>&5
  22014. ac_status=$?
  22015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22016. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22018. (eval $ac_try) 2>&5
  22019. ac_status=$?
  22020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22021. (exit $ac_status); }; }; then
  22022. libnet_ver_11=yes
  22023. echo "$as_me:$LINENO: result: 1.1.x" >&5
  22024. echo "${ECHO_T}1.1.x" >&6
  22025. else
  22026. echo "$as_me: program exited with status $ac_status" >&5
  22027. echo "$as_me: failed program was:" >&5
  22028. sed 's/^/| /' conftest.$ac_ext >&5
  22029. ( exit $ac_status )
  22030. libnet_ver_11=no
  22031. fi
  22032. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22033. fi
  22034. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  22035. echo "$as_me:$LINENO: result: unknown" >&5
  22036. echo "${ECHO_T}unknown" >&6
  22037. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  22038. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  22039. { (exit 1); exit 1; }; }
  22040. fi
  22041. if test $libnet_ver_10 = yes ; then
  22042. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  22043. Please upgrade to 1.1.0 or better" >&5
  22044. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  22045. Please upgrade to 1.1.0 or better" >&2;}
  22046. { (exit 1); exit 1; }; }
  22047. fi
  22048. LIBS="$OLDLIBS"
  22049. CFLAGS="$OLDCFLAGS"
  22050. fi
  22051. foundpcap=no
  22052. trypcapdir=/usr/local
  22053. echo "$as_me:$LINENO: checking for libpcap" >&5
  22054. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6
  22055. # Check whether --with-libpcap or --without-libpcap was given.
  22056. if test "${with_libpcap+set}" = set; then
  22057. withval="$with_libpcap"
  22058. trypcapdir=$withval
  22059. fi;
  22060. for testdir in $trypcapdir /usr/local /usr ; do
  22061. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  22062. LPCAPINC="${testdir}/include/pcap.h"
  22063. LPCAPINCDIR="${testdir}/include"
  22064. if test $dynamic_link = yes; then
  22065. LPCAPLIB="-L${testdir}/lib -lpcap"
  22066. elif test -f "${testdir}/lib64/libpcap.a" ; then
  22067. LPCAPLIB="${testdir}/lib64/libpcap.a"
  22068. else
  22069. LPCAPLIB="${testdir}/lib/libpcap.a"
  22070. fi
  22071. foundpcap=$testdir
  22072. fi
  22073. done
  22074. if test $foundpcap = no ; then
  22075. echo "$as_me:$LINENO: result: no" >&5
  22076. echo "${ECHO_T}no" >&6
  22077. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  22078. echo "$as_me: error: libpcap not found" >&2;}
  22079. { (exit 1); exit 1; }; }
  22080. else
  22081. echo "$as_me:$LINENO: result: $foundpcap" >&5
  22082. echo "${ECHO_T}$foundpcap" >&6
  22083. fi
  22084. OLDLIBS="$LIBS"
  22085. OLDCFLAGS="$CFLAGS"
  22086. LIBS="$LPCAPLIB"
  22087. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  22088. have_libnet=no
  22089. echo "$as_me:$LINENO: checking for libpcap version" >&5
  22090. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6
  22091. if test "$cross_compiling" = yes; then
  22092. libpcap_ver=no
  22093. echo "$as_me:$LINENO: result: < 0.5" >&5
  22094. echo "${ECHO_T}< 0.5" >&6
  22095. else
  22096. cat >conftest.$ac_ext <<_ACEOF
  22097. /* confdefs.h. */
  22098. _ACEOF
  22099. cat confdefs.h >>conftest.$ac_ext
  22100. cat >>conftest.$ac_ext <<_ACEOF
  22101. /* end confdefs.h. */
  22102. #include <string.h>
  22103. #include <stdlib.h>
  22104. #include <stdio.h>
  22105. #include "$LPCAPINC"
  22106. #define PCAP_TEST "0.5"
  22107. /*
  22108. * simple proggy to test the version of libpcap
  22109. * returns zero if version >= 0.5
  22110. * or one otherwise
  22111. */
  22112. extern char pcap_version[];
  22113. int
  22114. main (int argc, char *argv[])
  22115. {
  22116. if (strncmp(pcap_version, PCAP_TEST, 3) >= 0)
  22117. exit(0);
  22118. exit(1);
  22119. }
  22120. _ACEOF
  22121. rm -f conftest$ac_exeext
  22122. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22123. (eval $ac_link) 2>&5
  22124. ac_status=$?
  22125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22126. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22128. (eval $ac_try) 2>&5
  22129. ac_status=$?
  22130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22131. (exit $ac_status); }; }; then
  22132. libpcap_ver=yes
  22133. echo "$as_me:$LINENO: result: >= 0.5" >&5
  22134. echo "${ECHO_T}>= 0.5" >&6
  22135. else
  22136. echo "$as_me: program exited with status $ac_status" >&5
  22137. echo "$as_me: failed program was:" >&5
  22138. sed 's/^/| /' conftest.$ac_ext >&5
  22139. ( exit $ac_status )
  22140. libpcap_ver=no
  22141. echo "$as_me:$LINENO: result: < 0.5" >&5
  22142. echo "${ECHO_T}< 0.5" >&6
  22143. fi
  22144. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22145. fi
  22146. if test $libpcap_ver = no ; then
  22147. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.5 are not supported.
  22148. Please upgrade to version 0.5 or better" >&5
  22149. echo "$as_me: error: Libpcap versions < 0.5 are not supported.
  22150. Please upgrade to version 0.5 or better" >&2;}
  22151. { (exit 1); exit 1; }; }
  22152. fi
  22153. echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  22154. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
  22155. if test "$cross_compiling" = yes; then
  22156. have_dlt_to_desc=no
  22157. echo "$as_me:$LINENO: result: no" >&5
  22158. echo "${ECHO_T}no" >&6
  22159. else
  22160. cat >conftest.$ac_ext <<_ACEOF
  22161. /* confdefs.h. */
  22162. _ACEOF
  22163. cat confdefs.h >>conftest.$ac_ext
  22164. cat >>conftest.$ac_ext <<_ACEOF
  22165. /* end confdefs.h. */
  22166. #include <stdio.h>
  22167. #include <stdlib.h>
  22168. #include <string.h>
  22169. #include "$LPCAPINC"
  22170. int
  22171. main(int argc, char *argv[]) {
  22172. pcap_datalink_val_to_description(1);
  22173. exit(0);
  22174. }
  22175. _ACEOF
  22176. rm -f conftest$ac_exeext
  22177. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22178. (eval $ac_link) 2>&5
  22179. ac_status=$?
  22180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22181. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22183. (eval $ac_try) 2>&5
  22184. ac_status=$?
  22185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22186. (exit $ac_status); }; }; then
  22187. have_dlt_to_desc=yes
  22188. echo "$as_me:$LINENO: result: yes" >&5
  22189. echo "${ECHO_T}yes" >&6
  22190. else
  22191. echo "$as_me: program exited with status $ac_status" >&5
  22192. echo "$as_me: failed program was:" >&5
  22193. sed 's/^/| /' conftest.$ac_ext >&5
  22194. ( exit $ac_status )
  22195. have_dlt_to_desc=no
  22196. echo "$as_me:$LINENO: result: no" >&5
  22197. echo "${ECHO_T}no" >&6
  22198. fi
  22199. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22200. fi
  22201. if test $have_dlt_to_desc = yes ; then
  22202. cat >>confdefs.h <<\_ACEOF
  22203. #define HAVE_DLT_VAL_TO_DESC 1
  22204. _ACEOF
  22205. fi
  22206. echo "$as_me:$LINENO: checking for libnet packet sending support" >&5
  22207. echo $ECHO_N "checking for libnet packet sending support... $ECHO_C" >&6
  22208. if test $disable_libnet = no -a $foundnet != no ; then
  22209. echo "$as_me:$LINENO: result: yes" >&5
  22210. echo "${ECHO_T}yes" >&6
  22211. cat >>confdefs.h <<\_ACEOF
  22212. #define HAVE_LIBNET 1
  22213. _ACEOF
  22214. have_libnet=yes
  22215. else
  22216. echo "$as_me:$LINENO: result: no" >&5
  22217. echo "${ECHO_T}no" >&6
  22218. fi
  22219. have_pcap_inject=no
  22220. echo "$as_me:$LINENO: checking for pcap_inject sending support" >&5
  22221. echo $ECHO_N "checking for pcap_inject sending support... $ECHO_C" >&6
  22222. cat >conftest.$ac_ext <<_ACEOF
  22223. /* confdefs.h. */
  22224. _ACEOF
  22225. cat confdefs.h >>conftest.$ac_ext
  22226. cat >>conftest.$ac_ext <<_ACEOF
  22227. /* end confdefs.h. */
  22228. #include <stdio.h>
  22229. #include <stdlib.h>
  22230. #include <string.h>
  22231. #include "$LPCAPINC"
  22232. int
  22233. main ()
  22234. {
  22235. pcap_t *pcap;
  22236. char *buf;
  22237. pcap_inject(pcap, (void *)buf, 0);
  22238. ;
  22239. return 0;
  22240. }
  22241. _ACEOF
  22242. rm -f conftest.$ac_objext
  22243. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22244. (eval $ac_compile) 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. { ac_try='test -z "$ac_c_werror_flag"
  22252. || test ! -s conftest.err'
  22253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22254. (eval $ac_try) 2>&5
  22255. ac_status=$?
  22256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22257. (exit $ac_status); }; } &&
  22258. { ac_try='test -s conftest.$ac_objext'
  22259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22260. (eval $ac_try) 2>&5
  22261. ac_status=$?
  22262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22263. (exit $ac_status); }; }; then
  22264. if test $disable_pcap = no ; then
  22265. cat >>confdefs.h <<\_ACEOF
  22266. #define HAVE_PCAP_INJECT 1
  22267. _ACEOF
  22268. echo "$as_me:$LINENO: result: yes" >&5
  22269. echo "${ECHO_T}yes" >&6
  22270. have_pcap_inject=yes
  22271. else
  22272. echo "$as_me:$LINENO: result: no" >&5
  22273. echo "${ECHO_T}no" >&6
  22274. fi
  22275. else
  22276. echo "$as_me: failed program was:" >&5
  22277. sed 's/^/| /' conftest.$ac_ext >&5
  22278. echo "$as_me:$LINENO: result: no" >&5
  22279. echo "${ECHO_T}no" >&6
  22280. fi
  22281. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22282. have_pcap_sendpacket=no
  22283. echo "$as_me:$LINENO: checking for pcap_sendpacket sending support" >&5
  22284. echo $ECHO_N "checking for pcap_sendpacket sending support... $ECHO_C" >&6
  22285. cat >conftest.$ac_ext <<_ACEOF
  22286. /* confdefs.h. */
  22287. _ACEOF
  22288. cat confdefs.h >>conftest.$ac_ext
  22289. cat >>conftest.$ac_ext <<_ACEOF
  22290. /* end confdefs.h. */
  22291. #include <stdio.h>
  22292. #include <stdlib.h>
  22293. #include <string.h>
  22294. #include "$LPCAPINC"
  22295. int
  22296. main ()
  22297. {
  22298. pcap_t *pcap;
  22299. u_char *buf;
  22300. pcap_sendpacket(pcap, buf, 0);
  22301. ;
  22302. return 0;
  22303. }
  22304. _ACEOF
  22305. rm -f conftest.$ac_objext
  22306. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22307. (eval $ac_compile) 2>conftest.er1
  22308. ac_status=$?
  22309. grep -v '^ *+' conftest.er1 >conftest.err
  22310. rm -f conftest.er1
  22311. cat conftest.err >&5
  22312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22313. (exit $ac_status); } &&
  22314. { ac_try='test -z "$ac_c_werror_flag"
  22315. || test ! -s conftest.err'
  22316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22317. (eval $ac_try) 2>&5
  22318. ac_status=$?
  22319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22320. (exit $ac_status); }; } &&
  22321. { ac_try='test -s conftest.$ac_objext'
  22322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22323. (eval $ac_try) 2>&5
  22324. ac_status=$?
  22325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22326. (exit $ac_status); }; }; then
  22327. if test $disable_pcap = no ; then
  22328. cat >>confdefs.h <<\_ACEOF
  22329. #define HAVE_PCAP_SENDPACKET 1
  22330. _ACEOF
  22331. echo "$as_me:$LINENO: result: yes" >&5
  22332. echo "${ECHO_T}yes" >&6
  22333. have_pcap_sendpacket=yes
  22334. else
  22335. echo "$as_me:$LINENO: result: no" >&5
  22336. echo "${ECHO_T}no" >&6
  22337. fi
  22338. else
  22339. echo "$as_me: failed program was:" >&5
  22340. sed 's/^/| /' conftest.$ac_ext >&5
  22341. echo "$as_me:$LINENO: result: no" >&5
  22342. echo "${ECHO_T}no" >&6
  22343. fi
  22344. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22345. have_pf=no
  22346. echo "$as_me:$LINENO: checking for PF_PACKET socket sending support" >&5
  22347. echo $ECHO_N "checking for PF_PACKET socket sending support... $ECHO_C" >&6
  22348. cat >conftest.$ac_ext <<_ACEOF
  22349. /* confdefs.h. */
  22350. _ACEOF
  22351. cat confdefs.h >>conftest.$ac_ext
  22352. cat >>conftest.$ac_ext <<_ACEOF
  22353. /* end confdefs.h. */
  22354. #include <sys/socket.h>
  22355. #include <netpacket/packet.h>
  22356. #include <net/ethernet.h> /* the L2 protocols */
  22357. #include <netinet/in.h> /* htons */
  22358. int
  22359. main ()
  22360. {
  22361. int pf_socket;
  22362. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  22363. ;
  22364. return 0;
  22365. }
  22366. _ACEOF
  22367. rm -f conftest.$ac_objext
  22368. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22369. (eval $ac_compile) 2>conftest.er1
  22370. ac_status=$?
  22371. grep -v '^ *+' conftest.er1 >conftest.err
  22372. rm -f conftest.er1
  22373. cat conftest.err >&5
  22374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22375. (exit $ac_status); } &&
  22376. { ac_try='test -z "$ac_c_werror_flag"
  22377. || test ! -s conftest.err'
  22378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22379. (eval $ac_try) 2>&5
  22380. ac_status=$?
  22381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22382. (exit $ac_status); }; } &&
  22383. { ac_try='test -s conftest.$ac_objext'
  22384. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22385. (eval $ac_try) 2>&5
  22386. ac_status=$?
  22387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22388. (exit $ac_status); }; }; then
  22389. if test $disable_pf = no ; then
  22390. cat >>confdefs.h <<\_ACEOF
  22391. #define HAVE_PF_PACKET 1
  22392. _ACEOF
  22393. echo "$as_me:$LINENO: result: yes" >&5
  22394. echo "${ECHO_T}yes" >&6
  22395. have_pf=yes
  22396. else
  22397. echo "$as_me:$LINENO: result: no" >&5
  22398. echo "${ECHO_T}no" >&6
  22399. fi
  22400. else
  22401. echo "$as_me: failed program was:" >&5
  22402. sed 's/^/| /' conftest.$ac_ext >&5
  22403. echo "$as_me:$LINENO: result: no" >&5
  22404. echo "${ECHO_T}no" >&6
  22405. fi
  22406. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22407. have_bpf=no
  22408. echo "$as_me:$LINENO: checking for BPF device sending support" >&5
  22409. echo $ECHO_N "checking for BPF device sending support... $ECHO_C" >&6
  22410. if test "$cross_compiling" = yes; then
  22411. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  22412. See \`config.log' for more details." >&5
  22413. echo "$as_me: error: cannot run test program while cross compiling
  22414. See \`config.log' for more details." >&2;}
  22415. { (exit 1); exit 1; }; }
  22416. else
  22417. cat >conftest.$ac_ext <<_ACEOF
  22418. /* confdefs.h. */
  22419. _ACEOF
  22420. cat confdefs.h >>conftest.$ac_ext
  22421. cat >>conftest.$ac_ext <<_ACEOF
  22422. /* end confdefs.h. */
  22423. #include <stdio.h>
  22424. #include <stdlib.h>
  22425. #include <net/bpf.h>
  22426. #include <sys/types.h>
  22427. #include <sys/socket.h>
  22428. #include <fcntl.h>
  22429. #include <sys/time.h>
  22430. #include <sys/ioctl.h>
  22431. #include <net/bpf.h>
  22432. #include <errno.h>
  22433. int
  22434. main(int argc, char *argv[]) {
  22435. int fd;
  22436. fd = open("/dev/bpf0", O_RDONLY, 0);
  22437. /* if we opened it, we're good */
  22438. if (fd > 1)
  22439. exit(0);
  22440. /* if we got EBUSY or permission denied it exists, so we're good */
  22441. if (fd < 0 && (errno == EBUSY || errno == 13))
  22442. exit(0);
  22443. /* else suck, no good */
  22444. exit(-1);
  22445. }
  22446. _ACEOF
  22447. rm -f conftest$ac_exeext
  22448. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22449. (eval $ac_link) 2>&5
  22450. ac_status=$?
  22451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22452. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22454. (eval $ac_try) 2>&5
  22455. ac_status=$?
  22456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22457. (exit $ac_status); }; }; then
  22458. if test $disable_bpf = no ; then
  22459. cat >>confdefs.h <<\_ACEOF
  22460. #define HAVE_BPF 1
  22461. _ACEOF
  22462. echo "$as_me:$LINENO: result: yes" >&5
  22463. echo "${ECHO_T}yes" >&6
  22464. have_bpf=yes
  22465. else
  22466. echo "$as_me:$LINENO: result: no" >&5
  22467. echo "${ECHO_T}no" >&6
  22468. fi
  22469. else
  22470. echo "$as_me: program exited with status $ac_status" >&5
  22471. echo "$as_me: failed program was:" >&5
  22472. sed 's/^/| /' conftest.$ac_ext >&5
  22473. fi
  22474. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22475. fi
  22476. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  22477. -a $have_libnet = no -a $have_pf = no ; then
  22478. { { echo "$as_me:$LINENO: error: Unable to find a supported method to send packets" >&5
  22479. echo "$as_me: error: Unable to find a supported method to send packets" >&2;}
  22480. { (exit 1); exit 1; }; }
  22481. fi
  22482. enable_tcpbridge=yes
  22483. if test $have_bpf = no -a $have_libnet = no -a $have_pf = no ; then
  22484. { echo "$as_me:$LINENO: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&5
  22485. echo "$as_me: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&6;}
  22486. enable_tcpbridge=no
  22487. fi
  22488. if test $enable_tcpbridge = yes; then
  22489. ENABLE_TCPBRIDGE_TRUE=
  22490. ENABLE_TCPBRIDGE_FALSE='#'
  22491. else
  22492. ENABLE_TCPBRIDGE_TRUE='#'
  22493. ENABLE_TCPBRIDGE_FALSE=
  22494. fi
  22495. echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  22496. echo $ECHO_N "checking for DLT_LINUX_SLL in libpcap... $ECHO_C" >&6
  22497. cat >conftest.$ac_ext <<_ACEOF
  22498. /* confdefs.h. */
  22499. _ACEOF
  22500. cat confdefs.h >>conftest.$ac_ext
  22501. cat >>conftest.$ac_ext <<_ACEOF
  22502. /* end confdefs.h. */
  22503. #include "$LPCAPINC"
  22504. int
  22505. main ()
  22506. {
  22507. int foo;
  22508. foo = DLT_LINUX_SLL
  22509. ;
  22510. return 0;
  22511. }
  22512. _ACEOF
  22513. rm -f conftest.$ac_objext
  22514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22515. (eval $ac_compile) 2>conftest.er1
  22516. ac_status=$?
  22517. grep -v '^ *+' conftest.er1 >conftest.err
  22518. rm -f conftest.er1
  22519. cat conftest.err >&5
  22520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22521. (exit $ac_status); } &&
  22522. { ac_try='test -z "$ac_c_werror_flag"
  22523. || test ! -s conftest.err'
  22524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22525. (eval $ac_try) 2>&5
  22526. ac_status=$?
  22527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22528. (exit $ac_status); }; } &&
  22529. { ac_try='test -s conftest.$ac_objext'
  22530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22531. (eval $ac_try) 2>&5
  22532. ac_status=$?
  22533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22534. (exit $ac_status); }; }; then
  22535. cat >>confdefs.h <<\_ACEOF
  22536. #define HAVE_DLT_LINUX_SLL 1
  22537. _ACEOF
  22538. echo "$as_me:$LINENO: result: yes" >&5
  22539. echo "${ECHO_T}yes" >&6
  22540. else
  22541. echo "$as_me: failed program was:" >&5
  22542. sed 's/^/| /' conftest.$ac_ext >&5
  22543. echo "$as_me:$LINENO: result: no" >&5
  22544. echo "${ECHO_T}no" >&6
  22545. fi
  22546. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22547. echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  22548. echo $ECHO_N "checking for DLT_C_HDLC in libpcap... $ECHO_C" >&6
  22549. cat >conftest.$ac_ext <<_ACEOF
  22550. /* confdefs.h. */
  22551. _ACEOF
  22552. cat confdefs.h >>conftest.$ac_ext
  22553. cat >>conftest.$ac_ext <<_ACEOF
  22554. /* end confdefs.h. */
  22555. #include "$LPCAPINC"
  22556. int
  22557. main ()
  22558. {
  22559. int foo;
  22560. foo = DLT_C_HDLC
  22561. ;
  22562. return 0;
  22563. }
  22564. _ACEOF
  22565. rm -f conftest.$ac_objext
  22566. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22567. (eval $ac_compile) 2>conftest.er1
  22568. ac_status=$?
  22569. grep -v '^ *+' conftest.er1 >conftest.err
  22570. rm -f conftest.er1
  22571. cat conftest.err >&5
  22572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22573. (exit $ac_status); } &&
  22574. { ac_try='test -z "$ac_c_werror_flag"
  22575. || test ! -s conftest.err'
  22576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22577. (eval $ac_try) 2>&5
  22578. ac_status=$?
  22579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22580. (exit $ac_status); }; } &&
  22581. { ac_try='test -s conftest.$ac_objext'
  22582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22583. (eval $ac_try) 2>&5
  22584. ac_status=$?
  22585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22586. (exit $ac_status); }; }; then
  22587. cat >>confdefs.h <<\_ACEOF
  22588. #define HAVE_DLT_C_HDLC 1
  22589. _ACEOF
  22590. echo "$as_me:$LINENO: result: yes" >&5
  22591. echo "${ECHO_T}yes" >&6
  22592. else
  22593. echo "$as_me: failed program was:" >&5
  22594. sed 's/^/| /' conftest.$ac_ext >&5
  22595. echo "$as_me:$LINENO: result: no" >&5
  22596. echo "${ECHO_T}no" >&6
  22597. fi
  22598. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22599. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  22600. echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  22601. echo $ECHO_N "checking for $PCAP_BPF_H_FILE... $ECHO_C" >&6
  22602. cat >conftest.$ac_ext <<_ACEOF
  22603. /* confdefs.h. */
  22604. _ACEOF
  22605. cat confdefs.h >>conftest.$ac_ext
  22606. cat >>conftest.$ac_ext <<_ACEOF
  22607. /* end confdefs.h. */
  22608. #include <sys/types.h>
  22609. #include <sys/time.h>
  22610. #include "$PCAP_BPF_H_FILE"
  22611. int
  22612. main ()
  22613. {
  22614. int foo;
  22615. foo = BPF_MAJOR_VERSION;
  22616. ;
  22617. return 0;
  22618. }
  22619. _ACEOF
  22620. rm -f conftest.$ac_objext
  22621. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22622. (eval $ac_compile) 2>conftest.er1
  22623. ac_status=$?
  22624. grep -v '^ *+' conftest.er1 >conftest.err
  22625. rm -f conftest.er1
  22626. cat conftest.err >&5
  22627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22628. (exit $ac_status); } &&
  22629. { ac_try='test -z "$ac_c_werror_flag"
  22630. || test ! -s conftest.err'
  22631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22632. (eval $ac_try) 2>&5
  22633. ac_status=$?
  22634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22635. (exit $ac_status); }; } &&
  22636. { ac_try='test -s conftest.$ac_objext'
  22637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22638. (eval $ac_try) 2>&5
  22639. ac_status=$?
  22640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22641. (exit $ac_status); }; }; then
  22642. cat >>confdefs.h <<\_ACEOF
  22643. #define INCLUDE_PCAP_BPF_HEADER 1
  22644. _ACEOF
  22645. echo "$as_me:$LINENO: result: yes" >&5
  22646. echo "${ECHO_T}yes" >&6
  22647. else
  22648. echo "$as_me: failed program was:" >&5
  22649. sed 's/^/| /' conftest.$ac_ext >&5
  22650. echo "$as_me:$LINENO: result: no" >&5
  22651. echo "${ECHO_T}no" >&6
  22652. fi
  22653. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22654. LIBS="$OLDLIBS"
  22655. CFLAGS="$OLDCFLAGS"
  22656. pcapnav_ver=no
  22657. pcncfg=no
  22658. # Check whether --with-pcapnav-config or --without-pcapnav-config was given.
  22659. if test "${with_pcapnav_config+set}" = set; then
  22660. withval="$with_pcapnav_config"
  22661. echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  22662. echo $ECHO_N "checking for pcapnav-config... $ECHO_C" >&6
  22663. if test -x $withval ; then
  22664. pcncfg=$withval
  22665. echo "$as_me:$LINENO: result: $pcncfg" >&5
  22666. echo "${ECHO_T}$pcncfg" >&6
  22667. elif test x$withval = xno ; then
  22668. echo "$as_me:$LINENO: result: no" >&5
  22669. echo "${ECHO_T}no" >&6
  22670. else
  22671. echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  22672. echo "${ECHO_T}Can't find pcapnav-config: disabling offset jump feature" >&6
  22673. fi
  22674. else
  22675. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  22676. set dummy pcapnav-config; ac_word=$2
  22677. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22678. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22679. if test "${ac_cv_path_pcncfg+set}" = set; then
  22680. echo $ECHO_N "(cached) $ECHO_C" >&6
  22681. else
  22682. case $pcncfg in
  22683. [\\/]* | ?:[\\/]*)
  22684. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  22685. ;;
  22686. *)
  22687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22688. for as_dir in $PATH
  22689. do
  22690. IFS=$as_save_IFS
  22691. test -z "$as_dir" && as_dir=.
  22692. for ac_exec_ext in '' $ac_executable_extensions; do
  22693. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22694. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  22695. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22696. break 2
  22697. fi
  22698. done
  22699. done
  22700. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  22701. ;;
  22702. esac
  22703. fi
  22704. pcncfg=$ac_cv_path_pcncfg
  22705. if test -n "$pcncfg"; then
  22706. echo "$as_me:$LINENO: result: $pcncfg" >&5
  22707. echo "${ECHO_T}$pcncfg" >&6
  22708. else
  22709. echo "$as_me:$LINENO: result: no" >&5
  22710. echo "${ECHO_T}no" >&6
  22711. fi
  22712. fi;
  22713. if test $pcncfg != no ; then
  22714. LNAVLIB=`$pcncfg --libs`
  22715. LNAV_CFLAGS=`$pcncfg --cflags`
  22716. PCAPNAV_VERSION=`$pcncfg --version`
  22717. cat >>confdefs.h <<_ACEOF
  22718. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  22719. _ACEOF
  22720. echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  22721. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6
  22722. if test "$cross_compiling" = yes; then
  22723. libpcapnav_ver=no
  22724. else
  22725. cat >conftest.$ac_ext <<_ACEOF
  22726. /* confdefs.h. */
  22727. _ACEOF
  22728. cat confdefs.h >>conftest.$ac_ext
  22729. cat >>conftest.$ac_ext <<_ACEOF
  22730. /* end confdefs.h. */
  22731. #include <string.h>
  22732. #define PCAPNAV_TEST "0.4"
  22733. /*
  22734. * simple proggy to test the version of libpcapnav
  22735. * returns zero if version >= 0.4
  22736. * or one otherwise
  22737. */
  22738. int
  22739. main (int argc, char *argv[])
  22740. {
  22741. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  22742. exit(0);
  22743. exit(1);
  22744. }
  22745. _ACEOF
  22746. rm -f conftest$ac_exeext
  22747. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22748. (eval $ac_link) 2>&5
  22749. ac_status=$?
  22750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22751. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22753. (eval $ac_try) 2>&5
  22754. ac_status=$?
  22755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22756. (exit $ac_status); }; }; then
  22757. libpcapnav_ver=yes
  22758. echo "$as_me:$LINENO: result: >= 0.4" >&5
  22759. echo "${ECHO_T}>= 0.4" >&6
  22760. else
  22761. echo "$as_me: program exited with status $ac_status" >&5
  22762. echo "$as_me: failed program was:" >&5
  22763. sed 's/^/| /' conftest.$ac_ext >&5
  22764. ( exit $ac_status )
  22765. libpcapnav_ver=no
  22766. echo "$as_me:$LINENO: result: < 0.4" >&5
  22767. echo "${ECHO_T}< 0.4" >&6
  22768. fi
  22769. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22770. fi
  22771. if test x$libpcapnav_ver = xno ; then
  22772. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  22773. Please upgrade to version 0.4 or better.
  22774. Disabling offset jump feature." >&5
  22775. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  22776. Please upgrade to version 0.4 or better.
  22777. Disabling offset jump feature." >&2;}
  22778. else
  22779. cat >>confdefs.h <<\_ACEOF
  22780. #define HAVE_PCAPNAV 1
  22781. _ACEOF
  22782. fi
  22783. fi # checking pcapnav version
  22784. echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  22785. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6
  22786. if test "${unaligned_fail+set}" = set; then
  22787. echo $ECHO_N "(cached) $ECHO_C" >&6
  22788. else
  22789. case "$host_cpu" in
  22790. # XXX: should also check that they don't do weird things (like on arm)
  22791. alpha*|arm*|hp*|mips*|sparc*|ia64)
  22792. unaligned_fail=yes
  22793. ;;
  22794. *)
  22795. cat >conftest.c <<EOF
  22796. #include <sys/types.h>
  22797. #include <sys/wait.h>
  22798. #include <stdio.h>
  22799. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  22800. main() {
  22801. unsigned int i;
  22802. pid_t pid;
  22803. int status;
  22804. /* avoid "core dumped" message */
  22805. pid = fork();
  22806. if (pid < 0)
  22807. exit(2);
  22808. if (pid > 0) {
  22809. /* parent */
  22810. pid = waitpid(pid, &status, 0);
  22811. if (pid < 0)
  22812. exit(3);
  22813. exit(!WIFEXITED(status));
  22814. }
  22815. /* child */
  22816. i = *(unsigned int *)&a[1];
  22817. printf("%d\n", i);
  22818. exit(0);
  22819. }
  22820. EOF
  22821. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  22822. conftest.c $LIBS >/dev/null 2>&1
  22823. if test ! -x conftest ; then
  22824. unaligned_fail=yes
  22825. else
  22826. ./conftest >conftest.out
  22827. if test ! -s conftest.out ; then
  22828. unaligned_fail=yes
  22829. else
  22830. unaligned_fail=no
  22831. fi
  22832. fi
  22833. rm -f conftest* core core.conftest
  22834. ;;
  22835. esac
  22836. fi
  22837. echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  22838. echo "${ECHO_T}$unaligned_fail" >&6
  22839. if test $unaligned_fail = yes ; then
  22840. cat >>confdefs.h <<\_ACEOF
  22841. #define FORCE_ALIGN 1
  22842. _ACEOF
  22843. fi
  22844. td=no
  22845. # Check whether --with-tcpdump or --without-tcpdump was given.
  22846. if test "${with_tcpdump+set}" = set; then
  22847. withval="$with_tcpdump"
  22848. if test -x $withval ; then
  22849. td=$withval
  22850. echo "$as_me:$LINENO: result: Using tcpdump in $td" >&5
  22851. echo "${ECHO_T}Using tcpdump in $td" >&6
  22852. else
  22853. echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  22854. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6
  22855. fi
  22856. else
  22857. # Extract the first word of "tcpdump", so it can be a program name with args.
  22858. set dummy tcpdump; ac_word=$2
  22859. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22860. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22861. if test "${ac_cv_path_td+set}" = set; then
  22862. echo $ECHO_N "(cached) $ECHO_C" >&6
  22863. else
  22864. case $td in
  22865. [\\/]* | ?:[\\/]*)
  22866. ac_cv_path_td="$td" # Let the user override the test with a path.
  22867. ;;
  22868. *)
  22869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22870. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  22871. for as_dir in $as_dummy
  22872. do
  22873. IFS=$as_save_IFS
  22874. test -z "$as_dir" && as_dir=.
  22875. for ac_exec_ext in '' $ac_executable_extensions; do
  22876. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22877. ac_cv_path_td="$as_dir/$ac_word$ac_exec_ext"
  22878. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22879. break 2
  22880. fi
  22881. done
  22882. done
  22883. test -z "$ac_cv_path_td" && ac_cv_path_td=""no""
  22884. ;;
  22885. esac
  22886. fi
  22887. td=$ac_cv_path_td
  22888. if test -n "$td"; then
  22889. echo "$as_me:$LINENO: result: $td" >&5
  22890. echo "${ECHO_T}$td" >&6
  22891. else
  22892. echo "$as_me:$LINENO: result: no" >&5
  22893. echo "${ECHO_T}no" >&6
  22894. fi
  22895. fi;
  22896. if test "$td" = "no"; then
  22897. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  22898. Disabling verbose reporting." >&5
  22899. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  22900. Disabling verbose reporting." >&2;}
  22901. else
  22902. cat >>confdefs.h <<\_ACEOF
  22903. #define HAVE_TCPDUMP 1
  22904. _ACEOF
  22905. cat >>confdefs.h <<_ACEOF
  22906. #define TCPDUMP_BINARY "$td"
  22907. _ACEOF
  22908. fi
  22909. echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  22910. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6
  22911. if test "$host" != "$build" ; then
  22912. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  22913. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  22914. fi
  22915. # Check whether --with-testnic or --without-testnic was given.
  22916. if test "${with_testnic+set}" = set; then
  22917. withval="$with_testnic"
  22918. nic1=$withval
  22919. nic2=$withval
  22920. echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  22921. echo "${ECHO_T}Using --with-testnic=$withval" >&6
  22922. else
  22923. case $host in
  22924. *-*-linux*)
  22925. nic1=eth0
  22926. nic2=eth0
  22927. echo "$as_me:$LINENO: result: Linux" >&5
  22928. echo "${ECHO_T}Linux" >&6
  22929. ;;
  22930. *-*-solaris*)
  22931. nic1=hme0
  22932. nic2=hme0
  22933. echo "$as_me:$LINENO: result: Solaris" >&5
  22934. echo "${ECHO_T}Solaris" >&6
  22935. ;;
  22936. *-*-sunos*)
  22937. nic1=hme0
  22938. nic2=hme0
  22939. echo "$as_me:$LINENO: result: SunOS" >&5
  22940. echo "${ECHO_T}SunOS" >&6
  22941. ;;
  22942. powerpc-apple-darwin*)
  22943. nic1=en0
  22944. nic2=en0
  22945. echo "$as_me:$LINENO: result: Apple OS X" >&5
  22946. echo "${ECHO_T}Apple OS X" >&6
  22947. ;;
  22948. *-*-openbsd*)
  22949. nic1=xl0
  22950. nic2=xl0
  22951. echo "$as_me:$LINENO: result: OpenBSD" >&5
  22952. echo "${ECHO_T}OpenBSD" >&6
  22953. ;;
  22954. *)
  22955. echo "$as_me:$LINENO: result: $host is unknown!
  22956. Please use --with-nictest to select an interface for 'make test'" >&5
  22957. echo "${ECHO_T}$host is unknown!
  22958. Please use --with-nictest to select an interface for 'make test'" >&6
  22959. ;;
  22960. esac
  22961. fi;
  22962. # Check whether --with-testnic2 or --without-testnic2 was given.
  22963. if test "${with_testnic2+set}" = set; then
  22964. withval="$with_testnic2"
  22965. nic2=$withval
  22966. fi;
  22967. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  22968. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  22969. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  22970. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  22971. NEED_LIBOPTS_DIR=''
  22972. LIBOPTS_DIR=libopts
  22973. # Check whether --enable-local-libopts or --disable-local-libopts was given.
  22974. if test "${enable_local_libopts+set}" = set; then
  22975. enableval="$enable_local_libopts"
  22976. if test x$enableval = xyes ; then
  22977. { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  22978. echo "$as_me: Using supplied libopts tearoff" >&6;}
  22979. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  22980. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  22981. NEED_LIBOPTS_DIR=true
  22982. fi
  22983. fi;
  22984. if test -z "${NEED_LIBOPTS_DIR}" ; then
  22985. echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  22986. echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6
  22987. # Check whether --with-autoopts-config or --without-autoopts-config was given.
  22988. if test "${with_autoopts_config+set}" = set; then
  22989. withval="$with_autoopts_config"
  22990. lo_cv_with_autoopts_config=${with_autoopts_config}
  22991. else
  22992. echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  22993. echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6
  22994. if test "${lo_cv_with_autoopts_config+set}" = set; then
  22995. echo $ECHO_N "(cached) $ECHO_C" >&6
  22996. else
  22997. if autoopts-config --help 2>/dev/null 1>&2
  22998. then lo_cv_with_autoopts_config=autoopts-config
  22999. elif libopts-config --help 2>/dev/null 1>&2
  23000. then lo_cv_with_autoopts_config=libopts-config
  23001. else lo_cv_with_autoopts_config=no ; fi
  23002. fi
  23003. echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  23004. echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6
  23005. fi; # end of AC_ARG_WITH
  23006. if test "${lo_cv_test_autoopts+set}" = set; then
  23007. echo $ECHO_N "(cached) $ECHO_C" >&6
  23008. else
  23009. if test -z "${lo_cv_with_autoopts_config}" \
  23010. -o X"${lo_cv_with_autoopts_config}" = Xno
  23011. then
  23012. if autoopts-config --help 2>/dev/null 1>&2
  23013. then lo_cv_with_autoopts_config=autoopts-config
  23014. elif libopts-config --help 2>/dev/null 1>&2
  23015. then lo_cv_with_autoopts_config=libopts-config
  23016. else lo_cv_with_autoopts_config=false ; fi
  23017. fi
  23018. lo_cv_test_autoopts=`
  23019. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  23020. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  23021. then lo_cv_test_autoopts=no ; fi
  23022. fi
  23023. # end of CACHE_VAL
  23024. echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  23025. echo "${ECHO_T}${lo_cv_test_autoopts}" >&6
  23026. if test "X${lo_cv_test_autoopts}" != Xno
  23027. then
  23028. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  23029. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  23030. else
  23031. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  23032. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  23033. NEED_LIBOPTS_DIR=true
  23034. fi
  23035. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  23036. if test -n "${NEED_LIBOPTS_DIR}"; then
  23037. NEED_LIBOPTS_TRUE=
  23038. NEED_LIBOPTS_FALSE='#'
  23039. else
  23040. NEED_LIBOPTS_TRUE='#'
  23041. NEED_LIBOPTS_FALSE=
  23042. fi
  23043. LIBOPTS_DIR=libopts
  23044. ac_config_files="$ac_config_files libopts/Makefile"
  23045. if test -n "${NEED_LIBOPTS_DIR}" ; then
  23046. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  23047. # =================
  23048. # AC_HEADER_STDC
  23049. # =================
  23050. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  23051. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  23052. if test "${ac_cv_header_stdc+set}" = set; then
  23053. echo $ECHO_N "(cached) $ECHO_C" >&6
  23054. else
  23055. cat >conftest.$ac_ext <<_ACEOF
  23056. /* confdefs.h. */
  23057. _ACEOF
  23058. cat confdefs.h >>conftest.$ac_ext
  23059. cat >>conftest.$ac_ext <<_ACEOF
  23060. /* end confdefs.h. */
  23061. #include <stdlib.h>
  23062. #include <stdarg.h>
  23063. #include <string.h>
  23064. #include <float.h>
  23065. int
  23066. main ()
  23067. {
  23068. ;
  23069. return 0;
  23070. }
  23071. _ACEOF
  23072. rm -f conftest.$ac_objext
  23073. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23074. (eval $ac_compile) 2>conftest.er1
  23075. ac_status=$?
  23076. grep -v '^ *+' conftest.er1 >conftest.err
  23077. rm -f conftest.er1
  23078. cat conftest.err >&5
  23079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23080. (exit $ac_status); } &&
  23081. { ac_try='test -z "$ac_c_werror_flag"
  23082. || test ! -s conftest.err'
  23083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23084. (eval $ac_try) 2>&5
  23085. ac_status=$?
  23086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23087. (exit $ac_status); }; } &&
  23088. { ac_try='test -s conftest.$ac_objext'
  23089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23090. (eval $ac_try) 2>&5
  23091. ac_status=$?
  23092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23093. (exit $ac_status); }; }; then
  23094. ac_cv_header_stdc=yes
  23095. else
  23096. echo "$as_me: failed program was:" >&5
  23097. sed 's/^/| /' conftest.$ac_ext >&5
  23098. ac_cv_header_stdc=no
  23099. fi
  23100. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23101. if test $ac_cv_header_stdc = yes; then
  23102. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  23103. cat >conftest.$ac_ext <<_ACEOF
  23104. /* confdefs.h. */
  23105. _ACEOF
  23106. cat confdefs.h >>conftest.$ac_ext
  23107. cat >>conftest.$ac_ext <<_ACEOF
  23108. /* end confdefs.h. */
  23109. #include <string.h>
  23110. _ACEOF
  23111. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23112. $EGREP "memchr" >/dev/null 2>&1; then
  23113. :
  23114. else
  23115. ac_cv_header_stdc=no
  23116. fi
  23117. rm -f conftest*
  23118. fi
  23119. if test $ac_cv_header_stdc = yes; then
  23120. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  23121. cat >conftest.$ac_ext <<_ACEOF
  23122. /* confdefs.h. */
  23123. _ACEOF
  23124. cat confdefs.h >>conftest.$ac_ext
  23125. cat >>conftest.$ac_ext <<_ACEOF
  23126. /* end confdefs.h. */
  23127. #include <stdlib.h>
  23128. _ACEOF
  23129. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23130. $EGREP "free" >/dev/null 2>&1; then
  23131. :
  23132. else
  23133. ac_cv_header_stdc=no
  23134. fi
  23135. rm -f conftest*
  23136. fi
  23137. if test $ac_cv_header_stdc = yes; then
  23138. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  23139. if test "$cross_compiling" = yes; then
  23140. :
  23141. else
  23142. cat >conftest.$ac_ext <<_ACEOF
  23143. /* confdefs.h. */
  23144. _ACEOF
  23145. cat confdefs.h >>conftest.$ac_ext
  23146. cat >>conftest.$ac_ext <<_ACEOF
  23147. /* end confdefs.h. */
  23148. #include <ctype.h>
  23149. #if ((' ' & 0x0FF) == 0x020)
  23150. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  23151. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  23152. #else
  23153. # define ISLOWER(c) \
  23154. (('a' <= (c) && (c) <= 'i') \
  23155. || ('j' <= (c) && (c) <= 'r') \
  23156. || ('s' <= (c) && (c) <= 'z'))
  23157. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  23158. #endif
  23159. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  23160. int
  23161. main ()
  23162. {
  23163. int i;
  23164. for (i = 0; i < 256; i++)
  23165. if (XOR (islower (i), ISLOWER (i))
  23166. || toupper (i) != TOUPPER (i))
  23167. exit(2);
  23168. exit (0);
  23169. }
  23170. _ACEOF
  23171. rm -f conftest$ac_exeext
  23172. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23173. (eval $ac_link) 2>&5
  23174. ac_status=$?
  23175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23176. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23178. (eval $ac_try) 2>&5
  23179. ac_status=$?
  23180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23181. (exit $ac_status); }; }; then
  23182. :
  23183. else
  23184. echo "$as_me: program exited with status $ac_status" >&5
  23185. echo "$as_me: failed program was:" >&5
  23186. sed 's/^/| /' conftest.$ac_ext >&5
  23187. ( exit $ac_status )
  23188. ac_cv_header_stdc=no
  23189. fi
  23190. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23191. fi
  23192. fi
  23193. fi
  23194. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  23195. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  23196. if test $ac_cv_header_stdc = yes; then
  23197. cat >>confdefs.h <<\_ACEOF
  23198. #define STDC_HEADERS 1
  23199. _ACEOF
  23200. fi
  23201. # =================
  23202. # AC_HEADER_DIRENT
  23203. # =================
  23204. ac_header_dirent=no
  23205. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  23206. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  23207. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  23208. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  23209. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23210. echo $ECHO_N "(cached) $ECHO_C" >&6
  23211. else
  23212. cat >conftest.$ac_ext <<_ACEOF
  23213. /* confdefs.h. */
  23214. _ACEOF
  23215. cat confdefs.h >>conftest.$ac_ext
  23216. cat >>conftest.$ac_ext <<_ACEOF
  23217. /* end confdefs.h. */
  23218. #include <sys/types.h>
  23219. #include <$ac_hdr>
  23220. int
  23221. main ()
  23222. {
  23223. if ((DIR *) 0)
  23224. return 0;
  23225. ;
  23226. return 0;
  23227. }
  23228. _ACEOF
  23229. rm -f conftest.$ac_objext
  23230. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23231. (eval $ac_compile) 2>conftest.er1
  23232. ac_status=$?
  23233. grep -v '^ *+' conftest.er1 >conftest.err
  23234. rm -f conftest.er1
  23235. cat conftest.err >&5
  23236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23237. (exit $ac_status); } &&
  23238. { ac_try='test -z "$ac_c_werror_flag"
  23239. || test ! -s conftest.err'
  23240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23241. (eval $ac_try) 2>&5
  23242. ac_status=$?
  23243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23244. (exit $ac_status); }; } &&
  23245. { ac_try='test -s conftest.$ac_objext'
  23246. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23247. (eval $ac_try) 2>&5
  23248. ac_status=$?
  23249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23250. (exit $ac_status); }; }; then
  23251. eval "$as_ac_Header=yes"
  23252. else
  23253. echo "$as_me: failed program was:" >&5
  23254. sed 's/^/| /' conftest.$ac_ext >&5
  23255. eval "$as_ac_Header=no"
  23256. fi
  23257. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23258. fi
  23259. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23260. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23261. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23262. cat >>confdefs.h <<_ACEOF
  23263. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  23264. _ACEOF
  23265. ac_header_dirent=$ac_hdr; break
  23266. fi
  23267. done
  23268. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  23269. if test $ac_header_dirent = dirent.h; then
  23270. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  23271. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  23272. if test "${ac_cv_search_opendir+set}" = set; then
  23273. echo $ECHO_N "(cached) $ECHO_C" >&6
  23274. else
  23275. ac_func_search_save_LIBS=$LIBS
  23276. ac_cv_search_opendir=no
  23277. cat >conftest.$ac_ext <<_ACEOF
  23278. /* confdefs.h. */
  23279. _ACEOF
  23280. cat confdefs.h >>conftest.$ac_ext
  23281. cat >>conftest.$ac_ext <<_ACEOF
  23282. /* end confdefs.h. */
  23283. /* Override any gcc2 internal prototype to avoid an error. */
  23284. #ifdef __cplusplus
  23285. extern "C"
  23286. #endif
  23287. /* We use char because int might match the return type of a gcc2
  23288. builtin and then its argument prototype would still apply. */
  23289. char opendir ();
  23290. int
  23291. main ()
  23292. {
  23293. opendir ();
  23294. ;
  23295. return 0;
  23296. }
  23297. _ACEOF
  23298. rm -f conftest.$ac_objext conftest$ac_exeext
  23299. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23300. (eval $ac_link) 2>conftest.er1
  23301. ac_status=$?
  23302. grep -v '^ *+' conftest.er1 >conftest.err
  23303. rm -f conftest.er1
  23304. cat conftest.err >&5
  23305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23306. (exit $ac_status); } &&
  23307. { ac_try='test -z "$ac_c_werror_flag"
  23308. || test ! -s conftest.err'
  23309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23310. (eval $ac_try) 2>&5
  23311. ac_status=$?
  23312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23313. (exit $ac_status); }; } &&
  23314. { ac_try='test -s conftest$ac_exeext'
  23315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23316. (eval $ac_try) 2>&5
  23317. ac_status=$?
  23318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23319. (exit $ac_status); }; }; then
  23320. ac_cv_search_opendir="none required"
  23321. else
  23322. echo "$as_me: failed program was:" >&5
  23323. sed 's/^/| /' conftest.$ac_ext >&5
  23324. fi
  23325. rm -f conftest.err conftest.$ac_objext \
  23326. conftest$ac_exeext conftest.$ac_ext
  23327. if test "$ac_cv_search_opendir" = no; then
  23328. for ac_lib in dir; do
  23329. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23330. cat >conftest.$ac_ext <<_ACEOF
  23331. /* confdefs.h. */
  23332. _ACEOF
  23333. cat confdefs.h >>conftest.$ac_ext
  23334. cat >>conftest.$ac_ext <<_ACEOF
  23335. /* end confdefs.h. */
  23336. /* Override any gcc2 internal prototype to avoid an error. */
  23337. #ifdef __cplusplus
  23338. extern "C"
  23339. #endif
  23340. /* We use char because int might match the return type of a gcc2
  23341. builtin and then its argument prototype would still apply. */
  23342. char opendir ();
  23343. int
  23344. main ()
  23345. {
  23346. opendir ();
  23347. ;
  23348. return 0;
  23349. }
  23350. _ACEOF
  23351. rm -f conftest.$ac_objext conftest$ac_exeext
  23352. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23353. (eval $ac_link) 2>conftest.er1
  23354. ac_status=$?
  23355. grep -v '^ *+' conftest.er1 >conftest.err
  23356. rm -f conftest.er1
  23357. cat conftest.err >&5
  23358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23359. (exit $ac_status); } &&
  23360. { ac_try='test -z "$ac_c_werror_flag"
  23361. || test ! -s conftest.err'
  23362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23363. (eval $ac_try) 2>&5
  23364. ac_status=$?
  23365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23366. (exit $ac_status); }; } &&
  23367. { ac_try='test -s conftest$ac_exeext'
  23368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23369. (eval $ac_try) 2>&5
  23370. ac_status=$?
  23371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23372. (exit $ac_status); }; }; then
  23373. ac_cv_search_opendir="-l$ac_lib"
  23374. break
  23375. else
  23376. echo "$as_me: failed program was:" >&5
  23377. sed 's/^/| /' conftest.$ac_ext >&5
  23378. fi
  23379. rm -f conftest.err conftest.$ac_objext \
  23380. conftest$ac_exeext conftest.$ac_ext
  23381. done
  23382. fi
  23383. LIBS=$ac_func_search_save_LIBS
  23384. fi
  23385. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  23386. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  23387. if test "$ac_cv_search_opendir" != no; then
  23388. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  23389. fi
  23390. else
  23391. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  23392. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  23393. if test "${ac_cv_search_opendir+set}" = set; then
  23394. echo $ECHO_N "(cached) $ECHO_C" >&6
  23395. else
  23396. ac_func_search_save_LIBS=$LIBS
  23397. ac_cv_search_opendir=no
  23398. cat >conftest.$ac_ext <<_ACEOF
  23399. /* confdefs.h. */
  23400. _ACEOF
  23401. cat confdefs.h >>conftest.$ac_ext
  23402. cat >>conftest.$ac_ext <<_ACEOF
  23403. /* end confdefs.h. */
  23404. /* Override any gcc2 internal prototype to avoid an error. */
  23405. #ifdef __cplusplus
  23406. extern "C"
  23407. #endif
  23408. /* We use char because int might match the return type of a gcc2
  23409. builtin and then its argument prototype would still apply. */
  23410. char opendir ();
  23411. int
  23412. main ()
  23413. {
  23414. opendir ();
  23415. ;
  23416. return 0;
  23417. }
  23418. _ACEOF
  23419. rm -f conftest.$ac_objext conftest$ac_exeext
  23420. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23421. (eval $ac_link) 2>conftest.er1
  23422. ac_status=$?
  23423. grep -v '^ *+' conftest.er1 >conftest.err
  23424. rm -f conftest.er1
  23425. cat conftest.err >&5
  23426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23427. (exit $ac_status); } &&
  23428. { ac_try='test -z "$ac_c_werror_flag"
  23429. || test ! -s conftest.err'
  23430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23431. (eval $ac_try) 2>&5
  23432. ac_status=$?
  23433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23434. (exit $ac_status); }; } &&
  23435. { ac_try='test -s conftest$ac_exeext'
  23436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23437. (eval $ac_try) 2>&5
  23438. ac_status=$?
  23439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23440. (exit $ac_status); }; }; then
  23441. ac_cv_search_opendir="none required"
  23442. else
  23443. echo "$as_me: failed program was:" >&5
  23444. sed 's/^/| /' conftest.$ac_ext >&5
  23445. fi
  23446. rm -f conftest.err conftest.$ac_objext \
  23447. conftest$ac_exeext conftest.$ac_ext
  23448. if test "$ac_cv_search_opendir" = no; then
  23449. for ac_lib in x; do
  23450. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23451. cat >conftest.$ac_ext <<_ACEOF
  23452. /* confdefs.h. */
  23453. _ACEOF
  23454. cat confdefs.h >>conftest.$ac_ext
  23455. cat >>conftest.$ac_ext <<_ACEOF
  23456. /* end confdefs.h. */
  23457. /* Override any gcc2 internal prototype to avoid an error. */
  23458. #ifdef __cplusplus
  23459. extern "C"
  23460. #endif
  23461. /* We use char because int might match the return type of a gcc2
  23462. builtin and then its argument prototype would still apply. */
  23463. char opendir ();
  23464. int
  23465. main ()
  23466. {
  23467. opendir ();
  23468. ;
  23469. return 0;
  23470. }
  23471. _ACEOF
  23472. rm -f conftest.$ac_objext conftest$ac_exeext
  23473. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23474. (eval $ac_link) 2>conftest.er1
  23475. ac_status=$?
  23476. grep -v '^ *+' conftest.er1 >conftest.err
  23477. rm -f conftest.er1
  23478. cat conftest.err >&5
  23479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23480. (exit $ac_status); } &&
  23481. { ac_try='test -z "$ac_c_werror_flag"
  23482. || test ! -s conftest.err'
  23483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23484. (eval $ac_try) 2>&5
  23485. ac_status=$?
  23486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23487. (exit $ac_status); }; } &&
  23488. { ac_try='test -s conftest$ac_exeext'
  23489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23490. (eval $ac_try) 2>&5
  23491. ac_status=$?
  23492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23493. (exit $ac_status); }; }; then
  23494. ac_cv_search_opendir="-l$ac_lib"
  23495. break
  23496. else
  23497. echo "$as_me: failed program was:" >&5
  23498. sed 's/^/| /' conftest.$ac_ext >&5
  23499. fi
  23500. rm -f conftest.err conftest.$ac_objext \
  23501. conftest$ac_exeext conftest.$ac_ext
  23502. done
  23503. fi
  23504. LIBS=$ac_func_search_save_LIBS
  23505. fi
  23506. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  23507. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  23508. if test "$ac_cv_search_opendir" != no; then
  23509. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  23510. fi
  23511. fi
  23512. # =================
  23513. # AC_CHECK_HEADERS
  23514. # =================
  23515. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  23516. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  23517. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h
  23518. do
  23519. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23520. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23521. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23522. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23523. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23524. echo $ECHO_N "(cached) $ECHO_C" >&6
  23525. fi
  23526. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23527. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23528. else
  23529. # Is the header compilable?
  23530. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23531. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23532. cat >conftest.$ac_ext <<_ACEOF
  23533. /* confdefs.h. */
  23534. _ACEOF
  23535. cat confdefs.h >>conftest.$ac_ext
  23536. cat >>conftest.$ac_ext <<_ACEOF
  23537. /* end confdefs.h. */
  23538. $ac_includes_default
  23539. #include <$ac_header>
  23540. _ACEOF
  23541. rm -f conftest.$ac_objext
  23542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23543. (eval $ac_compile) 2>conftest.er1
  23544. ac_status=$?
  23545. grep -v '^ *+' conftest.er1 >conftest.err
  23546. rm -f conftest.er1
  23547. cat conftest.err >&5
  23548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23549. (exit $ac_status); } &&
  23550. { ac_try='test -z "$ac_c_werror_flag"
  23551. || test ! -s conftest.err'
  23552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23553. (eval $ac_try) 2>&5
  23554. ac_status=$?
  23555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23556. (exit $ac_status); }; } &&
  23557. { ac_try='test -s conftest.$ac_objext'
  23558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23559. (eval $ac_try) 2>&5
  23560. ac_status=$?
  23561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23562. (exit $ac_status); }; }; then
  23563. ac_header_compiler=yes
  23564. else
  23565. echo "$as_me: failed program was:" >&5
  23566. sed 's/^/| /' conftest.$ac_ext >&5
  23567. ac_header_compiler=no
  23568. fi
  23569. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23570. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23571. echo "${ECHO_T}$ac_header_compiler" >&6
  23572. # Is the header present?
  23573. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23574. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23575. cat >conftest.$ac_ext <<_ACEOF
  23576. /* confdefs.h. */
  23577. _ACEOF
  23578. cat confdefs.h >>conftest.$ac_ext
  23579. cat >>conftest.$ac_ext <<_ACEOF
  23580. /* end confdefs.h. */
  23581. #include <$ac_header>
  23582. _ACEOF
  23583. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23584. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23585. ac_status=$?
  23586. grep -v '^ *+' conftest.er1 >conftest.err
  23587. rm -f conftest.er1
  23588. cat conftest.err >&5
  23589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23590. (exit $ac_status); } >/dev/null; then
  23591. if test -s conftest.err; then
  23592. ac_cpp_err=$ac_c_preproc_warn_flag
  23593. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23594. else
  23595. ac_cpp_err=
  23596. fi
  23597. else
  23598. ac_cpp_err=yes
  23599. fi
  23600. if test -z "$ac_cpp_err"; then
  23601. ac_header_preproc=yes
  23602. else
  23603. echo "$as_me: failed program was:" >&5
  23604. sed 's/^/| /' conftest.$ac_ext >&5
  23605. ac_header_preproc=no
  23606. fi
  23607. rm -f conftest.err conftest.$ac_ext
  23608. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23609. echo "${ECHO_T}$ac_header_preproc" >&6
  23610. # So? What about this header?
  23611. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23612. yes:no: )
  23613. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23614. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23615. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23616. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23617. ac_header_preproc=yes
  23618. ;;
  23619. no:yes:* )
  23620. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23621. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23622. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23623. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23624. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23625. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23626. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23627. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23628. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23629. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23630. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23631. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23632. (
  23633. cat <<\_ASBOX
  23634. ## ------------------------------------------ ##
  23635. ## Report this to the AC_PACKAGE_NAME lists. ##
  23636. ## ------------------------------------------ ##
  23637. _ASBOX
  23638. ) |
  23639. sed "s/^/$as_me: WARNING: /" >&2
  23640. ;;
  23641. esac
  23642. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23643. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23644. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23645. echo $ECHO_N "(cached) $ECHO_C" >&6
  23646. else
  23647. eval "$as_ac_Header=\$ac_header_preproc"
  23648. fi
  23649. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23650. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23651. fi
  23652. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23653. cat >>confdefs.h <<_ACEOF
  23654. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23655. _ACEOF
  23656. fi
  23657. done
  23658. # --------------------------------------------
  23659. # Verify certain entries from AC_CHECK_HEADERS
  23660. # --------------------------------------------
  23661. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  23662. string errno stdlib memory setjmp
  23663. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  23664. test "${as_ac_var}" = set || \
  23665. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  23666. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  23667. { (exit 1); exit 1; }; }
  23668. done
  23669. # ================================================
  23670. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  23671. # if varargs.h is present define HAVE_VARARGS_H.
  23672. # ================================================
  23673. for ac_header in stdarg.h varargs.h
  23674. do
  23675. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23676. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23677. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23678. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23679. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23680. echo $ECHO_N "(cached) $ECHO_C" >&6
  23681. fi
  23682. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23683. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23684. else
  23685. # Is the header compilable?
  23686. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23687. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23688. cat >conftest.$ac_ext <<_ACEOF
  23689. /* confdefs.h. */
  23690. _ACEOF
  23691. cat confdefs.h >>conftest.$ac_ext
  23692. cat >>conftest.$ac_ext <<_ACEOF
  23693. /* end confdefs.h. */
  23694. $ac_includes_default
  23695. #include <$ac_header>
  23696. _ACEOF
  23697. rm -f conftest.$ac_objext
  23698. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23699. (eval $ac_compile) 2>conftest.er1
  23700. ac_status=$?
  23701. grep -v '^ *+' conftest.er1 >conftest.err
  23702. rm -f conftest.er1
  23703. cat conftest.err >&5
  23704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23705. (exit $ac_status); } &&
  23706. { ac_try='test -z "$ac_c_werror_flag"
  23707. || test ! -s conftest.err'
  23708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23709. (eval $ac_try) 2>&5
  23710. ac_status=$?
  23711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23712. (exit $ac_status); }; } &&
  23713. { ac_try='test -s conftest.$ac_objext'
  23714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23715. (eval $ac_try) 2>&5
  23716. ac_status=$?
  23717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23718. (exit $ac_status); }; }; then
  23719. ac_header_compiler=yes
  23720. else
  23721. echo "$as_me: failed program was:" >&5
  23722. sed 's/^/| /' conftest.$ac_ext >&5
  23723. ac_header_compiler=no
  23724. fi
  23725. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23726. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23727. echo "${ECHO_T}$ac_header_compiler" >&6
  23728. # Is the header present?
  23729. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23730. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23731. cat >conftest.$ac_ext <<_ACEOF
  23732. /* confdefs.h. */
  23733. _ACEOF
  23734. cat confdefs.h >>conftest.$ac_ext
  23735. cat >>conftest.$ac_ext <<_ACEOF
  23736. /* end confdefs.h. */
  23737. #include <$ac_header>
  23738. _ACEOF
  23739. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23740. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23741. ac_status=$?
  23742. grep -v '^ *+' conftest.er1 >conftest.err
  23743. rm -f conftest.er1
  23744. cat conftest.err >&5
  23745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23746. (exit $ac_status); } >/dev/null; then
  23747. if test -s conftest.err; then
  23748. ac_cpp_err=$ac_c_preproc_warn_flag
  23749. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23750. else
  23751. ac_cpp_err=
  23752. fi
  23753. else
  23754. ac_cpp_err=yes
  23755. fi
  23756. if test -z "$ac_cpp_err"; then
  23757. ac_header_preproc=yes
  23758. else
  23759. echo "$as_me: failed program was:" >&5
  23760. sed 's/^/| /' conftest.$ac_ext >&5
  23761. ac_header_preproc=no
  23762. fi
  23763. rm -f conftest.err conftest.$ac_ext
  23764. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23765. echo "${ECHO_T}$ac_header_preproc" >&6
  23766. # So? What about this header?
  23767. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23768. yes:no: )
  23769. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23770. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23771. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23772. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23773. ac_header_preproc=yes
  23774. ;;
  23775. no:yes:* )
  23776. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23777. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23778. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23779. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23780. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23781. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23782. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23783. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23784. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23785. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23786. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23787. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23788. (
  23789. cat <<\_ASBOX
  23790. ## ------------------------------------------ ##
  23791. ## Report this to the AC_PACKAGE_NAME lists. ##
  23792. ## ------------------------------------------ ##
  23793. _ASBOX
  23794. ) |
  23795. sed "s/^/$as_me: WARNING: /" >&2
  23796. ;;
  23797. esac
  23798. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23799. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23800. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23801. echo $ECHO_N "(cached) $ECHO_C" >&6
  23802. else
  23803. eval "$as_ac_Header=\$ac_header_preproc"
  23804. fi
  23805. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23806. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23807. fi
  23808. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23809. cat >>confdefs.h <<_ACEOF
  23810. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23811. _ACEOF
  23812. break
  23813. fi
  23814. done
  23815. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  23816. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  23817. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  23818. { (exit 1); exit 1; }; }
  23819. fi
  23820. # ================================================
  23821. # Similarly for the string.h and strings.h headers
  23822. # ================================================
  23823. for ac_header in string.h strings.h
  23824. do
  23825. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23826. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23827. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23828. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23829. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23830. echo $ECHO_N "(cached) $ECHO_C" >&6
  23831. fi
  23832. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23833. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23834. else
  23835. # Is the header compilable?
  23836. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23837. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23838. cat >conftest.$ac_ext <<_ACEOF
  23839. /* confdefs.h. */
  23840. _ACEOF
  23841. cat confdefs.h >>conftest.$ac_ext
  23842. cat >>conftest.$ac_ext <<_ACEOF
  23843. /* end confdefs.h. */
  23844. $ac_includes_default
  23845. #include <$ac_header>
  23846. _ACEOF
  23847. rm -f conftest.$ac_objext
  23848. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23849. (eval $ac_compile) 2>conftest.er1
  23850. ac_status=$?
  23851. grep -v '^ *+' conftest.er1 >conftest.err
  23852. rm -f conftest.er1
  23853. cat conftest.err >&5
  23854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23855. (exit $ac_status); } &&
  23856. { ac_try='test -z "$ac_c_werror_flag"
  23857. || test ! -s conftest.err'
  23858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23859. (eval $ac_try) 2>&5
  23860. ac_status=$?
  23861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23862. (exit $ac_status); }; } &&
  23863. { ac_try='test -s conftest.$ac_objext'
  23864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23865. (eval $ac_try) 2>&5
  23866. ac_status=$?
  23867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23868. (exit $ac_status); }; }; then
  23869. ac_header_compiler=yes
  23870. else
  23871. echo "$as_me: failed program was:" >&5
  23872. sed 's/^/| /' conftest.$ac_ext >&5
  23873. ac_header_compiler=no
  23874. fi
  23875. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23876. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23877. echo "${ECHO_T}$ac_header_compiler" >&6
  23878. # Is the header present?
  23879. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23880. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23881. cat >conftest.$ac_ext <<_ACEOF
  23882. /* confdefs.h. */
  23883. _ACEOF
  23884. cat confdefs.h >>conftest.$ac_ext
  23885. cat >>conftest.$ac_ext <<_ACEOF
  23886. /* end confdefs.h. */
  23887. #include <$ac_header>
  23888. _ACEOF
  23889. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23890. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23891. ac_status=$?
  23892. grep -v '^ *+' conftest.er1 >conftest.err
  23893. rm -f conftest.er1
  23894. cat conftest.err >&5
  23895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23896. (exit $ac_status); } >/dev/null; then
  23897. if test -s conftest.err; then
  23898. ac_cpp_err=$ac_c_preproc_warn_flag
  23899. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23900. else
  23901. ac_cpp_err=
  23902. fi
  23903. else
  23904. ac_cpp_err=yes
  23905. fi
  23906. if test -z "$ac_cpp_err"; then
  23907. ac_header_preproc=yes
  23908. else
  23909. echo "$as_me: failed program was:" >&5
  23910. sed 's/^/| /' conftest.$ac_ext >&5
  23911. ac_header_preproc=no
  23912. fi
  23913. rm -f conftest.err conftest.$ac_ext
  23914. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23915. echo "${ECHO_T}$ac_header_preproc" >&6
  23916. # So? What about this header?
  23917. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23918. yes:no: )
  23919. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23920. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23921. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23922. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23923. ac_header_preproc=yes
  23924. ;;
  23925. no:yes:* )
  23926. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23927. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23928. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23929. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23930. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23931. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23932. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23933. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23934. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23935. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23936. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23937. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23938. (
  23939. cat <<\_ASBOX
  23940. ## ------------------------------------------ ##
  23941. ## Report this to the AC_PACKAGE_NAME lists. ##
  23942. ## ------------------------------------------ ##
  23943. _ASBOX
  23944. ) |
  23945. sed "s/^/$as_me: WARNING: /" >&2
  23946. ;;
  23947. esac
  23948. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23949. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23950. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23951. echo $ECHO_N "(cached) $ECHO_C" >&6
  23952. else
  23953. eval "$as_ac_Header=\$ac_header_preproc"
  23954. fi
  23955. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23956. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23957. fi
  23958. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23959. cat >>confdefs.h <<_ACEOF
  23960. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23961. _ACEOF
  23962. break
  23963. fi
  23964. done
  23965. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  23966. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  23967. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  23968. { (exit 1); exit 1; }; }
  23969. fi
  23970. # =====================
  23971. # ...and limits headers
  23972. # =====================
  23973. for ac_header in limits.h sys/limits.h values.h
  23974. do
  23975. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23976. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23977. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23978. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23979. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23980. echo $ECHO_N "(cached) $ECHO_C" >&6
  23981. fi
  23982. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23983. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23984. else
  23985. # Is the header compilable?
  23986. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23987. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23988. cat >conftest.$ac_ext <<_ACEOF
  23989. /* confdefs.h. */
  23990. _ACEOF
  23991. cat confdefs.h >>conftest.$ac_ext
  23992. cat >>conftest.$ac_ext <<_ACEOF
  23993. /* end confdefs.h. */
  23994. $ac_includes_default
  23995. #include <$ac_header>
  23996. _ACEOF
  23997. rm -f conftest.$ac_objext
  23998. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23999. (eval $ac_compile) 2>conftest.er1
  24000. ac_status=$?
  24001. grep -v '^ *+' conftest.er1 >conftest.err
  24002. rm -f conftest.er1
  24003. cat conftest.err >&5
  24004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24005. (exit $ac_status); } &&
  24006. { ac_try='test -z "$ac_c_werror_flag"
  24007. || test ! -s conftest.err'
  24008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24009. (eval $ac_try) 2>&5
  24010. ac_status=$?
  24011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24012. (exit $ac_status); }; } &&
  24013. { ac_try='test -s conftest.$ac_objext'
  24014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24015. (eval $ac_try) 2>&5
  24016. ac_status=$?
  24017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24018. (exit $ac_status); }; }; then
  24019. ac_header_compiler=yes
  24020. else
  24021. echo "$as_me: failed program was:" >&5
  24022. sed 's/^/| /' conftest.$ac_ext >&5
  24023. ac_header_compiler=no
  24024. fi
  24025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24026. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24027. echo "${ECHO_T}$ac_header_compiler" >&6
  24028. # Is the header present?
  24029. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24030. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  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 <$ac_header>
  24038. _ACEOF
  24039. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24040. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24041. ac_status=$?
  24042. grep -v '^ *+' conftest.er1 >conftest.err
  24043. rm -f conftest.er1
  24044. cat conftest.err >&5
  24045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24046. (exit $ac_status); } >/dev/null; then
  24047. if test -s conftest.err; then
  24048. ac_cpp_err=$ac_c_preproc_warn_flag
  24049. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24050. else
  24051. ac_cpp_err=
  24052. fi
  24053. else
  24054. ac_cpp_err=yes
  24055. fi
  24056. if test -z "$ac_cpp_err"; then
  24057. ac_header_preproc=yes
  24058. else
  24059. echo "$as_me: failed program was:" >&5
  24060. sed 's/^/| /' conftest.$ac_ext >&5
  24061. ac_header_preproc=no
  24062. fi
  24063. rm -f conftest.err conftest.$ac_ext
  24064. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24065. echo "${ECHO_T}$ac_header_preproc" >&6
  24066. # So? What about this header?
  24067. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24068. yes:no: )
  24069. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24070. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24071. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24072. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24073. ac_header_preproc=yes
  24074. ;;
  24075. no:yes:* )
  24076. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24077. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24078. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24079. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24080. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24081. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24082. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24083. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24084. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24085. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24086. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24087. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24088. (
  24089. cat <<\_ASBOX
  24090. ## ------------------------------------------ ##
  24091. ## Report this to the AC_PACKAGE_NAME lists. ##
  24092. ## ------------------------------------------ ##
  24093. _ASBOX
  24094. ) |
  24095. sed "s/^/$as_me: WARNING: /" >&2
  24096. ;;
  24097. esac
  24098. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24099. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24100. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24101. echo $ECHO_N "(cached) $ECHO_C" >&6
  24102. else
  24103. eval "$as_ac_Header=\$ac_header_preproc"
  24104. fi
  24105. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24106. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24107. fi
  24108. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24109. cat >>confdefs.h <<_ACEOF
  24110. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24111. _ACEOF
  24112. break
  24113. fi
  24114. done
  24115. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24116. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  24117. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  24118. { (exit 1); exit 1; }; }
  24119. fi
  24120. # ========================
  24121. # ...and int types headers
  24122. # ========================
  24123. for ac_header in stdint.h inttypes.h
  24124. do
  24125. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24126. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24127. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24128. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24129. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24130. echo $ECHO_N "(cached) $ECHO_C" >&6
  24131. fi
  24132. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24133. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24134. else
  24135. # Is the header compilable?
  24136. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24137. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24138. cat >conftest.$ac_ext <<_ACEOF
  24139. /* confdefs.h. */
  24140. _ACEOF
  24141. cat confdefs.h >>conftest.$ac_ext
  24142. cat >>conftest.$ac_ext <<_ACEOF
  24143. /* end confdefs.h. */
  24144. $ac_includes_default
  24145. #include <$ac_header>
  24146. _ACEOF
  24147. rm -f conftest.$ac_objext
  24148. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24149. (eval $ac_compile) 2>conftest.er1
  24150. ac_status=$?
  24151. grep -v '^ *+' conftest.er1 >conftest.err
  24152. rm -f conftest.er1
  24153. cat conftest.err >&5
  24154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24155. (exit $ac_status); } &&
  24156. { ac_try='test -z "$ac_c_werror_flag"
  24157. || test ! -s conftest.err'
  24158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24159. (eval $ac_try) 2>&5
  24160. ac_status=$?
  24161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24162. (exit $ac_status); }; } &&
  24163. { ac_try='test -s conftest.$ac_objext'
  24164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24165. (eval $ac_try) 2>&5
  24166. ac_status=$?
  24167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24168. (exit $ac_status); }; }; then
  24169. ac_header_compiler=yes
  24170. else
  24171. echo "$as_me: failed program was:" >&5
  24172. sed 's/^/| /' conftest.$ac_ext >&5
  24173. ac_header_compiler=no
  24174. fi
  24175. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24176. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24177. echo "${ECHO_T}$ac_header_compiler" >&6
  24178. # Is the header present?
  24179. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24180. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24181. cat >conftest.$ac_ext <<_ACEOF
  24182. /* confdefs.h. */
  24183. _ACEOF
  24184. cat confdefs.h >>conftest.$ac_ext
  24185. cat >>conftest.$ac_ext <<_ACEOF
  24186. /* end confdefs.h. */
  24187. #include <$ac_header>
  24188. _ACEOF
  24189. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24190. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24191. ac_status=$?
  24192. grep -v '^ *+' conftest.er1 >conftest.err
  24193. rm -f conftest.er1
  24194. cat conftest.err >&5
  24195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24196. (exit $ac_status); } >/dev/null; then
  24197. if test -s conftest.err; then
  24198. ac_cpp_err=$ac_c_preproc_warn_flag
  24199. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24200. else
  24201. ac_cpp_err=
  24202. fi
  24203. else
  24204. ac_cpp_err=yes
  24205. fi
  24206. if test -z "$ac_cpp_err"; then
  24207. ac_header_preproc=yes
  24208. else
  24209. echo "$as_me: failed program was:" >&5
  24210. sed 's/^/| /' conftest.$ac_ext >&5
  24211. ac_header_preproc=no
  24212. fi
  24213. rm -f conftest.err conftest.$ac_ext
  24214. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24215. echo "${ECHO_T}$ac_header_preproc" >&6
  24216. # So? What about this header?
  24217. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24218. yes:no: )
  24219. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24220. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24221. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24222. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24223. ac_header_preproc=yes
  24224. ;;
  24225. no:yes:* )
  24226. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24227. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24228. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24229. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24230. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24231. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24232. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24233. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24234. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24235. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24236. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24237. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24238. (
  24239. cat <<\_ASBOX
  24240. ## ------------------------------------------ ##
  24241. ## Report this to the AC_PACKAGE_NAME lists. ##
  24242. ## ------------------------------------------ ##
  24243. _ASBOX
  24244. ) |
  24245. sed "s/^/$as_me: WARNING: /" >&2
  24246. ;;
  24247. esac
  24248. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24249. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24250. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24251. echo $ECHO_N "(cached) $ECHO_C" >&6
  24252. else
  24253. eval "$as_ac_Header=\$ac_header_preproc"
  24254. fi
  24255. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24256. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24257. fi
  24258. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24259. cat >>confdefs.h <<_ACEOF
  24260. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24261. _ACEOF
  24262. break
  24263. fi
  24264. done
  24265. echo "$as_me:$LINENO: checking for int8_t" >&5
  24266. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
  24267. if test "${ac_cv_type_int8_t+set}" = set; then
  24268. echo $ECHO_N "(cached) $ECHO_C" >&6
  24269. else
  24270. cat >conftest.$ac_ext <<_ACEOF
  24271. /* confdefs.h. */
  24272. _ACEOF
  24273. cat confdefs.h >>conftest.$ac_ext
  24274. cat >>conftest.$ac_ext <<_ACEOF
  24275. /* end confdefs.h. */
  24276. $ac_includes_default
  24277. int
  24278. main ()
  24279. {
  24280. if ((int8_t *) 0)
  24281. return 0;
  24282. if (sizeof (int8_t))
  24283. return 0;
  24284. ;
  24285. return 0;
  24286. }
  24287. _ACEOF
  24288. rm -f conftest.$ac_objext
  24289. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24290. (eval $ac_compile) 2>conftest.er1
  24291. ac_status=$?
  24292. grep -v '^ *+' conftest.er1 >conftest.err
  24293. rm -f conftest.er1
  24294. cat conftest.err >&5
  24295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24296. (exit $ac_status); } &&
  24297. { ac_try='test -z "$ac_c_werror_flag"
  24298. || test ! -s conftest.err'
  24299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24300. (eval $ac_try) 2>&5
  24301. ac_status=$?
  24302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24303. (exit $ac_status); }; } &&
  24304. { ac_try='test -s conftest.$ac_objext'
  24305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24306. (eval $ac_try) 2>&5
  24307. ac_status=$?
  24308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24309. (exit $ac_status); }; }; then
  24310. ac_cv_type_int8_t=yes
  24311. else
  24312. echo "$as_me: failed program was:" >&5
  24313. sed 's/^/| /' conftest.$ac_ext >&5
  24314. ac_cv_type_int8_t=no
  24315. fi
  24316. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24317. fi
  24318. echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  24319. echo "${ECHO_T}$ac_cv_type_int8_t" >&6
  24320. if test $ac_cv_type_int8_t = yes; then
  24321. cat >>confdefs.h <<_ACEOF
  24322. #define HAVE_INT8_T 1
  24323. _ACEOF
  24324. fi
  24325. echo "$as_me:$LINENO: checking for uint8_t" >&5
  24326. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
  24327. if test "${ac_cv_type_uint8_t+set}" = set; then
  24328. echo $ECHO_N "(cached) $ECHO_C" >&6
  24329. else
  24330. cat >conftest.$ac_ext <<_ACEOF
  24331. /* confdefs.h. */
  24332. _ACEOF
  24333. cat confdefs.h >>conftest.$ac_ext
  24334. cat >>conftest.$ac_ext <<_ACEOF
  24335. /* end confdefs.h. */
  24336. $ac_includes_default
  24337. int
  24338. main ()
  24339. {
  24340. if ((uint8_t *) 0)
  24341. return 0;
  24342. if (sizeof (uint8_t))
  24343. return 0;
  24344. ;
  24345. return 0;
  24346. }
  24347. _ACEOF
  24348. rm -f conftest.$ac_objext
  24349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24350. (eval $ac_compile) 2>conftest.er1
  24351. ac_status=$?
  24352. grep -v '^ *+' conftest.er1 >conftest.err
  24353. rm -f conftest.er1
  24354. cat conftest.err >&5
  24355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24356. (exit $ac_status); } &&
  24357. { ac_try='test -z "$ac_c_werror_flag"
  24358. || test ! -s conftest.err'
  24359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24360. (eval $ac_try) 2>&5
  24361. ac_status=$?
  24362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24363. (exit $ac_status); }; } &&
  24364. { ac_try='test -s conftest.$ac_objext'
  24365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24366. (eval $ac_try) 2>&5
  24367. ac_status=$?
  24368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24369. (exit $ac_status); }; }; then
  24370. ac_cv_type_uint8_t=yes
  24371. else
  24372. echo "$as_me: failed program was:" >&5
  24373. sed 's/^/| /' conftest.$ac_ext >&5
  24374. ac_cv_type_uint8_t=no
  24375. fi
  24376. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24377. fi
  24378. echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  24379. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
  24380. if test $ac_cv_type_uint8_t = yes; then
  24381. cat >>confdefs.h <<_ACEOF
  24382. #define HAVE_UINT8_T 1
  24383. _ACEOF
  24384. fi
  24385. echo "$as_me:$LINENO: checking for int16_t" >&5
  24386. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
  24387. if test "${ac_cv_type_int16_t+set}" = set; then
  24388. echo $ECHO_N "(cached) $ECHO_C" >&6
  24389. else
  24390. cat >conftest.$ac_ext <<_ACEOF
  24391. /* confdefs.h. */
  24392. _ACEOF
  24393. cat confdefs.h >>conftest.$ac_ext
  24394. cat >>conftest.$ac_ext <<_ACEOF
  24395. /* end confdefs.h. */
  24396. $ac_includes_default
  24397. int
  24398. main ()
  24399. {
  24400. if ((int16_t *) 0)
  24401. return 0;
  24402. if (sizeof (int16_t))
  24403. return 0;
  24404. ;
  24405. return 0;
  24406. }
  24407. _ACEOF
  24408. rm -f conftest.$ac_objext
  24409. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24410. (eval $ac_compile) 2>conftest.er1
  24411. ac_status=$?
  24412. grep -v '^ *+' conftest.er1 >conftest.err
  24413. rm -f conftest.er1
  24414. cat conftest.err >&5
  24415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24416. (exit $ac_status); } &&
  24417. { ac_try='test -z "$ac_c_werror_flag"
  24418. || test ! -s conftest.err'
  24419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24420. (eval $ac_try) 2>&5
  24421. ac_status=$?
  24422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24423. (exit $ac_status); }; } &&
  24424. { ac_try='test -s conftest.$ac_objext'
  24425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24426. (eval $ac_try) 2>&5
  24427. ac_status=$?
  24428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24429. (exit $ac_status); }; }; then
  24430. ac_cv_type_int16_t=yes
  24431. else
  24432. echo "$as_me: failed program was:" >&5
  24433. sed 's/^/| /' conftest.$ac_ext >&5
  24434. ac_cv_type_int16_t=no
  24435. fi
  24436. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24437. fi
  24438. echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  24439. echo "${ECHO_T}$ac_cv_type_int16_t" >&6
  24440. if test $ac_cv_type_int16_t = yes; then
  24441. cat >>confdefs.h <<_ACEOF
  24442. #define HAVE_INT16_T 1
  24443. _ACEOF
  24444. fi
  24445. echo "$as_me:$LINENO: checking for uint16_t" >&5
  24446. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
  24447. if test "${ac_cv_type_uint16_t+set}" = set; then
  24448. echo $ECHO_N "(cached) $ECHO_C" >&6
  24449. else
  24450. cat >conftest.$ac_ext <<_ACEOF
  24451. /* confdefs.h. */
  24452. _ACEOF
  24453. cat confdefs.h >>conftest.$ac_ext
  24454. cat >>conftest.$ac_ext <<_ACEOF
  24455. /* end confdefs.h. */
  24456. $ac_includes_default
  24457. int
  24458. main ()
  24459. {
  24460. if ((uint16_t *) 0)
  24461. return 0;
  24462. if (sizeof (uint16_t))
  24463. return 0;
  24464. ;
  24465. return 0;
  24466. }
  24467. _ACEOF
  24468. rm -f conftest.$ac_objext
  24469. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24470. (eval $ac_compile) 2>conftest.er1
  24471. ac_status=$?
  24472. grep -v '^ *+' conftest.er1 >conftest.err
  24473. rm -f conftest.er1
  24474. cat conftest.err >&5
  24475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24476. (exit $ac_status); } &&
  24477. { ac_try='test -z "$ac_c_werror_flag"
  24478. || test ! -s conftest.err'
  24479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24480. (eval $ac_try) 2>&5
  24481. ac_status=$?
  24482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24483. (exit $ac_status); }; } &&
  24484. { ac_try='test -s conftest.$ac_objext'
  24485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24486. (eval $ac_try) 2>&5
  24487. ac_status=$?
  24488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24489. (exit $ac_status); }; }; then
  24490. ac_cv_type_uint16_t=yes
  24491. else
  24492. echo "$as_me: failed program was:" >&5
  24493. sed 's/^/| /' conftest.$ac_ext >&5
  24494. ac_cv_type_uint16_t=no
  24495. fi
  24496. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24497. fi
  24498. echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  24499. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
  24500. if test $ac_cv_type_uint16_t = yes; then
  24501. cat >>confdefs.h <<_ACEOF
  24502. #define HAVE_UINT16_T 1
  24503. _ACEOF
  24504. fi
  24505. echo "$as_me:$LINENO: checking for int32_t" >&5
  24506. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
  24507. if test "${ac_cv_type_int32_t+set}" = set; then
  24508. echo $ECHO_N "(cached) $ECHO_C" >&6
  24509. else
  24510. cat >conftest.$ac_ext <<_ACEOF
  24511. /* confdefs.h. */
  24512. _ACEOF
  24513. cat confdefs.h >>conftest.$ac_ext
  24514. cat >>conftest.$ac_ext <<_ACEOF
  24515. /* end confdefs.h. */
  24516. $ac_includes_default
  24517. int
  24518. main ()
  24519. {
  24520. if ((int32_t *) 0)
  24521. return 0;
  24522. if (sizeof (int32_t))
  24523. return 0;
  24524. ;
  24525. return 0;
  24526. }
  24527. _ACEOF
  24528. rm -f conftest.$ac_objext
  24529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24530. (eval $ac_compile) 2>conftest.er1
  24531. ac_status=$?
  24532. grep -v '^ *+' conftest.er1 >conftest.err
  24533. rm -f conftest.er1
  24534. cat conftest.err >&5
  24535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24536. (exit $ac_status); } &&
  24537. { ac_try='test -z "$ac_c_werror_flag"
  24538. || test ! -s conftest.err'
  24539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24540. (eval $ac_try) 2>&5
  24541. ac_status=$?
  24542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24543. (exit $ac_status); }; } &&
  24544. { ac_try='test -s conftest.$ac_objext'
  24545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24546. (eval $ac_try) 2>&5
  24547. ac_status=$?
  24548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24549. (exit $ac_status); }; }; then
  24550. ac_cv_type_int32_t=yes
  24551. else
  24552. echo "$as_me: failed program was:" >&5
  24553. sed 's/^/| /' conftest.$ac_ext >&5
  24554. ac_cv_type_int32_t=no
  24555. fi
  24556. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24557. fi
  24558. echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  24559. echo "${ECHO_T}$ac_cv_type_int32_t" >&6
  24560. if test $ac_cv_type_int32_t = yes; then
  24561. cat >>confdefs.h <<_ACEOF
  24562. #define HAVE_INT32_T 1
  24563. _ACEOF
  24564. fi
  24565. echo "$as_me:$LINENO: checking for uint32_t" >&5
  24566. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
  24567. if test "${ac_cv_type_uint32_t+set}" = set; then
  24568. echo $ECHO_N "(cached) $ECHO_C" >&6
  24569. else
  24570. cat >conftest.$ac_ext <<_ACEOF
  24571. /* confdefs.h. */
  24572. _ACEOF
  24573. cat confdefs.h >>conftest.$ac_ext
  24574. cat >>conftest.$ac_ext <<_ACEOF
  24575. /* end confdefs.h. */
  24576. $ac_includes_default
  24577. int
  24578. main ()
  24579. {
  24580. if ((uint32_t *) 0)
  24581. return 0;
  24582. if (sizeof (uint32_t))
  24583. return 0;
  24584. ;
  24585. return 0;
  24586. }
  24587. _ACEOF
  24588. rm -f conftest.$ac_objext
  24589. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24590. (eval $ac_compile) 2>conftest.er1
  24591. ac_status=$?
  24592. grep -v '^ *+' conftest.er1 >conftest.err
  24593. rm -f conftest.er1
  24594. cat conftest.err >&5
  24595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24596. (exit $ac_status); } &&
  24597. { ac_try='test -z "$ac_c_werror_flag"
  24598. || test ! -s conftest.err'
  24599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24600. (eval $ac_try) 2>&5
  24601. ac_status=$?
  24602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24603. (exit $ac_status); }; } &&
  24604. { ac_try='test -s conftest.$ac_objext'
  24605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24606. (eval $ac_try) 2>&5
  24607. ac_status=$?
  24608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24609. (exit $ac_status); }; }; then
  24610. ac_cv_type_uint32_t=yes
  24611. else
  24612. echo "$as_me: failed program was:" >&5
  24613. sed 's/^/| /' conftest.$ac_ext >&5
  24614. ac_cv_type_uint32_t=no
  24615. fi
  24616. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24617. fi
  24618. echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  24619. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
  24620. if test $ac_cv_type_uint32_t = yes; then
  24621. cat >>confdefs.h <<_ACEOF
  24622. #define HAVE_UINT32_T 1
  24623. _ACEOF
  24624. fi
  24625. echo "$as_me:$LINENO: checking for intptr_t" >&5
  24626. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
  24627. if test "${ac_cv_type_intptr_t+set}" = set; then
  24628. echo $ECHO_N "(cached) $ECHO_C" >&6
  24629. else
  24630. cat >conftest.$ac_ext <<_ACEOF
  24631. /* confdefs.h. */
  24632. _ACEOF
  24633. cat confdefs.h >>conftest.$ac_ext
  24634. cat >>conftest.$ac_ext <<_ACEOF
  24635. /* end confdefs.h. */
  24636. $ac_includes_default
  24637. int
  24638. main ()
  24639. {
  24640. if ((intptr_t *) 0)
  24641. return 0;
  24642. if (sizeof (intptr_t))
  24643. return 0;
  24644. ;
  24645. return 0;
  24646. }
  24647. _ACEOF
  24648. rm -f conftest.$ac_objext
  24649. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24650. (eval $ac_compile) 2>conftest.er1
  24651. ac_status=$?
  24652. grep -v '^ *+' conftest.er1 >conftest.err
  24653. rm -f conftest.er1
  24654. cat conftest.err >&5
  24655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24656. (exit $ac_status); } &&
  24657. { ac_try='test -z "$ac_c_werror_flag"
  24658. || test ! -s conftest.err'
  24659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24660. (eval $ac_try) 2>&5
  24661. ac_status=$?
  24662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24663. (exit $ac_status); }; } &&
  24664. { ac_try='test -s conftest.$ac_objext'
  24665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24666. (eval $ac_try) 2>&5
  24667. ac_status=$?
  24668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24669. (exit $ac_status); }; }; then
  24670. ac_cv_type_intptr_t=yes
  24671. else
  24672. echo "$as_me: failed program was:" >&5
  24673. sed 's/^/| /' conftest.$ac_ext >&5
  24674. ac_cv_type_intptr_t=no
  24675. fi
  24676. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24677. fi
  24678. echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  24679. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
  24680. if test $ac_cv_type_intptr_t = yes; then
  24681. cat >>confdefs.h <<_ACEOF
  24682. #define HAVE_INTPTR_T 1
  24683. _ACEOF
  24684. fi
  24685. # ====================
  24686. # uintptr type & sizes
  24687. # ====================
  24688. echo "$as_me:$LINENO: checking for uintptr_t" >&5
  24689. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
  24690. if test "${ac_cv_type_uintptr_t+set}" = set; then
  24691. echo $ECHO_N "(cached) $ECHO_C" >&6
  24692. else
  24693. cat >conftest.$ac_ext <<_ACEOF
  24694. /* confdefs.h. */
  24695. _ACEOF
  24696. cat confdefs.h >>conftest.$ac_ext
  24697. cat >>conftest.$ac_ext <<_ACEOF
  24698. /* end confdefs.h. */
  24699. $ac_includes_default
  24700. int
  24701. main ()
  24702. {
  24703. if ((uintptr_t *) 0)
  24704. return 0;
  24705. if (sizeof (uintptr_t))
  24706. return 0;
  24707. ;
  24708. return 0;
  24709. }
  24710. _ACEOF
  24711. rm -f conftest.$ac_objext
  24712. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24713. (eval $ac_compile) 2>conftest.er1
  24714. ac_status=$?
  24715. grep -v '^ *+' conftest.er1 >conftest.err
  24716. rm -f conftest.er1
  24717. cat conftest.err >&5
  24718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24719. (exit $ac_status); } &&
  24720. { ac_try='test -z "$ac_c_werror_flag"
  24721. || test ! -s conftest.err'
  24722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24723. (eval $ac_try) 2>&5
  24724. ac_status=$?
  24725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24726. (exit $ac_status); }; } &&
  24727. { ac_try='test -s conftest.$ac_objext'
  24728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24729. (eval $ac_try) 2>&5
  24730. ac_status=$?
  24731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24732. (exit $ac_status); }; }; then
  24733. ac_cv_type_uintptr_t=yes
  24734. else
  24735. echo "$as_me: failed program was:" >&5
  24736. sed 's/^/| /' conftest.$ac_ext >&5
  24737. ac_cv_type_uintptr_t=no
  24738. fi
  24739. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24740. fi
  24741. echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  24742. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
  24743. if test $ac_cv_type_uintptr_t = yes; then
  24744. cat >>confdefs.h <<_ACEOF
  24745. #define HAVE_UINTPTR_T 1
  24746. _ACEOF
  24747. else
  24748. cat >>confdefs.h <<\_ACEOF
  24749. #define uintptr_t unsigned long
  24750. _ACEOF
  24751. fi
  24752. echo "$as_me:$LINENO: checking for char*" >&5
  24753. echo $ECHO_N "checking for char*... $ECHO_C" >&6
  24754. if test "${ac_cv_type_charp+set}" = set; then
  24755. echo $ECHO_N "(cached) $ECHO_C" >&6
  24756. else
  24757. cat >conftest.$ac_ext <<_ACEOF
  24758. /* confdefs.h. */
  24759. _ACEOF
  24760. cat confdefs.h >>conftest.$ac_ext
  24761. cat >>conftest.$ac_ext <<_ACEOF
  24762. /* end confdefs.h. */
  24763. $ac_includes_default
  24764. int
  24765. main ()
  24766. {
  24767. if ((char* *) 0)
  24768. return 0;
  24769. if (sizeof (char*))
  24770. return 0;
  24771. ;
  24772. return 0;
  24773. }
  24774. _ACEOF
  24775. rm -f conftest.$ac_objext
  24776. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24777. (eval $ac_compile) 2>conftest.er1
  24778. ac_status=$?
  24779. grep -v '^ *+' conftest.er1 >conftest.err
  24780. rm -f conftest.er1
  24781. cat conftest.err >&5
  24782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24783. (exit $ac_status); } &&
  24784. { ac_try='test -z "$ac_c_werror_flag"
  24785. || test ! -s conftest.err'
  24786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24787. (eval $ac_try) 2>&5
  24788. ac_status=$?
  24789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24790. (exit $ac_status); }; } &&
  24791. { ac_try='test -s conftest.$ac_objext'
  24792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24793. (eval $ac_try) 2>&5
  24794. ac_status=$?
  24795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24796. (exit $ac_status); }; }; then
  24797. ac_cv_type_charp=yes
  24798. else
  24799. echo "$as_me: failed program was:" >&5
  24800. sed 's/^/| /' conftest.$ac_ext >&5
  24801. ac_cv_type_charp=no
  24802. fi
  24803. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24804. fi
  24805. echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  24806. echo "${ECHO_T}$ac_cv_type_charp" >&6
  24807. echo "$as_me:$LINENO: checking size of char*" >&5
  24808. echo $ECHO_N "checking size of char*... $ECHO_C" >&6
  24809. if test "${ac_cv_sizeof_charp+set}" = set; then
  24810. echo $ECHO_N "(cached) $ECHO_C" >&6
  24811. else
  24812. if test "$ac_cv_type_charp" = yes; then
  24813. # The cast to unsigned long works around a bug in the HP C Compiler
  24814. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24815. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24816. # This bug is HP SR number 8606223364.
  24817. if test "$cross_compiling" = yes; then
  24818. # Depending upon the size, compute the lo and hi bounds.
  24819. cat >conftest.$ac_ext <<_ACEOF
  24820. /* confdefs.h. */
  24821. _ACEOF
  24822. cat confdefs.h >>conftest.$ac_ext
  24823. cat >>conftest.$ac_ext <<_ACEOF
  24824. /* end confdefs.h. */
  24825. $ac_includes_default
  24826. int
  24827. main ()
  24828. {
  24829. static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
  24830. test_array [0] = 0
  24831. ;
  24832. return 0;
  24833. }
  24834. _ACEOF
  24835. rm -f conftest.$ac_objext
  24836. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24837. (eval $ac_compile) 2>conftest.er1
  24838. ac_status=$?
  24839. grep -v '^ *+' conftest.er1 >conftest.err
  24840. rm -f conftest.er1
  24841. cat conftest.err >&5
  24842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24843. (exit $ac_status); } &&
  24844. { ac_try='test -z "$ac_c_werror_flag"
  24845. || test ! -s conftest.err'
  24846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24847. (eval $ac_try) 2>&5
  24848. ac_status=$?
  24849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24850. (exit $ac_status); }; } &&
  24851. { ac_try='test -s conftest.$ac_objext'
  24852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24853. (eval $ac_try) 2>&5
  24854. ac_status=$?
  24855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24856. (exit $ac_status); }; }; then
  24857. ac_lo=0 ac_mid=0
  24858. while :; do
  24859. cat >conftest.$ac_ext <<_ACEOF
  24860. /* confdefs.h. */
  24861. _ACEOF
  24862. cat confdefs.h >>conftest.$ac_ext
  24863. cat >>conftest.$ac_ext <<_ACEOF
  24864. /* end confdefs.h. */
  24865. $ac_includes_default
  24866. int
  24867. main ()
  24868. {
  24869. static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
  24870. test_array [0] = 0
  24871. ;
  24872. return 0;
  24873. }
  24874. _ACEOF
  24875. rm -f conftest.$ac_objext
  24876. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24877. (eval $ac_compile) 2>conftest.er1
  24878. ac_status=$?
  24879. grep -v '^ *+' conftest.er1 >conftest.err
  24880. rm -f conftest.er1
  24881. cat conftest.err >&5
  24882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24883. (exit $ac_status); } &&
  24884. { ac_try='test -z "$ac_c_werror_flag"
  24885. || test ! -s conftest.err'
  24886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24887. (eval $ac_try) 2>&5
  24888. ac_status=$?
  24889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24890. (exit $ac_status); }; } &&
  24891. { ac_try='test -s conftest.$ac_objext'
  24892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24893. (eval $ac_try) 2>&5
  24894. ac_status=$?
  24895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24896. (exit $ac_status); }; }; then
  24897. ac_hi=$ac_mid; break
  24898. else
  24899. echo "$as_me: failed program was:" >&5
  24900. sed 's/^/| /' conftest.$ac_ext >&5
  24901. ac_lo=`expr $ac_mid + 1`
  24902. if test $ac_lo -le $ac_mid; then
  24903. ac_lo= ac_hi=
  24904. break
  24905. fi
  24906. ac_mid=`expr 2 '*' $ac_mid + 1`
  24907. fi
  24908. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24909. done
  24910. else
  24911. echo "$as_me: failed program was:" >&5
  24912. sed 's/^/| /' conftest.$ac_ext >&5
  24913. cat >conftest.$ac_ext <<_ACEOF
  24914. /* confdefs.h. */
  24915. _ACEOF
  24916. cat confdefs.h >>conftest.$ac_ext
  24917. cat >>conftest.$ac_ext <<_ACEOF
  24918. /* end confdefs.h. */
  24919. $ac_includes_default
  24920. int
  24921. main ()
  24922. {
  24923. static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
  24924. test_array [0] = 0
  24925. ;
  24926. return 0;
  24927. }
  24928. _ACEOF
  24929. rm -f conftest.$ac_objext
  24930. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24931. (eval $ac_compile) 2>conftest.er1
  24932. ac_status=$?
  24933. grep -v '^ *+' conftest.er1 >conftest.err
  24934. rm -f conftest.er1
  24935. cat conftest.err >&5
  24936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24937. (exit $ac_status); } &&
  24938. { ac_try='test -z "$ac_c_werror_flag"
  24939. || test ! -s conftest.err'
  24940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24941. (eval $ac_try) 2>&5
  24942. ac_status=$?
  24943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24944. (exit $ac_status); }; } &&
  24945. { ac_try='test -s conftest.$ac_objext'
  24946. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24947. (eval $ac_try) 2>&5
  24948. ac_status=$?
  24949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24950. (exit $ac_status); }; }; then
  24951. ac_hi=-1 ac_mid=-1
  24952. while :; do
  24953. cat >conftest.$ac_ext <<_ACEOF
  24954. /* confdefs.h. */
  24955. _ACEOF
  24956. cat confdefs.h >>conftest.$ac_ext
  24957. cat >>conftest.$ac_ext <<_ACEOF
  24958. /* end confdefs.h. */
  24959. $ac_includes_default
  24960. int
  24961. main ()
  24962. {
  24963. static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
  24964. test_array [0] = 0
  24965. ;
  24966. return 0;
  24967. }
  24968. _ACEOF
  24969. rm -f conftest.$ac_objext
  24970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24971. (eval $ac_compile) 2>conftest.er1
  24972. ac_status=$?
  24973. grep -v '^ *+' conftest.er1 >conftest.err
  24974. rm -f conftest.er1
  24975. cat conftest.err >&5
  24976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24977. (exit $ac_status); } &&
  24978. { ac_try='test -z "$ac_c_werror_flag"
  24979. || test ! -s conftest.err'
  24980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24981. (eval $ac_try) 2>&5
  24982. ac_status=$?
  24983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24984. (exit $ac_status); }; } &&
  24985. { ac_try='test -s conftest.$ac_objext'
  24986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24987. (eval $ac_try) 2>&5
  24988. ac_status=$?
  24989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24990. (exit $ac_status); }; }; then
  24991. ac_lo=$ac_mid; break
  24992. else
  24993. echo "$as_me: failed program was:" >&5
  24994. sed 's/^/| /' conftest.$ac_ext >&5
  24995. ac_hi=`expr '(' $ac_mid ')' - 1`
  24996. if test $ac_mid -le $ac_hi; then
  24997. ac_lo= ac_hi=
  24998. break
  24999. fi
  25000. ac_mid=`expr 2 '*' $ac_mid`
  25001. fi
  25002. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25003. done
  25004. else
  25005. echo "$as_me: failed program was:" >&5
  25006. sed 's/^/| /' conftest.$ac_ext >&5
  25007. ac_lo= ac_hi=
  25008. fi
  25009. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25010. fi
  25011. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25012. # Binary search between lo and hi bounds.
  25013. while test "x$ac_lo" != "x$ac_hi"; do
  25014. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  25015. cat >conftest.$ac_ext <<_ACEOF
  25016. /* confdefs.h. */
  25017. _ACEOF
  25018. cat confdefs.h >>conftest.$ac_ext
  25019. cat >>conftest.$ac_ext <<_ACEOF
  25020. /* end confdefs.h. */
  25021. $ac_includes_default
  25022. int
  25023. main ()
  25024. {
  25025. static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
  25026. test_array [0] = 0
  25027. ;
  25028. return 0;
  25029. }
  25030. _ACEOF
  25031. rm -f conftest.$ac_objext
  25032. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25033. (eval $ac_compile) 2>conftest.er1
  25034. ac_status=$?
  25035. grep -v '^ *+' conftest.er1 >conftest.err
  25036. rm -f conftest.er1
  25037. cat conftest.err >&5
  25038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25039. (exit $ac_status); } &&
  25040. { ac_try='test -z "$ac_c_werror_flag"
  25041. || test ! -s conftest.err'
  25042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25043. (eval $ac_try) 2>&5
  25044. ac_status=$?
  25045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25046. (exit $ac_status); }; } &&
  25047. { ac_try='test -s conftest.$ac_objext'
  25048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25049. (eval $ac_try) 2>&5
  25050. ac_status=$?
  25051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25052. (exit $ac_status); }; }; then
  25053. ac_hi=$ac_mid
  25054. else
  25055. echo "$as_me: failed program was:" >&5
  25056. sed 's/^/| /' conftest.$ac_ext >&5
  25057. ac_lo=`expr '(' $ac_mid ')' + 1`
  25058. fi
  25059. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25060. done
  25061. case $ac_lo in
  25062. ?*) ac_cv_sizeof_charp=$ac_lo;;
  25063. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
  25064. See \`config.log' for more details." >&5
  25065. echo "$as_me: error: cannot compute sizeof (char*), 77
  25066. See \`config.log' for more details." >&2;}
  25067. { (exit 1); exit 1; }; } ;;
  25068. esac
  25069. else
  25070. if test "$cross_compiling" = yes; then
  25071. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  25072. See \`config.log' for more details." >&5
  25073. echo "$as_me: error: cannot run test program while cross compiling
  25074. See \`config.log' for more details." >&2;}
  25075. { (exit 1); exit 1; }; }
  25076. else
  25077. cat >conftest.$ac_ext <<_ACEOF
  25078. /* confdefs.h. */
  25079. _ACEOF
  25080. cat confdefs.h >>conftest.$ac_ext
  25081. cat >>conftest.$ac_ext <<_ACEOF
  25082. /* end confdefs.h. */
  25083. $ac_includes_default
  25084. long longval () { return (long) (sizeof (char*)); }
  25085. unsigned long ulongval () { return (long) (sizeof (char*)); }
  25086. #include <stdio.h>
  25087. #include <stdlib.h>
  25088. int
  25089. main ()
  25090. {
  25091. FILE *f = fopen ("conftest.val", "w");
  25092. if (! f)
  25093. exit (1);
  25094. if (((long) (sizeof (char*))) < 0)
  25095. {
  25096. long i = longval ();
  25097. if (i != ((long) (sizeof (char*))))
  25098. exit (1);
  25099. fprintf (f, "%ld\n", i);
  25100. }
  25101. else
  25102. {
  25103. unsigned long i = ulongval ();
  25104. if (i != ((long) (sizeof (char*))))
  25105. exit (1);
  25106. fprintf (f, "%lu\n", i);
  25107. }
  25108. exit (ferror (f) || fclose (f) != 0);
  25109. ;
  25110. return 0;
  25111. }
  25112. _ACEOF
  25113. rm -f conftest$ac_exeext
  25114. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25115. (eval $ac_link) 2>&5
  25116. ac_status=$?
  25117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25118. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25120. (eval $ac_try) 2>&5
  25121. ac_status=$?
  25122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25123. (exit $ac_status); }; }; then
  25124. ac_cv_sizeof_charp=`cat conftest.val`
  25125. else
  25126. echo "$as_me: program exited with status $ac_status" >&5
  25127. echo "$as_me: failed program was:" >&5
  25128. sed 's/^/| /' conftest.$ac_ext >&5
  25129. ( exit $ac_status )
  25130. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
  25131. See \`config.log' for more details." >&5
  25132. echo "$as_me: error: cannot compute sizeof (char*), 77
  25133. See \`config.log' for more details." >&2;}
  25134. { (exit 1); exit 1; }; }
  25135. fi
  25136. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25137. fi
  25138. fi
  25139. rm -f conftest.val
  25140. else
  25141. ac_cv_sizeof_charp=0
  25142. fi
  25143. fi
  25144. echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  25145. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
  25146. cat >>confdefs.h <<_ACEOF
  25147. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  25148. _ACEOF
  25149. echo "$as_me:$LINENO: checking for int" >&5
  25150. echo $ECHO_N "checking for int... $ECHO_C" >&6
  25151. if test "${ac_cv_type_int+set}" = set; then
  25152. echo $ECHO_N "(cached) $ECHO_C" >&6
  25153. else
  25154. cat >conftest.$ac_ext <<_ACEOF
  25155. /* confdefs.h. */
  25156. _ACEOF
  25157. cat confdefs.h >>conftest.$ac_ext
  25158. cat >>conftest.$ac_ext <<_ACEOF
  25159. /* end confdefs.h. */
  25160. $ac_includes_default
  25161. int
  25162. main ()
  25163. {
  25164. if ((int *) 0)
  25165. return 0;
  25166. if (sizeof (int))
  25167. return 0;
  25168. ;
  25169. return 0;
  25170. }
  25171. _ACEOF
  25172. rm -f conftest.$ac_objext
  25173. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25174. (eval $ac_compile) 2>conftest.er1
  25175. ac_status=$?
  25176. grep -v '^ *+' conftest.er1 >conftest.err
  25177. rm -f conftest.er1
  25178. cat conftest.err >&5
  25179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25180. (exit $ac_status); } &&
  25181. { ac_try='test -z "$ac_c_werror_flag"
  25182. || test ! -s conftest.err'
  25183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25184. (eval $ac_try) 2>&5
  25185. ac_status=$?
  25186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25187. (exit $ac_status); }; } &&
  25188. { ac_try='test -s conftest.$ac_objext'
  25189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25190. (eval $ac_try) 2>&5
  25191. ac_status=$?
  25192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25193. (exit $ac_status); }; }; then
  25194. ac_cv_type_int=yes
  25195. else
  25196. echo "$as_me: failed program was:" >&5
  25197. sed 's/^/| /' conftest.$ac_ext >&5
  25198. ac_cv_type_int=no
  25199. fi
  25200. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25201. fi
  25202. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  25203. echo "${ECHO_T}$ac_cv_type_int" >&6
  25204. echo "$as_me:$LINENO: checking size of int" >&5
  25205. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  25206. if test "${ac_cv_sizeof_int+set}" = set; then
  25207. echo $ECHO_N "(cached) $ECHO_C" >&6
  25208. else
  25209. if test "$ac_cv_type_int" = yes; then
  25210. # The cast to unsigned long works around a bug in the HP C Compiler
  25211. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25212. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25213. # This bug is HP SR number 8606223364.
  25214. if test "$cross_compiling" = yes; then
  25215. # Depending upon the size, compute the lo and hi bounds.
  25216. cat >conftest.$ac_ext <<_ACEOF
  25217. /* confdefs.h. */
  25218. _ACEOF
  25219. cat confdefs.h >>conftest.$ac_ext
  25220. cat >>conftest.$ac_ext <<_ACEOF
  25221. /* end confdefs.h. */
  25222. $ac_includes_default
  25223. int
  25224. main ()
  25225. {
  25226. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  25227. test_array [0] = 0
  25228. ;
  25229. return 0;
  25230. }
  25231. _ACEOF
  25232. rm -f conftest.$ac_objext
  25233. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25234. (eval $ac_compile) 2>conftest.er1
  25235. ac_status=$?
  25236. grep -v '^ *+' conftest.er1 >conftest.err
  25237. rm -f conftest.er1
  25238. cat conftest.err >&5
  25239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25240. (exit $ac_status); } &&
  25241. { ac_try='test -z "$ac_c_werror_flag"
  25242. || test ! -s conftest.err'
  25243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25244. (eval $ac_try) 2>&5
  25245. ac_status=$?
  25246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25247. (exit $ac_status); }; } &&
  25248. { ac_try='test -s conftest.$ac_objext'
  25249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25250. (eval $ac_try) 2>&5
  25251. ac_status=$?
  25252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25253. (exit $ac_status); }; }; then
  25254. ac_lo=0 ac_mid=0
  25255. while :; do
  25256. cat >conftest.$ac_ext <<_ACEOF
  25257. /* confdefs.h. */
  25258. _ACEOF
  25259. cat confdefs.h >>conftest.$ac_ext
  25260. cat >>conftest.$ac_ext <<_ACEOF
  25261. /* end confdefs.h. */
  25262. $ac_includes_default
  25263. int
  25264. main ()
  25265. {
  25266. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  25267. test_array [0] = 0
  25268. ;
  25269. return 0;
  25270. }
  25271. _ACEOF
  25272. rm -f conftest.$ac_objext
  25273. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25274. (eval $ac_compile) 2>conftest.er1
  25275. ac_status=$?
  25276. grep -v '^ *+' conftest.er1 >conftest.err
  25277. rm -f conftest.er1
  25278. cat conftest.err >&5
  25279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25280. (exit $ac_status); } &&
  25281. { ac_try='test -z "$ac_c_werror_flag"
  25282. || test ! -s conftest.err'
  25283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25284. (eval $ac_try) 2>&5
  25285. ac_status=$?
  25286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25287. (exit $ac_status); }; } &&
  25288. { ac_try='test -s conftest.$ac_objext'
  25289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25290. (eval $ac_try) 2>&5
  25291. ac_status=$?
  25292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25293. (exit $ac_status); }; }; then
  25294. ac_hi=$ac_mid; break
  25295. else
  25296. echo "$as_me: failed program was:" >&5
  25297. sed 's/^/| /' conftest.$ac_ext >&5
  25298. ac_lo=`expr $ac_mid + 1`
  25299. if test $ac_lo -le $ac_mid; then
  25300. ac_lo= ac_hi=
  25301. break
  25302. fi
  25303. ac_mid=`expr 2 '*' $ac_mid + 1`
  25304. fi
  25305. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25306. done
  25307. else
  25308. echo "$as_me: failed program was:" >&5
  25309. sed 's/^/| /' conftest.$ac_ext >&5
  25310. cat >conftest.$ac_ext <<_ACEOF
  25311. /* confdefs.h. */
  25312. _ACEOF
  25313. cat confdefs.h >>conftest.$ac_ext
  25314. cat >>conftest.$ac_ext <<_ACEOF
  25315. /* end confdefs.h. */
  25316. $ac_includes_default
  25317. int
  25318. main ()
  25319. {
  25320. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  25321. test_array [0] = 0
  25322. ;
  25323. return 0;
  25324. }
  25325. _ACEOF
  25326. rm -f conftest.$ac_objext
  25327. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25328. (eval $ac_compile) 2>conftest.er1
  25329. ac_status=$?
  25330. grep -v '^ *+' conftest.er1 >conftest.err
  25331. rm -f conftest.er1
  25332. cat conftest.err >&5
  25333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25334. (exit $ac_status); } &&
  25335. { ac_try='test -z "$ac_c_werror_flag"
  25336. || test ! -s conftest.err'
  25337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25338. (eval $ac_try) 2>&5
  25339. ac_status=$?
  25340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25341. (exit $ac_status); }; } &&
  25342. { ac_try='test -s conftest.$ac_objext'
  25343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25344. (eval $ac_try) 2>&5
  25345. ac_status=$?
  25346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25347. (exit $ac_status); }; }; then
  25348. ac_hi=-1 ac_mid=-1
  25349. while :; do
  25350. cat >conftest.$ac_ext <<_ACEOF
  25351. /* confdefs.h. */
  25352. _ACEOF
  25353. cat confdefs.h >>conftest.$ac_ext
  25354. cat >>conftest.$ac_ext <<_ACEOF
  25355. /* end confdefs.h. */
  25356. $ac_includes_default
  25357. int
  25358. main ()
  25359. {
  25360. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  25361. test_array [0] = 0
  25362. ;
  25363. return 0;
  25364. }
  25365. _ACEOF
  25366. rm -f conftest.$ac_objext
  25367. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25368. (eval $ac_compile) 2>conftest.er1
  25369. ac_status=$?
  25370. grep -v '^ *+' conftest.er1 >conftest.err
  25371. rm -f conftest.er1
  25372. cat conftest.err >&5
  25373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25374. (exit $ac_status); } &&
  25375. { ac_try='test -z "$ac_c_werror_flag"
  25376. || test ! -s conftest.err'
  25377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25378. (eval $ac_try) 2>&5
  25379. ac_status=$?
  25380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25381. (exit $ac_status); }; } &&
  25382. { ac_try='test -s conftest.$ac_objext'
  25383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25384. (eval $ac_try) 2>&5
  25385. ac_status=$?
  25386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25387. (exit $ac_status); }; }; then
  25388. ac_lo=$ac_mid; break
  25389. else
  25390. echo "$as_me: failed program was:" >&5
  25391. sed 's/^/| /' conftest.$ac_ext >&5
  25392. ac_hi=`expr '(' $ac_mid ')' - 1`
  25393. if test $ac_mid -le $ac_hi; then
  25394. ac_lo= ac_hi=
  25395. break
  25396. fi
  25397. ac_mid=`expr 2 '*' $ac_mid`
  25398. fi
  25399. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25400. done
  25401. else
  25402. echo "$as_me: failed program was:" >&5
  25403. sed 's/^/| /' conftest.$ac_ext >&5
  25404. ac_lo= ac_hi=
  25405. fi
  25406. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25407. fi
  25408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25409. # Binary search between lo and hi bounds.
  25410. while test "x$ac_lo" != "x$ac_hi"; do
  25411. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  25412. cat >conftest.$ac_ext <<_ACEOF
  25413. /* confdefs.h. */
  25414. _ACEOF
  25415. cat confdefs.h >>conftest.$ac_ext
  25416. cat >>conftest.$ac_ext <<_ACEOF
  25417. /* end confdefs.h. */
  25418. $ac_includes_default
  25419. int
  25420. main ()
  25421. {
  25422. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  25423. test_array [0] = 0
  25424. ;
  25425. return 0;
  25426. }
  25427. _ACEOF
  25428. rm -f conftest.$ac_objext
  25429. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25430. (eval $ac_compile) 2>conftest.er1
  25431. ac_status=$?
  25432. grep -v '^ *+' conftest.er1 >conftest.err
  25433. rm -f conftest.er1
  25434. cat conftest.err >&5
  25435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25436. (exit $ac_status); } &&
  25437. { ac_try='test -z "$ac_c_werror_flag"
  25438. || test ! -s conftest.err'
  25439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25440. (eval $ac_try) 2>&5
  25441. ac_status=$?
  25442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25443. (exit $ac_status); }; } &&
  25444. { ac_try='test -s conftest.$ac_objext'
  25445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25446. (eval $ac_try) 2>&5
  25447. ac_status=$?
  25448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25449. (exit $ac_status); }; }; then
  25450. ac_hi=$ac_mid
  25451. else
  25452. echo "$as_me: failed program was:" >&5
  25453. sed 's/^/| /' conftest.$ac_ext >&5
  25454. ac_lo=`expr '(' $ac_mid ')' + 1`
  25455. fi
  25456. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25457. done
  25458. case $ac_lo in
  25459. ?*) ac_cv_sizeof_int=$ac_lo;;
  25460. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  25461. See \`config.log' for more details." >&5
  25462. echo "$as_me: error: cannot compute sizeof (int), 77
  25463. See \`config.log' for more details." >&2;}
  25464. { (exit 1); exit 1; }; } ;;
  25465. esac
  25466. else
  25467. if test "$cross_compiling" = yes; then
  25468. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  25469. See \`config.log' for more details." >&5
  25470. echo "$as_me: error: cannot run test program while cross compiling
  25471. See \`config.log' for more details." >&2;}
  25472. { (exit 1); exit 1; }; }
  25473. else
  25474. cat >conftest.$ac_ext <<_ACEOF
  25475. /* confdefs.h. */
  25476. _ACEOF
  25477. cat confdefs.h >>conftest.$ac_ext
  25478. cat >>conftest.$ac_ext <<_ACEOF
  25479. /* end confdefs.h. */
  25480. $ac_includes_default
  25481. long longval () { return (long) (sizeof (int)); }
  25482. unsigned long ulongval () { return (long) (sizeof (int)); }
  25483. #include <stdio.h>
  25484. #include <stdlib.h>
  25485. int
  25486. main ()
  25487. {
  25488. FILE *f = fopen ("conftest.val", "w");
  25489. if (! f)
  25490. exit (1);
  25491. if (((long) (sizeof (int))) < 0)
  25492. {
  25493. long i = longval ();
  25494. if (i != ((long) (sizeof (int))))
  25495. exit (1);
  25496. fprintf (f, "%ld\n", i);
  25497. }
  25498. else
  25499. {
  25500. unsigned long i = ulongval ();
  25501. if (i != ((long) (sizeof (int))))
  25502. exit (1);
  25503. fprintf (f, "%lu\n", i);
  25504. }
  25505. exit (ferror (f) || fclose (f) != 0);
  25506. ;
  25507. return 0;
  25508. }
  25509. _ACEOF
  25510. rm -f conftest$ac_exeext
  25511. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25512. (eval $ac_link) 2>&5
  25513. ac_status=$?
  25514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25515. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25517. (eval $ac_try) 2>&5
  25518. ac_status=$?
  25519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25520. (exit $ac_status); }; }; then
  25521. ac_cv_sizeof_int=`cat conftest.val`
  25522. else
  25523. echo "$as_me: program exited with status $ac_status" >&5
  25524. echo "$as_me: failed program was:" >&5
  25525. sed 's/^/| /' conftest.$ac_ext >&5
  25526. ( exit $ac_status )
  25527. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  25528. See \`config.log' for more details." >&5
  25529. echo "$as_me: error: cannot compute sizeof (int), 77
  25530. See \`config.log' for more details." >&2;}
  25531. { (exit 1); exit 1; }; }
  25532. fi
  25533. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25534. fi
  25535. fi
  25536. rm -f conftest.val
  25537. else
  25538. ac_cv_sizeof_int=0
  25539. fi
  25540. fi
  25541. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  25542. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  25543. cat >>confdefs.h <<_ACEOF
  25544. #define SIZEOF_INT $ac_cv_sizeof_int
  25545. _ACEOF
  25546. echo "$as_me:$LINENO: checking for long" >&5
  25547. echo $ECHO_N "checking for long... $ECHO_C" >&6
  25548. if test "${ac_cv_type_long+set}" = set; then
  25549. echo $ECHO_N "(cached) $ECHO_C" >&6
  25550. else
  25551. cat >conftest.$ac_ext <<_ACEOF
  25552. /* confdefs.h. */
  25553. _ACEOF
  25554. cat confdefs.h >>conftest.$ac_ext
  25555. cat >>conftest.$ac_ext <<_ACEOF
  25556. /* end confdefs.h. */
  25557. $ac_includes_default
  25558. int
  25559. main ()
  25560. {
  25561. if ((long *) 0)
  25562. return 0;
  25563. if (sizeof (long))
  25564. return 0;
  25565. ;
  25566. return 0;
  25567. }
  25568. _ACEOF
  25569. rm -f conftest.$ac_objext
  25570. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25571. (eval $ac_compile) 2>conftest.er1
  25572. ac_status=$?
  25573. grep -v '^ *+' conftest.er1 >conftest.err
  25574. rm -f conftest.er1
  25575. cat conftest.err >&5
  25576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25577. (exit $ac_status); } &&
  25578. { ac_try='test -z "$ac_c_werror_flag"
  25579. || test ! -s conftest.err'
  25580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25581. (eval $ac_try) 2>&5
  25582. ac_status=$?
  25583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25584. (exit $ac_status); }; } &&
  25585. { ac_try='test -s conftest.$ac_objext'
  25586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25587. (eval $ac_try) 2>&5
  25588. ac_status=$?
  25589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25590. (exit $ac_status); }; }; then
  25591. ac_cv_type_long=yes
  25592. else
  25593. echo "$as_me: failed program was:" >&5
  25594. sed 's/^/| /' conftest.$ac_ext >&5
  25595. ac_cv_type_long=no
  25596. fi
  25597. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25598. fi
  25599. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  25600. echo "${ECHO_T}$ac_cv_type_long" >&6
  25601. echo "$as_me:$LINENO: checking size of long" >&5
  25602. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  25603. if test "${ac_cv_sizeof_long+set}" = set; then
  25604. echo $ECHO_N "(cached) $ECHO_C" >&6
  25605. else
  25606. if test "$ac_cv_type_long" = yes; then
  25607. # The cast to unsigned long works around a bug in the HP C Compiler
  25608. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25609. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25610. # This bug is HP SR number 8606223364.
  25611. if test "$cross_compiling" = yes; then
  25612. # Depending upon the size, compute the lo and hi bounds.
  25613. cat >conftest.$ac_ext <<_ACEOF
  25614. /* confdefs.h. */
  25615. _ACEOF
  25616. cat confdefs.h >>conftest.$ac_ext
  25617. cat >>conftest.$ac_ext <<_ACEOF
  25618. /* end confdefs.h. */
  25619. $ac_includes_default
  25620. int
  25621. main ()
  25622. {
  25623. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  25624. test_array [0] = 0
  25625. ;
  25626. return 0;
  25627. }
  25628. _ACEOF
  25629. rm -f conftest.$ac_objext
  25630. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25631. (eval $ac_compile) 2>conftest.er1
  25632. ac_status=$?
  25633. grep -v '^ *+' conftest.er1 >conftest.err
  25634. rm -f conftest.er1
  25635. cat conftest.err >&5
  25636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25637. (exit $ac_status); } &&
  25638. { ac_try='test -z "$ac_c_werror_flag"
  25639. || test ! -s conftest.err'
  25640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25641. (eval $ac_try) 2>&5
  25642. ac_status=$?
  25643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25644. (exit $ac_status); }; } &&
  25645. { ac_try='test -s conftest.$ac_objext'
  25646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25647. (eval $ac_try) 2>&5
  25648. ac_status=$?
  25649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25650. (exit $ac_status); }; }; then
  25651. ac_lo=0 ac_mid=0
  25652. while :; do
  25653. cat >conftest.$ac_ext <<_ACEOF
  25654. /* confdefs.h. */
  25655. _ACEOF
  25656. cat confdefs.h >>conftest.$ac_ext
  25657. cat >>conftest.$ac_ext <<_ACEOF
  25658. /* end confdefs.h. */
  25659. $ac_includes_default
  25660. int
  25661. main ()
  25662. {
  25663. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  25664. test_array [0] = 0
  25665. ;
  25666. return 0;
  25667. }
  25668. _ACEOF
  25669. rm -f conftest.$ac_objext
  25670. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25671. (eval $ac_compile) 2>conftest.er1
  25672. ac_status=$?
  25673. grep -v '^ *+' conftest.er1 >conftest.err
  25674. rm -f conftest.er1
  25675. cat conftest.err >&5
  25676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25677. (exit $ac_status); } &&
  25678. { ac_try='test -z "$ac_c_werror_flag"
  25679. || test ! -s conftest.err'
  25680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25681. (eval $ac_try) 2>&5
  25682. ac_status=$?
  25683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25684. (exit $ac_status); }; } &&
  25685. { ac_try='test -s conftest.$ac_objext'
  25686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25687. (eval $ac_try) 2>&5
  25688. ac_status=$?
  25689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25690. (exit $ac_status); }; }; then
  25691. ac_hi=$ac_mid; break
  25692. else
  25693. echo "$as_me: failed program was:" >&5
  25694. sed 's/^/| /' conftest.$ac_ext >&5
  25695. ac_lo=`expr $ac_mid + 1`
  25696. if test $ac_lo -le $ac_mid; then
  25697. ac_lo= ac_hi=
  25698. break
  25699. fi
  25700. ac_mid=`expr 2 '*' $ac_mid + 1`
  25701. fi
  25702. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25703. done
  25704. else
  25705. echo "$as_me: failed program was:" >&5
  25706. sed 's/^/| /' conftest.$ac_ext >&5
  25707. cat >conftest.$ac_ext <<_ACEOF
  25708. /* confdefs.h. */
  25709. _ACEOF
  25710. cat confdefs.h >>conftest.$ac_ext
  25711. cat >>conftest.$ac_ext <<_ACEOF
  25712. /* end confdefs.h. */
  25713. $ac_includes_default
  25714. int
  25715. main ()
  25716. {
  25717. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  25718. test_array [0] = 0
  25719. ;
  25720. return 0;
  25721. }
  25722. _ACEOF
  25723. rm -f conftest.$ac_objext
  25724. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25725. (eval $ac_compile) 2>conftest.er1
  25726. ac_status=$?
  25727. grep -v '^ *+' conftest.er1 >conftest.err
  25728. rm -f conftest.er1
  25729. cat conftest.err >&5
  25730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25731. (exit $ac_status); } &&
  25732. { ac_try='test -z "$ac_c_werror_flag"
  25733. || test ! -s conftest.err'
  25734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25735. (eval $ac_try) 2>&5
  25736. ac_status=$?
  25737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25738. (exit $ac_status); }; } &&
  25739. { ac_try='test -s conftest.$ac_objext'
  25740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25741. (eval $ac_try) 2>&5
  25742. ac_status=$?
  25743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25744. (exit $ac_status); }; }; then
  25745. ac_hi=-1 ac_mid=-1
  25746. while :; do
  25747. cat >conftest.$ac_ext <<_ACEOF
  25748. /* confdefs.h. */
  25749. _ACEOF
  25750. cat confdefs.h >>conftest.$ac_ext
  25751. cat >>conftest.$ac_ext <<_ACEOF
  25752. /* end confdefs.h. */
  25753. $ac_includes_default
  25754. int
  25755. main ()
  25756. {
  25757. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  25758. test_array [0] = 0
  25759. ;
  25760. return 0;
  25761. }
  25762. _ACEOF
  25763. rm -f conftest.$ac_objext
  25764. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25765. (eval $ac_compile) 2>conftest.er1
  25766. ac_status=$?
  25767. grep -v '^ *+' conftest.er1 >conftest.err
  25768. rm -f conftest.er1
  25769. cat conftest.err >&5
  25770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25771. (exit $ac_status); } &&
  25772. { ac_try='test -z "$ac_c_werror_flag"
  25773. || test ! -s conftest.err'
  25774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25775. (eval $ac_try) 2>&5
  25776. ac_status=$?
  25777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25778. (exit $ac_status); }; } &&
  25779. { ac_try='test -s conftest.$ac_objext'
  25780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25781. (eval $ac_try) 2>&5
  25782. ac_status=$?
  25783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25784. (exit $ac_status); }; }; then
  25785. ac_lo=$ac_mid; break
  25786. else
  25787. echo "$as_me: failed program was:" >&5
  25788. sed 's/^/| /' conftest.$ac_ext >&5
  25789. ac_hi=`expr '(' $ac_mid ')' - 1`
  25790. if test $ac_mid -le $ac_hi; then
  25791. ac_lo= ac_hi=
  25792. break
  25793. fi
  25794. ac_mid=`expr 2 '*' $ac_mid`
  25795. fi
  25796. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25797. done
  25798. else
  25799. echo "$as_me: failed program was:" >&5
  25800. sed 's/^/| /' conftest.$ac_ext >&5
  25801. ac_lo= ac_hi=
  25802. fi
  25803. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25804. fi
  25805. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25806. # Binary search between lo and hi bounds.
  25807. while test "x$ac_lo" != "x$ac_hi"; do
  25808. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  25809. cat >conftest.$ac_ext <<_ACEOF
  25810. /* confdefs.h. */
  25811. _ACEOF
  25812. cat confdefs.h >>conftest.$ac_ext
  25813. cat >>conftest.$ac_ext <<_ACEOF
  25814. /* end confdefs.h. */
  25815. $ac_includes_default
  25816. int
  25817. main ()
  25818. {
  25819. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  25820. test_array [0] = 0
  25821. ;
  25822. return 0;
  25823. }
  25824. _ACEOF
  25825. rm -f conftest.$ac_objext
  25826. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25827. (eval $ac_compile) 2>conftest.er1
  25828. ac_status=$?
  25829. grep -v '^ *+' conftest.er1 >conftest.err
  25830. rm -f conftest.er1
  25831. cat conftest.err >&5
  25832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25833. (exit $ac_status); } &&
  25834. { ac_try='test -z "$ac_c_werror_flag"
  25835. || test ! -s conftest.err'
  25836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25837. (eval $ac_try) 2>&5
  25838. ac_status=$?
  25839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25840. (exit $ac_status); }; } &&
  25841. { ac_try='test -s conftest.$ac_objext'
  25842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25843. (eval $ac_try) 2>&5
  25844. ac_status=$?
  25845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25846. (exit $ac_status); }; }; then
  25847. ac_hi=$ac_mid
  25848. else
  25849. echo "$as_me: failed program was:" >&5
  25850. sed 's/^/| /' conftest.$ac_ext >&5
  25851. ac_lo=`expr '(' $ac_mid ')' + 1`
  25852. fi
  25853. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25854. done
  25855. case $ac_lo in
  25856. ?*) ac_cv_sizeof_long=$ac_lo;;
  25857. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  25858. See \`config.log' for more details." >&5
  25859. echo "$as_me: error: cannot compute sizeof (long), 77
  25860. See \`config.log' for more details." >&2;}
  25861. { (exit 1); exit 1; }; } ;;
  25862. esac
  25863. else
  25864. if test "$cross_compiling" = yes; then
  25865. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  25866. See \`config.log' for more details." >&5
  25867. echo "$as_me: error: cannot run test program while cross compiling
  25868. See \`config.log' for more details." >&2;}
  25869. { (exit 1); exit 1; }; }
  25870. else
  25871. cat >conftest.$ac_ext <<_ACEOF
  25872. /* confdefs.h. */
  25873. _ACEOF
  25874. cat confdefs.h >>conftest.$ac_ext
  25875. cat >>conftest.$ac_ext <<_ACEOF
  25876. /* end confdefs.h. */
  25877. $ac_includes_default
  25878. long longval () { return (long) (sizeof (long)); }
  25879. unsigned long ulongval () { return (long) (sizeof (long)); }
  25880. #include <stdio.h>
  25881. #include <stdlib.h>
  25882. int
  25883. main ()
  25884. {
  25885. FILE *f = fopen ("conftest.val", "w");
  25886. if (! f)
  25887. exit (1);
  25888. if (((long) (sizeof (long))) < 0)
  25889. {
  25890. long i = longval ();
  25891. if (i != ((long) (sizeof (long))))
  25892. exit (1);
  25893. fprintf (f, "%ld\n", i);
  25894. }
  25895. else
  25896. {
  25897. unsigned long i = ulongval ();
  25898. if (i != ((long) (sizeof (long))))
  25899. exit (1);
  25900. fprintf (f, "%lu\n", i);
  25901. }
  25902. exit (ferror (f) || fclose (f) != 0);
  25903. ;
  25904. return 0;
  25905. }
  25906. _ACEOF
  25907. rm -f conftest$ac_exeext
  25908. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25909. (eval $ac_link) 2>&5
  25910. ac_status=$?
  25911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25912. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25914. (eval $ac_try) 2>&5
  25915. ac_status=$?
  25916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25917. (exit $ac_status); }; }; then
  25918. ac_cv_sizeof_long=`cat conftest.val`
  25919. else
  25920. echo "$as_me: program exited with status $ac_status" >&5
  25921. echo "$as_me: failed program was:" >&5
  25922. sed 's/^/| /' conftest.$ac_ext >&5
  25923. ( exit $ac_status )
  25924. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  25925. See \`config.log' for more details." >&5
  25926. echo "$as_me: error: cannot compute sizeof (long), 77
  25927. See \`config.log' for more details." >&2;}
  25928. { (exit 1); exit 1; }; }
  25929. fi
  25930. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25931. fi
  25932. fi
  25933. rm -f conftest.val
  25934. else
  25935. ac_cv_sizeof_long=0
  25936. fi
  25937. fi
  25938. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  25939. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  25940. cat >>confdefs.h <<_ACEOF
  25941. #define SIZEOF_LONG $ac_cv_sizeof_long
  25942. _ACEOF
  25943. echo "$as_me:$LINENO: checking for short" >&5
  25944. echo $ECHO_N "checking for short... $ECHO_C" >&6
  25945. if test "${ac_cv_type_short+set}" = set; then
  25946. echo $ECHO_N "(cached) $ECHO_C" >&6
  25947. else
  25948. cat >conftest.$ac_ext <<_ACEOF
  25949. /* confdefs.h. */
  25950. _ACEOF
  25951. cat confdefs.h >>conftest.$ac_ext
  25952. cat >>conftest.$ac_ext <<_ACEOF
  25953. /* end confdefs.h. */
  25954. $ac_includes_default
  25955. int
  25956. main ()
  25957. {
  25958. if ((short *) 0)
  25959. return 0;
  25960. if (sizeof (short))
  25961. return 0;
  25962. ;
  25963. return 0;
  25964. }
  25965. _ACEOF
  25966. rm -f conftest.$ac_objext
  25967. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25968. (eval $ac_compile) 2>conftest.er1
  25969. ac_status=$?
  25970. grep -v '^ *+' conftest.er1 >conftest.err
  25971. rm -f conftest.er1
  25972. cat conftest.err >&5
  25973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25974. (exit $ac_status); } &&
  25975. { ac_try='test -z "$ac_c_werror_flag"
  25976. || test ! -s conftest.err'
  25977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25978. (eval $ac_try) 2>&5
  25979. ac_status=$?
  25980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25981. (exit $ac_status); }; } &&
  25982. { ac_try='test -s conftest.$ac_objext'
  25983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25984. (eval $ac_try) 2>&5
  25985. ac_status=$?
  25986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25987. (exit $ac_status); }; }; then
  25988. ac_cv_type_short=yes
  25989. else
  25990. echo "$as_me: failed program was:" >&5
  25991. sed 's/^/| /' conftest.$ac_ext >&5
  25992. ac_cv_type_short=no
  25993. fi
  25994. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25995. fi
  25996. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  25997. echo "${ECHO_T}$ac_cv_type_short" >&6
  25998. echo "$as_me:$LINENO: checking size of short" >&5
  25999. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  26000. if test "${ac_cv_sizeof_short+set}" = set; then
  26001. echo $ECHO_N "(cached) $ECHO_C" >&6
  26002. else
  26003. if test "$ac_cv_type_short" = yes; then
  26004. # The cast to unsigned long works around a bug in the HP C Compiler
  26005. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26006. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26007. # This bug is HP SR number 8606223364.
  26008. if test "$cross_compiling" = yes; then
  26009. # Depending upon the size, compute the lo and hi bounds.
  26010. cat >conftest.$ac_ext <<_ACEOF
  26011. /* confdefs.h. */
  26012. _ACEOF
  26013. cat confdefs.h >>conftest.$ac_ext
  26014. cat >>conftest.$ac_ext <<_ACEOF
  26015. /* end confdefs.h. */
  26016. $ac_includes_default
  26017. int
  26018. main ()
  26019. {
  26020. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  26021. test_array [0] = 0
  26022. ;
  26023. return 0;
  26024. }
  26025. _ACEOF
  26026. rm -f conftest.$ac_objext
  26027. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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. { ac_try='test -z "$ac_c_werror_flag"
  26036. || test ! -s conftest.err'
  26037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26038. (eval $ac_try) 2>&5
  26039. ac_status=$?
  26040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26041. (exit $ac_status); }; } &&
  26042. { ac_try='test -s conftest.$ac_objext'
  26043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26044. (eval $ac_try) 2>&5
  26045. ac_status=$?
  26046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26047. (exit $ac_status); }; }; then
  26048. ac_lo=0 ac_mid=0
  26049. while :; do
  26050. cat >conftest.$ac_ext <<_ACEOF
  26051. /* confdefs.h. */
  26052. _ACEOF
  26053. cat confdefs.h >>conftest.$ac_ext
  26054. cat >>conftest.$ac_ext <<_ACEOF
  26055. /* end confdefs.h. */
  26056. $ac_includes_default
  26057. int
  26058. main ()
  26059. {
  26060. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  26061. test_array [0] = 0
  26062. ;
  26063. return 0;
  26064. }
  26065. _ACEOF
  26066. rm -f conftest.$ac_objext
  26067. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26068. (eval $ac_compile) 2>conftest.er1
  26069. ac_status=$?
  26070. grep -v '^ *+' conftest.er1 >conftest.err
  26071. rm -f conftest.er1
  26072. cat conftest.err >&5
  26073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26074. (exit $ac_status); } &&
  26075. { ac_try='test -z "$ac_c_werror_flag"
  26076. || test ! -s conftest.err'
  26077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26078. (eval $ac_try) 2>&5
  26079. ac_status=$?
  26080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26081. (exit $ac_status); }; } &&
  26082. { ac_try='test -s conftest.$ac_objext'
  26083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26084. (eval $ac_try) 2>&5
  26085. ac_status=$?
  26086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26087. (exit $ac_status); }; }; then
  26088. ac_hi=$ac_mid; break
  26089. else
  26090. echo "$as_me: failed program was:" >&5
  26091. sed 's/^/| /' conftest.$ac_ext >&5
  26092. ac_lo=`expr $ac_mid + 1`
  26093. if test $ac_lo -le $ac_mid; then
  26094. ac_lo= ac_hi=
  26095. break
  26096. fi
  26097. ac_mid=`expr 2 '*' $ac_mid + 1`
  26098. fi
  26099. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26100. done
  26101. else
  26102. echo "$as_me: failed program was:" >&5
  26103. sed 's/^/| /' conftest.$ac_ext >&5
  26104. cat >conftest.$ac_ext <<_ACEOF
  26105. /* confdefs.h. */
  26106. _ACEOF
  26107. cat confdefs.h >>conftest.$ac_ext
  26108. cat >>conftest.$ac_ext <<_ACEOF
  26109. /* end confdefs.h. */
  26110. $ac_includes_default
  26111. int
  26112. main ()
  26113. {
  26114. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  26115. test_array [0] = 0
  26116. ;
  26117. return 0;
  26118. }
  26119. _ACEOF
  26120. rm -f conftest.$ac_objext
  26121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26122. (eval $ac_compile) 2>conftest.er1
  26123. ac_status=$?
  26124. grep -v '^ *+' conftest.er1 >conftest.err
  26125. rm -f conftest.er1
  26126. cat conftest.err >&5
  26127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26128. (exit $ac_status); } &&
  26129. { ac_try='test -z "$ac_c_werror_flag"
  26130. || test ! -s conftest.err'
  26131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26132. (eval $ac_try) 2>&5
  26133. ac_status=$?
  26134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26135. (exit $ac_status); }; } &&
  26136. { ac_try='test -s conftest.$ac_objext'
  26137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26138. (eval $ac_try) 2>&5
  26139. ac_status=$?
  26140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26141. (exit $ac_status); }; }; then
  26142. ac_hi=-1 ac_mid=-1
  26143. while :; do
  26144. cat >conftest.$ac_ext <<_ACEOF
  26145. /* confdefs.h. */
  26146. _ACEOF
  26147. cat confdefs.h >>conftest.$ac_ext
  26148. cat >>conftest.$ac_ext <<_ACEOF
  26149. /* end confdefs.h. */
  26150. $ac_includes_default
  26151. int
  26152. main ()
  26153. {
  26154. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  26155. test_array [0] = 0
  26156. ;
  26157. return 0;
  26158. }
  26159. _ACEOF
  26160. rm -f conftest.$ac_objext
  26161. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26162. (eval $ac_compile) 2>conftest.er1
  26163. ac_status=$?
  26164. grep -v '^ *+' conftest.er1 >conftest.err
  26165. rm -f conftest.er1
  26166. cat conftest.err >&5
  26167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26168. (exit $ac_status); } &&
  26169. { ac_try='test -z "$ac_c_werror_flag"
  26170. || test ! -s conftest.err'
  26171. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26172. (eval $ac_try) 2>&5
  26173. ac_status=$?
  26174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26175. (exit $ac_status); }; } &&
  26176. { ac_try='test -s conftest.$ac_objext'
  26177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26178. (eval $ac_try) 2>&5
  26179. ac_status=$?
  26180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26181. (exit $ac_status); }; }; then
  26182. ac_lo=$ac_mid; break
  26183. else
  26184. echo "$as_me: failed program was:" >&5
  26185. sed 's/^/| /' conftest.$ac_ext >&5
  26186. ac_hi=`expr '(' $ac_mid ')' - 1`
  26187. if test $ac_mid -le $ac_hi; then
  26188. ac_lo= ac_hi=
  26189. break
  26190. fi
  26191. ac_mid=`expr 2 '*' $ac_mid`
  26192. fi
  26193. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26194. done
  26195. else
  26196. echo "$as_me: failed program was:" >&5
  26197. sed 's/^/| /' conftest.$ac_ext >&5
  26198. ac_lo= ac_hi=
  26199. fi
  26200. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26201. fi
  26202. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26203. # Binary search between lo and hi bounds.
  26204. while test "x$ac_lo" != "x$ac_hi"; do
  26205. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26206. cat >conftest.$ac_ext <<_ACEOF
  26207. /* confdefs.h. */
  26208. _ACEOF
  26209. cat confdefs.h >>conftest.$ac_ext
  26210. cat >>conftest.$ac_ext <<_ACEOF
  26211. /* end confdefs.h. */
  26212. $ac_includes_default
  26213. int
  26214. main ()
  26215. {
  26216. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  26217. test_array [0] = 0
  26218. ;
  26219. return 0;
  26220. }
  26221. _ACEOF
  26222. rm -f conftest.$ac_objext
  26223. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26224. (eval $ac_compile) 2>conftest.er1
  26225. ac_status=$?
  26226. grep -v '^ *+' conftest.er1 >conftest.err
  26227. rm -f conftest.er1
  26228. cat conftest.err >&5
  26229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26230. (exit $ac_status); } &&
  26231. { ac_try='test -z "$ac_c_werror_flag"
  26232. || test ! -s conftest.err'
  26233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26234. (eval $ac_try) 2>&5
  26235. ac_status=$?
  26236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26237. (exit $ac_status); }; } &&
  26238. { ac_try='test -s conftest.$ac_objext'
  26239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26240. (eval $ac_try) 2>&5
  26241. ac_status=$?
  26242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26243. (exit $ac_status); }; }; then
  26244. ac_hi=$ac_mid
  26245. else
  26246. echo "$as_me: failed program was:" >&5
  26247. sed 's/^/| /' conftest.$ac_ext >&5
  26248. ac_lo=`expr '(' $ac_mid ')' + 1`
  26249. fi
  26250. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26251. done
  26252. case $ac_lo in
  26253. ?*) ac_cv_sizeof_short=$ac_lo;;
  26254. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  26255. See \`config.log' for more details." >&5
  26256. echo "$as_me: error: cannot compute sizeof (short), 77
  26257. See \`config.log' for more details." >&2;}
  26258. { (exit 1); exit 1; }; } ;;
  26259. esac
  26260. else
  26261. if test "$cross_compiling" = yes; then
  26262. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  26263. See \`config.log' for more details." >&5
  26264. echo "$as_me: error: cannot run test program while cross compiling
  26265. See \`config.log' for more details." >&2;}
  26266. { (exit 1); exit 1; }; }
  26267. else
  26268. cat >conftest.$ac_ext <<_ACEOF
  26269. /* confdefs.h. */
  26270. _ACEOF
  26271. cat confdefs.h >>conftest.$ac_ext
  26272. cat >>conftest.$ac_ext <<_ACEOF
  26273. /* end confdefs.h. */
  26274. $ac_includes_default
  26275. long longval () { return (long) (sizeof (short)); }
  26276. unsigned long ulongval () { return (long) (sizeof (short)); }
  26277. #include <stdio.h>
  26278. #include <stdlib.h>
  26279. int
  26280. main ()
  26281. {
  26282. FILE *f = fopen ("conftest.val", "w");
  26283. if (! f)
  26284. exit (1);
  26285. if (((long) (sizeof (short))) < 0)
  26286. {
  26287. long i = longval ();
  26288. if (i != ((long) (sizeof (short))))
  26289. exit (1);
  26290. fprintf (f, "%ld\n", i);
  26291. }
  26292. else
  26293. {
  26294. unsigned long i = ulongval ();
  26295. if (i != ((long) (sizeof (short))))
  26296. exit (1);
  26297. fprintf (f, "%lu\n", i);
  26298. }
  26299. exit (ferror (f) || fclose (f) != 0);
  26300. ;
  26301. return 0;
  26302. }
  26303. _ACEOF
  26304. rm -f conftest$ac_exeext
  26305. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26306. (eval $ac_link) 2>&5
  26307. ac_status=$?
  26308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26309. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26311. (eval $ac_try) 2>&5
  26312. ac_status=$?
  26313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26314. (exit $ac_status); }; }; then
  26315. ac_cv_sizeof_short=`cat conftest.val`
  26316. else
  26317. echo "$as_me: program exited with status $ac_status" >&5
  26318. echo "$as_me: failed program was:" >&5
  26319. sed 's/^/| /' conftest.$ac_ext >&5
  26320. ( exit $ac_status )
  26321. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  26322. See \`config.log' for more details." >&5
  26323. echo "$as_me: error: cannot compute sizeof (short), 77
  26324. See \`config.log' for more details." >&2;}
  26325. { (exit 1); exit 1; }; }
  26326. fi
  26327. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26328. fi
  26329. fi
  26330. rm -f conftest.val
  26331. else
  26332. ac_cv_sizeof_short=0
  26333. fi
  26334. fi
  26335. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  26336. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  26337. cat >>confdefs.h <<_ACEOF
  26338. #define SIZEOF_SHORT $ac_cv_sizeof_short
  26339. _ACEOF
  26340. # ----------------------------------------------------------------------
  26341. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  26342. # ----------------------------------------------------------------------
  26343. echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  26344. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
  26345. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  26346. echo $ECHO_N "(cached) $ECHO_C" >&6
  26347. else
  26348. ac_check_lib_save_LIBS=$LIBS
  26349. LIBS="-lgen $LIBS"
  26350. cat >conftest.$ac_ext <<_ACEOF
  26351. /* confdefs.h. */
  26352. _ACEOF
  26353. cat confdefs.h >>conftest.$ac_ext
  26354. cat >>conftest.$ac_ext <<_ACEOF
  26355. /* end confdefs.h. */
  26356. /* Override any gcc2 internal prototype to avoid an error. */
  26357. #ifdef __cplusplus
  26358. extern "C"
  26359. #endif
  26360. /* We use char because int might match the return type of a gcc2
  26361. builtin and then its argument prototype would still apply. */
  26362. char pathfind ();
  26363. int
  26364. main ()
  26365. {
  26366. pathfind ();
  26367. ;
  26368. return 0;
  26369. }
  26370. _ACEOF
  26371. rm -f conftest.$ac_objext conftest$ac_exeext
  26372. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26373. (eval $ac_link) 2>conftest.er1
  26374. ac_status=$?
  26375. grep -v '^ *+' conftest.er1 >conftest.err
  26376. rm -f conftest.er1
  26377. cat conftest.err >&5
  26378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26379. (exit $ac_status); } &&
  26380. { ac_try='test -z "$ac_c_werror_flag"
  26381. || test ! -s conftest.err'
  26382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26383. (eval $ac_try) 2>&5
  26384. ac_status=$?
  26385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26386. (exit $ac_status); }; } &&
  26387. { ac_try='test -s conftest$ac_exeext'
  26388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26389. (eval $ac_try) 2>&5
  26390. ac_status=$?
  26391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26392. (exit $ac_status); }; }; then
  26393. ac_cv_lib_gen_pathfind=yes
  26394. else
  26395. echo "$as_me: failed program was:" >&5
  26396. sed 's/^/| /' conftest.$ac_ext >&5
  26397. ac_cv_lib_gen_pathfind=no
  26398. fi
  26399. rm -f conftest.err conftest.$ac_objext \
  26400. conftest$ac_exeext conftest.$ac_ext
  26401. LIBS=$ac_check_lib_save_LIBS
  26402. fi
  26403. echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  26404. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
  26405. if test $ac_cv_lib_gen_pathfind = yes; then
  26406. cat >>confdefs.h <<_ACEOF
  26407. #define HAVE_LIBGEN 1
  26408. _ACEOF
  26409. LIBS="-lgen $LIBS"
  26410. fi
  26411. for ac_func in vprintf
  26412. do
  26413. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  26414. echo "$as_me:$LINENO: checking for $ac_func" >&5
  26415. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  26416. if eval "test \"\${$as_ac_var+set}\" = set"; then
  26417. echo $ECHO_N "(cached) $ECHO_C" >&6
  26418. else
  26419. cat >conftest.$ac_ext <<_ACEOF
  26420. /* confdefs.h. */
  26421. _ACEOF
  26422. cat confdefs.h >>conftest.$ac_ext
  26423. cat >>conftest.$ac_ext <<_ACEOF
  26424. /* end confdefs.h. */
  26425. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  26426. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26427. #define $ac_func innocuous_$ac_func
  26428. /* System header to define __stub macros and hopefully few prototypes,
  26429. which can conflict with char $ac_func (); below.
  26430. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26431. <limits.h> exists even on freestanding compilers. */
  26432. #ifdef __STDC__
  26433. # include <limits.h>
  26434. #else
  26435. # include <assert.h>
  26436. #endif
  26437. #undef $ac_func
  26438. /* Override any gcc2 internal prototype to avoid an error. */
  26439. #ifdef __cplusplus
  26440. extern "C"
  26441. {
  26442. #endif
  26443. /* We use char because int might match the return type of a gcc2
  26444. builtin and then its argument prototype would still apply. */
  26445. char $ac_func ();
  26446. /* The GNU C library defines this for functions which it implements
  26447. to always fail with ENOSYS. Some functions are actually named
  26448. something starting with __ and the normal name is an alias. */
  26449. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  26450. choke me
  26451. #else
  26452. char (*f) () = $ac_func;
  26453. #endif
  26454. #ifdef __cplusplus
  26455. }
  26456. #endif
  26457. int
  26458. main ()
  26459. {
  26460. return f != $ac_func;
  26461. ;
  26462. return 0;
  26463. }
  26464. _ACEOF
  26465. rm -f conftest.$ac_objext conftest$ac_exeext
  26466. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26467. (eval $ac_link) 2>conftest.er1
  26468. ac_status=$?
  26469. grep -v '^ *+' conftest.er1 >conftest.err
  26470. rm -f conftest.er1
  26471. cat conftest.err >&5
  26472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26473. (exit $ac_status); } &&
  26474. { ac_try='test -z "$ac_c_werror_flag"
  26475. || test ! -s conftest.err'
  26476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26477. (eval $ac_try) 2>&5
  26478. ac_status=$?
  26479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26480. (exit $ac_status); }; } &&
  26481. { ac_try='test -s conftest$ac_exeext'
  26482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26483. (eval $ac_try) 2>&5
  26484. ac_status=$?
  26485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26486. (exit $ac_status); }; }; then
  26487. eval "$as_ac_var=yes"
  26488. else
  26489. echo "$as_me: failed program was:" >&5
  26490. sed 's/^/| /' conftest.$ac_ext >&5
  26491. eval "$as_ac_var=no"
  26492. fi
  26493. rm -f conftest.err conftest.$ac_objext \
  26494. conftest$ac_exeext conftest.$ac_ext
  26495. fi
  26496. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  26497. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  26498. if test `eval echo '${'$as_ac_var'}'` = yes; then
  26499. cat >>confdefs.h <<_ACEOF
  26500. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  26501. _ACEOF
  26502. echo "$as_me:$LINENO: checking for _doprnt" >&5
  26503. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  26504. if test "${ac_cv_func__doprnt+set}" = set; then
  26505. echo $ECHO_N "(cached) $ECHO_C" >&6
  26506. else
  26507. cat >conftest.$ac_ext <<_ACEOF
  26508. /* confdefs.h. */
  26509. _ACEOF
  26510. cat confdefs.h >>conftest.$ac_ext
  26511. cat >>conftest.$ac_ext <<_ACEOF
  26512. /* end confdefs.h. */
  26513. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  26514. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26515. #define _doprnt innocuous__doprnt
  26516. /* System header to define __stub macros and hopefully few prototypes,
  26517. which can conflict with char _doprnt (); below.
  26518. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26519. <limits.h> exists even on freestanding compilers. */
  26520. #ifdef __STDC__
  26521. # include <limits.h>
  26522. #else
  26523. # include <assert.h>
  26524. #endif
  26525. #undef _doprnt
  26526. /* Override any gcc2 internal prototype to avoid an error. */
  26527. #ifdef __cplusplus
  26528. extern "C"
  26529. {
  26530. #endif
  26531. /* We use char because int might match the return type of a gcc2
  26532. builtin and then its argument prototype would still apply. */
  26533. char _doprnt ();
  26534. /* The GNU C library defines this for functions which it implements
  26535. to always fail with ENOSYS. Some functions are actually named
  26536. something starting with __ and the normal name is an alias. */
  26537. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  26538. choke me
  26539. #else
  26540. char (*f) () = _doprnt;
  26541. #endif
  26542. #ifdef __cplusplus
  26543. }
  26544. #endif
  26545. int
  26546. main ()
  26547. {
  26548. return f != _doprnt;
  26549. ;
  26550. return 0;
  26551. }
  26552. _ACEOF
  26553. rm -f conftest.$ac_objext conftest$ac_exeext
  26554. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26555. (eval $ac_link) 2>conftest.er1
  26556. ac_status=$?
  26557. grep -v '^ *+' conftest.er1 >conftest.err
  26558. rm -f conftest.er1
  26559. cat conftest.err >&5
  26560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26561. (exit $ac_status); } &&
  26562. { ac_try='test -z "$ac_c_werror_flag"
  26563. || test ! -s conftest.err'
  26564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26565. (eval $ac_try) 2>&5
  26566. ac_status=$?
  26567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26568. (exit $ac_status); }; } &&
  26569. { ac_try='test -s conftest$ac_exeext'
  26570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26571. (eval $ac_try) 2>&5
  26572. ac_status=$?
  26573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26574. (exit $ac_status); }; }; then
  26575. ac_cv_func__doprnt=yes
  26576. else
  26577. echo "$as_me: failed program was:" >&5
  26578. sed 's/^/| /' conftest.$ac_ext >&5
  26579. ac_cv_func__doprnt=no
  26580. fi
  26581. rm -f conftest.err conftest.$ac_objext \
  26582. conftest$ac_exeext conftest.$ac_ext
  26583. fi
  26584. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  26585. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  26586. if test $ac_cv_func__doprnt = yes; then
  26587. cat >>confdefs.h <<\_ACEOF
  26588. #define HAVE_DOPRNT 1
  26589. _ACEOF
  26590. fi
  26591. fi
  26592. done
  26593. for ac_func in mmap canonicalize_file_name snprintf strdup
  26594. do
  26595. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  26596. echo "$as_me:$LINENO: checking for $ac_func" >&5
  26597. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  26598. if eval "test \"\${$as_ac_var+set}\" = set"; then
  26599. echo $ECHO_N "(cached) $ECHO_C" >&6
  26600. else
  26601. cat >conftest.$ac_ext <<_ACEOF
  26602. /* confdefs.h. */
  26603. _ACEOF
  26604. cat confdefs.h >>conftest.$ac_ext
  26605. cat >>conftest.$ac_ext <<_ACEOF
  26606. /* end confdefs.h. */
  26607. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  26608. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26609. #define $ac_func innocuous_$ac_func
  26610. /* System header to define __stub macros and hopefully few prototypes,
  26611. which can conflict with char $ac_func (); below.
  26612. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26613. <limits.h> exists even on freestanding compilers. */
  26614. #ifdef __STDC__
  26615. # include <limits.h>
  26616. #else
  26617. # include <assert.h>
  26618. #endif
  26619. #undef $ac_func
  26620. /* Override any gcc2 internal prototype to avoid an error. */
  26621. #ifdef __cplusplus
  26622. extern "C"
  26623. {
  26624. #endif
  26625. /* We use char because int might match the return type of a gcc2
  26626. builtin and then its argument prototype would still apply. */
  26627. char $ac_func ();
  26628. /* The GNU C library defines this for functions which it implements
  26629. to always fail with ENOSYS. Some functions are actually named
  26630. something starting with __ and the normal name is an alias. */
  26631. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  26632. choke me
  26633. #else
  26634. char (*f) () = $ac_func;
  26635. #endif
  26636. #ifdef __cplusplus
  26637. }
  26638. #endif
  26639. int
  26640. main ()
  26641. {
  26642. return f != $ac_func;
  26643. ;
  26644. return 0;
  26645. }
  26646. _ACEOF
  26647. rm -f conftest.$ac_objext conftest$ac_exeext
  26648. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26649. (eval $ac_link) 2>conftest.er1
  26650. ac_status=$?
  26651. grep -v '^ *+' conftest.er1 >conftest.err
  26652. rm -f conftest.er1
  26653. cat conftest.err >&5
  26654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26655. (exit $ac_status); } &&
  26656. { ac_try='test -z "$ac_c_werror_flag"
  26657. || test ! -s conftest.err'
  26658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26659. (eval $ac_try) 2>&5
  26660. ac_status=$?
  26661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26662. (exit $ac_status); }; } &&
  26663. { ac_try='test -s conftest$ac_exeext'
  26664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26665. (eval $ac_try) 2>&5
  26666. ac_status=$?
  26667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26668. (exit $ac_status); }; }; then
  26669. eval "$as_ac_var=yes"
  26670. else
  26671. echo "$as_me: failed program was:" >&5
  26672. sed 's/^/| /' conftest.$ac_ext >&5
  26673. eval "$as_ac_var=no"
  26674. fi
  26675. rm -f conftest.err conftest.$ac_objext \
  26676. conftest$ac_exeext conftest.$ac_ext
  26677. fi
  26678. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  26679. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  26680. if test `eval echo '${'$as_ac_var'}'` = yes; then
  26681. cat >>confdefs.h <<_ACEOF
  26682. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  26683. _ACEOF
  26684. fi
  26685. done
  26686. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  26687. fi
  26688. # Check to see if a reg expr header is specified.
  26689. # Check whether --with-regex-header or --without-regex-header was given.
  26690. if test "${with_regex_header+set}" = set; then
  26691. withval="$with_regex_header"
  26692. libopts_cv_with_regex_header=${with_regex_header}
  26693. else
  26694. echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  26695. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
  26696. if test "${libopts_cv_with_regex_header+set}" = set; then
  26697. echo $ECHO_N "(cached) $ECHO_C" >&6
  26698. else
  26699. libopts_cv_with_regex_header=no
  26700. fi
  26701. echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  26702. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
  26703. fi; # end of AC_ARG_WITH
  26704. if test "X${libopts_cv_with_regex_header}" != Xno
  26705. then
  26706. cat >>confdefs.h <<_ACEOF
  26707. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  26708. _ACEOF
  26709. else
  26710. cat >>confdefs.h <<\_ACEOF
  26711. #define REGEX_HEADER <regex.h>
  26712. _ACEOF
  26713. fi
  26714. # Check to see if a working libregex can be found.
  26715. # Check whether --with-libregex or --without-libregex was given.
  26716. if test "${with_libregex+set}" = set; then
  26717. withval="$with_libregex"
  26718. libopts_cv_with_libregex_root=${with_libregex}
  26719. else
  26720. echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  26721. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
  26722. if test "${libopts_cv_with_libregex_root+set}" = set; then
  26723. echo $ECHO_N "(cached) $ECHO_C" >&6
  26724. else
  26725. libopts_cv_with_libregex_root=no
  26726. fi
  26727. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  26728. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
  26729. fi; # end of AC_ARG_WITH libregex
  26730. if test "${with_libguile+set}" = set && \
  26731. test "${withval}" = no
  26732. then ## disabled by request
  26733. libopts_cv_with_libregex_root=no
  26734. libopts_cv_with_libregex_cflags=no
  26735. libopts_cv_with_libregex_libs=no
  26736. else
  26737. # Check whether --with-libregex-cflags or --without-libregex-cflags was given.
  26738. if test "${with_libregex_cflags+set}" = set; then
  26739. withval="$with_libregex_cflags"
  26740. libopts_cv_with_libregex_cflags=${with_regex_cflags}
  26741. else
  26742. echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  26743. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
  26744. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  26745. echo $ECHO_N "(cached) $ECHO_C" >&6
  26746. else
  26747. libopts_cv_with_libregex_cflags=no
  26748. fi
  26749. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  26750. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
  26751. fi; # end of AC_ARG_WITH libregex-cflags
  26752. # Check whether --with-libregex-libs or --without-libregex-libs was given.
  26753. if test "${with_libregex_libs+set}" = set; then
  26754. withval="$with_libregex_libs"
  26755. libopts_cv_with_libregex_libs=${with_regex_libs}
  26756. else
  26757. echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  26758. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
  26759. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  26760. echo $ECHO_N "(cached) $ECHO_C" >&6
  26761. else
  26762. libopts_cv_with_libregex_libs=no
  26763. fi
  26764. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  26765. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
  26766. fi; # end of AC_ARG_WITH libregex-libs
  26767. case "X${libopts_cv_with_libregex_cflags}" in
  26768. Xyes|Xno|X )
  26769. case "X${libopts_cv_with_libregex_root}" in
  26770. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  26771. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  26772. esac
  26773. esac
  26774. case "X${libopts_cv_with_libregex_libs}" in
  26775. Xyes|Xno|X )
  26776. case "X${libopts_cv_with_libregex_root}" in
  26777. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  26778. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  26779. esac
  26780. esac
  26781. libopts_save_CPPFLAGS="${CPPFLAGS}"
  26782. libopts_save_LIBS="${LIBS}"
  26783. fi ## disabled by request
  26784. case "X${libopts_cv_with_libregex_cflags}" in
  26785. Xyes|Xno|X )
  26786. libopts_cv_with_libregex_cflags="" ;;
  26787. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  26788. esac
  26789. case "X${libopts_cv_with_libregex_libs}" in
  26790. Xyes|Xno|X )
  26791. libopts_cv_with_libregex_libs="" ;;
  26792. * )
  26793. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  26794. esac
  26795. LIBREGEX_CFLAGS=""
  26796. LIBREGEX_LIBS=""
  26797. echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  26798. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
  26799. if test "${libopts_cv_with_libregex+set}" = set; then
  26800. echo $ECHO_N "(cached) $ECHO_C" >&6
  26801. else
  26802. if test "$cross_compiling" = yes; then
  26803. libopts_cv_with_libregex=no
  26804. else
  26805. cat >conftest.$ac_ext <<_ACEOF
  26806. /* confdefs.h. */
  26807. _ACEOF
  26808. cat confdefs.h >>conftest.$ac_ext
  26809. cat >>conftest.$ac_ext <<_ACEOF
  26810. /* end confdefs.h. */
  26811. #include <stdio.h>
  26812. #include <stdlib.h>
  26813. #include <sys/types.h>
  26814. #include REGEX_HEADER
  26815. static regex_t re;
  26816. void comp_re( const char* pzPat ) {
  26817. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  26818. if (res == 0) return;
  26819. exit( res ); }
  26820. int main() {
  26821. regmatch_t m[2];
  26822. comp_re( "^.*\$" );
  26823. comp_re( "()|no.*" );
  26824. comp_re( "." );
  26825. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  26826. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  26827. fputs( "error: regex -->.<-- did not match\n", stderr );
  26828. return 1;
  26829. }
  26830. return 0; }
  26831. _ACEOF
  26832. rm -f conftest$ac_exeext
  26833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26834. (eval $ac_link) 2>&5
  26835. ac_status=$?
  26836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26837. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26839. (eval $ac_try) 2>&5
  26840. ac_status=$?
  26841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26842. (exit $ac_status); }; }; then
  26843. libopts_cv_with_libregex=yes
  26844. else
  26845. echo "$as_me: program exited with status $ac_status" >&5
  26846. echo "$as_me: failed program was:" >&5
  26847. sed 's/^/| /' conftest.$ac_ext >&5
  26848. ( exit $ac_status )
  26849. libopts_cv_with_libregex=no
  26850. fi
  26851. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26852. fi # end of AC_TRY_RUN
  26853. fi
  26854. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  26855. echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  26856. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
  26857. if test "X${libopts_cv_with_libregex}" = Xno
  26858. then
  26859. CPPFLAGS="${libopts_save_CPPFLAGS}"
  26860. LIBS="${libopts_save_LIBS}"
  26861. cat >&2 <<'_EOF_'
  26862. I cannot detect POSIX compliant regcomp/regexec routines.
  26863. These are required for AutoGen to work correctly. If you have
  26864. such a library present on your system, you must specify it by
  26865. setting the LIBS environment variable, e.g., "LIBS='-lregex'".
  26866. If you do not have such a library on your system, then you should
  26867. download and install, for example, the one from:
  26868. ftp://ftp.gnu.org/gnu/rx/
  26869. _EOF_
  26870. { { echo "$as_me:$LINENO: error: Cannot find working POSIX regex library" >&5
  26871. echo "$as_me: error: Cannot find working POSIX regex library" >&2;}
  26872. { (exit 1); exit 1; }; }
  26873. fi
  26874. # Check to see if pathfind(3) works.
  26875. echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  26876. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
  26877. if test "${libopts_cv_run_pathfind+set}" = set; then
  26878. echo $ECHO_N "(cached) $ECHO_C" >&6
  26879. else
  26880. if test "$cross_compiling" = yes; then
  26881. libopts_cv_run_pathfind=no
  26882. else
  26883. cat >conftest.$ac_ext <<_ACEOF
  26884. /* confdefs.h. */
  26885. _ACEOF
  26886. cat confdefs.h >>conftest.$ac_ext
  26887. cat >>conftest.$ac_ext <<_ACEOF
  26888. /* end confdefs.h. */
  26889. #include <string.h>
  26890. #include <stdlib.h>
  26891. int main (int argc, char** argv) {
  26892. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  26893. return (pz == 0) ? 1 : 0;
  26894. }
  26895. _ACEOF
  26896. rm -f conftest$ac_exeext
  26897. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26898. (eval $ac_link) 2>&5
  26899. ac_status=$?
  26900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26901. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26903. (eval $ac_try) 2>&5
  26904. ac_status=$?
  26905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26906. (exit $ac_status); }; }; then
  26907. libopts_cv_run_pathfind=yes
  26908. else
  26909. echo "$as_me: program exited with status $ac_status" >&5
  26910. echo "$as_me: failed program was:" >&5
  26911. sed 's/^/| /' conftest.$ac_ext >&5
  26912. ( exit $ac_status )
  26913. libopts_cv_run_pathfind=no
  26914. fi
  26915. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26916. fi # end of TRY_RUN
  26917. fi
  26918. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  26919. echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  26920. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
  26921. if test "X${libopts_cv_run_pathfind}" != Xno
  26922. then
  26923. cat >>confdefs.h <<\_ACEOF
  26924. #define HAVE_PATHFIND 1
  26925. _ACEOF
  26926. fi
  26927. # Check to see if /dev/zero is readable device.
  26928. echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  26929. echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6
  26930. if test "${libopts_cv_test_dev_zero+set}" = set; then
  26931. echo $ECHO_N "(cached) $ECHO_C" >&6
  26932. else
  26933. libopts_cv_test_dev_zero=`exec 2> /dev/null
  26934. dzero=\`ls -l /dev/zero | egrep ^c......r\`
  26935. test -z "${dzero}" && exit 1
  26936. echo ${dzero}`
  26937. if test $? -ne 0
  26938. then libopts_cv_test_dev_zero=no
  26939. elif test -z "$libopts_cv_test_dev_zero"
  26940. then libopts_cv_test_dev_zero=no
  26941. fi
  26942. fi
  26943. # end of CACHE_VAL of libopts_cv_test_dev_zero
  26944. echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  26945. echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6
  26946. if test "X${libopts_cv_test_dev_zero}" != Xno
  26947. then
  26948. cat >>confdefs.h <<\_ACEOF
  26949. #define HAVE_DEV_ZERO 1
  26950. _ACEOF
  26951. fi
  26952. # Check to see if we have a functional realpath(3C).
  26953. echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  26954. echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6
  26955. if test "${libopts_cv_run_realpath+set}" = set; then
  26956. echo $ECHO_N "(cached) $ECHO_C" >&6
  26957. else
  26958. if test "$cross_compiling" = yes; then
  26959. libopts_cv_run_realpath=no
  26960. else
  26961. cat >conftest.$ac_ext <<_ACEOF
  26962. /* confdefs.h. */
  26963. _ACEOF
  26964. cat confdefs.h >>conftest.$ac_ext
  26965. cat >>conftest.$ac_ext <<_ACEOF
  26966. /* end confdefs.h. */
  26967. #include <limits.h>
  26968. #include <stdlib.h>
  26969. int main (int argc, char** argv) {
  26970. #ifndef PATH_MAX
  26971. choke me!!
  26972. #else
  26973. char zPath[PATH_MAX+1];
  26974. #endif
  26975. char *pz = realpath(argv[0], zPath);
  26976. return (pz == zPath) ? 0 : 1;
  26977. }
  26978. _ACEOF
  26979. rm -f conftest$ac_exeext
  26980. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26981. (eval $ac_link) 2>&5
  26982. ac_status=$?
  26983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26984. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26986. (eval $ac_try) 2>&5
  26987. ac_status=$?
  26988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26989. (exit $ac_status); }; }; then
  26990. libopts_cv_run_realpath=yes
  26991. else
  26992. echo "$as_me: program exited with status $ac_status" >&5
  26993. echo "$as_me: failed program was:" >&5
  26994. sed 's/^/| /' conftest.$ac_ext >&5
  26995. ( exit $ac_status )
  26996. libopts_cv_run_realpath=no
  26997. fi
  26998. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26999. fi # end of TRY_RUN
  27000. fi
  27001. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  27002. echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  27003. echo "${ECHO_T}${libopts_cv_run_realpath}" >&6
  27004. if test "X${libopts_cv_run_realpath}" != Xno
  27005. then
  27006. cat >>confdefs.h <<\_ACEOF
  27007. #define HAVE_REALPATH 1
  27008. _ACEOF
  27009. fi
  27010. # Check to see if strftime() works.
  27011. echo "$as_me:$LINENO: checking whether strftime() works" >&5
  27012. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
  27013. if test "${libopts_cv_run_strftime+set}" = set; then
  27014. echo $ECHO_N "(cached) $ECHO_C" >&6
  27015. else
  27016. if test "$cross_compiling" = yes; then
  27017. libopts_cv_run_strftime=no
  27018. else
  27019. cat >conftest.$ac_ext <<_ACEOF
  27020. /* confdefs.h. */
  27021. _ACEOF
  27022. cat confdefs.h >>conftest.$ac_ext
  27023. cat >>conftest.$ac_ext <<_ACEOF
  27024. /* end confdefs.h. */
  27025. #include <time.h>
  27026. #include <string.h>
  27027. char t_buf[ 64 ];
  27028. int main() {
  27029. static const char z[] = "Thursday Aug 28 240";
  27030. struct tm tm;
  27031. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  27032. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  27033. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  27034. tm.tm_mday = 28; /* day of the month [1, 31] */
  27035. tm.tm_mon = 7; /* months since January [0, 11] */
  27036. tm.tm_year = 86; /* years since 1900 */
  27037. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  27038. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  27039. tm.tm_isdst = 1; /* flag for daylight savings time */
  27040. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  27041. return (strcmp( t_buf, z ) != 0); }
  27042. _ACEOF
  27043. rm -f conftest$ac_exeext
  27044. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27045. (eval $ac_link) 2>&5
  27046. ac_status=$?
  27047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27048. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27050. (eval $ac_try) 2>&5
  27051. ac_status=$?
  27052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27053. (exit $ac_status); }; }; then
  27054. libopts_cv_run_strftime=yes
  27055. else
  27056. echo "$as_me: program exited with status $ac_status" >&5
  27057. echo "$as_me: failed program was:" >&5
  27058. sed 's/^/| /' conftest.$ac_ext >&5
  27059. ( exit $ac_status )
  27060. libopts_cv_run_strftime=no
  27061. fi
  27062. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27063. fi # end of TRY_RUN
  27064. fi
  27065. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  27066. echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  27067. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
  27068. if test "X${libopts_cv_run_strftime}" != Xno
  27069. then
  27070. cat >>confdefs.h <<\_ACEOF
  27071. #define HAVE_STRFTIME 1
  27072. _ACEOF
  27073. fi
  27074. # Check to see if fopen accepts "b" mode.
  27075. echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  27076. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
  27077. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  27078. echo $ECHO_N "(cached) $ECHO_C" >&6
  27079. else
  27080. if test "$cross_compiling" = yes; then
  27081. libopts_cv_run_fopen_binary=no
  27082. else
  27083. cat >conftest.$ac_ext <<_ACEOF
  27084. /* confdefs.h. */
  27085. _ACEOF
  27086. cat confdefs.h >>conftest.$ac_ext
  27087. cat >>conftest.$ac_ext <<_ACEOF
  27088. /* end confdefs.h. */
  27089. #include <stdio.h>
  27090. int main (int argc, char** argv) {
  27091. FILE* fp = fopen("conftest.$ac_ext", "rb");
  27092. return (fp == NULL) ? 1 : fclose(fp); }
  27093. _ACEOF
  27094. rm -f conftest$ac_exeext
  27095. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27096. (eval $ac_link) 2>&5
  27097. ac_status=$?
  27098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27099. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27101. (eval $ac_try) 2>&5
  27102. ac_status=$?
  27103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27104. (exit $ac_status); }; }; then
  27105. libopts_cv_run_fopen_binary=yes
  27106. else
  27107. echo "$as_me: program exited with status $ac_status" >&5
  27108. echo "$as_me: failed program was:" >&5
  27109. sed 's/^/| /' conftest.$ac_ext >&5
  27110. ( exit $ac_status )
  27111. libopts_cv_run_fopen_binary=no
  27112. fi
  27113. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27114. fi # end of TRY_RUN
  27115. fi
  27116. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  27117. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  27118. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
  27119. if test "X${libopts_cv_run_fopen_binary}" != Xno
  27120. then
  27121. cat >>confdefs.h <<\_ACEOF
  27122. #define FOPEN_BINARY_FLAG "b"
  27123. _ACEOF
  27124. else
  27125. cat >>confdefs.h <<\_ACEOF
  27126. #define FOPEN_BINARY_FLAG ""
  27127. _ACEOF
  27128. fi
  27129. # Check to see if fopen accepts "t" mode.
  27130. echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  27131. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
  27132. if test "${libopts_cv_run_fopen_text+set}" = set; then
  27133. echo $ECHO_N "(cached) $ECHO_C" >&6
  27134. else
  27135. if test "$cross_compiling" = yes; then
  27136. libopts_cv_run_fopen_text=no
  27137. else
  27138. cat >conftest.$ac_ext <<_ACEOF
  27139. /* confdefs.h. */
  27140. _ACEOF
  27141. cat confdefs.h >>conftest.$ac_ext
  27142. cat >>conftest.$ac_ext <<_ACEOF
  27143. /* end confdefs.h. */
  27144. #include <stdio.h>
  27145. int main (int argc, char** argv) {
  27146. FILE* fp = fopen("conftest.$ac_ext", "rt");
  27147. return (fp == NULL) ? 1 : fclose(fp); }
  27148. _ACEOF
  27149. rm -f conftest$ac_exeext
  27150. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27151. (eval $ac_link) 2>&5
  27152. ac_status=$?
  27153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27154. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27155. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27156. (eval $ac_try) 2>&5
  27157. ac_status=$?
  27158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27159. (exit $ac_status); }; }; then
  27160. libopts_cv_run_fopen_text=yes
  27161. else
  27162. echo "$as_me: program exited with status $ac_status" >&5
  27163. echo "$as_me: failed program was:" >&5
  27164. sed 's/^/| /' conftest.$ac_ext >&5
  27165. ( exit $ac_status )
  27166. libopts_cv_run_fopen_text=no
  27167. fi
  27168. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27169. fi # end of TRY_RUN
  27170. fi
  27171. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  27172. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  27173. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
  27174. if test "X${libopts_cv_run_fopen_text}" != Xno
  27175. then
  27176. cat >>confdefs.h <<\_ACEOF
  27177. #define FOPEN_TEXT_FLAG "t"
  27178. _ACEOF
  27179. else
  27180. cat >>confdefs.h <<\_ACEOF
  27181. #define FOPEN_TEXT_FLAG ""
  27182. _ACEOF
  27183. fi
  27184. else
  27185. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  27186. # =================
  27187. # AC_HEADER_STDC
  27188. # =================
  27189. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  27190. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  27191. if test "${ac_cv_header_stdc+set}" = set; then
  27192. echo $ECHO_N "(cached) $ECHO_C" >&6
  27193. else
  27194. cat >conftest.$ac_ext <<_ACEOF
  27195. /* confdefs.h. */
  27196. _ACEOF
  27197. cat confdefs.h >>conftest.$ac_ext
  27198. cat >>conftest.$ac_ext <<_ACEOF
  27199. /* end confdefs.h. */
  27200. #include <stdlib.h>
  27201. #include <stdarg.h>
  27202. #include <string.h>
  27203. #include <float.h>
  27204. int
  27205. main ()
  27206. {
  27207. ;
  27208. return 0;
  27209. }
  27210. _ACEOF
  27211. rm -f conftest.$ac_objext
  27212. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27213. (eval $ac_compile) 2>conftest.er1
  27214. ac_status=$?
  27215. grep -v '^ *+' conftest.er1 >conftest.err
  27216. rm -f conftest.er1
  27217. cat conftest.err >&5
  27218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27219. (exit $ac_status); } &&
  27220. { ac_try='test -z "$ac_c_werror_flag"
  27221. || test ! -s conftest.err'
  27222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27223. (eval $ac_try) 2>&5
  27224. ac_status=$?
  27225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27226. (exit $ac_status); }; } &&
  27227. { ac_try='test -s conftest.$ac_objext'
  27228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27229. (eval $ac_try) 2>&5
  27230. ac_status=$?
  27231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27232. (exit $ac_status); }; }; then
  27233. ac_cv_header_stdc=yes
  27234. else
  27235. echo "$as_me: failed program was:" >&5
  27236. sed 's/^/| /' conftest.$ac_ext >&5
  27237. ac_cv_header_stdc=no
  27238. fi
  27239. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27240. if test $ac_cv_header_stdc = yes; then
  27241. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  27242. cat >conftest.$ac_ext <<_ACEOF
  27243. /* confdefs.h. */
  27244. _ACEOF
  27245. cat confdefs.h >>conftest.$ac_ext
  27246. cat >>conftest.$ac_ext <<_ACEOF
  27247. /* end confdefs.h. */
  27248. #include <string.h>
  27249. _ACEOF
  27250. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27251. $EGREP "memchr" >/dev/null 2>&1; then
  27252. :
  27253. else
  27254. ac_cv_header_stdc=no
  27255. fi
  27256. rm -f conftest*
  27257. fi
  27258. if test $ac_cv_header_stdc = yes; then
  27259. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  27260. cat >conftest.$ac_ext <<_ACEOF
  27261. /* confdefs.h. */
  27262. _ACEOF
  27263. cat confdefs.h >>conftest.$ac_ext
  27264. cat >>conftest.$ac_ext <<_ACEOF
  27265. /* end confdefs.h. */
  27266. #include <stdlib.h>
  27267. _ACEOF
  27268. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27269. $EGREP "free" >/dev/null 2>&1; then
  27270. :
  27271. else
  27272. ac_cv_header_stdc=no
  27273. fi
  27274. rm -f conftest*
  27275. fi
  27276. if test $ac_cv_header_stdc = yes; then
  27277. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  27278. if test "$cross_compiling" = yes; then
  27279. :
  27280. else
  27281. cat >conftest.$ac_ext <<_ACEOF
  27282. /* confdefs.h. */
  27283. _ACEOF
  27284. cat confdefs.h >>conftest.$ac_ext
  27285. cat >>conftest.$ac_ext <<_ACEOF
  27286. /* end confdefs.h. */
  27287. #include <ctype.h>
  27288. #if ((' ' & 0x0FF) == 0x020)
  27289. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  27290. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  27291. #else
  27292. # define ISLOWER(c) \
  27293. (('a' <= (c) && (c) <= 'i') \
  27294. || ('j' <= (c) && (c) <= 'r') \
  27295. || ('s' <= (c) && (c) <= 'z'))
  27296. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  27297. #endif
  27298. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  27299. int
  27300. main ()
  27301. {
  27302. int i;
  27303. for (i = 0; i < 256; i++)
  27304. if (XOR (islower (i), ISLOWER (i))
  27305. || toupper (i) != TOUPPER (i))
  27306. exit(2);
  27307. exit (0);
  27308. }
  27309. _ACEOF
  27310. rm -f conftest$ac_exeext
  27311. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27312. (eval $ac_link) 2>&5
  27313. ac_status=$?
  27314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27315. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27317. (eval $ac_try) 2>&5
  27318. ac_status=$?
  27319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27320. (exit $ac_status); }; }; then
  27321. :
  27322. else
  27323. echo "$as_me: program exited with status $ac_status" >&5
  27324. echo "$as_me: failed program was:" >&5
  27325. sed 's/^/| /' conftest.$ac_ext >&5
  27326. ( exit $ac_status )
  27327. ac_cv_header_stdc=no
  27328. fi
  27329. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27330. fi
  27331. fi
  27332. fi
  27333. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  27334. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  27335. if test $ac_cv_header_stdc = yes; then
  27336. cat >>confdefs.h <<\_ACEOF
  27337. #define STDC_HEADERS 1
  27338. _ACEOF
  27339. fi
  27340. # =================
  27341. # AC_HEADER_DIRENT
  27342. # =================
  27343. ac_header_dirent=no
  27344. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  27345. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  27346. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  27347. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  27348. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27349. echo $ECHO_N "(cached) $ECHO_C" >&6
  27350. else
  27351. cat >conftest.$ac_ext <<_ACEOF
  27352. /* confdefs.h. */
  27353. _ACEOF
  27354. cat confdefs.h >>conftest.$ac_ext
  27355. cat >>conftest.$ac_ext <<_ACEOF
  27356. /* end confdefs.h. */
  27357. #include <sys/types.h>
  27358. #include <$ac_hdr>
  27359. int
  27360. main ()
  27361. {
  27362. if ((DIR *) 0)
  27363. return 0;
  27364. ;
  27365. return 0;
  27366. }
  27367. _ACEOF
  27368. rm -f conftest.$ac_objext
  27369. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27370. (eval $ac_compile) 2>conftest.er1
  27371. ac_status=$?
  27372. grep -v '^ *+' conftest.er1 >conftest.err
  27373. rm -f conftest.er1
  27374. cat conftest.err >&5
  27375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27376. (exit $ac_status); } &&
  27377. { ac_try='test -z "$ac_c_werror_flag"
  27378. || test ! -s conftest.err'
  27379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27380. (eval $ac_try) 2>&5
  27381. ac_status=$?
  27382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27383. (exit $ac_status); }; } &&
  27384. { ac_try='test -s conftest.$ac_objext'
  27385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27386. (eval $ac_try) 2>&5
  27387. ac_status=$?
  27388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27389. (exit $ac_status); }; }; then
  27390. eval "$as_ac_Header=yes"
  27391. else
  27392. echo "$as_me: failed program was:" >&5
  27393. sed 's/^/| /' conftest.$ac_ext >&5
  27394. eval "$as_ac_Header=no"
  27395. fi
  27396. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27397. fi
  27398. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27399. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27400. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27401. cat >>confdefs.h <<_ACEOF
  27402. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  27403. _ACEOF
  27404. ac_header_dirent=$ac_hdr; break
  27405. fi
  27406. done
  27407. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  27408. if test $ac_header_dirent = dirent.h; then
  27409. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  27410. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  27411. if test "${ac_cv_search_opendir+set}" = set; then
  27412. echo $ECHO_N "(cached) $ECHO_C" >&6
  27413. else
  27414. ac_func_search_save_LIBS=$LIBS
  27415. ac_cv_search_opendir=no
  27416. cat >conftest.$ac_ext <<_ACEOF
  27417. /* confdefs.h. */
  27418. _ACEOF
  27419. cat confdefs.h >>conftest.$ac_ext
  27420. cat >>conftest.$ac_ext <<_ACEOF
  27421. /* end confdefs.h. */
  27422. /* Override any gcc2 internal prototype to avoid an error. */
  27423. #ifdef __cplusplus
  27424. extern "C"
  27425. #endif
  27426. /* We use char because int might match the return type of a gcc2
  27427. builtin and then its argument prototype would still apply. */
  27428. char opendir ();
  27429. int
  27430. main ()
  27431. {
  27432. opendir ();
  27433. ;
  27434. return 0;
  27435. }
  27436. _ACEOF
  27437. rm -f conftest.$ac_objext conftest$ac_exeext
  27438. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27439. (eval $ac_link) 2>conftest.er1
  27440. ac_status=$?
  27441. grep -v '^ *+' conftest.er1 >conftest.err
  27442. rm -f conftest.er1
  27443. cat conftest.err >&5
  27444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27445. (exit $ac_status); } &&
  27446. { ac_try='test -z "$ac_c_werror_flag"
  27447. || test ! -s conftest.err'
  27448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27449. (eval $ac_try) 2>&5
  27450. ac_status=$?
  27451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27452. (exit $ac_status); }; } &&
  27453. { ac_try='test -s conftest$ac_exeext'
  27454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27455. (eval $ac_try) 2>&5
  27456. ac_status=$?
  27457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27458. (exit $ac_status); }; }; then
  27459. ac_cv_search_opendir="none required"
  27460. else
  27461. echo "$as_me: failed program was:" >&5
  27462. sed 's/^/| /' conftest.$ac_ext >&5
  27463. fi
  27464. rm -f conftest.err conftest.$ac_objext \
  27465. conftest$ac_exeext conftest.$ac_ext
  27466. if test "$ac_cv_search_opendir" = no; then
  27467. for ac_lib in dir; do
  27468. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  27469. cat >conftest.$ac_ext <<_ACEOF
  27470. /* confdefs.h. */
  27471. _ACEOF
  27472. cat confdefs.h >>conftest.$ac_ext
  27473. cat >>conftest.$ac_ext <<_ACEOF
  27474. /* end confdefs.h. */
  27475. /* Override any gcc2 internal prototype to avoid an error. */
  27476. #ifdef __cplusplus
  27477. extern "C"
  27478. #endif
  27479. /* We use char because int might match the return type of a gcc2
  27480. builtin and then its argument prototype would still apply. */
  27481. char opendir ();
  27482. int
  27483. main ()
  27484. {
  27485. opendir ();
  27486. ;
  27487. return 0;
  27488. }
  27489. _ACEOF
  27490. rm -f conftest.$ac_objext conftest$ac_exeext
  27491. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27492. (eval $ac_link) 2>conftest.er1
  27493. ac_status=$?
  27494. grep -v '^ *+' conftest.er1 >conftest.err
  27495. rm -f conftest.er1
  27496. cat conftest.err >&5
  27497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27498. (exit $ac_status); } &&
  27499. { ac_try='test -z "$ac_c_werror_flag"
  27500. || test ! -s conftest.err'
  27501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27502. (eval $ac_try) 2>&5
  27503. ac_status=$?
  27504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27505. (exit $ac_status); }; } &&
  27506. { ac_try='test -s conftest$ac_exeext'
  27507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27508. (eval $ac_try) 2>&5
  27509. ac_status=$?
  27510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27511. (exit $ac_status); }; }; then
  27512. ac_cv_search_opendir="-l$ac_lib"
  27513. break
  27514. else
  27515. echo "$as_me: failed program was:" >&5
  27516. sed 's/^/| /' conftest.$ac_ext >&5
  27517. fi
  27518. rm -f conftest.err conftest.$ac_objext \
  27519. conftest$ac_exeext conftest.$ac_ext
  27520. done
  27521. fi
  27522. LIBS=$ac_func_search_save_LIBS
  27523. fi
  27524. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  27525. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  27526. if test "$ac_cv_search_opendir" != no; then
  27527. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  27528. fi
  27529. else
  27530. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  27531. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  27532. if test "${ac_cv_search_opendir+set}" = set; then
  27533. echo $ECHO_N "(cached) $ECHO_C" >&6
  27534. else
  27535. ac_func_search_save_LIBS=$LIBS
  27536. ac_cv_search_opendir=no
  27537. cat >conftest.$ac_ext <<_ACEOF
  27538. /* confdefs.h. */
  27539. _ACEOF
  27540. cat confdefs.h >>conftest.$ac_ext
  27541. cat >>conftest.$ac_ext <<_ACEOF
  27542. /* end confdefs.h. */
  27543. /* Override any gcc2 internal prototype to avoid an error. */
  27544. #ifdef __cplusplus
  27545. extern "C"
  27546. #endif
  27547. /* We use char because int might match the return type of a gcc2
  27548. builtin and then its argument prototype would still apply. */
  27549. char opendir ();
  27550. int
  27551. main ()
  27552. {
  27553. opendir ();
  27554. ;
  27555. return 0;
  27556. }
  27557. _ACEOF
  27558. rm -f conftest.$ac_objext conftest$ac_exeext
  27559. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27560. (eval $ac_link) 2>conftest.er1
  27561. ac_status=$?
  27562. grep -v '^ *+' conftest.er1 >conftest.err
  27563. rm -f conftest.er1
  27564. cat conftest.err >&5
  27565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27566. (exit $ac_status); } &&
  27567. { ac_try='test -z "$ac_c_werror_flag"
  27568. || test ! -s conftest.err'
  27569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27570. (eval $ac_try) 2>&5
  27571. ac_status=$?
  27572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27573. (exit $ac_status); }; } &&
  27574. { ac_try='test -s conftest$ac_exeext'
  27575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27576. (eval $ac_try) 2>&5
  27577. ac_status=$?
  27578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27579. (exit $ac_status); }; }; then
  27580. ac_cv_search_opendir="none required"
  27581. else
  27582. echo "$as_me: failed program was:" >&5
  27583. sed 's/^/| /' conftest.$ac_ext >&5
  27584. fi
  27585. rm -f conftest.err conftest.$ac_objext \
  27586. conftest$ac_exeext conftest.$ac_ext
  27587. if test "$ac_cv_search_opendir" = no; then
  27588. for ac_lib in x; do
  27589. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  27590. cat >conftest.$ac_ext <<_ACEOF
  27591. /* confdefs.h. */
  27592. _ACEOF
  27593. cat confdefs.h >>conftest.$ac_ext
  27594. cat >>conftest.$ac_ext <<_ACEOF
  27595. /* end confdefs.h. */
  27596. /* Override any gcc2 internal prototype to avoid an error. */
  27597. #ifdef __cplusplus
  27598. extern "C"
  27599. #endif
  27600. /* We use char because int might match the return type of a gcc2
  27601. builtin and then its argument prototype would still apply. */
  27602. char opendir ();
  27603. int
  27604. main ()
  27605. {
  27606. opendir ();
  27607. ;
  27608. return 0;
  27609. }
  27610. _ACEOF
  27611. rm -f conftest.$ac_objext conftest$ac_exeext
  27612. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27613. (eval $ac_link) 2>conftest.er1
  27614. ac_status=$?
  27615. grep -v '^ *+' conftest.er1 >conftest.err
  27616. rm -f conftest.er1
  27617. cat conftest.err >&5
  27618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27619. (exit $ac_status); } &&
  27620. { ac_try='test -z "$ac_c_werror_flag"
  27621. || test ! -s conftest.err'
  27622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27623. (eval $ac_try) 2>&5
  27624. ac_status=$?
  27625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27626. (exit $ac_status); }; } &&
  27627. { ac_try='test -s conftest$ac_exeext'
  27628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27629. (eval $ac_try) 2>&5
  27630. ac_status=$?
  27631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27632. (exit $ac_status); }; }; then
  27633. ac_cv_search_opendir="-l$ac_lib"
  27634. break
  27635. else
  27636. echo "$as_me: failed program was:" >&5
  27637. sed 's/^/| /' conftest.$ac_ext >&5
  27638. fi
  27639. rm -f conftest.err conftest.$ac_objext \
  27640. conftest$ac_exeext conftest.$ac_ext
  27641. done
  27642. fi
  27643. LIBS=$ac_func_search_save_LIBS
  27644. fi
  27645. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  27646. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  27647. if test "$ac_cv_search_opendir" != no; then
  27648. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  27649. fi
  27650. fi
  27651. # =================
  27652. # AC_CHECK_HEADERS
  27653. # =================
  27654. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  27655. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  27656. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h
  27657. do
  27658. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27659. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27660. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27661. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27662. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27663. echo $ECHO_N "(cached) $ECHO_C" >&6
  27664. fi
  27665. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27666. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27667. else
  27668. # Is the header compilable?
  27669. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27670. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  27671. cat >conftest.$ac_ext <<_ACEOF
  27672. /* confdefs.h. */
  27673. _ACEOF
  27674. cat confdefs.h >>conftest.$ac_ext
  27675. cat >>conftest.$ac_ext <<_ACEOF
  27676. /* end confdefs.h. */
  27677. $ac_includes_default
  27678. #include <$ac_header>
  27679. _ACEOF
  27680. rm -f conftest.$ac_objext
  27681. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27682. (eval $ac_compile) 2>conftest.er1
  27683. ac_status=$?
  27684. grep -v '^ *+' conftest.er1 >conftest.err
  27685. rm -f conftest.er1
  27686. cat conftest.err >&5
  27687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27688. (exit $ac_status); } &&
  27689. { ac_try='test -z "$ac_c_werror_flag"
  27690. || test ! -s conftest.err'
  27691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27692. (eval $ac_try) 2>&5
  27693. ac_status=$?
  27694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27695. (exit $ac_status); }; } &&
  27696. { ac_try='test -s conftest.$ac_objext'
  27697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27698. (eval $ac_try) 2>&5
  27699. ac_status=$?
  27700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27701. (exit $ac_status); }; }; then
  27702. ac_header_compiler=yes
  27703. else
  27704. echo "$as_me: failed program was:" >&5
  27705. sed 's/^/| /' conftest.$ac_ext >&5
  27706. ac_header_compiler=no
  27707. fi
  27708. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27709. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27710. echo "${ECHO_T}$ac_header_compiler" >&6
  27711. # Is the header present?
  27712. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27713. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  27714. cat >conftest.$ac_ext <<_ACEOF
  27715. /* confdefs.h. */
  27716. _ACEOF
  27717. cat confdefs.h >>conftest.$ac_ext
  27718. cat >>conftest.$ac_ext <<_ACEOF
  27719. /* end confdefs.h. */
  27720. #include <$ac_header>
  27721. _ACEOF
  27722. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27723. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27724. ac_status=$?
  27725. grep -v '^ *+' conftest.er1 >conftest.err
  27726. rm -f conftest.er1
  27727. cat conftest.err >&5
  27728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27729. (exit $ac_status); } >/dev/null; then
  27730. if test -s conftest.err; then
  27731. ac_cpp_err=$ac_c_preproc_warn_flag
  27732. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27733. else
  27734. ac_cpp_err=
  27735. fi
  27736. else
  27737. ac_cpp_err=yes
  27738. fi
  27739. if test -z "$ac_cpp_err"; then
  27740. ac_header_preproc=yes
  27741. else
  27742. echo "$as_me: failed program was:" >&5
  27743. sed 's/^/| /' conftest.$ac_ext >&5
  27744. ac_header_preproc=no
  27745. fi
  27746. rm -f conftest.err conftest.$ac_ext
  27747. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27748. echo "${ECHO_T}$ac_header_preproc" >&6
  27749. # So? What about this header?
  27750. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27751. yes:no: )
  27752. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27753. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27754. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27755. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27756. ac_header_preproc=yes
  27757. ;;
  27758. no:yes:* )
  27759. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27760. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27761. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27762. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27763. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27764. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27765. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27766. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27767. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27768. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27769. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27770. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27771. (
  27772. cat <<\_ASBOX
  27773. ## ------------------------------------------ ##
  27774. ## Report this to the AC_PACKAGE_NAME lists. ##
  27775. ## ------------------------------------------ ##
  27776. _ASBOX
  27777. ) |
  27778. sed "s/^/$as_me: WARNING: /" >&2
  27779. ;;
  27780. esac
  27781. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27782. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27783. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27784. echo $ECHO_N "(cached) $ECHO_C" >&6
  27785. else
  27786. eval "$as_ac_Header=\$ac_header_preproc"
  27787. fi
  27788. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27789. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27790. fi
  27791. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27792. cat >>confdefs.h <<_ACEOF
  27793. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27794. _ACEOF
  27795. fi
  27796. done
  27797. # --------------------------------------------
  27798. # Verify certain entries from AC_CHECK_HEADERS
  27799. # --------------------------------------------
  27800. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  27801. string errno stdlib memory setjmp
  27802. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  27803. test "${as_ac_var}" = set || \
  27804. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  27805. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  27806. { (exit 1); exit 1; }; }
  27807. done
  27808. # ================================================
  27809. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  27810. # if varargs.h is present define HAVE_VARARGS_H.
  27811. # ================================================
  27812. for ac_header in stdarg.h varargs.h
  27813. do
  27814. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27815. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27816. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27817. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27818. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27819. echo $ECHO_N "(cached) $ECHO_C" >&6
  27820. fi
  27821. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27822. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27823. else
  27824. # Is the header compilable?
  27825. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27826. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  27827. cat >conftest.$ac_ext <<_ACEOF
  27828. /* confdefs.h. */
  27829. _ACEOF
  27830. cat confdefs.h >>conftest.$ac_ext
  27831. cat >>conftest.$ac_ext <<_ACEOF
  27832. /* end confdefs.h. */
  27833. $ac_includes_default
  27834. #include <$ac_header>
  27835. _ACEOF
  27836. rm -f conftest.$ac_objext
  27837. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27838. (eval $ac_compile) 2>conftest.er1
  27839. ac_status=$?
  27840. grep -v '^ *+' conftest.er1 >conftest.err
  27841. rm -f conftest.er1
  27842. cat conftest.err >&5
  27843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27844. (exit $ac_status); } &&
  27845. { ac_try='test -z "$ac_c_werror_flag"
  27846. || test ! -s conftest.err'
  27847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27848. (eval $ac_try) 2>&5
  27849. ac_status=$?
  27850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27851. (exit $ac_status); }; } &&
  27852. { ac_try='test -s conftest.$ac_objext'
  27853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27854. (eval $ac_try) 2>&5
  27855. ac_status=$?
  27856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27857. (exit $ac_status); }; }; then
  27858. ac_header_compiler=yes
  27859. else
  27860. echo "$as_me: failed program was:" >&5
  27861. sed 's/^/| /' conftest.$ac_ext >&5
  27862. ac_header_compiler=no
  27863. fi
  27864. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27865. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27866. echo "${ECHO_T}$ac_header_compiler" >&6
  27867. # Is the header present?
  27868. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27869. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  27870. cat >conftest.$ac_ext <<_ACEOF
  27871. /* confdefs.h. */
  27872. _ACEOF
  27873. cat confdefs.h >>conftest.$ac_ext
  27874. cat >>conftest.$ac_ext <<_ACEOF
  27875. /* end confdefs.h. */
  27876. #include <$ac_header>
  27877. _ACEOF
  27878. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27879. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27880. ac_status=$?
  27881. grep -v '^ *+' conftest.er1 >conftest.err
  27882. rm -f conftest.er1
  27883. cat conftest.err >&5
  27884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27885. (exit $ac_status); } >/dev/null; then
  27886. if test -s conftest.err; then
  27887. ac_cpp_err=$ac_c_preproc_warn_flag
  27888. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27889. else
  27890. ac_cpp_err=
  27891. fi
  27892. else
  27893. ac_cpp_err=yes
  27894. fi
  27895. if test -z "$ac_cpp_err"; then
  27896. ac_header_preproc=yes
  27897. else
  27898. echo "$as_me: failed program was:" >&5
  27899. sed 's/^/| /' conftest.$ac_ext >&5
  27900. ac_header_preproc=no
  27901. fi
  27902. rm -f conftest.err conftest.$ac_ext
  27903. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27904. echo "${ECHO_T}$ac_header_preproc" >&6
  27905. # So? What about this header?
  27906. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27907. yes:no: )
  27908. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27909. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27910. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27911. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27912. ac_header_preproc=yes
  27913. ;;
  27914. no:yes:* )
  27915. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27916. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27917. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27918. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27919. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27920. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27921. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27922. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27923. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27924. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27925. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27926. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27927. (
  27928. cat <<\_ASBOX
  27929. ## ------------------------------------------ ##
  27930. ## Report this to the AC_PACKAGE_NAME lists. ##
  27931. ## ------------------------------------------ ##
  27932. _ASBOX
  27933. ) |
  27934. sed "s/^/$as_me: WARNING: /" >&2
  27935. ;;
  27936. esac
  27937. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27938. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27939. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27940. echo $ECHO_N "(cached) $ECHO_C" >&6
  27941. else
  27942. eval "$as_ac_Header=\$ac_header_preproc"
  27943. fi
  27944. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27945. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27946. fi
  27947. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27948. cat >>confdefs.h <<_ACEOF
  27949. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27950. _ACEOF
  27951. break
  27952. fi
  27953. done
  27954. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  27955. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  27956. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  27957. { (exit 1); exit 1; }; }
  27958. fi
  27959. # ================================================
  27960. # Similarly for the string.h and strings.h headers
  27961. # ================================================
  27962. for ac_header in string.h strings.h
  27963. do
  27964. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27965. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27966. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27967. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27968. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27969. echo $ECHO_N "(cached) $ECHO_C" >&6
  27970. fi
  27971. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27972. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27973. else
  27974. # Is the header compilable?
  27975. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27976. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  27977. cat >conftest.$ac_ext <<_ACEOF
  27978. /* confdefs.h. */
  27979. _ACEOF
  27980. cat confdefs.h >>conftest.$ac_ext
  27981. cat >>conftest.$ac_ext <<_ACEOF
  27982. /* end confdefs.h. */
  27983. $ac_includes_default
  27984. #include <$ac_header>
  27985. _ACEOF
  27986. rm -f conftest.$ac_objext
  27987. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27988. (eval $ac_compile) 2>conftest.er1
  27989. ac_status=$?
  27990. grep -v '^ *+' conftest.er1 >conftest.err
  27991. rm -f conftest.er1
  27992. cat conftest.err >&5
  27993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27994. (exit $ac_status); } &&
  27995. { ac_try='test -z "$ac_c_werror_flag"
  27996. || test ! -s conftest.err'
  27997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27998. (eval $ac_try) 2>&5
  27999. ac_status=$?
  28000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28001. (exit $ac_status); }; } &&
  28002. { ac_try='test -s conftest.$ac_objext'
  28003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28004. (eval $ac_try) 2>&5
  28005. ac_status=$?
  28006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28007. (exit $ac_status); }; }; then
  28008. ac_header_compiler=yes
  28009. else
  28010. echo "$as_me: failed program was:" >&5
  28011. sed 's/^/| /' conftest.$ac_ext >&5
  28012. ac_header_compiler=no
  28013. fi
  28014. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28015. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28016. echo "${ECHO_T}$ac_header_compiler" >&6
  28017. # Is the header present?
  28018. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28019. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  28020. cat >conftest.$ac_ext <<_ACEOF
  28021. /* confdefs.h. */
  28022. _ACEOF
  28023. cat confdefs.h >>conftest.$ac_ext
  28024. cat >>conftest.$ac_ext <<_ACEOF
  28025. /* end confdefs.h. */
  28026. #include <$ac_header>
  28027. _ACEOF
  28028. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  28029. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  28030. ac_status=$?
  28031. grep -v '^ *+' conftest.er1 >conftest.err
  28032. rm -f conftest.er1
  28033. cat conftest.err >&5
  28034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28035. (exit $ac_status); } >/dev/null; then
  28036. if test -s conftest.err; then
  28037. ac_cpp_err=$ac_c_preproc_warn_flag
  28038. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  28039. else
  28040. ac_cpp_err=
  28041. fi
  28042. else
  28043. ac_cpp_err=yes
  28044. fi
  28045. if test -z "$ac_cpp_err"; then
  28046. ac_header_preproc=yes
  28047. else
  28048. echo "$as_me: failed program was:" >&5
  28049. sed 's/^/| /' conftest.$ac_ext >&5
  28050. ac_header_preproc=no
  28051. fi
  28052. rm -f conftest.err conftest.$ac_ext
  28053. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28054. echo "${ECHO_T}$ac_header_preproc" >&6
  28055. # So? What about this header?
  28056. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28057. yes:no: )
  28058. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28059. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28060. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28061. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28062. ac_header_preproc=yes
  28063. ;;
  28064. no:yes:* )
  28065. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28066. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28067. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28068. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28069. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28070. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28071. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28072. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28073. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28074. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28075. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28076. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28077. (
  28078. cat <<\_ASBOX
  28079. ## ------------------------------------------ ##
  28080. ## Report this to the AC_PACKAGE_NAME lists. ##
  28081. ## ------------------------------------------ ##
  28082. _ASBOX
  28083. ) |
  28084. sed "s/^/$as_me: WARNING: /" >&2
  28085. ;;
  28086. esac
  28087. echo "$as_me:$LINENO: checking for $ac_header" >&5
  28088. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  28089. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  28090. echo $ECHO_N "(cached) $ECHO_C" >&6
  28091. else
  28092. eval "$as_ac_Header=\$ac_header_preproc"
  28093. fi
  28094. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  28095. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  28096. fi
  28097. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28098. cat >>confdefs.h <<_ACEOF
  28099. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28100. _ACEOF
  28101. break
  28102. fi
  28103. done
  28104. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  28105. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  28106. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  28107. { (exit 1); exit 1; }; }
  28108. fi
  28109. # =====================
  28110. # ...and limits headers
  28111. # =====================
  28112. for ac_header in limits.h sys/limits.h values.h
  28113. do
  28114. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28115. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  28116. echo "$as_me:$LINENO: checking for $ac_header" >&5
  28117. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  28118. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  28119. echo $ECHO_N "(cached) $ECHO_C" >&6
  28120. fi
  28121. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  28122. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  28123. else
  28124. # Is the header compilable?
  28125. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28126. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  28127. cat >conftest.$ac_ext <<_ACEOF
  28128. /* confdefs.h. */
  28129. _ACEOF
  28130. cat confdefs.h >>conftest.$ac_ext
  28131. cat >>conftest.$ac_ext <<_ACEOF
  28132. /* end confdefs.h. */
  28133. $ac_includes_default
  28134. #include <$ac_header>
  28135. _ACEOF
  28136. rm -f conftest.$ac_objext
  28137. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28138. (eval $ac_compile) 2>conftest.er1
  28139. ac_status=$?
  28140. grep -v '^ *+' conftest.er1 >conftest.err
  28141. rm -f conftest.er1
  28142. cat conftest.err >&5
  28143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28144. (exit $ac_status); } &&
  28145. { ac_try='test -z "$ac_c_werror_flag"
  28146. || test ! -s conftest.err'
  28147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28148. (eval $ac_try) 2>&5
  28149. ac_status=$?
  28150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28151. (exit $ac_status); }; } &&
  28152. { ac_try='test -s conftest.$ac_objext'
  28153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28154. (eval $ac_try) 2>&5
  28155. ac_status=$?
  28156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28157. (exit $ac_status); }; }; then
  28158. ac_header_compiler=yes
  28159. else
  28160. echo "$as_me: failed program was:" >&5
  28161. sed 's/^/| /' conftest.$ac_ext >&5
  28162. ac_header_compiler=no
  28163. fi
  28164. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28165. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28166. echo "${ECHO_T}$ac_header_compiler" >&6
  28167. # Is the header present?
  28168. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28169. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  28170. cat >conftest.$ac_ext <<_ACEOF
  28171. /* confdefs.h. */
  28172. _ACEOF
  28173. cat confdefs.h >>conftest.$ac_ext
  28174. cat >>conftest.$ac_ext <<_ACEOF
  28175. /* end confdefs.h. */
  28176. #include <$ac_header>
  28177. _ACEOF
  28178. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  28179. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  28180. ac_status=$?
  28181. grep -v '^ *+' conftest.er1 >conftest.err
  28182. rm -f conftest.er1
  28183. cat conftest.err >&5
  28184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28185. (exit $ac_status); } >/dev/null; then
  28186. if test -s conftest.err; then
  28187. ac_cpp_err=$ac_c_preproc_warn_flag
  28188. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  28189. else
  28190. ac_cpp_err=
  28191. fi
  28192. else
  28193. ac_cpp_err=yes
  28194. fi
  28195. if test -z "$ac_cpp_err"; then
  28196. ac_header_preproc=yes
  28197. else
  28198. echo "$as_me: failed program was:" >&5
  28199. sed 's/^/| /' conftest.$ac_ext >&5
  28200. ac_header_preproc=no
  28201. fi
  28202. rm -f conftest.err conftest.$ac_ext
  28203. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28204. echo "${ECHO_T}$ac_header_preproc" >&6
  28205. # So? What about this header?
  28206. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28207. yes:no: )
  28208. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28209. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28210. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28211. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28212. ac_header_preproc=yes
  28213. ;;
  28214. no:yes:* )
  28215. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28216. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28217. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28218. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28219. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28220. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28221. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28222. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28223. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28224. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28225. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28226. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28227. (
  28228. cat <<\_ASBOX
  28229. ## ------------------------------------------ ##
  28230. ## Report this to the AC_PACKAGE_NAME lists. ##
  28231. ## ------------------------------------------ ##
  28232. _ASBOX
  28233. ) |
  28234. sed "s/^/$as_me: WARNING: /" >&2
  28235. ;;
  28236. esac
  28237. echo "$as_me:$LINENO: checking for $ac_header" >&5
  28238. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  28239. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  28240. echo $ECHO_N "(cached) $ECHO_C" >&6
  28241. else
  28242. eval "$as_ac_Header=\$ac_header_preproc"
  28243. fi
  28244. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  28245. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  28246. fi
  28247. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28248. cat >>confdefs.h <<_ACEOF
  28249. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28250. _ACEOF
  28251. break
  28252. fi
  28253. done
  28254. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  28255. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  28256. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  28257. { (exit 1); exit 1; }; }
  28258. fi
  28259. # ========================
  28260. # ...and int types headers
  28261. # ========================
  28262. for ac_header in stdint.h inttypes.h
  28263. do
  28264. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28265. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  28266. echo "$as_me:$LINENO: checking for $ac_header" >&5
  28267. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  28268. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  28269. echo $ECHO_N "(cached) $ECHO_C" >&6
  28270. fi
  28271. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  28272. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  28273. else
  28274. # Is the header compilable?
  28275. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28276. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  28277. cat >conftest.$ac_ext <<_ACEOF
  28278. /* confdefs.h. */
  28279. _ACEOF
  28280. cat confdefs.h >>conftest.$ac_ext
  28281. cat >>conftest.$ac_ext <<_ACEOF
  28282. /* end confdefs.h. */
  28283. $ac_includes_default
  28284. #include <$ac_header>
  28285. _ACEOF
  28286. rm -f conftest.$ac_objext
  28287. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28288. (eval $ac_compile) 2>conftest.er1
  28289. ac_status=$?
  28290. grep -v '^ *+' conftest.er1 >conftest.err
  28291. rm -f conftest.er1
  28292. cat conftest.err >&5
  28293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28294. (exit $ac_status); } &&
  28295. { ac_try='test -z "$ac_c_werror_flag"
  28296. || test ! -s conftest.err'
  28297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28298. (eval $ac_try) 2>&5
  28299. ac_status=$?
  28300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28301. (exit $ac_status); }; } &&
  28302. { ac_try='test -s conftest.$ac_objext'
  28303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28304. (eval $ac_try) 2>&5
  28305. ac_status=$?
  28306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28307. (exit $ac_status); }; }; then
  28308. ac_header_compiler=yes
  28309. else
  28310. echo "$as_me: failed program was:" >&5
  28311. sed 's/^/| /' conftest.$ac_ext >&5
  28312. ac_header_compiler=no
  28313. fi
  28314. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28315. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28316. echo "${ECHO_T}$ac_header_compiler" >&6
  28317. # Is the header present?
  28318. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28319. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  28320. cat >conftest.$ac_ext <<_ACEOF
  28321. /* confdefs.h. */
  28322. _ACEOF
  28323. cat confdefs.h >>conftest.$ac_ext
  28324. cat >>conftest.$ac_ext <<_ACEOF
  28325. /* end confdefs.h. */
  28326. #include <$ac_header>
  28327. _ACEOF
  28328. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  28329. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  28330. ac_status=$?
  28331. grep -v '^ *+' conftest.er1 >conftest.err
  28332. rm -f conftest.er1
  28333. cat conftest.err >&5
  28334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28335. (exit $ac_status); } >/dev/null; then
  28336. if test -s conftest.err; then
  28337. ac_cpp_err=$ac_c_preproc_warn_flag
  28338. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  28339. else
  28340. ac_cpp_err=
  28341. fi
  28342. else
  28343. ac_cpp_err=yes
  28344. fi
  28345. if test -z "$ac_cpp_err"; then
  28346. ac_header_preproc=yes
  28347. else
  28348. echo "$as_me: failed program was:" >&5
  28349. sed 's/^/| /' conftest.$ac_ext >&5
  28350. ac_header_preproc=no
  28351. fi
  28352. rm -f conftest.err conftest.$ac_ext
  28353. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28354. echo "${ECHO_T}$ac_header_preproc" >&6
  28355. # So? What about this header?
  28356. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28357. yes:no: )
  28358. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28359. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28360. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28361. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28362. ac_header_preproc=yes
  28363. ;;
  28364. no:yes:* )
  28365. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28366. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28367. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28368. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28369. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28370. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28371. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28372. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28373. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28374. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28375. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28376. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28377. (
  28378. cat <<\_ASBOX
  28379. ## ------------------------------------------ ##
  28380. ## Report this to the AC_PACKAGE_NAME lists. ##
  28381. ## ------------------------------------------ ##
  28382. _ASBOX
  28383. ) |
  28384. sed "s/^/$as_me: WARNING: /" >&2
  28385. ;;
  28386. esac
  28387. echo "$as_me:$LINENO: checking for $ac_header" >&5
  28388. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  28389. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  28390. echo $ECHO_N "(cached) $ECHO_C" >&6
  28391. else
  28392. eval "$as_ac_Header=\$ac_header_preproc"
  28393. fi
  28394. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  28395. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  28396. fi
  28397. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28398. cat >>confdefs.h <<_ACEOF
  28399. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28400. _ACEOF
  28401. break
  28402. fi
  28403. done
  28404. echo "$as_me:$LINENO: checking for int8_t" >&5
  28405. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
  28406. if test "${ac_cv_type_int8_t+set}" = set; then
  28407. echo $ECHO_N "(cached) $ECHO_C" >&6
  28408. else
  28409. cat >conftest.$ac_ext <<_ACEOF
  28410. /* confdefs.h. */
  28411. _ACEOF
  28412. cat confdefs.h >>conftest.$ac_ext
  28413. cat >>conftest.$ac_ext <<_ACEOF
  28414. /* end confdefs.h. */
  28415. $ac_includes_default
  28416. int
  28417. main ()
  28418. {
  28419. if ((int8_t *) 0)
  28420. return 0;
  28421. if (sizeof (int8_t))
  28422. return 0;
  28423. ;
  28424. return 0;
  28425. }
  28426. _ACEOF
  28427. rm -f conftest.$ac_objext
  28428. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28429. (eval $ac_compile) 2>conftest.er1
  28430. ac_status=$?
  28431. grep -v '^ *+' conftest.er1 >conftest.err
  28432. rm -f conftest.er1
  28433. cat conftest.err >&5
  28434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28435. (exit $ac_status); } &&
  28436. { ac_try='test -z "$ac_c_werror_flag"
  28437. || test ! -s conftest.err'
  28438. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28439. (eval $ac_try) 2>&5
  28440. ac_status=$?
  28441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28442. (exit $ac_status); }; } &&
  28443. { ac_try='test -s conftest.$ac_objext'
  28444. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28445. (eval $ac_try) 2>&5
  28446. ac_status=$?
  28447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28448. (exit $ac_status); }; }; then
  28449. ac_cv_type_int8_t=yes
  28450. else
  28451. echo "$as_me: failed program was:" >&5
  28452. sed 's/^/| /' conftest.$ac_ext >&5
  28453. ac_cv_type_int8_t=no
  28454. fi
  28455. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28456. fi
  28457. echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  28458. echo "${ECHO_T}$ac_cv_type_int8_t" >&6
  28459. if test $ac_cv_type_int8_t = yes; then
  28460. cat >>confdefs.h <<_ACEOF
  28461. #define HAVE_INT8_T 1
  28462. _ACEOF
  28463. fi
  28464. echo "$as_me:$LINENO: checking for uint8_t" >&5
  28465. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
  28466. if test "${ac_cv_type_uint8_t+set}" = set; then
  28467. echo $ECHO_N "(cached) $ECHO_C" >&6
  28468. else
  28469. cat >conftest.$ac_ext <<_ACEOF
  28470. /* confdefs.h. */
  28471. _ACEOF
  28472. cat confdefs.h >>conftest.$ac_ext
  28473. cat >>conftest.$ac_ext <<_ACEOF
  28474. /* end confdefs.h. */
  28475. $ac_includes_default
  28476. int
  28477. main ()
  28478. {
  28479. if ((uint8_t *) 0)
  28480. return 0;
  28481. if (sizeof (uint8_t))
  28482. return 0;
  28483. ;
  28484. return 0;
  28485. }
  28486. _ACEOF
  28487. rm -f conftest.$ac_objext
  28488. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28489. (eval $ac_compile) 2>conftest.er1
  28490. ac_status=$?
  28491. grep -v '^ *+' conftest.er1 >conftest.err
  28492. rm -f conftest.er1
  28493. cat conftest.err >&5
  28494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28495. (exit $ac_status); } &&
  28496. { ac_try='test -z "$ac_c_werror_flag"
  28497. || test ! -s conftest.err'
  28498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28499. (eval $ac_try) 2>&5
  28500. ac_status=$?
  28501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28502. (exit $ac_status); }; } &&
  28503. { ac_try='test -s conftest.$ac_objext'
  28504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28505. (eval $ac_try) 2>&5
  28506. ac_status=$?
  28507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28508. (exit $ac_status); }; }; then
  28509. ac_cv_type_uint8_t=yes
  28510. else
  28511. echo "$as_me: failed program was:" >&5
  28512. sed 's/^/| /' conftest.$ac_ext >&5
  28513. ac_cv_type_uint8_t=no
  28514. fi
  28515. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28516. fi
  28517. echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  28518. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
  28519. if test $ac_cv_type_uint8_t = yes; then
  28520. cat >>confdefs.h <<_ACEOF
  28521. #define HAVE_UINT8_T 1
  28522. _ACEOF
  28523. fi
  28524. echo "$as_me:$LINENO: checking for int16_t" >&5
  28525. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
  28526. if test "${ac_cv_type_int16_t+set}" = set; then
  28527. echo $ECHO_N "(cached) $ECHO_C" >&6
  28528. else
  28529. cat >conftest.$ac_ext <<_ACEOF
  28530. /* confdefs.h. */
  28531. _ACEOF
  28532. cat confdefs.h >>conftest.$ac_ext
  28533. cat >>conftest.$ac_ext <<_ACEOF
  28534. /* end confdefs.h. */
  28535. $ac_includes_default
  28536. int
  28537. main ()
  28538. {
  28539. if ((int16_t *) 0)
  28540. return 0;
  28541. if (sizeof (int16_t))
  28542. return 0;
  28543. ;
  28544. return 0;
  28545. }
  28546. _ACEOF
  28547. rm -f conftest.$ac_objext
  28548. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28549. (eval $ac_compile) 2>conftest.er1
  28550. ac_status=$?
  28551. grep -v '^ *+' conftest.er1 >conftest.err
  28552. rm -f conftest.er1
  28553. cat conftest.err >&5
  28554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28555. (exit $ac_status); } &&
  28556. { ac_try='test -z "$ac_c_werror_flag"
  28557. || test ! -s conftest.err'
  28558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28559. (eval $ac_try) 2>&5
  28560. ac_status=$?
  28561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28562. (exit $ac_status); }; } &&
  28563. { ac_try='test -s conftest.$ac_objext'
  28564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28565. (eval $ac_try) 2>&5
  28566. ac_status=$?
  28567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28568. (exit $ac_status); }; }; then
  28569. ac_cv_type_int16_t=yes
  28570. else
  28571. echo "$as_me: failed program was:" >&5
  28572. sed 's/^/| /' conftest.$ac_ext >&5
  28573. ac_cv_type_int16_t=no
  28574. fi
  28575. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28576. fi
  28577. echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  28578. echo "${ECHO_T}$ac_cv_type_int16_t" >&6
  28579. if test $ac_cv_type_int16_t = yes; then
  28580. cat >>confdefs.h <<_ACEOF
  28581. #define HAVE_INT16_T 1
  28582. _ACEOF
  28583. fi
  28584. echo "$as_me:$LINENO: checking for uint16_t" >&5
  28585. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
  28586. if test "${ac_cv_type_uint16_t+set}" = set; then
  28587. echo $ECHO_N "(cached) $ECHO_C" >&6
  28588. else
  28589. cat >conftest.$ac_ext <<_ACEOF
  28590. /* confdefs.h. */
  28591. _ACEOF
  28592. cat confdefs.h >>conftest.$ac_ext
  28593. cat >>conftest.$ac_ext <<_ACEOF
  28594. /* end confdefs.h. */
  28595. $ac_includes_default
  28596. int
  28597. main ()
  28598. {
  28599. if ((uint16_t *) 0)
  28600. return 0;
  28601. if (sizeof (uint16_t))
  28602. return 0;
  28603. ;
  28604. return 0;
  28605. }
  28606. _ACEOF
  28607. rm -f conftest.$ac_objext
  28608. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28609. (eval $ac_compile) 2>conftest.er1
  28610. ac_status=$?
  28611. grep -v '^ *+' conftest.er1 >conftest.err
  28612. rm -f conftest.er1
  28613. cat conftest.err >&5
  28614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28615. (exit $ac_status); } &&
  28616. { ac_try='test -z "$ac_c_werror_flag"
  28617. || test ! -s conftest.err'
  28618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28619. (eval $ac_try) 2>&5
  28620. ac_status=$?
  28621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28622. (exit $ac_status); }; } &&
  28623. { ac_try='test -s conftest.$ac_objext'
  28624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28625. (eval $ac_try) 2>&5
  28626. ac_status=$?
  28627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28628. (exit $ac_status); }; }; then
  28629. ac_cv_type_uint16_t=yes
  28630. else
  28631. echo "$as_me: failed program was:" >&5
  28632. sed 's/^/| /' conftest.$ac_ext >&5
  28633. ac_cv_type_uint16_t=no
  28634. fi
  28635. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28636. fi
  28637. echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  28638. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
  28639. if test $ac_cv_type_uint16_t = yes; then
  28640. cat >>confdefs.h <<_ACEOF
  28641. #define HAVE_UINT16_T 1
  28642. _ACEOF
  28643. fi
  28644. echo "$as_me:$LINENO: checking for int32_t" >&5
  28645. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
  28646. if test "${ac_cv_type_int32_t+set}" = set; then
  28647. echo $ECHO_N "(cached) $ECHO_C" >&6
  28648. else
  28649. cat >conftest.$ac_ext <<_ACEOF
  28650. /* confdefs.h. */
  28651. _ACEOF
  28652. cat confdefs.h >>conftest.$ac_ext
  28653. cat >>conftest.$ac_ext <<_ACEOF
  28654. /* end confdefs.h. */
  28655. $ac_includes_default
  28656. int
  28657. main ()
  28658. {
  28659. if ((int32_t *) 0)
  28660. return 0;
  28661. if (sizeof (int32_t))
  28662. return 0;
  28663. ;
  28664. return 0;
  28665. }
  28666. _ACEOF
  28667. rm -f conftest.$ac_objext
  28668. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28669. (eval $ac_compile) 2>conftest.er1
  28670. ac_status=$?
  28671. grep -v '^ *+' conftest.er1 >conftest.err
  28672. rm -f conftest.er1
  28673. cat conftest.err >&5
  28674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28675. (exit $ac_status); } &&
  28676. { ac_try='test -z "$ac_c_werror_flag"
  28677. || test ! -s conftest.err'
  28678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28679. (eval $ac_try) 2>&5
  28680. ac_status=$?
  28681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28682. (exit $ac_status); }; } &&
  28683. { ac_try='test -s conftest.$ac_objext'
  28684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28685. (eval $ac_try) 2>&5
  28686. ac_status=$?
  28687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28688. (exit $ac_status); }; }; then
  28689. ac_cv_type_int32_t=yes
  28690. else
  28691. echo "$as_me: failed program was:" >&5
  28692. sed 's/^/| /' conftest.$ac_ext >&5
  28693. ac_cv_type_int32_t=no
  28694. fi
  28695. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28696. fi
  28697. echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  28698. echo "${ECHO_T}$ac_cv_type_int32_t" >&6
  28699. if test $ac_cv_type_int32_t = yes; then
  28700. cat >>confdefs.h <<_ACEOF
  28701. #define HAVE_INT32_T 1
  28702. _ACEOF
  28703. fi
  28704. echo "$as_me:$LINENO: checking for uint32_t" >&5
  28705. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
  28706. if test "${ac_cv_type_uint32_t+set}" = set; then
  28707. echo $ECHO_N "(cached) $ECHO_C" >&6
  28708. else
  28709. cat >conftest.$ac_ext <<_ACEOF
  28710. /* confdefs.h. */
  28711. _ACEOF
  28712. cat confdefs.h >>conftest.$ac_ext
  28713. cat >>conftest.$ac_ext <<_ACEOF
  28714. /* end confdefs.h. */
  28715. $ac_includes_default
  28716. int
  28717. main ()
  28718. {
  28719. if ((uint32_t *) 0)
  28720. return 0;
  28721. if (sizeof (uint32_t))
  28722. return 0;
  28723. ;
  28724. return 0;
  28725. }
  28726. _ACEOF
  28727. rm -f conftest.$ac_objext
  28728. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28729. (eval $ac_compile) 2>conftest.er1
  28730. ac_status=$?
  28731. grep -v '^ *+' conftest.er1 >conftest.err
  28732. rm -f conftest.er1
  28733. cat conftest.err >&5
  28734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28735. (exit $ac_status); } &&
  28736. { ac_try='test -z "$ac_c_werror_flag"
  28737. || test ! -s conftest.err'
  28738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28739. (eval $ac_try) 2>&5
  28740. ac_status=$?
  28741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28742. (exit $ac_status); }; } &&
  28743. { ac_try='test -s conftest.$ac_objext'
  28744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28745. (eval $ac_try) 2>&5
  28746. ac_status=$?
  28747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28748. (exit $ac_status); }; }; then
  28749. ac_cv_type_uint32_t=yes
  28750. else
  28751. echo "$as_me: failed program was:" >&5
  28752. sed 's/^/| /' conftest.$ac_ext >&5
  28753. ac_cv_type_uint32_t=no
  28754. fi
  28755. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28756. fi
  28757. echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  28758. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
  28759. if test $ac_cv_type_uint32_t = yes; then
  28760. cat >>confdefs.h <<_ACEOF
  28761. #define HAVE_UINT32_T 1
  28762. _ACEOF
  28763. fi
  28764. echo "$as_me:$LINENO: checking for intptr_t" >&5
  28765. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
  28766. if test "${ac_cv_type_intptr_t+set}" = set; then
  28767. echo $ECHO_N "(cached) $ECHO_C" >&6
  28768. else
  28769. cat >conftest.$ac_ext <<_ACEOF
  28770. /* confdefs.h. */
  28771. _ACEOF
  28772. cat confdefs.h >>conftest.$ac_ext
  28773. cat >>conftest.$ac_ext <<_ACEOF
  28774. /* end confdefs.h. */
  28775. $ac_includes_default
  28776. int
  28777. main ()
  28778. {
  28779. if ((intptr_t *) 0)
  28780. return 0;
  28781. if (sizeof (intptr_t))
  28782. return 0;
  28783. ;
  28784. return 0;
  28785. }
  28786. _ACEOF
  28787. rm -f conftest.$ac_objext
  28788. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28789. (eval $ac_compile) 2>conftest.er1
  28790. ac_status=$?
  28791. grep -v '^ *+' conftest.er1 >conftest.err
  28792. rm -f conftest.er1
  28793. cat conftest.err >&5
  28794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28795. (exit $ac_status); } &&
  28796. { ac_try='test -z "$ac_c_werror_flag"
  28797. || test ! -s conftest.err'
  28798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28799. (eval $ac_try) 2>&5
  28800. ac_status=$?
  28801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28802. (exit $ac_status); }; } &&
  28803. { ac_try='test -s conftest.$ac_objext'
  28804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28805. (eval $ac_try) 2>&5
  28806. ac_status=$?
  28807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28808. (exit $ac_status); }; }; then
  28809. ac_cv_type_intptr_t=yes
  28810. else
  28811. echo "$as_me: failed program was:" >&5
  28812. sed 's/^/| /' conftest.$ac_ext >&5
  28813. ac_cv_type_intptr_t=no
  28814. fi
  28815. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28816. fi
  28817. echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  28818. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
  28819. if test $ac_cv_type_intptr_t = yes; then
  28820. cat >>confdefs.h <<_ACEOF
  28821. #define HAVE_INTPTR_T 1
  28822. _ACEOF
  28823. fi
  28824. # ====================
  28825. # uintptr type & sizes
  28826. # ====================
  28827. echo "$as_me:$LINENO: checking for uintptr_t" >&5
  28828. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
  28829. if test "${ac_cv_type_uintptr_t+set}" = set; then
  28830. echo $ECHO_N "(cached) $ECHO_C" >&6
  28831. else
  28832. cat >conftest.$ac_ext <<_ACEOF
  28833. /* confdefs.h. */
  28834. _ACEOF
  28835. cat confdefs.h >>conftest.$ac_ext
  28836. cat >>conftest.$ac_ext <<_ACEOF
  28837. /* end confdefs.h. */
  28838. $ac_includes_default
  28839. int
  28840. main ()
  28841. {
  28842. if ((uintptr_t *) 0)
  28843. return 0;
  28844. if (sizeof (uintptr_t))
  28845. return 0;
  28846. ;
  28847. return 0;
  28848. }
  28849. _ACEOF
  28850. rm -f conftest.$ac_objext
  28851. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28852. (eval $ac_compile) 2>conftest.er1
  28853. ac_status=$?
  28854. grep -v '^ *+' conftest.er1 >conftest.err
  28855. rm -f conftest.er1
  28856. cat conftest.err >&5
  28857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28858. (exit $ac_status); } &&
  28859. { ac_try='test -z "$ac_c_werror_flag"
  28860. || test ! -s conftest.err'
  28861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28862. (eval $ac_try) 2>&5
  28863. ac_status=$?
  28864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28865. (exit $ac_status); }; } &&
  28866. { ac_try='test -s conftest.$ac_objext'
  28867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28868. (eval $ac_try) 2>&5
  28869. ac_status=$?
  28870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28871. (exit $ac_status); }; }; then
  28872. ac_cv_type_uintptr_t=yes
  28873. else
  28874. echo "$as_me: failed program was:" >&5
  28875. sed 's/^/| /' conftest.$ac_ext >&5
  28876. ac_cv_type_uintptr_t=no
  28877. fi
  28878. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28879. fi
  28880. echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  28881. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
  28882. if test $ac_cv_type_uintptr_t = yes; then
  28883. cat >>confdefs.h <<_ACEOF
  28884. #define HAVE_UINTPTR_T 1
  28885. _ACEOF
  28886. else
  28887. cat >>confdefs.h <<\_ACEOF
  28888. #define uintptr_t unsigned long
  28889. _ACEOF
  28890. fi
  28891. echo "$as_me:$LINENO: checking for char*" >&5
  28892. echo $ECHO_N "checking for char*... $ECHO_C" >&6
  28893. if test "${ac_cv_type_charp+set}" = set; then
  28894. echo $ECHO_N "(cached) $ECHO_C" >&6
  28895. else
  28896. cat >conftest.$ac_ext <<_ACEOF
  28897. /* confdefs.h. */
  28898. _ACEOF
  28899. cat confdefs.h >>conftest.$ac_ext
  28900. cat >>conftest.$ac_ext <<_ACEOF
  28901. /* end confdefs.h. */
  28902. $ac_includes_default
  28903. int
  28904. main ()
  28905. {
  28906. if ((char* *) 0)
  28907. return 0;
  28908. if (sizeof (char*))
  28909. return 0;
  28910. ;
  28911. return 0;
  28912. }
  28913. _ACEOF
  28914. rm -f conftest.$ac_objext
  28915. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28916. (eval $ac_compile) 2>conftest.er1
  28917. ac_status=$?
  28918. grep -v '^ *+' conftest.er1 >conftest.err
  28919. rm -f conftest.er1
  28920. cat conftest.err >&5
  28921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28922. (exit $ac_status); } &&
  28923. { ac_try='test -z "$ac_c_werror_flag"
  28924. || test ! -s conftest.err'
  28925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28926. (eval $ac_try) 2>&5
  28927. ac_status=$?
  28928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28929. (exit $ac_status); }; } &&
  28930. { ac_try='test -s conftest.$ac_objext'
  28931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28932. (eval $ac_try) 2>&5
  28933. ac_status=$?
  28934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28935. (exit $ac_status); }; }; then
  28936. ac_cv_type_charp=yes
  28937. else
  28938. echo "$as_me: failed program was:" >&5
  28939. sed 's/^/| /' conftest.$ac_ext >&5
  28940. ac_cv_type_charp=no
  28941. fi
  28942. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28943. fi
  28944. echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  28945. echo "${ECHO_T}$ac_cv_type_charp" >&6
  28946. echo "$as_me:$LINENO: checking size of char*" >&5
  28947. echo $ECHO_N "checking size of char*... $ECHO_C" >&6
  28948. if test "${ac_cv_sizeof_charp+set}" = set; then
  28949. echo $ECHO_N "(cached) $ECHO_C" >&6
  28950. else
  28951. if test "$ac_cv_type_charp" = yes; then
  28952. # The cast to unsigned long works around a bug in the HP C Compiler
  28953. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  28954. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  28955. # This bug is HP SR number 8606223364.
  28956. if test "$cross_compiling" = yes; then
  28957. # Depending upon the size, compute the lo and hi bounds.
  28958. cat >conftest.$ac_ext <<_ACEOF
  28959. /* confdefs.h. */
  28960. _ACEOF
  28961. cat confdefs.h >>conftest.$ac_ext
  28962. cat >>conftest.$ac_ext <<_ACEOF
  28963. /* end confdefs.h. */
  28964. $ac_includes_default
  28965. int
  28966. main ()
  28967. {
  28968. static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
  28969. test_array [0] = 0
  28970. ;
  28971. return 0;
  28972. }
  28973. _ACEOF
  28974. rm -f conftest.$ac_objext
  28975. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28976. (eval $ac_compile) 2>conftest.er1
  28977. ac_status=$?
  28978. grep -v '^ *+' conftest.er1 >conftest.err
  28979. rm -f conftest.er1
  28980. cat conftest.err >&5
  28981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28982. (exit $ac_status); } &&
  28983. { ac_try='test -z "$ac_c_werror_flag"
  28984. || test ! -s conftest.err'
  28985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28986. (eval $ac_try) 2>&5
  28987. ac_status=$?
  28988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28989. (exit $ac_status); }; } &&
  28990. { ac_try='test -s conftest.$ac_objext'
  28991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28992. (eval $ac_try) 2>&5
  28993. ac_status=$?
  28994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28995. (exit $ac_status); }; }; then
  28996. ac_lo=0 ac_mid=0
  28997. while :; do
  28998. cat >conftest.$ac_ext <<_ACEOF
  28999. /* confdefs.h. */
  29000. _ACEOF
  29001. cat confdefs.h >>conftest.$ac_ext
  29002. cat >>conftest.$ac_ext <<_ACEOF
  29003. /* end confdefs.h. */
  29004. $ac_includes_default
  29005. int
  29006. main ()
  29007. {
  29008. static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
  29009. test_array [0] = 0
  29010. ;
  29011. return 0;
  29012. }
  29013. _ACEOF
  29014. rm -f conftest.$ac_objext
  29015. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29016. (eval $ac_compile) 2>conftest.er1
  29017. ac_status=$?
  29018. grep -v '^ *+' conftest.er1 >conftest.err
  29019. rm -f conftest.er1
  29020. cat conftest.err >&5
  29021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29022. (exit $ac_status); } &&
  29023. { ac_try='test -z "$ac_c_werror_flag"
  29024. || test ! -s conftest.err'
  29025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29026. (eval $ac_try) 2>&5
  29027. ac_status=$?
  29028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29029. (exit $ac_status); }; } &&
  29030. { ac_try='test -s conftest.$ac_objext'
  29031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29032. (eval $ac_try) 2>&5
  29033. ac_status=$?
  29034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29035. (exit $ac_status); }; }; then
  29036. ac_hi=$ac_mid; break
  29037. else
  29038. echo "$as_me: failed program was:" >&5
  29039. sed 's/^/| /' conftest.$ac_ext >&5
  29040. ac_lo=`expr $ac_mid + 1`
  29041. if test $ac_lo -le $ac_mid; then
  29042. ac_lo= ac_hi=
  29043. break
  29044. fi
  29045. ac_mid=`expr 2 '*' $ac_mid + 1`
  29046. fi
  29047. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29048. done
  29049. else
  29050. echo "$as_me: failed program was:" >&5
  29051. sed 's/^/| /' conftest.$ac_ext >&5
  29052. cat >conftest.$ac_ext <<_ACEOF
  29053. /* confdefs.h. */
  29054. _ACEOF
  29055. cat confdefs.h >>conftest.$ac_ext
  29056. cat >>conftest.$ac_ext <<_ACEOF
  29057. /* end confdefs.h. */
  29058. $ac_includes_default
  29059. int
  29060. main ()
  29061. {
  29062. static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
  29063. test_array [0] = 0
  29064. ;
  29065. return 0;
  29066. }
  29067. _ACEOF
  29068. rm -f conftest.$ac_objext
  29069. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29070. (eval $ac_compile) 2>conftest.er1
  29071. ac_status=$?
  29072. grep -v '^ *+' conftest.er1 >conftest.err
  29073. rm -f conftest.er1
  29074. cat conftest.err >&5
  29075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29076. (exit $ac_status); } &&
  29077. { ac_try='test -z "$ac_c_werror_flag"
  29078. || test ! -s conftest.err'
  29079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29080. (eval $ac_try) 2>&5
  29081. ac_status=$?
  29082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29083. (exit $ac_status); }; } &&
  29084. { ac_try='test -s conftest.$ac_objext'
  29085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29086. (eval $ac_try) 2>&5
  29087. ac_status=$?
  29088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29089. (exit $ac_status); }; }; then
  29090. ac_hi=-1 ac_mid=-1
  29091. while :; do
  29092. cat >conftest.$ac_ext <<_ACEOF
  29093. /* confdefs.h. */
  29094. _ACEOF
  29095. cat confdefs.h >>conftest.$ac_ext
  29096. cat >>conftest.$ac_ext <<_ACEOF
  29097. /* end confdefs.h. */
  29098. $ac_includes_default
  29099. int
  29100. main ()
  29101. {
  29102. static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
  29103. test_array [0] = 0
  29104. ;
  29105. return 0;
  29106. }
  29107. _ACEOF
  29108. rm -f conftest.$ac_objext
  29109. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29110. (eval $ac_compile) 2>conftest.er1
  29111. ac_status=$?
  29112. grep -v '^ *+' conftest.er1 >conftest.err
  29113. rm -f conftest.er1
  29114. cat conftest.err >&5
  29115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29116. (exit $ac_status); } &&
  29117. { ac_try='test -z "$ac_c_werror_flag"
  29118. || test ! -s conftest.err'
  29119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29120. (eval $ac_try) 2>&5
  29121. ac_status=$?
  29122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29123. (exit $ac_status); }; } &&
  29124. { ac_try='test -s conftest.$ac_objext'
  29125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29126. (eval $ac_try) 2>&5
  29127. ac_status=$?
  29128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29129. (exit $ac_status); }; }; then
  29130. ac_lo=$ac_mid; break
  29131. else
  29132. echo "$as_me: failed program was:" >&5
  29133. sed 's/^/| /' conftest.$ac_ext >&5
  29134. ac_hi=`expr '(' $ac_mid ')' - 1`
  29135. if test $ac_mid -le $ac_hi; then
  29136. ac_lo= ac_hi=
  29137. break
  29138. fi
  29139. ac_mid=`expr 2 '*' $ac_mid`
  29140. fi
  29141. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29142. done
  29143. else
  29144. echo "$as_me: failed program was:" >&5
  29145. sed 's/^/| /' conftest.$ac_ext >&5
  29146. ac_lo= ac_hi=
  29147. fi
  29148. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29149. fi
  29150. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29151. # Binary search between lo and hi bounds.
  29152. while test "x$ac_lo" != "x$ac_hi"; do
  29153. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  29154. cat >conftest.$ac_ext <<_ACEOF
  29155. /* confdefs.h. */
  29156. _ACEOF
  29157. cat confdefs.h >>conftest.$ac_ext
  29158. cat >>conftest.$ac_ext <<_ACEOF
  29159. /* end confdefs.h. */
  29160. $ac_includes_default
  29161. int
  29162. main ()
  29163. {
  29164. static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
  29165. test_array [0] = 0
  29166. ;
  29167. return 0;
  29168. }
  29169. _ACEOF
  29170. rm -f conftest.$ac_objext
  29171. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29172. (eval $ac_compile) 2>conftest.er1
  29173. ac_status=$?
  29174. grep -v '^ *+' conftest.er1 >conftest.err
  29175. rm -f conftest.er1
  29176. cat conftest.err >&5
  29177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29178. (exit $ac_status); } &&
  29179. { ac_try='test -z "$ac_c_werror_flag"
  29180. || test ! -s conftest.err'
  29181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29182. (eval $ac_try) 2>&5
  29183. ac_status=$?
  29184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29185. (exit $ac_status); }; } &&
  29186. { ac_try='test -s conftest.$ac_objext'
  29187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29188. (eval $ac_try) 2>&5
  29189. ac_status=$?
  29190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29191. (exit $ac_status); }; }; then
  29192. ac_hi=$ac_mid
  29193. else
  29194. echo "$as_me: failed program was:" >&5
  29195. sed 's/^/| /' conftest.$ac_ext >&5
  29196. ac_lo=`expr '(' $ac_mid ')' + 1`
  29197. fi
  29198. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29199. done
  29200. case $ac_lo in
  29201. ?*) ac_cv_sizeof_charp=$ac_lo;;
  29202. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
  29203. See \`config.log' for more details." >&5
  29204. echo "$as_me: error: cannot compute sizeof (char*), 77
  29205. See \`config.log' for more details." >&2;}
  29206. { (exit 1); exit 1; }; } ;;
  29207. esac
  29208. else
  29209. if test "$cross_compiling" = yes; then
  29210. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  29211. See \`config.log' for more details." >&5
  29212. echo "$as_me: error: cannot run test program while cross compiling
  29213. See \`config.log' for more details." >&2;}
  29214. { (exit 1); exit 1; }; }
  29215. else
  29216. cat >conftest.$ac_ext <<_ACEOF
  29217. /* confdefs.h. */
  29218. _ACEOF
  29219. cat confdefs.h >>conftest.$ac_ext
  29220. cat >>conftest.$ac_ext <<_ACEOF
  29221. /* end confdefs.h. */
  29222. $ac_includes_default
  29223. long longval () { return (long) (sizeof (char*)); }
  29224. unsigned long ulongval () { return (long) (sizeof (char*)); }
  29225. #include <stdio.h>
  29226. #include <stdlib.h>
  29227. int
  29228. main ()
  29229. {
  29230. FILE *f = fopen ("conftest.val", "w");
  29231. if (! f)
  29232. exit (1);
  29233. if (((long) (sizeof (char*))) < 0)
  29234. {
  29235. long i = longval ();
  29236. if (i != ((long) (sizeof (char*))))
  29237. exit (1);
  29238. fprintf (f, "%ld\n", i);
  29239. }
  29240. else
  29241. {
  29242. unsigned long i = ulongval ();
  29243. if (i != ((long) (sizeof (char*))))
  29244. exit (1);
  29245. fprintf (f, "%lu\n", i);
  29246. }
  29247. exit (ferror (f) || fclose (f) != 0);
  29248. ;
  29249. return 0;
  29250. }
  29251. _ACEOF
  29252. rm -f conftest$ac_exeext
  29253. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29254. (eval $ac_link) 2>&5
  29255. ac_status=$?
  29256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29257. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29259. (eval $ac_try) 2>&5
  29260. ac_status=$?
  29261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29262. (exit $ac_status); }; }; then
  29263. ac_cv_sizeof_charp=`cat conftest.val`
  29264. else
  29265. echo "$as_me: program exited with status $ac_status" >&5
  29266. echo "$as_me: failed program was:" >&5
  29267. sed 's/^/| /' conftest.$ac_ext >&5
  29268. ( exit $ac_status )
  29269. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
  29270. See \`config.log' for more details." >&5
  29271. echo "$as_me: error: cannot compute sizeof (char*), 77
  29272. See \`config.log' for more details." >&2;}
  29273. { (exit 1); exit 1; }; }
  29274. fi
  29275. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29276. fi
  29277. fi
  29278. rm -f conftest.val
  29279. else
  29280. ac_cv_sizeof_charp=0
  29281. fi
  29282. fi
  29283. echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  29284. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
  29285. cat >>confdefs.h <<_ACEOF
  29286. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  29287. _ACEOF
  29288. echo "$as_me:$LINENO: checking for int" >&5
  29289. echo $ECHO_N "checking for int... $ECHO_C" >&6
  29290. if test "${ac_cv_type_int+set}" = set; then
  29291. echo $ECHO_N "(cached) $ECHO_C" >&6
  29292. else
  29293. cat >conftest.$ac_ext <<_ACEOF
  29294. /* confdefs.h. */
  29295. _ACEOF
  29296. cat confdefs.h >>conftest.$ac_ext
  29297. cat >>conftest.$ac_ext <<_ACEOF
  29298. /* end confdefs.h. */
  29299. $ac_includes_default
  29300. int
  29301. main ()
  29302. {
  29303. if ((int *) 0)
  29304. return 0;
  29305. if (sizeof (int))
  29306. return 0;
  29307. ;
  29308. return 0;
  29309. }
  29310. _ACEOF
  29311. rm -f conftest.$ac_objext
  29312. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29313. (eval $ac_compile) 2>conftest.er1
  29314. ac_status=$?
  29315. grep -v '^ *+' conftest.er1 >conftest.err
  29316. rm -f conftest.er1
  29317. cat conftest.err >&5
  29318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29319. (exit $ac_status); } &&
  29320. { ac_try='test -z "$ac_c_werror_flag"
  29321. || test ! -s conftest.err'
  29322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29323. (eval $ac_try) 2>&5
  29324. ac_status=$?
  29325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29326. (exit $ac_status); }; } &&
  29327. { ac_try='test -s conftest.$ac_objext'
  29328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29329. (eval $ac_try) 2>&5
  29330. ac_status=$?
  29331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29332. (exit $ac_status); }; }; then
  29333. ac_cv_type_int=yes
  29334. else
  29335. echo "$as_me: failed program was:" >&5
  29336. sed 's/^/| /' conftest.$ac_ext >&5
  29337. ac_cv_type_int=no
  29338. fi
  29339. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29340. fi
  29341. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  29342. echo "${ECHO_T}$ac_cv_type_int" >&6
  29343. echo "$as_me:$LINENO: checking size of int" >&5
  29344. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  29345. if test "${ac_cv_sizeof_int+set}" = set; then
  29346. echo $ECHO_N "(cached) $ECHO_C" >&6
  29347. else
  29348. if test "$ac_cv_type_int" = yes; then
  29349. # The cast to unsigned long works around a bug in the HP C Compiler
  29350. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29351. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29352. # This bug is HP SR number 8606223364.
  29353. if test "$cross_compiling" = yes; then
  29354. # Depending upon the size, compute the lo and hi bounds.
  29355. cat >conftest.$ac_ext <<_ACEOF
  29356. /* confdefs.h. */
  29357. _ACEOF
  29358. cat confdefs.h >>conftest.$ac_ext
  29359. cat >>conftest.$ac_ext <<_ACEOF
  29360. /* end confdefs.h. */
  29361. $ac_includes_default
  29362. int
  29363. main ()
  29364. {
  29365. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  29366. test_array [0] = 0
  29367. ;
  29368. return 0;
  29369. }
  29370. _ACEOF
  29371. rm -f conftest.$ac_objext
  29372. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29373. (eval $ac_compile) 2>conftest.er1
  29374. ac_status=$?
  29375. grep -v '^ *+' conftest.er1 >conftest.err
  29376. rm -f conftest.er1
  29377. cat conftest.err >&5
  29378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29379. (exit $ac_status); } &&
  29380. { ac_try='test -z "$ac_c_werror_flag"
  29381. || test ! -s conftest.err'
  29382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29383. (eval $ac_try) 2>&5
  29384. ac_status=$?
  29385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29386. (exit $ac_status); }; } &&
  29387. { ac_try='test -s conftest.$ac_objext'
  29388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29389. (eval $ac_try) 2>&5
  29390. ac_status=$?
  29391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29392. (exit $ac_status); }; }; then
  29393. ac_lo=0 ac_mid=0
  29394. while :; do
  29395. cat >conftest.$ac_ext <<_ACEOF
  29396. /* confdefs.h. */
  29397. _ACEOF
  29398. cat confdefs.h >>conftest.$ac_ext
  29399. cat >>conftest.$ac_ext <<_ACEOF
  29400. /* end confdefs.h. */
  29401. $ac_includes_default
  29402. int
  29403. main ()
  29404. {
  29405. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  29406. test_array [0] = 0
  29407. ;
  29408. return 0;
  29409. }
  29410. _ACEOF
  29411. rm -f conftest.$ac_objext
  29412. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29413. (eval $ac_compile) 2>conftest.er1
  29414. ac_status=$?
  29415. grep -v '^ *+' conftest.er1 >conftest.err
  29416. rm -f conftest.er1
  29417. cat conftest.err >&5
  29418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29419. (exit $ac_status); } &&
  29420. { ac_try='test -z "$ac_c_werror_flag"
  29421. || test ! -s conftest.err'
  29422. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29423. (eval $ac_try) 2>&5
  29424. ac_status=$?
  29425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29426. (exit $ac_status); }; } &&
  29427. { ac_try='test -s conftest.$ac_objext'
  29428. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29429. (eval $ac_try) 2>&5
  29430. ac_status=$?
  29431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29432. (exit $ac_status); }; }; then
  29433. ac_hi=$ac_mid; break
  29434. else
  29435. echo "$as_me: failed program was:" >&5
  29436. sed 's/^/| /' conftest.$ac_ext >&5
  29437. ac_lo=`expr $ac_mid + 1`
  29438. if test $ac_lo -le $ac_mid; then
  29439. ac_lo= ac_hi=
  29440. break
  29441. fi
  29442. ac_mid=`expr 2 '*' $ac_mid + 1`
  29443. fi
  29444. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29445. done
  29446. else
  29447. echo "$as_me: failed program was:" >&5
  29448. sed 's/^/| /' conftest.$ac_ext >&5
  29449. cat >conftest.$ac_ext <<_ACEOF
  29450. /* confdefs.h. */
  29451. _ACEOF
  29452. cat confdefs.h >>conftest.$ac_ext
  29453. cat >>conftest.$ac_ext <<_ACEOF
  29454. /* end confdefs.h. */
  29455. $ac_includes_default
  29456. int
  29457. main ()
  29458. {
  29459. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  29460. test_array [0] = 0
  29461. ;
  29462. return 0;
  29463. }
  29464. _ACEOF
  29465. rm -f conftest.$ac_objext
  29466. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29467. (eval $ac_compile) 2>conftest.er1
  29468. ac_status=$?
  29469. grep -v '^ *+' conftest.er1 >conftest.err
  29470. rm -f conftest.er1
  29471. cat conftest.err >&5
  29472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29473. (exit $ac_status); } &&
  29474. { ac_try='test -z "$ac_c_werror_flag"
  29475. || test ! -s conftest.err'
  29476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29477. (eval $ac_try) 2>&5
  29478. ac_status=$?
  29479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29480. (exit $ac_status); }; } &&
  29481. { ac_try='test -s conftest.$ac_objext'
  29482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29483. (eval $ac_try) 2>&5
  29484. ac_status=$?
  29485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29486. (exit $ac_status); }; }; then
  29487. ac_hi=-1 ac_mid=-1
  29488. while :; do
  29489. cat >conftest.$ac_ext <<_ACEOF
  29490. /* confdefs.h. */
  29491. _ACEOF
  29492. cat confdefs.h >>conftest.$ac_ext
  29493. cat >>conftest.$ac_ext <<_ACEOF
  29494. /* end confdefs.h. */
  29495. $ac_includes_default
  29496. int
  29497. main ()
  29498. {
  29499. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  29500. test_array [0] = 0
  29501. ;
  29502. return 0;
  29503. }
  29504. _ACEOF
  29505. rm -f conftest.$ac_objext
  29506. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29507. (eval $ac_compile) 2>conftest.er1
  29508. ac_status=$?
  29509. grep -v '^ *+' conftest.er1 >conftest.err
  29510. rm -f conftest.er1
  29511. cat conftest.err >&5
  29512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29513. (exit $ac_status); } &&
  29514. { ac_try='test -z "$ac_c_werror_flag"
  29515. || test ! -s conftest.err'
  29516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29517. (eval $ac_try) 2>&5
  29518. ac_status=$?
  29519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29520. (exit $ac_status); }; } &&
  29521. { ac_try='test -s conftest.$ac_objext'
  29522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29523. (eval $ac_try) 2>&5
  29524. ac_status=$?
  29525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29526. (exit $ac_status); }; }; then
  29527. ac_lo=$ac_mid; break
  29528. else
  29529. echo "$as_me: failed program was:" >&5
  29530. sed 's/^/| /' conftest.$ac_ext >&5
  29531. ac_hi=`expr '(' $ac_mid ')' - 1`
  29532. if test $ac_mid -le $ac_hi; then
  29533. ac_lo= ac_hi=
  29534. break
  29535. fi
  29536. ac_mid=`expr 2 '*' $ac_mid`
  29537. fi
  29538. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29539. done
  29540. else
  29541. echo "$as_me: failed program was:" >&5
  29542. sed 's/^/| /' conftest.$ac_ext >&5
  29543. ac_lo= ac_hi=
  29544. fi
  29545. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29546. fi
  29547. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29548. # Binary search between lo and hi bounds.
  29549. while test "x$ac_lo" != "x$ac_hi"; do
  29550. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  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. int
  29559. main ()
  29560. {
  29561. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  29562. test_array [0] = 0
  29563. ;
  29564. return 0;
  29565. }
  29566. _ACEOF
  29567. rm -f conftest.$ac_objext
  29568. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29569. (eval $ac_compile) 2>conftest.er1
  29570. ac_status=$?
  29571. grep -v '^ *+' conftest.er1 >conftest.err
  29572. rm -f conftest.er1
  29573. cat conftest.err >&5
  29574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29575. (exit $ac_status); } &&
  29576. { ac_try='test -z "$ac_c_werror_flag"
  29577. || test ! -s conftest.err'
  29578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29579. (eval $ac_try) 2>&5
  29580. ac_status=$?
  29581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29582. (exit $ac_status); }; } &&
  29583. { ac_try='test -s conftest.$ac_objext'
  29584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29585. (eval $ac_try) 2>&5
  29586. ac_status=$?
  29587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29588. (exit $ac_status); }; }; then
  29589. ac_hi=$ac_mid
  29590. else
  29591. echo "$as_me: failed program was:" >&5
  29592. sed 's/^/| /' conftest.$ac_ext >&5
  29593. ac_lo=`expr '(' $ac_mid ')' + 1`
  29594. fi
  29595. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29596. done
  29597. case $ac_lo in
  29598. ?*) ac_cv_sizeof_int=$ac_lo;;
  29599. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  29600. See \`config.log' for more details." >&5
  29601. echo "$as_me: error: cannot compute sizeof (int), 77
  29602. See \`config.log' for more details." >&2;}
  29603. { (exit 1); exit 1; }; } ;;
  29604. esac
  29605. else
  29606. if test "$cross_compiling" = yes; then
  29607. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  29608. See \`config.log' for more details." >&5
  29609. echo "$as_me: error: cannot run test program while cross compiling
  29610. See \`config.log' for more details." >&2;}
  29611. { (exit 1); exit 1; }; }
  29612. else
  29613. cat >conftest.$ac_ext <<_ACEOF
  29614. /* confdefs.h. */
  29615. _ACEOF
  29616. cat confdefs.h >>conftest.$ac_ext
  29617. cat >>conftest.$ac_ext <<_ACEOF
  29618. /* end confdefs.h. */
  29619. $ac_includes_default
  29620. long longval () { return (long) (sizeof (int)); }
  29621. unsigned long ulongval () { return (long) (sizeof (int)); }
  29622. #include <stdio.h>
  29623. #include <stdlib.h>
  29624. int
  29625. main ()
  29626. {
  29627. FILE *f = fopen ("conftest.val", "w");
  29628. if (! f)
  29629. exit (1);
  29630. if (((long) (sizeof (int))) < 0)
  29631. {
  29632. long i = longval ();
  29633. if (i != ((long) (sizeof (int))))
  29634. exit (1);
  29635. fprintf (f, "%ld\n", i);
  29636. }
  29637. else
  29638. {
  29639. unsigned long i = ulongval ();
  29640. if (i != ((long) (sizeof (int))))
  29641. exit (1);
  29642. fprintf (f, "%lu\n", i);
  29643. }
  29644. exit (ferror (f) || fclose (f) != 0);
  29645. ;
  29646. return 0;
  29647. }
  29648. _ACEOF
  29649. rm -f conftest$ac_exeext
  29650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29651. (eval $ac_link) 2>&5
  29652. ac_status=$?
  29653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29654. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29656. (eval $ac_try) 2>&5
  29657. ac_status=$?
  29658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29659. (exit $ac_status); }; }; then
  29660. ac_cv_sizeof_int=`cat conftest.val`
  29661. else
  29662. echo "$as_me: program exited with status $ac_status" >&5
  29663. echo "$as_me: failed program was:" >&5
  29664. sed 's/^/| /' conftest.$ac_ext >&5
  29665. ( exit $ac_status )
  29666. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  29667. See \`config.log' for more details." >&5
  29668. echo "$as_me: error: cannot compute sizeof (int), 77
  29669. See \`config.log' for more details." >&2;}
  29670. { (exit 1); exit 1; }; }
  29671. fi
  29672. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29673. fi
  29674. fi
  29675. rm -f conftest.val
  29676. else
  29677. ac_cv_sizeof_int=0
  29678. fi
  29679. fi
  29680. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  29681. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  29682. cat >>confdefs.h <<_ACEOF
  29683. #define SIZEOF_INT $ac_cv_sizeof_int
  29684. _ACEOF
  29685. echo "$as_me:$LINENO: checking for long" >&5
  29686. echo $ECHO_N "checking for long... $ECHO_C" >&6
  29687. if test "${ac_cv_type_long+set}" = set; then
  29688. echo $ECHO_N "(cached) $ECHO_C" >&6
  29689. else
  29690. cat >conftest.$ac_ext <<_ACEOF
  29691. /* confdefs.h. */
  29692. _ACEOF
  29693. cat confdefs.h >>conftest.$ac_ext
  29694. cat >>conftest.$ac_ext <<_ACEOF
  29695. /* end confdefs.h. */
  29696. $ac_includes_default
  29697. int
  29698. main ()
  29699. {
  29700. if ((long *) 0)
  29701. return 0;
  29702. if (sizeof (long))
  29703. return 0;
  29704. ;
  29705. return 0;
  29706. }
  29707. _ACEOF
  29708. rm -f conftest.$ac_objext
  29709. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29710. (eval $ac_compile) 2>conftest.er1
  29711. ac_status=$?
  29712. grep -v '^ *+' conftest.er1 >conftest.err
  29713. rm -f conftest.er1
  29714. cat conftest.err >&5
  29715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29716. (exit $ac_status); } &&
  29717. { ac_try='test -z "$ac_c_werror_flag"
  29718. || test ! -s conftest.err'
  29719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29720. (eval $ac_try) 2>&5
  29721. ac_status=$?
  29722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29723. (exit $ac_status); }; } &&
  29724. { ac_try='test -s conftest.$ac_objext'
  29725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29726. (eval $ac_try) 2>&5
  29727. ac_status=$?
  29728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29729. (exit $ac_status); }; }; then
  29730. ac_cv_type_long=yes
  29731. else
  29732. echo "$as_me: failed program was:" >&5
  29733. sed 's/^/| /' conftest.$ac_ext >&5
  29734. ac_cv_type_long=no
  29735. fi
  29736. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29737. fi
  29738. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  29739. echo "${ECHO_T}$ac_cv_type_long" >&6
  29740. echo "$as_me:$LINENO: checking size of long" >&5
  29741. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  29742. if test "${ac_cv_sizeof_long+set}" = set; then
  29743. echo $ECHO_N "(cached) $ECHO_C" >&6
  29744. else
  29745. if test "$ac_cv_type_long" = yes; then
  29746. # The cast to unsigned long works around a bug in the HP C Compiler
  29747. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29748. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29749. # This bug is HP SR number 8606223364.
  29750. if test "$cross_compiling" = yes; then
  29751. # Depending upon the size, compute the lo and hi bounds.
  29752. cat >conftest.$ac_ext <<_ACEOF
  29753. /* confdefs.h. */
  29754. _ACEOF
  29755. cat confdefs.h >>conftest.$ac_ext
  29756. cat >>conftest.$ac_ext <<_ACEOF
  29757. /* end confdefs.h. */
  29758. $ac_includes_default
  29759. int
  29760. main ()
  29761. {
  29762. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  29763. test_array [0] = 0
  29764. ;
  29765. return 0;
  29766. }
  29767. _ACEOF
  29768. rm -f conftest.$ac_objext
  29769. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29770. (eval $ac_compile) 2>conftest.er1
  29771. ac_status=$?
  29772. grep -v '^ *+' conftest.er1 >conftest.err
  29773. rm -f conftest.er1
  29774. cat conftest.err >&5
  29775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29776. (exit $ac_status); } &&
  29777. { ac_try='test -z "$ac_c_werror_flag"
  29778. || test ! -s conftest.err'
  29779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29780. (eval $ac_try) 2>&5
  29781. ac_status=$?
  29782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29783. (exit $ac_status); }; } &&
  29784. { ac_try='test -s conftest.$ac_objext'
  29785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29786. (eval $ac_try) 2>&5
  29787. ac_status=$?
  29788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29789. (exit $ac_status); }; }; then
  29790. ac_lo=0 ac_mid=0
  29791. while :; do
  29792. cat >conftest.$ac_ext <<_ACEOF
  29793. /* confdefs.h. */
  29794. _ACEOF
  29795. cat confdefs.h >>conftest.$ac_ext
  29796. cat >>conftest.$ac_ext <<_ACEOF
  29797. /* end confdefs.h. */
  29798. $ac_includes_default
  29799. int
  29800. main ()
  29801. {
  29802. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  29803. test_array [0] = 0
  29804. ;
  29805. return 0;
  29806. }
  29807. _ACEOF
  29808. rm -f conftest.$ac_objext
  29809. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29810. (eval $ac_compile) 2>conftest.er1
  29811. ac_status=$?
  29812. grep -v '^ *+' conftest.er1 >conftest.err
  29813. rm -f conftest.er1
  29814. cat conftest.err >&5
  29815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29816. (exit $ac_status); } &&
  29817. { ac_try='test -z "$ac_c_werror_flag"
  29818. || test ! -s conftest.err'
  29819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29820. (eval $ac_try) 2>&5
  29821. ac_status=$?
  29822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29823. (exit $ac_status); }; } &&
  29824. { ac_try='test -s conftest.$ac_objext'
  29825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29826. (eval $ac_try) 2>&5
  29827. ac_status=$?
  29828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29829. (exit $ac_status); }; }; then
  29830. ac_hi=$ac_mid; break
  29831. else
  29832. echo "$as_me: failed program was:" >&5
  29833. sed 's/^/| /' conftest.$ac_ext >&5
  29834. ac_lo=`expr $ac_mid + 1`
  29835. if test $ac_lo -le $ac_mid; then
  29836. ac_lo= ac_hi=
  29837. break
  29838. fi
  29839. ac_mid=`expr 2 '*' $ac_mid + 1`
  29840. fi
  29841. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29842. done
  29843. else
  29844. echo "$as_me: failed program was:" >&5
  29845. sed 's/^/| /' conftest.$ac_ext >&5
  29846. cat >conftest.$ac_ext <<_ACEOF
  29847. /* confdefs.h. */
  29848. _ACEOF
  29849. cat confdefs.h >>conftest.$ac_ext
  29850. cat >>conftest.$ac_ext <<_ACEOF
  29851. /* end confdefs.h. */
  29852. $ac_includes_default
  29853. int
  29854. main ()
  29855. {
  29856. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  29857. test_array [0] = 0
  29858. ;
  29859. return 0;
  29860. }
  29861. _ACEOF
  29862. rm -f conftest.$ac_objext
  29863. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29864. (eval $ac_compile) 2>conftest.er1
  29865. ac_status=$?
  29866. grep -v '^ *+' conftest.er1 >conftest.err
  29867. rm -f conftest.er1
  29868. cat conftest.err >&5
  29869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29870. (exit $ac_status); } &&
  29871. { ac_try='test -z "$ac_c_werror_flag"
  29872. || test ! -s conftest.err'
  29873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29874. (eval $ac_try) 2>&5
  29875. ac_status=$?
  29876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29877. (exit $ac_status); }; } &&
  29878. { ac_try='test -s conftest.$ac_objext'
  29879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29880. (eval $ac_try) 2>&5
  29881. ac_status=$?
  29882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29883. (exit $ac_status); }; }; then
  29884. ac_hi=-1 ac_mid=-1
  29885. while :; do
  29886. cat >conftest.$ac_ext <<_ACEOF
  29887. /* confdefs.h. */
  29888. _ACEOF
  29889. cat confdefs.h >>conftest.$ac_ext
  29890. cat >>conftest.$ac_ext <<_ACEOF
  29891. /* end confdefs.h. */
  29892. $ac_includes_default
  29893. int
  29894. main ()
  29895. {
  29896. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  29897. test_array [0] = 0
  29898. ;
  29899. return 0;
  29900. }
  29901. _ACEOF
  29902. rm -f conftest.$ac_objext
  29903. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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. { ac_try='test -z "$ac_c_werror_flag"
  29912. || test ! -s conftest.err'
  29913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29914. (eval $ac_try) 2>&5
  29915. ac_status=$?
  29916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29917. (exit $ac_status); }; } &&
  29918. { ac_try='test -s conftest.$ac_objext'
  29919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29920. (eval $ac_try) 2>&5
  29921. ac_status=$?
  29922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29923. (exit $ac_status); }; }; then
  29924. ac_lo=$ac_mid; break
  29925. else
  29926. echo "$as_me: failed program was:" >&5
  29927. sed 's/^/| /' conftest.$ac_ext >&5
  29928. ac_hi=`expr '(' $ac_mid ')' - 1`
  29929. if test $ac_mid -le $ac_hi; then
  29930. ac_lo= ac_hi=
  29931. break
  29932. fi
  29933. ac_mid=`expr 2 '*' $ac_mid`
  29934. fi
  29935. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29936. done
  29937. else
  29938. echo "$as_me: failed program was:" >&5
  29939. sed 's/^/| /' conftest.$ac_ext >&5
  29940. ac_lo= ac_hi=
  29941. fi
  29942. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29943. fi
  29944. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29945. # Binary search between lo and hi bounds.
  29946. while test "x$ac_lo" != "x$ac_hi"; do
  29947. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  29948. cat >conftest.$ac_ext <<_ACEOF
  29949. /* confdefs.h. */
  29950. _ACEOF
  29951. cat confdefs.h >>conftest.$ac_ext
  29952. cat >>conftest.$ac_ext <<_ACEOF
  29953. /* end confdefs.h. */
  29954. $ac_includes_default
  29955. int
  29956. main ()
  29957. {
  29958. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  29959. test_array [0] = 0
  29960. ;
  29961. return 0;
  29962. }
  29963. _ACEOF
  29964. rm -f conftest.$ac_objext
  29965. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29966. (eval $ac_compile) 2>conftest.er1
  29967. ac_status=$?
  29968. grep -v '^ *+' conftest.er1 >conftest.err
  29969. rm -f conftest.er1
  29970. cat conftest.err >&5
  29971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29972. (exit $ac_status); } &&
  29973. { ac_try='test -z "$ac_c_werror_flag"
  29974. || test ! -s conftest.err'
  29975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29976. (eval $ac_try) 2>&5
  29977. ac_status=$?
  29978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29979. (exit $ac_status); }; } &&
  29980. { ac_try='test -s conftest.$ac_objext'
  29981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29982. (eval $ac_try) 2>&5
  29983. ac_status=$?
  29984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29985. (exit $ac_status); }; }; then
  29986. ac_hi=$ac_mid
  29987. else
  29988. echo "$as_me: failed program was:" >&5
  29989. sed 's/^/| /' conftest.$ac_ext >&5
  29990. ac_lo=`expr '(' $ac_mid ')' + 1`
  29991. fi
  29992. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29993. done
  29994. case $ac_lo in
  29995. ?*) ac_cv_sizeof_long=$ac_lo;;
  29996. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  29997. See \`config.log' for more details." >&5
  29998. echo "$as_me: error: cannot compute sizeof (long), 77
  29999. See \`config.log' for more details." >&2;}
  30000. { (exit 1); exit 1; }; } ;;
  30001. esac
  30002. else
  30003. if test "$cross_compiling" = yes; then
  30004. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  30005. See \`config.log' for more details." >&5
  30006. echo "$as_me: error: cannot run test program while cross compiling
  30007. See \`config.log' for more details." >&2;}
  30008. { (exit 1); exit 1; }; }
  30009. else
  30010. cat >conftest.$ac_ext <<_ACEOF
  30011. /* confdefs.h. */
  30012. _ACEOF
  30013. cat confdefs.h >>conftest.$ac_ext
  30014. cat >>conftest.$ac_ext <<_ACEOF
  30015. /* end confdefs.h. */
  30016. $ac_includes_default
  30017. long longval () { return (long) (sizeof (long)); }
  30018. unsigned long ulongval () { return (long) (sizeof (long)); }
  30019. #include <stdio.h>
  30020. #include <stdlib.h>
  30021. int
  30022. main ()
  30023. {
  30024. FILE *f = fopen ("conftest.val", "w");
  30025. if (! f)
  30026. exit (1);
  30027. if (((long) (sizeof (long))) < 0)
  30028. {
  30029. long i = longval ();
  30030. if (i != ((long) (sizeof (long))))
  30031. exit (1);
  30032. fprintf (f, "%ld\n", i);
  30033. }
  30034. else
  30035. {
  30036. unsigned long i = ulongval ();
  30037. if (i != ((long) (sizeof (long))))
  30038. exit (1);
  30039. fprintf (f, "%lu\n", i);
  30040. }
  30041. exit (ferror (f) || fclose (f) != 0);
  30042. ;
  30043. return 0;
  30044. }
  30045. _ACEOF
  30046. rm -f conftest$ac_exeext
  30047. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30048. (eval $ac_link) 2>&5
  30049. ac_status=$?
  30050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30051. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30053. (eval $ac_try) 2>&5
  30054. ac_status=$?
  30055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30056. (exit $ac_status); }; }; then
  30057. ac_cv_sizeof_long=`cat conftest.val`
  30058. else
  30059. echo "$as_me: program exited with status $ac_status" >&5
  30060. echo "$as_me: failed program was:" >&5
  30061. sed 's/^/| /' conftest.$ac_ext >&5
  30062. ( exit $ac_status )
  30063. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  30064. See \`config.log' for more details." >&5
  30065. echo "$as_me: error: cannot compute sizeof (long), 77
  30066. See \`config.log' for more details." >&2;}
  30067. { (exit 1); exit 1; }; }
  30068. fi
  30069. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30070. fi
  30071. fi
  30072. rm -f conftest.val
  30073. else
  30074. ac_cv_sizeof_long=0
  30075. fi
  30076. fi
  30077. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  30078. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  30079. cat >>confdefs.h <<_ACEOF
  30080. #define SIZEOF_LONG $ac_cv_sizeof_long
  30081. _ACEOF
  30082. echo "$as_me:$LINENO: checking for short" >&5
  30083. echo $ECHO_N "checking for short... $ECHO_C" >&6
  30084. if test "${ac_cv_type_short+set}" = set; then
  30085. echo $ECHO_N "(cached) $ECHO_C" >&6
  30086. else
  30087. cat >conftest.$ac_ext <<_ACEOF
  30088. /* confdefs.h. */
  30089. _ACEOF
  30090. cat confdefs.h >>conftest.$ac_ext
  30091. cat >>conftest.$ac_ext <<_ACEOF
  30092. /* end confdefs.h. */
  30093. $ac_includes_default
  30094. int
  30095. main ()
  30096. {
  30097. if ((short *) 0)
  30098. return 0;
  30099. if (sizeof (short))
  30100. return 0;
  30101. ;
  30102. return 0;
  30103. }
  30104. _ACEOF
  30105. rm -f conftest.$ac_objext
  30106. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30107. (eval $ac_compile) 2>conftest.er1
  30108. ac_status=$?
  30109. grep -v '^ *+' conftest.er1 >conftest.err
  30110. rm -f conftest.er1
  30111. cat conftest.err >&5
  30112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30113. (exit $ac_status); } &&
  30114. { ac_try='test -z "$ac_c_werror_flag"
  30115. || test ! -s conftest.err'
  30116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30117. (eval $ac_try) 2>&5
  30118. ac_status=$?
  30119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30120. (exit $ac_status); }; } &&
  30121. { ac_try='test -s conftest.$ac_objext'
  30122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30123. (eval $ac_try) 2>&5
  30124. ac_status=$?
  30125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30126. (exit $ac_status); }; }; then
  30127. ac_cv_type_short=yes
  30128. else
  30129. echo "$as_me: failed program was:" >&5
  30130. sed 's/^/| /' conftest.$ac_ext >&5
  30131. ac_cv_type_short=no
  30132. fi
  30133. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30134. fi
  30135. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  30136. echo "${ECHO_T}$ac_cv_type_short" >&6
  30137. echo "$as_me:$LINENO: checking size of short" >&5
  30138. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  30139. if test "${ac_cv_sizeof_short+set}" = set; then
  30140. echo $ECHO_N "(cached) $ECHO_C" >&6
  30141. else
  30142. if test "$ac_cv_type_short" = yes; then
  30143. # The cast to unsigned long works around a bug in the HP C Compiler
  30144. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30145. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30146. # This bug is HP SR number 8606223364.
  30147. if test "$cross_compiling" = yes; then
  30148. # Depending upon the size, compute the lo and hi bounds.
  30149. cat >conftest.$ac_ext <<_ACEOF
  30150. /* confdefs.h. */
  30151. _ACEOF
  30152. cat confdefs.h >>conftest.$ac_ext
  30153. cat >>conftest.$ac_ext <<_ACEOF
  30154. /* end confdefs.h. */
  30155. $ac_includes_default
  30156. int
  30157. main ()
  30158. {
  30159. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  30160. test_array [0] = 0
  30161. ;
  30162. return 0;
  30163. }
  30164. _ACEOF
  30165. rm -f conftest.$ac_objext
  30166. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30167. (eval $ac_compile) 2>conftest.er1
  30168. ac_status=$?
  30169. grep -v '^ *+' conftest.er1 >conftest.err
  30170. rm -f conftest.er1
  30171. cat conftest.err >&5
  30172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30173. (exit $ac_status); } &&
  30174. { ac_try='test -z "$ac_c_werror_flag"
  30175. || test ! -s conftest.err'
  30176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30177. (eval $ac_try) 2>&5
  30178. ac_status=$?
  30179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30180. (exit $ac_status); }; } &&
  30181. { ac_try='test -s conftest.$ac_objext'
  30182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30183. (eval $ac_try) 2>&5
  30184. ac_status=$?
  30185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30186. (exit $ac_status); }; }; then
  30187. ac_lo=0 ac_mid=0
  30188. while :; do
  30189. cat >conftest.$ac_ext <<_ACEOF
  30190. /* confdefs.h. */
  30191. _ACEOF
  30192. cat confdefs.h >>conftest.$ac_ext
  30193. cat >>conftest.$ac_ext <<_ACEOF
  30194. /* end confdefs.h. */
  30195. $ac_includes_default
  30196. int
  30197. main ()
  30198. {
  30199. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  30200. test_array [0] = 0
  30201. ;
  30202. return 0;
  30203. }
  30204. _ACEOF
  30205. rm -f conftest.$ac_objext
  30206. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30207. (eval $ac_compile) 2>conftest.er1
  30208. ac_status=$?
  30209. grep -v '^ *+' conftest.er1 >conftest.err
  30210. rm -f conftest.er1
  30211. cat conftest.err >&5
  30212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30213. (exit $ac_status); } &&
  30214. { ac_try='test -z "$ac_c_werror_flag"
  30215. || test ! -s conftest.err'
  30216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30217. (eval $ac_try) 2>&5
  30218. ac_status=$?
  30219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30220. (exit $ac_status); }; } &&
  30221. { ac_try='test -s conftest.$ac_objext'
  30222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30223. (eval $ac_try) 2>&5
  30224. ac_status=$?
  30225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30226. (exit $ac_status); }; }; then
  30227. ac_hi=$ac_mid; break
  30228. else
  30229. echo "$as_me: failed program was:" >&5
  30230. sed 's/^/| /' conftest.$ac_ext >&5
  30231. ac_lo=`expr $ac_mid + 1`
  30232. if test $ac_lo -le $ac_mid; then
  30233. ac_lo= ac_hi=
  30234. break
  30235. fi
  30236. ac_mid=`expr 2 '*' $ac_mid + 1`
  30237. fi
  30238. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30239. done
  30240. else
  30241. echo "$as_me: failed program was:" >&5
  30242. sed 's/^/| /' conftest.$ac_ext >&5
  30243. cat >conftest.$ac_ext <<_ACEOF
  30244. /* confdefs.h. */
  30245. _ACEOF
  30246. cat confdefs.h >>conftest.$ac_ext
  30247. cat >>conftest.$ac_ext <<_ACEOF
  30248. /* end confdefs.h. */
  30249. $ac_includes_default
  30250. int
  30251. main ()
  30252. {
  30253. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  30254. test_array [0] = 0
  30255. ;
  30256. return 0;
  30257. }
  30258. _ACEOF
  30259. rm -f conftest.$ac_objext
  30260. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30261. (eval $ac_compile) 2>conftest.er1
  30262. ac_status=$?
  30263. grep -v '^ *+' conftest.er1 >conftest.err
  30264. rm -f conftest.er1
  30265. cat conftest.err >&5
  30266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30267. (exit $ac_status); } &&
  30268. { ac_try='test -z "$ac_c_werror_flag"
  30269. || test ! -s conftest.err'
  30270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30271. (eval $ac_try) 2>&5
  30272. ac_status=$?
  30273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30274. (exit $ac_status); }; } &&
  30275. { ac_try='test -s conftest.$ac_objext'
  30276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30277. (eval $ac_try) 2>&5
  30278. ac_status=$?
  30279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30280. (exit $ac_status); }; }; then
  30281. ac_hi=-1 ac_mid=-1
  30282. while :; do
  30283. cat >conftest.$ac_ext <<_ACEOF
  30284. /* confdefs.h. */
  30285. _ACEOF
  30286. cat confdefs.h >>conftest.$ac_ext
  30287. cat >>conftest.$ac_ext <<_ACEOF
  30288. /* end confdefs.h. */
  30289. $ac_includes_default
  30290. int
  30291. main ()
  30292. {
  30293. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  30294. test_array [0] = 0
  30295. ;
  30296. return 0;
  30297. }
  30298. _ACEOF
  30299. rm -f conftest.$ac_objext
  30300. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30301. (eval $ac_compile) 2>conftest.er1
  30302. ac_status=$?
  30303. grep -v '^ *+' conftest.er1 >conftest.err
  30304. rm -f conftest.er1
  30305. cat conftest.err >&5
  30306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30307. (exit $ac_status); } &&
  30308. { ac_try='test -z "$ac_c_werror_flag"
  30309. || test ! -s conftest.err'
  30310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30311. (eval $ac_try) 2>&5
  30312. ac_status=$?
  30313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30314. (exit $ac_status); }; } &&
  30315. { ac_try='test -s conftest.$ac_objext'
  30316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30317. (eval $ac_try) 2>&5
  30318. ac_status=$?
  30319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30320. (exit $ac_status); }; }; then
  30321. ac_lo=$ac_mid; break
  30322. else
  30323. echo "$as_me: failed program was:" >&5
  30324. sed 's/^/| /' conftest.$ac_ext >&5
  30325. ac_hi=`expr '(' $ac_mid ')' - 1`
  30326. if test $ac_mid -le $ac_hi; then
  30327. ac_lo= ac_hi=
  30328. break
  30329. fi
  30330. ac_mid=`expr 2 '*' $ac_mid`
  30331. fi
  30332. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30333. done
  30334. else
  30335. echo "$as_me: failed program was:" >&5
  30336. sed 's/^/| /' conftest.$ac_ext >&5
  30337. ac_lo= ac_hi=
  30338. fi
  30339. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30340. fi
  30341. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30342. # Binary search between lo and hi bounds.
  30343. while test "x$ac_lo" != "x$ac_hi"; do
  30344. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  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. int
  30353. main ()
  30354. {
  30355. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  30356. test_array [0] = 0
  30357. ;
  30358. return 0;
  30359. }
  30360. _ACEOF
  30361. rm -f conftest.$ac_objext
  30362. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30363. (eval $ac_compile) 2>conftest.er1
  30364. ac_status=$?
  30365. grep -v '^ *+' conftest.er1 >conftest.err
  30366. rm -f conftest.er1
  30367. cat conftest.err >&5
  30368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30369. (exit $ac_status); } &&
  30370. { ac_try='test -z "$ac_c_werror_flag"
  30371. || test ! -s conftest.err'
  30372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30373. (eval $ac_try) 2>&5
  30374. ac_status=$?
  30375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30376. (exit $ac_status); }; } &&
  30377. { ac_try='test -s conftest.$ac_objext'
  30378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30379. (eval $ac_try) 2>&5
  30380. ac_status=$?
  30381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30382. (exit $ac_status); }; }; then
  30383. ac_hi=$ac_mid
  30384. else
  30385. echo "$as_me: failed program was:" >&5
  30386. sed 's/^/| /' conftest.$ac_ext >&5
  30387. ac_lo=`expr '(' $ac_mid ')' + 1`
  30388. fi
  30389. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30390. done
  30391. case $ac_lo in
  30392. ?*) ac_cv_sizeof_short=$ac_lo;;
  30393. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  30394. See \`config.log' for more details." >&5
  30395. echo "$as_me: error: cannot compute sizeof (short), 77
  30396. See \`config.log' for more details." >&2;}
  30397. { (exit 1); exit 1; }; } ;;
  30398. esac
  30399. else
  30400. if test "$cross_compiling" = yes; then
  30401. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  30402. See \`config.log' for more details." >&5
  30403. echo "$as_me: error: cannot run test program while cross compiling
  30404. See \`config.log' for more details." >&2;}
  30405. { (exit 1); exit 1; }; }
  30406. else
  30407. cat >conftest.$ac_ext <<_ACEOF
  30408. /* confdefs.h. */
  30409. _ACEOF
  30410. cat confdefs.h >>conftest.$ac_ext
  30411. cat >>conftest.$ac_ext <<_ACEOF
  30412. /* end confdefs.h. */
  30413. $ac_includes_default
  30414. long longval () { return (long) (sizeof (short)); }
  30415. unsigned long ulongval () { return (long) (sizeof (short)); }
  30416. #include <stdio.h>
  30417. #include <stdlib.h>
  30418. int
  30419. main ()
  30420. {
  30421. FILE *f = fopen ("conftest.val", "w");
  30422. if (! f)
  30423. exit (1);
  30424. if (((long) (sizeof (short))) < 0)
  30425. {
  30426. long i = longval ();
  30427. if (i != ((long) (sizeof (short))))
  30428. exit (1);
  30429. fprintf (f, "%ld\n", i);
  30430. }
  30431. else
  30432. {
  30433. unsigned long i = ulongval ();
  30434. if (i != ((long) (sizeof (short))))
  30435. exit (1);
  30436. fprintf (f, "%lu\n", i);
  30437. }
  30438. exit (ferror (f) || fclose (f) != 0);
  30439. ;
  30440. return 0;
  30441. }
  30442. _ACEOF
  30443. rm -f conftest$ac_exeext
  30444. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30445. (eval $ac_link) 2>&5
  30446. ac_status=$?
  30447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30448. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30450. (eval $ac_try) 2>&5
  30451. ac_status=$?
  30452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30453. (exit $ac_status); }; }; then
  30454. ac_cv_sizeof_short=`cat conftest.val`
  30455. else
  30456. echo "$as_me: program exited with status $ac_status" >&5
  30457. echo "$as_me: failed program was:" >&5
  30458. sed 's/^/| /' conftest.$ac_ext >&5
  30459. ( exit $ac_status )
  30460. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  30461. See \`config.log' for more details." >&5
  30462. echo "$as_me: error: cannot compute sizeof (short), 77
  30463. See \`config.log' for more details." >&2;}
  30464. { (exit 1); exit 1; }; }
  30465. fi
  30466. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30467. fi
  30468. fi
  30469. rm -f conftest.val
  30470. else
  30471. ac_cv_sizeof_short=0
  30472. fi
  30473. fi
  30474. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  30475. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  30476. cat >>confdefs.h <<_ACEOF
  30477. #define SIZEOF_SHORT $ac_cv_sizeof_short
  30478. _ACEOF
  30479. # ----------------------------------------------------------------------
  30480. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  30481. # ----------------------------------------------------------------------
  30482. echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  30483. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
  30484. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  30485. echo $ECHO_N "(cached) $ECHO_C" >&6
  30486. else
  30487. ac_check_lib_save_LIBS=$LIBS
  30488. LIBS="-lgen $LIBS"
  30489. cat >conftest.$ac_ext <<_ACEOF
  30490. /* confdefs.h. */
  30491. _ACEOF
  30492. cat confdefs.h >>conftest.$ac_ext
  30493. cat >>conftest.$ac_ext <<_ACEOF
  30494. /* end confdefs.h. */
  30495. /* Override any gcc2 internal prototype to avoid an error. */
  30496. #ifdef __cplusplus
  30497. extern "C"
  30498. #endif
  30499. /* We use char because int might match the return type of a gcc2
  30500. builtin and then its argument prototype would still apply. */
  30501. char pathfind ();
  30502. int
  30503. main ()
  30504. {
  30505. pathfind ();
  30506. ;
  30507. return 0;
  30508. }
  30509. _ACEOF
  30510. rm -f conftest.$ac_objext conftest$ac_exeext
  30511. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30512. (eval $ac_link) 2>conftest.er1
  30513. ac_status=$?
  30514. grep -v '^ *+' conftest.er1 >conftest.err
  30515. rm -f conftest.er1
  30516. cat conftest.err >&5
  30517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30518. (exit $ac_status); } &&
  30519. { ac_try='test -z "$ac_c_werror_flag"
  30520. || test ! -s conftest.err'
  30521. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30522. (eval $ac_try) 2>&5
  30523. ac_status=$?
  30524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30525. (exit $ac_status); }; } &&
  30526. { ac_try='test -s conftest$ac_exeext'
  30527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30528. (eval $ac_try) 2>&5
  30529. ac_status=$?
  30530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30531. (exit $ac_status); }; }; then
  30532. ac_cv_lib_gen_pathfind=yes
  30533. else
  30534. echo "$as_me: failed program was:" >&5
  30535. sed 's/^/| /' conftest.$ac_ext >&5
  30536. ac_cv_lib_gen_pathfind=no
  30537. fi
  30538. rm -f conftest.err conftest.$ac_objext \
  30539. conftest$ac_exeext conftest.$ac_ext
  30540. LIBS=$ac_check_lib_save_LIBS
  30541. fi
  30542. echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  30543. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
  30544. if test $ac_cv_lib_gen_pathfind = yes; then
  30545. cat >>confdefs.h <<_ACEOF
  30546. #define HAVE_LIBGEN 1
  30547. _ACEOF
  30548. LIBS="-lgen $LIBS"
  30549. fi
  30550. for ac_func in vprintf
  30551. do
  30552. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30553. echo "$as_me:$LINENO: checking for $ac_func" >&5
  30554. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  30555. if eval "test \"\${$as_ac_var+set}\" = set"; then
  30556. echo $ECHO_N "(cached) $ECHO_C" >&6
  30557. else
  30558. cat >conftest.$ac_ext <<_ACEOF
  30559. /* confdefs.h. */
  30560. _ACEOF
  30561. cat confdefs.h >>conftest.$ac_ext
  30562. cat >>conftest.$ac_ext <<_ACEOF
  30563. /* end confdefs.h. */
  30564. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  30565. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  30566. #define $ac_func innocuous_$ac_func
  30567. /* System header to define __stub macros and hopefully few prototypes,
  30568. which can conflict with char $ac_func (); below.
  30569. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30570. <limits.h> exists even on freestanding compilers. */
  30571. #ifdef __STDC__
  30572. # include <limits.h>
  30573. #else
  30574. # include <assert.h>
  30575. #endif
  30576. #undef $ac_func
  30577. /* Override any gcc2 internal prototype to avoid an error. */
  30578. #ifdef __cplusplus
  30579. extern "C"
  30580. {
  30581. #endif
  30582. /* We use char because int might match the return type of a gcc2
  30583. builtin and then its argument prototype would still apply. */
  30584. char $ac_func ();
  30585. /* The GNU C library defines this for functions which it implements
  30586. to always fail with ENOSYS. Some functions are actually named
  30587. something starting with __ and the normal name is an alias. */
  30588. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  30589. choke me
  30590. #else
  30591. char (*f) () = $ac_func;
  30592. #endif
  30593. #ifdef __cplusplus
  30594. }
  30595. #endif
  30596. int
  30597. main ()
  30598. {
  30599. return f != $ac_func;
  30600. ;
  30601. return 0;
  30602. }
  30603. _ACEOF
  30604. rm -f conftest.$ac_objext conftest$ac_exeext
  30605. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30606. (eval $ac_link) 2>conftest.er1
  30607. ac_status=$?
  30608. grep -v '^ *+' conftest.er1 >conftest.err
  30609. rm -f conftest.er1
  30610. cat conftest.err >&5
  30611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30612. (exit $ac_status); } &&
  30613. { ac_try='test -z "$ac_c_werror_flag"
  30614. || test ! -s conftest.err'
  30615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30616. (eval $ac_try) 2>&5
  30617. ac_status=$?
  30618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30619. (exit $ac_status); }; } &&
  30620. { ac_try='test -s conftest$ac_exeext'
  30621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30622. (eval $ac_try) 2>&5
  30623. ac_status=$?
  30624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30625. (exit $ac_status); }; }; then
  30626. eval "$as_ac_var=yes"
  30627. else
  30628. echo "$as_me: failed program was:" >&5
  30629. sed 's/^/| /' conftest.$ac_ext >&5
  30630. eval "$as_ac_var=no"
  30631. fi
  30632. rm -f conftest.err conftest.$ac_objext \
  30633. conftest$ac_exeext conftest.$ac_ext
  30634. fi
  30635. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  30636. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  30637. if test `eval echo '${'$as_ac_var'}'` = yes; then
  30638. cat >>confdefs.h <<_ACEOF
  30639. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30640. _ACEOF
  30641. echo "$as_me:$LINENO: checking for _doprnt" >&5
  30642. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  30643. if test "${ac_cv_func__doprnt+set}" = set; then
  30644. echo $ECHO_N "(cached) $ECHO_C" >&6
  30645. else
  30646. cat >conftest.$ac_ext <<_ACEOF
  30647. /* confdefs.h. */
  30648. _ACEOF
  30649. cat confdefs.h >>conftest.$ac_ext
  30650. cat >>conftest.$ac_ext <<_ACEOF
  30651. /* end confdefs.h. */
  30652. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  30653. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  30654. #define _doprnt innocuous__doprnt
  30655. /* System header to define __stub macros and hopefully few prototypes,
  30656. which can conflict with char _doprnt (); below.
  30657. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30658. <limits.h> exists even on freestanding compilers. */
  30659. #ifdef __STDC__
  30660. # include <limits.h>
  30661. #else
  30662. # include <assert.h>
  30663. #endif
  30664. #undef _doprnt
  30665. /* Override any gcc2 internal prototype to avoid an error. */
  30666. #ifdef __cplusplus
  30667. extern "C"
  30668. {
  30669. #endif
  30670. /* We use char because int might match the return type of a gcc2
  30671. builtin and then its argument prototype would still apply. */
  30672. char _doprnt ();
  30673. /* The GNU C library defines this for functions which it implements
  30674. to always fail with ENOSYS. Some functions are actually named
  30675. something starting with __ and the normal name is an alias. */
  30676. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  30677. choke me
  30678. #else
  30679. char (*f) () = _doprnt;
  30680. #endif
  30681. #ifdef __cplusplus
  30682. }
  30683. #endif
  30684. int
  30685. main ()
  30686. {
  30687. return f != _doprnt;
  30688. ;
  30689. return 0;
  30690. }
  30691. _ACEOF
  30692. rm -f conftest.$ac_objext conftest$ac_exeext
  30693. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30694. (eval $ac_link) 2>conftest.er1
  30695. ac_status=$?
  30696. grep -v '^ *+' conftest.er1 >conftest.err
  30697. rm -f conftest.er1
  30698. cat conftest.err >&5
  30699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30700. (exit $ac_status); } &&
  30701. { ac_try='test -z "$ac_c_werror_flag"
  30702. || test ! -s conftest.err'
  30703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30704. (eval $ac_try) 2>&5
  30705. ac_status=$?
  30706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30707. (exit $ac_status); }; } &&
  30708. { ac_try='test -s conftest$ac_exeext'
  30709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30710. (eval $ac_try) 2>&5
  30711. ac_status=$?
  30712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30713. (exit $ac_status); }; }; then
  30714. ac_cv_func__doprnt=yes
  30715. else
  30716. echo "$as_me: failed program was:" >&5
  30717. sed 's/^/| /' conftest.$ac_ext >&5
  30718. ac_cv_func__doprnt=no
  30719. fi
  30720. rm -f conftest.err conftest.$ac_objext \
  30721. conftest$ac_exeext conftest.$ac_ext
  30722. fi
  30723. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  30724. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  30725. if test $ac_cv_func__doprnt = yes; then
  30726. cat >>confdefs.h <<\_ACEOF
  30727. #define HAVE_DOPRNT 1
  30728. _ACEOF
  30729. fi
  30730. fi
  30731. done
  30732. for ac_func in mmap canonicalize_file_name snprintf strdup
  30733. do
  30734. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30735. echo "$as_me:$LINENO: checking for $ac_func" >&5
  30736. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  30737. if eval "test \"\${$as_ac_var+set}\" = set"; then
  30738. echo $ECHO_N "(cached) $ECHO_C" >&6
  30739. else
  30740. cat >conftest.$ac_ext <<_ACEOF
  30741. /* confdefs.h. */
  30742. _ACEOF
  30743. cat confdefs.h >>conftest.$ac_ext
  30744. cat >>conftest.$ac_ext <<_ACEOF
  30745. /* end confdefs.h. */
  30746. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  30747. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  30748. #define $ac_func innocuous_$ac_func
  30749. /* System header to define __stub macros and hopefully few prototypes,
  30750. which can conflict with char $ac_func (); below.
  30751. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30752. <limits.h> exists even on freestanding compilers. */
  30753. #ifdef __STDC__
  30754. # include <limits.h>
  30755. #else
  30756. # include <assert.h>
  30757. #endif
  30758. #undef $ac_func
  30759. /* Override any gcc2 internal prototype to avoid an error. */
  30760. #ifdef __cplusplus
  30761. extern "C"
  30762. {
  30763. #endif
  30764. /* We use char because int might match the return type of a gcc2
  30765. builtin and then its argument prototype would still apply. */
  30766. char $ac_func ();
  30767. /* The GNU C library defines this for functions which it implements
  30768. to always fail with ENOSYS. Some functions are actually named
  30769. something starting with __ and the normal name is an alias. */
  30770. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  30771. choke me
  30772. #else
  30773. char (*f) () = $ac_func;
  30774. #endif
  30775. #ifdef __cplusplus
  30776. }
  30777. #endif
  30778. int
  30779. main ()
  30780. {
  30781. return f != $ac_func;
  30782. ;
  30783. return 0;
  30784. }
  30785. _ACEOF
  30786. rm -f conftest.$ac_objext conftest$ac_exeext
  30787. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30788. (eval $ac_link) 2>conftest.er1
  30789. ac_status=$?
  30790. grep -v '^ *+' conftest.er1 >conftest.err
  30791. rm -f conftest.er1
  30792. cat conftest.err >&5
  30793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30794. (exit $ac_status); } &&
  30795. { ac_try='test -z "$ac_c_werror_flag"
  30796. || test ! -s conftest.err'
  30797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30798. (eval $ac_try) 2>&5
  30799. ac_status=$?
  30800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30801. (exit $ac_status); }; } &&
  30802. { ac_try='test -s conftest$ac_exeext'
  30803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30804. (eval $ac_try) 2>&5
  30805. ac_status=$?
  30806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30807. (exit $ac_status); }; }; then
  30808. eval "$as_ac_var=yes"
  30809. else
  30810. echo "$as_me: failed program was:" >&5
  30811. sed 's/^/| /' conftest.$ac_ext >&5
  30812. eval "$as_ac_var=no"
  30813. fi
  30814. rm -f conftest.err conftest.$ac_objext \
  30815. conftest$ac_exeext conftest.$ac_ext
  30816. fi
  30817. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  30818. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  30819. if test `eval echo '${'$as_ac_var'}'` = yes; then
  30820. cat >>confdefs.h <<_ACEOF
  30821. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30822. _ACEOF
  30823. fi
  30824. done
  30825. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  30826. fi
  30827. fi
  30828. # end of AC_DEFUN of LIBOPTS_CHECK
  30829. 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"
  30830. cat >confcache <<\_ACEOF
  30831. # This file is a shell script that caches the results of configure
  30832. # tests run on this system so they can be shared between configure
  30833. # scripts and configure runs, see configure's option --config-cache.
  30834. # It is not useful on other systems. If it contains results you don't
  30835. # want to keep, you may remove or edit it.
  30836. #
  30837. # config.status only pays attention to the cache file if you give it
  30838. # the --recheck option to rerun configure.
  30839. #
  30840. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  30841. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  30842. # following values.
  30843. _ACEOF
  30844. # The following way of writing the cache mishandles newlines in values,
  30845. # but we know of no workaround that is simple, portable, and efficient.
  30846. # So, don't put newlines in cache variables' values.
  30847. # Ultrix sh set writes to stderr and can't be redirected directly,
  30848. # and sets the high bit in the cache file unless we assign to the vars.
  30849. {
  30850. (set) 2>&1 |
  30851. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  30852. *ac_space=\ *)
  30853. # `set' does not quote correctly, so add quotes (double-quote
  30854. # substitution turns \\\\ into \\, and sed turns \\ into \).
  30855. sed -n \
  30856. "s/'/'\\\\''/g;
  30857. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  30858. ;;
  30859. *)
  30860. # `set' quotes correctly as required by POSIX, so do not add quotes.
  30861. sed -n \
  30862. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  30863. ;;
  30864. esac;
  30865. } |
  30866. sed '
  30867. t clear
  30868. : clear
  30869. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  30870. t end
  30871. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  30872. : end' >>confcache
  30873. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  30874. if test -w $cache_file; then
  30875. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  30876. cat confcache >$cache_file
  30877. else
  30878. echo "not updating unwritable cache $cache_file"
  30879. fi
  30880. fi
  30881. rm -f confcache
  30882. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  30883. # Let make expand exec_prefix.
  30884. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  30885. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  30886. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  30887. # trailing colons and then remove the whole line if VPATH becomes empty
  30888. # (actually we leave an empty line to preserve line numbers).
  30889. if test "x$srcdir" = x.; then
  30890. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  30891. s/:*\$(srcdir):*/:/;
  30892. s/:*\${srcdir}:*/:/;
  30893. s/:*@srcdir@:*/:/;
  30894. s/^\([^=]*=[ ]*\):*/\1/;
  30895. s/:*$//;
  30896. s/^[^=]*=[ ]*$//;
  30897. }'
  30898. fi
  30899. DEFS=-DHAVE_CONFIG_H
  30900. ac_libobjs=
  30901. ac_ltlibobjs=
  30902. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  30903. # 1. Remove the extension, and $U if already installed.
  30904. ac_i=`echo "$ac_i" |
  30905. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  30906. # 2. Add them.
  30907. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  30908. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  30909. done
  30910. LIBOBJS=$ac_libobjs
  30911. LTLIBOBJS=$ac_ltlibobjs
  30912. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  30913. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  30914. Usually this means the macro was only invoked conditionally." >&5
  30915. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  30916. Usually this means the macro was only invoked conditionally." >&2;}
  30917. { (exit 1); exit 1; }; }
  30918. fi
  30919. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  30920. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  30921. Usually this means the macro was only invoked conditionally." >&5
  30922. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  30923. Usually this means the macro was only invoked conditionally." >&2;}
  30924. { (exit 1); exit 1; }; }
  30925. fi
  30926. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  30927. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  30928. Usually this means the macro was only invoked conditionally." >&5
  30929. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  30930. Usually this means the macro was only invoked conditionally." >&2;}
  30931. { (exit 1); exit 1; }; }
  30932. fi
  30933. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  30934. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  30935. Usually this means the macro was only invoked conditionally." >&5
  30936. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  30937. Usually this means the macro was only invoked conditionally." >&2;}
  30938. { (exit 1); exit 1; }; }
  30939. fi
  30940. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  30941. { { echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  30942. Usually this means the macro was only invoked conditionally." >&5
  30943. echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  30944. Usually this means the macro was only invoked conditionally." >&2;}
  30945. { (exit 1); exit 1; }; }
  30946. fi
  30947. if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
  30948. { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCTOOLS\" was never defined.
  30949. Usually this means the macro was only invoked conditionally." >&5
  30950. echo "$as_me: error: conditional \"HAVE_DOCTOOLS\" was never defined.
  30951. Usually this means the macro was only invoked conditionally." >&2;}
  30952. { (exit 1); exit 1; }; }
  30953. fi
  30954. if test -z "${ENABLE_FLOWREPLAY_TRUE}" && test -z "${ENABLE_FLOWREPLAY_FALSE}"; then
  30955. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FLOWREPLAY\" was never defined.
  30956. Usually this means the macro was only invoked conditionally." >&5
  30957. echo "$as_me: error: conditional \"ENABLE_FLOWREPLAY\" was never defined.
  30958. Usually this means the macro was only invoked conditionally." >&2;}
  30959. { (exit 1); exit 1; }; }
  30960. fi
  30961. if test -z "${ENABLE_TCPBRIDGE_TRUE}" && test -z "${ENABLE_TCPBRIDGE_FALSE}"; then
  30962. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPBRIDGE\" was never defined.
  30963. Usually this means the macro was only invoked conditionally." >&5
  30964. echo "$as_me: error: conditional \"ENABLE_TCPBRIDGE\" was never defined.
  30965. Usually this means the macro was only invoked conditionally." >&2;}
  30966. { (exit 1); exit 1; }; }
  30967. fi
  30968. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  30969. { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  30970. Usually this means the macro was only invoked conditionally." >&5
  30971. echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  30972. Usually this means the macro was only invoked conditionally." >&2;}
  30973. { (exit 1); exit 1; }; }
  30974. fi
  30975. : ${CONFIG_STATUS=./config.status}
  30976. ac_clean_files_save=$ac_clean_files
  30977. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  30978. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  30979. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  30980. cat >$CONFIG_STATUS <<_ACEOF
  30981. #! $SHELL
  30982. # Generated by $as_me.
  30983. # Run this file to recreate the current configuration.
  30984. # Compiler output produced by configure, useful for debugging
  30985. # configure, is in config.log if it exists.
  30986. debug=false
  30987. ac_cs_recheck=false
  30988. ac_cs_silent=false
  30989. SHELL=\${CONFIG_SHELL-$SHELL}
  30990. _ACEOF
  30991. cat >>$CONFIG_STATUS <<\_ACEOF
  30992. ## --------------------- ##
  30993. ## M4sh Initialization. ##
  30994. ## --------------------- ##
  30995. # Be Bourne compatible
  30996. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  30997. emulate sh
  30998. NULLCMD=:
  30999. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  31000. # is contrary to our usage. Disable this feature.
  31001. alias -g '${1+"$@"}'='"$@"'
  31002. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  31003. set -o posix
  31004. fi
  31005. DUALCASE=1; export DUALCASE # for MKS sh
  31006. # Support unset when possible.
  31007. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  31008. as_unset=unset
  31009. else
  31010. as_unset=false
  31011. fi
  31012. # Work around bugs in pre-3.0 UWIN ksh.
  31013. $as_unset ENV MAIL MAILPATH
  31014. PS1='$ '
  31015. PS2='> '
  31016. PS4='+ '
  31017. # NLS nuisances.
  31018. for as_var in \
  31019. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  31020. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  31021. LC_TELEPHONE LC_TIME
  31022. do
  31023. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  31024. eval $as_var=C; export $as_var
  31025. else
  31026. $as_unset $as_var
  31027. fi
  31028. done
  31029. # Required to use basename.
  31030. if expr a : '\(a\)' >/dev/null 2>&1; then
  31031. as_expr=expr
  31032. else
  31033. as_expr=false
  31034. fi
  31035. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  31036. as_basename=basename
  31037. else
  31038. as_basename=false
  31039. fi
  31040. # Name of the executable.
  31041. as_me=`$as_basename "$0" ||
  31042. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  31043. X"$0" : 'X\(//\)$' \| \
  31044. X"$0" : 'X\(/\)$' \| \
  31045. . : '\(.\)' 2>/dev/null ||
  31046. echo X/"$0" |
  31047. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  31048. /^X\/\(\/\/\)$/{ s//\1/; q; }
  31049. /^X\/\(\/\).*/{ s//\1/; q; }
  31050. s/.*/./; q'`
  31051. # PATH needs CR, and LINENO needs CR and PATH.
  31052. # Avoid depending upon Character Ranges.
  31053. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31054. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31055. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31056. as_cr_digits='0123456789'
  31057. as_cr_alnum=$as_cr_Letters$as_cr_digits
  31058. # The user is always right.
  31059. if test "${PATH_SEPARATOR+set}" != set; then
  31060. echo "#! /bin/sh" >conf$$.sh
  31061. echo "exit 0" >>conf$$.sh
  31062. chmod +x conf$$.sh
  31063. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  31064. PATH_SEPARATOR=';'
  31065. else
  31066. PATH_SEPARATOR=:
  31067. fi
  31068. rm -f conf$$.sh
  31069. fi
  31070. as_lineno_1=$LINENO
  31071. as_lineno_2=$LINENO
  31072. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  31073. test "x$as_lineno_1" != "x$as_lineno_2" &&
  31074. test "x$as_lineno_3" = "x$as_lineno_2" || {
  31075. # Find who we are. Look in the path if we contain no path at all
  31076. # relative or not.
  31077. case $0 in
  31078. *[\\/]* ) as_myself=$0 ;;
  31079. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31080. for as_dir in $PATH
  31081. do
  31082. IFS=$as_save_IFS
  31083. test -z "$as_dir" && as_dir=.
  31084. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  31085. done
  31086. ;;
  31087. esac
  31088. # We did not find ourselves, most probably we were run as `sh COMMAND'
  31089. # in which case we are not to be found in the path.
  31090. if test "x$as_myself" = x; then
  31091. as_myself=$0
  31092. fi
  31093. if test ! -f "$as_myself"; then
  31094. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  31095. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  31096. { (exit 1); exit 1; }; }
  31097. fi
  31098. case $CONFIG_SHELL in
  31099. '')
  31100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31101. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  31102. do
  31103. IFS=$as_save_IFS
  31104. test -z "$as_dir" && as_dir=.
  31105. for as_base in sh bash ksh sh5; do
  31106. case $as_dir in
  31107. /*)
  31108. if ("$as_dir/$as_base" -c '
  31109. as_lineno_1=$LINENO
  31110. as_lineno_2=$LINENO
  31111. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  31112. test "x$as_lineno_1" != "x$as_lineno_2" &&
  31113. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  31114. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  31115. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  31116. CONFIG_SHELL=$as_dir/$as_base
  31117. export CONFIG_SHELL
  31118. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  31119. fi;;
  31120. esac
  31121. done
  31122. done
  31123. ;;
  31124. esac
  31125. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  31126. # uniformly replaced by the line number. The first 'sed' inserts a
  31127. # line-number line before each line; the second 'sed' does the real
  31128. # work. The second script uses 'N' to pair each line-number line
  31129. # with the numbered line, and appends trailing '-' during
  31130. # substitution so that $LINENO is not a special case at line end.
  31131. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  31132. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  31133. sed '=' <$as_myself |
  31134. sed '
  31135. N
  31136. s,$,-,
  31137. : loop
  31138. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  31139. t loop
  31140. s,-$,,
  31141. s,^['$as_cr_digits']*\n,,
  31142. ' >$as_me.lineno &&
  31143. chmod +x $as_me.lineno ||
  31144. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  31145. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  31146. { (exit 1); exit 1; }; }
  31147. # Don't try to exec as it changes $[0], causing all sort of problems
  31148. # (the dirname of $[0] is not the place where we might find the
  31149. # original and so on. Autoconf is especially sensible to this).
  31150. . ./$as_me.lineno
  31151. # Exit status is that of the last command.
  31152. exit
  31153. }
  31154. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  31155. *c*,-n*) ECHO_N= ECHO_C='
  31156. ' ECHO_T=' ' ;;
  31157. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  31158. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  31159. esac
  31160. if expr a : '\(a\)' >/dev/null 2>&1; then
  31161. as_expr=expr
  31162. else
  31163. as_expr=false
  31164. fi
  31165. rm -f conf$$ conf$$.exe conf$$.file
  31166. echo >conf$$.file
  31167. if ln -s conf$$.file conf$$ 2>/dev/null; then
  31168. # We could just check for DJGPP; but this test a) works b) is more generic
  31169. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  31170. if test -f conf$$.exe; then
  31171. # Don't use ln at all; we don't have any links
  31172. as_ln_s='cp -p'
  31173. else
  31174. as_ln_s='ln -s'
  31175. fi
  31176. elif ln conf$$.file conf$$ 2>/dev/null; then
  31177. as_ln_s=ln
  31178. else
  31179. as_ln_s='cp -p'
  31180. fi
  31181. rm -f conf$$ conf$$.exe conf$$.file
  31182. if mkdir -p . 2>/dev/null; then
  31183. as_mkdir_p=:
  31184. else
  31185. test -d ./-p && rmdir ./-p
  31186. as_mkdir_p=false
  31187. fi
  31188. as_executable_p="test -f"
  31189. # Sed expression to map a string onto a valid CPP name.
  31190. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  31191. # Sed expression to map a string onto a valid variable name.
  31192. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  31193. # IFS
  31194. # We need space, tab and new line, in precisely that order.
  31195. as_nl='
  31196. '
  31197. IFS=" $as_nl"
  31198. # CDPATH.
  31199. $as_unset CDPATH
  31200. exec 6>&1
  31201. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  31202. # report actual input values of CONFIG_FILES etc. instead of their
  31203. # values after options handling. Logging --version etc. is OK.
  31204. exec 5>>config.log
  31205. {
  31206. echo
  31207. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  31208. ## Running $as_me. ##
  31209. _ASBOX
  31210. } >&5
  31211. cat >&5 <<_CSEOF
  31212. This file was extended by $as_me, which was
  31213. generated by GNU Autoconf 2.59. Invocation command line was
  31214. CONFIG_FILES = $CONFIG_FILES
  31215. CONFIG_HEADERS = $CONFIG_HEADERS
  31216. CONFIG_LINKS = $CONFIG_LINKS
  31217. CONFIG_COMMANDS = $CONFIG_COMMANDS
  31218. $ $0 $@
  31219. _CSEOF
  31220. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  31221. echo >&5
  31222. _ACEOF
  31223. # Files that config.status was made for.
  31224. if test -n "$ac_config_files"; then
  31225. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  31226. fi
  31227. if test -n "$ac_config_headers"; then
  31228. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  31229. fi
  31230. if test -n "$ac_config_links"; then
  31231. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  31232. fi
  31233. if test -n "$ac_config_commands"; then
  31234. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  31235. fi
  31236. cat >>$CONFIG_STATUS <<\_ACEOF
  31237. ac_cs_usage="\
  31238. \`$as_me' instantiates files from templates according to the
  31239. current configuration.
  31240. Usage: $0 [OPTIONS] [FILE]...
  31241. -h, --help print this help, then exit
  31242. -V, --version print version number, then exit
  31243. -q, --quiet do not print progress messages
  31244. -d, --debug don't remove temporary files
  31245. --recheck update $as_me by reconfiguring in the same conditions
  31246. --file=FILE[:TEMPLATE]
  31247. instantiate the configuration file FILE
  31248. --header=FILE[:TEMPLATE]
  31249. instantiate the configuration header FILE
  31250. Configuration files:
  31251. $config_files
  31252. Configuration headers:
  31253. $config_headers
  31254. Configuration commands:
  31255. $config_commands
  31256. Report bugs to <bug-autoconf@gnu.org>."
  31257. _ACEOF
  31258. cat >>$CONFIG_STATUS <<_ACEOF
  31259. ac_cs_version="\\
  31260. config.status
  31261. configured by $0, generated by GNU Autoconf 2.59,
  31262. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  31263. Copyright (C) 2003 Free Software Foundation, Inc.
  31264. This config.status script is free software; the Free Software Foundation
  31265. gives unlimited permission to copy, distribute and modify it."
  31266. srcdir=$srcdir
  31267. INSTALL="$INSTALL"
  31268. _ACEOF
  31269. cat >>$CONFIG_STATUS <<\_ACEOF
  31270. # If no file are specified by the user, then we need to provide default
  31271. # value. By we need to know if files were specified by the user.
  31272. ac_need_defaults=:
  31273. while test $# != 0
  31274. do
  31275. case $1 in
  31276. --*=*)
  31277. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  31278. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  31279. ac_shift=:
  31280. ;;
  31281. -*)
  31282. ac_option=$1
  31283. ac_optarg=$2
  31284. ac_shift=shift
  31285. ;;
  31286. *) # This is not an option, so the user has probably given explicit
  31287. # arguments.
  31288. ac_option=$1
  31289. ac_need_defaults=false;;
  31290. esac
  31291. case $ac_option in
  31292. # Handling of the options.
  31293. _ACEOF
  31294. cat >>$CONFIG_STATUS <<\_ACEOF
  31295. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  31296. ac_cs_recheck=: ;;
  31297. --version | --vers* | -V )
  31298. echo "$ac_cs_version"; exit 0 ;;
  31299. --he | --h)
  31300. # Conflict between --help and --header
  31301. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  31302. Try \`$0 --help' for more information." >&5
  31303. echo "$as_me: error: ambiguous option: $1
  31304. Try \`$0 --help' for more information." >&2;}
  31305. { (exit 1); exit 1; }; };;
  31306. --help | --hel | -h )
  31307. echo "$ac_cs_usage"; exit 0 ;;
  31308. --debug | --d* | -d )
  31309. debug=: ;;
  31310. --file | --fil | --fi | --f )
  31311. $ac_shift
  31312. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  31313. ac_need_defaults=false;;
  31314. --header | --heade | --head | --hea )
  31315. $ac_shift
  31316. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  31317. ac_need_defaults=false;;
  31318. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  31319. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  31320. ac_cs_silent=: ;;
  31321. # This is an error.
  31322. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  31323. Try \`$0 --help' for more information." >&5
  31324. echo "$as_me: error: unrecognized option: $1
  31325. Try \`$0 --help' for more information." >&2;}
  31326. { (exit 1); exit 1; }; } ;;
  31327. *) ac_config_targets="$ac_config_targets $1" ;;
  31328. esac
  31329. shift
  31330. done
  31331. ac_configure_extra_args=
  31332. if $ac_cs_silent; then
  31333. exec 6>/dev/null
  31334. ac_configure_extra_args="$ac_configure_extra_args --silent"
  31335. fi
  31336. _ACEOF
  31337. cat >>$CONFIG_STATUS <<_ACEOF
  31338. if \$ac_cs_recheck; then
  31339. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  31340. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  31341. fi
  31342. _ACEOF
  31343. cat >>$CONFIG_STATUS <<_ACEOF
  31344. #
  31345. # INIT-COMMANDS section.
  31346. #
  31347. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  31348. _ACEOF
  31349. cat >>$CONFIG_STATUS <<\_ACEOF
  31350. for ac_config_target in $ac_config_targets
  31351. do
  31352. case "$ac_config_target" in
  31353. # Handling of arguments.
  31354. "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  31355. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  31356. "doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  31357. "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  31358. "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  31359. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  31360. "src/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  31361. "src/tcpedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  31362. "src/flow/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/flow/Makefile" ;;
  31363. "src/defines.h" ) CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  31364. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  31365. "test/config" ) CONFIG_FILES="$CONFIG_FILES test/config" ;;
  31366. "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  31367. "tcpreplay.spec" ) CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  31368. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  31369. "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  31370. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  31371. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  31372. { (exit 1); exit 1; }; };;
  31373. esac
  31374. done
  31375. # If the user did not use the arguments to specify the items to instantiate,
  31376. # then the envvar interface is used. Set only those that are not.
  31377. # We use the long form for the default assignment because of an extremely
  31378. # bizarre bug on SunOS 4.1.3.
  31379. if $ac_need_defaults; then
  31380. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  31381. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  31382. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  31383. fi
  31384. # Have a temporary directory for convenience. Make it in the build tree
  31385. # simply because there is no reason to put it here, and in addition,
  31386. # creating and moving files from /tmp can sometimes cause problems.
  31387. # Create a temporary directory, and hook for its removal unless debugging.
  31388. $debug ||
  31389. {
  31390. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  31391. trap '{ (exit 1); exit 1; }' 1 2 13 15
  31392. }
  31393. # Create a (secure) tmp directory for tmp files.
  31394. {
  31395. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  31396. test -n "$tmp" && test -d "$tmp"
  31397. } ||
  31398. {
  31399. tmp=./confstat$$-$RANDOM
  31400. (umask 077 && mkdir $tmp)
  31401. } ||
  31402. {
  31403. echo "$me: cannot create a temporary directory in ." >&2
  31404. { (exit 1); exit 1; }
  31405. }
  31406. _ACEOF
  31407. cat >>$CONFIG_STATUS <<_ACEOF
  31408. #
  31409. # CONFIG_FILES section.
  31410. #
  31411. # No need to generate the scripts if there are no CONFIG_FILES.
  31412. # This happens for instance when ./config.status config.h
  31413. if test -n "\$CONFIG_FILES"; then
  31414. # Protect against being on the right side of a sed subst in config.status.
  31415. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  31416. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  31417. s,@SHELL@,$SHELL,;t t
  31418. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  31419. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  31420. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  31421. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  31422. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  31423. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  31424. s,@exec_prefix@,$exec_prefix,;t t
  31425. s,@prefix@,$prefix,;t t
  31426. s,@program_transform_name@,$program_transform_name,;t t
  31427. s,@bindir@,$bindir,;t t
  31428. s,@sbindir@,$sbindir,;t t
  31429. s,@libexecdir@,$libexecdir,;t t
  31430. s,@datadir@,$datadir,;t t
  31431. s,@sysconfdir@,$sysconfdir,;t t
  31432. s,@sharedstatedir@,$sharedstatedir,;t t
  31433. s,@localstatedir@,$localstatedir,;t t
  31434. s,@libdir@,$libdir,;t t
  31435. s,@includedir@,$includedir,;t t
  31436. s,@oldincludedir@,$oldincludedir,;t t
  31437. s,@infodir@,$infodir,;t t
  31438. s,@mandir@,$mandir,;t t
  31439. s,@build_alias@,$build_alias,;t t
  31440. s,@host_alias@,$host_alias,;t t
  31441. s,@target_alias@,$target_alias,;t t
  31442. s,@DEFS@,$DEFS,;t t
  31443. s,@ECHO_C@,$ECHO_C,;t t
  31444. s,@ECHO_N@,$ECHO_N,;t t
  31445. s,@ECHO_T@,$ECHO_T,;t t
  31446. s,@LIBS@,$LIBS,;t t
  31447. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  31448. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  31449. s,@MAINT@,$MAINT,;t t
  31450. s,@build@,$build,;t t
  31451. s,@build_cpu@,$build_cpu,;t t
  31452. s,@build_vendor@,$build_vendor,;t t
  31453. s,@build_os@,$build_os,;t t
  31454. s,@host@,$host,;t t
  31455. s,@host_cpu@,$host_cpu,;t t
  31456. s,@host_vendor@,$host_vendor,;t t
  31457. s,@host_os@,$host_os,;t t
  31458. s,@CC@,$CC,;t t
  31459. s,@CFLAGS@,$CFLAGS,;t t
  31460. s,@LDFLAGS@,$LDFLAGS,;t t
  31461. s,@CPPFLAGS@,$CPPFLAGS,;t t
  31462. s,@ac_ct_CC@,$ac_ct_CC,;t t
  31463. s,@EXEEXT@,$EXEEXT,;t t
  31464. s,@OBJEXT@,$OBJEXT,;t t
  31465. s,@EGREP@,$EGREP,;t t
  31466. s,@LN_S@,$LN_S,;t t
  31467. s,@ECHO@,$ECHO,;t t
  31468. s,@AR@,$AR,;t t
  31469. s,@ac_ct_AR@,$ac_ct_AR,;t t
  31470. s,@RANLIB@,$RANLIB,;t t
  31471. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  31472. s,@STRIP@,$STRIP,;t t
  31473. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  31474. s,@CPP@,$CPP,;t t
  31475. s,@CXX@,$CXX,;t t
  31476. s,@CXXFLAGS@,$CXXFLAGS,;t t
  31477. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  31478. s,@CXXCPP@,$CXXCPP,;t t
  31479. s,@F77@,$F77,;t t
  31480. s,@FFLAGS@,$FFLAGS,;t t
  31481. s,@ac_ct_F77@,$ac_ct_F77,;t t
  31482. s,@LIBTOOL@,$LIBTOOL,;t t
  31483. s,@TCPREPLAY_VERSION@,$TCPREPLAY_VERSION,;t t
  31484. s,@TCPREPLAY_RELEASE@,$TCPREPLAY_RELEASE,;t t
  31485. s,@target@,$target,;t t
  31486. s,@target_cpu@,$target_cpu,;t t
  31487. s,@target_vendor@,$target_vendor,;t t
  31488. s,@target_os@,$target_os,;t t
  31489. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  31490. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  31491. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  31492. s,@CYGPATH_W@,$CYGPATH_W,;t t
  31493. s,@PACKAGE@,$PACKAGE,;t t
  31494. s,@VERSION@,$VERSION,;t t
  31495. s,@ACLOCAL@,$ACLOCAL,;t t
  31496. s,@AUTOCONF@,$AUTOCONF,;t t
  31497. s,@AUTOMAKE@,$AUTOMAKE,;t t
  31498. s,@AUTOHEADER@,$AUTOHEADER,;t t
  31499. s,@MAKEINFO@,$MAKEINFO,;t t
  31500. s,@install_sh@,$install_sh,;t t
  31501. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  31502. s,@mkdir_p@,$mkdir_p,;t t
  31503. s,@AWK@,$AWK,;t t
  31504. s,@SET_MAKE@,$SET_MAKE,;t t
  31505. s,@am__leading_dot@,$am__leading_dot,;t t
  31506. s,@AMTAR@,$AMTAR,;t t
  31507. s,@am__tar@,$am__tar,;t t
  31508. s,@am__untar@,$am__untar,;t t
  31509. s,@DEPDIR@,$DEPDIR,;t t
  31510. s,@am__include@,$am__include,;t t
  31511. s,@am__quote@,$am__quote,;t t
  31512. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  31513. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  31514. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  31515. s,@CCDEPMODE@,$CCDEPMODE,;t t
  31516. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  31517. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  31518. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  31519. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  31520. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  31521. s,@PRINTF@,$PRINTF,;t t
  31522. s,@FIG2DEV@,$FIG2DEV,;t t
  31523. s,@LYX@,$LYX,;t t
  31524. s,@DVIPS@,$DVIPS,;t t
  31525. s,@TEXI2DVI@,$TEXI2DVI,;t t
  31526. s,@LATEX2HTML@,$LATEX2HTML,;t t
  31527. s,@DVIPDFM@,$DVIPDFM,;t t
  31528. s,@AUTOGEN@,$AUTOGEN,;t t
  31529. s,@LIBOBJS@,$LIBOBJS,;t t
  31530. s,@SYSTEM_STRLCPY_TRUE@,$SYSTEM_STRLCPY_TRUE,;t t
  31531. s,@SYSTEM_STRLCPY_FALSE@,$SYSTEM_STRLCPY_FALSE,;t t
  31532. s,@HAVE_DOCTOOLS_TRUE@,$HAVE_DOCTOOLS_TRUE,;t t
  31533. s,@HAVE_DOCTOOLS_FALSE@,$HAVE_DOCTOOLS_FALSE,;t t
  31534. s,@debug_flag@,$debug_flag,;t t
  31535. s,@ENABLE_FLOWREPLAY_TRUE@,$ENABLE_FLOWREPLAY_TRUE,;t t
  31536. s,@ENABLE_FLOWREPLAY_FALSE@,$ENABLE_FLOWREPLAY_FALSE,;t t
  31537. s,@LNETINC@,$LNETINC,;t t
  31538. s,@LNETLIB@,$LNETLIB,;t t
  31539. s,@LPCAPINC@,$LPCAPINC,;t t
  31540. s,@LPCAPLIB@,$LPCAPLIB,;t t
  31541. s,@ENABLE_TCPBRIDGE_TRUE@,$ENABLE_TCPBRIDGE_TRUE,;t t
  31542. s,@ENABLE_TCPBRIDGE_FALSE@,$ENABLE_TCPBRIDGE_FALSE,;t t
  31543. s,@PCAP_BPF_H_FILE@,$PCAP_BPF_H_FILE,;t t
  31544. s,@pcncfg@,$pcncfg,;t t
  31545. s,@LNAVLIB@,$LNAVLIB,;t t
  31546. s,@LNAV_CFLAGS@,$LNAV_CFLAGS,;t t
  31547. s,@td@,$td,;t t
  31548. s,@nic1@,$nic1,;t t
  31549. s,@nic2@,$nic2,;t t
  31550. s,@LIBOPTS_DIR@,$LIBOPTS_DIR,;t t
  31551. s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t
  31552. s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t
  31553. s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t
  31554. s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t
  31555. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  31556. CEOF
  31557. _ACEOF
  31558. cat >>$CONFIG_STATUS <<\_ACEOF
  31559. # Split the substitutions into bite-sized pieces for seds with
  31560. # small command number limits, like on Digital OSF/1 and HP-UX.
  31561. ac_max_sed_lines=48
  31562. ac_sed_frag=1 # Number of current file.
  31563. ac_beg=1 # First line for current file.
  31564. ac_end=$ac_max_sed_lines # Line after last line for current file.
  31565. ac_more_lines=:
  31566. ac_sed_cmds=
  31567. while $ac_more_lines; do
  31568. if test $ac_beg -gt 1; then
  31569. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  31570. else
  31571. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  31572. fi
  31573. if test ! -s $tmp/subs.frag; then
  31574. ac_more_lines=false
  31575. else
  31576. # The purpose of the label and of the branching condition is to
  31577. # speed up the sed processing (if there are no `@' at all, there
  31578. # is no need to browse any of the substitutions).
  31579. # These are the two extra sed commands mentioned above.
  31580. (echo ':t
  31581. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  31582. if test -z "$ac_sed_cmds"; then
  31583. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  31584. else
  31585. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  31586. fi
  31587. ac_sed_frag=`expr $ac_sed_frag + 1`
  31588. ac_beg=$ac_end
  31589. ac_end=`expr $ac_end + $ac_max_sed_lines`
  31590. fi
  31591. done
  31592. if test -z "$ac_sed_cmds"; then
  31593. ac_sed_cmds=cat
  31594. fi
  31595. fi # test -n "$CONFIG_FILES"
  31596. _ACEOF
  31597. cat >>$CONFIG_STATUS <<\_ACEOF
  31598. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  31599. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  31600. case $ac_file in
  31601. - | *:- | *:-:* ) # input from stdin
  31602. cat >$tmp/stdin
  31603. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  31604. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  31605. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  31606. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  31607. * ) ac_file_in=$ac_file.in ;;
  31608. esac
  31609. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  31610. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  31611. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31612. X"$ac_file" : 'X\(//\)[^/]' \| \
  31613. X"$ac_file" : 'X\(//\)$' \| \
  31614. X"$ac_file" : 'X\(/\)' \| \
  31615. . : '\(.\)' 2>/dev/null ||
  31616. echo X"$ac_file" |
  31617. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31618. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31619. /^X\(\/\/\)$/{ s//\1/; q; }
  31620. /^X\(\/\).*/{ s//\1/; q; }
  31621. s/.*/./; q'`
  31622. { if $as_mkdir_p; then
  31623. mkdir -p "$ac_dir"
  31624. else
  31625. as_dir="$ac_dir"
  31626. as_dirs=
  31627. while test ! -d "$as_dir"; do
  31628. as_dirs="$as_dir $as_dirs"
  31629. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  31630. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31631. X"$as_dir" : 'X\(//\)[^/]' \| \
  31632. X"$as_dir" : 'X\(//\)$' \| \
  31633. X"$as_dir" : 'X\(/\)' \| \
  31634. . : '\(.\)' 2>/dev/null ||
  31635. echo X"$as_dir" |
  31636. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31637. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31638. /^X\(\/\/\)$/{ s//\1/; q; }
  31639. /^X\(\/\).*/{ s//\1/; q; }
  31640. s/.*/./; q'`
  31641. done
  31642. test ! -n "$as_dirs" || mkdir $as_dirs
  31643. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  31644. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  31645. { (exit 1); exit 1; }; }; }
  31646. ac_builddir=.
  31647. if test "$ac_dir" != .; then
  31648. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  31649. # A "../" for each directory in $ac_dir_suffix.
  31650. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  31651. else
  31652. ac_dir_suffix= ac_top_builddir=
  31653. fi
  31654. case $srcdir in
  31655. .) # No --srcdir option. We are building in place.
  31656. ac_srcdir=.
  31657. if test -z "$ac_top_builddir"; then
  31658. ac_top_srcdir=.
  31659. else
  31660. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  31661. fi ;;
  31662. [\\/]* | ?:[\\/]* ) # Absolute path.
  31663. ac_srcdir=$srcdir$ac_dir_suffix;
  31664. ac_top_srcdir=$srcdir ;;
  31665. *) # Relative path.
  31666. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  31667. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  31668. esac
  31669. # Do not use `cd foo && pwd` to compute absolute paths, because
  31670. # the directories may not exist.
  31671. case `pwd` in
  31672. .) ac_abs_builddir="$ac_dir";;
  31673. *)
  31674. case "$ac_dir" in
  31675. .) ac_abs_builddir=`pwd`;;
  31676. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  31677. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  31678. esac;;
  31679. esac
  31680. case $ac_abs_builddir in
  31681. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  31682. *)
  31683. case ${ac_top_builddir}. in
  31684. .) ac_abs_top_builddir=$ac_abs_builddir;;
  31685. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  31686. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  31687. esac;;
  31688. esac
  31689. case $ac_abs_builddir in
  31690. .) ac_abs_srcdir=$ac_srcdir;;
  31691. *)
  31692. case $ac_srcdir in
  31693. .) ac_abs_srcdir=$ac_abs_builddir;;
  31694. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  31695. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  31696. esac;;
  31697. esac
  31698. case $ac_abs_builddir in
  31699. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  31700. *)
  31701. case $ac_top_srcdir in
  31702. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  31703. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  31704. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  31705. esac;;
  31706. esac
  31707. case $INSTALL in
  31708. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  31709. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  31710. esac
  31711. if test x"$ac_file" != x-; then
  31712. { echo "$as_me:$LINENO: creating $ac_file" >&5
  31713. echo "$as_me: creating $ac_file" >&6;}
  31714. rm -f "$ac_file"
  31715. fi
  31716. # Let's still pretend it is `configure' which instantiates (i.e., don't
  31717. # use $as_me), people would be surprised to read:
  31718. # /* config.h. Generated by config.status. */
  31719. if test x"$ac_file" = x-; then
  31720. configure_input=
  31721. else
  31722. configure_input="$ac_file. "
  31723. fi
  31724. configure_input=$configure_input"Generated from `echo $ac_file_in |
  31725. sed 's,.*/,,'` by configure."
  31726. # First look for the input files in the build tree, otherwise in the
  31727. # src tree.
  31728. ac_file_inputs=`IFS=:
  31729. for f in $ac_file_in; do
  31730. case $f in
  31731. -) echo $tmp/stdin ;;
  31732. [\\/$]*)
  31733. # Absolute (can't be DOS-style, as IFS=:)
  31734. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  31735. echo "$as_me: error: cannot find input file: $f" >&2;}
  31736. { (exit 1); exit 1; }; }
  31737. echo "$f";;
  31738. *) # Relative
  31739. if test -f "$f"; then
  31740. # Build tree
  31741. echo "$f"
  31742. elif test -f "$srcdir/$f"; then
  31743. # Source tree
  31744. echo "$srcdir/$f"
  31745. else
  31746. # /dev/null tree
  31747. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  31748. echo "$as_me: error: cannot find input file: $f" >&2;}
  31749. { (exit 1); exit 1; }; }
  31750. fi;;
  31751. esac
  31752. done` || { (exit 1); exit 1; }
  31753. _ACEOF
  31754. cat >>$CONFIG_STATUS <<_ACEOF
  31755. sed "$ac_vpsub
  31756. $extrasub
  31757. _ACEOF
  31758. cat >>$CONFIG_STATUS <<\_ACEOF
  31759. :t
  31760. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  31761. s,@configure_input@,$configure_input,;t t
  31762. s,@srcdir@,$ac_srcdir,;t t
  31763. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  31764. s,@top_srcdir@,$ac_top_srcdir,;t t
  31765. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  31766. s,@builddir@,$ac_builddir,;t t
  31767. s,@abs_builddir@,$ac_abs_builddir,;t t
  31768. s,@top_builddir@,$ac_top_builddir,;t t
  31769. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  31770. s,@INSTALL@,$ac_INSTALL,;t t
  31771. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  31772. rm -f $tmp/stdin
  31773. if test x"$ac_file" != x-; then
  31774. mv $tmp/out $ac_file
  31775. else
  31776. cat $tmp/out
  31777. rm -f $tmp/out
  31778. fi
  31779. done
  31780. _ACEOF
  31781. cat >>$CONFIG_STATUS <<\_ACEOF
  31782. #
  31783. # CONFIG_HEADER section.
  31784. #
  31785. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  31786. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  31787. #
  31788. # ac_d sets the value in "#define NAME VALUE" lines.
  31789. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  31790. ac_dB='[ ].*$,\1#\2'
  31791. ac_dC=' '
  31792. ac_dD=',;t'
  31793. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  31794. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  31795. ac_uB='$,\1#\2define\3'
  31796. ac_uC=' '
  31797. ac_uD=',;t'
  31798. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  31799. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  31800. case $ac_file in
  31801. - | *:- | *:-:* ) # input from stdin
  31802. cat >$tmp/stdin
  31803. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  31804. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  31805. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  31806. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  31807. * ) ac_file_in=$ac_file.in ;;
  31808. esac
  31809. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  31810. echo "$as_me: creating $ac_file" >&6;}
  31811. # First look for the input files in the build tree, otherwise in the
  31812. # src tree.
  31813. ac_file_inputs=`IFS=:
  31814. for f in $ac_file_in; do
  31815. case $f in
  31816. -) echo $tmp/stdin ;;
  31817. [\\/$]*)
  31818. # Absolute (can't be DOS-style, as IFS=:)
  31819. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  31820. echo "$as_me: error: cannot find input file: $f" >&2;}
  31821. { (exit 1); exit 1; }; }
  31822. # Do quote $f, to prevent DOS paths from being IFS'd.
  31823. echo "$f";;
  31824. *) # Relative
  31825. if test -f "$f"; then
  31826. # Build tree
  31827. echo "$f"
  31828. elif test -f "$srcdir/$f"; then
  31829. # Source tree
  31830. echo "$srcdir/$f"
  31831. else
  31832. # /dev/null tree
  31833. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  31834. echo "$as_me: error: cannot find input file: $f" >&2;}
  31835. { (exit 1); exit 1; }; }
  31836. fi;;
  31837. esac
  31838. done` || { (exit 1); exit 1; }
  31839. # Remove the trailing spaces.
  31840. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  31841. _ACEOF
  31842. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  31843. # `conftest.undefs', that substitutes the proper values into
  31844. # config.h.in to produce config.h. The first handles `#define'
  31845. # templates, and the second `#undef' templates.
  31846. # And first: Protect against being on the right side of a sed subst in
  31847. # config.status. Protect against being in an unquoted here document
  31848. # in config.status.
  31849. rm -f conftest.defines conftest.undefs
  31850. # Using a here document instead of a string reduces the quoting nightmare.
  31851. # Putting comments in sed scripts is not portable.
  31852. #
  31853. # `end' is used to avoid that the second main sed command (meant for
  31854. # 0-ary CPP macros) applies to n-ary macro definitions.
  31855. # See the Autoconf documentation for `clear'.
  31856. cat >confdef2sed.sed <<\_ACEOF
  31857. s/[\\&,]/\\&/g
  31858. s,[\\$`],\\&,g
  31859. t clear
  31860. : clear
  31861. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  31862. t end
  31863. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  31864. : end
  31865. _ACEOF
  31866. # If some macros were called several times there might be several times
  31867. # the same #defines, which is useless. Nevertheless, we may not want to
  31868. # sort them, since we want the *last* AC-DEFINE to be honored.
  31869. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  31870. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  31871. rm -f confdef2sed.sed
  31872. # This sed command replaces #undef with comments. This is necessary, for
  31873. # example, in the case of _POSIX_SOURCE, which is predefined and required
  31874. # on some systems where configure will not decide to define it.
  31875. cat >>conftest.undefs <<\_ACEOF
  31876. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  31877. _ACEOF
  31878. # Break up conftest.defines because some shells have a limit on the size
  31879. # of here documents, and old seds have small limits too (100 cmds).
  31880. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  31881. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  31882. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  31883. echo ' :' >>$CONFIG_STATUS
  31884. rm -f conftest.tail
  31885. while grep . conftest.defines >/dev/null
  31886. do
  31887. # Write a limited-size here document to $tmp/defines.sed.
  31888. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  31889. # Speed up: don't consider the non `#define' lines.
  31890. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  31891. # Work around the forget-to-reset-the-flag bug.
  31892. echo 't clr' >>$CONFIG_STATUS
  31893. echo ': clr' >>$CONFIG_STATUS
  31894. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  31895. echo 'CEOF
  31896. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  31897. rm -f $tmp/in
  31898. mv $tmp/out $tmp/in
  31899. ' >>$CONFIG_STATUS
  31900. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  31901. rm -f conftest.defines
  31902. mv conftest.tail conftest.defines
  31903. done
  31904. rm -f conftest.defines
  31905. echo ' fi # grep' >>$CONFIG_STATUS
  31906. echo >>$CONFIG_STATUS
  31907. # Break up conftest.undefs because some shells have a limit on the size
  31908. # of here documents, and old seds have small limits too (100 cmds).
  31909. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  31910. rm -f conftest.tail
  31911. while grep . conftest.undefs >/dev/null
  31912. do
  31913. # Write a limited-size here document to $tmp/undefs.sed.
  31914. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  31915. # Speed up: don't consider the non `#undef'
  31916. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  31917. # Work around the forget-to-reset-the-flag bug.
  31918. echo 't clr' >>$CONFIG_STATUS
  31919. echo ': clr' >>$CONFIG_STATUS
  31920. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  31921. echo 'CEOF
  31922. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  31923. rm -f $tmp/in
  31924. mv $tmp/out $tmp/in
  31925. ' >>$CONFIG_STATUS
  31926. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  31927. rm -f conftest.undefs
  31928. mv conftest.tail conftest.undefs
  31929. done
  31930. rm -f conftest.undefs
  31931. cat >>$CONFIG_STATUS <<\_ACEOF
  31932. # Let's still pretend it is `configure' which instantiates (i.e., don't
  31933. # use $as_me), people would be surprised to read:
  31934. # /* config.h. Generated by config.status. */
  31935. if test x"$ac_file" = x-; then
  31936. echo "/* Generated by configure. */" >$tmp/config.h
  31937. else
  31938. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  31939. fi
  31940. cat $tmp/in >>$tmp/config.h
  31941. rm -f $tmp/in
  31942. if test x"$ac_file" != x-; then
  31943. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  31944. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  31945. echo "$as_me: $ac_file is unchanged" >&6;}
  31946. else
  31947. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  31948. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31949. X"$ac_file" : 'X\(//\)[^/]' \| \
  31950. X"$ac_file" : 'X\(//\)$' \| \
  31951. X"$ac_file" : 'X\(/\)' \| \
  31952. . : '\(.\)' 2>/dev/null ||
  31953. echo X"$ac_file" |
  31954. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31955. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31956. /^X\(\/\/\)$/{ s//\1/; q; }
  31957. /^X\(\/\).*/{ s//\1/; q; }
  31958. s/.*/./; q'`
  31959. { if $as_mkdir_p; then
  31960. mkdir -p "$ac_dir"
  31961. else
  31962. as_dir="$ac_dir"
  31963. as_dirs=
  31964. while test ! -d "$as_dir"; do
  31965. as_dirs="$as_dir $as_dirs"
  31966. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  31967. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31968. X"$as_dir" : 'X\(//\)[^/]' \| \
  31969. X"$as_dir" : 'X\(//\)$' \| \
  31970. X"$as_dir" : 'X\(/\)' \| \
  31971. . : '\(.\)' 2>/dev/null ||
  31972. echo X"$as_dir" |
  31973. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31974. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31975. /^X\(\/\/\)$/{ s//\1/; q; }
  31976. /^X\(\/\).*/{ s//\1/; q; }
  31977. s/.*/./; q'`
  31978. done
  31979. test ! -n "$as_dirs" || mkdir $as_dirs
  31980. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  31981. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  31982. { (exit 1); exit 1; }; }; }
  31983. rm -f $ac_file
  31984. mv $tmp/config.h $ac_file
  31985. fi
  31986. else
  31987. cat $tmp/config.h
  31988. rm -f $tmp/config.h
  31989. fi
  31990. # Compute $ac_file's index in $config_headers.
  31991. _am_stamp_count=1
  31992. for _am_header in $config_headers :; do
  31993. case $_am_header in
  31994. $ac_file | $ac_file:* )
  31995. break ;;
  31996. * )
  31997. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  31998. esac
  31999. done
  32000. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  32001. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32002. X$ac_file : 'X\(//\)[^/]' \| \
  32003. X$ac_file : 'X\(//\)$' \| \
  32004. X$ac_file : 'X\(/\)' \| \
  32005. . : '\(.\)' 2>/dev/null ||
  32006. echo X$ac_file |
  32007. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  32008. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  32009. /^X\(\/\/\)$/{ s//\1/; q; }
  32010. /^X\(\/\).*/{ s//\1/; q; }
  32011. s/.*/./; q'`/stamp-h$_am_stamp_count
  32012. done
  32013. _ACEOF
  32014. cat >>$CONFIG_STATUS <<\_ACEOF
  32015. #
  32016. # CONFIG_COMMANDS section.
  32017. #
  32018. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  32019. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  32020. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  32021. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  32022. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32023. X"$ac_dest" : 'X\(//\)[^/]' \| \
  32024. X"$ac_dest" : 'X\(//\)$' \| \
  32025. X"$ac_dest" : 'X\(/\)' \| \
  32026. . : '\(.\)' 2>/dev/null ||
  32027. echo X"$ac_dest" |
  32028. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  32029. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  32030. /^X\(\/\/\)$/{ s//\1/; q; }
  32031. /^X\(\/\).*/{ s//\1/; q; }
  32032. s/.*/./; q'`
  32033. { if $as_mkdir_p; then
  32034. mkdir -p "$ac_dir"
  32035. else
  32036. as_dir="$ac_dir"
  32037. as_dirs=
  32038. while test ! -d "$as_dir"; do
  32039. as_dirs="$as_dir $as_dirs"
  32040. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  32041. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32042. X"$as_dir" : 'X\(//\)[^/]' \| \
  32043. X"$as_dir" : 'X\(//\)$' \| \
  32044. X"$as_dir" : 'X\(/\)' \| \
  32045. . : '\(.\)' 2>/dev/null ||
  32046. echo X"$as_dir" |
  32047. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  32048. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  32049. /^X\(\/\/\)$/{ s//\1/; q; }
  32050. /^X\(\/\).*/{ s//\1/; q; }
  32051. s/.*/./; q'`
  32052. done
  32053. test ! -n "$as_dirs" || mkdir $as_dirs
  32054. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  32055. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  32056. { (exit 1); exit 1; }; }; }
  32057. ac_builddir=.
  32058. if test "$ac_dir" != .; then
  32059. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  32060. # A "../" for each directory in $ac_dir_suffix.
  32061. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  32062. else
  32063. ac_dir_suffix= ac_top_builddir=
  32064. fi
  32065. case $srcdir in
  32066. .) # No --srcdir option. We are building in place.
  32067. ac_srcdir=.
  32068. if test -z "$ac_top_builddir"; then
  32069. ac_top_srcdir=.
  32070. else
  32071. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  32072. fi ;;
  32073. [\\/]* | ?:[\\/]* ) # Absolute path.
  32074. ac_srcdir=$srcdir$ac_dir_suffix;
  32075. ac_top_srcdir=$srcdir ;;
  32076. *) # Relative path.
  32077. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  32078. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  32079. esac
  32080. # Do not use `cd foo && pwd` to compute absolute paths, because
  32081. # the directories may not exist.
  32082. case `pwd` in
  32083. .) ac_abs_builddir="$ac_dir";;
  32084. *)
  32085. case "$ac_dir" in
  32086. .) ac_abs_builddir=`pwd`;;
  32087. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  32088. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  32089. esac;;
  32090. esac
  32091. case $ac_abs_builddir in
  32092. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  32093. *)
  32094. case ${ac_top_builddir}. in
  32095. .) ac_abs_top_builddir=$ac_abs_builddir;;
  32096. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  32097. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  32098. esac;;
  32099. esac
  32100. case $ac_abs_builddir in
  32101. .) ac_abs_srcdir=$ac_srcdir;;
  32102. *)
  32103. case $ac_srcdir in
  32104. .) ac_abs_srcdir=$ac_abs_builddir;;
  32105. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  32106. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  32107. esac;;
  32108. esac
  32109. case $ac_abs_builddir in
  32110. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  32111. *)
  32112. case $ac_top_srcdir in
  32113. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  32114. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  32115. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  32116. esac;;
  32117. esac
  32118. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  32119. echo "$as_me: executing $ac_dest commands" >&6;}
  32120. case $ac_dest in
  32121. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  32122. # Strip MF so we end up with the name of the file.
  32123. mf=`echo "$mf" | sed -e 's/:.*$//'`
  32124. # Check whether this is an Automake generated Makefile or not.
  32125. # We used to match only the files named `Makefile.in', but
  32126. # some people rename them; so instead we look at the file content.
  32127. # Grep'ing the first line is not enough: some people post-process
  32128. # each Makefile.in and add a new line on top of each file to say so.
  32129. # So let's grep whole file.
  32130. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  32131. dirpart=`(dirname "$mf") 2>/dev/null ||
  32132. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32133. X"$mf" : 'X\(//\)[^/]' \| \
  32134. X"$mf" : 'X\(//\)$' \| \
  32135. X"$mf" : 'X\(/\)' \| \
  32136. . : '\(.\)' 2>/dev/null ||
  32137. echo X"$mf" |
  32138. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  32139. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  32140. /^X\(\/\/\)$/{ s//\1/; q; }
  32141. /^X\(\/\).*/{ s//\1/; q; }
  32142. s/.*/./; q'`
  32143. else
  32144. continue
  32145. fi
  32146. # Extract the definition of DEPDIR, am__include, and am__quote
  32147. # from the Makefile without running `make'.
  32148. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  32149. test -z "$DEPDIR" && continue
  32150. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  32151. test -z "am__include" && continue
  32152. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  32153. # When using ansi2knr, U may be empty or an underscore; expand it
  32154. U=`sed -n 's/^U = //p' < "$mf"`
  32155. # Find all dependency output files, they are included files with
  32156. # $(DEPDIR) in their names. We invoke sed twice because it is the
  32157. # simplest approach to changing $(DEPDIR) to its actual value in the
  32158. # expansion.
  32159. for file in `sed -n "
  32160. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  32161. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  32162. # Make sure the directory exists.
  32163. test -f "$dirpart/$file" && continue
  32164. fdir=`(dirname "$file") 2>/dev/null ||
  32165. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32166. X"$file" : 'X\(//\)[^/]' \| \
  32167. X"$file" : 'X\(//\)$' \| \
  32168. X"$file" : 'X\(/\)' \| \
  32169. . : '\(.\)' 2>/dev/null ||
  32170. echo X"$file" |
  32171. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  32172. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  32173. /^X\(\/\/\)$/{ s//\1/; q; }
  32174. /^X\(\/\).*/{ s//\1/; q; }
  32175. s/.*/./; q'`
  32176. { if $as_mkdir_p; then
  32177. mkdir -p $dirpart/$fdir
  32178. else
  32179. as_dir=$dirpart/$fdir
  32180. as_dirs=
  32181. while test ! -d "$as_dir"; do
  32182. as_dirs="$as_dir $as_dirs"
  32183. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  32184. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32185. X"$as_dir" : 'X\(//\)[^/]' \| \
  32186. X"$as_dir" : 'X\(//\)$' \| \
  32187. X"$as_dir" : 'X\(/\)' \| \
  32188. . : '\(.\)' 2>/dev/null ||
  32189. echo X"$as_dir" |
  32190. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  32191. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  32192. /^X\(\/\/\)$/{ s//\1/; q; }
  32193. /^X\(\/\).*/{ s//\1/; q; }
  32194. s/.*/./; q'`
  32195. done
  32196. test ! -n "$as_dirs" || mkdir $as_dirs
  32197. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  32198. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  32199. { (exit 1); exit 1; }; }; }
  32200. # echo "creating $dirpart/$file"
  32201. echo '# dummy' > "$dirpart/$file"
  32202. done
  32203. done
  32204. ;;
  32205. esac
  32206. done
  32207. _ACEOF
  32208. cat >>$CONFIG_STATUS <<\_ACEOF
  32209. { (exit 0); exit 0; }
  32210. _ACEOF
  32211. chmod +x $CONFIG_STATUS
  32212. ac_clean_files=$ac_clean_files_save
  32213. # configure is writing to config.log, and then calls config.status.
  32214. # config.status does its own redirection, appending to config.log.
  32215. # Unfortunately, on DOS this fails, as config.log is still kept open
  32216. # by configure, so config.status won't be able to write to it; its
  32217. # output is simply discarded. So we exec the FD to /dev/null,
  32218. # effectively closing config.log, so it can be properly (re)opened and
  32219. # appended to by config.status. When coming back to configure, we
  32220. # need to make the FD available again.
  32221. if test "$no_create" != yes; then
  32222. ac_cs_success=:
  32223. ac_config_status_args=
  32224. test "$silent" = yes &&
  32225. ac_config_status_args="$ac_config_status_args --quiet"
  32226. exec 5>/dev/null
  32227. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  32228. exec 5>>config.log
  32229. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  32230. # would make configure fail if this is the last instruction.
  32231. $ac_cs_success || { (exit 1); exit 1; }
  32232. fi
  32233. if test $doctools = no; then
  32234. { echo "$as_me:$LINENO: One or more tool for creating documentation is unavailable." >&5
  32235. echo "$as_me: One or more tool for creating documentation is unavailable." >&6;}
  32236. { echo "$as_me:$LINENO: This is only an issue for developers, so don't worry." >&5
  32237. echo "$as_me: This is only an issue for developers, so don't worry." >&6;}
  32238. fi